:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#172b3e;background:#f3f6f8;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:1px solid #d4dfe6;border-radius:7px;background:#fff;padding:8px 12px;color:inherit}button:hover{background:#ecf3f7}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #7db6db;outline-offset:2px}button.primary{background:#1b5d83;color:#fff;border-color:#1b5d83}button.selected{background:#e4eff5;color:#125374;border-color:#a6c5d8;font-weight:650}button.quiet{background:transparent}.dashboard{max-width:1600px;margin:auto;padding:36px 32px}header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.brand{font-size:11px;letter-spacing:2px;color:#34718f;font-weight:750}h1{font-size:27px;letter-spacing:-.6px;margin:9px 0}h2{font-size:20px}p.muted,.muted{color:#687c8b;font-size:14px}.tabs{display:flex;gap:4px;border-bottom:1px solid #d6e0e7;margin-top:24px;padding-bottom:12px}.tabs button{border:0;min-width:92px}.toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;margin:20px 0}.periods,.tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.search{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #d4dfe6;border-radius:7px;padding:0 10px;min-height:38px}.search input{border:0;background:transparent;outline:none;padding:7px 0;width:200px}.search button{border:0;padding:0 5px}.summary{font-size:12px;color:#617785;display:flex;justify-content:space-between;gap:12px;margin:16px 0 10px}.warning{font-size:13px;background:#fff4d9;border-left:3px solid #d1a140;padding:12px 14px;color:#765821}.table-wrap{overflow-x:auto;border:1px solid #d6e1e7;border-radius:10px;background:#fff;max-height:70vh}table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}th,td{padding:12px 15px;border-bottom:1px solid #e8edf1;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}th{position:sticky;top:0;z-index:2;background:#eef3f6;font-weight:550;color:#4a6273}th button{border:0;background:transparent;padding:0;font-size:12px}th:first-child,td:first-child{position:sticky;left:0;text-align:left;min-width:220px;width:220px;max-width:220px;background:#fff;border-right:1px solid #e8edf1;z-index:1}th:first-child{background:#eef3f6;z-index:3}tr:hover td{background:#f7fafc}th .help{margin-left:5px;border:1px solid #a4b7c4;border-radius:50%;width:15px;height:15px;font-size:10px;display:inline-flex;align-items:center;justify-content:center}.source-title{display:flex;align-items:center;gap:6px;max-width:190px}.source-title a,.source-title .name{color:#205d7d;text-decoration:none;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:158px}.source-title .name{color:inherit}.source-info{font-size:11px;border:0;background:transparent;padding:0 3px;color:#8295a3}.source-meta{font-size:10px;color:#7b8d9a;margin-top:4px;overflow:hidden;text-overflow:ellipsis;max-width:190px}.partial{color:#946f24}.none{color:#84919c}footer{font-size:11px;color:#7e909c;margin-top:18px;line-height:1.6}.empty{text-align:center;padding:35px;color:#718594}#dates{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:12px 0}#dates[hidden],[hidden]{display:none!important}#dates label{display:flex;flex-direction:column;gap:5px;font-size:12px}input{border:1px solid #ccd8e1;border-radius:5px;padding:8px 10px}dialog{border:1px solid #cbd8e2;border-radius:12px;padding:24px;max-width:560px;width:calc(100% - 32px);max-height:90vh;overflow:auto;box-shadow:0 20px 80px #152b3e33}dialog::backdrop{background:#12283966}.dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}#column-list{list-style:none;padding:0}#column-list li{display:flex;align-items:center;gap:8px;padding:8px;border-bottom:1px solid #e8edf1;cursor:grab}#column-list label{flex:1}#column-list button{padding:3px 8px}#column-list input{accent-color:#1b5d83}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{max-width:420px;width:100%;background:#fff;padding:36px;border:1px solid #d6e1e7;border-radius:12px}.login-card h1{font-size:25px}.login-card form{display:flex;flex-direction:column;gap:18px;margin-top:26px}.login-card label{display:flex;flex-direction:column;gap:7px;font-size:13px}.error{color:#a33838;font-size:13px}#detail-title{overflow-wrap:anywhere}#detail-text{font-size:13px;line-height:1.7;overflow-wrap:anywhere}@media(max-width:600px){.dashboard{padding:20px 12px}h1{font-size:23px}header .muted{font-size:12px}.toolbar{gap:12px}.tools{width:100%;flex-wrap:nowrap}.search{flex:1;min-width:0}.search input{width:100%;min-width:0}.desktop-label{display:none}.periods button{font-size:12px;padding:8px}.tabs{margin-top:18px}.tabs button{min-width:75px}th,td{padding:11px 12px}th:first-child,td:first-child{min-width:142px;width:142px;max-width:142px}.source-title{max-width:116px}.source-title a,.source-title .name{max-width:98px}.source-meta{max-width:116px}.summary{font-size:11px;flex-wrap:wrap}.login-card{padding:26px}.table-wrap{max-height:70vh}}

