/* WinBids — Portal Status page (templates/portal_status.html)
   Loaded only by that page, on top of main.css. */

.ps-page { padding: 32px 0 80px; }

/* Filter row */
.ps-filter-form .search-row { margin-bottom: 12px; }
.ps-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ps-state-select { width: auto; min-width: 150px; }
.ps-coverage { margin: -6px 2px 16px; font-size: 12.5px; color: var(--stone); }
.ps-coverage strong { color: var(--ink); }
button.seg-tab { border: none; background: transparent; font-family: inherit; cursor: pointer; }

/* Charts */
.ps-charts { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 920px) { .ps-charts { grid-template-columns: 1fr; } }
.ps-chart-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 16px;
    box-shadow: 0 1px 2px rgba(20,30,40,0.04), 0 8px 24px -16px rgba(20,30,40,0.18);
}
.ps-chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.ps-chart-title { font-weight: 700; font-size: 15px; }
.ps-chart-sub { font-size: 12px; color: var(--stone); margin-top: 2px; }
.ps-chart-body { position: relative; height: 280px; }
.ps-chart-body-tall { height: 340px; }
.ps-chart-empty { font-size: 13px; color: var(--stone); padding: 24px 0; text-align: center; }

/* Table */
.ps-table-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(20,30,40,0.04), 0 8px 24px -16px rgba(20,30,40,0.18);
}
.ps-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ps-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--stone);
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--canvas);
    white-space: nowrap;
}
.ps-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ps-table tbody tr:last-child td { border-bottom: none; }
.ps-table tbody tr:hover td { background: #fcfbfa; }

.ps-th-link { color: inherit; text-decoration: none; }
.ps-th-link:hover { color: var(--primary); }
.ps-th-link.active { color: var(--primary); font-weight: 700; }
.ps-arrow { font-size: 11px; }

.ps-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.ps-num { text-align: right; }
.ps-state { font-weight: 700; }
.ps-portal-name { display: block; font-weight: 600; color: var(--ink); }
.ps-portal-link { color: var(--primary); text-decoration: none; }
.ps-portal-link:hover { text-decoration: underline; }
.ps-portal-sub { display: block; font-size: 12px; color: var(--stone); margin-top: 1px; }
.ps-muted { color: var(--stone); }
.ps-ago { color: #a8a29e; font-size: 12px; }

.ps-empty {
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--r-card);
    padding: 36px;
    text-align: center;
    color: var(--stone);
}

.ps-note { margin-top: 16px; font-size: 12.5px; color: var(--stone); max-width: 900px; }

@media (max-width: 820px) {
    .ps-col-hide-sm { display: none; }
    .ps-filter-row { align-items: stretch; }
}
