/* =============================================
   BAV-Verwaltung – Modern Design System
   ============================================= */

:root {
    --sidebar-width: 260px;
    --header-height: 60px;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --success-light: #dcfce7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --info: #0891b2;
    --info-light: #e0f2fe;
    --purple: #7c3aed;
    --purple-light: #ede9fe;
    --ks1: #2563eb;
    --ks2: #7c3aed;
    --ks3: #d97706;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --bg: #f3f4f6;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
    --card-radius: 10px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg);
    height: 100%;
}

/* ── App Layout ── */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    left: 0; top: 0;
    display: flex;
    flex-direction: column;
    z-index: 200;
}

.sidebar-header {
    padding: 20px 16px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-logo {
    max-width: 140px;
    max-height: 56px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.sidebar-brand {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    letter-spacing: 0.3px;
}

.mandant-wrapper {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mandant-select {
    width: 100%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    appearance: auto;
}

.mandant-select option { color: #111; background: white; }

.sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    overflow-y: auto;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.user-avatar {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-details { flex: 1; min-width: 0; }

.user-name {
    color: white;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
}

.btn-logout {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    border-radius: 6px;
    padding: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-logout:hover { background: rgba(255,255,255,0.2); color: white; }

/* ── NavMenu ── */
.nav-item { display: block; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 7px;
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 400;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.12);
    color: white !important;
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white !important;
    font-weight: 600;
}

/* ── Main Wrapper ── */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Top Header ── */
.top-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.header-left { flex: 1; }
.header-right { display: flex; align-items: center; gap: 12px; }

.stichtag-control {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
}

.stichtag-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stichtag-btn {
    background: white;
    border: 1px solid var(--border);
    border-radius: 5px;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1;
    padding: 0;
    transition: border-color 0.15s, color 0.15s;
}
.stichtag-btn:hover { border-color: var(--primary); color: var(--primary); }

.stichtag-date {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    min-width: 90px;
    text-align: center;
}

.stichtag-sprung {
    background: white;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 3px 6px;
    font-size: 12px;
    width: 48px;
    cursor: pointer;
}

.stichtag-heute {
    background: white;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: background 0.15s;
}
.stichtag-heute:hover { background: var(--bg); }

.hochrechnung-badge {
    background: #1e2a3a;
    color: white;
    border-radius: 7px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── Main Content ── */
.main-content {
    flex: 1;
    padding: 24px 24px 24px 12px;
    background: var(--bg);
}

/* ── Page Header ── */
.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

.page-title { animation: fadeInUp 0.3s ease both; }

.dash-row   { animation: fadeInUp 0.3s ease both; }
.dash-row-2 { animation: fadeInUp 0.35s ease both; }

/* ── Cards ── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    animation: fadeInUp 0.3s ease both;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-primary);
}

.card-body { padding: 18px; }
.card-body.p-0 { padding: 0; }

/* ── KPI Cards ── */
.kpi-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 18px 20px;
    box-shadow: var(--card-shadow);
    animation: fadeInUp 0.3s ease both;
    transition: box-shadow 0.2s, transform 0.2s;
}
.kpi-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.kpi-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.kpi-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Tables ── */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    background: #f9fafb;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-primary);
    vertical-align: middle;
}

.table tbody tr:hover { background: #fafafa; }
.table tbody tr:last-child td { border-bottom: none; }

.table-sm th { padding: 8px 12px; }
.table-sm td { padding: 8px 12px; }

/* ── Badges / Pills ── */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.badge-aktiv { background: var(--success-light); color: var(--success); }
.badge-ausgeschieden { background: #f3f4f6; color: var(--text-secondary); }
.badge-ks1 { background: #dbeafe; color: var(--ks1); }
.badge-ks2 { background: var(--purple-light); color: var(--ks2); }
.badge-ks3 { background: var(--warning-light); color: var(--warning); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    line-height: 1;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover { background: #15803d; }

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover { background: #b91c1c; }

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg); }

.btn-outline-secondary {
    background: white;
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-outline-secondary:hover { background: var(--bg); color: var(--text-primary); }

.btn-outline-danger {
    background: white;
    color: var(--danger);
    border-color: #fca5a5;
}
.btn-outline-danger:hover { background: var(--danger-light); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 10px 20px; font-size: 15px; }

button:disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Form Controls ── */
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-control, .form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 13.5px;
    color: var(--text-primary);
    background: white;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-control:disabled, .form-select:disabled {
    background: #f9fafb;
    color: var(--text-muted);
}

textarea.form-control { resize: vertical; min-height: 80px; }

.input-group {
    display: flex;
    align-items: stretch;
}
.input-group .form-control { border-radius: 7px 0 0 7px; }
.input-group-text {
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 7px 7px 0;
    font-size: 13.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check-input { width: 16px; height: 16px; cursor: pointer; }
.form-check-label { font-size: 13.5px; cursor: pointer; }

/* ── Tabs (bav-tabs to avoid Bootstrap conflict) ── */
.bav-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #d1d5db;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bav-tab {
    padding: 10px 18px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: #4b5563 !important;
    border: 1px solid transparent;
    border-bottom: none;
    background: #f9fafb;
    margin-bottom: -2px;
    transition: color 0.15s, background 0.15s;
    text-decoration: none !important;
    display: inline-block;
    border-radius: 6px 6px 0 0;
}

.bav-tab:hover {
    color: #2563eb !important;
    background: #eff6ff;
}

.bav-tab.active {
    color: #2563eb !important;
    background: white;
    border-color: #d1d5db;
    border-bottom-color: white;
    font-weight: 600;
}

/* Legacy nav-tabs (Bootstrap override) */
.nav-tabs { border-bottom: 2px solid #d1d5db; }
.nav-tabs .nav-link { color: #4b5563 !important; font-size: 13.5px; }
.nav-tabs .nav-link.active { color: #2563eb !important; font-weight: 600; }

/* ── Alerts ── */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid #86efac; }
.alert-danger { background: var(--danger-light); color: var(--danger); border: 1px solid #fca5a5; }
.alert-warning { background: var(--warning-light); color: var(--warning); border: 1px solid #fcd34d; }
.alert-info { background: var(--info-light); color: var(--info); border: 1px solid #7dd3fc; }

/* ── Karriereschritt Cards ── */
.ks-card {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ks-card.ks-aktiv { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.ks-card.ks-1 { border-left-color: var(--ks1); }
.ks-card.ks-2 { border-left-color: var(--ks2); }
.ks-card.ks-3 { border-left-color: var(--ks3); }
.ks-card.ks-1.ks-aktiv { border-color: var(--ks1); }
.ks-card.ks-2.ks-aktiv { border-color: var(--ks2); }
.ks-card.ks-3.ks-aktiv { border-color: var(--ks3); }

.ks-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ks-title { font-weight: 700; font-size: 15px; }
.ks-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.ks-badge-1 { background: #dbeafe; color: var(--ks1); }
.ks-badge-2 { background: var(--purple-light); color: var(--ks2); }
.ks-badge-3 { background: var(--warning-light); color: var(--ks3); }

.ks-zuschuss {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
    background: var(--success-light);
    padding: 3px 10px;
    border-radius: 20px;
}

/* ── KPI Row ── */
.kpi-row { display: flex; gap: 16px; flex-wrap: wrap; }
.kpi-row .kpi-card { flex: 1; min-width: 160px; }

/* ── Grid utility ── */
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.col { flex: 1; padding: 0 8px; }
.col-auto { flex: 0 0 auto; padding: 0 8px; }
.col-md-1 { flex: 0 0 8.333%; max-width: 8.333%; padding: 0 8px; }
.col-md-2 { flex: 0 0 16.667%; max-width: 16.667%; padding: 0 8px; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; padding: 0 8px; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 8px; }
.col-md-5 { flex: 0 0 41.667%; max-width: 41.667%; padding: 0 8px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 8px; }
.col-md-8 { flex: 0 0 66.667%; max-width: 66.667%; padding: 0 8px; }
.col-md-12, .col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 8px; }

.g-2 { gap: 8px; }
.g-3 { gap: 16px; }

/* ── Spacing ── */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-auto { margin-top: auto; }
.ms-2 { margin-left: 8px; }
.me-2 { margin-right: 8px; }
.p-0 { padding: 0; }
.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.px-3 { padding-left: 16px; padding-right: 16px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 16px; padding-bottom: 16px; }

/* ── Flex helpers ── */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.flex-grow-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }

/* ── Text ── */
.text-end { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.text-white { color: white; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.small { font-size: 12px; }
.fst-italic { font-style: italic; }

/* ── Chart ── */
.chart-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    position: relative;
    height: 280px;
}

/* ── Table scrollable ── */
.table-responsive { overflow-x: auto; }
.table-scroll { max-height: 480px; overflow-y: auto; }

/* ── Loading ── */
.loading-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
    gap: 12px;
    animation: fadeIn 0.3s ease both;
}
.loading-wrapper span {
    animation: pulse-soft 1.5s ease infinite;
}

/* ── Search Input ── */
.search-box {
    position: relative;
    flex: 1;
    max-width: 360px;
}
.search-box input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 13.5px;
    background: white;
    outline: none;
}
.search-box input:focus { border-color: var(--primary); }
.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
}

/* ── Divider ── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* ── Table summary row ── */
.ks-totals {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 16px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.ks-total-item { }
.ks-total-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; text-transform: uppercase; }
.ks-total-value { font-size: 18px; font-weight: 700; color: var(--success); }
.ks-total-value.orange { color: var(--warning); }

/* ── Login Page ── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e2a3a 0%, #2c3e50 100%);
}

.login-card {
    background: white;
    border-radius: 14px;
    padding: 40px;
    width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ── Misc ── */
.shadow-sm { box-shadow: var(--card-shadow); }
.rounded { border-radius: var(--card-radius); }
.border-top { border-top: 1px solid var(--border); }
.sticky-top { position: sticky; top: 0; z-index: 10; background: white; }

.blazor-error-boundary {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 16px;
    color: var(--danger);
    margin: 16px;
}
.blazor-error-boundary::after { content: "Ein Fehler ist aufgetreten. Bitte die Seite neu laden."; }

/* ── Checkboxes in lists ── */
.row-checkbox { width: 18px; height: 18px; cursor: pointer; }

/* ── Status colors in table ── */
tr.row-aktiv td { }
tr.row-ausgeschieden td { color: var(--text-secondary); }
tr.row-unterbrechung { background: #fefce8; }
tr.row-prognose { opacity: 0.65; font-style: italic; }

/* ── Confirm Dialog ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: white;
    border-radius: 12px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.modal-message { color: var(--text-secondary); font-size: 13.5px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── KPI large ── */
.kpi-large { font-size: 28px; }

/* ── Inline edit ── */
.field-view {
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 13.5px;
    color: var(--text-primary);
    min-height: 38px;
    display: flex;
    align-items: center;
}

.field-view.orange { color: var(--warning); font-weight: 600; }

/* ── Actions bar ── */
.actions-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* ── Dashboard Layout ── */
.dash-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dash-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}
.dash-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.dash-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.dash-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
}

.dash-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.dash-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dash-wide-card {
    border-radius: var(--card-radius);
    padding: 20px 24px;
    box-shadow: var(--card-shadow);
}

.dash-wide-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dash-wide-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dash-wide-sub {
    font-size: 12px;
}

/* KS circles in dashboard */
.ks-circles {
    display: flex;
    gap: 14px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.ks-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.ks-circle-num {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.ks-circle-label {
    font-size: 9px;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 1px;
}

.ks-circle-pct {
    font-size: 9px;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 2px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 0 4px;
}

/* ── Version badge ── */
.version-badge {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    padding: 6px;
}
