/* LOCAL opt-in repairs only. No shell, composition, data or availability changes. */
.main:has(.crm-local-home),.operational-reports{
 --p0-canvas:#f4f9ff;--p0-surface:#fff;--p0-field:#eff4fb;--p0-text:#111b3b;
 --p0-muted:#42577d;--p0-border:#91a6c3;--p0-hover:#e1eaf7;--p0-focus:#a83a00;
}
html:has(.crm-local-home){background:#f4f9ff}
html[data-theme=dark]:has(.crm-local-home){background:#111a24}
@media(prefers-color-scheme:dark){html[data-theme=system]:has(.crm-local-home){background:#111a24}}
html[data-theme=dark] .main:has(.crm-local-home),html[data-theme=dark] .operational-reports{
 --p0-canvas:#111a24;--p0-surface:#18222e;--p0-field:#223245;--p0-text:#eef2ff;
 --p0-muted:#b5c4df;--p0-border:#7187a3;--p0-hover:#30445e;--p0-focus:#ff6908;color-scheme:dark;
}
@media(prefers-color-scheme:dark){html[data-theme=system] .main:has(.crm-local-home),html[data-theme=system] .operational-reports{
 --p0-canvas:#111a24;--p0-surface:#18222e;--p0-field:#223245;--p0-text:#eef2ff;
 --p0-muted:#b5c4df;--p0-border:#7187a3;--p0-hover:#30445e;--p0-focus:#ff6908;color-scheme:dark;
}}
.main:has(.crm-local-home) .work-panel .btn:not(.primary),.operational-reports .btn:not(.primary){
 background:var(--p0-field);color:var(--p0-text);border-color:var(--p0-border);
 min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;
}
.main:has(.crm-local-home) :is(.work-panel,.portfolio-panel){background:var(--p0-surface);color:var(--p0-text);border-color:var(--p0-border)}
.main:has(.crm-local-home) :is(.work-panel,.portfolio-panel) :is(h2,h3,p,small){color:inherit}
.main:has(.crm-local-home) .work-panel .btn:not(.primary):hover:not(:disabled),.operational-reports .btn:not(.primary):hover:not(:disabled){background:var(--p0-hover)}
.main:has(.crm-local-home) .work-panel .btn:disabled,.operational-reports .btn:disabled{background:var(--p0-surface);color:var(--p0-muted);opacity:1;cursor:not-allowed}
.main:has(.crm-local-home) .work-panel .btn:focus-visible,.operational-reports :is(.btn,input,select,[role=region]):focus-visible{outline:3px solid var(--p0-focus);outline-offset:3px}
.main:has(.crm-local-home) .attention-item>.btn{margin-left:0;align-self:flex-start;flex-shrink:0}
.main:has(.crm-local-home) .crm-follow-up-row>.btn{align-self:flex-start;flex-shrink:0}
html:has(.operational-reports),body:has(.operational-reports),.workspace-body:has(.operational-reports),.main:has(.operational-reports){background:#f4f9ff}
html[data-theme=dark]:has(.operational-reports),html[data-theme=dark] :is(body,.workspace-body,.main):has(.operational-reports){background:#111a24}
@media(prefers-color-scheme:dark){html[data-theme=system]:has(.operational-reports),html[data-theme=system] :is(body,.workspace-body,.main):has(.operational-reports){background:#111a24}}
.main:has(.operational-reports){min-height:100dvh}
.operational-reports{background:var(--p0-surface);color:var(--p0-text);border-color:var(--p0-border);min-width:0;max-width:100%;box-sizing:border-box}
.operational-reports .operational-filters{background:var(--p0-surface);border-color:var(--p0-border);min-width:0}
.operational-reports .field :is(input,select){background:var(--p0-field);color:var(--p0-text);border-color:var(--p0-border);min-height:44px;box-sizing:border-box;max-width:100%;color-scheme:light}
html[data-theme=dark] .operational-reports .field :is(input,select){color-scheme:dark}
@media(prefers-color-scheme:dark){html[data-theme=system] .operational-reports .field :is(input,select){color-scheme:dark}}
.operational-reports .field label,.operational-reports :is(th,td){color:var(--p0-text)}
.operational-reports :is(caption,.report-scope){color:var(--p0-muted)}
.operational-reports th{background:var(--p0-field)}
.operational-reports :is(th,td,[role=region]){border-color:var(--p0-border)}
.operational-reports .report-results [role=region]{max-width:100%;min-width:0}
.operational-reports [hidden]{display:none}
.operational-reports .report-downloads a.btn{text-decoration:none}
/* Existing horizontally scrollable health rail: readable labels, unchanged meaning. */
@media(max-width:767px){.cw-module-track .cw-module{flex:0 0 86px;min-width:86px;white-space:normal;overflow-wrap:normal;padding-inline:6px;line-height:1.4}.operational-reports .operational-filters{grid-template-columns:1fr}.operational-reports .report-downloads .btn{width:100%;flex:0 0 100%;box-sizing:border-box}}
