/* Operational dashboard layout and restrained shared interaction feedback. */
#dashboard{color:#20384f}.dash-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.dash-toolbar>div{margin-right:auto}.dash-eyebrow{font-size:10px;letter-spacing:1.8px;color:#71849a;font-weight:650;margin:0 0 7px}#dashFresh{font-size:12px;color:#548295;margin:0}.dash-toolbar label{margin:0;font-size:10px}.dash-toolbar select{display:block;margin-top:4px;min-width:160px;font-size:12px}.dash-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:20px}.dash-kpi{padding:18px;text-align:left;border:1px solid #dce5ee;border-radius:12px;background:white;display:flex;flex-direction:column;gap:8px;min-width:0}.dash-kpi-label{font-size:12px;font-weight:650;color:#456078}.dash-kpi-value{font-size:30px;font-weight:730;line-height:1.2;letter-spacing:-.8px;color:#23415b}.dash-kpi small{font-size:11px;line-height:1.6;color:#74899d}.dash-kpi[data-kind=down]{border-top:3px solid #dc3e59;background:#fff9fa}.dash-kpi[data-kind=down] strong{color:#cf304d}.dash-kpi[data-kind=warning]{border-top:3px solid #e6b51b;background:#fffdf5}.dash-kpi[data-kind=warning] strong{color:#ae7c13}.dash-status-breakdown{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.dash-status-breakdown button{font-size:11px;padding:5px 10px;border-radius:18px;text-transform:capitalize}.dash-status-breakdown [data-status=up]{color:#27835c}.dash-status-breakdown [data-status=down]{color:#cc324c}.dash-status-breakdown [data-status=warning]{color:#a87609}.dash-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:18px}.dash-panel{background:white;border:1px solid #dce5ee;border-radius:12px;min-width:0;overflow:hidden}.dash-panel-head{padding:18px 20px 14px;display:flex;align-items:start;justify-content:space-between;gap:12px}.dash-panel-head h2{font-size:16px;margin:0 0 6px;letter-spacing:-.2px}.dash-panel-head p{font-size:11px;line-height:1.7;color:#74899d;margin:0}.dash-panel-head button{font-size:11px;padding:6px 9px;white-space:nowrap}.dash-chart-controls{display:flex;gap:9px;padding:0 20px 12px;flex-wrap:wrap}.dash-chart-controls input{width:180px;flex:1;min-width:130px;font-size:11px}.dash-chart-controls select{flex:2;min-width:180px;max-width:100%;font-size:11px}.dash-chart{padding:0 14px;min-height:230px;display:flex;flex-direction:column;justify-content:center}.dash-chart svg{display:block;width:100%;height:auto;max-height:360px}.dash-chart-legend{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;font-size:11px;padding:12px}.dash-chart-legend span:before{content:'';display:inline-block;width:16px;height:3px;margin-right:7px;vertical-align:middle;background:#0799aa}.dash-chart-legend .dash-tx:before{background:#3979c4}.dash-chart-legend small{font-size:10px}.dash-chart-hint{padding:6px 20px 14px;min-height:40px;font-size:11px;color:#74899d;line-height:1.6;margin:0}.dash-empty{padding:25px 20px;color:#74899d;font-size:12px;line-height:1.8}.dash-link-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 55px;gap:12px;align-items:center;width:100%;text-align:left;border:0;border-top:1px solid #edf1f5;border-radius:0;padding:13px 20px;background:white}.dash-link-label strong{display:block;font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.dash-link-label small{display:block;font-size:10px;margin-top:5px;color:#74899d}.dash-link-row>strong{font-size:13px;text-align:right}.dash-meter{display:block;background:#e9eef3;height:7px;border-radius:8px;overflow:hidden}.dash-meter>span{display:block;height:100%;border-radius:8px;background:#379b6d}.dash-meter[data-band=yellow]>span{background:#e5b323}.dash-meter[data-band=orange]>span{background:#e98727}.dash-severity{display:inline-block;padding:4px 7px;border-radius:5px;color:#b66f13;background:#fff4dc;font-size:10px;font-weight:650;text-transform:capitalize}.dash-severity[data-level=critical]{color:#cb324d;background:#ffedf1}.dash-severity[data-level=major]{color:#c16d20;background:#fff0df}#dashAlarms table{font-size:11px}#dashAlarms td{padding:12px}#dashAlarms td small{display:block;font-size:10px;margin-bottom:4px}#dashAlarms td button{font-size:11px;border:0;background:transparent;padding:0;max-width:240px;text-align:left;overflow-wrap:anywhere}.dash-event{display:flex;gap:14px;padding:12px 20px;border-top:1px solid #edf1f5}.dash-event time{font-size:10px;color:#74899d;min-width:78px;max-width:90px;line-height:1.6}.dash-event strong{font-size:11px;display:block;line-height:1.6;overflow-wrap:anywhere}.dash-event small{font-size:10px;display:block;line-height:1.7;color:#74899d;margin-top:4px}.dash-footnote{font-size:10px;color:#74899d;line-height:1.8;padding:12px 0}#dashboard[data-offline=true] .dash-kpi{opacity:.6}#dashboard[data-offline=true] #dashFresh{color:#b57d18}
@media(min-width:2200px){.dash-chart svg{max-height:420px}.dash-kpi{padding:22px}.dash-kpi-value{font-size:34px}}@media(max-width:1200px){.dash-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-grid{grid-template-columns:minmax(0,1fr)}.dash-chart svg{max-height:340px}}@media(max-width:600px){.dash-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dash-kpi{padding:13px}.dash-kpi-value{font-size:25px}.dash-toolbar>div{width:100%}.dash-toolbar label{flex:1}.dash-toolbar select{width:100%;min-width:120px}.dash-panel-head{padding:15px}.dash-link-row{padding:12px 15px;grid-template-columns:minmax(0,1fr) 60px 48px;gap:8px}.dash-panel-head{flex-wrap:wrap}.dash-chart-controls{padding:0 15px 12px}}
@media(hover:hover) and (pointer:fine){button:not(:disabled),a.button,.side-nav button,.sensor,.counter{transition:background-color .17s ease,border-color .17s ease,box-shadow .17s ease,transform .17s ease}.side-nav button:hover{background:#1e3a55;color:#fff;box-shadow:inset 3px 0 #45bfd4}.side-nav button:hover .nav-icon{color:#78d7e7}.toolbar>button:not(:disabled):hover,.actions>button:not(:disabled):hover,.panel-head>button:not(:disabled):hover,header button:not(:disabled):hover,.dash-toolbar>button:not(:disabled):hover,.dash-panel-head>button:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 3px 9px #17345415}.dash-kpi:hover{transform:translateY(-2px);border-color:#94bacd;box-shadow:0 5px 16px #17345412}.sensor:hover{border-color:#8fb7cb;box-shadow:0 2px 8px #17345413}.counter:hover{background:#f5fafc;box-shadow:0 2px 7px #17345412}.dash-link-row:hover,.ml-interface:hover{background:#f1f8fb}tbody tr:hover>td{background-color:#dcecf43b}.dash-kpi:active{transform:translateY(0)}}
button:focus-visible,a.button:focus-visible,.side-nav button:focus-visible,.sensor:focus-visible{outline:3px solid #48b8d780;outline-offset:2px}
@media(prefers-reduced-motion:reduce){button,a.button,.sensor,.counter{transition:none!important;animation:none!important}.dash-kpi:hover,.toolbar>button:hover,.actions>button:hover,.panel-head>button:hover,header button:hover,.dash-toolbar>button:hover,.dash-panel-head>button:hover{transform:none!important}}

#dashFresh:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#329d76;margin-right:7px}#dashboard[data-offline=true] #dashFresh:before{background:#c38c18}

/* Total inventory is informational; red is reserved for active alarm conditions. */
.dash-kpi[data-kind=devices]{background:#f7faff;border-color:#dce6f2;border-top:3px solid #5a8fcc}.dash-kpi[data-kind=devices] .dash-kpi-value{color:#316caa}
.dash-kpi[data-kind=sensors]{background:#f4fbfc;border-color:#d2e8ed;border-top:3px solid #2d9baa}.dash-kpi[data-kind=sensors] .dash-kpi-value{color:#087f98}
.dash-kpi[data-kind=healthy]{background:#f6fbf8;border-color:#d8e9df;border-top:3px solid #4c9d7a}.dash-kpi[data-kind=healthy] .dash-kpi-value{color:#27835f}
.dash-kpi[data-kind=busy-idle]{background:#fffdf8;border-color:#ebe5d9;border-top:3px solid #b3a17c}.dash-kpi[data-kind=busy-idle] .dash-kpi-value{color:#82704d}
.dash-kpi[data-kind=neutral]{background:#fafbfd;border-color:#dce5ee;border-top:3px solid #95a5b6}.dash-kpi[data-kind=neutral] .dash-kpi-value{color:#63758b}

/* Compact historical navigation; current status cards remain live. */
.dash-time-nav{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:4px 20px 8px;flex-wrap:wrap}.dash-time-nav>span{margin-right:auto;font-size:10px;color:#71849a;line-height:1.6}.dash-time-nav button{min-width:32px;min-height:30px;padding:5px 9px;font-size:12px;border-radius:7px}.dash-time-nav button.is-live{color:#087f98;background:#edf8fb;border-color:#b8dce5}.dash-time-nav button:disabled{opacity:.5;cursor:default}@media(max-width:600px){.dash-time-nav>span{flex-basis:100%}}

/* Host telemetry is separate from monitored-device health. */
/* The section title is shared; each reading has its own dashboard card. */
.dash-host-health{margin:0 0 20px;color:var(--astro-ink,#26354b)}
.dash-host-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 10px}
.dash-host-heading h2{font-size:14px;margin:0}
.dash-host-heading>span{font-size:11px;color:var(--muted,#697386)}
.dash-host-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.dash-host-metric{
 min-width:0;padding:13px 16px 12px;background:var(--astro-surface,#fff);
 border:1px solid var(--astro-border,#e4eaf3);border-radius:14px;
 --host-meter:#3c9d79;--host-accent:var(--astro-teal,#3264f5)
}
.dash-host-reading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dash-host-label{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px;font-weight:600}
.dash-host-reading>strong{font-size:24px;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.dash-host-icon{
 position:relative;display:grid;place-items:center;flex:0 0 26px;height:26px;
 border-radius:7px;color:var(--host-accent);background:var(--astro-section,#f3f6fb)
}
.dash-host-icon::before,.dash-host-icon::after{content:"";display:block;box-sizing:border-box}
.dash-host-icon::before{width:13px;height:10px;border:1.5px solid currentColor;border-radius:2px}
.dash-host-icon::after{position:absolute}
.dash-host-metric[data-metric=cpu] .dash-host-icon::before{width:11px;height:11px;outline:1px dotted currentColor;outline-offset:2px}
.dash-host-metric[data-metric=cpu] .dash-host-icon::after{width:3px;height:3px;background:currentColor}
.dash-host-metric[data-metric=memory] .dash-host-icon::before{width:16px;height:8px}
.dash-host-metric[data-metric=memory] .dash-host-icon::after{width:8px;height:3px;border-inline:2px solid currentColor}
.dash-host-metric[data-metric=disk] .dash-host-icon::after{width:3px;height:3px;right:8px;bottom:10px;border-radius:50%;background:currentColor}
.dash-host-meter{height:5px;background:var(--astro-border,#e7edf5);border-radius:5px;margin-top:11px;overflow:hidden}
.dash-host-meter>i{height:100%;display:block;background:var(--host-meter);border-radius:inherit}
.dash-host-detail{font-size:11px;line-height:1.55;color:var(--muted,#697386);margin:7px 0 0;overflow-wrap:anywhere}
.dash-host-metric[data-band=warning]{--host-meter:#d9a42e}
.dash-host-metric[data-band=critical]{--host-meter:#e65775}
.dash-host-metric[data-band=critical] strong{color:#cc3856}
.dash-host-metric[data-band=unknown]{--host-meter:#91a1b9}
.dash-host-health[data-stale=true] .dash-host-heading>span{color:#b17b24}
.dash-host-health[data-stale=true] .dash-host-reading{opacity:.7}
html[data-theme=dark] .dash-host-meter{background:#2c3d55}
html[data-theme=dark] .dash-host-metric[data-band=critical] strong{color:#ff96aa}
@media(max-width:700px){
 .dash-host-metrics{grid-template-columns:1fr;gap:10px}
 .dash-host-heading{flex-wrap:wrap;gap:5px 12px}
}
