:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#182c46;background:#f1f5fa}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:10px 14px;background:#24549a;color:#fff;font-weight:600}button:hover{filter:brightness(.96)}button:disabled{opacity:.55;cursor:not-allowed}.ghost{background:#ecf2fb;color:#244b76}.danger{background:#aa3340;color:#fff}.muted{color:#698098}.tiny{font-size:12px}.strong{font-weight:700}#shell{display:flex;min-height:100vh}#sidebar{width:238px;flex-shrink:0;background:#10233d;color:#e8f1ff;display:flex;flex-direction:column;padding:20px 12px;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;align-items:center;gap:10px;padding:7px}.brand img{background:#fff;border-radius:8px;object-fit:contain;padding:3px}.brand strong{display:block;font-size:19px}.brand small{display:block;font-size:10px;color:#a2b9d5}.motto{font-size:10px;letter-spacing:1px;color:#8db1e1;margin:16px 9px}.navtitle{letter-spacing:1.2px;font-size:10px;font-weight:700;color:#8aadd5;margin:24px 10px 8px}.nav{background:transparent;color:#dce8f7;text-align:left;padding:12px 13px;margin:2px 0;font-weight:500;width:100%}.nav.active,.nav:hover{background:#2b5180;color:white}.sidebarfoot{margin-top:auto;padding:22px 10px 0;border-top:1px solid #284361;color:#a6b9d3;font-size:12px}.workspace{flex:1;min-width:0}header{padding:18px 28px;background:white;border-bottom:1px solid #dce5f0;display:flex;justify-content:space-between;align-items:center;gap:10px}header strong{display:block;font-size:19px}header span{display:block;font-size:12px;color:#68809e}.headeractions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.headeractions .mode{color:#227351;background:#e0f5eb;border-radius:15px;padding:7px 11px;font-weight:700;font-size:10px}main{max-width:1480px;margin:auto;padding:24px 28px}.notice{background:#fff8e6;border:1px solid #e9d9b2;border-radius:10px;padding:12px 16px;font-size:13px;margin-bottom:22px;line-height:1.5}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}h1{font-size:28px;margin:0 0 4px}h2{font-size:18px;margin:0 0 12px}h3{font-size:16px;margin:0 0 8px}p{line-height:1.5}.card,.panel{background:#fff;border:1px solid #dce5f0;border-radius:14px;padding:20px;margin-bottom:15px;box-shadow:0 2px 8px #19395b07}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.metric{font-weight:800;font-size:30px;margin:8px 0}.grid{display:grid;grid-template-columns:1.3fr 1fr;gap:18px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf0f5;padding:14px 0}.row:first-child{border-top:0}.pill{display:inline-block;background:#eaf0ff;color:#305e9e;border-radius:50px;padding:5px 9px;font-size:12px;font-weight:700}.pill.green{background:#e3f6ec;color:#227252}.pill.yellow{background:#fff2d3;color:#875a12}.actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.stack{display:grid;gap:12px}label{display:block;font-weight:700;font-size:13px;margin:0 0 6px}input,select,textarea{display:block;width:100%;padding:11px;border:1px solid #c7d5e6;border-radius:8px;background:white;color:#182c46}input:focus,select:focus,textarea:focus{outline:2px solid #b4cdf2;outline-offset:1px}input[readonly]{background:#eef3f8;color:#47617d}textarea{min-height:105px;resize:vertical}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.wide{grid-column:1/-1}.muteblock{background:#f3f7fc;border-radius:9px;padding:12px;color:#576e8b}.search{margin:12px 0 18px}.empty{border:1px dashed #cbd7e7;border-radius:12px;padding:35px;text-align:center;color:#607690;background:#fff}.fieldhelp{margin-top:5px;font-size:12px;color:#657b96}.searchresults{max-height:210px;overflow-y:auto;border:1px solid #dce5f0;border-radius:8px;margin-top:5px;padding:5px}.choice{display:block;text-align:left;width:100%;color:#213b59;background:#f4f7fc;border-radius:7px;margin:4px 0}.choice:hover{background:#e5eef9}.choice span{display:block;font-size:12px;color:#607898;font-weight:400;padding-top:4px}.toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:10px 0 20px}.toolbar input{max-width:580px}.details{border:1px solid #dce5f0;border-radius:12px;overflow:hidden;background:white;margin:17px 0}.details summary{font-size:18px;font-weight:800;cursor:pointer;padding:16px 18px}.details .inside{padding:0 18px 16px}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}td,th{padding:12px 10px;border-bottom:1px solid #e7edf5}th{color:#637c98;font-size:12px}dialog{border:0;border-radius:15px;width:min(660px,95vw);max-height:90vh;overflow:auto;box-shadow:0 24px 80px #172e5444;padding:24px}dialog::backdrop{background:#142b46a1}dialog h2{font-size:22px}#toast{position:fixed;bottom:20px;right:20px;background:#142d49;color:white;padding:12px 20px;border-radius:9px;max-width:450px;display:none;z-index:10}#toast.visible{display:block}.hint{font-size:12px;color:#59738e;margin:3px 0 11px}.callout{border-left:4px solid #24549a;background:#f2f7fc;padding:13px 16px;margin:14px 0;border-radius:5px}.checkboxline{display:flex;gap:10px;align-items:center;margin:10px 0;font-weight:500}.checkboxline input{width:auto}.buttonlink{color:#24549a;background:none;padding:0;text-decoration:underline;font-weight:500}.counters{font-variant-numeric:tabular-nums} @media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}#sidebar{width:210px}header{padding:16px}}@media(max-width:700px){#shell{display:block}#sidebar{height:auto;width:100%;position:relative;padding:10px}.brand img{width:38px;height:38px}.navtitle,.motto,.sidebarfoot{display:none}.nav{display:inline-block;width:auto;margin:4px;padding:8px;font-size:13px}main{padding:14px}header{display:block}.headeractions{margin-top:10px}.stats,.formgrid{grid-template-columns:1fr}.wide{grid-column:auto}.pagehead,.toolbar{flex-wrap:wrap}h1{font-size:24px}}

