/* ===== Frota (Agente Operações) ===== */
.fr-grade { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); margin-bottom: 18px; }
.fr-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--vidro-card); cursor: pointer; transition: transform .2s var(--anim), box-shadow .2s; }
.fr-card:hover, .fr-card:focus-visible { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(6,40,56,.28); outline: none; }
.fr-card-topo { display: flex; align-items: center; gap: 12px; }
.fr-card-topo > div { flex: 1; min-width: 0; }
.fr-card-topo b { display: block; font-size: 16px; }
.fr-card-topo .fraco { display: block; }
.fr-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(135deg, var(--turquesa), var(--azul)); box-shadow: 0 8px 18px rgba(14,165,233,.35); }
.fr-ic .ic { width: 24px; height: 24px; }
.fr-ic.g { width: 72px; height: 72px; border-radius: 22px; }
.fr-ic.g .ic { width: 38px; height: 38px; }
.fr-placa { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; padding: 0 8px 3px; border-radius: 8px; border: 2px solid #0b1720;
  background: #fff; font: 800 15px/1.1 var(--fonte); letter-spacing: .08em; color: #0b1720; overflow: hidden; flex: none; }
.fr-placa small { display: block; width: calc(100% + 16px); margin-bottom: 3px; background: #1d4ed8; color: #fff; font-size: 7.5px; letter-spacing: .2em; text-align: center; padding: 1px 0; }
.fr-km { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fr-km small { font-size: 12px; color: var(--texto-3); font-weight: 650; }
.fr-km b { font-size: 28px; font-weight: 850; letter-spacing: -.03em; }
.fr-km .tag-ok, .fr-km .tag-erro { margin-left: auto; }
.fr-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fr-mini > div { padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.6); }
.fr-mini small { display: block; font-size: 11.5px; color: var(--texto-3); font-weight: 650; }
.fr-mini b { font-size: 15px; }
.fr-mini b.ruim { color: #e11d48; }
.fr-mini .fraco { display: block; font-size: 11px; }
.fr-spark svg { width: 100%; height: 34px; }
.fr-card-pe { display: flex; gap: 8px; }
.fr-card-pe .btn { flex: 1; }
.fr-oleo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 650; padding: 9px 11px; border-radius: 14px; background: rgba(255,255,255,.6); }
.fr-oleo span { display: flex; align-items: center; gap: 6px; }
.fr-oleo .ic { width: 16px; height: 16px; }
.fr-oleo-barra { height: 7px; border-radius: 5px; background: rgba(12,37,51,.1); overflow: hidden; }
.fr-oleo-barra i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #14b8a6, #0ea5e9); animation: enche .9s var(--anim) both; transform-origin: left; }
.fr-oleo.perto { background: #fff7e6; color: #b45309; } .fr-oleo.perto .fr-oleo-barra i { background: linear-gradient(90deg, #f59e0b, #f97316); }
.fr-oleo.vencido { background: #fff0f3; color: #be123c; } .fr-oleo.vencido .fr-oleo-barra i { background: var(--vermelho); }

/* ---- Tabela de abastecimentos ---- */
.fr-tabela { overflow-x: auto; }
.fr-kml { font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.fr-kml.bom { background: #d1fae5; color: #047857; }
.fr-kml.ruim { background: #ffe4e6; color: #be123c; }
.fr-fotos { white-space: nowrap; }
.fr-foto { width: 42px; height: 42px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid #fff; background: #cfe9ec; cursor: zoom-in; margin-right: 4px;
  box-shadow: var(--sombra-p); vertical-align: middle; transition: transform .15s; }
.fr-foto:hover { transform: scale(1.08); }
.fr-foto img { width: 100%; height: 100%; object-fit: cover; }
.fr-foto.sem { display: none; }
.fr-local { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.7); vertical-align: middle; }
.fr-local .ic { width: 15px; height: 15px; }

/* ---- Página do veículo ---- */
.fr-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; background: var(--vidro-forte); flex-wrap: wrap; }
.fr-hero-id { flex: 1; min-width: 240px; }
.fr-hero-nome { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.fr-hero-nome h2 { font-size: 22px; }
.fr-hero-dados { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--texto-2); }
.fr-hero-dados span { display: inline-flex; align-items: center; gap: 6px; }
.fr-hero-dados .ic { width: 16px; height: 16px; color: var(--turquesa); }
.fr-hero-km { text-align: right; }
.fr-hero-km small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--texto-3); font-weight: 700; }
.fr-hero-km b { display: block; font-size: 42px; font-weight: 850; letter-spacing: -.03em; line-height: 1.1; }
.fr-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fr-kpis .kpi .val { font-size: 25px; }
.fr-oleo-painel h2 { display: flex; align-items: center; gap: 8px; }
.fr-oleo-painel h2 .ic { width: 20px; height: 20px; color: #b45309; }

@media (max-width: 1250px) { .fr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .fr-grade { grid-template-columns: 1fr; }
  .fr-kpis { grid-template-columns: 1fr 1fr; }
  .fr-kpis .kpi .val { font-size: 21px; }
  .fr-hero { gap: 14px; }
  .fr-ic.g { width: 56px; height: 56px; border-radius: 18px; }
  .fr-hero-km { text-align: left; width: 100%; padding-top: 10px; border-top: 1px solid rgba(12,37,51,.08); }
  .fr-hero-km b { font-size: 34px; }
  .fr-foto { width: 36px; height: 36px; }
}
.fr-alerta { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; cursor: help; }
.fr-alerta .ic { width: 12px; height: 12px; }
