/* SI-KINERJA UTD — tema putih elegan (light / premium editorial)
   Kanvas putih, kartu hairline + shadow berlapis, aksen indigo→violet dengan sentuhan emas. */
:root {
  --bg: #ffffff;
  --bg-2: #fbfbfe;
  --bg-soft: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #fbfbfe;
  --line: #e8eaf3;
  --line-soft: #f1f3f9;
  --ink: #15182b;
  --ink-2: #3c4157;
  --muted: #6a7186;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --cyan: #0891b2;
  --ok: #0f7a54;
  --warn: #a05a00;
  --bad: #b42318;
  --gold: #a67c2e;
  --radius: 16px;
  --sidebar: 248px;
  --shadow-sm: 0 1px 2px rgba(21, 24, 43, .05);
  --shadow: 0 1px 2px rgba(21, 24, 43, .04), 0 12px 32px -14px rgba(21, 24, 43, .14);
  --shadow-lg: 0 2px 6px rgba(21, 24, 43, .05), 0 24px 60px -24px rgba(21, 24, 43, .22);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* aksen latar sangat lembut agar putih tidak terasa datar */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(820px 420px at 8% -10%, rgba(79, 70, 229, .055), transparent 62%),
    radial-gradient(720px 400px at 96% -4%, rgba(124, 58, 237, .045), transparent 60%),
    radial-gradient(680px 460px at 62% 106%, rgba(8, 145, 178, .035), transparent 68%);
  z-index: 0;
}

