/* ============================================================
   QWorks Roof Truss Design — stylesheet (salinan Reinforced Concrete
   Design). Arahan "Korporat tenang": sidebar navy (qworks-ui.css),
   kartu putih; detail "Lembar hitung" (titleBlock, ratio bar, trace)
   dari pustaka UI bersama. Aksen: biru keluarga desain bawaan
   qworks-ui.css (warna aksen khusus modul masih keputusan terbuka).
   ============================================================ */
: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: #1D4ED8; --accent-ink: #FFFFFF; --accent-2: #E8EEFB; --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/rc-design#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; } }

/* ---- 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 { margin-top: auto; padding-top: 14px; font-size: 12px; }
.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; }
/* catatan proyek contoh uji coba (qworks-sample.js) */
.proj-pick .pc-sample { margin: 10px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--qw-rail-muted, var(--side-mute)); } .proj-pick .pc-sample .qw-sample-chip { margin: 0 6px 0 0 !important; }
.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 bersama modul desain (hasil, legenda, baris pemeriksaan)
   ============================================================ */
/* modul desain: aksen biru (beranda: modul desain biru, lab kuning) */
.tag.mod.design { background: #1F4E8C; color: #fff; }
.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; }
/* 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; }
/* ===== Tambahan Reinforced Concrete Design ===== */
.sec-svg { display: block; width: 100%; height: auto; max-width: 420px; margin: 0 auto; }
.rep-fig .sec-svg { max-width: 300px; }
.tbl.loads input.in-s { width: 74px; } .tbl.loads input.in-m { min-width: 150px; } .tbl.loads td { padding: 3px 4px; }
.tbl.members select.in-m { min-width: 130px; } .tbl.members input.in-m { min-width: 110px; } .tbl.members input.in-s { width: 64px; }
.tbl.checks td:nth-child(2) { min-width: 220px; } .tbl.checks .qw-ratio { min-width: 120px; }
.tbl tr.hl td { background: #FDF2F0; }
.inline .in-s { width: 70px; }
.card-h .meta .badge { margin-left: 4px; }
.res-grid .chart { max-height: 480px; }
@media print { .sec-svg { max-width: 260px; } }
.inline select.in-s, .tbl.input select.in-s { width: auto; min-width: 84px; }
.tbl .acts { flex-wrap: wrap; white-space: normal; justify-content: flex-start; gap: 4px 6px; }
.tbl.compact td:first-child b { white-space: nowrap; }
/* Rujukan mutu lab, lencana abu-abu, panel usulan */
.badge.gray { background: var(--line-2, #E5E7EB); color: var(--ink-2, #4B5563); }
.lab-ref { margin: 6px 0 4px; padding: 8px 10px; border-radius: 8px; background: var(--line-2, #F3F4F6); font-size: 13px; } .lab-ref .hint { margin-top: 3px; }
.sec-paper .sec-svg text { font-family: inherit; }
@media print { .no-print { display: none !important; } }

/* ===== Tambahan Roof Truss Design ===== */
/* Lebar layar sempit: sidebar menumpuk di atas (bukan disembunyikan) */
@media (max-width: 860px) {
  #app { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .sidebar { display: flex; max-height: none; overflow: visible; }
  .sidebar .steps.road { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px; }
  .sidebar .rail-mods .mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px; }
  .main { min-height: 70vh; } .content { overflow: visible; padding: 18px 16px 60px; }
  .topbar { position: static; padding: 10px 16px; flex-wrap: wrap; } .chips { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr 1fr; } .grid.cols-2 { grid-template-columns: 1fr; }
  .tiles.four { grid-template-columns: 1fr 1fr; } .tpl-grid { grid-template-columns: 1fr; }
  .page-h h1 { font-size: 24px; } .seg { flex-wrap: wrap; } .tile-val { font-size: 20px; }
  .nav-foot { flex-wrap: wrap; gap: 8px; } .kv > div { flex-wrap: wrap; } .kv dd { text-align: left; }
}
/* status titik langkah (ok/warn/bad) */
.sidebar .step.warn .sn { border-color: #FBBF24; } .sidebar .step.bad .sn { border-color: #F87171; }
.step .sd.warn { background: #FBBF24; } .step .sd.bad { background: #F87171; }
/* penanda data contoh, catatan beta, kotak wajib diperiksa */
.callout.sample-note { display: flex; gap: 10px; align-items: flex-start; background: #FFFBEB; border-color: #FCD34D; }
.beta-note { background: transparent; border: 1px dashed var(--line); font-size: 12.5px; margin-bottom: 14px; }
.beta-note summary { font-weight: 500; color: var(--ink-2); } .beta-note p { font-size: 12.5px; }
.tag-beta { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; background: #FEF3C7; color: #92400E; margin-right: 6px; }
.review-box { border-width: 1.5px; border-color: #D97706; background: #FFF7E6; font-size: 13.5px; }
.review-box > b { display: block; color: #92400E; font-size: 14px; margin-bottom: 2px; }
.review-box .notes li { margin: 5px 0; }
/* tabel */
.tbl tr.gov td { background: var(--accent-2, #E3ECFB); } .tbl tr.gov td:first-child { box-shadow: inset 3px 0 0 var(--qw-family, #2F6FDB); }
.tbl .n-t { color: #1D4ED8; font-weight: 600; } .tbl .n-c { color: #C2410C; font-weight: 600; }
.tbl.members td, .tbl.items td { white-space: nowrap; } .tbl .qw-ratio.is-compact { min-width: 96px; }
.tabs .tab-r { font-family: var(--mono); font-weight: 500; margin-left: 4px; opacity: .8; } .tabs .tab-r.bad { color: #F87171; opacity: 1; }
/* gambar */
.truss-svg, .load-svg, .rt-iso { display: block; width: 100%; height: auto; }
.mini-chart { display: block; width: 100%; height: auto; max-width: 420px; }
.mini-svg { margin: 10px 0; } .mini-svg .truss-svg { max-height: 260px; }
.combo-pick { margin-bottom: 10px; } .combo-pick select { max-width: 520px; }
.combo-list { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 8px; } .combo-list span { font-size: 11.5px; background: #F3F4F6; border-radius: 5px; padding: 2px 6px; }
.gcp-box { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #F8FAFC; border: 1px solid var(--line); }
.conn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 16px; }
.conn-grid .kv > div { font-size: 12.5px; }
.kv dd .qw-ratio { display: inline-flex; min-width: 140px; vertical-align: middle; }
.card-h .meta .btn { margin-left: auto; }
.tiles .tile-val { overflow-wrap: anywhere; }
html[data-theme="dark"] .callout.sample-note, html[data-theme="dark"] .review-box { background: #3B2A0B; color: #FDE68A; }
.field .seg { display: flex; flex-wrap: wrap; width: 100%; } .field .seg button { flex: 1 1 auto; }
/* Pilihan material (langkah 1, tahap 2) */
.mat-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.mat-opt { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); cursor: pointer; min-width: 0; }
.mat-opt b { font-size: 15px; } .mat-opt .mat-std { font-size: 12px; font-weight: 600; color: var(--teal); } .mat-opt small { color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
.mat-opt:hover { border-color: var(--teal); } .mat-opt.on { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: var(--teal-2); }
@media (max-width: 720px) { .mat-pick { grid-template-columns: 1fr; } }
