:root {
  --bg: #ffffff;
  --surface: #f3fff8;
  --surface2: #ffffff;
  --line: rgba(11, 31, 20, 0.12);
  --text: #0b1f14;
  --muted: rgba(11, 31, 20, 0.65);
  --brand: #00a859;
  --brand2: #008e4b;
  --danger: #e85d5d;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --radius2: 22px;

  /* largura do conteudo */
  --max: 1280px;

  --topbar-h: auto;
  --footer-h: 5px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    Arial,
    sans-serif;
  background:
    radial-gradient(
      1200px 600px at 20% 0%,
      rgba(0, 168, 89, 0.12),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

/* trava scroll quando modal aberto */
body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
code {
  background: rgba(11, 31, 20, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* ===== TOPBAR ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  min-height: 74px;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: var(--shadow);
  font-weight: 800;
}
.logo-img {
  height: 50px;
  width: auto;
  display: block;
}
.brand-title {
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand-sub {
  font-size: 1.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.brand-meta {
  display: flex;
  align-items: center;
}
.brand-title--page {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1;
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 6px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(1px);
}
@media (max-width: 900px) {
  .brand-title--page {
    font-size: 1.35rem;
  }
}
@media (max-width: 560px) {
  .brand-title--page {
    font-size: 1.15rem;
  }
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-btn {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 999px;
  transition:
    0.18s transform,
    0.18s background,
    0.18s border-color;
}
.nav-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.34);
}
.nav-outline {
  border-color: rgba(31, 170, 89, 0.45);
}
.nav-danger {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(232, 93, 93, 0.35);
}
.nav-link {
  display: inline-flex;
  align-items: center;
}
.inline {
  margin: 0;
}

/* ===== MAIN / FOOTER ===== */
.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px;
  width: 100%;
  margin-top: var(--topbar-h);
  margin-bottom: var(--footer-h);
  height: calc(100vh - var(--topbar-h) - var(--footer-h));
  overflow: auto;
  scroll-behavior: smooth;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px 18px;
  min-height: var(--footer-h);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(135deg, var(--brand2), var(--brand));
}

.page h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}
.lead {
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.5;
}

/* ===== LAYOUT ===== */
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.hero-card {
  background: linear-gradient(
    180deg,
    rgba(31, 170, 89, 0.1),
    rgba(255, 255, 255, 0.92)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.card1 {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.pill {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ===== FORM ===== */
.form {
  max-width: 640px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.field span {
  color: var(--muted);
  font-size: 0.95rem;
}

input,
textarea,
select {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 12px;
  border-radius: 14px;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(31, 170, 89, 0.65);
  box-shadow: 0 0 0 3px rgba(31, 170, 89, 0.18);
}
input::placeholder,
textarea::placeholder {
  color: rgba(11, 31, 20, 0.55);
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}
.hint {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== BUTTON (GLOBAL) ===== */
.btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease,
    background 0.22s ease;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}
.btn::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 55%;
  height: 180%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(18deg);
  opacity: 0;
  transition:
    left 0.55s ease,
    opacity 0.25s ease;
  pointer-events: none;
}
.btn:hover {
  background: linear-gradient(135deg, #12c46a, #0a7a3f);
  transform: translateY(-2px);
  filter: saturate(1.05) brightness(1.05);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 24px rgba(0, 168, 89, 0.35);
}
.btn:hover::before {
  left: 120%;
  opacity: 0.9;
}
.btn:active {
  transform: translateY(0);
  filter: brightness(1);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.08) inset;
}
.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(0, 0, 168, 89, 0.22),
    0 12px 26px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  background: rgba(11, 31, 20, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: none;
  box-shadow: none;
  filter: none;
}

/* ===== MODAL (estável: sem corte/sem piscar; largura/altura por conteúdo) ===== */

/* trava scroll quando modal aberto (o JS adiciona body.modal-open) */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999; /* acima de topbar/footer */
  /* o scroll acontece no overlay (viewport), não no body */
  /* use scroll (não auto) para não "pular" largura/altura e evitar flicker */
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  /* Espaço para não encostar na topbar fixa.
     (não usa var(--topbar-h) pois ela está "auto" no seu tema) */
  padding: 92px 12px 92px;

  /* evita "piscada" por troca de largura quando scrollbar aparece */
  scrollbar-gutter: stable both-edges;
  /* se o HTML não tiver .modal-overlay, ainda escurece e isola o fundo */
  background: rgba(0, 0, 0, 0.55);
}

/* compatível com seu HTML: aria-hidden controla abertura */
.modal[aria-hidden="false"] {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-overlay {
  display: none;
}

/* cartão do modal */
.modal-card {
  position: relative;
  z-index: 1;
  margin: 0 auto;

  /* largura acompanha o conteúdo, mas respeita limites do viewport */
  width: fit-content;
  max-width: calc(100vw - 24px);
  min-width: min(520px, calc(100vw - 24px));

  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);

  /* altura segue conteúdo; se passar do limite, o corpo vira scroll */
  max-height: calc(100dvh - 116px); /* 92px topo + 24px rodapé */
  display: flex;
  flex-direction: column;

  /* importante: mantém arredondado e evita cortes estranhos */
  overflow: hidden;
  isolation: isolate;
}

/* tamanhos opcionais */
.modal-card.modal-sm {
  min-width: min(380px, calc(100vw - 24px));
}
.modal-card.modal-xl {
  width: min(1100px, calc(100vw - 24px));
  max-width: min(1100px, calc(100vw - 24px));
}

/* header fixo */
.modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

/* corpo com scroll interno quando necessário */
.modal-body {
  flex: 1 1 auto;
  min-height: 0; /* essencial no flex para o overflow funcionar */
  padding: 14px;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

/* botao X */
.icon-btn {
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* telas baixas: reduz padding e limite */
@media (max-height: 720px) {
  .modal {
    padding: 78px 10px 18px;
  }
  .modal-card {
    max-height: calc(100dvh - 96px);
  }
}

/* ===== ALERT ===== */
.alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin: 10px 0;
  border: 1px solid var(--line);
  background: rgba(0, 168, 89, 0.06);
}
.alert-danger {
  border-color: #ffb0b0;
  background: rgba(255, 0, 0, 0.06);
  color: #7a1212;
}
.alert-ok {
  border-color: #bfe7cc;
  background: rgba(0, 168, 89, 0.08);
  color: #0a4d2b;
}

/* ===== TABLE (um unico padrao) ===== */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}
.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.table th {
  text-align: left;
  color: var(--text);
  font-weight: 800;
  background: rgba(0, 168, 89, 0.12);
}
.table tr:last-child td {
  border-bottom: none;
}
.table tbody tr:nth-child(even) td {
  background: rgba(0, 168, 89, 0.04);
}
.table tr:hover td {
  background: rgba(0, 168, 89, 0.08);
}
.table select {
  width: auto;
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
}
.badge.badge-open {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.35);
  color: #7a4a00;
}
.badge.badge-closed {
  background: rgba(0, 168, 89, 0.18);
  border-color: rgba(0, 168, 89, 0.35);
  color: #0a4d2b;
}
.badge.badge-cancel {
  background: rgba(232, 93, 93, 0.14);
  border-color: rgba(232, 93, 93, 0.35);
  color: #7a1212;
}

/* ===== STAT CARD / FORM SECTION ===== */
.stat-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition:
    0.15s transform,
    0.15s box-shadow,
    0.15s background;
}
.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}
.stat-card.is-active {
  outline: 3px solid rgba(0, 168, 89, 0.22);
}
.form-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0, 168, 89, 0.03);
}
.form-section legend {
  padding: 0 8px;
  font-weight: 900;
  color: var(--text);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== DASHBOARD MINI STATS ===== */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.card-head h3 {
  margin: 0 !important;
  padding: 0 !important;
}
.card-count {
  min-width: 48px;
  height: 50px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  background: rgba(31, 170, 89, 0.12);
  border: 1px solid rgba(31, 170, 89, 0.25);
}
.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 14px;
  margin-top: 2px;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  transform: translateY(1px);
}
.dot-ok {
  background: #16a34a;
}
.dot-warn {
  background: #f59e0b;
}
.dot-off {
  background: #64748b;
}
.dot-rent {
  background: #0ea5e9;
}
.dot-muted {
  background: #cbd5e1;
}
@media (max-width: 900px) {
  .mini-stats {
    grid-template-columns: 1fr;
  }
}

