/* Fleet Health screen (inside app.html). Every rule scoped under #fleet-health-section.
   Brand colours come from the app's theme variables (--app-accent-*, --app-label-color, --app-frost /
   --app-blur), so the screen follows the company's theme like every other screen. Data-series colours
   (systems, health score, today's status) are fixed on purpose -- they mean the same thing in every theme.
   The glass shell has backdrop-filter, so NOTHING position:fixed may live inside it: the chart tooltip is
   appended to document.body by fleet-health.js and styled inline. */

#fleet-health-section { padding-bottom: 30px; }
#fleet-health-section *, #fleet-health-section *::before, #fleet-health-section *::after { box-sizing: border-box; }

/* the glass panel every app screen sits on (.container's look) */
#fleet-health-section .fh-shell {
  background: rgba(255, 255, 255, var(--app-frost));
  backdrop-filter: blur(var(--app-blur));
  -webkit-backdrop-filter: blur(var(--app-blur));
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 20px auto;
  color: var(--app-label-color);
  min-width: 0;
}

/* the app's own button rule is width:100% + margin-top:10px -- undone here for every button on this screen */
#fleet-health-section button { width: auto; margin: 0; font-family: inherit; cursor: pointer; border: none; box-sizing: border-box; }
#fleet-health-section label { display: flex; margin: 0; color: #1f2933; text-shadow: none; }
#fleet-health-section a { color: var(--app-accent-ink); }

/* page title + Back, the way the other screens do it */
#fleet-health-section .fh-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 8px; }
#fleet-health-section .fh-title { flex: 1 1 auto; margin: 0; padding: 0; border: none; text-align: left; font-size: 1.5em; color: var(--app-label-color); min-width: 0; }
#fleet-health-section .fh-back { background-color: #78909c; color: #fff; padding: 9px 16px; border-radius: 6px; font-size: 15px; font-weight: 600; flex: 0 0 auto; }
#fleet-health-section .fh-back:hover { background-color: #546e7a; }

/* the app's buttons */
#fleet-health-section .fh-btn { background-color: var(--app-accent-color); color: var(--app-accent-text); padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: 0.9em; }
#fleet-health-section .fh-btn:hover { background-color: var(--app-accent-hover); }
#fleet-health-section .fh-btn.fh-ghost { background: #fff; color: var(--app-accent-ink); border: 2px solid var(--app-accent-tint-border); }
#fleet-health-section .fh-btn.fh-ghost:hover { background: var(--app-accent-tint); }
#fleet-health-section .fh-btn[disabled] { background: #78909c; color: #fff; cursor: default; }

/* 12 / 24 months / Refresh: the shared tab look (.app-tabbar) */
#fleet-health-section .fh-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; }
#fleet-health-section .fh-tabs { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 10px; background: rgba(0,0,0,0.35); }
#fleet-health-section .fh-tab { background: var(--app-accent-color); color: var(--app-accent-text); border-radius: 7px; padding: 7px 12px; font-size: 0.85em; font-weight: 700; }
#fleet-health-section .fh-tab:hover { background: var(--app-accent-hover); }
#fleet-health-section .fh-tab.on, #fleet-health-section .fh-tab.on:hover { background: #fff; color: var(--app-accent-ink); }

#fleet-health-section .fh-scan { background: #fff; color: #1f2933; border-radius: 10px; padding: 6px 12px; font-size: 0.82em; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; max-width: 100%; }
#fleet-health-section .fh-scan b { color: #2e7d32; } #fleet-health-section .fh-scan b.fh-warn { color: #e65100; }
#fleet-health-section .fh-scan button { background: var(--app-accent-color); color: var(--app-accent-text); border-radius: 12px; padding: 4px 10px; font-size: 0.95em; font-weight: 700; }
#fleet-health-section .fh-scanNote { flex-basis: 100%; }
#fleet-health-section .fh-scanNote .err { color: #c62828; } #fleet-health-section .fh-scanNote .ok { color: #2e7d32; }
#fleet-health-section .fh-asof { font-size: 0.8em; color: var(--app-label-color); margin: -2px 0 10px; }
#fleet-health-section .fh-bar { display: inline-block; width: 110px; height: 10px; background: #eceff1; border: 1px solid #90a4ae; border-radius: 5px; vertical-align: middle; overflow: hidden; margin-right: 6px; }
#fleet-health-section .fh-bar i { display: block; height: 100%; background: var(--app-accent-color); }