#column-list .column-help{border-radius:50%;width:28px;height:28px;padding:0;flex-shrink:0;color:#205d7d}
@media(max-width:600px){dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:90vh;max-height:90dvh;border-radius:18px 18px 0 0;padding:12px 20px calc(20px + env(safe-area-inset-bottom));overscroll-behavior:contain}dialog::before{content:"";display:block;width:36px;height:4px;border-radius:3px;background:#b6c6d0;margin:0 auto 16px}.dialog-actions{position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom));background:white;padding:12px 0 calc(12px + env(safe-area-inset-bottom))}#column-list li{gap:6px;padding:10px 0}#column-list label{min-width:0;font-size:14px}#column-list button{min-height:32px}}

.totals-row td,.totals-row:hover td{background:#eef3f6;font-weight:400;border-bottom:2px solid #cedbe3}
.totals-row .source-title{max-width:230px;white-space:normal;line-height:1.4}
.metric-details{border-top:1px solid #d6e0e7;margin-top:18px;padding-top:14px}
.metric-details summary{cursor:pointer;color:#205d7d;font-weight:650;list-style-position:inside}
.metric-details p{margin:12px 0}.brand .subsystem{letter-spacing:0;font-weight:500;text-transform:none;line-height:1.6}
@media(max-width:600px){.brand .subsystem{display:block}.totals-row .source-title{max-width:120px}}

.dashboard h1{font-size:24px;line-height:1.3;max-width:760px}@media(max-width:600px){.dashboard h1{font-size:21px}}

#detail-title{margin:0 0 16px}#detail-text .source-facts p{margin:0}#detail-text .source-facts p+p{margin-top:4px}.source-gaps,.source-review{margin-top:16px}.gap-day{margin-top:10px}.gap-day strong{display:block;margin-bottom:2px}

.include-disconnected{display:flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}.include-disconnected input{accent-color:#1b5d83}@media(max-width:600px){.tools{flex-wrap:wrap}.include-disconnected{min-height:32px}}

#detail-dialog #close-detail{margin-top:20px}


.summary-sources{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.summary .include-disconnected{font-size:inherit;color:inherit;min-height:0}.summary .include-disconnected input{margin:0}

.metric-details .metric-formula{margin:12px 0 18px}.metric-details p{line-height:1.7}

#column-list li{position:relative;user-select:none}
#column-list li.dragging{opacity:.45;background:#eef3f6}
#column-list li.drop-before::before,#column-list li.drop-after::after{content:"";position:absolute;left:0;right:0;height:3px;background:#1b78b2;border-radius:2px;pointer-events:none;z-index:2}
#column-list li.drop-before::before{top:-2px}#column-list li.drop-after::after{bottom:-2px}
.column-drag-handle{touch-action:none;cursor:grab;display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:28px;color:#617785;flex-shrink:0}
@media(max-width:600px){.column-drag-handle{min-width:28px;min-height:36px}}
.sheet-handle{display:none}
@media(max-width:600px){dialog::before{display:none}.sheet-handle{display:flex;position:sticky;top:-12px;z-index:5;align-items:center;justify-content:center;height:32px;margin:-12px -20px 4px;background:#fff;border-radius:18px 18px 0 0;touch-action:none;user-select:none;cursor:grab}.sheet-handle span{width:36px;height:4px;border-radius:3px;background:#b6c6d0;pointer-events:none}dialog{transition:transform .16s ease-out}dialog.sheet-dragging{transition:none}.sheet-dragging .sheet-handle{cursor:grabbing}}
@media(prefers-reduced-motion:reduce){dialog{transition:none}}
