/* HRD ANPD — tambahan di atas anpd-hct.css (tema human-centered tactical) */

/* ---------- Tahapan kandidat ---------- */
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 18px; padding: 0; list-style: none; counter-reset: st; }
.steps li { flex: 1 1 120px; min-width: 110px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 8px 10px; font-size: 13.5px; color: var(--text-2); position: relative; }
.steps li b { display: block; font-size: 14px; color: var(--text); font-weight: 600; }
.steps li a { color: inherit; text-decoration: none; display: block; }
.steps li.done { border-color: var(--ok); background: var(--ok-bg); }
.steps li.fail { border-color: var(--crit); background: var(--crit-bg); }
.steps li.now { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 162, 39, .25); }
.steps li .st-no { font-family: var(--font-display); font-weight: 700; color: var(--text-3); margin-right: 4px; }

/* ---------- Nilai ---------- */
.score-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) 52px 1fr 64px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: 0; }
.score-row.is-compact { grid-template-columns: minmax(0, 1fr) 34px 64px 38px; gap: 8px; font-size: 14px; }
.score-row.is-compact .val { font-size: 16px; }
.score-row .lbl { font-weight: 500; }
.score-row .w { color: var(--text-3); font-size: 13px; text-align: right; }
.score-row .val { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.bar { height: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--text-3); border-radius: 99px; }
.bar.is-ok > i { background: var(--ok); }
.bar.is-warn > i { background: var(--warn); }
.bar.is-crit > i { background: var(--crit); }
.big-score { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; }
.big-score small { font-size: 16px; color: var(--text-2); font-weight: 500; margin-left: 6px; }
.kv { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--text-2); font-weight: 500; }
.kv dd { margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list .ti { font-size: 20px; margin-top: 1px; }
.check-list .ok .ti { color: var(--ok); }
.check-list .crit .ti { color: var(--crit); }
.check-list .warn .ti { color: var(--warn); }
.check-list .none .ti { color: var(--text-3); }

/* ---------- Kartu kompetensi (wawancara) ---------- */
.ccard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; }
.ccard + .ccard { margin-top: 16px; }
.ccard h3 { font-size: 19px; margin: 0 0 4px; font-weight: 600; }
.ccard .meaning { color: var(--text-2); margin-bottom: 12px; }
.ccard .ask { background: var(--surface-2); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 10px; }
.ccard .ask b { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); margin-bottom: 2px; }
.anchors { display: grid; gap: 8px; margin: 12px 0; }
.anchor { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; background: var(--surface); }
.anchor:hover { border-color: var(--line-strong); }
.anchor input { margin-top: 4px; }
.anchor .sc { font-family: var(--font-display); font-weight: 700; font-size: 20px; min-width: 22px; text-align: center; }
.anchor.is-checked { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 162, 39, .25); }
.anchor.mid { padding: 6px 12px; }
.anchor.mid .txt { color: var(--text-3); font-size: 13.5px; }
.red-flags { margin: 6px 0 0; padding-left: 0; list-style: none; }
.red-flags label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-2); padding: 3px 0; }
.ai-box { border: 1px dashed var(--info); background: var(--info-bg); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 10px; font-size: 14.5px; }
.ai-box .ai-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--info); }
.banner-rule { border: 1px solid var(--warn-line); background: var(--warn-bg); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }

/* ---------- Tabel ringkas ---------- */
.tbl-tight td, .tbl-tight th { padding: 7px 10px; vertical-align: middle; }
.tbl-tight th { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.name-cell { display: flex; gap: 10px; align-items: center; }
.name-cell small { display: block; color: var(--text-3); font-size: 12.5px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.filters .form-control, .filters .form-select { max-width: 240px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 12px 14px; }
.stat b { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.stat span { color: var(--text-2); font-size: 13.5px; }
.stat.is-warn { border-color: var(--warn-line); background: var(--warn-bg); }
.stat.is-crit { border-color: var(--crit-line); background: var(--crit-bg); }
.doc-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); }
.hint { font-size: 13px; color: var(--text-3); }
.qmark { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); cursor: help; vertical-align: 1px; }
.why { font-size: 13.5px; color: var(--text-2); margin: -4px 0 12px; }
.pw-show { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 6px; padding: 8px 14px; display: inline-block; user-select: all; }
.tag-practice { background: var(--info-bg); color: var(--info); border-radius: 4px; padding: 0 6px; font-size: 12px; font-weight: 600; }

