/* =====================================================================
   TAP — sistem desain (platform grup, ADR-005)
   :root = tema NETRAL bawaan platform. Tema unit bisnis (mis. Bank Mega "M-Smile": krem hangat, oranye dengan TEKS GELAP
   di atasnya) ada di Paket Organisasi orgs/<unit>/org.json → /assets/org/theme.css (dimuat setelah berkas ini).
   Token yang boleh diatur paket: @tap/org THEME_KEYS (nilai bawaan di sini HARUS sama dengan BASE_THEME — dijaga tes).
   Setiap tema wajib lolos kontras WCAG AA (@tap/org CONTRAST_PAIRS). Semua warna lewat token; tidak ada warna merek di luar :root.
   ===================================================================== */

:root {
  /* --- tema (dapat diatur Paket Organisasi) --- */
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --surface-2: #EEF2F5;
  --surface-3: #E2E8ED;
  --line: #DFE5EA;
  --line-strong: #C3CCD5;
  --text: #15191D;
  --text-2: #3A434C;
  --muted: #58636E;
  --brand: #0F6E68;
  --brand-strong: #0B5853;
  --brand-soft: #D3EEEA;
  --brand-ink: #FFFFFF;
  --brand-text: #0A4B47;
  --grad-a: #11756F;
  --grad-b: #0B5853;
  --c1: #0F6E68;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 1px rgba(16, 24, 40, .04);
  --shadow-2: 0 6px 18px rgba(16, 24, 40, .08), 0 2px 4px rgba(16, 24, 40, .05);
  --shadow-3: 0 18px 48px rgba(16, 24, 40, .18);
  --nav-hover: rgba(255, 255, 255, .14);
  --nav-active-bg: rgba(255, 255, 255, .94);
  --nav-active-ink: #0A4B47;
  --count-bg: #062E2B;
  --count-ink: #fff;
  --topbar-bg: rgba(244, 246, 248, .92);
  --accent-a: #EAF6F4;
  --accent-b: #D3EEEA;
  --accent-line: #A6D9D2;
  --row-hover: #F5FAF9;
  --row-sel: #E8F5F3;
  --brand-wash: #EDF7F6;
  --choice-on: #F0F8F7;
  --dup-line: #F3D19E;
  --dup-bg: #FFFAF0;
  --brand-ring: rgba(15, 110, 104, .25);
  --bar-dark: #0E2B29;
  --on-brand-chip: rgba(0, 0, 0, .2);
  --tip-ink: #0A4B47;
  /* --- tetap sama di semua unit (makna warna & tata letak) --- */
  --focus: #1F5FBF;
  --ok: #17784A;
  --ok-soft: #DDF3E7;
  --warn: #9A5B00;
  --warn-soft: #FFF0D1;
  --bad: #B42318;
  --bad-soft: #FDE3E0;
  --info: #1F5FBF;
  --info-soft: #E2ECFB;
  --violet: #6941C6;
  --violet-soft: #ECE4FB;
  --b-excellent: #17784A;
  --b-strong: #2E7D74;
  --b-good: #1F5FBF;
  --b-moderate: #9A5B00;
  --b-low: #B42318;
  --c2: #2E7D74;
  --c3: #1F5FBF;
  --c4: #9A5B00;
  --c5: #6941C6;
  --c6: #B42318;
  --c7: #6E655B;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --r-pill: 999px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --side-w: 248px;
  --top-h: 60px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--text); }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
