/* =====================================================================
   SIGAP — sistem desain bernuansa Balog TNI
   Hijau militer pekat + kuningan/emas, tipografi kondensed bergaya militer,
   pola kontur topografi. Modern, premium, interaktif. Terang & gelap.
   ===================================================================== */
:root {
  --bg: #f2f0e8;
  --surface: #ffffff;
  --surface-2: #f7f5ee;
  --border: #e1dccb;
  --text: #1a1f13;
  --muted: #5d6350;
  --accent: #2f4a1f;
  --accent-2: #3f6129;
  --accent-ink: #ffffff;
  --accent-soft: #e5ebd6;
  --gold: #b0842a;
  --gold-2: #d9b45a;
  --gold-soft: #f5ebcf;
  --hdr: #16210e;
  --hdr-2: #1f2d15;
  --hdr-ink: #f1ecdc;
  --hdr-muted: #b7b39a;
  --gen: #137a52;   --gen-bg: #dcf1e6;
  --assist: #94620a; --assist-bg: #f8ecd2;
  --orig: #b02a20;  --orig-bg: #f9e2df;
  --info: #2b5891;  --info-bg: #e1eaf6;
  --ph: #fff1b8;
  --shadow: 0 1px 1px rgba(26, 31, 19, .04), 0 2px 6px rgba(26, 31, 19, .05), 0 10px 28px -12px rgba(26, 31, 19, .18);
  --shadow-lift: 0 2px 4px rgba(26, 31, 19, .06), 0 18px 40px -16px rgba(26, 31, 19, .32);
  --ring: 0 0 0 3px rgba(176, 132, 42, .28);
  --radius: 14px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1009; --surface: #141a10; --surface-2: #1a2215; --border: #2a3521;
    --text: #e8ebdc; --muted: #9ba38a; --accent: #8fb55a; --accent-2: #a7c873; --accent-ink: #0c1009; --accent-soft: #1f2c17;
    --gold: #d9b45a; --gold-2: #f0d48a; --gold-soft: #33290f;
    --hdr: #080b06; --hdr-2: #10160b;
    --gen: #5fd3a2; --gen-bg: #11301f; --assist: #eeb54e; --assist-bg: #36280b;
    --orig: #f2857b; --orig-bg: #3a1512; --info: #8eb3ec; --info-bg: #15243a; --ph: #5a4a10;
    --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 10px 28px -12px rgba(0, 0, 0, .6);
    --shadow-lift: 0 18px 40px -16px rgba(0, 0, 0, .75), 0 0 0 1px rgba(217, 180, 90, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1009; --surface: #141a10; --surface-2: #1a2215; --border: #2a3521;
  --text: #e8ebdc; --muted: #9ba38a; --accent: #8fb55a; --accent-2: #a7c873; --accent-ink: #0c1009; --accent-soft: #1f2c17;
  --gold: #d9b45a; --gold-2: #f0d48a; --gold-soft: #33290f;
  --hdr: #080b06; --hdr-2: #10160b;
  --gen: #5fd3a2; --gen-bg: #11301f; --assist: #eeb54e; --assist-bg: #36280b;
  --orig: #f2857b; --orig-bg: #3a1512; --info: #8eb3ec; --info-bg: #15243a; --ph: #5a4a10;
  --shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 10px 28px -12px rgba(0, 0, 0, .6);
  --shadow-lift: 0 18px 40px -16px rgba(0, 0, 0, .75), 0 0 0 1px rgba(217, 180, 90, .14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 500px at 85% -10%, rgba(176, 132, 42, .07), transparent 60%),
                    radial-gradient(900px 400px at -10% 10%, rgba(47, 74, 31, .07), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh; display: flex; flex-direction: column;
}
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-soft); }

/* ---------- header & tabs ---------- */
.top {
  position: sticky; top: 0; z-index: 20; color: var(--hdr-ink);
  background: linear-gradient(180deg, var(--hdr-2), var(--hdr)), var(--hdr);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.top::before { content: ""; position: absolute; inset: 0; background: url("topo.svg") 0 0 / 480px; opacity: .35; pointer-events: none; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-2) 50%, var(--gold) 80%, transparent); opacity: .9; }
.top-in { position: relative; max-width: 1240px; margin: 0 auto; padding: 12px 20px 0; }
.brand { display: flex; align-items: center; gap: 14px; min-height: 52px; }
.logo { width: 42px; height: 48px; flex: none; display: grid; place-items: center; transition: transform .35s var(--ease); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.logo:hover { transform: translateY(-2px) rotate(-3deg); }
.logo svg { width: 42px; height: 48px; }
.brand h1 { font-family: var(--font-head); font-size: 24px; font-weight: 700; letter-spacing: .06em; margin: 0; line-height: 1.05; text-transform: uppercase; }
.brand h1 span { font-weight: 500; letter-spacing: .03em; color: var(--gold-2); margin-left: 6px; font-size: 18px; }
.brand p { margin: 2px 0 0; color: var(--hdr-muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.tabs { display: flex; gap: 2px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; border: 0; background: none; padding: 11px 14px 12px; cursor: pointer; color: rgba(241, 236, 220, .62);
  font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; text-decoration: none; transition: color .2s; }
.tab:hover { color: var(--hdr-ink); }
.tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform: scaleX(0); transition: transform .3s var(--ease); }
.tab[aria-selected="true"] { color: var(--gold-2); }
.tab[aria-selected="true"]::after { transform: scaleX(1); box-shadow: 0 0 14px rgba(217, 180, 90, .6); }

main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 26px 20px 60px; flex: 1; }
.panel[hidden] { display: none; }
h2.sec { font-family: var(--font-head); font-size: 30px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 6px; line-height: 1.05; }
h2.sec::before { content: ""; display: block; width: 42px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); margin-bottom: 10px; }
.lead { color: var(--muted); margin: 0 0 20px; max-width: 780px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
.pad { padding: 18px; }


/* ---------- summary ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.cat { padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; }
.cat[aria-pressed="true"] { outline: 2px solid var(--accent); }
.cat .n { font-size: 30px; font-weight: 800; line-height: 1; }
.cat .l { font-weight: 700; margin: 6px 0 4px; }
.cat .d { color: var(--muted); font-size: 13px; }
.cat.gen .n { color: var(--gen); } .cat.assist .n { color: var(--assist); } .cat.orig .n { color: var(--orig); }

.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.bar { flex: 1; height: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.progress b { white-space: nowrap; }

.group-h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 8px; font-weight: 700; }
.doc { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; margin-bottom: 8px; }
.doc-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; }
.doc-row .exp-btn { border: 0; background: none; cursor: pointer; color: var(--muted); width: 24px; font-size: 14px; transition: transform .2s; }
.doc.open .exp-btn { transform: rotate(90deg); }
.doc-name { font-weight: 600; cursor: pointer; }
.doc-name small { display: block; color: var(--muted); font-weight: 400; }
.doc-body { padding: 0 14px 14px 48px; display: none; font-size: 14px; }
.doc.open .doc-body { display: block; }
.doc-body dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0 0 10px; }
.doc-body dt { color: var(--muted); }
.doc-body dd { margin: 0; }
.doc-body ul { margin: 0; padding-left: 18px; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge.gen { color: var(--gen); background: var(--gen-bg); }
.badge.assist { color: var(--assist); background: var(--assist-bg); }
.badge.orig { color: var(--orig); background: var(--orig-bg); }
.badge.crit { color: var(--orig); background: transparent; border: 1px solid var(--orig); margin-left: 6px; }

select.status { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
select.status[data-v="siap"] { border-color: var(--info); color: var(--info); }
select.status[data-v="ok"] { border-color: var(--gen); color: var(--gen); }
select.status[data-v="draft"] { border-color: var(--assist); color: var(--assist); }

.btn { border: 1px solid var(--border); background: var(--surface); padding: 7px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; }

/* ---------- forms ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea {
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field textarea { min-height: 90px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.card h3 { margin: 0 0 12px; font-size: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

.scope { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.scope input { margin-top: 4px; }
.scope small { display: block; color: var(--muted); }

/* ---------- KBLI result ---------- */
.verdict { padding: 16px; border-radius: var(--radius); margin-bottom: 14px; display: flex; gap: 14px; align-items: center; }
.verdict .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none; }
.verdict h3 { margin: 0; font-size: 18px; }
.verdict p { margin: 2px 0 0; font-size: 14px; }
.verdict.pass { background: var(--gen-bg); color: var(--gen); } .verdict.pass .ic { background: var(--gen); color: var(--surface); }
.verdict.warn { background: var(--assist-bg); color: var(--assist); } .verdict.warn .ic { background: var(--assist); color: var(--surface); }
.verdict.fail { background: var(--orig-bg); color: var(--orig); } .verdict.fail .ic { background: var(--orig); color: var(--surface); }
.verdict.empty { background: var(--surface-2); color: var(--muted); } .verdict.empty .ic { background: var(--border); color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0 0 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.checks li:last-child { border-bottom: 0; }
.checks .i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--surface); }
.checks .pass .i { background: var(--gen); } .checks .warn .i { background: var(--assist); }
.checks .fail .i { background: var(--orig); } .checks .info .i { background: var(--info); }
.checks b { display: block; }
.checks span.t { color: var(--muted); }