/* white cards (solid panels: dark text, no text shadow) */
#fleet-health-section .fh-box { background: #fff; color: #1f2933; border-radius: 12px; padding: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.18); min-width: 0; margin-bottom: 12px; text-shadow: none; }
#fleet-health-section .fh-box p { color: #1f2933; }
#fleet-health-section .fh-loading { text-align: center; color: #5f6b7a; padding: 30px 16px; }
#fleet-health-section .fh-spin { width: 34px; height: 34px; margin: 0 auto 10px; border: 4px solid #e0e0e0; border-top-color: var(--app-accent-color); border-radius: 50%; animation: fh-spin .8s linear infinite; }
@keyframes fh-spin { to { transform: rotate(360deg); } }
#fleet-health-section .fh-err { color: #c62828; }
#fleet-health-section .fh-note { background: #fff; color: #1f2933; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 0.9em; border-left: 5px solid #ef8f00; text-shadow: none; }
#fleet-health-section .fh-h { margin: 0 0 4px; font-size: 1.02em; font-weight: 800; color: var(--app-accent-ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#fleet-health-section .fh-sub { font-size: 0.8em; color: #5f6b7a; margin: 0 0 10px; }
#fleet-health-section .fh-sub0 { font-size: 0.8em; color: #5f6b7a; }
#fleet-health-section .fh-up { color: #c62828; } #fleet-health-section .fh-down { color: #2e7d32; }
#fleet-health-section .fh-acc { background: var(--app-accent-color) !important; color: var(--app-accent-text) !important; }

/* number tiles */
#fleet-health-section .fh-kpis { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
#fleet-health-section .fh-kpis.k3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
#fleet-health-section .fh-kpi { background: #fff; color: #1f2933; border-radius: 12px; padding: 12px 14px; box-shadow: 0 2px 10px rgba(0,0,0,.18); min-width: 0; text-align: left; font-size: 1em; text-shadow: none; }
#fleet-health-section .fh-kpi.flat { box-shadow: none; border: 1px solid #e3e8ef; }
#fleet-health-section .fh-kpi .l { font-size: 0.72em; color: #5f6b7a; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
#fleet-health-section .fh-kpi .v { font-size: 1.55em; font-weight: 800; margin-top: 2px; overflow-wrap: anywhere; }
#fleet-health-section .fh-kpi .d { font-size: 0.78em; margin-top: 2px; } #fleet-health-section .fh-kpi .m { color: #5f6b7a; }
#fleet-health-section .fh-kpi.btnk { border: 3px solid transparent; cursor: pointer; font-weight: 400; color: #1f2933; }
#fleet-health-section .fh-kpi.btnk:hover { border-color: var(--app-accent-tint-border); background: #fff; }
#fleet-health-section .fh-kpi.btnk.on { border-color: var(--app-accent-color); }
#fleet-health-section .fh-unit { font-size: 0.5em; color: #5f6b7a; }

#fleet-health-section .fh-grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; margin-bottom: 12px; }
#fleet-health-section .fh-grid2b { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 12px; margin-bottom: 12px; }
#fleet-health-section .fh-grid2 > .fh-box, #fleet-health-section .fh-grid2b > .fh-box { margin-bottom: 0; }

