/* =========================================================================
   Portal Rekrutmen — "berkas lamaran"
   Kertas formulir, tinta biru, stabilo kuning, cap stempel untuk status.
   ========================================================================= */

:root {
  --paper: #f2f2f2;
  --sheet: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --rule: #e2e8f0;
  --rule-2: #cbd5e1;
  --pen: #1f609d;
  --pen-soft: #e3eef8;
  --pencil: #91bfe8;
  --margin: #e9a3a0;

  --st-new: #1f609d;
  --st-wait: #b86e00;
  --st-talk: #6a3cc9;
  --st-ok: #1c7a4a;
  --st-no: #c8322f;

  --display: "Poppins", system-ui, sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: var(--pen); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----------------------------------------------------------- Masthead */
.masthead { border-bottom: 1px solid var(--rule-2); background: var(--paper); }
.masthead-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; gap: 20px;
}
.masthead .brand { margin-right: auto; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--pencil);
  font: 800 15px/1 var(--display); letter-spacing: -.02em;
}
.brand-name { font: 700 17px/1.1 var(--display); letter-spacing: -.01em; }
.brand-sub { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }

.link-quiet {
  color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none;
  padding: 8px 12px; border-radius: 8px;
}
.link-quiet:hover { background: var(--sheet); color: var(--ink); }

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 10px;
  padding: 12px 20px; font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background-color .15s, box-shadow .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #184d7e; }
