:root {
    --green: #0f8a63;
    --green2: #12a374;
    --dark: #14201d;
    --navy: #0b2239;
    --gold: #f6c453;
    --primary: #0d6efd;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #0dcaf0;
    --white: #ffffff;
    --muted: #6c757d;
    --bg: #f4f6f8;
    --card: #ffffff;
    --border: #e4e7eb;
    --shadow-sm: 0 1px 2px rgba(20,25,30,.05);
    --shadow: 0 .375rem 1.25rem rgba(20,25,30,.06);
    --shadow-lg: 0 1rem 2.5rem rgba(20,25,30,.10);
    --sidebar-bg: #ffffff;
    --sidebar-border: #e9ecef;
    --sidebar-text: #3d4a52;
    --sidebar-text-muted: #97a3ab;
    --sidebar-hover: #f2f5f4;
    --sidebar-active-bg: #e9f7ef;
    --sidebar-active-text: #0f8a63;
    --radius-sm: 8px;
    --radius: 10px;
    --radius-lg: 14px;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color:#1c2529; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4 { color:#141c1f; letter-spacing:-.01em; }

/* ================= HASIL KEJUARAAN (toolbar & tombol tambah) ================= */
.hasil-toolbar { display:flex; gap:12px; margin-bottom:18px; flex-wrap:wrap; align-items:center; }
.hasil-filter-form { display:flex; gap:10px; flex-wrap:wrap; align-items:center; flex:1; }
.hasil-filter-form input[type="text"] { padding:10px 14px; border:2px solid var(--border); border-radius:10px; font-family:inherit; min-width:200px; flex:1; }
.hasil-filter-form select { padding:10px 14px; border:2px solid var(--border); border-radius:10px; font-family:inherit; }
.hasil-filter-row { display:contents; }
.btn-add-hasil { padding:12px 24px; font-size:14px; display:inline-flex; align-items:center; gap:8px; }

/* ================= LOGIN ================= */
.login-page {
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(160deg,#0b2b21,#0f8a63 65%,#0d7358);
    padding:20px;
}

.login-card {
    background:white;
    padding:40px 35px;
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-lg);
    border:1px solid rgba(255,255,255,.6);
    max-width:400px;
    width:100%;
}

.login-card .logo { text-align:center; margin-bottom:28px; }
.login-card .logo h1 { font-size:26px; font-weight:800; color:var(--dark); }
.login-card .logo small { color:var(--muted); font-size:13px; }
.login-card label { font-weight:600; font-size:13px; color:#495057; display:block; margin-top:16px; margin-bottom:6px; }
.login-card input { width:100%; padding:11px 14px; border:1px solid var(--border); border-radius:var(--radius-sm); font-family:inherit; font-size:14px; transition:.15s; background:#fbfcfd; }
.login-card input:focus { border-color:var(--green); outline:none; background:#fff; box-shadow:0 0 0 .2rem rgba(15,138,99,.15); }
.login-card .btn-login { width:100%; padding:12px; background:var(--green); color:white; border:none; border-radius:var(--radius-sm); font-weight:600; font-size:15px; margin-top:22px; cursor:pointer; transition:.15s; }
.login-card .btn-login:hover { background:var(--green2); box-shadow:0 .5rem 1rem rgba(15,138,99,.25); }
.login-card .btn-login:active { transform:translateY(1px); }

.alert { padding:12px 16px; border-radius:var(--radius-sm); margin-bottom:15px; font-weight:500; font-size:14px; border:1px solid transparent; }
.alert.error { background:#fdeeef; color:#a02734; border-color:#f5c6cb; }
.alert.success { background:#e9f7ef; color:#146c43; border-color:#bbe5cd; }

/* ================= SIDEBAR ================= */
.sidebar {
    position:fixed;
    left:0;
    top:0;
    width:256px;
    height:100vh;
    background:var(--sidebar-bg);
    color:var(--sidebar-text);
    padding:22px 16px;
    overflow-y:auto;
    z-index:1000;
    transition:transform .25s, width .2s;
    border-right:1px solid var(--sidebar-border);
}

.sidebar .brand { display:flex; align-items:center; gap:12px; margin-bottom:28px; padding:0 6px; }
.sidebar .brand .logo-mark { width:38px; height:38px; border-radius:var(--radius-sm); display:grid; place-items:center; background:var(--green); color:white; font-weight:800; font-size:16px; overflow:hidden; flex-shrink:0; }
.sidebar .brand .logo-mark img { width:100%; height:100%; object-fit:contain; padding:3px; background:#fff; border-radius:var(--radius-sm); border:1px solid var(--sidebar-border); }
.sidebar .brand .logo-mark-fallback { display:grid; place-items:center; width:100%; height:100%; }
.sidebar .brand span { font-weight:700; font-size:14px; color:#1c2529; }
.sidebar .brand small { display:block; font-size:9px; color:var(--sidebar-text-muted); letter-spacing:.04em; }
.sidebar .menu-label { font-size:10.5px; text-transform:uppercase; letter-spacing:1.5px; color:var(--sidebar-text-muted); font-weight:700; margin-top:22px; margin-bottom:10px; padding:0 10px; }
.sidebar a { display:flex; align-items:center; gap:11px; padding:9px 10px; border-radius:var(--radius-sm); color:var(--sidebar-text); font-size:13.5px; font-weight:500; transition:.15s; text-decoration:none; margin-bottom:2px; border-left:3px solid transparent; }
.sidebar a:hover { background:var(--sidebar-hover); color:#1c2529; }
.sidebar a.active { background:var(--sidebar-active-bg); color:var(--sidebar-active-text); border-left-color:var(--sidebar-active-text); padding-left:7px; font-weight:700; }
.sidebar a .icon { font-size:17px; width:22px; text-align:center; flex-shrink:0; }
.sidebar .logout-btn { display:flex; align-items:center; gap:8px; margin-top:30px; border-top:1px solid var(--sidebar-border); padding:16px 10px 4px; color:var(--sidebar-text-muted); cursor:pointer; font-size:13.5px; font-weight:500; transition:.15s; }
.sidebar .logout-btn:hover { color:#e03131; }

/* ================= SIDEBAR — GRUP MENU (COLLAPSIBLE) ================= */
.sidebar .menu-group { margin-bottom:2px; }
.sidebar .menu-group-toggle {
    all:unset;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    width:100%;
    cursor:pointer;
    padding:0 10px;
    margin-top:22px;
    margin-bottom:6px;
    border-radius:6px;
}
.sidebar .menu-group-toggle:hover { background:var(--sidebar-hover); }
.sidebar .menu-group-toggle:hover .menu-group-toggle-label { color:#495057; }
.sidebar .menu-group-toggle-label { font-size:10.5px; text-transform:uppercase; letter-spacing:1.5px; font-weight:700; color:var(--sidebar-text-muted); transition:.15s; padding:8px 0; }
.sidebar .menu-group-chevron { margin-left:auto; font-size:9px; color:var(--sidebar-text-muted); transition:transform .2s; }
.sidebar .menu-group.open .menu-group-chevron { transform:rotate(180deg); }
.sidebar .menu-group-toggle .badge-notif { margin-left:8px; }
.sidebar .menu-group-items { display:none; padding-top:4px; }
.sidebar .menu-group.open .menu-group-items { display:block; }

.sidebar.collapsed .menu-group-toggle { display:none; }
.sidebar.collapsed .menu-group-items { display:block !important; padding-top:0; }

/* ================= MAIN ================= */
.main-content { margin-left:256px; padding:24px 28px 60px; transition:margin-left .2s; }
.topbar { display:flex; justify-content:space-between; align-items:center; padding-bottom:18px; border-bottom:1px solid var(--border); margin-bottom:26px; flex-wrap:wrap; gap:15px; }
.topbar h2 { font-size:20px; font-weight:700; }
.topbar .user-badge { display:flex; align-items:center; gap:10px; background:white; padding:6px 16px 6px 6px; border-radius:999px; border:1px solid var(--border); box-shadow:var(--shadow-sm); }
.topbar .user-badge .avatar { width:32px; height:32px; min-width:32px; min-height:32px; flex-shrink:0; border-radius:50%; background:var(--green); color:white; display:grid; place-items:center; font-weight:700; font-size:13px; letter-spacing:0; line-height:1; overflow:hidden; }
.topbar .user-badge .avatar.avatar-foto { background:var(--border); border:1.5px solid rgba(15,138,99,.25); box-shadow:0 1px 3px rgba(15,25,20,.15); }
.topbar .user-badge .avatar.avatar-foto img { width:100%; height:100%; object-fit:cover; object-position:50% 22%; display:block; }
.topbar .user-badge > div:last-child { min-width:0; }
.topbar .user-badge > div:last-child strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:180px; }
.topbar .user-badge strong { font-size:13px; font-weight:600; }

.menu-toggle { display:none; background:none; border:none; font-size:24px; cursor:pointer; padding:6px; color:#1c2529; }

/* ================= CARDS ================= */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:16px; margin-bottom:26px; }
.stat-card { background:white; padding:20px 22px; border-radius:var(--radius); border:1px solid var(--border); box-shadow:var(--shadow-sm); transition:.15s; }
.stat-card:hover { box-shadow:var(--shadow); transform:translateY(-1px); }
.stat-card .stat-number { font-size:28px; font-weight:800; color:var(--dark); line-height:1.15; }
.stat-card .stat-label { color:var(--muted); font-size:12.5px; font-weight:500; margin-top:2px; }

/* ================= TABLES ================= */
.table-wrap { overflow-x:auto; background:white; border-radius:var(--radius); border:1px solid var(--border); box-shadow:var(--shadow-sm); margin-bottom:24px; }
table { width:100%; border-collapse:collapse; min-width:600px; }
th { text-align:left; padding:12px 16px; background:#f8f9fb; color:#6c757d; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; font-weight:700; border-bottom:1px solid var(--border); }
td { padding:12px 16px; border-top:1px solid #f0f1f3; font-size:13.5px; vertical-align:middle; }
tbody tr { transition:.1s; }
tbody tr:hover { background:#f8f9fb; }

.badge-status { display:inline-block; padding:3px 11px; border-radius:999px; font-size:11px; font-weight:600; letter-spacing:.01em; }
.badge-status.pending { background:#fff3cd; color:#8a6d1c; }
.badge-status.verified { background:#e9f7ef; color:#146c43; }
.badge-status.rejected { background:#fdeeef; color:#a02734; }

/* Kolom checkbox pilih & aksi (edit/hapus) di tabel presensi */
.col-check, .col-aksi { text-align:center; }
th.col-aksi, th.col-check { text-align:center; }

.btn-action { padding:6px 13px; border-radius:var(--radius-sm); border:1px solid transparent; font-size:12.5px; font-weight:600; cursor:pointer; transition:.15s; margin:2px; text-decoration:none; display:inline-block; }
.btn-action.success { background:var(--green); color:white; }
.btn-action.success:hover { background:var(--green2); box-shadow:0 .25rem .5rem rgba(15,138,99,.25); }
.btn-action.warning { background:#fff3cd; color:#8a6d1c; border-color:#ffe69c; }
.btn-action.warning:hover { background:var(--gold); color:var(--dark); }
.btn-action.danger { background:#dc3545; color:white; }
.btn-action.danger:hover { background:#c82333; box-shadow:0 .25rem .5rem rgba(220,53,69,.25); }
.btn-action.primary { background:var(--primary); color:white; }
.btn-action.primary:hover { background:#0b5ed7; box-shadow:0 .25rem .5rem rgba(13,110,253,.25); }

/* ================= MODAL ================= */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(20,25,29,.45); backdrop-filter:blur(3px); z-index:2000; align-items:center; justify-content:center; padding:20px; }
.modal-overlay.active { display:flex; }
.modal { background:white; max-width:700px; width:100%; max-height:90vh; overflow-y:auto; border-radius:var(--radius-lg); padding:30px; box-shadow:var(--shadow-lg); animation:modalIn .2s ease; }
@keyframes modalIn { from { transform:scale(.97) translateY(4px); opacity:0; } to { transform:scale(1) translateY(0); opacity:1; } }
.modal .close-modal { float:right; background:none; border:none; font-size:24px; cursor:pointer; color:var(--muted); line-height:1; }
.modal .close-modal:hover { color:#1c2529; }
.modal h3 { margin-bottom:20px; font-size:19px; font-weight:700; }
.modal label { display:block; font-weight:600; font-size:12.5px; margin-top:14px; margin-bottom:5px; color:#495057; }
.modal input, .modal select, .modal textarea { width:100%; padding:10px 13px; border:1px solid var(--border); border-radius:var(--radius-sm); font-family:inherit; font-size:14px; transition:.15s; background:#fbfcfd; }
.modal input:focus, .modal select:focus, .modal textarea:focus { border-color:var(--green); outline:none; background:#fff; box-shadow:0 0 0 .2rem rgba(15,138,99,.15); }
.modal .form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.modal .form-section-title { margin-top:24px; padding-bottom:7px; margin-bottom:2px; border-bottom:1px solid var(--border); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--green); display:flex; align-items:center; gap:6px; }
.modal .form-section-title:first-child { margin-top:0; }
.modal .form-hint { display:block; font-size:11px; color:var(--muted); margin-top:4px; }
.modal .btn-submit { width:100%; padding:12px; background:var(--green); color:white; border:none; border-radius:var(--radius-sm); font-weight:600; font-size:15px; margin-top:22px; cursor:pointer; transition:.15s; }
.modal .btn-submit:hover { background:var(--green2); box-shadow:0 .5rem 1rem rgba(15,138,99,.25); }

/* ================= KARTU (ID CARD PROFESIONAL, 64.4mm x 106.9mm) ================= */
.kartu-container { background:white; padding:20px; border-radius:var(--radius); border:1px solid var(--border); box-shadow:var(--shadow-sm); margin-top:15px; display:flex; flex-direction:column; align-items:center; }
.kartu {
    width:64.4mm; height:106.9mm; margin:0 auto;
    background:linear-gradient(180deg,#ffffff 0%,#f6faf8 100%);
    border-radius:3mm; border:0.3mm solid var(--border);
    position:relative; overflow:hidden;
    display:flex; flex-direction:column;
    box-shadow:var(--shadow-lg);
}
.kartu .pita-atas {
    flex-shrink:0; height:25mm; position:relative; color:#fff;
    background:linear-gradient(135deg,var(--green) 0%, #087f5b 55%, var(--navy) 100%);
    display:flex; flex-direction:column; align-items:center; justify-content:flex-start; padding-top:1.6mm;
}
.kartu .pita-atas::after { content:''; position:absolute; left:0; right:0; bottom:0; height:1mm; background:var(--gold); }
.kartu .pita-atas .logo-row { display:flex; align-items:center; justify-content:center; gap:1.3mm; margin-bottom:.8mm; position:relative; z-index:3; }
.kartu .pita-atas .logo-mini { height:7.5mm; width:auto; max-width:16mm; object-fit:contain; background:#fff; border-radius:1mm; padding:.4mm; }
.kartu .brand-kartu { display:flex; flex-direction:column; align-items:center; line-height:1.15; position:relative; z-index:3; }
.kartu .brand-nama { font-size:8.5pt; font-weight:800; letter-spacing:.4px; }
.kartu .brand-sub { font-size:5pt; letter-spacing:.8px; opacity:.9; margin-top:.3mm; }
.kartu .foto-kartu {
    width:21mm; height:21mm; border-radius:50%; background:var(--border);
    border:0.8mm solid var(--gold); margin:-7.5mm auto 0; overflow:hidden;
    position:relative; z-index:2; flex-shrink:0;
    display:grid; place-items:center; font-size:9mm; box-shadow:0 2px 6px rgba(0,0,0,.25);
}
.kartu .foto-kartu img { width:100%; height:100%; object-fit:cover; }
.kartu .info-kartu { flex:1; min-height:0; display:flex; flex-direction:column; align-items:center; text-align:center; padding:1.5mm 3mm 0; }
.kartu .info-kartu .label-jenjang {
    font-size:5.3pt; font-weight:700; color:var(--green); letter-spacing:.6px;
    background:#eaf6f1; border:0.25mm solid #b7e4d1; border-radius:4mm; padding:.5mm 2.2mm; margin-top:.8mm;
}
.kartu .info-kartu h4 { font-size:8.8pt; font-weight:800; margin:1.3mm 0 .4mm; color:var(--navy); text-transform:uppercase; line-height:1.15; }
.kartu .info-kartu .madrasah { font-size:6.4pt; font-weight:600; color:#33453f; margin:.3mm 0; line-height:1.2; }
.kartu .info-kartu .lokasi { font-size:5.8pt; color:var(--muted); margin:.3mm 0; }
.kartu .badge-cabang { display:inline-block; margin-top:1.5mm; padding:.9mm 3mm; background:var(--navy); color:var(--gold); border-radius:5mm; font-size:6.4pt; font-weight:800; letter-spacing:.3px; }
.kartu .info-kartu .nisn { font-size:5.3pt; color:#9aa9a5; margin-top:1.5mm; }
.kartu .pita-bawah { flex-shrink:0; background:var(--navy); padding:2mm 3mm; display:flex; align-items:center; gap:2.2mm; }
.kartu .qr-kartu { width:22mm; height:22mm; background:#fff; border-radius:1mm; padding:.6mm; flex-shrink:0; }
.kartu .qr-kartu canvas, .kartu .qr-kartu img { width:100% !important; height:100% !important; display:block; }
.kartu .id-blok { color:#fff; flex:1; min-width:0; }
.kartu .id-blok .id-label { display:block; font-size:4.6pt; color:#9fb8ad; letter-spacing:.6px; }
.kartu .id-blok .id-nilai { display:block; font-size:7pt; font-weight:800; word-break:break-all; margin:.3mm 0; }
.kartu .id-blok .scan-txt { display:block; font-size:4.4pt; color:#9fb8ad; line-height:1.2; }
.btn-print { display:block; width:100%; max-width:64.4mm; padding:11px; background:var(--gold); color:var(--dark); border:none; border-radius:var(--radius-sm); font-weight:700; margin-top:15px; cursor:pointer; transition:.15s; }
.btn-print:hover { box-shadow:0 .375rem .875rem rgba(246,196,83,.4); }

/* ================= SERTIFIKAT (pratinjau di layar) =================
   Pratinjau dirender di dalam <iframe> memakai HTML+CSS yang PERSIS SAMA
   dengan admin/includes/sertifikat_style.php (dipakai jendela cetak),
   lalu diskalakan dengan transform:scale. Ini sengaja dibuat begitu
   supaya pratinjau tidak pernah "meleset" dari hasil cetak A4 landscape —
   dulu ada CSS pratinjau terpisah yang tidak lengkap (elemen dekoratif
   seperti untaian laurel tidak dikenal ukurannya) sehingga tampil meluber
   keluar bingkai; sekarang sumbernya cuma satu. */
.sertifikat-container { background:#e9edeb; padding:20px; border-radius:var(--radius); border:1px solid var(--border); box-shadow:var(--shadow-sm); margin-top:15px; display:flex; flex-direction:column; align-items:center; }
.sert-preview-frame-wrap { width:100%; max-width:900px; aspect-ratio: 297 / 210; background:#fff; box-shadow:var(--shadow-lg); overflow:hidden; position:relative; }
.sert-preview-frame {
    display:block; border:0; background:#fff;
    width:1122.52px; height:793.7px;
    transform-origin: top left;
}

/* ================= TOAST ================= */
.toast { position:fixed; bottom:26px; right:26px; background:var(--dark); color:white; padding:14px 20px; border-radius:var(--radius-sm); box-shadow:var(--shadow-lg); z-index:3000; transform:translateY(120px); opacity:0; transition:.3s; max-width:380px; font-size:13.5px; }
.toast.show { transform:translateY(0); opacity:1; }
.toast.success { border-left:3px solid var(--green2); }
.toast.error { border-left:3px solid #dc3545; }
.toast.warning { border-left:3px solid #ffc107; }

/* ================= GRID 2 KOLOM (dipakai di dashboard, kabupaten, klasemen) ================= */
.grid-2col { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:20px; }

/* ================= RESPONSIVE ================= */
/* ---- TABLET & DIBAWAHNYA: sidebar jadi overlay ---- */
@media(max-width:992px) {
    .sidebar { transform:translateX(-100%); width:256px; max-width:85vw; }
    .sidebar.open { transform:translateX(0); box-shadow:0 0 0 100vmax rgba(20,25,29,.35); }
    .sidebar.collapsed { width:256px; padding:22px 16px; }
    .sidebar.collapsed .brand-text,
    .sidebar.collapsed .menu-label,
    .sidebar.collapsed a span:not(.icon),
    .sidebar.collapsed .logout-btn span,
    .sidebar.collapsed .badge-notif { display:initial !important; }
    .sidebar.collapsed .menu-group-toggle { display:flex; }
    .sidebar.collapsed a { justify-content:flex-start; padding:9px 10px; }
    .sidebar-collapse-btn { display:none; }
    .main-content, .main-content.sidebar-collapsed { margin-left:0; padding:18px; }
    .menu-toggle { display:block; }
    .modal .form-row { grid-template-columns:1fr; }
    .grid-2col { grid-template-columns:1fr; gap:14px; }
}

/* ---- TABLET KECIL / PHONE LANDSCAPE ---- */
@media(max-width:768px) {
    .main-content { padding:16px; padding-bottom:70px; }
    .topbar { flex-direction:column; align-items:stretch; gap:10px; margin-bottom:18px; }
    .topbar h2 { font-size:17px; }
    .topbar-notif-wrap { width:100%; }
    .topbar-notif { width:100%; justify-content:center; }
    .user-badge { align-self:flex-start; }
    table { min-width:520px; }
    th, td { padding:10px 12px; font-size:12.5px; }
    .modal { padding:22px; max-width:94vw; }
    .kartu-container { padding:14px; }

    /* ---- Hasil Kejuaraan: tabel jadi kartu, tombol tambah jadi FAB ---- */
    .hasil-toolbar { gap:10px; }
    .hasil-filter-form { flex-direction:column; align-items:stretch; }
    .hasil-filter-form input[type="text"] { width:100%; }
    .hasil-filter-row { display:flex; gap:8px; width:100%; }
    .hasil-filter-row > * { flex:1; min-width:0; text-align:center; }

    .btn-add-hasil {
        position:fixed;
        right:18px; bottom:20px;
        z-index:600;
        width:58px; height:58px;
        padding:0;
        border-radius:50%;
        display:flex; align-items:center; justify-content:center;
        box-shadow:0 .5rem 1.25rem rgba(15,138,99,.4);
    }
    .btn-add-hasil .fab-icon { font-size:23px; }
    .btn-add-hasil .fab-text { display:none; }
    .main-content.has-bottom-nav .btn-add-hasil { bottom:96px; }

    .table-wrap-cards { overflow-x:visible; background:transparent; border:none; box-shadow:none; margin-bottom:14px; }
    .table-wrap-cards::after { content:none !important; display:none !important; }
    .table-hasil { min-width:0; }
    .table-hasil thead { display:none; }
    .table-hasil, .table-hasil tbody, .table-hasil tr, .table-hasil td { display:block; width:100%; }
    .table-hasil tbody tr {
        background:#fff;
        border:1px solid var(--border);
        border-radius:var(--radius-lg);
        margin-bottom:12px;
        padding:14px 16px;
        box-shadow:var(--shadow-sm);
    }
    .table-hasil tbody tr:hover { background:#fff; }
    .table-hasil td { border-top:none; padding:7px 0; font-size:13px; }
    .table-hasil td:nth-child(1) { padding:0 0 10px; margin-bottom:6px; border-bottom:1px solid #f0f1f3; }
    .table-hasil td:nth-child(1) strong { font-size:15px; }
    .table-hasil td:nth-child(n+2):nth-child(-n+7) {
        display:flex; justify-content:space-between; align-items:center; gap:10px;
        border-bottom:1px dashed #f0f1f3;
    }
    .table-hasil td:nth-child(7) { border-bottom:none; }
    .table-hasil td:nth-child(n+2):nth-child(-n+7)::before {
        content: attr(data-label);
        font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); flex-shrink:0;
    }
    .table-hasil td:nth-child(8) {
        padding:12px 0 0; margin-top:6px; border-top:1px solid #f0f1f3;
        display:flex; justify-content:flex-end; gap:6px;
    }
    .table-hasil td:nth-child(8) .btn-action { flex:1; text-align:center; padding:9px 6px; font-size:14px; margin:0; }
    .table-hasil td.table-empty-cell {
        border:none !important; padding:36px 8px !important; text-align:center;
    }
}

/* ---- PHONE ---- */
@media(max-width:600px) {
    .stats-grid { grid-template-columns:1fr 1fr; gap:10px; }
    .stat-card { padding:15px 16px; }
    .stat-card .stat-number { font-size:22px; }
    .modal { padding:18px; border-radius:var(--radius); }
    .modal h3 { font-size:16.5px; }
    .btn-action { padding:7px 12px; font-size:12px; }
    .table-wrap { border-radius:var(--radius-sm); margin-bottom:18px; }
    .toast { left:12px; right:12px; bottom:14px; max-width:none; }
    .sidebar .brand span { font-size:13px; }
}

/* ---- PHONE KECIL (<=420px) ---- */
@media(max-width:420px) {
    .stats-grid { grid-template-columns:1fr; }
    .sidebar { width:88vw; max-width:320px; }
    .topbar h2 { font-size:16px; }
    .kartu { transform:scale(.92); transform-origin:top center; }
}

/* ---- Indikator scroll horizontal untuk tabel di layar sempit ---- */
@media(max-width:992px) {
    .table-wrap { position:relative; }
    .table-wrap::after {
        content:'⇠ geser untuk lihat lebih ⇢';
        display:block;
        text-align:center;
        font-size:10.5px;
        color:var(--muted);
        padding:6px 0 8px;
        background:#f8f9fb;
        border-top:1px dashed var(--border);
    }
}

/* ================= BOTTOM NAV (MOBILE, GAYA APP HP) ================= */
.bottom-nav {
    display:none;
    position:fixed;
    left:0; right:0; bottom:0;
    z-index:1500;
    background:#fff;
    border-top:1px solid var(--border);
    box-shadow:0 -2px 14px rgba(20,25,30,.08);
    padding:6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}
.bottom-nav-inner { display:flex; align-items:flex-end; justify-content:space-around; max-width:520px; margin:0 auto; }
.bottom-nav a {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
    gap:3px;
    flex:1;
    padding:6px 2px 4px;
    text-decoration:none;
    color:var(--muted);
    font-size:10.5px;
    font-weight:600;
    text-align:center;
    transition:.15s;
}
.bottom-nav a .bn-icon { font-size:20px; line-height:1; }
.bottom-nav a.active { color:var(--green); }
.bottom-nav a:active { opacity:.7; }

/* Tombol Scan menonjol di tengah, mirip tombol scan Gojek/GoPay/DANA */
.bottom-nav a.bn-scan { margin-top:-26px; flex:0 0 auto; width:64px; }
.bottom-nav a.bn-scan .bn-icon {
    width:54px; height:54px;
    border-radius:50%;
    background:linear-gradient(160deg,var(--green2),var(--green));
    color:#fff;
    display:grid;
    place-items:center;
    font-size:24px;
    box-shadow:0 6px 16px rgba(15,138,99,.45);
    border:4px solid #fff;
}
.bottom-nav a.bn-scan .bn-label { color:var(--green); font-weight:800; }
.bottom-nav a.bn-scan:active .bn-icon { transform:scale(.94); }

@media(max-width:992px) {
    .bottom-nav.active { display:block; }
    .main-content.has-bottom-nav { padding-bottom:88px; }
}
/* ================= SIDEBAR COLLAPSE (DESKTOP) ================= */
.sidebar-collapse-btn {
    margin-left:auto;
    background:var(--sidebar-hover);
    border:1px solid var(--sidebar-border);
    color:var(--sidebar-text-muted);
    border-radius:6px;
    width:22px;
    height:22px;
    cursor:pointer;
    font-size:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    transition:.15s;
    line-height:1;
}
.sidebar-collapse-btn:hover { background:#e9ecef; color:#1c2529; }

.sidebar.collapsed {
    width:68px;
    padding:22px 10px;
}
.sidebar.collapsed .brand-text,
.sidebar.collapsed .menu-label,
.sidebar.collapsed a span:not(.icon),
.sidebar.collapsed .logout-btn span,
.sidebar.collapsed .badge-notif {
    display:none !important;
}
.sidebar.collapsed .brand { justify-content:center; }
.sidebar.collapsed .sidebar-collapse-btn { margin-left:0; }
.sidebar.collapsed a { justify-content:center; padding:10px; border-left:none; }
.sidebar.collapsed a.active { padding-left:10px; }
.sidebar.collapsed a .icon { width:auto; margin:0; }
.sidebar.collapsed .logout-btn { justify-content:center; padding-top:16px; font-size:18px; }

.main-content.sidebar-collapsed { margin-left:68px; }

/* ================= BADGE NOTIFIKASI ================= */
.badge-notif {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-left:auto;
    background:#dc3545;
    color:white;
    border-radius:999px;
    padding:1px 7px;
    font-size:10px;
    font-weight:700;
    min-width:18px;
    line-height:1.4;
}

/* ================= NOTIFIKASI VERIFIKASI DISETUJUI ================= */
.notif-verified-banner {
    display:flex;
    align-items:flex-start;
    gap:14px;
    background:#e9f7ef;
    color:#146c43;
    border:1px solid #bbe5cd;
    border-left:3px solid var(--green2);
    border-radius:var(--radius);
    padding:16px 18px;
    margin-bottom:18px;
    position:relative;
    box-shadow:var(--shadow-sm);
    animation: slide-down .3s ease;
}
@keyframes slide-down {
    from { opacity:0; transform:translateY(-10px); }
    to   { opacity:1; transform:translateY(0); }
}
.notif-verified-icon { font-size:24px; flex-shrink:0; line-height:1; }
.notif-verified-banner strong { font-size:14px; }
.notif-verified-banner small { opacity:.85; font-size:12px; }
.notif-verified-close {
    margin-left:auto;
    flex-shrink:0;
    background:none;
    border:none;
    font-size:20px;
    color:#146c43;
    cursor:pointer;
    opacity:.55;
    line-height:1;
    padding:0 4px;
}
.notif-verified-close:hover { opacity:1; }

/* ================= TOPBAR STATUS BADGE OPERATOR ================= */
.topbar-notif-wrap { display:flex; align-items:center; }
.topbar-notif {
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:5px 13px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
    text-decoration:none;
    border:1px solid transparent;
}
.topbar-notif.verified {
    background:#e9f7ef;
    color:#146c43;
    border-color:#bbe5cd;
}
.topbar-notif.rejected {
    background:#fdeeef;
    color:#a02734;
    border-color:#f5c6cb;
}
.topbar-notif.pending {
    background:#fff3cd;
    color:#8a6d1c;
    border-color:#ffe69c;
}

/* ================================================================
   TIM IT DASHBOARD — TAMPILAN GAYA APLIKASI SCAN MOBILE
   ================================================================ */
.ti-wrap { max-width:640px; margin:0 auto; }

/* ---- HERO / GREETING CARD ---- */
.ti-hero {
    position:relative;
    overflow:hidden;
    border-radius:var(--radius-lg);
    padding:22px 22px 20px;
    margin-bottom:16px;
    color:#fff;
    background:linear-gradient(150deg,#0b2b21 0%, var(--green) 62%, #0d7358 100%);
    box-shadow:var(--shadow-lg);
    display:flex;
    align-items:center;
    gap:14px;
}
.ti-hero::before {
    content:'';
    position:absolute;
    right:-40px; top:-60px;
    width:180px; height:180px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(246,196,83,.20) 0%, rgba(246,196,83,0) 70%);
}
.ti-hero::after {
    content:'';
    position:absolute;
    left:-30px; bottom:-50px;
    width:140px; height:140px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 70%);
}
.ti-hero-avatar {
    position:relative;
    z-index:1;
    flex-shrink:0;
    width:56px; height:56px;
    border-radius:50%;
    border:2.5px solid rgba(255,255,255,.55);
    background:rgba(255,255,255,.14);
    display:flex; align-items:center; justify-content:center;
    font-size:22px; font-weight:800;
    overflow:visible;
    cursor:pointer;
    transition:transform .15s ease, border-color .15s ease;
}
.ti-hero-avatar:hover { transform:scale(1.04); border-color:rgba(255,255,255,.85); }
.ti-hero-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 22%; border-radius:50%; }
.ti-hero-avatar-edit {
    position:absolute;
    right:-3px; bottom:-3px;
    width:22px; height:22px;
    display:flex; align-items:center; justify-content:center;
    font-size:11px;
    background:var(--gold);
    color:#3a2b00;
    border:2px solid var(--green);
    border-radius:50%;
    box-shadow:0 2px 5px rgba(0,0,0,.35);
}
.ti-hero-text { position:relative; z-index:1; min-width:0; }
.ti-hero-text .ti-greet { font-size:11.5px; font-weight:600; letter-spacing:.03em; color:rgba(255,255,255,.78); text-transform:uppercase; }
.ti-hero-text h2 { color:#fff; font-size:18px; font-weight:800; margin:2px 0 6px; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ti-hero-badges { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ti-hero-role {
    display:inline-flex; align-items:center; gap:5px;
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.28);
    padding:3px 10px; border-radius:999px;
    font-size:11px; font-weight:700;
}
.ti-hero-date { font-size:11px; color:rgba(255,255,255,.75); }

/* ---- SCAN CTA (tombol utama, ala aplikasi scan mobile) ---- */
.ti-scan-cta {
    display:flex; align-items:center; gap:16px;
    text-decoration:none;
    background:linear-gradient(135deg, var(--navy) 0%, #123a2c 100%);
    color:#fff;
    border-radius:var(--radius-lg);
    padding:18px 20px;
    margin-bottom:18px;
    box-shadow:0 10px 24px rgba(11,34,57,.28);
    position:relative;
    overflow:hidden;
    transition:.15s;
}
.ti-scan-cta:active { transform:scale(.985); }
.ti-scan-cta-icon {
    flex-shrink:0;
    width:56px; height:56px;
    border-radius:16px;
    background:linear-gradient(160deg,var(--gold),#e0a92f);
    display:grid; place-items:center;
    font-size:26px;
    box-shadow:0 6px 14px rgba(246,196,83,.35);
    animation:ti-pulse 2.4s ease-in-out infinite;
}
@keyframes ti-pulse {
    0%, 100% { box-shadow:0 6px 14px rgba(246,196,83,.35); }
    50% { box-shadow:0 6px 22px rgba(246,196,83,.6); }
}
.ti-scan-cta-text { flex:1; min-width:0; }
.ti-scan-cta-text strong { display:block; font-size:16.5px; font-weight:800; margin-bottom:2px; }
.ti-scan-cta-text span { display:block; font-size:12px; color:rgba(255,255,255,.72); line-height:1.4; }
.ti-scan-cta-arrow { flex-shrink:0; font-size:22px; color:var(--gold); }

/* ---- STAT ROW (statistik scan hari ini) ---- */
.ti-stats-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:18px; }
.ti-stat {
    background:#fff; border:1px solid var(--border); border-radius:var(--radius);
    padding:14px 10px; text-align:center; box-shadow:var(--shadow-sm);
}
.ti-stat .ti-stat-num { font-size:22px; font-weight:800; color:var(--dark); line-height:1.1; }
.ti-stat .ti-stat-lbl { font-size:10.5px; font-weight:600; color:var(--muted); margin-top:4px; letter-spacing:.01em; }
.ti-stat.ok .ti-stat-num { color:#146c43; }
.ti-stat.bad .ti-stat-num { color:#a02734; }

/* ---- SECTION TITLE ---- */
.ti-section-title { display:flex; align-items:center; justify-content:space-between; margin:22px 0 10px; }
.ti-section-title h3 { font-size:14.5px; font-weight:800; color:#1c2529; }
.ti-section-title a { font-size:12px; font-weight:700; color:var(--green); text-decoration:none; white-space:nowrap; }
.ti-section-title a:hover { text-decoration:underline; }

/* ---- QUICK ACTIONS GRID ---- */
.ti-quick-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:6px; }
.ti-quick-card {
    display:flex; flex-direction:column; align-items:center; gap:8px;
    text-decoration:none;
    background:#fff; border:1px solid var(--border); border-radius:var(--radius);
    padding:16px 8px 14px;
    box-shadow:var(--shadow-sm);
    transition:.15s;
    text-align:center;
}
.ti-quick-card:hover { box-shadow:var(--shadow); transform:translateY(-1px); border-color:#d5ded9; }
.ti-quick-card:active { transform:scale(.97); }
.ti-quick-card .ti-quick-icon {
    width:42px; height:42px; border-radius:12px;
    display:grid; place-items:center; font-size:20px;
    background:#eaf6f1; color:var(--green);
}
.ti-quick-card .ti-quick-label { font-size:11.5px; font-weight:700; color:#1c2529; line-height:1.25; }

/* ---- PROGRESS CARD (input hasil kejuaraan) ---- */
.ti-progress-card {
    background:#fff; border:1px solid var(--border); border-radius:var(--radius);
    padding:16px 18px; box-shadow:var(--shadow-sm); margin-bottom:6px;
    text-decoration:none; display:block; color:inherit; transition:.15s;
}
.ti-progress-card:hover { box-shadow:var(--shadow); }
.ti-progress-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; gap:10px; }
.ti-progress-head strong { font-size:13.5px; font-weight:800; color:#1c2529; }
.ti-progress-head span { font-size:12px; font-weight:700; color:var(--green); white-space:nowrap; }
.ti-progress-bar { height:8px; border-radius:999px; background:#eef2f0; overflow:hidden; }
.ti-progress-bar-fill { height:100%; border-radius:999px; background:linear-gradient(90deg,var(--green2),var(--green)); transition:width .4s ease; }
.ti-progress-foot { display:flex; justify-content:space-between; margin-top:8px; font-size:11px; color:var(--muted); }

/* ---- ACTIVITY LIST ---- */
.ti-activity-list { display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }
.ti-activity-item {
    display:flex; align-items:center; gap:12px;
    background:#fff; border:1px solid var(--border); border-radius:var(--radius);
    padding:11px 14px; box-shadow:var(--shadow-sm);
}
.ti-activity-icon {
    flex-shrink:0; width:38px; height:38px; border-radius:50%;
    display:grid; place-items:center; font-size:16px;
    background:#eaf6f1; color:var(--green);
}
.ti-activity-icon.invalid { background:#fdeeef; color:#a02734; }
.ti-activity-body { flex:1; min-width:0; }
.ti-activity-body strong { display:block; font-size:13px; font-weight:700; color:#1c2529; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ti-activity-body small { display:block; font-size:11px; color:var(--muted); margin-top:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ti-activity-meta { flex-shrink:0; text-align:right; }
.ti-activity-meta .ti-activity-time { display:block; font-size:10.5px; color:var(--muted); margin-bottom:4px; white-space:nowrap; }

/* ---- EMPTY STATE ---- */
.ti-empty {
    text-align:center; padding:34px 20px;
    background:#fff; border:1px dashed var(--border); border-radius:var(--radius);
    color:var(--muted);
}
.ti-empty .ti-empty-icon { font-size:34px; margin-bottom:8px; }
.ti-empty strong { display:block; font-size:13.5px; color:#1c2529; margin-bottom:3px; }
.ti-empty span { font-size:12px; }

/* ---- RESPONSIVE: MOBILE ---- */
@media(max-width:600px) {
    .ti-hero { padding:20px 18px 18px; }
    .ti-hero-text h2 { font-size:16.5px; }
    .ti-scan-cta { padding:16px 16px; }
    .ti-scan-cta-icon { width:50px; height:50px; font-size:22px; }
    .ti-quick-grid { grid-template-columns:repeat(3,1fr); gap:8px; }
    .ti-quick-card { padding:13px 4px 11px; }
    .ti-quick-card .ti-quick-icon { width:36px; height:36px; font-size:17px; }
    .ti-quick-card .ti-quick-label { font-size:10.5px; }
}

/* Desktop: dashboard Tim IT tetap nyaman dibaca meski sidebar tampil */
@media(min-width:993px) {
    .ti-wrap { max-width:680px; }
}

/* ================= NOTIFIKASI ULANG TAHUN (Panitia PORSENI Tk. Provinsi) ================= */
.birthday-modal-overlay {
    display:none; position:fixed; inset:0; z-index:3000;
    align-items:center; justify-content:center; padding:20px;
    background:rgba(11,34,25,.55); backdrop-filter:blur(4px);
    animation:bday-fade-in .25s ease;
}
.birthday-modal-overlay.active { display:flex; }
@keyframes bday-fade-in { from{opacity:0;} to{opacity:1;} }

.birthday-modal {
    position:relative; width:100%; max-width:380px;
    background:linear-gradient(165deg,#ffffff, #fff9ec 70%);
    border-radius:22px; padding:34px 28px 28px;
    text-align:center; overflow:hidden;
    border:1px solid #ffe8ad;
    box-shadow:0 30px 70px rgba(20,25,30,.35), 0 0 0 6px rgba(246,196,83,.18);
    animation:bday-pop-in .45s cubic-bezier(.22,1,.36,1) both;
}
@keyframes bday-pop-in {
    from { opacity:0; transform:translateY(24px) scale(.92); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}

.birthday-modal-confetti {
    position:absolute; inset:0; overflow:hidden; pointer-events:none;
}
.birthday-modal-confetti span {
    position:absolute; top:-30px; font-size:22px; opacity:.9;
    animation:bday-confetti-fall 3.6s linear infinite;
}
.birthday-modal-confetti span:nth-child(1) { left:6%;  animation-delay:0s;    font-size:20px; }
.birthday-modal-confetti span:nth-child(2) { left:22%; animation-delay:.5s;  font-size:26px; }
.birthday-modal-confetti span:nth-child(3) { left:42%; animation-delay:1s;   font-size:18px; }
.birthday-modal-confetti span:nth-child(4) { left:62%; animation-delay:.3s;  font-size:24px; }
.birthday-modal-confetti span:nth-child(5) { left:80%; animation-delay:1.3s; font-size:20px; }
.birthday-modal-confetti span:nth-child(6) { left:92%; animation-delay:.8s;  font-size:22px; }
@keyframes bday-confetti-fall {
    0%   { transform:translateY(-40px) rotate(0deg);   opacity:0; }
    10%  { opacity:1; }
    100% { transform:translateY(340px) rotate(340deg); opacity:0; }
}

.birthday-modal-close {
    position:absolute; top:12px; right:14px; z-index:2;
    background:rgba(20,25,29,.06); border:none; border-radius:50%;
    width:30px; height:30px; font-size:19px; line-height:1; color:#6c757d;
    cursor:pointer; transition:.15s;
}
.birthday-modal-close:hover { background:rgba(20,25,29,.12); color:#1c2529; }

.birthday-modal-cake {
    position:relative; z-index:1; font-size:56px; line-height:1; margin-bottom:6px;
    animation:bday-cake-bounce 1.8s ease-in-out infinite;
}
@keyframes bday-cake-bounce {
    0%,100% { transform:translateY(0) rotate(0deg); }
    50%     { transform:translateY(-8px) rotate(-4deg); }
}

.birthday-modal h3 {
    position:relative; z-index:1; margin:6px 0 12px; font-size:19px; font-weight:800;
    color:#0b241c;
}
.birthday-modal p {
    position:relative; z-index:1; font-size:13.5px; line-height:1.7; color:#4a5b56; margin:0;
}
.birthday-modal p strong { color:var(--green, #0f8a63); }

.birthday-modal-btn {
    position:relative; z-index:1; margin-top:22px; padding:12px 26px; border:none; border-radius:12px;
    font-weight:700; font-size:14px; color:#0b241c; cursor:pointer;
    background:linear-gradient(95deg, var(--gold, #f6c453), #f0b93f);
    box-shadow:0 10px 24px rgba(246,196,83,.4);
    transition:transform .2s, box-shadow .2s;
}
.birthday-modal-btn:hover { transform:translateY(-2px); box-shadow:0 14px 30px rgba(246,196,83,.5); }
.birthday-modal-btn:active { transform:translateY(0); }

@media (max-width:420px) {
    .birthday-modal { padding:28px 20px 24px; border-radius:18px; }
    .birthday-modal-cake { font-size:48px; }
    .birthday-modal h3 { font-size:17px; }
}

/* ================= DASHBOARD ADMIN — INFORMATIF & DINAMIS ================= */
/* Fade-in-up beruntun untuk tiap section dashboard */
.dash-fade { animation: dashFadeUp .55s cubic-bezier(.22,1,.36,1) both; }
.dash-fade:nth-of-type(1) { animation-delay: .02s; }
.dash-fade:nth-of-type(2) { animation-delay: .08s; }
.dash-fade:nth-of-type(3) { animation-delay: .14s; }
.dash-fade:nth-of-type(4) { animation-delay: .20s; }
.dash-fade:nth-of-type(5) { animation-delay: .26s; }
@keyframes dashFadeUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }

/* Stat card dengan ikon & aksen warna kiri, muncul beruntun */
.stat-card.dash-stat { position:relative; overflow:hidden; padding-top:18px; }
.stat-card.dash-stat::before {
    content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--accent, var(--green));
}
.stat-card.dash-stat .stat-card-top { display:flex; justify-content:flex-end; margin-bottom:4px; }
.stat-card.dash-stat .stat-icon {
    width:34px; height:34px; border-radius:10px; display:grid; place-items:center; font-size:16px; flex-shrink:0;
}
.stats-grid.dash-fade .stat-card:nth-child(1) { animation: dashFadeUp .5s .04s cubic-bezier(.22,1,.36,1) both; }
.stats-grid.dash-fade .stat-card:nth-child(2) { animation: dashFadeUp .5s .09s cubic-bezier(.22,1,.36,1) both; }
.stats-grid.dash-fade .stat-card:nth-child(3) { animation: dashFadeUp .5s .14s cubic-bezier(.22,1,.36,1) both; }
.stats-grid.dash-fade .stat-card:nth-child(4) { animation: dashFadeUp .5s .19s cubic-bezier(.22,1,.36,1) both; }
.stats-grid.dash-fade .stat-card:nth-child(5) { animation: dashFadeUp .5s .24s cubic-bezier(.22,1,.36,1) both; }
.stats-grid.dash-fade .stat-card:nth-child(6) { animation: dashFadeUp .5s .29s cubic-bezier(.22,1,.36,1) both; }

/* Kartu generik dashboard (progress, countdown, chart, klasemen, dst) */
.dash-card { background:white; border-radius:var(--radius); border:1px solid var(--border); padding:22px; box-shadow:var(--shadow-sm); transition:box-shadow .2s, transform .2s; }
.dash-card:hover { box-shadow:var(--shadow); }
.dash-card-title { margin-bottom:16px; font-size:14.5px; }
.dash-card-note { margin-top:12px; color:var(--muted); font-size:12.5px; text-align:center; }
.dash-empty { color:var(--muted); font-size:13px; padding:20px 0; text-align:center; }
.dash-link-more { display:inline-block; margin-top:14px; font-size:12.5px; font-weight:600; color:var(--green); text-decoration:none; }
.dash-link-more:hover { text-decoration:underline; }

.dash-row-3 { display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; margin-top:20px; }
.dash-row-charts { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:18px; margin-top:20px; }
@media (max-width:1100px) {
    .dash-row-3 { grid-template-columns:1fr 1fr; }
    .dash-row-charts { grid-template-columns:1fr 1fr; }
}
@media (max-width:700px) {
    .dash-row-3 { grid-template-columns:1fr; }
    .dash-row-charts { grid-template-columns:1fr; }
}

/* Progress ring (SVG donut) verifikasi */
.progress-ring-wrap { position:relative; width:140px; height:140px; margin:6px auto 14px; }
.progress-ring { width:100%; height:100%; transform:rotate(-90deg); }
.progress-ring-bg { fill:none; stroke:#eef1f3; stroke-width:10; }
.progress-ring-bar {
    fill:none; stroke:var(--green); stroke-width:10; stroke-linecap:round;
    transition:stroke-dashoffset 1s cubic-bezier(.22,1,.36,1);
}
.progress-ring-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.progress-ring-pct { font-size:24px; font-weight:800; color:var(--dark); line-height:1.1; }
.progress-ring-sub { font-size:11px; color:var(--muted); margin-top:2px; }
.progress-legend { display:flex; flex-direction:column; gap:6px; font-size:12px; color:#4a5b56; }
.progress-legend span { display:flex; align-items:center; gap:8px; }
.progress-legend i { width:10px; height:10px; border-radius:50%; display:inline-block; flex-shrink:0; }

/* Hitung mundur pelaksanaan */
.countdown-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; margin-top:4px; }
.countdown-box { background:linear-gradient(160deg, var(--navy), #123252); color:#fff; border-radius:var(--radius-sm); padding:12px 4px; text-align:center; }
.countdown-num { display:block; font-size:22px; font-weight:800; font-variant-numeric:tabular-nums; }
.countdown-lbl { display:block; font-size:9.5px; text-transform:uppercase; letter-spacing:.05em; opacity:.75; margin-top:2px; }

/* Medali ringkasan */
.medal-row { display:flex; gap:10px; justify-content:space-between; }
.medal-pill { flex:1; text-align:center; border-radius:var(--radius-sm); padding:14px 6px; display:flex; flex-direction:column; align-items:center; gap:2px; }
.medal-emoji { font-size:22px; }
.medal-count { font-size:19px; font-weight:800; }
.medal-lbl { font-size:10.5px; color:var(--muted); font-weight:600; }
.medal-gold { background:rgba(246,196,83,.18); }
.medal-gold .medal-count { color:#a17600; }
.medal-silver { background:rgba(148,163,184,.18); }
.medal-silver .medal-count { color:#5c6773; }
.medal-bronze { background:rgba(205,127,50,.16); }
.medal-bronze .medal-count { color:#8a4f1f; }

/* Chart container */
.chart-box { position:relative; height:200px; }
.chart-box-tall { height:220px; }

/* Leaderboard klasemen */
.leaderboard { display:flex; flex-direction:column; gap:12px; }
.leaderboard-row { display:flex; align-items:center; gap:12px; }
.lb-rank { width:28px; flex-shrink:0; text-align:center; font-weight:700; font-size:14px; color:var(--muted); }
.lb-rank.lb-rank-top { font-size:18px; }
.lb-info { flex:1; min-width:0; }
.lb-name { font-size:13px; font-weight:600; color:var(--dark); margin-bottom:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lb-bar-track { background:#eef1f3; border-radius:99px; height:7px; overflow:hidden; }
.lb-bar-fill { height:100%; width:0; border-radius:99px; background:var(--accent, var(--green)); transition:width 1s cubic-bezier(.22,1,.36,1); }
.lb-medals { display:flex; gap:8px; font-size:11px; color:var(--muted); flex-shrink:0; white-space:nowrap; }

/* Pendaftaran terbaru */
.recent-list { display:flex; flex-direction:column; gap:4px; }
.recent-item { display:flex; align-items:center; gap:12px; padding:9px 4px; border-bottom:1px solid #f2f4f6; }
.recent-item:last-child { border-bottom:none; }
.recent-avatar {
    width:34px; height:34px; border-radius:50%; background:var(--green); color:#fff; font-weight:700; font-size:13px;
    display:grid; place-items:center; flex-shrink:0;
}
.recent-info { flex:1; min-width:0; }
.recent-name { font-size:13px; font-weight:600; color:var(--dark); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.recent-sub { font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rp-badge { font-size:10px; font-weight:700; padding:4px 9px; border-radius:99px; flex-shrink:0; }
.rp-badge-success { background:rgba(25,135,84,.12); color:#146c43; }
.rp-badge-warning { background:rgba(255,193,7,.18); color:#8a6d00; }
.rp-badge-danger { background:rgba(220,53,69,.12); color:#a3202e; }

/* Aksi cepat */
.quick-actions { display:flex; flex-wrap:wrap; gap:10px; }
.quick-action-btn {
    display:flex; align-items:center; gap:9px; padding:12px 18px; border-radius:var(--radius-sm);
    font-weight:600; font-size:13px; text-decoration:none; color:#fff; transition:transform .15s, box-shadow .15s; flex:1; min-width:160px; justify-content:center;
}
.quick-action-btn:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.quick-action-btn .qa-icon { font-size:16px; }
.qa-success { background:var(--success); }
.qa-warning { background:#b58900; }
.qa-primary { background:var(--primary); }
.qa-gold { background:linear-gradient(95deg, var(--gold), #e0a93a); color:#5a3f00; }

@media (max-width:600px) {
    .medal-row { flex-direction:column; }
    .medal-pill { flex-direction:row; justify-content:center; }
}

/* Notifikasi ulang tahun minggu ini (khusus Admin Pusat) */
.bday-list { display:flex; flex-direction:column; gap:4px; }
.bday-item { display:flex; align-items:center; gap:12px; padding:9px 4px; border-bottom:1px solid #f2f4f6; }
.bday-item:last-child { border-bottom:none; }
.bday-avatar {
    width:34px; height:34px; border-radius:50%; background:linear-gradient(140deg, #ffe1ee, #ffd0e6);
    display:grid; place-items:center; flex-shrink:0; font-size:16px;
}
.bday-badge { font-size:10px; font-weight:700; padding:4px 10px; border-radius:99px; flex-shrink:0; white-space:nowrap; }
.bday-badge-today { background:rgba(246,102,158,.16); color:#c22c6c; animation:ti-pulse 2.4s ease-in-out infinite; }
.bday-badge-soon { background:rgba(246,196,83,.22); color:#a17600; }
.bday-badge-upcoming { background:#eef1f3; color:var(--muted); }