/* ---------- Halaman publik (pelamar & ujian) ---------- */
body.pub { background: var(--bg); }
.pub-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #1B2433; color: #fff; }
.pub-head b { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: .02em; }
.pub-head small { display: block; color: #C9D1DC; font-size: 13px; }
.pub-main { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; }
.pub-foot { text-align: center; color: var(--text-3); font-size: 12.5px; padding: 0 16px 24px; }
.wiz-nav { display: flex; gap: 4px; margin-bottom: 16px; }
.wiz-nav span { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.wiz-nav span.on { background: var(--gold); }
.wiz-step { display: none; }
.wiz-step.on { display: block; }
.wiz-foot { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; border-top: 1px solid var(--line); }
.field-req::after { content: " *"; color: var(--crit); }
.upl { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface); display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.upl + .upl { margin-top: 8px; }
.upl .upl-name { font-weight: 600; }
.upl .upl-state { font-size: 13px; color: var(--text-3); }
.upl.done { border-color: var(--ok); }
.upl.done .upl-state { color: var(--ok); }
.code-box { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: .08em; background: var(--surface); border: 2px dashed var(--gold); border-radius: var(--radius); padding: 10px 16px; display: inline-block; }

/* Ujian */
.exam-bar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.exam-timer { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.exam-timer.low { color: var(--crit); }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.qcard .qno { font-size: 13px; color: var(--text-3); font-weight: 600; }
.qcard .qtext { font-size: 17px; margin: 4px 0 12px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; margin-bottom: 8px; cursor: pointer; font-size: 16px; background: var(--surface); }
.opt input { margin-top: 4px; transform: scale(1.2); }
.opt.is-checked { border-color: var(--gold); background: rgba(201, 162, 39, .08); }
.acc-pair { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 24px; letter-spacing: .06em; text-align: center; padding: 18px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.acc-pair div + div { margin-top: 6px; }
.acc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.acc-btns .btn { font-size: 20px; padding: 14px; }
.scene-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.scene-wrap svg { display: block; width: 100%; height: auto; }

@media (max-width: 640px) {
    .score-row { grid-template-columns: 1fr 52px; }
    .score-row .bar { grid-column: 1 / -1; }
    .score-row .w { display: none; }
    .kv { grid-template-columns: 1fr; }
    .kv dt { margin-top: 6px; }
}
@media print {
    .side, .topbar-mobile, .page-tools, .no-print { display: none !important; }
    .main { margin: 0 !important; }
}

/* Kinerja personil (v3.1) */
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; }
.pick { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; }
.pick:hover { background: var(--surface-2); }
.pick input { margin-top: 4px; flex-shrink: 0; }
.perf-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.perf-item:last-child { border-bottom: 0; }
.perf-q { font-weight: 600; margin-bottom: 8px; }
.perf-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.perf-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 4px; cursor: pointer; background: var(--surface); text-align: center; }
.perf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.perf-opt b { font-family: var(--font-display); font-size: 20px; line-height: 1; }
.perf-opt span { font-size: 12px; color: var(--text-2); line-height: 1.2; }
.perf-opt:hover { border-color: var(--line-strong); }
.perf-opt.is-checked { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 162, 39, .25); background: var(--surface-2); }
.perf-opt:focus-within { outline: 3px solid var(--ring, rgba(201, 162, 39, .5)); outline-offset: 1px; }
.perf-anchor { display: grid; gap: 2px; margin-top: 6px; color: var(--text-2); }
.perf-anchor .ok-t b { color: var(--ok); }
.perf-anchor .crit-t b { color: var(--crit); }
.kpi-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kpi-row:last-of-type { border-bottom: 0; }
.coach-grid td.is-ok { color: var(--ok); font-weight: 600; }
.coach-grid td.is-crit { color: var(--crit); font-weight: 600; }
.kv dd { overflow-wrap: anywhere; }

/* Versi pertanyaan wawancara & skenario simulasi (master data) */
.ver-row { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 8px; background: var(--surface); }
.ver-row.is-off { opacity: .6; }

/* Akun aplikasi lapangan (halaman personil) */
.acc-cred > div { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.acc-cred .pw-show { white-space: nowrap; align-self: flex-start; }
