﻿:root {
  --navy: #1F3864; --navy2: #2F5597; --gold: #C9A043; --gold-light: #E8C66A; --gold-dark: #8A6420;
  --gray: #F2F4F7; --line: #D5DCE7; --text: #1D2433; --muted: #566074; --bad: #C00000; --warnbg: #FBE5D6;
  --paper: #F0F3F8; --grid: rgba(47, 85, 151, .05); --grid2: rgba(47, 85, 151, .13);
  --tabs: 62px; color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 "Segoe UI", Roboto, Arial, sans-serif; color: var(--text);
  /* Latar kertas putih bergrid seperti Kalkulator Lapangan dan video promo: garis tipis tiap 16 px, garis tegas tiap 80 px. */
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    linear-gradient(var(--grid2) 1px, transparent 1px), linear-gradient(90deg, var(--grid2) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-attachment: fixed;
  padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; min-height: 58px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: var(--navy); color: #fff; }
.top img { border-radius: 8px; background: #fff; }
.title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.title strong { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title small { color: #C9D3E6; font-size: 12px; }
.iconbtn { width: 44px; height: 44px; margin: -4px 0 -4px -8px; border: 0; border-radius: 10px; background: none; color: inherit; display: grid; place-items: center; }
.chip { border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 700; padding: 8px 14px; font-size: 14px; }

main { max-width: 1040px; margin: 0 auto; padding: 14px; outline: none; }
.tabs { position: fixed; inset: auto 0 0 0; z-index: 10; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; height: var(--tabs); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 12px; color: var(--muted); text-decoration: none; }
.tabs a[aria-current] { color: var(--navy); font-weight: 700; box-shadow: inset 0 3px 0 var(--gold); }

h2 { font-size: 16px; color: var(--navy); margin: 20px 2px 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(31, 56, 100, .06); }
.card > :last-child { margin-bottom: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 3px; min-height: 124px; box-shadow: 0 2px 8px rgba(31, 56, 100, .06); }
.tile:active { background: #E9EEF7; }
.tile .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; margin-bottom: 6px; }
.tile b { color: var(--navy); line-height: 1.2; }
.tile span { font-size: 13px; color: var(--muted); line-height: 1.3; }

.calc { display: grid; gap: 12px; align-items: start; }
@media (min-width: 820px) { .calc { grid-template-columns: 380px 1fr; } }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f.wide { grid-column: 1 / -1; }
.f label { font-size: 14px; font-weight: 600; }
.in { display: flex; align-items: stretch; border: 1.5px solid #9AA6BA; border-radius: 10px; background: #fff; overflow: hidden; }
.in:focus-within { border-color: var(--navy); box-shadow: 0 0 0 2px var(--gold-light); }
.in input { flex: 1; min-width: 0; border: 0; padding: 0 10px; height: 46px; font-size: 18px; background: none; outline: none; }
.in em { font-style: normal; color: var(--muted); padding: 0 10px; display: grid; place-items: center; background: var(--gray); font-size: 14px; }
.f.err .in { border-color: var(--bad); }
.f .msg { color: var(--bad); font-size: 13px; }
.f .hint { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
select, .txt { width: 100%; height: 48px; border: 1.5px solid #9AA6BA; border-radius: 10px; background: #fff; padding: 0 10px; font-size: 16px; }
details.adv { margin-top: 12px; border-top: 1px solid var(--line); }
details.adv summary { padding: 12px 0; font-weight: 600; color: var(--navy2); cursor: pointer; }

.vol { background: var(--navy); color: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.vol div { display: flex; flex-direction: column; }
.vol span { font-size: 13px; color: #C9D3E6; }
.vol b { font-size: 26px; line-height: 1.2; }
.vol b small { font-size: 15px; font-weight: 400; }
.empty { text-align: center; color: var(--muted); padding: 26px 16px; }
.alert { background: var(--warnbg); border-left: 4px solid var(--bad); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }

.mat { width: 100%; border-collapse: collapse; }
.mat th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.mat td { padding: 9px 0; border-bottom: 1px solid #E8ECF3; vertical-align: top; }
.mat tr:last-child td { border-bottom: 0; }
.mat td:nth-child(n+2), .mat th:nth-child(n+2) { text-align: right; padding-left: 8px; white-space: nowrap; }
.mat b { color: var(--navy); font-size: 17px; }
.mat small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.mat td:first-child { overflow-wrap: anywhere; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 2px solid var(--navy); margin-top: 4px; padding-top: 10px; font-weight: 700; color: var(--navy); }
.total b { font-size: 20px; }
.notes { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.notes li { margin: 3px 0; }
.info { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; font-size: 15px; }
.info b { text-align: right; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--navy);
  background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; text-align: center; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.sm { min-height: 40px; padding: 0 12px; font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.pindah { border-left: 5px solid var(--gold); }
.pindah p { margin: 0 0 8px; }
.row .btn { flex: 1 1 130px; padding: 0 8px; font-size: 15px; }
.item { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #E8ECF3; }
.item:last-child { border-bottom: 0; }
.item a { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.item a b { color: var(--navy); display: block; overflow-wrap: anywhere; }
.item a small { color: var(--muted); }
.x { border: 0; background: none; width: 44px; height: 44px; border-radius: 10px; color: var(--bad); display: grid; place-items: center; flex: none; }

.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; padding: 4px 14px 16px; text-align: center; font-size: 13px; color: var(--muted); }
.foot a { color: var(--navy2); font-weight: 600; padding: 4px 0; }
.foot span { padding: 4px 0; }

.tile { position: relative; }
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.msgx { color: var(--bad); font-size: 14px; min-height: 20px; margin: 6px 0; }
.item .btn.sm { flex: none; }

dialog { border: 0; border-radius: 16px; padding: 18px; width: min(420px, 92vw); color: var(--text); }
dialog::backdrop { background: rgba(15, 28, 54, .55); }
dialog h3 { margin: 0 0 10px; color: var(--navy); }
dialog .row { margin-top: 14px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #111A2E; color: #fff; padding: 10px 16px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; z-index: 20; font-size: 14px; }
#toast.on { opacity: 1; }
.only-print { display: none; }

@media print {
  @page { margin: 14mm; }
  body { background: #fff; padding: 0; font-size: 11pt; }
  .top, .tabs, #toast, .noprint, .x { display: none !important; }
  main { max-width: none; padding: 0; }
  .card { border: 0; padding: 0; border-radius: 0; box-shadow: none; }
  .only-print { display: block; }
  .phead { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid #1F3864; padding-bottom: 8px; margin-bottom: 12px; }
  .pricebtn { text-decoration: none; color: inherit; }
  .mat tr, .item { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }

/* ---------- Mesin Struktur ---------- */
.ver { color: #C9D3E6; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; text-decoration: none; white-space: nowrap; }
main { max-width: 1280px; }
@media (min-width: 900px) { .calc { grid-template-columns: 400px minmax(0, 1fr); } #form { position: sticky; top: 70px; max-height: calc(100vh - 140px); overflow: auto; padding-right: 4px; } }
.tools { margin-top: 10px; }
.tools .btn { flex: 1 1 90px; }
.btn.add { margin: 8px 0 12px; gap: 4px; }
.btn.add svg { width: 18px; height: 18px; }
.ck { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 10px 0 0; }
.ck input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 600; text-align: left; padding: 0 4px 4px; }
.tbl td { padding: 3px 4px 3px 0; }
.tbl td:first-child { color: var(--muted); font-size: 13px; }
.tbl .f { gap: 0; }
.tbl select { height: 40px; padding: 0 4px; min-width: 64px; }
.cell { width: 100%; min-width: 0; height: 40px; border: 1.5px solid #9AA6BA; border-radius: 8px; padding: 0 8px; font-size: 16px; background: #fff; }
.cell:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 2px var(--gold-light); }
.bad, .cell.bad { border-color: var(--bad) !important; background: #FFF4F4; }
.tbl .x { width: 36px; height: 36px; }
.tbl .x svg { width: 18px; height: 18px; }
.barrow { display: grid; grid-template-columns: 1fr 64px 92px; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.barrow select { height: 40px; }
.fields .f.wide { grid-column: 1 / -1; }

.vol.good { background: #1B5E3A; }
.vol.badv { background: var(--bad); }
.plot { width: 100%; height: auto; display: block; }
.plot .beam { stroke: var(--navy); stroke-width: 4; }
.plot .sup { stroke: var(--navy); fill: #fff; stroke-width: 2; }
.plot .hatch, .plot .dim { stroke: var(--muted); stroke-width: 1; }
.plot .udl { fill: rgba(201, 160, 67, .25); stroke: var(--gold-dark); stroke-width: 1; }
.plot .arrow { stroke: var(--bad); stroke-width: 2; fill: none; }
.plot .lbl { font: 11px "Segoe UI", Arial, sans-serif; fill: var(--text); }
.plot .lbl.c, .sec .lbl.c { text-anchor: middle; }
.plot .lbl.r { text-anchor: end; }
.plot .grid { stroke: var(--line); stroke-dasharray: 3 3; }
.plot .axis { stroke: var(--text); stroke-width: 1; }
.plot .fpos { fill: rgba(47, 85, 151, .25); stroke: var(--navy2); stroke-width: 1.5; }
.plot .fneg { fill: rgba(192, 0, 0, .14); stroke: var(--bad); stroke-width: 1.5; }
.plot .fdef { fill: rgba(138, 100, 32, .18); stroke: var(--gold-dark); stroke-width: 1.5; }
.plot .cap { fill: none; stroke: #1B5E3A; stroke-width: 1.3; stroke-dasharray: 6 4; }
.plot .dot { fill: var(--text); }
.plot .phi { fill: rgba(47, 85, 151, .12); stroke: var(--navy2); stroke-width: 2; }
.plot .nom { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 5 4; }
.plot .ray { stroke: var(--bad); stroke-width: 1; stroke-dasharray: 3 3; }
.plot .load { fill: var(--bad); }
figure { margin: 6px 0 10px; }
figcaption { font-size: 13.5px; font-weight: 600; color: var(--navy); }
figcaption small { font-weight: 400; color: var(--muted); }
.pms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; align-items: start; }
.pms .sec { max-width: 220px; justify-self: center; }
.legend { font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lg { display: inline-block; width: 16px; height: 3px; vertical-align: middle; }
.lg.phi { background: var(--navy2); } .lg.nom { border-top: 2px dashed var(--muted); height: 0; } .lg.load { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); }
.secs { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.sec { width: 190px; height: auto; }
.sec .conc { fill: #E9ECF1; stroke: var(--text); stroke-width: 1.2; }
.sec .stir { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.sec .bar { fill: var(--navy); }
.sec .lbl { font: 11px "Segoe UI", Arial, sans-serif; fill: var(--text); }

.mat.chk td:nth-child(n+2) { font-variant-numeric: tabular-nums; }
.mat.chk small { white-space: normal; }
.mat tr.ng td { background: #FFF4F4; }
.okc { color: #1B5E3A !important; } .ngc { color: var(--bad) !important; }
.steps .step { border-top: 1px solid var(--line); padding: 8px 0 6px; break-inside: avoid-page; }
.steps .step:first-of-type { border-top: 0; }
.steps h4 { margin: 0 0 6px; color: var(--navy); font-size: 14.5px; }
.steps h4 small { color: var(--muted); font-weight: 400; }
.steps p { font-size: 13.5px; margin: 6px 0; }
.lr { display: grid; grid-template-columns: minmax(70px, 150px) 1fr auto; gap: 2px 10px; font-size: 13.5px; padding: 3px 0; border-bottom: 1px dotted #E1E6EE; align-items: baseline; }
.lr .sym { font-weight: 600; }
.lr .eq { color: var(--muted); overflow-wrap: anywhere; }
.lr .eq i { color: var(--text); font-style: normal; display: block; }
.lr b { text-align: right; white-space: nowrap; color: var(--navy); }
.lr small { grid-column: 2 / -1; color: var(--muted); font-size: 11.5px; }
.lr small:empty { display: none; }
.chkrow.ok b { color: #1B5E3A; } .chkrow.ng b { color: var(--bad); }
.chkrow.ng { background: #FFF4F4; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.disc { font-size: 12.5px; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 10px; margin: 12px 0; }
@media (max-width: 520px) { .lr { grid-template-columns: 1fr auto; } .lr .eq { grid-column: 1 / -1; grid-row: 2; } .lr small { grid-column: 1 / -1; } }
@media print {
  .calc { display: block; }
  #form { display: none !important; }
  .foot, .ver, #install { display: none !important; }
  .vol { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .plot, .sec { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  figure, .pms, .secs { break-inside: avoid; }
}
/* Kolom grid tidak boleh melebar mengikuti isi (tabel, svg) */
.calc { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .calc { grid-template-columns: 400px minmax(0, 1fr); } }
.fields > * { min-width: 0; }
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 520px) { .mat { font-size: 13.5px; } .mat th { white-space: normal; } }
/* ---------- 1.1: proyek, rekap, saran ---------- */
.back { display: inline-block; color: var(--navy2); font-weight: 600; text-decoration: none; margin-bottom: 10px; font-size: 14px; }
.addrow { margin-bottom: 12px; }
.addrow .btn { gap: 6px; }
.addrow .btn svg { width: 18px; height: 18px; }
.pstat { margin: 12px 0 0; }
.mat.rekap td:nth-child(2), .mat.rekap td:nth-child(3), .mat.rekap th:nth-child(2), .mat.rekap th:nth-child(3) { text-align: left; white-space: normal; }
.mat.rekap a { color: var(--navy); text-decoration: none; }
.mat.rekap small { white-space: normal; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; background: var(--gold); color: var(--navy); border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
.card.saran { border-left: 5px solid var(--gold); }
.card.saran.s-perbaiki { border-left-color: var(--bad); }
.card.saran.s-hemat { border-left-color: #1B5E3A; }
.saranl li { font-size: 14px; color: var(--text); }
.searching, .okline { margin: 0 0 10px; }
.okline { color: #1B5E3A; }
label.btn { cursor: pointer; }
@media print {
  .rep { break-before: page; }
  .addrow, .pstat { display: none !important; }
}
#mini { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tabs) + 8px + env(safe-area-inset-bottom)); z-index: 9; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; color: #fff; text-decoration: none; font-size: 14px; box-shadow: 0 4px 14px rgba(15, 28, 54, .25); background: var(--navy); }
#mini.ok { background: #1B5E3A; } #mini.ng { background: var(--bad); }
#mini span { white-space: nowrap; font-weight: 600; }
body:has(#mini:not([hidden])) main { padding-bottom: 70px; }
@media (min-width: 900px) { #mini { display: none; } body:has(#mini) main { padding-bottom: 14px; } }
#saran .card, #res { scroll-margin-top: 72px; }
/* ---------- 1.2: pelat ---------- */
.slabwrap { display: grid; gap: 12px; align-items: center; }
@media (min-width: 640px) { .slabwrap { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } }
.plan { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; }
.plan .slab { fill: #EEF2F8; stroke: none; }
.plan .edge { stroke: var(--text); stroke-width: 1.5; }
.plan .cont { stroke: var(--navy); stroke-width: 6; }
.plan .para { stroke: var(--gold-dark); stroke-width: 4; stroke-dasharray: 8 4; }
.plan .trib { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 5 4; }
.plan .lbl { font: 11px "Segoe UI", Arial, sans-serif; fill: var(--text); }
.plan .lbl.c { text-anchor: middle; } .plan .lbl.r { text-anchor: end; }
.chip-row { font-size: 14px; }
.chip-row > span { flex: 1; min-width: 0; }
.plan text, .plot text, .sec text { stroke: none; }
/* ---------- 1.3: fondasi ---------- */
.plan .edgebox { fill: none; stroke: var(--text); stroke-width: 1.5; }
.plan .colr { fill: #C9D3E6; stroke: var(--navy); stroke-width: 1.5; }
.plan .ground { stroke: #8A6420; stroke-width: 2; stroke-dasharray: 6 3; }
.vol.lite { background: #EEF2F8; color: var(--text); margin: 0; }
.vol.lite span { color: var(--muted); }
.vol.lite b { font-size: 22px; color: var(--navy); }
.linked { background: #EEF2F8; border-left: 4px solid var(--navy2); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
/* baris rekap bisa diklik seluruhnya */
.mat.rekap tr.go { cursor: pointer; }
.mat.rekap tr.go:hover td { background: #EEF2F8; }
.mat.rekap tr.go td:first-child b::after { content: " ›"; color: var(--muted); font-weight: 400; }
.linked a { color: var(--navy2); font-weight: 700; }
.fyro { height: 46px; display: flex; align-items: center; padding: 0 10px; border-radius: 10px; background: var(--gray); font-size: 18px; color: var(--muted); }
.plan .fill { fill: #EADFC8; stroke: none; }
/* tombol tambah elemen per kelompok bahan */
.addgroups { display: grid; gap: 8px; margin-bottom: 12px; }
.addg { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: start; }
.addg > span { font-size: 13px; font-weight: 700; color: var(--navy); padding-top: 10px; }
.addg .addrow { margin: 0; }
.addg .btn { flex: 0 1 auto; gap: 4px; }
.addg .btn svg { width: 16px; height: 16px; }
@media (max-width: 520px) { .addg { grid-template-columns: 1fr; } .addg > span { padding-top: 0; } }
/* ---------- 1.7: ikon elemen, tab Rekap, hasil dilipat ---------- */
.eico { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; }
.eico svg { width: 24px; height: 24px; }
.eico.m-beton { background: #E3E9F3; color: var(--navy); }
.eico.m-baja { background: #E4ECEF; color: #2E5E6E; }
.eico.m-kayu { background: #F3E9DA; color: #7A4E1D; }
.eico.m-pondasi { background: #EDE7DC; color: #5E4A2A; }
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ecard { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-decoration: none; min-height: 64px; }
.ecard:hover { border-color: var(--navy2); background: #F6F8FC; }
.ecard .et { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ecard .et b { color: var(--navy); font-size: 16px; }
.ecard .et small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spill { flex: none; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.spill.ok { background: #E3F2E9; color: #1B5E3A; } .spill.ng { background: #FBE5E5; color: var(--bad); } .spill.err { background: var(--gray); color: var(--muted); }
.addg { display: block; margin-bottom: 12px; }
.addg:last-child { margin-bottom: 0; }
.addg h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.atile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font-size: 14px; font-weight: 600; color: var(--navy); min-height: 58px; }
.atile:hover { border-color: var(--navy2); background: #F6F8FC; }
.atile .eico { width: 36px; height: 36px; border-radius: 9px; }
.atile .eico svg { width: 21px; height: 21px; }
.mat.rekap .rk { display: flex; align-items: center; gap: 10px; }
.mat.rekap .rk .eico { width: 34px; height: 34px; border-radius: 9px; }
.mat.rekap .rk .eico svg { width: 20px; height: 20px; }
.mat.rekap .rk > span:last-child { min-width: 0; }
.dtoggle { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
#res.collapsed .detail { display: none; }
@media (max-width: 520px) { .egrid { grid-template-columns: 1fr; } .agrid { grid-template-columns: 1fr 1fr; } .atile { font-size: 13px; } }
@media print {
  #res.collapsed .detail { display: block !important; }
  .dtoggle, .ecard .spill { display: none !important; }
  .eico { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.noprint > .pstat { margin: 0 0 12px; }
/* gambar elemen 1.7.1 */
.plan .wood { fill: #F1E2C6; stroke: #7A4E1D; stroke-width: 1.5; }
.plan .grain { fill: none; stroke: #B88A4E; stroke-width: 1; }
.plan .stone { fill: #D9D3C7; stroke: #5E4A2A; stroke-width: 1.5; }
.plan .rock { fill: #BDB4A3; stroke: #8A7E68; stroke-width: 1; }
.plan .sand { fill: #EADFC8; stroke: #8A6420; stroke-width: 1; stroke-dasharray: 3 2; }
.plan .pile { fill: #fff; stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 3 2; }
.plan .rebar { stroke: var(--bad); stroke-width: 2; }
.plan .beam { stroke: var(--navy); stroke-width: 5; }
.plan .arrow { stroke: var(--bad); stroke-width: 2; fill: none; }