/* charts */
#fleet-health-section .fh-crumbs { font-size: 0.85em; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
#fleet-health-section .fh-crumbs a, #fleet-health-section .fh-clr { color: var(--app-accent-ink); cursor: pointer; font-weight: 700; text-decoration: none; font-size: 0.9em; }
#fleet-health-section .fh-crumbs .sep { color: #9aa5b1; }
#fleet-health-section .fh-donutRow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
#fleet-health-section .fh-donutBox { flex: 0 1 290px; max-width: 290px; min-width: 200px; }
#fleet-health-section .fh-donutBox svg { width: 100%; height: auto; display: block; overflow: visible; }
#fleet-health-section .fh-slice { cursor: pointer; transition: transform .18s ease, opacity .18s ease; transform-origin: 150px 150px; }
#fleet-health-section .fh-legend { flex: 1 1 200px; min-width: 0; max-height: 330px; overflow: auto; }
#fleet-health-section .fh-lg { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 0.88em; }
#fleet-health-section .fh-lg:hover, #fleet-health-section .fh-lg.hot { background: var(--app-accent-tint); }
#fleet-health-section .fh-lg i { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 12px; }
#fleet-health-section .fh-lg .n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fleet-health-section .fh-lg .a { font-weight: 700; white-space: nowrap; } #fleet-health-section .fh-lg .p { color: #5f6b7a; width: 42px; text-align: right; font-size: 0.9em; }
#fleet-health-section .fh-bars svg { width: 100%; height: auto; display: block; } #fleet-health-section .fh-barHit { cursor: pointer; }
#fleet-health-section .fh-calScroll { overflow-x: auto; padding-bottom: 4px; }
#fleet-health-section .fh-calKey { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 0.78em; color: #5f6b7a; margin-top: 6px; }

/* tables */
#fleet-health-section .fh-table { width: 100%; border-collapse: collapse; font-size: 0.86em; }
#fleet-health-section .fh-table th { text-align: left; color: #5f6b7a; font-weight: 700; font-size: 0.8em; text-transform: uppercase; padding: 6px 8px; border-bottom: 2px solid #e3e8ef; white-space: nowrap; background: #fff; position: sticky; top: 0; }
#fleet-health-section .fh-table td { padding: 7px 8px; border-bottom: 1px solid #e3e8ef; vertical-align: middle; }
#fleet-health-section .fh-table tr.click { cursor: pointer; } #fleet-health-section .fh-table tr.click:hover { background: var(--app-accent-tint); }
#fleet-health-section .fh-score { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
#fleet-health-section .fh-score .bar { width: 64px; height: 8px; border-radius: 4px; background: #e8ecf1; overflow: hidden; display: block; }
#fleet-health-section .fh-score .bar i { display: block; height: 100%; }
#fleet-health-section .fh-tag { display: inline-block; border-radius: 10px; padding: 1px 8px; font-size: 0.78em; font-weight: 700; color: #fff; margin: 1px 2px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
#fleet-health-section .fh-scroll { max-height: 440px; overflow: auto; -webkit-overflow-scrolling: touch; }
#fleet-health-section .fh-xscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#fleet-health-section .fh-rep { border: 1px solid #e3e8ef; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
#fleet-health-section .fh-rep:hover { background: var(--app-accent-tint); } #fleet-health-section .fh-rep .t { font-weight: 800; } #fleet-health-section .fh-rep .m { font-size: 0.82em; color: #5f6b7a; }

/* Gemini summary panels */
#fleet-health-section .fh-gem { background: var(--app-accent-tint); color: #1f2933; border: 1px solid var(--app-accent-tint-border); border-left: 5px solid var(--app-accent-color); border-radius: 8px; padding: 10px 12px; font-size: 0.9em; margin-bottom: 12px; line-height: 1.45; text-shadow: none; }
#fleet-health-section .fh-tlink, #fleet-health-section .fh-sumlink { color: var(--app-accent-ink); font-weight: 800; cursor: pointer; text-decoration: underline; }
#fleet-health-section .fh-sumdet { background: #fff; border: 1px solid #cfd8e3; border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
#fleet-health-section .fh-sumdet .h { font-weight: 800; color: var(--app-accent-ink); margin-bottom: 4px; }
#fleet-health-section .fh-sumdet .r { padding: 4px 0; border-top: 1px solid #eef1f5; font-size: 0.9em; line-height: 1.45; }
#fleet-health-section .fh-sumx { float: right; color: #c62828; cursor: pointer; font-weight: 700; font-size: 0.9em; }