/* ===== IPVA ALERT ===== */
.dot-danger {
  background: #ef4444;
}
.card-alert {
  border: 2px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.08);
}
.ipva-alert {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #991b1b;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ===== HOME BANNER ===== */
.home-hero {
  border: none;
  padding: 0;
  margin: 0 0 18px;
  width: 100%;
  text-align: center;
}
.hero-banner {
  position: relative;
  display: inline-block;
  width: min(1274px, 100%);
  border: none;
  background: none;
  border-radius: var(--radius2);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-banner-actions {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-banner .btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.hero-banner .btn.btn-ghost {
  background: rgba(255, 255, 255, 0.829);
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #176907;
  backdrop-filter: blur(2px);
}
.hero-banner .btn.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.36);
}

.filter-select {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  outline: none;
}

/* ===== BOTAO WHATSAPP (icone) ===== */
.btn-wa {
  padding: 0 !important;
  width: auto;
  height: auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-wa img {
  width: 50px;
  height: 50px;
  display: block;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.btn-wa:hover img {
  transform: scale(1.08);
  opacity: 0.9;
}

/* ===== FROTA (cards) ===== */
.fleet-wrap {
  margin-top: 18px;
}
.fleet-group {
  margin-top: 18px;
}
.fleet-group h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

/* ✅ AJUSTE: FILTRO DA FROTA (título alinhado verticalmente e tudo à esquerda) */
.fleet-filter {
  margin-top: 8px;
  margin-bottom: 8px;
}
.fleet-filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.fleet-filter-title {
  display: flex;
  align-items: center;
  height: 42px;
  line-height: 1;
  margin: 0;
  padding: 0;
  font-weight: 800;
  white-space: nowrap;
}
.fleet-filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
}
.fleet-filter-item select {
  width: 200px;
  max-width: 200px;
}
.fleet-filter-clear {
  height: 42px;
  white-space: nowrap;
}

/* ✅ quando usar sua classe "one" (não quebra em desktop) */
.fleet-filter-row--one {
  flex-wrap: nowrap;
}
@media (max-width: 760px) {
  .fleet-filter-row--one {
    flex-wrap: wrap;
  }
  .fleet-filter-item {
    min-width: 160px;
    flex: 1 1 160px;
  }
  .fleet-filter-item select {
    width: 100%;
    max-width: 100%;
  }
}

.fleet-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  max-width: 320px;
  margin: 0 auto;
}
.fleet-card-top {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0));
  padding: 10px 12px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.fleet-card-title {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.1;
  color: var(--brand);
}
.fleet-pill {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.fleet-card-subtitle {
  padding: 8px 12px 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.72);
}
.fleet-illustration {
  padding: 8px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  flex: 0 0 auto;
}
.fleet-img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
}
.fleet-card-body {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}
.fleet-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 10px;
  font-weight: 800;
}
.fleet-price small {
  font-weight: 700;
  opacity: 0.75;
}
.fleet-card-body .btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
}
@media (max-width: 520px) {
  .fleet-card {
    max-width: 100%;
  }
  .fleet-illustration {
    height: 155px;
  }
  .fleet-img {
    height: 145px;
  }
}

