/* SIADA Presisi (Go) - token desain dan komponen dari HANDOFF.md / mockup 01-04 */
:root {
  --ink: #1c2230; --ink-2: #4b5563; --ink-3: #6b7280;
  --line: #e5e3dc; --line-2: #efede7; --field: #cfd3da;
  --paper: #f6f5f1; --paper-2: #faf9f6; --white: #fff;
  --brand: #c1272d; --gold: #e3b23c;
  --success: #1e7f4f; --success-bg: #e6f4ec;
  --info: #2f5d8a; --info-bg: #e8f0fa;
  --warning: #8a5a0b; --warning-bg: #fdf4e3; --warning-dot: #b7791f;
  --danger: #a32626; --danger-bg: #fdecec;
  --purple: #5b3a8a; --purple-bg: #f3ecfa;
  --r-6: 6px; --r-8: 8px; --r-10: 10px; --r-12: 12px; --r-pill: 999px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.12);
  --shadow-menu: 0 12px 32px rgba(28,34,48,.16);
  --shadow-dialog: 0 20px 50px rgba(28,34,48,.18);
  --sidebar-w: 240px; --rail-w: 64px; --topbar-h: 64px;
  --control-h: 42px; --control-h-sm: 38px; --control-h-xs: 32px; --btn-h: 44px; --btn-h-dialog: 40px;
  --dialog-w: 480px; --form-w: 640px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.45; }
