/* Frota em rota — a tela em blocos (views/frota-bento.js). Escolhida pelo dono em 10/11/2026.
   TUDO aqui tem prefixo fb- e as variáveis são --fb-*: os tokens ficam presos em .fb-frota e não
   vazam pro resto do Nexus. As fontes são servidas daqui (a CSP não deixa buscar no Google Fonts). */
@font-face { font-family: "Archivo"; src: url('../fontes/archivo-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url('../fontes/barlow-semicondensed-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url('../fontes/barlow-semicondensed-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

.fb-frota { container: fb / inline-size; color: var(--fb-text); font: 400 14px/1.35 var(--fb-f-texto); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.fb-frota *, .fb-frota *::before, .fb-frota *::after { box-sizing: border-box; }
:where(.fb-frota) :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
:where(.fb-frota) :where(ul, ol) { list-style: none; }
:where(.fb-frota) :where(button) { font: inherit; color: inherit; }
:where(.fb-frota) :where(img) { display: block; }
.fb-frota [role="button"] { cursor: pointer; }
/* ---------- Tokens (claro) ---------- */
.fb-frota {
  --fb-bg: #edf1f7; --fb-panel: #ffffff; --fb-text: #0d1b3e; --fb-muted: #55637f; --fb-border: #dfe5ee; --fb-track: #e6ebf3;
  --fb-accent: #0369a1; --fb-success: #059669; --fb-danger: #dc2626; --fb-warning: #d97706; --fb-info: #0ea5e9;
  --fb-navy: #0d1b3e; --fb-cyan: #00d4ff; --fb-shadow: 0 12px 30px rgba(13, 27, 62, .10);

  --fb-fraco: #74819b;
  --fb-tile: #ffffff; --fb-tile-topo: #ffffff;
  --fb-tile-borda: rgba(13, 27, 62, .08);
  --fb-luz-borda-a: rgba(255, 255, 255, 1); --fb-luz-borda-b: rgba(255, 255, 255, 0);
  --fb-sombra-bloco: 0 1px 2px rgba(13, 27, 62, .05), 0 22px 44px -22px rgba(13, 27, 62, .30);
  --fb-vidro: rgba(255, 255, 255, .74); --fb-vidro-borda: rgba(13, 27, 62, .09);
  --fb-fundo-luz-1: rgba(0, 168, 225, .10); --fb-fundo-luz-2: rgba(238, 77, 45, .07);

  --fb-amz: #00a8e1; --fb-amz-forte: #0a6fb3; --fb-ml: #ffe600; --fb-ml-tinta: #2d3277; --fb-shp: #ee4d2d;
  --fb-atras: #d92d4b; --fb-risco: #b86a00; --fb-ok: #0a8f63; --fb-semmed: #64748b;
  --fb-atras-luz: #d92d4b; --fb-risco-luz: #e08a00; --fb-ok-luz: #10a877;
  --fb-atras-fundo: rgba(217, 45, 75, .09); --fb-risco-fundo: rgba(224, 138, 0, .13); --fb-ok-fundo: rgba(16, 168, 119, .10);

  --fb-op-tinta: 15%; --fb-op-foto: .20; --fb-op-luz: .30; --fb-op-piso: rgba(13, 27, 62, .06); --fb-op-faixa: rgba(13, 27, 62, .30);
  --fb-placa-borda: #b9c2d2; --fb-trilho-feito: #0d1b3e; --fb-trilho-resto: #b3bed0; --fb-cam-contorno: #0d1b3e;
  --fb-sel-ativo: #0d1b3e; --fb-sel-ativo-texto: #ffffff; --fb-linha: rgba(13, 27, 62, .07);

  --fb-f-texto: "Archivo", Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --fb-f-num: "Bahnschrift SemiCondensed", "Bahnschrift", "Barlow Semi Condensed", "Arial Narrow", sans-serif;
}
/* ---------- Tokens (escuro, a entrega principal) ---------- */
:root[data-theme="dark"] .fb-frota {
  --fb-bg: #0a1021; --fb-panel: #121a30; --fb-text: #eef2fb; --fb-muted: #a3b0cc; --fb-border: #26314f; --fb-track: #0a1124;
  --fb-accent: #38bdf8; --fb-shadow: 0 12px 30px rgba(0, 0, 0, .45);

  --fb-fraco: #7f8eb0;
  --fb-tile: #111930; --fb-tile-topo: #1a2543;
  --fb-tile-borda: rgba(150, 172, 230, .10);
  --fb-luz-borda-a: rgba(255, 255, 255, .22); --fb-luz-borda-b: rgba(255, 255, 255, 0);
  --fb-sombra-bloco: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 2px 4px rgba(0, 0, 0, .35), 0 30px 50px -24px rgba(0, 0, 0, .75);
  --fb-vidro: rgba(10, 16, 33, .50); --fb-vidro-borda: rgba(255, 255, 255, .10);
  --fb-fundo-luz-1: rgba(0, 168, 225, .13); --fb-fundo-luz-2: rgba(238, 77, 45, .09);

  --fb-atras: #ff5c77; --fb-risco: #ffb224; --fb-ok: #34d6a0; --fb-semmed: #93a3c6;
  --fb-atras-luz: #ff4f6b; --fb-risco-luz: #ffb224; --fb-ok-luz: #2fd39a;
  --fb-atras-fundo: rgba(255, 79, 107, .13); --fb-risco-fundo: rgba(255, 178, 36, .12); --fb-ok-fundo: rgba(47, 211, 154, .10);

  --fb-op-tinta: 20%; --fb-op-foto: .42; --fb-op-luz: .55; --fb-op-piso: rgba(3, 6, 16, .50); --fb-op-faixa: rgba(255, 255, 255, .55);
  --fb-placa-borda: #ffffff; --fb-trilho-feito: #e8eefc; --fb-trilho-resto: #4a5a84; --fb-cam-contorno: rgba(255, 255, 255, .92);
  --fb-sel-ativo: #2a3a66; --fb-sel-ativo-texto: #ffffff; --fb-linha: rgba(160, 180, 230, .09);
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
.fb-num { font-family: var(--fb-f-num); font-stretch: semi-condensed; font-variant-numeric: tabular-nums; }
.fb-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:root[data-theme="dark"] .fb-so-claro, :root:not([data-theme="dark"]) .fb-so-escuro { display: none !important; }
.fb-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--fb-cyan); outline-offset: 2px; }


/* ---------- Página ---------- */
.fb-frota { position: relative; }
.fb-frota::before { content: ""; position: absolute; inset: -22px -28px auto; height: 1100px; pointer-events: none;
  background: radial-gradient(900px 520px at 18% 30%, var(--fb-fundo-luz-2), transparent 70%), radial-gradient(1000px 600px at 78% 8%, var(--fb-fundo-luz-1), transparent 70%); }
.fb-frota > * { position: relative; }

/* Bloco: superfície com volume (degradê, luz na borda, sombra longa) */
.fb-bloco { position: relative; border-radius: 22px; background: linear-gradient(180deg, var(--fb-tile-topo), var(--fb-tile) 70%); border: 1px solid var(--fb-tile-borda); box-shadow: var(--fb-sombra-bloco); }
.fb-bloco::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 5;
  background: linear-gradient(150deg, var(--fb-luz-borda-a), var(--fb-luz-borda-b) 26%, var(--fb-luz-borda-b) 80%, rgba(255, 255, 255, .06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.fb-bloco-t { font: 800 19px/1.1 var(--fb-f-texto); font-stretch: 110%; letter-spacing: -.01em; }
.fb-bloco-s { color: var(--fb-muted); font-size: 13.5px; margin-top: 3px; }

.fb-pil { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--fb-vidro); border: 1px solid var(--fb-vidro-borda); font-size: 13px; font-weight: 600; white-space: nowrap; }
.fb-conta { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, var(--fb-text) 10%, transparent); font: 700 14px/1 var(--fb-f-num); font-variant-numeric: tabular-nums; }

/* ---------- Topo ---------- */
.fb-topo { display: flex; align-items: center; gap: 18px; height: 56px; }
.fb-topo h1 { font: 800 30px/1 var(--fb-f-texto); font-stretch: 114%; letter-spacing: -.02em; white-space: nowrap; }
.fb-topo-sub { color: var(--fb-muted); font-size: 13.5px; margin-top: 6px; white-space: nowrap; }
.fb-seletor { display: flex; gap: 3px; padding: 4px; border-radius: 15px; background: var(--fb-vidro); border: 1px solid var(--fb-vidro-borda); margin-left: 10px; }
.fb-seletor button { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: var(--fb-muted); font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.fb-seletor button:hover { color: var(--fb-text); }
.fb-seletor button[aria-pressed="true"] { background: var(--fb-sel-ativo); color: var(--fb-sel-ativo-texto); box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 6px 14px -6px rgba(0, 0, 0, .5); }
.fb-seletor img { height: 20px; width: auto; }
.fb-seletor .fb-conta { background: color-mix(in srgb, currentColor 16%, transparent); }
.fb-voz { margin-left: auto; display: grid; gap: 2px; font-size: 13px; color: var(--fb-muted); white-space: nowrap; }
.fb-voz b { color: var(--fb-text); font-weight: 650; margin-right: 5px; }
.fb-acoes { display: flex; gap: 8px; }
.fb-bt { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--fb-vidro-borda); background: var(--fb-vidro); color: var(--fb-text); font-weight: 650; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: transform .15s, background .2s; }
.fb-bt:hover { transform: translateY(-1px); }
.fb-bt.fb-so-icone { width: 40px; padding: 0; justify-content: center; }
.fb-bt.fb-ligado { color: var(--fb-ok); border-color: color-mix(in srgb, var(--fb-ok-luz) 45%, transparent); background: var(--fb-ok-fundo); }
.fb-bt.fb-ligado .fb-onda { animation: fb-onda 1.6s ease-in-out infinite; transform-origin: 30% 50%; }

/* ---------- Total (faixa larga) ---------- */
.fb-total { margin-top: 16px; height: 96px; padding: 0 26px 0 24px; display: grid; grid-template-columns: auto minmax(300px, 1fr) auto auto; align-items: center; column-gap: 34px; overflow: hidden; }
.fb-total-num { display: flex; align-items: center; gap: 14px; }
.fb-total-num strong { font: 700 78px/0.8 var(--fb-f-num); font-stretch: semi-condensed; letter-spacing: -.02em; }
.fb-total-num b { display: block; font: 750 17px/1.15 var(--fb-f-texto); font-stretch: 108%; }
.fb-total-num span { display: block; color: var(--fb-muted); font-size: 13.5px; margin-top: 3px; }
.fb-fatia-t { display: flex; justify-content: space-between; color: var(--fb-muted); font-size: 13px; margin-bottom: 6px; }
.fb-fatia-b, .fb-fatia-l { display: flex; gap: 3px; }
.fb-seg { height: 22px; min-width: 0; display: grid; place-items: center; font: 700 14px/1 var(--fb-f-num); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -6px 10px rgba(0, 0, 0, .14); }
.fb-seg:first-child { border-radius: 8px 3px 3px 8px; } .fb-seg:last-child { border-radius: 3px 8px 8px 3px; }
.fb-seg-ml { background: var(--fb-ml); color: var(--fb-ml-tinta); } .fb-seg-amz { background: var(--fb-amz); color: #04263a; } .fb-seg-shp { background: var(--fb-shp); }
.fb-fatia-l { margin-top: 6px; }
.fb-fatia-l span { min-width: 0; display: flex; align-items: center; gap: 6px; font: 600 14px/1 var(--fb-f-num); white-space: nowrap; }
.fb-fatia-l img { height: 17px; width: auto; }
.fb-total-sit { display: flex; gap: 10px; }
.fb-total-sit li { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 14px 0 12px; border-radius: 16px; background: var(--fb-s-fundo); border: 1px solid color-mix(in srgb, var(--fb-s-cor) 26%, transparent); }
.fb-total-sit strong { font: 700 44px/0.8 var(--fb-f-num); font-stretch: semi-condensed; color: var(--fb-s-cor); padding-top: 4px; }
.fb-total-sit span { display: block; font-weight: 650; font-size: 14px; line-height: 1.1; }
.fb-total-sit i { font-style: normal; display: inline-block; margin-top: 4px; font: 600 13px/1 var(--fb-f-num); color: var(--fb-muted); padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--fb-s-cor) 14%, transparent); }
.fb-s-atras { --fb-s-cor: var(--fb-atras); --fb-s-fundo: var(--fb-atras-fundo); } .fb-s-risco { --fb-s-cor: var(--fb-risco); --fb-s-fundo: var(--fb-risco-fundo); }
.fb-s-ok { --fb-s-cor: var(--fb-ok); --fb-s-fundo: var(--fb-ok-fundo); } .fb-s-sem { --fb-s-cor: var(--fb-semmed); --fb-s-fundo: color-mix(in srgb, var(--fb-semmed) 10%, transparent); }
.fb-total-fatos { display: grid; gap: 5px; font-size: 13.5px; color: var(--fb-muted); }
.fb-total-fatos li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.fb-total-fatos b { color: var(--fb-text); font: 700 15px/1 var(--fb-f-num); }
.fb-total-fatos .fb-ic { width: 15px; height: 15px; }
.fb-total-fatos .fb-pior b { color: var(--fb-atras); }

/* ---------- Grade principal ---------- */
.fb-principal { display: grid; grid-template-columns: minmax(0, 1fr) 840px; gap: 16px; margin-top: 16px; }
.fb-esq { display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: 241px 241px 290px; gap: 16px; grid-template-areas: "shp amz" "shp ml" "baixo baixo"; }
.fb-baixo { grid-area: baixo; display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 16px; }

/* ---------- Baias das operações ---------- */
.fb-op { overflow: hidden; isolation: isolate; color: var(--fb-text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--fb-cor) var(--fb-op-tinta), var(--fb-tile-topo)), var(--fb-tile) 78%); }
.fb-op-shp { grid-area: shp; --fb-cor: var(--fb-shp); } .fb-op-amz { grid-area: amz; --fb-cor: var(--fb-amz); } .fb-op-ml { grid-area: ml; --fb-cor: var(--fb-ml); }
.fb-op-cena { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; }
.fb-op-foto { position: absolute; background-size: cover; background-position: center; filter: blur(26px) saturate(1.5); opacity: var(--fb-op-foto); transform: scale(1.25); }
.fb-op-luz { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, var(--fb-cor-luz, var(--fb-cor)), transparent); opacity: var(--fb-op-luz); }
.fb-op-piso { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, transparent, var(--fb-op-piso)); }
.fb-op-piso::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fb-cor) 60%, transparent) 40%, color-mix(in srgb, var(--fb-cor) 60%, transparent) 80%, transparent); }
.fb-op-piso::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--fb-op-faixa) 0 30px, transparent 30px 70px); animation: fb-faixa 1.1s linear infinite;
  -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.fb-op-carreta { position: absolute; height: auto; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .35)); animation: fb-chega 1.1s cubic-bezier(.16, .84, .3, 1) backwards, fb-balanca 3.2s ease-in-out 1.2s infinite; }

