@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap');
*{box-sizing:border-box}:root{--navy:#10263b;--ink:#172b3e;--muted:#718197;--gold:#d7a45b;--line:#e3eaf0;--paper:#fff;--bg:#f3f6f9}
html{background:var(--bg)}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.55}
.topbar{min-height:72px;background:linear-gradient(105deg,#0d2235,#163750);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:12px 28px;gap:16px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none}.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#f0cb86,#c18a3d);display:grid;place-items:center;color:#142a3e;font-weight:900;font-size:20px}
.brand strong{display:block;font-size:15px}.brand small{display:block;color:#bdcedb;font-size:11px}.userbar{display:flex;align-items:center;gap:14px;color:#dbe5ed;font-size:12px}.userbar a,.userbar button{color:#fff;background:none;border:0;cursor:pointer;font:inherit;text-decoration:none}
.app-sidebar{position:fixed;top:72px;left:0;bottom:0;width:230px;padding:20px 14px;overflow-y:auto;background:var(--bg);z-index:5}.main-nav{display:flex;flex-direction:column;gap:4px}.nav-group-label{font-size:10px;font-weight:800;letter-spacing:.12em;color:#8a99aa;margin:14px 6px 4px}.nav-item{display:block;padding:10px 12px;border-radius:10px;color:#2a3f54;text-decoration:none;font-weight:600;font-size:13px}.nav-item.active,.nav-item:hover{background:#e7eef4}
.container{max-width:1440px;padding:26px;margin-left:230px;min-height:calc(100vh - 72px)}.sidebar-footer{margin-top:26px;padding:12px;border-top:1px solid var(--line);color:#8a99aa;font-size:11px}
.hero{background:linear-gradient(118deg,#10283e,#173e5b);border-radius:18px;padding:28px;color:#fff;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:20px}.hero h1{margin:4px 0 8px;font-size:30px}.hero p{margin:0;color:#d0deea}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;color:#c99b58;margin:0 0 6px;text-transform:uppercase}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.kpi,.panel{background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 18px #172c3e06}.kpi{padding:18px 20px;text-decoration:none;color:inherit;display:block}.kpi span{display:block;font-size:10px;font-weight:800;color:#78879a;text-transform:uppercase;letter-spacing:.1em}.kpi strong{display:block;font-size:30px;margin-top:8px;color:#17344c}.kpi small{color:#8a99aa}
.panel{padding:20px 22px;margin:16px 0}.panel h2{font-size:18px;margin:0;color:#18344e}.panel-head{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #edf1f5}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#42556a}.form-grid input,.form-grid select,.form-grid textarea{font:inherit;width:100%;border:1px solid #d3dde6;border-radius:10px;padding:11px 12px;background:#fff;color:#172638}.form-grid textarea{min-height:90px;resize:vertical}.span-2{grid-column:1/-1}
.btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:10px;padding:10px 15px;cursor:pointer;font-weight:800;font-size:12px;text-decoration:none;white-space:nowrap}.btn-primary{background:#102c44;color:#fff}.btn-light{background:#edf2f6;color:#29435b}.btn-danger{background:#fce8e7;color:#9a2f2a}.btn-block{width:100%;padding:13px 16px}
.filters{display:flex;gap:8px;flex-wrap:wrap}.filters input,.filters select{font:inherit;font-size:12px;padding:9px;border:1px solid #d3dde6;border-radius:10px}
.table-wrap{overflow:auto;border:1px solid #e9eef3;border-radius:12px}table{width:100%;border-collapse:separate;border-spacing:0;min-width:900px}th,td{text-align:left;vertical-align:top;border-bottom:1px solid #e8edf2;padding:12px 11px;font-size:12px}th{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#66768a;background:#f6f8fa}tbody tr:last-child td{border-bottom:0}td small{display:block;font-size:10px;color:#7b8898;margin-top:3px}
.pill{display:inline-block;padding:4px 9px;border-radius:7px;background:#edf1f5;color:#45566b;font-size:10px;font-weight:800;white-space:nowrap}.pill.high,.pill.overdue{background:#fce8e7;color:#9c2d27}.pill.medium{background:#fff1d6;color:#8c5b0b}.pill.low{background:#e1f4e8;color:#246b43}
.notice{padding:12px 16px;border-radius:12px;margin:0 0 16px;background:#e8f3ee;color:#246b43;border:1px solid #cfe6d8}.notice.error{background:#fce8e7;color:#9a2f2a;border-color:#f3c9c6}.empty{color:#8a99aa;text-align:center;padding:24px}
.login-page{display:grid;place-items:center;min-height:100vh}.login-clean-shell{width:min(420px,92vw)}.login-clean-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 10px 30px #172c3e10}.login-clean-card h1{margin:0 0 4px}.login-clean-card label{display:block;font-size:12px;font-weight:700;margin:14px 0 6px;color:#42556a}.login-clean-card input{width:100%;font:inherit;padding:11px 12px;border:1px solid #d3dde6;border-radius:10px}.login-clean-submit{width:100%;margin-top:18px;padding:13px;border:0;border-radius:10px;background:#102c44;color:#fff;font-weight:800;cursor:pointer}
.footer{padding:18px 28px;color:#8a99aa;font-size:11px;margin-left:230px}
@media(max-width:900px){.app-sidebar{display:none}.container,.footer{margin-left:0}.kpis{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.topbar{padding:12px 16px}}

/* --- Patch tren dashboard: batang + label tidak terpotong --- */
.trend-wrap{display:flex;gap:18px;align-items:flex-end;height:180px;padding-top:10px}
.trend-item{flex:1;text-align:center;display:flex;flex-direction:column;justify-content:flex-end;min-height:0}
.trend-bar{width:100%;max-width:56px;margin:0 auto;background:#173e5b;border-radius:8px 8px 0 0;min-height:4px}
.trend-item strong{display:block;margin-top:8px}
.trend-item small{color:#8a99aa}
.hero-period{display:flex;gap:8px;align-items:baseline;color:#d0deea}

/* ============================================================
   v16 — Sistem desain halaman Detail Temuan (mobile-first)
   Ditulis mobile-first: aturan dasar = tampilan HP, lalu
   diperlebar untuk tablet & desktop lewat media query.
   Logika PHP tidak disentuh; semua di sini murni tampilan.
   ============================================================ */
:root{
  --wjp-ink:#10283d; --wjp-ink-2:#1c3a54; --wjp-gold:#a9852c; --wjp-gold-soft:#f6efdb;
  --wjp-paper:#ffffff; --wjp-soft:#f7f4ec; --wjp-line:#e3ddcd; --wjp-muted:#667085;
  --wjp-danger:#8a2a2a; --wjp-danger-bg:#f9ecec; --wjp-ok:#1d5c33; --wjp-ok-bg:#e7f3ea;
  --wjp-warn:#7a5c00; --wjp-warn-bg:#fbf3d9; --wjp-radius:16px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{overflow-x:clip}
img,video,iframe{max-width:100%}
a{overflow-wrap:anywhere}
button{font:inherit}
input,textarea,select{font-size:16px}
input,textarea,select{max-width:100%}

/* ---------- Hero detail ---------- */
body .detail-hero{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;justify-content:space-between;padding:22px 20px}
body .detail-hero-main{min-width:0;flex:1 1 260px}
body .detail-hero h1{font-size:clamp(22px,6vw,32px);line-height:1.15;margin:2px 0 6px;overflow-wrap:anywhere}
body .detail-hero p{margin:0;color:#d0deea;overflow-wrap:anywhere}
body .detail-hero-side{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body .pill{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:700;white-space:normal;text-align:center}
body .pill.high{background:var(--wjp-danger-bg);color:var(--wjp-danger)}
body .pill.medium{background:var(--wjp-warn-bg);color:var(--wjp-warn)}
body .pill.low{background:var(--wjp-ok-bg);color:var(--wjp-ok)}
body .detail-status{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:12px;font-weight:700}

/* ---------- Banner eskalasi & callout ---------- */
body .esc-banner{margin:0 0 14px;padding:12px 16px;border-radius:12px;font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
body .esc-banner.esc-warn{background:var(--wjp-warn-bg);color:var(--wjp-warn)}
body .esc-banner.esc-alert{background:#fdeeda;color:#8a4a00}
body .esc-banner.esc-critical{background:var(--wjp-danger-bg);color:var(--wjp-danger)}
body .return-callout{display:flex;gap:12px;align-items:flex-start;background:var(--wjp-danger-bg);border:1px solid #f0c9c6;border-radius:var(--wjp-radius);padding:14px 16px;margin-bottom:16px}
body .return-callout-icon{flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--wjp-danger);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}
body .return-callout p{margin:4px 0;overflow-wrap:anywhere}
body .return-callout small{color:var(--wjp-muted)}

/* ---------- Layout utama: main + samping ---------- */
body .detail-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
body .detail-main,body .detail-side{min-width:0;display:flex;flex-direction:column;gap:16px}
body .detail-panel{overflow:hidden}
body .panel-head{flex-wrap:wrap;gap:10px}
body .panel-head h2{font-size:clamp(17px,4.6vw,21px);line-height:1.25}
body .panel-head-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body .detail-icon-actions{display:flex;gap:6px}
body .icon-action{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;border:1px solid var(--wjp-line);color:var(--wjp-ink);background:#fff;flex:0 0 auto}
body .status-panel-head{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:flex-start}
body .detail-meta{font-size:12px;color:var(--wjp-muted)}

/* ---------- Grid identitas temuan ---------- */
body .detail-fields{display:grid;grid-template-columns:1fr;gap:0;border-top:1px solid var(--wjp-line)}
body .detail-fields>div{min-width:0;padding:13px 16px;border-bottom:1px solid var(--wjp-line);overflow-wrap:anywhere}
body .detail-fields>div>span{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--wjp-muted);margin-bottom:4px}
body .detail-fields>div>strong{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
body .target-history-trigger{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:6px 10px;border:1px solid var(--wjp-line);border-radius:999px;background:#fff;font-size:12px;font-weight:600;cursor:pointer}

/* ---------- Kartu cerita analisis ---------- */
body .finding-story{padding:6px 16px 18px}
body .finding-story-heading{margin:14px 0}
body .story-kicker{font-size:11px;font-weight:800;letter-spacing:.14em;color:var(--wjp-gold)}
body .finding-story-heading h3{margin:4px 0 0;font-size:clamp(17px,4.6vw,20px)}
body .finding-story-grid{display:grid;grid-template-columns:1fr;gap:12px}
body .story-card{min-width:0;background:var(--wjp-soft);border:1px solid var(--wjp-line);border-radius:14px;padding:16px}
body .story-card-top{display:flex;gap:10px;align-items:center;margin-bottom:8px}
body .story-index{font-size:12px;font-weight:800;color:var(--wjp-gold)}
body .story-label{font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--wjp-muted)}
body .story-card h4{margin:0 0 8px;font-size:15px;line-height:1.4}
body .story-copy{font-size:14px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-line}
body .story-copy:empty::after{content:"—";color:var(--wjp-muted)}

/* ---------- Percakapan / chat ---------- */
body .conversation-shell{padding:6px 16px 18px}
body .conversation-heading{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin:10px 0 14px}
body .conversation-count{font-size:12px;font-weight:700;color:var(--wjp-muted)}
body .conversation-thread{display:flex;flex-direction:column;gap:14px}
body .conversation-message{display:flex;gap:10px;align-items:flex-start;min-width:0}
body .conversation-avatar{flex:0 0 auto;width:34px;height:34px;border-radius:50%;background:var(--wjp-ink);color:var(--wjp-gold-soft);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;overflow:hidden}
body .conversation-avatar img{width:100%;height:100%;object-fit:cover}
body .conversation-bubble{min-width:0;flex:1;background:var(--wjp-soft);border:1px solid var(--wjp-line);border-radius:4px 14px 14px 14px;padding:12px 14px}
body .conversation-message.pic .conversation-bubble{background:#eef3f7;border-color:#d4dee8}
body .conversation-meta{display:flex;flex-wrap:wrap;gap:6px 10px;font-size:12px;color:var(--wjp-muted);margin-bottom:6px}
body .conversation-meta strong{color:var(--wjp-ink)}
body .conversation-text{font-size:14px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-line}
body .conversation-status{display:inline-block;margin-top:8px;padding:4px 9px;border-radius:999px;background:#fff;border:1px solid var(--wjp-line);font-size:11px;font-weight:700}
body .conversation-attachments{margin-top:10px;display:flex;flex-direction:column;gap:8px}
body .conversation-attachment-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body .conversation-attachment{display:inline-flex;gap:8px;align-items:center;max-width:100%;padding:8px 10px;border:1px solid var(--wjp-line);border-radius:10px;background:#fff;font-size:12px;overflow-wrap:anywhere}
body .conversation-legacy-note{margin-top:10px;font-size:12px;color:var(--wjp-muted);font-style:italic}
body .conversation-empty{padding:22px;text-align:center;color:var(--wjp-muted)}
body .commitment-box{margin:6px 16px 0;padding:14px 16px;background:var(--wjp-gold-soft);border:1px solid #e8dcb8;border-radius:14px}
body .commitment-content{font-size:14px;line-height:1.65;overflow-wrap:anywhere;white-space:pre-line}
body .commitment-current-meta{margin-top:8px;font-size:12px;color:var(--wjp-muted)}
body .followup-lock-note{margin:10px 16px 0;padding:12px 14px;background:var(--wjp-soft);border:1px solid var(--wjp-line);border-radius:12px;font-size:13px;color:var(--wjp-muted)}

/* ---------- Komposer chat: teks + lampiran ---------- */
body .chat-composer{margin:14px 16px 18px}
body .chat-box{border:1px solid var(--wjp-line);border-radius:16px;overflow:hidden;background:#fff;position:relative}
body .chat-box>label{display:block;padding:12px 14px 0;font-size:12px;font-weight:700}
body .chat-textarea{display:block;width:100%;min-height:110px;padding:10px 14px 12px;border:0;resize:vertical;line-height:1.6;outline:none;background:transparent}
body .chat-attach-list:empty{display:none}
body .chat-attach-list{padding:0 14px 6px;display:flex;flex-wrap:wrap;gap:6px}
body .chat-attach-chip{display:inline-flex;gap:6px;align-items:center;max-width:100%;padding:6px 10px;background:var(--wjp-soft);border-radius:999px;font-size:12px;overflow-wrap:anywhere}
body .chat-attach-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:10px 14px;border-top:1px solid var(--wjp-line);background:var(--wjp-soft)}
body .chat-attach-btn{display:inline-flex;gap:8px;align-items:center;padding:9px 12px;border:1px solid var(--wjp-line);border-radius:999px;background:#fff;font-weight:700;font-size:13px;cursor:pointer}
body .chat-attach-hint{font-size:12px;color:var(--wjp-muted)}
body .chat-attach-popup{border-top:1px solid var(--wjp-line);padding:14px;background:#fff}
body .chat-attach-popup-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
body .chat-attach-popup-close{width:32px;height:32px;border:1px solid var(--wjp-line);border-radius:50%;background:#fff;cursor:pointer;font-size:18px;line-height:1}
body .detail-dropzone{display:flex;flex-direction:column;gap:6px;padding:14px;border:1.5px dashed var(--wjp-line);border-radius:12px;cursor:pointer;background:var(--wjp-soft)}
body .detail-dropzone-text strong{display:block;font-size:14px}
body .detail-dropzone-text small{color:var(--wjp-muted);font-size:12px}
body .detail-file-name{font-size:12px;color:var(--wjp-ink);overflow-wrap:anywhere}
body .detail-dropzone input[type=file]{font-size:13px}
body .compact-input-label{display:block;margin-top:12px;font-size:12px;font-weight:700}
body .compact-input-label input{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid var(--wjp-line);border-radius:10px;font-weight:400}
body .chat-attach-note{margin:10px 0 0;font-size:12px;color:var(--wjp-muted)}
body .form-action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
body .form-action-row .btn{flex:1 1 160px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;text-align:center}

/* ---------- Lampiran & panel aksi ---------- */
body .embedded-attachments{padding:6px 16px 18px}
body .embedded-attachments-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin:10px 0}
body .attachment-list{display:flex;flex-direction:column;gap:10px}
body .attachment-item{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px;border:1px solid var(--wjp-line);border-radius:12px;background:#fff}
body .attachment-info{flex:1 1 180px;min-width:0}
body .attachment-info strong{display:block;font-size:13px;overflow-wrap:anywhere}
body .attachment-info small{color:var(--wjp-muted);font-size:12px}
body .attachment-count{font-size:12px;font-weight:700;color:var(--wjp-muted)}
body .embedded-attachment-actions{display:flex;flex-wrap:wrap;gap:8px}
body .attachment-choice{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
body .attachment-choice-btn{padding:9px 14px;border:1px solid var(--wjp-line);border-radius:999px;background:#fff;font-weight:700;cursor:pointer}
body .attachment-choice-btn.is-active{background:var(--wjp-ink);color:#fff;border-color:var(--wjp-ink)}
body .attachment-compact-form{display:flex;flex-direction:column;gap:10px}
body .attachment-compact-form label{font-size:12px;font-weight:700}
body .attachment-compact-form input{width:100%;margin-top:6px;padding:11px 12px;border:1px solid var(--wjp-line);border-radius:10px;font-weight:400}
body .attachment-delete-form{margin:0}
body .auditor-review-box{padding:6px 16px 18px}
body .review-form,body .reopen-form{display:flex;flex-direction:column;gap:10px}
body .review-form label,body .reopen-form label{font-size:12px;font-weight:700}
body .review-form textarea,body .review-form input,body .reopen-form textarea{width:100%;margin-top:6px;padding:11px 12px;border:1px solid var(--wjp-line);border-radius:10px;font-weight:400}
body .review-form .form-action-row,body .reopen-form .form-action-row{margin-top:4px}

/* ---------- Timeline ---------- */
body .timeline{padding:6px 16px 18px;display:flex;flex-direction:column;gap:16px}
body .timeline-item{display:flex;gap:12px;min-width:0}
body .timeline-dot{flex:0 0 auto;width:11px;height:11px;margin-top:5px;border-radius:50%;background:var(--wjp-gold);box-shadow:0 0 0 4px var(--wjp-gold-soft)}
body .timeline-item strong{display:block;font-size:14px;line-height:1.4}
body .timeline-item small{color:var(--wjp-muted);font-size:12px}
body .timeline-item p{margin:6px 0 0;font-size:13px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}

/* ---------- Modal riwayat target ---------- */
body .target-history-modal{position:fixed;inset:0;z-index:90;display:flex;align-items:flex-end;justify-content:center}
body .target-history-modal[hidden]{display:none}
body .target-history-backdrop{position:absolute;inset:0;background:rgba(10,25,40,.55)}
body .target-history-card{position:relative;width:100%;max-width:520px;max-height:86vh;overflow:auto;background:#fff;border-radius:20px 20px 0 0;padding:20px;box-shadow:0 -12px 40px rgba(0,0,0,.25)}
body .target-history-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
body .target-history-close{width:36px;height:36px;flex:0 0 auto;border:1px solid var(--wjp-line);border-radius:50%;background:#fff;cursor:pointer;font-size:20px;line-height:1}
body .target-history-list{display:flex;flex-direction:column;gap:12px;margin-top:14px}
body .target-history-item{border:1px solid var(--wjp-line);border-radius:12px;padding:12px}
body .target-history-move{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px}
body .target-history-arrow{color:var(--wjp-gold);font-weight:800}
body .target-history-item p{margin:8px 0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
body .target-history-item small{color:var(--wjp-muted);font-size:12px}

/* ---------- Pengerasan mobile global ---------- */
body .container{padding-left:14px;padding-right:14px}
body .topbar{flex-wrap:wrap;gap:10px}
body .userbar{flex-wrap:wrap}
body .panel{padding-left:2px;padding-right:2px}
body .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
body .table-wrap table{min-width:560px}
body .btn{min-height:40px}
body .notice{overflow-wrap:anywhere}

/* ---------- Tablet: 640px ke atas ---------- */
@media(min-width:640px){
  body .detail-hero{padding:26px 28px}
  body .detail-fields{grid-template-columns:1fr 1fr}
  body .detail-fields>div:nth-child(odd){border-right:1px solid var(--wjp-line)}
  body .finding-story-grid{grid-template-columns:1fr 1fr}
  body .story-card.story-description{grid-column:1/-1}
  body .target-history-modal{align-items:center;padding:20px}
  body .target-history-card{border-radius:20px;padding:24px}
  body .form-action-row .btn{flex:0 0 auto;min-width:170px}
}

/* ---------- Desktop: 980px ke atas ---------- */
@media(min-width:980px){
  body .detail-layout{grid-template-columns:minmax(0,1fr) 330px;gap:20px}
  body .detail-side{position:sticky;top:18px}
  body .detail-fields{grid-template-columns:1fr 1fr 1fr}
  body .detail-fields>div:nth-child(odd){border-right:0}
  body .detail-fields>div:not(:nth-child(3n)){border-right:1px solid var(--wjp-line)}
  body .finding-story-grid{grid-template-columns:1fr 1fr 1fr}
  body .story-card.story-description{grid-column:1/-1}
  body .story-card.story-recommendation{grid-column:1/-1}
  body .conversation-bubble{max-width:860px}
  body .container{padding-left:28px;padding-right:28px}
}

/* ============================================================
   v17 — Sistem desain header + sidebar (perbaikan logo raksasa)
   Akar masalah: markup header memakai .brand-logo-frame > img,
   sedangkan CSS lama hanya mengenal .brand-mark. Tanpa aturan
   ukuran, <img> tampil sebesar file aslinya.
   Lapisan ini mengunci ukuran logo, melengkapi drawer HP,
   tombol ciutkan sidebar, dan menyembunyikan label WORKSPACE /
   OVERVIEW sesuai permintaan sebelumnya.
   ============================================================ */

/* ---------- Topbar: menempel, logo terkunci ---------- */
body .topbar{position:sticky;top:0;z-index:40;min-height:68px;flex-wrap:nowrap;padding:10px 20px}
body .brand-home{flex:0 0 auto;gap:10px;min-width:0}
body .brand-logo-frame{width:44px;height:44px;flex:0 0 auto;border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden;padding:3px;box-shadow:0 2px 8px rgba(0,0,0,.18)}
body .brand-logo{display:block;width:100%;height:100%;max-width:44px;max-height:44px;object-fit:contain}
body .brand-divider{width:1px;height:30px;flex:0 0 auto;background:rgba(255,255,255,.28)}
body .brand-caption{font-size:13px;font-weight:800;letter-spacing:.04em;color:#fff;white-space:nowrap}
body .topbar-spacer{flex:1 1 auto;min-width:8px}
body .userbar{flex:0 0 auto;flex-wrap:nowrap;gap:10px}
body .user-identity{display:flex;flex-direction:column;align-items:flex-end;line-height:1.3;min-width:0}
body .user-identity strong{font-size:13px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
body .user-identity small{font-size:11px;color:#bdcedb}
body .account-link,body .logout-link{display:inline-flex;align-items:center;padding:7px 13px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
body .account-link{border:1px solid rgba(255,255,255,.4)}
body .logout-link{background:rgba(255,255,255,.12)}
body .logout-form{margin:0}

/* ---------- Tombol hamburger: hanya di HP ---------- */
body .nav-drawer-toggle{display:none;flex-direction:column;gap:5px;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 auto;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);border-radius:10px;cursor:pointer;padding:0}
body .nav-drawer-toggle span{display:block;width:18px;height:2px;background:#fff;border-radius:2px}
body .nav-drawer-backdrop{display:none}

/* ---------- Sidebar: struktur lengkap ---------- */
body .app-sidebar{top:68px;width:232px;background:#fff;border-right:1px solid var(--line);padding:16px 12px 20px;display:flex;flex-direction:column;z-index:30}
body .sidebar-topline{display:flex;align-items:center;justify-content:space-between;padding:2px 6px 12px}
body .sidebar-caption{display:none}
body .sidebar-collapse-toggle{width:30px;height:30px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);cursor:pointer;font-size:18px;line-height:1;transition:transform .2s}
body .main-nav{flex:1;overflow-y:auto}
body .main-nav>.nav-group-label:first-child{display:none}
body .nav-group-label{margin:16px 6px 6px}
body .nav-item{position:relative;display:flex;align-items:center;gap:10px;padding:10px 12px}
body .nav-item-icon{flex:0 0 auto;width:22px;height:22px;display:grid;place-items:center;font-size:14px}
body .nav-item-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .nav-item.active .nav-active-mark{position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:var(--gold)}
body .sidebar-footer{display:flex;align-items:center;gap:10px;margin-top:18px;padding:14px 10px;border-top:1px solid var(--line)}
body .sidebar-footer-mark{flex:0 0 auto;width:36px;height:36px;border-radius:10px;background:linear-gradient(145deg,#f0cb86,#c18a3d);display:grid;place-items:center;color:#142a3e;font-weight:900;font-size:12px}
body .sidebar-footer strong{display:block;font-size:12px;line-height:1.3}
body .sidebar-footer small{display:block;font-size:11px;color:var(--muted);margin:0}
body .container{margin-left:232px}
body .footer{margin-left:232px}

/* ---------- Sidebar menciut (desktop) ---------- */
body.sidebar-collapsed .app-sidebar{width:76px;padding-left:8px;padding-right:8px}
body.sidebar-collapsed .nav-item-label,body.sidebar-collapsed .nav-group-label,body.sidebar-collapsed .sidebar-footer strong,body.sidebar-collapsed .sidebar-footer small{display:none}
body.sidebar-collapsed .nav-item{justify-content:center;padding:10px 6px}
body.sidebar-collapsed .sidebar-footer{justify-content:center;padding-left:0;padding-right:0}
body.sidebar-collapsed .sidebar-collapse-toggle{transform:rotate(180deg)}
body.sidebar-collapsed .container,body.sidebar-collapsed .footer{margin-left:76px}
body.sidebar-collapsed .sidebar-topline{justify-content:center}

/* ---------- Drawer HP (<=900px) ---------- */
@media(max-width:900px){
  body .topbar{flex-wrap:nowrap;padding:10px 14px}
  body .nav-drawer-toggle{display:flex}
  body .app-sidebar{display:block;top:0;height:100dvh;width:min(284px,86vw);transform:translateX(-105%);transition:transform .25s ease;z-index:60;box-shadow:24px 0 48px rgba(8,20,32,.25)}
  body.sidebar-open .app-sidebar{transform:translateX(0)}
  body.sidebar-open .nav-drawer-backdrop{display:block;position:fixed;inset:0;background:rgba(8,20,32,.5);z-index:55}
  body.sidebar-open{overflow:hidden}
  body .container,body .footer,body.sidebar-collapsed .container,body.sidebar-collapsed .footer{margin-left:0}
  body.sidebar-collapsed .app-sidebar{width:min(284px,86vw)}
}

/* ---------- Layar sangat kecil (<=560px) ---------- */
@media(max-width:560px){
  body .brand-caption{display:none}
  body .brand-divider{display:none}
  body .user-identity small{display:none}
  body .user-identity strong{max-width:96px}
  body .account-link{padding:7px 10px}
  body .logout-link{padding:7px 10px}
  body .topbar{gap:8px}
}

/* ============================================================
   v18 — Lapisan halaman: Users, Settings, Reports,
   Risk Assessment, Findings + perbaikan Detail di HP.
   Semua kelas di bawah ini dipakai markup PHP tapi belum pernah
   punya aturan CSS — makanya tampil sebagai teks polos / ikon
   raksasa / formulir menempel. Murni tampilan, logika tak diubah.
   ============================================================ */

/* ---------- Perbaikan panel (menggantikan aturan v16 yang mengupas padding) ---------- */
body .panel{padding:18px 16px}
body .panel.detail-panel{padding:0}
body .detail-panel>.panel-head{padding:16px 16px 12px;margin-bottom:0}
body .detail-panel>.status-panel-head{padding:16px}
body .panel-head>div{min-width:0}
body .panel-subtitle{margin:6px 0 0;color:var(--muted);font-size:13px;font-weight:400;line-height:1.5}
body .btn-small{padding:7px 11px;font-size:11px;min-height:34px}
body .muted{color:var(--muted)}
body .small{font-size:12px}

/* ---------- Kunci ukuran ikon: tidak akan pernah raksasa lagi ---------- */
body .user-stat-icon,body .master-icon{flex:0 0 auto;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;font-size:18px;line-height:1;overflow:hidden;background:var(--wjp-soft,#f7f4ec);color:var(--wjp-ink,#10283d)}
body .user-stat-icon svg,body .master-icon svg{width:20px;height:20px;max-width:20px;max-height:20px}
body .container svg{max-width:100%}

/* ---------- Elemen hero bersama ---------- */
body .dashboard-hero-meta{display:flex;gap:10px;align-items:center;min-width:0}
body .dashboard-hero-meta>span:last-child{display:flex;flex-direction:column;line-height:1.35}
body .dashboard-hero-meta strong{font-size:12px;letter-spacing:.08em;color:#fff;white-space:nowrap}
body .dashboard-hero-meta small{font-size:12px;color:#d0deea}
body .live-mark{flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:#34a853;box-shadow:0 0 0 4px rgba(52,168,83,.18)}
body .hero-chip{display:inline-flex;align-items:center;padding:8px 13px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:12px;font-weight:800;letter-spacing:.06em;white-space:nowrap}

/* ---------- Kartu statistik (Users / Findings / Risk) ---------- */
body .user-admin-overview,body .monitor-summary,body .rba-stats{display:grid;grid-template-columns:1fr;gap:12px}
body .user-admin-stat,body .monitor-stat,body .rba-stats article{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:16px}
body .user-stat-top{display:flex;align-items:center;gap:10px;margin-bottom:12px}
body .user-stat-label,body .monitor-stat>span,body .rba-stats article>span{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#78879a}
body .user-admin-stat>strong,body .monitor-stat>strong,body .rba-stats article>strong{display:block;font-size:30px;line-height:1.1;margin:6px 0;color:#17344c}
body .user-admin-stat>small,body .monitor-stat>small,body .rba-stats article>small{color:#8a99aa;font-size:12px}
body .monitor-stat.is-alert,body .user-admin-stat.stat-inactive{border-color:#f3c9c6;background:#fff8f8}
body .monitor-stat.is-closed,body .user-admin-stat.stat-active,body .rba-stats article.rba-done{border-color:#cfe6d8;background:#f6fbf8}
body .user-admin-stat.stat-admin{border-color:#e8dcb8;background:#fdfaf0}
body .rba-stats article.rba-high{border-color:#f3c9c6;background:#fff8f8}
body .rba-stats article.rba-high>strong{color:#9a2f2a}

/* ---------- Users: hero, direktori, formulir admin ---------- */
body .user-admin-hero-copy{flex:1;min-width:0}
body .user-admin-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
body .user-directory-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
body .user-directory-tools input{padding:10px 12px;border:1px solid #d3dde6;border-radius:10px;font:inherit;font-size:13px}
body .inline-admin-form{margin:0;display:inline-flex}
body .reset-password-details{margin-top:10px}
body .reset-password-details summary{cursor:pointer;display:inline-block;padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:12px;font-weight:700}
body .reset-password-form{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
body .reset-password-form input{flex:1 1 180px;padding:10px 12px;border:1px solid #d3dde6;border-radius:10px;font:inherit}
body .scope-checks{display:grid;grid-template-columns:1fr;gap:8px;margin-top:6px}
body .scope-option{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:13px;line-height:1.5;cursor:pointer}
body .scope-option input{margin-top:3px;flex:0 0 auto}
body .scope-edit{margin-top:12px}
body .scope-edit-form{display:flex;flex-direction:column;gap:10px}
body .account-status{display:inline-flex;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:800}
body .account-status.is-active{background:#e1f4e8;color:#246b43}
body .account-status.is-inactive{background:#fce8e7;color:#9c2d27}

/* ---------- Settings: grid master data ---------- */
body .settings-grid{display:grid;grid-template-columns:1fr;gap:16px}
body .master-panel .panel-head{align-items:flex-start}
body .master-count{display:inline-flex;padding:5px 11px;border-radius:999px;background:#edf2f6;color:#29435b;font-size:12px;font-weight:700;white-space:nowrap}
body .master-add{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:16px}
body .master-add input{flex:1 1 220px;min-width:0;padding:11px 12px;border:1px solid #d3dde6;border-radius:10px;font:inherit;background:#fff}
body .master-add .btn{flex:0 0 auto}
body .master-list{display:flex;flex-direction:column;gap:8px}
body .master-row{display:flex;gap:12px;align-items:center;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}
body .master-info{flex:1;min-width:0}
body .master-info strong{display:block;font-size:14px;overflow-wrap:anywhere}
body .master-info small{color:#8a99aa;font-size:12px}
body .icon-button{flex:0 0 auto;width:32px;height:32px;border-radius:50%;border:1px solid #f3c9c6;background:#fce8e7;color:#9a2f2a;font-size:18px;line-height:1;cursor:pointer}
body .master-note{margin-top:4px}
body .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Reports ---------- */
body .report-kpis{margin-bottom:16px}
body .kpi-alert{border-color:#f3c9c6}
body .kpi-alert strong{color:#9a2f2a}
body .kpi-risk{border-color:#f0e2b8}
body .kpi-risk strong{color:#8c5b0b}
body .report-risk-summary{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
body .report-risk-summary span{display:inline-flex;gap:6px;align-items:center;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:12px}
body .report-form{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
body .report-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#42556a}
body .report-form input{padding:10px 12px;border:1px solid #d3dde6;border-radius:10px;font:inherit}
body .report-heading.print-only{display:none}
body .ra-bars{display:flex;flex-direction:column;gap:12px;margin:14px 0}
body .ra-bar{display:grid;grid-template-columns:120px 1fr 44px;gap:12px;align-items:center;font-size:12px}
body .ra-track{height:10px;border-radius:999px;background:#edf1f5;overflow:hidden}
body .ra-fill{display:block;height:100%;border-radius:999px;background:#173e5b}
body .ra-conclusion{margin-top:12px;padding:13px 15px;border-radius:12px;background:#f6f8fa;border:1px solid var(--line);font-size:13px;line-height:1.6}
body .ra-generated{color:#8a99aa;font-size:12px}

/* ---------- Risk Assessment: formulir ---------- */
body .rba-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
body .rba-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#42556a}
body .rba-filters input{padding:10px 12px;border:1px solid #d3dde6;border-radius:10px;font:inherit}
body .rba-form{display:flex;flex-direction:column;gap:18px}
body .rba-form-section h3{margin:0 0 12px;font-size:15px}
body .rba-form-grid{display:grid;grid-template-columns:1fr;gap:12px}
body .rba-form-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#42556a;min-width:0}
body .rba-form-grid input,body .rba-form-grid select,body .rba-form-grid textarea{padding:11px 12px;border:1px solid #d3dde6;border-radius:10px;font:inherit;width:100%;background:#fff;color:#172638}
body .rba-form-grid textarea{min-height:90px;resize:vertical}
body .rba-form-actions{display:flex;flex-wrap:wrap;gap:10px}
body .rba-form-actions .btn{flex:1 1 160px;min-height:46px;justify-content:center}
body .rba-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
body .rba-table{border-collapse:collapse}
body .rba-count{display:inline-flex;padding:5px 11px;border-radius:999px;background:#edf2f6;color:#29435b;font-size:12px;font-weight:700;white-space:nowrap}
body .rba-note{color:var(--muted);font-size:12px}
body .rba-method-note{margin-top:12px;padding:12px 14px;border-radius:12px;background:#f6f8fa;border:1px solid var(--line);font-size:13px;line-height:1.6;color:#42556a}
body .rba-empty{padding:22px;text-align:center;color:#8a99aa}
body .rba-hero-sub{color:#d0deea;font-size:13px}
body .rba-score{font-weight:800;white-space:nowrap}
body .rba-risk{white-space:nowrap}

/* ---------- Findings: filter monitoring ---------- */
body .monitor-filters{align-items:end}
body .monitor-filters .btn{flex:0 0 auto}
body .findings-table td{vertical-align:top}
body .btn-detail{white-space:nowrap}

/* ---------- Detail: kotak komposer lampiran yang belum punya bingkai ---------- */
body .attachment-composer{margin:12px 0 0;padding:14px;border:1px solid var(--wjp-line,#e3ddcd);border-radius:14px;background:#fff}
body .detail-dropzone input[type=file]{width:100%}

/* ---------- Tablet ---------- */
@media(min-width:640px){
  body .panel{padding:20px 22px}
  body .user-admin-overview,body .monitor-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .rba-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .rba-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .scope-checks{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .ra-bar{grid-template-columns:150px 1fr 44px}
  body .rba-form-actions .btn{flex:0 0 auto;min-width:170px}
}

/* ---------- Desktop ---------- */
@media(min-width:980px){
  body .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .monitor-summary{grid-template-columns:repeat(5,minmax(0,1fr))}
  body .rba-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  body .user-admin-overview{grid-template-columns:repeat(4,minmax(0,1fr))}
  body .report-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* ============================================================
   v19 — Perbaikan serius: atribut hidden kembali dihormati,
   filter bar seragam premium di semua halaman, detail temuan
   diperketat untuk HP, dan gaya layar splash login.
   ============================================================ */

/* Atribut hidden harus selalu menang atas aturan display apa pun.
   Ini yang menyebabkan formulir reset password tampil terbuka
   padahal markup-nya sudah benar (hidden) — display:flex di v18
   menimpa aturan bawaan browser. */
[hidden]{display:none!important}

/* ---------- Filter bar: satu model premium yang sama ---------- */
body .rba-filters,body .report-form,body .monitor-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
body .rba-filters label,body .report-form label,body .monitor-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#42556a;min-width:0}
body .rba-filters input,body .rba-filters select,body .report-form input,body .report-form select,body .monitor-filters input,body .monitor-filters select{padding:11px 12px;border:1px solid #d3dde6;border-radius:10px;font:inherit;font-size:13px;background:#fff;color:#172638;min-height:44px;width:100%}
body .rba-filters select,body .report-form select,body .monitor-filters select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2342556a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;cursor:pointer}
body .rba-filters .btn,body .report-form .btn,body .monitor-filters .btn{min-height:44px;padding:11px 18px;align-self:flex-end}
body .monitor-filters .btn{flex:0 0 auto}

/* ---------- Grid statistik ditegaskan (mengalahkan aturan lama) ---------- */
body .report-kpis{display:grid;grid-template-columns:1fr;gap:12px}
body .monitor-summary{display:grid;grid-template-columns:1fr;gap:12px}

/* ---------- Detail temuan di HP: diperketat ---------- */
@media(max-width:640px){
  body .detail-hero{flex-direction:column;align-items:flex-start;padding:20px 16px}
  body .detail-hero-side{width:100%}
  body .detail-panel>.panel-head{flex-direction:column;align-items:flex-start}
  body .panel-head-tools{width:100%}
  body .panel-head-tools .btn{flex:1 1 auto}
  body .conversation-message{flex-wrap:wrap}
  body .conversation-bubble{width:100%}
}
@media(max-width:560px){
  body .attachment-item{flex-direction:column;align-items:flex-start}
  body .embedded-attachment-actions{width:100%}
  body .embedded-attachment-actions .btn{flex:1 1 auto;justify-content:center}
  body .form-action-row .btn{flex:1 1 100%}
  body .target-history-card{padding:16px}
  body .detail-fields>div{padding:12px 0}
  body .chat-attach-hint{display:none}
}

/* ---------- Layar splash login ---------- */
body.login-splash-page{background:radial-gradient(1200px 700px at 50% -10%,#1d4366 0%,#122a40 55%,#0d1f31 100%);min-height:100dvh}
body .login-stage{min-height:100dvh;display:grid;place-items:center;padding:20px}
body .login-splash{display:flex;flex-direction:column;align-items:center;text-align:center;color:#fff;max-width:520px}
body .login-splash-emblem{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.22);box-shadow:0 18px 40px rgba(0,0,0,.35);margin-bottom:22px}
body .login-splash-emblem svg{display:block}
body .login-splash-eyebrow{margin:0 0 10px;font-size:11px;font-weight:800;letter-spacing:.22em;color:#c99b58}
body .login-splash h1{margin:0;font-size:clamp(30px,8vw,44px);line-height:1.1;letter-spacing:-.01em}
body .login-splash-sub{margin:14px 0 0;color:#c3d2df;font-size:15px;line-height:1.6}
body .login-splash-enter{margin-top:28px;padding:15px 30px;border:0;border-radius:999px;background:linear-gradient(145deg,#f0cb86,#c18a3d);color:#142a3e;font:inherit;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 12px 28px rgba(0,0,0,.35);transition:transform .15s ease,box-shadow .15s ease}
body .login-splash-enter:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(0,0,0,.4)}
body .login-splash-enter:active{transform:translateY(0)}
body .login-splash-note{margin-top:20px;color:#8fa5b8;font-size:12px}
body .login-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:14px;padding:7px 12px;border:1px solid var(--line,#e3eaf0);border-radius:999px;background:#fff;color:#29435b;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
body .login-splash-page .login-clean-card{width:min(420px,92vw)}
body .login-splash-page .login-clean-shell{width:min(420px,92vw)}

/* ---------- Tablet / desktop untuk grid yang ditegaskan ---------- */
@media(min-width:640px){
  body .report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .monitor-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .rba-filters label,body .report-form label,body .monitor-filters label{min-width:150px}
}
@media(min-width:980px){
  body .report-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
  body .monitor-summary{grid-template-columns:repeat(5,minmax(0,1fr))}
}

/* ============================================================
   v20 — Kartu statistik PASTI 1 baris di desktop, tabel
   monitoring diperbaiki di HP, dan hero naik ke level
   premium modern bank (tanpa teks/badge baru).
   ============================================================ */

/* ---------- Kartu statistik: 1 baris di desktop, apa pun jumlah kartunya ---------- */
/* auto-fit + minmax(0,1fr) = semua kartu dalam SATU baris, lebar sama rata.
   Cara lama (repeat(4)/repeat(5)) salah: kalau jumlah kartu beda, barisnya pecah. */
body .report-kpis,body .monitor-summary{display:grid;gap:12px;grid-template-columns:1fr}
body .report-kpis>*,body .monitor-summary>*{min-width:0}
body .report-kpis .kpi span,body .monitor-summary .monitor-stat>span{overflow-wrap:break-word}
@media(min-width:640px){
  body .report-kpis,body .monitor-summary{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
}
@media(min-width:1024px){
  body .report-kpis,body .monitor-summary{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}
  body .report-kpis{gap:14px}
  body .monitor-summary{gap:14px}
}

/* ---------- Tabel Monitoring: desktop rapi, HP jadi kartu ringkas ---------- */
body .monitor-table{width:100%;border-collapse:collapse}
body .monitor-table th{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#78879a;text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
body .monitor-table td{padding:14px;vertical-align:top;border-bottom:1px solid var(--line);font-size:13.5px;line-height:1.5;color:#22364c}
body .monitor-table tbody tr:last-child td{border-bottom:0}
body .monitor-table td:nth-child(1){max-width:360px}
body .monitor-table td:nth-child(4){white-space:nowrap;font-size:13px}
@media(max-width:640px){
  body .monitor-table-wrap,body .table-wrap{overflow:visible}
  body .monitor-table,body .monitor-table tbody,body .monitor-table tr,body .monitor-table td{display:block;width:100%}
  body .monitor-table thead{display:none}
  body .monitor-table tbody{display:grid;gap:12px}
  body .monitor-table tr{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;box-shadow:0 4px 14px rgba(23,44,62,.05)}
  body .monitor-table td{padding:3px 0;border:0}
  /* Temuan: judul dipadatkan, maksimal 3 baris + elipsis — tidak lagi menjuntai ke bawah */
  body .monitor-table td:nth-child(1){max-width:none;font-size:14px;font-weight:600;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  body .monitor-table td:nth-child(1) small,body .monitor-table td:nth-child(1) .finding-meta{font-weight:400;font-size:12px;color:#78879a}
  /* Tanggal: tanggal + info jatuh tempo jadi SATU baris, bukan dua baris bertumpuk */
  body .monitor-table td:nth-child(4){white-space:nowrap;font-size:12.5px}
  body .monitor-table td:nth-child(4) div,body .monitor-table td:nth-child(4) span,body .monitor-table td:nth-child(4) small{display:inline}
  body .monitor-table td:nth-child(4) small::before{content:" \00b7  "}
  /* Status & Aksi: aksi menempel di bawah kartu, tombol melebar */
  body .monitor-table td:last-child{padding-top:8px}
  body .monitor-table td:last-child .btn,body .monitor-table td:last-child a.btn{display:inline-flex}
}

/* ---------- Hero: premium modern bank, semua halaman ---------- */
body .hero{position:relative;overflow:hidden;background:linear-gradient(115deg,#0c2135 0%,#12314d 48%,#174264 100%);border-radius:20px;padding:30px 32px;box-shadow:0 18px 40px rgba(10,25,40,.28),inset 0 1px 0 rgba(255,255,255,.09)}
body .hero::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#e3bd7d,#c99b58 55%,#8a6a35)}
body .hero::after{content:"";position:absolute;right:-90px;top:-110px;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle,rgba(201,155,88,.28),rgba(201,155,88,0) 68%);pointer-events:none}
body .hero>*{position:relative;z-index:1}
body .hero .eyebrow{letter-spacing:.24em;color:#d8b57e}
body .hero h1{font-size:32px;line-height:1.15;letter-spacing:-.015em}
body .hero p{color:#d6e2ec}
@media(max-width:640px){
  body .hero{padding:22px 18px;border-radius:16px}
  body .hero h1{font-size:25px}
}

/* ============================================================
   v21 — Perbaikan berdasarkan AUDIT MARKUP ASLI (bukan tebakan).
   Temuan audit: kartu statistik ada di .stats-row (BUKAN
   .report-kpis/.monitor-summary), tabel Monitoring kelasnya
   .findings-table (BUKAN .monitor-table). Snippet lama menarget
   kelas yang tidak ada — makanya tidak pernah jalan.
   ============================================================ */

/* ---------- Kartu statistik .stats-row: HP 2 kolom, desktop 1 baris ---------- */
body .stats-row{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
body .stats-row>*{min-width:0}
body .stats-row .monitor-stat{padding:14px}
body .stats-row .monitor-stat>span{overflow-wrap:break-word}
body .stats-row .monitor-stat>strong{font-size:26px}
@media(min-width:1024px){
  body .stats-row{grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:14px}
  body .stats-row .monitor-stat{padding:16px}
  body .stats-row .monitor-stat>strong{font-size:30px}
}

/* ---------- Filter: rapi di HP ---------- */
body .filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
body .filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#42556a;flex:1 1 140px;min-width:0}
body .filters input,body .filters select{padding:11px 12px;border:1px solid #d3dde6;border-radius:10px;font:inherit;font-size:13px;background:#fff;color:#172638;min-height:44px;width:100%}
body .filters select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2342556a' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
body .filters .btn{min-height:44px}
body .filters .check{flex-direction:row;align-items:center;gap:8px;align-self:center}
body .filters .check input{width:auto;min-height:0}
@media(max-width:640px){
  body .panel-head{flex-direction:column;align-items:stretch}
  body .panel-head .filters{width:100%}
  body .filters input[type=search],body .filters select,body .filters input[name=branch]{flex:1 1 100%}
}

/* ---------- Tabel Monitoring (.findings-table) di HP: jadi kartu ---------- */
@media(max-width:640px){
  body .findings-table,body .findings-table tbody,body .findings-table tr,body .findings-table td{display:block;width:100%}
  body .findings-table thead{display:none}
  body .findings-table tbody{display:grid;gap:12px}
  body .findings-table tr{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;box-shadow:0 4px 14px rgba(23,44,62,.05)}
  body .findings-table td{padding:4px 0;border:0}
  body .findings-table td:nth-child(n+2)::before{display:block;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#8a99aa;margin-bottom:2px}
  body .findings-table td:nth-child(2)::before{content:"Lokasi"}
  body .findings-table td:nth-child(3)::before{content:"Risiko"}
  body .findings-table td:nth-child(4)::before{content:"PIC / Target"}
  body .findings-table td:nth-child(5)::before{content:"Status"}
  body .findings-table td:nth-child(6)::before{content:"Aksi"}
  /* Temuan: nomor + tanggal tetap tampil, hanya RINGKASAN yang dibatasi 3 baris */
  body .findings-table .finding-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.5;color:#42556a;margin-top:4px}
  body .findings-table td:nth-child(6){padding-top:8px}
  body .findings-table td:nth-child(6) .btn{width:100%;justify-content:center}
}

/* ---------- Tabel Laporan (.report-table) di HP: jadi kartu ---------- */
@media(max-width:640px){
  body .report-table,body .report-table tbody,body .report-table tr,body .report-table td{display:block;width:100%}
  body .report-table thead{display:none}
  body .report-table tbody{display:grid;gap:12px}
  body .report-table tr{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;box-shadow:0 4px 14px rgba(23,44,62,.05)}
  body .report-table td{padding:4px 0;border:0;font-size:13px}
  body .report-table td:nth-child(n+2)::before{display:block;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#8a99aa;margin-bottom:2px}
  body .report-table td:nth-child(1){font-size:15px;font-weight:700}
  body .report-table td:nth-child(2)::before{content:"Tanggal"}
  body .report-table td:nth-child(3)::before{content:"Cabang / Unit"}
  body .report-table td:nth-child(4)::before{content:"Risiko"}
  body .report-table td:nth-child(5)::before{content:"Fraud"}
  body .report-table td:nth-child(6)::before{content:"Status"}
  body .report-table td:nth-child(7)::before{content:"Target"}
  body .report-table td:nth-child(8)::before{content:"Eskalasi"}
  body .report-table td:nth-child(9)::before{content:"PIC"}
}

/* ---------- Hero Detail Temuan yang Terlambat: semburat merah SANGAT samar ---------- */
body .detail-hero.is-overdue{box-shadow:0 18px 40px rgba(120,30,20,.22),inset 0 1px 0 rgba(255,255,255,.09)}
body .detail-hero.is-overdue::before{background:linear-gradient(180deg,#e08a7a,#a03d2c)}
body .detail-hero.is-overdue::after{background:radial-gradient(circle,rgba(214,90,70,.26),rgba(214,90,70,0) 68%)}

/* ============================================================
   v22 — Detail: 4 kartu cerita full-width + komposer &
   lampiran premium (cermin aturan inline di finding_detail).
   ============================================================ */
body .finding-story-grid{display:grid !important;grid-template-columns:minmax(0,1fr) !important;gap:14px !important}
body .finding-story-grid .story-card{grid-column:auto !important;min-width:0}
body .chat-composer{width:100%}
body .chat-composer .chat-box{width:100%}
body .chat-composer textarea#commitment-detail{display:block;width:100%;min-height:128px;resize:vertical;padding:14px;border:1px solid #d3dde6;border-radius:12px;font:inherit;font-size:14px;line-height:1.6;color:#172638;background:#fff}
body .chat-composer textarea#commitment-detail:focus{outline:none;border-color:#c99b58;box-shadow:0 0 0 3px rgba(201,155,88,.18)}
body .chat-attach-popup{background:#fff;border:1px solid #dfe7ee;border-radius:16px;padding:16px;box-shadow:0 16px 40px rgba(10,25,40,.16)}
body .chat-attach-popup-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
body .chat-attach-popup-head strong{font-size:14px}
body .chat-attach-popup-close{width:28px;height:28px;border-radius:50%;border:1px solid #dfe7ee;background:#fff;cursor:pointer;font-size:16px;line-height:1}
body .chat-dropzone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:26px 16px;border:1.5px dashed #d8b57e;border-radius:14px;background:#fdfaf0;cursor:pointer}
body .chat-dropzone input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
body .chat-dropzone svg{color:#8a6a35}
body .chat-dropzone-title{font-weight:700;font-size:14px;color:#172638}
body .chat-dropzone-or{font-size:12px;color:#8a99aa}
body .chat-dropzone-btn{display:inline-block;padding:9px 18px;border-radius:999px;background:#122a40;color:#fff;font-size:13px;font-weight:700;cursor:pointer}
body .chat-dropzone small{display:block;max-width:340px;font-size:12px;line-height:1.5;color:#78879a}
body .chat-dropzone.is-dragover{border-color:#c99b58;background:#fdf3dd;box-shadow:0 0 0 3px rgba(201,155,88,.18)}
body .chat-attach-popup .compact-input-label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#42556a;margin:12px 0 0}
body .chat-attach-popup .compact-input-label input{padding:11px 12px;border:1px solid #d3dde6;border-radius:10px;font:inherit;font-size:13px;font-weight:400;color:#172638;min-height:44px;width:100%;background:#fff}
body .chat-attach-popup .chat-attach-done{margin-top:14px}


/* ============================================================
   v23 — PREMIUM CORPORATE LUXURY (audit menyeluruh, go-live)
   Satu sistem visual untuk SEMUA halaman. Logika tidak diubah.
   Prinsip: kertas hangat + navy dalam + emas redup + serif display.
   Lapisan ini menimpa tampilan generik v22 ke bawah.
   ============================================================ */

/* ---------- Token baru ---------- */
:root{--bg:#f4f1eb;--paper:#fffdf8;--ink:#16283c;--navy:#0e2438;--navy-2:#14324e;--gold:#c19a4b;--gold-soft:#e8d9b8;--line:#e5ddce;--muted:#7a8697}
html{background:var(--bg)}
body{background-color:var(--bg);background-image:radial-gradient(1200px 500px at 85% -10%,rgba(193,154,75,.10),transparent 60%),radial-gradient(900px 420px at -10% 0%,rgba(14,36,56,.05),transparent 55%);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,.hero h1,.panel-head h2,.story-card h4,.kpi strong,.monitor-stat>strong,.user-admin-stat>strong,.trend-item strong{font-family:"Fraunces",Georgia,"Times New Roman",serif;font-weight:600;letter-spacing:-.01em}
a{color:#14436b}
::selection{background:rgba(193,154,75,.32)}

/* ---------- Topbar: navy dalam + garis emas ---------- */
body .topbar{background:linear-gradient(100deg,#081826 0%,#0e2438 55%,#14324e 100%);border-bottom:1px solid rgba(193,154,75,.55);box-shadow:0 10px 30px rgba(8,24,38,.35);min-height:72px}
body .brand-caption{font-family:"Fraunces",Georgia,serif;font-size:17px;letter-spacing:.02em;color:#fdf8ec}
body .brand-divider{background:linear-gradient(180deg,transparent,rgba(193,154,75,.9),transparent)}
body .brand-logo-frame{border:1px solid rgba(193,154,75,.6);box-shadow:0 0 0 1px rgba(255,255,255,.08),0 6px 14px rgba(0,0,0,.3)}
body .user-identity strong{color:#fff}
body .user-identity small{color:#b9c6d4}
body .account-link,body .logout-link{border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:7px 14px;color:#eef2f6;background:rgba(255,255,255,.05)}
body .account-link:hover,body .logout-link:hover{background:rgba(193,154,75,.22);border-color:rgba(193,154,75,.7);color:#fff}

/* ---------- Sidebar: navy, aktif beraksen emas ---------- */
body .app-sidebar{background:linear-gradient(180deg,#0b1e30,#0e2438);border-right:1px solid rgba(193,154,75,.35);padding:22px 14px 16px}
body .sidebar-topline{border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:12px;margin-bottom:6px}
body .sidebar-caption{color:#c9a86a}
body .sidebar-collapse-toggle{color:#c9a86a;border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.04)}
body .nav-group-label{color:#8ea3b5;letter-spacing:.16em}
body .nav-item{color:#cdd9e4;border:1px solid transparent}
body .nav-item:hover{background:rgba(255,255,255,.06);color:#fff}
body .nav-item.active{background:linear-gradient(90deg,rgba(193,154,75,.22),rgba(193,154,75,.06));border-color:rgba(193,154,75,.45);color:#fdf3da}
body .nav-item.active .nav-item-icon{color:#d8b96f}
body .nav-item.active .nav-active-mark{background:#d8b96f}
body .nav-item-icon{color:#9fb2c3}
body .sidebar-footer{border-top:1px solid rgba(255,255,255,.08);color:#cdd9e4}
body .sidebar-footer strong{color:#fff}
body .sidebar-footer small{color:#8ea3b5}
body .sidebar-footer-mark{background:linear-gradient(145deg,#e8cd8d,#b08a3e);color:#122a40;box-shadow:0 4px 12px rgba(0,0,0,.3)}

/* ---------- Kontainer ---------- */
body .container{padding:30px 30px 40px}
body .footer{color:#8a99aa;border-top:1px solid var(--line)}

/* ---------- Hero: berlapis, serif, lencana kaca ---------- */
body .hero{position:relative;overflow:hidden;background:linear-gradient(115deg,#0a1c2e 0%,#0e2438 52%,#173a58 100%);border:1px solid rgba(193,154,75,.35);border-radius:20px;box-shadow:0 22px 44px rgba(10,28,46,.28);padding:30px 32px}
body .hero::before{content:"";position:absolute;inset:0 0 auto 0;height:2px;background:linear-gradient(90deg,transparent,rgba(216,185,111,.95) 22%,rgba(216,185,111,.95) 78%,transparent)}
body .hero::after{content:"";position:absolute;width:520px;height:520px;right:-160px;top:-260px;background:radial-gradient(circle,rgba(216,185,111,.22),rgba(216,185,111,0) 68%);pointer-events:none}
body .hero>*{position:relative;z-index:1}
body .hero .eyebrow{color:#d8b96f;letter-spacing:.22em}
body .hero h1{font-size:34px;line-height:1.12;color:#fdf8ec}
body .hero p{color:#c3d2de}
body .hero .hero-period,body .hero .dashboard-hero-meta,body .hero .hero-meta{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:10px 16px;backdrop-filter:blur(4px)}
body .hero .hero-period span,body .hero .dashboard-hero-meta small{color:#b9c6d4}
body .hero .hero-period strong,body .hero .dashboard-hero-meta strong{color:#fdf3da}
body .hero .btn-light{background:rgba(255,255,255,.92);border-color:rgba(255,255,255,.9);color:#122a40}
body .hero .live-mark{background:#d8b96f;box-shadow:0 0 0 4px rgba(216,185,111,.22)}

/* ---------- Kartu KPI / statistik: kertas premium ---------- */
body .kpi,body .monitor-stat,body .user-admin-stat,body .stats-row .monitor-stat{background:linear-gradient(180deg,#fffdf8,#fbf7ef);border:1px solid var(--line);border-radius:18px;box-shadow:0 2px 0 rgba(120,90,30,.06),0 14px 30px rgba(20,40,60,.07);transition:transform .18s ease,box-shadow .18s ease}
body .kpi:hover,body .monitor-stat:hover,body .user-admin-stat:hover{transform:translateY(-2px);box-shadow:0 4px 0 rgba(120,90,30,.06),0 20px 38px rgba(20,40,60,.11)}
body .kpi>span,body .monitor-stat>span,body .user-admin-stat .user-stat-label{color:#8a99aa;letter-spacing:.12em}
body .kpi strong,body .monitor-stat>strong,body .user-admin-stat>strong{font-size:36px;line-height:1;color:#122a40}
body .kpi small,body .monitor-stat small,body .user-admin-stat small{color:#7a8697}
body .monitor-stat.is-alert{border-color:#e8c9c2;background:linear-gradient(180deg,#fffaf7,#fdf1ec)}
body .monitor-stat.is-alert>strong{color:#8f2f22}
body .monitor-stat.is-closed{border-color:#cfe0cd;background:linear-gradient(180deg,#fbfff8,#f1f7ec)}
body .monitor-stat.is-closed>strong{color:#2e5d2a}
body .user-stat-icon{background:rgba(193,154,75,.14);color:#8a6a35;border:1px solid rgba(193,154,75,.35)}

/* ---------- Panel ---------- */
body .panel{background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:0 2px 0 rgba(120,90,30,.05),0 12px 28px rgba(20,40,60,.06)}
body .panel-head{border-bottom:1px solid var(--line)}
body .panel-head h2{font-size:19px;color:#122a40}
body .panel-head .eyebrow{color:#a07d2e}
body .panel-subtitle{color:#7a8697}
body .master-count{background:rgba(193,154,75,.14);border:1px solid rgba(193,154,75,.4);color:#6d5420}

/* ---------- Tabel ---------- */
body table{border-collapse:separate;border-spacing:0}
body thead th{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#7a8697;background:#faf6ec;border-bottom:1px solid var(--line);padding:12px 14px}
body tbody td{padding:13px 14px;border-bottom:1px solid #efe9db;color:#2a3f54}
body tbody tr{transition:background .15s ease}
body tbody tr:hover td{background:#fdf8ec}
body tbody tr:last-child td{border-bottom:0}
body tbody td a{color:#14436b;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(193,154,75,.7);font-weight:600}
body .table-wrap{border:1px solid var(--line);border-radius:14px;overflow:hidden}
body .empty{color:#8a99aa}

/* ---------- Tombol ---------- */
body .btn{border-radius:11px;font-weight:700;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
body .btn:active{transform:translateY(1px)}
body .btn-primary,body .btn-dark{background:linear-gradient(180deg,#173a58,#0e2438);color:#fff;border:1px solid #0e2438;box-shadow:0 8px 18px rgba(14,36,56,.25)}
body .btn-primary:hover,body .btn-dark:hover{background:linear-gradient(180deg,#1d4566,#123049);border-color:#c19a4b;box-shadow:0 10px 22px rgba(14,36,56,.3)}
body .btn-light{background:#fff;border:1px solid var(--line);color:#2a3f54;box-shadow:0 2px 6px rgba(20,40,60,.05)}
body .btn-light:hover{border-color:#c19a4b;background:#fdf8ec}
body .btn-save{background:linear-gradient(180deg,#173a58,#0e2438) !important}
body .icon-button{border:1px solid var(--line);background:#fff}
body .icon-button:hover{border-color:#c19a4b}

/* ---------- Pill / badge ---------- */
body .pill{border-radius:999px;font-size:11px;letter-spacing:.04em;padding:5px 11px;border:1px solid var(--line);background:#faf6ec;color:#5b6a7a;font-weight:700}
body .pill.high,body .pill.critical{border-color:#e8c9c2;background:#fdf1ec;color:#8f2f22}
body .pill.overdue{border-color:#e8c9c2;background:#fdf1ec;color:#8f2f22}
body .pill.medium{border-color:#ecd9ae;background:#fdf6e2;color:#7a5a12}
body .pill.low{border-color:#cfe0cd;background:#f1f7ec;color:#2e5d2a}

/* ---------- Form ---------- */
body input,body select,body textarea{background:#fffdf8;border:1px solid #ddd4c0;border-radius:11px;color:#16283c}
body input:focus,body select:focus,body textarea:focus{outline:none;border-color:#c19a4b;box-shadow:0 0 0 3px rgba(193,154,75,.2)}
body label{color:#42556a}
body .form-grid label{font-weight:600}
body .filters input,body .filters select{background:#fffdf8}

/* ---------- Tren Dashboard ---------- */
body .trend-wrap{align-items:flex-end;border-bottom:1px solid var(--line);padding-bottom:0}
body .trend-bar{background:linear-gradient(180deg,#c19a4b,#0e2438);border-radius:8px 8px 0 0;box-shadow:0 -4px 12px rgba(193,154,75,.25)}
body .trend-item strong{color:#122a40}
body .trend-item small{color:#7a8697}

/* ---------- Notice ---------- */
body .notice{border-radius:14px;border:1px solid var(--line);background:#fdf8ec;color:#5b4a1e}
body .notice.error{border-color:#e8c9c2;background:#fdf1ec;color:#8f2f22}
body .notice.success{border-color:#cfe0cd;background:#f1f7ec;color:#2e5d2a}

/* ---------- Kartu cerita Detail ---------- */
body .story-card{background:linear-gradient(180deg,#fffdf8,#fbf6ea);border:1px solid var(--line);border-radius:16px;box-shadow:0 2px 0 rgba(120,90,30,.05),0 10px 24px rgba(20,40,60,.05)}
body .story-card h4{color:#122a40}
body .story-card .story-label{color:#a07d2e}
body .story-card .story-index{color:#c19a4b;border:1px solid rgba(193,154,75,.5);background:rgba(193,154,75,.1)}
body .story-card.story-recommendation{background:linear-gradient(180deg,#0e2438,#14324e);border-color:#0e2438}
body .story-card.story-recommendation h4,body .story-card.story-recommendation .story-copy{color:#eef2f6}
body .story-card.story-recommendation .story-label{color:#d8b96f}

/* ---------- Percakapan / komposer / lampiran ---------- */
body .chat-box{border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 10px 24px rgba(20,40,60,.06)}
body .chat-attach-btn{border:1px solid var(--line);background:#faf6ec;color:#42556a}
body .chat-attach-btn:hover{border-color:#c19a4b;background:#fdf8ec}
body .chat-attach-chip{background:#faf6ec;border:1px solid rgba(193,154,75,.45);color:#5b4a1e}

/* ---------- Login ---------- */
body.login-page{background:linear-gradient(120deg,#081826,#0e2438 55%,#173a58)}
body.login-page .login-stage{max-width:1060px}
body.login-page .login-splash{border:1px solid rgba(193,154,75,.4);border-radius:22px;overflow:hidden;box-shadow:0 30px 60px rgba(0,0,0,.4)}
body.login-page .login-card,body.login-page .login-form-card{background:var(--paper);border-radius:20px;box-shadow:0 24px 50px rgba(0,0,0,.3)}
body.login-page .login-card h1,body.login-page .login-form-card h1{font-family:"Fraunces",Georgia,serif}

/* ---------- Detail lain ---------- */
body .finding-savebar{background:#fffdf8;border-top:1px solid var(--line);box-shadow:0 -10px 30px rgba(16,38,59,.14)}
body .embedded-attachments{border:1px solid var(--line);border-radius:16px;background:var(--paper)}
body .master-row{border-bottom:1px solid #efe9db}
body .master-row:hover{background:#fdf8ec}
body .attachment-count{background:rgba(193,154,75,.14);border:1px solid rgba(193,154,75,.4);color:#6d5420}
body .detail-hero.is-overdue{box-shadow:0 18px 40px rgba(120,30,20,.22),inset 0 1px 0 rgba(255,255,255,.09)}

/* ---------- HP: jaga kerapian ---------- */
@media(max-width:640px){
  body .container{padding:18px 14px 28px}
  body .hero{padding:22px 18px;border-radius:16px}
  body .hero h1{font-size:27px}
  body .kpi strong,body .monitor-stat>strong,body .user-admin-stat>strong{font-size:30px}
  body .panel{border-radius:16px}
  body thead th{padding:10px 10px}
  body tbody td{padding:11px 10px}
}
@media(max-width:900px){
  body .app-sidebar{box-shadow:20px 0 50px rgba(8,24,38,.45)}
}


/* ============================================================
   v24 — Premium dibuat TERLIHAT JELAS + scroll menu hilang.
   1. Garis scroll di sidebar disembunyikan (tetap bisa di-scroll).
   2. Hero, kartu, panel, tabel dibuat jauh lebih tegas premiumnya
      supaya tidak lagi terasa identik dengan tampilan lama.
   ============================================================ */

/* ---------- 1. Scrollbar menu hilang, fungsi scroll tetap ---------- */
body .app-sidebar{scrollbar-width:none;-ms-overflow-style:none}
body .app-sidebar::-webkit-scrollbar{width:0;height:0;display:none}
body .app-sidebar::-webkit-scrollbar-thumb{background:transparent}
body .app-sidebar::-webkit-scrollbar-track{background:transparent}
/* Scrollbar halaman utama dibuat ramping & senada, bukan default kasar */
html{scrollbar-width:thin;scrollbar-color:#c9b98d #efe9db}
html::-webkit-scrollbar{width:10px;height:10px}
html::-webkit-scrollbar-track{background:#efe9db}
html::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#c9b98d,#0e2438);border-radius:999px;border:2px solid #efe9db}

/* ---------- 2. Hero: jauh lebih premium & tegas ---------- */
body .hero{padding:38px 36px;border-radius:24px;background:
  radial-gradient(560px 300px at 88% -20%,rgba(216,185,111,.30),rgba(216,185,111,0) 62%),
  radial-gradient(420px 260px at 8% 115%,rgba(23,58,88,.9),rgba(23,58,88,0) 60%),
  linear-gradient(112deg,#081826 0%,#0e2438 48%,#1a3d5e 100%);
  box-shadow:0 26px 50px rgba(8,24,38,.35),inset 0 1px 0 rgba(255,255,255,.12)}
body .hero::before{height:3px;background:linear-gradient(90deg,#c19a4b, #f0d896 30%, #c19a4b 65%, transparent)}
body .hero h1{font-size:42px;line-height:1.05;text-shadow:0 2px 18px rgba(0,0,0,.35)}
body .hero .eyebrow{font-size:12px;color:#ecd08a}
body .hero p{font-size:15px;color:#d3dee8;max-width:640px}
body .hero .hero-period,body .hero .dashboard-hero-meta,body .hero .hero-meta{background:rgba(255,255,255,.09);border:1px solid rgba(236,208,138,.45);border-radius:16px;padding:12px 18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 10px 24px rgba(0,0,0,.25)}
body .hero .hero-period strong,body .hero .dashboard-hero-meta strong{font-family:"Fraunces",Georgia,serif;font-size:19px;color:#fdf3da}
body .detail-hero .detail-hero-side .pill{border-color:rgba(236,208,138,.55);background:rgba(255,255,255,.08);color:#fdf3da}

/* ---------- 3. Kartu KPI: aksen emas atas + angka lebih besar ---------- */
body .kpi,body .monitor-stat,body .user-admin-stat{position:relative;overflow:hidden;border-radius:20px;padding:20px 20px 18px}
body .kpi::before,body .monitor-stat::before,body .user-admin-stat::before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:linear-gradient(90deg,#c19a4b,#f0d896 55%,#c19a4b)}
body .kpi strong,body .monitor-stat>strong,body .user-admin-stat>strong{font-size:42px}
body .kpi>span,body .monitor-stat>span,body .user-admin-stat .user-stat-label{font-size:11px;color:#6d7c8d}
body .monitor-stat.is-alert::before{background:linear-gradient(90deg,#b03a2a,#e08a7a)}
body .monitor-stat.is-closed::before{background:linear-gradient(90deg,#2e5d2a,#7aa95e)}

/* ---------- 4. Panel & tabel: lebih tegas ---------- */
body .panel{border-radius:20px;box-shadow:0 2px 0 rgba(120,90,30,.05),0 18px 36px rgba(20,40,60,.08)}
body .panel-head{padding:20px 22px 16px}
body .panel-head h2{font-size:21px}
body .panel-head h2::after{content:"";display:block;width:44px;height:3px;margin-top:8px;border-radius:999px;background:linear-gradient(90deg,#c19a4b,#f0d896)}
body thead th{background:#122a40;color:#e8d9b8;border-bottom:1px solid #122a40}
body tbody td{padding:14px}
body tbody tr:hover td{background:#fbf4e2}

/* ---------- 5. Sidebar & topbar: kontras lebih dalam ---------- */
body .topbar{box-shadow:0 12px 32px rgba(8,24,38,.4)}
body .app-sidebar{background:linear-gradient(180deg,#081826,#0e2438 60%,#0a1e30)}
body .nav-item{padding:11px 12px;border-radius:12px}
body .nav-item.active{box-shadow:inset 3px 0 0 #d8b96f,0 8px 18px rgba(0,0,0,.25)}

/* ---------- 6. Tombol & pill: lebih berkarakter ---------- */
body .btn-primary,body .btn-dark{box-shadow:0 10px 22px rgba(14,36,56,.32),inset 0 1px 0 rgba(255,255,255,.18)}
body .btn{padding:11px 18px}
body .pill{padding:6px 12px}

/* ---------- 7. HP: hero & kartu tetap lega ---------- */
@media(max-width:640px){
  body .hero{padding:24px 20px}
  body .hero h1{font-size:31px}
  body .kpi strong,body .monitor-stat>strong,body .user-admin-stat>strong{font-size:34px}
}


/* ============================================================
   v25 — Scrollbar menu: target ELEMEN YANG BENAR.
   Audit: scroller sebenarnya adalah .main-nav (flex:1 +
   overflow-y:auto), BUKAN .app-sidebar. v24 menyembunyikan
   scrollbar di elemen yang salah — makanya tidak pernah hilang.
   ============================================================ */
body .main-nav,body .app-sidebar,body .app-sidebar *{scrollbar-width:none !important;-ms-overflow-style:none !important}
body .main-nav::-webkit-scrollbar,body .app-sidebar::-webkit-scrollbar,body .app-sidebar *::-webkit-scrollbar{width:0 !important;height:0 !important;display:none !important;background:transparent !important}
body .main-nav::-webkit-scrollbar-thumb,body .app-sidebar::-webkit-scrollbar-thumb,body .app-sidebar *::-webkit-scrollbar-thumb{background:transparent !important;border:0 !important}
body .main-nav::-webkit-scrollbar-track,body .app-sidebar::-webkit-scrollbar-track,body .app-sidebar *::-webkit-scrollbar-track{background:transparent !important}
/* Nav sedikit lebih ringkas supaya lebih jarang perlu di-scroll */
body .nav-group-label{margin:10px 6px 2px}
body .nav-item{padding:9px 12px}
body.sidebar-collapsed .nav-item{padding:9px 6px}


/* ============================================================
   v26 — Audit HP: tidak ada lagi yang terpotong + pagination.
   - Monitoring & Laporan: tampil 10/halaman (PHP), nav di bawah.
   - Direktori pengguna (ACCESS DIRECTORY): kartu berlabel di HP.
   - Case Status: laci <details>, default tertutup.
   - Kartu temuan HP: tombol Buka detail tidak lagi terpotong.
   ============================================================ */

/* ---------- Pagination ---------- */
body .pagination{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;padding:18px 0 4px}
body .pagination .page-btn{display:inline-block;padding:10px 18px;border-radius:999px;border:1px solid var(--line);background:#fff;color:#2a3f54;font-weight:700;font-size:13px;text-decoration:none}
body .pagination .page-btn:hover{border-color:#c19a4b;background:#fdf8ec}
body .pagination .page-btn.is-disabled{opacity:.45;pointer-events:none}
body .pagination .page-info{font-size:13px;color:#7a8697;font-weight:600}

/* ---------- Kartu temuan HP: tombol tidak terpotong ---------- */
@media(max-width:640px){
  body .findings-table tr{padding-bottom:6px}
  body .findings-table td:last-child{padding:10px 14px 16px}
  body .findings-table td:last-child .btn{display:block;width:100%;text-align:center;padding:12px}
  body .report-table tr{padding-bottom:6px}
  body .report-table td:last-child{padding-bottom:14px}

  /* Direktori pengguna (ACCESS DIRECTORY) -> kartu berlabel */
  body .user-directory-head{flex-direction:column;align-items:stretch;gap:14px}
  body .user-directory-tools{display:flex;flex-direction:column;gap:10px;width:100%}
  body .user-directory-tools input,body .user-directory-tools select{width:100%;min-height:44px}
  body .user-directory-table,body .user-directory-table tbody,body .user-directory-table tr,body .user-directory-table td{display:block;width:100%}
  body .user-directory-table thead{display:none}
  body .user-directory-table tbody{display:grid;gap:12px}
  body .user-directory-table tr{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 10px 24px rgba(20,40,60,.06)}
  body .user-directory-table td{padding:6px 0;border:0}
  body .user-directory-table td:nth-child(2)::before{content:"Role"}
  body .user-directory-table td:nth-child(3)::before{content:"Lingkup akses"}
  body .user-directory-table td:nth-child(4)::before{content:"Status"}
  body .user-directory-table td:nth-child(5)::before{content:"Administrasi"}
  body .user-directory-table td:nth-child(n+2)::before{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#8a99aa;font-weight:700;margin-bottom:4px}
  body .user-directory-table .user-admin-actions{display:flex;flex-wrap:wrap;gap:8px}

  /* Pengaturan: master data menumpuk rapi */
  body .settings-grid{grid-template-columns:minmax(0,1fr) !important}
  body .master-add{flex-direction:column;align-items:stretch}
  body .master-add input,body .master-add button{width:100%}
  body .master-row{flex-wrap:wrap}

  /* Panel-head & filter tidak terpotong */
  body .panel-head{flex-wrap:wrap;gap:12px}
  body .panel-head>*{min-width:0}
  body .filters label{flex:1 1 100%}
}

/* ---------- Case Status: laci ---------- */
body .case-drawer summary{list-style:none;cursor:pointer;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
body .case-drawer summary::-webkit-details-marker{display:none}
body .case-drawer summary::after{content:"▸";flex:none;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:#8a6a35;background:#faf6ec;font-size:14px;transition:transform .18s ease;margin-top:4px}
body .case-drawer[open ] summary::after{transform:rotate(90deg)}
body .case-drawer .timeline{padding-top:16px}
body .case-drawer .status-panel-head{border-bottom:0}
body .case-drawer[open ] .status-panel-head{border-bottom:1px solid var(--line)}


/* ============================================================
   v27 — Celah HP yang terbukti belum ditangani v26:
   dashboard-grid & dashboard-kpis tidak punya aturan HP sama
   sekali (tetap 2 kolom / 4 kolom -> terpotong). Detail layout
   juga belum dipaksa 1 kolom di HP. Perilaku desktop tidak berubah.
   ============================================================ */
@media(max-width:640px){
  /* DASHBOARD: hero menumpuk, KPI 2 kolom, grid 1 kolom */
  body .dashboard-hero{flex-direction:column;align-items:flex-start;gap:14px}
  body .dashboard-hero h1{font-size:28px}
  body .dashboard-period{width:100%;justify-content:flex-start}
  body .dashboard-kpis{grid-template-columns:1fr 1fr !important;gap:10px}
  body .dashboard-kpis .kpi{padding:14px 12px;min-width:0}
  body .dashboard-kpis .kpi strong{font-size:24px}
  body .dashboard-kpis .kpi small{font-size:11px;line-height:1.4}
  body .dashboard-grid{grid-template-columns:minmax(0,1fr) !important}
  body .status-total{flex-wrap:wrap}
  body .status-line{flex-wrap:wrap;gap:8px}
  body .risk-mix-content{flex-direction:column;align-items:stretch}
  body .risk-donut{margin:0 auto}
  /* Panel Perlu perhatian (compact-table) -> kartu berlabel */
  body .recent-panel .compact-table,body .recent-panel .compact-table tbody,body .recent-panel .compact-table tr,body .recent-panel .compact-table td{display:block;width:100%}
  body .recent-panel .compact-table thead{display:none}
  body .recent-panel .compact-table tbody{display:grid;gap:10px}
  body .recent-panel .compact-table tr{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:12px 14px}
  body .recent-panel .compact-table td{padding:4px 0;border:0}
  body .recent-panel .compact-table td:nth-child(2)::before{content:"Temuan"}
  body .recent-panel .compact-table td:nth-child(3)::before{content:"Target"}
  body .recent-panel .compact-table td:nth-child(4)::before{content:"Status"}
  body .recent-panel .compact-table td:nth-child(n+2)::before{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#8a99aa;font-weight:700;margin-bottom:2px}
  body .recent-panel .table-wrap{overflow:visible}
  body .trend-chart{overflow-x:auto}
  /* DETAIL TEMUAN: 1 kolom, panel samping di bawah, tidak meluber */
  body .detail-layout{grid-template-columns:minmax(0,1fr) !important}
  body .detail-side{order:2}
  body .detail-main{min-width:0}
  body .detail-panel{min-width:0}
  body .detail-panel .status-panel-head{flex-wrap:wrap}
  body .timeline-item{min-width:0}
  body .timeline-item p{overflow-wrap:anywhere}
  /* MONITORING: pastikan kartu tidak memotong tombol */
  body .findings-table{border-collapse:separate;border-spacing:0 12px}
  body .findings-table td:last-child .btn{margin:0}
  body .table-wrap{overflow-x:visible}
}
@media(max-width:380px){
  body .dashboard-kpis{grid-template-columns:1fr 1fr}
  body .dashboard-kpis .kpi strong{font-size:21px}
}

/* ===== DASHBOARD PREMIUM (Nov 2026) — kelas dash-* hanya dipakai dashboard.php ===== */
.dash-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;flex-wrap:wrap;padding:34px 34px 30px;border-radius:24px;margin-bottom:20px;color:#fff;background:radial-gradient(560px 300px at 88% -20%,rgba(216,185,111,.30),rgba(216,185,111,0) 62%),radial-gradient(420px 260px at 8% 115%,rgba(23,58,88,.9),rgba(23,58,88,0) 60%),linear-gradient(112deg,#081826 0%,#0e2438 48%,#1a3d5e 100%);border:1px solid rgba(193,154,75,.35);box-shadow:0 26px 50px rgba(8,24,38,.35),inset 0 1px 0 rgba(255,255,255,.12);position:relative;overflow:hidden}
.dash-hero::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,#c19a4b,#f0d896 30%,#c19a4b 65%,transparent)}
.dash-hero-main{min-width:0;flex:1 1 320px}
.dash-hero .eyebrow{color:#ecd08a;font-size:12px}
.dash-hero h1{margin:4px 0 8px;font-size:42px;line-height:1.05;color:#fdf8ec;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.dash-hero p{margin:0;color:#d3dee8;font-size:15px;max-width:620px}
.dash-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.dash-hero-actions .btn-light{background:rgba(255,255,255,.92);border-color:rgba(255,255,255,.9);color:#122a40}
.dash-hero-period{display:flex;flex-direction:column;gap:2px;min-width:150px;padding:14px 20px;border-radius:16px;background:rgba(255,255,255,.09);border:1px solid rgba(236,208,138,.45);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 10px 24px rgba(0,0,0,.25);text-align:right}
.dash-hero-period span{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#b9c6d4}
.dash-hero-period strong{font-family:"Fraunces",Georgia,serif;font-size:22px;color:#fdf3da}
.dash-hero-period small{font-size:12px;color:#b9c6d4}
.dash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.dash-kpi{display:flex;gap:14px;align-items:flex-start;padding:20px;border-radius:20px;text-decoration:none;color:inherit;background:linear-gradient(180deg,#fffdf8,#fbf7ef);border:1px solid var(--line);box-shadow:0 2px 0 rgba(120,90,30,.06),0 14px 30px rgba(20,40,60,.07);transition:transform .18s ease,box-shadow .18s ease;position:relative;overflow:hidden}
.dash-kpi::before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:linear-gradient(90deg,#c19a4b,#f0d896 55%,#c19a4b)}
.dash-kpi:hover{transform:translateY(-2px);box-shadow:0 4px 0 rgba(120,90,30,.06),0 20px 38px rgba(20,40,60,.11)}
.dash-kpi-icon{flex:0 0 auto;width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-size:19px;font-weight:800;background:rgba(193,154,75,.14);border:1px solid rgba(193,154,75,.35);color:#8a6a35}
.dash-kpi.is-open .dash-kpi-icon{background:#eef3f7;border-color:#d4dee8;color:#173a58}
.dash-kpi.is-late .dash-kpi-icon{background:#fdf1ec;border-color:#e8c9c2;color:#8f2f22}
.dash-kpi.is-risk .dash-kpi-icon{background:#fdf6e2;border-color:#ecd9ae;color:#7a5a12}
.dash-kpi-label{display:block;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#6d7c8d}
.dash-kpi strong{display:block;font-family:"Fraunces",Georgia,serif;font-size:38px;line-height:1.1;color:#122a40;margin:4px 0 2px}
.dash-kpi small{color:#7a8697;font-size:12px;line-height:1.4}
.dash-alert{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:16px 18px;margin-bottom:20px;border-radius:16px;border:1px solid #e8c9c2;background:#fdf1ec;color:#8f2f22}
.dash-alert-icon{flex:0 0 auto;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#8f2f22;color:#fff;font-weight:900;font-size:18px}
.dash-alert div{flex:1 1 220px;display:flex;flex-direction:column}
.dash-alert strong{font-size:14px}
.dash-alert span{font-size:12px;opacity:.85}
.dash-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:16px;margin-bottom:20px;align-items:stretch}
.dash-panel{margin:0}
.dash-trend{display:flex;gap:10px;align-items:flex-end;height:200px;padding:18px 6px 0;border-bottom:1px solid var(--line)}
.dash-trend-item{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%}
.dash-trend-value{font-family:"Fraunces",Georgia,serif;font-weight:600;font-size:16px;color:#122a40}
.dash-trend-track{display:flex;align-items:flex-end;height:130px}
.dash-trend-bar{width:100%;min-width:34px;max-width:56px;background:linear-gradient(180deg,#c19a4b,#0e2438);border-radius:8px 8px 0 0;box-shadow:0 -4px 12px rgba(193,154,75,.25)}
.dash-trend-item small{color:#7a8697;font-size:11px}
.dash-trend-item em{font-size:10px;font-style:normal;color:#8f2f22}
.dash-donut-row{position:relative;display:flex;flex-direction:column;align-items:center;padding:10px 6px 4px}
.dash-donut{width:150px;height:150px;border-radius:50%;position:relative}
.dash-donut-hole{position:absolute;top:66px;left:50%;transform:translateX(-50%);width:88px;height:88px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(20,40,60,.08)}
.dash-donut-hole strong{font-family:"Fraunces",Georgia,serif;font-size:26px;line-height:1;color:#122a40}
.dash-donut-hole small{font-size:11px;color:#7a8697}
.dash-legend{list-style:none;margin:18px 0 0;padding:0;width:100%;display:flex;flex-direction:column;gap:10px}
.dash-legend li{display:flex;align-items:center;gap:10px}
.dash-legend .dot{flex:0 0 auto;width:12px;height:12px;border-radius:50%}
.dot-high{background:#b03a2a}.dot-medium{background:#c19a4b}.dot-low{background:#2e5d2a}
.dash-legend li div{flex:1;display:flex;flex-direction:column}
.dash-legend li strong{font-size:13px;color:#122a40}
.dash-legend li small{font-size:11px;color:#7a8697}
.dash-legend li b{font-size:13px;color:#122a40}
@media (max-width:900px){.dash-grid{grid-template-columns:1fr}.dash-kpis{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.dash-hero{padding:24px 20px}.dash-hero h1{font-size:31px}.dash-hero-period{width:100%;text-align:left}.dash-kpi{padding:14px 12px}.dash-kpi strong{font-size:28px}.dash-kpi-icon{width:38px;height:38px;font-size:16px}.dash-trend-bar{min-width:22px}}

/* ===== INPUT TEMUAN PREMIUM (Nov 2026) — kelas fi-* hanya dipakai finding_input.php ===== */
.fi-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;flex-wrap:wrap;padding:34px 34px 30px;border-radius:24px;margin-bottom:20px;color:#fff;background:radial-gradient(560px 300px at 88% -20%,rgba(216,185,111,.30),rgba(216,185,111,0) 62%),radial-gradient(420px 260px at 8% 115%,rgba(23,58,88,.9),rgba(23,58,88,0) 60%),linear-gradient(112deg,#081826 0%,#0e2438 48%,#1a3d5e 100%);border:1px solid rgba(193,154,75,.35);box-shadow:0 26px 50px rgba(8,24,38,.35),inset 0 1px 0 rgba(255,255,255,.12);position:relative;overflow:hidden}
.fi-hero::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,#c19a4b,#f0d896 30%,#c19a4b 65%,transparent)}
.fi-hero-main{min-width:0;flex:1 1 320px}
.fi-hero .eyebrow{color:#ecd08a;font-size:12px}
.fi-hero h1{margin:4px 0 8px;font-size:42px;line-height:1.05;color:#fdf8ec;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.fi-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.fi-hero-actions .btn-light{background:rgba(255,255,255,.92);border-color:rgba(255,255,255,.9);color:#122a40}
.fi-hero-meta{display:flex;flex-direction:column;gap:2px;min-width:170px;padding:14px 20px;border-radius:16px;background:rgba(255,255,255,.09);border:1px solid rgba(236,208,138,.45);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 10px 24px rgba(0,0,0,.25);text-align:right}
.fi-hero-meta span{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#b9c6d4}
.fi-hero-meta strong{font-family:"Fraunces",Georgia,serif;font-size:20px;color:#fdf3da}
.fi-hero-meta small{font-size:12px;color:#b9c6d4}
.fi-warn{border-color:#e8b44a;background:#fff8e6;margin-bottom:16px}
.fi-warn p{margin:0 0 6px}
.fi-warn ul{margin:0;padding-left:18px}
.fi-warn li{font-size:12px}
.fi-panel{padding:28px 30px 110px}
.fi-form{display:flex;flex-direction:column;gap:8px}
.fi-section{padding:24px 0;border-bottom:1px solid var(--line)}
.fi-section:last-of-type{border-bottom:0}
.fi-section-head{display:flex;gap:16px;align-items:flex-start;margin-bottom:20px}
.fi-num{flex:0 0 auto;width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-family:"Fraunces",Georgia,serif;font-size:19px;font-weight:600;color:#8a6a35;background:rgba(193,154,75,.14);border:1px solid rgba(193,154,75,.35)}
.fi-section-head h2{margin:0;font-size:20px;color:#122a40}
.fi-section-head p{margin:4px 0 0;color:#7a8697;font-size:13px;line-height:1.5}
.fi-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}
.fi-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.fi-span-2{grid-column:1/-1}
.fi-label{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#42556a}
.fi-label span{text-transform:none;letter-spacing:0;font-weight:600;color:#8a99aa}
.fi-field input,.fi-field select,.fi-field textarea{width:100%;padding:12px 14px;border:1px solid #d3dde6;border-radius:12px;font:inherit;font-size:14px;color:#172638;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}
.fi-field input:focus,.fi-field select:focus,.fi-field textarea:focus{outline:none;border-color:#c19a4b;box-shadow:0 0 0 3px rgba(193,154,75,.18)}
.fi-field textarea{resize:vertical;line-height:1.6;min-height:88px}
.fi-field textarea[name="description"]{min-height:120px}
.fi-hint{font-size:12px;color:#8a99aa}
.fi-checks{display:flex;flex-direction:column;gap:10px;justify-content:center}
.fi-check{display:flex;gap:12px;align-items:flex-start;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#fbf7ef;cursor:pointer}
.fi-check input{flex:0 0 auto;width:18px;height:18px;margin-top:2px;accent-color:#8a6a35}
.fi-check span{display:flex;flex-direction:column}
.fi-check strong{font-size:13px;color:#122a40}
.fi-check small{font-size:12px;color:#7a8697}
.fi-draft{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:14px}
.fi-draft .btn-primary{min-height:46px;padding:0 28px}
.finding-attachment-composer{margin-top:12px}
.attachment-mode-tabs{display:flex;gap:8px;margin-bottom:12px}
.attachment-mode-btn{padding:8px 14px;border:1px solid #d3dde6;border-radius:999px;background:#fff;cursor:pointer;font-weight:700}
.attachment-mode-btn.is-active{background:#10263b;color:#fff;border-color:#10263b}
.finding-dropzone{display:flex;gap:12px;align-items:center;border:1.5px dashed #b9c6d2;border-radius:14px;padding:18px;cursor:pointer;background:#f8fafc}
.finding-dropzone-text{display:flex;flex-direction:column;gap:2px}
.finding-dropzone-text strong{font-size:14px;color:#122a40}
.finding-dropzone-text small{font-size:12px;color:#8a99aa}
.finding-dropzone input{position:absolute;opacity:0;pointer-events:none}
.finding-attachment-names{display:block;font-size:12px;color:#8a99aa;margin-top:6px}
.finding-link-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin-bottom:10px}
.finding-link-row label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#42556a}
.finding-link-row input{padding:11px 12px;border:1px solid #d3dde6;border-radius:10px;font:inherit;width:100%}
.fi-savebar{position:fixed;left:230px;right:0;bottom:0;z-index:60;background:linear-gradient(112deg,#081826,#0e2438 60%,#1a3d5e);border-top:1px solid rgba(193,154,75,.4);box-shadow:0 -12px 30px rgba(8,24,38,.35);padding:13px 24px;display:flex;gap:12px;align-items:center;justify-content:space-between}
.fi-savebar small{color:#d3dee8;font-size:12px}
.fi-savebar .savebar-actions{display:flex;gap:10px;align-items:center}
.fi-savebar .btn-cancel{padding:12px 18px;border-radius:10px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);color:#fff;font-weight:700;font-size:14px;text-decoration:none}
.fi-savebar .btn-save{padding:12px 26px;border:0;border-radius:10px;background:linear-gradient(180deg,#f0d896,#c19a4b);color:#122a40;font-weight:800;font-size:14px;cursor:pointer}
.fi-savebar .btn-save:hover{filter:brightness(1.06)}
body.sidebar-collapsed .fi-savebar{left:84px}
@media(max-width:900px){.fi-savebar{left:0;padding:12px 14px}.fi-savebar small{display:none}.finding-link-row{grid-template-columns:1fr}}
@media(max-width:640px){.fi-hero{padding:24px 20px}.fi-hero h1{font-size:31px}.fi-hero-meta{width:100%;text-align:left}.fi-panel{padding:20px 16px 110px}.fi-grid{grid-template-columns:1fr}.fi-section-head h2{font-size:18px}.fi-num{width:38px;height:38px;font-size:16px}}

/* ===== MONITORING PREMIUM (Nov 2026) — kelas mon-* hanya dipakai findings.php ===== */
.mon-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;flex-wrap:wrap;padding:34px 34px 30px;border-radius:24px;margin-bottom:20px;color:#fff;background:radial-gradient(560px 300px at 88% -20%,rgba(216,185,111,.30),rgba(216,185,111,0) 62%),radial-gradient(420px 260px at 8% 115%,rgba(23,58,88,.9),rgba(23,58,88,0) 60%),linear-gradient(112deg,#081826 0%,#0e2438 48%,#1a3d5e 100%);border:1px solid rgba(193,154,75,.35);box-shadow:0 26px 50px rgba(8,24,38,.35),inset 0 1px 0 rgba(255,255,255,.12);position:relative;overflow:hidden}
.mon-hero::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,#c19a4b,#f0d896 30%,#c19a4b 65%,transparent)}
.mon-hero-main{min-width:0;flex:1 1 320px}
.mon-hero .eyebrow{color:#ecd08a;font-size:12px}
.mon-hero h1{margin:4px 0 8px;font-size:42px;line-height:1.05;color:#fdf8ec;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.mon-hero p{margin:0;color:#d3dee8;font-size:15px;max-width:640px}
.mon-hero-meta{display:flex;flex-direction:column;gap:2px;min-width:150px;padding:14px 20px;border-radius:16px;background:rgba(255,255,255,.09);border:1px solid rgba(236,208,138,.45);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 10px 24px rgba(0,0,0,.25);text-align:right}
.mon-hero-meta span{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#b9c6d4}
.mon-hero-meta strong{font-family:"Fraunces",Georgia,serif;font-size:22px;color:#fdf3da}
.mon-hero-meta small{font-size:12px;color:#b9c6d4}
.mon-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:20px}
.mon-stat{display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:20px;background:linear-gradient(180deg,#fffdf8,#fbf7ef);border:1px solid var(--line);box-shadow:0 2px 0 rgba(120,90,30,.06),0 14px 30px rgba(20,40,60,.07);position:relative;overflow:hidden;min-width:0}
.mon-stat::before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:linear-gradient(90deg,#c19a4b,#f0d896 55%,#c19a4b)}
.mon-stat.is-alert::before{background:linear-gradient(90deg,#b03a2a,#d97a5e 55%,#b03a2a)}
.mon-stat.is-closed::before{background:linear-gradient(90deg,#2e5d2a,#6fae5f 55%,#2e5d2a)}
.mon-stat-icon{flex:0 0 auto;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-size:17px;font-weight:800;background:rgba(193,154,75,.14);border:1px solid rgba(193,154,75,.35);color:#8a6a35}
.mon-stat.is-alert .mon-stat-icon{background:#fdf1ec;border-color:#e8c9c2;color:#8f2f22}
.mon-stat.is-closed .mon-stat-icon{background:#f1f8f2;border-color:#cfe6d8;color:#2e5d2a}
.mon-stat-label{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6d7c8d;overflow-wrap:break-word}
.mon-stat strong{display:block;font-family:"Fraunces",Georgia,serif;font-size:32px;line-height:1.1;color:#122a40;margin-top:4px}
.mon-panel{padding:22px 24px}
.mon-panel .panel-head{flex-wrap:wrap;gap:10px}
.mon-count{display:inline-flex;padding:6px 12px;border-radius:999px;background:#edf2f6;color:#29435b;font-size:12px;font-weight:700;white-space:nowrap}
.mon-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding:16px;margin:14px 0 20px;border:1px solid var(--line);border-radius:14px;background:#fbf7ef}
.mon-filters input,.mon-filters select{padding:11px 12px;border:1px solid #d3dde6;border-radius:10px;font:inherit;font-size:13px;background:#fff;min-height:44px}
.mon-filters select{appearance:none;padding-right:32px}
.mon-filters .btn{min-height:44px}
.mon-filters .check{display:flex;align-items:center;gap:8px}
.mon-filters .check input{min-height:0}
.mon-table td{vertical-align:top}
.mon-num{font-family:"Fraunces",Georgia,serif;font-size:15px;color:#122a40}
.mon-table .finding-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.5;color:#42556a;margin-top:4px}
.mon-table tbody tr{transition:background .15s ease}
.mon-table tbody tr:hover{background:#fdfaf2}
.mon-table .btn{min-height:40px;white-space:nowrap}
.mon-panel .pagination{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-top:18px}
@media(max-width:1024px){.mon-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.mon-hero{padding:24px 20px}.mon-hero h1{font-size:31px}.mon-hero-meta{width:100%;text-align:left}.mon-panel{padding:18px 16px}.mon-filters input[type=search],.mon-filters select,.mon-filters input[name=branch]{flex:1 1 100%}.mon-filters .btn,.mon-filters .btn-light{flex:1 1 100%;justify-content:center}.mon-table,.mon-table tbody,.mon-table tr,.mon-table td{display:block;width:100%}.mon-table thead{display:none}.mon-table tbody{display:grid;gap:12px}.mon-table tr{background:#fff;border:1px solid #dfe7ee;border-radius:14px;padding:12px 14px;box-shadow:0 4px 14px rgba(23,44,62,.05)}.mon-table td{padding:4px 0;border:0}.mon-table td:nth-child(n+2)::before{display:block;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#8a99aa;margin-bottom:2px}.mon-table td:nth-child(2)::before{content:"Lokasi"}.mon-table td:nth-child(3)::before{content:"Risiko"}.mon-table td:nth-child(4)::before{content:"PIC / Target"}.mon-table td:nth-child(5)::before{content:"Status"}.mon-table td:nth-child(6)::before{content:"Aksi"}.mon-table td:nth-child(6){padding-top:8px}.mon-table td:nth-child(6) .btn{width:100%;justify-content:center}}
