:root{--blue:#153d7d;--blue2:#0d6efd;--light:#f5f8fd;--line:#e6ebf3;--text:#172033;--muted:#6e7a90;--green:#27a56b;--orange:#efa432;--purple:#8256cc;--danger:#cf3b4f;--shadow:0 10px 28px rgba(20,50,95,.08)}
*{box-sizing:border-box}html,body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--light)}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}img{max-width:100%}.muted{color:var(--muted)}
.app-shell{min-height:100vh}.sidebar{position:fixed;left:0;top:0;bottom:0;width:220px;background:linear-gradient(180deg,#173c78 0%,#103468 100%);padding:20px 14px;color:#fff;z-index:20}.brand{display:flex;align-items:center;gap:10px;padding:5px 10px 20px}.brand.brand-full{display:block;padding:0 4px 20px}.brand.brand-full img{display:block;width:100%;height:110px;border-radius:12px;object-fit:contain;object-position:center;background:#07182b;box-shadow:0 8px 22px rgba(0,0,0,.16)}.brand-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#1b976a;font-size:20px}.brand strong{font-size:18px}.side-nav{display:flex;flex-direction:column;gap:6px}.side-nav a{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:8px;color:#dce7f8;font-size:14px}.side-nav a span{width:20px;text-align:center}.side-nav a:hover,.side-nav a.active{background:#2e75e9;color:white}.main{margin-left:220px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:70px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:15}.page-title{font-weight:700}.mobile-app-name{display:none}.topbar-title-wrap{display:flex;align-items:center;gap:10px}.mobile-header-logo{display:none}.top-actions{display:flex;align-items:center;gap:16px}.icon-btn{position:relative;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#f7f9fd}.icon-btn i{position:absolute;right:2px;top:1px;background:var(--danger);color:#fff;font-size:9px;font-style:normal;width:15px;height:15px;display:grid;place-items:center;border-radius:50%}.user-menu{display:flex;align-items:center;gap:8px}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#19243a;color:white;font-weight:700}.user-name{font-weight:700;font-size:13px}.logout-link{font-size:12px;color:var(--muted)}.content{padding:28px;max-width:1450px;margin:0 auto;width:100%;flex:1}.mobile-nav{display:none}
.dashboard-grid{display:grid;grid-template-columns:1.45fr .9fr;gap:20px}.welcome-card{background:#fff;border-radius:14px;padding:24px;box-shadow:var(--shadow);position:relative;overflow:hidden}.welcome-card:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:linear-gradient(135deg,#edf4ff,#fff);right:-50px;top:-60px}.welcome-card h1{font-size:22px;margin:4px 0 10px}.welcome-card p{max-width:360px;font-size:14px;line-height:1.5;color:var(--muted);margin:0}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:14px}.metric{background:#fff;border-radius:14px;padding:18px;box-shadow:var(--shadow);min-height:110px}.metric small{display:block;color:var(--muted);font-size:12px}.metric strong{display:block;margin:6px 0 3px;font-size:22px}.metric .mini{font-size:11px;color:var(--muted)}.metric .metric-icon{float:right;font-size:24px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px}.section-title h2{font-size:15px;margin:0}.section-title a{font-size:12px;color:var(--blue2);font-weight:700}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.quick-card{background:#fff;border:1px solid #edf0f6;border-radius:12px;padding:16px;min-height:125px;box-shadow:0 5px 16px rgba(20,50,95,.04)}.quick-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;margin-bottom:12px;color:white}.quick-card:nth-child(1) .quick-icon{background:var(--green)}.quick-card:nth-child(2) .quick-icon{background:#2f6ecf}.quick-card:nth-child(3) .quick-icon{background:var(--purple)}.quick-card:nth-child(4) .quick-icon{background:var(--orange)}.quick-card strong{display:block;font-size:13px}.quick-card small{display:block;color:var(--muted);margin-top:4px;line-height:1.35}.announcement-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:flex;gap:13px;align-items:flex-start}.announcement-icon{width:38px;height:38px;border-radius:9px;background:#fff5db;display:grid;place-items:center}.announcement-card strong{font-size:13px}.announcement-card p{font-size:12px;color:var(--muted);margin:4px 0 0;line-height:1.4}
.panel{background:#fff;border-radius:14px;box-shadow:var(--shadow);overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line)}.panel-head h2{font-size:16px;margin:0}.panel-body{padding:20px}.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.toolbar .search{min-width:240px;flex:1}.table-wrap{width:100%;overflow:auto}.table{width:100%;border-collapse:collapse;min-width:780px}.table th,.table td{padding:12px 14px;border-bottom:1px solid #edf0f5;text-align:left;font-size:13px;vertical-align:top}.table th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#738097;background:#fafbfe;position:sticky;top:0}.table tr:hover td{background:#fcfdff}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700}.badge.green{background:#e8f7ef;color:#16764c}.badge.red{background:#fdecef;color:#ad2d42}.badge.orange{background:#fff4df;color:#a46a0c}.badge.blue{background:#eaf2ff;color:#255fb9}.badge.gray{background:#eef1f5;color:#667080}.actions{display:flex;gap:6px;flex-wrap:wrap}
.btn{border:0;border-radius:9px;padding:9px 13px;font-weight:700;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn.primary{background:#2675e8;color:white}.btn.secondary{background:#edf3ff;color:#205cb4}.btn.success{background:#e7f7ef;color:#16764c}.btn.danger{background:#fdecef;color:#ad2d42}.btn.light{background:#f2f4f8;color:#47536a}.full-btn{width:100%;padding:11px}.icon-action{width:31px;height:31px;padding:0}
input,select,textarea{width:100%;border:1px solid #dfe5ee;background:white;border-radius:9px;padding:10px 11px;outline:none;color:var(--text)}input:focus,select:focus,textarea:focus{border-color:#74a6f3;box-shadow:0 0 0 3px rgba(51,116,219,.08)}textarea{min-height:90px;resize:vertical}label{display:block;font-size:12px;font-weight:700;color:#4a566d}label input,label select,label textarea{margin-top:6px;font-weight:400}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.form-grid.two{grid-template-columns:repeat(2,1fr)}.form-grid .full{grid-column:1/-1}.form-actions{margin-top:18px;display:flex;justify-content:flex-end;gap:8px}.alert{padding:11px 13px;border-radius:9px;margin-bottom:14px;font-size:13px}.alert.success{background:#e8f7ef;color:#146a45}.alert.danger{background:#fdecef;color:#9f2f43}.alert.warning{background:#fff3da;color:#8b641a}.empty{padding:35px;text-align:center;color:var(--muted);font-size:13px}
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stat-card{background:#fff;border-radius:12px;padding:16px;box-shadow:var(--shadow)}.stat-card small{color:var(--muted);font-size:11px}.stat-card strong{display:block;font-size:20px;margin-top:5px}.stat-card .sub{font-size:11px;color:var(--muted);margin-top:4px}.chart-bars{height:230px;display:flex;align-items:flex-end;gap:18px;padding:20px 10px 8px}.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px}.bar{width:min(42px,80%);background:linear-gradient(180deg,#2a7bf0,#154eae);border-radius:8px 8px 3px 3px;min-height:4px}.bar.out{background:linear-gradient(180deg,#f2756e,#c8384a)}.bar-col small{font-size:10px;color:var(--muted)}
.login-body{min-height:100vh;background:radial-gradient(circle at top left,#e6f0ff,#f7f9fc 45%,#eef3fa);display:flex;align-items:center;justify-content:center;padding:20px}.login-page-wrap{width:100%;display:flex;flex-direction:column;align-items:center;gap:16px}.install-page-wrap{max-width:680px}.login-card,.install-card{width:100%;max-width:430px;background:#fff;border-radius:18px;padding:28px;box-shadow:0 22px 60px rgba(28,59,105,.14)}.install-card{max-width:680px}.brand-login{display:flex;align-items:center;gap:12px;margin-bottom:28px}.brand-login.login-brand-centered{flex-direction:column;justify-content:center;text-align:center;gap:8px;margin-bottom:24px}.brand-login .brand-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#143e7d,#1f7ce5);color:white;font-size:24px}.brand-login b{display:block;font-size:19px}.brand-login span{display:block;font-size:12px;color:var(--muted);margin-top:2px}.login-logo{width:48px;height:48px;object-fit:contain}.login-logo.login-logo-large{width:min(300px,90%);height:180px;border-radius:14px;object-fit:contain;box-shadow:0 10px 26px rgba(11,42,86,.14)}.login-rt-name{font-size:12px!important;color:var(--muted);font-weight:700;letter-spacing:.03em}.login-powered-footer{font-size:12px;color:#78859b;text-align:center}.login-powered-footer a{color:#205fc0;font-weight:800}.powered-footer{padding:14px 24px 18px;text-align:center;font-size:12px;color:#7b879a}.powered-footer a{color:#205fc0;font-weight:800}.login-card h1{font-size:24px;margin:0 0 6px}.login-card form{display:grid;gap:14px;margin-top:22px}.install-card h3{font-size:15px;margin:18px 0 12px}.install-card form>.btn{margin-top:18px}
.modal{position:fixed;inset:0;background:rgba(14,27,48,.45);display:none;align-items:center;justify-content:center;padding:18px;z-index:100}.modal.show{display:flex}.modal-card{background:#fff;border-radius:14px;width:min(760px,100%);max-height:92vh;overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.22)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-bottom:1px solid var(--line)}.modal-head h3{margin:0;font-size:16px}.modal-close{border:0;background:#f1f4f8;width:30px;height:30px;border-radius:8px}.modal-body{padding:20px}
@media(max-width:980px){.dashboard-grid{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(2,1fr)}.stats-row{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){body{padding-bottom:66px}.sidebar{display:none}.main{margin-left:0}.topbar{height:58px;padding:0 16px}.page-title{display:none}.mobile-app-name{display:none}.mobile-header-logo{display:block;width:86px;height:42px;object-fit:contain;border-radius:8px}.top-actions{gap:8px}.user-name,.logout-link{display:none}.content{padding:14px 13px 18px}.mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;height:62px;background:#fff;border-top:1px solid var(--line);z-index:30;padding-bottom:env(safe-area-inset-bottom)}.mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#657187;gap:2px}.mobile-nav a.active{color:#205fc0}.mobile-nav span{font-size:18px}.mobile-nav small{font-size:9px}.mobile-nav .mobile-plus{position:relative}.mobile-nav .mobile-plus span{width:42px;height:42px;border-radius:50%;background:#1969de;color:#fff;display:grid;place-items:center;font-size:25px;box-shadow:0 7px 18px rgba(25,105,222,.28);margin-top:-20px}.welcome-card{padding:18px}.welcome-card h1{font-size:19px}.metrics{gap:9px}.metric{padding:14px;min-height:98px}.metric strong{font-size:18px}.quick-grid{grid-template-columns:repeat(4,1fr);gap:7px}.quick-card{padding:11px 7px;min-height:112px;text-align:center}.quick-icon{margin:0 auto 8px;width:34px;height:34px}.quick-card strong{font-size:10px}.quick-card small{font-size:9px}.section-title{margin-top:18px}.panel-head{padding:14px;align-items:flex-start}.panel-body{padding:14px}.form-grid,.form-grid.two{grid-template-columns:1fr}.stats-row{grid-template-columns:repeat(2,1fr);gap:9px}.toolbar{width:100%}.toolbar .search{min-width:0;width:100%}.btn{padding:9px 11px}.chart-bars{gap:8px}.modal{align-items:flex-end;padding:0}.modal-card{border-radius:18px 18px 0 0;max-height:92vh}.powered-footer{padding:10px 14px 16px;font-size:11px}.login-logo.login-logo-large{height:160px;width:min(270px,92%)}}
/* Excel import/export - Data Warga */
.head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.excel-info{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#f4f8ff;border:1px solid #dce8fb;border-radius:11px;padding:12px 14px;margin-bottom:14px}.excel-info>div{display:flex;flex-direction:column;gap:3px}.excel-info b{font-size:12px;color:#173c78}.excel-info span{font-size:11px;color:#6c7890;line-height:1.45}.import-modal-card{max-width:620px}.import-guide{display:grid;gap:6px;padding:12px 14px;background:#f5f8fd;border:1px solid #e1e8f3;border-radius:10px;margin-bottom:14px}.import-guide b{font-size:13px;color:#173c78}.import-guide span{font-size:12px;color:#69768b;line-height:1.45}.file-drop{display:flex!important;flex-direction:column;gap:8px;border:1.5px dashed #b7c7df;background:#fbfcff;border-radius:12px;padding:18px;font-weight:800;color:#33425b}.file-drop input[type=file]{width:100%;padding:10px;background:#fff;border:1px solid #dfe5ee;border-radius:9px}.file-drop small{font-size:11px;font-weight:500;color:#7a879a;line-height:1.5}
@media(max-width:760px){.panel-head .head-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.panel-head .head-actions .btn:last-child{grid-column:1/-1}.excel-info{align-items:flex-start;flex-direction:column}.excel-info .btn{width:100%}.import-modal-card{max-width:none}}