.fb-op-cab { display: flex; align-items: center; gap: 10px; }
.fb-op-cab img { height: 30px; width: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.fb-op-cab h2 { font: 800 20px/1.05 var(--fb-f-texto); font-stretch: 110%; letter-spacing: -.01em; }
.fb-vivo { display: flex; align-items: center; gap: 7px; color: var(--fb-muted); font-size: 13.5px; font-weight: 550; margin-top: 3px; white-space: nowrap; }
.fb-vivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fb-ok-luz); box-shadow: 0 0 0 0 color-mix(in srgb, var(--fb-ok-luz) 60%, transparent); animation: fb-pulso 2s ease-out infinite; }
.fb-op-num { display: flex; align-items: flex-end; gap: 12px; }
.fb-op-num strong { font: 700 72px/0.8 var(--fb-f-num); font-stretch: semi-condensed; letter-spacing: -.02em; text-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.fb-op-num b { display: block; font: 700 15px/1.1 var(--fb-f-texto); margin-bottom: 6px; }
.fb-op-num .fb-pil { background: color-mix(in srgb, var(--fb-cor) 20%, var(--fb-vidro)); border-color: color-mix(in srgb, var(--fb-cor) 45%, transparent); }
.fb-op-num .fb-pil b { display: inline; margin: 0; font: 700 14px/1 var(--fb-f-num); }

.fb-sit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fb-sit li { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 10px 0 12px; border-radius: 14px; background: var(--fb-vidro); border: 1px solid var(--fb-vidro-borda); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); white-space: nowrap; }
.fb-sit li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--fb-s-cor); flex: none; box-shadow: 0 0 10px var(--fb-s-cor); }
.fb-sit strong { font: 700 26px/1 var(--fb-f-num); font-stretch: semi-condensed; color: var(--fb-s-cor); padding-top: 2px; }
.fb-sit span { font-size: 13.5px; font-weight: 600; }
.fb-sit i { font-style: normal; margin-left: auto; font: 600 13px/1 var(--fb-f-num); padding: 4px 7px; border-radius: 999px; background: color-mix(in srgb, var(--fb-s-cor) 18%, transparent); }
.fb-sit .fb-zero { opacity: .62; } .fb-sit .fb-zero::before { box-shadow: none; background: transparent; border: 2px solid var(--fb-fraco); } .fb-sit .fb-zero strong { color: var(--fb-muted); }
.fb-sit .fb-s-atras:not(.fb-zero) { border-color: color-mix(in srgb, var(--fb-atras-luz) 55%, transparent); background: color-mix(in srgb, var(--fb-atras-luz) 14%, var(--fb-vidro)); animation: fb-alerta 2.4s ease-in-out infinite; }
.fb-sit .fb-s-risco:not(.fb-zero) { border-color: color-mix(in srgb, var(--fb-risco-luz) 45%, transparent); background: color-mix(in srgb, var(--fb-risco-luz) 10%, var(--fb-vidro)); }

