:root{--navy:#0b2545;--blue:#1769e0;--cyan:#23a6d5;--green:#13a56b;--bg:#f3f6fb;--text:#17324d;--muted:#6f7f91;--line:#e6ebf2;--shadow:0 10px 30px rgba(34,58,92,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,Segoe UI,Arial,sans-serif}.app-shell{display:flex;min-height:100vh}.sidebar{width:270px;background:linear-gradient(180deg,#081d35,#0b2b4c);color:#fff;position:fixed;inset:0 auto 0 0;padding:24px 18px;overflow-y:auto;z-index:1000}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 22px;border-bottom:1px solid rgba(255,255,255,.12)}.brand img{width:50px;height:50px;object-fit:contain}.brand strong{font-size:24px;display:block}.brand small,.user-panel small{display:block;color:#b8c7d7;font-size:12px}.user-panel{display:flex;gap:11px;align-items:center;padding:22px 8px}.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#2d8cff,#22c68a);font-weight:800}.user-panel strong{display:block;font-size:14px}.menu{display:flex;flex-direction:column;gap:5px}.menu a{color:#d6e1ed;text-decoration:none;padding:11px 13px;border-radius:10px;display:flex;align-items:center;gap:12px;font-size:14px}.menu a:hover,.menu a.active{background:linear-gradient(90deg,#1769e0,#2a7fea);color:#fff;box-shadow:0 7px 20px rgba(23,105,224,.25)}.menu i{font-size:17px;width:20px}.menu-label{font-size:10px;letter-spacing:1.4px;color:#7790a9;padding:20px 12px 7px}.main{margin-left:270px;min-width:0;flex:1}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;position:sticky;top:0;z-index:500}.status-dot{width:11px;height:11px;background:#1cc88a;border-radius:50%;box-shadow:0 0 0 5px rgba(28,200,138,.12)}.content{padding:30px;max-width:1650px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:26px}.page-head h1{font-size:30px;font-weight:800;margin:0 0 5px}.page-head p{color:var(--muted);margin:0}.btn{border-radius:10px;font-weight:600}.btn-primary{background:var(--blue);border-color:var(--blue)}.panel{background:#fff;border:1px solid #edf0f5;border-radius:18px;padding:22px;box-shadow:var(--shadow)}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.panel-head h5{margin:0;font-weight:750}.panel-head a{text-decoration:none}.stat-card{height:130px;background:#fff;border-radius:18px;padding:22px;box-shadow:var(--shadow);display:flex;align-items:center;gap:18px;position:relative;overflow:hidden}.stat-card:after{content:"";position:absolute;width:90px;height:90px;border-radius:50%;right:-32px;top:-32px;background:currentColor;opacity:.08}.stat-card .stat-icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;font-size:23px;background:currentColor}.stat-card .stat-icon i{color:#fff}.stat-card span,.stat-card small{display:block;color:var(--muted)}.stat-card strong{display:block;font-size:30px;line-height:1.1;margin:4px 0;color:var(--text)}.stat-card.blue{color:#2d7ff9}.stat-card.orange{color:#f5a623}.stat-card.green{color:#18b77a}.stat-card.purple{color:#8b5cf6}.table{margin:0}.table>:not(caption)>*>*{padding:14px 12px;border-color:var(--line)}.table thead th{color:#627386;font-size:12px;text-transform:uppercase;letter-spacing:.4px;background:#f8fafc}.code{font-family:Consolas,monospace;background:#eef4ff;color:#1769e0;padding:5px 8px;border-radius:7px;font-size:12px}.badge-status{display:inline-flex;padding:6px 10px;border-radius:50px;background:#eef2f7;color:#536579;font-size:12px;font-weight:700}.badge-status.selesai,.badge-status.tervalidasi{background:#e3f8ee;color:#098650}.badge-status.draft,.badge-status.berlangsung{background:#fff2d8;color:#a86600}.badge-status.ditugaskan{background:#e8f1ff;color:#1769e0}.empty{text-align:center;padding:35px!important;color:#8998a9}.finding-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px}.finding-summary>div{background:#f8fafc;border-radius:14px;padding:18px}.finding-summary span{display:block;color:var(--muted);font-size:13px}.finding-summary strong{font-size:28px}.rank-row{display:grid;grid-template-columns:110px 1fr 38px;align-items:center;gap:12px;margin:17px 0;font-size:13px}.rank-row .progress{height:8px}.form-panel{max-width:1100px}.form-panel label,.panel label{font-weight:650;margin-bottom:7px}.form-control,.form-select{border-radius:10px;border-color:#dce3ec;padding:.72rem .85rem}.form-control:focus,.form-select:focus{border-color:#73a7f1;box-shadow:0 0 0 .2rem rgba(23,105,224,.12)}.form-actions{border-top:1px solid var(--line);margin-top:28px;padding-top:20px;display:flex;justify-content:flex-end;gap:10px}.scenario-box{background:linear-gradient(100deg,#eaf3ff,#eefcf7);border:1px solid #dcecff;border-radius:16px;padding:18px 22px;display:flex;gap:15px;margin-bottom:20px}.scenario-box i{font-size:30px;color:var(--blue)}.scenario-box p{margin:5px 0 0;color:#56697c}.audit-steps{display:grid;grid-template-columns:repeat(6,1fr);background:#fff;border-radius:16px;padding:12px;box-shadow:var(--shadow);margin-bottom:20px;gap:8px}.step{border:0;background:transparent;color:#708194;padding:10px;border-radius:10px;font-size:12px}.step span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#edf1f6;margin:0 auto 5px;font-weight:800}.step.active{background:#eef5ff;color:#1769e0;font-weight:700}.step.active span{background:#1769e0;color:white}.audit-section{display:none}.audit-section.active{display:block}.section-title{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:22px}.section-title>span{width:42px;height:42px;border-radius:12px;background:#1769e0;color:#fff;display:grid;place-items:center;font-weight:800}.section-title h5,.section-title p{margin:0}.section-title p{color:var(--muted);font-size:13px;margin-top:3px}.test-table td{vertical-align:middle}.rating-group{border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:18px}.rating-head{display:flex;justify-content:space-between;background:#edf5ff;padding:13px 16px}.rating-head h6{margin:0;color:#185ba9}.rating-row{display:grid;grid-template-columns:1fr 350px;align-items:center;padding:13px 16px;border-top:1px solid var(--line)}.rating-options{display:flex;justify-content:flex-end;gap:12px}.rating-options label{margin:0}.rating-options input{display:none}.rating-options span{width:36px;height:36px;border:1px solid #dce3ec;border-radius:50%;display:grid;place-items:center;cursor:pointer}.rating-options input:checked+span{background:#1769e0;color:#fff;border-color:#1769e0;box-shadow:0 4px 12px rgba(23,105,224,.3)}.evidence-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.upload-card{height:155px;border:2px dashed #cdd9e7;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;background:#fbfdff}.upload-card:hover{border-color:#1769e0;background:#f3f8ff}.upload-card i{font-size:30px;color:#1769e0}.upload-card small{color:#8190a0}.upload-card input{display:none}.filename{font-size:11px;color:#13a56b;margin-top:6px;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.evidence-existing{display:flex;flex-wrap:wrap;gap:10px}.evidence-existing a{background:#eef5ff;padding:8px 12px;border-radius:8px;text-decoration:none}.summary-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.summary-preview>div{background:#f8fafc;border-radius:14px;padding:20px}.summary-preview span{display:block;color:var(--muted);font-size:13px}.summary-preview strong{font-size:26px}.confirm-box{display:flex;gap:10px;background:#fff7e8;padding:16px;border-radius:12px;margin-top:20px}.sticky-actions{position:sticky;bottom:12px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border:1px solid var(--line);border-radius:14px;padding:12px 15px;margin-top:18px;display:flex;z-index:100;box-shadow:0 10px 30px rgba(30,48,72,.15)}.score-hero{background:linear-gradient(120deg,#0e4ea4,#18a77a);color:#fff;border-radius:20px;padding:28px;display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.score-hero>div:first-child span,.score-hero em{display:block}.score-hero>div:first-child strong{font-size:58px}.score-hero em{font-style:normal;font-weight:700}.score-parts{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.score-parts span,.score-parts b{display:block}.score-parts span{opacity:.8;font-size:12px}.score-parts b{font-size:18px;margin-top:5px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-grid span,.detail-grid strong{display:block}.detail-grid span{color:var(--muted);font-size:12px}.result{padding:5px 9px;border-radius:20px;font-size:11px;font-weight:700}.result-berhasil{background:#e4f8ef;color:#098650}.result-gagal{background:#ffe6e6;color:#c63737}.result-tidak-diuji{background:#eef1f4;color:#6b7885}.evidence-list a{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:10px;text-decoration:none;margin-bottom:9px}.evidence-list i:first-child{font-size:25px}.evidence-list small{display:block;color:var(--muted)}.finding-card{border-left:4px solid #f5a623;background:#f9fafc;padding:14px;border-radius:8px;margin-bottom:12px}.finding-card strong{display:block;margin:7px 0}.finding-card p{color:#607184}.severity{padding:4px 8px;border-radius:20px;font-size:11px;font-weight:700;background:#edf1f5}.severity.kritis{background:#fde4e4;color:#c52b2b}.severity.tinggi{background:#ffead7;color:#b45d00}.severity.sedang{background:#fff3cd;color:#8a6700}.severity.rendah{background:#e7f3ff;color:#1769e0}.severity.observasi{background:#e8f8f0;color:#0c8753}.category{padding:5px 9px;border-radius:20px;background:#eef2f7;font-size:12px}.login-body{min-height:100vh;background:radial-gradient(circle at 15% 20%,#2b8cff 0,transparent 30%),radial-gradient(circle at 80% 80%,#1acb8b 0,transparent 28%),#071b32;display:grid;place-items:center;padding:25px}.login-card{width:min(980px,100%);display:grid;grid-template-columns:1.1fr .9fr;background:#fff;border-radius:28px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.35)}.login-visual{background:linear-gradient(145deg,#0b2d50,#0d5e8b);color:#fff;padding:55px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.login-visual img{width:290px;height:290px;object-fit:contain}.login-visual h1{font-size:48px;font-weight:800}.login-visual p{max-width:380px;color:#d7ecf7}.login-form{padding:60px}.login-form h2{font-weight:800}.demo-box{background:#f4f7fb;border-radius:12px;padding:14px;margin-top:24px;font-size:13px;color:#627386}@media(max-width:992px){.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.show{transform:none}.main{margin-left:0}.content{padding:20px}.audit-steps{grid-template-columns:repeat(3,1fr)}.evidence-grid{grid-template-columns:repeat(2,1fr)}.summary-preview{grid-template-columns:repeat(2,1fr)}.login-card{grid-template-columns:1fr}.login-visual{display:none}}@media(max-width:700px){.page-head{flex-direction:column}.rating-row{grid-template-columns:1fr}.rating-options{justify-content:flex-start;margin-top:10px}.evidence-grid,.summary-preview,.detail-grid{grid-template-columns:1fr}.score-hero{display:block}.score-parts{margin-top:20px;grid-template-columns:1fr}.audit-steps{grid-template-columns:repeat(2,1fr)}.login-form{padding:32px}.content{padding:14px}}
@media print{.sidebar,.topbar,.page-head .btn,.sticky-actions,.btn,.menu{display:none!important}.main{margin:0}.content{padding:0}.panel{box-shadow:none}.score-hero{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.captcha-box{background:#f3f7ff;border:1px solid #d7e3f5;border-radius:14px;padding:16px}.captcha-box strong{font-size:1.15rem;color:#0b4f9c;letter-spacing:1px}.table .btn-sm{margin:2px 0}

/* UI refinement v1.3 */
.modern-form{padding:0;overflow:hidden}.sticky-form{position:sticky;top:86px}.form-card-head{display:flex;gap:14px;align-items:center;padding:22px 22px 18px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f8fbff,#f4fbf8);margin-bottom:20px}.form-card-head h5,.form-card-head p{margin:0}.form-card-head p{font-size:13px;color:var(--muted);margin-top:3px}.form-icon{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#1769e0,#31a6ff);display:grid;place-items:center;color:#fff;font-size:21px;box-shadow:0 8px 18px rgba(23,105,224,.22)}.modern-form>.field-group,.modern-form>.row,.modern-form>button{margin-left:22px;margin-right:22px}.modern-form>button{width:calc(100% - 44px)!important;margin-bottom:22px}.field-group{margin-bottom:18px}.field-group label{display:block;font-size:13px;color:#405166}.field-group label span{color:#dc3545}.input-icon{position:relative}.input-icon>i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#8a99aa;z-index:2}.input-icon .form-control{padding-left:42px}.modern-form .form-control,.modern-form .form-select{background:#fbfcfe;border:1px solid #dce4ee;min-height:46px}.modern-form textarea.form-control{min-height:auto}.data-panel{padding:0;overflow:hidden}.data-toolbar{padding:18px 20px;border-bottom:1px solid var(--line);background:#fbfcfe}.search-box{display:flex;gap:9px;align-items:center}.search-box>i{color:#8190a0}.search-box input{flex:1;border:0;background:transparent;outline:0;min-width:160px}.search-box select{border:1px solid #dce3ec;border-radius:9px;padding:8px 10px;background:#fff}.modern-table thead th{background:#f6f8fb;padding:13px 16px}.modern-table tbody td{padding:15px 16px}.modern-table tbody tr{transition:.18s}.modern-table tbody tr:hover{background:#fbfdff}.entity-cell{display:flex;align-items:center;gap:12px;min-width:220px}.entity-cell strong,.entity-cell small{display:block}.entity-cell small{color:var(--muted);margin-top:3px}.entity-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:grid;place-items:center;background:#e9f2ff;color:#1769e0;font-weight:800}.entity-avatar.service{background:#e8f8f1;color:#0d8c59}.entity-avatar.user{background:#f1ebff;color:#7b4fd1}.count-pill,.role-pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:20px;background:#edf3fa;color:#466079;font-size:12px;font-weight:700}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:20px;font-size:12px;font-weight:700}.status-pill i{font-size:7px}.status-pill.is-active{background:#e5f8ef;color:#0b8a56}.status-pill.is-inactive{background:#eef1f4;color:#6c7885}.btn-action{width:34px;height:34px;padding:0;display:inline-grid;place-items:center;border:1px solid #dbe4ee;background:#fff;color:#1769e0}.btn-action:hover{background:#eef5ff;color:#1769e0}.btn-action.danger{color:#dc3545}.btn-action.danger:hover{background:#fff0f1}.table-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 20px;border-top:1px solid var(--line);background:#fbfcfe}.table-meta{font-size:13px;color:var(--muted)}.pagination .page-link{border-radius:8px!important;margin:0 2px;border-color:#dce4ee;color:#50657b}.pagination .active .page-link{background:#1769e0;border-color:#1769e0;color:#fff}.score-mini{font-size:20px;color:#1769e0}.modern-modal{border:0;border-radius:18px;overflow:hidden}.modern-modal .modal-header{background:#f7f9fc;border-bottom:1px solid var(--line);padding:20px 24px}.modern-modal .modal-body{padding:24px}.modern-modal .modal-footer{padding:16px 24px;background:#fbfcfe}
@media(max-width:767px){.sticky-form{position:static}.search-box{flex-wrap:wrap}.search-box input{width:calc(100% - 30px);flex:auto}.search-box select{flex:1}.table-footer{flex-direction:column;align-items:flex-start}.pagination{flex-wrap:wrap}.modern-form>.field-group,.modern-form>.row,.modern-form>button{margin-left:16px;margin-right:16px}.modern-form>button{width:calc(100% - 32px)!important}.form-card-head{padding:18px 16px}}

/* Footer & audit period v1.4 */
.main{min-height:100vh;display:flex;flex-direction:column}.content{width:100%}.app-footer{margin-top:auto;padding:20px 30px;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px;color:var(--muted);font-size:13px}.app-footer strong,.app-footer span,.app-footer small{display:block}.app-footer strong{color:var(--text);font-size:15px}.active-period-banner{display:flex;align-items:center;gap:12px;padding:11px 16px;background:linear-gradient(90deg,#edf6ff,#f0fbf6);border:1px solid #dbe9f6;border-radius:14px;margin-bottom:20px}.active-period-banner>i{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#1769e0;color:#fff}.active-period-banner small,.active-period-banner strong{display:block}.active-period-banner small{font-size:11px;color:var(--muted)}.active-period-banner .period-status{margin-left:auto}.period-status{display:inline-flex;padding:6px 10px;border-radius:20px;font-size:11px;font-weight:800}.period-status.aktif{background:#e4f8ef;color:#0b8a56}.period-status.draft{background:#eef3f9;color:#566b80}.period-status.ditutup{background:#fff0df;color:#a95b00}.period-switcher .btn{border:1px solid var(--line);background:#fff}.period-name-value{font-size:16px!important;line-height:1.2}.modal label,.form-panel label{font-weight:700;font-size:13px;margin-bottom:7px;color:#405166}@media(max-width:700px){.app-footer{padding:18px 14px;flex-direction:column;align-items:flex-start}.period-switcher .btn{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.active-period-banner{align-items:flex-start}.active-period-banner .period-status{margin-left:0}}
.sidebar-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