table.kt { width: 100%; border-collapse: collapse; font-size: 14px; }
table.kt th, table.kt td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); }
table.kt th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
code { font-family: ui-monospace, Consolas, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; border: 1px solid var(--border); }

.note { font-size: 13px; color: var(--muted); padding: 10px 12px; background: var(--surface-2); border-radius: 8px; border: 1px dashed var(--border); }

/* ---------- generator ---------- */
.gen-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.tpl-list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 120px; }
.tpl-btn { text-align: left; border: 1px solid transparent; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.tpl-btn:hover { background: var(--surface); }
.tpl-btn[aria-current="true"] { background: var(--surface); border-color: var(--accent); font-weight: 700; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .miss { font-size: 13px; color: var(--assist); }
.toolbar .miss.okc { color: var(--gen); }

.paper { background: #fff; color: #111; border-radius: 4px; box-shadow: var(--shadow); padding: 48px 56px; max-width: 794px;
  font-family: "Times New Roman", Times, serif; font-size: 15px; line-height: 1.55; }
.paper .ph { background: var(--ph); color: #6b4e00; padding: 0 3px; border-radius: 3px; font-family: "Segoe UI", system-ui, sans-serif; font-size: 12px; font-weight: 600; }
:root[data-theme="dark"] .paper .ph, .paper .ph { background: #fff1b8; }
.kop { text-align: center; border-bottom: 3px double #111; padding-bottom: 8px; margin-bottom: 18px; }
.kop-name { font-size: 20px; font-weight: 700; text-transform: uppercase; }
.kop-sub { font-size: 13px; }
.doc-title { text-align: center; font-size: 16px; text-decoration: underline; margin: 10px 0 2px; }
.doc-no { text-align: center; margin-bottom: 14px; }
.idt td { padding: 1px 6px 1px 0; vertical-align: top; }
.idt td:first-child { width: 220px; }
.hdr { width: 100%; margin-bottom: 14px; } .hdr td { padding: 1px 6px 1px 0; vertical-align: top; } .hdr td.r { text-align: right; white-space: nowrap; }
.paper ol { padding-left: 22px; } .paper p { text-align: justify; }
.ttd { margin: 28px 0 0 auto; width: 280px; text-align: center; }
.ttd-space { height: 96px; display: grid; place-items: center start; }
.meterai { display: inline-block; border: 1px dashed #999; color: #999; font-size: 10px; line-height: 1.2; padding: 8px 6px; font-family: sans-serif; }
.ttd-name { font-weight: 700; text-decoration: underline; }

/* ---------- OCR ---------- */
.ocr-card { margin-bottom: 16px; }
.ocr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.ocr-head h3 { margin: 0; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.pill.on { background: var(--gen-bg); color: var(--gen); border-color: transparent; }
.pill.off { background: var(--orig-bg); color: var(--orig); border-color: transparent; }
.pill.test { background: var(--info-bg); color: var(--info); border-color: transparent; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 16px;
  border: 2px dashed var(--border); border-radius: 10px; cursor: pointer; background: var(--surface-2); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop span { color: var(--muted); font-size: 13px; }
.drop.disabled { opacity: .55; cursor: not-allowed; }
.ocr-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-top: 10px; font-size: 14px; }
.ocr-item.err { border-color: var(--orig); }
.ocr-item .top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.ocr-item .fn { font-weight: 700; word-break: break-all; }
.ocr-item .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.ocr-item .codes { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ocr-item .codes code.hit { border-color: var(--gen); color: var(--gen); }
.ocr-item .warn-line { margin-top: 8px; color: var(--assist); font-size: 13px; }
.ocr-item .err-line { margin-top: 6px; color: var(--orig); }
.spin { width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; display: inline-block; animation: sp .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- multi-perusahaan ---------- */
a.btn, a.tab { text-decoration: none; color: inherit; display: inline-block; }
a.tab { color: var(--muted); }
a.tab[aria-selected="true"] { color: var(--accent); }
a.logo { text-decoration: none; }
.brand-txt { flex: 1; min-width: 0; }
.ctx { display: flex; align-items: center; gap: 12px; padding-left: 14px; border-left: 1px solid var(--border); }
.ctx-name { display: flex; flex-direction: column; line-height: 1.2; max-width: 280px; }
.ctx-name small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.ctx-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save { font-size: 12px; color: var(--muted); white-space: nowrap; }
.save.bad { color: var(--orig); font-weight: 700; }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px;
  border-radius: 10px; background: var(--orig-bg); color: var(--orig); font-size: 14px; }
.home-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.company-card { display: flex; align-items: flex-start; gap: 8px; padding: 14px; }
.cc-main { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.cc-main:hover b { color: var(--accent); }
.cc-main small { color: var(--muted); }
.cc-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.mini-prog { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.mini-prog .bar { height: 7px; width: 110px; flex: none; }
.mini-prog small { color: var(--muted); }
.btn.danger { color: var(--orig); }
.btn.block { width: 100%; margin-top: 14px; padding: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.empty { padding: 28px; text-align: center; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--muted); grid-column: 1 / -1; }
.steps-bar { display: flex; gap: 8px; margin-bottom: 14px; font-size: 13px; flex-wrap: wrap; }
.steps-bar span { padding: 4px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.steps-bar span.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.ob-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.ob-step { margin-bottom: 12px; }
.ob-step.opt { border-style: dashed; }
.ob-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 8px; flex-wrap: wrap; }
.ob-sec:first-child { margin-top: 0; }
.ob-sec h3 { margin: 0; font-size: 15px; }
.ob-sec span { font-size: 13px; color: var(--muted); }
.ob-sec-note { margin: -2px 0 10px; font-size: 13px; color: var(--muted); }
.ob-step-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ob-step-h .grow { flex: 1; min-width: 0; }
.ob-step-h small { display: block; color: var(--muted); }
.num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; background: var(--surface-2); border: 1px solid var(--border); }
.num.gen { background: var(--gen); color: var(--surface); border-color: transparent; }
.num.assist { background: var(--assist); color: var(--surface); border-color: transparent; }
.ob-side { position: sticky; top: 130px; }
.ob-side .hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.field.compact { margin-bottom: 8px; }
.field.compact input { padding: 6px 9px; }
.linkbtn { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 6px 0 0; font-size: 13px; }
.linkbtn:hover { color: var(--text); }
.src { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--info-bg); color: var(--info); vertical-align: 1px; margin-left: 4px; }
.src.manual { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.src[hidden] { display: none; }
.codes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.codes code.hit { border-color: var(--gen); color: var(--gen); }
.guide { margin: 12px 0 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.guide summary { cursor: pointer; padding: 9px 12px; font-weight: 700; font-size: 14px; color: var(--accent); }
.guide[open] summary { border-bottom: 1px solid var(--border); }
.guide-where { padding: 10px 12px 0; font-size: 13px; }
.guide-where span { color: var(--muted); font-weight: 600; }
.guide ol { margin: 8px 0; padding: 0 14px 0 34px; font-size: 14px; }
.guide ol li { margin-bottom: 4px; }
.guide-tip { margin: 0 12px 12px; padding: 8px 10px; font-size: 13px; border-left: 3px solid var(--assist); background: var(--assist-bg); color: var(--text); border-radius: 0 6px 6px 0; }
.drop.small { padding: 12px; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 4px 10px; }
.doc-upload { margin: 12px 0; }

/* ---------- paket ---------- */
.crumbs { display: flex; align-items: baseline; gap: 6px; max-width: 420px; min-width: 0; flex-wrap: wrap; line-height: 1.25; }
.crumbs small { width: 100%; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.tab.back { color: var(--muted); font-weight: 500; margin-right: 6px; border-right: 1px solid var(--border); }
.tab .count { font-size: 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; padding: 0 7px; margin-left: 4px; }
.badge.info { color: var(--info); background: var(--info-bg); }
.badge:not(.gen):not(.assist):not(.orig):not(.info):not(.crit) { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.sumgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.stat b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.gen b { color: var(--gen); } .stat.assist b { color: var(--assist); } .stat.orig b, .stat.bad b { color: var(--orig); }
.auto-hint { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.auto-hint.pass { background: var(--gen-bg); color: var(--gen); }
.auto-hint.warn { background: var(--assist-bg); color: var(--assist); }
.auto-hint.fail { background: var(--orig-bg); color: var(--orig); }
.mini-docs { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-doc { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 99px; text-decoration: none; color: inherit; }
.mini-doc:hover { border-color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.gen { background: var(--gen); } .dot.assist { background: var(--assist); } .dot.orig { background: var(--orig); }
.hps-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.kt .r, .hps-table .r { text-align: right; } .kt .c, .hps-table .c { text-align: center; }
.subs-table tr.active td { background: var(--accent-soft); }
.subs-table tfoot td { border-top: 2px solid var(--border); }
.muted { color: var(--muted); }
.txt-bad { color: var(--orig); } .txt-warn { color: var(--assist); }
.btn.sm { padding: 3px 8px; font-size: 12px; }
.linkbtn.strong { font-weight: 700; color: var(--text); text-decoration: none; padding: 0; font-size: 14px; text-align: left; }
.linkbtn.strong:hover { color: var(--accent); }
.import-box { border-color: var(--accent); margin-bottom: 16px; }
.sub-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sub-head .grow { flex: 1; min-width: 200px; }
.sub-name { font: inherit; font-size: 17px; font-weight: 700; border: 1px solid transparent; background: none; border-radius: 6px; padding: 2px 6px; margin-left: -6px; width: 100%; }
.sub-name:hover, .sub-name:focus { border-color: var(--border); background: var(--surface-2); }
.sub-head small { display: block; }
.ppn-field { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.ppn-field input { width: 56px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); text-align: right; }
.warn-box { margin-bottom: 12px; border-color: var(--assist); background: var(--assist-bg); color: var(--text); }
.warn-box ul { margin: 4px 0 0; padding-left: 18px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.hps-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.hps-table th { position: sticky; top: 0; background: var(--surface-2); text-align: left; padding: 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.hps-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.hps-table td:nth-child(2) { min-width: 240px; }
.hps-table tr.grp td { font-weight: 700; background: var(--surface-2); }
.hps-table tr.empty input.price { border-color: var(--assist); }
.hps-table tr.over td { background: var(--orig-bg); }
.hps-table tr.over .pct { color: var(--orig); font-weight: 700; }
.hps-table .pct { white-space: nowrap; color: var(--muted); }
.hps-table input.price { width: 150px; text-align: right; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font: inherit; }
.hps-table input.price:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.hps-table tfoot td { border-bottom: 0; padding: 4px 8px; }
.hps-table tfoot tr.hdr td { color: var(--muted); font-size: 12px; padding-top: 10px; border-top: 2px solid var(--border); }
.hps-table tfoot tr.strong td { font-weight: 800; border-top: 1px solid var(--border); }

/* ---------- akun & admin ---------- */
.usermenu { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--border); }
.who { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.who small { color: var(--muted); font-size: 11px; }
.crumbs small.owner { width: 100%; text-transform: none; letter-spacing: 0; font-size: 11px; }
.auth-wrap { display: grid; place-items: center; min-height: 60vh; }
.auth-card { width: 100%; max-width: 420px; }
.auth-err { color: var(--orig); background: var(--orig-bg); padding: 8px 10px; border-radius: 8px; font-size: 14px; margin: 0 0 8px; }
.auth-switch { text-align: center; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.auth-switch a { color: var(--accent); font-weight: 600; }
.ad-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; border-radius: 99px; cursor: pointer; font-size: 13px; font-weight: 600; }
.seg button span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.seg button.on span { color: inherit; opacity: .8; }
.ad-search { flex: 1; min-width: 220px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.ad-table td { vertical-align: top; }
.ad-table tbody tr { cursor: pointer; }
.ad-table tbody tr:hover td { background: var(--accent-soft); }
.ad-table .mini-prog { min-width: 120px; }
.ad-table .mini-prog .bar { width: 70px; }
.doc.fix { border-color: var(--orig); }
.verif { margin: 10px 0 0; font-size: 13px; font-weight: 600; }
.verif.ok { color: var(--gen); }
.verif-note { margin: 10px 0 0; padding: 9px 12px; border-left: 3px solid var(--orig); background: var(--orig-bg); border-radius: 0 8px 8px 0; font-size: 14px; }
.verif-note b { display: block; font-size: 12px; color: var(--orig); margin-bottom: 2px; }
.verif-box { margin: 12px 0 0; padding: 12px; border: 1px dashed var(--info); border-radius: 10px; background: var(--info-bg); }
.verif-box label { font-size: 12px; font-weight: 700; color: var(--info); display: block; margin-bottom: 4px; }
.verif-box textarea { width: 100%; padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font: inherit; font-size: 14px; resize: vertical; }
.verif-box .doc-actions { margin-top: 8px; }

/* ---------- file, pratinjau, notifikasi, log ---------- */
.file-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.ficon { flex: none; width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 800; background: var(--info-bg); color: var(--info); }
.fmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fmeta b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmeta small { color: var(--muted); font-size: 12px; }
.ocr-item.err.soft { border-color: var(--assist); }
.modal { position: fixed; inset: 0; background: rgba(10, 12, 6, .65); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-box { width: min(1000px, 100%); height: min(90vh, 1100px); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.modal-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-head .grow { flex: 1; }
.modal-body { flex: 1; background: var(--surface-2); display: grid; place-items: center; overflow: auto; }
.modal-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.modal-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bell-wrap { position: relative; }
.bell { position: relative; font-size: 16px; padding: 6px 10px; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--orig); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 6px); width: min(380px, 90vw); max-height: 70vh; overflow: auto; z-index: 40; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.notif-head .linkbtn { padding: 0; }
.notif { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: inherit; font-size: 13px; }
.notif:hover { background: var(--surface-2); }
.notif small { color: var(--muted); font-size: 11px; }
.notif.unread { background: var(--info-bg); }
.notif.unread span { font-weight: 600; }
.notif.warn { background: var(--assist-bg); }
.notif.fail { background: var(--orig-bg); }
.exp-box { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.exp-box.warn { background: var(--assist-bg); border-left: 4px solid var(--assist); }
.exp-box.fail { background: var(--orig-bg); border-left: 4px solid var(--orig); }
.exp-box ul { margin: 4px 0 0; padding-left: 18px; }
.log-table td { vertical-align: top; font-size: 13px; }
.log-table .nowrap { white-space: nowrap; }
.act-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--border); margin-right: 8px; vertical-align: 1px; }
.act-dot.gen { background: var(--gen); } .act-dot.orig { background: var(--orig); } .act-dot.info { background: var(--info); }
select.sel { flex: 0 1 220px; min-width: 180px; }

/* ---------- personil, jadwal, logo ---------- */
.team-drops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0; }
.grid-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 12px; }
.grow { flex: 1; }
.role-in { width: 100%; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); font: inherit; }
.kt select { width: 100%; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); font: inherit; }
.jd-ctrl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; }
.jd-ctrl input { width: 70px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); margin-left: 6px; font: inherit; }
.jd-wrap { max-height: 60vh; }
.jd-table { border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.jd-table th { position: sticky; top: 0; background: var(--surface-2); padding: 6px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--border); z-index: 1; }
.jd-table td { padding: 3px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.jd-table td.ur { white-space: normal; min-width: 220px; max-width: 340px; }
.jd-table tr.grp td { font-weight: 700; background: var(--surface-2); }
.jd-table .wc { min-width: 22px; padding: 3px 1px; text-align: center; border-left: 1px solid var(--border); }
.jd-table td.wc.on { background: var(--accent); }
.jd-table td.num { font-size: 10px; }
.jd-table tfoot td { font-weight: 700; border-top: 2px solid var(--border); }
.jd-table input.wk { width: 50px; padding: 2px 4px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); font: inherit; }
.scurve { width: 100%; max-width: 760px; height: auto; background: var(--surface-2); border-radius: 10px; }
.scurve .grid { stroke: var(--border); stroke-width: 1; }
.scurve .line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.scurve circle { fill: var(--accent); }
.scurve text { font-size: 10px; fill: var(--muted); }
.logo-prev { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.logo-prev img { max-height: 64px; max-width: 160px; background: #fff; padding: 4px; border-radius: 6px; border: 1px solid var(--border); }
@media (max-width: 860px) { .team-drops, .grid-fields { grid-template-columns: 1fr; } }

/* ---------- cek sumber resmi & tim admin ---------- */
.off-row { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface); }
.off-h { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.off-st { margin-top: 6px; font-size: 13px; }
.off-row .doc-actions { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { border: 1px dashed var(--border); background: var(--surface-2); border-radius: 99px; padding: 3px 10px; font-size: 12px; cursor: copy; color: inherit; font: inherit; font-size: 12px; }
.chip:hover { border-color: var(--accent); }
.chip.copied { border-style: solid; border-color: var(--gen); color: var(--gen); }
select.assign { padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); font: inherit; font-size: 12px; max-width: 170px; }

.mail-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 13px; border: 1px solid var(--border); }
.mail-strip.ok { background: var(--gen-bg); border-color: transparent; }
.mail-strip.warn { background: var(--assist-bg); border-color: transparent; }
.mail-strip:empty { display: none; }
.mt-form { display: flex; gap: 6px; }
.mt-form input { padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); min-width: 220px; font: inherit; }
.ad-new-box { margin-bottom: 16px; border-color: var(--accent); }
.ad-new-box h3 { margin-bottom: 4px; }
.ad-new-box .hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.row3 { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr; gap: 0 12px; }
.ad-result { margin-bottom: 16px; font-size: 14px; }
.ad-result.ok { border-color: var(--gen); background: var(--gen-bg); }
.ad-result.warn { border-color: var(--assist); background: var(--assist-bg); }
.ad-result p { margin: 0 0 8px; }
.pw-show { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; }
.pw-show code { font-size: 18px; padding: 6px 12px; letter-spacing: .05em; background: var(--surface); }
.ad-table .linkbtn { display: block; font-size: 12px; padding-top: 4px; }
@media (max-width: 860px) { .row3 { grid-template-columns: 1fr; } }

#print-area { display: none; }

@media print {
  body { background: #fff; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; }
  #print-area .paper { box-shadow: none; padding: 0; max-width: none; page-break-after: always; }
  #print-area .paper:last-child { page-break-after: auto; }
  .paper .ph { background: #fff1b8 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 2cm 2.2cm; }
}

@media (max-width: 860px) {
  .cats { grid-template-columns: 1fr; }
  .ob-grid { grid-template-columns: 1fr; }
  .sumgrid { grid-template-columns: 1fr 1fr; }
  .hps-toolbar { grid-template-columns: 1fr; }
  .ob-side { position: static; }
  .brand { flex-wrap: wrap; }
  .ctx { border-left: 0; padding-left: 0; width: 100%; }
  .usermenu { border-left: 0; padding-left: 0; width: 100%; justify-content: flex-end; }
  .brand-txt p { display: none; }
  .grid2, .gen-wrap { grid-template-columns: 1fr; }
  .tpl-list { position: static; flex-direction: row; flex-wrap: wrap; }
  .doc-row { grid-template-columns: auto 1fr; }
  .doc-row .badge, .doc-row select { grid-column: 2; justify-self: start; }
  .doc-body { padding-left: 14px; }
  .doc-body dl { grid-template-columns: 1fr; }
  .paper { padding: 24px 18px; font-size: 14px; }
  .idt td:first-child { width: auto; }
  .row { grid-template-columns: 1fr; }
}

/* =====================================================================
   LAPISAN TEMA — komponen bergaya Balog TNI (menimpa gaya dasar di atas)
   ===================================================================== */

/* ---- header: konteks, menu pengguna, tombol di latar gelap ---- */
.top .ctx, .top .usermenu { border-left-color: rgba(241, 236, 220, .14); }
.top .crumbs small { color: var(--hdr-muted); }
.top .crumbs a { color: var(--hdr-muted); }
.top .crumbs a:hover { color: var(--gold-2); }
.top .crumbs b { color: var(--hdr-ink); font-weight: 600; }
.top .save { color: var(--hdr-muted); }
.top .save.bad { color: #ff9b8f; }
.top .who small { color: var(--hdr-muted); }
.top .btn.ghost { color: var(--hdr-ink); border-color: rgba(241, 236, 220, .16); background: rgba(255, 255, 255, .03); }
.top .btn.ghost:hover { border-color: var(--gold-2); background: rgba(217, 180, 90, .1); color: #fff; }
.top .tab.back { color: var(--hdr-muted); border-right-color: rgba(241, 236, 220, .14); }
.top .tab .count { background: rgba(217, 180, 90, .16); border-color: rgba(217, 180, 90, .3); color: var(--gold-2); }
.top .bell-count { box-shadow: 0 0 0 2px var(--hdr); }
.notif-panel { color: var(--text); }
.theme-btn { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(241, 236, 220, .16); background: rgba(255, 255, 255, .03);
  color: var(--hdr-ink); cursor: pointer; font-size: 15px; display: grid; place-items: center; transition: all .2s; }
.theme-btn:hover { border-color: var(--gold-2); color: var(--gold-2); transform: rotate(-12deg); }

/* ---- tombol ---- */
.btn { border-radius: 10px; padding: 8px 14px; font-weight: 600; transition: transform .15s var(--ease), box-shadow .2s, border-color .2s, background .2s; }
.btn:hover { border-color: var(--gold); box-shadow: 0 4px 14px -8px rgba(176, 132, 42, .6); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible, .tab:focus-visible, .chip:focus-visible, .cat:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.primary { color: #fff; border-color: transparent;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 18px -10px rgba(47, 74, 31, .9); }
.btn.primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 3px rgba(217, 180, 90, .35), 0 10px 22px -10px rgba(47, 74, 31, .9); }
:root[data-theme="dark"] .btn.primary { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: var(--accent-ink); } }
.btn.danger { color: var(--orig); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---- kartu & elemen interaktif ---- */
.company-card, .cat, .stat, .doc, .off-row { transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.company-card:hover, .cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: rgba(176, 132, 42, .45); }
.company-card { position: relative; overflow: hidden; }
.company-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, var(--gold-2), var(--accent)); opacity: .8; }
.cc-main b { font-family: var(--font-head); font-size: 20px; letter-spacing: .02em; text-transform: uppercase; font-weight: 700; }

.cat { box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cat .n { font-family: var(--font-head); font-size: 44px; font-weight: 700; }
.cat .l { font-family: var(--font-head); font-size: 17px; letter-spacing: .05em; text-transform: uppercase; }
.cat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; opacity: .1; background: currentColor; }
.cat.gen::after { color: var(--gen); } .cat.assist::after { color: var(--assist); } .cat.orig::after { color: var(--orig); }
.cat[aria-pressed="true"] { outline: none; border-color: var(--gold); box-shadow: var(--ring), var(--shadow-lift); }

.stat { position: relative; overflow: hidden; box-shadow: var(--shadow); padding: 16px 16px 14px; }
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--gold-2)); opacity: .85; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.stat small { font-family: var(--font-head); font-size: 13px; letter-spacing: .1em; font-weight: 600; }
.stat b { font-family: var(--font-head); font-size: 30px; font-weight: 700; letter-spacing: .01em; line-height: 1.1; }

.progress b { font-family: var(--font-head); font-size: 16px; letter-spacing: .04em; }
.bar { height: 12px; background: var(--surface-2); }
.bar > span { position: relative; background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, var(--gold-2)); transition: width .9s var(--ease); overflow: hidden; }
.bar > span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%);
  transform: translateX(-100%); animation: shine 2.4s var(--ease) 1 .3s; }
@keyframes shine { to { transform: translateX(100%); } }

.group-h { font-family: var(--font-head); font-size: 15px; letter-spacing: .12em; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.group-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.doc { border-radius: 12px; }
.doc:hover { border-color: rgba(176, 132, 42, .45); box-shadow: var(--shadow); }
.doc.open { border-color: var(--gold); box-shadow: var(--shadow-lift); }
.doc-row .exp-btn { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.doc-row .exp-btn:hover { background: var(--accent-soft); color: var(--accent); }
.doc.open .doc-body { animation: rise .35s var(--ease); }

.badge { letter-spacing: .02em; padding: 3px 10px; }
.badge.gen { box-shadow: inset 0 0 0 1px rgba(19, 122, 82, .18); }
.badge.orig { box-shadow: inset 0 0 0 1px rgba(176, 42, 32, .18); }
.badge.assist { box-shadow: inset 0 0 0 1px rgba(148, 98, 10, .2); }

/* ---- formulir ---- */
.field label { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea, .ad-search, .role-in, .kt select { border-radius: 10px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus, .ad-search:focus, .role-in:focus, .kt select:focus, .hps-table input.price:focus, .jd-table input.wk:focus {
  outline: none; border-color: var(--gold); box-shadow: var(--ring); background: var(--surface); }
.card h3 { font-family: var(--font-head); font-size: 19px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.scope { border-radius: 12px; transition: border-color .2s, background .2s; }
.scope:hover { border-color: var(--gold); background: var(--surface-2); }
.scope:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---- zona unggah ---- */
.drop { border-radius: 14px; border-color: rgba(176, 132, 42, .35);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(176, 132, 42, .035) 10px 20px), var(--surface-2); }
.drop b { font-family: var(--font-head); font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.drop:hover, .drop.over { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-1px); }
.drop.over { box-shadow: var(--ring); }

/* ---- verdict, tabel ---- */
.verdict { border: 1px solid transparent; box-shadow: var(--shadow); }
.verdict h3 { font-family: var(--font-head); font-size: 24px; letter-spacing: .05em; }
.verdict .ic { box-shadow: 0 0 0 6px rgba(255, 255, 255, .35); }
table.kt th { font-family: var(--font-head); font-size: 13px; letter-spacing: .1em; color: var(--gold); }
.ad-table tbody tr { transition: background .15s; }
.hps-table th, .jd-table th { font-family: var(--font-head); letter-spacing: .08em; font-size: 12px; text-transform: uppercase; }
.seg button { transition: all .2s var(--ease); }
.seg button:hover { border-color: var(--gold); }
.seg button.on { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; }
.mini-prog .bar { height: 8px; }

/* ---- halaman masuk: panel identitas ---- */
.v-auth main { max-width: none; padding: 0; }
.v-auth .top, .v-auth .foot { display: none; }
.auth-split { display: grid; grid-template-columns: minmax(380px, 1.05fr) 1fr; min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; color: var(--hdr-ink); background: radial-gradient(900px 600px at 20% 10%, #2a3d1b, var(--hdr) 70%); }
.auth-brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), var(--gold-2), transparent); }
.topo-anim { position: absolute; inset: -40%; background: url("topo.svg") 0 0 / 520px; opacity: .45; animation: drift 90s linear infinite; }
@keyframes drift { to { transform: translate(260px, 130px) rotate(2deg); } }
.ab-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: 48px 52px; max-width: 620px; }
.ab-mark { display: flex; align-items: center; gap: 14px; }
.ab-mark svg { width: 58px; height: 66px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
.ab-mark b { display: block; font-family: var(--font-head); font-size: 34px; letter-spacing: .14em; line-height: 1; }
.ab-mark span { display: block; color: var(--hdr-muted); font-size: 13px; letter-spacing: .03em; margin-top: 4px; }
.ab-kicker { margin: auto 0 12px; font-family: var(--font-head); color: var(--gold-2); letter-spacing: .22em; text-transform: uppercase; font-size: 15px; font-weight: 600; }
.ab-kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--gold-2); vertical-align: middle; margin-right: 10px; }
.ab-title { font-family: var(--font-head); font-size: clamp(36px, 4.2vw, 54px); line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 26px; font-weight: 700; }
.ab-title em { font-style: normal; background: linear-gradient(90deg, var(--gold-2), #f7e3a6, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ab-list { list-style: none; padding: 0; margin: 0 0 auto; display: flex; flex-direction: column; gap: 14px; }
.ab-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(241, 236, 220, .08);
  backdrop-filter: blur(4px); animation: rise .6s var(--ease) both; }
.ab-list li:nth-child(2) { animation-delay: .1s; } .ab-list li:nth-child(3) { animation-delay: .2s; }
.ab-list b { display: block; font-size: 15px; }
.ab-list small { color: var(--hdr-muted); font-size: 13px; }
.ab-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: var(--hdr);
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 6px 16px -6px rgba(217, 180, 90, .7); }
.ab-foot { margin: 28px 0 0; font-size: 12px; color: var(--hdr-muted); letter-spacing: .04em; }
.v-auth .auth-wrap, .v-pw .auth-wrap { min-height: 100vh; padding: 32px 20px; }
.v-pw .auth-wrap { min-height: 70vh; }
.auth-card { max-width: 440px; padding: 30px 30px 26px; box-shadow: var(--shadow-lift); animation: rise .5s var(--ease) both; }
.auth-card h2.sec { font-size: 34px; }
.btn.block { padding: 12px; font-family: var(--font-head); letter-spacing: .1em; text-transform: uppercase; font-size: 17px; }

/* ---- transisi tampilan ---- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view.enter, .panel.enter { animation: rise .45s var(--ease) both; }
.stat, .company-card, .cat { animation: rise .5s var(--ease) both; }
.sumgrid > :nth-child(2), .cats > :nth-child(2), .company-grid > :nth-child(2) { animation-delay: .05s; }
.sumgrid > :nth-child(3), .cats > :nth-child(3), .company-grid > :nth-child(3) { animation-delay: .1s; }
.sumgrid > :nth-child(4), .company-grid > :nth-child(4) { animation-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- toast (pengganti banner) ---- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-left: 4px solid var(--accent); box-shadow: var(--shadow-lift); animation: toastIn .35s var(--ease) both; font-size: 14px; }
.toast.err { border-left-color: var(--orig); }
.toast.ok { border-left-color: var(--gen); }
.toast .t-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--accent); }
.toast.err .t-ic { background: var(--orig); } .toast.ok .t-ic { background: var(--gen); }
.toast .t-msg { flex: 1; }
.toast button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }
.banner { display: none !important; }

/* ---- kaki halaman ---- */
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1240px; width: 100%; margin: 0 auto; padding: 18px 20px 26px;
  font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }
.foot span { display: inline-flex; align-items: center; gap: 8px; }
.foot svg { width: 16px; height: 18px; }

/* ---- lain-lain ---- */
.empty { border-color: rgba(176, 132, 42, .35); background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(176, 132, 42, .03) 12px 24px); }
.empty b { font-family: var(--font-head); font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.steps-bar span.on { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.modal { backdrop-filter: blur(4px); }
.modal-box { animation: rise .35s var(--ease) both; }
.ad-result, .exp-box, .verif-note, .auto-hint { animation: rise .35s var(--ease) both; }
.paper { box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 24px 50px -24px rgba(26, 31, 19, .45); }

@media (max-width: 960px) {
  .auth-split { grid-template-columns: 1fr; }
  .ab-in { padding: 32px 24px; }
  .ab-kicker { margin-top: 26px; }
  .ab-list { margin-bottom: 0; }
  .v-auth .auth-wrap { min-height: auto; }
}
@media (max-width: 860px) {
  .brand h1 span { display: none; }
  .top-in { padding: 10px 14px 0; }
  main { padding: 20px 14px 50px; }
  h2.sec { font-size: 25px; }
}

/* ---- penyempurnaan tata letak ---- */
.brand-txt { min-width: 0; }
.brand p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-table td:first-child { min-width: 190px; }
.ad-table td:nth-child(2) { min-width: 170px; }
.ad-table td b { font-family: var(--font-head); font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
@media (max-width: 1100px) { .v-admin .brand p, .v-ws .brand p, .v-log .brand p, .v-team .brand p { display: none; } }
.brand h1 { white-space: nowrap; }
.brand-txt { overflow: hidden; flex: 0 1 auto; }
.top .btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.top .btn .ic { display: none; font-size: 15px; line-height: 1; }
.who b, .who small { white-space: nowrap; }
.top .ctx { flex: 1 1 auto; min-width: 0; }
.top .crumbs { min-width: 0; max-width: 100%; }
.top .crumbs b { max-width: 100%; }
.top .crumbs small.owner { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .usermenu { flex: none; }
.v-ws .brand-txt, .v-onboard .brand-txt { display: none; }
@media (max-width: 1180px) { .top .btn .lbl { display: none; } .top .btn .ic { display: inline; } .top #ctx-back .lbl, .top #nav-admin { display: inline; } }
@media (max-width: 640px) { .top .who { display: none; } .top .save { display: none; } }
@media (max-width: 860px) {
  .top .brand { flex-wrap: wrap; row-gap: 6px; }
  .top .usermenu { width: auto; margin-left: auto; gap: 6px; }
  .top .ctx { order: 5; width: 100%; padding: 6px 0 2px; border-top: 1px solid rgba(241, 236, 220, .1); }
  .theme-btn { order: 4; }
  .top .btn.ghost, .theme-btn { padding: 6px 9px; }
  .logo, .logo svg { width: 36px; height: 41px; }
  .brand h1 { font-size: 21px; }
}

/* ===== Impor PDF gabungan ===== */
.bu-hint { display: block; margin: 0 0 16px; padding: 12px 16px; border: 1px dashed var(--gold); border-radius: var(--radius); background: var(--gold-soft); color: var(--text); text-decoration: none; font-size: 14px; }
.bu-hint:hover { border-style: solid; }
.bu-callout { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; border-left: 4px solid var(--gold); }
.bu-callout > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.bu-callout span { color: var(--muted); font-size: 14px; }
#ob-bundle .bu-upload, #ob-bundle .bu-body { margin-bottom: 18px; }
.bu-upload h3 { margin: 0 0 4px; }
.bu-upload > .muted { font-size: 14px; margin: 0 0 12px; }
.bu-up { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px; border: 2px dashed var(--border); border-radius: var(--radius); }
.bu-up .bar { flex-basis: 100%; }
.bu-up-pct { font-variant-numeric: tabular-nums; color: var(--muted); }
.bu-recent { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.bu-recent > small { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.bu-rec { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.bu-rec:hover { border-color: var(--accent); }
.bu-body { margin-top: 16px; }
.bu-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.bu-head h3 { margin: 0; word-break: break-word; }
.bu-head .muted { font-size: 13px; }
.bu-head-act { display: flex; flex-wrap: wrap; gap: 6px; }
.bu-wait { display: flex; flex-direction: column; gap: 10px; padding: 18px 4px; }
.bu-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.bu-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.bu-side h4, .bu-segs h4 { margin: 0 0 6px; }
.bu-side .checks li { font-size: 13px; padding: 8px 0; }
.bu-commit { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.bu-commit span { color: var(--muted); font-size: 13px; }
.bu-commit .bad { color: var(--orig); }
.muted.small, p.small { font-size: 13px; }
.bseg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 12px; margin-top: 10px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--surface); transition: opacity .2s; }
.bseg.flag { border-left-color: var(--assist); }
.bseg.unk { border-left-color: var(--orig); }
.bseg.off { opacity: .55; border-left-color: var(--border); }
.seg-thumbs { display: flex; gap: 4px; align-items: center; max-width: 300px; flex-wrap: wrap; }
.bu-thumb { position: relative; width: 54px; height: 74px; padding: 0; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: #fff; cursor: zoom-in; }
.bu-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.bu-thumb span { position: absolute; right: 2px; bottom: 2px; padding: 0 4px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 10px; font-weight: 700; }
.bu-thumb:hover { outline: 2px solid var(--accent); }
.bu-more { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 2px; }
.seg-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.seg-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg-pg { font-weight: 700; font-variant-numeric: tabular-nums; }
.seg-pg small { color: var(--muted); font-weight: 500; }
.bseg select { max-width: 100%; padding: 5px 8px; font-size: 13px; }
.seg-title { font-size: 14px; }
.seg-target { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.seg-target b { color: var(--text); }
.seg-flag { font-size: 13px; color: var(--assist); font-weight: 600; }
.seg-notes { margin: 0; padding-left: 16px; font-size: 13px; color: var(--muted); }
.seg-notes b { color: var(--text); font-weight: 600; }
.seg-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.seg-actions .linkbtn { padding: 0; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
.bu-page { width: 100%; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.bu-page-img { overflow: auto; display: grid; place-items: start center; padding: 12px; }
.bu-page-img img { max-width: 100%; max-height: none; box-shadow: var(--shadow); background: #fff; }
.bu-page-side { background: var(--surface); border-left: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.bu-page-side select { width: 100%; }
.bu-page-side .warn-line { color: var(--assist); font-size: 13px; margin: 0; }
@media (max-width: 960px) {
  .bu-cols { grid-template-columns: 1fr; }
  .bu-side { position: static; }
  .bu-callout { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .bseg { grid-template-columns: 1fr; }
  .bu-page { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .bu-page-side { border-left: 0; border-top: 1px solid var(--border); max-height: 45%; }
}
.docno { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; margin-right: 8px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.bu-paket { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; justify-content: space-between; margin: 8px 0 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--gold); background: var(--gold-soft); }
.bu-paket > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.bu-paket span { font-size: 13px; color: var(--muted); }
.bu-paket label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); flex: 0 1 280px; }
.bu-paket select { width: 100%; }
.seg-notes.issues { color: var(--assist); }
.seg-notes.issues b { color: var(--assist); }
.seg-hidden { font-size: 12px; color: var(--muted); font-style: italic; }

/* ===== Responsif: isi panjang (nama file, kode) tidak boleh melebarkan kolom ===== */
.ob-grid { grid-template-columns: minmax(0, 1fr) 340px; }
.gen-wrap { grid-template-columns: 260px minmax(0, 1fr); }
.doc-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.ob-grid > *, .gen-wrap > *, .bu-cols > *, .grid2 > *, .row > *, .row3 > *, .sumgrid > *, .cats > *, .doc-row > *,
.doc-body, .doc-body dl > *, .file-list li, .ob-step, .card { min-width: 0; }
.fmeta b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.35; }
.file-list li { flex-wrap: wrap; }
.file-list li .fmeta { flex: 1 1 200px; }
.ocr-item .top { flex-wrap: nowrap; align-items: flex-start; }
.ocr-item .fn { flex: 1; min-width: 0; word-break: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.ocr-item .meta { overflow-wrap: anywhere; }
.ai-note { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ai-note summary { cursor: pointer; list-style: none; line-height: 1.45; }
.ai-note summary::-webkit-details-marker { display: none; }
.ai-note summary > span:first-child, .ai-note .tag { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-size: 11px; font-weight: 700; color: var(--text); }
.ai-note summary em { font-style: normal; color: var(--accent); white-space: nowrap; }
.ai-note[open] summary .pv { display: none; }
.ai-note p { margin: 6px 0 0; line-height: 1.5; }
.codes code { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .ob-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 860px) {
  .ob-grid, .gen-wrap { grid-template-columns: minmax(0, 1fr); }
  .doc-row { grid-template-columns: auto minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .file-list li { gap: 6px 8px; }
  .file-list li .btn { flex: 1; }
  .ob-step-h { flex-wrap: wrap; }
  .sumgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .progress { flex-wrap: wrap; gap: 6px 10px; }
  .progress .bar { flex-basis: 100%; }
  .progress b { white-space: normal; font-size: 13px; }
}

/* ===== Kop surat perusahaan ===== */
.kop-img { border: 0; padding: 0; margin: 0 0 18px; text-align: center; }
.kop-img img { display: block; width: 100%; max-height: 5cm; object-fit: contain; }
.kop-foot { margin-top: 28px; }
.kop-foot img { display: block; width: 100%; max-height: 3cm; object-fit: contain; }
.paper:has(.kop-foot) { display: flex; flex-direction: column; aspect-ratio: 210 / 297; }
.paper:has(.kop-foot) .kop-foot { margin-top: auto; padding-top: 24px; }
@media print {
  #print-area .paper:has(.kop-foot) { aspect-ratio: auto; min-height: 25.4cm; }
}
.kop-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.kop-bar.empty { border-style: dashed; border-color: var(--gold); background: var(--gold-soft); }
.kop-bar .grow { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kop-bar .grow span { font-size: 13px; color: var(--muted); }
.kop-thumb { flex: 0 1 260px; min-width: 0; padding: 6px; border-radius: 8px; background: #fff; border: 1px solid var(--border); }
.kop-thumb img { display: block; width: 100%; max-height: 60px; object-fit: contain; }
#kop-box .kop-bar { margin: 0; }
.modal-body .kop-ed { width: 100%; height: 100%; align-self: stretch; justify-self: stretch; overflow: auto; background: var(--surface); }
.kop-start { max-width: 760px; margin: 0 auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.kop-cur { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.kop-cur img { width: 100%; max-height: 120px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px; }
.kop-cands small, .kop-cur small, .kc-prev small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.kop-cand-list { display: flex; flex-wrap: wrap; gap: 8px; }
.kop-cand-list .bu-thumb { width: 84px; height: 116px; }
.kop-crop { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 100%; }
.kc-stage { padding: 14px; overflow: auto; background: var(--surface-2); display: grid; place-items: start center; }
.kc-page { position: relative; width: min(100%, 620px); box-shadow: var(--shadow); background: #fff; }
.kc-page img { display: block; width: 100%; height: auto; }
.kc-mask { position: absolute; left: 0; right: 0; background: rgba(10, 12, 6, .55); pointer-events: none; transition: none; }
.kc-line { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--gold-2); pointer-events: none; }
.kc-line span { position: absolute; right: 6px; top: -22px; padding: 1px 6px; border-radius: 4px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; }
.kc-line.foot span { top: 4px; }
.kc-side { padding: 16px; display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--border); background: var(--surface); }
.kc-range { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.kc-range input { width: 100%; accent-color: var(--accent); height: 28px; }
.kc-prev > div { min-height: 30px; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #555; font-size: 12px; }
.kc-prev canvas { display: block; width: 100%; height: auto; max-height: 140px; object-fit: contain; }
@media (max-width: 760px) {
  .kop-crop { grid-template-columns: 1fr; }
  .kc-side { border-left: 0; border-top: 1px solid var(--border); }
  .kc-page { width: 100%; }
}

/* ===== Bank Harga Wilayah ===== */
.hps-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.hps-status > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hps-status span { font-size: 13px; color: var(--muted); }
.hps-status.info { border-left: 4px solid var(--info); }
.hps-status.ok { border-left: 4px solid var(--gen); }
.hps-status.warn { border-left: 4px solid var(--assist); background: var(--assist-bg); }
.hps-table input.hps-price { width: 120px; text-align: right; }
.hps-table th.ref, .hps-table td.ref { min-width: 150px; font-size: 13px; }
.hps-table td.ref b { font-variant-numeric: tabular-nums; }
.hps-table td.ref small { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; }
.hps-table td.ref small.hist { color: var(--info); }
.hps-table .dev { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.hps-table .dev.ok { background: var(--gen-bg, #e3f1df); color: var(--gen); }
.hps-table .dev.bad { background: var(--assist-bg); color: var(--assist); }
.hps-table .use-ref { padding: 0 0 0 6px; font-size: 11px; }
.hps-table tr.devrow td { border-bottom: 0; }
.hps-table tr.reason-row td { padding-top: 0; }
.hps-table tr.reason-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--assist); font-weight: 600; }
.hps-table tr.reason-row input { width: 100%; }
.hps-table tr.reason-row input.missing { border-color: var(--assist); background: var(--assist-bg); }
.hg-table td small { display: block; color: var(--muted); font-size: 11px; }
.hg-table td.up { color: var(--orig); font-weight: 700; }
.hg-table td.down { color: var(--gen); font-weight: 700; }
.hg-table tr.flag td { background: var(--assist-bg); }
.hg-table td.flags { font-size: 12px; color: var(--assist); min-width: 160px; }
.hg-table td.empty-cell { padding: 24px; text-align: center; color: var(--muted); }
.hg-src { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hg-src li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.hg-src .grow { flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; }
.hg-src small { color: var(--muted); font-size: 12px; }
#view-harga .ad-toolbar .chk { white-space: nowrap; }

/* ===== Tindak lanjut ===== */
.tl-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); border-left: 5px solid var(--assist); background: var(--assist-bg); color: var(--text); text-decoration: none; }
.tl-banner.kritis { border-left-color: var(--orig); background: var(--orig-bg); }
.tl-banner .grow { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tl-banner small { color: var(--muted); font-size: 13px; }
.tl-banner .tl-go { font-weight: 700; color: var(--accent); white-space: nowrap; }
.tl-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tl-count b { color: var(--text); font-size: 15px; }
.tl-head { margin-bottom: 14px; }
.tl-head-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-sum { font-size: 16px; line-height: 1.55; margin: 10px 0 6px; }
.tl-h { margin: 18px 0 8px; }
.tl-acts { display: flex; flex-direction: column; gap: 10px; }
.tl-act { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); border-left: 5px solid var(--info); background: var(--surface); }
.tl-act.kritis { border-left-color: var(--orig); }
.tl-act.penting { border-left-color: var(--assist); }
.tl-act-h { display: flex; align-items: flex-start; gap: 10px; }
.tl-act-h b { flex: 1; min-width: 0; }
.tl-act p { margin: 8px 0 0; line-height: 1.5; }
.tl-act .tl-vend { color: var(--muted); font-size: 13px; }
.tl-act .tl-vend small { font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.tl-act-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.tl-pill { flex: none; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--info-bg); color: var(--info); }
.tl-pill.kritis { background: var(--orig-bg); color: var(--orig); }
.tl-pill.penting { background: var(--assist-bg); color: var(--assist); }
.tl-ai { margin-top: 14px; border-left: 4px solid var(--gold); }
.tl-ai ul { margin: 8px 0 6px; padding-left: 18px; }
.tl-all { margin-top: 14px; }
.tl-all summary { cursor: pointer; }
.tl-all .checks li .t { display: block; }
.tl-f-act { display: block; margin-top: 4px; font-size: 12px; }
.tl-f-act .linkbtn { padding: 0; font-size: 12px; }
a.tl-mini { margin-top: 4px; text-decoration: none; }
.tl-pdf { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) { .tl-pdf { margin-left: 0; width: 100%; } .tl-pdf .btn { flex: 1; } }
.ro-up { margin: 6px 0; padding: 8px 12px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); font-size: 13px; }

/* ===== Paket Tender ===== */
.req { color: var(--orig); }
.ta-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.ta-grid > * { min-width: 0; }
.ta-grid form h3 { margin: 18px 0 8px; }
.ta-grid form h3:first-child { margin-top: 0; }
.ta-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.ta-opt { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.ta-radio { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.ta-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ta-radio span { display: flex; flex-direction: column; }
.ta-radio small { color: var(--muted); font-size: 12px; }
.ta-members { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ta-members li { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
.ta-members li > div:first-child { display: flex; flex-direction: column; }
.ta-prog { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ta-assign { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ta-assign select { flex: 1 1 200px; min-width: 0; }
.ta-docs { margin-top: 10px; font-size: 13px; }
.ta-docs summary { cursor: pointer; font-weight: 600; }
.tv-docs { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.tv-docs li { break-inside: avoid; margin-bottom: 3px; }
.ta-table td small { font-size: 12px; }
.tv-list { display: flex; flex-direction: column; gap: 14px; }
.tv-top { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.tv-top .grow { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tv-top small { color: var(--muted); font-size: 13px; }
.tv-name { font-size: 18px; }
.tv-meta { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 12px; margin: 12px 0; font-size: 14px; }
.tv-meta dt { color: var(--muted); }
.tv-meta dd { margin: 0; }
.tv-meta small { color: var(--muted); }
.tv-ket { padding: 10px 12px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 8px; font-size: 14px; }
.tv-ket p { margin: 4px 0 0; white-space: pre-wrap; }
.tv-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.tv-info { margin-bottom: 14px; }
@media (max-width: 960px) { .ta-grid { grid-template-columns: minmax(0, 1fr); } .ta-side { position: static; } }
@media (max-width: 640px) { .tv-meta { grid-template-columns: 1fr; gap: 0 0; } .tv-meta dt { margin-top: 6px; } .tv-docs { columns: 1; } }

/* ===== Dialog kecil (keluar dari pendaftaran perusahaan) ===== */
.modal-box.dialog { height: auto; width: min(520px, 100%); }
.modal-box.dialog .modal-body { display: block; padding: 18px 20px; background: var(--surface); }
.leave-box p { margin: 0 0 10px; line-height: 1.5; }
.leave-box .doc-actions { margin-top: 14px; }
#ob-draft { margin-top: 8px; }
#ob-discard { display: block; margin: 8px auto 0; }

/* Tindak lanjut: cara melengkapi dokumen */
.tl-guide { margin-top: 10px; }
.tl-guide > small { display: block; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.tl-guide .guide { margin: 6px 0 0; }
.tl-guide .guide summary { font-size: 13px; padding: 7px 12px; }
.tl-guide .guide ol { font-size: 13px; }
.tl-all .tl-guide { margin-top: 6px; }
.tl-guide.multi { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.tl-guide.multi > small { flex-basis: 100%; margin: 0; }
.tl-guide.multi .guide { margin: 0; border-radius: 99px; }
.tl-guide.multi .guide summary { padding: 4px 12px; font-size: 12px; }
.tl-guide.multi .guide[open] { flex-basis: 100%; border-radius: 10px; }

/* RAB: item tambahan di luar HPS */
.hps-table tr.extra-grp td { background: var(--info-bg); color: var(--info); }
.hps-table tr.extra-grp small { font-weight: 400; color: var(--muted); }
.hps-table tr.extra-row td { background: color-mix(in srgb, var(--info-bg) 45%, transparent); }
.hps-table input.x-in { width: 100%; min-width: 0; }
.hps-table input.x-in.num { max-width: 90px; text-align: right; }
.hps-table input.x-in.sat { max-width: 70px; text-align: center; }
.extra-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.extra-bar small { flex: 1 1 260px; }

/* Proyek: monitoring setelah kontrak */
.txt-ok { color: var(--gen); }
a.tab.tab-proyek { font-weight: 700; }
.lock-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--info); background: var(--info-bg); border-radius: 10px; font-size: 14px; }
.pj-form h4, .pj-lock h4, .pj-new h4 { margin: 16px 0 8px; }
.pj-ms-edit input { width: 100%; min-width: 70px; }
.pj-ms-edit td:first-child input { min-width: 140px; }
.pj-ms-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.pj-contract { margin-bottom: 14px; }
.pj-ch { display: flex; gap: 12px; align-items: center; }
.pj-ch b { display: block; font-size: 17px; }
.pj-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; margin: 12px 0 0; }
.pj-dl dt { font-size: 12px; color: var(--muted); }
.pj-dl dd { margin: 0; font-weight: 600; }
.pj-edit { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.pj-edit summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.pj-why { padding-left: 18px; } .pj-why li { margin-bottom: 6px; }
.pj-ms-mini { padding-left: 18px; margin: 0 0 12px; }
.pj-stats { margin-top: 0; }
.pj-overview { margin-bottom: 14px; }
.pj-bigbar { position: relative; height: 16px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); margin: 6px 0 18px; }
.pj-bigbar > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s; }
.pj-bigbar i { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; }
.pj-bigbar i.plan { background: var(--text); }
.pj-bigbar i.tick { background: var(--border); top: auto; bottom: -9px; height: 7px; width: 7px; border-radius: 50%; margin-left: -3px; background: var(--muted); }
.pj-bigbar i.tick.ms-tercapai { background: var(--assist); } .pj-bigbar i.tick.ms-disetujui { background: var(--info); } .pj-bigbar i.tick.ms-dibayar { background: var(--gen); }
.pj-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; }
@media (max-width: 860px) { .pj-grid { grid-template-columns: 1fr; } }
.pj-ms { list-style: none; padding: 0; margin: 0; }
.pj-ms li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pj-ms li:last-child { border-bottom: 0; }
.pj-ms .pj-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; border: 2px solid var(--muted); flex: none; }
.pj-ms .ms-tercapai .pj-dot { border-color: var(--assist); background: var(--assist); }
.pj-ms .ms-disetujui .pj-dot { border-color: var(--info); background: var(--info); }
.pj-ms .ms-dibayar .pj-dot { border-color: var(--gen); background: var(--gen); }
.pj-ms .badge { margin-right: 6px; }
.pj-curve .line.plan { stroke: var(--muted); stroke-dasharray: 5 4; }
.pj-curve .line.act { stroke: var(--accent); stroke-width: 2.5; }
.pj-curve circle.act { fill: var(--accent); }
.pj-curve .today { stroke: var(--assist); stroke-dasharray: 3 3; }
.pj-curve .today-t { fill: var(--assist); font-size: 11px; }
.pj-legend { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.pj-legend .lg { width: 18px; height: 0; border-top: 2px dashed var(--muted); display: inline-block; }
.pj-legend .lg.act { border-top: 3px solid var(--accent); margin-left: 10px; }
.pj-items { margin-top: 14px; } .pj-items summary, .pj-new summary { cursor: pointer; }
.pj-ibar { display: inline-block; width: 60px; height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); margin-right: 6px; vertical-align: middle; overflow: hidden; }
.pj-ibar span { display: block; height: 100%; background: var(--accent); }
.pj-it input.pj-pin { width: 80px; text-align: right; }
.pj-new { margin-bottom: 14px; }
.pj-new[open] summary { margin-bottom: 12px; }
.pj-photo-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 6px; }
.pj-thumbs { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pj-th { position: relative; display: inline-block; }
.pj-th img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.pj-th button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--orig); color: #fff; cursor: pointer; line-height: 1; }
.pj-feed-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 10px; }
.pj-feed-head h3 { margin: 0; }
.pj-compose { border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: var(--surface-2); margin-bottom: 14px; }
.pj-compose textarea { width: 100%; border: 0; background: transparent; resize: vertical; font: inherit; color: var(--text); }
.pj-compose textarea:focus { outline: none; }
.pj-compose-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pj-feed { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pj-feed > li { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--surface); }
.pj-feed p { margin: 6px 0; white-space: pre-wrap; }
.pj-sys { display: flex; gap: 8px; background: var(--surface-2) !important; font-size: 14px; }
.pj-sys.ev-reached { border-color: var(--assist) !important; background: var(--assist-bg) !important; }
.pj-sys.ev-approve { border-color: var(--info) !important; background: var(--info-bg) !important; }
.pj-sys.ev-paid { border-color: var(--gen) !important; background: var(--gen-bg) !important; }
.pj-msg.from-admin { border-left: 4px solid var(--info) !important; }
.pj-rep { border-left: 4px solid var(--accent) !important; }
.pj-rep.st-revisi { border-left-color: var(--orig) !important; opacity: .85; }
.pj-rep-h { display: flex; gap: 10px; align-items: flex-start; }
.pj-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 6px; }
.pj-kendala { color: var(--assist); }
.pj-chg summary { cursor: pointer; font-size: 13px; color: var(--accent); }
.pj-chg ul { margin: 4px 0; padding-left: 18px; font-size: 13px; }
.pj-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-top: 8px; }
.pj-ph { padding: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); aspect-ratio: 4 / 3; }
.pj-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-review { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.pj-review.revisi { background: var(--orig-bg); }
.pl-table tr[data-go] { cursor: pointer; }
.pl-table tr[data-go]:hover td { background: var(--surface-2); }
.pj-mbar { position: relative; overflow: visible; }
.pj-mbar span { border-radius: 99px; }
.pj-mbar i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); }
.pk-locked .drop, .pk-locked .danger { display: none !important; }
.pj-ic { font-weight: 800; min-width: 18px; text-align: center; color: var(--muted); }
.pj-feed-head h3 .btn { margin-left: 8px; vertical-align: 2px; text-transform: none; letter-spacing: 0; }
.pj-ms-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
/* ---- proyek: target output (KPI) */
.pj-basis { margin: 4px 0 6px; flex-wrap: wrap; }
.pj-basis-note { font-size: 13px; margin: 0 0 10px; }
.pj-out { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin: 0 0 10px; background: var(--surface-2); }
.pj-stages { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 2px 0 8px; font-size: 13px; }
.pj-stages span { background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 1px 8px; }
.pj-stages span.last { border-color: var(--gen); color: var(--gen); font-weight: 600; }
.pj-stages i { color: var(--muted); font-style: normal; }
.pj-syarat { max-width: 420px; }
.pj-units summary { cursor: pointer; margin: 4px 0; }
.pj-unit-edit input { width: 100%; min-width: 110px; }
.pj-cond { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.pj-cond input { width: 64px; }
.pj-cond select { max-width: 200px; }
.pj-target { margin: 8px 0 0; font-size: 14px; }
.pj-kpi-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.pj-kpi-h h3 { margin: 0; }
.pj-kpo { margin: 10px 0 14px; }
.pj-kpo-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.pj-big { font-size: 22px; color: var(--gen); }
.pj-ubar { position: relative; height: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; margin: 6px 0 10px; }
.pj-ubar span { display: block; height: 100%; background: var(--gen); border-radius: 99px; }
.pj-ubar .tick { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--muted); transform: translateX(-1px); }
.pj-ubar .tick.ms-tercapai, .pj-ubar .tick.ms-disetujui, .pj-ubar .tick.ms-dibayar { background: var(--gen); }
.pj-units-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pj-unit { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: var(--surface); display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.pj-unit.go { border-color: var(--info); }
.pj-unit.pend { border-color: var(--assist); background: var(--assist-bg); }
.pj-unit.done { border-color: var(--gen); background: var(--gen-bg); }
.pj-unit small { color: var(--muted); line-height: 1.3; }
.pj-unit.done small { color: var(--gen); font-weight: 600; }
.pj-dots { display: flex; gap: 3px; }
.pj-dots i, .lg.dot { width: 14px; height: 6px; border-radius: 3px; background: var(--border); display: inline-block; }
.pj-dots i.v, .lg.dot.v { background: var(--gen); }
.pj-dots i.c, .lg.dot.c { background: var(--assist); }
.pj-claims { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.pj-claims.in-feed { margin: 8px 0; }
.pj-claim { border: 1px solid var(--border); border-left: 4px solid var(--info); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.pj-claim.st-terverifikasi { border-left-color: var(--gen); }
.pj-claim.st-ditolak { border-left-color: var(--orig); }
.pj-claim-h { display: flex; gap: 10px; align-items: flex-start; }
.pj-claim p { margin: 6px 0; }
.pj-flags { list-style: none; padding: 0; margin: 6px 0; color: var(--assist); font-size: 13px; font-weight: 600; }
.pj-flags.ok { color: var(--gen); }
.pj-cphs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pj-cph { margin: 0; width: 150px; }
.pj-cph .pj-ph { width: 150px; height: 110px; padding: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); }
.pj-cph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-cph figcaption { font-size: 11.5px; color: var(--muted); line-height: 1.35; margin-top: 3px; }
.pj-verify { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.pj-verify input { flex: 1; min-width: 200px; }
.pj-cedit { border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; background: var(--surface-2); }
.pj-th { position: relative; }
.pj-th em { position: absolute; left: 2px; bottom: 2px; font-style: normal; font-size: 10px; padding: 0 4px; border-radius: 4px; background: var(--gen); color: #fff; }
.pj-th em.warn { background: var(--orig); }
.pl-kpi { font-size: 13px; margin-bottom: 4px; }

/* ---------- Panduan per peran ---------- */
#nav-help .ic { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 11px; font-weight: 700; line-height: 1; }
.auth-help { margin-top: 6px; font-size: 13px; }
.hp-roles { margin: 0 0 16px; }
.hp-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.hp-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.hp-toc input { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; margin-bottom: 10px; }
.hp-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 2px; }
.hp-toc li { font-size: 14px; }
.hp-toc li.hp-toc-faq { list-style: none; margin-left: -20px; margin-top: 6px; }
.hp-toc a { display: block; padding: 4px 6px; border-radius: 6px; color: var(--text); text-decoration: none; }
.hp-toc a:hover { background: var(--surface-2); }
.hp-toc a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
#hp-body { display: grid; gap: 14px; }
.hp-intro p { margin: 6px 0 0; color: var(--muted); }
.hp-intro { border-left: 4px solid var(--gold); }
.hp-sec { scroll-margin-top: 84px; }
.hp-sec-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.hp-sec-head h3 { margin: 0; }
.hp-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.hp-where { color: var(--muted); font-size: 12.5px; }
.hp-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.hp-steps li { padding-left: 2px; }
.hp-tip { margin: 10px 0 0; }
.hp-qa { border-top: 1px solid var(--border); padding: 8px 0; }
.hp-qa:first-of-type { border-top: 0; }
.hp-qa summary { cursor: pointer; font-weight: 600; }
.hp-qa p { margin: 6px 0 0; color: var(--muted); }
.hp-sec.flash { animation: hp-flash 1.6s var(--ease); }
@keyframes hp-flash { 0%, 30% { box-shadow: var(--ring), var(--shadow); border-color: var(--gold); } 100% { box-shadow: var(--shadow); } }
@media (max-width: 860px) {
  .hp-grid { grid-template-columns: 1fr; }
  .hp-toc { position: static; }
}
@media (max-width: 640px) { #nav-help .lbl { display: none; } }
#print-area .hp-paper .card { box-shadow: none; border: 0; padding: 0; margin: 0 0 14px; }
#print-area .hp-paper .hp-sec { page-break-inside: avoid; }
#print-area .hp-print-title { font-size: 20px; margin: 0 0 12px; }
