/* Tela inicial (classes hm-*): não afeta os módulos, que têm seu próprio CSS isolado. */
.hm-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px; margin:0 0 14px; }
.hm-top-status { color:var(--muted); font-size:14px; }
.hm-seg { display:inline-flex; padding:3px; background:#e2e8f0; border-radius:8px; gap:2px; }
.hm-seg button { padding:6px 12px; color:var(--muted); background:transparent; border:0; border-radius:6px; cursor:pointer; font-size:14px; font-weight:650; }
.hm-seg button[aria-pressed="true"] { color:var(--blue-dark); background:var(--surface); box-shadow:0 1px 3px rgb(15 23 42 / 12%); }
.hm-notice { margin:0 0 14px; padding:12px 14px; color:#92400e; background:#fef3c7; border:1px solid #fcd34d; border-radius:8px; font-size:14px; }
.hm-notice.soft { color:var(--muted); background:#f1f5f9; border-color:var(--line); }
.hm-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0 0 14px; }
.hm-kpi { display:grid; gap:4px; min-width:0; padding:14px 15px; background:var(--surface); border:1px solid var(--line); border-radius:9px; }
.hm-kpi > span { color:var(--muted); font-size:14px; font-weight:650; }
.hm-kpi > strong { overflow:hidden; font-size:clamp(20px,1.9vw,26px); letter-spacing:-.04em; line-height:1.1; text-overflow:ellipsis; white-space:nowrap; }
.hm-kpi > small { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; min-height:16px; color:var(--muted); font-size:14px; }
.hm-delta { padding:1px 6px; font-size:13px; font-style:normal; font-weight:700; border-radius:10px; white-space:nowrap; }
.hm-delta.good { color:#166534; background:#dcfce7; } .hm-delta.bad { color:#991b1b; background:#fee2e2; } .hm-delta.flat { color:var(--muted); background:#e2e8f0; }
.hm-grid { display:grid; gap:12px; margin:0 0 14px; }
.hm-two { grid-template-columns:minmax(0,2fr) minmax(0,1fr); } .hm-three { grid-template-columns:repeat(3,minmax(0,1fr)); } .hm-four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.hm-card { min-width:0; padding:15px 16px; background:var(--surface); border:1px solid var(--line); border-radius:9px; }
.hm-card > header { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:0 0 11px; }
.hm-card > header strong { font-size:15px; letter-spacing:-.02em; }
.hm-card > header span { flex:0 0 auto; color:var(--muted); font-size:13px; }
.hm-table-wrap { overflow-x:auto; }
.hm-table { width:100%; border-collapse:collapse; font-size:14px; font-variant-numeric:tabular-nums; }
.hm-table th { padding:6px 8px; color:var(--muted); font-size:13px; font-weight:700; text-align:right; white-space:nowrap; border-bottom:1px solid var(--line); }
.hm-table td { padding:8px; text-align:right; white-space:nowrap; border-bottom:1px solid #e2e8f0; }
.hm-table th:first-child,.hm-table td:first-child { width:28px; text-align:left; color:var(--muted); } .hm-table th:nth-child(2),.hm-table td:nth-child(2) { text-align:left; }
.hm-table .hm-warn { color:#991b1b; font-weight:700; }
.hm-bar-cell { position:relative; min-width:120px; } .hm-bar-cell span { position:relative; z-index:1; }
.hm-bar-cell i { position:absolute; inset:7px 4px 7px auto; width:calc(var(--w) * .8); background:#e2e8f0; border-radius:3px; }
.hm-chart svg.hm-bars { display:block; width:100%; height:92px; fill:var(--blue); stroke:none; }
.hm-chart > header span { text-transform:none; letter-spacing:0; font-size:14px; }
.hm-chart footer { display:flex; justify-content:space-between; margin-top:6px; color:var(--muted); font-size:13px; }
.hm-list { display:grid; gap:2px; margin:0; padding:0; list-style:none; }
.hm-list li { position:relative; display:grid; grid-template-columns:20px minmax(0,1fr) auto; align-items:center; gap:8px; padding:7px 4px; overflow:hidden; border-radius:5px; }
.hm-list li i { position:absolute; inset:auto 0 0 28px; height:3px; width:calc(var(--w) - 28px); max-width:calc(100% - 28px); background:#e2e8f0; border-radius:2px; }
.hm-rank { color:var(--muted); font-size:14px; font-weight:700; text-align:center; }
.hm-name { display:grid; min-width:0; } .hm-name b { overflow:hidden; font-size:14px; text-overflow:ellipsis; white-space:nowrap; } .hm-name small { color:var(--muted); font-size:13px; }
.hm-val { font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap; }
.hm-empty { margin:0; padding:10px 4px; color:var(--muted); font-size:14px; list-style:none; }
.hm-attn { display:grid; gap:7px; margin:0; padding:0; list-style:none; }
.hm-attn li { display:grid; gap:1px; padding:9px 11px; background:#f1f5f9; border-left:3px solid #f59e0b; border-radius:5px; font-size:14px; }
.hm-attn li.consumo { border-left-color:#dc2626; } .hm-attn li.parados { border-left-color:#5a687d; } .hm-attn small { color:var(--muted); font-size:14px; }
.hm-modules-title { margin:6px 0 10px; color:var(--muted); font-size:13px; font-weight:750; }
@media (max-width:1250px) { .hm-four { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:980px) { .hm-two,.hm-three { grid-template-columns:minmax(0,1fr); } .hm-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .hm-four { grid-template-columns:minmax(0,1fr); } .hm-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .hm-card { padding:13px; } }

/* Detalhe de uma frota (cruza Combustível, Ordens e Escala) */
.hm-fleet-link { all:unset; cursor:pointer; color:inherit; border-bottom:1px dashed currentColor; }
.hm-fleet-link:focus-visible { outline:2px solid var(--accent, #2f73a6); outline-offset:2px; }
.hm-fleet-modal { width:min(880px, 94vw); max-height:88vh; overflow:auto; }
.hm-fleet-modal header small { display:block; color:var(--muted); margin-top:2px; }
.hm-fleet-kpis { display:flex; flex-wrap:wrap; gap:8px 18px; margin:14px 0; font-size:15px; }
.hm-fleet-kpis b { font-size:18px; font-variant-numeric:tabular-nums; }
.hm-fleet-cols { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:14px; }
.hm-fleet-cols h3 { font-size:15px; margin:0 0 6px; }
.hm-fleet-cols h3 small { color:var(--muted); font-weight:400; }
.hm-fleet-cols ul { margin:0; padding:0; list-style:none; display:grid; gap:4px; font-size:14px; }
.hm-fleet-cols li { padding:5px 8px; border:1px solid var(--line); border-radius:8px; overflow-wrap:anywhere; }
.hm-fleet-modal footer { display:flex; justify-content:flex-end; margin-top:14px; }
