/* Common work-page rhythm. Terminal, alarms and dedicated module editors keep their own controls. */
@media screen {
html[data-bo-theme] body.boNavigationReady {--bo-work-border:#315377;--bo-work-soft:#133252}
html[data-bo-theme=light] body.boNavigationReady {--bo-work-border:#d2dff0;--bo-work-soft:#edf4ff}
html[data-bo-theme] body.boNavigationReady #riskStartEntry {display:flex;align-items:center;gap:12px;min-height:64px;box-sizing:border-box;margin:0 28px 16px;padding:12px 14px;border:1px solid #f18f9c;border-radius:12px;box-shadow:none;text-decoration:none}
html[data-bo-theme] body.boNavigationReady #riskStartEntry.hide {display:none!important}
html[data-bo-theme] body.boNavigationReady #riskStartEntry svg {width:26px;height:26px;flex:0 0 26px}
html[data-bo-theme] body.boNavigationReady #riskStartEntry>span:nth-child(2) {flex:1;min-width:0}
html[data-bo-theme] body.boNavigationReady #riskStartEntry b {display:block;font-size:15px;color:inherit!important}
html[data-bo-theme] body.boNavigationReady #riskStartEntry small {display:block;margin-top:3px;font-size:13px;color:var(--muted)!important}
html[data-bo-theme] body.boNavigationReady #riskStartEntry>span:last-child {font-size:24px;color:inherit!important}
html[data-bo-theme] body.boNavigationReady:not(.w2-terminal-active):not(.tp-active):not(.wo-active) #content {min-width:0}
html[data-bo-theme] body.boNavigationReady:not(.w2-terminal-active):not(.tp-active):not(.wo-active):not(.boUserEditing) #content :is(.pageHead,.otPageHead) {padding:0;margin:8px 0 18px;background:transparent!important;border:0!important;box-shadow:none;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
html[data-bo-theme] body.boNavigationReady #content :is(.pageHead,.otPageHead) h1 {font-size:clamp(24px,3vw,30px);line-height:1.2;margin:0 0 6px}
html[data-bo-theme] body.boNavigationReady #content :is(.pageHead,.otPageHead) p {font-size:14px;line-height:1.5;margin:0;color:var(--muted)!important}
html[data-bo-theme] body.boNavigationReady:not(.w2-terminal-active):not(.tp-active):not(.wo-active):not(.boUserEditing) #content :is(button.primary,button.secondary,a.primary,a.secondary),html[data-bo-theme] body.boNavigationReady #content>.boWindowNav button {min-height:44px;padding:10px 14px;font:650 14px/1.35 system-ui;border-radius:10px;box-shadow:none;max-width:100%;white-space:normal}
html[data-bo-theme] body.boNavigationReady:not(.w2-terminal-active):not(.tp-active):not(.wo-active):not(.boUserEditing) #content :is(button.primary,a.primary) {background:#126bdd!important;color:#fff!important;border:1px solid #126bdd!important}
html[data-bo-theme] body.boNavigationReady:not(.w2-terminal-active):not(.tp-active):not(.wo-active):not(.boUserEditing) #content :is(button.secondary,a.secondary),html[data-bo-theme] body.boNavigationReady #content>.boWindowNav button {background:var(--bo-work-soft)!important;color:var(--text)!important;border:1px solid var(--bo-work-border)!important}
html[data-bo-theme] body.boNavigationReady:not(.w2-terminal-active):not(.tp-active):not(.wo-active):not(.boUserEditing) #content>.card,html[data-bo-theme] body.boNavigationReady #content :is(.meterWarehouse,.meterInventoryPage>.card,.otOrder,.otPanel) {border:1px solid var(--bo-work-border)!important;border-radius:14px;padding:20px;background:var(--card)!important;box-shadow:none}
html[data-bo-theme] body.boNavigationReady #content .meterInventoryIntro {margin:16px 0}
html[data-bo-theme] body.boNavigationReady #content .meterInventoryIntro h2 {font-size:18px;margin:0 0 8px}
html[data-bo-theme] body.boNavigationReady #content .meterInventoryIntro p {font-size:14px;line-height:1.5;margin:0 0 12px;color:var(--muted)!important}
html[data-bo-theme] body.boNavigationReady #content .otPage {padding:0;border:0;border-radius:0;background:transparent!important}
html[data-bo-theme] body.boNavigationReady #content .otPageHead small {display:none}
html[data-bo-theme] body.boNavigationReady #content .otPageHead>div {flex:1 1 220px}
html[data-bo-theme] body.boNavigationReady #content .otLive {font-size:13px;line-height:1.5;color:var(--muted)!important}
html[data-bo-theme] body.boNavigationReady #content .otOrderList {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;overflow:visible;padding:12px 0 16px}
html[data-bo-theme] body.boNavigationReady #content .otOrderList button {width:100%;min-width:0;margin:0;padding:14px;border:1px solid var(--bo-work-border)!important;border-radius:12px;min-height:88px;background:var(--card)!important;color:var(--text)!important;overflow-wrap:anywhere;font-size:14px}
html[data-bo-theme] body.boNavigationReady #content .otOrderList button.selected {background:var(--bo-work-soft)!important;border-color:#126bdd!important;box-shadow:inset 3px 0 #126bdd}
html[data-bo-theme] body.boNavigationReady #content .otOrderList button small {color:var(--muted)!important;line-height:1.4}
html[data-bo-theme] body.boNavigationReady #content .otOrderHeader h2 {font-size:22px}
html[data-bo-theme] body.boNavigationReady #content .otPanel h3 {font-size:18px;margin-bottom:16px}
html[data-bo-theme] body.boNavigationReady #content .otStatus {font-size:13px;padding:8px 12px}
html[data-bo-theme] body.boNavigationReady #content .otOrderHeader {flex-wrap:wrap}
html[data-bo-theme] body.boNavigationReady #content .otRight>* {min-width:0}
/* Fit the available workspace beside the desktop sidebar, rather than the viewport. */
html[data-bo-theme] body.boNavigationReady #content .cpKpis {grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr))}
}
@media screen and (max-width:820px) {
html[data-bo-theme] body.boNavigationReady #riskStartEntry {margin:0 12px 12px;padding:10px 12px}
html[data-bo-theme] body.boNavigationReady #content :is(.otOrder,.otPanel,.meterInventoryPage>.card),html[data-bo-theme] body.boNavigationReady:not(.w2-terminal-active):not(.tp-active):not(.wo-active):not(.boUserEditing) #content>.card {padding:16px}
html[data-bo-theme] body.boNavigationReady #content .otPageHead>div {flex-basis:180px}
html[data-bo-theme] body.boNavigationReady #content .meterInventoryIntro .row {display:grid;grid-template-columns:minmax(0,1fr)}
html[data-bo-theme] body.boNavigationReady #content .meterInventoryIntro button {width:100%;margin:0;min-width:0}
html[data-bo-theme] body.boNavigationReady #content :is(.pageHead,.otPageHead)>div {min-width:0;max-width:100%}
html[data-bo-theme] body.boNavigationReady #content .otOrderList {grid-template-columns:minmax(0,1fr)}
}

html[data-bo-theme=dark] body .meterWarehouse>strong{color:var(--text)!important}
