/* style-50-roadtax-comparison.css — FEAT-279 Road Tax Expiry & Comparison page */

/* ── Page wrapper ───────────────────────────────────────── */
.rtc-page {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Status toggle bar ──────────────────────────────────── */
.rtc-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.rtc-status-radio label {
    font-size: 13px;
    color: #9aa3b5;
    margin-right: 12px;
    cursor: pointer;
}

body[data-theme="light"] .rtc-status-radio label { color: #5a6376; }

/* ── Tabs ───────────────────────────────────────────────── */
.rtc-tabs .tab { background: transparent !important; }
.rtc-tab {
    border-bottom: 2px solid transparent !important;
    color: #9aa3b5 !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
}
.rtc-tab--active {
    border-bottom: 2px solid #4a90d9 !important;
    color: #e8eaf0 !important;
    background: transparent !important;
}
body[data-theme="light"] .rtc-tab { color: #5a6376 !important; }
body[data-theme="light"] .rtc-tab--active { color: #1a1f2e !important; }

/* ── Headline (Tab A) ───────────────────────────────────── */
.rtc-headline {
    margin-bottom: 12px;
}
.rtc-headline-num {
    font-size: 32px;
    font-weight: 700;
    color: #ef4444;
}
.rtc-headline-label {
    font-size: 18px;
    color: #e8eaf0;
    margin-left: 8px;
}
.rtc-headline-sub {
    font-size: 13px;
    color: #9aa3b5;
    margin-left: 6px;
}
body[data-theme="light"] .rtc-headline-label { color: #1a1f2e; }

/* ── Summary cards (bucket / agreement) ─────────────────── */
.rtc-card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rtc-summary-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #2d3548;
    background: #1e2433;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-width: 100px;
    text-align: left;
}

.rtc-summary-card:hover {
    border-color: #4a90d9;
    background: #252b3b;
}

.rtc-summary-card--active {
    border-color: #4a90d9 !important;
    background: #1e2d45 !important;
}

body[data-theme="light"] .rtc-summary-card {
    background: #f8f9fb;
    border-color: #d1d5e0;
}
body[data-theme="light"] .rtc-summary-card:hover {
    background: #edf2fb;
    border-color: #4a90d9;
}
body[data-theme="light"] .rtc-summary-card--active {
    background: #dbeafe !important;
    border-color: #4a90d9 !important;
}

.rtc-card-count {
    font-size: 22px;
    font-weight: 700;
    color: #e8eaf0;
    line-height: 1.2;
}
body[data-theme="light"] .rtc-card-count { color: #1a1f2e; }

.rtc-card-label {
    font-size: 11px;
    color: #9aa3b5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}
body[data-theme="light"] .rtc-card-label { color: #5a6376; }

/* ── Filter bar ─────────────────────────────────────────── */
.rtc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
    align-items: flex-end;
}

.rtc-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

.rtc-filter-label {
    font-size: 12px;
    color: #9aa3b5;
    margin-bottom: 2px;
}
body[data-theme="light"] .rtc-filter-label { color: #5a6376; }

.rtc-filter-input {
    min-width: 160px;
    color: #1a1f2e;
}

.rtc-plate-input {
    background: #252b3b;
    border: 1px solid #2d3548;
    border-radius: 4px;
    color: #e8eaf0;
    padding: 6px 10px;
    font-size: 14px;
    min-width: 150px;
    height: 36px;
}
.rtc-plate-input:focus {
    outline: none;
    border-color: #4a90d9;
}
body[data-theme="light"] .rtc-plate-input {
    background: #ffffff;
    border-color: #c8cfd8;
    color: #1a1f2e;
}

/* ── Toolbar ─────────────────────────────────────────────── */
.rtc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.rtc-row-banner {
    font-size: 13px;
    color: #9aa3b5;
}
body[data-theme="light"] .rtc-row-banner { color: #5a6376; }

/* ── Error alert ─────────────────────────────────────────── */
.rtc-error-alert {
    background: #3b1a1a;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    padding: 10px 14px;
    color: #f8d7da;
    font-size: 13px;
    margin-bottom: 12px;
}
body[data-theme="light"] .rtc-error-alert {
    background: #fff5f5;
    border-left-color: #dc3545;
    color: #721c24;
}

/* ── Table ───────────────────────────────────────────────── */
.rtc-table td { white-space: normal; }

/* ── Stale marker ────────────────────────────────────────── */
.rtc-stale-marker {
    font-size: 12px;
    color: #f59e0b;
    cursor: help;
}

/* ── Coverage note (Tab B) ───────────────────────────────── */
.rtc-coverage-note {
    font-size: 13px;
    color: #9aa3b5;
    margin-bottom: 4px;
}
body[data-theme="light"] .rtc-coverage-note { color: #5a6376; }

.rtc-mysikap-note {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 4px;
}
body[data-theme="light"] .rtc-mysikap-note { color: #8a93a5; }

/* ── 390 px responsive ───────────────────────────────────── */
@media (max-width: 430px) {
    .rtc-page { padding: 12px; }
    .rtc-filter-bar { flex-direction: column; }
    .rtc-filter-group,
    .rtc-filter-input,
    .rtc-plate-input { width: 100%; min-width: unset; }
    .rtc-card-row { gap: 8px; }
    .rtc-summary-card { min-width: 80px; padding: 8px 12px; }
    .rtc-card-count { font-size: 18px; }
    .rtc-headline-num { font-size: 24px; }
    .rtc-headline-label { font-size: 15px; }
}
