/* ── FEAT-197a — Ridership Analytics page ─────────────────────────────────── */

.rid-page {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Header */
.rid-header {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.rid-page-title {
    font-size: 20px;
    font-weight: bold;
    color: #e8eaf0;
}

body[data-theme="light"] .rid-page-title {
    color: #1a202c;
}

/* Filter bar */
.rid-filter-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: flex-end;
}

.rid-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

.rid-filter-btn-group {
    min-width: unset;
}

.rid-filter-label {
    font-size: 12px;
    color: #9aa3b5;
    white-space: nowrap;
}

body[data-theme="light"] .rid-filter-label {
    color: #6b7280;
}

/* Tabs */
.rid-tabs {
    margin-top: 8px;
}

.rid-tab {
    background: #1e2537 !important;
    color: #9aa3b5 !important;
    border: 1px solid #2d3548 !important;
    border-radius: 4px 4px 0 0 !important;
    padding: 8px 20px !important;
}

.rid-tab--selected {
    background: #252b3b !important;
    color: #e8eaf0 !important;
    border-bottom-color: #252b3b !important;
    font-weight: 600 !important;
}

body[data-theme="light"] .rid-tab {
    background: #f0f2f5 !important;
    color: #6b7280 !important;
    border-color: #d1d5db !important;
}

body[data-theme="light"] .rid-tab--selected {
    background: #ffffff !important;
    color: #1a202c !important;
    border-bottom-color: #ffffff !important;
}

/* Overview content */
.rid-overview-content {
    padding: 16px 0;
}

/* KPI strip */
.rid-kpi-strip {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.rid-kpi-card {
    flex: 1;
    min-width: 160px;
    background: #1e2537;
    border: 1px solid #2d3548;
    border-radius: 8px;
    padding: 16px 20px;
}

body[data-theme="light"] .rid-kpi-card {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.rid-kpi-label {
    font-size: 12px;
    color: #9aa3b5;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body[data-theme="light"] .rid-kpi-label {
    color: #6b7280;
}

.rid-kpi-value {
    font-size: 22px;
    font-weight: bold;
    color: #e8eaf0;
}

body[data-theme="light"] .rid-kpi-value {
    color: #1a202c;
}

/* Charts */
.rid-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 16px;
}

.rid-chart {
    background: #1e2537;
    border: 1px solid #2d3548;
    border-radius: 8px;
    padding: 8px;
}

body[data-theme="light"] .rid-chart {
    background: #ffffff;
    border-color: #e5e7eb;
}

/* Detail tab */
.rid-detail-content {
    padding: 16px 0;
}

.rid-export-bar {
    display: flex;
    align-items: center;
    padding: 12px 0 8px;
    gap: 8px;
}

/* Empty state */
.rid-empty-state {
    text-align: center;
    color: #9aa3b5;
    padding: 48px 24px;
    font-size: 14px;
}

body[data-theme="light"] .rid-empty-state {
    color: #6b7280;
}

/* Responsive */
@media (max-width: 390px) {
    .rid-page {
        padding: 12px;
    }
    .rid-kpi-strip {
        flex-direction: column;
    }
    .rid-charts {
        grid-template-columns: 1fr;
    }
}
