/* =========================
   🎨 VARIÁVEIS (IDENTIDADE)
========================= */
:root {
  --gradient-start: #020024;
  --gradient-mid: #090979;
  --gradient-end: #00d4ff;

  --primary: #1e3a8a;
  --secondary: #3b82f6;
  --bg: #eef2f7;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #d1d5db;
}


/* =========================
   🌍 BASE
========================= */
body {
  background: var(--bg);
  font-family: 'Segoe UI', sans-serif;
  color: var(--text);
}


/* =========================
   🧭 SIDEBAR
========================= */
.sidebar {
  width: 220px;
  height: 100vh;
  background: linear-gradient(
    180deg,
    var(--gradient-start) 0%,
    var(--gradient-mid) 50%,
    var(--gradient-end) 100%
  );
  padding: 20px;
  position: fixed;
}

.menu-item {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px;
  margin-bottom: 8px;
  transition: 0.2s;
}

.menu-item:hover {
  background: rgba(255,255,255,0.15);
  transform: translateX(3px);
}

.content {
  margin-left: 220px;
}


/* =========================
   🧱 CARD PADRÃO
========================= */
.x-card {
  background: var(--card);
  border-radius: 0;
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


/* =========================
   🔷 HEADER DO CARD
========================= */
.x-card h5 {
  background: var(--primary);
  color: #fff;
  padding: 10px;
  margin: -16px -16px 16px -16px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 2px solid rgba(255,255,255,0.2);
}


/* =========================
   📊 GRÁFICOS
========================= */
.grafico-box {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grafico-pizza {
  max-width: 280px;
  margin: auto;
}


/* =========================
   📱 RESPONSIVO
========================= */
@media (max-width: 768px) {
  .grafico-box {
    height: 220px;
  }
}


/* =========================
   📊 KPI (MÉTRICAS)
========================= */
.metric-card {
  display: flex;
  align-items: center;
  gap: 15px;
}

.metric-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-metric h2 {
  font-size: 26px;
  font-weight: bold;
  margin: 0;
}

.x-metric small {
  color: var(--muted);
}


/* =========================
   🚚 FROTAS CRÍTICAS
========================= */
.frotas-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.frota-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.frota-item:hover {
  background: #f1f5f9;
}

.frota-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.frota-nome {
  font-weight: 600;
}

.badge-frota {
  background: var(--primary);
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
}


/* =========================
   🔥 MODAL / LISTA
========================= */
.linha-tipo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  border-left: 4px solid var(--primary);
}

.linha-tipo:hover {
  background: #f1f5f9;
}

.badge-tipo {
  background: var(--primary);
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
}


/* =========================
   🧠 TIMELINE
========================= */
.timeline-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
}

.timeline-content {
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px;
  width: 100%;
}

.timeline-date {
  font-size: 12px;
  color: var(--muted);
}

.timeline-info {
  font-size: 14px;
}


/* =========================
   📋 TABELAS
========================= */
td {
  vertical-align: middle;
}

td:nth-child(10) {
  max-width: 300px;
  white-space: normal;
  font-size: 13px;
}