/* ===== USERS (limpo e controlado) ===== */

/* painel do users: limita largura total para ficar elegante */
.page {
  max-width: 1100px;
  margin: 0 auto;
}

/* 2 colunas: form (fixo) + lista (mais estreita) */
.page .grid-2 {
  display: grid;
  grid-template-columns: 360px 540px;
  gap: 18px;
  align-items: start;
  justify-content: center;
}

/* responsivo */
@media (max-width: 980px) {
  .page {
    max-width: 720px;
  }
  .page .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* card da lista menor ainda (não estica dentro da coluna) */
.page .users-list-card {
  width: 100%;
  max-width: 400px;
}

/* lista */
.users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 8px;
}

/* item */
.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(0, 168, 89, 0.03);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.user-item:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 168, 89, 0.35);
  background: rgba(0, 168, 89, 0.06);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.user-item > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.user-name {
  font-weight: 950;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-meta {
  font-size: 12.5px;
  color: rgba(11, 31, 20, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* chip "Abrir" */
.user-click {
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: rgba(11, 31, 20, 0.72);
  white-space: nowrap;
}

/* botoes do modal (user) */
.u-btn {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}
.u-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 168, 89, 0.4);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.1);
}
.u-btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.u-btn.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.u-btn.primary:hover {
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(0, 168, 89, 0.25);
}
.u-btn.danger {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}
.u-btn.ghost {
  background: rgba(11, 31, 20, 0.04);
}

