* { box-sizing: border-box; }

:root {
    --bg: #f4f6f9;
    --panel: #ffffff;
    --primary: #1f4f8b;
    --primary-dark: #183d6b;
    --nav: #1f2d3d;
    --nav-2: #263544;
    --line: #e1e7ef;
    --soft: #f7f9fc;
    --text: #222f3e;
    --muted: #667085;
    --danger: #dc3545;
    --success: #198754;
    --warning: #ffc107;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(31, 45, 61, 0.08);
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

.topbar {
    min-height: 62px;
    background: var(--nav);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.brand { font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.user-info { font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.role { opacity: .78; }
.logout-link {
    color: #fff;
    text-decoration: none;
    padding: 7px 11px;
    background: var(--danger);
    border-radius: 6px;
    font-size: 13px;
}
.logout-link:hover { background: #bd2130; }

.layout { display: flex; min-height: calc(100vh - 102px); }
.sidebar {
    width: 230px;
    background: var(--nav-2);
    padding: 16px 0;
    flex-shrink: 0;
}
.sidebar a {
    display: block;
    color: #dfe6ee;
    text-decoration: none;
    padding: 12px 20px;
    border-left: 4px solid transparent;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sidebar a:hover {
    background: #31465a;
    border-left-color: #8db7ff;
    color: #fff;
}

.content { flex: 1; padding: 24px; max-width: 100%; }
.login-content { max-width: 420px; margin: 80px auto; padding: 0 20px; }

.card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid rgba(225,231,239,.8);
}
.card h2, .card h3 { margin-top: 0; color: #1f2d3d; }
.card h2 { margin-bottom: 16px; font-size: 22px; }
.card h3 { margin-bottom: 12px; font-size: 18px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.page-header h2, .page-header h3 { margin: 0; }

.form-group { margin-bottom: 15px; }
label { display: block; font-weight: 700; margin-bottom: 6px; color: #344054; }

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #cfd7e3;
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31,79,139,.12);
}
textarea { min-height: 105px; resize: vertical; }
small, .small, .muted { display: block; margin-top: 5px; color: var(--muted); }

button, .btn {
    border: none;
    background: var(--primary);
    color: #fff !important;
    padding: 10px 14px;
    border-radius: 7px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    line-height: 1.2;
    font-size: 14px;
}
button:hover, .btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary { background: #6c757d; }
.btn-secondary:hover { background: #5a6268; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #bd2130; }
.form-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

.alert {
    padding: 12px 14px;
    border-radius: 7px;
    margin-bottom: 15px;
    border: 1px solid transparent;
}
.alert-danger { background: #f8d7da; color: #721c24; border-color: #f1b0b7; }
.alert-success { background: #e7f6ec; color: #1f7a3a; border-color: #bce3c9; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.stat-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(225,231,239,.8);
}
.stat-number { font-size: 30px; font-weight: 700; margin-top: 10px; color: var(--primary); }
.stat-number.small { font-size: 22px; }

.filter-form, .inline-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 15px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
}
.filter-form input[type="text"] { min-width: 260px; flex: 1; }
.filter-form select { width: auto; min-width: 180px; }
.inline-form input { width: auto; min-width: 230px; }

.table-responsive { width: 100%; overflow-x: auto; border-radius: var(--radius); }
.data-table, .detail-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.data-table th, .data-table td,
.detail-table th, .detail-table td {
    border: 1px solid var(--line);
    padding: 10px 11px;
    text-align: left;
    vertical-align: top;
}
.data-table th, .detail-table th {
    background: #eef3f8;
    color: #344054;
    font-weight: 700;
}
.data-table tr:nth-child(even) td { background: #fbfcfe; }
.data-table tr:hover td { background: #f3f7fc; }
.detail-table th { width: 220px; }
.text-center { text-align: center; }
.actions { white-space: nowrap; }
.actions a {
    display: inline-block;
    margin-right: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.actions a:hover { text-decoration: underline; }
.actions a.danger, a.danger { color: var(--danger); }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}
.full-width { grid-column: 1 / -1; }
.asset-form { max-width: 100%; }

.status-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #e9ecef;
    color: #344054;
    line-height: 1;
}
.status-aktif, .status-selesai, .status-dipulangkan, .status-dijumpai { background: #d4edda; color: #155724; }
.status-dalam-simpanan, .status-draf, .status-belum-disemak { background: #e2e3e5; color: #383d41; }
.status-dipinjam, .status-dalam-proses { background: #d1ecf1; color: #0c5460; }
.status-rosak, .status-tidak-dijumpai, .status-batal, .status-hilang, .status-dilupuskan { background: #f8d7da; color: #721c24; }
.status-lewat, .status-belum-selesai, .status-lokasi-berbeza, .status-status-berbeza, .status-dalam-pembaikan { background: #fff3cd; color: #856404; }

.upload-form { max-width: 700px; }
.upload-before-save {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 15px;
    background: var(--soft);
}
.pending-file-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 10px;
}
.pending-file-inputs { flex: 1; }
.pending-file-inputs input[type="file"], .pending-file-inputs input[type="text"] { margin-bottom: 8px; }

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.file-grid.compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.file-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 10px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(31, 45, 61, .05);
}
.file-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: #f5f5f5;
}
.doc-icon {
    height: 130px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    color: #555;
}
.file-info { font-size: 13px; margin-top: 8px; line-height: 1.5; }
.file-info span { color: var(--muted); }
.file-actions { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.file-actions a { font-size: 13px; text-decoration: none; font-weight: 600; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    min-height: 41px;
}
.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }
.compact-table select, .compact-table input[type="text"] { min-width: 150px; }

.footer {
    text-align: center;
    font-size: 13px;
    color: #777;
    padding: 15px;
    background: #fff;
    border-top: 1px solid var(--line);
}

@media (max-width: 768px) {
    .layout { display: block; }
    .sidebar { width: 100%; }
    .topbar { display: block; padding: 15px; }
    .user-info { margin-top: 8px; }
    .content { padding: 14px; }
    .page-header, .filter-form, .inline-form { display: block; }
    .filter-form input, .filter-form select, .filter-form button, .filter-form a,
    .inline-form input, .inline-form button, .inline-form a,
    .form-actions .btn, .form-actions button {
        width: 100%;
        margin-bottom: 8px;
    }
    .form-grid { grid-template-columns: 1fr; }
    .pending-file-row { display: block; }
    .pending-file-row .btn-danger { width: 100%; margin-top: 8px; }
    .detail-table th { width: 140px; }
}


.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.report-card p { color: var(--muted); line-height: 1.5; min-height: 44px; }
.report-meta {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 13px;
    margin-bottom: 14px;
}
.report-stats { margin-top: 6px; }
.report-summary-card { margin-bottom: 18px; }

@media print {
    body { background: #fff; font-size: 12px; }
    .topbar, .sidebar, .footer, .no-print, .form-actions { display: none !important; }
    .layout { display: block; min-height: auto; }
    .content { padding: 0; }
    .card { box-shadow: none; border: none; padding: 0; margin-bottom: 16px; }
    .data-table th, .data-table td { padding: 6px; border: 1px solid #999; }
    .data-table th { background: #eee !important; color: #000; }
    .status-badge { border: 1px solid #999; background: #fff !important; color: #000 !important; }
    a { color: #000; text-decoration: none; }
}

/* Phase 9 clean report output */
@media print {
    .topbar, .sidebar, .footer, .no-print, .form-actions, .filter-form, .report-meta {
        display: none !important;
    }
    .layout { display: block !important; min-height: auto !important; }
    .content { padding: 0 !important; margin: 0 !important; }
    .card, .report-print-area, .report-summary-card {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 0 14px 0 !important;
    }
    .page-header { display: block !important; text-align: center !important; margin-bottom: 12px !important; }
    .page-header h2 { font-size: 18px !important; text-transform: uppercase !important; margin: 0 !important; }
    .page-header h3 { font-size: 14px !important; margin: 12px 0 8px 0 !important; }
    .table-responsive { overflow: visible !important; }
    .data-table th, .data-table td { padding: 6px !important; border: 1px solid #999 !important; font-size: 11px !important; }
    .data-table th { background: #e5e7eb !important; color: #000 !important; }
    .status-badge { background: transparent !important; color: #000 !important; padding: 0 !important; font-weight: normal !important; }
}

/* Phase 10: QR Code, Barcode and mobile scanning */
.label-actions { margin-bottom: 14px; }
.scan-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 18px;
    align-items: start;
}
.scan-panel {
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: var(--radius);
    padding: 16px;
}
.scan-panel h3 { margin-top: 0; }
.scanner-box {
    width: 100%;
    min-height: 320px;
    background: #111827;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}
.manual-scan-form input[type="text"] {
    font-size: 18px;
    padding: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.scan-tip {
    margin-top: 16px;
    padding: 13px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    line-height: 1.5;
}
.scan-tip ul { margin: 8px 0 0 18px; padding: 0; }
.asset-scan-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.scan-code-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.scan-code-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: .5px;
}
.action-title { margin-top: 22px; }
.scan-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.scan-action-grid .btn {
    text-align: center;
    padding: 13px 12px;
}
.print-toolbar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: #f1f5f9;
    border-bottom: 1px solid #d7dee8;
    position: sticky;
    top: 0;
    z-index: 10;
}
.label-print-body {
    background: #fff;
    color: #111827;
    font-size: 12px;
}
.label-print-header {
    text-align: center;
    margin: 18px 0 16px;
}
.label-print-header h2 { margin: 0; font-size: 20px; }
.label-print-header p { margin: 5px 0 0; color: #667085; }
.asset-label-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    padding: 0 18px 24px;
}
.asset-label-card {
    border: 1.5px solid #111827;
    border-radius: 8px;
    min-height: 270px;
    padding: 12px;
    text-align: center;
    page-break-inside: avoid;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.asset-label-org {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 7px;
}
.asset-label-code {
    font-size: 18px;
    font-weight: 900;
    border-top: 1px solid #111827;
    border-bottom: 1px solid #111827;
    width: 100%;
    padding: 6px 2px;
    margin-bottom: 7px;
}
.asset-label-name {
    font-size: 12px;
    font-weight: 700;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
}
.asset-label-meta {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    color: #475467;
    font-size: 10px;
    margin-bottom: 8px;
}
.asset-label-meta span {
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    padding: 2px 7px;
}
.qr-box img {
    width: 136px;
    height: 136px;
    object-fit: contain;
    margin: 4px auto;
    display: block;
}
.barcode-box {
    max-width: 100%;
    overflow: hidden;
    margin-top: 4px;
}
.barcode-svg {
    max-width: 100%;
    height: auto;
}
.asset-label-footer {
    margin-top: auto;
    font-size: 10px;
    color: #667085;
    padding-top: 5px;
}

@media (max-width: 768px) {
    .brand { font-size: 18px; }
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 8px;
        gap: 6px;
        background: var(--nav-2);
    }
    .sidebar a {
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 7px;
        padding: 10px 8px;
        font-size: 13px;
        text-align: center;
    }
    .scan-layout { grid-template-columns: 1fr; }
    .scanner-box { min-height: 280px; }
    .mobile-actions .btn, .scan-action-grid .btn, .manual-scan-form button { width: 100%; }
    .scan-code-value { font-size: 22px; word-break: break-word; }
    .asset-scan-summary { display: block; }
    .asset-scan-summary > div { margin-bottom: 10px; }
    .mobile-card-table thead { display: none; }
    .mobile-card-table, .mobile-card-table tbody, .mobile-card-table tr, .mobile-card-table td { display: block; width: 100%; }
    .mobile-card-table tr {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        margin-bottom: 12px;
        background: #fff;
        overflow: hidden;
    }
    .mobile-card-table td {
        border: none !important;
        border-bottom: 1px solid var(--line) !important;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px;
    }
    .mobile-card-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--muted);
        min-width: 90px;
    }
    .mobile-card-table td:last-child { border-bottom: none !important; }
    .asset-label-grid { grid-template-columns: 1fr; padding: 0 8px 18px; }
}

@media print {
    .print-toolbar, .no-print { display: none !important; }
    .label-print-body { background: #fff !important; }
    .label-print-header { margin: 0 0 10px !important; }
    .asset-label-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 9mm !important;
        padding: 0 !important;
    }
    .asset-label-card {
        border: 1.5px solid #000 !important;
        box-shadow: none !important;
        min-height: 70mm;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .qr-box img { width: 34mm; height: 34mm; }
}

/* Phase 10 revision: clear QR / Barcode choice and simple asset labels */
.label-type-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 16px;
}
.label-type-title {
    grid-column: 1 / -1;
    font-weight: 800;
    color: var(--text);
    margin-bottom: -2px;
}
.label-type-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.label-type-card:hover {
    border-color: #84b7ff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .08);
}
.label-type-card input { margin-top: 3px; width: auto; }
.label-type-card span { display: grid; gap: 3px; }
.label-type-card strong { font-size: 14px; color: var(--text); }
.label-type-card small { color: var(--muted); line-height: 1.35; }
.simple-label-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    padding: 14px;
}
.simple-label-card {
    min-height: 220px;
    justify-content: center;
    padding: 12px;
}
.simple-label-card.label-both { min-height: 250px; }
.simple-label-code {
    border: 0;
    border-bottom: 1.5px solid #111827;
    margin-bottom: 12px;
    padding: 0 0 8px;
    font-size: 18px;
    letter-spacing: .6px;
}
.simple-qr-box img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}
.simple-barcode-box {
    width: 100%;
    margin: 4px auto 0;
}
.simple-barcode-box .barcode-svg {
    width: 100%;
    max-height: 78px;
}
.label-both .simple-qr-box img {
    width: 105px;
    height: 105px;
}
.label-both .simple-barcode-box .barcode-svg {
    max-height: 46px;
}
@media (max-width: 768px) {
    .label-type-panel { grid-template-columns: 1fr; }
    .label-type-card { padding: 12px; }
}
@media print {
    .simple-label-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6mm !important;
        padding: 0 !important;
    }
    .simple-label-card {
        min-height: 54mm !important;
        border: 1px solid #000 !important;
        border-radius: 4px !important;
        padding: 5mm !important;
    }
    .simple-label-card.label-both { min-height: 62mm !important; }
    .simple-label-code {
        font-size: 12pt !important;
        margin-bottom: 4mm !important;
        padding-bottom: 2mm !important;
    }
    .simple-qr-box img { width: 35mm !important; height: 35mm !important; }
    .simple-barcode-box .barcode-svg { max-height: 18mm !important; }
    .label-both .simple-qr-box img { width: 25mm !important; height: 25mm !important; }
    .label-both .simple-barcode-box .barcode-svg { max-height: 12mm !important; }
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-success {
    background: #e7f7ee;
    color: #147a3b;
}
.badge-danger {
    background: #fdeaea;
    color: #b42318;
}

.brand-with-logo { display: flex; align-items: center; gap: 10px; }
.topbar-logo { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; }
.settings-logo-preview { max-width: 180px; max-height: 90px; display: block; margin-top: 8px; border: 1px solid var(--line); padding: 8px; border-radius: 8px; background: #fff; }
.settings-help-box { background: #eef6ff; border: 1px solid #cfe3ff; border-radius: var(--radius); padding: 14px; margin-bottom: 16px; color: #24415f; }
/* Phase 14 additional modules */
.status-menunggu { background: #fff3cd; color: #856404; }
.status-diluluskan { background: #d4edda; color: #155724; }
.status-ditolak { background: #f8d7da; color: #721c24; }
.status-berjaya { background: #d4edda; color: #155724; }
.status-gagal { background: #f8d7da; color: #721c24; }
@media (max-width: 768px) {
    .sidebar { width: 100%; display: block; }
    .layout { flex-direction: column; }
    .sidebar a { padding: 11px 16px; }
}


.settings-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 6px 0;
}
.settings-button-group .btn {
    margin: 0;
}

/* Phase 19 dashboard cleanup */
.stat-card.highlight-card {
    border-color: #f5c542;
    background: #fff9e6;
}
.stat-card.highlight-card .stat-number {
    color: #8a5a00;
}

/* Phase 23: Audit scan QR/barcode */
.audit-session-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    margin: 12px 0 18px;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    color: #0f172a;
}
.audit-scan-card .scan-result-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}
.audit-scan-save-form {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    background: #fbfdff;
    border-radius: 10px;
}
.alert-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
}
.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
}
.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
}
@media (max-width: 768px) {
    .audit-session-strip {
        grid-template-columns: 1fr;
    }
    .audit-scan-card .page-header {
        gap: 10px;
    }
}

/* Dashboard clickable cards */
.dashboard-stat-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    cursor: pointer;
}
.dashboard-stat-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
    border-color: rgba(37, 99, 235, .35);
}
.stat-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}
.dashboard-stat-link:hover .stat-hint {
    color: var(--primary);
}