.fb-fatos { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--fb-muted); }
.fb-fatos li { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.fb-fatos b { color: var(--fb-text); font: 700 15px/1 var(--fb-f-num); }
.fb-fatos .fb-pior b { color: var(--fb-atras); } .fb-fatos .fb-pior.fb-bom b { color: var(--fb-ok); }

/* baia média (Amazon, Mercado Livre) */
.fb-op-m { padding: 14px 16px; display: grid; grid-template-rows: 40px 74px 1fr auto; row-gap: 0; }
.fb-op-m .fb-op-num { align-self: center; }
.fb-op-m .fb-sit { align-self: end; }
.fb-op-m .fb-fatos { margin-top: 10px; }
.fb-op-m .fb-op-carreta { width: 296px; right: 6px; top: 4px; }
.fb-op-m .fb-op-luz { width: 460px; height: 330px; right: -70px; top: -90px; }
.fb-op-m .fb-op-foto { inset: -10px -10px 60px 40%; }
.fb-op-m .fb-op-piso { top: 118px; }
.fb-op-m .fb-op-piso::after { top: 16px; left: 38%; }
/* baia grande (a operação com mais caminhões) */
.fb-op-g { padding: 18px 18px 0; }
.fb-op-g .fb-op-cab img { height: 36px; }
.fb-op-g .fb-op-cab h2 { font-size: 24px; }
.fb-op-g .fb-op-num { margin-top: 16px; }
.fb-op-g .fb-op-num strong { font-size: 118px; }
.fb-op-g .fb-op-num b { font-size: 17px; margin-bottom: 8px; }
.fb-op-g .fb-sit { margin-top: 18px; }
.fb-op-g .fb-sit li { height: 66px; flex-wrap: wrap; align-content: center; gap: 2px 7px; padding: 0 10px 0 12px; }
.fb-op-g .fb-sit strong { font-size: 30px; }
.fb-op-g .fb-sit span { order: 3; flex-basis: 100%; padding-left: 0; }
.fb-op-g .fb-fatos { margin-top: 12px; }
.fb-op-g .fb-op-carreta { width: 388px; left: 6px; bottom: 2px; }
.fb-op-g .fb-op-luz { width: 620px; height: 430px; left: -110px; bottom: -130px; }
.fb-op-g .fb-op-foto { inset: 40% -10px -10px -10px; }
.fb-op-g .fb-op-piso { height: 78px; }
.fb-op-g .fb-op-piso::after { top: 30px; }

/* ---------- Quem precisa de ação ---------- */
.fb-acao { height: 804px; padding: 18px 12px 10px; display: flex; flex-direction: column; overflow: hidden; }
.fb-acao-cab { display: flex; align-items: flex-start; gap: 14px; padding: 0 8px 12px 10px; }
.fb-acao-cab .fb-bloco-t { font-size: 22px; }
.fb-acao-cab .fb-bloco-s { max-width: 470px; }
.fb-acao-cont { margin-left: auto; display: flex; gap: 8px; }
.fb-acao-cont span { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 10px; border-radius: 14px; background: var(--fb-s-fundo); border: 1px solid color-mix(in srgb, var(--fb-s-cor) 40%, transparent); font-weight: 650; font-size: 14px; white-space: nowrap; }
.fb-acao-cont b { font: 700 30px/1 var(--fb-f-num); font-stretch: semi-condensed; color: var(--fb-s-cor); padding-top: 3px; }
.fb-cols, .fb-cam { display: grid; grid-template-columns: 118px minmax(0, 1fr) 272px 104px; column-gap: 14px; align-items: center; }
.fb-cols { padding: 0 12px 0 14px; height: 24px; color: var(--fb-fraco); font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--fb-linha); }
.fb-cols span:last-child { text-align: right; }
.fb-lista { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fb-grupo { flex: none; height: 27px; display: flex; align-items: center; gap: 8px; padding: 4px 14px 0; font-size: 13px; font-weight: 700; color: var(--fb-s-cor); }
.fb-grupo .fb-conta { background: var(--fb-s-fundo); color: var(--fb-s-cor); min-width: 24px; height: 20px; font-size: 13px; }
.fb-grupo em { font-style: normal; font-weight: 500; color: var(--fb-fraco); }
.fb-cam { flex: 1 1 0; min-height: 0; position: relative; padding: 0 12px 0 14px; border-radius: 13px; border-bottom: 1px solid var(--fb-linha);
  background: linear-gradient(90deg, color-mix(in srgb, var(--fb-s-cor) 13%, transparent), transparent 46%); }
.fb-cam::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--fb-s-cor); box-shadow: 0 0 10px var(--fb-s-cor); }
.fb-cam[data-op="ml"] { --fb-cor: var(--fb-ml); } .fb-cam[data-op="amz"] { --fb-cor: var(--fb-amz); } .fb-cam[data-op="shp"] { --fb-cor: var(--fb-shp); }
.fb-cam[data-sit="atrasado"], .fb-tabela-rolo tr[data-sit="atrasado"] { --fb-s-cor: var(--fb-atras); --fb-s-fundo: var(--fb-atras-fundo); }
.fb-cam[data-sit="risco"], .fb-tabela-rolo tr[data-sit="risco"] { --fb-s-cor: var(--fb-risco); --fb-s-fundo: var(--fb-risco-fundo); }
.fb-cam[data-sit="ok"], .fb-tabela-rolo tr[data-sit="ok"] { --fb-s-cor: var(--fb-ok); --fb-s-fundo: var(--fb-ok-fundo); }
.fb-cam-id { display: grid; gap: 4px; }
.fb-cam-l1 { display: flex; align-items: center; gap: 7px; }
.fb-cam-l1 img { height: 17px; width: auto; max-width: 30px; object-fit: contain; }
.fb-placa { display: inline-flex; align-items: flex-end; height: 24px; padding: 0 7px 2px; border-radius: 5px; background: linear-gradient(180deg, #1c46b8 0 5px, #f6f7fa 5px); color: #0e1320; font: 700 15.5px/1 var(--fb-f-num); letter-spacing: .05em; border: 1px solid var(--fb-placa-borda); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); white-space: nowrap; }
.fb-mov { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--fb-muted); white-space: nowrap; }
.fb-mov .fb-ic { width: 14px; height: 14px; }
.fb-mov.fb-parado { color: var(--fb-risco); } .fb-mov.fb-fiscal { color: var(--fb-accent); } .fb-mov.fb-pernoite { color: #a78bfa; }
:root:not([data-theme="dark"]) .fb-mov.fb-pernoite { color: #6d4fd6; }
.fb-cam-mot { min-width: 0; display: grid; gap: 3px; }
.fb-cam-mot b { font: 650 14.5px/1.15 var(--fb-f-texto); font-stretch: 96%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-cam-mot span { color: var(--fb-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-cam-rota { min-width: 0; display: grid; gap: 5px; }
.fb-rota-l { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 600 14px/1 var(--fb-f-num); white-space: nowrap; }
.fb-rota-l .fb-cod { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fb-rota-l .fb-cod svg { width: 12px; height: 12px; color: var(--fb-fraco); }
.fb-rota-l .fb-faltam { color: var(--fb-muted); font-weight: 500; }
.fb-rota-l .fb-faltam b { color: var(--fb-text); font-weight: 700; }
.fb-rota-t { display: flex; align-items: center; gap: 8px; }
.fb-rota-t > b { font: 700 14px/1 var(--fb-f-num); width: 34px; text-align: right; }
.fb-trilho { position: relative; flex: 1; height: 16px; --fb-cam-l: calc(var(--fb-p) * 1%); }
.fb-trilho::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: repeating-linear-gradient(90deg, var(--fb-trilho-resto) 0 5px, transparent 5px 9px); }
.fb-trilho i { position: absolute; left: 0; top: 6px; height: 4px; width: var(--fb-cam-l); border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--fb-trilho-feito) 25%, transparent), var(--fb-trilho-feito)); }
.fb-trilho .fb-o, .fb-trilho .fb-d { position: absolute; top: 3px; width: 10px; height: 10px; border-radius: 50%; }
.fb-trilho .fb-o { left: -1px; background: var(--fb-trilho-feito); } .fb-trilho .fb-d { right: -1px; border: 2px solid var(--fb-trilho-resto); background: var(--fb-tile); }
.fb-trilho svg { position: absolute; left: var(--fb-cam-l); top: -3px; width: 30px; height: 20px; margin-left: -19px; color: var(--fb-cor); overflow: visible; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); animation: fb-anda 2.6s ease-in-out infinite; }
.fb-cam-v { text-align: right; white-space: nowrap; }
.fb-cam-v strong { font: 700 32px/0.85 var(--fb-f-num); font-stretch: semi-condensed; color: var(--fb-s-cor); }
.fb-cam-v small { font: 600 13px/1 var(--fb-f-num); color: var(--fb-muted); margin-left: 3px; }
.fb-cam-v span { display: block; font: 500 13px/1 var(--fb-f-num); color: var(--fb-muted); margin-top: 4px; }
.fb-venceu { display: inline-grid; place-items: center; text-align: center; padding: 6px 9px; border-radius: 10px; background: var(--fb-atras-luz); color: #fff; font: 700 13px/1.1 var(--fb-f-texto); box-shadow: 0 6px 16px -6px var(--fb-atras-luz); animation: fb-alerta 2.4s ease-in-out infinite; }
.fb-vazio { flex: 1; display: none; place-items: center; text-align: center; color: var(--fb-muted); padding: 30px; }
.fb-vazio img { height: 150px; margin: 0 auto 14px; }
.fb-vazio b { display: block; color: var(--fb-text); font: 800 20px/1.2 var(--fb-f-texto); font-stretch: 108%; margin-bottom: 6px; }

/* ---------- Pontualidade do mês ---------- */
.fb-pont { padding: 16px 20px 12px; display: flex; flex-direction: column; }
.fb-pont-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fb-pont-total { display: flex; align-items: center; gap: 10px; text-align: right; }
.fb-pont-total strong { font: 700 44px/0.8 var(--fb-f-num); font-stretch: semi-condensed; padding-top: 4px; }
.fb-pont-total span { font-size: 13px; color: var(--fb-muted); line-height: 1.25; text-align: left; }
.fb-pont-total span b { color: var(--fb-text); font: 700 14px/1 var(--fb-f-num); }
.fb-pont-g { position: relative; flex: 1; margin-top: 8px; display: flex; flex-direction: column; }
.fb-pont-grade { position: absolute; left: 176px; right: 0; top: 0; bottom: 0; pointer-events: none; }
.fb-pont-grade i { position: absolute; top: 4px; bottom: 18px; width: 1px; background: var(--fb-linha); }
.fb-pont-grade b { position: absolute; bottom: 0; transform: translateX(-50%); font: 500 13px/1 var(--fb-f-num); color: var(--fb-fraco); }
.fb-pont-grade b:last-of-type { transform: translateX(-100%); } .fb-pont-grade b:first-of-type { transform: none; }
.fb-pont-l { flex: 1; display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.fb-pont-l + .fb-pont-l { border-top: 1px solid var(--fb-linha); }
.fb-pont-id { display: grid; grid-template-columns: 34px auto; column-gap: 8px; align-items: center; }
.fb-pont-id img { width: 34px; height: auto; max-height: 26px; object-fit: contain; }
.fb-pont-id strong { font: 700 34px/0.85 var(--fb-f-num); font-stretch: semi-condensed; padding-top: 3px; }
.fb-pont-id span { grid-column: 1 / -1; font-size: 13px; color: var(--fb-muted); margin-top: 4px; white-space: nowrap; }
.fb-pont-id span b { color: var(--fb-atras); font: 700 14px/1 var(--fb-f-num); }
.fb-pont-c { position: relative; padding: 17px 0 0; }
.fb-pont-b { position: relative; height: 16px; border-radius: 5px; background: var(--fb-track); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.fb-pont-b .fb-v { position: absolute; left: 0; top: 0; bottom: 0; width: calc((var(--fb-v) - 60) / 40 * 100%); border-radius: 5px; background: linear-gradient(180deg, color-mix(in srgb, var(--fb-cor) 82%, #fff), var(--fb-cor)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 16px -2px color-mix(in srgb, var(--fb-cor) 70%, transparent); animation: fb-cresce 1.2s cubic-bezier(.2, .8, .2, 1) backwards; transform-origin: left; }
.fb-pont-b .fb-f { position: absolute; top: 0; bottom: 0; left: calc((var(--fb-v) - 60) / 40 * 100%); width: calc((var(--fb-m) - var(--fb-v)) / 40 * 100%); background: repeating-linear-gradient(-55deg, color-mix(in srgb, var(--fb-atras-luz) 60%, transparent) 0 3px, transparent 3px 7px); border-radius: 0 3px 3px 0; }
.fb-pont-b .fb-m { position: absolute; top: -5px; bottom: -5px; left: calc((var(--fb-m) - 60) / 40 * 100%); width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--fb-text); }
.fb-pont-b .fb-m b { position: absolute; bottom: calc(100% + 2px); right: -4px; font: 600 13px/1 var(--fb-f-num); color: var(--fb-text); white-space: nowrap; }
.fb-pont-n { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 13px; color: var(--fb-muted); white-space: nowrap; }
.fb-pont-n b { color: var(--fb-text); font: 700 14px/1 var(--fb-f-num); }
.fb-pont-n .fb-av { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--fb-risco-fundo); color: var(--fb-risco); font-weight: 650; }
.fb-pont-n .fb-av b { color: inherit; margin-right: 4px; }
.fb-pont-n .fb-bom { display: inline-flex; align-items: center; gap: 4px; color: var(--fb-ok); font-weight: 650; }
.fb-pont-n .fb-bom .fb-ic { width: 14px; height: 14px; }

/* ---------- Pendências de dado ---------- */
.fb-pend { padding: 16px 16px 10px 18px; display: flex; flex-direction: column; }
.fb-pend-t { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 40px) 50px; align-items: center; column-gap: 4px; }
.fb-pend-cab { padding-bottom: 8px; border-bottom: 1px solid var(--fb-linha); }
.fb-pend-cab img { height: 18px; width: auto; max-width: 36px; object-fit: contain; margin: 0 auto; }
.fb-pend-cab span:last-child { text-align: center; font-size: 13px; font-weight: 600; color: var(--fb-fraco); }
.fb-pend-l { flex: 1; display: flex; flex-direction: column; }
.fb-pend-l li { flex: 1; cursor: pointer; border-radius: 10px; margin: 0 -8px; padding: 0 8px; transition: background .2s; }
.fb-pend-l li:hover { background: color-mix(in srgb, var(--fb-text) 6%, transparent); }
.fb-pend-l li + li { box-shadow: 0 -1px 0 var(--fb-linha); }
.fb-pend-n { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; white-space: nowrap; min-width: 0; }
.fb-pend-n .fb-ic { width: 17px; height: 17px; color: var(--fb-fraco); }
.fb-pend-l b { justify-self: center; font: 600 15px/1 var(--fb-f-num); color: var(--fb-fraco); }
.fb-pend-l b.fb-tem { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--fb-risco-fundo); color: var(--fb-risco); font-weight: 700; }
.fb-pend-l b.fb-tot.fb-tem { background: var(--fb-risco-luz); color: #201400; min-width: 36px; height: 26px; box-shadow: 0 6px 14px -6px var(--fb-risco-luz); }
.fb-pend-l .fb-limpa .fb-pend-n { color: var(--fb-muted); font-weight: 500; }

/* ---------- Todas as viagens ---------- */
.fb-viagens { margin-top: 16px; padding: 20px 22px 14px; }
.fb-viagens-cab { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.fb-filtros { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.fb-filtros button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: 999px; border: 1px solid var(--fb-vidro-borda); background: var(--fb-vidro); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.fb-filtros button[aria-pressed="true"] { background: var(--fb-sel-ativo); color: var(--fb-sel-ativo-texto); border-color: transparent; }
.fb-filtros .fb-conta { background: color-mix(in srgb, currentColor 14%, transparent); }
.fb-tabela-rolo { overflow-x: auto; }
.fb-tabela-rolo table { width: 100%; border-collapse: collapse; min-width: 1180px; }
.fb-tabela-rolo th { text-align: left; font-size: 13px; font-weight: 600; color: var(--fb-fraco); padding: 0 12px 8px; border-bottom: 1px solid var(--fb-linha); white-space: nowrap; }
.fb-tabela-rolo td { padding: 9px 12px; border-bottom: 1px solid var(--fb-linha); vertical-align: middle; }
.fb-tabela-rolo tbody tr { transition: background .2s; } .fb-tabela-rolo tbody tr.fb-v:hover { background: color-mix(in srgb, var(--fb-text) 4%, transparent); }

.fb-v-id { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.fb-v-id img { width: 30px; height: auto; max-height: 24px; object-fit: contain; }
.fb-v-id small { display: block; font-size: 13px; color: var(--fb-fraco); }
.fb-v-id b { font: 600 15px/1.1 var(--fb-f-num); letter-spacing: .02em; }
.fb-tabela-rolo td .fb-cam-mot b { font-size: 14.5px; }
.fb-v-rota { min-width: 300px; max-width: 420px; }
.fb-v-rota .fb-rota-l { font-size: 14px; }
.fb-v-prazo { font: 600 15px/1.1 var(--fb-f-num); white-space: nowrap; }
.fb-v-prazo small { display: block; font: 400 13px/1.2 var(--fb-f-texto); color: var(--fb-fraco); }
.fb-v-prazo.fb-vencido { color: var(--fb-atras); }
.fb-v-kmh { white-space: nowrap; }
.fb-v-kmh strong { font: 700 24px/1 var(--fb-f-num); font-stretch: semi-condensed; color: var(--fb-s-cor); }
.fb-v-kmh small { font: 600 13px/1 var(--fb-f-num); color: var(--fb-muted); margin-left: 3px; }
.fb-selo { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--fb-s-fundo); color: var(--fb-s-cor); font-weight: 700; font-size: 13px; white-space: nowrap; border: 1px solid color-mix(in srgb, var(--fb-s-cor) 30%, transparent); }
.fb-selo .fb-ic { width: 14px; height: 14px; }
.fb-viagens-pe { display: flex; align-items: center; gap: 14px; padding-top: 12px; color: var(--fb-muted); font-size: 13.5px; }
.fb-viagens-pe .fb-bt { margin-left: auto; }
.fb-nota { margin-top: 14px; color: var(--fb-fraco); font-size: 13px; max-width: 110ch; }

/* ---------- Filtro por operação (seletor do topo) ---------- */
.fb-frota[data-op="ml"] .fb-op:not(.fb-op-ml), .fb-frota[data-op="amz"] .fb-op:not(.fb-op-amz), .fb-frota[data-op="shp"] .fb-op:not(.fb-op-shp) { opacity: .38; filter: saturate(.4); }
.fb-op { transition: opacity .3s, filter .3s; }
.fb-frota[data-op="ml"] [data-op]:not([data-op="ml"]), .fb-frota[data-op="amz"] [data-op]:not([data-op="amz"]), .fb-frota[data-op="shp"] [data-op]:not([data-op="shp"]) { display: none; }
.fb-frota.fb-sem-acao .fb-vazio { display: grid; } .fb-frota.fb-sem-acao .fb-cols, .fb-frota.fb-sem-acao .fb-lista { display: none; }

/* ---------- Movimento ---------- */
.fb-bloco { animation: fb-sobe .7s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--fb-i, 0) * 70ms); }
@keyframes fb-sobe { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes fb-chega { from { opacity: 0; transform: translateX(90px); } }
@keyframes fb-balanca { 50% { transform: translateY(-1.5px); } }
@keyframes fb-faixa { to { background-position-x: 70px; } }
@keyframes fb-pulso { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes fb-alerta { 50% { box-shadow: 0 0 22px -4px var(--fb-atras-luz); } }
@keyframes fb-anda { 50% { transform: translateX(3px); } }
@keyframes fb-cresce { from { transform: scaleX(0); } }
@keyframes fb-onda { 50% { opacity: .35; } }

/* ---------- Telas menores (1366 e abaixo de 1700) ---------- */
@container fb (max-width: 1600px) {
  .fb-topo { flex-wrap: wrap; height: auto; row-gap: 12px; }
  .fb-total { height: auto; padding: 16px 20px; grid-template-columns: auto minmax(260px, 1fr) auto; row-gap: 14px; column-gap: 24px; }
  .fb-total-fatos { grid-column: 1 / -1; display: flex; gap: 22px; }
  .fb-principal { grid-template-columns: minmax(0, 1fr); }
  .fb-esq { grid-template-columns: 380px minmax(0, 1fr); }
  .fb-acao { height: auto; }
  .fb-cam { flex: none; height: 58px; }
}
@container fb (max-width: 1000px) {
  .fb-esq { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "shp" "amz" "ml" "baixo"; }
  .fb-op-g { height: 498px; } .fb-op-m { height: 241px; }
  .fb-baixo { grid-template-columns: minmax(0, 1fr); }
  .fb-total { grid-template-columns: minmax(0, 1fr); }
  .fb-cols { display: none; }
  .fb-cam { height: auto; grid-template-columns: 118px minmax(0, 1fr) 104px; row-gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .fb-cam-rota { grid-column: 1 / -1; grid-row: 2; }
}
/* ================= AJUSTES DA TELA REAL (o que a maquete não precisava) ================= */

/* A entrada animada é só da primeira pintura: a tela é refeita a cada leitura da frota. */
.fb-frota:not(.fb-estreia) .fb-bloco { animation: none; }
.fb-frota:not(.fb-estreia) .fb-op-carreta { animation: fb-balanca 3.2s ease-in-out infinite; }
.fb-frota:not(.fb-estreia) .fb-pont-b .fb-v { animation: none; }

/* As baias mudam de lugar conforme a operação escolhida: a posição é da baia, não da marca. */
.fb-esq { grid-template-areas: "g a" "g b" "baixo baixo"; }
.fb-op.fb-pos-g { grid-area: g; } .fb-op.fb-pos-a { grid-area: a; } .fb-op.fb-pos-b { grid-area: b; }
.fb-op.fb-apagada { opacity: .5; filter: saturate(.5); }
.fb-op.fb-apagada:hover { opacity: 1; filter: none; }
.fb-vivo.fb-parou::before { background: var(--fb-fraco); box-shadow: none; animation: none; }
.fb-sem-leitura .fb-op-num strong { opacity: .45; }
.fb-op-num[role="button"]:hover strong, .fb-total-num[role="button"]:hover strong { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.fb-sit li, .fb-total-sit li { transition: transform .15s; }
.fb-sit li:not(.fb-zero):hover, .fb-total-sit li:not(.fb-zero):hover { transform: translateY(-2px); }
.fb-total-sit li.fb-zero strong { opacity: .55; }
.fb-fatos li[role="button"]:hover, .fb-total-fatos li[role="button"]:hover { color: var(--fb-text); }
.fb-total-fatos .fb-pior.fb-bom b { color: var(--fb-ok); }
.fb-total-fatos .fb-pior.fb-medio b, .fb-fatos .fb-pior.fb-medio b { color: var(--fb-risco); }
.fb-seg { min-width: 30px; }
.fb-fatia-l span { min-width: 30px; overflow: hidden; }
.fb-fatia-l .fb-logo-amz { height: 13px; margin-top: 4px; }

/* A CARRETA PISA NA ESTRADA. Na maquete a faixa tracejada passava 20px acima das rodas e por cima da
   linha de texto: o caminhão parecia voar e a faixa parecia defeito. Aqui a faixa fica na altura do
   chão (logo atrás das rodas), a sombra é de contato e o texto começa depois da estrada. */
.fb-op-carreta { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); }
.fb-op-g .fb-op-num { margin-top: 8px; }
.fb-op-g .fb-sit { margin-top: 12px; }
.fb-op-g .fb-fatos { margin-top: 10px; }
/* As imagens têm uma sombra embutida embaixo das rodas: a roda toca o chão a 74% da altura da
   imagem (linha 212 de 285), e não na borda de baixo. A faixa fica exatamente nessa linha:
   459px do topo na baia grande, 114px na média. */
.fb-op-g .fb-op-carreta { width: 372px; bottom: -10px; }
.fb-op-g .fb-op-piso { height: 66px; }
.fb-op-m .fb-op-carreta { width: 284px; top: 6px; right: 8px; }
.fb-op-m .fb-op-piso { top: 100px; }
.fb-op-m .fb-op-piso::before { background: linear-gradient(90deg, transparent 36%, color-mix(in srgb, var(--fb-cor) 60%, transparent) 56%, color-mix(in srgb, var(--fb-cor) 60%, transparent) 86%, transparent); }
.fb-op-m .fb-fatos { align-self: end; margin: 0 0 6px; }
/* A faixa tracejada é da CENA e fica na FRENTE da carreta, uns 10px abaixo de onde a roda pisa:
   é a faixa da pista do lado de cá. Atrás da carreta, a sombra embutida da imagem a escondia. */
.fb-op-piso::after { display: none; }
.fb-op-cena::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; z-index: 2;
  background: repeating-linear-gradient(90deg, var(--fb-op-faixa) 0 30px, transparent 30px 70px); animation: fb-faixa 1.1s linear infinite;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.fb-op-g .fb-op-cena::after { top: 470px; }
.fb-op-m .fb-op-cena::after { top: 124px; left: 36%; }

/* a coluna da esquerda cresce se as pendências pedirem; o bloco de ação acompanha a altura dela
   (contain: size = a lista não empurra a linha da grade, ela rola por dentro) */
.fb-esq { grid-template-rows: 241px 241px minmax(290px, auto); }
.fb-acao { height: auto; contain: size; }

/* topo: o seletor, a voz, os botões e quem está online numa linha só (quebra quando não cabe) */
.fb-topo { flex-wrap: wrap; height: auto; min-height: 56px; row-gap: 10px; }
.fb-topo h1, .fb-seletor, .fb-acoes, .fb-topo .online-topo { flex: none; }
.fb-voz { flex: 1 1 160px; min-width: 0; }
.fb-voz .pr-voz-info { justify-items: end; }
.fb-voz .pr-voz-info span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.fb-seletor .fb-logo-amz { height: 18px; margin-top: 5px; }
.fb-voz .pr-voz-info { display: grid; gap: 2px; margin: 0; padding: 0; border: 0; background: none; max-width: none; font-size: 13px; line-height: 1.35; color: var(--fb-muted); white-space: nowrap; text-align: left; }
.fb-voz .pr-voz-info strong { color: var(--fb-text); font-weight: 650; margin-right: 5px; }
.fb-voz .pr-voz-info .pr-voz-mudo strong { color: var(--fb-risco); }
.fb-bt.fb-pendente { color: var(--fb-risco); border-color: color-mix(in srgb, var(--fb-risco-luz) 45%, transparent); background: var(--fb-risco-fundo); }
.fb-bt-leve { height: 34px; }
.fb-topo .online-topo { border-left-color: var(--fb-vidro-borda); }

/* bloco de ação: a frota real não tem sempre doze linhas — a lista rola dentro do bloco */
.fb-cols, .fb-cam { grid-template-columns: 132px minmax(0, 1fr) 272px 108px; }
.fb-lista { overflow-y: auto; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--fb-text) 22%, transparent) transparent; }
.fb-cam { flex: 1 0 52px; max-height: 62px; }
.fb-cam:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--fb-s-cor) 22%, transparent), color-mix(in srgb, var(--fb-text) 5%, transparent) 46%); }
.fb-cam:focus-visible, .fb-v:focus-visible { outline: 2px solid var(--fb-cyan); outline-offset: -2px; }
.fb-cam-l1 .fb-logo-amz { max-width: 38px; }
.fb-cam-v em, .fb-v-kmh em { font-style: normal; font-size: 13px; color: var(--fb-muted); }
.fb-cam-v .fb-venceu + span { margin-top: 5px; }
.fb-mov.fb-mudo { color: var(--fb-semmed); }
.fb-acao.fb-sem-acao .fb-vazio { display: grid; }
.fb-vazio-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 14px; background: var(--fb-ok-fundo); color: var(--fb-ok); border: 1px solid color-mix(in srgb, var(--fb-ok-luz) 40%, transparent); }
.fb-vazio-ic .fb-ic { width: 30px; height: 30px; }

/* pontualidade e pendências */
.fb-pont-id .fb-na-meta { color: var(--fb-ok); font-weight: 650; }
.fb-pont-vazia .fb-pont-id strong { color: var(--fb-fraco); }
.fb-pont-id .fb-logo-amz { max-height: 14px; }
.fb-pend-cab span { display: grid; place-items: center; }
.fb-pend-l li { cursor: default; }
.fb-pend-l b.fb-tem:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* lista de viagens */
.fb-viagens-cab > div:first-child { margin-right: auto; }
.fb-viagens-cab .fb-filtros { margin-left: 0; }
.fb-viagens-cab .fb-bloco-t { display: flex; align-items: center; gap: 10px; }
.fb-tabela-rolo tr[data-op="ml"] { --fb-cor: var(--fb-ml); } .fb-tabela-rolo tr[data-op="amz"] { --fb-cor: var(--fb-amz); } .fb-tabela-rolo tr[data-op="shp"] { --fb-cor: var(--fb-shp); }
.fb-tabela-rolo tr[data-sit="sem"] { --fb-s-cor: var(--fb-semmed); --fb-s-fundo: color-mix(in srgb, var(--fb-semmed) 12%, transparent); }
.fb-tabela-rolo table { background: none; }
.fb-tabela-rolo th { background: none; text-transform: none; letter-spacing: 0; }
.fb-tabela-rolo td { background: none; color: var(--fb-text); }
.fb-v.fb-aberta { background: color-mix(in srgb, var(--fb-text) 6%, transparent); }
.fb-v.fb-aberta > td { border-bottom-color: transparent; }
.fb-v-id .fb-logo-amz { max-width: 44px; }
.fb-v-id .pr-vrid { font: 600 15px/1.1 var(--fb-f-num); letter-spacing: .02em; color: var(--fb-text); text-decoration: none; }
.fb-v-id a.pr-vrid:hover { text-decoration: underline; color: var(--fb-accent); }
.fb-v-kmh span:not(.fb-venceu) { display: block; font: 500 13px/1 var(--fb-f-num); color: var(--fb-muted); margin-top: 4px; }
.fb-tabela-rolo .fb-v-detalhe > td { padding: 4px 12px 16px; background: color-mix(in srgb, var(--fb-text) 6%, transparent); }
.fb-viagens-vazia { padding: 28px; text-align: center; color: var(--fb-muted); }
.fb-frota .pr-placar-avisos { margin-top: 12px; }

@container fb (max-width: 1600px) {
  .fb-acao { contain: none; }
  .fb-lista { max-height: 640px; }
  .fb-cam { flex: none; height: 58px; max-height: none; }
}
@container fb (max-width: 1000px) {
  .fb-esq { grid-template-areas: "g" "a" "b" "baixo"; }
  .fb-cam { height: auto; }
  .fb-lista { max-height: none; }
}

/* o selo "prazo já venceu" dentro do bloco de ação: a regra dos textos de apoio não vale pra ele */
.fb-cam-v .fb-venceu, .fb-v-kmh .fb-venceu { display: inline-grid; margin-top: 0; color: #fff; font: 700 13px/1.1 var(--fb-f-texto); }
/* na lista, o nome do motorista não some quando a tela aperta: a tabela rola de lado */
.fb-tabela-rolo table { min-width: 1320px; }
.fb-tabela-rolo td:nth-child(3) { min-width: 210px; }

/* ================= NO TELÃO (modo apresentação) =================
   O palco do telão amplia tudo em 120% por padrão, e nessa escala os blocos não cabem lado a lado
   numa TV de 1920. Esta tela já nasceu com número grande: aqui ela desfaz os 120% do padrão (fica em
   tamanho real com o zoom padrão, e continua crescendo e encolhendo com o seletor de zoom). */
.apr-tela .fb-frota { zoom: .8334; }
.apr-tela .fb-frota::before { display: none; }
.apr-tela .fb-topo h1 { font-size: 34px; }
.apr-tela .fb-voz .pr-voz-info { font-size: 14px; }
.apr-tela .fb-filtros, .apr-tela .fb-viagens .fb-bt, .apr-tela .fb-viagens-pe { display: none; }
.apr-tela .fb-tabela-rolo { overflow: visible; }
.apr-tela .fb-tabela-rolo table { min-width: 0; }
.apr-tela .fb-tabela-rolo td { padding-top: 11px; padding-bottom: 11px; }
