/* Dashboard Adiraka · gaya mengikuti adiraka.com / rent.adiraka.com */
:root{--kuning:#F5D410;--ink:#38341C;--bg:#FAF9F3;--teks:#2E2C1F;--muted:#6F6C59;--ink2:#544F37;--garis:#ECE8D3;--garis2:#DDD8BC;--soft:#FEF9DA;--mid:#FBEE9F;--krem:#F2EFDD;
--ok:#1B7A4B;--okbg:#E3F4EA;--warn:#9A5200;--warnbg:#FFF0D6;--info:#1E4FA8;--infobg:#E7EEFB;--err:#B42318;--errbg:#FDE7E5}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--teks);font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.5}
a{color:var(--ink)}
h1{margin:0;font-size:28px;font-weight:700;letter-spacing:-.01em}
h2{margin:0;font-size:16px;font-weight:700}
.app{display:flex;min-height:100vh}
.main{flex:1;min-width:0;padding:26px 32px 48px;display:flex;flex-direction:column;gap:18px}
.head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px}
.head .sub{font-size:13px;color:var(--muted)}
.row{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
.grow{flex:1 1 360px;min-width:0}
.grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.card{background:#fff;border:1px solid var(--garis);border-radius:14px;padding:18px 20px;display:flex;flex-direction:column;gap:10px}
.card.tight{padding:0;overflow:hidden}
.kpi .l{font-size:12px;color:var(--muted)}.kpi .v{font-size:22px;font-weight:700}.kpi .n{font-size:12px;color:var(--muted)}
.muted{color:var(--muted)}.small{font-size:12px}.b{font-weight:700}.right{text-align:right}.nowrap{white-space:nowrap}
.pos{color:var(--ok)}.neg{color:var(--err)}

/* Tombol */
.btn{font:inherit;font-size:14px;font-weight:600;padding:9px 14px;min-height:42px;border-radius:10px;border:1px solid var(--garis2);background:#fff;color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.btn:hover{background:var(--bg)}
.btn.primary{background:var(--kuning);border-color:var(--kuning);font-weight:700}
.btn.dark{background:var(--ink);border-color:var(--ink);color:#fff;font-weight:700}
.btn.danger{color:var(--err);border-color:#F3C1BB}
.btn.sm{font-size:12px;min-height:32px;padding:5px 10px;border-radius:8px}
.chips{display:flex;flex-wrap:wrap;gap:4px}
.chip{font-size:12px;font-weight:600;padding:6px 10px;min-height:32px;border-radius:8px;border:1px solid var(--garis2);background:#fff;color:var(--ink2);text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.chip.on{background:var(--ink);border-color:var(--ink);color:#fff}
.seg{display:inline-flex;gap:4px;padding:4px;background:var(--krem);border-radius:12px}
.seg a{font-size:13px;font-weight:600;padding:7px 14px;border-radius:9px;color:var(--ink2);text-decoration:none}
.seg a.on{background:#fff;color:var(--teks);font-weight:700}
.dot{display:inline-block;width:9px;height:9px;border-radius:3px}
.pill{display:inline-block;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;white-space:nowrap}
.p-ok{background:var(--okbg);color:var(--ok)}.p-warn{background:var(--warnbg);color:var(--warn)}.p-info{background:var(--infobg);color:var(--info)}.p-err{background:var(--errbg);color:var(--err)}.p-mut{background:var(--krem);color:var(--ink2)}

/* Notifikasi */
.flash{padding:11px 14px;border-radius:10px;font-weight:600}
.flash.ok{background:var(--okbg);color:var(--ok)}.flash.err{background:var(--errbg);color:var(--err)}
.note{padding:11px 14px;border-radius:10px;font-size:13px;line-height:1.55}
.note.info{background:var(--infobg);color:#173F87}.note.warn{background:var(--warnbg);color:#6B3A00}.note.soft{background:var(--soft)}

/* Form */
.fgrid{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
label.f,div.f{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600}
.in,select.in,textarea.in{font:inherit;font-weight:400;font-size:14px;padding:9px 10px;min-height:42px;border:1px solid var(--garis2);border-radius:10px;background:#fff;width:100%;color:var(--teks)}
textarea.in{min-height:120px;resize:vertical;line-height:1.6}
.in:focus{outline:2px solid var(--kuning);outline-offset:1px;border-color:var(--ink)}
details.box{background:#fff;border:2px solid var(--ink);border-radius:14px;padding:4px 18px}
details.box>summary{cursor:pointer;font-weight:700;padding:12px 0;list-style:none}
details.box[open]{padding-bottom:18px}

/* Tabel gaya spreadsheet */
.sheet{overflow:auto;max-height:640px}
table.g{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}
table.g th,table.g td{border-right:1px solid var(--garis);border-bottom:1px solid var(--garis);padding:7px 10px;white-space:nowrap;text-align:left}
table.g th{position:sticky;top:0;z-index:1;background:var(--krem);font-size:12px;font-weight:700;color:var(--ink2)}
table.g td.n,table.g th.n{text-align:right;font-variant-numeric:tabular-nums}
table.g td.rn{background:#F7F5EA;color:#8A8670;text-align:right;font-size:11px}
table.g tbody tr:hover td{background:#FFFCEB}
table.g tr.t td{background:var(--soft);font-weight:700}
table.g tr.T td{background:var(--ink);color:#fff;font-weight:700}
table.g tr.h td{background:var(--bg);font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
table.g tfoot td{position:sticky;bottom:0;background:var(--ink);color:#fff;font-weight:700}
.tabs-bottom{display:flex;flex-wrap:wrap;gap:2px;padding:0 8px;border-top:1px solid var(--garis2);background:var(--krem)}
.tabs-bottom a{font-size:13px;padding:9px 16px;color:var(--ink2);text-decoration:none}
.tabs-bottom a.on{background:#fff;font-weight:700;color:var(--teks);box-shadow:inset 0 3px 0 var(--kuning)}
.toolbar{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-bottom:1px solid var(--garis2);background:var(--bg)}

/* Sidebar */
.sb{width:256px;flex:none;background:#fff;border-right:1px solid var(--garis);padding:20px 14px 16px;display:flex;flex-direction:column;gap:12px;position:sticky;top:0;height:100vh;overflow-y:auto}
.sb .logo{font-weight:800;font-size:20px;letter-spacing:-.02em;padding:0 6px}
.sb .logo span{background:var(--kuning);padding:0 6px;border-radius:6px}
.sb .role{align-self:flex-start;margin-left:6px;font-size:11px;font-weight:700;letter-spacing:.04em;padding:4px 9px;border-radius:999px;background:var(--ink);color:var(--kuning)}
.sb .grp{display:flex;flex-direction:column;gap:2px;padding:6px;border-radius:12px}
.sb .grp.act{background:#FFFDF2;box-shadow:inset 0 0 0 1px #F2EAB8}
.sb .gh{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:6px 8px}
.sb a.it{display:flex;align-items:center;gap:10px;text-decoration:none;padding:6px 8px;min-height:38px;border-radius:10px;font-size:14px;color:#3F3B25;font-weight:500}
.sb a.it:hover{background:var(--bg)}
.sb a.it.on{background:var(--kuning);color:var(--ink);font-weight:700}
.sb .tile{flex:none;width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center}
.sb a.it.on .tile{background:var(--ink)!important;color:var(--kuning)!important}
.sb .badge{margin-left:auto;font-size:11px;font-weight:700;min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--errbg);color:var(--err)}
.sb .soon{margin-left:auto;font-size:10px;font-weight:700;color:#A9A58F}
.sb a.it.off{color:#A9A58F;pointer-events:none}
.sb .me{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-radius:12px;background:var(--bg);border:1px solid var(--garis)}
.ava{width:34px;height:34px;border-radius:999px;background:var(--kuning);color:var(--ink);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}

/* Bar chart */
.bars{display:grid;gap:10px;align-items:end;height:200px;border-bottom:1px solid var(--garis)}
.bars>div{display:flex;gap:4px;align-items:flex-end;justify-content:center;height:100%}
.bars i{display:block;width:38%;border-radius:4px 4px 0 0}

/* Tracker */
.board{display:grid;gap:12px;overflow-x:auto}
.col{background:var(--krem);border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:8px;min-width:200px}
.tcard{display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid var(--garis);border-radius:12px;padding:11px 13px;text-decoration:none;color:var(--teks)}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.cal .d{min-height:96px;border-radius:10px;padding:6px;display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--garis)}
.cal .d.out{background:var(--bg);border-color:var(--krem);color:#B8B39A}
.cal .d.today{box-shadow:inset 0 0 0 2px var(--kuning)}
.cal .ev{font-size:11px;line-height:1.35;padding:4px 6px;border-radius:6px;text-decoration:none;color:var(--teks);border-left:3px solid}
.drawer-bg{position:fixed;inset:0;background:rgba(46,44,31,.08);z-index:20;display:flex;justify-content:flex-end}
.drawer-bg>a.close-area{flex:1}
.drawer{width:min(max(46vw,580px),100%);height:100%;overflow-y:auto;background:#fff;box-shadow:-12px 0 40px rgba(46,44,31,.16);border-left:1px solid var(--garis);padding:0 0 32px;display:flex;flex-direction:column;transition:width .18s ease}
dl.props{margin:0;display:grid;grid-template-columns:140px 1fr;row-gap:10px;column-gap:12px;align-items:center}
dl.props dt{color:var(--muted)}dl.props dd{margin:0}
.check{display:flex;align-items:center;gap:10px;padding:7px 4px;border-bottom:1px solid var(--krem);width:100%;font:inherit;background:none;border-left:0;border-right:0;border-top:0;cursor:pointer;text-align:left}
.check .bx{flex:none;width:20px;height:20px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;border:1.5px solid var(--garis2)}
.check.done .bx{background:var(--ok);border-color:var(--ok);color:#fff}
.check.done .lb{color:#8A8670;text-decoration:line-through}
.stagesel{font:inherit;font-size:12px;font-weight:700;padding:5px 10px;min-height:32px;border-radius:999px;cursor:pointer;border:1px solid}
.progress{height:8px;border-radius:999px;background:var(--krem)}.progress>i{display:block;height:8px;border-radius:999px}

/* Login */
.login{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;background:radial-gradient(circle at 12% 18%,#ffffff40 0 18%,transparent 18.2%),radial-gradient(circle at 92% 88%,#38341C14 0 26%,transparent 26.2%),radial-gradient(circle at 85% 10%,#ffffff26 0 9%,transparent 9.2%),var(--kuning)}
.login .card{width:min(410px,100%);padding:34px 30px 28px;gap:14px;border:0;border-radius:22px;box-shadow:0 24px 60px rgba(56,52,28,.25)}
.login .card h1{text-align:center;font-size:21px;margin:6px 0 2px}.login .card .lead{display:block;text-align:center;color:var(--muted)}
.login .login-logo{margin:0 auto;object-position:center}.login .btn.primary{min-height:46px;font-size:15px;background:var(--ink);color:#fff;border-color:var(--ink)}
.login-foot{font-size:12px;color:var(--ink2);text-align:center}

@media (max-width:900px){.app{flex-direction:column}.sb{width:100%;height:auto;position:static;border-right:none;border-bottom:1px solid var(--garis)}.main{padding:20px 16px 40px}}
@media print{.sb,.noprint{display:none!important}.main{padding:0}.card{border:none}}

/* Logo */
.sb .logo-img{display:block;padding:0 6px}.sb .logo-img img{display:block;width:150px;max-height:56px;object-fit:contain;object-position:left center}
.login-logo{display:block;width:170px;max-height:70px;object-fit:contain;object-position:left center}
.logo-slot{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--garis);border-radius:12px;background:var(--bg)}
.logo-prev{height:84px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px dashed var(--garis2);border-radius:10px;padding:12px}
.logo-prev img{max-width:100%;max-height:60px;object-fit:contain}

/* Timeline & kalender (sesuai prototipe) */
.btn.sq{width:44px;justify-content:center;padding:0;font-size:16px}
.tl-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tl-chip{display:inline-flex;align-items:center;gap:8px;font-size:13px;padding:9px 14px;min-height:40px;border-radius:999px;text-decoration:none;color:var(--muted);border:1px dashed var(--garis2);background:transparent}
.tl-chip .dot{width:10px;height:10px}
.tl-chip.on{background:#fff;color:var(--teks);font-weight:700;border:2px solid var(--ink)}
.tl-chip.all{background:#fff;color:var(--teks);border:1px solid var(--garis2)}
.tl-chip.all.on{background:var(--ink);color:#fff;font-weight:700;border:2px solid var(--ink)}
.tl-wrap{overflow-x:auto}
.tl-in{min-width:900px;display:flex;flex-direction:column;gap:8px}
.tl-row{display:flex;align-items:center;gap:12px}
.tl-name{width:200px;flex:none;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
.tl-days,.tl-track{flex:1;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr))}
.tl-days span{font-size:11px;color:var(--muted);text-align:center;padding:2px 0}
.tl-days span.we{color:#A8A48A}
.tl-days span.now{font-weight:700;color:var(--ink);background:var(--kuning);border-radius:6px}
.tl-track{height:30px;background:#FDFCF7;border-radius:8px;position:relative}
.tl-today{grid-row:1;align-self:stretch;justify-self:center;width:2px;background:var(--kuning);z-index:0}
.tl-bar{grid-row:1;z-index:1;border-radius:8px;font-size:12px;font-weight:700;display:flex;align-items:center;padding:0 10px;white-space:nowrap;color:#fff;text-decoration:none;overflow:hidden}
.tl-bar.cl{border-top-left-radius:0;border-bottom-left-radius:0}.tl-bar.cr{border-top-right-radius:0;border-bottom-right-radius:0}
.tl-empty{grid-column:1/-1;grid-row:1;align-self:center;font-size:12px;color:var(--muted);padding:0 10px}
.tl-cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.tl-wd span{font-size:12px;font-weight:600;color:var(--muted);padding:0 6px}
.tl-cell{min-height:96px;border-radius:10px;padding:6px;display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--garis);min-width:0}
.tl-cell.out{background:#FDFCF7;border-color:var(--krem)}
.tl-cell.today{box-shadow:inset 0 0 0 2px var(--ink)}
.tl-cell .n{font-size:12px;font-weight:700;padding:2px 4px}
.tl-cell.out .n{color:#A8A48A}
.tl-ev{display:block;font-size:11px;font-weight:600;padding:3px 6px;border-radius:6px;border-left:3px solid transparent;color:var(--teks);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}
.tl-ev.done{text-decoration:line-through;opacity:.6}
.tl-more{font-size:11px;color:var(--muted);padding:0 6px}

/* Ringkasan keuangan */
.kbars{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:10px;align-items:end;height:200px;border-bottom:1px solid var(--garis)}
.kbars a{display:flex;gap:3px;align-items:flex-end;justify-content:center;height:100%}
.kbars a span{width:40%;border-radius:3px 3px 0 0;min-height:1px}
.kbars-l{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:10px;font-size:11px;color:var(--muted);text-align:center}
.kbar{height:8px;border-radius:999px;background:var(--krem);overflow:hidden}.kbar span{display:block;height:100%;border-radius:999px}
.kcat{display:grid;grid-template-columns:200px 1fr 120px;gap:10px;align-items:center;font-size:13px}.kcat a{color:inherit;text-decoration:none}
.kline{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:5px 0;border-bottom:1px solid var(--krem);color:inherit;text-decoration:none}

/* Sidebar: grup bisa dilipat (seperti prototipe) + menu ringkas di layar kecil */
.sb-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sb-top .role{margin-left:6px}
.sb-toggle{display:none}
.sb .sb-menu{display:flex;flex-direction:column;gap:6px}
.sb .gi{display:flex;flex-direction:column;gap:2px}
.sb button.gh{font:inherit;font-size:11px;font-weight:700;letter-spacing:.08em;width:100%;justify-content:space-between;border:none;background:transparent;border-radius:8px;cursor:default;min-height:30px}
.sb button.gh[data-grp-toggle]{cursor:pointer}.sb button.gh[data-grp-toggle]:hover{background:var(--bg)}
.sb .chev{font-size:16px;line-height:1;transition:transform .15s;transform:rotate(90deg)}
.sb .grp.closed .gi{display:none}.sb .grp.closed .chev{transform:rotate(0)}
@media (max-width:900px){.sb-toggle{display:inline-flex}.sb .sb-menu,.sb .me{display:none}.sb.open .sb-menu,.sb.open .me{display:flex}}

/* Cashflow: pilih beberapa untuk dihapus */
.bulkbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 18px;border-bottom:1px solid var(--garis)}
.bulkbar .bulk-on{display:none}.bulkbar.on .bulk-on{display:inline-flex}.bulkbar.on{background:#FFF8D6;position:sticky;top:0;z-index:3}
.rn .rn-c{display:none;width:18px;height:18px;margin:0;accent-color:#38341C;cursor:pointer}
.selmode .rn .rn-n{display:none}.selmode .rn .rn-c{display:inline-block}
.selmode tr:has(.rn-c:checked) td{background:#FFF3B0}

/* Grafik arus kas interaktif */
.seg button{font:inherit;font-size:13px;font-weight:600;padding:7px 14px;border-radius:9px;color:var(--ink2);border:none;background:transparent;cursor:pointer}.seg button.on{background:#fff;color:var(--teks);font-weight:700}
.cf-sum{display:flex;flex-wrap:wrap;gap:8px}
.cf-pill{font-size:12px;padding:5px 10px;border-radius:999px;background:var(--krem);color:var(--ink2)}
.cf-pill.plus{background:#E3F4EA;color:#1B7A4B}.cf-pill.min{background:#FDE7E5;color:#B42318}
.cf-wrap{position:relative}
.cf-svg{width:100%;height:auto;display:block;overflow:visible}
.cf-grid{stroke:#F2EFDD;stroke-width:1}.cf-zero{stroke:#8A8670;stroke-width:1.2;stroke-dasharray:4 3}
.cf-ax{font-size:11px;fill:#6F6C59}
.cf-pos{fill:#1B7A4B;opacity:.18}.cf-neg{fill:#B42318;opacity:.18}
.cf-line{fill:none;stroke:#38341C;stroke-width:2.2;stroke-linejoin:round}
.cf-line.in{stroke:#38341C}.cf-line.out{stroke:#E6A700}.cf-line.saldo{stroke:#1E4FA8}
.cf-dot{stroke:#fff;stroke-width:2}.cf-dot.pos{fill:#1B7A4B}.cf-dot.neg{fill:#B42318}.cf-dot.in{fill:#38341C}.cf-dot.out{fill:#E6A700}.cf-dot.saldo{fill:#1E4FA8}
.cf-lbl{font-size:11px;font-weight:700;fill:#38341C}.cf-lbl.pos{fill:#1B7A4B}.cf-lbl.neg{fill:#B42318}
.cf-hit{fill:transparent;cursor:pointer;outline:none}.cf-hit:hover,.cf-hit:focus,.cf-hit.on{fill:rgba(56,52,28,.05)}
.cf-tip{position:absolute;z-index:5;pointer-events:none;min-width:190px;background:#fff;border:1px solid var(--garis);border-radius:12px;box-shadow:0 8px 24px rgba(46,44,31,.14);padding:10px 12px;font-size:13px;display:flex;flex-direction:column;gap:4px}
.cf-tip .st{font-weight:800;font-size:15px}.cf-tip .st.plus{color:#1B7A4B}.cf-tip .st.min{color:#B42318}
.cf-tip .r{display:flex;justify-content:space-between;gap:14px}
.cf-legend{display:flex;flex-wrap:wrap;gap:6px}

/* Uang pegangan */
.adv-kpi{display:flex;gap:18px;flex-wrap:wrap}.adv-kpi span{display:flex;flex-direction:column;font-size:12px;color:var(--muted)}.adv-kpi b{font-size:18px;color:var(--teks)}
.adv-list{display:flex;flex-direction:column;gap:8px}
.adv{border:1px solid var(--garis);border-radius:12px;background:#fff}.adv.closed{opacity:.7}
.adv summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:minmax(160px,1.2fr) minmax(80px,1fr) minmax(220px,2fr) auto;gap:12px;align-items:center;padding:10px 14px}
.adv summary::-webkit-details-marker{display:none}
.adv-who{display:flex;flex-direction:column}
.adv-bar{height:8px;border-radius:999px;background:var(--krem);overflow:hidden}.adv-bar span{display:block;height:100%}
.adv-body{padding:4px 14px 12px;display:flex;flex-direction:column;gap:2px}
@media (max-width:760px){.adv summary{grid-template-columns:1fr auto}.adv-bar,.adv-num{grid-column:1/-1}}
.ulist{display:flex;flex-direction:column;gap:8px}
/* Halaman progres klien: kalender */
.pc-scroll{overflow-x:auto;display:flex;flex-direction:column;gap:6px}.pc-scroll>.tl-cal{min-width:640px}
.pc-ev{display:block;font-size:11px;font-weight:600;padding:3px 6px;border-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none;border-left:3px solid}
.pc-ev.done{background:#E3F4EA;color:#14532D;border-color:#1B7A4B}
.pc-ev.prog{background:#E7EEFB;color:#1E3A7A;border-color:#1E4FA8}
.pc-ev.todo{background:#F2EFDD;color:#544F37;border-color:#A8A48A}
a.pc-ev.done:hover{background:#CDEBD8}
/* Karyawan & performa */
.kgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.kcard{display:flex;flex-direction:column;gap:12px;padding:16px 18px;border-radius:14px;background:#fff;border:1px solid var(--garis);text-decoration:none;color:inherit}
.kcard:hover{border-color:var(--garis2)}.kcard.on{border:2px solid var(--ink);background:#FEF9DA;padding:15px 17px}
.kc-top{display:flex;align-items:center;gap:10px}.kc-name{display:flex;flex-direction:column;flex:1;min-width:0}.kc-name b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kc-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.kc-stats>span{display:flex;flex-direction:column;font-size:11px}.kc-stats b{font-size:17px}
.capt th.c,.capt td.c{text-align:center;padding-left:2px;padding-right:2px}.capt th.cur{color:var(--ink);font-weight:800}
.capc{display:inline-flex;align-items:center;justify-content:center;width:34px;height:26px;border-radius:6px;font-size:11px;font-weight:700;color:#fff}
.capc.cur{outline:2px solid var(--ink);outline-offset:1px}
.cf-tip[hidden]{display:none}

/* Ringkasan: kartu angka utama (terang, kontras lembut) */
.hero{background:#fff;color:var(--teks);border:1px solid var(--garis);border-radius:18px;padding:20px 22px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px 24px}
.hero-top{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--muted)}
.hero-proj{background:#F2EFDD;padding:4px 10px;border-radius:999px;color:var(--ink2);font-weight:700}
.hero-nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hn{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-radius:14px;background:#FCFBF6;border:1px solid #F2EFDD;min-width:0}
.hn b{font-size:clamp(17px,1.9vw,24px);letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hl{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px}
.hdot{width:9px;height:9px;border-radius:3px;display:inline-block}.hdot-in{background:#4FB37A}.hdot-out{background:#E6B71E}
.hc{font-size:12px;color:var(--muted)}.hc.up{color:#1B7A4B}.hc.down{color:#B42318}
.hn.sel{background:#FFFAE0;border-color:#F6E7A1}.hn.sel b{color:#1F1D12}
.hn.sel.min{background:#FDF1EF;border-color:#F6D3CD}.hn.sel.min b{color:#9B2C1F}
.hbadge{align-self:flex-start;font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;background:#fff;border:1px solid #F2EFDD;color:var(--ink2)}
.hn.sel.min .hbadge{color:#9B2C1F}
.hero-chart{display:flex;flex-direction:column;gap:6px;min-width:0;background:#FCFBF6;border:1px solid #F2EFDD;border-radius:14px;padding:12px 14px}
.hc-head{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}.hc-head a{color:var(--ink);font-weight:700}
.hero-svg{width:100%;height:150px;overflow:visible}
.hero-svg .hz{stroke:#DDD8BC;stroke-dasharray:4 4}.hero-svg .hl{fill:none;stroke:#8A7A1E;stroke-width:2;vector-effect:non-scaling-stroke}
.hero-svg circle{stroke:#fff;stroke-width:2}.hero-svg circle.pos{fill:#4FB37A}.hero-svg circle.neg{fill:#D9604F}
.hero-svg text{font-size:11px;font-weight:700}.hero-svg text.pos{fill:#1B7A4B}.hero-svg text.neg{fill:#B42318}.hero-svg text.m{fill:#8A8670;font-weight:500}
@media (max-width:1100px){.hero{grid-template-columns:1fr}}
@media (max-width:640px){.hero-nums{grid-template-columns:1fr}}
.badge-in{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:6px;border-radius:999px;background:#FDE7E5;color:#B42318;font-size:11px;font-weight:700}
.tabs-lg a{font-size:14px;padding:9px 18px}

/* Panel tugas ala Notion: samping (side peek) atau layar penuh */
.peek-bar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 22px;background:rgba(255,255,255,.95);backdrop-filter:blur(6px);border-bottom:1px solid var(--krem)}
.peek-body{padding:18px 26px 0;display:flex;flex-direction:column;gap:16px}
.pk-side{display:none}
.drawer-bg.full{background:rgba(46,44,31,.18)}
.drawer-bg.full .close-area{display:none}
.drawer-bg.full .drawer{width:100%}
.drawer-bg.full .peek-body{max-width:900px;width:100%;margin:0 auto;padding:40px 40px 0}
.drawer-bg.full .peek-body .rte-ed{min-height:46vh}
.drawer-bg.full .pk-full{display:none}.drawer-bg.full .pk-side{display:inline}
@media (max-width:760px){.drawer{width:100%}.peek-body{padding:16px 16px 0}}

/* Editor teks kaya + tampilan baca ala Medium */
.rte{border:1px solid var(--garis2);border-radius:12px;background:#fff;overflow:hidden}
.rte:focus-within{border-color:var(--ink);box-shadow:0 0 0 3px rgba(245,212,16,.35)}
.rte-bar{display:flex;flex-wrap:wrap;gap:2px;padding:6px;border-bottom:1px solid var(--krem);background:#FDFCF7;position:sticky;top:0;z-index:1}
.rte-bar button{font:inherit;font-size:13px;min-width:32px;height:30px;padding:0 8px;border:none;border-radius:7px;background:transparent;color:var(--ink2);cursor:pointer}
.rte-bar button:hover{background:var(--krem);color:var(--teks)}
.rte-bar.busy{opacity:.5;pointer-events:none}
.rte-sep{width:1px;background:var(--garis);margin:4px 4px}
.rte-ed{min-height:160px;padding:16px 18px;outline:none}
.rte-ed:empty:before{content:attr(data-ph);color:#A8A48A}
.read{font-family:Charter,"Bitstream Charter","Sitka Text",Cambria,Georgia,serif;font-size:18px;line-height:1.72;color:#242424;word-wrap:break-word}
.read p{margin:0 0 .9em}.read>:last-child{margin-bottom:0}
.read h2,.read h3{font-family:'Plus Jakarta Sans',system-ui,sans-serif;color:#1F1D12;letter-spacing:-.01em;line-height:1.25}
.read h2{font-size:1.45em;margin:1.3em 0 .45em}.read h3{font-size:1.18em;margin:1.1em 0 .35em}
.read>h2:first-child,.read>h3:first-child{margin-top:0}
.read ul,.read ol{margin:0 0 .9em;padding-left:1.4em}.read li{margin:.25em 0}
.read blockquote{margin:1.1em 0;padding:.1em 0 .1em 1em;border-left:3px solid #F5D410;font-style:italic;color:#3F3B25}
.read figure{margin:1.4em 0}.read img{max-width:100%;height:auto;border-radius:10px;display:inline-block}
.read hr{border:none;text-align:center;margin:1.6em 0}.read hr:before{content:"· · ·";letter-spacing:.6em;color:#8A8670}
.read a{color:inherit;text-decoration:underline;text-decoration-color:#F5D410;text-decoration-thickness:2px}
.rte-ed.read{font-size:17px}
.tpl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.tpl{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid var(--garis);border-radius:12px;background:var(--bg)}
.rte-ed{font-weight:400}

/* Tabel paket & add-on di editor penawaran: tidak bertabrakan */
.qitems td{vertical-align:top;white-space:normal}
.qitems td:nth-child(2){min-width:260px;width:34%}
.qitems td:nth-child(2) .in{display:block;width:100%;box-sizing:border-box}
.qitems td .in{box-sizing:border-box;min-height:36px;padding:6px 8px}
.qitems td input.right{text-align:right}
.qitems td:first-child{text-align:center;padding-top:14px}
.rte-bar[hidden]{display:none}.rte-ed[contenteditable=false]{background:#FCFBF6}
.read table{width:100%;border-collapse:collapse;font-size:.85em;margin:.6em 0 1em;font-family:'Plus Jakarta Sans',system-ui,sans-serif}
.read th{background:#FEF3B4;text-align:left;padding:7px 10px}.read td{padding:7px 10px;border-top:1px solid #F2EFDD;vertical-align:top}
.read td img{width:140px;max-height:90px;object-fit:cover;border-radius:8px}
.danger-zone{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding-top:10px;border-top:1px dashed var(--garis)}
.board .tcard{cursor:grab}.board .tcard.dragging{opacity:.45;cursor:grabbing}.board .tcard.saving{opacity:.6}
.board .col.over{outline:2px dashed var(--ink2);outline-offset:-4px;background:#FFFBEA}
.board .col{min-height:120px}
.stack{display:flex;height:10px;border-radius:5px;overflow:hidden;min-width:6px;background:#EEF0F3}.stack i{display:block;min-width:0}
.kas-card{gap:14px;border-color:#F2E3A0;background:linear-gradient(135deg,#FFFDF2 0,#FFF8D6 100%)}
.kas-top{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.kas-ic{width:48px;height:48px;border-radius:14px;background:var(--kuning);display:grid;place-items:center;font-weight:800;color:var(--ink);flex:none}
.kas-main{display:flex;flex-direction:column;gap:1px;flex:1 1 200px;min-width:0}.kas-main .l{font-size:12px;color:var(--ink2);font-weight:600}.kas-main b{font-size:28px;letter-spacing:-.01em;line-height:1.15}
.kas-bar{height:8px;border-radius:5px;background:#fff;border:1px solid #F2E3A0;overflow:hidden}.kas-bar i{display:block;height:100%}
.kas-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.kas-stats span{background:#fff;border:1px solid #F2E3A0;border-radius:12px;padding:8px 12px;display:flex;flex-direction:column}.kas-stats small{color:var(--muted);font-size:11px}
.kas-last{display:flex;flex-direction:column;border-top:1px dashed #E8D891;padding-top:8px}.kas-last div{display:flex;justify-content:space-between;gap:10px;padding:4px 0;font-size:13px}.kas-last div span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:560px){.kas-btn{width:100%;justify-content:center}.kas-stats{grid-template-columns:1fr 1fr}.kas-stats span:last-child{display:none}}
.tl-bar.tl-off{background:repeating-linear-gradient(135deg,#E3F4EA 0 8px,#D2ECDD 8px 16px);color:#1B7A4B;border:1px dashed #1B7A4B}
.tl-ev.tl-ev-off{background:#E3F4EA;border-left-color:#1B7A4B;color:#1B7A4B}
.rgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.ritem{background:#fff;border:1px solid var(--garis);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}.ritem.off{opacity:.55}
.ritem .ph{aspect-ratio:4/3;background:var(--krem);display:grid;place-items:center;font-weight:800;font-size:22px;color:var(--ink2)}.ritem .ph img{width:100%;height:100%;object-fit:cover}
.ritem .bd{padding:10px 12px 12px;display:flex;flex-direction:column;gap:3px}.ritem .tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}

/* ===== Responsif: tablet & HP ===== */
.seg{max-width:100%;overflow-x:auto;scrollbar-width:none}.seg::-webkit-scrollbar{display:none}.seg a{white-space:nowrap;flex:none}
.tscroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
table.g td.small,table.g td.wrap{white-space:normal;min-width:180px}
img{max-width:100%}
@media (max-width:1100px){
  .main{padding:22px 22px 44px}
}
@media (max-width:900px){
  .sb{position:sticky;top:0;z-index:15;padding:10px 14px;gap:8px;box-shadow:0 2px 10px rgba(46,44,31,.06)}
  .sb .logo-img img{width:120px;max-height:40px}
  .sb.open{max-height:100vh;overflow-y:auto}
  .head{align-items:flex-start}
  .head>div:last-child{max-width:100%}
  aside.grow{position:static!important}
  .row>.grow{flex-basis:100%!important;max-width:none!important}
  .drawer{width:100%}
}
@media (max-width:640px){
  html,body{font-size:13.5px}
  .main{padding:14px 12px 40px;gap:14px}
  h1{font-size:22px}
  .card{padding:14px 14px;border-radius:12px}
  .card.tight{padding:0}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .grid>*{grid-column:auto!important}
  .kpi .v{font-size:18px;word-break:break-word}
  .fgrid{grid-template-columns:1fr}
  dl.props{grid-template-columns:110px 1fr}
  details.box{padding:2px 14px}
  .head .btn,.head .seg{font-size:13px}
  .btn{min-height:40px}
  .kcat{grid-template-columns:1fr auto}.kcat>*:nth-child(2){grid-column:1/-1;order:3}
  .kline{flex-wrap:wrap}
  .cal{gap:3px}.cal .d{min-height:64px;padding:4px}.cal .ev{font-size:10px;padding:2px 4px}
  .board{grid-template-columns:repeat(var(--cols,4),82vw)!important;scroll-snap-type:x mandatory}.board .col{scroll-snap-align:start}
  .rgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  table.g{font-size:12.5px}
  table.g th,table.g td{padding:6px 8px}
  .sheet{max-height:none}
}
@media (max-width:380px){.grid{grid-template-columns:1fr}.rgrid{grid-template-columns:1fr}}
@media (max-width:640px){.tl-name{width:120px;font-size:12px}.tl-in{min-width:760px}.hero{padding:16px}}
