/* style-49-foreign-vehicles.css — FEAT-239-P2 Foreign Vehicle Registry */
/* Prefix: fv- | Themes: dark (default) + light override */
/* Reuses ak- modal/button/table/badge classes from style-45-api-keys.css */

/* ── Header subtitle ─────────────────────────────────────────────────────── */
.fv-subtitle {
    font-size: 13px;
    color: #636b7a;
    margin-top: 2px;
}

/* ── Header actions ─────────────────────────────────────────────────────── */
.fv-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Show-removed toggle ─────────────────────────────────────────────────── */
.fv-toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.fv-checkbox-label {
    font-size: 13px;
    color: #8b95a5;
    cursor: pointer;
    user-select: none;
}
.fv-checkbox {
    accent-color: #4a9eff;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ── Status badges (override ak- with fv- for semantics) ─────────────────── */
.fv-badge-active  { background: #14532d; color: #4ade80; }
/* Removed = grey, not red — grey means "not applicable" (dashboard colour rule) */
.fv-badge-removed { background: #2a2f3e; color: #8b95a5; }

/* ── Table overrides ─────────────────────────────────────────────────────── */
.fv-tr-removed td { opacity: 0.6; }
.fv-plate-code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    background: #161a24;
    padding: 2px 6px;
    border-radius: 4px;
    color: #7dd3fc;
}
.fv-reason-cell {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #8b95a5;
    font-size: 12px;
}

/* ── Form ────────────────────────────────────────────────────────────────── */
.fv-plate-input { text-transform: uppercase; letter-spacing: 0.08em; }
.fv-reason-textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    background: #141720;
    border: 1px solid #2a2f3e;
    border-radius: 6px;
    color: #c8cdd8;
    font-size: 13px;
    padding: 8px 10px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.fv-reason-textarea:focus { border-color: #4a9eff; }

/* ── Empty / error states ────────────────────────────────────────────────── */
.fv-empty {
    color: #636b7a;
    padding: 32px;
    text-align: center;
    font-size: 14px;
}
.fv-error-state {
    padding: 24px;
    text-align: center;
}
.fv-error-msg {
    color: #f87171;
    font-size: 14px;
    margin-bottom: 12px;
}

/* ── Propagation notice ──────────────────────────────────────────────────── */
.fv-propagation-notice {
    font-size: 12px;
    color: #4b5563;
    border-top: 1px solid #1e2230;
    padding: 8px 0 4px;
    margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ══════════════════════════════════════════════════════════════ */
body[data-theme="light"] .fv-subtitle { color: #64748b; }
body[data-theme="light"] .fv-checkbox-label { color: #374151; }

body[data-theme="light"] .fv-badge-active  { background: #dcfce7; color: #166534; }
body[data-theme="light"] .fv-badge-removed { background: #f1f5f9; color: #64748b; }

body[data-theme="light"] .fv-plate-code { background: #f1f5f9; color: #2563eb; }
body[data-theme="light"] .fv-reason-cell { color: #94a3b8; }

body[data-theme="light"] .fv-reason-textarea {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}
body[data-theme="light"] .fv-reason-textarea:focus { border-color: #3b82f6; }

body[data-theme="light"] .fv-empty { color: #94a3b8; }
body[data-theme="light"] .fv-error-msg { color: #dc2626; }

body[data-theme="light"] .fv-propagation-notice {
    color: #6b7280;
    border-top-color: #e5e7eb;
}
