:root{--bg:#10171e;--panel:#172129;--panel2:#1b2730;--border:#2a3843;--text:#e5edf3;--muted:#8a9da9;--mint:#5ed4a1;--blue:#38bdf8;--purple:#bd94ff;--amber:#f0ba65}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button,select,input{background:#1b2730;border:1px solid #354550;color:var(--text);border-radius:6px;padding:9px 12px}button,select{cursor:pointer}button:hover{background:#2a3b47}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--mint);outline-offset:3px}.sidebar{position:fixed;inset:0 auto 0 0;width:225px;border-right:1px solid var(--border);background:#131c23;padding:29px 18px;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;color:#eef7fa;text-decoration:none;font-size:26px;font-weight:750;letter-spacing:-1px}.brand-icon{width:40px;height:42px;border-radius:10px;color:#072d2a;background:var(--mint);text-align:center;line-height:35px;font-size:42px}.brand-light{font-weight:350;color:#9cb5bd}.brand small{display:block;font-size:8px;letter-spacing:2.1px;color:#8297a4;margin-top:5px}.site-label{font-size:9px;color:#667e8e;letter-spacing:1.8px;margin:42px 0 14px}.site-label span{float:right}.plant{font-size:12px;padding:13px 10px;background:#1a2730;border:1px solid var(--border);border-radius:6px}.plant small{display:block;margin:8px 0 0 15px;color:var(--muted);font-size:10px}.dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:var(--mint);box-shadow:0 0 7px #5ed4a133;margin-right:5px}.nav-label{font-size:9px;color:#667e8e;letter-spacing:1.7px;margin:33px 9px 13px}nav button{display:flex;align-items:center;gap:12px;border:0;width:100%;background:transparent;text-align:left;color:#96a9b6;padding:13px 12px;margin:3px 0;font-size:12px}nav button span{font-size:18px;width:20px}nav button.active{background:#203a36;color:#79e2b5;box-shadow:inset 3px 0 #5ed4a1}nav b{margin-left:auto;background:#34434a;padding:2px 6px;border-radius:4px;font-size:10px}.sidebar-bottom{margin-top:auto;padding:20px 8px 0;border-top:1px solid var(--border)}.sim-icon{color:var(--mint);font-size:22px;margin-bottom:12px}.sidebar-bottom strong{font-size:12px;font-weight:500}.sidebar-bottom p{font-size:10px;color:var(--muted);line-height:1.8}.small-line{font-size:9px;color:#819b9f;margin-top:17px}.workspace{margin-left:225px}header{height:73px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 30px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{padding:0 14px;color:#4b616f}.breadcrumb strong{font-weight:400;color:#d8e6ed}.header-right{display:flex;align-items:center;gap:20px}time{font:11px ui-monospace,monospace;color:#9cb0bd}.demo-badge{font-size:9px;letter-spacing:1px;color:var(--amber);padding:5px 8px;border:1px solid #6c5731;border-radius:4px;background:#332d20}.icon-btn{padding:3px 8px;background:transparent;font-size:22px;border:0}.avatar{font-size:10px;background:#2a3a45;border:1px solid #3c505d;border-radius:50%;width:31px;height:31px;display:grid;place-items:center}main{padding:29px 30px 0;max-width:2000px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:18px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:#77909f}h1{font-size:28px;letter-spacing:-.8px;font-weight:600;margin:8px 0}.title-dot{display:inline-block;width:7px;height:7px;background:var(--mint);border-radius:50%;vertical-align:middle;margin-left:12px}.page-heading p{color:var(--muted);font-size:12px;margin:9px 0 0}.toolbar{display:flex;gap:8px}.toolbar button,.toolbar select{font-size:11px}.primary{background:#60d6a3;color:#0c3024;border-color:#60d6a3;font-weight:600}.primary:hover{background:#82e7bb}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:21px}.kpi{position:relative;background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:18px 20px;overflow:hidden;min-height:140px}.kpi>div:first-child{font-size:9px;letter-spacing:1.25px;color:#93a7b4;margin-bottom:13px}.kpi>div:first-child span{float:right;font-size:15px;color:#617e8e}.kpi strong{font-size:30px;font-weight:550;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.kpi em{font-style:normal;font-size:11px;color:#829eac;margin-left:7px}.kpi small{display:block;font-size:10px;color:#8b9fa9;margin-top:11px}.spark{position:absolute;bottom:10px;right:0;width:100px;height:30px;opacity:.55}.spark path{fill:none;stroke:var(--mint);stroke-width:1.5}.range{height:3px;background:linear-gradient(90deg,#917d48 0 15%,#5ed4a1 15% 80%,#917d48 80%);width:60px;position:absolute;right:20px;bottom:23px}.range i{position:absolute;width:4px;height:9px;background:white;top:-3px;left:48%}.micro-bars{position:absolute;right:12px;bottom:18px;color:#598f8e;letter-spacing:2px;font-size:12px}.fraction{font-size:19px;color:#778e9c;font-weight:400}.segments{display:flex;gap:3px;position:absolute;right:18px;bottom:22px}.segments i{background:var(--mint);height:12px;width:4px;border-radius:1px}.panel{border:1px solid var(--border);border-radius:8px;background:var(--panel);overflow:hidden}.panel-head{padding:19px 21px;display:flex;align-items:center;justify-content:space-between;gap:12px}h2{font-size:13px;font-weight:550;margin:0}.panel-head p{font-size:10px;color:#7c94a3;margin:7px 0 0}.subtle{color:#647e8e;font-weight:400;margin-left:7px;font-size:11px}.live-label{color:var(--mint);font:9px ui-monospace,monospace;letter-spacing:.8px}.process-scroll{background:radial-gradient(ellipse at 50% 40%,#1b2a34,transparent 75%);overflow:auto}#process{display:block;width:100%;min-width:950px}.process-footer{border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:15px;padding:14px 20px;color:#758c99;font-size:9px}.legend{display:flex;gap:19px}.legend i{display:inline-block;height:5px;width:12px;border-radius:3px;vertical-align:middle;margin-right:5px}.bottom-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:20px;margin-top:20px;margin-bottom:20px}.chart{height:150px;padding:0 18px 8px}.chart svg{width:100%;height:100%}.chart.large{height:370px}.chart-key{font-size:10px;color:var(--blue)}.text-btn{font-size:10px;border:0;background:transparent;color:var(--mint);padding:0}.event{display:flex;gap:12px;align-items:flex-start;border-top:1px solid var(--border);padding:16px 20px}.event-icon{color:var(--mint);border:1px solid #35574d;border-radius:5px;padding:4px}.event.warning .event-icon{color:var(--amber);border-color:#71603b}.event strong{font-size:11px;font-weight:500;display:block}.event p{font-size:10px;color:var(--muted);margin:7px 0 0}.event time{margin-left:auto;white-space:nowrap;font-size:9px}.event .ack{color:var(--mint);font-size:9px;margin-top:8px}footer{display:flex;justify-content:space-between;border-top:1px solid #26333e;padding:18px 0;color:#5f7888;font-size:9px}.tab-page[hidden]{display:none}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:9px;letter-spacing:1px;color:#738c9b;font-weight:500;background:#142029;padding:15px 22px}td{padding:15px 22px;border-top:1px solid var(--border);font-size:12px}td:first-child{font:11px ui-monospace,monospace;color:#83c8e2}.status{color:var(--mint);background:#213b34;padding:4px 7px;border-radius:4px;font-size:9px}input{font-size:12px;width:250px}dialog{position:fixed;background:#1b2730;border:1px solid #3d5362;color:var(--text);border-radius:12px;width:min(460px,92vw);padding:24px;box-shadow:0 20px 90px #0008}dialog::backdrop{background:#040c1399;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}dialog h2{font-size:23px;margin:20px 0 8px}#detailTag{color:#89a7b6;font:12px monospace}.detail-row{display:flex;justify-content:space-between;border-top:1px solid #344550;padding:15px 0;font-size:12px}.detail-row span{color:var(--muted)}.detail-note{font-size:11px;line-height:1.8;color:#92a9b6;background:#142129;padding:12px;border-radius:6px;margin-top:15px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#325a49;color:#e2fff0;padding:14px 22px;border-radius:7px;font-size:12px;display:none;z-index:10}svg text{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.equipment{cursor:pointer;outline:none}.equipment:hover .shell,.equipment:focus .shell{stroke:#b9e5fa;stroke-width:2}.pipe{fill:none;stroke:#294757;stroke-width:9;stroke-linejoin:round}.flowline{fill:none;stroke:var(--blue);stroke-width:2.8;stroke-dasharray:8 7;animation:flow 2s linear infinite;stroke-linejoin:round}.chemical{stroke:var(--purple)}.sludge{stroke:#d6a56e}.treated{stroke:var(--mint)}.paused .flowline{animation-play-state:paused}.paused .rotor{animation-play-state:paused}.rotor{transform-box:fill-box;transform-origin:center;animation:rotate 3s linear infinite}@keyframes flow{to{stroke-dashoffset:-30}}@keyframes rotate{to{transform:rotate(360deg)}}@media(min-width:1700px){main{padding-left:38px;padding-right:38px}}@media(max-width:1250px){.sidebar{width:190px;padding-left:12px;padding-right:12px}.workspace{margin-left:190px}main{padding:24px 20px 0}.toolbar{flex-wrap:wrap;justify-content:flex-end}.kpi{padding:16px 14px}.micro-bars,.range{display:none}.process-footer{flex-wrap:wrap}.page-heading{align-items:flex-start}}@media(max-width:850px){.sidebar{position:static;width:100%;height:auto;padding:15px;display:block}.brand{font-size:22px}.brand-icon{height:34px;width:34px;line-height:27px}.brand small,.site-label,.plant,.nav-label,.sidebar-bottom{display:none}nav{display:flex;margin-top:13px;gap:5px}nav button{justify-content:center;font-size:10px;padding:10px 4px;gap:4px}nav button span{display:none}nav b{margin-left:1px}.workspace{margin:0}header{height:55px;padding:0 18px}.header-right{gap:10px}time{font-size:9px}main{padding:22px 16px 0}.page-heading{display:block}.toolbar{justify-content:flex-start;margin-top:18px}h1{font-size:25px}.kpi-grid{grid-template-columns:repeat(2,1fr);gap:10px}.kpi{min-height:129px}.bottom-grid{grid-template-columns:1fr}.panel-head{padding:16px}.live-label{font-size:8px}.legend{flex-wrap:wrap;gap:12px}footer{line-height:1.8;gap:20px}.panel-head input{width:160px}.demo-badge{font-size:8px}.avatar{display:none}}@media(prefers-reduced-motion:reduce){.flowline,.rotor{animation:none}}

/* Fresh blue theme — local dashboard revision. */
:root{--bg:#eaf4fc;--panel:#fff;--panel2:#f1f8fe;--border:#d7e7f3;--text:#203f59;--muted:#658198;--mint:#168fda;--blue:#168fda;--purple:#8d79c5;--amber:#b57a18}
body{background:linear-gradient(135deg,#eff8ff,#e7f2fc 70%)}
.sidebar{background:linear-gradient(165deg,#0d416c,#103357);border-color:#174b74;color:#eaf6ff}
.brand-light{color:#8dd2ff}.brand-icon{color:#fff;background:linear-gradient(145deg,#41b9ff,#1684da);box-shadow:0 5px 15px #06294d33}.brand small{color:#84bcdf}
.site-label,.nav-label{color:#79a9cd}.plant{background:#ffffff0a;border-color:#ffffff24}.plant small{color:#91bddc}
.sidebar .dot{background:#62d8d1}.sidebar-bottom{border-color:#ffffff20}.sidebar-bottom p,.small-line{color:#9ac3dd}.sim-icon{color:#73c7ff}
nav button{color:#acd0e9}nav button:hover{background:#ffffff0b}nav button.active{background:#2385cd44;color:#fff;box-shadow:inset 3px 0 #62c5ff}nav b{background:#ffffff14}
header{background:#ffffffc9;border-color:#d8e8f4}.breadcrumb strong{color:#2c5677}.breadcrumb span{color:#a3bdcf}time{color:#66839a}.avatar{background:#dcedfb;border-color:#c5e0f2;color:#2e719f}
.demo-badge{background:#edf6fe;color:#3477a6;border-color:#c7e1f4}.eyebrow{color:#4788b6}.title-dot{background:#20a4e9}.dot{background:#1bab95;box-shadow:none}
button,select,input{background:#fff;border-color:#c9deed;color:#365f7c}button:hover{background:#eaf5fd}.primary{background:linear-gradient(135deg,#249fe9,#157fca);color:white;border-color:#1689d2;box-shadow:0 4px 10px #268dd71a}.primary:hover{background:#1685cd}
.kpi,.panel{box-shadow:0 4px 18px #1d669509;border-color:#d3e5f3;border-radius:11px}.kpi{background:linear-gradient(120deg,#fff,#f7fbff)}.kpi>div:first-child{color:#6487a0}.kpi>div:first-child span{color:#66a5d0}.kpi strong{color:#245d87}.kpi em,.kpi small{color:#6c899f}.kpi .fraction{color:#91b0c7}.micro-bars{color:#88bfe3}.segments i{background:#48a8e4}.range{background:linear-gradient(90deg,#d8bf88 0 15%,#59b6e9 15% 80%,#d8bf88 80%)}.range i{background:#34769f}
.panel-head{background:#fff}.panel-head p{color:#7790a4}.subtle{color:#8ba8bb}.live-label{color:#218dbd}.process-scroll{background:linear-gradient(145deg,#f6fbff,#edf6fe)}
#process{min-width:1380px}#process text{paint-order:stroke;stroke:#f5faff;stroke-width:3px;stroke-linejoin:round}.process-footer{color:#6486a0;background:#f9fcff}
.pipe{stroke:#bad7eb;stroke-width:7;stroke-linecap:round;stroke-linejoin:round}.flowline{stroke-width:2.4;stroke-dasharray:6 8;stroke-linecap:round;stroke-linejoin:round}.chemical{stroke:#9581c7}.sludge{stroke:#b88648}.treated{stroke:#16a987}.equipment:hover .shell,.equipment:focus .shell{stroke:#168fda;filter:drop-shadow(0 0 3px #168fda33)}
.event-icon{color:#2486bb;border-color:#c5e3f4;background:#edf7ff}.event.warning .event-icon{background:#fff7e8;border-color:#edd3a6}.event .ack{color:#258e9c}.text-btn{color:#1682c3}.event{border-color:#e1edf6}
th{background:#f0f7fd;color:#5e839d}td{border-color:#e1edf6}td:first-child{color:#227fae}.status{color:#248b83;background:#e6f6f3}
dialog{background:#fff;border-color:#b9d7eb;box-shadow:0 20px 90px #184c7d38}dialog::backdrop{background:#17466e55}.detail-row{border-color:#dceaf4}.detail-note{background:#eef7fe;color:#5d7e98}#detailTag{color:#6593b3}#toast{background:#176fad;color:#fff}footer{color:#7894a9;border-color:#d2e4f2}
@media(max-width:850px){.sidebar{background:linear-gradient(100deg,#0e416c,#135784)}.panel-head{flex-wrap:wrap}#process{min-width:1380px}}

/* A/B pump branches: standby is static, duty follows the process flow. */
.standby-pipe{fill:none;stroke:#bfd1df;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.pump-standby .shell{stroke-dasharray:3 2}.standby-status{background:#edf2f7;color:#68869d}
.swap-duty{width:100%;margin-top:12px}.swap-note{font-size:10px;line-height:1.7;color:#6b8ca5;margin-bottom:0}
.segments i:nth-child(n+6){background:#b7cad9}.kpi em{font-size:10px}

/* Overview occupies one viewport. The complete SVG scales with both dimensions. */
body:is(.overview-mode,.trends-mode){height:100vh;height:100dvh;overflow:hidden}
:is(.overview-mode,.trends-mode) .workspace{height:100vh;height:100dvh;display:flex;flex-direction:column;min-width:0}
:is(.overview-mode,.trends-mode) header{height:46px;min-height:46px;padding:0 18px;flex:none}
:is(.overview-mode,.trends-mode) main{flex:1;min-height:0;min-width:0;width:100%;max-width:none;margin:0;padding:10px 16px 0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:8px}
:is(.overview-mode,.trends-mode) .page-heading{margin:0;min-width:0;gap:12px;align-items:center}
:is(.overview-mode,.trends-mode) .page-heading .eyebrow,:is(.overview-mode,.trends-mode) .page-heading p{display:none}
:is(.overview-mode,.trends-mode) h1{font-size:23px;margin:3px 0;white-space:nowrap}
:is(.overview-mode,.trends-mode) .toolbar{flex-wrap:nowrap;margin:0;gap:6px}
:is(.overview-mode,.trends-mode) .toolbar button,:is(.overview-mode,.trends-mode) .toolbar select{font-size:10px;padding:7px 9px;min-width:0}
:is(.overview-mode,.trends-mode) .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0;min-width:0}
:is(.overview-mode,.trends-mode) .kpi{min-width:0;min-height:0;height:80px;padding:10px 13px}
:is(.overview-mode,.trends-mode) .kpi>div:first-child{font-size:8px;margin-bottom:5px;letter-spacing:.8px}
:is(.overview-mode,.trends-mode) .kpi strong{font-size:24px}:is(.overview-mode,.trends-mode) .kpi small{font-size:9px;margin-top:3px}
:is(.overview-mode,.trends-mode) .kpi .spark,:is(.overview-mode,.trends-mode) .kpi .range,:is(.overview-mode,.trends-mode) .kpi .micro-bars,:is(.overview-mode,.trends-mode) .segments{display:none}
:is(.overview-mode,.trends-mode) #overview:not([hidden]){display:flex;flex-direction:column;min-height:0;min-width:0}
:is(.overview-mode,.trends-mode) .process-panel{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0}
:is(.overview-mode,.trends-mode) .process-panel>.panel-head{flex:none;padding:10px 14px;gap:8px;min-width:0}
:is(.overview-mode,.trends-mode) .process-panel>.panel-head p{font-size:9px;margin-top:4px}
:is(.overview-mode,.trends-mode) .process-scroll{flex:1;min-height:0;min-width:0;overflow:hidden;display:flex;align-items:center;justify-content:center}
:is(.overview-mode,.trends-mode) #process{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;flex:1}
:is(.overview-mode,.trends-mode) .process-footer{flex:none;padding:8px 12px;gap:8px;min-width:0;font-size:8px;flex-wrap:wrap}
:is(.overview-mode,.trends-mode) .legend{gap:12px;flex-wrap:wrap}
:is(.overview-mode,.trends-mode) main>footer{padding:5px 0;font-size:8px;line-height:1.3;gap:12px;min-width:0}
#trends>.bottom-grid{margin-top:20px}
dialog{max-height:calc(100dvh - 24px);overflow-y:auto}
@media(max-width:1100px){
 :is(.overview-mode,.trends-mode) .process-footer>span{display:none}
 :is(.overview-mode,.trends-mode) .kpi small{font-size:8px}
}
@media(max-width:850px){
 :is(.overview-mode,.trends-mode) .sidebar{height:47px;padding:4px 10px;display:flex;flex-direction:row;align-items:center;gap:15px;min-width:0}
 :is(.overview-mode,.trends-mode) .brand{font-size:16px;gap:6px;flex:none}:is(.overview-mode,.trends-mode) .brand-icon{width:27px;height:27px;font-size:30px;line-height:21px}
 :is(.overview-mode,.trends-mode) .sidebar nav{display:flex;flex:1;gap:3px;margin:0;min-width:0}
 :is(.overview-mode,.trends-mode) nav button{font-size:9px;margin:0;padding:8px 3px;white-space:nowrap}
 :is(.overview-mode,.trends-mode) .workspace{height:calc(100vh - 47px);height:calc(100dvh - 47px)}
 :is(.overview-mode,.trends-mode) header{height:36px;min-height:36px;padding:0 12px}
 :is(.overview-mode,.trends-mode) main{padding:8px 10px 0;gap:6px}
 :is(.overview-mode,.trends-mode) .page-heading{display:flex;flex-wrap:wrap;gap:5px}
 :is(.overview-mode,.trends-mode) h1{font-size:19px}:is(.overview-mode,.trends-mode) .toolbar{gap:5px;margin:0}
 :is(.overview-mode,.trends-mode) .kpi{padding:8px;height:69px}:is(.overview-mode,.trends-mode) .kpi strong{font-size:21px}
 :is(.overview-mode,.trends-mode) .kpi small{display:none}:is(.overview-mode,.trends-mode) .kpi>div:first-child{font-size:7px;letter-spacing:.4px}
 :is(.overview-mode,.trends-mode) .kpi>div:first-child span{display:none}:is(.overview-mode,.trends-mode) .kpi em{font-size:8px;margin-left:3px}
 :is(.overview-mode,.trends-mode) .process-panel>.panel-head{padding:8px 10px;flex-wrap:nowrap}
 :is(.overview-mode,.trends-mode) .process-panel>.panel-head p{display:none}
 :is(.overview-mode,.trends-mode) .process-footer{padding:6px 8px}:is(.overview-mode,.trends-mode) .legend{gap:6px 10px;font-size:7px}
 :is(.overview-mode,.trends-mode) main>footer span:first-child{display:none}
}
@media(max-width:520px){
 :is(.overview-mode,.trends-mode) .sidebar .brand{display:none}
 :is(.overview-mode,.trends-mode) .sidebar{gap:0}:is(.overview-mode,.trends-mode) nav button{font-size:10px}
 :is(.overview-mode,.trends-mode) .page-heading{justify-content:space-between}
 :is(.overview-mode,.trends-mode) .toolbar{width:100%}:is(.overview-mode,.trends-mode) .toolbar select{flex:1}
 :is(.overview-mode,.trends-mode) .header-right{gap:7px}:is(.overview-mode,.trends-mode) .breadcrumb{font-size:10px}
 :is(.overview-mode,.trends-mode) .kpi .fraction{font-size:14px}
 :is(.overview-mode,.trends-mode) .kpi em{display:block;margin:1px 0 0}
 :is(.overview-mode,.trends-mode) .kpi-grid{gap:5px}:is(.overview-mode,.trends-mode) .kpi{height:70px;padding:7px 5px}
 :is(.overview-mode,.trends-mode) .kpi>div:first-child{min-height:16px;margin-bottom:2px;font-size:6px}
 :is(.overview-mode,.trends-mode) .live-label{font-size:6px;letter-spacing:0}:is(.overview-mode,.trends-mode) h2{font-size:11px}
}
@media(max-height:600px) and (min-width:851px){
 :is(.overview-mode,.trends-mode) .sidebar-bottom,:is(.overview-mode,.trends-mode) .sidebar .site-label,:is(.overview-mode,.trends-mode) .sidebar .plant{display:none}
 :is(.overview-mode,.trends-mode) .sidebar{padding-top:16px}
 :is(.overview-mode,.trends-mode) header{height:34px;min-height:34px}:is(.overview-mode,.trends-mode) main{padding-top:5px;gap:5px}
 :is(.overview-mode,.trends-mode) h1{font-size:19px}:is(.overview-mode,.trends-mode) .kpi{height:58px;padding:7px 12px}
 :is(.overview-mode,.trends-mode) .kpi strong{font-size:20px}:is(.overview-mode,.trends-mode) .kpi small{display:none}
 :is(.overview-mode,.trends-mode) .process-panel>.panel-head{padding:7px 12px}:is(.overview-mode,.trends-mode) .process-panel>.panel-head p{display:none}
 :is(.overview-mode,.trends-mode) .process-footer{padding:5px 10px}
}

/* Flow + totalizers and final-effluent instrumentation, kept inside the fit-screen row. */
.kpi-grid,:is(.overview-mode,.trends-mode) .kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.kpi[data-equipment]{cursor:pointer}.kpi[data-equipment]:hover{border-color:#82bde4}
.kpi[data-equipment]:focus-visible{outline:2px solid #168fda;outline-offset:2px}
.kpi>div:first-child .instrument-tag{font:8px ui-monospace,monospace;letter-spacing:0;color:#8caac0;margin-top:1px}
.flow-total{color:#62849d;font-size:10px;margin-top:4px;white-space:nowrap}
.flow-total b{font-weight:600;font-variant-numeric:tabular-nums;color:#337ea8;margin:0 3px}
:is(.overview-mode,.trends-mode) .kpi{height:94px;padding:10px 11px}
:is(.overview-mode,.trends-mode) .kpi>div:first-child{font-size:8px;letter-spacing:.3px}
:is(.overview-mode,.trends-mode) .kpi strong{font-size:24px}
:is(.overview-mode,.trends-mode) .flow-kpi small{display:none}
:is(.overview-mode,.trends-mode) .flow-total{font-size:9px;margin-top:5px}
:is(.overview-mode,.trends-mode) .quality-kpi small{font-size:8px;margin-top:10px}
@media(max-width:1150px){
 :is(.overview-mode,.trends-mode) .kpi{padding:9px 7px}
 :is(.overview-mode,.trends-mode) .kpi>div:first-child{font-size:7px}
 .kpi>div:first-child .instrument-tag{font-size:7px}
 :is(.overview-mode,.trends-mode) .kpi strong{font-size:22px}
 :is(.overview-mode,.trends-mode) .flow-total{font-size:8px}
 :is(.overview-mode,.trends-mode) .quality-kpi small{font-size:7px}
}
@media(max-width:650px){
 .kpi-grid,:is(.overview-mode,.trends-mode) .kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 :is(.overview-mode,.trends-mode) .kpi{height:66px;padding:6px 8px}
 :is(.overview-mode,.trends-mode) .kpi>div:first-child{min-height:10px;margin-bottom:2px;font-size:7px}
 :is(.overview-mode,.trends-mode) .kpi>div:first-child .instrument-tag{display:inline;font-size:6px}
 :is(.overview-mode,.trends-mode) .kpi strong{font-size:18px}
 :is(.overview-mode,.trends-mode) .kpi em{display:inline;font-size:8px;margin-left:3px}
 :is(.overview-mode,.trends-mode) .flow-total{font-size:8px;margin-top:2px}
 :is(.overview-mode,.trends-mode) .quality-kpi small{display:none}
}
@media(max-height:600px) and (min-width:851px){
 :is(.overview-mode,.trends-mode) .kpi{height:70px;padding:6px 8px}
 :is(.overview-mode,.trends-mode) .kpi strong{font-size:19px}
 :is(.overview-mode,.trends-mode) .flow-total{margin-top:2px;font-size:8px}
 :is(.overview-mode,.trends-mode) .quality-kpi small{display:none}
}

/* Trend & History share the single-viewport shell with Overview. */
.trends-mode main{grid-template-rows:auto minmax(0,1fr) auto}
.trends-mode .kpi-grid{display:none}
.trends-mode #trends:not([hidden]){display:flex;min-height:0;min-width:0}
.trend-history-panel{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
.trend-toolbar{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;gap:12px;flex:none;border-bottom:1px solid #e2edf6}
.trend-toolbar p{font-size:10px;color:#7792a6;margin:7px 0 0}
.trend-controls{display:flex;align-items:center;gap:12px;min-width:0}
.trend-controls select{font-size:11px;max-width:280px;min-width:0}
.view-switch{display:flex;background:#edf5fb;border:1px solid #d4e6f3;border-radius:7px;padding:3px;gap:3px;flex:none}
.view-switch button{border:0;background:transparent;color:#638aa6;padding:7px 13px;font-size:11px}
.view-switch button[aria-pressed="true"]{background:#fff;color:#1683c6;box-shadow:0 2px 6px #296e9b18}
.trend-summary{display:grid;grid-template-columns:1.3fr repeat(3,1fr);border-bottom:1px solid #e2edf6;flex:none;background:#f9fcff}
.trend-summary>div{padding:14px 18px;border-right:1px solid #e2edf6}.trend-summary>div:last-child{border:0}
.trend-summary span{display:block;font-size:8px;letter-spacing:.7px;color:#7b97ac;margin-bottom:7px}
.trend-summary strong{font-size:24px;font-weight:550;color:#2a719e;font-variant-numeric:tabular-nums}
.trend-summary small{font-size:10px;margin-left:7px;color:#7e9caf}
.instrument-view{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
.instrument-view[hidden]{display:none!important}
.plot-caption{display:flex;justify-content:space-between;padding:14px 20px 7px;font-size:10px;color:#5e8eaf;gap:12px;flex:none}
.plot-caption span:last-child{font-size:8px;letter-spacing:.7px}
.trend-history-panel .chart.large{flex:1;min-height:0;height:auto;padding:0 18px 8px}
.trend-footnote{flex:none;color:#8ba2b3;font-size:9px;padding:4px 20px 12px}
.trend-status{display:flex;justify-content:space-between;padding:10px 18px;background:#f5faff;border-top:1px solid #dfeef8;gap:12px;flex:none;color:#7d98ad;font-size:9px}
.history-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 18px;font-size:10px;color:#7896ad;flex:none}
.history-table-area{flex:1;min-height:0;min-width:0;overflow:hidden}
.history-table{width:100%;table-layout:fixed;border-collapse:collapse}
.history-table th{height:36px;padding:7px 16px;font-size:8px;letter-spacing:.3px;white-space:nowrap}
.history-table td{height:34px;padding:5px 16px;font-size:11px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-table th:nth-child(1){width:25%}.history-table th:nth-child(2){width:25%}.history-table th:nth-child(3){width:25%}.history-table th:nth-child(4){width:25%}
.history-table td:first-child{font-size:10px;color:#698ba5}.history-table td:nth-child(2){color:#297ba9;font-weight:550;font-variant-numeric:tabular-nums}
.history-source{font-size:8px;background:#ebf6fd;color:#6693b3;padding:3px 7px;border-radius:4px}
.history-pagination{flex:none;display:flex;align-items:center;justify-content:space-between;padding:9px 18px;border-top:1px solid #e0edf6;font-size:10px;color:#7692a8;gap:10px}
.history-pagination>div{display:flex;align-items:center;gap:14px}.history-pagination button{padding:5px 12px;font-size:12px}
button:disabled{opacity:.4;cursor:default}
@media(max-width:1150px){.trend-toolbar{align-items:flex-start}.trend-controls{gap:8px}.trend-controls select{max-width:225px}.trend-summary strong{font-size:22px}.view-switch button{padding:7px 10px}}
@media(max-width:850px){
 .trend-toolbar{padding:10px 12px;flex-wrap:wrap;gap:8px}.trend-toolbar p{font-size:9px;margin-top:4px}
 .trend-controls{margin-left:auto}.trend-controls select{max-width:210px;font-size:10px;padding:7px}
 .view-switch button{font-size:10px;padding:6px 10px}
 .trend-summary>div{padding:10px 12px}.trend-summary strong{font-size:20px}.trend-summary span{font-size:7px;margin-bottom:5px}.trend-summary small{font-size:8px}
 .trend-status{padding:8px 12px;font-size:8px}.history-caption{padding:9px 12px;font-size:9px}
 .history-table th,.history-table td{padding-left:10px;padding-right:10px}.history-pagination{padding:7px 12px}
}
@media(max-width:560px){
 .trend-toolbar>div:first-child{display:none}.trend-controls{width:100%;margin:0;gap:7px;flex-wrap:wrap}
 .trend-controls select{max-width:none;width:100%;order:2}.view-switch{width:100%}.view-switch button{flex:1}
 .trend-summary>div{padding:9px 8px}.trend-summary span{font-size:6px;letter-spacing:0}.trend-summary strong{font-size:17px}.trend-summary small{display:block;margin:2px 0 0;font-size:8px}
 .plot-caption{padding:10px 12px;font-size:9px}.plot-caption span:last-child{font-size:6px}
 .trend-footnote{font-size:8px;padding:4px 12px 8px}.trend-status span:last-child{display:none}
 .history-table th,.history-table td{padding-left:7px;padding-right:7px}.history-table th{font-size:6px}.history-table td{font-size:10px}.history-source{font-size:6px;padding:2px 3px}
 .history-caption{font-size:8px;align-items:flex-start}.history-caption .text-btn{font-size:8px;white-space:nowrap}
 .history-pagination{font-size:8px}.history-pagination>div{gap:8px}.history-pagination button{padding:4px 9px}
}
@media(max-height:600px) and (min-width:851px){
 .trend-toolbar{padding:8px 12px}.trend-toolbar p{display:none}
 .trend-summary>div{padding:7px 12px}.trend-summary strong{font-size:19px}.trend-summary span{margin-bottom:3px;font-size:7px}
 .plot-caption{padding-top:8px}.trend-footnote{display:none}.trend-status{padding:6px 12px}
}
@media(max-height:520px){.trends-mode .trend-summary{display:none}.trend-footnote{display:none}}

.history-datebar{display:flex;align-items:center;gap:8px;padding:10px 18px 0;flex:none;min-width:0}
.history-datebar label{font-size:10px;color:#6486a0;white-space:nowrap}
.history-datebar input{width:146px;font-size:11px;padding:6px 9px;min-width:0}
.history-datebar button{padding:4px 9px;font-size:16px;line-height:20px}
#historyDateInfo{font-size:9px;color:#87a0b3;margin-left:auto}
.history-table td.history-empty{white-space:normal;text-align:center;color:#8aa1b2;font-weight:400;padding:18px 12px;line-height:1.8}
@media(max-width:700px){.history-datebar{padding:8px 12px 0;gap:5px}.history-datebar label{font-size:8px}.history-datebar input{width:126px;font-size:10px}#historyDateInfo{display:none}}

.history-actions{display:flex;align-items:center;gap:14px;flex:none}
.print-history-button{font-size:10px;padding:6px 10px;border-color:#acd2ec;color:#247fb8;background:#f0f8fe;white-space:nowrap}
#printReport{display:none}
@media(max-width:560px){.history-caption{flex-wrap:wrap;gap:8px}.history-actions{margin-left:auto;gap:12px}.print-history-button{font-size:9px;padding:5px 8px}}
@media print{
 @page{size:A4 portrait;margin:15mm 13mm 16mm}
 body.print-report-ready{height:auto!important;overflow:visible!important;background:white!important;color:#1c3345!important;font-family:Arial,sans-serif;font-size:9pt}
 body.print-report-ready>*{display:none!important}
 body.print-report-ready>#printReport{display:block!important;position:static;width:100%;height:auto;overflow:visible}
 #printReport *{box-sizing:border-box}
 #printReport .report-header{display:block;height:auto;border:0;padding:0;margin:0 0 6mm;background:white;color:#1c3345;break-inside:avoid}
 .report-brand{font-size:8pt;letter-spacing:1px;color:#347ba7;border-bottom:2px solid #247dad;padding-bottom:3mm;margin-bottom:4mm}
 #printReport h1{font-size:17pt;letter-spacing:0;margin:0 0 3mm;white-space:normal}
 #printReport h2{font-size:12pt;font-weight:600;margin:0 0 4mm;color:#286d99}
 #printReport h2 span{font-size:9pt;font-weight:400;margin-left:3mm;color:#6a8190}
 #printReport dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:2mm 5mm;font-size:8pt}
 #printReport dl div{display:flex;gap:3mm}#printReport dt{min-width:26mm;color:#6c7e8a}#printReport dd{margin:0;font-weight:500}
 .report-summary{display:flex;justify-content:space-between;gap:3mm;border:1px solid #cbdce7;padding:3mm;margin-bottom:4mm;font-size:8pt;break-inside:avoid}
 .report-summary b{margin-left:2mm}.report-summary span:last-child{color:#647986;font-size:7pt}
 #printReport .report-table{width:100%;border-collapse:collapse;table-layout:auto;font-variant-numeric:tabular-nums}
 #printReport thead{display:table-header-group}#printReport tbody{display:table-row-group}
 #printReport tr{break-inside:avoid;page-break-inside:avoid}
 #printReport th,#printReport td{border:1px solid #cfdae3;padding:2mm 2.5mm;font-size:8pt;color:#2c4354;line-height:1.35;background:white}
 #printReport th{font-weight:600;background:#edf5fb;letter-spacing:0;text-align:left}
 #printReport .report-repeat th{font-size:7pt;color:#416d8a;padding:2mm 2.5mm;background:#f7fbfe}
 #printReport td:first-child{font-family:Arial,sans-serif;color:#6b8190;font-size:8pt;width:10mm}
 #printReport td:nth-child(n+3){text-align:right}
 #printReport .report-footer{display:block;border:0;padding:4mm 0 0;font-size:7pt;line-height:1.6;color:#667c8b;break-inside:avoid}
}

/* History chart and its paginated readings share a single viewport. */
.history-content{display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr);flex:1;min-height:0;min-width:0}
.history-chart-panel{display:flex;flex-direction:column;min-height:0;padding:0 14px 7px;border-bottom:1px solid #deebf5;background:#fbfdff}
.history-plot-label{font-size:9px;line-height:17px;padding:3px 6px;color:#6a91ad;flex:none}
#historyChart{flex:1;min-height:0;min-width:0}#historyChart svg{display:block;width:100%;height:100%}
.history-content .history-table-area{min-height:0}
@media(max-width:560px){.history-chart-panel{padding:0 6px 4px}.history-plot-label{font-size:7px;line-height:14px}}
@media print{
 #printReport .report-history-figure{display:block;break-inside:avoid;page-break-inside:avoid;margin:0 0 5mm;border:1px solid #d0e0eb;padding:3mm}
 #printReport .report-history-figure figcaption{font-size:8pt;font-weight:600;color:#356e94;margin-bottom:2mm}
 #printReport .report-history-figure svg{display:block;width:100%;height:58mm}
 #printReport .report-history-figure p{font-size:6.5pt;line-height:1.5;color:#718a9a;margin:2mm 0 0}
}

/* Revised P&ID: standby backwash piping is intentionally not animated. */
.backwash-pipe{fill:none;stroke:#a7bac9;stroke-width:4;stroke-dasharray:10 5;stroke-linejoin:round}
.detail-row{gap:20px;align-items:flex-start}.detail-row strong{text-align:right;max-width:68%;font-size:11px;line-height:1.65}

/* Instrument families have separate selections; history/date state stays shared. */
.instrument-category-switch{display:flex;align-items:center;gap:7px;flex:none;padding:9px 18px;border-bottom:1px solid #dfedf6;background:#f7fbff;min-width:0}
.instrument-category-switch button{padding:7px 14px;font-size:11px;border-color:#d5e6f2;background:#fff;color:#6b8da7;white-space:nowrap}
.instrument-category-switch button[aria-pressed="true"]{background:#e0f1ff;color:#197bb8;border-color:#8fc5e9;box-shadow:inset 0 -2px #279ada}
#metricGroupNote{font-size:9px;color:#8ba4b6;margin-left:auto}
.instrument-category-switch .level-group-button{font-size:9px;margin-left:3px}
@media(max-width:1100px){#metricGroupNote{display:none}}
@media(max-width:650px){.instrument-category-switch{padding:7px 10px;gap:5px}.instrument-category-switch button{font-size:10px;padding:6px 9px}.instrument-category-switch .level-group-button{font-size:8px;padding:6px}}
@media(max-height:600px){.instrument-category-switch{padding-top:5px;padding-bottom:5px}.instrument-category-switch button{padding-top:5px;padding-bottom:5px}}

/* Demo status LEDs and local simulation controls. */
.inactive-flow,.inactive-flow.chemical,.inactive-flow.sludge,.inactive-flow.treated{fill:none;stroke:#b5c5d1;stroke-width:2.4;stroke-dasharray:3 5;animation:none}
.flowline.backwash{stroke:#b29a70}
.sim-controls{display:flex;flex-direction:column;gap:10px;background:#f1f8fe;border:1px solid #d6e8f5;border-radius:8px;padding:13px;margin-top:14px}
.sim-controls>span{font-size:9px;color:#7898b0;letter-spacing:.6px;display:flex;justify-content:space-between;gap:10px}
.sim-controls b{font-size:11px;letter-spacing:0;color:#3d87b5}
.sim-controls button{font-size:11px}.sim-stop{border-color:#b8d9cf;color:#188c70;background:#e5f6ef}
.sim-low{border-color:#efd6ac;color:#ac7c32;background:#fff8eb}
.sim-options{display:flex;gap:6px}.sim-options button{flex:1}
.sim-options button[aria-pressed="true"]{background:#dceffc;border-color:#7ebde6;color:#2484bd}

/* User-supplied Enerba identity. Original artwork is used without modification. */
.sidebar .enerba-brand{gap:12px;letter-spacing:0;min-width:0}
.enerba-logo-box{display:flex;align-items:center;justify-content:center;width:84px;height:84px;flex:none;background:#fff;border-radius:9px;border:1px solid #ffffff8a;overflow:hidden}
.enerba-logo-box img{display:block;object-fit:contain;width:100%;height:100%}
.enerba-brand-copy{font-size:20px;font-weight:650;letter-spacing:1px}
.brand .enerba-brand-copy small{font-size:9px;font-weight:400;letter-spacing:.3px;color:#a6cce6;line-height:1.6;margin-top:7px}
.page-heading>div:first-child{min-width:0}
:is(.overview-mode,.trends-mode) #pageTitle{white-space:normal;overflow-wrap:break-word;font-size:clamp(17px,1.65vw,23px);line-height:1.25}
@media(max-width:1250px) and (min-width:851px){.enerba-logo-box{width:70px;height:70px}.sidebar .enerba-brand{gap:9px}.enerba-brand-copy{font-size:18px}.brand .enerba-brand-copy small{font-size:8px}}
@media(max-width:850px){
 :is(.overview-mode,.trends-mode) .sidebar .enerba-brand{display:flex;gap:6px}
 .enerba-logo-box{width:34px;height:34px;border-radius:5px}
 .enerba-brand-copy{display:none}.sidebar .brand .enerba-brand-copy small{display:none}
}
@media(max-width:520px){
 :is(.overview-mode,.trends-mode) .sidebar{gap:6px}
 :is(.overview-mode,.trends-mode) .sidebar .enerba-brand{display:flex}
 :is(.overview-mode,.trends-mode) nav button{font-size:9px}
}
@media print{
 #printReport .report-brand{display:flex;align-items:center;gap:5mm;min-height:18mm;letter-spacing:0}
 #printReport .report-brand img{display:block;width:18mm;height:18mm;object-fit:contain}
 #printReport .report-brand strong{display:block;font-size:15pt;color:#1679ac;letter-spacing:1px}
 #printReport .report-brand span{display:block;font-size:9pt;color:#638297;margin-top:1.5mm}
}
.sidebar .enerba-brand+.site-label{margin-top:26px}

/* Softer logo backing; the supplied PNG already contains transparency. */
.sidebar .enerba-logo-box{background:#dcecf6;border-color:#a9cbdf;box-shadow:0 3px 12px #062b431c}
.sidebar .enerba-brand-copy{font-size:12px;font-weight:550;letter-spacing:.1px;line-height:1.65;color:#d9ecfa;overflow-wrap:normal}
@media print{#printReport .report-brand strong{font-size:12pt;letter-spacing:0}}
.sidebar-bottom .software-owner{font-size:14px;color:#e6f3fc;font-weight:550;margin:9px 0 12px;line-height:1.4}
main>footer strong{font-weight:550;color:#5984a1}

/* Native-size chart geometry keeps axis text proportional at every viewport. */
.chart svg,#historyChart svg{display:block;max-width:100%;max-height:100%}
.sweep-speed-label{display:flex;align-items:center;gap:7px;font-size:10px;color:#638da9;white-space:nowrap}
.sweep-speed-label select{font-size:10px;padding:5px 8px;background:#fff;border-color:#cbdfea;border-radius:5px}
.plot-caption{align-items:center}
@media(max-width:560px){.sweep-speed-label{font-size:8px;gap:4px}.sweep-speed-label select{font-size:9px;padding:4px 6px}}
nav button[data-tab="equipment"]:disabled{opacity:.38;cursor:not-allowed;background:transparent;box-shadow:none}

/* Alarms show a dedicated event table, without instrument reading cards. */
.alarms-mode .kpi-grid{display:none}
.alarm-table-filters{display:flex;align-items:center;gap:10px;padding:13px 18px;border-top:1px solid #e1edf5;border-bottom:1px solid #dbe9f3;background:#f7fbff}
.alarm-table-filters select{font-size:11px;min-width:115px}.alarm-table-filters input{margin-left:auto;width:300px;max-width:45%;font-size:11px}
.alarm-table-scroll{overflow-x:auto}
.alarm-events-table{min-width:960px;width:100%;table-layout:auto}
.alarm-events-table th{font-size:8px;padding:13px 15px;white-space:nowrap;background:#edf5fb}
.alarm-events-table td{padding:14px 15px;font-size:11px;vertical-align:middle;border-color:#e0ecf5}
.alarm-events-table .alarm-timestamp{font-size:10px;color:#6a8aa2;white-space:nowrap;font-family:inherit}
.alarm-events-table .alarm-code{font:10px ui-monospace,monospace;color:#3b88b4}
.alarm-events-table strong{display:block;font-weight:550;line-height:1.5}
.alarm-events-table small{display:block;color:#8aa1b3;font-size:9px;line-height:1.6;margin-top:4px;max-width:380px}
.alarm-pill{display:inline-block;padding:4px 7px;border-radius:5px;font-size:8px;white-space:nowrap;font-weight:600}
.severity-info{background:#e3f3fd;color:#2c8bbf}.severity-warning{background:#fff2d8;color:#b38623}.severity-critical{background:#fde9e9;color:#c35e5e}
.status-active{background:#fde9e9;color:#c35e5e}.status-acknowledged{background:#e1f4ec;color:#279b78}.status-returned{background:#f0f3e5;color:#87914d}.status-logged{background:#edf3f8;color:#839fb3}
.alarm-ack{font-size:9px;white-space:nowrap;padding:6px 9px;color:#428cb7;border-color:#c0daed;background:#f2f9fe}
.alarm-events-table .alarm-empty{text-align:center;color:#88a0b3;padding:35px 20px}
@media(max-width:650px){.alarm-table-filters{flex-wrap:wrap;padding:10px}.alarm-table-filters select{flex:1;min-width:0;font-size:10px}.alarm-table-filters input{width:100%;max-width:none;margin-left:0}.alarm-table-panel>.panel-head{align-items:center}}

/* Alarm table format follows the reference, with the dashboard's fresh blue palette. */
.alarms-mode .workspace{background:linear-gradient(135deg,#eff8ff,#e7f2fc 70%);min-height:100vh}
.alarms-mode header{background:#ffffffdb;border-color:#d7e7f3}.alarms-mode .breadcrumb strong,.alarms-mode h1{color:#245372}
.alarms-mode .eyebrow{color:#4d8bb8}.alarms-mode .page-heading p{color:#7794a9}.alarms-mode main>footer{border-color:#d1e3f0;color:#7798af}
.alarm-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.alarm-summary-grid article{background:linear-gradient(120deg,#fff,#f8fcff);border:1px solid #cee3f2;border-radius:11px;padding:18px;min-height:88px;box-shadow:0 4px 14px #23668c08}
.alarm-summary-grid span{display:block;font-size:9px;letter-spacing:.8px;color:#6d91ab;font-weight:600;margin-bottom:11px}
.alarm-summary-grid strong{font-size:25px;font-weight:600;color:#2580ba}
#criticalAlarmCount{color:#d76065}#warningAlarmCount{color:#b48a28}#acknowledgedAlarmCount{color:#279c82}
.alarms-mode .alarm-table-panel{background:#fff;border:1px solid #cce2f2;border-radius:11px;box-shadow:0 5px 18px #23668c08}
.alarms-mode .alarm-table-filters{background:#f7fbff;border:0;border-bottom:1px solid #d6e7f4;padding:15px 16px}
.alarms-mode .alarm-table-filters select,.alarms-mode .alarm-table-filters input{background:#fff;border-color:#c5dfee;color:#3f6c8c;font-size:11px;padding:10px}
.alarms-mode .alarm-table-filters input{width:320px}.alarms-mode .alarm-table-filters input::placeholder{color:#8ba4b5}
.alarms-mode .alarm-events-table th{background:#eaf5fd;color:#5886a7;padding:15px 16px;font-size:8px;letter-spacing:.7px;border-bottom:1px solid #cfe2f0}
.alarms-mode .alarm-events-table td{color:#4c708c;border-color:#e0edf6;padding:18px 16px;font-size:11px}
.alarms-mode .alarm-events-table tbody tr:nth-child(even){background:#f8fbfe}.alarms-mode .alarm-events-table tbody tr:hover{background:#eff8ff}
.alarms-mode .alarm-events-table .alarm-timestamp{color:#7293aa;font-size:10px}
.alarms-mode .alarm-events-table .alarm-code{color:#2983ba;font-size:10px;font-weight:550}
.alarms-mode .alarm-events-table strong{color:#345c78;font-size:11px;font-weight:550}
.alarms-mode .alarm-events-table small{color:#819daf}.alarms-mode .alarm-pill{border-radius:6px;font-size:8px;padding:6px 8px;font-weight:600}
.alarms-mode .severity-critical,.alarms-mode .status-active{background:#fcebed;color:#c55260}
.alarms-mode .severity-warning{background:#fff3d9;color:#aa7e22}
.alarms-mode .severity-info{background:#e0f1fe;color:#287db4}
.alarms-mode .status-acknowledged{background:#e1f5ec;color:#258f73}
.alarms-mode .status-returned{background:#f0f4df;color:#829348}.alarms-mode .status-logged{background:#eaf2f8;color:#6d90a7}
.alarms-mode .alarm-ack{background:#edf7ff;border-color:#a7cee8;color:#257fb8;font-weight:550;font-size:9px;padding:7px 10px}
.alarms-mode .alarm-ack:hover{background:#dcefff}.alarms-mode .alarm-ack:disabled{background:#f7fafc;border-color:#dce8f0;color:#90a9ba;opacity:1}
.alarms-mode .alarm-empty{color:#8ba5b7}
@media(max-width:750px){.alarm-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.alarm-summary-grid article{padding:14px;min-height:78px}.alarms-mode .alarm-table-filters{padding:11px}}
