/* =====================================================================
   Kinerja Keuangan RSUD — Design System
   Navy + Teal + Soft Gold · Inter
   ===================================================================== */
:root {
  --navy-950: #0a1020;
  --navy-900: #0e1730;
  --navy-800: #16224a;
  --brand: #0d9488;
  --brand-600: #0b7a70;
  --brand-50: #e6f7f5;
  --gold: #c9a45c;
  --gold-600: #a8832f;
  --gold-50: #fbf5e6;
  --green: #12a373;
  --green-50: #e7f8f1;
  --amber: #d98a0b;
  --amber-50: #fff5df;
  --red: #dc3d4a;
  --red-50: #fdecee;
  --purple: #7048e8;
  --purple-50: #f1ecff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e4e8f1;
  --bg: #f3f5fa;
  --card: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 4px 6px -2px rgba(15, 23, 42, .04), 0 12px 28px -8px rgba(15, 23, 42, .10);
  --sidebar-w: 264px;
}

*, *::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: 14px; line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, canvas, svg { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; }
.mb-2 { margin-bottom: 12px; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.wrap { flex-wrap: wrap; } .gap-1 { gap: 6px; } .gap-2 { gap: 12px; } .gap-3 { gap: 20px; } .grow { flex: 1 1 auto; }
.col { flex-direction: column; }
.ok { color: var(--green); } .bad { color: var(--red); } .warn { color: var(--amber); }

/* ---------- Layout ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  display: flex; flex-direction: column; padding: 22px 16px 16px;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  color: #cbd5ea; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; padding: 4px 8px 22px; text-decoration: none !important; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 19px; color: #fff;
  background: linear-gradient(135deg, var(--brand), #2dd4bf); box-shadow: 0 6px 18px rgba(13, 148, 136, .45);
}
.brand-text { display: flex; flex-direction: column; font-weight: 800; font-size: 17px; line-height: 1.1; letter-spacing: -.02em; }
.brand-text small { font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #6b7ba3; padding: 6px 12px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; color: #b9c5e0;
  font-weight: 500; position: relative; transition: background .15s, color .15s; text-decoration: none !important;
}
.nav-item i { width: 18px; text-align: center; font-size: 15px; color: #7f90b8; transition: color .15s; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-item.active i { color: var(--gold); }
.nav-item.active::before { content: ''; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
.sidebar-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.user-card { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); }
.avatar { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; font-weight: 700; color: var(--navy-900); background: linear-gradient(135deg, var(--gold), #e8cf94); }
.user-meta { min-width: 0; display: flex; flex-direction: column; }
.user-meta strong { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { color: #8d9cc2; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 32px;
  background: rgba(243, 245, 250, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.topbar-title { flex: 1 1 auto; min-width: 0; }
.topbar-title h1 { font-size: 21px; font-weight: 800; }
.topbar-title p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.content { flex: 1 1 auto; padding: 28px 32px 40px; max-width: 1480px; width: 100%; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 32px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.backdrop { display: none; }
.only-mobile { display: none; }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip-gold { background: var(--gold-50); color: var(--gold-600); border: 1px solid #ecd9a8; }
.chip-warn { background: var(--red-50); color: var(--red); border: 1px solid #f6c3c8; }
.chip-navy { background: #e6eaf6; color: var(--navy-800); border: 1px solid #ced6ee; }
.chip-green { background: var(--green-50); color: var(--green); border: 1px solid #bfe9d9; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-size: 16px; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); border-left: 4px solid var(--brand); font-weight: 500; color: var(--ink); animation: slideIn .35s ease; }
.toast i { margin-top: 2px; }
.toast span { flex: 1; }
.toast-x { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
.toast-success { border-color: var(--green); } .toast-success i { color: var(--green); }
.toast-error { border-color: var(--red); } .toast-error i { color: var(--red); }
.toast-warning { border-color: var(--amber); } .toast-warning i { color: var(--amber); }
.toast-info i { color: var(--brand); }
.toast.out { opacity: 0; transform: translateX(30px); transition: all .3s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Cards & Grid ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); animation: fadeUp .35s ease both; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-title { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.card-title i { color: var(--brand); }
.card-body { padding: 22px; }
.card-flush { padding: 0; }
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-32 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.span-2 { grid-column: span 2; }
.stack > * + * { margin-top: 20px; }

.stat { padding: 20px 22px; display: flex; align-items: center; gap: 16px; }
.stat-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; font-size: 20px; flex: 0 0 48px; }
.stat-icon.blue { background: var(--brand-50); color: var(--brand); }
.stat-icon.green { background: var(--green-50); color: var(--green); }
.stat-icon.amber { background: var(--amber-50); color: var(--amber); }
.stat-icon.purple { background: var(--purple-50); color: var(--purple); }
.stat-label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: transform .1s, box-shadow .15s, background .15s; text-decoration: none !important; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #14b8a6, var(--brand-600)); color: #fff; box-shadow: 0 4px 14px rgba(13, 148, 136, .35); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(13, 148, 136, .45); }
.btn-gold { background: linear-gradient(180deg, #d6b36c, var(--gold-600)); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: #f8faff; border-color: #cfd7ea; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #c12f3b; }
.btn-success { background: var(--green); color: #fff; }
.btn-ghost-light { background: rgba(255, 255, 255, .07); color: #dbe4f7; border-color: rgba(255, 255, 255, .1); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.act { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 8px; border: 0; background: transparent; cursor: pointer; font-size: 14px; color: var(--muted); transition: background .15s, color .15s; text-decoration: none !important; }
.act:hover { background: var(--brand-50); color: var(--brand); }
.act.act-amber:hover { background: var(--amber-50); color: var(--amber); }
.act.act-red:hover { background: var(--red-50); color: var(--red); }
.act.act-green:hover { background: var(--green-50); color: var(--green); }
form.inline { display: inline; margin: 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-weight: 600; font-size: 12.5px; color: var(--ink); }
.label .req { color: var(--red); }
.hint { font-size: 11.5px; color: var(--muted); }
.input, .select, textarea.input {
  width: 100%; padding: 10px 13px; border: 1px solid #d5dcec; border-radius: 10px; background: #fff; color: var(--ink);
  font: inherit; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #9aa6c0; }
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(13, 148, 136, .14); }
.input[readonly] { background: #f3f5fa; color: var(--muted); }
.input.num { text-align: right; font-variant-numeric: tabular-nums; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.f3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.f4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.input-affix { position: relative; }
.input-affix .affix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--muted); pointer-events: none; }
.input-affix .input { padding-left: 38px; }
.input-affix .affix-r { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.input-affix .input.has-r { padding-right: 38px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.check:hover { border-color: #c4cfec; background: #fafbff; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex: 0 0 auto; }
.check span { font-size: 12.5px; color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
.row-check, .check-all { width: 16px; height: 16px; cursor: pointer; }
.section-title { font-size: 14px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 9px; padding-bottom: 10px; margin: 6px 0 14px; border-bottom: 1px dashed var(--line); }
.section-title i { color: var(--brand); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pw-meter { height: 5px; border-radius: 4px; background: #e8ecf6; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .25s, background .25s; }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 13px; align-items: flex-start; border: 1px solid; }
.alert i { margin-top: 2px; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }
.alert-error { background: var(--red-50); border-color: #f6c3c8; color: #9b2230; }
.alert-success { background: var(--green-50); border-color: #bfe9d9; color: #0d7455; }
.alert-info { background: var(--brand-50); border-color: #bfe9e4; color: #2342a8; }
.alert-warn { background: var(--amber-50); border-color: #f4dba5; color: #8a5a05; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; padding: 12px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: #f8faff; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 700; }
.table td { padding: 13px 16px; border-bottom: 1px solid #eef1f8; vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #f8faff; }
.table tbody tr.selected { background: var(--brand-50); }
.table th.ck, .table td.ck { width: 44px; padding-right: 0; }
.table .name { font-weight: 600; color: var(--ink); }
.table .sub { font-size: 11.5px; color: var(--muted); }
.table a.name:hover { color: var(--brand); }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty i { font-size: 38px; color: #c5cde3; margin-bottom: 12px; display: block; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.sortlink { color: inherit; text-decoration: none !important; }
.sortlink:hover { color: var(--brand); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge-blue { background: var(--brand-50); color: var(--brand); }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-gray { background: #eceff6; color: var(--muted); }
.badge-purple { background: var(--purple-50); color: var(--purple); }
.badge-gold { background: var(--gold-50); color: var(--gold-600); }
.score-pill { display: inline-grid; place-items: center; min-width: 38px; height: 28px; padding: 0 10px; border-radius: 8px; font-weight: 800; font-size: 13px; }
.score-good { background: var(--green-50); color: var(--green); }
.score-mid { background: var(--amber-50); color: var(--amber); }
.score-bad { background: var(--red-50); color: var(--red); }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.toolbar form { display: contents; }
.search { position: relative; flex: 1 1 280px; max-width: 440px; }
.search > i.fa-magnifying-glass { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a1bd; pointer-events: none; }
.search .input { padding-left: 40px; }
.suggest-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; padding: 6px; }
.suggest-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 11px; border: 0; background: none; border-radius: 8px; cursor: pointer; font: inherit; color: var(--ink); }
.suggest-item small { color: var(--muted); margin-left: auto; font-size: 11px; }
.suggest-item i { color: #a3afc9; font-size: 12px; }
.suggest-item:hover, .suggest-item.active { background: var(--brand-50); }
.bulkbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; background: var(--brand-50); border-bottom: 1px solid #bfe9e4; }
.bulkbar .count { font-weight: 700; color: var(--brand-600); }

.pager { display: inline-flex; gap: 4px; }
.pg { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; font-weight: 600; font-size: 12.5px; color: var(--text); border: 1px solid var(--line); background: #fff; text-decoration: none !important; }
a.pg:hover { border-color: var(--brand); color: var(--brand); }
.pg.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pg.disabled { opacity: .4; }
.pg.dots { border: 0; background: none; }

/* ---------- Modal ---------- */
dialog.modal { border: 0; padding: 0; background: transparent; max-width: 94vw; }
dialog.modal::backdrop { background: rgba(10, 16, 32, .55); backdrop-filter: blur(3px); }
.modal-card { width: 400px; max-width: 94vw; background: #fff; border-radius: 18px; padding: 28px 26px 22px; text-align: center; box-shadow: 0 30px 80px rgba(10, 16, 32, .35); animation: fadeUp .25s ease; }
.modal-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--red-50); color: var(--red); display: grid; place-items: center; font-size: 24px; margin: 0 auto 14px; }
.modal-card h3 { font-size: 18px; margin-bottom: 8px; }
.modal-card p { color: var(--muted); }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---------- Tabs (form) ---------- */
.tabs { display: flex; gap: 4px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow-x: auto; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; background: none; border-radius: 9px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); background: #f4f6fc; }
.tab.active { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(13, 148, 136, .3); }
.js .tab-panel { display: none; }
.js .tab-panel.active { display: block; animation: fadeUp .25s ease; }
.tab-panel + .tab-panel { margin-top: 20px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.form-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 0 4px; margin-top: 20px; background: linear-gradient(180deg, transparent, var(--bg) 40%); }