h4 { font-size: 13px; font-weight: 650; color: var(--text-2); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.ico { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.toolbar > .ico { color: var(--muted); }
.attn > .ico { margin-top: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 8px; }
.stack > * + * { margin-top: 16px; }
.stack-s > * + * { margin-top: 8px; }
.hide { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------- kerangka */

.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.shell.collapsed { --side-w: 68px; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(180deg, var(--grad-a) 0%, var(--grad-b) 100%);
  color: var(--brand-ink); display: flex; flex-direction: column; padding: 14px 10px; gap: 6px;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-1);
  display: grid; place-items: center; flex: none; padding: 5px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-logo { background: var(--surface); border-radius: var(--r-m); padding: 10px 14px; box-shadow: var(--shadow-1); flex: none; }
.brand-logo img { height: 46px; width: auto; display: block; }
.login-logo { display: none; justify-content: center; margin-bottom: 18px; }
.login-logo img { height: 52px; width: auto; }
.brand-name { font-weight: 800; font-size: 16px; line-height: 1.1; }
.brand-sub { font-size: 11px; opacity: .85; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .7; padding: 12px 10px 4px; }
.nav a, .nav button.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-m);
  color: var(--brand-ink); font-weight: 600; text-decoration: none; background: transparent; border: 0;
  font: inherit; font-weight: 600; cursor: pointer; text-align: left; width: 100%;
}
.nav a:hover, .nav button.nav-item:hover { background: var(--nav-hover); text-decoration: none; }
.nav a.active { background: var(--nav-active-bg); color: var(--nav-active-ink); box-shadow: var(--shadow-1); }
.nav a.sub { padding-left: 42px; font-weight: 500; font-size: 13px; }
.nav .ico { width: 20px; height: 20px; flex: none; }
.nav .count { margin-left: auto; font-size: 11px; background: var(--count-bg); color: var(--count-ink); border-radius: var(--r-pill); padding: 1px 7px; }
.shell.collapsed .nav-text, .shell.collapsed .nav-label, .shell.collapsed .brand-text, .shell.collapsed .nav a.sub, .shell.collapsed .count { display: none; }
.side-foot { margin-top: auto; padding: 8px; font-size: 11px; opacity: .8; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--top-h); position: sticky; top: 0; z-index: 20; background: var(--topbar-bg);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); display: flex; align-items: center;
  gap: 12px; padding: 0 24px;
}
.topbar .crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; min-width: 0; }
.topbar .crumbs a { color: var(--muted); }
.topbar .crumbs .here { color: var(--text); font-weight: 600; }
.content { padding: 24px; max-width: 1440px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------- kartu */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.card-head + .card-body { padding-top: 12px; }
.card-body { padding: 16px 20px 20px; }
.card.flat { box-shadow: none; }
.card.soft { background: var(--surface-2); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-side { grid-template-columns: minmax(0, 1fr) 340px; }

.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .val { font-size: 26px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.kpi .hint { font-size: 12px; color: var(--muted); }
.hint.warn { color: var(--warn); font-weight: 500; }
.kpi.accent { background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); border-color: var(--accent-line); }

/* ------------------------------------------------------------- tombol */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .12s, box-shadow .12s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand-strong); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-strong); }
.btn.dark { background: var(--text); border-color: var(--text); color: #fff; }
.btn.dark:hover { background: #333; }
.btn.danger { background: var(--bad-soft); border-color: #F3B4AD; color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.xs { height: 26px; padding: 0 10px; font-size: 12px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn .ico { width: 16px; height: 16px; }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--muted); border-top-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-banner { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 24px; background: var(--bad-soft); color: var(--bad); border-bottom: 1px solid var(--bad); font-size: 13px; }   /* build 23.3: kredit AI habis */
.ai-banner[hidden] { display: none; }
.ai-banner.warn { background: var(--warn-soft); color: var(--warn); border-bottom-color: var(--warn); }   /* FB-18: kredit unit menipis */
.ai-banner a { color: inherit; text-decoration: underline; }
.spinner { display: inline-block; width: 14px; height: 14px; flex: none; border: 2px solid var(--muted); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }   /* build 23.3: Top 3 sedang disusun */

.seg { display: inline-flex; background: var(--surface-3); border-radius: var(--r-pill); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; padding: 6px 14px; border-radius: var(--r-pill); font: inherit; font-weight: 600;
  color: var(--text-2); cursor: pointer; font-size: 13px;
}
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.seg button .n { font-size: 11px; color: var(--muted); margin-left: 4px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a {
  padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent;
  text-decoration: none; white-space: nowrap; margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--brand); }

/* ------------------------------------------------------------- form */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl-text { font-size: 12px; font-weight: 650; color: var(--text-2); }
.field .req { color: var(--bad); margin-left: 2px; }
.hint { font-size: 12px; color: var(--muted); }
.field.err input, .field.err select, .field.err textarea, .field.err .chips { border-color: var(--bad); background: #FFF8F7; }
.field .errmsg { font-size: 12px; color: var(--bad); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"],
input[type="url"], input[type="search"], select, textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: var(--r-m); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31, 95, 191, .15); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--brand-strong); }
input[type="file"] { font: inherit; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.chips {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; min-height: 38px; border: 1px solid var(--line-strong);
  border-radius: var(--r-m); background: var(--surface); align-items: center;
}
.chips input { border: 0; height: 26px; padding: 0 4px; flex: 1 1 120px; min-width: 100px; box-shadow: none !important; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: var(--r-pill);
  background: var(--surface-3); font-size: 12px; font-weight: 600;
}
.chip button { border: 0; background: transparent; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; color: var(--muted); font-size: 14px; line-height: 1; }
.chip button:hover { background: var(--line); color: var(--text); }
.search-box { position: relative; }
.search-box input { padding-left: 34px; }
.search-box .ico { position: absolute; left: 10px; top: 10px; width: 18px; height: 18px; color: var(--muted); }

/* ------------------------------------------------------------- lencana & skor */

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 650; background: var(--surface-3); color: var(--text-2); white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.brand { background: var(--brand-soft); color: var(--brand-text); }
.badge.outline { background: transparent; border: 1px solid var(--line-strong); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; flex: none; }

.score {
  display: inline-grid; place-items: center; min-width: 42px; height: 30px; padding: 0 8px; border-radius: 9px;
  font-weight: 800; font-size: 15px; color: #fff; letter-spacing: -.01em;
}
.score.EXCELLENT { background: var(--b-excellent); }
.score.STRONG { background: var(--b-strong); }
.score.GOOD { background: var(--b-good); }
.score.MODERATE { background: var(--b-moderate); }
.score.LOW { background: var(--b-low); }
.score.none { background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 600; }
.score.big { min-width: 76px; height: 64px; font-size: 32px; border-radius: 16px; }
/* build 2026-10-27.10: dinilai hemat (Batch Assessment) — denyut lebih pelan */
.score.none.slow .pulse { animation-duration: 3s; opacity: .7; }
/* kartu pilihan (Real-Time / Batch Assessment) */
.choice-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); cursor: pointer; background: var(--surface); }
.choice-card:hover { border-color: var(--brand); }
.choice-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft, rgba(0,0,0,.06)); }
.choice-card input[type=radio] { margin-top: 3px; }
.choice-price { font-weight: 700; white-space: nowrap; }
.ok-text { color: var(--ok); }
.rel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.rel .bar { width: 46px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.rel .bar i { display: block; height: 100%; background: var(--info); border-radius: 3px; }

.stage { font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.stage.NEW { background: var(--surface-3); color: var(--text-2); }
.stage.SAVED { background: var(--brand-soft); color: var(--brand-text); }
.stage.CONTACTED, .stage.INTERVIEW { background: var(--info-soft); color: var(--info); }
.stage.BACKGROUND_CHECK, .stage.OFFER { background: var(--violet-soft); color: var(--violet); }
.stage.ONBOARDING, .stage.HIRED { background: var(--ok-soft); color: var(--ok); }
.stage.REJECTED, .stage.WITHDRAWN { background: var(--bad-soft); color: var(--bad); }

/* ------------------------------------------------------------- tabel */

.table-wrap { overflow-x: auto; border-radius: var(--r-l); }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; }
table.t th {
  text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); padding: 10px 12px;
  background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0;
}
table.t th.sortable { cursor: pointer; user-select: none; }
table.t th.sorted { color: var(--text); }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover td { background: var(--row-hover); }
table.t tr.sel td { background: var(--row-sel); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t.compact td, table.t.compact th { padding: 6px 8px; font-size: 13px; }
.score-how > summary { color: var(--brand, inherit); }
.cand-cell { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--brand-soft); color: var(--brand-text); flex: none;
}
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.cand-name { font-weight: 650; }
.cand-sub { font-size: 12px; color: var(--muted); }
/* build 2026-10-21.1: ringkasan profil karier (2 baris) & tanda kelengkapan profil di daftar kandidat */
.cand-summary { font-size: 12px; color: var(--text-2); max-width: 460px; white-space: normal; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 2px; line-height: 1.35; }
.cmp-summary { max-width: 280px; white-space: normal; color: var(--muted); margin: 4px 0; font-weight: 400; }
.profile-summary { margin-top: 6px; max-width: 760px; line-height: 1.45; }
.filters-more { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }

/* ------------------------------------------------------------- toolbar & filter */

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .search-box { flex: 1 1 260px; max-width: 360px; }
.toolbar select { width: auto; min-width: 140px; }
.toolbar > input { width: auto; flex: 0 1 170px; min-width: 110px; }
.toolbar > input[type=number] { flex-basis: 120px; }
.bulkbar {
  position: sticky; bottom: 16px; margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  background: var(--text); color: #fff; border-radius: var(--r-pill); padding: 8px 10px 8px 18px; box-shadow: var(--shadow-3);
  z-index: 15;
}
.bulkbar .btn { height: 30px; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }

/* ------------------------------------------------------------- daftar & feed */

.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.feed-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--brand); flex: none; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty > .ico { width: 40px; height: 40px; color: var(--line-strong); margin-bottom: 8px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }

.attn { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-2); align-items: flex-start; }
.attn + .attn { margin-top: 8px; }
.attn.warn { background: var(--warn-soft); }
.attn.error { background: var(--bad-soft); }
.attn.info { background: var(--info-soft); }
.attn.ok { background: var(--ok-soft); }

/* ------------------------------------------------------------- kartu kandidat (hasil pencarian) */

.ccard { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--r-l); background: var(--surface); align-items: start; }
.ccard + .ccard { margin-top: 10px; }
.ccard:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.ccard .scores { display: flex; gap: 14px; align-items: flex-start; }
.ccard .scorebox { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; }
.ccard .scorebox .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.match-list { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; margin-top: 8px; }
.match-list .m { color: var(--ok); }
.match-list .g { color: var(--warn); }
.match-list .g.bad { color: var(--bad); }

/* ------------------------------------------------------------- progres */

.progress { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; position: relative; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--grad-a), var(--brand-strong)); border-radius: 4px; transition: width .4s; }
.progress.running > i { min-width: 6px; }
.progress.running::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: sweep 1.4s ease-in-out infinite;
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .progress.running::after, .skel { animation: none !important; } }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.skel { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%;
  animation: skel 1.2s infinite; border-radius: 8px; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ------------------------------------------------------------- unggah */

.drop {
  border: 2px dashed var(--line-strong); border-radius: var(--r-l); padding: 34px 20px; text-align: center;
  background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-wash); }
.drop > .ico { width: 42px; height: 42px; color: var(--brand-strong); }
.filerow { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.filerow:last-child { border-bottom: 0; }
.dupcard { border: 1px solid var(--dup-line); background: var(--dup-bg); border-radius: var(--r-m); padding: 12px 14px; margin-top: 8px; }

/* ------------------------------------------------------------- kanban */

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.lane { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-l); display: flex; flex-direction: column; min-height: 320px; }
.lane.over { border-color: var(--brand); background: var(--brand-wash); }
.lane-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-weight: 650; font-size: 13px; }
.lane-body { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 8px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px; cursor: grab; box-shadow: var(--shadow-1); }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: .5; }

/* ------------------------------------------------------------- penilaian */

