/* ============================================================
   QWorks Cost Estimate — stylesheet (turunan Earth Retaining Design)
   ============================================================ */
:root {
  --bg: #ECEEEC; --panel: #FFFFFF; --ink: #111827; --ink-2: #4B5563; --ink-3: #6B7280; --line: #E3E6E8;
  --side: #25292D; --side-2: rgba(255,255,255,.07); --side-ink: #E9ECEE; --side-mute: #9AA3AB;
  --accent: #E8B321; --accent-ink: #2A2206; --accent-2: #FBF1D3; --teal: #1F6F8B; --teal-2: #E3EFF4; --ok: #1F8A5B; --ok-2: #E1F3EA; --warn: #B7791F; --warn-2: #FCF1DA; --bad: #C0392B; --bad-2: #FBE3E0;
  --r: 12px; --shadow: 0 1px 2px rgba(16,38,43,.06), 0 4px 14px rgba(16,38,43,.05);
  --font: "Barlow", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; --display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif; --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
#app { display: grid; grid-template-columns: 272px 1fr; height: 100vh; }
a { color: var(--teal); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
small { color: var(--ink-3); font-size: 11px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.spacer { flex: 1; }
.hint { color: var(--ink-3); font-size: 12px; line-height: 1.4; margin-top: 4px; }
.notes { margin: 8px 0 0; padding-left: 18px; } .notes li { margin: 4px 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* ---- Sidebar (seragam dengan Pavement Design / Asphalt Lab: tekstur aspal, alur bergaris marka) ---- */
.sidebar { background-color: var(--side); color: var(--side-ink); display: flex; flex-direction: column; overflow-y: auto; padding: 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1.3px), radial-gradient(rgba(0,0,0,.25) 1px, transparent 1.4px); background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px; }
.lane-stripe { height: 4px; flex: none; background: repeating-linear-gradient(90deg, #EAB308 0 22px, transparent 22px 36px); }
.brand { display: flex; gap: 6px; align-items: center; height: 64px; padding: 0 16px; color: #fff; flex: none; }
.brand a { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; border-radius: 6px; }
.brand a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.brand img { height: 30px; width: auto; }
.brand-n { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.tag { flex: none; white-space: nowrap; border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 700; line-height: 1.3; }
.tag.mod { background: #EAB308; color: #030712; }
.tag.beta { color: #FCD34D; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(245,158,11,.4); }
.side-sec { font-size: 12px; color: var(--side-mute); padding: 14px 12px 6px; }
.proj-card { display: flex; gap: 10px; align-items: center; margin: 12px 18px 0; background: rgba(255,255,255,.07); border-radius: 10px; padding: 10px; }
.pc-ico { font-size: 20px; } .pc-n { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; } .pc-s { font-size: 11px; opacity: .7; }
.nav-in { padding: 0 10px 8px; }
.steps { position: relative; display: flex; flex-direction: column; gap: 1px; margin-bottom: 10px; }
.steps.road::before { content: ""; position: absolute; left: 20px; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: repeating-linear-gradient(to bottom, #E8B321 0 11px, transparent 11px 21px); opacity: .9; transform-origin: top; animation: roadDraw 1.2s cubic-bezier(.3,.7,.2,1) both; }
.steps.road::after { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 27px; border-left: 1px solid rgba(255,255,255,.12); border-right: 1px solid rgba(255,255,255,.12); pointer-events: none; }
@keyframes roadDraw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .steps.road::before { animation: none; } }
.step { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--side-ink); text-decoration: none; font-size: 14px; line-height: 1.25; }
.step:hover { background: rgba(255,255,255,.06); }
.step:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.step.on { background: rgba(232,179,33,.13); color: #fff; }
.step .sn { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 12px var(--display); background: #30353A; border: 2px solid #59626B; color: var(--side-ink); margin-left: -2px; transition: transform .2s; }
.step.done .sn { border-color: #5DBE8C; }
.step.on .sn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.08); }
.step .si { display: none; }
.others .step .si { display: grid; place-items: center; width: 22px; height: 22px; flex: none; color: var(--side-mute); } .others .step.on .si { color: var(--accent); }
.step .si svg { width: 18px; height: 18px; display: block; }
.step .sl { flex: 1; min-width: 0; } .step .sd { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #5DBE8C; font-size: 0; flex: none; }
.step .cnt { margin-left: auto; font: 600 12px var(--display); background: rgba(255,255,255,.1); padding: 1px 7px; border-radius: 9px; }
.side-foot { margin-top: auto; padding: 10px 18px 4px; font-size: 12px; line-height: 1.4; color: var(--side-mute); border-top: 1px solid rgba(255,255,255,.07); } .side-foot b { color: var(--side-ink); font-weight: 600; }

/* ---- Main --------------------------------------------------- */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 32px; background: rgba(236,238,236,.85); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(17,24,39,.1); position: sticky; top: 0; z-index: 5; }
.crumb { min-width: 0; flex: 1; } .crumb-t { font-family: var(--display); font-size: 1.05rem; font-weight: 600; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.chips { display: flex; gap: 6px; margin-top: 4px; overflow: hidden; } .chip { flex: none; white-space: nowrap; border-radius: 6px; padding: 2px 8px; font-size: 12px; line-height: 1.4; background: rgba(17,24,39,.05); color: #374151; box-shadow: inset 0 0 0 1px rgba(17,24,39,.1); } .chip.hi { background: #FEF3C7; color: #78350F; box-shadow: inset 0 0 0 1px rgba(217,119,6,.25); } .chip b { color: var(--ink); }
.saved { font-size: 13px; color: var(--ok); flex: none; }
/* Tombol "? Panduan" di kepala halaman → /panduan/cost-estimate#langkah-N (pola Frame Design) */
.help-link { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; } .help-q { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }
@media print { .help-link { display: none; } }
.content { flex: 1; overflow-y: auto; padding: 28px 32px 80px; }
.page-h { margin-bottom: 16px; } .kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #A16207; font-weight: 600; }
.page-h h1 { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 6px; } .lead { color: var(--ink-2); max-width: 820px; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } .two-col > div { min-width: 0; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .two-col, .three-col { grid-template-columns: 1fr; } }
@media (max-width: 860px) { #app { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* ---- Cards -------------------------------------------------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 16px; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.card-h h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; } .card-h .ico { width: 24px; height: 24px; border-radius: 7px; background: var(--teal-2); display: grid; place-items: center; font-size: 13px; }
.card-h .meta { margin-left: auto; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.card-b { padding: 14px 16px; }
.callout { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid transparent; font-size: 13px; }
.callout.info { background: var(--teal-2); border-color: #C6DCE5; } .callout.warn { background: var(--warn-2); border-color: #EBD3A3; } .callout.ok { background: var(--ok-2); border-color: #BFE3CF; } .callout.bad { background: var(--bad-2); border-color: #F0BDB6; }
.callout.big { padding: 18px 20px; font-size: 15px; }
.pbg-box { background: #FAFAF8; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; } .pbg-cat { display: inline-block; background: var(--warn-2); color: #7a4d0a; font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.corr-box { background: #FAFAF8; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 12px; }

/* ---- Forms -------------------------------------------------- */
.grid { display: grid; gap: 10px 14px; } .cols-1 { grid-template-columns: 1fr; } .cols-2 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .field.wide { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); } .unit { font-weight: 400; color: var(--ink-3); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #D5D9DD; border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31,111,139,.35); border-color: var(--teal); }
input[type=number] { font-family: var(--mono); font-variant-numeric: tabular-nums; } input:disabled { background: #F3F4F6; color: var(--ink-3); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--teal); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; margin: 2px 0 8px; }
.in-s { width: 80px; padding: 5px 7px; } .in-m { width: 100%; padding: 5px 7px; min-width: 120px; }
.inline { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; }
.btn { font: inherit; font-weight: 600; font-size: 13px; border-radius: 8px; padding: 8px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.btn:hover { background: #F7F7F5; } .btn.primary { background: #EAB308; border-color: #EAB308; color: #030712; box-shadow: inset 0 -2px 0 rgba(0,0,0,.14); } .btn.primary:hover { background: #FACC15; }
.btn.ghost { background: transparent; } .btn.small { padding: 5px 10px; font-size: 12px; } .btn.icon { padding: 3px 8px; line-height: 1; } .btn.danger { color: var(--bad); }
.row-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 10px; } .seg button { font: inherit; font-weight: 600; font-size: 13px; padding: 7px 14px; border: 0; background: #fff; color: var(--ink-2); cursor: pointer; } .seg button.on { background: var(--teal); color: #fff; } .seg.small button { padding: 4px 10px; font-size: 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; } .tabs button { font: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; } .tabs button.on { background: #111827; color: #fff; border-color: #111827; }
.toolbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.nav-foot { display: flex; justify-content: space-between; margin: 10px 0 30px; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; } summary { cursor: pointer; font-weight: 600; } details p { margin: 6px 0 0; color: var(--ink-2); }

/* ---- Tables ------------------------------------------------- */
.tbl-wrap { overflow-x: auto; } .tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 7px 8px; border-bottom: 1px solid var(--line); background: #FAFAF8; white-space: nowrap; }
.tbl td { padding: 7px 8px; border-bottom: 1px solid #EEF0F2; vertical-align: middle; font-variant-numeric: tabular-nums; }
.tbl.compact td, .tbl.compact th { padding: 5px 6px; font-size: 12px; } .tbl.input td { padding: 4px 6px; } .tbl.input select { min-width: 120px; padding: 5px 7px; } .tbl tr.hl td { background: var(--accent-2); } .tbl tr.grp td { background: #F3F4F6; }
.kv { display: grid; gap: 0; margin: 0; } .kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #EEF0F2; font-size: 13px; } .kv dt { color: var(--ink-2); margin: 0; } .kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; letter-spacing: .02em; }
.badge.ok { background: var(--ok-2); color: var(--ok); } .badge.bad { background: var(--bad-2); color: var(--bad); } .badge.warn { background: var(--warn-2); color: var(--warn); } .badge.info { background: var(--teal-2); color: var(--teal); }

/* ---- Tiles -------------------------------------------------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; } .tiles.four { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
@media (max-width: 1100px) { .tiles.four { grid-template-columns: 1fr 1fr; } }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); }
.tile-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); font-weight: 600; } .tile-top .badge { margin-left: auto; } .tile-ico { color: var(--teal); font-size: 14px; }
.tile-val { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; } .tile-unit { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 3px; } .tile-sub { font-size: 11px; color: var(--ink-3); font-family: var(--mono); margin-top: 2px; }

/* ---- Charts ------------------------------------------------- */
.chart { width: 100%; height: auto; max-width: 100%; font-family: var(--font); display: block; }
.ch-grid { stroke: #ECEEF0; stroke-width: 1; } .ch-frame { fill: none; stroke: #CBD0D5; } .ch-zero { stroke: #9aa3ad; stroke-dasharray: 2 2; }
.ch-tick { font-size: 10px; fill: var(--ink-3); } .ch-axis { font-size: 11px; fill: var(--ink-2); } .ch-title { font-size: 12px; font-weight: 600; fill: var(--ink); } .ch-ref { font-size: 10px; font-weight: 600; } .ch-legend { font-size: 10px; fill: var(--ink-2); } .ch-lab { font-size: 11px; fill: var(--ink); } .b { font-weight: 600; }
.ch-line { animation: draw 1.2s ease-out both; stroke-dasharray: 3000; stroke-dashoffset: 3000; } @keyframes draw { to { stroke-dashoffset: 0; } }
@media print { .ch-line { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; } }
.panels { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr 1fr; gap: 8px; } .panels > div { min-width: 0; background: #FAFAF8; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } .tpl { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #FAFAF8; display: flex; flex-direction: column; } .tpl p { color: var(--ink-2); font-size: 12px; flex: 1; }
@media (max-width: 1100px) { .tpl-grid { grid-template-columns: 1fr 1fr; } .panels { grid-template-columns: 1fr 1fr; } }
.flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; } .flow-step { flex: 1 1 150px; background: #FAFAF8; border: 1px solid var(--line); border-radius: 10px; padding: 10px; position: relative; animation: pop .5s ease both; }
.flow-step:nth-child(2n) { animation-delay: .05s; } .flow-step:nth-child(3n) { animation-delay: .1s; } @keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.flow-n { width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; margin-bottom: 6px; } .flow-t { font-weight: 600; font-size: 13px; } .flow-d { font-size: 11px; color: var(--ink-3); } .flow-arrow { align-self: center; color: var(--ink-3); }

/* ---- Report -------------------------------------------------- */
.report { background: #fff; max-width: 900px; margin: 0 auto; padding: 40px 48px; border: 1px solid var(--line); box-shadow: var(--shadow); color: #111; }
.rep-cover { min-height: 60vh; display: flex; flex-direction: column; gap: 14px; padding-bottom: 30px; border-bottom: 2px solid #111; margin-bottom: 30px; }
.rep-brand { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #A16207; font-weight: 700; } .rep-brand span { color: var(--ink-3); font-weight: 400; letter-spacing: 0; text-transform: none; }
.rep-cover h1 { font-size: 30px; line-height: 1.15; } .rep-sub { color: var(--ink-2); font-size: 15px; }
.rep-status { align-self: flex-start; padding: 6px 14px; border-radius: 8px; font-weight: 700; font-size: 13px; } .rep-status.ok { background: var(--ok-2); color: var(--ok); } .rep-status.bad { background: var(--bad-2); color: var(--bad); }
.rep-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: auto; font-size: 12px; } .rep-sign .line { height: 60px; border-bottom: 1px solid #111; margin-bottom: 6px; }
.rep-sec { margin-bottom: 28px; page-break-inside: auto; } .rep-sec h2 { font-size: 18px; border-bottom: 1px solid #111; padding-bottom: 4px; margin-bottom: 10px; } .rep-sec h3 { font-size: 14px; margin: 14px 0 6px; } .rep-sec p { margin: 6px 0; font-size: 13px; }
.rep-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.rep-fig { margin: 10px 0; text-align: center; } .rep-fig.narrow svg { max-width: 260px; margin: 0 auto; } .rep-fig figcaption { font-size: 11px; color: var(--ink-2); margin-top: 4px; } .refs { font-size: 12px; padding-left: 18px; } .refs li { margin: 3px 0; }
.report .tbl { font-size: 11.5px; } .report .tbl th { font-size: 10px; } .report .kv > div { font-size: 12px; padding: 4px 0; }

@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { background: #fff; font-size: 12px; } #app { display: block; height: auto; }
  .sidebar, .topbar, .no-print, .nav-foot { display: none !important; }
  .content { overflow: visible; padding: 0; } .report { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .rep-cover { page-break-after: always; min-height: 80vh; } .rep-sec { page-break-inside: auto; } .rep-sec h2 { page-break-after: avoid; } .rep-fig, .tbl-wrap, .rep-two { page-break-inside: avoid; }
  .page-h, .card, .tiles, .callout, .tabs, .toolbar-row { display: none; }
}

/* ---- Integrasi QWorks: pindah modul, pengguna, catatan hitung ---- */
.rail-mods { flex: none; margin-top: 10px; padding: 10px 12px 12px; border-top: 1px solid rgba(255,255,255,.07); }
.mods { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 8px; } .mods a { display: block; font-size: 12px; line-height: 18px; text-align: center; padding: 6px 3px; border-radius: 8px; color: var(--side-ink); text-decoration: none; border: 1px solid rgba(255,255,255,.12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mods a:hover { background: rgba(255,255,255,.06); color: #fff; } .mods a:focus-visible { outline: 2px solid #EAB308; outline-offset: 2px; }
.user-box { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.user-ini { width: 36px; height: 36px; border-radius: 50%; background: #EAB308; color: #030712; font: 600 15px var(--display); display: grid; place-items: center; flex: none; }
.user-txt { min-width: 0; flex: 1; } #user-name { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #user-email { font-size: 11px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-box .btn { color: var(--side-ink); border-color: transparent; font-size: 16px; } .user-box .btn:hover { background: rgba(255,255,255,.08); }
.rep-verify { margin: 6px 0; }
.calc-note { font-size: 11px; color: var(--ink-3); max-width: 900px; margin: 10px 0 0; } .calc-note:empty { display: none; }
#screen-gate { display: grid; place-items: center; min-height: 100vh; padding: 24px; text-align: center; } #screen-gate .gate { max-width: 420px; }

/* ---- Mode database: pemilih proyek, daftar desain, kunci ---- */
.proj-pick { padding: 12px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; }
.proj-pick label { display: block; font-size: 12px; color: var(--side-mute); margin-bottom: 6px; }
.proj-pick select { width: 100%; background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 8px 10px; font-size: 14px; font-weight: 600; } .proj-pick select:focus { outline: 2px solid var(--accent); outline-offset: 1px; } .proj-pick select option { color: #111827; background: #fff; font-weight: 400; }
.proj-pick .pc-ws { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; } .proj-pick .pc-ws:hover { text-decoration: underline; }
.pc-link .badge { margin-left: 4px; }
.step.off { opacity: .45; pointer-events: none; }
.readonly .content :is(input, select, textarea):not([data-set]) { background: #F3F4F6; color: var(--ink-2); pointer-events: none; }
.readonly .content .btn[data-action^="add-"], .readonly .content .btn[data-action^="del-"], .readonly .content .btn[data-action^="use-template"], .readonly .content .btn[data-action="import-bor-csv"] { display: none; }
.callout.lock { position: sticky; top: 0; z-index: 5; }
.muted { color: var(--ink-3); }

/* ---- Model 3D ---- */
.v3d-wrap { user-select: none; touch-action: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 12px; }
.v3d-wrap svg { display: block; width: 100%; height: auto; }
.readonly .content .v3d-wrap svg { pointer-events: auto; }

/* ---- Laporan & ekspor ---- */
.rep-layout { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .rep-layout { grid-template-columns: 1fr; } }
.rep-side { position: sticky; top: 0; max-height: calc(100vh - 2rem); overflow-y: auto; padding-right: 2px; }
.rep-side .card { margin-bottom: 12px; } .rep-side select.wide { width: 100%; }
.rep-secs { list-style: none; margin: 10px 0 0; padding: 0; } .rep-secs li { border-top: 1px solid #EEF0F2; padding: 6px 0; font-size: 13px; } .rep-secs li.na { color: var(--ink-3); } .rep-secs label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.rep-sign-set { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; display: grid; gap: 6px; } .rep-sign-set b { font-size: 12px; color: var(--ink-2); }
.static { padding: 8px 10px; background: #F3F4F6; border-radius: 8px; font-size: 13px; }
.rep-exports { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; } .rep-exports button { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; } .rep-exports button:hover { background: #F7F7F5; } .rep-exports .ico { color: var(--teal); } .rep-exports b { display: block; font-size: 13px; } .rep-exports small { display: block; color: var(--ink-3); font-size: 11px; }
.rep-preview { background: rgba(17,24,39,.06); border-radius: 14px; padding: 14px; } .rep-preview .report { margin: 0 auto; }
.rep-blk + .rep-blk { margin-top: 26px; } .rep-doc { margin: 4px 0; } .rep-foot { font-size: 10px; color: var(--ink-3); margin-top: 24px; }
.report .no-charts .rep-fig { display: none; }
[data-kop-card] { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; font-size: 13px; } [data-kop-card] h2 { font-size: 15px; margin: 0 0 6px; } [data-kop-card] select { margin-top: 4px; }
@media print { .rep-layout { display: block; } .rep-side, .toolbar-row, .page-h, .callout, #rp-info { display: none !important; } .rep-preview { background: none; padding: 0; border-radius: 0; } .rep-blk.pb { break-before: page; } .rep-cover { page-break-after: auto; } }

/* ============================================================
   Tambahan Earth Retaining Design
   ============================================================ */
/* modul desain: aksen biru (beranda: modul desain biru, lab kuning) */
.tag.mod.design { background: #1F4E8C; color: #fff; }
.lanes { display: flex; flex-direction: column; gap: 2px; margin: 0 0 6px; }
.lane { display: flex; flex-direction: column; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; color: var(--side-ink); line-height: 1.25; }
.lane small { font-size: 11.5px; color: var(--side-mute); }
.lane.on { background: rgba(255,255,255,.06); font-weight: 600; color: #fff; }
.lane.off { opacity: .55; }
.res-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.res-grid > div { min-width: 0; }
@media (max-width: 1200px) { .res-grid { grid-template-columns: 1fr; } }
h4.sub { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.legend i.dash { height: 0; border-top: 1.5px dashed #6B7280; border-radius: 0; }
.card-h .meta .seg { margin: 0; }
/* baris pemeriksaan dengan bilah rasio */
.chk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.chk-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.chk-h > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.chk-h small { color: var(--ink-3); font-size: 12px; }
.chk-v { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.chk-v b { font-family: var(--display); font-size: 19px; line-height: 1.15; }
.chk-bar { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.chk-bar .trk { position: relative; flex: 1; height: 8px; border-radius: 9999px; background: #EEF0F2; }
.chk-bar .fil { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9999px; background: #1F4E8C; transition: width .4s ease; }
.chk-bar .fil.warn { background: #B45309; } .chk-bar .fil.bad { background: var(--bad); }
.chk-bar .lim { position: absolute; left: 83.33%; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 1px; }
.chk-bar .r { width: 34px; text-align: right; font-size: 12px; color: var(--ink-2); }
.chk-bar .badge { width: 46px; text-align: center; }
/* batang rasio bersama QWorks (QWUI.ratio) di baris pemeriksaan */
.chk-bar .chk-qw { flex: 1; display: flex; min-width: 0; }
.chk-bar .chk-qw .qw-ratio { flex: 1; }
svg.wall-sec { max-width: 100%; }
.v3d-wrap { cursor: grab; } .v3d-wrap:active { cursor: grabbing; }
@media print { .chk-bar .fil { transition: none; } }

.acts { display: flex; gap: 4px; justify-content: flex-end; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.tbl th .nc { text-transform: none; }
/* Header tabel tanpa huruf kapital otomatis: simbol & satuan teknik (Mu, φMn, e (m), kN/m) harus tampil apa adanya */
.tbl th { text-transform: none; letter-spacing: .01em; font-size: 11.5px; }
.report .tbl th { font-size: 10.5px; }
/* ===== Tahap 2: embedded wall ===== */
.emb-sec .sv-lab { font-size: 11px; font-weight: 600; fill: #374151; } .emb-sec .sv-sub { font-size: 9.5px; fill: #4B5563; } .emb-sec .sv-dim { font-size: 10.5px; font-weight: 600; fill: #111827; }
.emb-wide { overflow-x: auto; } .emb-wide svg { display: block; width: 100%; min-width: 560px; height: auto; }
.tbl.loads select { min-width: 96px; } .tbl.loads td:nth-child(2) input { min-width: 200px; } .tbl.loads td.hint { white-space: nowrap; padding-left: 0; }
button.lane { font: inherit; text-align: left; border: 0; background: transparent; cursor: pointer; width: 100%; box-sizing: border-box; } button.lane:hover:not(.on) { background: rgba(255,255,255,.05); } button.lane.on { cursor: default; } button.lane:focus-visible { outline: 2px solid #EAB308; outline-offset: 1px; }
.tbl.layers input, .tbl.sup input, .tbl.sup select, .tbl.layers select { width: 100%; min-width: 54px; padding: 5px 6px; font: inherit; font-size: 12.5px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.tbl.layers td, .tbl.sup td { padding: 4px 4px; vertical-align: middle; }
.tbl.layers td:first-child input { min-width: 120px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.stage-list { list-style: none; margin: 0; padding: 0; counter-reset: st; } .stage-list li { counter-increment: st; padding: 6px 0 6px 30px; position: relative; border-bottom: 1px solid var(--line); font-size: 13px; } .stage-list li::before { content: counter(st); position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: #1F4E8C; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.charts-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .charts-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .charts-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .charts-3, .charts-2 { grid-template-columns: 1fr; } }
.sup-block { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 2px; margin-bottom: 10px; background: #FBFBFA; } .sup-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13.5px; } .sup-h .btn { margin-left: auto; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } @media (max-width: 1100px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Gambar teknik sebagai lembar kertas (tetap terang di tema gelap) */
.sec-paper { border-radius: 8px; }
html[data-theme="dark"] .sec-paper { padding: 6px; }
.v3d-wrap .sec-paper { border-radius: 0; padding: 0; }

/* ---- Cost Estimate: aksen hijau zamrud (kelompok estimasi) di atas kerangka desain ---- */
html[data-qw-family="design"][data-page="cost-estimate"] {
  --qw-family: #0F7B5F; --qw-family-ink: #FFFFFF; --qw-family-hover: #0B6049; --qw-family-tint: #E2F3EC;
  --qw-family-data: #0F7B5F; --qw-family-data-tint: #E2F3EC;
  --qw-family-rail: #34D399; --qw-family-rail-ink: #022C22;
  --accent: #0F7B5F; --accent-hover: #0B6049; --accent-2: #E2F3EC; --accent-ink: #FFFFFF;
  --qw-signal: #0F7B5F; --qw-signal-hover: #0B6049;
  --teal: #0F7B5F; --teal-2: #E2F3EC;
}
html[data-qw-family="design"][data-page="cost-estimate"] :is(.rail-asphalt, .sidebar, aside.rail) {
  --qw-family: #34D399; --qw-family-ink: #022C22; --accent: #34D399; --accent-hover: #6EE7B7; --accent-ink: #022C22;
}
html[data-qw-family="design"][data-page="cost-estimate"] .lane-stripe { background: repeating-linear-gradient(45deg, #34D399 0 10px, #064E3B 10px 20px) !important; }
html[data-qw-family="design"][data-page="cost-estimate"] .tag.mod { background: #34D399; color: #022C22; }
html[data-qw-family="design"][data-page="cost-estimate"] .chip.hi { background: #E2F3EC; color: #064E3B; box-shadow: inset 0 0 0 1px rgba(15,123,95,.3); }
html[data-qw-family="design"][data-page="cost-estimate"] .kicker { color: #0F7B5F; }
html[data-qw-family="design"][data-page="cost-estimate"] .sidebar .step.on { background: rgba(52,211,153,.14); }
html[data-qw-family="design"][data-page="cost-estimate"] .steps.road::before { background: repeating-linear-gradient(to bottom, #34D399 0 11px, transparent 11px 21px); }

/* ---- Cost Estimate: BoQ, lembar AHSP, HSD ---- */
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.code { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.tbl tr.div td { background: #F3F4F6; font-weight: 700; }
.tbl tr.sum td { font-weight: 700; border-top: 2px solid var(--line); }
.tbl input.vol { width: 110px; text-align: right; padding: 5px 7px; }
.tbl input.price { width: 140px; text-align: right; padding: 5px 7px; }
.tbl input.txt { min-width: 160px; padding: 5px 7px; }
.tbl .src { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.tbl .ov { color: var(--warn); font-weight: 600; }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.sheet h3 { font-family: var(--display); font-size: 17px; margin: 0 0 2px; } .sheet .sub { color: var(--ink-3); font-size: 12px; margin-bottom: 10px; }
.sheet .tbl td:first-child { width: 36px; color: var(--ink-3); }
.sheet .tot td { font-weight: 700; } .sheet .hsp td { font-size: 15px; font-weight: 700; background: var(--accent-2); }
.qw-trace { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); } .qw-trace li { margin: 3px 0; } .qw-trace .ref { color: var(--ink-3); font-size: 11.5px; }
.search-box { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; } .search-box input { flex: 1 1 55%; min-width: 0; } .search-box select { flex: 0 1 45%; min-width: 0; max-width: 45%; }
.lib-list { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.lib-row { display: grid; grid-template-columns: 110px 1fr 60px auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid #EEF0F2; font-size: 13px; }
.lib-row:hover { background: #F7F7F5; } .lib-row .code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); } .lib-row .unit { color: var(--ink-3); }
.lib-row .code .pay { display: block; font-size: 10.5px; color: var(--ink-3); }
.lib-row.on { background: var(--accent-2); }
.pct-bar { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; } .pct-bar .track { width: 140px; height: 8px; background: #E5E7EB; border-radius: 4px; overflow: hidden; } .pct-bar .fill { height: 100%; background: var(--accent); }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.needs .tbl td.num { white-space: nowrap; }
.report .tbl td.num { text-align: right; }
.report .sheet { border: 0; box-shadow: none; padding: 0; margin: 0 0 18px; page-break-inside: avoid; }
.report .sheet h3 { font-size: 14px; }
@media print { .report .sheet { page-break-inside: avoid; } }
.tbl td.acts { white-space: nowrap; } .tbl td.acts .btn { margin: 1px 0; }
.tbl.boq th:first-child, .tbl.boq td.code { width: 96px; }
.tbl.boq input.txt { min-width: 120px; }

/* ---- Kurva S (Tahap 3) ---- */
.curve-svg{display:block;width:100%;max-width:720px;height:auto;margin:12px auto 6px;background:#fff;border:1px solid var(--line,#e5e7eb);border-radius:10px}
.curve-tbl{overflow-x:auto;display:block;max-width:100%}
.curve-tbl td,.curve-tbl th{white-space:nowrap}
input.cell{width:5.5em;padding:3px 6px;border:1px solid var(--line,#d1d5db);border-radius:6px;text-align:right;font:inherit;font-size:13px}
@media print{.curve-svg{border:0;max-width:170mm}}

/* ---- RAB berjenjang, rincian volume, templat, pusat laporan (Tahap 5) ---- */
.tbl.rab td.no, .tbl.rab th.no { width: 34px; text-align: center; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tbl.rab tr.div td { background: var(--accent-2); font-weight: 700; }
.tbl.rab tr.div td.no { color: var(--ink); }
.tbl.rab tr.grp td { background: color-mix(in srgb, var(--teal-2) 70%, transparent); font-weight: 600; }
.tbl.rab tr.grp td:nth-child(2) { padding-left: 14px; }
.tbl.rab tr.in-grp td:nth-child(2), .tbl.rab tr.in-grp td:nth-child(3) { padding-left: 20px; }
.tbl.rab tr.in-grp td.no { padding-left: 14px; }
.tbl.rab tr.empty td { background: transparent; }
.tbl.rab tr.gvars-row td { background: var(--panel); padding: 10px 14px 12px 36px; }
.tbl.rab input.code-in { width: 52px; min-width: 52px; }
.tbl .vol-btn { font: inherit; font-variant-numeric: tabular-nums; font-weight: 600; background: var(--panel); border: 1px dashed var(--teal); color: var(--ink); border-radius: 6px; padding: 4px 8px; cursor: pointer; min-width: 96px; text-align: right; }
.tbl .vol-btn:hover { background: var(--teal-2); } .tbl .vol-btn.bad { border-color: var(--bad); }
.tbl .dims-btn { margin-left: 4px; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; cursor: pointer; padding: 3px 5px; font-size: 13px; line-height: 1; vertical-align: middle; }
.tbl .dims-btn:hover { background: var(--teal-2); }
.vchip-btn { border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 400; color: var(--ink-2); padding: 0 4px; }
.vchip-btn code { font-size: 11px; }
.row-menu { display: inline-block; position: relative; vertical-align: middle; }
.row-menu > summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-weight: 700; line-height: 1.2; background: var(--panel); color: var(--ink-2); }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu[open] > summary { background: var(--teal-2); }
.row-menu-b { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16,38,43,.16); padding: 6px; display: grid; gap: 2px; min-width: 220px; text-align: left; white-space: normal; }
.row-menu-b .btn { justify-content: flex-start; width: 100%; text-align: left; }
.row-menu-b .menu-sel { display: grid; gap: 3px; font-size: 12px; color: var(--ink-3); padding: 4px 8px; } .row-menu-b .menu-sel select { width: 100%; }
.card.pvars > summary { cursor: pointer; list-style: none; } .card.pvars > summary::-webkit-details-marker { display: none; }
.card.pvars > summary::after { content: '▾'; margin-left: 8px; color: var(--ink-3); } .card.pvars[open] > summary::after { content: '▴'; }
.gvars .tbl, .pvars .tbl { max-width: 760px; }

/* panel samping */
.drawer-scrim { position: fixed; inset: 0; background: rgba(17,24,39,.18); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--panel); color: var(--ink); z-index: 61; box-shadow: -12px 0 36px rgba(16,38,43,.22); display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.drawer-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { font-family: var(--display); font-size: 18px; margin: 2px 0; } .drawer-h .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.drawer-b { padding: 14px 20px 28px; overflow-y: auto; flex: 1; }
.drawer-b .dh { font-size: 14px; margin: 16px 0 6px; } .drawer-b .lead-s { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.drawer-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.shape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.shape-card { display: grid; justify-items: center; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; text-align: center; }
.shape-card:hover, .shape-card.on { border-color: var(--teal); background: var(--teal-2); }
.shape-card b { font-size: 12.5px; } .shape-card small { font-size: 10.5px; }
.shape-card .qw-paper, .qty-fig, .tpl-card .qw-paper, .vol-head .qw-paper { border-radius: 8px; padding: 2px; display: inline-flex; color: #1F2937; }
.qty-top { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: start; }
.qty-fig { justify-content: center; border: 1px solid var(--line); padding: 6px; }
.qty-form .field { margin-bottom: 8px; } .qty-form input.mono { font-family: var(--mono); width: 100%; }
@media (max-width: 640px) { .qty-top { grid-template-columns: 1fr; } }
.qty-rows input.vol { width: 78px; } .qty-rows input.vol.n { width: 52px; } .qty-rows input.txt { min-width: 130px; }
.qty-rows tr.neg td { color: var(--bad); } .qty-rows tr.neg input { color: var(--bad); }
.btn.sign { min-width: 28px; font-weight: 700; } .btn.sign.neg { color: var(--bad); border-color: var(--bad); }
.vchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; } .vchip { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; background: var(--bg); } .vchip.bad { border-color: var(--bad); color: var(--bad); } .vchip small { margin-left: 4px; }
.field.inline { display: flex; gap: 10px; align-items: center; margin-top: 10px; } .field.inline label { margin: 0; }
.tpl-card { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.tpl-card h4 { margin: 0 0 4px; font-size: 14px; } .tpl-card p { margin: 2px 0; font-size: 12.5px; color: var(--ink-2); }
.tpl-card ul { margin: 4px 0; padding-left: 18px; font-size: 12px; color: var(--ink-2); } .tpl-card ul code { font-size: 11px; color: var(--ink-3); }
.tpl-acts { display: grid; gap: 4px; }
.drawer .tabs { margin-bottom: 10px; }

/* pusat laporan */
.rep-docs li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: start; }
.rep-docs li.on .doc-pick { background: var(--teal-2); }
.rep-docs .doc-pick { font: inherit; text-align: left; background: transparent; border: 0; border-radius: 8px; padding: 4px 6px; cursor: pointer; color: var(--ink); }
.rep-docs .doc-pick b { display: block; font-size: 13px; } .rep-docs .doc-pick small { display: block; font-size: 11px; }
.rep-docs li.na .doc-pick b { color: var(--ink-3); } .rep-docs label { padding-top: 6px; }
.rep-print { display: grid; gap: 6px; margin-top: 10px; }
.report .tbl.rab tr.div td { background: #F3F4F6; } .report .tbl.rab tr.grp td { background: #F9FAFB; font-weight: 600; }
.report .rep-sign { display: block; margin-top: 18px; }
.report .vol-blk { margin: 10px 0 16px; page-break-inside: avoid; } .report .vol-head { display: flex; gap: 12px; align-items: flex-start; } .report .vol-head h3 { margin: 4px 0 2px; font-size: 13.5px; }
.report h3.vol-div { font-size: 14px; margin: 18px 0 4px; border-bottom: 1px solid #D1D5DB; padding-bottom: 2px; }
@media print { .drawer, .drawer-scrim { display: none !important; } .report .vol-blk { page-break-inside: avoid; } }

.tbl.rab td.num { white-space: nowrap; }
.drawer .search-box .check { white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.drawer .field.inline { display: grid; grid-template-columns: auto minmax(0, 240px); justify-content: start; gap: 10px; align-items: center; }
.drawer .field.inline label { text-align: left; }
.tbl.rab td:nth-child(3) { min-width: 220px; } .tbl.rab tr.div td:nth-child(2), .tbl.rab tr.grp td:nth-child(2) { min-width: 0; }

/* ---- Animasi (Tahap 5): sketsa "digambar", label muncul, panel meluncur, volume berubah disorot ----
   Hanya di layar dan bila pengguna tidak mematikan animasi (prefers-reduced-motion); cetak selalu diam. */
@media screen and (prefers-reduced-motion: no-preference) {
  .qty-sketch.anim .sk-l, .shape-card:hover .qty-sketch .sk-l, .tpl-card:hover .qty-sketch .sk-l { stroke-dasharray: 100; stroke-dashoffset: 100; animation: sk-draw .9s cubic-bezier(.6,.05,.3,1) forwards; }
  .qty-sketch.anim .sk-l:nth-of-type(2n), .shape-card:hover .qty-sketch .sk-l:nth-of-type(2n) { animation-delay: .25s; }
  .qty-sketch.anim .sk-f, .shape-card:hover .qty-sketch .sk-f { opacity: 0; animation: sk-fade .5s ease .7s forwards; }
  .qty-sketch.anim .sk-t, .shape-card:hover .qty-sketch .sk-t { opacity: 0; animation: sk-pop .4s ease .9s forwards; transform-box: fill-box; transform-origin: center; }
  .qty-sketch.anim .sk-d { animation: sk-dash 1.4s linear infinite; }
  .shape-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
  .shape-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16,38,43,.12); }
  .tpl-card { transition: background .18s ease; } .tpl-card:hover { background: color-mix(in srgb, var(--teal-2) 45%, transparent); }
  .drawer.enter { animation: dr-in .28s cubic-bezier(.2,.8,.2,1); } .drawer-scrim.enter { animation: sk-fade .28s ease; }
  .drawer.enter .tpl-card, .drawer.enter .shape-card { animation: dr-item .35s ease both; }
  .drawer.enter .tpl-card:nth-child(2), .drawer.enter .shape-card:nth-child(2) { animation-delay: .04s; } .drawer.enter .tpl-card:nth-child(3), .drawer.enter .shape-card:nth-child(3) { animation-delay: .08s; }
  .drawer.enter .tpl-card:nth-child(4), .drawer.enter .shape-card:nth-child(4) { animation-delay: .12s; } .drawer.enter .tpl-card:nth-child(n+5), .drawer.enter .shape-card:nth-child(n+5) { animation-delay: .16s; }
  .tbl .vol-btn.flash { animation: vol-flash 1.2s ease; }
}
@keyframes sk-draw { to { stroke-dashoffset: 0; } }
@keyframes sk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sk-pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
@keyframes sk-dash { to { stroke-dashoffset: -10; } }
@keyframes dr-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dr-item { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes vol-flash { 0% { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 40%, transparent); } 100% { background: var(--panel); box-shadow: none; } }

/* ============================================================
   Jadwal & kurva S per baris (halaman 07) dan analisa kustom
   ============================================================ */
.sch-tools { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; }
.sch-t { display: flex; flex-direction: column; gap: 4px; } .sch-t > label { font-size: 12px; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.sch-t .seg { margin: 0; } .sch-t select, .sch-t input[type=date] { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sch-auto { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(100deg, var(--accent-2), #fff 70%); border: 1px solid #F1DEA3; }
.sch-auto > .ico { font-size: 20px; } .sch-auto > div { flex: 1 1 320px; display: flex; flex-direction: column; } .sch-auto small { color: var(--ink-2); font-size: 12px; }
.sch-auto label { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; } .sch-auto input.cell { width: 64px; }
.gt-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.gt-legend .tip { flex-basis: 100%; color: var(--ink-3); } .gt-legend code { font-family: var(--mono); background: var(--bg); padding: 0 4px; border-radius: 4px; }
.lg { display: inline-block; width: 22px; height: 9px; border-radius: 4px; margin-right: 6px; vertical-align: middle; }
.lg.bar { background: var(--teal); } .lg.crit { background: linear-gradient(90deg, #E4572E, #C0392B); } .lg.float { height: 0; border-top: 2px dashed #94A3B8; border-radius: 0; } .lg.dep { height: 0; border-top: 1.5px solid #64748B; border-radius: 0; } .lg.curve { height: 0; border-top: 3px solid var(--accent); border-radius: 0; }
.gantt { display: grid; grid-template-columns: minmax(0, max-content) minmax(360px, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.gt-l { overflow-x: auto; border-right: 1px solid var(--line); max-width: 56vw; }
.gt-r { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.gt-grid { border-collapse: collapse; width: 100%; font-size: 12.5px; table-layout: auto; }
.gt-grid tr { height: var(--rh); } .gt-grid tr.gh { height: var(--hh); background: #F8FAFA; }
.gt-grid th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 700; text-align: left; padding: 0 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gt-grid td { padding: 0 6px; border-bottom: 1px solid #F1F3F4; white-space: nowrap; height: var(--rh); max-height: var(--rh); }
.gt-grid th.num, .gt-grid td.num { text-align: right; } .gt-grid td.n { color: var(--ink-3); font-family: var(--mono); font-size: 11px; width: 34px; }
.gt-grid td.u { max-width: 180px; overflow: hidden; text-overflow: ellipsis; } .gt-grid td.u small { font-family: var(--mono); }
.gt-grid tr.gd { background: #F2F5F6; } .gt-grid tr.gd td { border-bottom-color: var(--line); }
.gt-grid tr.gg td { color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.gt-grid tr.gl.crit td.n { color: var(--bad); font-weight: 700; } .gt-grid tr.gl.focus { background: var(--accent-2); }
.gt-grid tr.gf { background: #F8FAFA; font-weight: 600; color: var(--ink-2); font-size: 12px; }
.gt-grid .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.gt-grid input.cell, .gt-grid select.cell { height: 24px; font-size: 12px; padding: 1px 4px; border: 1px solid transparent; border-radius: 6px; background: transparent; width: 50px; text-align: right; font-family: inherit; }
.gt-grid input.cell.dep { width: 76px; text-align: left; font-family: var(--mono); font-size: 11px; } .gt-grid select.cell { width: 88px; text-align: left; }
.gt-grid input.cell:hover, .gt-grid select.cell:hover { border-color: var(--line); background: #fff; } .gt-grid input.cell:focus, .gt-grid select.cell:focus { border-color: var(--teal); background: #fff; outline: none; box-shadow: 0 0 0 3px var(--teal-2); }
.gt-grid .drv { display: block; font-size: 10px; color: var(--warn); line-height: 1; margin-top: -2px; }
.gt-grid .sug { font: 600 10px var(--mono); color: var(--teal); background: var(--teal-2); border: 0; border-radius: 5px; padding: 1px 4px; margin-left: 3px; cursor: pointer; }
.gt { display: block; font-family: var(--font); user-select: none; }
.gt .gt-ph { font-size: 11px; font-weight: 700; fill: var(--ink-2); } .gt .gt-pd { font-size: 10px; fill: var(--ink-3); }
.gt .gt-vl { stroke: #EEF1F2; } .gt .gt-hl { stroke: var(--line); }
.gt .gt-rdiv { fill: #F2F5F6; } .gt .gt-ralt { fill: #FBFCFC; } .gt .gt-foot { fill: #F8FAFA; }
.gt .gt-r { filter: drop-shadow(0 1px 1.5px rgba(16,38,43,.18)); }
.gt .gt-bar.inh .gt-r { opacity: .55; }
.gt .gt-bar.drag { cursor: grab; } .gt .gt-bar.dragging { cursor: grabbing; opacity: .85; } .gt .gt-bar.drag:hover .gt-r { filter: drop-shadow(0 2px 6px rgba(16,38,43,.35)); }
.gt .gt-h { fill: rgba(255,255,255,.0); cursor: ew-resize; } .gt .gt-bar.drag:hover .gt-h { fill: rgba(255,255,255,.75); }
.gt .gt-bv { font-size: 10px; font-weight: 700; fill: #fff; pointer-events: none; font-variant-numeric: tabular-nums; }
.gt .gt-lbl { font-size: 10px; fill: var(--ink-3); font-family: var(--mono); }
.gt .gt-sumt { font-size: 10px; font-weight: 700; fill: var(--ink-2); }
.gt .gt-float { stroke: #94A3B8; stroke-width: 1.5; stroke-dasharray: 3 3; }
.gt .gt-dep { fill: none; stroke: #64748B; stroke-width: 1.2; opacity: .75; } .gt .gt-dep.crit { stroke: var(--bad); opacity: .9; }
.gt .gt-curve { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 1px 2px rgba(120,80,0,.35)); pointer-events: none; }
.gt .gt-area { pointer-events: none; } .gt .gt-cpt { fill: #fff; stroke: var(--accent); stroke-width: 2; }
.gt .gt-fv { font-size: 10.5px; fill: var(--ink-2); font-variant-numeric: tabular-nums; } .gt .gt-fv.cum { font-weight: 700; fill: #8A6400; }
.cp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cp-n { display: inline-flex; gap: 6px; align-items: baseline; font: inherit; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid #F3C4BC; background: var(--bad-2); color: var(--ink); cursor: pointer; }
.cp-n b { color: var(--bad); font-family: var(--mono); } .cp-n small { font-family: var(--mono); } .cp-ar { color: var(--bad); font-weight: 700; }
.sc { width: 100%; max-width: 980px; height: auto; display: block; margin: 0 auto; }
.sc .sc-g { stroke: #E9EDEF; stroke-dasharray: 2 4; } .sc .sc-t { font-size: 10.5px; fill: var(--ink-3); }
.sc .sc-b { fill: var(--teal); opacity: .28; } .sc .sc-b:hover { opacity: .5; }
.sc .sc-l { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.sc .sc-p { fill: #fff; stroke: var(--teal); stroke-width: 2; } .sc .sc-p:hover { r: 5; }
.sc .sc-m { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; }
.tbl-scroll { overflow-x: auto; }
.gt-print svg { width: 100%; height: auto; }
.k-code { font: 700 12px var(--mono); color: #7A3FB0; background: #F1E8FA; border: 0; border-radius: 6px; padding: 2px 7px; cursor: pointer; }
.k-code:hover { background: #E4D2F5; }
@media print { .gantt { display: block; border: 0; } .gt-l { display: none; } .gt-r { overflow: visible; } .gt-r svg { width: 100%; height: auto; } }

/* ---- analisa kustom: dialog detail AHSP ---- */
.ahs-scrim { position: fixed; inset: 0; background: rgba(17,24,39,.42); backdrop-filter: blur(2px); z-index: 70; }
.ahs { position: fixed; z-index: 71; left: 50%; top: 4vh; transform: translateX(-50%); width: min(1040px, 96vw); max-height: 92vh; display: flex; flex-direction: column; background: var(--panel); border-radius: 18px; box-shadow: 0 24px 64px rgba(16,38,43,.35); overflow: hidden; }
.ahs-h { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: start; padding: 16px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FAFBFB, #fff); }
.ahs-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #F1E8FA; color: #7A3FB0; } .ahs-ic svg { width: 24px; height: 24px; }
.ahs-t .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.ahs-name { width: 100%; font: 600 17px/1.3 var(--display); color: var(--ink); border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; margin: 2px 0 4px -6px; resize: vertical; background: transparent; }
.ahs-name:hover, .ahs-name:focus { border-color: var(--line); background: #fff; outline: none; }
.ahs-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.ahs-meta label { display: inline-flex; gap: 6px; align-items: center; } .ahs-meta input.u { width: 70px; } .ahs-meta select { font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; }
.ahs-meta input.txt { font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; }
.ahs-hsp { text-align: right; padding: 8px 14px; border-radius: 12px; background: var(--accent-2); min-width: 190px; } .ahs-hsp small { display: block; color: var(--ink-2); font-size: 11px; }
.ahs-hsp b { display: block; font: 800 24px var(--display); color: #A66A00; letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: transform .2s; } .ahs-hsp b.ticking { transform: scale(1.04); }
.ahs-x { font-size: 22px; line-height: 1; border: 0; background: var(--bg); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--ink-2); } .ahs-x:hover { background: var(--line); }
.ahs-b { padding: 14px 20px 18px; overflow-y: auto; flex: 1; }
.ahs-tbl thead th { position: sticky; top: 0; background: #1E293B; color: #E2E8F0; z-index: 1; }
.ahs-tbl tr.ahs-sec td { font-size: 13px; border-top: 6px solid #fff; } .ahs-tbl tr.ahs-sec.sA td { background: #EAF2FD; } .ahs-tbl tr.ahs-sec.sB td { background: #E6F5EE; } .ahs-tbl tr.ahs-sec.sC td { background: #F1EAFB; }
.ahs-k { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; font-weight: 800; font-size: 12px; }
.sA .ahs-k { background: #3B6FD8; } .sB .ahs-k { background: #2E8B57; } .sC .ahs-k { background: #8E5BB5; }
.ahs-addb { font: 600 11.5px var(--font); margin-left: 8px; padding: 2px 9px; border-radius: 999px; border: 1px dashed currentColor; background: #fff; color: var(--teal); cursor: pointer; } .ahs-addb:hover { background: var(--teal-2); }
.ahs-tbl tr.ahs-row:hover td { background: #FBFAF4; } .ahs-tbl td.n { color: var(--ink-3); width: 30px; }
.ahs-tbl input.vol { width: 96px; } .ahs-tbl input.price { width: 110px; } .ahs-tbl input.txt { min-width: 160px; } .ahs-tbl input.txt.u { min-width: 54px; width: 60px; }
.ahs-tbl tr.ahs-tot td { font-weight: 700; background: #F8FAFA; } .ahs-tbl tr.ahs-tot.f td { background: var(--accent-2); font-size: 14px; }
.ahs-pick { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); }
.ahs-pick .search-box { display: flex; gap: 8px; } .ahs-pick .search-box input { flex: 1; }
.ahs-pick-l { max-height: 240px; overflow-y: auto; margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.ahs-res { display: grid; grid-template-columns: 90px 1fr 60px 120px; gap: 10px; align-items: center; text-align: left; font: inherit; font-size: 12.5px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.ahs-res:hover { background: var(--teal-2); } .ahs-res .code { font-family: var(--mono); font-size: 11px; color: var(--ink-3); } .ahs-res .num { text-align: right; font-variant-numeric: tabular-nums; }
.ahs-diff { margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; } .ahs-diff summary { cursor: pointer; font-size: 13px; }
.ahs-flds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; } .ahs-fld { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ahs-fld textarea { font: 400 13px/1.4 var(--font); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; resize: vertical; }
.ahs-fld textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-2); }
@media (max-width: 760px) { .ahs-flds { grid-template-columns: 1fr; } .ahs-h { grid-template-columns: auto 1fr auto; } .ahs-hsp { grid-column: 1 / -1; text-align: left; } }
.ahs-f { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); background: #FAFBFB; }
.ahs-dl { display: grid; grid-template-columns: 220px 1fr; gap: 4px 14px; font-size: 13px; margin: 8px 0 0; } .ahs-dl dt { font-weight: 700; color: var(--ink-2); } .ahs-dl dd { margin: 0; }
@media print { .ahs, .ahs-scrim { display: none !important; } }

@media screen and (prefers-reduced-motion: no-preference) {
  .gt.anim .gt-bar .gt-r, .gt.anim .gt-sum path { transform-box: fill-box; transform-origin: left center; animation: gt-grow .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 22ms); }
  .gt.anim .gt-bv, .gt.anim .gt-lbl, .gt.anim .gt-sumt { animation: sk-fade .4s ease both; animation-delay: calc(var(--i, 0) * 22ms + .35s); }
  .gt.anim .gt-dep { animation: sk-fade .5s ease .5s both; }
  .gt.anim .gt-clip, .sc.anim .sc-clip { transform-box: fill-box; transform-origin: left center; animation: gt-grow 1.4s cubic-bezier(.4,0,.2,1) .3s both; } .gt.anim .gt-cpt { animation: sk-pop .35s ease both; animation-delay: calc(var(--i, 0) * 40ms + .5s); }
  .sc.anim .sc-b { transform-box: fill-box; transform-origin: bottom; animation: sc-rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 25ms); }
  .sc.anim .sc-p { animation: sk-pop .35s ease both; animation-delay: calc(var(--i, 0) * 30ms + .4s); }
  .ahs.enter { animation: ahs-in .32s cubic-bezier(.2,.8,.2,1); } .ahs-scrim.enter { animation: sk-fade .25s ease; }
  .ahs.enter .ahs-tbl tbody tr { animation: dr-item .35s ease both; }
  .gt-grid tr.gl.focus { animation: vol-flash 1.2s ease; }
}
@keyframes gt-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gt-dash { to { stroke-dashoffset: 0; } }
@keyframes sc-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ahs-in { from { opacity: 0; transform: translate(-50%, 14px) scale(.98); } to { opacity: 1; transform: translateX(-50%); } }
/* tema gelap: jadwal & analisa kustom */
html[data-theme="dark"] .gantt, html[data-theme="dark"] .ahs-pick, html[data-theme="dark"] .ahs-addb { background: var(--panel); }
html[data-theme="dark"] :is(.gt-grid tr.gh, .gt-grid tr.gf, .gt-grid tr.gd) { background: #0F1720; }
html[data-theme="dark"] .gt-grid td { border-bottom-color: var(--line); }
html[data-theme="dark"] .gt-grid :is(input.cell, select.cell):is(:hover, :focus) { background: var(--bg); }
html[data-theme="dark"] .gt rect[fill="#FFFFFF"] { fill: var(--panel); } html[data-theme="dark"] .gt rect[fill="#F4F6F7"] { fill: #0F1720; }
html[data-theme="dark"] .gt :is(.gt-rdiv, .gt-foot) { fill: #0F1720; } html[data-theme="dark"] .gt .gt-ralt { fill: #101820; } html[data-theme="dark"] .gt .gt-vl { stroke: #1A2430; }
html[data-theme="dark"] .gt .gt-fv.cum { fill: #FCD34D; } html[data-theme="dark"] .gt .gt-cpt, html[data-theme="dark"] .sc .sc-p { fill: var(--panel); }
html[data-theme="dark"] .sc .sc-g { stroke: #1F2A37; }
html[data-theme="dark"] .sch-auto { background: linear-gradient(100deg, rgba(240,177,0,.12), transparent 70%); border-color: rgba(240,177,0,.28); }
html[data-theme="dark"] .cp-n { background: var(--bad-2); border-color: rgba(248,113,113,.35); color: var(--ink); }
html[data-theme="dark"] .k-code, html[data-theme="dark"] .ahs-ic { background: rgba(167,139,250,.16); color: #C4B5FD; }
html[data-theme="dark"] .ahs-h, html[data-theme="dark"] .ahs-f { background: #0F1720; }
html[data-theme="dark"] .ahs-hsp b { color: #FCD34D; }
html[data-theme="dark"] .ahs-tbl tr.ahs-sec.sA td { background: rgba(59,111,216,.16); } html[data-theme="dark"] .ahs-tbl tr.ahs-sec.sB td { background: rgba(46,139,87,.16); } html[data-theme="dark"] .ahs-tbl tr.ahs-sec.sC td { background: rgba(142,91,181,.18); }
html[data-theme="dark"] .ahs-tbl tr.ahs-sec td { border-top-color: var(--panel); } html[data-theme="dark"] .ahs-tbl tr.ahs-tot td { background: #0F1720; }
html[data-theme="dark"] .ahs-tbl tr.ahs-row:hover td { background: #16202B; }
.ahs-meta .ahs-chk { display: inline-flex; flex-direction: row; gap: 6px; align-items: center; font-weight: 500; } .ahs-meta .ahs-chk input { width: auto; margin: 0; }
.ahs-f .menu-sel { display: inline-flex; flex-direction: row; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 0; }
.ahs-f .menu-sel select { font: inherit; font-weight: 500; font-size: 12.5px; padding: 4px 6px; width: auto; max-width: 260px; border: 1px solid var(--line); border-radius: 8px; }
.ahs-tbl .row-menu summary { padding: 2px 8px; }
.gt .gt-cpt, .sc .sc-p { transform-box: fill-box; transform-origin: center; }
/* usulan harga perkiraan (nama mirip) di halaman 02 */
.sug-box { margin-top: 6px; padding: 6px 8px; border: 1px dashed #E5C46B; border-radius: 8px; background: var(--accent-2); text-align: left; font-size: 12px; line-height: 1.35; max-width: 260px; margin-left: auto; }
.sug-box .src { display: block; margin-top: 2px; } .sug-box i { font-style: normal; font-weight: 600; color: var(--ink); }
.sug-acts { display: flex; gap: 6px; margin-top: 6px; justify-content: flex-end; }
.sug-box.acc { border-style: solid; background: transparent; } .sug-box.rej { border: 0; background: transparent; color: var(--ink-3); padding: 2px 0; }
@media print { .sug-acts, .sug-box .btn { display: none; } }
/* ---- impor SSH/HSPK Pemda ---- */
.ahs.imp { width: min(1120px, 96vw); }
.imp-h h2 { font: 700 20px var(--display); margin: 2px 0 6px; }
.imp-steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.imp-steps button { display: inline-flex; gap: 6px; align-items: center; font: 600 12.5px var(--font); border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; }
.imp-steps button span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); font-size: 11px; }
.imp-steps li.on button { border-color: var(--teal); color: var(--teal); } .imp-steps li.on button span { background: var(--teal); color: #fff; }
.imp-steps li.done button span { background: var(--ok); color: #fff; } .imp-steps button:disabled { opacity: .5; cursor: default; }
.imp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 14px; } .imp-grid.cols { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.imp-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); } .imp-f.wide { grid-column: 1 / -1; }
.imp-f input, .imp-f select { font: 400 13px var(--font); padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); min-width: 0; }
.imp-src { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 12px; align-items: stretch; }
.imp-drop, .imp-paste { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 2px dashed var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--accent-2), transparent); font-size: 13px; }
.imp-drop small, .imp-paste small { color: var(--ink-3); } .imp-drop input { font-size: 12.5px; }
.imp-paste textarea { font: 12px/1.4 var(--mono); border: 1px solid var(--line); border-radius: 8px; padding: 8px; resize: vertical; background: var(--panel); color: var(--ink); }
.imp-or { align-self: center; color: var(--ink-3); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.imp-prev { max-height: 300px; overflow: auto; margin-bottom: 12px; } .imp-prev td { white-space: nowrap; font-size: 12px; } .imp-prev td.n { color: var(--ink-3); font-family: var(--mono); }
.imp-prev tr.hd td { font-weight: 700; background: #F2F5F6; } .imp-prev td.m-name { background: rgba(31,111,139,.08); } .imp-prev td.m-price { background: rgba(232,179,33,.14); } .imp-prev td.m-unit { background: rgba(46,139,87,.1); } .imp-prev td.m-code, .imp-prev td.m-spec { background: rgba(142,91,181,.08); }
.imp-sample { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; } .imp-sample .code { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.imp-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; } .imp-bar .seg { margin: 0; }
.imp-chips { display: flex; gap: 6px; flex-wrap: wrap; } .imp-q { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; min-width: 180px; }
.imp-chip { font: 600 12px var(--font); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--panel); color: var(--ink-2); cursor: pointer; text-transform: capitalize; }
.imp-chip b { margin-left: 4px; } .imp-chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.imp-tbl { max-height: 52vh; overflow: auto; } .imp-tbl thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
.imp-tbl tr.on td { background: rgba(31,138,91,.06); } .imp-sel { max-width: 520px; width: 100%; font: 12.5px var(--font); padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); }
.imp-per { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 12px; } .imp-per input { width: 90px; font: inherit; padding: 3px 6px; border: 1px solid var(--warn); border-radius: 6px; }
.src.ref { color: var(--teal); }
@media (max-width: 860px) { .imp-grid, .imp-grid.cols { grid-template-columns: 1fr 1fr; } .imp-src { grid-template-columns: 1fr; } }
html[data-theme="dark"] .imp-prev tr.hd td { background: #0F1720; }
.imp-tbl td.nw { white-space: nowrap; }
.sug-box, .sug-box * { white-space: normal; overflow-wrap: anywhere; }