a { color: var(--ink); } a:hover { color: var(--brand); }
input, select, button, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
.muted { color: var(--ink-3); } .muted-2 { color: var(--ink-2); }
.small { font-size: 12px; } .tiny { font-size: 11px; }
.bold { font-weight: 700; } .semibold { font-weight: 600; }
.nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hidden { display: none !important; }
.flex { display: flex; } .col { display: flex; flex-direction: column; } .center { align-items: center; } .between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.mt-auto { margin-top: auto; } .ml-auto { margin-left: auto; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: var(--rail-w) var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.rail { background: #f5f6fa; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 18px 0 16px; gap: 28px; position: sticky; top: 0; height: 100vh; }
.rail img { height: 34px; width: auto; }
.rail .vert { writing-mode: vertical-lr; text-orientation: upright; letter-spacing: 14px; font-size: 13px; font-weight: 900; color: rgba(0,0,0,.2); user-select: none; }
.rail small { margin-top: auto; padding-top: 16px; font-size: 8px; color: var(--ink-3); text-align: center; line-height: 1.4; }
.sidebar { background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 20px 14px; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { display: flex; flex-direction: column; padding: 4px 8px; }
.sidebar .brand b { font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.sidebar .brand span { font-size: 11px; color: rgba(255,255,255,.6); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-title { padding: 0 12px 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.45); }
.nav-title.group { padding-top: 14px; padding-bottom: 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-8); font-size: 14px; font-weight: 500; color: #fff; text-decoration: none; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.active { font-weight: 700; background: rgba(255,255,255,.12); }
.nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav a .label { flex: 1; }
.nav-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sidebar .foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar .foot a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-8); font-size: 14px; color: rgba(255,255,255,.85); text-decoration: none; }
.sidebar .foot a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar .foot a svg { width: 18px; height: 18px; flex-shrink: 0; }
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar .ttl { display: flex; flex-direction: column; min-width: 0; }
.topbar .ttl b { font-size: 16px; font-weight: 700; }
.topbar .ttl span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: var(--r-8); border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: var(--r-8); border: 1px solid var(--line); text-decoration: none; }
.user-chip .ini { width: 30px; height: 30px; border-radius: var(--r-6); background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.user-chip .nm { display: flex; flex-direction: column; }
.user-chip .nm b { font-size: 13px; font-weight: 600; line-height: 1.2; }
.user-chip .nm span { font-size: 11px; color: var(--ink-3); }
.content { padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 24px; }
.topbar .ttl.crumb .crumb-row { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; }
.topbar .ttl.crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.topbar .ttl.crumb a:hover { color: var(--ink); }
.topbar .ttl.crumb i { font-style: normal; color: var(--field); }
.topbar .ttl.crumb b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-toggle { display: none; }
.m-only, .chips { display: none; }
.panel-dark.m-only-block { display: none; }
.sidebar-backdrop { display: none; }

/* ---------- Kartu, tabel ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-10); overflow: hidden; }
.card:has(.dd.open) { overflow: visible; z-index: 8; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-h .t { font-size: 15px; font-weight: 700; }
.card-h .s { font-size: 12px; color: var(--ink-3); }
.card-b { padding: 20px 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stat { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-10); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.stat:hover { color: var(--ink); border-color: var(--field); }
.stat .lbl { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.stat .dot { width: 10px; height: 10px; border-radius: 50%; }
.stat .val { font-size: 30px; font-weight: 800; line-height: 1; }
.stat .ket { font-size: 12px; color: var(--ink-3); }
.dot-warning { background: var(--warning-dot); } .dot-info { background: var(--info); } .dot-success { background: var(--success); } .dot-danger { background: var(--danger); }
.grid { display: grid; gap: 0 12px; align-items: center; padding: 14px 20px; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.grid.head { padding: 10px 20px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.grid.row:hover { background: var(--paper-2); }
.grid .two { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.grid .two > span:last-child { font-size: 12px; color: var(--ink-3); }
.grid a.kode { font-weight: 700; text-decoration: none; }
.grid a.paket { font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.nodot::before { display: none; }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-neutral { background: #f3f4f6; color: var(--ink); }
.tag { display: inline-flex; padding: 3px 8px; border-radius: var(--r-6); font-size: 12px; font-weight: 600; }
.status-cell { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.status-cell .sub { font-size: 11px; color: var(--ink-3); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; font-size: 13px; color: var(--ink-3); gap: 12px; flex-wrap: wrap; }
.pager .pg { display: flex; gap: 4px; }
.pager button, .pager a { height: 30px; min-width: 30px; padding: 0 10px; border-radius: var(--r-6); border: 1px solid var(--line); background: #fff; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
.pager .pg span { height: 30px; min-width: 30px; padding: 0 10px; border-radius: var(--r-6); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.pager .cur { border: none; background: var(--ink); color: #fff; font-weight: 700; }
.pager .pg span.off { border: 1px solid var(--line); color: #c4c7ce; background: #fff; }
.pager .pg span.gap { color: var(--ink-3); padding: 0 4px; }
.grid.row.row-busy { display: block; color: var(--ink-2); font-weight: 600; background: var(--paper-2); }
.grid.row.row-done { color: var(--success); background: var(--success-bg); }
.grid.row.row-fail { color: var(--danger); background: var(--danger-bg); }
.chip { height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control-h-sm); padding: 0 14px; border-radius: var(--r-8); border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--ink); border-color: var(--field); }
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); } .btn-primary:hover { color: #fff; background: #2a3242; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); } .btn-danger:hover { color: #fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); } .btn-success:hover { color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-lg { height: var(--btn-h); padding: 0 20px; font-size: 14px; font-weight: 700; }
.btn-dialog { height: var(--btn-h-dialog); }
.btn-xs { height: 30px; padding: 0 10px; font-size: 12px; border-radius: var(--r-6); }
.btn-row { height: var(--control-h-xs); padding: 0 12px; font-size: 12px; border-radius: var(--r-6); font-weight: 700; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: var(--r-6); }
.btn-icon svg { width: 16px; height: 16px; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.field .help { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.field .err { font-size: 12px; font-weight: 500; color: var(--danger); }
.input, .select, .textarea { width: 100%; min-width: 0; height: var(--control-h); border: 1px solid var(--field); border-radius: var(--r-8); padding: 0 12px; font-size: 14px; font-weight: 400; background: #fff; outline: none; }
.pw { position: relative; display: block; }
.pw .input { padding-right: 44px; }
.pw-toggle { position: absolute; top: 0; right: 0; width: 42px; height: 100%; border: 0; background: transparent; color: var(--ink-3); display: flex; align-items: center; justify-content: center; border-radius: 0 var(--r-8) var(--r-8) 0; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.pw-toggle .when-on { display: none; }
.pw-toggle.on .when-off { display: none; }
.pw-toggle.on .when-on { display: block; }
.input:focus, .textarea:focus { border-color: var(--ink); }
.input[readonly], .input.ro { background: var(--paper-2); color: var(--ink-3); }
.input.sm { height: var(--control-h-sm); font-size: 13px; }
.textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 96px; }
.affix { display: flex; border: 1px solid var(--field); border-radius: var(--r-8); overflow: hidden; height: var(--control-h); background: #fff; }
.affix:focus-within { border-color: var(--ink); }
.affix input { flex: 1; border: none; padding: 0 12px; font-size: 14px; outline: none; min-width: 0; font-weight: 400; }
.affix .seg { display: flex; align-items: center; padding: 0 12px; background: #f3f4f6; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.affix .seg.l { border-right: 1px solid var(--field); } .affix .seg.r { border-left: 1px solid var(--field); }
.date { display: flex; align-items: center; height: var(--control-h); border: 1px solid var(--field); border-radius: var(--r-8); padding: 0 12px; gap: 10px; background: #fff; }
.date:focus-within { border-color: var(--ink); }
.date svg { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }
.date input { flex: 1; border: none; outline: none; font-size: 14px; min-width: 0; background: transparent; font-weight: 400; }
/* altInput Flatpickr membawa kelas .input dan readonly: jangan diberi latar abu dan bingkai kedua */
.date input.input, .date input[readonly] { width: 100%; height: auto; padding: 0; border: none; border-radius: 0; background: transparent; color: var(--ink); }
.seg-toggle { display: flex; gap: 8px; }
.seg-toggle label { flex: 1; display: flex; align-items: center; justify-content: center; height: var(--control-h); border-radius: var(--r-8); border: 1px solid var(--field); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg-toggle input { display: none; }
.seg-toggle input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.upload { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; border: 1px dashed var(--field); border-radius: var(--r-8); background: var(--paper-2); color: var(--ink-2); font-size: 13px; font-weight: 500; cursor: pointer; position: relative; padding: 10px 12px; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload.has { justify-content: flex-start; gap: 12px; }
.upload.has.ok { border-style: solid; border-color: var(--success); background: #f2faf5; }
.pdf-ico { width: 36px; height: 36px; border-radius: var(--r-6); background: var(--danger-bg); color: var(--danger); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.upload .fn { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.upload .fn b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload .fn span { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.search { display: flex; align-items: center; gap: 8px; height: var(--control-h-sm); padding: 0 12px; border-radius: var(--r-8); border: 1px solid var(--line); background: #fff; width: 300px; max-width: 100%; }
.search svg { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }
.search input { border: none; outline: none; font-size: 13px; flex: 1; min-width: 0; background: transparent; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters .select2-container { min-width: 170px; }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-8); font-size: 13px; line-height: 1.5; }
.alert-danger { background: var(--danger-bg); color: #8a1c1c; }
.alert-warning { background: var(--warning-bg); color: var(--warning); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-info { background: var(--info-bg); color: var(--info); }
.sep { height: 1px; background: var(--line-2); }

/* ---------- Dropdown menu baris ---------- */
.dd { position: relative; }
.dd-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); width: 280px; max-height: min(70vh, 420px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-10); box-shadow: var(--shadow-menu); padding: 6px; flex-direction: column; z-index: 30; }
.dd.open .dd-menu { display: flex; }
.dd.open > .btn-icon { border-color: var(--ink); background: var(--ink); color: #fff; }
.dd-menu a, .dd-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-6); font-size: 13px; text-decoration: none; color: var(--ink); background: none; border: none; text-align: left; width: 100%; cursor: pointer; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--paper); color: var(--ink); }
.dd-menu a.main { font-weight: 600; flex-direction: row; min-width: 0; }
.dd-menu a.off { color: #9ca3af; pointer-events: none; }
.dd-menu a.danger, .dd-menu button.danger { color: var(--danger); }
.dd-menu .sep { margin: 4px 6px; }
.dd-menu svg { width: 15px; height: 15px; flex-shrink: 0; }
.dd-menu .two { display: flex; flex-direction: column; }
.dd-menu .two span:last-child { font-size: 11px; }
.dd-up .dd-menu { top: auto; bottom: calc(100% + 6px); }

/* ---------- Dialog ---------- */
.dialog-backdrop { position: fixed; inset: 0; background: rgba(28,34,48,.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.dialog { width: var(--dialog-w); max-width: 100%; background: #fff; border-radius: var(--r-12); box-shadow: var(--shadow-dialog); overflow: hidden; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.dialog.wide { width: min(1080px, calc(100vw - 32px)); }
.member-scroll { overflow-x: auto; }
.dialog-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.dialog-h button { background: none; border: none; font-size: 20px; line-height: 1; color: var(--ink-3); cursor: pointer; }
.dialog-b { padding: 22px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.dialog-f { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--paper-2); }
.nomor-box { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--r-8); background: var(--paper); border: 1px solid var(--line); }
.nomor-box .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.nomor-box .v { font-family: ui-monospace, monospace; font-size: 18px; font-weight: 700; }

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 16px 1fr; gap: 0 12px; }
.tl .rail-dot { display: flex; flex-direction: column; align-items: center; }
.tl .rail-dot span:first-child { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; box-shadow: 0 0 0 3px #fff; }
.tl .rail-dot span:last-child { flex: 1; width: 2px; background: var(--line); }
.tl:last-child .rail-dot span:last-child { background: transparent; }
.tl .body { display: flex; flex-direction: column; gap: 3px; padding-bottom: 18px; }
.tl .body .j { font-size: 13px; font-weight: 600; line-height: 1.35; }
.tl .body .c { font-size: 12px; line-height: 1.5; color: var(--ink-2); padding: 8px 10px; border-radius: var(--r-6); background: var(--paper-2); }
.tl .body .w { font-size: 12px; color: var(--ink-3); }
.tl .body a.f { font-size: 12px; }

/* ---------- Detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; align-items: start; }
.detail .left { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.detail .right { display: flex; flex-direction: column; gap: 20px; }
.detail .full { grid-column: 1 / -1; }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.info-grid .k { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.info-grid .v { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.info-grid > div { min-width: 0; }
@media (max-width: 1400px) { .detail .info-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.panel-dark { border-radius: var(--r-10); background: var(--ink); color: #fff; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel-dark .eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.panel-dark .t { font-size: 15px; font-weight: 700; line-height: 1.3; }
.panel-dark .s { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.5; }
.panel-dark .btn-white { height: 44px; border: none; border-radius: var(--r-8); background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; }
.panel-dark .btn-outline { height: 40px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-8); background: transparent; color: #fff; font-size: 13px; font-weight: 600; }
.berkas { display: flex; align-items: center; gap: 14px; padding: 12px 24px; border-bottom: 1px solid var(--line-2); }
.berkas .two { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.berkas .two b { font-size: 13px; font-weight: 600; }
.berkas .two span { font-size: 12px; color: var(--ink-3); }

/* ---------- Pokja form rows ---------- */
.pokja-head, .pokja-row { display: grid; grid-template-columns: 36px 150px minmax(0,1.3fr) 150px 110px minmax(0,1fr) 120px 130px 40px; gap: 0 10px; padding: 12px 24px; border-bottom: 1px solid var(--line-2); align-items: start; }
.pokja-head { padding: 10px 24px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.pokja-row .input { height: 38px; border-radius: var(--r-6); padding: 0 10px; font-size: 13px; }
.pokja-row .no { font-size: 13px; font-weight: 600; padding-top: 10px; }
.pokja-row .msg { font-size: 11px; color: var(--ink-3); margin-top: 4px; display: block; }
.pokja-row.ok .msg { color: var(--success); } .pokja-row.ok .chk { border-color: var(--success); }
.pokja-row.bad .msg { color: var(--danger); } .pokja-row.bad .chk { border-color: var(--danger); }
.pokja-row .del { width: 38px; height: 38px; border-radius: var(--r-6); border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--danger); }
.counter { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 520px 1fr; background: #fff; }
.auth .form-side { padding: 64px 72px; display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.auth .form-side img.logo { height: 48px; width: auto; align-self: flex-start; }
.auth .lead { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.auth .promo { background: var(--ink); color: #fff; padding: 72px; display: flex; align-items: center; justify-content: center; }
.auth .promo .inner { width: 100%; max-width: 550px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.auth .promo img { width: 100%; height: auto; border-radius: var(--r-10); }
.auth .promo h4 { font-size: 18px; font-weight: 700; text-align: center; }
.auth .dots { display: flex; gap: 8px; } .auth .dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); } .auth .dots span.on { background: #fff; }
.auth .btn-lg { height: 46px; font-size: 15px; }
.otp-boxes { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }
.otp-boxes input { height: 56px; text-align: center; font-size: 22px; font-weight: 700; border: 1px solid var(--field); border-radius: var(--r-8); outline: none; min-width: 0; width: 100%; }
.otp-boxes input:focus, .otp-boxes input.filled { border-color: var(--ink); }

/* ---------- Public ---------- */
.pub { background: #fff; color: var(--ink); }
.pub-nav { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 56px; border-bottom: 1px solid var(--line); gap: 16px; }
.pub-nav img { height: 40px; width: auto; }
.pub-nav .links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.pub-nav .links a { text-decoration: none; }
.pub-nav .links a.btn { height: 40px; padding: 0 18px; }
.pub-nav .burger { display: none; }
.hero { background: var(--ink); color: #fff; padding: 80px 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.hero h2 { font-size: 48px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.hero p { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.8); max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .cta a { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: var(--r-8); font-size: 15px; font-weight: 700; text-decoration: none; }
.hero .cta a.w { background: #fff; color: var(--ink); } .hero .cta a.o { border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 600; }
.hero .panel { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.hero .panel img { width: 220px; height: auto; }
.hero .nums { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.hero .nums b { font-size: 30px; font-weight: 800; display: block; } .hero .nums span { font-size: 12px; color: rgba(255,255,255,.7); }
.steps { padding: 48px 56px; }
.steps .wrap { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; position: relative; }
.steps .line { position: absolute; left: 40px; right: 40px; top: 19px; height: 2px; background: var(--line); }
.steps .st { display: flex; flex-direction: column; gap: 10px; position: relative; padding-right: 20px; }
.steps .st .n { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; box-shadow: 0 0 0 6px #fff; }
.steps .st b { font-size: 14px; font-weight: 700; } .steps .st span { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.links-bar { padding: 24px 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.links-bar .k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.links-bar .l { display: flex; gap: 28px; font-size: 14px; font-weight: 600; color: var(--ink-2); flex-wrap: wrap; } .links-bar .l a { color: inherit; text-decoration: none; }
.pub-footer { padding: 40px 56px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; font-size: 13px; color: var(--ink-2); }
.pub-footer img { height: 32px; width: auto; align-self: flex-start; }
.pub-footer .c { display: flex; flex-direction: column; gap: 8px; } .pub-footer .c b { color: var(--ink); }
.pub-footer a { color: inherit; text-decoration: none; }
.pub-page { max-width: 720px; margin: 0 auto; padding: 48px 56px; display: flex; flex-direction: column; gap: 24px; }
.pub-page.wide { max-width: 1280px; }
.pub-page h2 { font-size: 28px; font-weight: 800; }
.faq-item { display: flex; flex-direction: column; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--ink-3); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.reg-group { display: flex; flex-direction: column; gap: 8px; }
.reg-group .k { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.reg-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-8); border: 1px solid var(--line); text-decoration: none; }
.reg-file .pdf-ico { width: 34px; height: 34px; } .reg-file b { font-size: 14px; font-weight: 600; flex: 1; }
.chart-bars { display: grid; grid-template-columns: repeat(12,1fr); gap: 10px; align-items: end; height: 200px; }
.chart-bars .b { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bars .b .bar { width: 100%; border-radius: 4px 4px 0 0; background: var(--ink); min-height: 2px; }
.chart-bars .b .n { font-size: 11px; color: var(--ink-3); } .chart-bars .b .l { font-size: 11px; font-weight: 600; }
.comp { display: flex; flex-direction: column; gap: 5px; }
.comp .r { display: flex; justify-content: space-between; font-size: 13px; }
.comp .trk { height: 6px; border-radius: 3px; background: #f3f4f6; overflow: hidden; } .comp .trk div { height: 100%; }
.cek-hero { padding: 56px 20px 22px; background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 14px; }
.cek-status { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-10); }
.cek-status.ok { background: var(--success); } .cek-status.no { background: var(--danger); }
.cek-status b { font-size: 15px; font-weight: 800; display: block; } .cek-status span { font-size: 12px; color: rgba(255,255,255,.85); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 13px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.kv span:first-child { color: var(--ink-3); } .kv span:last-child { font-weight: 600; }
.cek-pdp { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

.cek-list { display: none; }
.cek-table { margin: 0 -16px -16px; border-top: 1px solid var(--line-2); }
.cek-table .grid:last-child { border-bottom: none; }

/* ---------- Halaman galat ---------- */
.err-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.err-card { width: 100%; max-width: 480px; padding: 36px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.err-card .err-logo { height: 40px; width: auto; margin-bottom: 8px; }
.err-card .err-kode { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.err-card h1 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.err-card p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.err-card .err-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Notifikasi ---------- */
.notif-panel { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: 90vw; background: #fff; border: 1px solid var(--line); border-radius: var(--r-10); box-shadow: var(--shadow-menu); z-index: 30; max-height: 420px; overflow-y: auto; }
.notif-panel.open { display: block; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.notif-item b { display: block; font-weight: 600; } .notif-item span { font-size: 11px; color: var(--ink-3); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: 420px; }

/* ---------- Ponsel ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-nav { padding: 0 24px; } .hero { padding: 48px 24px; grid-template-columns: 1fr; } .hero h2 { font-size: 34px; }
  .steps { padding: 32px 24px; } .steps .wrap { grid-template-columns: 1fr; gap: 20px; } .steps .line { display: none; }
  .links-bar, .pub-footer { padding: 24px; } .pub-footer { grid-template-columns: 1fr; }
  .pub-page { padding: 32px 24px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .rail { display: none; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(28,34,48,.45); z-index: 39; }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .user-chip .nm { display: none; }
  .card-h { flex-wrap: wrap; }
  .content { padding: 16px 16px 100px; gap: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: minmax(0,1fr) !important; }
  .seg-toggle label { min-width: 0; padding: 0 10px; text-align: center; line-height: 1.2; font-size: 13px; }
  .grid.head { display: none; }
  .grid.row { grid-template-columns: 1fr !important; gap: 6px; padding: 14px; }
  .grid.row > * { min-width: 0; }
  /* Daftar permohonan jadi kartu (mockup 1f/2e, HANDOFF §2): kode · jadwal + status, nama paket, satker + pagu */
  .grid.row.m-card { border: 1px solid var(--line); border-radius: var(--r-10); background: #fff; }
  .grid.row.m-card { grid-template-columns: minmax(0,1fr) auto auto !important; grid-template-areas: "kode status status" "paket paket paket" "satker pagu aksi"; gap: 8px 10px; align-items: center; }
  .grid.row.m-card:hover { background: #fff; }
  .m-card .c-kode { grid-area: kode; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-card .c-status { grid-area: status; align-items: flex-end; }
  .m-card .c-status .sub { display: none; }
  .m-card .c-status { min-width: 0; justify-self: end; max-width: calc(100vw - 150px); }
  .m-card .c-status .badge { font-size: 11px; padding: 3px 9px; display: block; width: max-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .m-card .c-status .badge::before { display: inline-block; vertical-align: middle; margin: -2px 6px 0 0; }
  .d-only { display: none !important; }
  .m-card .c-paket { grid-area: paket; }
  .m-card .c-paket a.paket { white-space: normal; font-size: 14px; line-height: 1.35; }
  .m-card .c-paket > span { display: none; }
  .m-card .c-satker { grid-area: satker; }
  .m-card .c-satker > span { font-size: 12px; color: var(--ink-3); }
  .m-card .c-satker > span:last-child { display: none; }
  .m-card .c-pagu { grid-area: pagu; font-size: 12px; color: var(--ink-3); text-align: right; }
  .m-card .c-jadwal, .m-card .c-tujuan { display: none; }
  .m-card .c-aksi { grid-area: aksi; justify-content: flex-end; }
  .m-card .c-aksi .btn-icon { width: 30px; height: 30px; }
  .m-card .c-aksi:empty { display: none; }
  .m-card.row-busy { display: block; }
  .m-only { display: inline; }
  .panel-dark.m-only-block { display: flex; }
  .card:has(> .m-card) { background: transparent; border: none; overflow: visible; }
  .card:has(> .m-card) > .card-h { padding: 4px 4px 6px; border-bottom: none; }
  .card:has(> .m-card) > .m-card { margin: 0 0 10px; }
  .card:has(> .m-card) > .pager { padding: 6px 4px; }
  .panel-dark .m-btn { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; height: 46px; }
  .panel-dark a.btn-white:hover { color: var(--ink); } .panel-dark a.btn-outline:hover { color: #fff; }
  .filters .f-desk, .filters .f-desk + .select2-container { display: none !important; }
  .chips { display: flex; gap: 8px; overflow-x: auto; width: 100%; padding-bottom: 2px; }
  .filters #total-label { margin-left: 0; }
  .topbar .ttl.crumb a span { display: none; }
  .cek-table { display: none; }
  .cek-list { display: flex; }
  .pokja-head { display: none; }
  .pokja-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pokja-row > *:nth-child(1) { display: none; }
  .pokja-row > *:nth-child(3), .pokja-row > *:nth-child(6) { grid-column: 1 / -1; }
  .search { width: 100%; }
  .pub-nav .links { display: none; }
  .pub-nav .burger { display: inline-flex; }
  .pub-nav .links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--line); gap: 14px; z-index: 30; }
  .auth { grid-template-columns: 1fr; }
  .auth .form-side { padding: 72px 24px 32px; justify-content: flex-start; }
  .auth .promo { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat { padding: 14px; gap: 6px; } .stat .val { font-size: 22px; }
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px 28px; background: #fff; border-top: 1px solid var(--line); z-index: 10; }
  .sticky-cta .btn { width: 100%; height: 50px; font-size: 15px; font-weight: 700; }
  .sticky-cta.form-cta { display: flex; gap: 10px; }
  .sticky-cta.form-cta .btn { flex: 1; width: auto; }
  .dialog { width: 100%; }
}

/* ---------- Select2 & Flatpickr tema ---------- */
.select2-container--default .select2-selection--single { height: var(--control-h); border: 1px solid var(--field); border-radius: var(--r-8); display: flex; align-items: center; padding: 0 12px; font-size: 14px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; color: var(--ink); flex: 1; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; right: 8px; }
.select2-container--default.select2-container--open .select2-selection--single, .select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--ink); }
.select2-container--default.select2-container--open .select2-selection--single { border-radius: var(--r-8) var(--r-8) 0 0; }
.select2-dropdown { border: 1px solid var(--ink); border-top: none; border-radius: 0 0 var(--r-8) var(--r-8); box-shadow: var(--shadow-menu); padding: 8px; }
.select2-container--default .select2-search--dropdown .select2-search__field { height: 36px; border: 1px solid var(--field); border-radius: var(--r-6); padding: 0 10px; font-size: 13px; outline: none; }
.select2-container--default .select2-results__option { padding: 9px 10px; border-radius: var(--r-6); font-size: 13px; font-weight: 500; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ink); color: #fff; }
.select2-container--default .select2-results__option[aria-selected=true] { background: var(--paper); }
.select2-container--default .select2-results__option--highlighted[aria-selected=true] { background: var(--ink); color: #fff; }
.sel-sm + .select2-container--default .select2-selection--single { height: var(--control-h-sm); font-size: 13px; }
.flatpickr-calendar { width: 300px; border-radius: var(--r-10); box-shadow: var(--shadow-menu); border: 1px solid var(--line); font-family: inherit; padding: 8px; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: #c4c7ce; }
.flatpickr-day.today { border-color: var(--field); }
.flatpickr-months .flatpickr-month, .flatpickr-current-month { font-size: 14px; font-weight: 700; }
.flatpickr-weekday { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.fp-foot { display: flex; justify-content: space-between; padding: 8px 10px 4px; border-top: 1px solid var(--line-2); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.fp-foot a { cursor: pointer; }