.dimrow { display: grid; grid-template-columns: 150px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.chart-fit { width: 100%; min-width: 0; }
.dimbar { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.dimbar i { display: block; height: 100%; border-radius: 4px; }
.req-item { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.req-item:last-child { border-bottom: 0; }
.req-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.req-ico.MET { background: var(--ok-soft); color: var(--ok); }
.req-ico.PARTIAL { background: var(--warn-soft); color: var(--warn); }
.req-ico.NOT_MET { background: var(--bad-soft); color: var(--bad); }
.req-ico.NO_EVIDENCE { background: var(--surface-3); color: var(--muted); }
.req-ico.sm { width: 18px; height: 18px; font-size: 11px; display: inline-grid; vertical-align: middle; flex: none; }
.quote { border-left: 3px solid var(--line-strong); padding: 4px 10px; color: var(--text-2); font-size: 13px; margin-top: 6px; background: var(--surface-2); border-radius: 0 8px 8px 0; }
.quote.unverified { border-left-color: var(--warn); }
input[readonly] { background: var(--surface-2); color: var(--text-2); cursor: default; }
.dimgrid { display: grid; grid-template-columns: minmax(120px, max-content) auto minmax(80px, 1fr) 32px; gap: 8px 12px; align-items: center; font-size: 13px; }
.dimgrid .dl { min-width: 0; line-height: 1.3; }
.dimgrid .dw { font-size: 12px; color: var(--muted); text-align: right; }
.dimgrid .ds { text-align: right; }
.dimgrid .ds.muted { color: var(--muted); font-weight: 600; }
.band-chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); color: #fff; background: var(--surface-3); }
.band-chip.EXCELLENT { background: var(--b-excellent); }
.band-chip.STRONG { background: var(--b-strong); }
.band-chip.GOOD { background: var(--b-good); }
.band-chip.MODERATE { background: var(--b-moderate); }
.band-chip.LOW { background: var(--b-low); }

/* profil kandidat: kepala dengan skor & aksi; tata letak mengikuti LEBAR WADAH (halaman penuh vs panel samping) */
.profile { container-type: inline-size; container-name: profile; }
.assess { container-type: inline-size; container-name: assess; }
.prof-head .scorebox { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.prof-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
@container profile (max-width: 1000px) {
  .g-side { grid-template-columns: minmax(0, 1fr); }
}
@container assess (max-width: 600px) {
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .dimgrid { grid-template-columns: minmax(0, 1fr) auto minmax(60px, 34%) 30px; }
}
.elig { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-m); }
.elig.QUALIFIED { background: var(--ok-soft); color: var(--ok); }
.elig.NOT_QUALIFIED { background: var(--bad-soft); color: var(--bad); }
.elig.NEEDS_REVIEW { background: var(--warn-soft); color: var(--warn); }

/* ------------------------------------------------------------- profil */

.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 14px; }
.tl-item::before { content: ""; position: absolute; left: -18px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.stepper { display: flex; gap: 0; overflow-x: auto; }
.step { flex: 1 1 0; min-width: 92px; text-align: center; position: relative; padding-top: 22px; font-size: 11px; color: var(--muted); font-weight: 600; }
.step::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 3px; background: var(--line); }
.step:first-child::before { left: 50%; }
.step:last-child::before { right: 50%; }
.step i { position: absolute; top: 0; left: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); z-index: 1; }
.step.done { color: var(--text); }
.step.done::before { background: var(--brand); }
.step.done i { background: var(--brand); border-color: var(--brand); }
.step.now i { border-color: var(--brand-strong); background: #fff; box-shadow: 0 0 0 4px var(--brand-ring); }
.step.exit i { border-color: var(--bad); background: var(--bad); }
.stepper.vertical { flex-direction: column; overflow: visible; }
.stepper.vertical .step { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; padding: 0 0 10px 28px; font-size: 12.5px; }
.stepper.vertical .step::before { top: 0; bottom: 0; left: 8px; right: auto; width: 3px; height: auto; }
.stepper.vertical .step:first-child::before { top: 9px; left: 8px; }
.stepper.vertical .step:last-child::before { bottom: auto; height: 9px; right: auto; }
.stepper.vertical .step i { top: 0; left: 0; }
.stepper.vertical .step .small { margin-left: auto; }

/* ------------------------------------------------------------- drawer, modal, toast */

.overlay { position: fixed; inset: 0; background: rgba(26, 26, 24, .38); z-index: 60; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(920px, 100vw); background: var(--bg); z-index: 61;
  box-shadow: var(--shadow-3); display: flex; flex-direction: column; animation: slide .2s ease-out;
}
@keyframes slide { from { transform: translateX(40px); opacity: .6; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer-body { overflow-y: auto; padding: 20px; flex: 1; }
.modal {
  position: fixed; left: 50%; top: 10vh; transform: translateX(-50%); width: min(560px, calc(100vw - 32px));
  max-height: 80vh; overflow-y: auto; background: var(--surface); border-radius: var(--r-l); z-index: 71;
  box-shadow: var(--shadow-3); animation: pop .15s;
}
.modal.wide { width: min(820px, calc(100vw - 32px)); }
@keyframes pop { from { transform: translate(-50%, 8px); opacity: 0; } }
.modal-head { padding: 18px 20px 6px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.modal-body { padding: 10px 20px 4px; }
.modal-foot { padding: 16px 20px 18px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.overlay.m { z-index: 70; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
body:has(.bulkbar:not(.hide)) .toasts { bottom: 84px; }
.toast {
  background: var(--text); color: #fff; border-radius: var(--r-m); padding: 12px 14px; box-shadow: var(--shadow-3);
  display: flex; gap: 10px; align-items: flex-start; animation: pop2 .2s; font-size: 13px;
}
@keyframes pop2 { from { transform: translateY(8px); opacity: 0; } }
.toast.bad { background: #7A1A12; }
.toast.ok { background: #135C39; }
.toast .x { margin-left: auto; background: transparent; border: 0; color: inherit; cursor: pointer; opacity: .7; font-size: 16px; }
.menu { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-2); padding: 6px; z-index: 80; min-width: 200px; }
.menu button { display: flex; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; font: inherit; cursor: pointer; gap: 8px; align-items: center; }
.menu button:hover { background: var(--surface-2); }
.menu button.danger { color: var(--bad); }
.menu button.danger:hover { background: var(--bad-soft); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.tip { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; border: 0; padding: 0;
  vertical-align: 1px; font-family: var(--font); }
.tip:hover, .tip[aria-expanded="true"] { background: var(--brand-soft); color: var(--tip-ink); box-shadow: 0 0 0 1px var(--brand); }
.tip:focus-visible, .req-ico[data-tip]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* area ketuk lebih besar di layar sentuh tanpa mengubah ukuran ikon */
.tip::after { content: ''; position: absolute; inset: -8px; }
.req-ico[data-tip] { cursor: pointer; }
.tip-pop { position: fixed; z-index: 100; max-width: min(340px, calc(100vw - 16px)); padding: 8px 11px; border-radius: 8px;
  background: var(--text); color: #fff; font-size: 12.5px; font-weight: 450; line-height: 1.45; white-space: pre-line;
  text-align: left; text-transform: none; letter-spacing: normal; box-shadow: var(--shadow-3); animation: fade .12s; }

/* ------------------------------------------------------------- grafik */

.chart { width: 100%; display: block; }
.chart text { font-family: var(--font); fill: var(--muted); font-size: 11px; }
.chart .lbl-strong { fill: var(--text); font-weight: 650; font-size: 12px; }
.chart .big-num { font-size: 22px; font-weight: 750; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.funnel-row { display: grid; grid-template-columns: 140px 1fr 64px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.funnel-bar { height: 26px; background: var(--surface-3); border-radius: 7px; overflow: hidden; }
.funnel-bar i { display: flex; align-items: center; height: 100%; padding-left: 10px; color: var(--brand-ink); font-weight: 750; font-size: 12px;
  background: linear-gradient(90deg, var(--grad-a), var(--brand)); border-radius: 7px; min-width: 28px; }
.conv { font-size: 12px; color: var(--muted); text-align: right; }

/* ------------------------------------------------------------- login */

.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: linear-gradient(160deg, var(--grad-a), var(--grad-b)); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; color: var(--brand-ink); }
.login-art h1 { font-size: 34px; line-height: 1.15; max-width: 480px; color: inherit; }   /* tinta panel = --brand-ink (tema unit) */
.login-art .flow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.login-art .flow span { background: var(--on-brand-chip); padding: 6px 12px; border-radius: var(--r-pill); font-weight: 650; font-size: 13px; }
.login-form { display: grid; place-items: center; padding: 32px; }
.login-form .card { width: min(400px, 100%); padding: 28px; }
.login-unit { margin-top: 14px; text-align: center; }

/* ------------------------------------------------------------- wizard */

.wizard { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.wstep { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--muted); font-weight: 650; font-size: 13px; }
.wstep b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--muted); font-size: 12px; }
.wstep.on { background: var(--text); color: #fff; }
.wstep.on b { background: var(--brand); color: var(--brand-ink); }
.wstep.done { background: var(--brand-soft); color: var(--brand-text); }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice button {
  text-align: left; border: 2px solid var(--line); background: var(--surface); border-radius: var(--r-l); padding: 18px;
  cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 6px; transition: border-color .12s, box-shadow .12s;
}
.choice button:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.choice button.on { border-color: var(--brand); background: var(--choice-on); }
.choice .ico { width: 28px; height: 28px; color: var(--brand-strong); }

.req-edit { display: grid; grid-template-columns: 1fr 150px 130px 34px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.req-edit.excluded { opacity: .6; }
.weights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

/* ------------------------------------------------------------- responsif */

/* ---------------------------------------------------------------- notifikasi */
.bell { position: relative; }
.bell-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--bad); color: var(--surface); font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.notif-list { max-height: 60vh; overflow-y: auto; }
.notif-item {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: transparent; border: 0;
  border-bottom: 1px solid var(--line); padding: 10px 4px; font: inherit; color: inherit; cursor: pointer; border-radius: var(--r-s);
}
.notif-item:hover { background: var(--surface-2); }
.notif-item .dot { margin-top: 6px; }
.notif-item.unread .notif-title { font-weight: 700; }
.notif-item:not(.unread) { opacity: .78; }
.sev-bad { color: var(--bad); } .sev-warn { color: var(--warn); } .sev-ok { color: var(--ok); } .sev-info { color: var(--info); }
.attn.click { cursor: pointer; }
.txt-bad { color: var(--bad); font-weight: 650; }
.txt-ok { color: var(--ok); }
.txt-warn { color: var(--warn); font-weight: 650; }

/* ---------------------------------------------------------------- transfer lowongan */
.check-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px; }
.check-row { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: var(--r-s); cursor: pointer; }
.check-row:hover { background: var(--surface-2); }
.check-row.off { opacity: .6; cursor: not-allowed; }
.check-row input { width: auto; }
/* antrean tinjau cepat */
.review-bar { margin-bottom: 12px; gap: 10px; }
.review-card { max-width: 880px; }
.review-card .progress { width: 180px; }
.review-actions { gap: 8px; }
.review-reasons { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px; border: 1px solid var(--line-strong);
  font-size: 11px; font-family: var(--mono, monospace); color: var(--text-2); background: var(--surface); margin-left: 4px; }
.card.focus { box-shadow: 0 0 0 2px var(--brand), var(--shadow-2); }
.tl { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.tl-row { display: flex; gap: 12px; padding: 6px 0; position: relative; }
.tl-row::before { content: ''; position: absolute; left: 5px; top: 20px; bottom: -6px; width: 2px; background: var(--line); }
.tl-row:last-child::before { display: none; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: none; background: var(--ok); }
.tl-row.bad .tl-dot { background: var(--bad); }
.tl-row.wait .tl-dot { background: var(--surface); border: 2px dashed var(--warn); }
.tl-note { margin-top: 3px; padding: 6px 10px; background: var(--surface-2); border-radius: var(--r-s); white-space: pre-wrap; }

/* ---------------------------------------------------------------- outreach */
.outreach-text { width: 100%; min-height: 260px; font-family: var(--font); line-height: 1.55; }
.outreach-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------------------------------------------------------------- panduan (tur) */
.tour-shade { position: fixed; inset: 0; z-index: 95; background: rgba(26, 26, 24, .55); }
.tour-shade.clear { background: transparent; }
.tour-spot {
  position: fixed; z-index: 96; border-radius: var(--r-m); pointer-events: none;
  box-shadow: 0 0 0 3px var(--brand), 0 0 0 9999px rgba(26, 26, 24, .55); transition: all .2s ease;
}
.tour-pop {
  position: fixed; z-index: 97; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-3);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; width: 380px; max-width: calc(100vw - 24px);
}
.tour-pop:focus:not(:focus-visible) { outline: none; }
.tour-pop.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(480px, calc(100vw - 24px)); }
.tour-head { gap: 10px; align-items: center; }
.tour-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; }
.tour-text { color: var(--text-2); line-height: 1.6; }
.tour-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.tour-dots i.done { background: var(--brand-strong); opacity: .5; }
.tour-dots i.on { background: var(--brand-strong); width: 18px; border-radius: var(--r-pill); }
.guide-n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font-weight: 750; flex: none; }
.guide-step .row { gap: 14px; }

@media (max-width: 1180px) {
  .g4, .g5, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main, .g-side { grid-template-columns: minmax(0, 1fr); }
  .weights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .shell.open .side { transform: none; box-shadow: var(--shadow-3); }
  .shell.collapsed .nav-text, .shell.collapsed .nav-label, .shell.collapsed .brand-text, .shell.collapsed .nav a.sub { display: initial; }
  .topbar { padding: 0 12px; gap: 6px; }
  .topbar .nav-text { display: none; }
  .topbar .crumbs { overflow: hidden; }
  .topbar .crumbs > :not(.here):not(:last-child) { display: none; }
  .content { padding: 16px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-logo { display: flex; }
  .choice { grid-template-columns: 1fr; }
  .req-edit { grid-template-columns: 1fr 1fr; }
  .req-edit > :first-child { grid-column: 1 / -1; }
  .ccard { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 100px 1fr 70px; }
  .dimrow { grid-template-columns: 110px 1fr 34px; }
}
@media (max-width: 560px) {
  .g4, .g5, .g6 { grid-template-columns: minmax(0, 1fr); }
  .kpi .val { font-size: 22px; }
  .page-head { align-items: flex-start; }
}

/* ------------------------------------------------------------- cetak */

@media print {
  .side, .topbar, .toolbar, .btn, .bulkbar, .no-print { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* Daftar tanpa butir bawaan (penanda +/− ditulis di teks). */
.plain-list { list-style: none; margin: 0; padding: 0; }

/* ------------------------------------------------------------- interview, hasil tahap, background check (A7–A9) */

.iv-item { border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); }
.iv-item.off { opacity: .6; background: var(--surface-2); }
.iv-item .ico { width: 14px; height: 14px; vertical-align: -2px; }
.iv-pick { max-height: 220px; overflow-y: auto; }
.comp-grid { display: flex; flex-direction: column; gap: 6px; }
.comp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.res-row { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.bgc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.bgc-item { min-width: 0; }
.bgc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; align-items: start; }
.bgc-fields textarea { grid-column: 1 / -1; min-height: 34px; }
.bgc-fields select, .bgc-fields input { height: 32px; font-size: 13px; }
.fit-explain { border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: var(--r-s); padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.btn.on-ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.btn.on-bad { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.btn.xs.icon { width: 28px; }
@media (max-width: 900px) {
  .bgc-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---- proses UREQ 2023: persetujuan, screening, OL, dokumen, onboarding, data pelamar, tugas (screens-process.js) */
/* 27.21 (P2 #18 uji live: form approver mepet): jarak antarbaris 10 px, antarapprover 14 px dengan garis pemisah */
.apv-edit { display: grid; grid-template-columns: 22px minmax(0, 1.3fr) minmax(0, 1fr) 30px; gap: 10px; align-items: center; }
.apv-edit2 { margin-top: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.apv-row { align-items: flex-start; gap: 10px; }
.apv-row .grow { min-width: 0; }
.apv-name { overflow-wrap: anywhere; }
.apv-n { min-width: 18px; color: var(--muted); }
.apv-hist summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.apv-hist .stack-s { padding: 8px 0 0 10px; border-left: 2px solid var(--line); }
.scr-edit { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1fr) auto 30px; gap: 6px; align-items: center; }
.scr-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.doc-list { display: flex; flex-direction: column; }
.doc-row { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.doc-row .ico { width: 14px; height: 14px; }
.kv { display: grid; gap: 6px; }
.kv-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.todo-item { color: inherit; text-decoration: none; align-items: center; }
.todo-item:hover { background: var(--surface-2); }
.todo-ico .ico { color: var(--brand); }
@media (max-width: 900px) {
  .scr-edit, .apv-edit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ------------------------------------------------------------- paket A & B (build 2026-10-16.6) */

/* paket interview (2.4) */
.kit-sec { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.kit-sec:first-child { border-top: 0; padding-top: 0; }
.kit-q { display: flex; flex-direction: column; gap: 3px; padding-left: 4px; }
.kit-good { color: var(--ok); }
.kit-flag { color: var(--bad); }
.kit-good .ico, .kit-flag .ico { width: 13px; height: 13px; vertical-align: -2px; }

/* bandingkan kandidat (2.6) */
.cmp-wrap { overflow-x: auto; }
.t.cmp { table-layout: fixed; min-width: 720px; }
.t.cmp th { white-space: normal; overflow-wrap: anywhere; }   /* label butir requirement panjang & nama perusahaan tidak menimpa kolom sebelah */
.t.cmp th:first-child { width: 220px; position: sticky; left: 0; background: var(--surface); z-index: 1; text-align: left; }
.t.cmp thead th { vertical-align: bottom; }
.t.cmp td { vertical-align: top; }
.cmp-sec th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cmp-best { background: var(--ok-soft); font-weight: 650; }
/* build 22.2: bilah nama + skor tetap terlihat saat digulir (halaman Bandingkan) */
.cmp-sticky { position: sticky; top: var(--top-h); z-index: 6; height: 0; overflow: visible; pointer-events: none; }
.cmp-sticky .cmp-sticky-in { display: none; }
.cmp-sticky.show { height: 48px; margin-bottom: -48px; overflow: hidden; pointer-events: auto; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1); border-radius: var(--r-l) var(--r-l) 0 0; }
.cmp-sticky.show .cmp-sticky-in { display: grid; min-width: 720px; }
.cmp-sticky-cell { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; min-width: 0; font-weight: 600; font-size: 13px; }
.cmp-sticky-cell a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-list { margin: 0; padding-left: 16px; font-size: 12.5px; }

/* cari di database kandidat (1.1) */
.match-list { max-height: 420px; overflow-y: auto; }
.match-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.match-row input { margin-top: 4px; }
.match-score { min-width: 36px; text-align: center; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--surface-2); }

/* titik macet (4.8) */
.bn-worst { color: var(--bad); font-weight: 700; }

@media print {
  .cmp-wrap { overflow: visible; }
  .t.cmp th:first-child { position: static; }
  .kit-sec { break-inside: avoid; }
}

/* ------------------------------------------------------------- umpan balik Head of HC P1 (build 2026-10-16.8) */
/* kamus metrik (P1-2): ikon ⓘ dengan definisi, rumus, sumber */
.metric-lbl { display: inline-flex; align-items: center; gap: 2px; }
.metric-info { display: inline-flex; color: var(--muted); cursor: pointer; vertical-align: -2px; }
.metric-info:hover, .metric-info[aria-describedby] { color: var(--brand-strong); }
.metric-info .ico { width: 13px; height: 13px; }
.metric-info:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 50%; }
/* antrean "Tinjau berikutnya" (P1-6) */
.review-next .list-item { gap: 10px; text-decoration: none; color: inherit; }
.review-next .list-item:hover { background: var(--surface-2); }
/* build 2026-10-16.9 — umpan balik Head of HC rilis 2 */
.click { cursor: pointer; }
.list-item.click:hover, .ccard.click:hover, .cal-item.click:hover { background: var(--surface-2); }
.click:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.stamp { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.stamp .ico { width: 13px; height: 13px; }
.stamp.stale { color: var(--warn, #B7791F); }
.empty.guide { text-align: left; max-width: 640px; margin: 0 auto; }
.empty.guide h3, .empty.guide > .ico { display: block; text-align: center; margin-left: auto; margin-right: auto; }
.empty.guide > p { text-align: center; }
.guide-points { margin: 10px 0 0 18px; color: var(--text); font-size: 13px; line-height: 1.7; }
.guide-actions { justify-content: center; margin-top: 14px; gap: 8px; }
.form-grid > .check-row.full { grid-column: 1 / -1; }
.field-tool { float: right; font-weight: 400; }
textarea.locked, input.locked { background: var(--surface-2); color: var(--muted); }
.chart .lbl-tight { font-size: 9px; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-day { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 140px; display: flex; flex-direction: column; gap: 6px; }
.cal-day.today { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.cal-item { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 12px; background: var(--surface); min-width: 0; }
.cal-item.cancelled { opacity: .55; text-decoration: line-through; }
.cal-free { padding: 4px 0; }
@media (max-width: 1180px) { .cal-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cal-week { grid-template-columns: 1fr; } .cal-day { min-height: 0; } }
.cal-nav { gap: 8px; }

/* ---------------------------------------------------------------- penilaian v3 (keputusan TA) */
.judge { border-left: 4px solid var(--violet); }
.judge .req-item { padding: 8px 0; }
.judge details summary { color: var(--muted); }

/* build 2026-10-22.1: alur tahap pencarian (requirement "Dynamic Candidate Pipeline") */
.stage-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.stage-step { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface, #fff); min-width: 0; }
.stage-num { font-size: 22px; font-weight: 700; margin: 2px 0; }
@media (max-width: 900px) { .stage-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* build 22.3: bilah proses global (permintaan ke server sedang ditunggu) */
.netbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 40%, var(--brand) 60%, transparent 100%); background-size: 40% 100%; background-repeat: no-repeat; }
.netbar.on { opacity: 1; animation: netbar 1.1s ease-in-out infinite; }
@keyframes netbar { 0% { background-position: -40% 0; } 100% { background-position: 140% 0; } }
body.net-busy { cursor: progress; }
@media (prefers-reduced-motion: reduce) { .netbar.on { animation: none; background: var(--brand); opacity: .6; } }

/* build 22.3: pilihan kelompok (asal perusahaan / universitas / industri), kelompok kriteria tambahan, kartu Bandingkan */
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-size: 12.5px; cursor: pointer; }
.chip-check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft, var(--surface-2)); }
.weight-custom input[type="text"] { margin-bottom: 6px; }
.cmp-card { overflow: visible; }

/* build 22.5: fakta kandidat di bawah nama (perbankan, usia, jenis kelamin) — chip berikon, nilai tebal, warna sesuai syarat */
.fact { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12px; line-height: 20px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); white-space: nowrap; }
.fact svg { width: 13px; height: 13px; flex: none; opacity: .8; }
.fact .fact-k { color: var(--muted); }
.fact b { font-weight: 700; }
.fact .fact-t { color: inherit; opacity: .85; }
/* FB-07: keterangan panjang ("… — pastikan saat screening") boleh turun baris di kartu sempit, tidak meluber keluar kartu */
.fact { max-width: 100%; }
.fact .fact-t { white-space: normal; min-width: 0; }
/* GP 13 Nov 2026: bila tetap tidak muat, keterangan turun utuh ke baris kedua DI DALAM chip (tidak terpotong/meluber keluar) */
.fact { flex-wrap: wrap; column-gap: 4px; row-gap: 0; border-radius: 12px; padding-right: 8px; }
.fact.bank { background: var(--info-soft); border-color: transparent; color: var(--info); }
.fact.bank .fact-k { color: inherit; opacity: .8; }
.fact.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.fact.warn { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.fact.unknown { background: transparent; border-style: dashed; color: var(--muted); }
.fact.ok .fact-k, .fact.warn .fact-k { color: inherit; opacity: .8; }

/* build 22.5: saran isian (keahlian, jurusan) & jenjang pendidikan */
.sug-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip-btn { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.chip-btn svg { width: 12px; height: 12px; }
.chip-btn:hover { background: var(--surface-2); }
.chip-btn.on { background: var(--brand-soft); border-color: var(--brand); font-weight: 600; }
.chip-btn.sug { border-style: dashed; color: var(--text-2); }
.chip-btn:disabled { opacity: .55; cursor: not-allowed; }
.stack-s.locked .chips { background: var(--surface-2); }

/* build 22.5: Top 3 kandidat */
.card.top3 { padding: 14px 16px; margin-bottom: 12px; border-color: var(--brand); }
.top3-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (max-width: 900px) { .top3-grid { grid-template-columns: 1fr; } }
.top3-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.top3-rank { display: inline-block; font-weight: 700; color: var(--brand-strong); margin-right: 6px; }
.top3-name { font: inherit; font-weight: 700; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.top3-name:hover { color: var(--brand-strong); text-decoration: underline; }
.top3-score { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.top3-score b { font-size: 22px; line-height: 1; color: var(--brand-strong); }
.top3-score span { white-space: nowrap; }      /* uji live 23 Okt: label skor terlipat di kartu sempit */
/* build 23.4: peringkat di daftar kandidat (lanjutan Top 3) — build 27.15: skor AI; batang faktor skor pilihan dihapus */
.pick-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pick-rank { font-size: 15px; color: var(--brand-strong); }
.ok-t { color: var(--ok); }
.warn-t { color: var(--warn); }

/* ---------------------------------------------------------------- Pengaturan (build 2026-10-27.10) */
.set-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; }
.set-nav ul { display: flex; flex-direction: column; gap: 2px; }
.set-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: var(--r-m); background: transparent; color: inherit; cursor: pointer; font: inherit; }
.set-nav-item:hover { background: var(--surface-2); }
.set-nav-item.on { background: var(--brand-soft); color: var(--brand-text); font-weight: 650; }
.set-nav-item .ico { flex: none; }
.dot-changed { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.set-head h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.set-list { display: flex; flex-direction: column; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 24px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row.pending { background: var(--warn-soft); }
.set-row.err { box-shadow: inset 3px 0 0 var(--bad); }
.set-label b { font-weight: 650; }
.set-ctl { min-width: 0; }
.set-ctl input[type=number] { max-width: 160px; }
.set-hist { grid-column: 1 / -1; }
.set-adv > summary { cursor: pointer; padding: 14px 18px; font-weight: 650; }
.set-adv[open] > summary { border-bottom: 1px solid var(--line); }
.set-bar { position: sticky; bottom: 12px; z-index: 20; margin-top: 16px; }
.set-bar-in { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-m); background: var(--bar-dark); color: #fff; box-shadow: var(--shadow-3); }
.set-bar-in .btn.ghost { color: #fff; }
.switch-row { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 40px; height: 22px; border-radius: 11px; background: var(--surface-3, #ddd); position: relative; transition: background .15s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .15s; }
.switch-row input:checked + .switch { background: var(--ok); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--brand); outline-offset: 2px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 8px; }
.map-grid { display: flex; flex-direction: column; gap: 6px; }
.map-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; align-items: center; }
.tree { display: flex; flex-direction: column; gap: 6px; }
.tree.nested { padding-left: 10px; border-left: 2px solid var(--line); }
.tree-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
.tree-row.block { grid-template-columns: 1fr auto; }
.tree-row.block > .tree-key { grid-column: 1 / -1; font-weight: 600; }
.tree-row.block > .tree { grid-column: 1 / 2; }
.tree-key { font-size: 13px; }
.tree-item { padding: 10px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface-2); }
@media (max-width: 900px) {
  .set-layout { grid-template-columns: 1fr; }
  .set-side { position: static; }
  .set-nav ul { flex-direction: row; flex-wrap: wrap; }
  .set-nav-item { width: auto; }
  .set-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Yang baru di TAP (build 2026-10-27.10) */
.wn-list { display: flex; flex-direction: column; gap: 14px; }
.wn-item { display: flex; gap: 12px; align-items: flex-start; }
.wn-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; }
.wn-rel + .wn-rel { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.wn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block; margin-left: 6px; }
.set-main { min-width: 0; }
/* build 2026-10-27.13 */
.warn-text { color: var(--warn); }
.score-wait { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.score-wait .lbl-wait { font-size: 12px; color: var(--muted); }
.form-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-note.warn { color: var(--warn); }

/* ---------------------------------------------------------------- pilihan berkelompok (build 2026-10-27.16, GP 30 Okt) */
/* build 27.24: ikon lihat/sembunyikan password */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap > input { width: 100%; padding-right: 40px; }
.pw-tg { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.pw-tg:hover { background: var(--line); color: var(--text); }
.pw-tg:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.login-forgot summary { cursor: pointer; color: var(--brand-strong); width: max-content; }
.login-forgot p { margin-top: 6px; line-height: 1.5; }
.picker { position: relative; display: block; width: 100%; }
.picker > input { width: 100%; padding-right: 34px; }
.picker-tg { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; background: none;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.picker-tg:hover { background: var(--line); color: var(--text); }
.picker-pop { position: fixed; z-index: 85; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-2); overflow-y: auto; padding: 4px 0; }
.picker-head { position: sticky; top: -4px; background: var(--surface); padding: 6px 12px 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-top: 1px solid var(--line); }
.picker-head:first-child { border-top: 0; }
.picker-opt { padding: 6px 12px; cursor: pointer; }
.picker-opt:hover, .picker-opt.active { background: var(--brand-soft); }
.picker-opt.sel .picker-name { font-weight: 700; color: var(--brand-strong); }
.picker-empty { padding: 8px 12px; }

/* build 2026-10-27.20 (GP 2 Nov): kepala lowongan ringkas + angka utama; daftar kandidat: satu baris alat + panel Filter; satu kotak "Yang perlu dicek" */
.page-head.vh { align-items: flex-start; flex-wrap: nowrap; }
.page-head.vh .vh-main { min-width: 0; }
.vh-actions { flex: 0 0 auto; gap: 8px; }
.vh-people { align-items: center; margin-top: 4px; }
.vh-more summary { cursor: pointer; color: var(--brand-strong); display: inline; }
.vh-more[open] { display: block; width: 100%; }
.vh-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.vh-stat { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.vh-stat b { font-size: 16px; }
.vh-stat span { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .page-head.vh { flex-wrap: wrap; } .page-head.vh .vh-actions { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; } .cl-toolbar { flex-wrap: wrap; } .cl-toolbar .search-box { flex-basis: 100%; } }
.cl-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.cl-toolbar .search-box { flex: 1 1 auto; max-width: none; }
.cl-toolbar select { width: auto; min-width: 170px; }
.cl-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.cl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 10px; border-radius: 999px; background: var(--brand-soft); border: 1px solid var(--line); font-size: 13px; }
.cl-chip button { border: 0; background: none; cursor: pointer; padding: 0 2px; color: var(--muted); line-height: 1; }
.cl-panel { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: var(--surface); }
.cl-panel .filter-grid { flex: 1 1 100%; width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.cl-panel .filter-grid label.fl { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.cl-panel .filter-grid select { width: 100%; min-width: 0; }
.cl-panel .filter-grid label.fl[hidden] { display: none; }
.cl-groups { margin-bottom: 10px; }
.top3-mini { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.top3-mini button.top3-name { font-weight: 600; }
.checks .checks-list { margin: 6px 0 0; padding-left: 18px; }
.checks .checks-list li + li { margin-top: 4px; }
.fit-explain details summary { cursor: pointer; color: var(--brand-strong); }
.txt-brand { color: var(--brand-strong); }

/* 27.21 (P2 #19): satu kotak keterangan dengan "Selengkapnya" */
.more-info { margin-top: 6px; }
.more-info summary { cursor: pointer; color: var(--brand-strong); }
.more-info .stack-s { margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--line); }

/* 27.21 (uji live: tabel kandidat terpotong di kanan pada layar 1470 px — lebar 1.672 px): kolom panjang boleh membungkus */
table.cand-table .cand-cell { max-width: 330px; }
table.cand-table .cand-summary { max-width: 300px; }
table.cand-table td { padding-left: 10px; padding-right: 10px; }
table.cand-table td .badge { white-space: normal; height: auto; min-height: 22px; padding-top: 2px; padding-bottom: 2px; line-height: 1.3; }
table.cand-table td .row.wrap { max-width: 210px; }
table.cand-table th { white-space: normal; line-height: 1.25; }
table.cand-table td:nth-child(n) .row.wrap { min-width: 150px; }
table.cand-table .cand-cell { min-width: 240px; }
/* GP 13 Nov 2026 ("Usia ± 39 th sesuai syarat 22–40 th jadi 2 baris … berantakan"): baris fakta kandidat (perbankan, usia, jenis
   kelamin) memakai lebar kolom Kandidat — batas 210 px di atas untuk kolom lain membuat chip terlipat & keterangan keluar dari chip */
table.cand-table td .row.wrap[data-testid="bank-age"] { max-width: none; min-width: 0; }
table.cand-table .cand-cell:has([data-testid="bank-age"]) { max-width: 360px; }     /* chip terpanjang ("Wanita (perkiraan) sesuai syarat") muat satu baris */

/* FB-15 (keputusan GP 10 Nov 2026): "Penilaian AI ini tepat?" di kepala profil — terlihat sejak dibuka, tidak menghalangi aksi */
.fb-ask { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--brand); border-radius: var(--r-md, 10px); background: var(--brand-soft, var(--surface-2)); }
.fb-ask.done { border-color: var(--line); background: var(--surface-2); padding: 8px 12px; }
.fb-ask .fb-ask-req { color: var(--brand); font-weight: 600; }
.fb-ans.on[data-answer="FIT"] { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.fb-ans.on[data-answer="TOO_HIGH"], .fb-ans.on[data-answer="TOO_LOW"] { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.fb-ask-chips { margin-top: 2px; }
.fb-ask-text { width: 100%; max-width: 520px; }

/* D-022 Persiapan unit (screens-unit.js) */
.unit-top { margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.unit-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.unit-steps ol { display: flex; flex-direction: column; gap: 4px; }
.unit-step { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.unit-step:hover { border-color: var(--line-strong); }
.unit-step.on { border-color: var(--brand); background: var(--choice-on); }
.unit-step.done .unit-step-ico { background: var(--ok-soft, #E7F6EC); color: var(--ok); }
.unit-step-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.unit-step-ico .ico { width: 16px; height: 16px; }
.unit-step-text { display: flex; flex-direction: column; min-width: 0; }
.unit-step-text .req { color: var(--bad); margin-left: 2px; }
.unit-main { min-width: 0; }
.unit-swatch { --unit-c: var(--brand); display: flex; align-items: center; padding: 8px; border: 1px dashed var(--line-strong); border-radius: var(--r-m); }
.unit-swatch .btn.primary { background: var(--unit-c); border-color: var(--unit-c); }
.unit-upl { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.unit-upl input[type=file] { max-width: 100%; }
.unit-prev { max-width: 220px; max-height: 80px; object-fit: contain; background: var(--surface-2); border-radius: var(--r-m); padding: 6px; }
.unit-prev.mark { width: 64px; height: 64px; }
.unit-choice { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-m); cursor: pointer; }
.unit-choice:has(input:checked) { border-color: var(--brand); background: var(--choice-on); }
@media (max-width: 900px) { .unit-layout { grid-template-columns: 1fr; } }

.unit-note { padding: 10px 12px; border-radius: var(--r-m); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.unit-note.warn { background: var(--warn-soft, #FFF4E0); border-color: var(--warn); }
.unit-note ul { margin: 6px 0 0; padding-left: 18px; }
