/* ==========================================================================
   Pendataan Ujian — gaya antarmuka
   Font: IBM Plex Sans (cadangan: Segoe UI/Roboto/Arial). Motif: lembar jawab (LJK). Status peserta digambar sebagai bubble:
   kosong separuh = DNS (menunggu), terisi = DNT (valid), silang = ditolak.
   ========================================================================== */

:root {
  /* Modern SaaS palette — clean admin dashboard */
  --paper: #ffffff;
  --bg: #f4f6f9;
  --bg-2: #eef1f6;
  --ink: #1e293b;
  --ink-2: #64748b;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --line-2: #cbd5e1;

  /* Primary: modern blue */
  --pine: #3b82f6;
  --pine-d: #2563eb;
  --pine-l: #dbeafe;
  --pine-xl: #eff6ff;

  --amber: #f59e0b;
  --amber-ink: #b45309;
  --amber-l: #fef3c7;

  --red: #ef4444;
  --red-ink: #b91c1c;
  --red-l: #fee2e2;

  --r-s: 8px; --r-m: 10px; --r-l: 14px;
  --f-d: 'IBM Plex Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
  --f-b: 'IBM Plex Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --side: 260px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--f-b); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--pine); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ic { width: 18px; height: 18px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--pine) 45%, white); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--pine-l); }

/* ---------- Bubble (motif utama) ---------- */
.bub {
  position: relative; display: inline-block; flex: none;
  width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--c, currentColor); vertical-align: -1px;
}
.s-dns .bub, .st.s-dns .bub { background: conic-gradient(from 180deg, var(--c) 0 50%, transparent 0); }
.s-dnt .bub { background: var(--c, currentColor); }
.s-ditolak .bub::before, .s-ditolak .bub::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 2px; background: var(--c, currentColor); border-radius: 2px;
}
.s-ditolak .bub::before { transform: translate(-50%, -50%) rotate(45deg); }
.s-ditolak .bub::after { transform: translate(-50%, -50%) rotate(-45deg); }

.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px;
  font-weight: 600; font-size: 13px; line-height: 1.3; white-space: nowrap;
}
.pill small { font-weight: 500; opacity: .7; font-size: 11.5px; letter-spacing: .02em; }
.s-dns { color: var(--amber-ink); background: var(--amber-l); --c: var(--amber); }
.s-dnt { color: var(--pine-d); background: var(--pine-l); --c: var(--pine); }
.s-ditolak { color: var(--red-ink); background: var(--red-l); --c: var(--red); }
.st { display: inline-flex; background: none !important; padding: 0 !important; }
.pill.neutral { color: var(--ink-2); background: var(--bg-2); }
.pill.on { color: var(--pine-d); background: var(--pine-l); }
.pill.off { color: var(--ink-2); background: var(--bg-2); }
.pill.role-1 { background: var(--pine-xl); color: var(--pine-d); border: 1px solid var(--pine-l); }
.pill.role-2 { background: #eef1fb; color: #34428a; }
.pill.role-3 { background: var(--amber-l); color: var(--amber-ink); }

/* ---------- Kerangka ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; background: var(--paper); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 20px 12px 14px; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: flex; gap: 3px; align-items: center; }
.brand-mark i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--pine); display: block; }
.brand-mark i:nth-child(2) { background: conic-gradient(from 180deg, var(--pine) 0 50%, transparent 0); }
.brand-mark i:nth-child(3) { background: var(--pine); }
.brand b { font: 700 17px/1.15 var(--f-d); letter-spacing: -.01em; display: block; }
.brand small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.nav { display: flex; flex-direction: column; gap: 1px; position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; padding-right: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 500; font-size: 14.5px; transition: color .15s, background-color .15s;
}
.nav a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] {
  color: var(--pine-d); background: var(--pine-xl); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--pine);
}
.nav a[aria-current="page"]::before { display: none; }

/* Grup menu dinamis (collapsible) */
.nav-sec { margin-top: 12px; }
.nav-sec:first-child { margin-top: 2px; }
.nav-sec-t {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 12px; margin: 0; border: 0; background: transparent; border-radius: 8px;
  font: 600 11px/1.3 var(--f-b); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3);
  cursor: pointer; transition: color .15s, background-color .15s;
}
.nav-sec-t:hover { color: var(--ink-2); background: var(--bg); }
.nav-sec-t .nav-chev {
  width: 15px; height: 15px; flex: none; transition: transform .28s var(--ease); color: var(--ink-3);
}
.nav-sec.open .nav-sec-t .nav-chev { transform: rotate(180deg); }
.nav-sec-b {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease);
  overflow: hidden;
}
.nav-sec.open .nav-sec-b { grid-template-rows: 1fr; }
.nav-sec-inner { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 1px; }
.nav-sec:not(.open) .nav-sec-b a { visibility: hidden; }
.nav-sec.open .nav-sec-b a { visibility: visible; transition: visibility 0s .04s; }

/* Legacy label */
.nav-group { margin: 16px 12px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }

.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.me .av { width: 36px; height: 36px; }
.me-t { min-width: 0; flex: 1; }
.me-t b { display: block; font-size: 13.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-t span { font-size: 12px; color: var(--ink-3); }

.top { display: none; }
.scrim { display: none; }

.main { min-width: 0; padding: 28px clamp(18px, 3.2vw, 40px) 64px; background: var(--bg); }
.page { max-width: 1200px; margin: 0 auto; }

.head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.head h1 { font: 700 clamp(24px, 3.2vw, 32px)/1.12 var(--f-d); letter-spacing: -.02em; color: var(--ink); }
.head p { color: var(--ink-2); margin-top: 6px; max-width: 58ch; font-size: 14.5px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Tombol & ikon-aksi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  background: var(--pine); color: #fff;
  box-shadow: var(--shadow-sm);
  transition: background-color .15s, transform .12s var(--ease), box-shadow .15s, border-color .15s; text-decoration: none;
}
.btn:hover { background: var(--pine-d); text-decoration: none; color: #fff; box-shadow: var(--shadow); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn.danger { background: var(--red); box-shadow: none; }
.btn.danger:hover { background: var(--red-ink); }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.is-off, .btn.is-off:hover { background: #d9dedc; color: #7a8480; border-color: #d9dedc; box-shadow: none; cursor: not-allowed; }
.tbl tr.locked input, .tbl tr.locked select { background: transparent; border-color: transparent; color: var(--ink-2); cursor: default; }
.tbl tr.locked .foto-btn { cursor: default; }
.tbl tr.locked td.first small.ket { display: block; margin-top: 2px; }
small.ket { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; white-space: normal; }
.steps { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.steps i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; }
.steps i.done { background: var(--pine); }
.steps i.now { background: var(--amber, #d89a1b); box-shadow: 0 0 0 3px #d89a1b33; }
.steps u { width: 14px; height: 2px; background: var(--line-2); text-decoration: none; }
.steps u.done { background: var(--pine); }

.btn.busy { pointer-events: none; opacity: .85; }
.btn.busy::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.acts { display: flex; gap: 4px; justify-content: flex-end; }
.tbl td.act { width: 1%; white-space: nowrap; }
.ib {
  position: relative; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 8px;
  border: 0; background: transparent; color: var(--ink-2); transition: background-color .15s, color .15s, transform .12s var(--ease);
}
.ib:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.ib:active { transform: scale(.92); }
.ib.ok { background: var(--pine-l); color: var(--pine-d); }
.ib.ok:hover { background: var(--pine); color: #fff; }
.ib.no:hover { background: var(--red-l); color: var(--red-ink); }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font: 500 12.5px/1.3 var(--f-b); padding: 5px 9px; border-radius: 7px; white-space: nowrap;
  pointer-events: none; z-index: 20; animation: tip .15s var(--ease);
}
@keyframes tip { from { opacity: 0; transform: translate(-50%, 3px); } }

/* ---------- Panel ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.panel-h h2 { font: 600 19px/1.2 var(--f-d); letter-spacing: -.01em; }
.panel-h span { color: var(--ink-3); font-size: 14px; }
.panel-b { padding: 18px 22px 22px; }

/* ---------- Dashboard ---------- */

/* Alur data peserta: posisi peserta dalam alur DNS -> kota -> provinsi -> DNT, lama menunggu, dan tugas pengguna */
.alur-sum { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: 14.5px; color: var(--ink-2); max-width: 72ch; }
.alur-sum .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alur-sum b { color: var(--ink); }
.alur-sum.warn .ic { color: var(--amber-ink); } .alur-sum.ok .ic { color: var(--pine-d); }
.alur { list-style: none; margin: 0; padding: 0; }
.alur-side { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.alur-i { --c: var(--line-2); position: relative; }
.alur-i::before { content: ''; position: absolute; left: 19px; top: 36px; bottom: -12px; width: 2px; background: var(--line); }   /* sambungan antar tahap */
.alur > .alur-i:last-child::before { display: none; }
.alur-row { display: grid; grid-template-columns: 20px minmax(0, min(340px, 42%)) minmax(0, 1fr) 4.6em; gap: 6px 16px; align-items: center; padding: 12px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background-color .15s; }
a.alur-row:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.alur-bub { align-self: start; margin-top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--c); background: var(--paper); position: relative; z-index: 1; }
.a-dns { --c: var(--amber); } .a-dns .alur-bub { background: conic-gradient(from 180deg, var(--amber) 0 50%, var(--paper) 0); }
.a-kota { --c: #4a5bb8; } .a-kota .alur-bub { background: conic-gradient(from 180deg, #4a5bb8 0 70%, var(--paper) 0); }
.a-prov { --c: #7a52b8; } .a-prov .alur-bub { background: conic-gradient(from 180deg, #7a52b8 0 88%, var(--paper) 0); }
.a-dnt { --c: var(--pine); } .a-dnt .alur-bub { background: var(--pine); }
.a-tol { --c: var(--red); } .a-tol .alur-bub { background: linear-gradient(45deg, transparent 42%, var(--red) 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, var(--red) 42% 58%, var(--paper) 58%); }
.alur-nm b { display: block; font-weight: 600; line-height: 1.3; }
.alur-nm small { display: block; margin-top: 1px; color: var(--ink-3); font-size: 13px; line-height: 1.35; }
.alur-flags { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.alur-chip { font-size: 12.5px; font-weight: 600; line-height: 1; padding: 5px 9px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); }
.alur-chip.warn { background: var(--amber-l); color: var(--amber-ink); }
.alur-chip.me { background: var(--pine); color: #fff; }
.alur-bar { display: block; height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.alur-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--c); animation: alur-grow .8s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes alur-grow { from { width: 0; } }
.alur-n { text-align: right; }
.alur-n b { display: block; font: 700 18px/1.1 var(--f-d); font-variant-numeric: tabular-nums; }
.alur-n small { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.alur-i.nol .alur-nm b, .alur-i.nol .alur-n b { color: var(--ink-3); }
@media (max-width: 640px) {
  .alur-row { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .alur-nm { grid-column: 2; grid-row: 1; } .alur-n { grid-column: 3; grid-row: 1; }
  .alur-bar { grid-column: 2 / -1; grid-row: 2; }
  .alur-flags { grid-row: 3; }
}

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; background: none; color: var(--ink-2); }
.legend .bub { width: 12px; height: 12px; }

.stats { display: flex; flex-direction: column; padding: 8px 22px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.stat:last-child { border-bottom: 0; }
.stat .bub { width: 22px; height: 22px; border-width: 3px; }
.stat .s-ditolak .bub::before, .stat .s-ditolak .bub::after { width: 11px; height: 3px; }
.stat.tot .bub { color: var(--ink-3); }
.stat-n { font: 700 34px/1 var(--f-d); letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.stat-l { font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.stat > div:last-child { margin-left: auto; text-align: right; }


.rk { width: 100%; border-collapse: collapse; }
.rk td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rk tr:last-child td { border-bottom: 0; }
.rk .nm { font-weight: 600; padding-right: 14px; }
.rk .sub { display: block; color: var(--ink-3); font-size: 13px; font-weight: 400; }
.rk .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; width: 62px; }
.bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--bg-2); min-width: 120px; }
.bar i { display: block; height: 100%; width: 0; transition: width .9s var(--ease); }
.bar i.dnt { background: var(--pine); } .bar i.dns { background: var(--amber); } .bar i.tol { background: var(--red); }
.bar.go i { width: var(--w); }

.q { display: flex; flex-direction: column; }
.q-i { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.q-i:last-child { border-bottom: 0; }
.q-i:hover { text-decoration: none; }
.q-i:hover .q-n { color: var(--pine-d); }
.q-t { min-width: 0; flex: 1; }
.q-n { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.q-s { font-size: 13px; color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-s.bad { color: var(--red-ink); }
.empty { text-align: center; padding: 34px 14px; color: var(--ink-2); }
.empty .bub { width: 30px; height: 30px; border-width: 3px; color: var(--pine); margin-bottom: 10px; }
.empty b { display: block; font: 600 17px var(--f-d); color: var(--ink); margin-bottom: 4px; }

/* ---------- Avatar ---------- */
.av { width: 42px; height: 54px; border-radius: 9px; object-fit: cover; background: var(--bg-2); flex: none; cursor: zoom-in; }
.av-i { display: grid; place-items: center; font: 700 14px var(--f-d); color: var(--pine-d); background: var(--pine-l); cursor: default; }
.av.round { width: 40px; height: 40px; border-radius: 50%; }
.av.logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 3px; cursor: zoom-in; }
.av.logo.av-i { padding: 0; cursor: default; border: 0; background: var(--pine-l); }
.av.sm { width: 34px; height: 44px; }

/* ---------- Toolbar & tabel ---------- */
.bar-t { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input[type=search] { padding-left: 42px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--paper); color: var(--ink-2); font-weight: 550; font-size: 14.5px; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] b { color: #ffffffb3; }
.chip .bub { width: 11px; height: 11px; }
.sel { min-height: 40px; padding: 0 36px 0 14px; width: auto; max-width: 240px; }

.tbl-wrap {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; padding: 12px 16px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: var(--bg); border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none;
  text-transform: uppercase; letter-spacing: .02em;
}
.tbl th[data-sort] { cursor: pointer; }
.tbl th[data-sort]:hover { color: var(--ink); }
.tbl th[data-sort]::after { content: '↕'; margin-left: 6px; opacity: .35; font-size: 11px; }
.tbl th[data-dir="asc"]::after { content: '↑'; opacity: 1; color: var(--pine); }
.tbl th[data-dir="desc"]::after { content: '↓'; opacity: 1; color: var(--pine); }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14.5px; }
.tbl tbody tr { transition: background-color .12s; }
.tbl tbody tr:hover { background: var(--pine-xl); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.gone { animation: gone .32s var(--ease) forwards; }
@keyframes gone { to { opacity: 0; transform: translateX(24px); } }
.tbl tr.hid { display: none; }
.cell { display: flex; align-items: center; gap: 13px; min-width: 0; }
.cell b { display: block; font-weight: 600; line-height: 1.3; }
.cell small { white-space: nowrap; }
.cell small, .muted { color: var(--ink-3); font-size: 13.5px; }
.cell small { display: block; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.reason { display: block; margin-top: 6px; color: var(--red-ink); font-size: 13px; max-width: 30ch; }
.nores { display: none; padding: 40px 16px; text-align: center; color: var(--ink-2); }
.nores.show { display: block; }
.table-foot { padding: 12px 16px; font-size: 13.5px; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--bg); }

/* ---------- Form ---------- */
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f > span, .f > legend { font-weight: 600; font-size: 14px; color: var(--ink); }
.f em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.f small { color: var(--ink-3); font-size: 13px; }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=tel], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--paper); color: var(--ink);
  transition: border-color .2s, box-shadow .2s; outline: none; appearance: none;
}
select {
  padding-right: 38px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7f78' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--pine); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pine) 15%, transparent); }
input[readonly] { background: var(--bg); color: var(--ink-2); }
input:user-invalid { border-color: var(--red); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span2 { grid-column: 1 / -1; }
.seg { display: inline-flex; padding: 4px; background: var(--bg-2); border-radius: 12px; gap: 4px; width: fit-content; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 18px; border-radius: 9px; font-weight: 600; color: var(--ink-2); transition: all .2s var(--ease); }
.seg input:checked + span { background: var(--paper); color: var(--pine-d); box-shadow: 0 1px 3px #0b2a2214; }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--pine) 45%, white); }
.sw { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.sw input { position: absolute; opacity: 0; }
.sw i { width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; transition: background-color .25s; flex: none; }
.sw i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .25s var(--ease); }
.sw input:checked + i { background: var(--pine); }
.sw input:checked + i::after { transform: translateX(18px); }
.sw input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--pine) 45%, white); outline-offset: 2px; }

.drop {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 14px;
  background: var(--bg); transition: border-color .2s, background-color .2s; cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--pine); background: var(--pine-xl); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-pv { width: 64px; height: 82px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-3); overflow: hidden; flex: none; }
.drop-pv.logo { width: 82px; height: 82px; }
.drop-pv img { width: 100%; height: 100%; object-fit: cover; animation: pop .35s var(--ease); }
.drop-pv.logo img { object-fit: contain; padding: 6px; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
.drop b { display: block; }
.drop small { color: var(--ink-3); }
.pw { position: relative; }
.pw input { padding-right: 46px; }
.pw button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--ink-3); border-radius: 9px; display: grid; place-items: center; }
.pw button:hover { color: var(--ink); background: var(--bg-2); }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--red-l); color: var(--red-ink); font-size: 14px; }
.note.info { background: var(--pine-xl); color: var(--pine-d); }
.note .ic { margin-top: 2px; }

/* ---------- Modal ---------- */
dialog.modal {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .18), 0 0 0 1px var(--line); overflow: hidden;
}
dialog.modal.wide { width: min(680px, calc(100vw - 24px)); }
dialog.modal.sm { width: min(430px, calc(100vw - 24px)); }
dialog.modal[open] { animation: modal-in .32s var(--ease); display: flex; flex-direction: column; }
dialog.modal[open]::backdrop { animation: fade .25s ease both; }
dialog.modal::backdrop { background: color-mix(in srgb, #0d2b22 42%, transparent); backdrop-filter: blur(3px); }
dialog.modal.closing { animation: modal-out .2s ease forwards; }
dialog.modal.closing::backdrop { animation: fade-out .2s ease forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.m-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 6px; }
.m-h h2 { font: 700 22px/1.2 var(--f-d); letter-spacing: -.015em; }
.m-b { padding: 14px 24px 8px; overflow-y: auto; display: grid; gap: 16px; }
.m-f { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; }
.m-form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.m-p { padding: 0 24px; color: var(--ink-2); }
.m-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--red-l); color: var(--red-ink); margin: 24px 24px 0; }
.m-ic .ic { width: 24px; height: 24px; }
.preset { display: flex; flex-wrap: wrap; gap: 8px; }
.preset button { border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; color: var(--ink-2); transition: all .2s; }
.preset button:hover { border-color: var(--pine); color: var(--pine-d); background: var(--pine-xl); }
dialog.lightbox { background: transparent; border: 0; padding: 0; max-width: 92vw; max-height: 92dvh; overflow: visible; }
dialog.lightbox::backdrop { background: #0a1a15d9; backdrop-filter: blur(4px); }
dialog.lightbox[open] { animation: modal-in .3s var(--ease); }
dialog.lightbox img { max-height: 86dvh; border-radius: 16px; background: #fff; box-shadow: 0 30px 80px #0008; }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; pointer-events: none; max-width: calc(100vw - 40px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 420px; padding: 13px 14px 13px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; box-shadow: 0 14px 40px -10px rgba(15, 23, 42, .28); animation: toast-in .45s var(--ease) both; position: relative; overflow: hidden;
}
.toast .ic { color: #7ee0bd; }
.toast.err .ic { color: #ff9b8d; }
.toast span { flex: 1; font-weight: 500; font-size: 14.5px; line-height: 1.4; }
.toast button { border: 0; background: none; color: #fff9; padding: 4px; display: grid; }
.toast button:hover { color: #fff; }
.toast::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; background: #7ee0bd; width: 100%; transform-origin: left; animation: life 5s linear forwards; }
.toast.err::after { background: #ff9b8d; }
.toast.out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@keyframes life { to { transform: scaleX(0); } }

/* ---------- Log ---------- */
.tl-day { margin: 26px 0 10px; font: 600 16px var(--f-d); color: var(--ink-2); }
.tl-day:first-child { margin-top: 0; }
.tl { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 6px 22px; }
.tl-i { display: grid; grid-template-columns: 58px 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--line); }
.tl-i:last-child { border-bottom: 0; }
.tl-i.hid { display: none; }
.tl-t { color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 8px; font-size: 14px; }
.tl-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); }
.tl-ic.ok { background: var(--pine-l); color: var(--pine-d); }
.tl-ic.no { background: var(--red-l); color: var(--red-ink); }
.tl-ic.am { background: var(--amber-l); color: var(--amber-ink); }
.tl-b b { font-weight: 600; }
.tl-b p { color: var(--ink-2); font-size: 14.5px; margin-top: 1px; overflow-wrap: anywhere; }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--paper); }
.auth-art { position: relative; background: var(--pine-xl); display: flex; flex-direction: column; justify-content: space-between; padding: 40px clamp(28px, 5vw, 72px); overflow: hidden; }
.auth-art h2 { font: 700 clamp(30px, 3.6vw, 48px)/1.06 var(--f-d); letter-spacing: -.015em; max-width: 14ch; color: var(--pine-d); }
.auth-art p { margin-top: 16px; color: var(--ink-2); max-width: 40ch; font-size: 17px; }
.auth-sheet { --sz: 22px; display: grid; grid-template-columns: repeat(auto-fill, var(--sz)); gap: 10px; margin: 36px 0; justify-content: start; max-width: 560px; }
.auth-form-wrap { display: grid; place-items: center; padding: 32px clamp(20px, 4vw, 56px); }
.auth-form { width: min(380px, 100%); display: grid; gap: 18px; }
.auth-form h1 { font: 700 34px/1.1 var(--f-d); letter-spacing: -.015em; }
.auth-form > p { color: var(--ink-2); margin-top: -8px; }
.auth-form.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.auth-form .btn { min-height: 48px; font-size: 16px; }

/* ---------- Kartu peserta (cetak) ---------- */
.kartu-body { background: var(--bg); min-height: 100vh; padding: 28px 16px 60px; }
.kartu-bar { max-width: 620px; margin: 0 auto 20px; display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.kartu { width: 620px; max-width: 100%; margin: 0 auto; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; animation: pop .5s var(--ease); }
.k-head { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1.5px solid var(--ink); background: var(--pine-xl); }
.k-head img, .k-head .av-i { width: 58px; height: 58px; object-fit: contain; flex: none; border-radius: 12px; cursor: default; }
.k-head b { display: block; font: 700 19px/1.15 var(--f-d); letter-spacing: -.01em; color: var(--pine-d); }
.k-head div span { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; display: block; margin-top: 3px; }
.k-body { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; gap: 20px; padding: 20px 22px 18px; align-items: start; }
.k-foto { width: 124px; height: 165px; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--bg-2); }
.k-no { font: 700 27px/1.05 var(--f-d); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0 14px; }
.k-dl { display: grid; grid-template-columns: 118px 1fr; gap: 6px 10px; margin: 0; font-size: 14.5px; }
.k-dl dt { color: var(--ink-3); }
.k-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.omr { display: grid; grid-auto-flow: column; gap: 3px; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; }
.omr div { display: grid; gap: 3px; }
.omr i { width: 8px; height: 8px; border-radius: 50%; border: 1.4px solid var(--line-2); display: block; }
.omr i.on { background: var(--ink); border-color: var(--ink); }
.k-foot { display: flex; justify-content: space-between; gap: 20px; padding: 6px 22px 20px; font-size: 13.5px; color: var(--ink-2); }
.k-foot div { width: 180px; text-align: center; }
.k-foot hr { border: 0; border-top: 1px solid var(--ink); margin: 44px 0 6px; }
.k-foot { align-items: flex-end; }
.k-foot .k-qrw { width: 100px; }
.k-foot .k-qr { width: 88px; height: 88px; margin: 0 auto 4px; }
.k-foot .k-qrw small { display: block; font-size: 10.5px; line-height: 1.2; color: var(--ink-3); }

/* ---------- Tabel -> kartu di layar kecil ---------- */
@media (max-width: 1080px) {
  .dash-mid, .dash-bottom, .dash-bottom.b2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { flex-direction: row; flex-wrap: wrap; gap: 0 28px; }
  .stat { flex: 1 1 200px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; inset: 0 auto 0 0; width: min(290px, 86vw); transform: translateX(-102%);
    visibility: hidden; transition: transform .38s var(--ease), visibility 0s .38s;
  }
  body.nav-open .side { transform: none; visibility: visible; transition: transform .38s var(--ease); box-shadow: 20px 0 60px -20px rgba(15, 23, 42, .18); }
  .scrim { display: block; position: fixed; inset: 0; background: #0d2b2266; backdrop-filter: blur(2px); z-index: 30; opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .top { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; gap: 12px; padding: 10px 14px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .top .brand { padding: 0; }
  .top .brand-mark i { width: 9px; height: 9px; }
  .top .brand b { font-size: 17px; }
  .top .brand small { display: none; }
  .main { padding-top: 22px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 26px 24px 8px; }
  .auth-art p { display: none; }
  .auth-sheet { --sz: 17px; gap: 8px; margin: 22px 0 18px; }
  .auth-art h2 { font-size: 28px; max-width: none; }
}
@media (max-width: 760px) {
  .tbl.stack thead { display: none; }
  .tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
  .tbl.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); position: relative; }
  .tbl.stack tr:last-child { border-bottom: 0; }
  .tbl.stack td { border: 0; padding: 4px 0; }
  .tbl.stack td[data-l]::before { content: attr(data-l); display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 1px; }
  .tbl.stack td.first { padding-bottom: 8px; }
  .tbl.stack td.first::before, .tbl.stack td.act::before { display: none; }
  .tbl.stack td.act { padding-top: 10px; }
  .tbl.stack .acts { justify-content: flex-start; }
  .tbl.stack .ib { background: var(--bg); width: 40px; height: 40px; }
  .grid2 { grid-template-columns: 1fr; }
  .k-body { grid-template-columns: 100px minmax(0, 1fr); }
  .k-foto { width: 100px; height: 134px; }
  .omr { display: none; }
  .k-no { font-size: 24px; }
  .toasts { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .toast { max-width: none; }
  .tl-i { grid-template-columns: 40px minmax(0, 1fr); }
  .tl-t { grid-column: 2; grid-row: 2; padding: 0; margin-top: -8px; }
  .tl-b { grid-column: 2; }
  .tl-ic { grid-row: 1 / span 2; }
  .head-actions, .head-actions .btn { width: 100%; }
  .search { max-width: none; }
  .sel { max-width: none; flex: 1; }
  .m-f .btn { flex: 1; }
}

/* ---------- Impor madrasah ---------- */
.imp { display: grid; gap: 20px; max-width: 760px; }
.imp-steps { margin: 0 0 20px; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); }
.imp-steps b { color: var(--ink); }
.imp-form { display: grid; gap: 16px; }
.imp-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.imp-sum > div { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--pine-xl); }
.imp-sum > div.bad { background: var(--red-l); color: var(--red-ink); }
.imp-sum > div.bad .stat-l { color: var(--red-ink); }
.imp-cap { color: var(--ink-2); margin-bottom: 12px; }
.drop.picked { border-style: solid; border-color: var(--pine); background: var(--pine-xl); }
@media (max-width: 560px) { .imp-sum { grid-template-columns: repeat(2, 1fr); } }

@media print {
  @page { size: A4; margin: 14mm; }
  body, .kartu-body { background: #fff; padding: 0; }
  .kartu-bar { display: none; }
  .kartu { animation: none; margin: 0; width: 170mm; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .bar i { width: var(--w) !important; }
  .toast::after { display: none; }
}


/* ---------- Dashboard informatif ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 20px 16px; border-top: 3px solid var(--line-2); }
.kpi.s-dnt { border-top-color: var(--pine); } .kpi.s-dns { border-top-color: var(--amber); } .kpi.s-ditolak { border-top-color: var(--red); }
.kpi:first-child { border-top-color: var(--ink-3); }
.kpi, .kpi.s-dnt, .kpi.s-dns, .kpi.s-ditolak { background: var(--paper); color: var(--ink); }
.kpi-l { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.kpi-l .ic { width: 16px; height: 16px; }
.kpi-n { font: 700 34px/1.1 var(--f-d); font-variant-numeric: tabular-nums; margin: 8px 0 6px; letter-spacing: -.02em; }
.kpi-s { font-size: 13px; color: var(--ink-3); } .kpi-s b { color: var(--ink-2); font-weight: 600; }
.meter { height: 6px; border-radius: 99px; background: var(--bg-2); margin-top: 12px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--c); }
.dash-mid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.dash-bottom { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.dash-bottom.b2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.dash-bottom.b2 > .alur-panel:only-child { grid-column: 1 / -1; }
.trend { display: flex; align-items: flex-end; gap: 6px; height: 190px; border-bottom: 1px solid var(--line-2); padding-bottom: 22px; position: relative; }
.tr-c { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.tr-c i { display: block; width: 100%; max-width: 30px; border-radius: 5px 5px 0 0; background: var(--pine); transition: opacity .2s; }
.tr-c i.z { background: var(--line-2); border-radius: 2px; }
.tr-c:hover i { opacity: .75; }
.tr-c span { position: absolute; bottom: -22px; font-size: 12px; color: var(--ink-3); }
.comp { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.donut { --a: 0; --b: 0; width: 118px; height: 118px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--pine) 0 calc(var(--a) * 1%), var(--amber) 0 calc(var(--b) * 1%), var(--red) 0 100%); }
.donut.none { background: var(--bg-2); }
.donut > div { width: 82px; height: 82px; border-radius: 50%; background: var(--paper); display: grid; place-content: center; text-align: center; }
.donut b { font: 700 22px/1 var(--f-d); } .donut span { font-size: 12px; color: var(--ink-3); }
.lg { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 9px; }
.lg li { display: flex; align-items: center; gap: 8px; font-size: 14px; background: none; color: var(--ink-2); }
.lg li b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.mini { margin-top: 14px; } .mini-h { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.mini-h b { color: var(--ink); font-weight: 600; margin-left: 4px; }
.split { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--bg-2); }
.split i { display: block; height: 100%; } .split .l { background: var(--pine); } .split .p { background: var(--amber); } .split .f { background: var(--pine); border-radius: 99px; }
.rk .pc { text-align: right; width: 52px; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.act { list-style: none; margin: 0; padding: 0; }
.act li { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.act li:last-child { border-bottom: 0; }
.act-t { min-width: 0; } .act-t b { font-weight: 600; } .act-t span { display: block; font-size: 13px; color: var(--ink-3); }
.act time { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } .comp { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   Alur DNS -> DNT: status tambahan, tabel yang bisa diedit, tab, bilah aksi
   ========================================================================== */
.s-diajukan { color: #34428a; background: #eaeefb; --c: #4a5bb8; }
.s-diteruskan { color: #5b3a8c; background: #f0e9fb; --c: #7a52b8; }
.s-diajukan .bub { background: conic-gradient(from 180deg, var(--c) 0 70%, transparent 0); }
.s-diteruskan .bub { background: conic-gradient(from 180deg, var(--c) 0 88%, transparent 0); }
.bar i.pro { background: #7a52b8; }
.kpi.s-diajukan { background: var(--paper); }
.h-sub { display: block; font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: 3px; }
.head ~ .note { margin-bottom: 12px; }
.note a { text-decoration: underline; }

.nav-n { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--amber); color: #3d2700;
  font: 700 12px/22px var(--f-b); text-align: center; font-variant-numeric: tabular-nums; }

/* Tab tahap DNT */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: 9px; padding: 11px 14px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--ink-2);
  font-weight: 550; font-size: 14.5px; white-space: nowrap; }
.tab:hover { color: var(--ink); text-decoration: none; background: var(--paper); border-radius: 10px 10px 0 0; }
.tab b { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12.5px; padding: 1px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.tab.on { color: var(--pine-d); border-bottom-color: var(--pine); font-weight: 600; }
.tab.on b { background: var(--pine-l); color: var(--pine-d); }
.tab .st { background: none; }

/* Bilah aksi massal (DNT) */
.act-bar, .sel-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--pine-l);
  background: var(--pine-xl); border-radius: var(--r-m); font-size: 14.5px; color: var(--pine-d); }
.act-bar .btn, .sel-bar .btn { margin-left: 0; }
.act-bar span:first-child { margin-right: auto; }
.sel-bar { position: fixed; z-index: 30; left: 50%; bottom: 76px; transform: translateX(-50%); box-shadow: 0 10px 30px #14201c33; background: var(--paper); border-color: var(--line-2); margin: 0; color: var(--ink); }
.sel-bar[hidden], .savebar[hidden] { display: none !important; }
.savebar { position: fixed; z-index: 31; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 12px 34px #14201c55; font-size: 14.5px; max-width: calc(100vw - 24px); animation: sv-in .3s var(--ease); }
.savebar b { font-variant-numeric: tabular-nums; }
.savebar .btn.ghost { background: transparent; color: #fff; border-color: #ffffff55; }
.savebar .btn.ghost:hover { background: #ffffff1f; color: #fff; }
.savebar .btn:not(.ghost) { background: var(--amber); color: #2b1c00; }
.savebar .btn:not(.ghost):hover { background: #e8ab2c; color: #2b1c00; }
.savebar kbd { font: 600 11px var(--f-b); padding: 1px 6px; border-radius: 5px; background: #00000026; margin-left: 4px; }
@keyframes sv-in { from { opacity: 0; transform: translate(-50%, 14px); } }

/* Tabel yang bisa diedit langsung */
.edit-wrap { overflow-x: auto; }
.tbl.edit { min-width: 1020px; }
.tbl.edit th, .tbl.edit td { padding: 6px 8px; }
.tbl.edit td { vertical-align: top; }
.tbl.edit th.ck, .tbl.edit td.ck { width: 38px; text-align: center; padding-left: 12px; padding-top: 14px; }
.tbl.edit td.ck input, .tbl th.ck input, .tbl td.ck input { width: 17px; height: 17px; accent-color: var(--pine); cursor: pointer; }
.tbl.edit td.foto { width: 64px; }
.tbl.edit td input:not([type=checkbox]):not([type=file]), .tbl.edit td select {
  width: 100%; min-height: 40px; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.tbl.edit td input:hover, .tbl.edit td select:hover { border-color: var(--line-2); background: var(--paper); }
.tbl.edit td input:focus, .tbl.edit td select:focus { outline: 0; border-color: var(--pine); background: var(--paper); box-shadow: 0 0 0 3px var(--pine-l); }
.tbl.edit td.first { min-width: 230px; } .tbl.edit td.c-jk { width: 74px; } .tbl.edit td.c-tgl { width: 150px; } .tbl.edit td.c-st { width: 150px; padding-top: 12px; }
.tbl.edit tr.dirty > td { background: #fffaea; }
.tbl.edit tr.dirty > td.ck { box-shadow: inset 3px 0 0 var(--amber); }
.tbl.edit tr.err > td { background: var(--red-l); }
.tbl.edit tr.err input, .tbl.edit tr.err select { border-color: #e8a79e; }
.tbl.edit tr.is-new > td { background: var(--pine-xl); }
.rerr { display: block; margin: 2px 9px 4px; color: var(--red-ink); font-size: 13px; font-weight: 600; }
.tbl.edit .reason { margin: 2px 9px 4px; max-width: none; display: flex; gap: 5px; align-items: flex-start; }
.tbl.edit .reason .ic { width: 14px; height: 14px; margin-top: 3px; }
.foto-btn { display: block; padding: 0; border: 0; background: none; border-radius: 10px; position: relative; }
.foto-btn .av { cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; }
.foto-btn:hover .av { transform: scale(1.06); box-shadow: 0 4px 12px #14201c33; }
.foto-btn.busy { opacity: .5; pointer-events: none; }
.av.foto-kosong { border: 2px dashed var(--line-2); background: var(--bg); color: var(--ink-3); cursor: pointer; }
.av.foto-kosong .ic { width: 20px; height: 20px; }
.table-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .tbl.edit { min-width: 0; }
  .tbl.edit td.first, .tbl.edit td.c-jk, .tbl.edit td.c-tgl, .tbl.edit td.c-st, .tbl.edit td.foto { width: 100%; min-width: 0; }
  .tbl.edit.stack tr { padding: 12px 14px 12px 50px; }
  .tbl.edit.stack td.ck { position: absolute; left: 6px; top: 8px; width: auto; padding: 8px; }
  .tbl.edit.stack td.ck::before { display: none; }
  .tbl.edit.stack td input:not([type=checkbox]), .tbl.edit.stack td select { border-color: var(--line-2); background: var(--paper); }
  .savebar { bottom: 10px; border-radius: 18px; }
  .sel-bar { bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) { .savebar { animation: none; } }

/* ==========================================================================
   Editor template kartu
   ========================================================================== */
.ked { display: flex; flex-direction: column; gap: 12px; }
.ked-top { position: sticky; top: 8px; z-index: 25; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 4px 16px #14201c14; }
.ked .tg { display: flex; align-items: center; gap: 4px; padding-right: 12px; border-right: 1px solid var(--line); }
.ked .tg:last-of-type { border-right: 0; }
.ked .tb { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; background: transparent;
  color: var(--ink-2); font: 550 13.5px var(--f-b); cursor: pointer; white-space: nowrap; transition: background-color .12s, color .12s; }
.ked .tb:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); }
.ked .tb:disabled { opacity: .35; cursor: default; }
.ked .tb.ic { padding: 0; width: 36px; justify-content: center; }
.ked .tb .ic, .ked .tb svg { width: 18px; height: 18px; }
.ked .tb.flip svg { transform: scaleX(-1); }
.ked .tb .sq { width: 14px; height: 14px; border-radius: 3px; background: var(--pine); display: inline-block; }
.ked .tb.chk { gap: 7px; } .ked .tb.chk input { accent-color: var(--pine); width: 16px; height: 16px; }
.ked .sel select { min-height: 36px; max-width: 220px; padding: 0 28px 0 10px; font-size: 13.5px; }
.ked .zoom output { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13.5px; }
.ked-state { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--pine-d); padding: 4px 11px; border-radius: 999px; background: var(--pine-xl); }
.ked-state.dirty { color: #7a4b00; background: #fff1cc; }
.kbd { font: 600 11px var(--f-b); padding: 1px 6px; border-radius: 5px; background: #0000001f; margin-left: 4px; }

.ked-main { display: grid; grid-template-columns: 250px minmax(0, 1fr) 310px; gap: 12px; align-items: start; }
.ked-left, .ked-right { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); max-height: calc(100vh - 100px); overflow: auto; position: sticky; top: 64px; }
.ked-sec { padding: 14px; border-bottom: 1px solid var(--line); } .ked-sec:last-child { border-bottom: 0; }
.ked-sec h3 { margin: 0 0 10px; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.ked-sec h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.ked .hint { font-size: 12.5px; color: var(--ink-3); margin: 6px 0; line-height: 1.45; }
.bg-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.btn.sm.file { cursor: pointer; }

.pf { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 550; min-width: 0; }
.pf input:not([type=checkbox]):not([type=range]):not([type=color]), .pf select, .pf textarea { width: 100%; min-height: 34px; padding: 4px 8px; font: 500 14px var(--f-b); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); }
.pf input:focus, .pf select:focus, .pf textarea:focus, .ked-right textarea:focus, .ked-ph .nm:focus { outline: 0; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-l); }
.pf input[type=color] { width: 100%; height: 34px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); cursor: pointer; }
.pf input[type=range] { width: 100%; accent-color: var(--pine); }
.pf output { color: var(--ink); font-weight: 600; margin-left: 4px; }
.pf.pk { flex-direction: row; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.pf.pk input { width: 17px; height: 17px; accent-color: var(--pine); }
.pf2, .pf3 { display: grid; gap: 0 8px; grid-template-columns: 1fr 1fr; } .pf3 { grid-template-columns: 1fr 1fr 1fr; }

.ked-ph { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.ked-ph .tag { font: 700 11px var(--f-b); letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--pine); color: #fff; }
.ked-ph .nm { flex: 1; min-width: 0; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px; font: 600 14.5px var(--f-b); background: transparent; }
.ked-ph .nm:hover { border-color: var(--line-2); }
.pg { border-bottom: 1px solid var(--line); } .pg summary { padding: 11px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.pg summary::after { content: '+'; color: var(--ink-3); } .pg[open] summary::after { content: '\2212'; } .pg summary::-webkit-details-marker { display: none; }
.pgb { padding: 0 14px 10px; }
.ked-right textarea { width: 100%; padding: 8px 10px; font: 500 14px/1.4 var(--f-b); border: 1px solid var(--line-2); border-radius: 8px; resize: vertical; min-height: 90px; }
.fmtbar { display: flex; gap: 4px; margin-bottom: 6px; } .fmtbar button { width: 34px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); cursor: pointer; font-size: 14px; }
.fmtbar button:hover { background: var(--bg-2); }
.chips-f { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chips-f button { font: 500 12px ui-monospace, Menlo, monospace; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg); color: var(--ink-2); cursor: pointer; }
.chips-f button:hover { background: var(--pine-l); border-color: var(--pine); color: var(--pine-d); }
.seg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 550; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-right: 1px solid var(--line-2); background: var(--paper); cursor: pointer; font: 600 12.5px var(--f-b); color: var(--ink-2); }
.seg button:last-child { border-right: 0; } .seg button.on { background: var(--pine); color: #fff; }
.ked-empty { padding: 18px 16px; font-size: 13.5px; color: var(--ink-2); } .ked-empty h4 { margin: 16px 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.ked-empty ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; } .ked-empty p { margin: 4px 0 0; }
.ked-empty kbd { font: 600 11px var(--f-b); padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--paper); }
.ked-empty code { font: 12.5px ui-monospace, Menlo, monospace; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }

.layers { display: grid; gap: 3px; margin-bottom: 10px; max-height: 280px; overflow: auto; }
.ly { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 7px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; font: 500 13.5px var(--f-b); color: var(--ink-2); }
.ly:hover { background: var(--bg-2); } .ly.on { background: var(--pine-l); border-color: var(--pine); color: var(--pine-d); font-weight: 600; }
.ly i { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--bg-2); font-size: 12px; font-weight: 700; flex: none; }
.ly span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ked-stage { background: #dde3df; background-image: radial-gradient(#c5cdc8 1px, transparent 1px); background-size: 18px 18px; border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 28px; display: flex; overflow: auto; min-height: 440px; max-height: calc(100vh - 100px); position: sticky; top: 64px; }
.ked-zoom { position: relative; flex: none; margin: auto; box-shadow: 0 10px 34px #14201c44; background: #fff; }
.ked-card { position: absolute; left: 0; top: 0; transform-origin: 0 0; user-select: none; touch-action: none; }
.ked-card .ke { cursor: move; }
.ked-card .ke:hover { outline: calc(1px * var(--z, 1)) dashed #1b6ef3aa; }
.ked-card .ke-foto:empty::after, .ked-card .ke-logo:empty::after { display: flex; align-items: center; justify-content: center; height: 100%; font: 600 2.6mm "IBM Plex Sans", sans-serif; color: #14201c88; letter-spacing: .1em; }
.ked-card .ke-foto:empty::after { content: "FOTO"; } .ked-card .ke-logo:empty::after { content: "LOGO"; }
.ked-card.grid::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(to right, #1b6ef326 0.12mm, transparent 0.12mm), linear-gradient(to bottom, #1b6ef326 0.12mm, transparent 0.12mm); background-size: 5mm 5mm; }
.ked-ov { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ked-box { position: absolute; outline: calc(1.5px * var(--z, 1)) solid #1b6ef3; pointer-events: none; }
.ked-box .h { position: absolute; width: calc(10px * var(--z, 1)); height: calc(10px * var(--z, 1)); background: #fff; border: calc(1.5px * var(--z, 1)) solid #1b6ef3; border-radius: 2px; transform: translate(-50%, -50%); pointer-events: auto; }
.h-nw { left: 0; top: 0; cursor: nwse-resize; } .h-n { left: 50%; top: 0; cursor: ns-resize; } .h-ne { left: 100%; top: 0; cursor: nesw-resize; } .h-e { left: 100%; top: 50%; cursor: ew-resize; }
.h-se { left: 100%; top: 100%; cursor: nwse-resize; } .h-s { left: 50%; top: 100%; cursor: ns-resize; } .h-sw { left: 0; top: 100%; cursor: nesw-resize; } .h-w { left: 0; top: 50%; cursor: ew-resize; }
.gl { position: absolute; background: #e5484d; } .gl.v { top: 0; bottom: 0; width: calc(1px * var(--z, 1)); } .gl.h { left: 0; right: 0; height: calc(1px * var(--z, 1)); }
.btn.busy { opacity: .6; pointer-events: none; }

@media (max-width: 1180px) { .ked-main { grid-template-columns: 220px minmax(0, 1fr); } .ked-right { grid-column: 1 / -1; position: static; max-height: none; } }
@media (max-width: 820px) { .ked-main { grid-template-columns: 1fr; } .ked-left { position: static; max-height: none; } .ked-stage { position: static; padding: 12px; max-height: none; } .ked-top { position: static; } }
.ked-card .ke-fkdt:empty::after { content: "FKDT"; }
.fkdt-row { align-items: center; }
.fkdt-prev { width: 44px; height: 44px; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--bg); display: grid; place-items: center; overflow: hidden; flex: none; }
.fkdt-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Pendaftaran lembaga (publik + menu admin) ---------- */
.m-ic.ok { background: var(--pine-l); color: var(--pine-d); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.back:hover { color: var(--pine-d); text-decoration: none; }
.head h1 .pill { vertical-align: middle; margin-left: 8px; font-size: 13px; }
.auth-alt { display: grid; gap: 10px; margin-top: 6px; padding: 16px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--pine-xl); font-size: 14px; }
.auth-alt b { font-size: 15px; }
.auth-alt span { color: var(--ink-2); }
.auth-alt .btn { min-height: 44px; font-size: 15px; }
.auth-alt > a:last-child { text-align: center; text-decoration: underline; }
.auth.reg .auth-form-wrap { place-items: start center; }
.auth-form.wide { width: min(640px, 100%); padding: 8px 0 24px; }
.auth-form.wide .btn { min-height: 48px; }
.auth-form .span2, .grid2 .span2 { grid-column: 1 / -1; }
.fs { border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px 18px; margin: 0; min-width: 0; }
.fs legend { padding: 0 8px; font: 600 15px var(--f-d); color: var(--pine-d); }
.fs legend em { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: 13.5px; }
.fs-p { color: var(--ink-2); font-size: 14px; margin: 4px 0 12px; }
.f input[type=file] { padding: 9px 10px; background: var(--paper); border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reg-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; max-width: 420px; }
.reg-steps li { display: flex; gap: 14px; align-items: flex-start; }
.reg-steps .st { margin-top: 3px; }
.reg-steps b { display: block; color: var(--pine-d); }
.reg-steps small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
@media (min-width: 901px) { .auth.reg .auth-art { position: sticky; top: 0; height: 100vh; align-self: start; } }
.kode-box { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 22px 16px; border-radius: 16px; background: var(--pine-xl); border: 1px solid var(--pine-l); }
.kode-box b { font: 700 38px/1.1 var(--f-d); letter-spacing: .18em; color: var(--pine-d); user-select: all; }
.kode-box small { color: var(--ink-2); }
.hasil { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.hasil-h { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-start; justify-content: space-between; }
.hasil-h small { display: block; color: var(--ink-3); margin-top: 2px; }
.trk { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.trk li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; color: var(--ink-3); }
.trk li:last-child { padding-bottom: 0; }
.trk li::before { content: ''; position: absolute; left: 6px; top: 16px; bottom: -2px; width: 2px; background: var(--line-2); }
.trk li:last-child::before { display: none; }
.trk li > i { flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--paper); position: relative; z-index: 1; }
.trk li b { display: block; font-weight: 600; color: var(--ink-2); }
.trk li small { display: block; font-size: 13.5px; color: var(--ink-3); }
.trk li.done > i { background: var(--pine); border-color: var(--pine); }
.trk li.done b { color: var(--ink); }
.trk li.done::before { background: var(--pine); }
.trk li.now > i { border-color: var(--amber); background: conic-gradient(from 180deg, var(--amber) 0 50%, transparent 0); }
.trk li.now b { color: var(--amber-ink); }
.trk li.bad > i { background: var(--red); border-color: var(--red); }
.trk li.bad b { color: var(--red-ink); }
.det { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.det-side { display: grid; gap: 18px; }
.det .panel-b { padding-top: 12px; }
.dl { display: grid; margin: 0; }
.dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--ink-3); font-size: 14px; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.lg-pv { width: 84px; height: 84px; object-fit: contain; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: zoom-in; }
.m-form > .m-ic { margin-bottom: 0; }
@media (max-width: 900px) { .det { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .dl > div { grid-template-columns: 1fr; gap: 2px; } .kode-box b { font-size: 30px; } .fs { padding: 4px 14px 14px; } }
.me-l { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; border-radius: 10px; }
.me-l:hover { text-decoration: none; background: var(--bg); }

/* ---------- Raport & Hasil Ujian ---------- */
.nilai-tbl th.num, .nilai-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.nilai-tbl th.no, .nilai-tbl td.no { width: 44px; color: var(--ink-3); }
.nilai-tbl td.num input { width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.nilai-tbl td.num input.chg { background: var(--amber-l, #fdf3d9); border-color: var(--amber); }
.nilai-tbl td.num input.bad { background: var(--red-l, #fde8e6); border-color: var(--red); color: var(--red-ink); }
.nilai-tbl td.calc { color: var(--ink-2); }
.nilai-tbl td.calc b { color: var(--pine-d); }
.nilai-tbl tfoot th { background: var(--pine-xl); color: var(--pine-d); font-weight: 700; border-top: 2px solid var(--line-2); }
.nilai-tbl .first small { display: block; }
.print-head { display: none; }
@media print {
  .side, .top, .head-actions, .bar-t, .savebar, .note, .scrim, .toasts { display: none !important; }
  .shell { display: block; } main, .main { padding: 0 !important; margin: 0 !important; }
  .print-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-size: 14px; }
  .nilai-tbl td.num input { border: 0 !important; background: transparent !important; width: 60px; padding: 0; }
  .nilai-tbl th, .nilai-tbl td { padding: 4px 6px; font-size: 12px; }
  .head p { display: none; }
}
.nilai-tbl th, .nilai-tbl td { vertical-align: middle; }
.nilai-tbl thead th { white-space: normal; line-height: 1.2; }
.nilai-tbl th.num, .nilai-tbl td.num { padding-left: 6px; padding-right: 6px; }
.nilai-tbl td.num input { width: 64px; }
.nilai-tbl .first { min-width: 130px; }