a { color: #4338ca; text-decoration: none; font-weight: 500; }
a:hover { color: #6d28d9; }

/* ---------- layout ---------- */
.layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #e2e5f0; border-radius: 6px; }

.brand { display: flex; gap: 11px; align-items: center; padding: 18px 18px 15px; border-bottom: 1px solid var(--line-soft); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background-color: #4f46e5;
  background-image: linear-gradient(135deg, #4f46e5, #7c3aed);
  font-weight: 800; color: #fff; font-size: 16px;
  box-shadow: 0 8px 18px -6px rgba(79, 70, 229, .55);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 13.5px; letter-spacing: .06em; color: var(--ink); }
.brand-text span { font-size: 10.5px; color: var(--muted); letter-spacing: .01em; }

.nav { padding: 10px 10px 18px; flex: 1; }
.nav-group { margin-bottom: 4px; }
.nav-label {
  font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase;
  color: #6a7186; padding: 12px 10px 6px; font-weight: 700;
}
.nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 10px; color: var(--ink-2);
  font-size: 12.5px; font-weight: 500; margin-bottom: 2px;
  border: 1px solid transparent; transition: background .14s ease, color .14s ease;
}
.nav-link:hover { background: var(--bg-soft); color: var(--ink); }
.nav-link.is-active {
  background: linear-gradient(90deg, rgba(79, 70, 229, .10), rgba(124, 58, 237, .03));
  border-color: rgba(79, 70, 229, .22); color: #3226bd; font-weight: 650;
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-count {
  margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700;
  background: #fdeceb; color: #a4262c; padding: 1px 7px; border-radius: 20px;
  border: 1px solid #f7c9c6;
}
.ico { width: 15px; height: 15px; flex: 0 0 15px; opacity: .95; }

.sidebar-foot { border-top: 1px solid var(--line-soft); padding: 12px; display: grid; gap: 7px; background: #fdfdfe; }
.who { display: flex; gap: 9px; align-items: center; padding: 2px 2px 6px; }
.who-avatar {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #eef0ff, #f5f0ff); border: 1px solid #dfe2f5;
  color: #4338ca; font-weight: 700; font-size: 12px;
}
.who div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.who strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { font-size: 10.5px; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 24px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(18px) saturate(160%);
  position: sticky; top: 0; z-index: 20;
}
.nav-burger { display: none; cursor: pointer; font-size: 18px; color: var(--ink-2); }
.topbar-title h1 { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.topbar-title p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.topbar-meta { margin-left: auto; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }

.pill {
  font-size: 10.5px; font-weight: 650; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 20px; color: var(--ink-2);
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
}
.pill-live { color: #0f7a54; border-color: #c7ebdc; background: #f2fbf7; }
.pill-live i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #10b981; margin-right: 5px; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.content { padding: 20px 24px 46px; }

/* ---------- flash ---------- */
.flash {
  border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 12.5px;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
}
.flash-ok { border-color: #c7ebdc; background: #f2fbf7; color: #0b5f42; }
.flash-bad { border-color: #f7c9c6; background: #fdf3f2; color: #8f1d14; }
.flash-warn { border-color: #f5e2bf; background: #fdf9f0; color: #7a4600; }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px 14px; box-shadow: var(--shadow);
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 3px; background-color: #4f46e5;
  background-image: linear-gradient(180deg, #4f46e5, #7c3aed);
  opacity: .9;
}
.kpi-label { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kpi-value { font-size: 25px; font-weight: 750; letter-spacing: -.03em; margin-top: 5px; line-height: 1.12; color: var(--ink); }
.kpi-value small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi-hint { font-size: 11px; color: var(--muted); margin-top: 3px; }
.kpi-hint b { color: var(--ink-2); font-weight: 650; }
.kpi-bar { height: 4px; border-radius: 4px; background: var(--line-soft); margin-top: 10px; overflow: hidden; }
.kpi-bar i { display: block; height: 100%; border-radius: 4px; }
.kpi-bar i.ok { background: linear-gradient(90deg, #0f9d6b, #34d399); }
.kpi-bar i.warn { background: linear-gradient(90deg, #d97706, #fbbf24); }
.kpi-bar i.bad { background: linear-gradient(90deg, #dc2626, #f87171); }
.kpi-bar i.muted { background: #c7cbdb; }
.kpi.accent::before { background: linear-gradient(180deg, #4f46e5, #22d3ee); }
.kpi.accent .kpi-value { color: #3730c4; }
.kpi.ok::before { background: linear-gradient(180deg, #0f9d6b, #6ee7b7); }
.kpi.ok .kpi-value { color: #0b6b4a; }
.kpi.bad::before { background: linear-gradient(180deg, #dc2626, #fca5a5); }
.kpi.bad .kpi-value { color: #9f1f16; }
.kpi.warn::before { background: linear-gradient(180deg, #d97706, #fcd34d); }
.kpi.warn .kpi-value { color: #8a4b00; }

/* ---------- panel ---------- */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fdfdfe, #ffffff);
}
.panel-head h2 { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: -.005em; color: var(--ink); }
.panel-head .sub { font-size: 11px; color: var(--muted); }
.panel-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel-body { padding: 16px; }
.panel-body.tight { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: 1.55fr 1fr; }
@media (max-width: 1180px) { .grid-3, .grid-4, .grid-2-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 780px) { .grid-2, .grid-3, .grid-4, .grid-2-1 { grid-template-columns: 1fr; } }

.chart-box { position: relative; height: 228px; }
.chart-box.tall { height: 272px; }
.chart-box.short { height: 184px; }

/* ---------- table ---------- */
.table-wrap { overflow: auto; max-height: 560px; }
.table-wrap.tall { max-height: 720px; }
.table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.table-wrap::-webkit-scrollbar-thumb { background: #e2e5f0; border-radius: 10px; border: 3px solid #fff; }

table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
table.data thead th {
  position: sticky; top: 0; z-index: 2;
  background: #fafbfe; color: #6c7488;
  text-align: left; font-size: 10px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data tbody td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-2); }
table.data tbody tr:hover td { background: #fafbff; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data td.center, table.data th.center { text-align: center; }
table.data .wrap { min-width: 260px; }
table.data .trunc { max-width: 460px; color: var(--muted); }
table.data strong { color: var(--ink); font-weight: 650; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- badge / chips ---------- */
.badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .02em;
  padding: 2.5px 8px; border-radius: 20px; border: 1px solid transparent; white-space: nowrap;
}
.badge-ok { color: #0b6b4a; background: #eefaf4; border-color: #c7ebdc; }
.badge-warn { color: #8a4b00; background: #fef8ec; border-color: #f5e2bf; }
.badge-bad { color: #9f1f16; background: #fdf3f2; border-color: #f7c9c6; }
.badge-info { color: #3730c4; background: #f1f1ff; border-color: #dcdcfb; }
.badge-muted { color: #5b6178; background: #f5f6fa; border-color: #e6e8f1; }

.chip {
  display: inline-block; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 7px;
  background: #f3f3ff; border: 1px solid #e2e2fa; color: #3f37b8; white-space: nowrap;
}
.chip-muted { background: #f6f7fb; border-color: #e8eaf3; color: #545c73; }

.progress { height: 6px; border-radius: 6px; background: #eef0f7; overflow: hidden; min-width: 68px; }
.progress i { display: block; height: 100%; border-radius: 6px; }
.progress i.ok { background: linear-gradient(90deg, #0f9d6b, #34d399); }
.progress i.warn { background: linear-gradient(90deg, #d97706, #fbbf24); }
.progress i.bad { background: linear-gradient(90deg, #dc2626, #f87171); }
.progress i.muted { background: #c7cbdb; }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 780px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.field .hint { font-size: 10.5px; color: #6a7186; }
input[type=text], input[type=password], input[type=date], input[type=number], input[type=search], input[type=email], select, textarea {
  width: 100%; background: #fff; color: var(--ink);
  border: 1px solid #dfe3ef; border-radius: 10px;
  padding: 9px 11px; font-size: 12.5px; font-family: inherit;
  transition: border-color .14s ease, box-shadow .14s ease;
}
input::placeholder, textarea::placeholder { color: #a3a9bd; }
input:hover, select:hover, textarea:hover { border-color: #cdd3e4; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #8b86f0;
  box-shadow: 0 0 0 3.5px rgba(79, 70, 229, .12);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.6; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 8.5px 15px; border-radius: 10px; font-size: 12.5px; font-weight: 650;
  border: 1px solid #dfe3ef; background: #fff; color: var(--ink-2);
  cursor: pointer; font-family: inherit; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: all .14s ease;
}
.btn:hover { border-color: #c3bff5; color: #3730c4; background: #fcfcff; box-shadow: var(--shadow); }
.btn-primary {
  background-color: #4f46e5;
  background-image: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .65);
}
.btn-primary:hover { filter: brightness(1.06); color: #fff; box-shadow: 0 12px 26px -10px rgba(79, 70, 229, .7); }
.btn-ok { background: #eefaf4; border-color: #c7ebdc; color: #0b6b4a; box-shadow: none; }
.btn-ok:hover { background: #e3f7ee; border-color: #a9e0cd; color: #0b5f42; }
.btn-bad { background: #fdf3f2; border-color: #f7c9c6; color: #9f1f16; box-shadow: none; }
.btn-bad:hover { background: #fceceb; border-color: #f0b5b0; color: #8f1d14; }
.btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 8px; }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg-soft); color: #3730c4; border-color: var(--line); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.filter-bar {
  display: flex; gap: 9px; flex-wrap: wrap; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #fdfdfe;
}
.filter-bar select, .filter-bar input { width: auto; min-width: 136px; }
.filter-bar .grow { flex: 1; min-width: 160px; }

/* ---------- misc ---------- */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #fafbff; }
.list-main { min-width: 0; flex: 1; }
.list-main strong { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink); }
.list-main span { font-size: 11px; color: var(--muted); display: block; }
.list-side { text-align: right; font-size: 11px; color: var(--muted); white-space: nowrap; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); }
.tl-item:last-child { border-bottom: 0; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: 0 0 8px; background: var(--accent); box-shadow: 0 0 0 3.5px rgba(79, 70, 229, .12); }
.tl-dot.ok { background: #10b981; box-shadow: 0 0 0 3.5px rgba(16, 185, 129, .14); }
.tl-dot.warn { background: #f59e0b; box-shadow: 0 0 0 3.5px rgba(245, 158, 11, .14); }
.tl-dot.bad { background: #ef4444; box-shadow: 0 0 0 3.5px rgba(239, 68, 68, .14); }

.empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 12px; }
.empty strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; font-weight: 650; }

.section-title {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: #6a7186; font-weight: 700; margin: 6px 0 10px;
}
.muted { color: var(--muted); }
.small { font-size: 11px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hr { height: 1px; background: var(--line-soft); margin: 14px 0; }

.tabs { display: flex; gap: 6px; padding: 10px 14px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; background: #fdfdfe; }
.tab {
  padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid transparent; border-bottom: 2px solid transparent; border-radius: 10px 10px 0 0;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: #3730c4; border-bottom-color: var(--accent); background: rgba(79, 70, 229, .06); }

/* ---------- login ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; z-index: 1; }
.auth-card {
  width: 100%; max-width: 404px; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px;
  box-shadow: var(--shadow-lg);
}
.auth-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.auth-brand h1 { font-size: 16px; margin: 0; letter-spacing: -.01em; }
.auth-brand p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.auth-card .btn-primary { width: 100%; margin-top: 8px; padding: 11px; }
.auth-foot { margin-top: 18px; font-size: 11px; color: var(--muted); text-align: center; line-height: 1.7; }

/* ---------- SPMI: tile siklus PPEPP ---------- */
.ppep { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1180px) { .ppep { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .ppep { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ppep-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 15px 13px; color: var(--ink); box-shadow: var(--shadow);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.ppep-card:hover {
  border-color: #c3bff5; transform: translateY(-2px); color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.ppep-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ppep-top .ico { width: 19px; height: 19px; flex-basis: 19px; color: #4f46e5; }
.ppep-dot { width: 8px; height: 8px; border-radius: 50%; }
.ppep-dot.ok { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .14); }
.ppep-dot.warn { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .14); }
.ppep-dot.bad { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .14); }
.ppep-card strong { font-size: 13px; letter-spacing: -.01em; }
.ppep-desc { font-size: 11px; color: var(--muted); margin-top: 3px; min-height: 30px; }
.ppep-pct { font-size: 10.5px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.mini-stat span { display: block; font-size: 10.5px; color: var(--muted); }
.mini-stat strong { font-size: 16px; color: var(--ink); font-weight: 700; }

table.data.plain thead th { position: static; }

/* ---------- mobile bottom navigation (PWA / app shell) ---------- */
.bottom-nav { display: none; }

@media (max-width: 900px) {
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px) saturate(170%);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -18px rgba(21, 24, 43, .3);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 2px 8px; color: #6a7186;
    font-size: 9.5px; font-weight: 650; letter-spacing: .02em;
    border-top: 2px solid transparent; text-align: center;
  }
  .bottom-nav-item .ico { width: 19px; height: 19px; flex-basis: 19px; }
  .bottom-nav-item.is-active {
    color: #3730c4; border-top-color: var(--accent);
    background: linear-gradient(180deg, rgba(79, 70, 229, .09), transparent 72%);
  }
  .content { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .topbar { padding-top: max(12px, env(safe-area-inset-top, 0px)); }
  .install-btn { width: 100%; }

  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 60;
    transform: translateX(-102%); transition: transform .22s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 26px 0 70px -30px rgba(21, 24, 43, .45);
  }
  .nav-toggle-input:checked ~ .layout .sidebar { transform: translateX(0); }
  .nav-burger { display: block; }
  .topbar { padding: 12px 15px; }
  .content { padding: 16px 15px 46px; }
  .topbar-title p { display: none; }
  .topbar-meta .pill:not(.pill-live) { display: none; }
  .panel-head { flex-wrap: wrap; }
  .kpi-value { font-size: 22px; }
}

/* ---------- mode standalone (terpasang sebagai app) ---------- */
@media (display-mode: standalone) {
  .nav-burger { display: none !important; }
  .topbar-meta .pill-live { display: none; }
}

/* tombol pasang aplikasi di layar login */
.install-hint {
  margin-top: 16px; font-size: 11px; color: #5e657c;
  border: 1px solid #e2e2fa; border-radius: 12px; padding: 12px 14px;
  background: linear-gradient(135deg, #f7f7ff, #fdfbff); line-height: 1.65;
}
.install-hint b { color: #3730c4; }

/* aksen emas halus untuk kesan premium */
.kpi-gold::before { background: linear-gradient(180deg, #a67c2e, #e3c07a) !important; }

@media print {
  .sidebar, .topbar-meta, .filter-bar, .btn, .bottom-nav { display: none !important; }
  body, .panel, .kpi { background: #fff !important; color: #000 !important; border-color: #ccc !important; box-shadow: none !important; }
  body::before { display: none !important; }
  .content { padding: 0; }
}

/* ---------- petunjuk pengisian (help) ---------- */
.help-dot {
  display: inline-grid; place-items: center;
  width: 15px; height: 15px; margin-left: 4px;
  border-radius: 50%; border: 1px solid #cdd3e4;
  background: #f7f8fd; color: #4f46e5;
  font-size: 9.5px; font-weight: 800; line-height: 1;
  cursor: pointer; padding: 0; vertical-align: middle;
  transition: all .14s ease;
}
.help-dot:hover { background: #4f46e5; color: #fff; border-color: #4f46e5; }
.help-dot:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(79,70,229,.2); }

.help-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(21, 24, 43, .34); backdrop-filter: blur(3px);
}
.help-modal[hidden] { display: none; }
.help-modal-card {
  width: 100%; max-width: 460px; background: #fff;
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: helpIn .16s ease-out;
}
@keyframes helpIn { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }
.help-modal-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(135deg, #f7f7ff, #fdfbff);
}
.help-modal-head strong { font-size: 13px; }
.help-modal-x {
  margin-left: auto; border: 0; background: transparent; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--muted); padding: 0 2px;
}
.help-modal-x:hover { color: var(--ink); }
.help-modal-body { padding: 16px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.help-modal-foot { padding: 10px 16px; border-top: 1px solid var(--line-soft); background: #fdfdfe; }

/* panel panduan yang bisa dilipat */
.panduan-box {
  border: 1px solid #e2e2fa; border-radius: 12px;
  background: linear-gradient(135deg, #f9f9ff, #fdfbff);
  padding: 12px 14px; margin-bottom: 16px;
}
.panduan-box > summary {
  cursor: pointer; font-size: 12px; font-weight: 700; color: #3730c4;
  list-style: none;
}
.panduan-box > summary::-webkit-details-marker { display: none; }
.panduan-box > summary::before { content: "▸ "; }
.panduan-box[open] > summary::before { content: "▾ "; }
.panduan-list { margin-top: 10px; display: grid; gap: 10px; }
.panduan-item strong { display: block; font-size: 12px; color: var(--ink); margin-bottom: 2px; }
.panduan-item p { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.65; }