.komp-table td, .komp-table th { padding: 9px 10px; }
.komp-table td:first-child { position: sticky; left: 0; background: #fff; font-weight: 500; color: var(--ink); min-width: 250px; border-right: 1px solid var(--line); }
.komp-table th:first-child { position: sticky; left: 0; z-index: 1; }
.komp-table input { width: 17px; height: 17px; cursor: pointer; }

/* ---------- Scoring ---------- */
.picker { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.picker .field { min-width: 220px; }
.score-hero { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0; overflow: hidden; }
.score-gauge { padding: 26px 22px; text-align: center; background: linear-gradient(160deg, #fbfcff, #eef2ff); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-wrap { position: relative; width: 250px; height: 140px; }
.gauge-num { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.gauge-num b { display: block; font-size: 54px; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.04em; }
.gauge-num span { font-size: 12px; color: var(--muted); font-weight: 600; }
.cat-badge { margin-top: 18px; padding: 9px 20px; border-radius: 999px; font-weight: 800; letter-spacing: .04em; font-size: 13px; border: 1px solid; }
.cat-high { background: var(--green-50); color: var(--green); border-color: #bfe9d9; }
.cat-moderate { background: var(--amber-50); color: var(--amber); border-color: #f4dba5; }
.cat-low { background: var(--red-50); color: var(--red); border-color: #f6c3c8; }
.score-strategy { padding: 26px 28px; }
.score-strategy h3 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.strat-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.strat-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; background: #f8faff; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); }
.strat-list i { margin-top: 3px; }
.domain-card .card-head { padding: 16px 20px; }
.domain-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; }
.domain-ico.blue { background: var(--brand-50); color: var(--brand); }
.domain-ico.green { background: var(--green-50); color: var(--green); }
.domain-ico.amber { background: var(--amber-50); color: var(--amber); }
.domain-ico.purple { background: var(--purple-50); color: var(--purple); }
.domain-total { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1; }
.domain-total small { font-size: 12px; color: var(--muted); font-weight: 600; }
.metric { padding: 12px 0; }
.metric + .metric { border-top: 1px dashed var(--line); }
.metric-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; margin-bottom: 8px; color: var(--text); }
.metric-top b { color: var(--ink); white-space: nowrap; }
.meter { height: 7px; border-radius: 6px; background: #e9edf7; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.meter.blue i { background: linear-gradient(90deg, #5b86ff, var(--brand)); }
.meter.green i { background: linear-gradient(90deg, #3bd1a0, var(--green)); }
.meter.amber i { background: linear-gradient(90deg, #f3bd55, var(--amber)); }
.meter.purple i { background: linear-gradient(90deg, #a18bff, var(--purple)); }
.meter.red i { background: linear-gradient(90deg, #ff8b94, var(--red)); }
.meter.sm { height: 6px; }

/* ---------- Dashboard ---------- */
.kpi { padding: 20px 22px; border-left: 4px solid var(--brand); }
.kpi.green { border-left-color: var(--green); } .kpi.amber { border-left-color: var(--amber); }
.kpi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.kpi-label { font-weight: 600; color: var(--muted); font-size: 13px; }
.kpi-value { font-size: 38px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.level-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 14px; }
.level-box { text-align: center; padding: 8px 2px; border: 1px solid var(--line); border-radius: 9px; background: #f8faff; }
.level-box small { display: block; font-size: 9.5px; font-weight: 700; color: var(--muted); line-height: 1.2; min-height: 23px; display: flex; align-items: center; justify-content: center; }
.level-box b { font-size: 17px; color: var(--ink); }
.komp-list { max-height: 244px; overflow-y: auto; display: grid; gap: 6px; padding-right: 4px; }
.komp-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid #eef1f8; border-radius: 9px; font-size: 12px; font-weight: 500; color: var(--ink); }
.lvl { padding: 2px 9px; border-radius: 6px; font-size: 10.5px; font-weight: 700; border: 1px solid; white-space: nowrap; }
.lvl-Paripurna { background: var(--purple-50); color: var(--purple); border-color: #dcd0fb; }
.lvl-Utama { background: var(--green-50); color: var(--green); border-color: #bfe9d9; }
.lvl-Madya { background: var(--brand-50); color: var(--brand); border-color: #bfe9e4; }
.lvl-Dasar { background: #eef1f7; color: #475569; border-color: #dfe5f1; }
.lvl-TidakKompeten { background: var(--red-50); color: var(--red); border-color: #f6c3c8; }
.rec { padding: 12px 14px; background: #fff; border: 1px solid #dfe6fb; border-left: 3px solid var(--brand); border-radius: 10px; color: var(--ink); font-size: 13px; }
.rec + .rec { margin-top: 10px; }
.chart-box { position: relative; height: 270px; }
.sum-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8faff; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 13px; }
.sum-row + .sum-row { border-top: 1px solid var(--line); }
.bpjs-card { border: 1px solid var(--line); border-radius: 13px; padding: 18px; background: #fff; }
.bpjs-card h4 { font-size: 14px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.mini { text-align: center; padding: 12px 8px; border-radius: 11px; border: 1px solid var(--line); background: #f8faff; }
.mini.blue { background: var(--brand-50); border-color: #bfe9e4; }
.mini .t { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); }
.mini.blue .t { color: var(--brand); }
.mini .v { font-weight: 800; color: var(--ink); font-size: 15px; margin: 3px 0 1px; }
.mini .k { font-size: 11px; color: var(--muted); }
.prog { margin-bottom: 14px; }
.prog-top { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12px; margin-bottom: 6px; font-weight: 600; }
.prog-top .r { text-align: right; line-height: 1.3; }
.prog-top .r small { display: block; font-weight: 500; opacity: .8; font-size: 10.5px; }
.opt-box { padding: 20px; border-radius: 13px; text-align: center; border: 1px solid; }
.opt-box .t { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; margin-bottom: 8px; }
.opt-box .v { font-size: 24px; font-weight: 800; color: var(--ink); }
.opt-box .v small { font-size: 12px; font-weight: 500; color: var(--muted); }
.opt-box .p { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.opt-indigo { background: #eef0ff; border-color: #d7dbff; } .opt-indigo .t { color: #4f46e5; }
.opt-amber { background: var(--amber-50); border-color: #f4dba5; } .opt-amber .t { color: var(--amber); } .opt-amber .p { background: #fde9b8; color: #8a5a05; }
.opt-green { background: var(--green-50); border-color: #bfe9d9; } .opt-green .t { color: var(--green); } .opt-green .p { background: #c9f0e1; color: #0d7455; }
.pie-wrap { position: relative; height: 270px; max-width: 560px; margin: 0 auto; }

/* ---------- Auth ---------- */
body.auth { background: #fff; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-hero {
  position: relative; display: flex; align-items: center; padding: 56px; color: #dbe4f7; overflow: hidden;
  background: radial-gradient(900px 500px at 85% -10%, rgba(45, 212, 191, .30), transparent 60%),
              radial-gradient(700px 500px at -10% 110%, rgba(201, 164, 92, .22), transparent 55%),
              linear-gradient(160deg, var(--navy-950), var(--navy-800));
}
.auth-hero::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 60px rgba(255, 255, 255, .02), 0 0 0 120px rgba(255, 255, 255, .015); }
.auth-hero-inner { position: relative; z-index: 1; max-width: 520px; }
.brand-lg { padding: 0 0 38px; } .brand-lg .brand-mark { width: 50px; height: 50px; font-size: 22px; } .brand-lg .brand-text { font-size: 21px; }
.auth-hero h2 { color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.18; }
.auth-hero p { margin-top: 16px; font-size: 15px; line-height: 1.7; color: #aebbd9; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.hero-points li { display: flex; align-items: center; gap: 12px; color: #dbe4f7; font-weight: 500; }
.hero-points i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(201, 164, 92, .2); color: var(--gold); font-size: 11px; }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 28px; background: #fbfcff; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.auth-card > .muted { margin: 6px 0 26px; }
.auth-card .toast-stack { position: static; width: 100%; margin-bottom: 18px; }
.auth-card form { display: grid; gap: 16px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth-alt a { font-weight: 600; }
.auth-foot { margin-top: 26px; font-size: 12px; color: var(--muted); }
.trial-note { display: flex; gap: 12px; padding: 13px 15px; border-radius: 12px; background: var(--gold-50); border: 1px solid #ecd9a8; color: #7c5d14; font-size: 12.5px; margin-bottom: 4px; }

/* ---------- Print ---------- */
@media print {
  .sidebar, .topbar, .footer, .no-print, .toast-stack, .backdrop { display: none !important; }
  .main { margin: 0; } .content { padding: 0; max-width: none; }
  body { background: #fff; } .card { box-shadow: none; break-inside: avoid; }
  .meter i { transition: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-32 { grid-template-columns: 1fr; }
  .form-grid.f4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: none; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .4); }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(10, 16, 32, .5); z-index: 35; }
  .main { margin-left: 0; }
  .only-mobile { display: inline-grid; place-items: center; }
  .topbar { padding: 12px 16px; } .content { padding: 18px 16px 32px; } .footer { padding: 14px 16px; }
  .topbar-title h1 { font-size: 18px; }
  .score-hero { grid-template-columns: 1fr; }
  .score-gauge { border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
}
@media (max-width: 680px) {
  .cols-2, .cols-3, .cols-4, .form-grid, .form-grid.f3, .form-grid.f4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .chip { font-size: 11px; padding: 5px 9px; }
  .topbar-right .chip i { display: none; }
  .search { max-width: none; flex-basis: 100%; }
}

/* ---------- Tambahan ---------- */
.stat-value.small-val { font-size: 18px; padding-top: 4px; }
.toolbar .btn-gold { margin-left: auto; }
.card-body.flex.gap-2 { justify-content: flex-end; border-top: 1px solid var(--line); }
code { background: #eef1f8; padding: 2px 6px; border-radius: 6px; font-size: 12px; }
.sum-row b { color: var(--ink); }
@media (max-width: 680px) { .toolbar .btn-gold { margin-left: 0; } }

/* ---------- Kinerja Keuangan ---------- */
.cat-blue { background: #e8f0ff; color: #1d4ed8; border-color: #c7d8ff; }
.cat-green { background: var(--green-50); color: var(--green); border-color: #bfe9d9; }
.cat-amber { background: var(--amber-50); color: var(--amber); border-color: #f4dba5; }
.cat-red { background: var(--red-50); color: var(--red); border-color: #f6c3c8; }
.gauge-big { font-size: 46px !important; }
.table tfoot .total-row td { background: #f8faff; border-top: 2px solid var(--line); padding: 14px 16px; font-size: 14px; color: var(--ink); }
.ana-box { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fafbff; }
.ana-box h4 { display: flex; align-items: center; gap: 9px; font-size: 14px; margin-bottom: 10px; }
.ana-box ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13px; color: var(--ink); line-height: 1.55; }
.sticky-col { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 108px); overflow-y: auto; }
.pv-total { font-size: 46px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1.1; }
.pv-table .table th, .pv-table .table td { padding: 9px 10px; font-size: 12px; }
@media (max-width: 1180px) { .sticky-col { position: static; max-height: none; } }
@media print { .sticky-col { position: static; max-height: none; } #dashboard-print-area .card { break-inside: avoid; } }
