/* =====================================================
   FINANCE HUB — Stylesheet utama
   ===================================================== */

:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --text: #0f172a;
    --text-2: #334155;
    --muted: #64748b;
    --line: #e7ebf3;
    --line-2: #f1f4f9;

    --primary: #4f46e5;
    --primary-600: #4338ca;
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;

    --green: #059669;
    --green-500: #10b981;
    --green-50: #ecfdf5;
    --red: #e11d48;
    --red-500: #f43f5e;
    --red-50: #fff1f2;
    --amber: #d97706;
    --amber-50: #fffbeb;
    --sky: #0284c7;
    --sky-50: #f0f9ff;

    --sidebar-bg: #0b1220;
    --sidebar-bg-2: #111a2e;
    --sidebar-text: #94a3b8;
    --sidebar-w: 272px;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .06);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .22);
    --ring: 0 0 0 4px rgba(79, 70, 229, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.ico { flex: none; vertical-align: middle; }
code { background: var(--line-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { padding: 26px 32px 18px; flex: 1; width: 100%; max-width: 1480px; }
.footer {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    padding: 16px 32px 24px; color: var(--muted); font-size: 12.5px;
}

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 60;
    display: flex; flex-direction: column;
    background:
        radial-gradient(420px 260px at 0% 0%, rgba(79, 70, 229, .28), transparent 70%),
        linear-gradient(180deg, var(--sidebar-bg-2), var(--sidebar-bg));
    color: var(--sidebar-text);
    border-right: 1px solid rgba(255, 255, 255, .04);
    transition: transform .28s ease;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 24px 22px 20px; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 8px 20px rgba(99, 102, 241, .45);
}
.brand-text strong { display: block; color: #fff; font-size: 16.5px; letter-spacing: -.02em; }
.brand-text span { font-size: 12px; color: #7c8aa5; }

.nav { padding: 6px 14px; flex: 1; overflow-y: auto; }
.nav-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: #5b6b86;
    padding: 18px 12px 8px; font-weight: 600;
}
.nav-item {
    position: relative; display: flex; align-items: center; gap: 13px;
    padding: 11px 14px; margin-bottom: 3px; border-radius: 12px;
    color: var(--sidebar-text); font-weight: 500; transition: all .18s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, .05); color: #e2e8f0; text-decoration: none; }
.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(99, 102, 241, .32), rgba(99, 102, 241, .08));
}
.nav-item.active::before {
    content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px;
    border-radius: 0 4px 4px 0; background: #818cf8;
}
.nav-item.active .ico { color: #a5b4fc; }

.sidebar-foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .06); }
.user-card {
    display: flex; align-items: center; gap: 11px; padding: 10px 10px 10px 12px;
    background: rgba(255, 255, 255, .04); border-radius: 14px;
}
.avatar {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
    background: linear-gradient(135deg, #38bdf8, #6366f1); color: #fff; font-weight: 700;
}
.user-meta { flex: 1; min-width: 0; line-height: 1.3; }
.user-meta strong { display: block; color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta span { font-size: 11.5px; color: #7c8aa5; }
.sidebar .icon-btn { color: #94a3b8; }
.sidebar .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.overlay {
    position: fixed; inset: 0; background: rgba(2, 6, 23, .5); backdrop-filter: blur(2px);
    z-index: 55; opacity: 0; visibility: hidden; transition: .25s;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ---------- Topbar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px;
    padding: 16px 32px; background: rgba(244, 246, 251, .82);
    backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line);
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 21px; font-weight: 700; }
.topbar-title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.date-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 500;
    box-shadow: var(--shadow-sm);
}
.menu-btn { display: none; }

.icon-btn {
    display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
    border: 0; background: transparent; color: var(--text-2); cursor: pointer; transition: .15s;
}
.icon-btn:hover { background: var(--line-2); text-decoration: none; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 22px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h3 { font-size: 15.5px; font-weight: 650; }
.card-head p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 20px 22px 0; margin-bottom: 14px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mt { margin-top: 22px; }
.mb { margin-bottom: 22px; }

/* ---------- Stat cards ---------- */
.stat { position: relative; overflow: hidden; }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; }
.stat-ico.green { background: var(--green-50); color: var(--green); }
.stat-ico.red { background: var(--red-50); color: var(--red); }
.stat-ico.primary { background: var(--primary-50); color: var(--primary); }
.stat-ico.amber { background: var(--amber-50); color: var(--amber); }
.stat-ico.sky { background: var(--sky-50); color: var(--sky); }
.stat-value { font-size: 25px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-sub { margin-top: 8px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.delta.up { background: var(--green-50); color: var(--green); }
.delta.down { background: var(--red-50); color: var(--red); }
.delta.flat { background: var(--line-2); color: var(--muted); }

.hero {
    color: #fff; border: 0;
    background:
        radial-gradient(520px 260px at 100% 0%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(135deg, #4338ca, #6d28d9 70%, #7c3aed);
    box-shadow: 0 18px 40px rgba(79, 70, 229, .35);
}
.hero .stat-label, .hero .stat-sub { color: rgba(255, 255, 255, .78); }
.hero .stat-ico { background: rgba(255, 255, 255, .16); color: #fff; }
.hero .stat-value { font-size: 30px; }
.hero-split { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero-split div span { display: block; font-size: 12px; color: rgba(255, 255, 255, .72); }
.hero-split div strong { font-size: 15.5px; font-variant-numeric: tabular-nums; }

/* ---------- Segment cards ---------- */
.seg-card { border-top: 4px solid var(--c, var(--primary)); }
.seg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.seg-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.seg-head h3 { font-size: 16px; }
.seg-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; color: var(--text-2); }
.seg-row strong { font-variant-numeric: tabular-nums; }
.seg-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 11px; font-weight: 600; color: var(--text); }
.bar { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; display: flex; margin-top: 10px; }
.bar i { display: block; height: 100%; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
    font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; transition: all .16s ease; text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .32); }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-danger { background: var(--red-50); color: var(--red); border-color: #fecdd3; }
.btn-danger:hover { background: #ffe4e6; }
.btn-success { background: var(--green-50); color: var(--green); border-color: #a7f3d0; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon { padding: 7px; width: 34px; height: 34px; border-radius: 10px; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input, select.input, textarea.input {
    width: 100%; padding: 11px 14px; border: 1px solid #d9dfeb; border-radius: 12px; background: #fff;
    font: inherit; color: var(--text); transition: .15s; outline: none;
}
.input:focus { border-color: var(--primary); box-shadow: var(--ring); }
textarea.input { resize: vertical; min-height: 84px; }
select.input { appearance: none; padding-right: 38px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center; }
.input-group { position: relative; }
.input-group .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.input-group .input { padding-left: 44px; font-weight: 600; font-variant-numeric: tabular-nums; }
input[type=color].input { padding: 4px; height: 44px; cursor: pointer; }

/* Segmented control (Masuk / Keluar) */
.seg-ctrl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: #eef1f7; border-radius: 14px; }
.seg-ctrl input { position: absolute; opacity: 0; pointer-events: none; }
.seg-ctrl label { margin: 0; padding: 10px; text-align: center; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--muted); transition: .15s; display: flex; align-items: center; justify-content: center; gap: 7px; }
.seg-ctrl input:checked + label { background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .1); }
.seg-ctrl .in input:checked + label { color: var(--green); }
.seg-ctrl .out input:checked + label { color: var(--red); }
.seg-ctrl input:focus-visible + label { box-shadow: var(--ring); }

/* Filter bar */
.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; }
.filters .field label { font-size: 12px; margin-bottom: 5px; color: var(--muted); font-weight: 600; }
.filters .input { padding: 9px 12px; border-radius: 10px; font-size: 13.5px; }
.filters select.input { padding-right: 32px; }
.filters .f-actions { display: flex; gap: 8px; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--line-2); border: 1px solid transparent; }
.chip:hover { background: var(--primary-50); color: var(--primary); text-decoration: none; }
.chip.active { background: var(--primary-50); color: var(--primary); border-color: var(--primary-100); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
    text-align: left; padding: 12px 16px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); font-weight: 600; background: #f8fafc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: #fafbff; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 700; background: #f8fafc; border-top: 2px solid var(--line); border-bottom: 0; }
.tbl .sub { display: block; color: var(--muted); font-size: 12px; }
.tbl .wrap-text { max-width: 320px; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.strong { font-weight: 650; }
.text-right { text-align: right; }

.empty { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty .ico { width: 44px; height: 44px; color: #cbd5e1; margin-bottom: 10px; }
.empty strong { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 4px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-sky { background: var(--sky-50); color: var(--sky); }
.badge-primary { background: var(--primary-50); color: var(--primary); }
.badge-muted { background: var(--line-2); color: var(--muted); }
.badge-seg i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* ---------- Progress ---------- */
.progress { height: 7px; background: var(--line-2); border-radius: 999px; overflow: hidden; min-width: 90px; }
.progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.progress.ok i { background: linear-gradient(90deg, #10b981, #34d399); }
.progress-lg { height: 11px; }

/* ---------- Alerts ---------- */
.alert {
    display: flex; align-items: flex-start; gap: 11px; padding: 13px 16px; border-radius: 13px; margin-bottom: 18px;
    border: 1px solid; font-size: 14px; animation: slideDown .3s ease;
}
.alert span { flex: 1; }
.alert-success { background: var(--green-50); border-color: #a7f3d0; color: #047857; }
.alert-error { background: var(--red-50); border-color: #fecdd3; color: #be123c; }
.alert-info { background: var(--sky-50); border-color: #bae6fd; color: #0369a1; }
.alert-x { background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; padding: 0; line-height: 0; }
.alert-x:hover { opacity: 1; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; padding: 5px; background: #e9edf5; border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 22px; }
.tab { padding: 9px 18px; border-radius: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 5px; justify-content: center; padding: 18px; border-top: 1px solid var(--line-2); }
.pg { min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 10px; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); background: #fff; }
a.pg:hover { background: var(--primary-50); border-color: var(--primary-100); text-decoration: none; color: var(--primary); }
.pg.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg.disabled, .pg.gap { color: #b6c0d1; background: transparent; border-color: transparent; }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line-2); flex-wrap: wrap; gap: 8px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; background: rgba(15, 23, 42, .5); backdrop-filter: blur(4px); }
.modal.show { display: flex; animation: fade .18s ease; }
.modal-dialog { width: 100%; max-width: 560px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
.modal-dialog.sm { max-width: 460px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Misc blocks ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .left { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chart-box { position: relative; height: 320px; }
.chart-box.sm { height: 260px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }
.note { display: flex; gap: 10px; padding: 12px 14px; background: var(--sky-50); border: 1px solid #bae6fd; color: #075985; border-radius: 12px; font-size: 13px; }
.list-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.list-line:last-child { border-bottom: 0; }
.list-line .l { min-width: 0; }
.list-line .l strong { display: block; font-size: 13.5px; }
.list-line .l span { font-size: 12.5px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- Auth (login) ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; background: #fff; }
.auth-brand {
    position: relative; overflow: hidden; color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between;
    background:
        radial-gradient(600px 400px at 0% 0%, rgba(129, 140, 248, .5), transparent 65%),
        radial-gradient(520px 420px at 100% 100%, rgba(167, 139, 250, .45), transparent 65%),
        linear-gradient(145deg, #0b1220, #1e1b4b 70%, #312e81);
}
.auth-brand::before, .auth-brand::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); }
.auth-brand::before { width: 520px; height: 520px; right: -180px; top: 14%; }
.auth-brand::after { width: 320px; height: 320px; right: -60px; top: 28%; }
.auth-brand .brand { padding: 0; position: relative; z-index: 1; }
.auth-hero { position: relative; z-index: 1; max-width: 480px; }
.auth-hero h2 { font-size: 38px; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 16px; }
.auth-hero p { color: #b4bdd6; font-size: 16px; }
.auth-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: center; color: #d6dcf0; }
.auth-points .ico { background: rgba(255, 255, 255, .1); padding: 7px; width: 34px; height: 34px; border-radius: 10px; color: #c7d2fe; }
.auth-foot { position: relative; z-index: 1; color: #7c8aa5; font-size: 13px; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 28px; letter-spacing: -.03em; margin-bottom: 8px; }
.auth-form > p { color: var(--muted); margin-bottom: 28px; }
.auth-form .field { margin-bottom: 18px; }
.pw-wrap { position: relative; }
.pw-wrap .toggle-pw { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.auth-note { margin-top: 22px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Responsif ---------- */
@media (max-width: 1280px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .grid-main { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: none; }
    .main { margin-left: 0; }
    .menu-btn { display: inline-grid; }
    .content, .topbar, .footer { padding-left: 18px; padding-right: 18px; }
    .date-chip { display: none; }
    .auth { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
}
@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid { grid-template-columns: 1fr; }
    .kv { grid-template-columns: 1fr; gap: 2px 0; }
    .kv dd { margin-bottom: 10px; }
    .stat-value { font-size: 22px; }
    .topbar-title h1 { font-size: 18px; }
    .modal { padding-top: 3vh; }
}

/* ---------- Cetak ---------- */
@media print {
    body { background: #fff; font-size: 12px; }
    .sidebar, .topbar, .footer, .no-print, .overlay, .actions, .btn, .pagination, .filters, .presets { display: none !important; }
    .main { margin: 0; }
    .content { padding: 0; max-width: none; }
    .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
    .hero { background: #fff !important; color: #000 !important; border: 1px solid #ddd; box-shadow: none; }
    .hero * { color: #000 !important; }
    .chart-box { height: 240px; }
    a { color: inherit; }
}