/* =========================
   🔥 TITULO DESTACADO
========================= */
.card-title-highlight {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  margin: -16px -16px 16px -16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.chart-container {
  width: 100%;
  overflow-x: auto;
}

.chart-container canvas {
  min-width: 1200px;
}



.logo-container {
    text-align: center;
    padding: 20px 10px;
}

.logo-img {
    width: 140px;
    max-width: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transition: 0.3s;
}

.logo-img:hover {
    transform: scale(1.05);
}


.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.menu-item {
    text-decoration: none;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    transition: 0.3s;
}

.menu-item:hover {
    background: rgba(0,212,255,0.2);
}

.logout {
    margin-top: 20px;
    background: rgba(255,0,0,0.2);
}

.logout:hover {
    background: rgba(255,0,0,0.4);
}

.menu-item.active {
    background: rgba(0, 212, 255, 0.3);
    font-weight: bold;
}


.user-box {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: white;
}

.user-avatar {
  font-size: 28px;
}

.user-name {
  font-weight: bold;
  font-size: 14px;
}



.btn-user {
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px;
}

.btn-user:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.dropdown-menu {
  border-radius: 10px;
  border: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.dropdown-item {
  font-weight: 500;
}



.avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}


.grafico-box {
  height: 280px;   /* 🔥 controla altura real */
  position: relative;
}

.grafico-box canvas {
  height: 100% !important;
  width: 100% !important;
}


.grafico-box {
  height: 300px;
}


.grafico-box {
  height: 300px;
  position: relative;
}

canvas {
  width: 100% !important;
  height: 100% !important;
}





/*kpi*/

.kpi-box {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #020024, #090979, #00d4ff);
  color: white;
}

.kpi-icon {
  font-size: 28px;
  background: rgba(255,255,255,0.2);
  padding: 10px;
  border-radius: 8px;
}

.kpi-box h2 {
  margin: 0;
  font-size: 26px;
}

.kpi-box span {
  font-size: 13px;
}

/* VARIAÇÕES */
.kpi-box.danger {
  background: linear-gradient(135deg, #7f1d1d, #ef4444);
}

.kpi-box.success {
  background: linear-gradient(135deg, #064e3b, #10b981);
}

.kpi-box.warning {
  background: linear-gradient(135deg, #78350f, #f59e0b);
}







/* ===== ACABAMENTO ===== */

.x-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: 0.2s;
}

.x-card:hover {
  transform: translateY(-2px);
}

.x-card h5 {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

.insight-box {
  background: #f8fafc;
  border-left: 5px solid #2563eb;
}

/* KPI */
.kpi-box h2 {
  font-weight: 700;
}



.kpi-box {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}


/* 🔥 GRID FROTAS */
.frotas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

/* 🔥 CARD FROTA */
.frota-card {
  background: linear-gradient(135deg, #020024, #090979, #00d4ff);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

/* 🔥 HOVER */
.frota-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 18px rgba(0,0,0,0.25);
}

/* 🔥 NUMERO FROTA */
.frota-card strong {
  font-size: 22px;
  display: block;
}

/* 🔥 TEXTO */
.frota-card small {
  opacity: 0.85;
}

/* 🔥 EFEITO BRILHO */
.frota-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
  transform: rotate(25deg);
  transition: 0.5s;
}

.frota-card:hover::before {
  left: 100%;
}



.btn-voltar {
  display: inline-block;
  background: linear-gradient(135deg, #090979, #00d4ff);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.btn-voltar:hover {
  opacity: 0.9;
  transform: translateX(-3px);
}



/* 🔥 TITULO */
.titulo-pagina {
  font-weight: 600;
  margin-bottom: 20px;
}

/* 🔥 GRID */
.frotas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

/* 🔥 CARD */
.frota-card {
  background: linear-gradient(135deg, #020024, #090979, #00d4ff);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: 0.25s;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

/* 🔥 HOVER */
.frota-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 22px rgba(0,0,0,0.25);
}

/* 🔥 NUMERO */
.frota-numero {
  font-size: 22px;
  font-weight: bold;
}

/* 🔥 INFO */
.frota-info {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.9;
}

/* 🔥 EFEITO BRILHO */
.frota-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
  transform: rotate(25deg);
  transition: 0.5s;
}

.frota-card:hover::before {
  left: 100%;
}




.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: #111;
  color: #fff;
  padding: 12px 18px;
  margin-bottom: 10px;
  border-radius: 8px;
  animation: fadeIn 0.3s ease;
}

.toast-success {
  background: linear-gradient(135deg, #00c853, #69f0ae);
  color: #003300;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}



.obs-col {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.grafico-box {
  position: relative;
  height: 280px;
  padding: 10px;
}


:root {
  --xodo-azul: #5AA0C8;
  --xodo-roxo: #5A3D9A;
  --xodo-azul-forte: #2F80ED;
}



.grafico-box {
  position: relative;
  height: 280px;
}

.x-card-body {
  position: relative;
  width: 100%;
}

canvas {
  width: 100% !important;
  height: 100% !important;
}


.grafico-pequeno {
  height: 260px; /* 🔥 tamanho ideal */
  display: flex;
  align-items: center;
  justify-content: center;
}

.grafico-pequeno canvas {
  max-width: 280px !important;
  max-height: 280px !important;
}


.grafico-padrao {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}





/* ==============================
   MENU TOPO INCLINADO
================================ */
.top-menu-skew {
  width: 100%;
  height: 60px;
  background: #f3f6fb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  overflow: hidden;
}

.top-logo {
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 3;
}

.top-logo img {
  height: 70px;
  max-width: 120px;
  object-fit: contain;
}

.top-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-user {
  width: 230px; /* aumenta espaço da direita */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  z-index: 5;
}

/* garante que a foto fique na frente */
.user-img {
  position: relative;
  z-index: 10;
}

/* empurra o botão sair um pouco */
.skew-item.sair {
  margin-left: 10px;
}

.user-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skew-item {
  height: 60px;
  min-width: 128px;
  padding: 0 20px;
  margin-left: -15px;
  background: linear-gradient(135deg, #91baff, #0052e0);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: skewX(35deg);
  box-shadow: 5px 0 12px rgba(0,0,0,0.18);
  transition: 0.25s ease;
}

.skew-item span {
  transform: skewX(-35deg);
  white-space: nowrap;
}

.skew-item:nth-child(1) {
  background: #ffffff;
  color: #777;
}

.skew-item:nth-child(2) {
  background: linear-gradient(135deg, #b8d0ff, #6ea0ff);
}

.skew-item:nth-child(3) {
  background: linear-gradient(135deg, #7fb0ff, #3f7dff);
}

.skew-item:nth-child(4) {
  background: linear-gradient(135deg, #5b95ff, #1f63ee);
}

.skew-item:nth-child(5) {
  background: linear-gradient(135deg, #3d7dff, #0052e0);
}

.skew-item:nth-child(6) {
  background: linear-gradient(135deg, #286cff, #003db5);
}

.skew-item:hover {
  filter: brightness(1.08);
}

.skew-item.sair {
  min-width: 110px;
  background: linear-gradient(135deg, #ff5f69, #c82333);
}

.content-top {
  width: 100%;
}



.kpi-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.kpi-link:hover {
  color: inherit;
}

.kpi-link .kpi-box {
  cursor: pointer;
  transition: 0.2s ease;
}

.kpi-link .kpi-box:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}


.top-menu-skew {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #f8fafc;
}



/* =========================
   📄 MANUTENÇÕES - HEADER / EXPORTAÇÃO EXCEL
========================= */

.manutencoes-page-header {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.manutencoes-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.manutencoes-title {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.manutencoes-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.excel-export-box {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.excel-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.excel-field label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.excel-field .form-control {
  height: 38px;
  min-width: 155px;
  border-radius: 8px;
  font-size: 14px;
}

.btn-export-excel {
  height: 38px;
  min-width: 150px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #064e3b, #10b981);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.2s ease;
}

.btn-export-excel:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.acoes-manutencao {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.galeria-modal-img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #ddd;
}

.imagem-ampliada-modal {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .manutencoes-page-header {
    align-items: stretch;
  }

  .excel-export-box {
    width: 100%;
  }

  .excel-field {
    width: 100%;
  }

  .excel-field .form-control {
    width: 100%;
  }

  .btn-export-excel {
    width: 100%;
  }
}


/* =========================
   🔐 LOGIN NEON - EASY CONTROL
========================= */

.neon-login-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(0, 212, 255, 0.18), transparent 35%),
    radial-gradient(circle at bottom, rgba(255, 0, 102, 0.18), transparent 35%),
    linear-gradient(135deg, #0a0b16, #141421, #090a12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
}

.neon-login-wrapper {
  width: 100%;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neon-login-box {
  width: 390px;
  min-height: 430px;
  position: relative;
  background: #1b1c2b;
  border-radius: 28px;
  padding: 18px;
  box-shadow:
    0 0 35px rgba(0, 0, 0, 0.65),
    inset 0 0 18px rgba(255, 255, 255, 0.03);
  animation: neonBoxEntrance 0.7s ease;
}

.neon-login-box::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  background: #242536;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(0, 212, 255, 0.05);
  z-index: 1;
}

.neon-login-inner {
  position: relative;
  z-index: 3;
  padding: 44px 34px 34px;
}

.neon-login-glow {
  position: absolute;
  z-index: 4;
  border-radius: 20px;
  pointer-events: none;
}

.neon-glow-top {
  top: 0;
  left: 44px;
  width: 155px;
  height: 5px;
  background: #ff005d;
  box-shadow: 0 0 14px #ff005d, 0 0 28px rgba(255, 0, 93, 0.65);
  animation: neonPulsePink 2s infinite alternate;
}

.neon-glow-right {
  top: 42px;
  right: 0;
  width: 5px;
  height: 170px;
  background: #21f5e5;
  box-shadow: 0 0 14px #21f5e5, 0 0 28px rgba(33, 245, 229, 0.65);
  animation: neonPulseCyan 2s infinite alternate;
}

.neon-glow-bottom {
  bottom: 0;
  right: 50px;
  width: 150px;
  height: 5px;
  background: #ff005d;
  box-shadow: 0 0 14px #ff005d, 0 0 28px rgba(255, 0, 93, 0.65);
  animation: neonPulsePink 2s infinite alternate;
}

.neon-glow-left {
  bottom: 44px;
  left: 0;
  width: 5px;
  height: 155px;
  background: #21f5e5;
  box-shadow: 0 0 14px #21f5e5, 0 0 28px rgba(33, 245, 229, 0.65);
  animation: neonPulseCyan 2s infinite alternate;
}

.neon-login-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.neon-login-title span {
  width: 22px;
  height: 13px;
  background: #ff005d;
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0 0 12px #ff005d;
}

.neon-login-title h4 {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 6px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.neon-login-brand {
  text-align: center;
  color: #21f5e5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 28px;
  opacity: 0.9;
}

.neon-login-alert {
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.neon-input-group {
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  background: rgba(12, 13, 24, 0.38);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.03),
    0 0 10px rgba(255, 255, 255, 0.03);
  transition: 0.25s ease;
}

.neon-input-group:focus-within {
  border-color: #21f5e5;
  box-shadow:
    0 0 14px rgba(33, 245, 229, 0.35),
    inset 0 0 12px rgba(33, 245, 229, 0.05);
}

.neon-input-group i {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  margin-right: 10px;
}

.neon-input-group input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
}

.neon-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.neon-password-btn {
  border: none;
  background: transparent;
  padding: 0;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neon-password-btn i {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  transition: 0.2s;
}

.neon-password-btn:hover i {
  color: #21f5e5;
}

.neon-login-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #21f5e5, #00d4ff);
  color: #13202a;
  font-weight: 800;
  font-size: 15px;
  margin-top: 4px;
  box-shadow:
    0 0 16px rgba(33, 245, 229, 0.65),
    0 10px 22px rgba(0, 0, 0, 0.25);
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.neon-login-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.neon-login-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.neon-login-btn .spinner-border {
  width: 1rem;
  height: 1rem;
  display: none;
}

@keyframes neonPulsePink {
  from {
    opacity: 0.7;
    box-shadow: 0 0 8px #ff005d, 0 0 18px rgba(255, 0, 93, 0.45);
  }

  to {
    opacity: 1;
    box-shadow: 0 0 16px #ff005d, 0 0 34px rgba(255, 0, 93, 0.85);
  }
}

@keyframes neonPulseCyan {
  from {
    opacity: 0.7;
    box-shadow: 0 0 8px #21f5e5, 0 0 18px rgba(33, 245, 229, 0.45);
  }

  to {
    opacity: 1;
    box-shadow: 0 0 16px #21f5e5, 0 0 34px rgba(33, 245, 229, 0.85);
  }
}

@keyframes neonBoxEntrance {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .neon-login-box {
    width: 100%;
    max-width: 360px;
    min-height: auto;
  }

  .neon-login-inner {
    padding: 40px 22px 28px;
  }

  .neon-login-title h4 {
    font-size: 18px;
    letter-spacing: 5px;
  }
}




/* =========================
   🔐 LOGIN NEON COM BACKGROUND CAMINHÃO
========================= */

.login-truck-bg {
  background-image: url("/static/img/login-bg-caminhao.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.neon-login-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(2, 0, 36, 0.88),
      rgba(9, 9, 121, 0.58),
      rgba(0, 0, 0, 0.82)
    );
  z-index: 1;
}

.neon-login-body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
}

.neon-login-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neon-login-box {
  width: 390px;
  min-height: 430px;
  position: relative;
  background: rgba(20, 21, 34, 0.92);
  border-radius: 28px;
  padding: 18px;
  box-shadow:
    0 0 45px rgba(0, 0, 0, 0.85),
    inset 0 0 18px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: neonBoxEntrance 0.7s ease;
  backdrop-filter: blur(8px);
}

.neon-login-box::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  background: rgba(36, 37, 54, 0.92);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(0, 212, 255, 0.08);
  z-index: 2;
}

.neon-rotating-border {
  position: absolute;
  inset: -45%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 55deg,
    #21f5e5 75deg,
    transparent 100deg,
    transparent 170deg,
    #ff005d 200deg,
    transparent 230deg,
    transparent 360deg
  );
  animation: neonRotate 4s linear infinite;
  z-index: 1;
  opacity: 0.9;
  filter: blur(1px);
}

.neon-login-inner {
  position: relative;
  z-index: 4;
  padding: 44px 34px 34px;
}

.neon-login-glow {
  position: absolute;
  z-index: 5;
  border-radius: 20px;
  pointer-events: none;
}

.neon-glow-top {
  top: 0;
  left: 44px;
  width: 155px;
  height: 5px;
  background: #ff005d;
  box-shadow: 0 0 14px #ff005d, 0 0 28px rgba(255, 0, 93, 0.65);
  animation: neonPulsePink 2s infinite alternate;
}

.neon-glow-right {
  top: 42px;
  right: 0;
  width: 5px;
  height: 170px;
  background: #21f5e5;
  box-shadow: 0 0 14px #21f5e5, 0 0 28px rgba(33, 245, 229, 0.65);
  animation: neonPulseCyan 2s infinite alternate;
}

.neon-glow-bottom {
  bottom: 0;
  right: 50px;
  width: 150px;
  height: 5px;
  background: #ff005d;
  box-shadow: 0 0 14px #ff005d, 0 0 28px rgba(255, 0, 93, 0.65);
  animation: neonPulsePink 2s infinite alternate;
}

.neon-glow-left {
  bottom: 44px;
  left: 0;
  width: 5px;
  height: 155px;
  background: #21f5e5;
  box-shadow: 0 0 14px #21f5e5, 0 0 28px rgba(33, 245, 229, 0.65);
  animation: neonPulseCyan 2s infinite alternate;
}

.neon-login-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.neon-login-title span {
  width: 22px;
  height: 13px;
  background: #ff005d;
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0 0 12px #ff005d;
}

.neon-login-title h4 {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 6px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.neon-login-brand {
  text-align: center;
  color: #21f5e5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 28px;
  opacity: 0.9;
}

.neon-login-alert {
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.neon-input-group {
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  background: rgba(12, 13, 24, 0.45);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.03),
    0 0 10px rgba(255, 255, 255, 0.03);
  transition: 0.25s ease;
}

.neon-input-group:focus-within {
  border-color: #21f5e5;
  box-shadow:
    0 0 14px rgba(33, 245, 229, 0.35),
    inset 0 0 12px rgba(33, 245, 229, 0.05);
}

.neon-input-group i {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  margin-right: 10px;
}

.neon-input-group input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
}

.neon-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.neon-password-btn {
  border: none;
  background: transparent;
  padding: 0;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neon-password-btn i {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  transition: 0.2s;
}

.neon-password-btn:hover i {
  color: #21f5e5;
}

.neon-login-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #21f5e5, #00d4ff);
  color: #13202a;
  font-weight: 800;
  font-size: 15px;
  margin-top: 4px;
  box-shadow:
    0 0 16px rgba(33, 245, 229, 0.65),
    0 10px 22px rgba(0, 0, 0, 0.25);
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.neon-login-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.neon-login-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.neon-login-btn .spinner-border {
  width: 1rem;
  height: 1rem;
  display: none;
}

@keyframes neonRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes neonPulsePink {
  from {
    opacity: 0.7;
    box-shadow: 0 0 8px #ff005d, 0 0 18px rgba(255, 0, 93, 0.45);
  }

  to {
    opacity: 1;
    box-shadow: 0 0 16px #ff005d, 0 0 34px rgba(255, 0, 93, 0.85);
  }
}

@keyframes neonPulseCyan {
  from {
    opacity: 0.7;
    box-shadow: 0 0 8px #21f5e5, 0 0 18px rgba(33, 245, 229, 0.45);
  }

  to {
    opacity: 1;
    box-shadow: 0 0 16px #21f5e5, 0 0 34px rgba(33, 245, 229, 0.85);
  }
}

@keyframes neonBoxEntrance {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .neon-login-box {
    width: 100%;
    max-width: 360px;
    min-height: auto;
  }

  .neon-login-inner {
    padding: 40px 22px 28px;
  }

  .neon-login-title h4 {
    font-size: 18px;
    letter-spacing: 5px;
  }
}




/* =========================
   🔐 AJUSTE LOGIN - NEON AZUL FORTE
========================= */

/* troca os pontos vermelhos do LOGIN para azul */
.neon-login-title span {
  background: #0052ff;
  box-shadow:
    0 0 12px #0052ff,
    0 0 25px rgba(0, 82, 255, 0.85);
}

/* linha superior azul forte */
.neon-glow-top {
  background: #0052ff;
  box-shadow:
    0 0 14px #0052ff,
    0 0 28px rgba(0, 82, 255, 0.75);
  animation: neonPulseBlue 2s infinite alternate;
}

/* linha inferior azul forte */
.neon-glow-bottom {
  background: #0052ff;
  box-shadow:
    0 0 14px #0052ff,
    0 0 28px rgba(0, 82, 255, 0.75);
  animation: neonPulseBlue 2s infinite alternate;
}

/* borda girando sem vermelho */
.neon-rotating-border {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 45deg,
    #21f5e5 75deg,
    transparent 110deg,
    transparent 165deg,
    #0052ff 200deg,
    transparent 240deg,
    transparent 360deg
  );
}

/* overlay mais azul e menos roxo/vermelho */
.neon-login-overlay {
  background:
    linear-gradient(
      135deg,
      rgba(2, 0, 36, 0.88),
      rgba(0, 45, 140, 0.62),
      rgba(0, 0, 0, 0.78)
    );
}

/* card com brilho azul/ciano */
.neon-login-box {
  box-shadow:
    0 0 45px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(0, 82, 255, 0.22),
    inset 0 0 18px rgba(255, 255, 255, 0.04);
}

/* animação azul */
@keyframes neonPulseBlue {
  from {
    opacity: 0.7;
    box-shadow:
      0 0 8px #0052ff,
      0 0 18px rgba(0, 82, 255, 0.45);
  }

  to {
    opacity: 1;
    box-shadow:
      0 0 16px #0052ff,
      0 0 34px rgba(0, 82, 255, 0.9);
  }
}


/* =========================
   🔐 AJUSTE LOGIN - FUNDO SEM AZULADO
========================= */

.neon-login-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.55)
    ) !important;
}

.login-truck-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}




/* =========================
   🔐 LOGIN - EASY CONTROL EM CIMA / LOGIN EMBAIXO
========================= */

/* remove as bolinhas laterais */
.neon-login-title span {
  display: none !important;
}

/* EASY CONTROL grande em cima */
.neon-login-title h4 {
  color: #ffffff !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  letter-spacing: 5px !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.45) !important;
  margin-bottom: 6px !important;
}

/* LOGIN pequeno embaixo */
.neon-login-brand {
  display: block !important;
  text-align: center;
  color: #21f5e5 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 4px !important;
  text-shadow: 0 0 8px rgba(33, 245, 229, 0.45) !important;
  margin-bottom: 28px !important;
  opacity: 1 !important;
}



/* =========================
   🔐 LOGIN - REMOVER LED GIRANDO
========================= */

.neon-rotating-border {
  display: none !important;
}

.neon-login-box {
  border: 1px solid rgba(33, 245, 229, 0.35);
  box-shadow:
    0 0 45px rgba(0, 0, 0, 0.85),
    0 0 22px rgba(33, 245, 229, 0.18),
    inset 0 0 18px rgba(255, 255, 255, 0.04);
}



/* =========================
   ✅ DASHBOARD - ÚLTIMAS FINALIZAÇÕES
========================= */

.ultimas-finalizacoes-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.ultima-finalizacao-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid #10b981;
  padding: 11px 12px;
  border-radius: 10px;
  transition: 0.2s ease;
}

.ultima-finalizacao-item:hover {
  background: #eefcf6;
  transform: translateX(3px);
}

.ultima-finalizacao-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #064e3b, #10b981);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.ultima-finalizacao-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ultima-finalizacao-info strong {
  font-size: 14px;
  color: var(--text);
}

.ultima-finalizacao-info small {
  font-size: 12px;
  color: var(--muted);
}




/* =========================
   ✅ DASHBOARD - ÚLTIMAS FINALIZAÇÕES CLICÁVEIS
========================= */

.ultima-finalizacao-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.ultima-finalizacao-link:hover {
  color: inherit;
  text-decoration: none;
}

.ultima-finalizacao-item {
  position: relative;
}

.ultima-finalizacao-link:hover .ultima-finalizacao-info strong {
  color: #064e3b;
}

.ultima-finalizacao-action {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  opacity: 0;
  transform: translateX(-5px);
  transition: 0.2s ease;
  white-space: nowrap;
}

.ultima-finalizacao-link:hover .ultima-finalizacao-action {
  opacity: 1;
  transform: translateX(0);
}

.ultima-finalizacao-link:hover {
  background: #eefcf6;
  border-left-color: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}


/* =========================
   🚚 DETALHE FROTA - CARDS RESUMO
========================= */

.frota-resumo-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 118px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: 0.2s ease;
}

.frota-resumo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.frota-resumo-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.frota-resumo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.frota-resumo-value {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.frota-status-value {
  font-size: 22px;
}

.frota-resumo-desc {
  font-size: 12px;
  color: var(--muted);
}




/* =========================
   🚚 DETALHE FROTA - CARDS RESUMO COMPACTOS
========================= */

.frota-resumo-card {
  background: #ffffff;
  border: 1px solid #dbe1ea;
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 82px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.035);
  transition: 0.2s ease;
}

.frota-resumo-card:hover {
  transform: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.frota-resumo-top {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.frota-resumo-icon {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.frota-resumo-value {
  font-size: 21px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}

.frota-status-value {
  font-size: 18px;
}

.frota-resumo-desc {
  font-size: 11px;
  color: var(--muted);
}



/* =========================
   🚚 DETALHE FROTA - COLUNA AÇÕES COMPACTA
========================= */

.table th:last-child,
.table td:last-child {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  text-align: center;
  white-space: nowrap;
}

.table td:last-child .d-flex {
  justify-content: center;
  gap: 4px !important;
}

.table td:last-child .btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 6px;
}





/* =========================
   🤖 ASSISTENTE INTELIGENTE
========================= */

.assistente-page {
  max-width: 1100px;
  margin: 0 auto;
}

.assistente-header {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.assistente-header h3 {
  margin: 0;
  font-weight: 800;
  color: var(--text);
}

.assistente-header small {
  color: var(--muted);
}

.assistente-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.assistente-sugestoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.assistente-sugestoes button {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.assistente-sugestoes button:hover {
  background: #eef6ff;
  border-color: var(--secondary);
  color: var(--primary);
}

.assistente-chat {
  height: 460px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.assistente-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.assistente-msg-user {
  flex-direction: row-reverse;
}

.assistente-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.assistente-balao {
  max-width: 75%;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 14px;
  white-space: pre-line;
  font-size: 14px;
  color: var(--text);
}

.assistente-msg-user .assistente-balao {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border: none;
}

.assistente-input-box {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.assistente-input-box input {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0 14px;
  outline: none;
}

.assistente-input-box input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.assistente-input-box button {
  height: 46px;
  min-width: 120px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-weight: 800;
}

.assistente-input-box button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}




/* =========================
   🤖 SIDINHO - ASSISTENTE FLUTUANTE
========================= */

.sidinho-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
  font-family: 'Segoe UI', sans-serif;
}

.sidinho-bubble {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow:
    0 10px 25px rgba(0,0,0,0.25),
    0 0 0 4px rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: 0.25s ease;
}

.sidinho-bubble:hover {
  transform: translateY(-4px) scale(1.03);
}

.sidinho-bubble img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
}

.sidinho-bubble-alert {
  position: absolute;
  right: 78px;
  bottom: 18px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.sidinho-bubble-alert::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 7px solid #ffffff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.sidinho-active .sidinho-bubble-alert {
  display: none;
}

.sidinho-chat-panel {
  width: 365px;
  height: 500px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(0,0,0,0.22);
  overflow: hidden;
  position: absolute;
  right: 0;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  transition: 0.25s ease;
}

.sidinho-chat-panel.sidinho-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sidinho-chat-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidinho-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidinho-header-left img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(255,255,255,0.8);
}

.sidinho-header-left strong {
  display: block;
  font-size: 15px;
}

.sidinho-header-left small {
  display: block;
  font-size: 11px;
  opacity: 0.9;
}

.sidinho-chat-header button {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.sidinho-quick-actions {
  display: flex;
  gap: 6px;
  padding: 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.sidinho-quick-actions button {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.sidinho-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f1f5f9;
}

.sidinho-message {
  display: flex;
  margin-bottom: 10px;
}

.sidinho-message.sidinho-user {
  justify-content: flex-end;
}

.sidinho-message.sidinho-bot {
  justify-content: flex-start;
}

.sidinho-balloon {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-line;
}

.sidinho-bot .sidinho-balloon {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.sidinho-user .sidinho-balloon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.sidinho-input-area {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.sidinho-input-area input {
  flex: 1;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}

.sidinho-input-area input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.sidinho-input-area button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-weight: 800;
}

.sidinho-input-area button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .sidinho-widget {
    right: 14px;
    bottom: 14px;
  }

  .sidinho-chat-panel {
    width: calc(100vw - 28px);
    height: 520px;
    right: 0;
    bottom: 92px;
  }

  .sidinho-bubble-alert {
    display: none;
  }
}



/* =========================
   🤖 SIDINHO - DIGITANDO
========================= */

.sidinho-typing-balloon {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-style: italic;
}

.sidinho-typing-text {
  font-size: 13px;
}

.sidinho-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sidinho-typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  display: block;
  animation: sidinhoTyping 1.2s infinite ease-in-out;
}

.sidinho-typing-dots span:nth-child(1) {
  animation-delay: 0s;
}

.sidinho-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.sidinho-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes sidinhoTyping {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}






/* =========================
   🔥 FUNIL DE CAUSAS
========================= */

.funil-card {

  background: #fff;

  border-radius: 16px;

  overflow: hidden;

  box-shadow:
    0 8px 24px rgba(0,0,0,0.08);

  border:
    1px solid rgba(0,0,0,0.06);
}

/* HEADER */

.funil-header {

  background:
    linear-gradient(
      135deg,
      #020024,
      #090979,
      #00d4ff
    );

  color: #fff;

  padding: 18px 22px;

  display: flex;

  align-items: center;

  justify-content: space-between;
}

.funil-header h4 {

  margin: 0;

  font-size: 20px;

  font-weight: 700;
}

.funil-header small {

  opacity: 0.8;
}

.funil-badge {

  background: rgba(255,255,255,0.15);

  border: 1px solid rgba(255,255,255,0.2);

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 12px;

  font-weight: 700;
}

/* BODY */

.funil-body {

  display: grid;

  grid-template-columns: 1fr 220px;

  gap: 22px;

  padding: 24px;
}

/* CHART */

.funil-chart {

  display: flex;

  flex-direction: column;

  gap: 14px;
}

.funil-item {

  display: flex;

  flex-direction: column;

  gap: 6px;
}

.funil-label {

  font-size: 13px;

  font-weight: 700;

  color: #374151;
}

.funil-bar-area {

  width: 100%;

  height: 42px;

  background: #eef2ff;

  border-radius: 12px;

  overflow: hidden;
}

.funil-bar {

  height: 100%;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #020024,
      #090979,
      #00d4ff
    );

  display: flex;

  align-items: center;

  justify-content: flex-end;

  padding-right: 14px;

  color: #fff;

  font-weight: 700;

  font-size: 14px;

  transition: 0.4s ease;
}

.funil-bar:hover {

  filter: brightness(1.08);

  transform: scale(1.01);
}

/* SIDE */

.funil-side {

  display: flex;

  flex-direction: column;

  gap: 14px;
}

.funil-side-card {

  background: #f8fafc;

  border: 1px solid #e5e7eb;

  border-radius: 14px;

  padding: 18px;
}

.funil-side-card strong {

  display: block;

  color: #6b7280;

  font-size: 12px;

  margin-bottom: 8px;
}

.funil-side-card h2 {

  margin: 0;

  font-size: 30px;

  font-weight: 800;

  color: #111827;
}

.funil-side-card p {

  margin: 0;

  font-size: 15px;

  font-weight: 700;

  color: #111827;
}

/* RESPONSIVO */

@media (max-width: 991px) {

  .funil-body {

    grid-template-columns: 1fr;
  }

}



/* =========================
   🔥 FUNIL EXECUTIVO DE CAUSAS
========================= */

.funil-executivo-card {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.funil-executivo-header {
  background: linear-gradient(135deg, #020024, #090979, #0052e0);
  color: #ffffff;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.funil-executivo-header h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.funil-executivo-header small {
  opacity: 0.85;
  font-size: 13px;
}

.funil-executivo-header span {
  background: rgba(0, 0, 0, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.funil-executivo-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  padding: 26px;
}

.funil-executivo-chart {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.funil-executivo-row {
  display: grid;
  grid-template-columns: 170px 1fr 70px;
  align-items: center;
  gap: 12px;
}

.funil-executivo-label {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  text-align: right;
}

.funil-executivo-track {
  height: 42px;
  background: #eef4ff;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.funil-executivo-bar {
  height: 100%;
  min-width: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #020024, #090979, #00d4ff);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14px;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(9, 9, 121, 0.25);
}

.funil-executivo-bar strong {
  font-size: 17px;
  font-weight: 900;
}

.funil-executivo-percent {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.funil-executivo-table {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  overflow: hidden;
  align-self: start;
}

.funil-executivo-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.funil-executivo-table th {
  background: #f8fafc;
  color: #0f172a;
  padding: 12px;
  font-weight: 900;
}

.funil-executivo-table td {
  padding: 11px 12px;
  border-top: 1px solid #e5e7eb;
  color: #111827;
}

.funil-executivo-table tfoot td {
  background: #f8fafc;
  font-weight: 900;
  color: #090979;
}

@media (max-width: 1100px) {
  .funil-executivo-body {
    grid-template-columns: 1fr;
  }

  .funil-executivo-row {
    grid-template-columns: 130px 1fr 60px;
  }
}





/* =========================================================
   🔥 DASHBOARD PAGE - IDENTIDADE VISUAL SEGURA
   Aplica somente dentro de .dashboard-page
========================================================= */

.dashboard-page {
  --dash-dark: #020024;
  --dash-mid: #090979;
  --dash-blue: #0052e0;
  --dash-cyan: #00d4ff;
  --dash-border: #dbe3ef;
  --dash-soft: #f8fafc;
  --dash-text: #0f172a;
  --dash-muted: #64748b;
}

/* =========================
   FILTRO
========================= */

.dashboard-page .dashboard-filter {
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.dashboard-page .dashboard-filter .form-control {
  border-radius: 10px;
  border: 1px solid var(--dash-border);
  height: 42px;
}

.dashboard-page .dashboard-filter .btn {
  border-radius: 10px;
  min-width: 110px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dash-dark), var(--dash-mid), var(--dash-blue));
  border: none;
}

/* =========================
   CARDS EXECUTIVOS
========================= */

.dashboard-page .dashboard-executive-card {
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

.dashboard-page .dashboard-executive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.dashboard-page .dashboard-executive-header {
  min-height: 58px;
  background: linear-gradient(135deg, var(--dash-dark), var(--dash-mid), var(--dash-blue));
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-page .dashboard-executive-header h5 {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.dashboard-page .dashboard-executive-header small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
}

.dashboard-page .dashboard-executive-body {
  padding: 18px;
}

.dashboard-page .dashboard-executive-body .grafico-box {
  height: 270px;
  padding: 4px;
}

/* =========================
   KPIs SOMENTE NO DASHBOARD
========================= */

.dashboard-page .dashboard-kpis .row {
  margin-bottom: 18px !important;
}

.dashboard-page .dashboard-kpis .kpi-link {
  text-decoration: none;
}

.dashboard-page .dashboard-kpis .kpi-box {
  min-height: 104px;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(135deg, var(--dash-dark), var(--dash-mid), var(--dash-blue));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.13);
  overflow: hidden;
  position: relative;
}

.dashboard-page .dashboard-kpis .kpi-box::before {
  content: "";
  position: absolute;
  inset: auto -40px -45px auto;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
}

.dashboard-page .dashboard-kpis .kpi-box:hover {
  transform: translateY(-4px);
  filter: brightness(1.05);
}

.dashboard-page .dashboard-kpis .kpi-box.danger {
  background: linear-gradient(135deg, #450a0a, #991b1b, #ef4444);
}

.dashboard-page .dashboard-kpis .kpi-box.success {
  background: linear-gradient(135deg, #022c22, #047857, #10b981);
}

.dashboard-page .dashboard-kpis .kpi-box.warning {
  background: linear-gradient(135deg, #451a03, #b45309, #f59e0b);
}

.dashboard-page .dashboard-kpis .kpi-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  backdrop-filter: blur(4px);
}

.dashboard-page .dashboard-kpis .kpi-box h2 {
  font-size: 30px;
  font-weight: 900;
  margin: 0;
  line-height: 1;
}

.dashboard-page .dashboard-kpis .kpi-box span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0.9;
}

/* =========================
   ÚLTIMAS FINALIZAÇÕES
========================= */

.dashboard-page .ultimas-finalizacoes-box {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-page .ultima-finalizacao-item {
  background: #f8fafc;
  border: 1px solid var(--dash-border);
  border-left: 4px solid #10b981;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.dashboard-page .ultima-finalizacao-item:hover {
  background: #eefcf6;
  transform: translateX(3px);
}

.dashboard-page .ultima-finalizacao-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #064e3b, #10b981);
  color: #ffffff;
  font-size: 16px;
}

.dashboard-page .ultima-finalizacao-info strong {
  font-size: 13px;
  font-weight: 900;
  color: var(--dash-text);
}

.dashboard-page .ultima-finalizacao-info small {
  font-size: 11px;
  color: var(--dash-muted);
}

.dashboard-page .ultima-finalizacao-action {
  color: #10b981;
}

/* =========================
   AJUSTE DO FUNIL PARA CONVERSAR COM OS OUTROS CARDS
========================= */

.dashboard-page .funil-executivo-card {
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--dash-border);
}

.dashboard-page .funil-executivo-header {
  min-height: 58px;
  background: linear-gradient(135deg, var(--dash-dark), var(--dash-mid), var(--dash-blue));
}

.dashboard-page .funil-executivo-header h4 {
  font-size: 15px;
  font-weight: 900;
}

.dashboard-page .funil-executivo-header small {
  font-size: 11px;
}

.dashboard-page .funil-executivo-header span {
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 900;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 768px) {
  .dashboard-page .dashboard-filter {
    flex-direction: column;
  }

  .dashboard-page .dashboard-filter .btn {
    width: 100%;
  }

  .dashboard-page .dashboard-executive-body .grafico-box {
    height: 240px;
  }
}





/* =========================
   🔧 AJUSTE FINO - HEADER FUNIL NO DASHBOARD
========================= */

.dashboard-page .funil-executivo-header {
  min-height: 54px !important;
  padding: 12px 18px !important;
}

.dashboard-page .funil-executivo-header h4 {
  font-size: 14px !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

.dashboard-page .funil-executivo-header small {
  font-size: 10px !important;
  line-height: 1.1 !important;
  margin-top: 2px !important;
}

.dashboard-page .funil-executivo-header span {
  padding: 5px 10px !important;
  font-size: 10px !important;
}







.frota-card {
  background: linear-gradient(135deg, #020024, #090979, #00d4ff);
  color: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  min-height: 120px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255,255,255,0.14);
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

.frota-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.25);
  color: #ffffff;
}

.frota-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 35%),
    linear-gradient(135deg, transparent, rgba(255,255,255,0.08));
  pointer-events: none;
}

.frota-numero {
  position: relative;
  z-index: 2;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
}

.frota-info {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.92;
}

.frota-link-text {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 800;
}






/* =========================================================
   🚚 FROTAS - CARDS PREMIUM AZUL GRADIENTE
   Escopo seguro apenas para a tela .frotas-page
========================================================= */

.frotas-page {
  padding: 4px 2px 30px;
}

/* HEADER DA PÁGINA */
.frotas-page .frotas-page-header {
  margin-bottom: 20px;
}

.frotas-page .frotas-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.frotas-page .frotas-title-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #020024, #090979, #00d4ff);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.frotas-page .titulo-pagina {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.frotas-page .frotas-subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

/* GRID */
.frotas-page .frotas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

/* CARD */
.frotas-page .frota-card {
  min-height: 138px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.28), transparent 34%),
    linear-gradient(135deg, #020024 0%, #090979 48%, #00d4ff 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 18px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: 0.25s ease;
}

/* brilho suave */
.frotas-page .frota-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(255,255,255,0.18) 42%,
      transparent 70%
    );
  transform: translateX(-100%);
  transition: 0.55s ease;
  pointer-events: none;
}

.frotas-page .frota-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -55px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  pointer-events: none;
}

.frotas-page .frota-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.26);
  color: #ffffff;
}

.frotas-page .frota-card:hover::before {
  transform: translateX(100%);
}

/* ÍCONE */
.frotas-page .frota-card-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #0f4edb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.55),
    0 8px 18px rgba(0,0,0,0.16);
  position: relative;
  z-index: 2;
}

/* CONTEÚDO */
.frotas-page .frota-card-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.frotas-page .frota-numero {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  color: #ffffff;
}

.frotas-page .frota-divider {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  margin-bottom: 8px;
}

.frotas-page .frota-info {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

.frotas-page .frota-link-text {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,0.96);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: 0.2s ease;
}

.frotas-page .frota-card:hover .frota-link-text {
  transform: translateX(4px);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .frotas-page .frotas-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
  }

  .frotas-page .frota-card {
    min-height: 128px;
    padding: 15px;
  }

  .frotas-page .frota-card-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 22px;
  }

  .frotas-page .frota-numero {
    font-size: 24px;
  }
}



/* =========================================================
   🚚 FROTAS - RESUMO + BUSCA
========================================================= */

.frotas-page .frotas-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.frotas-page .frotas-resumo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.frotas-page .frotas-resumo-card {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  min-height: 120px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  position: relative;
  overflow: hidden;
}

.frotas-page .frotas-resumo-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 140px;
  height: 90px;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 50%;
}

.frotas-page .frotas-resumo-icon {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.frotas-page .frotas-resumo-icon.azul {
  background: linear-gradient(135deg, #0f4edb, #00d4ff);
}

.frotas-page .frotas-resumo-icon.roxo {
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
}

.frotas-page .frotas-resumo-icon.verde {
  background: linear-gradient(135deg, #047857, #14b8a6);
}

.frotas-page .frotas-resumo-icon.azul2 {
  background: linear-gradient(135deg, #1d4ed8, #6366f1);
}

.frotas-page .frotas-resumo-info {
  position: relative;
  z-index: 2;
}

.frotas-page .frotas-resumo-info span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 5px;
}

.frotas-page .frotas-resumo-info strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}

.frotas-page .frotas-resumo-info small {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.frotas-page .frotas-resumo-line {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  margin-top: 12px;
}

.frotas-page .frotas-resumo-line.azul {
  background: #0f4edb;
}

.frotas-page .frotas-resumo-line.roxo {
  background: #7c3aed;
}

.frotas-page .frotas-resumo-line.verde {
  background: #14b8a6;
}

.frotas-page .frotas-resumo-line.azul2 {
  background: #1d4ed8;
}

/* BUSCA */
.frotas-page .frotas-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.frotas-page .frotas-search-box {
  width: 320px;
  max-width: 100%;
  height: 44px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.frotas-page .frotas-search-box span {
  font-size: 14px;
  opacity: 0.7;
}

.frotas-page .frotas-search-box input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  height: 100%;
  color: #0f172a;
  font-size: 14px;
}

.frotas-page .frotas-search-box input::placeholder {
  color: #94a3b8;
}

/* RESPONSIVO */
@media (max-width: 1100px) {
  .frotas-page .frotas-resumo-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 650px) {
  .frotas-page .frotas-resumo-grid {
    grid-template-columns: 1fr;
  }

  .frotas-page .frotas-toolbar {
    justify-content: stretch;
  }

  .frotas-page .frotas-search-box {
    width: 100%;
  }
}



/* =========================================================
   🚚 FROTAS - AJUSTE FINAL PREMIUM
   Busca em cima + cards brancos padronizados
========================================================= */

.frotas-page {
  padding: 4px 2px 30px;
}

/* HEADER COM BUSCA */
.frotas-page .frotas-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.frotas-page .frotas-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.frotas-page .frotas-title-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f4edb, #00d4ff);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.frotas-page .titulo-pagina {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.frotas-page .frotas-subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

/* BUSCA NO TOPO */
.frotas-page .frotas-search-box {
  width: 320px;
  max-width: 100%;
  height: 44px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.frotas-page .frotas-search-box span {
  font-size: 14px;
  opacity: 0.7;
}

.frotas-page .frotas-search-box input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  height: 100%;
  color: #0f172a;
  font-size: 14px;
}

.frotas-page .frotas-search-box input::placeholder {
  color: #94a3b8;
}

/* CARDS DE RESUMO */
.frotas-page .frotas-resumo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.frotas-page .frotas-resumo-card {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  min-height: 120px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  position: relative;
  overflow: hidden;
}

.frotas-page .frotas-resumo-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 140px;
  height: 90px;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 50%;
}

.frotas-page .frotas-resumo-icon {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.frotas-page .frotas-resumo-icon.azul {
  background: linear-gradient(135deg, #0f4edb, #00d4ff);
}

.frotas-page .frotas-resumo-icon.roxo {
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
}

.frotas-page .frotas-resumo-icon.verde {
  background: linear-gradient(135deg, #047857, #14b8a6);
}

.frotas-page .frotas-resumo-icon.azul2 {
  background: linear-gradient(135deg, #1d4ed8, #6366f1);
}

.frotas-page .frotas-resumo-info {
  position: relative;
  z-index: 2;
}

.frotas-page .frotas-resumo-info span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 5px;
}

.frotas-page .frotas-resumo-info strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}

.frotas-page .frotas-resumo-info small {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.frotas-page .frotas-resumo-line {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  margin-top: 12px;
}

.frotas-page .frotas-resumo-line.azul {
  background: #0f4edb;
}

.frotas-page .frotas-resumo-line.roxo {
  background: #7c3aed;
}

.frotas-page .frotas-resumo-line.verde {
  background: #14b8a6;
}

.frotas-page .frotas-resumo-line.azul2 {
  background: #1d4ed8;
}

/* GRID DAS FROTAS */
.frotas-page .frotas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

/* CARD FROTA BRANCO PADRÃO RESUMO */
.frotas-page .frota-card {
  min-height: 138px;
 background-image: radial-gradient( circle farthest-corner at -24.7% -47.3%,  rgba(6,130,165,1) 0%, rgba(34,48,86,1) 66.8%, rgba(15,23,42,1) 100.2% );
  color: #ffffff;
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: 0.25s ease;
}

/* detalhe suave igual cards de cima */
.frotas-page .frota-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -44px;
  width: 140px;
  height: 90px;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.frotas-page .frota-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

/* ÍCONE */
.frotas-page .frota-card-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f4edb, #00d4ff);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.13);
  position: relative;
  z-index: 2;
}

/* CONTEÚDO */
.frotas-page .frota-card-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.frotas-page .frota-numero {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  color: #ffffff;
}

.frotas-page .frota-divider {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: #1d4ed8;
  margin-bottom: 8px;
}

.frotas-page .frota-info {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.frotas-page .frota-link-text {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: 0.2s ease;
}

.frotas-page .frota-card:hover .frota-link-text {
  transform: translateX(4px);
}

/* RESPONSIVO */
@media (max-width: 1100px) {
  .frotas-page .frotas-resumo-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .frotas-page .frotas-page-header {
    align-items: flex-start;
  }

  .frotas-page .frotas-search-box {
    width: 100%;
  }

  .frotas-page .frotas-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
  }

  .frotas-page .frota-card {
    min-height: 128px;
    padding: 15px;
  }

  .frotas-page .frota-card-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 22px;
  }

  .frotas-page .frota-numero {
    font-size: 24px;
  }
}

@media (max-width: 650px) {
  .frotas-page .frotas-resumo-grid {
    grid-template-columns: 1fr;
  }
}



/* =========================================================
   🚚 FROTAS - IMAGEM DO CAMINHÃO NOS ÍCONES
========================================================= */

.frotas-page .frotas-title-icon img,
.frotas-page .frotas-resumo-icon img,
.frotas-page .frota-card-icon img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
}

.frotas-page .frotas-title-icon,
.frotas-page .frotas-resumo-icon,
.frotas-page .frota-card-icon {
  overflow: hidden;
}

/* Ajuste especial do caminhão nos cards menores */
.frotas-page .frota-card-icon img {
  width: 90%;
  height: 90%;
}

/* Deixa o fundo branco para destacar o caminhão */
.frotas-page .frota-card-icon {
  background: #ffffff !important;
}

/* No card de resumo, mantém o círculo azul mas mostra a imagem limpa */
.frotas-page .frotas-resumo-icon.azul img {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Ícone grande do título */
.frotas-page .frotas-title-icon img {
  width: 95%;
  height: 95%;
}



/* =========================
   FOOTER FIXO DO SISTEMA
========================= */

.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  background: #f8fafc;
  border-top: 1px solid #dbe3ef;
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.08);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-footer-content {
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-footer-text {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* Dá espaço para o conteúdo não ficar escondido atrás do footer */
body {
  padding-bottom: 86px;
}

/* =========================
   SIDINHO DENTRO DO ESPAÇO DO FOOTER
========================= */

.sidinho-widget {
  right: 22px !important;
  bottom: 10px !important;
  z-index: 1200 !important;
}

.sidinho-bubble-alert {
  bottom: 18px !important;
  right: 82px !important;
}

.sidinho-chat-panel {
  bottom: 88px !important;
  right: 0 !important;
}



/* =========================================================
   🔧 AJUSTE FUNIL DE CAUSAS - BARRAS MAIS BONITAS
========================================================= */

.dashboard-page .funil-executivo-body {
  grid-template-columns: 1fr 260px !important;
  gap: 28px !important;
  padding: 26px 28px !important;
  align-items: flex-start;
}

.dashboard-page .funil-executivo-chart {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.dashboard-page .funil-executivo-row {
  display: grid !important;
  grid-template-columns: 150px minmax(220px, 1fr) 62px !important;
  align-items: center !important;
  gap: 12px !important;
}

.dashboard-page .funil-executivo-label {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #020024 !important;
  text-align: right !important;
  line-height: 1.15 !important;
}

.dashboard-page .funil-executivo-track {
  width: 100% !important;
  height: 34px !important;
  background: #eaf2ff !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  position: relative !important;
}

.dashboard-page .funil-executivo-bar {
  height: 100% !important;
  min-width: 42px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #020024, #090979, #00d4ff) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-right: 12px !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 16px rgba(9, 9, 121, 0.22) !important;
}

.dashboard-page .funil-executivo-bar strong {
  font-size: 15px !important;
  line-height: 1 !important;
}

.dashboard-page .funil-executivo-percent {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #020024 !important;
}

/* TABELA */
.dashboard-page .funil-executivo-table {
  width: 260px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid #dbe3ef !important;
}

.dashboard-page .funil-executivo-table table {
  width: 100% !important;
  font-size: 13px !important;
}

.dashboard-page .funil-executivo-table th,
.dashboard-page .funil-executivo-table td {
  padding: 12px !important;
}

/* RESPONSIVO */
@media (max-width: 1200px) {
  .dashboard-page .funil-executivo-body {
    grid-template-columns: 1fr !important;
  }

  .dashboard-page .funil-executivo-table {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .dashboard-page .funil-executivo-row {
    grid-template-columns: 110px minmax(140px, 1fr) 52px !important;
  }

  .dashboard-page .funil-executivo-label {
    font-size: 11px !important;
  }

  .dashboard-page .funil-executivo-track {
    height: 30px !important;
  }
}



/* =========================================================
   🔧 CORREÇÃO FINAL - FUNIL NÃO SOBREPOR A TABELA
========================================================= */

.dashboard-page .funil-executivo-card {
  overflow: hidden !important;
}

.dashboard-page .funil-executivo-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 260px !important;
  gap: 24px !important;
  padding: 26px !important;
  align-items: flex-start !important;
}

/* Área das barras */
.dashboard-page .funil-executivo-chart {
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

/* Cada linha do funil */
.dashboard-page .funil-executivo-row {
  display: grid !important;
  grid-template-columns: 140px minmax(120px, 1fr) 58px !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Texto da causa */
.dashboard-page .funil-executivo-label {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #020024 !important;
  text-align: right !important;
  line-height: 1.15 !important;
  word-break: normal !important;
}

/* Fundo da barra */
.dashboard-page .funil-executivo-track {
  width: 100% !important;
  height: 34px !important;
  background: #eaf2ff !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Barra preenchida */
.dashboard-page .funil-executivo-bar {
  height: 100% !important;
  min-width: 42px !important;
  max-width: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #020024, #090979, #00d4ff) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-right: 12px !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 16px rgba(9, 9, 121, 0.22) !important;
}

.dashboard-page .funil-executivo-bar strong {
  font-size: 15px !important;
  line-height: 1 !important;
}

.dashboard-page .funil-executivo-percent {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #020024 !important;
  white-space: nowrap !important;
}

/* Tabela */
.dashboard-page .funil-executivo-table {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid #dbe3ef !important;
  align-self: flex-start !important;
}

.dashboard-page .funil-executivo-table table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 13px !important;
}

.dashboard-page .funil-executivo-table th,
.dashboard-page .funil-executivo-table td {
  padding: 11px 12px !important;
  white-space: normal !important;
}

/* Quando o card ficar apertado, a tabela vai para baixo */
@media (max-width: 1500px) {
  .dashboard-page .funil-executivo-body {
    grid-template-columns: 1fr !important;
  }

  .dashboard-page .funil-executivo-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Ajuste mobile */
@media (max-width: 768px) {
  .dashboard-page .funil-executivo-body {
    padding: 18px !important;
  }

  .dashboard-page .funil-executivo-row {
    grid-template-columns: 105px minmax(90px, 1fr) 48px !important;
    gap: 8px !important;
  }

  .dashboard-page .funil-executivo-label {
    font-size: 11px !important;
  }

  .dashboard-page .funil-executivo-track {
    height: 30px !important;
  }

  .dashboard-page .funil-executivo-percent {
    font-size: 11px !important;
  }
}


/* =========================================================
   🔧 ÚLTIMAS FINALIZAÇÕES ABAIXO - MAIS BONITO
========================================================= */

.dashboard-page .ultimas-finalizacoes-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-page .ultima-finalizacao-item {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-page .ultima-finalizacao-info {
  flex: 1;
}

.dashboard-page .ultima-finalizacao-action {
  font-weight: 800;
  white-space: nowrap;
}


/* =========================================================
   💰 GESTÃO FINANCEIRA
========================================================= */

.gestao-page {
  padding-bottom: 30px;
}

.gestao-header {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.gestao-header h2 {
  margin: 0;
  font-weight: 900;
  color: #0f172a;
}

.gestao-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

.gestao-filtro {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 420px;
}

.gestao-filtro .form-control {
  height: 42px;
  border-radius: 10px;
}

.gestao-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}

.gestao-kpi {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  position: relative;
  overflow: hidden;
}

.gestao-kpi::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 120px;
  height: 90px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.08);
}

.gestao-kpi span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 900;
  margin-bottom: 8px;
}

.gestao-kpi strong {
  display: block;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  position: relative;
  z-index: 2;
}

.gestao-kpi.success strong {
  color: #059669;
}

.gestao-kpi.danger strong {
  color: #dc2626;
}

.gestao-card {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.gestao-card h5 {
  background: linear-gradient(135deg, #020024, #090979, #0052e0);
  color: #ffffff;
  padding: 14px 18px;
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.gestao-ranking-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.gestao-ranking-item span {
  font-weight: 700;
  color: #0f172a;
}

.gestao-ranking-item strong {
  white-space: nowrap;
  color: #0f172a;
}

.gestao-form {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

@media (max-width: 1100px) {
  .gestao-kpis {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 650px) {
  .gestao-kpis {
    grid-template-columns: 1fr;
  }

  .gestao-filtro {
    flex-direction: column;
    max-width: 100%;
  }

  .skew-item2{
  background color: blue;
  }
}



/* =========================================================
   💰 GESTÃO - FILTROS E TABELA DE LANÇAMENTOS
========================================================= */

.gestao-filtros-lancamentos {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: 90px 110px 150px 160px 1fr 100px 100px;
  gap: 10px;
  align-items: center;
}

.gestao-filtros-lancamentos .form-control,
.gestao-filtros-lancamentos .btn {
  height: 40px;
  border-radius: 10px;
}

.gestao-page .table th {
  white-space: nowrap;
  font-size: 13px;
}

.gestao-page .table td {
  font-size: 13px;
}

.gestao-page .table td:last-child,
.gestao-page .table th:last-child {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
}

@media (max-width: 1100px) {
  .gestao-filtros-lancamentos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .gestao-filtros-lancamentos {
    grid-template-columns: 1fr;
  }
}




/* =========================================================
   📥 GESTÃO - IMPORTAÇÕES FINANCEIRAS
========================================================= */

.importacoes-page .gestao-card {
  overflow: hidden;
}

.importacao-box {
  padding: 16px;
}

.importacao-form {
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 320px 220px;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.importacao-form strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  font-weight: 900;
}

.importacao-form small {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

.importacao-form .form-control,
.importacao-form .btn {
  height: 42px;
  border-radius: 10px;
}

.importacao-resumo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.importacao-resumo-card {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.importacao-resumo-card span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 900;
  margin-bottom: 4px;
}

.importacao-resumo-card strong {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.importacao-resumo-card.success strong {
  color: #059669;
}

.importacao-resumo-card.danger strong {
  color: #dc2626;
}

.importacao-resumo-card.warning strong {
  color: #b45309;
}

.importacao-table-wrap {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  overflow: auto;
  max-height: 520px;
}

.importacao-table-wrap table {
  min-width: 1500px;
}

.importacao-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 12px;
  white-space: nowrap;
}

.importacao-table-wrap td {
  font-size: 12px;
  white-space: nowrap;
}

.importacao-obs {
  max-width: 360px;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .importacao-form {
    grid-template-columns: 1fr;
  }

  .importacao-resumo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .importacao-resumo-grid {
    grid-template-columns: 1fr;
  }
}




/* =========================================================
   📥 IMPORTAÇÃO - FORM PREMIUM
========================================================= */

.importacao-form {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe7f5;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.5fr 150px 150px 320px 210px;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.importacao-form-info strong {
  display: block;
  font-size: 15px;
  color: #071a3d;
  font-weight: 900;
  margin-bottom: 4px;
}

.importacao-form-info small {
  display: block;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.importacao-field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 5px;
}

.importacao-field .form-control {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
}

.importacao-file input[type="file"] {
  padding: 8px;
  background: #ffffff;
}

.btn-importacao {
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #05055f 0%, #0057d9 55%, #12c7e8 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(0, 87, 217, 0.24);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-importacao:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 87, 217, 0.32);
  color: #ffffff;
}

@media (max-width: 1200px) {
  .importacao-form {
    grid-template-columns: 1fr 120px 120px;
  }

  .importacao-file,
  .btn-importacao {
    grid-column: span 3;
  }
}

@media (max-width: 700px) {
  .importacao-form {
    grid-template-columns: 1fr;
  }

  .importacao-file,
  .btn-importacao {
    grid-column: auto;
  }
}



/* =========================================================
   📱 MENU HAMBÚRGUER RESPONSIVO - EASY CONTROL
========================================================= */

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-size: 24px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  z-index: 1100;
}

.mobile-menu-toggle i {
  line-height: 1;
}

@media (max-width: 1100px) {
  .top-menu-skew {
    height: 64px;
    overflow: visible;
    padding: 0 14px;
  }

  .top-logo {
    width: auto;
    min-width: 110px;
  }

  .top-logo img {
    height: 62px;
    max-width: 108px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .top-user {
    width: auto;
    margin-left: 10px;
  }

  .user-img {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .top-links {
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    z-index: 1090;
  }

  .top-links.mobile-open {
    display: flex;
    animation: mobileMenuDown 0.22s ease;
  }

  .top-links .skew-item {
    width: 100%;
    min-width: 100%;
    height: 46px;
    margin-left: 0;
    padding: 0 14px;
    transform: none;
    border-radius: 12px;
    justify-content: flex-start;
    box-shadow: none;
    font-size: 14px;
    background: linear-gradient(135deg, #f8fbff, #eaf2ff);
    color: var(--primary);
    border: 1px solid #dbeafe;
  }

  .top-links .skew-item span {
    transform: none;
  }

  .top-links .skew-item:hover {
    filter: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    transform: translateX(3px);
  }

  .top-links .skew-item.sair {
    min-width: 100%;
    background: linear-gradient(135deg, #ff5f69, #c82333);
    color: #ffffff;
    border: none;
    margin-left: 0;
    justify-content: center;
  }

  .content-top {
    padding: 16px !important;
  }
}

@media (max-width: 480px) {
  .top-menu-skew {
    padding: 0 10px;
  }

  .top-logo img {
    height: 56px;
    max-width: 96px;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 22px;
    border-radius: 10px;
  }

  .top-user {
    margin-left: 8px;
  }

  .user-img {
    width: 34px;
    height: 34px;
  }

  .top-links {
    left: 8px;
    right: 8px;
    border-radius: 14px;
  }

  .top-links .skew-item {
    height: 44px;
    font-size: 13px;
  }
}

@keyframes mobileMenuDown {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}