/* Rekrutmen BTX — gaya bersama (karyawan & kandidat) */
:root {
  --green: #1d7a4b;
  --green-dark: #135235;
  --green-deep: #0d3b26;
  --green-soft: #e4f3ea;
  --green-tint: #f1f8f4;
  --gold: #c99a2e;
  --ink: #142019;
  --ink-2: #2c3a32;
  --muted: #5e6d64;
  --line: #dde6e0;
  --line-2: #eaf0ec;
  --bg: #f3f6f4;
  --card: #ffffff;
  --red: #b42318;
  --red-soft: #fde8e6;
  --amber: #8a5300;
  --amber-soft: #fcefd6;
  --blue: #1f5fa8;
  --blue-soft: #e6effa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 27, .05), 0 6px 20px rgba(16, 40, 27, .06);
  --shadow-lg: 0 10px 40px rgba(16, 40, 27, .18);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
h1, h2, h3 { margin: 0 0 6px; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; } h2 { font-size: 1.22rem; } h3 { font-size: 1.02rem; }
p { margin: 0; }
a { color: var(--green); }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.error { color: var(--red); font-weight: 600; }
.warn, .ok, .info, .bad { padding: 10px 14px; border-radius: 10px; font-weight: 600; display: block; }
.warn { background: var(--amber-soft); color: var(--amber); }
.ok { background: var(--green-soft); color: var(--green-dark); }
.info { background: var(--blue-soft); color: var(--blue); }
.bad { background: var(--red-soft); color: var(--red); }
[hidden] { display: none !important; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }

/* ---------- komponen dasar ---------- */
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-bg { background: radial-gradient(1200px 600px at 10% -10%, #2b8f5d 0%, transparent 60%),
  radial-gradient(900px 500px at 110% 110%, #0f4a30 0%, transparent 55%), var(--green-deep); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.card.narrow { width: 100%; max-width: 410px; }
.card.flat { box-shadow: none; }
.card > h2, .card > h3 { margin-bottom: 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem;
  background: linear-gradient(135deg, #2aa36a, var(--green-dark)); box-shadow: 0 4px 12px rgba(29, 122, 75, .35); letter-spacing: .02em; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
label.inline { flex-direction: row; align-items: center; gap: 8px; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0;
  transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(29, 122, 75, .15); }
input[readonly], input:disabled { background: #f4f6f5; color: var(--muted); }
textarea { resize: vertical; min-height: 80px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
input[type=checkbox], input[type=radio] { accent-color: var(--green); width: 17px; height: 17px; }

.btn { font: inherit; font-weight: 650; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; transition: all .15s; white-space: nowrap; }
.btn:hover { border-color: var(--green); color: var(--green-dark); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 2px 8px rgba(29, 122, 75, .25); }
.btn.primary:hover { background: var(--green-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--red); border-color: #f2cdc9; }
.btn.danger:hover { background: var(--red-soft); }
.btn.small { padding: 6px 11px; font-size: .84rem; border-radius: 8px; }
.btn.big { padding: 13px 22px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.green { background: var(--green-soft); color: var(--green-dark); }
.tag.gray { background: #edf0ee; color: #4b5563; }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.blue { background: var(--blue-soft); color: var(--blue); }
.done { color: var(--green); font-weight: 800; }
.todo { color: #b8c4bd; font-weight: 800; }

/* ---------- toast ---------- */
#toasts { position: fixed; right: 16px; bottom: 84px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, 92vw); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem;
  animation: toastIn .2s ease-out; }
.toast.ok { background: var(--green-dark); color: #fff; }
.toast.bad { background: var(--red); color: #fff; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- layout karyawan ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--green-deep), #0a2e1e); color: #d6eadf; padding: 18px 12px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.sidebar .logo { padding: 4px 8px 16px; color: #fff; }
.sidebar .logo small { display: block; color: #9cc4ae; font-weight: 500; font-size: .76rem; }
.sidebar .nav-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #7fa892; padding: 14px 10px 4px; }
.sidebar button, .sidebar a { font: inherit; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; color: #d6eadf; background: transparent;
  border: 0; padding: 9px 12px; border-radius: 10px; cursor: pointer; text-decoration: none; font-weight: 600; font-size: .92rem; }
.sidebar button:hover, .sidebar a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar .active { background: rgba(255, 255, 255, .13); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.sidebar .ico { width: 20px; text-align: center; opacity: .9; }
.sidebar .badge { margin-left: auto; background: var(--gold); color: #2a1f00; border-radius: 999px; padding: 0 7px; font-size: .72rem; font-weight: 800; }
.sidebar .me { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; display: flex; flex-direction: column; gap: 8px; }
.sidebar .me .pill { align-self: flex-start; }
.pill { background: rgba(255, 255, 255, .15); color: #fff; padding: 2px 9px; border-radius: 999px; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.content { min-width: 0; }
.pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 20px 24px 6px; }
.pagehead h1 { font-size: 1.4rem; margin: 0; }
.pagehead p { color: var(--muted); }
main { padding: 12px 24px 40px; max-width: 1560px; }
.mobilebar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .mobilebar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--green-deep); color: #fff; position: sticky; top: 0; z-index: 40; }
  .pagehead, main { padding-left: 14px; padding-right: 14px; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .k { color: var(--muted); font-size: .8rem; font-weight: 600; }
.stat .v { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.stat .s { font-size: .78rem; color: var(--muted); }
.stat.accent { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; border: 0; }
.stat.accent .k, .stat.accent .s { color: #cfe8db; } .stat.accent .v { color: #fff; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.toolbar input[type=search], .toolbar .grow { flex: 1; min-width: 220px; }
.search { position: relative; flex: 1; min-width: 220px; }
.search input { width: 100%; padding-left: 36px; }
.search::before { content: "⌕"; position: absolute; left: 12px; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 1.15rem; }
.table-wrap { overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-height: calc(100vh - 230px); }
.table-wrap.auto { max-height: none; }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .87rem; }
.grid th, .grid td { padding: 9px 11px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; vertical-align: middle; }
.grid th { background: #f7faf8; position: sticky; top: 0; z-index: 1; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
.grid tbody tr:hover td { background: var(--green-tint); }
.grid td.c, .grid th.c { text-align: center; }
.grid td.r, .grid th.r { text-align: right; }
.grid td.wrap { white-space: normal; min-width: 220px; }
.grid td.row-actions { display: table-cell; }
.grid td.row-actions > * { margin-right: 4px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

dialog { border: 0; border-radius: 18px; padding: 0; width: min(960px, 96vw); max-height: 92vh; box-shadow: var(--shadow-lg); }
dialog.sm { width: min(460px, 94vw); }
dialog::backdrop { background: rgba(8, 24, 16, .5); backdrop-filter: blur(2px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.dlg-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); }
.dlg-body .card { margin: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); font-size: .88rem; } .kv dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 4px; } }

/* bar sederhana (analitik) */
.bars { display: flex; flex-direction: column; gap: 7px; }
.bar { display: grid; grid-template-columns: minmax(90px, 170px) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: .86rem; }
.bar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .track { display: block; background: var(--line-2); border-radius: 999px; height: 12px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: linear-gradient(90deg, #36a872, var(--green)); border-radius: 999px; min-width: 2px; }
.bar .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* ---------- kandidat ---------- */
.cand-top { background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; }
.cand-top .inner { max-width: 820px; margin: 0 auto; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.cand-top .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }
.cand-top .btn:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.cand-wrap { max-width: 820px; margin: 0 auto; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.hello { padding: 4px 2px; }
.hello h1 { font-size: 1.35rem; }
.id-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.id-card dl { display: grid; grid-template-columns: 150px 1fr; gap: 5px 12px; margin: 0; }
.id-card dt { color: var(--muted); font-size: .9rem; } .id-card dd { margin: 0; font-weight: 650; }
.id-card .lock { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.progress { height: 10px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #39b077, var(--green)); border-radius: 999px; transition: width .3s; }
.test-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.test-item { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.test-item:not(.locked):hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(16, 40, 27, .1); }
.test-item .num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--green-soft); color: var(--green-dark); flex: 0 0 auto; }
.test-item.is-done .num { background: var(--green); color: #fff; }
.test-item.locked .num { background: #eef1ef; color: #9aa7a0; }
.test-item .body { flex: 1; min-width: 0; }
.test-item .sub { font-size: .84rem; color: var(--muted); }
.test-item.locked { opacity: .78; }
@media (max-width: 560px) { .id-card dl { grid-template-columns: 1fr; } .id-card dd { margin-bottom: 4px; } }

/* runner tes */
.runner-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.runner-head .inner { max-width: 920px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.runner-head .title { font-weight: 800; }
.runner-head .meta { font-size: .82rem; color: var(--muted); }
.runner-head .progress { flex: 1; min-width: 140px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.15rem; padding: 6px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); }
.timer.low { background: var(--red-soft); color: var(--red); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .65; } }
.save-state { font-size: .78rem; color: var(--muted); }
.runner { max-width: 920px; margin: 0 auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.instr { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.instr ul { margin: 0; padding-left: 20px; }
.q { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.q.answered { border-color: #bfe0cd; }
.q.missing { border-color: var(--red); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.q .qn { font-weight: 800; color: var(--green-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; margin-top: 8px; transition: all .12s; font-weight: 500; }
.opt:hover { border-color: #9fd0b5; background: var(--green-tint); }
.opt.sel { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.opt .key { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #eef2ef; font-weight: 800; font-size: .85rem; }
.opt.sel .key { background: var(--green); color: #fff; }
/* DISC */
.disc-row { display: grid; grid-template-columns: 1fr 86px 86px; gap: 8px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--line-2); }
.disc-row:first-of-type { border-top: 0; }
.disc-head { display: grid; grid-template-columns: 1fr 86px 86px; gap: 8px; font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; padding: 0 6px; }
.disc-head span:not(:first-child) { text-align: center; }
.pick { border: 1px solid var(--line); border-radius: 10px; padding: 7px 0; text-align: center; cursor: pointer; font-weight: 800; background: #fff; color: #9aa7a0; user-select: none; }
.pick.m.sel { background: var(--green); border-color: var(--green); color: #fff; }
.pick.l.sel { background: var(--red); border-color: var(--red); color: #fff; }
.pick.dis { opacity: .35; cursor: not-allowed; }
@media (max-width: 520px) { .disc-row, .disc-head { grid-template-columns: 1fr 64px 64px; } }
/* CFIT & buta */
.qimg { width: 100%; max-width: 760px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: block; margin: 0 auto; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.choice { width: 46px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; transition: all .12s; }
.choice:hover { border-color: var(--green); }
.choice.sel { background: var(--green); color: #fff; border-color: var(--green); }
.choice.right { background: var(--green); color: #fff; }
.choice.wrong { background: var(--red); color: #fff; border-color: var(--red); }
.plate { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; }
.plate img { width: 220px; height: 220px; object-fit: contain; border-radius: 50%; background: #fff; }
.plate input { font-size: 1.3rem; font-weight: 800; text-align: center; max-width: 160px; letter-spacing: .1em; }
@media (max-width: 560px) { .plate { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.qnav { display: flex; flex-wrap: wrap; gap: 6px; }
.qnav a { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #eef2ef; color: var(--muted); text-decoration: none; font-weight: 700; font-size: .8rem; }
.qnav a.on { background: var(--green); color: #fff; }
.qnav a.miss { background: var(--red-soft); color: var(--red); }
.bottom-bar { position: sticky; bottom: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); z-index: 15; }
.bottom-bar .inner { max-width: 920px; margin: 0 auto; padding: 12px 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.done-card { text-align: center; align-items: center; padding: 34px 20px; }
.done-card .big-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 1.3rem; font-weight: 700; }

@media (max-width: 640px) { .bottom-bar .qnav { display: none !important; } .bottom-bar .inner { justify-content: flex-end; } }

/* ---------- gaya kantor: rata, padat, tanpa hiasan ---------- */
:root { --radius: 6px; --shadow: none; --shadow-lg: 0 4px 18px rgba(0, 0, 0, .18); }
body { font-size: 14px; line-height: 1.45; background: #f4f5f6; }
h1 { font-size: 1.3rem; } h2 { font-size: 1.1rem; } h3 { font-size: .98rem; }
.auth-bg { background: #eef1ef; }
.card { padding: 16px; gap: 12px; }
.logo-mark { width: 34px; height: 34px; border-radius: 6px; background: var(--green-dark); box-shadow: none; font-size: .82rem; }
label { font-size: .82rem; }
input, select, textarea { padding: 7px 9px; border-radius: 5px; font-size: .92rem; }
input:focus, select:focus, textarea:focus { box-shadow: none; border-color: var(--green); }
.btn { padding: 6px 12px; font-size: .88rem; font-weight: 600; border-radius: 5px; }
.btn.primary { box-shadow: none; }
.btn.small { padding: 3px 9px; font-size: .8rem; border-radius: 4px; }
.btn.big { padding: 6px 12px; font-size: .88rem; }
.tag { border-radius: 4px; padding: 1px 7px; font-weight: 600; }
.warn, .ok, .info, .bad { border-radius: 5px; padding: 8px 12px; font-weight: 500; }
.toast { border-radius: 6px; font-weight: 500; font-size: .88rem; }
.sidebar { background: #1b2a23; }
.sidebar button, .sidebar a { padding: 7px 12px; border-radius: 5px; font-size: .88rem; font-weight: 500; }
.sidebar .active { box-shadow: inset 3px 0 0 var(--green); background: rgba(255, 255, 255, .1); }
.sidebar .nav-group { letter-spacing: .06em; }
.pagehead { padding: 16px 24px 4px; }
.stat { padding: 10px 14px; }
.stat .v { font-size: 1.4rem; font-weight: 700; }
.stat.accent { background: var(--green-dark); }
.mobilebar { background: #1b2a23; }

/* tabel registrasi */
.reg-table td { padding: 2px; vertical-align: middle; }
.reg-table input, .reg-table select { width: 100%; padding: 4px 6px; font-size: .84rem; border-radius: 3px; }
.reg-table input[type=checkbox] { width: 16px; height: 16px; }
.reg-table td.c { text-align: center; }
.reg-table td.no { font-weight: 700; white-space: nowrap; padding: 2px 8px; }
.reg-table .w-name { min-width: 190px; } .reg-table .w-md { min-width: 120px; } .reg-table .w-sm { min-width: 92px; }
.reg-table tr.saved input, .reg-table tr.saved select { background: #f1f3f2; color: var(--muted); }
.reg-table tr.err td { background: var(--red-soft); }

/* input Kraepelin: 50 lajur ke bawah */
.kr-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; max-width: 520px; }
.kr-row { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 8px; padding: 1px 0; }
.kr-row span { text-align: right; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.kr-row input { padding: 4px 8px; text-align: center; font-variant-numeric: tabular-nums; }
.kr-row input.filled { background: var(--green-tint); }
.kr-count { font-weight: 600; }
.grid tr.bad td { background: var(--red-soft); }

/* menu kiri dapat disembunyikan (layar lebar) */
.navbar-top { padding: 10px 24px 0; }
@media (min-width: 901px) {
  .shell.nav-hidden { grid-template-columns: 1fr; }
  .shell.nav-hidden .sidebar { display: none; }
}
@media (max-width: 900px) { .navbar-top { display: none; } }