.user-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.user-actions .u-btn {
  flex: 1 1 160px;
}

.user-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.user-form-grid .field {
  margin: 0;
}
@media (max-width: 760px) {
  .user-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== RESPONSIVE GERAL ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
  }
}

.fleet-filter {
  margin: 10px 0 16px;
  padding: 14px 14px;
  border: 1px solid rgba(11, 31, 20, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(2px);
}

.fleet-filter-row--left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: nowrap;
}

.fleet-filter-row--left .fleet-filter-title {
  display: flex;
  align-items: center;
  height: 42px;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  font-weight: 800;
}

/* ✅ labels (Categoria/Grupo) na mesma linha do select */
.fleet-filter-row--left .fleet-filter-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: auto;
}
.fleet-filter-row--left .fleet-filter-item .muted {
  margin: 0;
  white-space: nowrap;
  line-height: 1;
  transform: translateY(1px);
}
.fleet-filter-row--left .fleet-filter-item select {
  width: 200px;
  max-width: 200px;
}

.fleet-filter-row--left .fleet-filter-clear {
  white-space: nowrap;
  height: 42px;
  align-self: center;
}

@media (max-width: 860px) {
  .fleet-filter {
    padding: 12px;
  }
  .fleet-filter-row--left {
    flex-wrap: wrap;
  }
  .fleet-filter-row--left .fleet-filter-title {
    flex: 1 1 100%;
  }
  .fleet-filter-row--left .fleet-filter-item {
    flex: 1 1 260px;
  }
  .fleet-filter-row--left .fleet-filter-item select {
    width: 100%;
    max-width: 100%;
  }
}

.fleet-group {
  margin-top: 18px;
}
.fleet-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fleet-group-head h3 {
  margin: 0;
  font-size: 18px;
}

.fleet-divider {
  height: 1px;
  background: rgba(11, 31, 20, 0.12);
  margin: 10px 0 10px;
  border-radius: 999px;
}

.fleet-carousel-wrap {
  position: relative;
  padding: 0 54px;
}

.fleet-grid--carousel {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 0;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .fleet-grid--carousel {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}
@media (max-width: 620px) {
  .fleet-carousel-wrap {
    padding: 0 44px;
  }
  .fleet-grid--carousel {
    grid-template-columns: 1fr;
  }
}

.fleet-nav-btn {
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 20, 0.14);
  background: #fff;
  color: #0b1f14;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
  user-select: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.fleet-nav-btn--left {
  left: 6px;
}
.fleet-nav-btn--right {
  right: 6px;
}
.fleet-nav-btn:hover {
  transform: translateY(-50%) scale(1.04);
  background: rgba(0, 168, 89, 0.06);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}
.fleet-nav-btn:active {
  transform: translateY(-50%) scale(0.98);
}
.fleet-nav-btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  background: #fff;
}

