:root{--navy:#10253f;--navy2:#173654;--blue:#2563eb;--ink:#172a40;--muted:#718197;--line:#e4eaf2;--bg:#f4f7fb;--white:#fff;--green:#139c72;--red:#e04d56;--amber:#df9728;--purple:#8171cc;--shadow:0 5px 24px rgba(32,52,89,.045)}*{box-sizing:border-box}body{margin:0;font-family:Inter,'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:14px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.hidden{display:none!important}.shell{display:flex;min-height:100vh}.sidebar{background:linear-gradient(160deg,#112c4c,#10233b);color:#fff;width:256px;min-width:256px;min-height:100vh;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:30}.brand{display:flex;align-items:center;gap:12px;padding:22px 20px 28px;border-bottom:1px solid #27425f}.logo,.auth-mark{display:grid;place-items:center;background:#3c77f6;border-radius:12px;width:42px;height:42px;font-weight:850;font-size:17px;letter-spacing:-1px;color:white}.brand-logo{display:block;width:112px;max-width:112px;height:auto;object-fit:contain;flex:0 0 auto}.brand-copy{display:flex;flex-direction:column;min-width:0}.brand strong{display:block;font-size:20px;letter-spacing:.3px}.brand small{font-size:10px;background:#31577d;padding:3px 6px;border-radius:4px;margin-left:4px;vertical-align:middle}.brand em{display:block;font-size:9px;font-style:normal;color:#91a9c3;letter-spacing:1.35px;margin-top:4px}.sidebar-section{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#7f98b5;padding:30px 26px 12px}.nav-item{display:flex;align-items:center;gap:13px;width:calc(100% - 22px);margin:4px 11px;padding:13px 15px;border:0;border-radius:9px;color:#b5c9dd;background:transparent;font-weight:600;text-align:left}.nav-item:hover,.nav-item.active{background:#254869;color:#fff}.nav-item.active{box-shadow:inset 3px 0 #4b8aff}.navico{font-size:18px;width:22px;text-align:center}.nav-trail{margin-left:auto;font-size:18px}.side-bottom{margin-top:auto;padding:24px;border-top:1px solid #28415d}.side-note{display:flex;gap:9px;align-items:center;color:#d2ecdc;font-size:12px;margin-bottom:15px}.green-dot,.blue-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#38d9a3;box-shadow:0 0 0 4px #38d9a31b}.blue-dot{background:#427eeb;box-shadow:0 0 0 4px #427eeb21}.small-muted{color:#89a2bf;font-size:11px;line-height:1.65}.logout-link{border:0;color:#c6d7ec;background:none;padding:23px 0 0;font-weight:600}.workspace{flex:1;min-width:0}.topbar{height:83px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:16px}.top-left,.top-actions{display:flex;align-items:center;gap:15px}.top-actions{gap:12px}.eyebrow{color:#7b8da3;font-size:10px;font-weight:800;letter-spacing:1.7px;margin:0 0 6px;text-transform:uppercase}.eyebrow.accent{color:#4679e6}.breadcrumb{font-weight:700;color:#34465e;font-size:15px}.top-date{color:#778aa0;font-size:12px}.top-divider{height:24px;width:1px;background:var(--line)}.avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#e2ebff;color:#245fc6;font-weight:800;font-size:11px;margin-left:5px}.mobile-nav{display:none}.btn{background:white;border:1px solid var(--line);border-radius:8px;padding:10px 15px;font-weight:700;color:var(--ink);transition:background .15s,transform .15s;white-space:nowrap}.btn:hover:not(:disabled){transform:translateY(-1px);filter:brightness(.98)}.btn.primary{background:#2563eb;border-color:#2563eb;color:white;box-shadow:0 3px 10px #2563eb28}.btn.secondary{background:#fff;color:#355272;border:1px solid #dbe5ef}.btn.quiet{border-color:transparent;background:#eff4fb}.btn.small{padding:7px 10px;font-size:12px}.btn.wide{width:100%}.btn.danger-outline{background:white;color:#d54651;border-color:#f4c7ca}.content{padding:32px 34px 65px;max-width:1850px;margin:auto}.view{display:none}.view.active{display:block}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin:0 0 27px}.page-head h1{font-size:28px;letter-spacing:-.85px;line-height:1.15;margin:7px 0}.subtext,.muted{color:var(--muted)}.subtext{margin:7px 0 0;font-size:13px}.head-filters{display:flex;gap:9px;align-items:center}.head-filters select,.main-filters select,.col-filter select,.display-controls select,.import-panel select{border:1px solid #dfe7ef;background:#fff;border-radius:8px;padding:11px 12px;color:#344b65;min-width:130px;max-width:200px;outline:none}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.kpi-card{background:white;border-radius:12px;border:1px solid var(--line);box-shadow:var(--shadow);padding:22px;min-height:143px;position:relative;overflow:hidden}.kpi-card:before{content:'';position:absolute;width:44px;height:4px;top:0;left:22px;background:var(--card-color,#3d80ed);border-radius:0 0 4px 4px}.kpi-icon{position:absolute;right:18px;top:19px;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--card-bg,#e9f1ff);color:var(--card-color,#3d80ed);font-size:20px}.kpi-label{font-size:12px;font-weight:700;color:#6e7f95;margin-bottom:17px}.kpi-number{font-size:30px;font-weight:800;letter-spacing:-1.1px;color:#1a3451}.kpi-foot{font-size:11px;color:#8a9aae;margin-top:7px}.section-top{display:flex;align-items:center;justify-content:space-between;margin:30px 0 13px}.section-top h2,.panel h2{font-size:15px;margin:0;letter-spacing:-.2px}.hint{color:#8da1b4;font-size:11px;font-weight:500;margin-left:9px}.text-link{background:transparent;border:0;color:#326cce;font-size:12px;font-weight:700}.radar-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.radar-card{background:white;border:1px solid var(--line);border-radius:10px;padding:17px 19px;border-left:4px solid var(--radar-color)}.radar-label{font-size:11px;color:#728399;font-weight:700;text-transform:uppercase;letter-spacing:.7px}.radar-val{font-size:26px;font-weight:800;color:var(--ink);margin:8px 0 2px}.radar-foot{font-size:10px;color:#9ba7b8}.split-layout,.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:22px}.panel{background:white;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding:22px 23px 18px;border-bottom:1px solid #f0f3f8}.panel-head p{margin:6px 0 0;font-size:12px}.panel-symbol{background:#eaf2ff;border-radius:8px;width:32px;height:32px;display:grid;place-items:center;color:#4779d8;font-size:17px}.state-bars,.category-bars{padding:22px 24px 27px;max-height:370px;overflow:auto}.bar-row{display:grid;grid-template-columns:minmax(105px,150px) 1fr 34px;gap:11px;align-items:center;margin:0 0 17px}.bar-name{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{height:9px;background:#edf2f8;border-radius:100px;overflow:hidden}.bar-fill{height:100%;background:#5b8ced;border-radius:100px}.bar-value{font-size:12px;font-weight:800;text-align:right}.state-row-btn{cursor:pointer}.state-row-btn:hover .bar-name{color:var(--blue)}.urgent-item{display:flex;align-items:center;gap:12px;padding:15px 24px;border-bottom:1px solid #f0f3f6;cursor:pointer}.urgent-item:hover{background:#f8fbff}.urgent-item:last-child{border-bottom:0}.urgent-unit{font-weight:700;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.urgent-meta{color:#91a0b2;font-size:11px;margin-top:4px}.urgent-main{min-width:0;flex:1}.badge{font-size:10px;font-weight:800;border-radius:6px;padding:5px 8px;white-space:nowrap;display:inline-block}.badge.Overdue{background:#fff0f0;color:#d34c55}.badge.Critical{background:#fff0df;color:#d47818}.badge.Warning{background:#fff7df;color:#b48717}.badge.On.Track{background:#e5f8f1;color:#0e9470}.badge.Stopped,.badge.No.Date{background:#eef2f7;color:#738399}.badge.Allocated{background:#eaf1ff;color:#326bd5}.badge.Scheduled{background:#eaf8ff;color:#2786af}.badge.In.Progress{background:#eeeaff;color:#8069cf}.badge.NC.Raised,.badge.NC.Submitted{background:#fff1e8;color:#d27b32}.badge.NC.Closed,.badge.Completed{background:#ddf7ec;color:#0e956b}.badge.Rejected{background:#ffeded;color:#d04f55}.badge.Evidence.Submitted{background:#e7f7f8;color:#128a91}.badge.Other{background:#eef2f7;color:#708097}.legend{font-size:11px;color:#75859c;display:flex;align-items:center;gap:7px}.dot{width:8px;height:8px;border-radius:50%;display:inline-block}.dot.purple{background:#8a75df}.dot.green{background:#20b98b}.nc-area{padding:20px 25px 25px;overflow:auto;max-height:360px}.nc-row{display:grid;grid-template-columns:minmax(90px,165px) 1fr 64px;gap:13px;align-items:center;margin-bottom:16px}.nc-track{position:relative;height:23px;display:flex;flex-direction:column;gap:4px;justify-content:center}.nc-rail{height:7px;background:#edf1f8;border-radius:20px;overflow:hidden}.nc-raised{background:#917dea;height:100%;border-radius:20px}.nc-closed{background:#1eb78b;height:100%;border-radius:20px}.nc-count{color:#7b8ca1;font-size:11px;text-align:right}.empty-state{padding:35px;color:#8c9aaf;text-align:center}.filters-panel{padding:18px 20px;margin-bottom:18px}.main-filters{display:grid;grid-template-columns:minmax(250px,2fr) repeat(4,minmax(120px,1fr));gap:9px}.main-filters select{max-width:none;min-width:0;width:100%;font-size:12px}.search-wrap{position:relative;display:flex;align-items:center}.search-wrap span{position:absolute;left:14px;font-size:22px;color:#8191a4;pointer-events:none}.search-wrap input{padding:11px 14px 11px 41px;width:100%;border:1px solid #dfe7ef;border-radius:8px;outline:none;min-width:0;color:#344b65}.search-wrap input:focus,input:focus,select:focus{border-color:#7da4f1;outline:2px solid #7da4f126}.filter-bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:16px;flex-wrap:wrap}.col-filter,.display-controls{display:flex;align-items:center;gap:9px}.col-filter select{max-width:170px;min-width:110px;padding:7px 10px}.col-filter input{width:145px;padding:8px 9px;border:1px solid #dfe7ef;border-radius:7px;font-size:12px}.display-controls select{padding:6px;min-width:65px}.chips{display:flex;flex-wrap:wrap;gap:7px}.filter-chip{font-size:11px;background:#edf4ff;color:#3868bc;padding:6px 9px;border-radius:6px;margin-top:12px;border:1px solid #d9e6ff;cursor:pointer}.table-panel{background:white;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}.table-head,.table-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 20px}.table-description{display:flex;gap:11px;align-items:center}.table-head .muted{font-size:11px}.table-scroll{overflow:auto;max-width:100%;scrollbar-color:#b7c9e4 #f1f5f9}.records-table,.simple-table{border-collapse:separate;border-spacing:0;text-align:left;width:100%}.records-table{min-width:max-content}.records-table th{background:#f3f7fc;white-space:nowrap;font-size:11px;letter-spacing:.2px;text-transform:none;font-weight:800;color:#62748a;padding:13px 15px;border-bottom:1px solid #dfe8f1;position:sticky;top:0;z-index:2;cursor:pointer}.records-table th:hover{color:#1b65c5;background:#eaf2fe}.records-table td{font-size:12px;padding:13px 15px;color:#344963;white-space:nowrap;max-width:250px;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid #f0f3f7;height:49px}.records-table tr:hover td{background:#f9fbff}.records-table .id-col{position:sticky;left:0;z-index:1;background:white;color:#275cb1;font-weight:750;min-width:150px;cursor:pointer}.records-table th.id-col{z-index:5;background:#edf3fd}.records-table tr:hover .id-col{background:#f9fbff}.records-table .unit-col{position:sticky;left:148px;z-index:1;max-width:220px;width:220px;min-width:220px;background:#fff;font-weight:700;color:#2b425f}.records-table th.unit-col{z-index:4;background:#edf3fd}.records-table tr:hover .unit-col{background:#f9fbff}.records-table .actions-col{position:sticky;right:0;z-index:2;min-width:155px;background:white;box-shadow:-3px 0 7px #102a440b}.records-table th.actions-col{z-index:5;background:#edf3fd}.records-table tr:hover .actions-col{background:#f9fbff}.table-btn{border:1px solid #d6e4fc;background:#f3f7ff;color:#2e68ce;border-radius:6px;padding:6px 10px;margin-right:4px;font-size:11px;font-weight:700}.table-btn.delete{border-color:#f8d6d8;background:#fff8f8;color:#d6535d}.table-footer{border-top:1px solid var(--line);font-size:12px;flex-wrap:wrap}.pager{display:flex;align-items:center;gap:10px}.pager span{font-size:12px;color:#63788c;font-weight:700}.import-layout{display:grid;grid-template-columns:minmax(340px,1fr) 1fr;gap:20px}.import-panel,.upload-guide{padding:0 22px 22px}.import-panel .panel-head,.upload-guide .panel-head{padding-left:0;padding-right:0}.dropzone{border:2px dashed #adc9f7;background:#f7faff;border-radius:12px;padding:34px 16px;text-align:center;cursor:pointer;margin:24px 0}.dropzone.dragover{background:#e5f0ff;border-color:#3471e7}.drop-ico{margin:auto auto 15px;border-radius:13px;background:#e2edff;color:#477ce4;width:56px;height:56px;display:grid;place-items:center;font-size:30px}.dropzone h3{font-size:15px;margin:0 0 8px}.dropzone p{font-size:12px;color:#8296af}.file-picked{color:#326dcf;font-weight:700;font-size:12px;margin-top:15px}.input-title{display:block;color:#4e6074;font-weight:750;font-size:12px;margin:18px 0 8px}.import-panel select{width:100%;max-width:none}.import-panel .btn{margin:20px 0 0}.steps{padding:24px 3px 5px}.step{display:flex;gap:16px;margin:0 0 27px}.step>span{font-weight:800;border-radius:8px;background:#ebf2ff;color:#326cdb;display:grid;place-items:center;width:39px;height:39px;min-width:39px}.step strong{font-size:13px}.step p,.info-box p{font-size:12px;color:#74869a;line-height:1.55;margin:5px 0 0}.info-box{padding:16px;background:#fff9ea;border-radius:10px;border:1px solid #fce7b8}.info-box strong{font-size:12px;color:#b0791b}.import-history{margin-top:20px}.simple-table{min-width:680px}.simple-table th{background:#f6f9fd;color:#6b7f95;font-size:11px;font-weight:800;padding:13px 19px;border-bottom:1px solid var(--line);white-space:nowrap}.simple-table td{padding:14px 19px;border-bottom:1px solid #eff3f7;font-size:12px}.simple-table tr:last-child td{border-bottom:0}.simple-table tr[data-state]{cursor:pointer}.simple-table tr[data-state]:hover{background:#f7faff}.import-success{background:#e8f8ef;border:1px solid #c4eed7;padding:16px;border-radius:9px;margin-top:18px;color:#16764b;font-size:12px;line-height:1.8}.import-success strong{font-size:13px}.import-error{color:#c83b46;padding:12px 0}.analytics-grid{margin-top:0}.category-bars{max-height:490px}.nc-big{text-align:center;padding:34px}.nc-big strong{display:block;font-size:45px;color:#168e6a}.nc-big p{font-size:12px;color:#8392a4}.progress-shell{height:14px;background:#edeefa;border-radius:15px;overflow:hidden;margin:20px 0}.progress-shell div{height:100%;background:#1ba97e}.nc-key{display:flex;justify-content:space-between;font-size:12px;color:#697e95}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.setting-panel{padding:24px}.setting-panel p{font-size:12px;line-height:1.7}.setting-panel input{display:block;max-width:400px;width:100%;border:1px solid #dce5ef;padding:11px;border-radius:7px;background:white}.setting-panel .btn{margin-top:17px}.setting-panel code{background:#eef3fa;padding:2px 5px;font-size:11px}.about-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;padding:20px}.about-grid div{display:flex;flex-direction:column;gap:8px}.about-grid span{font-size:10px;font-weight:700;letter-spacing:1px;color:#93a1b4}.about-grid strong{font-size:12px}.modal-back{position:fixed;inset:0;background:#071b32b8;z-index:70;display:flex;justify-content:flex-end}.edit-modal{background:white;width:min(800px,100vw);height:100vh;display:flex;flex-direction:column;box-shadow:-8px 0 32px #0002}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:25px 28px;border-bottom:1px solid #edf1f7}.modal-head h2{font-size:23px;margin:4px 0 8px}.close-x{border:0;background:#eef3f9;width:33px;height:33px;border-radius:8px;color:#677c91}.modal-toolbar{display:flex;gap:15px;align-items:center;padding:17px 28px;border-bottom:1px solid #f0f3f7}.modal-toolbar .search-wrap{flex:1}.modal-toolbar input{max-width:360px}.edit-modal form{min-height:0;display:flex;flex-direction:column;flex:1}.modal-fields{overflow:auto;flex:1;display:grid;grid-template-columns:repeat(2,1fr);gap:16px;padding:25px 28px;align-content:start}.modal-field{min-width:0}.modal-field label{display:block;font-weight:750;color:#5b6c81;font-size:11px;margin-bottom:7px}.modal-field input,.modal-field textarea,.modal-field select{display:block;width:100%;padding:10px 12px;border:1px solid #dce5ee;border-radius:7px;font:inherit;font-size:12px;outline:none;color:#24394f;background:white}.modal-field textarea{min-height:70px;resize:vertical}.modal-field.big{grid-column:1/-1}.modal-field input[readonly]{background:#f4f6fa;color:#728299}.modal-footer{padding:18px 28px;border-top:1px solid #edf1f7;display:flex;align-items:center;gap:11px}.spacer{flex:1}.toast{position:fixed;right:25px;bottom:26px;background:#153754;color:white;padding:15px 20px;border-radius:10px;box-shadow:0 15px 45px #0003;z-index:100;max-width:450px;font-size:13px;line-height:1.5}.toast.error{background:#bd3e49}.auth-screen{height:100vh;min-height:650px;display:grid;place-items:center;background:radial-gradient(circle at 35% 10%,#2c527d,#0e263f 68%);padding:20px}.auth-card{width:min(430px,100%);background:white;border-radius:17px;padding:38px;box-shadow:0 20px 70px #0004}.auth-mark{margin-bottom:24px}.auth-logo-wrap{margin-bottom:22px;display:flex;align-items:center;justify-content:flex-start}.auth-logo{display:block;width:128px;max-width:100%;height:auto;object-fit:contain}.auth-card h1{font-size:24px;letter-spacing:-.5px;margin:7px 0}.auth-card .muted{font-size:12px;line-height:1.7}.auth-card form{margin:24px 0 14px}.auth-card label{display:block;margin-bottom:10px;font-weight:700;font-size:12px;color:#56697f}.auth-card input{width:100%;padding:12px;border:1px solid #dce5ed;border-radius:8px;font-size:14px}.auth-card .btn{margin-top:16px;padding:13px}.tiny{font-size:11px!important}.centered{text-align:center}.error-text{color:#d14954;font-size:12px;min-height:18px;margin:0}.numeric{font-variant-numeric:tabular-nums}
@media(max-width:1400px){.kpi-grid{grid-template-columns:repeat(4,1fr)}.content{padding:26px 25px}.topbar{padding:0 25px}.main-filters{grid-template-columns:2fr 1fr 1fr}.main-filters select:nth-last-child(-n+2){grid-column:span 1}}
@media(max-width:1050px){.sidebar{width:225px;min-width:225px}.kpi-grid{grid-template-columns:repeat(2,1fr)}.radar-grid{grid-template-columns:repeat(3,1fr)}.top-date,.top-divider{display:none}.split-layout,.import-layout,.analytics-grid{grid-template-columns:1fr}.head-filters{flex-wrap:wrap}.settings-grid{grid-template-columns:1fr}}
@media(max-width:750px){.sidebar{position:fixed;transform:translateX(-110%);transition:transform .18s}.sidebar.mobile-open{transform:translateX(0)}.mobile-nav{display:block;border:0;background:#eef3fa;border-radius:7px;padding:8px}.topbar{height:75px;padding:0 16px}.content{padding:20px 14px 40px}.top-actions .btn{display:none}.page-head{flex-direction:column}.page-head h1{font-size:24px}.radar-grid{grid-template-columns:repeat(2,1fr)}.kpi-grid{gap:10px}.kpi-card{padding:16px}.kpi-number{font-size:25px}.main-filters{grid-template-columns:1fr 1fr}.main-filters .search-wrap{grid-column:1/-1}.filter-bottom{align-items:flex-start}.col-filter{flex-wrap:wrap}.modal-fields{grid-template-columns:1fr}.modal-field.big{grid-column:1}.about-grid{grid-template-columns:repeat(2,1fr)}.records-table .unit-col{display:none}.records-table .id-col{position:static}.topbar .breadcrumb{font-size:12px}}

.custom-field-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #eaf0f7;padding:9px 0;font-size:12px;color:#42607d}.custom-fields{max-height:220px;overflow:auto;margin-top:7px}

/* Assessor management and assignment module */
.assessor-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}
.assessor-kpi{border:1px solid var(--line);background:#fff;border-radius:12px;padding:18px 22px}
.assessor-kpi strong{display:block;font-size:29px;color:#194e84;line-height:1.3}
.assessor-kpi span{display:block;color:var(--muted);font-size:12px;font-weight:600;margin-top:5px}
.assessor-table th,.assessor-table td{white-space:nowrap}
.assessor-table td.area-cell{white-space:normal;min-width:220px;max-width:340px;line-height:1.55}
.assessor-editor{max-width:800px}
.allocation-editor{max-width:660px}
.assessor-group-title{grid-column:1/-1;color:#2765c8;font-size:11px;font-weight:800;letter-spacing:.8px;padding:12px 0 9px;border-bottom:1px solid #e4edf8}
.assessor-fields .big{grid-column:1/-1}
.assessor-fields select,.allocation-inner select,.allocation-inner input{border:1px solid #dbe4ef;border-radius:8px;padding:12px;width:100%;background:#fff;color:var(--ink);font:inherit}
.assessor-fields select:focus,.allocation-inner select:focus,.allocation-inner input:focus{outline:2px solid #bdd6fb}
.privacy-note{background:#fff8e9;border:1px solid #f2d8a1;color:#765329;border-radius:9px;padding:12px 14px;font-size:12px;line-height:1.6;margin:0}
.allocation-inner{padding:24px 30px;display:grid;gap:7px}
.allocation-inner .input-title{margin-top:14px}
.allocation-current{background:#eff5fd;border:1px solid #deebfa;border-radius:9px;padding:12px;margin-top:14px;line-height:1.7;color:#37526f}
.assessor-tag{display:inline-block;background:#eaf2ff;border:1px solid #d9e8ff;color:#1e579c;font-size:12px;font-weight:700;padding:5px 9px;border-radius:7px}
.row-select{width:35px;text-align:center!important;min-width:35px!important}
.row-select input{width:16px;height:16px;accent-color:#2563eb;cursor:pointer}
@media(max-width:800px){.assessor-kpis{grid-template-columns:1fr}.allocation-inner{padding:16px}.assessor-fields{grid-template-columns:1fr}}

.case-allocation-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 28px;padding:12px 16px;background:#f0f6ff;border:1px solid #daebff;border-radius:9px;font-size:12px;color:#1d4e85}


/* Periodic Excel reporting module */
.report-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.9fr);gap:22px;align-items:start}
.report-controls,.report-result-panel{padding:25px}
.report-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;margin-top:9px}
.report-control{min-width:0}
.report-control label{font-size:12px;font-weight:750;color:#465c77;display:block;margin-bottom:8px}
.report-control select,.report-control input{width:100%;min-width:0;max-width:100%;padding:12px 13px;border-radius:9px;border:1px solid #d8e3f1;background:#fff;color:#1b344f;font:inherit;outline:none}
.report-control select:focus,.report-control input:focus{border-color:#79a7f4;box-shadow:0 0 0 3px #e5efff}
.report-section-label{grid-column:1/-1;color:#2b67b4;font-size:11px;letter-spacing:1.1px;font-weight:800;padding-top:16px;border-top:1px solid #e9eef6}
.report-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:26px 0 15px}
.report-actions .btn{font-size:12px}
.report-disclaimer{font-size:11px;color:#8190a2;line-height:1.6;background:#f6f9fd;padding:12px 14px;border-radius:8px}
.report-period-caption{font-size:12px;color:#5a6f86;margin:4px 0 14px}
.report-stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.report-stat{padding:14px;border-radius:9px;background:#f4f8ff;border:1px solid #e5edfb}
.report-stat span{display:block;color:#6c7f98;font-size:11px;font-weight:700}
.report-stat strong{display:block;font-size:25px;font-weight:800;color:#153f73;margin-top:6px}
.report-state-summary{margin-top:21px;border-top:1px solid #e7edf5;padding-top:17px}
.report-state-summary>strong{font-size:12px}
.report-state-row{display:flex;justify-content:space-between;padding:10px 3px;border-bottom:1px solid #edf2f8;font-size:12px;color:#61768e}
.report-state-row b{color:#1f436d}
.report-includes{margin-top:22px;padding:17px 18px;background:#edf6f4;border:1px solid #d7ece7;border-radius:11px}
.report-includes strong{font-size:13px;color:#205c52}
.report-includes div{margin-top:12px;font-size:12px;color:#315d58}
.report-includes p{font-size:11px;margin:15px 0 0;color:#5d8178;line-height:1.55}
@media(max-width:1250px){.report-layout{grid-template-columns:1fr}}
@media(max-width:680px){.report-fields{grid-template-columns:1fr}.report-controls,.report-result-panel{padding:16px}.report-actions .btn{width:100%}}

/* V4: Read-only, Excel-driven register with wrapped cells and frozen headers */
#view-records .table-panel{overflow:hidden;border-radius:12px}
#view-records #tableScroll{max-height:clamp(420px,68vh,900px);overflow:auto;overscroll-behavior:contain;position:relative;scrollbar-gutter:stable}
#view-records .records-table{width:max-content;min-width:100%;table-layout:fixed;border-spacing:0}
#view-records .records-table th{position:sticky;top:0;z-index:4;white-space:normal;overflow-wrap:anywhere;max-width:210px;min-width:130px;line-height:1.3;vertical-align:middle;padding:14px 12px;background:#eaf1fa;border-bottom:2px solid #cbd8ed;box-shadow:inset 0 -1px 0 #d1dff0}
#view-records .records-table td{min-width:135px;width:175px;max-width:235px;height:auto;min-height:56px;padding:13px 12px;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;word-break:normal;line-height:1.5;vertical-align:top}
#view-records .records-table .id-col{position:sticky;left:0;width:162px;min-width:162px;max-width:162px;z-index:3;background:#f8fbff;border-right:1px solid #dce6f5}
#view-records .records-table th.id-col{z-index:7;background:#e4effd}
#view-records .records-table .unit-col{position:sticky;left:162px;width:235px;min-width:235px;max-width:235px;z-index:3;background:#fbfdff;border-right:2px solid #d3e2f5;box-shadow:4px 0 7px #243b5710}
#view-records .records-table th.unit-col{z-index:7;background:#e4effd}
#view-records .records-table tbody tr:nth-child(even) td:not(.id-col):not(.unit-col){background:#fbfdff}
#view-records .records-table tbody tr:hover td{background:#edf5ff!important}
#view-records .records-table th[data-col="category"],#view-records .records-table td:nth-child(3){min-width:155px;width:170px}
#view-records .records-table th[data-col="assignedAssessor"],#view-records .records-table td:nth-child(6){min-width:190px;width:200px}
#view-records .table-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.register-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.register-tools select{max-width:215px;min-width:175px;padding:8px 11px;border:1px solid #d9e4f2;border-radius:8px;color:#294766;background:#fff;font-size:12px}
.case-detail-link{color:#205bc0;font-weight:800;font:inherit;text-align:left;border:0;background:transparent;cursor:pointer;overflow-wrap:anywhere;padding:3px 1px}
.case-detail-link:hover{text-decoration:underline}
#view-records .table-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 19px}
#view-records .records-table th:hover{background:#dfeafb}
#view-records .records-table td .badge{white-space:normal;line-height:1.5}
#modalFields input[readonly],#modalFields textarea[readonly]{background:#f7fafd;color:#344963;border-color:#e1e9f3;cursor:default}
#saveRecord,#deleteRecord,#modalAssign,#assessorDelete,#addCustomField,#newFieldName{display:none!important}
@media(max-width:750px){#view-records .records-table .id-col{position:sticky!important;left:0!important}#view-records .records-table .unit-col{display:table-cell;position:static;box-shadow:none}.register-tools select{min-width:140px;max-width:165px}}

/* V5: assessor case summary popup – six imported case fields only */
.assessor-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;min-width:245px}
.assessor-actions .table-btn{margin:0;white-space:nowrap}
.assessor-cases-button{background:#e8f2ff;border-color:#bdd6ff;color:#175ca9}
.assessor-cases-button:hover{background:#d9e9ff}
#assessorCasesBack{justify-content:center;align-items:center;padding:20px}
.assessor-cases-dialog{display:flex;flex-direction:column;width:min(1140px,100%);height:min(790px,calc(100vh - 40px));background:white;border:1px solid #dce7f2;border-radius:16px;overflow:hidden;box-shadow:0 24px 70px #091d3855}
.assessor-cases-dialog .modal-head{flex-shrink:0;padding:20px 25px}
.assessor-cases-dialog .modal-head h2{font-size:21px;line-height:1.3;overflow-wrap:anywhere}
.assessor-cases-toolbar{padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f7faff;border-bottom:1px solid #e7edf6}
.assessor-cases-toolbar .search-wrap{min-width:200px;max-width:500px;flex:1}
.assessor-cases-toolbar input{width:100%}
.assessor-cases-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.assessor-cases-table{border-collapse:separate;border-spacing:0;width:100%;min-width:930px;table-layout:fixed}
.assessor-cases-table th{position:sticky;top:0;background:#e7eff9;z-index:2;color:#325471;font-size:11px;letter-spacing:.35px;text-align:left;font-weight:800;padding:15px 14px;border-bottom:2px solid #ccdaed}
.assessor-cases-table th:nth-child(1){width:155px}.assessor-cases-table th:nth-child(2){width:190px}.assessor-cases-table th:nth-child(3){width:275px}.assessor-cases-table th:nth-child(4){width:130px}.assessor-cases-table th:nth-child(5){width:125px}.assessor-cases-table th:nth-child(6){width:190px}
.assessor-cases-table td{font-size:12px;padding:14px;border-bottom:1px solid #e6edf5;vertical-align:top;line-height:1.55;white-space:normal;overflow-wrap:anywhere;color:#2e4357}
.assessor-cases-table tbody tr:nth-child(even){background:#f9fbfe}
.assessor-cases-table tbody tr:hover{background:#f0f6ff}
.assessor-cases-table .zed-code{font-weight:800;color:#235ba4}
.assessor-cases-table .case-stage{display:inline-block;max-width:100%;padding:5px 8px;background:#eef4fd;border-radius:6px;color:#335c8c;font-size:11px;font-weight:700;overflow-wrap:anywhere}
.assessor-cases-table .assessor-address{white-space:pre-line}
.assessor-cases-footer{padding:12px 24px;border-top:1px solid #e7edf6;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#688096;font-size:11px}
@media(max-width:680px){#assessorCasesBack{padding:0}.assessor-cases-dialog{border-radius:0;height:100vh;max-height:none}.assessor-cases-toolbar{padding:12px}.assessor-cases-dialog .modal-head{padding:15px}.assessor-cases-footer{padding:10px}.assessor-cases-footer>span{max-width:65%}}

/* Version 6 — multi-file daily state imports */
.file-queue-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 9px}.file-queue-header strong{font-size:13px;color:#283e59}
.upload-queue{border:1px solid #e1e9f3;border-radius:10px;overflow:auto;max-height:390px;background:#fff}
.empty-queue{padding:19px 13px;color:#8192a7;font-size:12px;text-align:center}
.upload-queue-row{display:flex;align-items:center;gap:12px;min-height:64px;padding:11px 12px;border-bottom:1px solid #edf1f7}
.upload-queue-row:last-child{border-bottom:none}.file-sequence{display:grid;place-items:center;width:27px;height:27px;min-width:27px;border-radius:8px;background:#edf3fc;color:#3864a0;font-size:12px;font-weight:800}
.queue-file-details{min-width:0;flex:1}.queue-file-details strong{display:block;overflow-wrap:anywhere;font-size:12px;color:#253b57}.queue-file-details small{display:block;color:#7b8fa5;margin-top:4px;line-height:1.5}
.file-status.success{color:#16845f;font-weight:750}.file-status.failed{color:#c63c48;font-weight:750}.file-status.active{color:#2563eb;font-weight:750}
.queue-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.queue-actions button{width:28px;height:28px;border:1px solid #dce5ef;border-radius:6px;background:#f8fbff;color:#3c5878;font-weight:800;cursor:pointer}.queue-actions button:hover:not(:disabled){background:#e5f0ff}.queue-actions button:disabled{opacity:.3;cursor:default}
.batch-progress{margin:17px 0 0}.batch-progress-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#395470;font-size:12px;margin-bottom:8px}.batch-progress-head strong{overflow-wrap:anywhere}
.batch-progress-track{height:9px;background:#e7effa;border-radius:99px;overflow:hidden}.batch-progress-track>div{height:100%;width:0;background:#246ae1;transition:width .2s ease;border-radius:99px}
.batch-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:12px 0}.batch-stats span{background:#ffffffaa;border-radius:7px;padding:8px;font-size:12px}.batch-stats b{font-size:14px;margin-right:5px}.import-batch-partial{background:#fff8e9;border:1px solid #f5ddb3;padding:16px;border-radius:9px;margin-top:18px;color:#855b16;font-size:12px;line-height:1.65}
.import-success p,.import-batch-partial p{font-size:12px;margin-bottom:0}.import-panel .file-queue-header .btn{margin:0}
@media(max-width:550px){.batch-stats{grid-template-columns:1fr}.upload-queue-row{gap:8px;padding:10px 8px}}
@media (max-width:1200px){.brand{padding:20px 18px 24px}.brand-logo{width:98px}}
/* Administrator-only staff account settings */
.staff-create{display:grid;grid-template-columns:1fr;gap:9px;max-width:490px;margin-top:17px}.staff-create label{font-weight:700;color:#536b84;font-size:12px}.staff-create .btn{justify-self:start}.staff-users{margin-top:18px}.staff-users h3{font-size:13px;margin:0 0 10px}.staff-user-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #e4eaf2}.staff-user-row strong{margin-right:auto}.staff-user-row input[data-staff-password]{width:160px;max-width:100%;padding:7px 9px;font-size:12px}.auth-card #authUsername{margin-bottom:15px}.auth-card #authPassword{margin-bottom:0}


/* V8: animated, responsive daily allotment dashboard */
.allotment-chart-panel{margin-top:22px}
.allotment-heading{align-items:center;flex-wrap:wrap;gap:16px}
.allotment-heading h2{font-size:17px}
.allotment-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}
.allotment-month-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#586f8a;font-weight:700}
.allotment-month-label select{min-width:160px;border:1px solid #dae4f0;background:#fff;color:#26415f;border-radius:8px;padding:9px 12px;font:inherit}
.allotment-halves{display:flex;padding:4px;border:1px solid #dce6f1;border-radius:10px;background:#f3f7fc;gap:3px}
.allotment-halves button{border:0;background:transparent;border-radius:7px;padding:8px 15px;font-size:12px;font-weight:750;color:#677f98;cursor:pointer}
.allotment-halves button.active{background:#2664d9;color:#fff;box-shadow:0 2px 7px #153b8140}
.allotment-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:18px 22px 8px}
.allotment-summary>div{background:#f7f9fd;border:1px solid #edf0f7;border-radius:10px;padding:12px 15px;min-width:0}
.allotment-summary span{display:block;font-size:11px;font-weight:650;color:#74849c;margin-bottom:4px}
.allotment-summary strong{font-size:22px;font-weight:800;color:#1b3b5e;display:block}
.allotment-summary strong small{font-size:11px;color:#6f8299;font-weight:600}
.allotment-chart-scroll{overflow-x:auto;padding:15px 18px 10px;scrollbar-color:#c2d2e5 #f4f7fb}
.allotment-chart{display:flex;align-items:stretch;min-height:300px;min-width:660px;width:100%;gap:12px}
.allotment-yaxis{flex:0 0 36px;display:flex;flex-direction:column;justify-content:space-between;height:260px;text-align:right;padding:0 2px 0 0;font-size:11px;color:#71839a;font-variant-numeric:tabular-nums}
.allotment-plot{position:relative;height:283px;flex:1;min-width:0}
.allotment-gridlines{position:absolute;top:0;left:0;right:0;height:260px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.allotment-gridlines i{display:block;width:100%;height:1px;background:#e6edf5}
.allotment-bars{position:relative;display:grid;grid-template-columns:repeat(15,minmax(0,1fr));height:283px;gap:clamp(5px,.9vw,13px);padding:0 6px}
.allotment-bar-slot{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;outline-offset:4px;border-radius:3px}
.allotment-bar-slot:focus-visible{outline:2px solid #2563eb}
.allotment-bar-track{width:100%;height:260px;position:relative;display:flex;align-items:flex-end;justify-content:center}
.allotment-bar{position:relative;width:min(100%,44px);height:var(--bar-height);min-height:0;border-radius:5px 5px 0 0;transform-origin:bottom center;animation:allotment-grow 620ms cubic-bezier(.16,.83,.32,1.02) both;animation-delay:var(--bar-delay);box-shadow:0 2px 7px #12305012}
.allotment-bar.warm{background:linear-gradient(180deg,#ee6650,#e84a44)}
.allotment-bar.gold{background:linear-gradient(180deg,#f1bc25,#e5a800)}
.allotment-bar.green{background:linear-gradient(180deg,#32aa69,#238b58)}
.allotment-value{position:absolute;left:50%;bottom:100%;transform:translateX(-50%);font-size:10px;font-weight:750;color:#53657c;padding-bottom:4px;white-space:nowrap}
.allotment-xlabel{height:23px;display:flex;align-items:flex-end;justify-content:center;white-space:nowrap;font-size:10px;color:#728199;font-variant-numeric:tabular-nums}
.allotment-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid #edf1f7;padding:13px 22px 17px;font-size:11px;color:#7b8da3}
@keyframes allotment-grow{from{transform:scaleY(0);opacity:.25}to{transform:scaleY(1);opacity:1}}
@media(max-width:980px){.allotment-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.allotment-chart{min-width:680px}}
@media(max-width:540px){.allotment-controls{width:100%;justify-content:space-between}.allotment-summary{gap:8px;padding:12px}.allotment-summary strong{font-size:19px}.allotment-footer{padding:10px 14px}}
@media(prefers-reduced-motion:reduce){.allotment-bar{animation:none}}

/* V9 multi-district report dropdown, confined to the report screen. */
.report-district-picker{position:relative;width:100%;border:1px solid #dfe7ef;border-radius:8px;background:#fff;color:#344b65;min-width:0}
.report-district-picker[open]{border-color:#83a6e5;box-shadow:0 0 0 2px #2563eb16}
.report-district-picker>summary{list-style:none;display:block;padding:11px 37px 11px 12px;cursor:pointer;min-height:43px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative}
.report-district-picker>summary::-webkit-details-marker{display:none}
.report-district-picker>summary:after{content:'▾';position:absolute;right:13px;top:9px;font-size:17px;color:#61758b}
.report-district-picker[open]>summary:after{content:'▴'}
.report-district-menu{position:absolute;z-index:40;top:calc(100% + 5px);left:0;right:0;min-width:280px;background:white;border:1px solid #d9e5f5;border-radius:10px;padding:12px;box-shadow:0 12px 35px #16365527}
.report-district-menu input[type=search]{width:100%;height:36px;border:1px solid #e0e7f0;border-radius:7px;padding:7px 10px;font-size:12px}
.report-district-actions{display:flex;justify-content:space-between;gap:8px;margin:9px 0}
.report-district-choices{max-height:235px;overflow-y:auto;border-top:1px solid #edf1f7;padding:6px 0}
.report-district-choice{display:flex;gap:10px;align-items:center;padding:7px 6px;font-size:12px;color:#2c445f;cursor:pointer;border-radius:5px;line-height:1.4}
.report-district-choice:hover{background:#eff5ff}
.report-district-choice input[type=checkbox]{accent-color:#2563eb;flex:0 0 auto;width:15px;height:15px}
.report-district-tip{line-height:1.4;margin:8px 0 0}
.report-district-empty{padding:12px 5px}
