/* GPS387 v0.8.3 — Fleet Health & Operational Monitoring, enterprise blue */
.health-shell{display:flex;flex-direction:column;gap:15px;color:var(--ink2);padding-bottom:24px}
.health-header{display:flex;align-items:start;justify-content:space-between;gap:16px;border:1px solid var(--border);background:var(--paper);padding:21px 23px;border-radius:11px}
.health-header h2{color:var(--ink);font-size:18px;font-weight:650;letter-spacing:-.65px;margin:9px 0}
.health-header p{font-size:11px;color:var(--muted);line-height:1.7;max-width:640px;margin:0}
.health-header .fleet-button{flex-shrink:0}
.health-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.health-kpi{display:grid;gap:9px;border-radius:10px;border:1px solid var(--border);background:var(--paper);padding:15px 16px}
.health-kpi svg{color:var(--primary);width:17px;height:17px}
.health-kpi strong{font-size:21px;font-weight:650;letter-spacing:-.7px;color:var(--ink)}
.health-kpi>span{font-size:10px;color:var(--muted);line-height:1.4}
.health-pane{border:1px solid var(--border);background:var(--paper);border-radius:11px;overflow:hidden}
.health-pane-heading{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;gap:12px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.health-pane-heading h3{font-size:12px;display:flex;align-items:center;gap:8px;color:var(--ink);margin:0;font-weight:650}
.health-pane-heading h3 svg{width:16px;color:var(--primary)}
.health-pane-heading>span{font-size:10px;color:var(--muted)}
.health-filters{display:flex;align-items:center;gap:4px;background:var(--paper-soft);border-radius:8px;padding:3px}
.health-filters button{background:none;border:0;color:var(--muted);font-size:10px;border-radius:6px;padding:8px 11px;cursor:pointer}
.health-filters button.active{background:var(--paper);color:var(--primary);box-shadow:0 1px 4px #12315414}
.health-device{display:flex;align-items:center;gap:16px;padding:17px 18px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.health-device:last-child,.health-event:last-child{border-bottom:0}
.health-device-main{display:flex;gap:11px;align-items:center;min-width:165px;flex:1}
.health-status-icon{width:36px;height:36px;background:var(--primary-light);color:var(--primary);border-radius:9px;display:grid;place-items:center;flex-shrink:0}
.health-status-icon.bad{color:#ab6e2c;background:#fff3e8}
[data-theme=dark] .health-status-icon.bad{color:#e8b16d;background:#49301e}
.health-status-icon svg{width:16px;height:16px}
.health-device-main strong{display:block;font-size:12px;color:var(--ink);font-weight:650;overflow-wrap:anywhere}
.health-device-main small{display:block;font-size:10px;color:var(--muted);padding-top:5px}
.health-data{display:flex;flex-wrap:wrap;gap:7px 13px;align-items:center;flex:2;min-width:230px}
.health-data>span{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:10px;white-space:normal;line-height:1.55}
.health-data svg{height:13px;width:13px}
.health-pill{background:var(--paper-soft);padding:5px 8px;border-radius:6px;font-weight:600}
.health-pill.healthy{background:#e7f4ee;color:#23704c}
.health-pill.no_contact{background:#fbe8e7;color:#b43f37}
.health-pill.stale_fix{background:#fff2dc;color:#926017}
.health-pill.awaiting_activation,.health-pill.paused{background:var(--paper-soft);color:var(--muted)}
[data-theme=dark] .health-pill.healthy{background:#164434;color:#9be8c2}
[data-theme=dark] .health-pill.no_contact{background:#4b2625;color:#ffc4bc}
[data-theme=dark] .health-pill.stale_fix{background:#43361e;color:#ffdf93}
.health-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.health-actions button{font-size:9.5px}
.health-event{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:13px 18px;border-bottom:1px solid var(--border)}
.health-event.resolved{opacity:.66}
.health-event-type{display:inline-flex;align-items:center;gap:7px;font-size:11px;min-width:140px}
.health-event-type svg{width:16px;height:16px}
.health-event-type.critical{color:#ba4b46}.health-event-type.warning{color:#bc8031}
.health-event-meta{display:grid;gap:4px;min-width:110px;flex:1}
.health-event-meta strong{font-size:10.5px;color:var(--ink2)}.health-event-meta small{font-size:9.5px;color:var(--muted)}
.health-event-tag{font-size:9.5px;background:var(--paper-soft);border-radius:5px;padding:6px 8px;color:var(--muted)}
.health-empty{padding:23px;color:var(--muted);font-size:11px;line-height:1.7;margin:0}
.health-footer{margin:0;padding:0 4px;display:flex;align-items:start;gap:8px;color:var(--muted);font-size:10.5px;line-height:1.8}
.health-footer svg{width:16px;height:16px;flex-shrink:0;margin-top:1px;color:var(--primary)}
.health-dialog{max-width:480px;padding:21px 24px}
.health-dialog h3{font-size:14px;color:var(--ink);margin:0 0 17px}
.health-dialog form{display:flex;flex-direction:column;gap:13px}
.health-dialog form>label{display:grid;gap:6px;font-size:11px;color:var(--ink2)}
.health-dialog form>label:first-child{display:flex;align-items:center;gap:9px}
.health-dialog label span{color:var(--muted);font-size:9px}
.health-dialog input[type=number]{width:100%;height:39px;border:1px solid var(--border);border-radius:7px;padding:0 10px;background:var(--paper-soft);color:var(--ink)}
.health-dialog input[type=checkbox]{accent-color:var(--primary)}
.health-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}
@media(max-width:1380px){.health-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.health-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.health-header{padding:16px}.health-device{align-items:start}.health-device-main,.health-data{flex-basis:100%}.health-actions{width:100%}.health-event{gap:10px}.health-event-type{flex-basis:100%}.health-dialog{max-width:100%}}
@media(max-width:440px){.health-header{flex-wrap:wrap}.health-device{padding:12px}.health-pane-heading{padding:12px}.health-kpi{padding:11px}.health-kpi strong{font-size:19px}}

#notificationButton{position:relative}.health-notification-count{position:absolute;top:-5px;right:-5px;background:#b94343;color:white;border-radius:50px;padding:2px 5px;font-size:9px;font-weight:700;min-width:17px;line-height:1.4;text-align:center}.health-notification-count.hidden{display:none}