/* =========================
   FILTROS: UMA LINHA (DESKTOP)
   ========================= */
.filters-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
}
.filters-bar .field {
  margin: 0;
}
.filters-bar .field span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.filters-bar .f-plate {
  flex: 1 1 320px;
  min-width: 240px;
}
.filters-bar .f-cat {
  flex: 0 0 220px;
  min-width: 200px;
}
.filters-bar .f-from {
  flex: 0 0 180px;
  min-width: 170px;
}
.filters-bar .f-to {
  flex: 0 0 180px;
  min-width: 170px;
}

.filters-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
  padding-bottom: 2px;
}

@media (max-width: 980px) {
  .filters-bar {
    flex-wrap: wrap;
  }
  .filters-bar .f-cat,
  .filters-bar .f-from,
  .filters-bar .f-to {
    flex: 1 1 180px;
  }
  .filters-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* =========================================================
   IPVA – ÊNFASE EM LINHA VENCIDA (vermelho forte)
   ========================================================= */
.ipva-table .ipva-row:hover td {
  filter: none !important;
}
.ipva-row td {
  position: relative;
}

.ipva-row-overdue td {
  background: rgba(239, 68, 68, 0.08) !important;
}
.ipva-row-overdue td:first-child {
  box-shadow: inset 6px 0 0 rgba(239, 68, 68, 0.7);
}
.ipva-date.overdue {
  font-weight: 900;
  color: #991b1b;
}

.ipva-row-pending td {
  background: rgba(245, 158, 11, 0.06) !important;
}
.ipva-row-pending td:first-child {
  box-shadow: inset 6px 0 0 rgba(245, 158, 11, 0.55);
}

.ipva-row-paid td {
  background: rgba(31, 170, 89, 0.06) !important;
}
.ipva-row-paid td:first-child {
  box-shadow: inset 6px 0 0 rgba(31, 170, 89, 0.55);
}

.ipva-row-cancel td {
  background: rgba(100, 116, 139, 0.06) !important;
}
.ipva-row-cancel td:first-child {
  box-shadow: inset 6px 0 0 rgba(100, 116, 139, 0.45);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.badge-ok {
  background: rgba(31, 170, 89, 0.12);
  border-color: rgba(31, 170, 89, 0.25);
}
.badge-warn {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.25);
}
.badge-danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.28);
  color: #991b1b;
}
.badge-muted {
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.2);
}

.badge-pulse {
  animation: ipvaPulse 1.2s ease-in-out infinite;
}
@keyframes ipvaPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

/* =========================
   DASHBOARD (ESCOPADO)
   ========================= */
.page.page-dashboard {
  padding: 18px 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}
@media (max-width: 680px) {
  .page.page-dashboard {
    padding: 14px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dash-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(11, 31, 20, 0.12);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 210px;
}
.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 168, 89, 0.35);
}

.dash-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.dash-card .card-titlebar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(
    90deg,
    rgba(0, 168, 89, 0.15),
    rgba(0, 168, 89, 0.06)
  );
  border: 1px solid rgba(0, 168, 89, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 46px;
}
.dash-card .card-titlebar h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  color: #0b1f14;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.dash-card .card-count {
  min-width: 52px;
  height: 34px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 6px; /* 👈 levemente arredondado */
  border: 1px solid rgba(0, 168, 89, 0.22);
  background: rgba(0, 168, 89, 0.1);

  font-weight: 900;
  font-size: 20px;
  color: #0b1f14;
}
.dash-card .mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  padding: 10px 8px 2px;
}
.dash-card .mini-stats > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(11, 31, 20, 0.78);
  white-space: nowrap;
}
.dash-card .mini-stats b {
  color: #0b1f14;
}

