:root{--navy:#12233b;--blue:#225dca;--line:#dce4ef;--bg:#f6f8fc;--muted:#65748a;--white:#fff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--navy);font:15px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}a{color:#1c54ab;text-decoration:none}a:hover{text-decoration:underline}.wrap{max-width:1160px;margin:auto;padding:0 24px}.topbar{background:white;border-bottom:1px solid var(--line)}.nav{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:15px}.brand{font-weight:850;letter-spacing:.02em;color:var(--navy);display:flex;align-items:center;gap:10px}.mark{background:#2058af;color:white;padding:5px 10px;border-radius:9px;font-size:24px}.nav nav{display:flex;gap:24px;align-items:center;flex-wrap:wrap}.nav nav a{font-size:14px;font-weight:600}.nav .login-nav{background:#eaf1fc;padding:9px 15px;border-radius:9px}.inline{display:inline}.navlink{border:0;background:none;color:#1c54ab;cursor:pointer;font-weight:600;font-size:14px}main.wrap{min-height:calc(100vh - 160px);padding-top:32px;padding-bottom:80px}.hero{background:linear-gradient(115deg,#15335e,#235fbd);border-radius:22px;color:white;display:grid;grid-template-columns:1.4fr .7fr;align-items:center;min-height:350px;padding:55px 58px;overflow:hidden}.hero h1{font-size:43px;line-height:1.16;max-width:550px;margin:12px 0}.hero p{max-width:560px;color:#e1eafa;margin-bottom:28px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.14em;color:#548bd9}.hero .eyebrow{color:#c8dffa}.btn{display:inline-flex;justify-content:center;align-items:center;padding:11px 18px;background:#2263cc;border-radius:9px;border:1px solid #2263cc;color:white;font-weight:750;font:inherit;cursor:pointer;white-space:nowrap}.btn:hover{background:#164fae;text-decoration:none}.hero .btn{background:white;border-color:white;color:#1d4f9a}.btn.outline{color:#1e56ac;background:white;border:1px solid #c9daf6}.btn.outline:hover{background:#edf3ff}.heroart{position:relative;height:220px;display:flex;align-items:end;gap:15px;padding:45px 20px}.bar{width:38px;border-radius:7px 7px 0 0;background:#94b9fa;opacity:.7}.b1{height:100px}.b2{height:140px}.b3{height:80px}.b4{height:180px}.heroicon{position:absolute;right:14px;top:0;font-size:80px;color:#d5e7ff}.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:34px 0 20px}.section-title h1,.section-title h2{margin:3px 0;font-size:29px}.section-title p,.section-title span:last-child{margin:5px 0;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 24px rgba(20,40,70,.025);padding:25px}.linkcard{display:block;color:inherit;transition:transform .15s,box-shadow .15s}.linkcard:hover{text-decoration:none;transform:translateY(-2px);box-shadow:0 8px 25px rgba(30,60,100,.09)}.card h3{margin:9px 0;font-size:19px}.card p{color:var(--muted)}.ic{font-size:30px;color:#1d5dbb;background:#edf4fe;border-radius:12px;padding:8px 15px}.cardbottom{display:flex;gap:8px;align-items:center;border-top:1px solid var(--line);padding-top:16px;margin-top:22px}.cardbottom strong{font-size:27px}.cardbottom span{color:var(--muted)}.cardbottom b{margin-left:auto;color:#2563c5}.softlink{font-weight:750;color:#235bc2}.auth{max-width:480px;margin:70px auto}.auth h1{font-size:28px}.auth p{color:var(--muted)}label{display:block;font-weight:700;font-size:14px;margin:17px 0}input:not([type=checkbox]):not([type=file]),select{display:block;margin-top:7px;padding:11px 12px;width:100%;border:1px solid #cbd7e6;border-radius:9px;background:white;font:inherit;color:var(--navy);min-width:0}input[type=file]{display:block;margin:15px 0;max-width:100%}input:focus,select:focus{outline:2px solid #aac9fb;border-color:#2a68c7}.wide{width:100%;margin-top:14px}.alert{border-radius:10px;padding:13px 18px;margin:0 0 18px}.good{background:#e8f8ef;color:#155b39}.bad{background:#fdeced;color:#8c2932}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 22px}.tab{padding:9px 15px;background:#fff;border:1px solid var(--line);border-radius:9px;color:#52647f;font-weight:650}.tab.selected{background:#e7f0ff;color:#1d56b1;border-color:#91b7f4}.toolbar,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.toolbar{margin:15px 0 20px}.dual{display:grid;grid-template-columns:1fr 1fr;gap:19px;margin-bottom:21px}.compact{padding:20px}.compact h3{margin:0 0 8px}.compact p{font-size:13px}.tablecard{padding:0;overflow:hidden}.search{padding:20px;display:flex;gap:10px;border-bottom:1px solid var(--line)}.search input{margin:0!important;max-width:430px}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;border-bottom:1px solid #edf0f6;padding:13px 17px;vertical-align:top;min-width:80px;overflow-wrap:anywhere}th{background:#f5f8fe;color:#4f607a;white-space:nowrap}tr:last-child td{border:0}.empty{padding:45px 25px;text-align:center;color:var(--muted)}.cellactions{display:flex;align-items:center;gap:13px}.cellactions a{font-weight:750}.dangerlink{border:0;background:transparent;color:#b72c36;cursor:pointer;font:inherit;padding:0}.formcard{max-width:720px}.formcard label{margin:18px 0}.formcard .actions{margin-top:20px}.pagination{display:flex;gap:6px;margin-top:20px}fieldset{border:1px solid var(--line);border-radius:9px;margin:17px 0}legend{font-weight:750}.check{display:flex;align-items:center;gap:9px;margin:10px 0}.check input{width:17px;height:17px}.install{max-width:640px;margin:30px auto}.install h3{margin-top:30px;padding-top:18px;border-top:1px solid var(--line)}.muted{font-size:13px!important;color:var(--muted)}.footer{text-align:center;padding:28px;color:var(--muted);background:white;border-top:1px solid var(--line)}@media(max-width:760px){.nav{padding:16px 0;align-items:start;flex-direction:column}.nav nav{gap:13px}.wrap{padding:0 15px}.hero{padding:32px 24px;grid-template-columns:1fr;min-height:auto}.hero h1{font-size:32px}.heroart{display:none}.cards,.dual{grid-template-columns:1fr}.section-title{align-items:start;flex-direction:column}.section-title h1,.section-title h2{font-size:25px}.search{flex-wrap:wrap}.auth{margin:25px auto}.card{padding:18px}.tablecard{padding:0}.tabs .tab{font-size:13px}}

/* Dashboard statistik ASN */
.analytics{margin:32px 0 26px}.analytics-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.analytics-heading h2{margin:4px 0;font-size:24px}.analytics-heading p{color:var(--muted);margin:4px 0}.stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.stat-panel{min-width:0;padding:21px}.stat-header{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:18px}.stat-header h3{font-size:17px;line-height:1.3;margin:0}.stat-total{white-space:nowrap;background:#edf3fb;border-radius:8px;color:#315d9b;font-size:12px;font-weight:750;padding:4px 8px}.stat-bars{max-height:350px;overflow-y:auto;padding-right:7px}.stat-item{margin:0 0 14px}.stat-line{display:flex;justify-content:space-between;gap:10px;font-size:13px;line-height:1.45}.stat-line span{min-width:0;overflow-wrap:break-word}.stat-line strong{white-space:nowrap;font-variant-numeric:tabular-nums}.stat-line small{font-weight:500;color:var(--muted)}.stat-track{height:10px;background:#e8eff8;border-radius:99px;overflow:hidden;margin-top:5px}.stat-fill{height:100%;background:linear-gradient(90deg,#2967c9,#55a9eb);border-radius:99px;min-width:2px}.stat-hint{font-size:12px;margin:14px 0 0;color:#6c778b}.stat-empty{font-size:14px;color:var(--muted)}.tablewrap table{width:max-content;min-width:100%;table-layout:auto}.tablewrap th,.tablewrap td{min-width:125px;max-width:280px;white-space:normal;overflow-wrap:normal;word-break:normal}.tablewrap th{white-space:nowrap}.tablewrap td{vertical-align:top}.tablewrap td:nth-child(1),.tablewrap th:nth-child(1){min-width:60px}.tablewrap{max-width:100%;overflow-x:auto;overflow-y:visible}
@media(max-width:760px){.stat-grid{grid-template-columns:1fr}.analytics-heading{align-items:flex-start;flex-direction:column}.stat-panel{padding:18px}}

/* Dashboard grafik SVG tidak bergantung pada CSS untuk menggambar batang. */
.stat-item svg{display:block;width:100%;margin-top:7px;min-height:18px}.stat-panel{background:#fff}.stat-grid{align-items:start}

/* Hak akses dan visualisasi grup ASN */
.stat-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:12px;font-weight:700;color:#475569;margin:-6px 0 14px}.stat-legend span{display:inline-flex;align-items:center;gap:7px}.stat-legend i{display:inline-block;width:11px;height:11px;border-radius:4px}.stat-subgroup{border-top:1px solid #e7ebf2;margin-top:12px;padding-top:12px}.stat-subgroup h4{margin:0 0 12px;font-size:15px;color:#1e293b;display:flex;justify-content:space-between;align-items:center;gap:10px}.stat-subgroup h4 span{font-size:12px;color:#64748b;font-weight:600}.stat-subgroup .stat-bars{max-height:260px}.stat-item svg rect{transition:width .2s ease}.stat-panel:nth-child(5n+1){border-top:3px solid #2563eb}.stat-panel:nth-child(5n+2){border-top:3px solid #12a89d}.stat-panel:nth-child(5n+3){border-top:3px solid #e76f51}.stat-panel:nth-child(5n+4){border-top:3px solid #8b5cf6}.stat-panel:nth-child(5n){border-top:3px solid #d9468d}

/* Restore management controls above analytics; keep navigation visible */
.manage-intro{background:#fff;border:1px solid #cadcf7;border-left:5px solid #2563eb;border-radius:16px;padding:22px;margin:20px 0 18px;display:flex;justify-content:space-between;align-items:center;gap:22px;flex-wrap:wrap}
.manage-intro h2{margin:5px 0;font-size:23px}.manage-intro p{color:#61738a;margin:7px 0;max-width:690px}
#kelola-data,#tabel-data,#diagram-statistik{scroll-margin-top:24px}
.analytics{margin-top:40px}
.tablecard{margin-bottom:18px}
@media(max-width:760px){.manage-intro{padding:17px}.manage-intro h2{font-size:20px}}

/* PATCH 9 diagram: nav tampil di atas + grid tiga kolom, setiap kartu dapat discroll sendiri. */
.stat-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 18px}
.stat-nav-item{min-height:80px;display:flex;flex-direction:column;justify-content:space-between;gap:5px;background:#fff;border:1px solid #d6e2f4;border-left:4px solid #2563eb;border-radius:11px;padding:11px 13px;color:#162843;box-shadow:0 3px 14px rgba(25,47,95,.025)}
.stat-nav-item:hover{background:#edf5ff;text-decoration:none;border-color:#8ab3ee}
.stat-nav-item:nth-child(5n+2){border-left-color:#0d9488}.stat-nav-item:nth-child(5n+3){border-left-color:#ea580c}.stat-nav-item:nth-child(5n+4){border-left-color:#9333ea}.stat-nav-item:nth-child(5n+5){border-left-color:#db2777}
.stat-nav-title{font-size:13px;font-weight:780;line-height:1.25}.stat-nav-meta{font-size:12px;color:#52698c;font-weight:650}
.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.stat-panel{min-width:0;height:390px;overflow:auto;scrollbar-width:thin;padding:18px}
.stat-panel .stat-bars,.stat-subgroup .stat-bars{max-height:none;overflow:visible}
.stat-panel .stat-header{position:sticky;top:-18px;z-index:1;background:white;margin:-18px -18px 13px;padding:18px 18px 11px;border-radius:16px 16px 0 0;border-bottom:1px solid #edf1f8}
.stat-panel .stat-header h3{font-size:15px}
.stat-line strong{font-size:12px}
.stat-panel,.stat-nav-item{scroll-margin-top:18px}
@media(max-width:980px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:660px){.stat-grid,.stat-nav{grid-template-columns:1fr}.stat-panel{height:360px}.stat-nav-item{min-height:60px}}
