/* ==========================================================================
   POPDA VIII NTT 2026 — SHORINJI KEMPO
   Stylesheet Utama v2.0 (Modern + Dark Mode + Chart)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & VARIABEL
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
    /* Light theme (default) */
    --bg-page:       #f4f6fa;
    --bg-page-grad:  linear-gradient(135deg, #f4f6fa 0%, #e8edf5 100%);
    --bg-card:       #ffffff;
    --bg-card-soft:  #f8fafc;
    --bg-sidebar:    #0f172a;
    --bg-sidebar-2:  #1e293b;
    --bg-topbar:     rgba(255, 255, 255, 0.85);

    --text-main:     #0f172a;
    --text-muted:    #64748b;
    --text-light:    #94a3b8;
    --text-inverse:  #f8fafc;

    --border:        #e2e8f0;
    --border-strong: #cbd5e1;

    --primary:       #2563eb;
    --primary-dark:  #1d4ed8;
    --primary-light: #dbeafe;

    --success:       #16a34a;
    --success-light: #dcfce7;
    --warning:       #f59e0b;
    --warning-light: #fef3c7;
    --danger:        #dc2626;
    --danger-light:  #fee2e2;

    --gold:          #eab308;
    --silver:        #94a3b8;
    --bronze:        #b45309;

    --grad-embu:     linear-gradient(135deg, #7c3aed, #a855f7);
    --grad-randori:  linear-gradient(135deg, #dc2626, #f87171);
    --grad-gold:     linear-gradient(135deg, #eab308, #facc15);
    --grad-silver:   linear-gradient(135deg, #64748b, #94a3b8);
    --grad-bronze:   linear-gradient(135deg, #92400e, #b45309);

    --grad-brand:    linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --grad-blue:     linear-gradient(135deg, #3b82f6, #60a5fa);
    --grad-purple:   linear-gradient(135deg, #7c3aed, #a78bfa);
    --grad-green:    linear-gradient(135deg, #16a34a, #4ade80);
    --grad-orange:   linear-gradient(135deg, #f59e0b, #fbbf24);
    --grad-red:      linear-gradient(135deg, #dc2626, #f87171);
    --grad-teal:     linear-gradient(135deg, #0d9488, #2dd4bf);
    --grad-pink:     linear-gradient(135deg, #ec4899, #f472b6);

    --sidebar-w:     260px;
    --topbar-h:      64px;
    --radius:        12px;
    --radius-sm:     8px;
    --shadow-sm:     0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow:        0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg:     0 12px 40px rgba(15, 23, 42, 0.16);
    --shadow-glow:   0 8px 32px rgba(37, 99, 235, 0.18);

    --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Consolas", "Courier New", monospace;

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme — diaktifkan saat <html data-theme="dark"> */
[data-theme="dark"] {
    --bg-page:       #0b1120;
    --bg-page-grad:  linear-gradient(135deg, #0b1120 0%, #111827 100%);
    --bg-card:       #1e293b;
    --bg-card-soft:  #273449;
    --bg-sidebar:    #060c18;
    --bg-sidebar-2:  #111827;
    --bg-topbar:     rgba(30, 41, 59, 0.85);

    --text-main:     #f1f5f9;
    --text-muted:    #94a3b8;
    --text-light:    #64748b;
    --text-inverse:  #f8fafc;

    --border:        #334155;
    --border-strong: #475569;

    --primary-light: rgba(37, 99, 235, 0.2);
    --success-light: rgba(22, 163, 74, 0.2);
    --warning-light: rgba(245, 158, 11, 0.2);
    --danger-light:  rgba(220, 38, 38, 0.2);

    --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow:        0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow:   0 8px 32px rgba(37, 99, 235, 0.35);
}

html { font-size: 15px; transition: background-color var(--transition); }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg-page-grad);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-main);
}
h1 { font-size: 1.6rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 .75rem; }

/* --------------------------------------------------------------------------
   2. LAYOUT
   -------------------------------------------------------------------------- */
body.app-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
}
.main-area {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.main-content {
    flex: 1;
    padding: 28px;
    max-width: 100%;
    overflow-x: auto;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.page-header h1 {
    margin-bottom: 4px;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.page-subtitle {
    color: var(--text-muted);
    font-size: .9rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   3. SIDEBAR
   -------------------------------------------------------------------------- */
.sidebar {
    background: var(--bg-sidebar);
    color: var(--text-inverse);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: left var(--transition), background var(--transition);
}

.sidebar-brand {
    padding: 20px 20px 18px;
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.sidebar-brand::after {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.sidebar-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    position: relative; z-index: 1;
}
.sidebar-brand .brand-text { line-height: 1.2; position: relative; z-index: 1; }
.sidebar-brand .brand-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.sidebar-brand .brand-sub {
    font-size: .72rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.sidebar-nav {
    flex: 1;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-section-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #64748b;
    padding: 16px 12px 6px;
    font-weight: 700;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: #cbd5e1;
    font-size: .9rem;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    border-left-color: rgba(96, 165, 250, 0.6);
    padding-left: 14px;
}
.sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.3), rgba(124, 58, 237, 0.15));
    color: #fff;
    font-weight: 600;
    border-left-color: var(--primary);
}
.sidebar-nav a .nav-icon {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
}

.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: .78rem;
    color: #64748b;
    text-align: center;
}

/* --------------------------------------------------------------------------
   4. TOPBAR
   -------------------------------------------------------------------------- */
.topbar {
    height: var(--topbar-h);
    background: var(--bg-topbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 30;
    transition: background var(--transition), border-color var(--transition);
}
.topbar-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--text-muted);
}
.topbar-user .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    box-shadow: var(--shadow-sm);
}

/* Toggle dark mode */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition);
}
.theme-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: rotate(20deg);
}

/* --------------------------------------------------------------------------
   5. STAT CARDS
   -------------------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-blue);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #fff;
    background: var(--grad-blue);
    box-shadow: var(--shadow-sm);
}
.stat-card .stat-label {
    font-size: .78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
    margin-bottom: 6px;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    animation: countUp 0.6s ease-out;
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stat-card .stat-sub {
    font-size: .76rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Variasi warna per kartu */
.stat-card.c-blue::before   { background: var(--grad-blue); }
.stat-card.c-blue .stat-icon   { background: var(--grad-blue); }
.stat-card.c-purple::before { background: var(--grad-purple); }
.stat-card.c-purple .stat-icon { background: var(--grad-purple); }
.stat-card.c-green::before  { background: var(--grad-green); }
.stat-card.c-green .stat-icon  { background: var(--grad-green); }
.stat-card.c-orange::before { background: var(--grad-orange); }
.stat-card.c-orange .stat-icon { background: var(--grad-orange); }
.stat-card.c-red::before    { background: var(--grad-red); }
.stat-card.c-red .stat-icon    { background: var(--grad-red); }
.stat-card.c-teal::before   { background: var(--grad-teal); }
.stat-card.c-teal .stat-icon   { background: var(--grad-teal); }
.stat-card.c-pink::before   { background: var(--grad-pink); }
.stat-card.c-pink .stat-icon   { background: var(--grad-pink); }

.stat-card .stat-body { display: block; }

/* --------------------------------------------------------------------------
   6. CHART CARDS
   -------------------------------------------------------------------------- */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition);
    position: relative;
}
.chart-card:hover { box-shadow: var(--shadow); }
.chart-card h4 {
    margin: 0 0 16px;
    font-size: .95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.chart-card .chart-wrap {
    position: relative;
    height: 240px;
}
.chart-card .chart-wrap.chart-donut { height: 240px; }

.chart-card .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.chart-card .chart-header h4 { margin: 0; }
.chart-tag {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 8px;
    border-radius: 999px;
}
[data-theme="dark"] .chart-tag { color: #93c5fd; }
.chart-card-wide { grid-column: span 2; }
@media (max-width: 900px) {
    .chart-card-wide { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   7. TABEL
   -------------------------------------------------------------------------- */
.table-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}
.table-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--bg-card-soft);
}
.table-card-header h3 { margin: 0; font-size: 1.05rem; }
.table-card-header .tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.table-wrap { overflow-x: auto; }

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
table.data-table thead th {
    background: var(--bg-card-soft);
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .6px;
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table.data-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-main);
}
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr {
    transition: background var(--transition);
}
table.data-table tbody tr:hover { background: var(--bg-card-soft); }

table.data-table tfoot td {
    padding: 12px 14px;
    font-weight: 700;
    background: var(--bg-card-soft);
    border-top: 2px solid var(--border-strong);
}

table.data-table .text-center { text-align: center; }
table.data-table .text-right  { text-align: right; }
table.data-table .num { font-variant-numeric: tabular-nums; }

table.data-table tr.group-start td { border-top: 2px solid var(--border-strong); }
table.data-table tr.group-start:first-child td { border-top: none; }
table.data-table td.merged { background: var(--bg-card-soft); vertical-align: top; }

.empty-state {
    padding: 44px 20px;
    text-align: center;
    color: var(--text-muted);
}
.empty-state .emoji { font-size: 2.5rem; display: block; margin-bottom: 8px; }

/* Skeleton loading */
.skeleton {
    display: block;
    background: linear-gradient(90deg,
        var(--bg-card-soft) 0%,
        var(--border) 50%,
        var(--bg-card-soft) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 6px;
    height: 14px;
    min-width: 60px;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   8. BADGE
   -------------------------------------------------------------------------- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.4;
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.badge.b-embu     { background: var(--grad-embu); }
.badge.b-randori  { background: var(--grad-randori); }
.badge.b-gold     { background: var(--grad-gold); color: #422006; }
.badge.b-silver   { background: var(--grad-silver); }
.badge.b-bronze   { background: var(--grad-bronze); }
.badge.b-blue     { background: var(--grad-blue); }
.badge.b-pink     { background: var(--grad-pink); }
.badge.b-yellow   { background: var(--grad-gold); color: #422006; }
.badge.b-gray     { background: #e2e8f0; color: var(--text-main); }
[data-theme="dark"] .badge.b-gray { background: #334155; color: #f1f5f9; }
.badge.b-green    { background: var(--grad-green); }
.badge.b-red      { background: var(--grad-red); }
.badge.b-orange   { background: var(--grad-orange); }

.badge-sm { padding: 2px 8px; font-size: .66rem; }
.badge.upp-final { background: var(--success-light); color: #14532d; box-shadow: none; }
.badge.upp-draft { background: var(--warning-light); color: #78350f; box-shadow: none; }
[data-theme="dark"] .badge.upp-final { color: #86efac; }
[data-theme="dark"] .badge.upp-draft { color: #fcd34d; }

/* --------------------------------------------------------------------------
   9. TOMBOL
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: var(--bg-card-soft);
    color: var(--text-main);
    font-size: .875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.3;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { box-shadow: var(--shadow-glow); }

.btn-success { background: var(--grad-green); color: #fff; }
.btn-warning { background: var(--grad-orange); color: #fff; }
.btn-danger  { background: var(--grad-red); color: #fff; }

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-main);
}
.btn-outline:hover { background: var(--bg-card-soft); }

.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   10. FORM
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: .9rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-help  { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: .8rem; color: var(--danger); margin-top: 4px; display: none; }
.form-error.show { display: block; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.filter-bar {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 20px;
}
.filter-bar .form-group { margin-bottom: 0; flex: 1; min-width: 160px; }

/* --------------------------------------------------------------------------
   11. MODAL / POPUP
   -------------------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 100;
    padding: 40px 16px;
    overflow-y: auto;
}
.modal-backdrop.open { display: flex; }

.modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 860px;
    overflow: hidden;
    animation: modalIn 0.22s ease-out;
    border: 1px solid var(--border);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: var(--bg-card-soft);
}
.modal-header h3 { margin: 0; }
.modal-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.modal-close:hover { color: var(--danger); background: var(--danger-light); }

.modal-body {
    padding: 22px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}
.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--bg-card-soft);
}

.kop {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 3px double var(--text-main);
    margin-bottom: 16px;
}
.kop .kop-main   { font-size: 1.05rem; font-weight: 700; letter-spacing: .5px; }
.kop .kop-sub    { font-size: .9rem; font-weight: 600; margin-top: 2px; }
.kop .kop-cabor  { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }

.info-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.info-chip {
    background: var(--bg-card-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: .85rem;
}
.info-chip strong { font-size: 1.05rem; margin-left: 4px; }

/* --------------------------------------------------------------------------
   12. TOAST
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background: var(--bg-card);
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-size: .88rem;
    min-width: 240px;
    max-width: 380px;
    animation: toastIn 0.22s ease-out;
    pointer-events: auto;
    color: var(--text-main);
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   13. UTILITY
   -------------------------------------------------------------------------- */
.text-muted   { color: var(--text-muted); }
.text-light   { color: var(--text-light); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.fw-bold      { font-weight: 700; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.d-none { display: none; }
.d-flex { display: flex; }
.gap-1  { gap: 8px; }
.gap-2  { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clickable { cursor: pointer; transition: color var(--transition); }
.clickable:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   14. PRINT
   -------------------------------------------------------------------------- */
@media print {
    body {
        background: #fff !important;
        font-size: 11pt;
        color: #000;
    }
    body.app-layout { display: block; }
    .sidebar, .topbar, .no-print, .btn, .toast-container, .modal-footer,
    .filter-bar, .table-card-header .tools, .theme-toggle, .sidebar-backdrop {
        display: none !important;
    }
    .main-content { padding: 0; overflow: visible; animation: none; }
    .table-card, .stat-card, .chart-card, .modal {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        background: #fff !important;
    }
    .modal-backdrop { position: static; background: #fff; padding: 0; display: block; backdrop-filter: none; }
    .modal { max-width: 100%; border: none; animation: none; }
    .modal-body { max-height: none; overflow: visible; padding: 0; }
    table.data-table thead th {
        background: #eee !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .badge {
        border: 1px solid #000;
        color: #000 !important;
        background: #fff !important;
        box-shadow: none;
    }
    .stat-card::before { display: none; }
    a[href]::after { content: ""; }
    .page-break { page-break-after: always; }
    .avoid-break { page-break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    body.app-layout { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0; bottom: 0;
        width: var(--sidebar-w);
        z-index: 50;
        transition: left var(--transition);
    }
    .sidebar.open { left: 0; box-shadow: var(--shadow-lg); }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 40;
    }
    .sidebar-backdrop.open { display: block; }
    .menu-toggle { display: inline-flex !important; }
    .main-content { padding: 16px; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-card .stat-value { font-size: 1.6rem; }
    .stat-card .stat-icon { width: 36px; height: 36px; font-size: 1.1rem; }
    .charts-grid { grid-template-columns: 1fr; }
    .chart-card .chart-wrap { height: 200px; }
}
@media (min-width: 901px) {
    .menu-toggle { display: none !important; }
    .sidebar-backdrop { display: none !important; }
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 7px 11px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
    transition: all var(--transition);
}
.menu-toggle:hover { background: var(--bg-card-soft); }

/* --------------------------------------------------------------------------
   16. SCROLLBAR (webkit)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-light); background-clip: padding-box; }

/* ==========================================================================
   17. HERO BANNER (dashboard)
   ========================================================================== */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 55%, #db2777 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 36px 32px;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.25);
}
[data-theme="dark"] .hero-banner {
    box-shadow: 0 10px 40px rgba(109, 40, 217, 0.4);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}
.hero-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.18);
    padding: 5px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    margin-bottom: 12px;
}
.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: #fff;
    letter-spacing: -.5px;
    line-height: 1.1;
}
.hero-sub {
    font-size: .95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px;
}
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: var(--radius);
}
.hero-stat { text-align: center; }
.hero-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero-stat-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
}
.hero-stat-sep {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
}
.hero-decoration {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 50%;
    pointer-events: none;
    overflow: hidden;
}
.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    animation: floatRing 6s ease-in-out infinite;
}
.hero-ring-1 { top: -40px; right: -40px; width: 220px; height: 220px; }
.hero-ring-2 { top: 60px;  right: 60px;  width: 140px; height: 140px; animation-delay: -2s; }
.hero-ring-3 { bottom: -60px; right: 120px; width: 180px; height: 180px; animation-delay: -4s; }
@keyframes floatRing {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .8; }
    50%      { transform: translate(-10px, 10px) scale(1.05); opacity: 1; }
}
@media (max-width: 640px) {
    .hero-banner { padding: 24px 20px; }
    .hero-title { font-size: 1.7rem; }
    .hero-stats { flex-wrap: wrap; padding: 10px 16px; gap: 12px; }
    .hero-stat-num { font-size: 1.3rem; }
    .hero-decoration { width: 100%; opacity: .4; }
}

/* ==========================================================================
   18. LANDING (404 / placeholder)
   ========================================================================== */
.landing-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.landing-hero-inner {
    max-width: 640px;
    text-align: center;
    background: var(--bg-card);
    padding: 48px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: fadeInUp .4s ease-out;
}
.landing-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
.landing-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.landing-desc {
    color: var(--text-muted);
    font-size: .95rem;
    margin-bottom: 24px;
    line-height: 1.7;
}
.landing-desc code {
    background: var(--bg-card-soft);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: .85rem;
}
.landing-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.landing-hint {
    margin-top: 24px;
    font-size: .8rem;
    color: var(--text-light);
    font-style: italic;
}

/* ==========================================================================
   19. PANDUAN (tab + search + card grid + accordion)
   ========================================================================== */
.panduan-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.panduan-search {
    position: relative;
    flex: 1;
    min-width: 220px;
}
.panduan-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: .6;
    font-size: .95rem;
}
.panduan-search .form-control {
    padding-left: 36px;
}
.panduan-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg-card-soft);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.tab-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--transition);
    white-space: nowrap;
}
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-pane { display: none; animation: fadeInUp .3s ease-out; }
.tab-pane.active { display: block; }

.panduan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.panduan-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.panduan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.panduan-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.panduan-icon.bg-blue   { background: var(--grad-blue); }
.panduan-icon.bg-purple { background: var(--grad-purple); }
.panduan-icon.bg-teal   { background: var(--grad-teal); }
.panduan-icon.bg-orange { background: var(--grad-orange); }
.panduan-icon.bg-red    { background: var(--grad-red); }
.panduan-icon.bg-green  { background: var(--grad-green); }
.panduan-icon.bg-pink   { background: var(--grad-pink); }
.panduan-card h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--text-main);
}
.panduan-card p {
    margin: 0;
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.panduan-lock {
    text-align: center;
    background: var(--bg-card);
    padding: 48px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.panduan-lock-icon { font-size: 3rem; margin-bottom: 12px; opacity: .7; }
.panduan-lock h3 { margin-bottom: 8px; }
.panduan-lock p { color: var(--text-muted); margin-bottom: 20px; }

/* ==========================================================================
   20. ABOUT CARD (tab Tentang)
   ========================================================================== */
.about-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.about-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.about-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: var(--shadow);
}
.about-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}
.about-sub {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.about-item {
    padding: 14px 16px;
    background: var(--bg-card-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.about-item-label {
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600;
    margin-bottom: 4px;
}
.about-item-value {
    font-size: .95rem;
    color: var(--text-main);
    font-weight: 600;
}
.about-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: .82rem;
    color: var(--text-muted);
}

/* ==========================================================================
   21. CSS BAR CHART (tanpa library, tanpa CDN)
   ========================================================================== */
.css-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
}

.bar-row {
    display: grid;
    grid-template-columns: 150px 1fr 60px;
    gap: 12px;
    align-items: center;
    font-size: .85rem;
}
.bar-label {
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.bar-track {
    background: var(--bg-card-soft);
    border-radius: 999px;
    height: 22px;
    overflow: hidden;
    position: relative;
    display: flex;
}
.bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
}
.bar-num {
    text-align: right;
    font-weight: 700;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

/* Stacked */
.bar-track-stacked {
    display: flex;
    overflow: hidden;
    border-radius: 999px;
}
.bar-seg {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: .8rem;
    color: var(--text-muted);
}
.bar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.bar-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

/* Mobile */
@media (max-width: 640px) {
    .bar-row {
        grid-template-columns: 100px 1fr 46px;
        gap: 8px;
        font-size: .78rem;
    }
    .bar-track { height: 18px; }
}

/* ==========================================================================
   22. BACK TO TOP
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;

    width: 50px;
    height: 50px;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}
.back-to-top:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    transform: translateY(-4px) scale(1.05);
}
.back-to-top:hover svg {
    transform: translateY(-2px);
}
.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

[data-theme="dark"] .back-to-top {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    color: #93c5fd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .back-to-top:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6);
}

@media (max-width: 640px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}
@media print {
    .back-to-top { display: none !important; }
}

/* ==========================================================================
   23. REKAP HASIL KEJUARAAN — RANDORI DAN EMBU
   ========================================================================== */
.hasil-rekap {
    width: 100%;
    color: #111;
    font-family: "Times New Roman", Times, serif;
    font-size: 12px;
    background: #fff;
}
.hasil-rekap *,
.hasil-rekap *::before,
.hasil-rekap *::after { box-sizing: border-box; }

.hasil-rekap .rekap-section-title {
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
    text-transform: uppercase;
    margin: 8px 0 2px;
    padding: 0;
}
.hasil-rekap .rekap-nomor-title {
    font-size: 12px;
    font-style: italic;
    text-transform: uppercase;
    margin: 0;
    padding: 0 2px 2px;
    line-height: 1.3;
}
.hasil-rekap .rekap-group {
    margin: 0 0 14px;
    page-break-inside: avoid;
    break-inside: avoid;
}
.hasil-rekap .rekap-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0;
}
.hasil-rekap table.rekap-table {
    width: 100%;
    min-width: 570px;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    margin: 0;
}
.hasil-rekap .rekap-table th,
.hasil-rekap .rekap-table td {
    border: 1px solid #111;
    padding: 2px 3px;
    text-align: left;
    vertical-align: middle;
    line-height: 1.25;
    color: #111;
    font-family: "Times New Roman", Times, serif;
    font-size: 12px;
}
.hasil-rekap .rekap-table thead th {
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    background: #fff;
    padding: 2px;
}
.hasil-rekap .rekap-table .col-medali    { width: 23.5%; }
.hasil-rekap .rekap-table .col-nama      { width: 41.5%; }
.hasil-rekap .rekap-table .col-kontingen { width: 18.5%; }
.hasil-rekap .rekap-table .col-keterangan{ width: 16.5%; }
.hasil-rekap .rekap-table td.medali-cell { text-transform: uppercase; font-weight: 400; }
.hasil-rekap .rekap-table td.medali-emas    { background: #ffff00; }
.hasil-rekap .rekap-table td.medali-perak   { background: #bfbfbf; }
.hasil-rekap .rekap-table td.medali-perunggu{ background: #c65911; color: #111; }
.hasil-rekap .rekap-table td.nama-cell      { overflow-wrap: anywhere; }
.hasil-rekap .rekap-table td.kontingen-cell { overflow-wrap: anywhere; }
.hasil-rekap .rekap-table td.keterangan-cell {
    text-align: center;
    vertical-align: middle;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 34px;
    font-weight: 400;
}
.hasil-rekap .rekap-check { display: inline-block; line-height: 1; color: #000; }
.hasil-rekap .rekap-pending { font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #777; }
.hasil-rekap .rekap-anggota { font-size: 10px; line-height: 1.25; margin-top: 2px; color: #333; }
.hasil-rekap .rekap-empty {
    padding: 25px 12px;
    text-align: center;
    color: #64748b;
    border: 1px solid #ddd;
    font-family: Arial, Helvetica, sans-serif;
}
.hasil-rekap .rekap-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0;
    font-family: Arial, Helvetica, sans-serif;
}
.hasil-rekap .rekap-toolbar input { width: 100%; max-width: 420px; }
.hasil-rekap .rekap-count { font-size: 12px; color: #64748b; white-space: nowrap; }

@media screen and (max-width: 600px) {
    .hasil-rekap .rekap-table th,
    .hasil-rekap .rekap-table td { font-size: 11px; padding: 3px; }
    .hasil-rekap .rekap-table td.keterangan-cell { font-size: 28px; }
    .hasil-rekap .rekap-toolbar { align-items: flex-start; flex-direction: column; }
}

@media print {
    @page { size: A4 portrait; margin: 10mm; }
    body { background: #fff !important; }
    .no-print, .filter-bar, .sidebar, .navbar, .app-sidebar, .topbar, .rekap-toolbar {
        display: none !important;
    }
    .hasil-rekap { font-family: "Times New Roman", Times, serif !important; font-size: 10pt; }
    .hasil-rekap .rekap-section-title { margin-top: 8px; }
    .hasil-rekap .rekap-group { break-inside: avoid; page-break-inside: avoid; }
    .hasil-rekap .rekap-table-wrap { overflow: visible; }
    .hasil-rekap table.rekap-table { width: 100%; min-width: 0; }
    .hasil-rekap .rekap-table th,
    .hasil-rekap .rekap-table td {
        font-size: 9pt;
        border-color: #111 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .hasil-rekap .rekap-table td.keterangan-cell { font-size: 26px; }
    .table-card, .table-card-header {
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}