.dash-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.06);
}
.dash-card .dot-ok {
  background: #15b26b;
}
.dash-card .dot-warn {
  background: #f0a000;
}
.dash-card .dot-off {
  background: #7a869a;
}
.dash-card .dot-rent {
  background: #2f7ae5;
}
.dash-card .dot-danger {
  background: #e85d5d;
}

.dash-card .card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}

.dash-card.card-alert {
  border: 2px solid rgba(232, 93, 93, 0.35);
  box-shadow: 0 10px 24px rgba(232, 93, 93, 0.1);
}
.dash-card .ipva-alert {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(232, 93, 93, 0.1);
  border: 1px solid rgba(232, 93, 93, 0.25);
  color: #8b1f1f;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================
   CONTATO (SOMENTE CONTATO)
   ========================= */
.page.page-contact {
  max-width: 1100px;
  margin: 0 auto;
}

.page.page-contact .contact-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.page.page-contact .contact-lead {
  margin: 0;
  max-width: 85ch;
}

.page.page-contact .contact-grid {
  gap: 14px;
  align-items: stretch;
}

.page.page-contact .card h3 {
  margin-top: 0;
}

.page.page-contact .contact-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page.page-contact .contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.page.page-contact .contact-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: start;
}
.page.page-contact .contact-label {
  font-weight: 900;
  color: rgba(11, 31, 20, 0.78);
}
.page.page-contact .contact-value {
  color: var(--text);
}

.page.page-contact .contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.page.page-contact .social {
  display: flex;
  gap: 8px;
  align-items: center;
}
.page.page-contact .social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.page.page-contact .social a:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 168, 89, 0.35);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
  color: var(--brand2);
}
.page.page-contact .social svg {
  display: block;
}

.page.page-contact .map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.page.page-contact .map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.page.page-contact .about {
  margin-top: 14px;
}

.page.page-contact .about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 14px;
  align-items: start;
}
.page.page-contact .about-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.page.page-contact .about-head h3 {
  margin: 0;
}

.page.page-contact .badge-yrs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(0, 168, 89, 0.22);
  background: rgba(0, 168, 89, 0.1);
  color: #0b1f14;
  white-space: nowrap;
}
.page.page-contact .about-text {
  margin: 10px 0 0;
  line-height: 1.55;
}

.page.page-contact .about-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.page.page-contact .about-mini {
  border: 1px solid var(--line);
  background: rgba(0, 168, 89, 0.04);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.page.page-contact .about-mini b {
  font-weight: 950;
}

@media (max-width: 900px) {
  .page.page-contact .contact-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .page.page-contact .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Utilização da Frota (Dashboard) ===== */
.util-wrap {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 168, 89, 0.18);
  background: rgba(0, 168, 89, 0.05);
  border-radius: 14px;
}
.util-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}
.util-top small {
  font-weight: 800;
  color: rgba(11, 31, 20, 0.55);
}
.util-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(11, 31, 20, 0.08);
  border: 1px solid rgba(11, 31, 20, 0.08);
}
.util-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border-radius: 999px;
  transition: width 0.35s ease;
}
.util-foot {
  margin-top: 8px;
  font-size: 12px;
}

/* ===== Utilização: Semáforo (verde/amarelo/vermelho) ===== */
.util-wrap {
  border: 1px solid rgba(0, 168, 89, 0.18);
  background: rgba(0, 168, 89, 0.05);
}

.util-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  margin-left: 8px;
  transform: translateY(-1px);
}

