/* ── Fleet Profile (/fleet-profile) ──────────────────────────────────── */

.flp-page {
    padding: 1.5rem;
    color: var(--text-primary, #e8eaf0);
}

/* Header */
.flp-header { margin-bottom: 1.25rem; }
.flp-page-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e8eaf0;
    margin: 0;
}

/* KPI strip */
.flp-kpi-strip {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.flp-kpi-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    min-width: 140px;
    text-align: center;
}
.flp-kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f4a724;
    line-height: 1.1;
}
.flp-kpi-label {
    font-size: 0.75rem;
    color: #8b949e;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Table wrapper */
.flp-brand-table { overflow-x: auto; }
.flp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.flp-th {
    background: #161b22;
    color: #8b949e;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid #30363d;
    text-align: left;
}
.flp-th:not(:first-child) { text-align: right; }

/* Brand rows */
.flp-brand-row {
    background: #161b22;
    border-top: 2px solid #30363d;
}
.flp-brand-row:first-of-type { border-top: none; }
.flp-brand-name {
    padding: 0.65rem 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #e8eaf0;
}
.flp-brand-cell {
    padding: 0.65rem 0.75rem;
    text-align: right;
    color: #adb5bd;
    font-weight: 500;
}

/* Model rows */
.flp-model-row {
    background: #0d1117;
    cursor: pointer;
    transition: background 0.15s;
    border-top: 1px solid #21262d;
}
.flp-model-row:hover { background: #1c2128; }
.flp-model-row.flp-model-selected { background: #1f2d3d; border-left: 3px solid #f4a724; }
.flp-model-cell-name {
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    color: #c9d1d9;
}
.flp-model-name { color: #c9d1d9; }
.flp-model-cell {
    padding: 0.5rem 0.75rem;
    text-align: right;
    color: #8b949e;
    font-size: 0.85rem;
}

/* Detail section */
.flp-detail-section {
    margin-top: 1.5rem;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
}
.flp-detail-header {
    background: #161b22;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #f4a724;
    border-bottom: 1px solid #30363d;
    font-size: 0.9rem;
}
.flp-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.flp-detail-th {
    background: #0d1117;
    color: #8b949e;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #21262d;
    text-align: left;
}
.flp-detail-td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #161b22;
    color: #c9d1d9;
}
.flp-detail-td-plate {
    font-weight: 700;
    font-size: 1rem;
    color: #e8eaf0;
}
.flp-detail-status-active { color: #3fb950; }
.flp-detail-status-inactive { color: #8b949e; }

/* Empty state */
.flp-empty {
    padding: 2rem;
    text-align: center;
    color: #8b949e;
    font-style: italic;
}

/* Light theme overrides */
body[data-theme="light"] .flp-page { color: #212529; }
body[data-theme="light"] .flp-page-title { color: #212529; }
body[data-theme="light"] .flp-kpi-card { background: #f8f9fa; border-color: #dee2e6; }
body[data-theme="light"] .flp-kpi-label { color: #6c757d; }
body[data-theme="light"] .flp-th { background: #f8f9fa; color: #6c757d; border-bottom-color: #dee2e6; }
body[data-theme="light"] .flp-brand-row { background: #f8f9fa; border-color: #dee2e6; }
body[data-theme="light"] .flp-brand-name { color: #212529; }
body[data-theme="light"] .flp-brand-cell { color: #495057; }
body[data-theme="light"] .flp-model-row { background: #ffffff; border-color: #e9ecef; }
body[data-theme="light"] .flp-model-row:hover { background: #f1f3f5; }
body[data-theme="light"] .flp-model-name { color: #495057; }
body[data-theme="light"] .flp-model-cell { color: #6c757d; }
body[data-theme="light"] .flp-detail-section { border-color: #dee2e6; }
body[data-theme="light"] .flp-detail-header { background: #f8f9fa; }
body[data-theme="light"] .flp-detail-th { background: #f8f9fa; color: #6c757d; }
body[data-theme="light"] .flp-detail-td { color: #212529; border-color: #e9ecef; }