/* truck page */
#fleet-health-section .fh-truckHead { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
#fleet-health-section .fh-truckHead .big { font-size: 2em; font-weight: 800; color: var(--app-accent-ink); }
#fleet-health-section .fh-verdict { border-radius: 10px; padding: 8px 12px; font-weight: 800; color: #fff; }
#fleet-health-section .fh-pull { display: grid; grid-template-columns: minmax(0,170px) 1fr 34px; gap: 6px; align-items: center; font-size: 0.82em; margin: 3px 0; }
#fleet-health-section .fh-now { display: inline-block; color: #fff; font-size: 0.72em; font-weight: 800; padding: 1px 7px; border-radius: 9px; vertical-align: middle; }
#fleet-health-section .fh-nowl { margin-top: 6px; font-size: 0.8em; color: #37474f; }
#fleet-health-section .fh-nowbox { background: #fff; color: #222; border-left: 5px solid #78909c; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; font-size: 0.92em; line-height: 1.45; box-shadow: 0 1px 4px rgba(0,0,0,.2); text-shadow: none; }
#fleet-health-section .fh-nowbox .sub { margin-top: 6px; color: #37474f; }
#fleet-health-section .fh-tlc { border: 1px solid #e3e8ef; border-left: 6px solid #90a4ae; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
#fleet-health-section .fh-tlc.weak { opacity: .8; }
#fleet-health-section .fh-tlc .top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#fleet-health-section .fh-tlc .nm { font-weight: 800; font-size: 1.02em; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
#fleet-health-section .fh-tlc .cnt { color: #fff; border-radius: 12px; padding: 2px 10px; font-weight: 800; font-size: 0.85em; white-space: nowrap; }
#fleet-health-section .fh-tlc .note { font-size: 0.86em; background: var(--app-accent-tint); border-radius: 6px; padding: 6px 8px; margin: 6px 0; }
#fleet-health-section .fh-pstats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85em; margin: 6px 0; }
#fleet-health-section .fh-tlv { display: grid; grid-template-columns: 110px minmax(0,1fr) 80px; gap: 8px; padding: 7px 0; border-top: 1px solid #eef1f5; align-items: start; font-size: 0.86em; }
#fleet-health-section .fh-tlv .d { font-weight: 700; } #fleet-health-section .fh-tlv .d .bk { display: block; font-weight: 700; font-size: 0.85em; color: #c62828; }
#fleet-health-section .fh-tlv .txt { margin-top: 3px; overflow-wrap: anywhere; } #fleet-health-section .fh-tlv .c { text-align: right; font-weight: 700; }
#fleet-health-section .fh-weakh { font-weight: 800; margin: 12px 0 6px; color: #5f6b7a; }