.util-wrap.util-ok {
  border-color: rgba(22, 163, 74, 0.28);
  background: rgba(22, 163, 74, 0.06);
}
.util-wrap.util-ok .util-badge {
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(22, 163, 74, 0.25);
  color: #0a4d2b;
}
.util-wrap.util-ok .util-bar > span {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.util-wrap.util-warn {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}
.util-wrap.util-warn .util-badge {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.28);
  color: #7a4a00;
}
.util-wrap.util-warn .util-bar > span {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.util-wrap.util-danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}
.util-wrap.util-danger .util-badge {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.28);
  color: #991b1b;
}
.util-wrap.util-danger .util-bar > span {
  background: linear-gradient(90deg, #fb7185, #ef4444);
}

/* =========================================================
   ✅ CORREÇÃO: TEXTOS/HELP NÃO SOBREPOEM CAMPOS NO FORM
   (resolve o problema do "A lista exclui..." ficar em cima do "Contrato")
   ========================================================= */

/* grid mais previsível */
.form-grid {
  align-items: start;
  grid-auto-rows: auto;
}

/* cada célula vira “bloco vertical” (label + input + help) */
.form-grid > div,
.form-grid > .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* labels sem margens estranhas */
.form-grid label {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

/* inputs 100% dentro da célula */
.form-grid input,
.form-grid select,
.form-grid textarea,
.form-grid .input {
  width: 100%;
}

/* helper SEMPRE no fluxo e quebrando linha */
.field-help,
.form-grid small {
  display: block !important;
  position: static !important;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(11, 31, 20, 0.65);
  line-height: 1.35;
  white-space: normal;
}

/* remove qualquer “altura mínima” que forçava layout estranho */
.form-group {
  min-height: unset;
}

.page {
  padding: 18px 18px 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}
@media (max-width: 680px) {
  .page {
    padding: 14px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11, 31, 20, 0.12);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 168, 89, 0.35);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-titlebar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(
    90deg,
    rgba(0, 168, 89, 0.15),
    rgba(0, 168, 89, 0.06)
  );
  border: 1px solid rgba(0, 168, 89, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 46px;
}
.card-titlebar h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  color: #0b1f14;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Ícone do título do card */
.title-ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 168, 89, 0.16);
  border: 1px solid rgba(0, 168, 89, 0.18);
  flex: 0 0 auto;
}
.title-ico svg {
  width: 18px;
  height: 18px;
  stroke: #0b1f14;
  stroke-width: 2;
  fill: none;
}

.card-count {
  min-width: 52px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 168, 89, 0.22);
  background: rgba(0, 168, 89, 0.1);
  font-weight: 900;
  color: #0b1f14;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  padding: 10px 8px 2px;
}
.mini-stats > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(11, 31, 20, 0.78);
  white-space: nowrap;
}
.mini-stats b {
  color: #0b1f14;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.06);
}
.dot-ok {
  background: #15b26b;
}
.dot-warn {
  background: #f0a000;
}
.dot-off {
  background: #7a869a;
}
.dot-rent {
  background: #2f7ae5;
}
.dot-danger {
  background: #e85d5d;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}

.btn {
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  filter: brightness(1.02);
}
.btn:active {
  transform: translateY(0px);
  box-shadow: none;
}
.btn-ghost {
  background: #f4f6f7 !important;
  border: 1px solid rgba(11, 31, 20, 0.12) !important;
  color: #0b1f14 !important;
}
.btn-ghost:hover {
  filter: brightness(0.98);
}

.card-alert {
  border: 2px solid rgba(232, 93, 93, 0.35);
  box-shadow: 0 10px 24px rgba(232, 93, 93, 0.1);
}
.ipva-alert {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(232, 93, 93, 0.1);
  border: 1px solid rgba(232, 93, 93, 0.25);
  color: #8b1f1f;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ✅ Utilização da frota */
.util-wrap {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 168, 89, 0.18);
  background: rgba(0, 168, 89, 0.05);
  border-radius: 14px;
}
.util-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}
.util-top small {
  font-weight: 800;
  color: rgba(11, 31, 20, 0.55);
}
.util-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(11, 31, 20, 0.08);
  border: 1px solid rgba(11, 31, 20, 0.08);
}
.util-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00a859, #008e4b);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.util-foot {
  margin-top: 8px;
  font-size: 12px;
}

.card.card-mini {
  min-height: unset !important;
  height: auto !important;
  display: block; /* ou flex, se quiser */
}

/* ===== Coluna Ações (ícones inline SVG) ===== */
.table-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon .ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}
