
/* HC Ao Vivo v2 — fiel à prévia aprovada. Não modifica telemetria. */
body[data-sql-page="live"] #hardcore-fleet{--hc2-bg:#0b151b;--hc2-panel:#0d1b23;--hc2-line:#28404c;--hc2-text:#f2f6f8;--hc2-muted:#a4b9c3;--hc2-gold:#f1c462;--hc2-green:#38d6a1}
body[data-sql-page="live"] #hardcore-fleet .section-head{margin:0 0 12px;padding:0}
body[data-sql-page="live"] #hardcore-fleet .section-head h2{font-size:19px;letter-spacing:.02em}
body[data-sql-page="live"] .hc2-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border:1px solid var(--hc2-line);background:#0e161b;border-radius:11px;padding:10px 12px;margin:0 0 10px}
body[data-sql-page="live"] .hc2-left,body[data-sql-page="live"] .hc2-right{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
body[data-sql-page="live"] .hc2-segment{display:flex;gap:4px;padding:4px;background:#05090b;border:1px solid #29404b;border-radius:9px}
body[data-sql-page="live"] .hc2-toolbar button{font:700 12px/1.2 system-ui,sans-serif;border-radius:7px;border:1px solid #3a4b56;color:#edf4f6;background:#111f25;padding:9px 11px;cursor:pointer;white-space:nowrap}
body[data-sql-page="live"] .hc2-segment button{border-color:transparent;background:transparent}
body[data-sql-page="live"] .hc2-toolbar button[aria-pressed="true"]{background:#e4b957;border-color:#e4b957;color:#15191d}
body[data-sql-page="live"] .hc2-toolbar button:focus-visible,body[data-sql-page="live"] .hc2-expand:focus-visible{outline:2px solid #f1c462;outline-offset:2px}
body[data-sql-page="live"] .hc2-toolbar button:hover:not([aria-pressed="true"]){background:#27343a}
body[data-sql-page="live"] .hc2-right .fleet-tools{display:flex;align-items:center;gap:8px;width:auto}
body[data-sql-page="live"] .hc2-right input,body[data-sql-page="live"] .hc2-right select{background:#081015;color:#fff;border:1px solid #39515c;border-radius:8px;padding:9px 10px;font:12px/1.4 system-ui,sans-serif;min-height:36px}
body[data-sql-page="live"] .hc2-right input{min-width:185px;width:210px}
body[data-sql-page="live"] .hc2-count{font-size:11px;color:#a4b9c3;font-weight:700}
body[data-sql-page="live"] .hc2-legend{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:8px 3px 12px;color:#a4b9c3;font-size:11px}
body[data-sql-page="live"] .hc2-legend b{font-weight:700}
body[data-sql-page="live"] .hc2-legend .on{color:#38d6a1}
body[data-sql-page="live"] .hc2-legend .off{color:#b4c3ce}
body[data-sql-page="live"] .hc2-official-note{font-size:11px!important;line-height:1.45!important;margin:0 0 10px!important;padding:8px 10px!important}
body[data-sql-page="live"] .hc2-board{border:1px solid #28404c;border-radius:12px;background:#0b151b;overflow-x:auto;overflow-y:hidden;box-shadow:0 12px 35px #0003}
body[data-sql-page="live"] .hc2-head{display:none}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-head,
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row{display:grid;grid-template-columns:minmax(142px,1.35fr) minmax(155px,1.6fr) minmax(130px,1.2fr) minmax(65px,.65fr) minmax(104px,1fr) minmax(118px,1.05fr) minmax(67px,.65fr) 68px minmax(80px,.7fr) 32px;gap:9px;align-items:center;min-width:1060px}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-head{background:#111e26;color:#c2d2d8;font:900 10px/1.35 system-ui,sans-serif;letter-spacing:.055em;text-transform:uppercase;padding:12px 13px;white-space:nowrap}
body[data-sql-page="live"][data-hc2-mode="compact"] #fleet-cards{border:0!important;border-radius:0!important;background:transparent!important}
body[data-sql-page="live"][data-hc2-mode="compact"] #fleet-cards .fleet-driver{border:0!important;border-top:1px solid #293941!important;border-radius:0!important;background:#0b151b!important;margin:0!important;padding:0!important}
body[data-sql-page="live"][data-hc2-mode="compact"] #fleet-cards .fleet-driver > header,
body[data-sql-page="live"][data-hc2-mode="compact"] #fleet-cards .fleet-driver > .fleet-columns{display:none!important}
body[data-sql-page="live"] .hc2-row,body[data-sql-page="live"] .hc2-detail{display:none}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row{padding:10px 13px;min-height:91px;transition:background .15s}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row:hover{background:#12242c}
body[data-sql-page="live"] #fleet-cards .hc2-row b,
body[data-sql-page="live"] #fleet-cards .hc2-detail b{float:none!important;margin:0!important;font-size:inherit!important}
body[data-sql-page="live"] .hc2-cell{min-width:0;line-height:1.38;font:12px/1.4 system-ui,-apple-system,Segoe UI,Arial,sans-serif;overflow:hidden}
body[data-sql-page="live"] .hc2-cell small{font-size:11px!important;line-height:1.4!important;color:#a4b9c3!important;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}
body[data-sql-page="live"] .hc2-name{display:flex;align-items:center;gap:6px;font-weight:900;font-size:14px;white-space:nowrap}
body[data-sql-page="live"] .hc2-name span{min-width:0;overflow:hidden;text-overflow:ellipsis}
body[data-sql-page="live"] .hc2-dot{background:#38d6a1;height:8px;width:8px;border-radius:50%;display:inline-block;flex:none;box-shadow:0 0 10px #34dea554}
body[data-sql-page="live"] .is-stale .hc2-dot{background:#7c94a0;box-shadow:none}
body[data-sql-page="live"] .hc2-stage{font-size:10px!important;color:#f1c462!important;font-weight:900}
body[data-sql-page="live"] .hc2-job{font-size:12px;font-weight:800;line-height:1.38;display:block}
body[data-sql-page="live"] .hc2-route{font-size:12px;font-weight:800;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-sql-page="live"] .hc2-metric{font-weight:800;font-size:13px;line-height:1.3}
body[data-sql-page="live"] .hc2-tiny{font-size:11px!important;color:#a4b9c3!important;line-height:1.4}
body[data-sql-page="live"] .hc2-meter{height:5px;background:#2e4047;border-radius:9px;overflow:hidden;margin:7px 0 4px}
body[data-sql-page="live"] .hc2-meter>i{display:block;height:100%;background:#f1c462}
body[data-sql-page="live"] .hc2-rep{color:#38d6a1}
body[data-sql-page="live"] .hc2-speed{height:46px;width:46px;border:1.5px solid #f1c462;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;margin:0 auto;font-size:17px;font-weight:950;line-height:1}
body[data-sql-page="live"] .hc2-speed small{font-size:9px!important;margin:1px 0 0!important;line-height:1.2!important}
body[data-sql-page="live"] .hc2-over{border-color:#ff6f73;color:#ff9d9c}
body[data-sql-page="live"] .hc2-speed-note{text-align:center}
body[data-sql-page="live"] .hc2-status{font-weight:750;font-size:11px;white-space:nowrap}
body[data-sql-page="live"] .hc2-status.online{color:#38d6a1}
body[data-sql-page="live"] .hc2-status.offline{color:#f6b3a3}
body[data-sql-page="live"] .hc2-expand{width:31px;height:31px;border:1px solid #44606b;background:#182831;color:#f1c462;display:grid;place-items:center;border-radius:8px;cursor:pointer;font-size:17px;line-height:1;padding:0}
body[data-sql-page="live"] .hc2-expand[aria-expanded="true"]{transform:rotate(180deg)}
body[data-sql-page="live"][data-hc2-mode="compact"] #fleet-cards .fleet-driver.hc2-expanded>.hc2-detail{display:block;background:#0d1b23;border-top:1px solid #293b46;padding:13px 15px 18px;min-width:1060px}
body[data-sql-page="live"] .hc2-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body[data-sql-page="live"] .hc2-detail-card{border:1px solid #2d4652;border-radius:10px;background:#0b161c;padding:12px}
body[data-sql-page="live"] .hc2-detail-card h4{color:#f1c462;margin:0 0 9px;font-size:11px;font-weight:900;letter-spacing:.075em;text-transform:uppercase}
body[data-sql-page="live"] .hc2-kv{display:flex;justify-content:space-between;gap:9px;align-items:flex-start;padding:5px 0;border-bottom:1px solid #1d303a;font-size:12px;line-height:1.4}
body[data-sql-page="live"] .hc2-kv:last-child{border-bottom:0}
body[data-sql-page="live"] .hc2-kv>span{color:#a4b9c3;flex:0 0 auto}
body[data-sql-page="live"] .hc2-kv>strong{text-align:right;min-width:0;overflow-wrap:anywhere;font-weight:750}
body[data-sql-page="live"] .hc2-explain{border-left:3px solid #f1c462;padding:8px 10px;background:#171c18;margin-top:12px;color:#d7e3e3;font-size:12px;line-height:1.5}
body[data-sql-page="live"] .hc2-empty{padding:30px;text-align:center;color:#a4b9c3}
body[data-sql-page="live"][data-hc2-mode="compact"] .hero{min-height:0!important;padding:14px 19px!important}
body[data-sql-page="live"][data-hc2-mode="compact"] .hero h1{font-size:23px!important}
body[data-sql-page="live"].hc2-wide .sidebar{display:none!important}
body[data-sql-page="live"].hc2-wide .app{grid-template-columns:minmax(0,1fr)!important}
body[data-sql-page="live"].hc2-wide .main{min-width:0}
body[data-sql-page="live"] .hc2-toolbar #hc2-expand-all[hidden]{display:none}
@media(max-width:1450px){
body[data-sql-page="live"] .hc2-name{font-size:13px}
body[data-sql-page="live"] .hc2-right input{width:175px;min-width:140px}
}
@media(max-width:900px){
body[data-sql-page="live"] .hc2-right,body[data-sql-page="live"] .hc2-left{width:100%}
body[data-sql-page="live"] .hc2-right .fleet-tools{flex:1}
body[data-sql-page="live"] .hc2-right input{flex:1;width:auto}
body[data-sql-page="live"] .hc2-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-head{display:none}
body[data-sql-page="live"] .hc2-board{overflow:hidden}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row{min-width:0;grid-template-columns:1fr 1fr 45px;gap:10px;padding:13px;align-items:start}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row>:nth-child(1){grid-column:1}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row>:nth-child(2){grid-column:2}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row>:nth-child(3){grid-column:1}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row>:nth-child(4){grid-column:2}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row>:nth-child(5){grid-column:1}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row>:nth-child(6){grid-column:2}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row>:nth-child(7){grid-column:1}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row>:nth-child(8){grid-column:2}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row>:nth-child(9){grid-column:1/3}
body[data-sql-page="live"][data-hc2-mode="compact"] .hc2-row>:nth-child(10){grid-column:3;grid-row:1/3}
body[data-sql-page="live"][data-hc2-mode="compact"] #fleet-cards .fleet-driver.hc2-expanded>.hc2-detail{min-width:0}
body[data-sql-page="live"] .hc2-speed{margin:0}
body[data-sql-page="live"] .hc2-detail-grid{grid-template-columns:1fr}
}

/* Valid Fleet arrives while ETS2 is paused: connected, not disconnected. */
body[data-sql-page="live"] .hc2-status.paused{color:#f0c66e}
body[data-sql-page="live"] .is-paused .hc2-dot{background:#f0c66e;box-shadow:0 0 8px #f0c66e44}