/* fleet tiles: Full Fleet + one per location */
#fleet-health-section .fh-fleets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 12px; }
#fleet-health-section .fh-fleet { background: #fff; text-align: left; border-radius: 12px; padding: 10px 12px; box-shadow: 0 2px 10px rgba(0,0,0,.18); color: #1f2933; border: 4px solid transparent; cursor: pointer; min-width: 0; text-shadow: none; }
#fleet-health-section .fh-fleet.on { border-color: var(--app-accent-color); background: var(--app-accent-tint); }
#fleet-health-section .fh-fleet.part { border-color: var(--app-accent-tint-border); }
#fleet-health-section .fh-fleet.dim { opacity: .85; } #fleet-health-section .fh-fleet.dim:hover { opacity: 1; }
#fleet-health-section .fh-fleet .sel { display: inline-block; background: var(--app-accent-color); color: var(--app-accent-text); font-weight: 800; font-size: 0.7em; letter-spacing: .05em; border-radius: 6px; padding: 2px 8px; margin-bottom: 4px; }
#fleet-health-section .fh-fleet .nm { font-weight: 800; color: var(--app-accent-ink); overflow-wrap: anywhere; }
#fleet-health-section .fh-fleet .row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
#fleet-health-section .fh-fleet .nums { font-size: 0.82em; line-height: 1.35; }
#fleet-health-section .fh-fleet .hl { font-size: 0.78em; color: #5f6b7a; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
#fleet-health-section .fh-fleet .ft { font-size: 0.75em; color: #5f6b7a; }
#fleet-health-section .fh-fleet .subs { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; border-top: 1px solid #e3e8ef; padding-top: 8px; }
#fleet-health-section .fh-sub-btn { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; text-align: left; background: #f5f8fc; color: #1f2933; border: 2px solid #e3e8ef; border-radius: 8px; padding: 5px 8px; font-size: 0.82em; font-weight: 400; }
#fleet-health-section .fh-sub-btn:hover { border-color: var(--app-accent-tint-border); background: #f5f8fc; }
#fleet-health-section .fh-sub-btn .t { font-weight: 800; color: var(--app-accent-ink); flex: 1 1 auto; }
#fleet-health-section .fh-sub-btn .hs { color: #fff; border-radius: 9px; padding: 0 7px; font-weight: 800; font-size: 0.9em; white-space: nowrap; }
#fleet-health-section .fh-sub-btn .n { flex-basis: 100%; color: #5f6b7a; font-size: 0.92em; }
#fleet-health-section .fh-sub-btn.on { background: var(--app-accent-color); border-color: var(--app-accent-color); color: var(--app-accent-text); }
#fleet-health-section .fh-sub-btn.on .t, #fleet-health-section .fh-sub-btn.on .n, #fleet-health-section .fh-sub-btn.on .n b { color: var(--app-accent-text) !important; }
#fleet-health-section .fh-types { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: -2px 0 12px; }
#fleet-health-section .fh-types .lbl { color: var(--app-label-color); font-weight: 700; font-size: 0.85em; align-self: center; }
#fleet-health-section .fh-type { background: #fff; display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 7px 10px; border: 3px solid transparent; color: #1f2933; font-size: 0.9em; font-weight: 400; }
#fleet-health-section .fh-type:hover { background: #fff; border-color: var(--app-accent-tint-border); }
#fleet-health-section .fh-type.on { border-color: var(--app-accent-color); background: var(--app-accent-tint); }
#fleet-health-section .fh-type .nm { font-weight: 800; color: var(--app-accent-ink); }
#fleet-health-section .fh-type .sc { color: #fff; border-radius: 10px; padding: 1px 8px; font-weight: 800; font-size: 0.9em; }
#fleet-health-section .fh-type .sub { font-size: 0.8em; color: #5f6b7a; }
#fleet-health-section .fh-showing { background: #fff; color: #1f2933; border-radius: 10px; padding: 8px 12px; margin: -2px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-left: 6px solid var(--app-accent-color); text-shadow: none; }
#fleet-health-section .fh-showing .lbl { color: #5f6b7a; font-weight: 700; } #fleet-health-section .fh-showing b { color: var(--app-accent-ink); } #fleet-health-section .fh-showing .arr { color: #9aa5b1; }
#fleet-health-section .fh-showing button { margin-left: auto; background: var(--app-accent-color); color: var(--app-accent-text); border-radius: 8px; padding: 5px 12px; font-weight: 700; font-size: 0.85em; }
#fleet-health-section .fh-rl { border-top: 1px solid #e3e8ef; padding: 8px 2px; cursor: pointer; }
#fleet-health-section .fh-rl .h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#fleet-health-section .fh-rl .hs { color: #fff; border-radius: 9px; padding: 0 7px; font-weight: 800; font-size: 0.8em; margin-left: auto; }