/* Dev 3.6 unified Design v11 extensions */
.hero{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(112deg,#163859,#275987);color:white;border-radius:15px;padding:20px 24px;margin-bottom:16px;flex-wrap:wrap}
.hero b{font-size:24px}.hero p{margin:6px 0;color:#d7e9fa}.hero .pill{white-space:nowrap}
.details summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer}.details summary::-webkit-details-marker{display:none}.details summary:after{content:'⌄';font-size:24px;color:#235c9a;line-height:1}.details:not([open]) summary:after{transform:rotate(-90deg)}
.details[open] summary{border-bottom:1px solid #e8edf5}.details .inside{padding:18px}
.stats .card.kpi{padding:16px}.kpi span{display:block;font-size:12px;color:#6b7c91}.kpi strong{font-size:29px;display:block;margin:7px 0}
.progressbar{height:10px;border-radius:8px;background:#e5edf7;overflow:hidden;margin:10px 0}.progressbar>div{height:100%;background:#3279c5}
.foldertree{border:1px solid #dae6f3;border-radius:9px;background:#f5f8fc;padding:13px;margin:12px 0;font-size:13px}.folder{margin:9px 0 5px 20px;color:#4a6582}
@media(max-width:700px){.hero{padding:16px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Dev 3.7: visit close-out, signature, material rows, project documents and billing tracker */
.report-head{display:flex;align-items:center;justify-content:space-between}.report-layout .card{padding:16px}
.report-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:16px;font-size:13px}
.report-overview strong{display:block;color:#5e738b;font-size:11px;text-transform:uppercase;letter-spacing:.5px}
.material-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(75px,.6fr) minmax(75px,.6fr) minmax(0,1.2fr) 38px;align-items:end;gap:7px;padding:9px 0;border-bottom:1px solid #e6eef6}
.material-row label{font-size:11px}.material-row button{align-self:end;padding:10px}.sigbox{border:1px solid #aebfd3;border-radius:10px;background:repeating-linear-gradient(0deg,#fff,#fff 29px,#f8fbff 30px);overflow:hidden}.sigbox canvas{display:block;width:100%;height:165px;touch-action:none;cursor:crosshair}.sig-saved{padding:9px;border:1px solid #cbd8e8;border-radius:8px;margin:12px 0}.sig-saved img{display:block;max-height:140px;max-width:100%;background:white}.bill-tablewrap{padding:0;max-width:100%}.bill-tracker{min-width:2400px;white-space:normal}.bill-tracker td{min-width:105px;max-width:230px;vertical-align:top}.bill-tracker th{min-width:105px;background:#eef3fa;position:sticky;top:0;z-index:1}.bill-tracker th:nth-child(2){min-width:160px}.bill-tracker .numeric{text-align:right;white-space:nowrap}.bill-ready{background:#e7f7ec}.billing-result{padding:15px;border:1px solid #c5d6e9;border-radius:8px;margin:16px 0;display:flex;gap:20px;justify-content:space-between;font-size:18px}.billing-result strong{font-size:23px}
dialog:has(.report-layout){width:min(950px,96vw)}dialog:has(#projectFolderForm),dialog:has(#projectDocForm){width:min(680px,96vw)}
@media(max-width:700px){.material-row{grid-template-columns:1fr 1fr}.material-row>div:first-child{grid-column:1/-1}.material-row>div:nth-child(4){grid-column:1/-1}.report-overview{grid-template-columns:1fr}}

/* Dev 3.8 — per-system checklist and external support case */
.checklist-group{border:1px solid #dde8f4;border-radius:10px;margin:14px 0;overflow:hidden}
.checklist-group h4{margin:0;padding:11px 13px;background:#edf4fb;color:#274564;font-size:13px}
.checklist-item{padding:11px 13px;border-top:1px solid #e7eef7}
.checklist-item:first-of-type{border-top:0}
.check-title label{font-size:13px;font-weight:600;line-height:1.5;margin-bottom:8px}
.check-progress{border:1px solid #d6e5f5;background:#f2f7fd;border-radius:8px;padding:9px 12px;margin:10px 0;font-size:13px;font-weight:700}

/* Dev 3.8.2 — only checkmarks, with one Diagnostic Notes field */
.check-label{display:flex;align-items:flex-start;gap:12px;cursor:pointer;margin:0;line-height:1.5}
.check-label input[type="checkbox"]{appearance:auto;display:block;flex:0 0 auto;width:21px;height:21px;margin:1px 0 0;padding:0;accent-color:#227553;cursor:pointer}
.check-label span{flex:1}
.checklist-item.check-passed{background:#f0faf3}
.checklist-item.check-passed .check-label span{color:#216441}

/* Dev 3.8.3 — visit timestamps and read-only computed time */
#actualTeamHours{font-variant-numeric:tabular-nums;background:#eef5fc;font-weight:700;color:#183b62}
#workStart,#workEnd{font-variant-numeric:tabular-nums}

/* Dev 3.8.4: parent-client service catalog editor */
.service-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 12px;background:#f5f8fc;border-radius:10px;padding:10px 16px;margin:12px 0 18px}
.service-options .checkboxline{margin:7px 0;font-size:12px}
.service-custom-row{border:1px solid #dbe6f3;border-radius:9px;padding:13px;margin:9px 0;background:#f8fbff}
.service-custom-row>div{margin-bottom:10px}
.service-custom-row textarea{min-height:85px}
@media(max-width:700px){.service-options{grid-template-columns:1fr}}

/* Dev 3.8.5 ticket photos */
.ticket-photo-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px}
.ticket-photo{margin:0;border:1px solid #dfe3ea;border-radius:10px;overflow:hidden;padding:12px;min-width:0}
.photo-image{min-height:130px;display:flex;align-items:center;justify-content:center;background:#f5f7fa;margin-bottom:10px}
.photo-image img{max-width:100%;max-height:220px;object-fit:contain}
.ticket-photo figcaption b{display:block;overflow-wrap:anywhere}.ticket-photo textarea{width:100%;min-height:78px}.ticket-photo small{display:block;margin:8px 0}

/* Dev 3.8.6: Dashboard charts and unified Administration / Billing */
.dashboard-charts,.billing-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.chart-card{min-width:0;display:flex;flex-direction:column;gap:10px}.chart-card>button{align-self:flex-start;margin-top:auto}
.chart-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.chart-heading h2{margin:5px 0}.eyebrow{color:#617890;font-size:10px;letter-spacing:1.4px;font-weight:800}
.chart-composition{display:grid;grid-template-columns:minmax(120px,180px) 1fr;gap:18px;align-items:center}
.ticket-assignment-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ticket-assignment-totals>div{display:flex;flex-direction:column;gap:6px;border:1px solid #dbe6f5;border-radius:12px;padding:12px;background:#f3f7fd;font-size:12px;overflow-wrap:anywhere}.ticket-assignment-totals strong{font-size:28px;color:#24549a;line-height:1.15}
.phone-banner{padding:18px;border-radius:12px;background:#e9f2ff;border-left:4px solid #24549a;margin-bottom:18px}.phone-banner p{margin-bottom:0}.phone-hours{max-width:680px}.phone-hours-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(100px,140px) 12px minmax(100px,140px);gap:10px;align-items:center;padding:7px 0;border-bottom:1px solid #e5edf7}.phone-hours-row .checkboxline{margin:0}.phone-hours-row input{min-width:0}.phone-areas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.phone-area{border:1px solid #dbe6f5;border-radius:12px;padding:16px;overflow-wrap:anywhere}.phone-area .pagehead{margin-bottom:8px;align-items:flex-start}.phone-area h3{margin:0}.phone-contact-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin-bottom:12px}.phone-contact-row input{min-width:0}.phone-preview-result{margin-top:18px;border-top:1px solid #dbe6f5;overflow-wrap:anywhere}.phone-error{color:#a32424;font-weight:600}#phoneAssistant [aria-invalid="true"]{border:2px solid #b42929}#phoneReadiness li{margin:7px 0}#phoneAssistant form>.card{box-shadow:none}#phoneAssistant .actions{margin-top:12px}#phoneAreaForm h3{margin-top:20px}@media(max-width:700px){.phone-areas{grid-template-columns:1fr}.phone-hours-row{grid-template-columns:minmax(90px,1fr) minmax(78px,1fr) 8px minmax(78px,1fr);gap:5px;font-size:12px}.phone-hours-row input{padding:7px 2px}.phone-contact-row{grid-template-columns:1fr 1fr}.phone-contact-row button{grid-column:1/-1;justify-self:start}}
.dashboard-ring{display:block;width:100%;max-width:180px;height:auto;flex-shrink:0}.ring-number{font-size:22px;fill:#183953;font-weight:800}.ring-label{font-size:9px;fill:#617890}
.chart-legend{padding:0;margin:0;list-style:none;font-size:12px}.chart-legend li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid #edf1f6}.chart-legend li span{display:flex;align-items:center;gap:7px}
.chart-summary{font-weight:700;margin:4px 0}.project-summary{display:flex;align-items:center;gap:12px}.project-summary .dashboard-ring{max-width:145px}.project-progress-list{max-height:285px;overflow:auto;padding-right:4px}.project-progress-row{padding:10px 0;border-bottom:1px solid #edf1f6}.project-progress-row>div{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.project-progress-row button{text-align:left;overflow-wrap:anywhere}.project-progress-row strong{white-space:nowrap}.project-progress-row small{display:block;color:#607690;margin-top:4px}
.chart-bar{margin:12px 0}.chart-bar>div{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}.chart-bar small{font-weight:400;color:#607690}
.chart-bars progress,.project-progress-row progress{display:block;width:100%;height:11px;margin:7px 0 0;border:0;border-radius:8px;overflow:hidden;background:#e6edf5;appearance:none}.chart-bars progress::-webkit-progress-bar,.project-progress-row progress::-webkit-progress-bar{background:#e6edf5;border-radius:8px}.chart-bars progress::-webkit-progress-value{background:#2f6fbb;border-radius:8px}.project-progress-row progress::-webkit-progress-value{background:#22805b;border-radius:8px}.chart-bars progress::-moz-progress-bar{background:#2f6fbb}.project-progress-row progress::-moz-progress-bar{background:#22805b}
.chart-number{font-size:28px;font-weight:800;margin:10px 0}.chart-number span{font-size:12px;font-weight:400;color:#607690}.billing-chart-grid>.card{box-shadow:none;margin:0}.billing-navigation{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 22px}.billing-navigation .selected{background:#24549a;color:white}#billingContent{min-width:0}
@media(max-width:1000px){.dashboard-charts{grid-template-columns:1fr}}@media(max-width:700px){.billing-chart-grid{grid-template-columns:1fr}.chart-composition{grid-template-columns:minmax(90px,125px) 1fr;gap:12px}.chart-card{padding:16px}.project-summary .dashboard-ring{max-width:110px}.chart-legend{font-size:11px}}

[hidden]{display:none!important}.accessGate{min-height:100vh;display:grid;place-items:center;background:#102b50;padding:24px}.accessCard{background:white;border-radius:18px;max-width:520px;padding:32px;text-align:center;box-shadow:0 24px 70px #0003}.accessCard button{margin:8px}.cloudSaving #view,.cloudSaving #sidebar,.cloudSaving dialog{pointer-events:none;opacity:.7}#cloudStatus{max-width:240px;white-space:normal}.cloudSaving #cloudStatus{color:#946500}@media(max-width:700px){.headeractions{flex-wrap:wrap}#currentIdentity{font-size:12px}}

.client-group>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;min-height:42px;flex-wrap:wrap}.client-group>summary::-webkit-details-marker{display:none}.client-group>summary:before{content:'▸';font-size:23px;color:#24549a;line-height:1}.client-group[open]>summary:before{content:'▾'}.client-group-name{font-size:20px;font-weight:700;overflow-wrap:anywhere}.client-group>summary .muted{margin-left:auto}.client-group[open]>summary{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid #e8edf5}.client-group>summary:focus-visible{outline:2px solid #24549a;outline-offset:5px;border-radius:3px}

.client-select-box{width:18px!important;height:18px;margin:0 8px 0 0;flex:0 0 18px;accent-color:#24549a}.client-location-label{display:flex;align-items:center;gap:8px}#clientBulkTools[hidden]{display:none}

.jdf-user-email{display:flex;align-items:stretch;min-width:0;border:1px solid #c7d4e6;border-radius:8px;overflow:hidden;background:#fff}.jdf-user-email:focus-within{outline:2px solid #24549a;outline-offset:1px}.jdf-user-email input{flex:1;min-width:0;width:0;border:0!important;border-radius:0;outline:none!important}.jdf-user-email span{display:flex;align-items:center;flex:none;padding:10px;background:#edf2f8;color:#23456a;font-size:14px;white-space:nowrap}

/* Owner-only implementation and monitoring notes never flash for other users. */
body:not(.jdf-owner) [data-owner-monitor]{display:none!important}
body.jdf-field-user #installApp{display:none!important}

.week-toolbar,.week-controls,.week-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.week-controls{justify-content:flex-start}.week-controls label{font-size:11px;margin-bottom:3px}.week-controls input,.week-controls select{padding:8px;min-width:170px}.week-heading{margin:20px 0 12px}.week-heading h2{margin:0}.week-scroll{overflow:auto;max-height:70vh;border:1px solid #dce5f0;border-radius:12px;background:#fff}.week-grid{table-layout:fixed;min-width:1120px;width:100%;border-collapse:separate;border-spacing:0}.week-grid th,.week-grid td{border-right:1px solid #e2e9f2;border-bottom:1px solid #e2e9f2;vertical-align:top;padding:8px}.week-grid thead th{position:sticky;top:0;z-index:2;background:#17395f;color:#fff;font-size:13px;text-align:center;padding:12px 8px}.week-grid thead th:first-child{z-index:3;left:0;width:190px;text-align:left}.week-grid tbody th{position:sticky;left:0;z-index:1;background:#f7faff;width:190px;vertical-align:middle;color:#17395f;font-size:13px}.week-grid small{display:block;font-size:11px;font-weight:400;line-height:1.45;margin-top:4px}.week-grid thead small{color:#d4e3f8}.week-grid td.weekend{background:#f5f7fb}.week-grid thead .weekend{background:#385574}.week-cell{width:100%;min-height:92px;display:flex;flex-direction:column;justify-content:center;gap:5px;border-radius:8px;padding:10px;text-align:left;font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;font-weight:400;border:1px solid transparent}.week-cell strong{font-size:13px}.week-cell span{font-size:11px}.week-cell:hover{filter:none}.week-cell:focus-visible{outline:3px solid #2c69b7;outline-offset:1px}.week-empty{background:#fff;color:#6d7d94;border:1px dashed #ced9e7;align-items:center}.week-plus{font-size:22px!important;line-height:1}.week-project{background:#e2edff;color:#183e73}.week-bk{background:#fff0da;color:#754707}.week-ach{background:#e2f2eb;color:#18583e}.week-service{background:#ede7f9;color:#574179}.week-reserve{background:#fff7ce;color:#735f05}.week-off{background:#edf0f4;color:#576474}.week-legend{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 22px}.week-legend span{padding:5px 9px;font-size:11px;border-radius:5px}.week-locations summary{font-weight:700;cursor:pointer}.week-day-picker{border:0;padding:0;margin:18px 0;display:flex;flex-wrap:wrap;gap:6px}.week-day-picker legend{font-weight:700;font-size:13px;margin-bottom:8px}.week-day-picker label{border:1px solid #c7d5e6;border-radius:7px;padding:8px;display:flex;gap:5px;align-items:center;font-size:12px;margin:0}.week-day-picker input{width:auto}.week-day-picker small{display:block;font-size:10px;font-weight:400}#weekAssignment>label{margin-top:12px}@media(max-width:700px){.week-grid{min-width:1020px}.week-grid thead th:first-child,.week-grid tbody th{width:155px}.week-toolbar{padding:12px}.week-controls{gap:6px}.week-controls input,.week-controls select{min-width:150px}.week-heading h2{font-size:17px}}

.jdf-language-control{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.jdf-language-control label{margin:0;font-size:12px}.jdf-language-control select{width:auto;max-width:155px;min-height:42px;padding:8px;font-size:14px}.accessCard .jdf-language-control{justify-content:center;margin:16px 0}.headeractions>.jdf-language-control{flex-shrink:0}@media(max-width:700px){.headeractions{gap:8px}.jdf-language-control select{min-height:44px;max-width:145px}.jdf-language-control{max-width:100%}}

#preferencesDialog{width:min(420px,calc(100vw - 32px));box-sizing:border-box}#preferencesDialog select{min-height:44px}.ticket-cancelled{border-left:4px solid #a84838;padding:10px 12px;margin:10px 0;background:#fff3ef;color:#803728;border-radius:6px}.ticket-cancelled small{overflow-wrap:anywhere}.cancelled-stop{background:#f8f5f4}.cancelled-stop>div>b{color:#725e58}.row .actions{flex-wrap:wrap}

/* Required report fields and confirmed submission progress. */
.report-field-error{border:2px solid #b42318!important;background:#fff4f2!important;outline-color:#b42318!important;scroll-margin-block:90px}
.report-field-message{color:#a61b12;font-size:13px;font-weight:600;line-height:1.45;margin:6px 0 14px}
.report-validation{background:#fff4f2;border:1px solid #e59a91;border-left:5px solid #b42318;border-radius:8px;padding:14px;margin:0 0 16px;color:#8f2018;display:grid;gap:10px}
.report-validation button{justify-self:start;color:#8f2018;background:#ffe4df}
.report-progress{position:sticky;top:0;z-index:4;display:flex;align-items:center;gap:12px;padding:16px;background:#e9f2ff;border:1px solid #86aee0;border-radius:10px;color:#163f75;font-weight:700;margin-bottom:16px;box-shadow:0 3px 12px #163f7526}
.report-spinner,.report-button-busy::before{width:22px;height:22px;flex:0 0 22px;border:3px solid currentColor;border-right-color:transparent;border-radius:50%;animation:report-spin .8s linear infinite}
.report-button-busy{display:inline-flex;align-items:center;gap:9px;opacity:1!important}.report-button-busy::before{content:'';width:17px;height:17px;flex-basis:17px;border-width:2px}
.report-busy canvas{pointer-events:none}.report-busy button:disabled{cursor:wait}
@keyframes report-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.report-spinner,.report-button-busy::before{animation:none;border-style:dotted}}

/* Visible response for mouse, touch and keyboard activation. */
#shell button:enabled:active,#modal button:enabled:active{transform:translateY(1px);filter:brightness(.86);box-shadow:inset 0 2px 4px #102b5033}
#shell button:focus-visible,#modal button:focus-visible{outline:3px solid #6ca5eb;outline-offset:3px}
.cloudSaving #modal:has(.report-busy){opacity:1}

/* Billing rows remain one line even for lengthy descriptions and addresses. */
.bill-tablewrap{max-height:70vh;overflow:auto;overscroll-behavior:contain}
.bill-tracker{table-layout:fixed;width:4280px;min-width:4280px}
.bill-tracker td{height:57px;padding:8px 10px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:none;min-width:0;line-height:20px}
.bill-tracker th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:none;height:45px}
.bill-description{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;padding:4px 0;background:transparent;color:#24549a;text-decoration:underline;text-underline-offset:3px;font-weight:400}
.bill-full-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}

/* Dispatch planner keeps operational visits and map details readable on phones. */
.route-stop{align-items:flex-start;gap:16px}.route-stop>div:first-child{min-width:0;overflow-wrap:anywhere}.route-stop .actions{flex-shrink:0}
.route-ticket-picker{max-height:280px;overflow:auto;border:1px solid #d7e3f2;border-radius:10px;padding:10px;margin:12px 0}.route-ticket-picker .checkboxline{align-items:flex-start;padding:9px}.route-ticket-picker small{display:block;margin-top:4px;color:#62748a}.route-ticket-picker input{flex-shrink:0}
.route-planner{margin:20px 0;padding:16px;border:1px solid #d7e3f2;border-radius:12px;background:#f5f8fc}.route-map-summary{display:flex;justify-content:space-between;gap:12px;margin:16px 0}.route-map-image{display:block;width:100%;max-width:640px;height:auto;border-radius:8px}.route-map-stops{list-style:none;padding:0}.route-map-stops li{padding:8px 0;border-bottom:1px solid #d7e3f2}.route-map-stops span{display:block;font-size:13px;margin-top:3px}.route-map-link{display:inline-block;padding:8px 12px;border-radius:8px;background:#eaf1fc;color:#24549a;text-decoration:none;font-weight:600}.route-planner textarea{width:100%;min-height:180px}.route-planner p[role=status]{overflow-wrap:anywhere}
@media(max-width:680px){.route-stop{display:block}.route-stop .actions{margin-top:10px}.route-map-summary{display:block}.route-map-summary span{display:block;margin-top:6px}.route-planner{padding:12px}}

/* Assigned crew stays visible beside the ticket workflow state. */
.ticket-assignment{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:0 0 14px}.ticket-assignment-names{min-width:0;overflow-wrap:anywhere;font-weight:600}.ticket-assignment-names small{font-weight:400;color:#657b96}

/* Visible sign-in progress, including the initial session restore. */
.accessCard{width:min(520px,100%)}.accessSpinner{width:36px;height:36px;border:4px solid #dce8f7;border-top-color:#24549a;border-radius:50%;margin:24px auto 12px;animation:access-spin .8s linear infinite}.accessHint{font-size:13px;color:#526b88;margin:8px 0 18px}.accessCard #loginGoogle[aria-busy="true"]{cursor:wait;opacity:1;background:#e9f0fa;color:#244b76}.accessCard #loginGoogle:not(:disabled):active{transform:translateY(1px)}@keyframes access-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.accessSpinner{animation:none;border-style:dotted}}

/* Daily dispatch: areas, team availability and editable map stops. */
.dispatch-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end}.dispatch-board{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px}.dispatch-board>section{min-width:0}.dispatch-zone summary{font-size:16px}.dispatch-visit{padding:14px 0;border-bottom:1px solid #e1e9f3;overflow-wrap:anywhere}.dispatch-visit p{margin:5px 0}.dispatch-visit button{margin-top:6px}.dispatch-route-card .route-stop{font-size:13px}.dispatch-route-card .route-stop .actions{display:none}.dispatch-availability{display:block;font-size:12px;color:#526b88;margin-top:4px}.dispatch-warning{color:#9b3c00!important}.dispatch-dialog{width:min(1120px,96vw)}.dispatch-team{border:1px solid #d7e3f2;border-radius:10px;margin:18px 0;padding:14px}.dispatch-team legend{font-weight:700}.dispatch-team #routeTeamChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:220px;overflow:auto}.dispatch-team .checkboxline{align-items:flex-start;margin:5px 0}.dispatch-team input{flex-shrink:0}.dispatch-editor-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.dispatch-editor-columns>section{min-width:0}.dispatch-picker-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dispatch-picker-zone{margin:8px 0;border-bottom:1px solid #d7e3f2;padding-bottom:8px}.dispatch-picker-zone summary{cursor:pointer;font-weight:700;padding:8px 0}.dispatch-picker-zone>button{font-size:12px;padding:6px 9px}.dispatch-selected-stop{padding:12px 0;border-bottom:1px solid #d7e3f2;overflow-wrap:anywhere}.dispatch-selected-stop .actions{gap:5px}.dispatch-selected-stop button{font-size:12px;padding:8px}.dispatch-editor .route-ticket-picker{max-height:340px}.dispatch-editor .route-planner{margin:0}.dispatch-zone-editor{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:1px solid #d7e3f2;border-radius:10px;padding:14px;margin:12px 0}.dispatch-zone-editor button{justify-self:start}.route-map-stops button{font-size:12px;margin-top:6px}
@media(max-width:850px){.dispatch-board,.dispatch-editor-columns{grid-template-columns:1fr}.dispatch-toolbar{grid-template-columns:1fr 1fr}.dispatch-editor .route-planner{margin-top:12px}}@media(max-width:480px){.dispatch-toolbar,.dispatch-team #routeTeamChoices,.dispatch-zone-editor,.dispatch-picker-toolbar{grid-template-columns:1fr}.dispatch-zone-editor{padding:10px}.dispatch-dialog{padding:15px}.dispatch-picker-toolbar .wide{grid-column:auto}}

.customer-map-dialog{width:min(1500px,98vw);max-width:98vw;height:94vh;max-height:94vh;padding:0;border:0;border-radius:16px;overflow:hidden;color:#153354}.customer-map-shell{height:100%;display:flex;flex-direction:column;background:#f4f7fb}.customer-map-header{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;background:white;border-bottom:1px solid #dbe5f1}.customer-map-header h2{margin:0}.customer-map-header p{margin:4px 0 0;color:#617893;font-size:13px}.customer-map-header button{font-size:24px;padding:4px 14px}.customer-map-filters{display:grid;grid-template-columns:1.4fr repeat(5,minmax(120px,1fr));gap:10px;padding:12px 18px}.customer-map-filters label,.customer-map-route-preview label{font-size:12px;font-weight:700;min-width:0}.customer-map-filters input,.customer-map-filters select{width:100%;margin:5px 0 0;min-width:0;padding:9px}.customer-map-toolbar{padding:0 18px 8px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.customer-map-toolbar button{padding:7px 10px;font-size:12px}.customer-map-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px}.customer-map-legend span{display:flex;align-items:center;gap:5px}.map-dot{display:inline-block;width:11px;height:11px;border-radius:50%;flex-shrink:0}.map-dot.pending{background:#b35b00}.map-dot.selected{background:#24549a}.map-dot.planned{background:#7952a3}.map-dot.neutral{background:#64748b}.customer-map-toolbar .checkboxline{font-size:12px;margin:0}.customer-map-progress{font-size:12px;padding:0 18px 8px;min-height:24px}.customer-map-error{color:#a23019;background:#fff2ec;margin:0;padding:0 18px;font-size:13px}.customer-map-error:empty{display:none}.customer-map-error:not(:empty){padding-top:8px;padding-bottom:8px}.customer-map-main{flex:1;min-height:230px;display:grid;grid-template-columns:minmax(0,1fr) 320px;border-block:1px solid #dbe5f1}.customer-map-canvas{height:100%;min-height:230px;background:#e7edf3;position:relative}.customer-map-sidebar{min-height:0;overflow:hidden;background:white}.customer-map-location-list{height:100%;overflow:auto;padding:0 13px}.customer-map-location{border-bottom:1px solid #dbe5f1;padding:12px 0}.customer-map-location p{font-size:12px;margin:5px 0;overflow-wrap:anywhere}.customer-map-location-title{display:flex;align-items:center;gap:7px;background:none;color:#173d67;text-align:left;border:0;padding:0;font-size:13px}.customer-map-location-title:hover{color:#24549a;background:none;text-decoration:underline}.customer-map-ticket{display:flex;gap:7px;align-items:flex-start;font-size:12px;margin:9px 0}.customer-map-ticket input{width:auto;margin:2px 0 0;flex-shrink:0}.customer-map-ticket small,.customer-map-stop small{display:block;font-size:11px;color:#617893}.customer-map-selection{padding:8px 18px;background:white;max-height:200px;overflow:auto}.customer-map-selection-title{display:flex;align-items:center;gap:16px}.customer-map-selection-title h3{margin:0;font-size:15px}.customer-map-selection-title button{font-size:12px;padding:4px 8px}.customer-map-selected{display:flex;gap:7px;overflow:auto;padding:7px 0}.customer-map-stop{display:flex;align-items:center;gap:4px;flex-shrink:0;background:#eef4fb;border:1px solid #d6e2f1;border-radius:8px;padding:6px;font-size:12px}.customer-map-stop button{padding:5px;font-size:13px}.customer-map-route-preview{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.customer-map-route-preview label{flex:1;max-width:480px}.customer-map-route-preview input{margin:3px 0 0;padding:7px;min-width:180px;width:100%}.customer-map-route-preview button{font-size:12px;padding:8px}.customer-map-route-preview span{font-size:12px}.customer-map-footer{display:flex;align-items:center;justify-content:space-between;padding:10px 18px;gap:12px;background:white;border-top:1px solid #dbe5f1}.customer-map-footer p{font-size:12px;margin:0}.customer-map-footer .actions{flex-shrink:0}.customer-map-info{max-width:280px;font-family:Arial,sans-serif;color:#153354}.customer-map-info h3{margin:2px 0 7px;font-size:15px}.customer-map-info p{font-size:13px;margin:6px 0}.customer-map-info a{display:inline-block;margin-top:8px;color:#24549a}.customer-map-info .customer-map-ticket{font-size:13px}.customer-map-canvas button{color:initial}.customer-map-canvas img{max-width:none}.customer-map-canvas .gm-style .gm-style-iw-c{padding:12px!important}.customer-map-entry{margin:8px 0 16px}
@media(max-width:1100px){.customer-map-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-map-main{grid-template-columns:minmax(0,1fr) 280px}.customer-map-footer p{max-width:350px}}
@media(max-width:650px){.customer-map-dialog{height:96dvh;max-height:96dvh;width:98vw}.customer-map-shell{overflow:auto}.customer-map-header{padding:10px 12px;position:sticky;top:0;z-index:2}.customer-map-header h2{font-size:19px}.customer-map-filters{grid-template-columns:1fr 1fr;padding:10px;gap:7px}.customer-map-toolbar{padding:0 10px 8px}.customer-map-legend{gap:7px;font-size:11px}.customer-map-main{display:flex;flex-direction:column;flex:none;min-height:550px}.customer-map-canvas{height:330px;min-height:330px}.customer-map-sidebar{height:220px}.customer-map-location-list{display:flex;gap:15px;padding:0 10px;align-items:start}.customer-map-location-list>p{display:none}.customer-map-location{width:230px;flex-shrink:0}.customer-map-selection{max-height:none;flex-shrink:0;padding:10px}.customer-map-footer{padding:10px;flex-wrap:wrap;position:sticky;bottom:0;z-index:2}.customer-map-footer p{display:none}.customer-map-footer .actions{justify-content:space-between;width:100%}.customer-map-footer button{padding:9px 11px;font-size:12px}.customer-map-progress{padding:0 10px 7px}.customer-map-route-preview label{flex-basis:100%;max-width:none}}

/* Ticket filters share the available role-scoped list with text search. */
.ticket-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,260px);gap:16px;align-items:end}.ticket-toolbar>div{min-width:0}.ticket-toolbar input,.ticket-toolbar select{width:100%;margin-bottom:0}.ticket-filter-count{margin:12px 0 0;font-size:13px;color:#526b88}@media(max-width:600px){.ticket-toolbar{grid-template-columns:1fr;gap:10px}}

/* Dedicated map and routes module. */
.maps-route-toolbar{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.maps-route-toolbar label{min-width:180px}.maps-route-toolbar p{margin:5px 0}.maps-route-toolbar>div{flex:1}.maps-route-cards{display:flex;gap:10px;overflow:auto;margin:0 0 15px;padding-bottom:3px}.maps-route-card{min-width:210px;max-width:320px;text-align:left;white-space:normal;flex-shrink:0;border:2px solid transparent}.maps-route-card>b,.maps-route-card>span,.maps-route-card>small{display:block;margin:3px 0}.maps-route-card.selected{border-color:#24549a;background:#dceaff}.maps-route-summary{display:flex;justify-content:space-between;align-items:center;gap:15px}.maps-route-summary h2{margin:0 0 8px}.maps-route-summary p{margin:7px 0}.customer-map-embedded{width:100%;max-width:100%;height:850px;max-height:none;border:1px solid #dbe5f1}.customer-map-embedded .customer-map-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-map-embedded .customer-map-header{display:none}.customer-map-embedded .customer-map-main{grid-template-columns:minmax(0,1fr) 290px}.customer-map-embedded .customer-map-footer .actions{flex-shrink:1}@media(max-width:650px){.maps-route-summary{display:block}.customer-map-embedded{height:auto}.customer-map-embedded .customer-map-shell{overflow:visible}.customer-map-embedded .customer-map-filters{grid-template-columns:1fr 1fr}.customer-map-embedded .customer-map-main{display:flex}.customer-map-embedded .customer-map-footer{position:static}.customer-map-embedded .customer-map-footer .actions{width:auto}}

/* Published technician routes: navigation without planning controls. */
.technician-route-map{height:680px}.technician-map-toolbar{display:flex;align-items:end;gap:12px;padding:16px 20px;border-bottom:1px solid #dbe5f1}.technician-map-toolbar label{flex:1;max-width:600px}.technician-map-crew{display:block;color:#64748b;margin:4px 0}.technician-navigation:empty{display:none}.technician-navigation{padding:10px 20px}.technician-route-map .customer-map-footer{min-height:38px}.technician-route-map .customer-map-location-title{white-space:normal;text-align:left}.technician-route-map .customer-map-location a{display:inline-block;padding:6px 0}@media(max-width:650px){.technician-route-map{height:auto}.technician-map-toolbar{flex-wrap:wrap;padding:12px}.technician-map-toolbar label{flex-basis:100%}.technician-map-toolbar button{flex:1}.technician-route-map .customer-map-canvas{height:350px;min-height:350px}.technician-route-map .customer-map-sidebar{height:auto;max-height:450px}.technician-route-map .customer-map-location-list{display:block;max-height:450px}.technician-route-map .customer-map-location{width:100%;min-width:0}.technician-route-map .customer-map-footer{padding:12px}.technician-navigation{padding:12px}}

/* Ticket reference attachments, separate from work-report photos. */
.ticket-references{margin:16px 0;padding:16px}.ticket-reference-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.ticket-reference-card{padding:12px;border:1px solid #dbe5f1;border-radius:10px;min-width:0;display:flex;flex-direction:column;gap:8px}.ticket-reference-card b{overflow-wrap:anywhere}.ticket-reference-card img{width:100%;height:180px;object-fit:contain;background:#f4f7fb;border-radius:6px}.ticket-reference-document{height:85px;display:grid;place-items:center;font-size:38px;background:#f4f7fb}.ticket-reference-card .actions{margin-top:auto;flex-wrap:wrap}.ticket-reference-pdf{width:100%;height:480px;border:1px solid #dbe5f1}.ticket-reference-card:has(.ticket-reference-pdf){grid-column:1/-1}[data-reference-error]{color:#b91c1c}[data-reference-error]:empty,[data-reference-status]:empty{display:none}@media(max-width:600px){.ticket-reference-grid{grid-template-columns:1fr}.ticket-references{padding:12px}.ticket-reference-card .actions button{flex:1}}

.ticket-reference-card.reference-expanded{grid-column:1/-1}.reference-expanded img{height:auto;max-height:65vh;object-fit:contain}

/* Multiple daily destinations and shared weekly team assignment. */
.week-visit-summary{display:flex;flex-direction:column;gap:3px;padding:7px;border-radius:6px}.week-visit-summary+.week-visit-summary{margin-top:5px;border-top:1px solid #bdcde3}.week-client-name{font-size:11px;color:inherit;opacity:.85}.week-cell:has(.week-visit-summary){padding:4px;justify-content:flex-start}.week-team-picker{border:1px solid #cbd8e9;border-radius:10px;padding:12px;margin:16px 0}.week-team-picker legend{font-weight:700;padding:0 5px}.week-team-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;max-height:240px;overflow:auto}.week-team-list label{display:flex;gap:9px;align-items:center;border:1px solid #d6e1ed;border-radius:7px;padding:8px;margin:0}.week-team-list input{width:auto;flex-shrink:0}.week-team-list small{display:block;font-size:11px;font-weight:400;color:#586c87}.week-visit-editor{border:1px solid #cbd8e9;background:#f7faff;border-radius:10px;padding:14px;margin:14px 0}.week-visit-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.week-visit-heading h3{margin:0;font-size:16px}.week-visit-heading button{padding:7px 11px}.week-visit-editor [hidden]{display:none!important}#weekAssignment input,#weekAssignment select{min-width:0;max-width:100%}#weekAssignment .report-field-error{border:2px solid #bd2439}#weekAddClient{margin-top:2px}@media(max-width:600px){.week-team-list{grid-template-columns:1fr}.week-visit-editor .formgrid{grid-template-columns:1fr}.week-visit-editor{padding:10px}.week-visit-editor .wide{grid-column:auto}}

/* Photos and session controls */
html,body,dialog{overscroll-behavior-y:contain}
.report-photo-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px}
.report-photo-remove{background:#fff0f0;color:#a22636;border:1px solid #dfabb2;min-height:44px;flex-shrink:0;padding:8px 12px}
.daily-photo-comment{display:block;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
.pull-refresh-status{position:fixed;z-index:1000;top:10px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 24px);padding:12px 18px;border-radius:12px;background:#fff;box-shadow:0 4px 20px #183a4f40;color:#193251;text-align:center}
.pull-refresh-status.is-loading:before{content:'';display:inline-block;width:14px;height:14px;border:2px solid #c8d6ea;border-top-color:#24549a;border-radius:50%;animation:report-spin .8s linear infinite;margin-right:8px;vertical-align:middle}
.session-idle-notice{position:fixed;z-index:2000;bottom:14px;left:50%;transform:translateX(-50%);width:min(560px,calc(100vw - 28px));padding:14px;border:1px solid #d2a842;border-radius:12px;background:#fff8df;color:#493500;box-shadow:0 4px 20px #183a4f40;display:flex;gap:10px;align-items:center}
.session-idle-notice[hidden],.pull-refresh-status[hidden]{display:none}
.session-idle-notice button{flex-shrink:0}dialog .session-idle-notice{position:sticky;bottom:0;left:auto;transform:none;width:100%}
@media(max-width:600px){.session-idle-notice{flex-direction:column;align-items:stretch}.report-photo-heading{font-size:14px}}

.photo-image video{width:100%;max-height:300px;background:#142b45;border-radius:8px}.report-media-player{width:min(800px,calc(100vw - 32px));max-height:90vh}.report-media-player video,.report-media-player img{display:block;width:100%;max-height:60vh;object-fit:contain}.report-media-player a{display:inline-block;margin:12px 16px 12px 0}

.fleet-map-controls{margin:12px 0;min-width:0}.fleet-map-controls .row{display:block}.fleet-map-controls button{white-space:normal;overflow-wrap:anywhere;max-width:100%;text-align:left}.fleet-map-controls [data-fleet-list]{max-height:160px;overflow:auto}.fleet-route-assignment{margin:16px 0;min-width:0}.fleet-route-assignment select{display:block;width:100%;max-width:480px;margin:8px 0}.fleet-route-assignment p{overflow-wrap:anywhere}.maps-route-summary{flex-wrap:wrap}.maps-route-summary>.fleet-route-assignment{flex-basis:100%}
/* Additive Billing navigation; financial rows and controls retain their existing styles. */
.bill-tracker{--bill-left-2:130px;--bill-left-3:310px}
.bill-tracker tr[data-bill-created]>td:nth-child(-n+3),.bill-tracker thead th:nth-child(-n+3){position:sticky;left:0;z-index:2;background:#fff}
.bill-tracker tr[data-bill-created]>td:nth-child(2),.bill-tracker thead th:nth-child(2){left:var(--bill-left-2)}
.bill-tracker tr[data-bill-created]>td:nth-child(3),.bill-tracker thead th:nth-child(3){left:var(--bill-left-3);box-shadow:3px 0 3px #10233d15}
.bill-tracker tr.bill-ready>td:nth-child(-n+3){background:#e5f6ec}
.bill-tracker thead th:nth-child(-n+3){z-index:4;background:#edf3f9}
.bill-tracker tr[hidden]{display:none!important}
.bill-tracker .bill-month td{padding:0;height:42px;background:#e5edf7;overflow:visible;white-space:normal}
.bill-month button{position:sticky;left:0;display:block;background:transparent;color:#173c69;text-align:left;margin:0;padding:10px 12px;min-height:42px;width:310px;max-width:80vw;border-radius:0;text-transform:capitalize}
.sidebar-toggle{align-self:flex-end;background:#2b5180;color:#fff;font-size:21px;padding:4px 12px;min-height:36px;margin-bottom:6px}
#sidebar.is-compact{width:70px;padding-left:7px;padding-right:7px}
#sidebar.is-compact .brand{padding:2px}
#sidebar.is-compact .brand img{width:46px;height:46px}
#sidebar.is-compact .brand>div,#sidebar.is-compact .motto,#sidebar.is-compact .navtitle,#sidebar.is-compact .sidebarfoot{display:none}
#sidebar.is-compact .nav{font-size:0;width:100%;padding:12px 0;text-align:center;min-height:44px}
#sidebar.is-compact .nav span{display:none}
#sidebar.is-compact .nav:before{content:attr(data-sidebar-icon);font-size:20px}
@media(max-width:760px){#sidebar.is-compact{width:100%;height:auto;position:relative}#sidebar.is-compact .brand{display:none}#sidebar.is-compact .nav{width:44px;display:inline-block}#sidebar.is-compact .nav[hidden]{display:none}#sidebar.is-compact .sidebar-toggle{align-self:flex-start}}
/* PDF results remain visible beside their actions until the next attempt. */
.report-pdf-result{background:#eaf7ef;border:1px solid #8fc5a0;border-left:5px solid #258044;border-radius:8px;padding:16px;margin:12px 0;color:#174e2a;font-weight:600;line-height:1.5;overflow-wrap:anywhere;scroll-margin-block:20px}.report-pdf-result.is-error{background:#fff4f2;border-color:#e59a91;border-left-color:#b42318;color:#8f2018}

/* Monthly report sections preserve the original record cards and actions. */
.report-month{margin:12px 0}.report-month>summary{cursor:pointer;padding:14px 18px;background:#eaf1fc;color:#214f88;border:1px solid #d5e2f4;border-radius:10px;font-weight:700}.report-month>summary:focus-visible{outline:3px solid #285ba1;outline-offset:2px}.report-month>.card{margin-top:10px}.report-month>.row{padding:12px 8px}

