/* SIGAP v2.1 — local stylesheet, no external font import */
:root{--brand:#145442;--dark:#113e33;--muted:#64746e;--line:#e0e7e3;--soft:#eaf3ee}*{box-sizing:border-box}body{margin:0;background:#f7f8fa;color:#202c28;font:14px/1.55 Inter,Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #4389dd}button{border:0}aside{width:264px;background:var(--dark);color:#fff;height:100vh;position:fixed;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:12px;align-items:center;padding:30px 24px;border-bottom:1px solid #ffffff20}.logo{display:grid;place-items:center;width:42px;height:46px;background:#d9eee1;color:var(--dark);border-radius:12px}.brand strong{font-size:23px;letter-spacing:2px}.brand small{display:block;font-size:11px;line-height:1.5;color:#d2e0da}nav{padding:22px 14px;overflow:auto}.caption{font-size:11px;text-transform:uppercase;letter-spacing:1.6px;color:#92b4a5;margin:0 12px 12px}nav button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;color:#d9e6e0;background:none;padding:13px 14px;border-radius:8px;margin-bottom:4px}nav button.active{background:#d7ecdf;color:#173f32;font-weight:600}nav button:hover{background:#ffffff15}nav button.active:hover{background:#d7ecdf}.ico{width:20px;height:20px;display:inline-flex;flex-shrink:0}svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.chev{margin-left:auto;color:#aac8b9}.asidefoot{margin-top:auto;padding:22px;border-top:1px solid #ffffff20;color:#b3cbbf;font-size:11px}header{height:82px;border-bottom:1px solid var(--line);background:#fff;margin-left:264px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:16px}.eyebrow{color:var(--muted);font-size:11px;letter-spacing:1.4px}.header-right{display:flex;align-items:center;gap:14px}.avatar{background:var(--soft);color:var(--brand);width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:600}select,input,textarea{border:1px solid #ccd8d1;border-radius:8px;background:#fff;padding:10px 12px;color:#243c31}main{margin-left:264px;padding:30px 40px;max-width:1680px}.breadcrumb{color:#687970;font-size:12px;margin-bottom:24px}.breadcrumb span{color:#a3afa8;margin:0 10px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}h1{font-size:28px;line-height:1.3;letter-spacing:-.7px;margin:0 0 8px}h2{font-size:20px;margin:0}h3{font-size:16px;margin:0 0 6px}p{margin:0;color:var(--muted)}.date{color:#687970;font-size:12px}.hero{position:relative;overflow:hidden;border-radius:16px;background:var(--brand);color:#fff;padding:35px 38px;margin-bottom:26px;min-height:196px;display:flex;align-items:center;justify-content:space-between}.hero p{color:#d6e7df;max-width:560px}.hero .eyebrow{color:#c3e0d0;margin-bottom:12px}.hero h2{font-size:29px;letter-spacing:-.6px;margin-bottom:12px}.hero-art{width:145px;height:145px;color:#badcc9;margin-right:22px;opacity:.8}.hero:after{content:'';position:absolute;width:260px;height:260px;border:38px solid #ffffff06;border-radius:50%;right:-100px;top:-120px}.stats,.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stat,.card,.panel{background:#fff;border:1px solid var(--line);border-radius:12px}.stat{padding:20px;display:flex;gap:16px;align-items:center}.iconbox{display:grid;place-items:center;color:var(--brand);background:var(--soft);width:44px;height:44px;border-radius:10px;flex-shrink:0}.stat strong{font-size:25px;display:block;line-height:1.3}.stat small{color:var(--muted)}.sectionhead{margin:30px 0 16px;display:flex;justify-content:space-between;align-items:center}.card{padding:24px;text-align:left;color:inherit;transition:.2s;position:relative}.card:hover{border-color:#7aa48b;transform:translateY(-2px);box-shadow:0 5px 12px #143e3308}.card .iconbox{margin-bottom:22px}.card p{font-size:13px;min-height:42px}.card .arrow{position:absolute;right:22px;top:27px;color:#769887}.link{background:none;color:var(--brand);font-weight:600}.panel{padding:24px}.empty{padding:34px 20px;text-align:center;color:var(--muted)}.panelhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}.btn{display:inline-flex;gap:8px;align-items:center;justify-content:center;background:var(--brand);color:#fff;border-radius:8px;padding:11px 17px;font-weight:600}.btn.secondary{background:#fff;color:var(--brand);border:1px solid #cad8cf}.btn.danger{background:#fff1f0;color:#a52c25}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;background:#f6f8f7;color:#67756e;font-size:12px;font-weight:500}td,th{padding:14px 16px;border-bottom:1px solid var(--line)}tr:last-child td{border:0}.badge{font-size:11px;padding:5px 9px;background:#e9f5ed;color:#266a40;border-radius:5px;white-space:nowrap}.badge.wait{background:#fff4da;color:#805d0e}.toolbar{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}.toolbar input{flex:1;min-width:180px}.note{background:#eef4fc;border:1px solid #d9e6f8;color:#365372;border-radius:8px;padding:13px 16px;margin-top:24px;font-size:12px}.footer{margin:30px 0 10px;display:flex;justify-content:space-between;color:#8a968f;font-size:11px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500}label.full{grid-column:1/-1}textarea{min-height:96px;resize:vertical}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}dialog{border:0;border-radius:16px;max-width:600px;width:calc(100% - 32px);padding:28px;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#102b2470}dialog h2{margin-bottom:24px}.menu-toggle{display:none;background:none;color:var(--brand);font-size:22px}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#183f31;color:#fff;padding:12px 24px;border-radius:9px;z-index:100}.tablewrap{overflow:auto}.filter{min-width:145px}a{color:var(--brand)}@media(min-width:1600px){main{padding:38px 70px}header{padding:0 70px}}@media(max-width:1100px){aside{width:230px}header,main{margin-left:230px}main{padding:26px}header{padding:0 26px}.hero-art{display:none}.cards{gap:12px}.card{padding:20px}.header-right label{display:none}}@media(max-width:760px){aside{transform:translateX(-100%);transition:.2s}body.open aside{transform:none}header,main{margin-left:0}header{padding:0 20px;height:72px}.menu-toggle{display:block}.header-right{gap:8px}.header-right select{max-width:125px}main{padding:22px 18px}.stats,.cards{grid-template-columns:1fr}.stats{grid-template-columns:repeat(3,1fr);gap:8px}.stat{padding:12px;display:block}.stat .iconbox{display:none}.stat strong{font-size:22px}.stat small{font-size:10px}.hero{padding:26px}.hero h2{font-size:24px}.heading .date{display:none}.heading{align-items:flex-start}h1{font-size:24px}.formgrid{grid-template-columns:1fr}.panel{padding:16px}.footer{display:block}.panelhead{flex-wrap:wrap}}

.auth{max-width:480px;margin:8vh auto;padding:32px;background:white;border:1px solid var(--line);border-radius:16px}.auth label{margin:16px 0}.auth h1{color:var(--brand)}.auth .btn{width:100%}.error{color:#a52c25;background:#fff1f0;padding:12px;border-radius:8px}.logout{font-size:12px;text-decoration:none}.db-status{font-size:11px;color:var(--muted)}
/* v2 — navigasi bertingkat sesuai referensi menu */
body{background:linear-gradient(115deg,#f5f4ec,#f7f7f2 65%,#e9f2eb);min-height:100vh}
.workspace{max-width:1100px;margin:0 auto}.subnav{margin-left:20px;padding-left:10px;border-left:1px solid #73908070}.subnav[hidden]{display:none}nav .subnav button{font-size:12px;padding:9px 10px;line-height:1.5;border-radius:7px;gap:6px}.navbutton span:not(.ico):not(.chev){flex:1}.navbutton.group-toggle.ancestor{color:#fff;font-weight:600}.chev{transition:transform .15s}.chev.expanded{transform:rotate(180deg)}nav{scrollbar-width:thin;scrollbar-color:#648a77 transparent}nav button{min-height:42px}.badge.neutral{color:#5d6862;background:#eef0ef}.badge.info{color:#285b92;background:#eaf1fc}.danger-text{color:#a43027}table p{font-size:11px;margin-top:4px}.heading .eyebrow{margin-bottom:8px}.heading h1{margin-bottom:8px}.heading .btn{flex-shrink:0}.footer .link{font-size:11px}.modal{position:fixed;inset:0;background:#102b2470;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px}.modal[hidden]{display:none}.modal form{background:#fff;border-radius:16px;max-height:88vh;overflow:auto;max-width:640px;width:100%;padding:28px;box-shadow:0 20px 100px #0003}.modal h2{margin-bottom:24px}.modal-open{overflow:hidden}button:disabled{cursor:wait;opacity:.6}.auth{margin:8vh auto}.auth .note{margin-top:16px}.empty .ico{color:var(--brand)}.subnav .subnav{margin-left:10px}.subnav .group-toggle{color:#e7f2ed}.navbutton:hover{background:#ffffff14}.subnav .navbutton.active{background:#d7ecdf;color:#173f32}.hero-art{pointer-events:none}@media(max-width:760px){.heading{flex-direction:column}.heading .btn{align-self:flex-start}aside{width:264px}.modal{padding:12px}.modal form{padding:22px}.header-right .logout{display:none}}

/* Instrumen PKKM */
#pkkm-panel { margin-bottom: 20px; }
#pkkm-panel > label, .pkkm-form, .pkkm-form > details, .pkkm-form > label { margin-top: 16px; }
.pkkm-group { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.pkkm-form summary { cursor: pointer; font-weight: 600; }
.pkkm-item { padding: 16px 0; border-top: 1px solid var(--line); margin-top: 12px; }
.pkkm-item h4 { margin: 8px 0; }
.pkkm-item label { max-width: 320px; margin-top: 12px; }