/* Ask the fleet */
#fleet-health-section .fh-askHead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
#fleet-health-section .fh-tip2 { font-size: 0.8em; color: #37474f; background: #fff8e1; border-radius: 6px; padding: 5px 8px; margin: 6px 0; }
#fleet-health-section .fh-chatbox { max-height: 520px; min-height: 120px; overflow-y: auto; background: #f4f7fb; border: 1px solid #dfe6ee; border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
#fleet-health-section .fh-chatempty { color: #5f6b7a; font-size: 0.88em; padding: 18px 6px; text-align: center; }
#fleet-health-section .fh-msg { display: flex; margin: 8px 0; } #fleet-health-section .fh-msg.me { justify-content: flex-end; }
#fleet-health-section .fh-msg .b { max-width: 88%; min-width: 0; padding: 8px 12px; border-radius: 12px; font-size: 0.92em; line-height: 1.5; overflow-wrap: anywhere; }
#fleet-health-section .fh-msg.me .b { background: var(--app-accent-color); color: var(--app-accent-text); font-weight: 700; border-bottom-right-radius: 4px; }
#fleet-health-section .fh-msg.ai .b { background: #fff; color: #1f2933; border: 1px solid #dfe6ee; border-bottom-left-radius: 4px; }
#fleet-health-section .fh-msg .err { color: #c62828; }
#fleet-health-section .fh-tblw { margin-top: 8px; max-width: 100%; overflow-x: auto; }
#fleet-health-section .fh-tblt { font-weight: 800; color: var(--app-accent-ink); font-size: 0.88em; margin-bottom: 4px; }
#fleet-health-section .fh-atbl { border-collapse: collapse; font-size: 0.8em; width: 100%; }
#fleet-health-section .fh-atbl th { background: var(--app-accent-tint); color: var(--app-accent-ink); text-align: left; padding: 4px 6px; white-space: nowrap; }
#fleet-health-section .fh-atbl td { border-top: 1px solid #e3e8ef; padding: 4px 6px; vertical-align: top; }
#fleet-health-section .fh-file { margin-top: 8px; font-size: 0.9em; } #fleet-health-section .fh-file a { font-weight: 800; cursor: pointer; text-decoration: underline; }
#fleet-health-section .fh-askRow { display: flex; gap: 8px; align-items: stretch; }
#fleet-health-section .fh-askRow input { flex: 1 1 auto; width: auto; min-width: 0; font-size: 16px; padding: 10px 12px; border: 2px solid #cfd8e3; border-radius: 8px; color: #1f2933; background: #fff; margin: 0; }
#fleet-health-section .fh-askRow input:focus { border-color: var(--app-accent-color); outline: none; }
#fleet-health-section .fh-askRow button { background: var(--app-accent-color); color: var(--app-accent-text); border-radius: 8px; padding: 10px 18px; font-weight: 800; }
#fleet-health-section .fh-askRow button[disabled] { background: #78909c; color: #fff; }
#fleet-health-section .fh-askIdeas { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
#fleet-health-section .fh-idea { background: var(--app-accent-tint); color: var(--app-accent-ink); border: 1px solid var(--app-accent-tint-border); border-radius: 14px; padding: 5px 10px; font-size: 0.8em; font-weight: 700; margin-top: 6px; }
#fleet-health-section .fh-idea:hover { background: #fff; }
#fleet-health-section .fh-chk { font-size: 0.8em; margin-top: 6px; padding: 5px 8px; border-radius: 6px; }
#fleet-health-section .fh-chk.ok { background: #e8f5e9; color: #1b5e20; } #fleet-health-section .fh-chk.bad { background: #ffebee; color: #b71c1c; font-weight: 700; } #fleet-health-section .fh-chk.warn { background: #fff8e1; color: #6d4c00; }

/* who can see it (master) */
#fleet-health-section .fh-acc label { align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid #eee; cursor: pointer; font-weight: 600; }
#fleet-health-section .fh-acc input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }

@media (max-width: 1100px) { #fleet-health-section .fh-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 900px) { #fleet-health-section .fh-grid2, #fleet-health-section .fh-grid2b { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 640px) {
  #fleet-health-section .fh-shell { padding: 12px 10px; margin: 12px auto; }
  #fleet-health-section .fh-title { font-size: 1.25em; }
  #fleet-health-section .fh-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  #fleet-health-section .fh-kpis.k3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  #fleet-health-section .fh-kpi { padding: 10px; } #fleet-health-section .fh-kpi .v { font-size: 1.25em; }
  #fleet-health-section .fh-fleets { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  #fleet-health-section .fh-fleet { padding: 8px; }
  #fleet-health-section .fh-fleet .row { flex-direction: column; align-items: flex-start; }
  #fleet-health-section .fh-fleet .row svg { width: 72px !important; }
  #fleet-health-section .fh-fleet:not(.on):not(.part) .subs { display: none; }
  #fleet-health-section .fh-fleet.on, #fleet-health-section .fh-fleet.part { grid-column: 1 / -1; }
  #fleet-health-section .fh-type { flex: 1 1 45%; flex-wrap: wrap; gap: 4px 8px; }
  #fleet-health-section .fh-types .lbl { flex-basis: 100%; }
  #fleet-health-section .fh-tlv { grid-template-columns: 74px minmax(0,1fr) 60px; }
  #fleet-health-section .fh-hideS { display: none; }
  #fleet-health-section .fh-msg .b { max-width: 96%; }
  #fleet-health-section .fh-chatbox { max-height: 60vh; }
  #fleet-health-section .fh-pull { grid-template-columns: minmax(0,1fr) 70px 30px; }
  #fleet-health-section .fh-box { padding: 12px; }
}
