:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#18334e;background:#f3f6f9;font-size:14px;--teal:#087f8c;--navy:#153b4c;--line:#dfe7ed;--muted:#63798a}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:11px 16px;font-weight:600;transition:background .15s}button:hover{filter:brightness(.96)}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus,select:focus,a:focus-visible{outline:3px solid #66c6cf;outline-offset:2px}input,select{border:1px solid #d2dde5;border-radius:7px;background:white;color:#18334e;min-height:41px;padding:9px 10px;max-width:100%}label{display:block;font-size:12px;font-weight:650;color:#536b7c;margin-bottom:6px}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:680;letter-spacing:-.7px;line-height:1.25}h2{font-size:17px;line-height:1.4}h3{font-size:14px;margin:18px 0 10px}p{color:var(--muted);line-height:1.65}small{line-height:1.6}a{color:inherit}nav button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;color:#c8d9e0;margin:5px 0;padding:14px 13px;font-weight:500}nav button span{font-size:20px;width:22px}nav button.selected{background:#236174;color:white}.sidebar{position:fixed;inset:0 auto 0 0;background:var(--navy);width:243px;padding:30px 19px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;font-size:15px;font-weight:750;letter-spacing:.3px}.brand-mark{display:grid;place-items:center;width:40px;height:43px;color:white;background:#1595a0;border-radius:10px;font-size:25px}.brand>span:last-child{color:white}.brand small{display:block;color:#a9c4cf;font-size:12px;font-weight:450}.nav-label{color:#7ba2af;font-size:10px;letter-spacing:1.1px;margin:43px 12px 13px}.sidebar-bottom{margin-top:auto;padding:18px 10px;color:#bbd0da;font-size:11px}.sidebar-bottom small{display:block;margin-top:9px;color:#7da1b0}.sidebar-bottom button{color:#cde6eb}.status-dot{display:inline-block;background:#5ac3a4;width:7px;height:7px;border-radius:50%;margin-right:6px}.workspace{margin-left:243px}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;font-size:12px}.crumb{color:#77909e}.crumb span{margin:0 13px;color:#b5c3cb}.crumb strong{font-weight:500;color:#324f62}.badge{display:inline-block;background:#edf6f5;color:#33716f;padding:7px 11px;border-radius:20px;font-size:11px;font-weight:650;white-space:nowrap}main{max-width:1510px;padding:32px 36px 20px;margin:auto}.page-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:27px}.page-title p{font-size:13px;margin-top:8px}.eyebrow{font-size:10px;letter-spacing:1.1px;color:#7c929e;margin-bottom:11px;font-weight:650}.primary{background:var(--teal);color:#fff;box-shadow:0 2px 4px #087f8c12}.secondary{background:#fff;border:1px solid #cedce4;color:#285265}.quiet{background:transparent;color:var(--teal);padding:9px 11px;font-size:12px}.danger{color:#a94848}.panel{background:#fff;border:1px solid #e0e8ee;border-radius:13px;box-shadow:0 3px 12px #173a5e03;padding:24px}.empty{padding:58px 20px;text-align:center;margin:20px 0 28px}.empty-icon{background:#e6f3f3;color:#087f8c;width:75px;height:75px;border-radius:23px;margin:0 auto 22px;display:grid;place-items:center;font-size:39px}.empty h2{font-size:23px}.empty p{max-width:540px;margin:12px auto 22px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.empty .actions{justify-content:center;margin-bottom:18px}.empty small{color:#7e909d}.filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:17px 20px;margin-bottom:25px}.filters>div:not(.checks){flex:0 1 155px}.filters>div.grow{flex:1;min-width:200px}.filters select,.filters input{width:100%}.filters .checks{width:100%;display:flex;gap:22px;margin-top:2px}.checks label{display:flex;align-items:center;gap:7px;margin:0;font-size:11px;font-weight:500}.checks input{min-height:initial;width:14px;height:14px;accent-color:var(--teal)}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.kpis article{background:#fff;border:1px solid #e0e8ee;border-radius:12px;padding:22px}.kpis article>span{font-size:12px;color:#5b7283}.kpis strong{display:block;font-size:31px;font-weight:700;margin:14px 0 8px;letter-spacing:-.5px}.kpis small{font-size:10px;color:#7e929f}.dashboard-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:24px}.panel-head{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:24px}.panel-head p{font-size:11px;margin-top:5px}.bars{display:grid;gap:18px}.bar-label{display:flex;justify-content:space-between;font-size:11px;margin-bottom:7px}.bar-label span{color:#5a7181}.bar-track{background:#f0f4f7;height:9px;border-radius:4px;overflow:hidden}.bar-fill{height:100%;background:#288e99;border-radius:4px}.sex-item{display:grid;grid-template-columns:12px 1fr auto;gap:10px;align-items:center;border-bottom:1px solid #edf1f5;padding:20px 0}.sex-dot{width:10px;height:10px;border-radius:50%}.sex-item p{font-size:11px}.sex-item strong{font-size:20px}.sex-item small{display:block;text-align:right;color:#7c909d}.info-note{background:#f2f7fa;border-radius:8px;padding:14px;color:#698090;font-size:11px;line-height:1.7;margin-top:24px}.report{padding:0;overflow:hidden}.report-controls{padding:20px;display:flex;align-items:end;gap:12px;border-bottom:1px solid var(--line);background:#fbfcfd;flex-wrap:wrap}.report-controls .grow{flex:1;min-width:220px}.report-controls select{width:100%}.report .panel-head{padding:22px 22px 0}.table-scroll{overflow:auto;max-height:530px;scrollbar-color:#bbcdd6 transparent}table{border-collapse:separate;border-spacing:0;width:100%;font-size:11px}th,td{padding:12px 16px;border-bottom:1px solid #e8eef2;vertical-align:middle;text-align:right;min-width:100px}th{position:sticky;top:0;background:#eaf1f6;color:#35566b;font-size:10px;z-index:1;white-space:normal;line-height:1.5}th:first-child,td:first-child{text-align:left;min-width:190px}tbody tr:nth-child(even){background:#fafcfd}tr.total td{background:#e5eff4;font-weight:700;position:sticky;bottom:0}td button{padding:5px 7px;background:none;color:#176e7a;font:inherit;font-weight:600;border-radius:4px}td button:hover{background:#e1f0f1;text-decoration:underline}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 20px;border-top:1px solid var(--line);font-size:10px;color:#79909c}.method{font-size:11px;line-height:1.7}.report>.method{padding:0 20px 20px}.custom-controls{display:flex;gap:13px;align-items:end;padding:15px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.custom-controls>div{flex:1;min-width:160px}.custom-controls select{width:100%}.source-row,.history-row{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #e8eef2;padding:17px 0}.source-row h3{margin:0 0 5px;font-size:13px;overflow-wrap:anywhere}.source-row p,.history-row p{font-size:11px}.history{margin-top:24px}.history>p{font-size:12px;margin-top:6px;margin-bottom:15px}#clear-local{margin-top:17px}.drive-card{max-width:850px}.drive-card h2{font-size:25px;margin-bottom:14px}.drive-card>p{max-width:720px}.drive-symbol{width:60px;height:60px;display:grid;place-items:center;background:#e4f3f2;color:#087f8c;font-size:33px;border-radius:17px;margin-bottom:24px}.drive-card ol{padding-left:21px;font-size:13px;line-height:2.4;color:#4f6e80;margin:20px 0 27px}.main-footer{display:flex;justify-content:space-between;gap:15px;color:#8b9eaa;font-size:10px;border-top:1px solid #e0e8ee;padding-top:20px;margin-top:32px}dialog{width:min(620px,calc(100% - 28px));max-height:90vh;border:1px solid #dbe6ed;border-radius:15px;padding:25px;color:#18334e;box-shadow:0 20px 80px #173a5e3b}dialog::backdrop{background:#16384e66;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.icon-button{background:none;font-size:25px;padding:2px 8px;color:#74909e}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}dialog>label{margin-top:17px}dialog>input,dialog>select,dialog #field-wrap select{width:100%}dialog p{font-size:12px}dialog input[type=search]{width:100%;margin:10px 0}.choices{max-height:280px;overflow:auto;margin:12px 0}.choices label{display:flex;align-items:center;gap:10px;font-size:12px;padding:11px;background:#f7fafb;margin:5px 0;border-radius:7px;cursor:pointer}.choices input{accent-color:var(--teal);min-height:0;flex-shrink:0}.choices small{margin-left:auto;font-size:10px}.import-summary{display:flex;gap:15px;padding:15px 0;font-size:12px;color:#4e6f80}.busy{position:fixed;inset:0;background:#14364c88;display:grid;place-items:center;z-index:100}.busy .panel{width:min(440px,calc(100% - 30px));text-align:center;padding:34px}.busy h2{margin:17px 0}.busy p{font-size:11px;margin:12px 0 20px}progress{width:100%;height:10px;accent-color:var(--teal)}.spinner{width:32px;height:32px;border:3px solid #d6e9ec;border-top-color:#087f8c;border-radius:50%;animation:spin 1s linear infinite;margin:auto}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90%;background:#173a5e;color:#fff;border-radius:9px;padding:13px 20px;z-index:110;font-size:12px;box-shadow:0 5px 20px #173a5e33}[hidden]{display:none!important}
@media(max-width:1100px){.sidebar{width:205px;padding:25px 13px}.workspace{margin-left:205px}main{padding:27px 22px}.topbar{padding:0 22px}.kpis{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.brand{font-size:13px}.filters>div.grow{min-width:170px}.report-controls{gap:9px}.report-controls button{font-size:11px}}
@media(max-width:650px){.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;height:70px;padding:5px 8px;background:#153b4c;padding-bottom:env(safe-area-inset-bottom,5px)}.brand,.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;justify-content:space-around}nav button{width:auto;flex:1;display:flex;flex-direction:column;gap:2px;justify-content:center;text-align:center;font-size:9px;margin:0;padding:7px 4px;border-radius:8px}nav button span{font-size:19px}.workspace{margin-left:0;padding-bottom:75px}.topbar{height:54px;padding:0 17px}.crumb{font-size:10px}.crumb span{margin:0 6px}.topbar .badge{font-size:9px;padding:6px 8px;max-width:150px;overflow:hidden;text-overflow:ellipsis}main{padding:23px 15px 15px}.page-title{align-items:start;gap:10px;margin-bottom:21px}h1{font-size:24px}.page-title>button{font-size:10px;padding:10px 11px;white-space:nowrap;margin-top:23px}.eyebrow{font-size:8px;letter-spacing:.7px}.page-title p{font-size:11px}.kpis{gap:10px}.kpis article{padding:15px}.kpis strong{font-size:27px;margin:12px 0 6px}.kpis article>span{font-size:10px}.kpis small{font-size:9px}.filters{padding:14px;gap:10px}.filters>div:not(.checks){flex:1 1 42%;min-width:0}.filters>div.grow{flex-basis:100%;min-width:0}.filters .checks{gap:12px;flex-wrap:wrap}.filters .checks label{font-size:10px}.filters button{font-size:11px}.panel{padding:18px}.report{padding:0}.panel-head{margin-bottom:18px}.panel-head h2{font-size:15px}.panel-head p{font-size:10px}.report-controls{padding:15px}.report-controls .grow{min-width:100%;flex-basis:100%}.report-controls>div:not(.grow){flex:1}.report-controls>button{flex:1;font-size:10px;white-space:nowrap}.table-scroll{max-height:430px}.table-footer{align-items:start;padding:12px 15px;font-size:9px}.table-footer button{font-size:10px}.report>.method{padding:0 15px 15px;font-size:10px}td,th{padding:11px 10px;font-size:10px;min-width:105px}th:first-child,td:first-child{min-width:160px}.empty{padding:35px 17px}.empty h2{font-size:20px}.empty p{font-size:12px}.empty .actions{flex-direction:column}.empty .actions button{width:100%;max-width:280px}.source-row,.history-row{align-items:start;flex-wrap:wrap}.drive-card h2{font-size:22px}.drive-card .actions{display:grid}.drive-card .actions button{width:100%}.main-footer{font-size:9px;flex-direction:column;gap:5px}.custom-controls{padding:12px 15px}.custom-controls>div{min-width:100%}dialog{padding:19px}.dialog-actions button{font-size:11px;flex:1}.choices{max-height:38vh}#toast{bottom:90px;width:max-content;max-width:90%}}

.brand-mark{font-size:15px;letter-spacing:-.7px}

.access-locked>.sidebar,.access-locked>.workspace{display:none!important}.access{min-height:100vh;display:grid;place-items:center;padding:24px;background:#eaf1f6}.access-card{width:min(440px,100%);padding:32px}.access-card h1{font-size:24px;margin:18px 0 10px}.access-card>p{font-size:13px;margin-bottom:22px}.access-logo{display:inline-grid;place-items:center;width:60px;height:60px;background:#087f8c;color:white;font-weight:700;font-size:24px;border-radius:14px}.access-card input,dialog form>input,dialog form>select,dialog form>div>input{width:100%}.access-card label,dialog form label{margin-top:14px}.access-card form>button{width:100%;margin:14px 0}.form-error{color:#a92e39;font-size:12px;min-height:18px;margin-top:12px}#account-name{font-size:11px;color:#d4e3e9;line-height:1.6}#users-dialog{width:min(850px,calc(100% - 28px))}.user-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #dbe6ed;flex-wrap:wrap}.user-row>div{flex:1;min-width:190px}.user-row p{margin-top:5px}.user-row button{font-size:11px}.sidebar-bottom .quiet{display:block;margin-top:4px;color:#d4e3e9}.sidebar-bottom p{margin-bottom:8px}

.update-banner{position:fixed;top:0;left:0;right:0;z-index:250;background:#173a5e;color:white;display:flex;justify-content:center;align-items:center;gap:16px;padding:12px;font-size:13px;flex-wrap:wrap}.update-banner button{background:#fff;color:#173a5e;border-radius:7px;padding:10px;font-weight:700}

.sidebar-bottom .author-credit{margin-top:18px;padding-top:12px;border-top:1px solid #ffffff20;color:#bbd0da;font-size:11px;line-height:1.6}.author-credit span{color:#e2edf1}

#activity-dialog{width:min(1250px,calc(100% - 28px));max-height:92vh;overflow:auto}.activity-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.activity-filters>div{flex:1 1 160px}.activity-filters select,.activity-filters input{width:100%}.activity-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.activity-totals>div{padding:16px;border-radius:10px;background:#edf6f5}.activity-totals span{display:block;font-size:12px;color:#536b7c}.activity-totals strong{display:block;margin-top:8px;font-size:25px}.activity-scroll{overflow:auto;max-height:320px;border:1px solid #dfe7ed;border-radius:8px}.activity-history{max-height:380px}.activity-scroll table{width:100%}.activity-scroll td,.activity-scroll th{white-space:normal;min-width:130px;max-width:340px;vertical-align:top;font-size:12px}.activity-scroll th{position:sticky;top:0}.activity-scroll td:last-child{min-width:260px;overflow-wrap:anywhere}.activity-scroll .quiet{padding:0;text-align:left}.activity-note{font-size:11px;margin-top:12px}#activity-status{font-size:12px;margin:12px 0}@media(max-width:650px){.activity-filters>div{flex:1 1 44%}.activity-totals{gap:7px}.activity-totals>div{padding:10px}.activity-totals strong{font-size:21px}.activity-totals span{font-size:10px}}

/* Selection-aware overview */
.dashboard{--teal:#0d9297;--ink:#173952}.summary-hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,#123e56 0%,#146477 70%,#0d9297);color:white;border-radius:18px;padding:30px 34px;display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:24px;box-shadow:0 12px 32px #183a5e15}.summary-eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#a6e2e4}.summary-hero h2{font-size:30px;font-weight:650;margin:10px 0;color:white}.summary-hero p{color:#d1e9ed;max-width:640px;line-height:1.7;font-size:13px}.summary-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.summary-chips span{font-size:10px;color:#e2f6f7;background:#ffffff14;border:1px solid #ffffff20;border-radius:30px;padding:7px 11px}.hero-quantity{position:relative;z-index:1;min-width:235px;border-left:1px solid #ffffff35;padding-left:32px}.hero-quantity>span{display:block;color:#d4edef;font-size:12px}.hero-quantity strong{display:block;font-size:46px;line-height:1.25;letter-spacing:-1.5px;margin:5px 0}.hero-quantity>span:last-child{font-size:10px;color:#ade3dd}.hero-orbit{position:absolute;right:-75px;top:-80px;width:310px;height:310px;border:35px solid #ffffff08;border-radius:50%;z-index:-1;box-shadow:0 0 0 35px #ffffff05}.summary-kpis{margin-bottom:25px}.summary-kpis .metric{position:relative;border:0;overflow:hidden;box-shadow:0 4px 16px #183a5e08;padding:25px 23px;background:#fff;border-top:3px solid var(--metric)}.metric-teal{--metric:#0d9297}.metric-blue{--metric:#4276cc}.metric-violet{--metric:#9367cf}.metric-amber{--metric:#d89a32}.summary-kpis .metric>span{display:block;max-width:calc(100% - 40px);min-height:33px;color:#536b7c}.summary-kpis .metric>strong{color:var(--metric);font-size:32px;margin:10px 0}.metric-icon{position:absolute;right:18px;top:19px;width:38px;height:38px;color:var(--metric);background:color-mix(in srgb,var(--metric) 10%,white);border-radius:11px;display:grid;place-items:center}.metric-icon svg{width:23px;height:23px}.dashboard-grid{align-items:start;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:22px}.dashboard .panel{border-radius:16px;box-shadow:0 4px 18px #183a5e05;padding:25px}.panel-eyebrow{display:block;font-size:9px;font-weight:700;letter-spacing:1.4px;color:#7793a4;margin-bottom:9px}.dashboard .panel-head h2{font-size:19px}.dashboard .panel-head p{font-size:11px;line-height:1.6}.dashboard-side{display:grid;gap:22px}.district-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:20px}.district-toolbar input{min-width:0;width:55%;font-size:11px;background:#f6f9fc}.district-list{max-height:650px;overflow-y:auto;padding-right:10px;scrollbar-width:thin;scrollbar-color:#b7cdd6 transparent;overscroll-behavior:contain}.district-row{display:flex;align-items:center;gap:13px;margin-bottom:20px}.district-rank{font-size:10px;color:#8196a8;background:#f0f5f9;border-radius:8px;padding:9px 6px;min-width:28px;text-align:center}.district-body{flex:1;min-width:0}.dashboard .bar-label{gap:10px;line-height:1.5;margin-bottom:6px;font-size:11px}.district-name{overflow-wrap:anywhere}.district-value{white-space:nowrap}.dashboard .bar-track{height:8px;border-radius:20px;background:#edf2f7;overflow:hidden}.dashboard .bar-fill{height:100%;border-radius:20px;transition:width .25s ease}.donut-wrap{display:flex;justify-content:center;padding:3px 0 16px}.sex-donut{width:170px;height:170px;border-radius:50%;display:grid;place-items:center;background:#e5ecf3;box-shadow:0 0 0 8px #f7fafc}.sex-donut>div{background:white;width:126px;height:126px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.sex-donut strong{font-size:24px;letter-spacing:-.5px}.sex-donut span{font-size:10px;color:#8092a3;margin-top:6px}.dashboard .sex-item{padding:13px 0;gap:9px}.dashboard .sex-item strong{font-size:17px}.dashboard .sex-item small{font-size:10px}.motive-item{margin:15px 0 20px}.dashboard-empty{padding:20px 0;font-size:12px}.dashboard-footnote{font-size:10px;color:#8498a9;line-height:1.6;margin:20px 5px}.dashboard[aria-busy="true"] .kpis{opacity:.5}.dashboard .panel-head{gap:12px}#overview-unit{min-width:145px}#overview-unit select{width:100%}@media(max-width:1050px){.dashboard-grid{grid-template-columns:1fr}.dashboard-side{grid-template-columns:1fr 1fr}.summary-hero{padding:25px}.hero-quantity strong{font-size:39px}.hero-quantity{min-width:190px;padding-left:23px}.summary-hero h2{font-size:26px}}@media(max-width:650px){.summary-hero{padding:23px;display:block}.summary-hero h2{font-size:25px}.hero-quantity{margin-top:22px;padding:17px 0 0;border-left:0;border-top:1px solid #ffffff25}.hero-quantity strong{font-size:38px}.summary-chips span{font-size:9px}.dashboard-side{grid-template-columns:1fr}.summary-kpis .metric{padding:17px 14px}.summary-kpis .metric>strong{font-size:26px}.summary-kpis .metric>span{max-width:calc(100% - 28px);font-size:10px}.metric-icon{width:28px;height:28px;right:10px;top:15px;border-radius:8px}.metric-icon svg{width:18px;height:18px}.dashboard .panel{padding:19px}.dashboard .panel-head h2{font-size:17px}.district-toolbar{gap:8px}.district-toolbar input{width:55%}.district-toolbar .badge{font-size:9px}.district-list{max-height:570px}.dashboard .bar-label{font-size:10px}}

.preventive-panel{border-top:3px solid #9367cf}.preventive-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.preventive-panel .motive-item{margin:18px 0}.preventive-panel .bar-label{font-size:10px}.preventive-panel .bar-label>span{max-width:85%;line-height:1.5}