.btn-pen { background: var(--pen); color: #fff; }
.btn-pen:hover { background: #184d7e; }
.btn-plain { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.btn-plain:hover { background: var(--sheet); color: var(--ink); }
.btn-danger { background: var(--st-no); color: #fff; }
.btn-danger:hover { background: #a82724; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn svg { flex: none; }

/* ============================================================ DAFTAR */
.daftar {
  max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 80px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px;
  align-items: start;
}
.intro { position: sticky; top: 32px; }
.intro h1 {
  font-size: clamp(34px, 4.2vw, 50px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800;
  max-width: 11ch;
}
.intro h1 mark {
  background: linear-gradient(transparent 58%, var(--pencil) 58%, var(--pencil) 92%, transparent 92%);
  color: inherit; padding: 0 2px;
}
.intro .lede { margin-top: 18px; color: var(--ink-2); font-size: 16.5px; max-width: 40ch; }

.intro h2 { font: 700 15px/1.3 var(--body); margin: 36px 0 12px; color: var(--ink); }
.posisi-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.posisi-list li {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px;
}

.alur { list-style: none; padding: 0; margin: 0; counter-reset: alur; }
.alur li {
  counter-increment: alur; position: relative;
  padding: 0 0 18px 44px; color: var(--ink-2); font-size: 14.5px;
}
.alur li::before {
  content: counter(alur); position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 13px/1 var(--display); color: var(--ink); background: var(--sheet);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.alur li:not(:last-child)::after {
  content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1.5px; background: var(--rule-2);
}
.alur b { display: block; color: var(--ink); font-weight: 700; }

/* The sheet: a form page with a notebook margin line */
.sheet {
  position: relative; background: var(--sheet);
  border-radius: 4px; padding: 40px 44px 36px 72px;
  box-shadow: 0 1px 0 var(--rule-2), 0 18px 40px -24px rgba(22, 34, 79, .35);
}
.sheet::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 46px; width: 1.5px; background: var(--margin);
}
.sheet-head { margin-bottom: 8px; }
.sheet-head h2 { font-size: 24px; letter-spacing: -.02em; }
.sheet-head p { color: var(--ink-3); font-size: 14px; margin-top: 4px; }

fieldset { border: 0; padding: 0; margin: 30px 0 0; }
legend {
  font: 700 17px/1.3 var(--display); color: var(--ink); padding: 0; margin-bottom: 16px;
  display: flex; align-items: baseline; gap: 10px;
}
legend small { font: 500 13px/1 var(--body); color: var(--ink-3); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--ink-3); font-size: 13px; }

.input, .select, .textarea {
  width: 100%; background: #fbfcfe; border: 1.5px solid var(--rule-2); border-radius: 8px;
  padding: 11px 13px; font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: #a6aec4; }
.input:hover, .select:hover, .textarea:hover { border-color: #b3bdd2; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; background: #fff; border-color: var(--pen);
  box-shadow: 0 0 0 3px var(--pen-soft);
}
.invalid, .invalid:focus { border-color: var(--st-no) !important; box-shadow: 0 0 0 3px #fbe3e2 !important; }
.error { font-size: 13px; color: var(--st-no); font-weight: 500; }
.error:empty { display: none; }

.sheet-foot {
  margin-top: 32px; padding-top: 22px; border-top: 1.5px dashed var(--rule-2);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.sheet-foot p { color: var(--ink-3); font-size: 13.5px; margin-right: auto; max-width: 36ch; }

/* --------------------------------------------------------- Success */
.terima {
  max-width: 620px; margin: 64px auto 80px; padding: 0 24px;
}
.terima .sheet { text-align: left; padding: 48px 44px 40px 72px; overflow: hidden; }
.terima h1 { font-size: 34px; letter-spacing: -.025em; line-height: 1.1; max-width: 14ch; }
.terima p { color: var(--ink-2); margin-top: 12px; max-width: 44ch; }
.kode {
  display: inline-block; margin-top: 22px; padding: 10px 16px;
  font: 700 22px/1 var(--display); letter-spacing: .06em; color: var(--ink);
  background: linear-gradient(transparent 50%, var(--pencil) 50%);
}
.terima .actions { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }

.stamp-big {
  position: absolute; right: 40px; bottom: 44px;
  font: 800 22px/1 var(--display); letter-spacing: .08em; color: var(--st-ok);
  padding: 10px 16px; border: 3px solid currentColor; border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--sheet), inset 0 0 0 4px currentColor;
  transform: rotate(-9deg); opacity: .9;
  animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1) .25s both;
}
@keyframes stamp {
  from { transform: rotate(-4deg) scale(1.9); opacity: 0; }
  to { transform: rotate(-9deg) scale(1); opacity: .9; }
}

/* ============================================================= LOGIN */
.login {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.login-side {
  background: var(--ink); color: #dfe5f7; padding: 48px 56px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.login-side .brand { color: #fff; }
.login-side .brand-mark { background: var(--pencil); color: var(--ink); }
.login-side .brand-sub { color: #8f9bc4; }
.login-side h2 {
  color: #fff; margin-top: auto; font-size: clamp(34px, 3.8vw, 52px); line-height: 1.04;
  letter-spacing: -.03em; font-weight: 800; max-width: 12ch;
}
.login-side .pending { margin-top: 22px; font-size: 16px; color: #b9c3e6; max-width: 34ch; }
.login-side .pending b { color: var(--pencil); font-weight: 700; }
.login-side .ruled {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(255, 255, 255, .06) 31px 32px);
}
.login-side > * { position: relative; }
.login-side .foot { margin-top: 40px; font-size: 13px; color: #7f8bb8; }

.login-main { display: grid; place-items: center; padding: 48px 24px; background: var(--paper); }
.login-form { width: 100%; max-width: 380px; }
.login-form h1 { font-size: 30px; letter-spacing: -.025em; }
.login-form .sub { color: var(--ink-2); margin-top: 6px; }
.login-form form { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 7px; background: transparent;
  color: var(--ink-3); cursor: pointer; display: grid; place-items: center;
}
.pw-toggle:hover { background: var(--paper); color: var(--ink); }

.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--pen); margin: 0; }

.alert {
  font-size: 14px; color: var(--st-no); background: #fdeceb; border-radius: 8px;
  padding: 10px 13px; font-weight: 500;
}
.alert:empty { display: none; }

.demo {
  margin-top: 28px; font-size: 13.5px; color: var(--ink-2);
  border-left: 3px solid var(--pencil); padding: 4px 0 4px 14px;
}
.demo code { background: var(--sheet); padding: 1px 6px; border-radius: 4px; font-size: 13px; color: var(--ink); }
.login-form .back { display: inline-block; margin-top: 22px; font-size: 14px; font-weight: 600; }

/* ========================================================= DASHBOARD */
.dash { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 80px; }
.dash-title { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.dash-title h1 { font-size: 34px; letter-spacing: -.025em; margin-right: auto; line-height: 1.1; }
.dash-title p { color: var(--ink-2); margin-top: 6px; }

.user-chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }

/* Pipeline: stages of selection, each one is a filter */
.pipeline {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: 1.1fr repeat(5, 1fr);
  background: var(--sheet); border-radius: 6px;
  box-shadow: 0 1px 0 var(--rule-2);
}
.pipeline li + li { border-left: 1px solid var(--rule); }
.stage {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 18px 20px 16px; position: relative; display: block;
}
.stage:hover { background: #f7f9fd; }
.stage .n { font: 800 32px/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.stage .l { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.stage .share { display: block; font-size: 12.5px; color: var(--ink-3); }
.stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent;
}
.stage[aria-pressed="true"] { background: #f7f9fd; }
.stage[aria-pressed="true"]::after { background: var(--c, var(--ink)); }
.stage[aria-pressed="true"] .l { color: var(--ink); }

.toolbar { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search { position: relative; flex: 1 1 300px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .input { padding-left: 40px; background: var(--sheet); }
.toolbar .select { width: auto; min-width: 190px; background: var(--sheet); }

.ledger { position: relative; margin-top: 16px; background: var(--sheet); border-radius: 6px; box-shadow: 0 1px 0 var(--rule-2); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: 14.5px; }
thead th {
  text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-3);
  padding: 14px 18px; border-bottom: 1.5px solid var(--rule-2); white-space: nowrap;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: #f8faff; }
.who { display: flex; align-items: center; gap: 12px; }
.who b { display: block; font-weight: 700; color: var(--ink); }
.who span { font-size: 13px; color: var(--ink-3); }
.muted { color: var(--ink-3); font-size: 13.5px; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font: 700 13.5px/1 var(--display); color: #fff;
}

/* The stamp — status as a rubber stamp */
.stamp {
  display: inline-block; font: 800 11.5px/1 var(--display); letter-spacing: .09em; text-transform: uppercase;
  color: var(--c); border: 1.5px solid currentColor; border-radius: 4px; padding: 5px 8px 4px;
  transform: rotate(-3deg); white-space: nowrap;
  box-shadow: inset 0 0 0 1.5px var(--sheet), inset 0 0 0 2.5px color-mix(in srgb, currentColor 35%, transparent);
}
[data-status="Baru"] { --c: var(--st-new); }
[data-status="Diproses"] { --c: var(--st-wait); }
[data-status="Wawancara"] { --c: var(--st-talk); }
[data-status="Diterima"] { --c: var(--st-ok); }
[data-status="Ditolak"] { --c: var(--st-no); }

.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-3);
  cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { background: #fdeceb; color: var(--st-no); }

.empty { padding: 56px 24px; text-align: center; color: var(--ink-2); }
.empty h3 { font-size: 19px; }
.empty p { margin: 6px auto 0; max-width: 40ch; color: var(--ink-3); font-size: 14.5px; }
.empty .btn { margin-top: 18px; }
.count-note { margin-top: 12px; }

/* --------------------------------------------------------- Drawer */
.scrim { position: fixed; inset: 0; background: rgba(22, 34, 79, .38); z-index: 40; animation: fade .2s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100%); z-index: 41;
  background: var(--sheet); display: flex; flex-direction: column;
  box-shadow: -24px 0 60px -30px rgba(22, 34, 79, .5);
  animation: slide .26s cubic-bezier(.2, .8, .2, 1);
}
.drawer-head { padding: 26px 28px 20px; border-bottom: 1px solid var(--rule); display: flex; gap: 14px; align-items: flex-start; }
.drawer-head h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.drawer-head .muted { margin-top: 2px; }
.drawer-head .close { margin-left: auto; }
.drawer-head .avatar { width: 46px; height: 46px; font-size: 16px; }
.drawer-body { padding: 24px 28px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 16px 28px; border-top: 1px solid var(--rule); display: flex; gap: 10px; align-items: center; }
.drawer-foot .spacer { margin-right: auto; }

.status-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.status-pick label { cursor: pointer; }
.status-pick input { position: absolute; opacity: 0; pointer-events: none; }
.status-pick span {
  display: inline-block; padding: 7px 13px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--rule-2);
}
.status-pick input:checked + span { color: #fff; background: var(--c); box-shadow: none; }
.status-pick input:focus-visible + span { outline: 3px solid var(--pen); outline-offset: 2px; }

.facts { margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.facts div.wide { grid-column: 1 / -1; }
.facts dt { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.facts dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); word-break: break-word; white-space: pre-line; }
.label-lg { font: 700 15px/1.3 var(--body); color: var(--ink); }

/* Confirm dialog */
.dialog {
  position: fixed; z-index: 42; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 32px)); background: var(--sheet); border-radius: 10px; padding: 26px;
  box-shadow: 0 30px 80px -30px rgba(22, 34, 79, .6); animation: fade .15s ease;
}
.dialog h3 { font-size: 20px; }
.dialog p { color: var(--ink-2); margin-top: 8px; }
.dialog .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* ----------------------------------------------------------- Toast */
.toast {
  position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 28px; z-index: 60;
  transform: translateY(16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px;
  padding: 12px 18px; border-radius: 10px; display: flex; gap: 10px; align-items: center;
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok svg { color: #7fe0a8; }
.toast.err { background: var(--st-no); }

@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------- Responsive */
@media (max-width: 960px) {
  .daftar { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; }
  .intro { position: static; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipeline li:nth-child(4) { border-left: 0; }
  .pipeline li:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .login { grid-template-columns: 1fr; }
  .login-side { padding: 32px 24px; }
  .login-side h2 { margin-top: 48px; }
}
@media (max-width: 600px) {
  .masthead-inner { padding: 14px 16px; gap: 12px; }
  .brand-sub, .user-chip .uname { display: none; }
  .brand-name { white-space: nowrap; }
  .dash-title h1 { font-size: 28px; }
  .daftar, .dash { padding-left: 16px; padding-right: 16px; }
  .sheet, .terima .sheet { padding: 28px 18px 26px 34px; }
  .sheet::before { left: 18px; }
  .grid-2, .facts { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline li:nth-child(n) { border-left: 0; border-top: 1px solid var(--rule); }
  .pipeline li:nth-child(even) { border-left: 1px solid var(--rule); }
  .pipeline li:nth-child(-n+2) { border-top: 0; }
  .stamp-big { position: static; display: inline-block; margin-top: 26px; }
  .terima .sheet { display: flex; flex-direction: column; align-items: flex-start; }
  .terima .stamp-big { order: 9; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 20px; padding-right: 20px; }
}

/* =========================================================================
   ADMIN DASHBOARD — meniru Bootstrap + DataTables + SearchPanes
   ========================================================================= */
:root {
  --bs-blue: #1f609d; --bs-blue-h: #184d7e;
  --bs-gray: #6c757d; --bs-gray-h: #5c636a;
  --bs-green: #198754; --bs-green-h: #157347;
  --bs-green2: #20c997;
  --bs-info: #0dcaf0; --bs-info-h: #31d2f2;
  --bs-red: #dc3545; --bs-red-h: #bb2d3b;
  --bs-yellow: #ffc107;
  --bs-dark: #212529;
  --bs-border: #dee2e6;
  --bs-muted: #6c757d;
  --bs-head: #f2f3f5;
}
.admin {
  max-width: 1180px; margin: 0 auto; padding: 24px 18px 80px;
  font-family: "Poppins", system-ui, sans-serif; color: #212529;
}
.admin-card {
  background: #fff; border: 1px solid var(--bs-border); border-radius: 8px;
  padding: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* Buttons (bootstrap-like) */
.b {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 14px/1.2 inherit; border: 1px solid transparent; border-radius: 6px;
  padding: 9px 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .12s;
}
.b-primary { background: var(--bs-blue); color: #fff; } .b-primary:hover { background: var(--bs-blue-h); }
.b-secondary { background: var(--bs-gray); color: #fff; } .b-secondary:hover { background: var(--bs-gray-h); }
.b-success { background: var(--bs-green); color: #fff; } .b-success:hover { background: var(--bs-green-h); }
.b-success2 { background: var(--bs-green2); color: #053b2c; }
.b-info { background: var(--bs-info); color: #053747; } .b-info:hover { background: var(--bs-info-h); }
.b-danger { background: var(--bs-red); color: #fff; } .b-danger:hover { background: var(--bs-red-h); }
.b-warning { background: var(--bs-yellow); color: #3d3000; }
.b-dark { background: var(--bs-dark); color: #fff; }
.b-light { background: #f8f9fa; color: #212529; border-color: #d3d6da; }
.b-light:hover { background: #e9ecef; }
.b-xs { padding: 5px 9px; font-size: 12.5px; font-weight: 600; border-radius: 5px; }

.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.admin-year { margin-bottom: 18px; max-width: 280px; }
.admin-year label { display: block; font-size: 14px; margin-bottom: 5px; color: #495057; }
.form-select, .form-control {
  font: 400 14px/1.4 inherit; color: #212529; background: #fff;
  border: 1px solid #ced4da; border-radius: 6px; padding: 8px 12px; width: 100%;
}
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
.form-select:focus, .form-control:focus { outline: none; border-color: #91bfe8; box-shadow: 0 0 0 3px rgba(31,96,157,.2); }

#btnExcel { margin-bottom: 20px; }

/* SearchPanes bar */
.sp-bar { display: flex; align-items: center; gap: 16px; margin: 6px 0 12px; font-size: 14px; flex-wrap: wrap; }
.sp-active { font-weight: 600; color: #212529; }
.sp-links { margin-left: auto; display: flex; gap: 16px; }
.sp-links a { cursor: pointer; color: var(--bs-blue); text-decoration: none; font-size: 14px; }
.sp-links a:hover { text-decoration: underline; }

.sp-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.sp-pane { border: 1px solid var(--bs-border); border-radius: 6px; overflow: hidden; }
.sp-head { display: flex; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--bs-border); }
.sp-title { font-weight: 600; font-size: 14.5px; margin-right: auto; }
.sp-tools { display: flex; gap: 2px; }
.sp-tool { width: 28px; height: 26px; display: grid; place-items: center; border: 0; background: transparent; color: #9aa0a6; cursor: pointer; border-radius: 4px; }
.sp-tool:hover { background: #f1f3f5; color: #495057; }
.sp-tool.on { color: var(--bs-blue); }
.sp-searchbox { padding: 8px 10px; border-bottom: 1px solid var(--bs-border); }
.sp-searchbox.hidden { display: none; }
.sp-list { max-height: 180px; overflow-y: auto; padding: 6px; }
.sp-pane.collapsed .sp-list, .sp-pane.collapsed .sp-searchbox { display: none; }
.sp-item {
  width: 100%; display: flex; align-items: center; gap: 8px; text-align: left;
  border: 0; background: transparent; cursor: pointer; padding: 6px 8px; border-radius: 5px; font-size: 14px; color: #212529;
}
.sp-item:hover { background: #f1f3f5; }
.sp-item.sel { background: #cfe2ff; }
.sp-item.sel:hover { background: #bcd6fc; }
.sp-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-count { margin-left: auto; background: #e9ecef; color: #495057; border-radius: 999px; font-size: 12px; font-weight: 600; padding: 2px 9px; min-width: 24px; text-align: center; }
.sp-item.sel .sp-count { background: #9ec5fe; color: #084298; }
.sp-empty { padding: 14px; text-align: center; color: var(--bs-muted); font-size: 13px; }

/* Badges */
.bdg { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 4px; color: #fff; line-height: 1; white-space: nowrap; }
.bdg-success { background: #198754; }
.bdg-danger { background: #dc3545; }
.bdg-warning { background: #ffc107; color: #3d3000; }
.bdg-info { background: #1f609d; }
.bdg-teal { background: #0dcaf0; color: #053747; }
.bdg-primary { background: #6f42c1; }

/* DataTable top controls */
.dt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.dt-len { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #495057; }
.dt-len .form-select { width: auto; padding: 6px 30px 6px 10px; }
.dt-search { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #495057; }
.dt-search .form-control { width: 220px; padding: 7px 11px; }

/* Table */
.dt-wrap { overflow-x: auto; border: 1px solid var(--bs-border); border-radius: 6px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 1400px; }
.dtable thead th {
  background: var(--bs-head); text-align: left; font-weight: 600; color: #212529;
  padding: 12px 14px; border-bottom: 2px solid var(--bs-border); white-space: nowrap; position: relative; vertical-align: middle;
}
.dtable th.sortable { cursor: pointer; padding-right: 26px; }
.dtable th.sortable:hover { background: #e9ebee; }
.dt-sort { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 10px; height: 16px; opacity: .45; }
.dt-sort::before, .dt-sort::after { content: ""; position: absolute; left: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
.dt-sort::before { top: 2px; border-bottom: 6px solid #212529; }
.dt-sort::after { bottom: 2px; border-top: 6px solid #212529; }
.dt-sort.asc { opacity: 1; } .dt-sort.asc::after { opacity: .25; }
.dt-sort.desc { opacity: 1; } .dt-sort.desc::before { opacity: .25; }
.dtable tbody td { padding: 11px 14px; border-bottom: 1px solid #edeff2; vertical-align: middle; white-space: nowrap; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr:hover td { background: #f8f9fb; }
.dtable .c-nama { font-weight: 600; color: #212529; }
.dtable .c-kampus { white-space: normal; min-width: 240px; font-size: 13px; color: #343a40; }
.dtable .c-kampus div + div { margin-top: 2px; }
.dtable .c-tgl { color: #495057; font-size: 13px; }
.dtable a { color: var(--bs-blue); text-decoration: none; }
.dtable a:hover { text-decoration: underline; }
.dt-empty { text-align: center; padding: 40px 20px !important; color: var(--bs-muted); white-space: normal !important; }
.col-aksi { }
.aksi { display: flex; gap: 6px; }
.dtable .aksi a.b { color: #fff; text-decoration: none; }
.dtable .aksi a.b:hover { text-decoration: none; }

/* Footer / pagination */
.dt-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.dt-info { font-size: 14px; color: #495057; }
.dt-pager { display: flex; gap: 4px; flex-wrap: wrap; }
.dt-pg {
  min-width: 36px; padding: 7px 11px; border: 1px solid var(--bs-border); background: #fff; color: #212529;
  font-size: 14px; cursor: pointer; border-radius: 6px;
}
.dt-pg:hover:not(:disabled):not(.active) { background: #e9ecef; }
.dt-pg.active { background: var(--bs-blue); border-color: var(--bs-blue); color: #fff; }
.dt-pg:disabled { color: #adb5bd; cursor: default; }
.dt-gap { padding: 7px 6px; color: #adb5bd; }

/* Modal box (Tambah / Rekap) */
.scrim.center { display: grid; place-items: center; padding: 20px; }
.modal-box {
  position: fixed; z-index: 42; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(620px, calc(100% - 32px)); max-height: 90vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 12px; box-shadow: 0 30px 80px -30px rgba(10,20,40,.6); animation: pop .18s ease;
}
.modal-box.wide { width: min(720px, calc(100% - 32px)); }
.modal-h { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--rule); }
.modal-h h3 { font-family: "Poppins", sans-serif; font-size: 19px; margin: 0; margin-right: auto; }
.modal-b { padding: 20px 22px; overflow-y: auto; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--rule); display: flex; gap: 10px; justify-content: flex-end; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }

/* Rekap */
.rekap-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.rekap-card { border: 1px solid var(--bs-border); border-radius: 8px; padding: 14px 16px; }
.rk-n { font: 800 28px/1 "Bricolage Grotesque", sans-serif; color: #0f172a; }
.rk-l { font-size: 13px; color: #6c757d; margin-top: 4px; }
.modal-b h4 { font-family: "Poppins", sans-serif; font-size: 15px; margin: 18px 0 10px; }
.rekap-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rk-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; background: #f6f7f9; border: 1px solid var(--bs-border); border-radius: 8px; padding: 6px 11px; }
.rekap-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px; }
.rekap-table td { padding: 8px 10px; border-bottom: 1px solid #edeff2; }
.rekap-table .rk-c { text-align: right; font-weight: 700; width: 60px; }

@media (max-width: 820px) {
  .sp-panes { grid-template-columns: 1fr; }
  .rekap-top { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------- Tambah Data Pelamar modal */
.modal-box.tambah, .modal-box.email-modal { width: min(760px, calc(100% - 32px)); }
.tp-note { background: #fff3cd; border: 1px solid #ffe69c; color: #664d03; border-radius: 6px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 20px; line-height: 1.5; }

/* --- Modal Lolos per Tahap --- */
.tahap-modal { width: min(560px, 94vw); }
.tahap-id { font-size: 14px; color: #212529; line-height: 1.7; margin-bottom: 16px; }
.tahap-hint { background: #fff3cd; border: 1px solid #ffe69c; color: #8a6d1b; border-radius: 6px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.tahap-modal .dp-l { display: block; font-size: 14px; font-weight: 600; color: #212529; margin: 0 0 6px; }
.tahap-modal .inp { width: 100%; box-sizing: border-box; border: 1px solid var(--bs-border); border-radius: 6px; padding: 9px 12px; font-size: 14px; font-family: inherit; color: #212529; background: #f8f9fa; margin-bottom: 16px; }
.tahap-modal .inp:focus { outline: none; border-color: #91bfe8; box-shadow: 0 0 0 3px rgba(31,96,157,.18); background: #fff; }
.tahap-modal textarea.inp { resize: vertical; min-height: 44px; }
.email-frame { width: 100%; height: 540px; border: 1px solid var(--bs-border); border-radius: 8px; background: #f4f5f7; }
@media (max-width: 640px) { .email-frame { height: 420px; } }

/* --- Form biodata (grid di dalam modal) --- */
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.bio-grid .bio-wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .bio-grid { grid-template-columns: 1fr; } }

/* ======================================================= Portal Pelamar */
.ap-main { max-width: 1180px; margin: 0 auto; padding: 26px 22px 60px; }
.ap-welcome { display: flex; align-items: center; gap: 10px; background: #d9e8fb; color: #15325c; border-radius: 8px; padding: 16px 20px; font-size: 16px; margin-bottom: 16px; }
.ap-welcome svg { flex: none; }

.ap-note { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 14px 18px; font-size: 14.5px; margin-bottom: 14px; line-height: 1.5; }
.ap-note svg { flex: none; }
.ap-note-info { background: #fcf3d2; color: #6b5713; }
.ap-note-danger { background: #f9d7dc; color: #842029; }
.ap-pill { display: inline-flex; align-items: center; border: none; cursor: pointer; background: #1f609d; color: #fff; font-weight: 700; font-size: 12.5px; border-radius: 6px; padding: 2px 10px; }
.ap-pill:hover { background: #184d7e; }
.ap-pill-danger { background: #dc3545; } .ap-pill-danger:hover { background: #bb2d3b; }

.ap-upgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 18px 0 40px; }
@media (max-width: 860px) { .ap-upgrid { grid-template-columns: 1fr; } }
.ap-upcard { background: #fff; border: 1px solid #e3e6eb; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.04); display: flex; flex-direction: column; }
.ap-upcard-h { background: #212529; color: #fff; font-weight: 700; font-size: 15px; padding: 13px 18px; }
.ap-upcard-b { padding: 16px 18px 18px; display: flex; flex-direction: column; }
.ap-upstatus { min-height: 20px; margin-bottom: 14px; }
.ap-st { display: inline-flex; align-items: center; gap: 7px; border-radius: 7px; padding: 9px 13px; font-size: 13.5px; width: 100%; box-sizing: border-box; }
.ap-st svg { flex: none; }
.ap-st-ok { background: #d8f0e0; color: #0f5132; }
.ap-st-bad { background: #f9d7dc; color: #842029; }
.ap-upfile { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 14px; }
.ap-upfile-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
.ap-uplabel { font-weight: 700; font-size: 14px; color: #212529; margin-bottom: 7px; }
.ap-upinput { margin-bottom: 12px; }
.ap-upcard-b .ap-upbtn { width: 100%; margin-top: auto; }

.ap-sec-title { font-size: 25px; font-weight: 800; color: #1f2733; margin: 10px 0 6px; }
.ap-sec-desc { color: #5b6472; font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }

.ap-test-card { background: #fff; border: 1px solid #e3e6eb; border-radius: 10px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.ap-test-h { display: flex; align-items: center; gap: 9px; background: #1f609d; color: #fff; font-weight: 700; font-size: 15px; padding: 13px 18px; }
.ap-test-h-alt { background: #0f7f8c; }
.ap-test-b { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 20px; }
.ap-test-info { font-size: 14.5px; line-height: 1.9; color: #343a40; }
.ap-test-action { margin-left: auto; }
.ap-locked { color: #c8322f; font-style: italic; font-size: 14px; }
.ap-done { display: inline-flex; align-items: center; gap: 7px; color: #0f5132; font-size: 14px; font-weight: 600; }
.ap-done svg { flex: none; }

/* ===================================================== Wizard Biodata */
.wz-title { font-size: 22px; font-weight: 800; color: #1f2733; margin: 4px 0 18px; }
.wz-card { background: #fff; border: 1px solid #e7eaef; border-radius: 12px; padding: 26px 30px 30px; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.wz-nav { display: flex; justify-content: space-between; gap: 8px; max-width: 760px; margin: 0 auto 10px; position: relative; }
.wz-step-ind { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; cursor: pointer; position: relative; z-index: 1; }
.wz-step-ind::before { content: ""; position: absolute; top: 22px; left: -50%; width: 100%; height: 2px; background: #e3e6eb; z-index: -1; }
.wz-step-ind:first-child::before { display: none; }
.wz-step-ind.done::before, .wz-step-ind.active::before { background: #2aa65c; }
.wz-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #e9ecef; color: #868e96; border: 3px solid #fff; box-shadow: 0 0 0 1px #e3e6eb; }
.wz-step-ind.active .wz-dot { background: #1f609d; color: #fff; box-shadow: 0 0 0 1px #1f609d; }
.wz-step-ind.done .wz-dot { background: #2aa65c; color: #fff; box-shadow: 0 0 0 1px #2aa65c; }
.wz-steplabel { font-size: 12.5px; font-weight: 600; color: #495057; text-align: center; }
.wz-step-ind.active .wz-steplabel { color: #1f609d; }
.wz-req { color: #c8322f; font-size: 13px; font-weight: 600; margin: 18px 0 4px; }
.wz-req::before { content: "✳ "; }
.wz-h { color: #1f609d; font-size: 19px; font-weight: 700; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid #edf0f3; }
.wz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 26px; margin-top: 12px; }
.wz-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px 26px; margin-top: 12px; }
@media (max-width: 720px) { .wz-grid, .wz-grid3 { grid-template-columns: 1fr; } }
.wz-field { margin-bottom: 14px; min-width: 0; }
.wz-field.wz-wide { grid-column: 1 / -1; }
.wz-label { display: block; font-size: 13.5px; font-weight: 600; color: #3a4250; margin: 6px 0 6px; }
.wz-label .req, .req { color: #c8322f; }
.wz-inp { width: 100%; box-sizing: border-box; border: 1px solid #dfe3e8; border-radius: 7px; padding: 10px 12px; font-size: 14px; font-family: inherit; color: #212529; background: #f8f9fa; }
.wz-inp:focus { outline: none; border-color: #91bfe8; box-shadow: 0 0 0 3px rgba(31,96,157,.16); background: #fff; }
textarea.wz-inp { resize: vertical; min-height: 56px; }
.wz-hint { font-size: 12.5px; color: #868e96; font-style: italic; margin: 6px 0 0; }
.wz-table-wrap { overflow-x: auto; margin: 4px 0 10px; }
.rk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rk-table th { background: #f1f3f5; text-align: left; padding: 9px 10px; font-weight: 700; color: #495057; white-space: nowrap; border: 1px solid #e3e6eb; }
.rk-table td { padding: 6px 8px; border: 1px solid #e9ecef; }
.rk-table .wz-inp { background: #fff; padding: 7px 9px; }
.rk-c { text-align: center; width: 44px; }
.rk-del { color: #c8322f; border: 1px solid #f1c3c3; border-radius: 6px; }
.wz-add { margin-top: 2px; border: 1px solid #a9c7f5; color: #1f609d; background: #fff; font-size: 13px; }
.wz-add:hover { background: #eef4ff; }
.pk-list { margin: 6px 0 10px; }
.pk-empty { background: #f8f9fa; border: 1px solid #edf0f3; border-radius: 8px; padding: 20px; text-align: center; color: #868e96; font-style: italic; font-size: 13.5px; }
.pk-row { border: 1px solid #e3e6eb; border-radius: 8px; padding: 10px 16px 2px; margin-bottom: 12px; background: #fcfcfd; }
.pk-row-h { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: #495057; margin-bottom: 4px; }
.pk-del { color: #c8322f; }
.wz-radio { display: flex; gap: 20px; align-items: center; padding: 9px 2px; }
.wz-radio label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.wz-rp { display: flex; align-items: stretch; }
.wz-rp span { display: grid; place-items: center; background: #eef1f4; border: 1px solid #dfe3e8; border-right: 0; border-radius: 7px 0 0 7px; padding: 0 12px; font-size: 14px; color: #495057; }
.wz-rp .wz-inp { border-radius: 0 7px 7px 0; }
.wz-pledge { display: flex; gap: 12px; align-items: flex-start; background: #f8f9fa; border: 1px solid #e7eaef; border-radius: 8px; padding: 16px 18px; margin-top: 18px; font-size: 13.5px; line-height: 1.6; color: #343a40; }
.wz-pledge input { margin-top: 3px; flex: none; width: 17px; height: 17px; }
.wz-foot { display: flex; align-items: center; margin-top: 24px; }
.wz-foot #wzPrev { margin-right: auto; }
.b-dark { background: #5c636a; color: #fff; } .b-dark:hover { background: #4b5157; }
.b-dark:disabled { opacity: .5; cursor: not-allowed; }

/* ========================================================= Ujian WPT */
.exam-main { max-width: 1760px; margin: 0 auto; padding: 24px 26px 60px; display: grid; grid-template-columns: 1fr 460px; gap: 30px; align-items: start; }
@media (max-width: 980px) { .exam-main { grid-template-columns: 1fr; } }
.exam-left { padding-top: 10px; }
.exam-qhead { color: #495057; font-size: 14px; margin-bottom: 18px; border-top: 2px solid #e3e6eb; padding-top: 18px; }
.exam-q { font-size: 15px; color: #212529; margin-bottom: 18px; }
.exam-opts { display: flex; flex-direction: column; gap: 4px; }
.exam-opt { display: flex; align-items: center; gap: 12px; padding: 9px 4px; font-size: 14px; color: #2b4a8b; cursor: pointer; }
.exam-opt input { width: 17px; height: 17px; flex: none; }
.exam-navbtn { display: flex; justify-content: flex-end; gap: 10px; margin-top: 30px; border-top: 1px solid #edf0f3; padding-top: 18px; }
.exam-navbtn .b { min-width: 72px; }
.exam-right { position: sticky; top: 16px; }
.exam-timer { display: grid; grid-template-columns: 1fr 1fr 1fr; background: #e9ecef; border-radius: 6px; padding: 14px 0; text-align: center; margin-bottom: 14px; }
.exam-timer > div { display: flex; flex-direction: column; }
.exam-timer span { font-size: 26px; font-weight: 700; color: #343a40; line-height: 1; }
.exam-timer small { font-size: 12px; color: #868e96; margin-top: 4px; }
.exam-hint { background: #d7ebfb; color: #2b5d8a; border-radius: 5px; padding: 10px 14px; font-size: 13px; margin: 10px 0; }
.exam-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 14px; }
.exam-box { border: none; border-radius: 5px; padding: 12px 0; font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; }
.exam-box.todo { background: #f0ad2e; }
.exam-box.done { background: #37a24a; }
.exam-box.cur { background: #e53935; }
.exam-submit { width: 100%; background: #1f609d; color: #fff; padding: 12px; font-size: 15px; }
.exam-submit:hover { background: #184d7e; }

.exam-result { max-width: 460px; margin: 40px auto; background: #fff; border: 1px solid #e7eaef; border-radius: 12px; padding: 36px 30px; text-align: center; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.exam-result-ic { width: 76px; height: 76px; border-radius: 50%; background: #d8f0e0; color: #2aa65c; display: grid; place-items: center; margin: 0 auto 16px; }
.exam-result h2 { font-size: 22px; margin: 0 0 6px; color: #1f2733; }
.exam-result-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 22px 0; }
.exam-result-grid > div { background: #f8f9fa; border: 1px solid #edf0f3; border-radius: 8px; padding: 14px 6px; }
.exam-result-grid span { display: block; font-size: 24px; font-weight: 800; color: #1f609d; }
.exam-result-grid small { font-size: 12px; color: #868e96; }

/* Biodata read-only di Detail admin */
.bio-view { font-size: 13.5px; }
.bio-view-row { display: grid; grid-template-columns: 180px 1fr; gap: 14px; padding: 7px 0; border-bottom: 1px solid #f1f3f5; }
.bio-view-l { color: #868e96; font-weight: 600; }
.bio-view-v { color: #212529; }
.bio-view-sub { font-weight: 700; color: #1f609d; margin: 12px 0 2px; font-size: 13px; }
@media (max-width: 560px) { .bio-view-row { grid-template-columns: 1fr; gap: 2px; } }
.tambah .field { margin-bottom: 16px; }
.tambah .field label, .email-modal .field label { color: #212529; font-size: 14px; font-weight: 500; }
.req { color: #dc3545; }

.kampus-scroll { overflow-x: auto; border: 1px solid var(--bs-border); border-radius: 6px; }
.kampus-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 660px; }
.kampus-table thead th { background: #f8f9fa; font-weight: 600; color: #495057; font-size: 12.5px; padding: 9px 8px; border-bottom: 1px solid var(--bs-border); text-align: center; white-space: nowrap; }
.kampus-table tbody td { padding: 6px; border-bottom: 1px solid #eef0f3; }
.kampus-table tbody tr:last-child td { border-bottom: 0; }
.kampus-table .form-control, .kampus-table .form-select { padding: 6px 8px; font-size: 13px; }
.kampus-table th.kc-del, .kampus-table td.kc-del { width: 42px; text-align: center; }
.kampus-del { border: 0; background: #fbe3e2; color: #dc3545; width: 28px; height: 28px; border-radius: 5px; cursor: pointer; display: grid; place-items: center; }
.kampus-del:hover { background: #f6cfce; }
.kampus-empty td { text-align: center; color: #9aa0a6; font-size: 13px; padding: 14px; }
#addKampus, #addFile { margin-top: 10px; }

.file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.file-item { display: flex; align-items: center; gap: 8px; font-size: 13px; background: #f6f7f9; border: 1px solid var(--bs-border); border-radius: 6px; padding: 7px 10px; }
.file-item .fi-name { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-del { border: 0; background: transparent; color: #dc3545; cursor: pointer; padding: 2px; display: grid; place-items: center; }

/* ---------------------------------------- Email preview */
.email-prev { border: 1px solid var(--bs-border); border-radius: 8px; overflow: hidden; font-size: 14px; color: #333; background: #fff; }
.email-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--bs-border); }
.email-logo { font: 800 20px/1 "Bricolage Grotesque", sans-serif; color: #f5b800; background: #fff; border: 2px solid #bcd6fc; border-radius: 10px; padding: 5px 11px; }
.email-company { font-weight: 700; color: #333; font-size: 13px; text-align: right; }
.email-body { padding: 20px 22px; line-height: 1.6; }
.email-body p { margin: 0 0 12px; }
.email-body ol { margin: 0 0 12px; padding-left: 22px; }
.email-body ol > li { margin-bottom: 7px; }
.email-body ul { margin: 6px 0; padding-left: 20px; list-style: circle; }
.email-body a { color: #1f609d; word-break: break-all; }
.email-acct { font-family: ui-monospace, monospace; }

@media (max-width: 600px) {
  .email-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .email-company { text-align: left; }
}

/* ---------------------------------------- Detail Pendaftar modal */
.modal-box.detail-modal { width: min(840px, calc(100% - 32px)); }
.detail-modal .modal-b { padding-top: 12px; }
.dp-row { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; padding: 11px 0; border-bottom: 1px solid #f1f3f5; }
.dp-label { font-size: 12px; font-weight: 700; color: #495057; text-transform: uppercase; letter-spacing: .3px; line-height: 1.4; padding-top: 9px; }
.dp-field .form-control, .dp-field .form-select, .dp-field textarea { width: 100%; }
.dp-field textarea { min-height: 58px; resize: vertical; line-height: 1.5; font-family: inherit; }
.dp-block { padding: 16px 0; border-bottom: 1px solid #f1f3f5; }
.dp-block-label { font-size: 12px; font-weight: 700; color: #495057; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 10px; }
.peng-table { min-width: 720px; }
@media (max-width: 640px) {
  .dp-row { grid-template-columns: 1fr; gap: 6px; padding: 9px 0; }
  .dp-label { padding-top: 0; }
}

/* ---------------------------------------- Portal Pelamar */
.ap-steps { margin: 0; padding-left: 20px; color: var(--ink, #0f172a); font-size: 14.5px; line-height: 1.65; }
.ap-steps li { margin-bottom: 7px; padding-left: 4px; }
.ap-steps a { color: #1f609d; }
.ap-upload { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ap-upload .form-select { width: auto; min-width: 170px; }
.ap-upload .form-control[type="file"] { flex: 1; min-width: 200px; padding: 8px 10px; }
.ap-upload .form-control[type="file"]::file-selector-button { border: 0; background: #eef2f7; color: #0f172a; padding: 6px 12px; border-radius: 6px; margin-right: 10px; cursor: pointer; font: inherit; }
@media (max-width: 560px) {
  .ap-upload { flex-direction: column; align-items: stretch; }
  .ap-upload .form-select, .ap-upload .b { width: 100%; }
}

/* ---------------------------------------- Panel Penilaian (Score) */
.modal-box.score-modal { width: min(980px, calc(100% - 24px)); }
.score-head { display: grid; grid-template-columns: 110px 1fr; gap: 2px 18px; padding-bottom: 16px; border-bottom: 1px solid var(--bs-border); margin-bottom: 4px; }
.score-head > div { display: contents; }
.score-head .sh-k { color: #6c757d; font-size: 13.5px; }
.score-head .sh-v { color: #212529; font-weight: 600; font-size: 14px; }
.score-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--bs-border); margin: 14px 0 18px; }
.score-tab { border: 0; background: transparent; padding: 9px 14px; font: 600 14px inherit; color: #6c757d; cursor: pointer; border-radius: 6px 6px 0 0; }
.score-tab:hover { background: #f1f3f5; color: #212529; }
.score-tab.active { background: var(--bs-blue); color: #fff; }
.score-body { min-height: 120px; }
.score-foot { margin-top: 18px; display: flex; justify-content: flex-end; }

/* Tabel key-value (WPT) */
.score-kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.score-kv td { padding: 11px 6px; border-bottom: 1px solid #edeff2; vertical-align: top; }
.score-kv .kv-k { font-weight: 600; color: #212529; width: 42%; padding-right: 16px; }
.score-kv .form-control { max-width: 320px; }
.iq-table { border-collapse: collapse; font-size: 12.5px; margin-top: 10px; border: 1px solid #adb5bd; }
.iq-table th, .iq-table td { border: 1px solid #ced4da; padding: 3px 12px; text-align: left; }
.iq-table th { background: #f1f3f5; font-weight: 700; }

.score-kv2 { display: grid; grid-template-columns: 140px 1fr; gap: 12px 16px; align-items: center; margin-bottom: 18px; }
.score-kv2 label { font-size: 14px; color: #495057; font-weight: 600; }

/* Tabel rubrik (Microteaching / Interview) */
.rubrik-scroll { overflow-x: auto; border: 1px solid var(--bs-border); border-radius: 6px; }
.rubrik { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 680px; }
.rubrik thead th { background: var(--bs-head); font-weight: 600; color: #212529; padding: 11px 12px; text-align: left; border-bottom: 2px solid var(--bs-border); white-space: nowrap; }
.rubrik tbody td { padding: 10px 12px; border-bottom: 1px solid #edeff2; vertical-align: middle; }
.rubrik .rubrik-note td { background: #f8f9fb; font-size: 12.5px; color: #495057; text-align: center; font-style: italic; }
.rubrik .rb-aspek { color: #16307a; max-width: 320px; white-space: normal; }
.rubrik .rb-ket { color: #6c757d; font-size: 12px; margin-top: 3px; font-style: italic; }
.rubrik .rb-krit { white-space: nowrap; }
.rubrik .rb-krit label { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; font-size: 13px; cursor: pointer; }
.rubrik .form-control { min-width: 90px; }
.rubrik td input.iv-skor { max-width: 90px; }
.rubrik tfoot td { padding: 12px; border-top: 2px solid var(--bs-border); font-weight: 700; }
.rubrik tfoot .tot-l { text-align: right; }
.score-warn { background: #fff3cd; border: 1px solid #ffe69c; color: #664d03; border-radius: 6px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; }

/* Berkas / pratinjau */
.score-upload { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.score-upload .form-control[type="file"] { flex: 1; min-width: 220px; padding: 8px 10px; }
.score-upload .form-control[type="file"]::file-selector-button { border: 0; background: #eef2f7; color: #0f172a; padding: 6px 12px; border-radius: 6px; margin-right: 10px; cursor: pointer; font: inherit; }
.score-viewer { margin-top: 14px; }
.pdf-frame { width: 100%; height: 520px; border: 1px solid var(--bs-border); border-radius: 8px; background: #525659; }
.img-prev { max-width: 100%; border: 1px solid var(--bs-border); border-radius: 8px; }
@media (max-width: 640px) {
  .score-head { grid-template-columns: 90px 1fr; }
  .score-kv2 { grid-template-columns: 1fr; gap: 4px; }
  .pdf-frame { height: 400px; }
}


/* =========================================================================
   TEMA SEKOLAH — Praditya Adhigana Global School
   Poppins, biru #1F609D, latar abu muda, kartu putih radius 12px, tombol 6px.
   ========================================================================= */
body { font-size: 14.5px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; }

/* Header putih dengan strip biru di atas, seperti situs sekolah */
.masthead { background: #fff; border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.masthead::before { content: ""; display: block; height: 8px; background: linear-gradient(180deg, #2a6fae, #1f609d); }
.masthead-inner { padding: 12px 24px; }
.brand { gap: 14px; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-tag { font: 500 13px/1.25 var(--body); color: #334155; padding-left: 14px; border-left: 1px solid #cbd5e1; }
.brand-tag { font-weight: 600; color: #1f609d; }
.brand-logo-white { display: none; }
.login-side .brand-logo-color { display: none; }
.login-side .brand-logo-white { display: block; }
.login-side .brand-tag { color: #fff; border-left-color: rgba(255,255,255,.4); }
@media (max-width: 560px) { .brand-logo { height: 26px; } .brand-tag { display: none; } }

/* Tombol */
.btn { border-radius: 6px; font-weight: 500; padding: 12px 24px; }
.btn-sm { border-radius: 6px; padding: 8px 16px; }
.btn-ink, .btn-pen { background: #1f609d; color: #fff; }
.btn-ink:hover, .btn-pen:hover { background: #184d7e; }
.btn-plain { color: #1f609d; box-shadow: inset 0 0 0 1px #1f609d; background: #fff; }
.btn-plain:hover { background: #e3eef8; color: #184d7e; }
.b { border-radius: 6px; font-weight: 500; }

/* Login: panel biru sekolah + form di kartu putih */
.login-side { background: linear-gradient(160deg, #2a6fae 0%, #1f609d 45%, #174a7a 100%); }
.login-side .ruled { display: none; }
.login-side h2 { font-weight: 600; letter-spacing: -.02em; }
.login-side .pending { color: #d6e6f5; }
.login-side .pending b { color: #fff; }
.login-side .foot { color: #b9d3ea; }
.login-main { background: #f2f2f2; }
.login-form { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 34px 32px 30px; max-width: 420px; box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.login-form h1 { font-size: 26px; font-weight: 600; color: #191715; }
.input, .select, .textarea { border-radius: 6px; }

/* Kartu & panel */
.admin-card, .wz-card, .ap-upcard, .ap-test-card, .exam-result, .modal-box { border-radius: 12px; }
.admin-card, .wz-card { box-shadow: 0 4px 12px rgba(0,0,0,.04); border: 1px solid #e2e8f0; }
.ap-welcome { background: #e3eef8; color: #174a7a; }
.ap-upcard-h { background: #1f609d; }
.ap-test-h-alt { background: #174a7a; }
.ap-sec-title, .wz-title { font-weight: 600; color: #191715; }
.wz-h { font-weight: 600; }
.dtable thead th { font-weight: 600; }
.login-side .brand-logo { height: 44px; }
.login-side .brand-tag { font-size: 15px; }

/* --- Modal Kelola Posisi --- */
.posisi-modal { width: min(560px, 94vw); }
.posisi-add { display: flex; gap: 10px; }
.posisi-add .form-control { flex: 1; min-width: 0; }
.posisi-info { font-size: 13px; margin: 12px 0 10px; }
.posisi-list2 { max-height: 46vh; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.posisi-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #f1f5f9; }
.posisi-row:last-child { border-bottom: 0; }
.posisi-nama { flex: 1; min-width: 0; font-weight: 500; font-size: 13.5px; color: #0f172a; }
.posisi-n { font-size: 12.5px; white-space: nowrap; }
@media (max-width: 480px) { .posisi-add { flex-direction: column; } }

/* Logo sekolah dipotong: hanya emblem + nama (150 dari 330 unit lebar), tanpa "Integrated Cambridge" */
.brand { align-items: center; gap: 14px; }
.brand-logo { height: 36px; width: auto; aspect-ratio: 150 / 40; object-fit: cover; object-position: left center; flex: none; }
.brand-tag { display: inline-flex; align-items: center; height: 28px; padding-left: 14px; font-size: 15px; line-height: 1; }
.login-side .brand-logo { height: 46px; }
.login-side .brand-tag { height: 34px; font-size: 17px; }
@media (max-width: 560px) { .brand-logo { height: 28px; } }

/* ===================================================== Perbaikan tampilan HP */
/* Elemen ber-atribut hidden harus benar-benar tersembunyi (sebelumnya kalah oleh gaya .b / .btn). */
[hidden] { display: none !important; }
html, body { max-width: 100%; overflow-x: clip; }
.wz-foot { gap: 10px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .masthead-inner { padding: 10px 14px; gap: 10px; }
  .brand-tag { display: none; }
  .user-chip .uname { display: none; }

  .ap-main { padding: 18px 14px 48px; }
  .ap-welcome { padding: 13px 14px; font-size: 15px; }
  .ap-note { padding: 12px 14px; font-size: 14px; align-items: flex-start; }
  .ap-sec-title { font-size: 20px; }
  .ap-test-b { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; }
  .ap-test-action { margin-left: 0; }
  .ap-test-action .b { width: 100%; justify-content: center; }

  /* Form biodata */
  .wz-title { font-size: 18px; line-height: 1.35; margin-bottom: 14px; }
  .wz-card { padding: 18px 14px 20px; }
  .wz-nav { gap: 2px; }
  .wz-dot { width: 36px; height: 36px; }
  .wz-dot svg { width: 15px; height: 15px; }
  .wz-step-ind::before { top: 18px; }
  .wz-steplabel { font-size: 11px; line-height: 1.25; }
  .wz-h { font-size: 17px; }
  .wz-inp { font-size: 16px; }              /* 16px: mencegah iOS memperbesar layar saat mengetik */
  .wz-radio { flex-wrap: wrap; gap: 10px 18px; }
  .wz-pledge { padding: 14px; }
  .wz-add { width: 100%; justify-content: center; }
  .wz-foot { margin-top: 20px; }
  .wz-foot .b { flex: 1 1 0; justify-content: center; padding: 12px 10px; white-space: nowrap; }
  .wz-foot #wzPrev { margin-right: 0; }

  /* Riwayat kuliah: tiap baris tabel jadi kartu bertumpuk */
  .wz-table-wrap { overflow: visible; }
  .rk-table, .rk-table tbody { display: block; }
  .rk-table thead { display: none; }
  .rk-table tr.rk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; margin-bottom: 10px; background: #fcfcfd; position: relative; }
  .rk-table td { display: block; border: 0; padding: 0; }
  .rk-table td::before { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 4px; }
  .rk-table td:nth-child(2)::before { content: "Jenjang"; }
  .rk-table td:nth-child(3)::before { content: "Kampus"; }
  .rk-table td:nth-child(4)::before { content: "Jurusan"; }
  .rk-table td:nth-child(5)::before { content: "Tahun masuk"; }
  .rk-table td:nth-child(6)::before { content: "Tahun lulus"; }
  .rk-table td:nth-child(7)::before { content: "IPK"; }
  .rk-table td:nth-child(3), .rk-table td:nth-child(4) { grid-column: 1 / -1; }
  .rk-table td.rk-c { grid-column: 1 / -1; width: auto; text-align: right; order: 9; }
  .pk-row { padding: 10px 12px 2px; }

  /* Ujian */
  .exam-main { padding: 14px 14px 40px; gap: 18px; }
  .exam-right { position: static; }
  .exam-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .exam-box { padding: 10px 0; }
  .exam-navbtn { justify-content: space-between; }
  .exam-navbtn .b { flex: 1; justify-content: center; padding: 12px; }
  .exam-opt { padding: 11px 4px; font-size: 15px; }
  .exam-result { margin: 20px auto; padding: 26px 18px; }

  /* Login */
  .login-form { padding: 26px 20px 24px; }
  .input { font-size: 16px; }
}
.ap-note-ok { background: #e3eef8; color: #174a7a; }
.ap-welcome > span, .ap-note > span { min-width: 0; }
@media (max-width: 640px) {
  .rk-table { width: 100%; }
  .rk-table tr.rk-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; box-sizing: border-box; }
  .rk-table td { min-width: 0; }
  .rk-table td .wz-inp { width: 100%; min-width: 0; box-sizing: border-box; }
  .rk-table td.rk-c { display: flex; justify-content: flex-end; }
}
@media (max-width: 640px) { .rk-table { min-width: 0; } }

/* Tombol hapus baris riwayat kuliah + keadaan kosong */
.rk-del { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 34px; height: 34px; padding: 0; background: #fff; cursor: pointer; }
.rk-del:hover { background: #fdecec; }
.rk-del-t { display: none; font-size: 13px; font-weight: 500; }
.rk-empty td { text-align: center; color: #64748b; font-style: italic; padding: 16px 12px; font-size: 13.5px; }
@media (max-width: 640px) {
  .rk-del { width: auto; padding: 0 12px; }
  .rk-del-t { display: inline; }
  .rk-table tr.rk-empty { display: block; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8f9fa; }
  .rk-table tr.rk-empty td::before { content: none; }
}
.wz-opt { font-weight: 400; color: #64748b; }
@media (min-width: 641px) { .rk-table td:nth-child(2) { min-width: 104px; } }
.bdg-secondary { background: #e2e8f0; color: #475569; }

/* Tab WPT di panel Score: ringkasan hasil + rincian */
.wpt-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.wpt-stat { background: #f4f8fc; border: 1px solid #d5e4f2; border-radius: 12px; padding: 14px 16px; min-width: 0; }
.wpt-stat small { display: block; font-size: 12.5px; color: #55657a; font-weight: 500; }
.wpt-stat b { display: block; font-size: 28px; line-height: 1.2; font-weight: 600; color: #174a7a; margin: 2px 0; overflow-wrap: anywhere; }
.wpt-stat span { display: block; font-size: 12.5px; color: #64748b; }
.wpt-stat #wptKat { font-size: 20px; line-height: 1.7; }
.wpt-stat-date { grid-column: 1 / -1; background: #fff; }
.wpt-stat-date b { font-size: 16px; color: #212529; }
.wpt-stat-date b.wpt-none { color: #64748b; font-weight: 500; }
.wpt-h { margin: 0 0 2px; font-size: 15px; font-weight: 600; color: #212529; }
.wpt-p { margin: 0 0 14px; font-size: 13px; color: #64748b; }
.wpt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.wpt-f { display: block; min-width: 0; }
.wpt-f > span { display: block; font-size: 13px; font-weight: 500; color: #334155; margin-bottom: 5px; }
.wpt-f .form-control { width: 100%; max-width: none; }
.wpt-f small { display: block; font-size: 12px; color: #64748b; margin-top: 4px; }
.wpt-how { margin: 20px 0 14px; padding: 12px 14px; border-left: 3px solid #1f609d; background: #f8f9fa; border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.6; color: #475569; }
.wpt-how b { display: block; color: #212529; font-weight: 600; margin-bottom: 2px; }
.score-body .iq-table { width: 100%; margin-top: 0; font-size: 13px; border: 1px solid #e2e8f0; min-width: 0; }
.score-body .iq-table th, .score-body .iq-table td { border: 0; border-bottom: 1px solid #e9eef3; padding: 7px 12px; }
.score-body .iq-table tr.is-on td { background: #e3eef8; color: #174a7a; font-weight: 600; }
@media (max-width: 640px) {
  .wpt-sum { grid-template-columns: 1fr; }
  .wpt-grid { grid-template-columns: 1fr; }
  .wpt-stat b { font-size: 24px; }
}

/* ===== Halaman tes pelamar (WPT), tampilan baru ===== */
.exam-intro { max-width: 620px; margin: 28px auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 32px; }
.exam-intro h1 { margin: 0 0 4px; font-size: 26px; font-weight: 600; color: #174a7a; }
.exam-intro-sub { margin: 0 0 22px; color: #55657a; font-size: 14.5px; }
.exam-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #d5e4f2; border-radius: 12px; background: #f4f8fc; margin-bottom: 22px; }
.exam-facts > div { padding: 14px 16px; }
.exam-facts > div + div { border-left: 1px solid #d5e4f2; }
.exam-facts b { display: block; font-size: 28px; font-weight: 600; line-height: 1.2; color: #174a7a; }
.exam-facts span { font-size: 13px; color: #55657a; }
.exam-rules { margin: 0 0 26px; padding-left: 20px; color: #334155; font-size: 14.5px; line-height: 1.7; }
.exam-rules li + li { margin-top: 6px; }
.exam-intro-act { display: flex; justify-content: flex-end; gap: 10px; }
.exam-intro-act .b { min-height: 44px; padding: 0 22px; }

.exam-bar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #e2e8f0; }
.exam-bar-in { max-width: 1180px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 20px; }
.exam-bar-l { min-width: 0; }
.exam-bar-l b { display: block; font-size: 15px; font-weight: 600; color: #212529; }
.exam-bar-l span { font-size: 13px; color: #55657a; }
.exam-prog { flex: 1; height: 6px; border-radius: 3px; background: #e3eef8; overflow: hidden; }
.exam-prog i { display: block; height: 100%; width: 0; background: #1f609d; border-radius: 3px; transition: width .2s ease; }
.exam-clock { flex: none; text-align: right; padding: 6px 14px; border-radius: 8px; background: #f4f8fc; border: 1px solid #d5e4f2; }
.exam-clock small { display: block; font-size: 11.5px; color: #55657a; line-height: 1.2; }
.exam-clock b { font-size: 22px; font-weight: 600; line-height: 1.2; color: #174a7a; font-variant-numeric: tabular-nums; }
.exam-clock.warn { background: #fff7e6; border-color: #f1d08a; }
.exam-clock.warn b { color: #8a5a00; }
.exam-clock.danger { background: #fdecec; border-color: #f0b4b4; }
.exam-clock.danger b { color: #b42318; }

.exam-main { max-width: 1180px; margin: 0 auto; padding: 24px 24px 60px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.exam-card, .exam-side { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.exam-card { padding: 28px 28px 22px; }
.exam-qhead { border: 0; padding: 0; margin: 0 0 10px; font-size: 13.5px; color: #55657a; }
.exam-qhead b { color: #1f609d; font-weight: 600; }
.exam-q { margin: 0 0 22px; font-size: 19px; font-weight: 500; line-height: 1.5; color: #1f2733; max-width: 62ch; }
.exam-opts { display: flex; flex-direction: column; gap: 10px; }
.exam-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; min-height: 52px; border: 1px solid #d5dbe3; border-radius: 10px; font-size: 15.5px; color: #212529; cursor: pointer; background: #fff; }
.exam-opt:hover { border-color: #91bfe8; background: #f7fafd; }
.exam-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.exam-key { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; color: #1f609d; background: #e3eef8; }
.exam-otext { min-width: 0; overflow-wrap: anywhere; }
.exam-opt.on { border-color: #1f609d; background: #eef5fb; box-shadow: inset 0 0 0 1px #1f609d; }
.exam-opt.on .exam-key { background: #1f609d; color: #fff; }
.exam-opt:focus-within { outline: 2px solid #1f609d; outline-offset: 2px; }
.exam-navbtn { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid #edf0f3; }
.exam-navbtn .b { min-width: 132px; min-height: 44px; justify-content: center; }
.exam-navbtn .b:disabled { opacity: .45; cursor: default; }

.exam-side { position: sticky; top: 76px; padding: 18px; }
.exam-side h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #212529; }
.exam-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 12px; }
.exam-box { border: 1px solid #cfd6df; background: #fff; color: #334155; border-radius: 8px; padding: 0; height: 40px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums; }
.exam-box:hover { border-color: #1f609d; }
.exam-box.done { background: #1f609d; border-color: #1f609d; color: #fff; }
.exam-box.cur { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e0a100; }
.exam-box:focus-visible { outline: 2px solid #1f609d; outline-offset: 2px; }
.exam-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: #55657a; margin-bottom: 16px; }
.exam-legend span { display: inline-flex; align-items: center; gap: 6px; }
.exam-legend .lg { width: 14px; height: 14px; border-radius: 4px; border: 1px solid #cfd6df; background: #fff; }
.exam-legend .lg.done { background: #1f609d; border-color: #1f609d; }
.exam-legend .lg.cur { border-color: #e0a100; box-shadow: 0 0 0 1px #e0a100; }
.exam-submit { width: 100%; min-height: 46px; justify-content: center; font-size: 15px; padding: 0 12px; background: #1f609d; color: #fff; }
.exam-note { margin: 8px 0 0; font-size: 12.5px; color: #64748b; text-align: center; }
.exam-confirm { max-width: 440px; }
.exam-confirm .modal-b p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.6; }
.exam-result-grid span { font-weight: 600; }

@media (max-width: 900px) {
  .exam-main { grid-template-columns: 1fr; }
  .exam-side { position: static; }
  .exam-grid { grid-template-columns: repeat(10, 1fr); }
}
@media (max-width: 640px) {
  .exam-intro { margin: 14px auto; padding: 22px 18px; }
  .exam-facts b { font-size: 22px; }
  .exam-facts > div { padding: 12px 10px; }
  .exam-intro-act .b { flex: 1; justify-content: center; }
  .exam-bar-in { padding: 8px 16px; gap: 12px; flex-wrap: wrap; }
  .exam-bar-l { flex: 1; }
  .exam-prog { order: 3; flex: 0 0 100%; }
  .exam-clock { padding: 4px 12px; }
  .exam-clock b { font-size: 20px; }
  .exam-main { padding: 14px 16px 40px; gap: 16px; }
  .exam-card { padding: 20px 16px 16px; }
  .exam-q { font-size: 17px; }
  .exam-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .exam-box { height: 44px; padding: 0; }
  .exam-navbtn .b { flex: 1; min-width: 0; padding: 0 10px; }
  .exam-opt { padding: 12px; font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .exam-prog i { transition: none; } }
.exam-box.cur { background: #fff; color: #174a7a; font-weight: 600; }
.exam-box.cur.done { background: #1f609d; color: #fff; }
.exam-confirm .modal-f { flex-wrap: wrap; gap: 8px; }
.exam-confirm .modal-f .b { flex: 1 1 150px; justify-content: center; min-height: 44px; margin: 0; }

/* Detail pendaftar: kolom yang terisi otomatis dari biodata pelamar */
.dp-autonote { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 10px 14px; border: 1px solid #b9d6ee; background: #eef5fb; border-radius: 8px; font-size: 13.5px; line-height: 1.55; color: #174a7a; }
.dp-autonote svg { flex: none; margin-top: 2px; }
.dp-row.dp-auto .form-control, .dp-row.dp-auto .form-select { border-left: 3px solid #1f609d; background-color: #f7fafd; }

/* Pengawasan pindah tab saat tes */
.exam-warn .modal-h h3 { color: #b42318; }
.exam-ended { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #fdecec; border: 1px solid #f0b4b4; color: #b42318; font-size: 13.5px; }
.wpt-stat .wpt-flag { color: #b42318; font-weight: 600; margin-top: 4px; }
.wpt-stat .wpt-clean { color: #1a7f4b; margin-top: 4px; }

/* ===== Tes Akademik: naskah soal (PDF) + lembar jawaban ===== */
.akd-prep { margin: 12px 0 0; font-size: 13px; color: #b42318; text-align: right; min-height: 1em; }
.akd-main { max-width: 1280px; margin: 0 auto; padding: 20px 24px 60px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.akd-paper { min-width: 0; position: relative; user-select: none; -webkit-user-select: none; }
.akd-pages { display: flex; flex-direction: column; gap: 14px; overflow-x: auto; }
.akd-pages > .akd-pg { width: calc(100% * var(--z, 1)); flex: none; }
.akd-zoom { position: sticky; top: 70px; z-index: 5; width: max-content; margin: 0 8px -50px auto; transform: translateY(8px); display: flex; align-items: center; gap: 2px; background: #fff; border: 1px solid #cfd6df; border-radius: 999px; padding: 3px; box-shadow: 0 2px 8px rgba(16, 24, 40, .12); }
.akd-zoom button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #e3eef8; color: #174a7a; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.akd-zoom button:disabled { opacity: .4; cursor: default; }
.akd-zoom button:focus-visible { outline: 2px solid #1f609d; outline-offset: 2px; }
.akd-zoom span { min-width: 46px; text-align: center; font-size: 12.5px; font-weight: 600; color: #334155; font-variant-numeric: tabular-nums; }
.akd-loading { margin: 0; padding: 40px 16px; text-align: center; color: #55657a; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 14px; }
.akd-pg { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.akd-pg canvas { display: block; width: 100%; height: auto; }
.akd-pg-n, .akd-pg-err { font-size: 13px; color: #8a97a8; padding: 12px; text-align: center; }
.akd-pg-err { color: #b42318; }
.akd-sheet { position: sticky; top: 76px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 92px); }
.akd-cur, .akd-toggle { display: none; }
.akd-list-wrap { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.akd-list-wrap h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: #212529; }
.akd-list { overflow-y: auto; min-height: 0; flex: 1; margin: 0 -6px; padding: 0 6px; overscroll-behavior: contain; }
.akd-row { display: grid; grid-template-columns: 30px repeat(5, 1fr); gap: 6px; align-items: center; padding: 4px 4px; border-radius: 8px; cursor: pointer; }
.akd-row.cur { background: #fff7e0; box-shadow: inset 0 0 0 1px #e0a100; }
.akd-n { font-size: 13.5px; font-weight: 600; color: #55657a; text-align: right; padding-right: 4px; font-variant-numeric: tabular-nums; }
.akd-row.done .akd-n { color: #1f609d; }
.akd-o { height: 34px; border: 1px solid #cfd6df; background: #fff; color: #334155; border-radius: 8px; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; padding: 0; }
.akd-o:hover { border-color: #1f609d; }
.akd-o.on { background: #1f609d; border-color: #1f609d; color: #fff; font-weight: 600; }
.akd-o:focus-visible, .akd-nav:focus-visible, .akd-toggle:focus-visible { outline: 2px solid #1f609d; outline-offset: 2px; }
.akd-sheet .exam-note { margin: 8px 0 12px; text-align: left; }
.akd-result-grid { grid-template-columns: 1fr 1fr; }
.akd-adm-f { max-width: 420px; margin-bottom: 4px; }
.akd-sep { border: 0; border-top: 1px solid #e2e8f0; margin: 22px 0 18px; }
.ap-test-card + .ap-test-card { margin-top: 14px; }

@media (max-width: 900px) {
  .akd-main { grid-template-columns: 1fr; padding: 12px 12px 150px; }
  .akd-sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 30; border-radius: 14px 14px 0 0; border-width: 1px 0 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); max-height: 78vh; box-shadow: 0 -6px 20px rgba(16, 24, 40, .12); gap: 8px; }
  .akd-cur { display: grid; grid-template-columns: 40px auto 1fr 40px; gap: 8px; align-items: center; }
  .akd-cur-n { font-size: 13.5px; color: #55657a; white-space: nowrap; }
  .akd-cur-n b { color: #174a7a; font-size: 16px; }
  .akd-cur-o { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .akd-cur .akd-o { height: 44px; font-size: 15px; }
  .akd-nav { height: 44px; border: 1px solid #cfd6df; background: #fff; border-radius: 8px; font-size: 22px; line-height: 1; color: #174a7a; cursor: pointer; padding: 0; }
  .akd-nav:disabled { opacity: .4; cursor: default; }
  .akd-toggle { display: block; border: 0; background: none; color: #1f609d; font: inherit; font-size: 13.5px; font-weight: 500; padding: 6px 0; cursor: pointer; text-align: center; }
  .akd-list-wrap { display: none; }
  .akd-sheet.open .akd-list-wrap { display: flex; }
  .akd-sheet .exam-submit { display: none; }
  .akd-sheet.open .exam-submit { display: flex; }
  .akd-o { height: 40px; }
}

/* WPT: jenis jawaban selain pilihan tunggal (angka, huruf, centang, dua titik) + gambar soal */
.exam-img { margin: 0 0 16px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; text-align: center; }
.exam-img img { display: block; max-width: 100%; max-height: 420px; height: auto; margin: 0 auto; }
.exam-inp { display: block; max-width: 340px; }
.exam-inp > span { display: block; font-size: 13.5px; font-weight: 500; color: #334155; margin-bottom: 6px; }
.exam-inp input, .exam-inp select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #cfd6df; border-radius: 10px; font: inherit; font-size: 17px; color: #212529; background: #fff; }
.exam-inp input:focus, .exam-inp select:focus { outline: 2px solid #1f609d; outline-offset: 1px; border-color: #1f609d; }
.exam-inp small { display: block; margin-top: 6px; font-size: 12.5px; color: #64748b; line-height: 1.5; }
.exam-two { display: grid; grid-template-columns: repeat(2, minmax(0, 170px)); gap: 14px; }
.exam-pick { margin: 0 0 4px; font-size: 13.5px; font-weight: 500; color: #174a7a; }
.exam-opt input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.exam-contoh { margin: 0 0 24px; padding: 14px 16px; border: 1px dashed #b9d6ee; border-radius: 10px; background: #f7fafd; font-size: 14px; line-height: 1.6; color: #334155; }
.exam-contoh b { display: block; color: #174a7a; font-weight: 600; margin-bottom: 4px; }
.exam-contoh ol { margin: 0; padding-left: 20px; }
.exam-contoh li + li { margin-top: 8px; }
.exam-contoh li span { display: block; color: #1a7f4b; font-weight: 500; }
@media (max-width: 640px) { .exam-two { grid-template-columns: 1fr 1fr; } .exam-inp { max-width: none; } }
.exam-img img { width: auto; }
