/* Portal Kandidat — PT. Marine Cruise Indonesia */
:root {
  --navy: #06275a;
  --navy-2: #0b3a80;
  --ocean: #1557b8;
  --ocean-soft: #e8f1fb;
  --gold: #e8b04a;
  --ink: #15202e;
  --ink-2: #4a5768;
  --ink-3: #7b8796;
  --line: #e2e7ee;
  --bg: #f3f6fa;
  --card: #ffffff;
  --ok: #138a5e;
  --ok-soft: #e6f5ee;
  --warn: #b26a00;
  --warn-soft: #fff4e0;
  --bad: #c0352b;
  --bad-soft: #fdecea;
  --info: #1d6fb8;
  --info-soft: #e8f1fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 56, .06), 0 4px 16px rgba(16, 32, 56, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--ocean); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; color: var(--ink); }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--ink-3); }
.hidden { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px;
  padding: 10px 16px; font: 600 14px/1.2 var(--font); cursor: pointer; background: var(--navy); color: #fff; transition: .15s; white-space: nowrap; }
.btn:hover { background: var(--navy-2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.secondary:hover { background: #f5f8fc; border-color: #cbd5e1; }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: #eef2f7; }
.btn.ok { background: var(--ok); } .btn.ok:hover { background: #0f7550; }
.btn.danger { background: #fff; color: var(--bad); border-color: #f1c4c0; } .btn.danger:hover { background: var(--bad-soft); }
.btn.wa { background: #1fa855; } .btn.wa:hover { background: #188c46; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.lg { padding: 13px 20px; font-size: 15px; }

label.f { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
label.f .req { color: var(--bad); margin-left: 2px; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 12px; border: 1px solid #cfd8e3; border-radius: 10px; background: #fff; color: var(--ink);
  font: 15px/1.35 var(--font); transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(29, 111, 184, .15); }
.input.err { border-color: var(--bad); background: #fffafa; }
.ferr { color: var(--bad); font-size: 12.5px; margin-top: 5px; }
.fhelp { color: var(--ink-3); font-size: 12.5px; margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--ink-3); padding: 6px; cursor: pointer; border-radius: 6px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid .wide { grid-column: 1 / -1; }

/* ---------- cards / badges ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.kpis > .card + .card, .cols > .card + .card { margin-top: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h2, .card-h h3 { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eef2f7; color: var(--ink-2); }
.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.navy { background: var(--navy); color: #fff; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert.bad { background: var(--bad-soft); color: #8d2119; }
.alert.warn { background: var(--warn-soft); color: #7a4800; }
.alert.info { background: var(--info-soft); color: #134c80; }
.alert.ok { background: var(--ok-soft); color: #0d6345; }
.alert svg.i { margin-top: 1px; }
.empty { text-align: center; color: var(--ink-3); padding: 28px 12px; }

/* ---------- auth page ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-brand { background: linear-gradient(160deg, #06275a 0%, #0b3a80 55%, #1a5fc0 120%); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 220px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,.08), transparent 70%); border-top: 1px solid rgba(255,255,255,.12); border-radius: 50% 50% 0 0; }
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-row img { height: 44px; width: auto; }
.brand-row b { display: block; font-size: 17px; letter-spacing: .2px; }
.brand-row span { display: block; font-size: 12.5px; opacity: .75; }
.auth-logo { width: 270px; max-width: 80%; display: block; }
.auth-pill { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .3px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); align-self: flex-start; }
.auth-brand h1 { color: #fff; font-size: 2.1rem; margin: 40px 0 12px; max-width: 520px; letter-spacing: -.3px; }
.auth-brand .lead { opacity: .85; font-size: 16px; max-width: 480px; }
.auth-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; max-width: 460px; position: relative; z-index: 1; }
.auth-steps li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 12px 14px; }
.auth-steps .n { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; display: grid; place-items: center; flex: none; font-size: 14px; }
.auth-steps b { display: block; font-size: 14.5px; }
.auth-steps span { font-size: 13px; opacity: .8; }
.auth-foot { margin-top: auto; padding-top: 32px; font-size: 12.5px; opacity: .7; position: relative; z-index: 1; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 430px; }
.tabs { display: flex; background: #e9eef5; border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 9px; font: 600 14px var(--font); color: var(--ink-2); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.auth-card form { display: grid; gap: 14px; }
.auth-card .sub { color: var(--ink-3); margin-bottom: 20px; font-size: 14px; }
.auth-links { display: flex; justify-content: space-between; font-size: 13.5px; margin-top: 4px; }
.mobile-brand { display: none; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #cdd8e6; padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .brand-row { padding: 4px 8px 22px; color: #fff; }
.side .brand-row { flex-direction: column; align-items: flex-start; gap: 10px; }
.side .brand-row img { height: 52px; width: auto; }
.side .brand-row b { font-size: 15px; }
.nav { display: grid; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #cdd8e6; font-weight: 600; font-size: 14.5px; }
.nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.nav a.on { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav a .cnt { margin-left: auto; background: var(--gold); color: var(--navy); border-radius: 999px; font-size: 11.5px; padding: 1px 8px; font-weight: 800; }
.side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 14px 8px 0; font-size: 13px; }
.side-foot .who { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot button { margin-top: 10px; background: rgba(255,255,255,.08); color: #fff; border: 0; }
.side-foot button:hover { background: rgba(255,255,255,.15); }
.main { min-width: 0; }
.topbar { display: none; }
.page { padding: 28px 32px 60px; max-width: 1180px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-h h1 { margin: 0; }
.page-h p { margin: 4px 0 0; color: var(--ink-3); }
.bottom-nav { display: none; }

/* ---------- candidate dashboard ---------- */
.hero { background: linear-gradient(135deg, #06275a, #0e4596); color: #fff; border-radius: 18px; padding: 24px 26px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; box-shadow: var(--shadow); }
.hero h1 { color: #fff; margin: 0 0 4px; font-size: 1.5rem; }
.hero .meta { display: flex; gap: 8px; flex-wrap: wrap; opacity: .95; font-size: 13.5px; align-items: center; }
.hero .meta .badge { background: rgba(255,255,255,.14); color: #fff; }
.ring { --p: 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255,255,255,.15) 0); }
.ring > div { width: 76px; height: 76px; border-radius: 50%; background: #0a3474; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring b { font-size: 22px; } .ring span { font-size: 10.5px; opacity: .8; display: block; }
.segbar { display: flex; gap: 4px; margin-top: 16px; }
.segbar i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); }
.segbar i.done { background: var(--gold); } .segbar i.cur { background: #fff; } .segbar i.fail { background: #ff8a80; }
.dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.next { border: 2px solid var(--ocean); background: linear-gradient(180deg, #f5f9ff, #fff); }
.next .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ocean); margin-bottom: 6px; }
.next h2 { font-size: 1.3rem; margin-bottom: 6px; }
.next .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.sched { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 14px; }
.sched dt { color: var(--ink-3); } .sched dd { margin: 0; font-weight: 600; }
.note-box { background: #fffbea; border: 1px solid #f3e2a9; border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 14px; color: #5c4700; white-space: pre-line; }
.note-box b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; color: #8a6d00; }

/* steps (timeline) */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; position: relative; padding-bottom: 18px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps li.done::before { background: var(--ok); }
.dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: #fff; border: 2px solid #cfd8e3; color: var(--ink-3); position: relative; z-index: 1; }
.steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.cur .dot { background: var(--ocean); border-color: var(--ocean); color: #fff; box-shadow: 0 0 0 5px rgba(29,111,184,.18); }
.steps li.fail .dot { background: var(--bad); border-color: var(--bad); color: #fff; }
.steps .st-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 5px; }
.steps .st-h b { font-size: 15px; }
.steps li.upcoming .st-h b { color: var(--ink-2); font-weight: 600; }
.steps .who { font-size: 12px; color: var(--ink-3); }
.steps .st-d { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.steps.compact li { padding-bottom: 12px; }
.steps.compact .st-d { display: none; }
.steps.compact li.cur .st-d { display: block; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed time { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.feed .tag { font-size: 11px; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 1px 6px; margin-right: 6px; }

/* ---------- biodata wizard ---------- */
.wiz { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.wiz-nav { padding: 10px; position: sticky; top: 18px; }
.wiz-nav .prog { padding: 8px 10px 12px; }
.bar { height: 8px; background: #e6ebf2; border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--ocean), #2f9bd6); border-radius: 4px; transition: width .4s; }
.bar.ok > i { background: var(--ok); }
.wiz-nav a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.wiz-nav a:hover { background: #f2f5f9; text-decoration: none; }
.wiz-nav a.on { background: var(--ocean-soft); color: var(--navy); }
.wiz-nav .sdot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cfd8e3; display: grid; place-items: center; font-size: 11.5px; color: var(--ink-3); flex: none; background: #fff; }
.wiz-nav a.ok .sdot { background: var(--ok); border-color: var(--ok); color: #fff; }
.wiz-nav a.on .sdot { border-color: var(--ocean); color: var(--ocean); }
.wiz-nav a.ok.on .sdot { color: #fff; }
.wiz-nav .opt { margin-left: auto; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.form-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.exp-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fafbfd; position: relative; }
.exp-item + .exp-item { margin-top: 12px; }
.exp-item .rm { position: absolute; top: 10px; right: 10px; }
.chips { display: none; }

/* ---------- documents ---------- */
.doc-sum { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.doc-sum .big { font-size: 28px; font-weight: 800; color: var(--navy); }
.doc-list { display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.doc.st-ditolak { border-color: #f1c4c0; background: #fffafa; }
.doc .ic { width: 44px; height: 44px; border-radius: 10px; background: #eef2f7; display: grid; place-items: center; color: var(--ink-3); }
.doc.st-disetujui .ic { background: var(--ok-soft); color: var(--ok); }
.doc.st-menunggu .ic { background: var(--warn-soft); color: var(--warn); }
.doc.st-ditolak .ic { background: var(--bad-soft); color: var(--bad); }
.doc .t { font-weight: 700; font-size: 14.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.doc .reason { grid-column: 2 / -1; font-size: 13px; color: #8d2119; background: var(--bad-soft); border-radius: 8px; padding: 8px 10px; }
.doc .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dropzone { display: block; border: 2px dashed #c3cfdd; border-radius: 14px; padding: 26px 16px; text-align: center; color: var(--ink-2); cursor: pointer; background: #f8fafd; transition: .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--ocean); background: var(--ocean-soft); }
.dropzone input { display: none; }
.dropzone .fname { font-weight: 700; color: var(--navy); margin-top: 6px; word-break: break-all; }
.preview { margin-top: 12px; max-height: 220px; border-radius: 10px; display: block; margin-inline: auto; max-width: 100%; }
.upbar { height: 6px; background: #e6ebf2; border-radius: 3px; overflow: hidden; margin-top: 12px; }
.upbar i { display: block; height: 100%; width: 0; background: var(--ocean); transition: width .2s; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 22, 40, .5); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 900px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-h h3 { margin: 0; }
.modal-b { padding: 20px; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.x { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--ink-3); }
.x:hover { background: #eef2f7; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: up .2s; display: flex; gap: 8px; align-items: center; }
.toast.ok { background: #0f6e4b; } .toast.bad { background: #a8291f; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }
.spin { width: 30px; height: 30px; border: 3px solid #d7e0ea; border-top-color: var(--ocean); border-radius: 50%; animation: rot .8s linear infinite; margin: 60px auto; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- admin ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; }
.kpi .l { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.kpi .v { font-size: 28px; font-weight: 800; color: var(--navy); margin-top: 2px; }
.kpi .h { font-size: 12.5px; color: var(--ink-3); }
.kpi.alert-k .v { color: var(--warn); }
.cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.funnel { display: grid; gap: 8px; }
.funnel a { display: grid; grid-template-columns: 190px 1fr 40px; gap: 12px; align-items: center; color: var(--ink); font-size: 14px; padding: 4px 6px; border-radius: 8px; }
.funnel a:hover { background: #f3f6fa; text-decoration: none; }
.funnel .fb { height: 12px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.funnel .fb i { display: block; height: 100%; background: var(--ocean); border-radius: 6px; min-width: 2px; }
.funnel b { text-align: right; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input { width: auto; min-width: 150px; padding: 9px 11px; font-size: 14px; }
.filters .search { flex: 1; min-width: 220px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-3); background: #f8fafc; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover { background: #f7faff; }
.tbl .nm { font-weight: 700; color: var(--ink); }
.tbl .sub { font-size: 12.5px; color: var(--ink-3); }
.mini-bar { width: 80px; height: 6px; background: #e6ebf2; border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.mini-bar i { display: block; height: 100%; background: var(--ok); }
.avatar { width: 64px; height: 64px; border-radius: 14px; background: var(--ocean-soft); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 22px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.det-h { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.det-h .det-info { flex: 1; min-width: 220px; }
.det-h h1 { margin: 0; font-size: 1.4rem; }
.det-h .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.det-h .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 18px; overflow-x: auto; }
.subtabs a { padding: 10px 14px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14.5px; }
.subtabs a:hover { color: var(--ink); text-decoration: none; }
.subtabs a.on { color: var(--navy); border-bottom-color: var(--navy); }
.subtabs .cnt { background: var(--warn-soft); color: var(--warn); border-radius: 999px; font-size: 11.5px; padding: 0 7px; margin-left: 4px; }
.stage-row { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.stage-row + .stage-row { margin-top: 10px; }
.stage-row.cur { border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(29,111,184,.1); }
.stage-row .top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stage-row .top .dot { width: 30px; height: 30px; font-size: 13px; }
.stage-row.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.stage-row.cur .dot { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.stage-row.fail .dot { background: var(--bad); border-color: var(--bad); color: #fff; }
.stage-row .ttl { font-weight: 700; flex: 1; min-width: 160px; }
.stage-row .ttl small { display: block; font-weight: 400; }
.stage-row .body { margin: 10px 0 0 42px; font-size: 13.5px; color: var(--ink-2); }
.stage-edit { margin: 14px 0 0 42px; padding: 14px; background: #f8fafd; border: 1px solid var(--line); border-radius: 12px; }
dl.kv { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--ink-3); }
dl.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.sec-title { font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--ocean); font-weight: 800; margin: 22px 0 10px; }
.sec-title:first-child { margin-top: 0; }
.pw-show { font: 700 20px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; background: #f3f6fa; border: 1px dashed #b7c4d4; padding: 12px; border-radius: 10px; text-align: center; user-select: all; }
.login-staff { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #06275a, #0b3a80); padding: 20px; }
.staff-brand { text-align: center; margin-bottom: 22px; }
.staff-brand img { width: 230px; max-width: 100%; display: block; margin: 0 auto 6px; }
.staff-brand span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.login-staff .card { width: 100%; max-width: 400px; padding: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols, .dash { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .mobile-brand { display: block; text-align: center; margin-bottom: 22px; }
  .mobile-brand img { width: 210px; max-width: 70%; display: block; margin: 0 auto 4px; }
  .mobile-brand span { color: var(--ink-3); font-size: 13px; font-weight: 600; }
  .auth-main { align-items: flex-start; padding-top: 32px; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 20; }
  .topbar img { height: 30px; width: auto; }
  .topbar b { font-size: 14.5px; display: block; line-height: 1.2; }
  .topbar span { font-size: 12px; opacity: .75; }
  .topbar .sp { flex: 1; min-width: 0; }
  .topbar button { background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: 9px; padding: 8px; cursor: pointer; }
  .page { padding: 18px 14px 96px; }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 20; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 4px 2px; border-radius: 10px; position: relative; }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.on { color: var(--navy); }
  .bottom-nav a.on svg { color: var(--ocean); }
  .bottom-nav a:hover { text-decoration: none; }
  .bottom-nav .cnt { position: absolute; top: 0; right: 22%; background: var(--bad); color: #fff; font-size: 10px; border-radius: 999px; padding: 0 5px; }
  .wiz { grid-template-columns: 1fr; }
  .wiz-nav { display: none; }
  .chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
  .chips a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 13px; }
  .chips a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
  .chips a.ok:not(.on) { border-color: #a8dcc4; color: var(--ok); }
  .chips a:hover { text-decoration: none; }
  .hero { grid-template-columns: 1fr; padding: 20px; }
  .hero .ring { display: none; }
  .funnel a { grid-template-columns: 130px 1fr 32px; font-size: 13px; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 10px; }
  .stage-row .body, .stage-edit { margin-left: 0; }
  #toasts { bottom: 84px; }
}
@media (max-width: 560px) {
  .grid.two { grid-template-columns: 1fr; }
  .kpis { gap: 10px; }
  .kpi .v { font-size: 24px; }
  .doc { grid-template-columns: 40px minmax(0, 1fr); }
  .doc .ic { width: 40px; height: 40px; }
  .doc .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .doc .reason { grid-column: 1 / -1; }
  .card { padding: 16px; }
  h1 { font-size: 1.35rem; }
  .form-foot .btn { flex: 1; }
}

/* ---------- tahapan & rekap ---------- */
.ph-t { font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--ocean); margin: 14px 6px 6px; }
.ph-t:first-child { margin-top: 0; }
.board { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.st-list { padding: 12px 10px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.st-select { display: none; }
.st-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; color: var(--ink); font-size: 13.5px; }
.st-item:hover { background: #f2f5f9; text-decoration: none; }
.st-item.on { background: var(--navy); color: #fff; }
.st-item .n { width: 20px; font-size: 11.5px; color: var(--ink-3); text-align: right; flex: none; }
.st-item.on .n { color: #9fb6d6; }
.st-item .t { flex: 1; min-width: 0; }
.st-item b { min-width: 26px; text-align: center; font-size: 12.5px; background: #eef2f7; border-radius: 999px; padding: 1px 7px; color: var(--ink-2); }
.st-item.on b { background: rgba(255,255,255,.18); color: #fff; }
.st-item.zero { color: var(--ink-3); }
.st-item .td { font-size: 11px; font-weight: 800; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 1px 6px; }
.st-item.on .td { background: #2fbf83; color: #fff; }
.bd-head { padding: 16px 18px; }
.chips-d { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.chips-d a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; background: #fff; }
.chips-d a:hover { text-decoration: none; background: #f3f6fa; }
.chips-d a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips-d .input { width: auto; padding: 6px 10px; font-size: 13px; }
.chips-d #bq { flex: 1; min-width: 160px; }
.dgroup { padding: 0; overflow: hidden; margin-top: 14px !important; }
.dg-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; background: #f6f9fd; border-bottom: 1px solid var(--line); }
.dg-h .check { font-size: 14px; color: var(--ink); }
.brow { display: grid; grid-template-columns: 20px minmax(170px, 1.2fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.brow:last-child { border-bottom: 0; }
.brow.sel { background: #eef5ff; }
.brow input { width: 17px; height: 17px; accent-color: var(--navy); }
.bname { display: flex; flex-direction: column; color: var(--ink); min-width: 0; }
.bname:hover { text-decoration: none; }
.bname:hover b { color: var(--ocean); }
.bname span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmeta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; }
.bmeta svg.i { width: 13px; height: 13px; }
.bact { display: flex; gap: 4px; }
.bulkbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 40; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 12px 10px 18px; display: flex; gap: 10px; align-items: center; box-shadow: 0 12px 36px rgba(0,0,0,.3); flex-wrap: wrap; max-width: calc(100vw - 24px); }
.bulkbar .btn.secondary { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.bulkbar .btn.ghost { color: #cbd5e1; }
.bulkbar .btn:not(.secondary):not(.ghost) { background: var(--gold); color: #1d1300; }
.date-quick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.date-quick .btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.date-quick .input { width: auto; flex: 1; min-width: 150px; }
.mv-list { margin-top: 14px; font-size: 13px; color: var(--ink-2); background: #f6f9fd; border-radius: 10px; padding: 10px 12px; }
.today-list { display: grid; gap: 4px; }
.today-list a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 9px; color: var(--ink); background: var(--ok-soft); font-size: 14px; }
.today-list a:hover { text-decoration: none; filter: brightness(.97); }
.today-list b { color: var(--ok); }
.rk-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rk-nav .input { width: auto; }
.rk-sum { margin-left: auto; text-align: right; font-size: 14px; }
.rk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.rk-grid .card { margin: 0 !important; }
.rk-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rk-n { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1; }
.rk-card ul { list-style: none; padding: 0; margin: 10px 0 6px; font-size: 13.5px; display: grid; gap: 4px; }
.rk-tbl th, .rk-tbl td { text-align: center; padding: 8px 6px; }
.rk-tbl th:first-child, .rk-tbl td:first-child { text-align: left; padding-left: 14px; white-space: nowrap; }
.rk-tbl th a { color: inherit; }
.rk-tbl .on { background: #eaf2fd; }
.rk-tbl td.has a { display: inline-block; min-width: 26px; padding: 2px 6px; border-radius: 6px; background: var(--ocean-soft); font-weight: 700; color: var(--navy); }
.rk-tbl td { color: #b7c2cf; }
.rk-tbl td:first-child { color: var(--ink); }
.rk-tbl tr.zero td:first-child { color: var(--ink-3); }
.cur-stage { border: 2px solid var(--ocean); }
.next-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.stage-row.skip { opacity: .6; }
.stage-row.skip .dot { border-style: dashed; }
.stage-row { padding: 10px 14px; }
.stage-row + .stage-row { margin-top: 6px; }
.tb-btn { background: rgba(255,255,255,.1); color: #fff; border-radius: 9px; padding: 8px; display: none; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.phase { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.phase.cur { border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(21,87,184,.08); }
.phase-h { display: flex; align-items: center; gap: 10px; }
.phase-h .dot { width: 28px; height: 28px; font-size: 12.5px; }
.phase.done .phase-h .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.phase.cur .phase-h .dot { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.phase-h b { flex: 1; }
.phase .steps { margin-top: 12px; }
@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; }
  .st-list { position: static; max-height: none; padding: 10px; }
  .st-list .ph-t, .st-list .st-item { display: none; }
  .st-select { display: block; }
  .brow { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .brow .bmeta { grid-column: 2 / -1; grid-row: 2; }
  .bulkbar { bottom: 76px; left: 12px; right: 12px; transform: none; }
  .tb-btn { display: inline-flex; }
  .rk-sum { margin-left: 0; text-align: left; width: 100%; }
}
.phase .steps { display: none; }
.phase.open .steps { display: block; }
.phase-h[data-ph] { cursor: pointer; }
.phase.up .phase-h b { color: var(--ink-2); font-weight: 600; }

.sub-h { font-weight: 700; color: var(--navy); font-size: 14px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.grid .sub-h:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
dl.kv dt.kv-h { color: var(--navy); font-weight: 700; margin-top: 6px; }

.ct-lbl { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-3); margin: 12px 0 6px; }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.contacts .ct { display: flex; align-items: center; gap: 10px; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.contacts .ct.rel { border-color: #9fd9b8; background: #f2fbf6; }
.contacts .ct b { display: block; font-size: 14px; }
.contacts .ct span { display: block; font-size: 12.5px; color: var(--ink-3); }
.contacts .ct .ph { color: var(--ink-2); font-weight: 600; }

.verify-box { text-align: left; }
.verify-box .vb-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--ocean-soft); color: var(--ocean); display: grid; place-items: center; margin-bottom: 14px; }
.verify-box .vb-ic svg { width: 28px; height: 28px; }
.vb-tips { font-size: 13.5px; color: var(--ink-2); padding-left: 18px; margin: 12px 0 0; }
.vb-tips li { margin-bottom: 4px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.sec-block:first-of-type .sec-row { margin-top: 0; }
.sec-row .sec-title { margin: 0; }
.sec-block { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.sec-block:last-child { border-bottom: 0; }
.sec-block .sec-body { margin-top: 10px; }
.sec-block.editing { background: #f8fafd; border: 1px solid var(--ocean); border-radius: 12px; padding: 14px; margin: 12px -14px; }
.doc.st-ada .ic { background: var(--ok-soft); color: var(--ok); }

.imp-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.imp-steps .card { margin: 0 !important; position: relative; }
.imp-n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 10px; }
#iprev { margin-top: 18px; }
.imp-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 12px; }
.imp-sum div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.imp-sum b { display: block; font-size: 22px; color: var(--navy); }
.imp-sum span { font-size: 12.5px; color: var(--ink-3); }
.imp-sum .ok b { color: var(--ok); } .imp-sum .bad b { color: var(--bad); } .imp-sum .warn b { color: var(--warn); }
.imp-tbl tr.err td { background: #fff8f7; }
.imp-tbl th { position: sticky; top: 0; z-index: 1; }
.ierr { color: var(--bad); font-size: 12.5px; margin-top: 4px; }
.iwarn { color: var(--warn); font-size: 12.5px; margin-top: 4px; }
.imp-done { text-align: center; padding: 32px 20px; }
.imp-done > svg { width: 44px; height: 44px; color: #fff; background: var(--ok); border-radius: 50%; padding: 10px; margin-bottom: 10px; }
@media (max-width: 900px) { .imp-steps { grid-template-columns: 1fr; } .imp-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
