/* Operations desktop foundation. Loaded after module styles; no backend changes. */
:root{--space-1:6px;--space-2:12px;--space-3:18px;--space-4:24px;--nav-height:52px;--readable-muted:#595959;--focus:#175a9c}
body{font-size:15px;line-height:1.5;background:#fff;color:#252525}
.workspace main{max-width:2200px;padding:22px 28px 32px;min-width:0}
h1,.page-heading h1,.task-editor .page-heading h1{font-size:26px;font-weight:600;line-height:1.25}h2,.panel-heading h2{font-size:18px;font-weight:600}h3{font-size:16px;font-weight:600}
small,.help,.helptext,form small,.form-field .helptext,.muted,.empty,dt{font-size:13px;color:var(--readable-muted);line-height:1.5}
.page-heading{margin-bottom:18px;gap:16px;flex-wrap:wrap}.page-heading p{font-size:15px;margin:5px 0}.eyebrow{font-size:12px;letter-spacing:.06em}.back{font-size:14px;margin-bottom:12px}
.portal-header{height:auto;min-height:62px;padding:8px 28px;gap:22px}.portal-wordmark{flex-shrink:0}.portal-wordmark img{width:220px;height:42px;object-fit:contain}.account{gap:16px;font-size:13px;flex-wrap:wrap;justify-content:flex-end}.portal-header .text-button{font-size:13px;min-height:34px}.account a{white-space:nowrap}
.portal-header .function-search{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:1;max-width:410px;min-width:210px;background:#fff;color:#444;text-align:left;border:1px solid #fff9;padding:8px 12px;font-size:15px;font-weight:400}.function-search kbd{font-size:12px;color:#666;border:1px solid #ccc;padding:1px 5px;border-radius:2px;white-space:nowrap}
.portal-nav{position:sticky;top:0;padding:5px 28px;gap:2px;z-index:40;min-height:50px}.portal-nav>a,.nav-menu>summary{font-size:14px;padding:8px 10px;min-height:38px}.nav-menu>div{min-width:235px}.nav-menu>div a{font-size:15px;padding:11px 15px}.portal-nav a[aria-current],.nav-current>summary{background:#fff;border-bottom:3px solid #b00c0c;color:#7f0909;font-weight:600}.nav-menu>div a[aria-current]{border-bottom:0}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--focus);outline-offset:2px}#main:focus{outline:none}
.skip-link{position:fixed;top:-100px;left:20px;background:#fff;color:#900;padding:12px;z-index:1000}.skip-link:focus{top:8px}
button,.button,.task-form-actions button,.filters button{font-size:14px;line-height:1.4;min-height:38px;padding:8px 14px;border-radius:2px;font-weight:600}button:disabled{cursor:not-allowed}.secondary{background:#f4f4f4;border-color:#aaa;color:#333}.secondary:hover{background:#e7e7e7;border-color:#888}.danger{background:#a50909;border-color:#a50909;color:white}.text-button{font-weight:500}
input,select,textarea,.task-field input,.task-field select,.task-field textarea,.filters input,.filters select{font-size:15px;line-height:1.45;min-height:38px;padding:7px 10px;border-color:#aaa;box-sizing:border-box}input[type=file]{font-size:14px}input[type=checkbox],input[type=radio],.task-field input[type=checkbox]{width:18px;height:18px;min-height:18px;padding:0;vertical-align:middle;flex-shrink:0}label,.task-field label,.form-field label,.filters label{font-size:14px;font-weight:600;line-height:1.4;color:#363636;margin-bottom:6px}textarea,.task-field textarea,.form-field textarea{min-height:110px;height:130px}.helptext{margin-top:5px}
.panel{border:1px solid #d4d4d4;border-radius:2px;margin-bottom:18px}.padded{padding:18px 20px}.panel-heading{padding:12px 16px;background:#f3f3f3;min-height:48px}.panel-heading a{font-size:14px}.panel-heading h2{margin:0}.detail-grid,.dashboard-grid{gap:18px}
.record-row,.task-row,.personal-dashboard .task-row,.dashboard-grid .task-row{font-size:14px;line-height:1.45;padding:12px 14px;gap:14px}.record-row strong,.task-main strong{font-size:15px;font-weight:600}.record-row small,.task-main small{font-size:13px;margin-top:3px}.record-row>*{min-width:0;overflow-wrap:anywhere}.record-row:hover,.task-row:hover{background:#f8f8f8}.task-main{min-width:0;overflow-wrap:anywhere}
.task-list .task-row{grid-template-columns:30px minmax(240px,3fr) minmax(120px,1.2fr) 115px 90px 105px;align-items:center}.task-list .task-column-headings{font-size:13px!important;background:#ededed;position:sticky;top:var(--nav-height);z-index:5}.task-column-headings span,.task-row .status{font-size:13px}.task-row .badge{justify-self:start}.personal-dashboard .task-list .task-row{grid-template-columns:26px minmax(160px,2fr) minmax(85px,1fr) 95px 70px 85px;gap:9px}.personal-dashboard .task-list{overflow:auto}.personal-dashboard .task-list .task-row{min-width:600px}.personal-dashboard .task-column-headings{position:static}
.badge,.task-row .status{display:inline-block;padding:3px 8px;font-size:13px;border-radius:2px;background:#eee;color:#444;white-space:normal}.badge[data-state=complete],.status[data-state=complete]{background:#e8f0e7;color:#28512b}.badge[data-state=pending],.status[data-state=pending],.badge[data-state=warning]{background:#f6edd7;color:#684b13}.badge[data-state=danger],.status[data-state=danger]{background:#f9e3e3;color:#951313}.badge[data-state=open],.status[data-state=open]{background:#e9eef3;color:#274d70}
.table-scroll{max-width:100%;max-height:calc(100vh - 250px);overflow:auto;position:relative;margin-bottom:16px;scrollbar-gutter:stable}.table-scroll table{width:100%;border-collapse:collapse;margin:0}table{font-size:14px;line-height:1.45}th{font-weight:600;text-align:left;background:#eee;color:#333}th,td{padding:11px 13px;vertical-align:top;border-bottom:1px solid #ddd}thead th{position:sticky;top:0;z-index:3}tbody tr:hover{background:#f8f8f8}.empty{padding:18px;font-size:15px}.empty p{margin:6px 0 0}
.filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:14px 16px;margin-bottom:18px;background:#f5f5f5}.filters>label{display:flex;flex-direction:column;flex:1 1 145px;min-width:130px;margin:0}.filters>label:first-child{flex:2 1 230px}.filters input,.filters select,.filters .site-picker>input{margin-top:5px;height:38px;min-height:38px;font-size:15px}.filters>.site-picker{min-width:180px}.filters details{font-size:14px;flex-basis:100%}.filters summary{padding:6px 0;font-weight:600}.filters button{margin:0;min-height:38px}.filters>a{padding:8px 0}.site-picker,.choice-search{min-width:0;max-width:100%}.site-picker input{font-size:15px}.site-picker [role=option]{font-size:14px;line-height:1.45}.tabs{flex-wrap:wrap;margin-bottom:18px}.tabs a{font-size:14px;padding:10px 16px}.tabs a[aria-current]{box-shadow:inset 0 -3px #b00c0c;background:#fff}
.editor,.task-editor{max-width:1180px;margin:0 auto}.editor .form-panel,.task-editor .panel{margin-top:0}.feedback-editor{max-width:850px}.feedback-editor form{padding:22px}.feedback-editor input,.feedback-editor select{max-width:600px}.feedback-editor textarea{min-height:180px}.editor-form,.task-form{padding:20px 24px 0}.form-grid,.task-form-grid{gap:18px 24px}.form-actions,.task-form-actions{position:sticky;bottom:0;z-index:6;padding:12px 24px;margin:0 -24px;background:#f5f5f5;border-top:1px solid #bbb;box-shadow:0 -2px 6px #0000000a;flex-wrap:wrap}.form-actions>a,.task-form-actions>a{font-size:14px}.form-field .errorlist,.task-field .errorlist,.errorlist{font-size:14px;color:#a50909}.calendar-form{gap:18px 24px}.calendar-actions{position:sticky;bottom:0;background:#f5f5f5;padding:12px;border-top:1px solid #bbb;z-index:6}
.personal-dashboard{gap:18px}.workspace-stat{min-height:100px;padding:16px;gap:8px}.workspace-stat strong{font-size:32px;line-height:1.15}.workspace-stat small{font-size:13px}.personal-dashboard .module-compact{min-width:0}.note-body{padding:14px 18px}.private-note{padding:12px 0}.note-actions{gap:10px;font-size:14px}.note-actions .text-button{font-size:14px;min-height:30px}.quick-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:0 22px;padding:4px 16px 12px}.quick-actions a{font-size:14px;padding:10px 0;min-width:0}.quick-actions small{display:block}.module-setting{padding:12px 16px;gap:14px}.module-setting label{font-size:15px}.stats{gap:16px;margin-bottom:20px}.stats a,.stats .attention{padding:16px;min-height:115px;background:#f2f2f2;display:flex;flex-direction:column;justify-content:space-between;text-align:left;border-top:3px solid #b00c0c}.stats a>span{position:static;clip-path:none;background:none!important;color:#444;font-size:13px;padding:0}.stats strong{font-size:32px;margin:4px 0}.stats small{font-size:13px}
.comment{padding:16px 0;font-size:15px;line-height:1.6}.comment time,.activity-row time{font-size:13px}.notification-link{font-size:15px;padding:14px 18px;line-height:1.5;color:#333}.notification-link:hover{background:#f2f2f2;color:#222}.notification-link small{font-size:13px}.push-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}.push-categories label{margin:6px 0}.device-row{font-size:15px}.notice{font-size:14px;padding:12px 16px}.rota-line,.rota-day a{font-size:14px}.rota-grid{gap:12px}.rota-day{padding:14px}.employee-reference{font-size:14px}
.archive-row,.archive-document-row .archive-row{padding:12px 14px;font-size:14px;gap:16px}.archive-row small{font-size:13px;margin-top:4px}.archive-filters>label.archive-customer-filter,.archive-filters>label.archive-site-filter{flex:1.5 1 250px;min-width:220px}.archive-stats{gap:12px;margin:16px 0}.archive-stats a{padding:13px 16px;gap:4px}.archive-stats strong{font-size:30px}.archive-grid{gap:18px}.archive-progress-panel{padding:14px 16px}.archive-grid .panel{padding:18px}.archive-preview iframe{height:70vh}.monitor-shortcuts{display:flex;gap:10px;flex-wrap:wrap}.monitor-shortcuts .button{font-size:13px}.hardware-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.hardware-card{padding:16px 18px;margin-bottom:0}.hardware-card h2{margin-bottom:12px}.hardware-card p{margin:8px 0;font-size:14px}.hardware-value{font-size:30px;margin-bottom:4px}.hardware-uptime{font-size:19px}.hardware-details{gap:7px 14px;font-size:14px}.cpu-chart svg{height:135px}.shutdown-zone{border-left:4px solid #a50909;margin-bottom:18px}.shutdown-zone p{max-width:1000px}.shutdown-zone .button{border-color:#a50909;color:#a50909}.hardware-alert-form{max-width:850px}
#phoenix-calendar{padding:12px;font-size:14px}.fc .fc-toolbar-title{font-size:22px}.fc .fc-button{font-size:14px}.fc .fc-event{font-size:13px}.fc .phoenix-calendar-event-title{white-space:normal;line-height:1.45}.calendar-legend{font-size:14px}.calendar-field small{font-size:13px}
footer{font-size:12px;padding:18px 28px;gap:16px}footer .text-button{font-size:12px;min-height:24px;padding:0 4px}
#command-palette,#shortcut-help{width:640px;max-width:calc(100vw - 40px);max-height:85vh;padding:20px;border:1px solid #999;border-top:4px solid #b00c0c;border-radius:3px;box-shadow:0 16px 60px #0004;color:#252525}dialog::backdrop{background:#0006}.command-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.command-heading h2{margin:0}.command-heading button{min-height:30px;padding:4px 10px}#command-search{width:100%;font-size:17px;min-height:44px}#command-status,.command-help{font-size:13px;color:#595959;margin:12px 0}.command-help{display:flex;justify-content:space-between;align-items:center;gap:12px}.command-help button{font-size:13px}#command-results{max-height:48vh;overflow:auto;margin:8px -6px}#command-results [role=option]{padding:11px 14px;font-size:15px;border-left:3px solid transparent;cursor:pointer}#command-results [aria-selected=true]{background:#f4e8e8;border-left-color:#b00c0c;color:#780808}.shortcut-list{display:grid;grid-template-columns:120px 1fr;gap:16px}.shortcut-list dt{font-weight:600;color:#333}.shortcut-list dd{margin:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:1500px){.portal-header{gap:16px}.account{gap:12px}.portal-wordmark img{width:190px}.portal-nav{padding-left:20px;padding-right:20px}.portal-nav>a,.nav-menu>summary{padding:8px;font-size:13px}.hardware-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.personal-dashboard .module-compact{grid-column:span 2}}
@media(max-width:1050px){.portal-header{flex-wrap:wrap}.account{flex:1}.portal-nav>.nav-quick{margin-left:0}.task-list{overflow:auto}.task-list .task-row{min-width:800px}.hardware-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace main{padding:18px}.personal-dashboard .module-half{grid-column:1/-1}}
@media(max-width:700px){.portal-header{padding:12px}.portal-header .function-search{order:3;max-width:none;flex-basis:100%}.account{font-size:12px;gap:10px}.portal-nav{position:relative;padding:5px 10px}.workspace main{padding:14px}.personal-dashboard,.hardware-grid,.push-categories{grid-template-columns:1fr}.personal-dashboard .module-compact,.hardware-wide,.hardware-full{grid-column:1/-1}.form-grid,.task-form-grid,.calendar-form{grid-template-columns:1fr}.task-customer-fields{grid-template-columns:1fr}.filters>label,.archive-filters>label.archive-customer-filter,.archive-filters>label.archive-site-filter{min-width:0;flex-basis:100%}.table-scroll{max-height:65vh}.task-list .task-column-headings{position:static}.page-heading h1,h1{font-size:23px}.form-actions,.task-form-actions,.calendar-actions{position:static}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.command-help{flex-wrap:wrap}.shortcut-list{grid-template-columns:95px 1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Preserve the supplied header asset's existing transparent-margin crop. */
.portal-header .portal-wordmark{width:238px;height:30px;flex:0 0 238px}.portal-header .portal-wordmark img{width:243.55px;height:auto;left:-1.93px;top:-26.6px;object-fit:fill}
.customer-columns{font-size:13px;position:sticky;top:var(--nav-height);z-index:5}.customer-columns,.customer-entry{padding:13px 18px;gap:18px}.customer-address,.customer-sites,.customer-open,.customer-site-actions{font-size:14px}.customer-site-card h3{font-size:17px}.monitoring-panel table{font-size:14px}.monitoring-panel th,.monitoring-panel td{padding:11px 13px}.table-wrap{max-height:calc(100vh - 250px);overflow:auto}.monitor-stats a span{font-size:13px}.push-categories h2,.push-categories>button{grid-column:1/-1}.push-categories>button{justify-self:start}.account-settings{max-width:1050px;display:grid;grid-template-columns:1fr 1fr;gap:18px}.account-settings>h1,.account-settings>p{grid-column:1/-1}.account-panel{margin:0;padding:20px}.account-panel:has(input[name=action][value=password]){grid-row:span 2}.address-part label{font-size:14px}.personal-dashboard .task-list{max-height:470px}.personal-dashboard .task-column-headings{top:0;position:sticky}.notification-link:hover small{color:#444}
@media(max-width:700px){.account-settings{grid-template-columns:1fr}.customer-columns{position:static}.portal-header .portal-wordmark{flex-basis:206px;width:206px;height:26px}.portal-header .portal-wordmark img{width:210.8px;left:-1.67px;top:-23px}.form-actions,.task-form-actions{margin:0 -16px}.hardware-details{grid-template-columns:minmax(100px,1fr) 1fr}.table-wrap{max-height:65vh}}
/* Panels must not clip enhanced dropdowns or become false sticky scroll roots. */
.panel{overflow:visible}
.task-list .task-row .status{justify-self:start}
body[data-section='/tasks/'] .filters>label:first-of-type{flex:0 1 140px}
body[data-section='/tasks/'] .filters>label:has(input[name=q]){flex:2 1 240px}
.stats{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.stats a{min-height:88px;padding:12px 16px}
@media(min-width:1051px){.hardware-grid{align-items:start}.hardware-grid>.hardware-card:first-child{grid-row:span 2}.hardware-grid>.hardware-card:not(.hardware-wide):not(.hardware-full){min-height:130px}}
@media print{.portal-header,.portal-nav,.function-search,.skip-link,footer,dialog{display:none!important}.workspace main{max-width:none;padding:0}.table-scroll,.table-wrap,.personal-dashboard .task-list{overflow:visible;max-height:none}.task-list .task-column-headings,thead th,.form-actions,.task-form-actions{position:static}.panel{break-inside:avoid}body{font-size:11pt}}
body[data-section='/notifications/settings/'] #main>section,body[data-section='/notifications/settings/'] #main>form{max-width:1100px}#device-description{max-width:600px;margin-bottom:12px}.push-controls{margin-top:8px}body[data-section='/notes/'] #main,body[data-section='/quick-links/'] #main{max-width:1500px}.calendar-form .calendar-preview:empty{display:none}.calendar-form .calendar-preview{margin:0}

.detail-grid{align-items:start}#phoenix-calendar .phoenix-calendar-event-title{white-space:normal;line-height:1.35;font-size:13px;overflow-wrap:anywhere}html{scroll-padding-top:70px}

@media(max-width:1050px){.task-list .task-row>span,.task-list .task-row>.status,.task-list .task-row>a{grid-column:auto}.task-list .task-column-headings{display:grid}.task-list .task-row .task-main{grid-column:auto}}
#calendar-filters{max-width:950px}
.module-setting{padding:8px 14px}.module-setting label small{display:inline;font-weight:400;margin-left:12px}.module-setting button{background:#f4f4f4;color:#444;border-color:#aaa;font-size:15px;padding:5px 12px;min-height:34px}
@media(min-width:1051px){body[data-section='/customers/'] .customer-columns{top:var(--nav-height)}}

#phoenix-calendar .phoenix-calendar-month-title{font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;text-align:left}#phoenix-calendar .phoenix-calendar-event-title{font-weight:500}
/* Month cells use a single readable summary; hover/open or List shows the full title. */
#phoenix-calendar .phoenix-calendar-month-title{display:block;white-space:nowrap;text-overflow:ellipsis;-webkit-line-clamp:unset;overflow:hidden}
