:root {
  --bg: #0b1220;
  --card: #0f172a;
  --ink: #e5e7eb;
  --muted: rgba(229, 231, 235, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  --accent: #5c2d91;
  --footer-h: 44px; /* Altura do footer */
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Layout para empurrar o footer pro fim da tela */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page main {
  flex: 1;
}

.container{
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
  padding: 28px 0 48px;
}


.site-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
  display: flex;
}

/* Topbar adjustments for dashboard */
.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__right .muted {
  color: rgba(255, 255, 255, 0.85); /* Mantenha a cor branca */
  font-size: 13px;
}

/* Carousel */
.carousel-section {
  margin-bottom: 28px;
  position: relative;
  max-width: 1200px; /* Alinha com o container principal */
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px; /* Para alinhar com o container */
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-color: #fff; /* Fallback */
}

.carousel-item {
  display: none;
  width: 100%;
  position: relative;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Garante que a imagem cubra a área */
  max-height: 400px; /* Limita a altura do carousel */
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: white; /* Mantém o texto branco */
  padding: 1.5rem;
  text-align: left;
}

.carousel-caption h3 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.carousel-caption p {
  margin: 0 0 1rem;
  font-size: 1rem;
  opacity: 0.9;
}

.carousel-caption .link {
  background: var(--accent);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s;
}

.carousel-caption .link:hover {
  background: #99b32f; /* Slightly darker accent */
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 1;
  border-radius: 50%;
  transition: background 0.2s;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Ajusta automaticamente as colunas */
  gap: 20px;
  margin-bottom: 28px;
}

/* KPI Cards */
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
}

.kpi-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 5px;
}

.kpi-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}

.kpi-trend {
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  margin-top: 5px;
}

.kpi-trend.positive {
  background-color: rgba(22, 163, 74, 0.1); /* var(--ok) */
  color: #166534;
}

.kpi-trend.negative {
  background-color: rgba(220, 38, 38, 0.1); /* var(--err) */
  color: #991b1b;
}

.kpi-detail {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, .05);
  padding-top: 8px;
}

/* Chart Cards */
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px; /* Altura mínima para os gráficos */
}

.chart-title {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 15px;
  font-weight: 600;
}

/* Data Table Card */
.data-table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  grid-column: 1 / -1; /* Ocupa todas as colunas disponíveis */
}

.table-title {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 15px;
  font-weight: 600;
}

/* Reutilizando estilos de tabela do users.css */
.data-table-card .table-wrap {
  border: none; /* Remove a borda extra se o card já tem */
  background: transparent;
  box-shadow: none;
}

/* Seções Expansíveis (Exemplo) */
.expandable-section .card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px 20px;
}
.expandable-section .card:last-child {
  margin-bottom: 0;
}
.expandable-section .card__title {
  margin-bottom: 5px;
}
.expandable-section .card__subtitle {
  margin-top: 0;
}
.btn--small {
  padding: 6px 12px;
  font-size: 0.85rem;
  height: auto;
}

/* Responsividade */
@media (min-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 colunas em telas maiores */
  }
  .grid-col-span-2 {
    grid-column: span 2;
  }
  .grid-col-span-3 {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .carousel-caption h3 {
    font-size: 1.4rem;
  }
  .carousel-caption p {
    font-size: 0.9rem;
  }
  .carousel-caption .link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .kpi-value {
    font-size: 1.8rem;
  }
  .chart-card, .data-table-card {
    min-height: auto; /* Deixa a altura ser definida pelo conteúdo */
  }
  .dashboard-grid {
    grid-template-columns: 1fr; /* Uma coluna em telas pequenas */
  }
  .grid-col-span-2, .grid-col-span-3 {
    grid-column: auto;
  }
  .topbar {
    flex-direction: column;
    gap: 10px;
    padding: 1rem;
  }
  .topbar__left, .topbar__right {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .topbar__left {
    flex-direction: row;
    align-items: center;
  }
  .topbar__right {
    flex-wrap: wrap;
  }
}

/* ===== Dropdown Administração ===== */
.topbar__dropdown {
  position: relative;
  display: inline-block;
}

.topbar__dropdown-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  color: rgba(15, 23, 42, .85);
  text-decoration: none;
  transition: .15s ease;
}

.topbar__dropdown-trigger:hover {
  background: rgba(15, 23, 42, .06);
}

.topbar__dropdown-trigger::after {
  content: "▼";
  font-size: 10px;
  margin-top: 2px;
  transition: .2s ease;
}

.topbar__dropdown-trigger.is-open::after {
  transform: rotate(180deg);
}

.topbar__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .15);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: .2s ease;
  z-index: 100;
}

.topbar__dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.topbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(15, 23, 42, .85);
  text-decoration: none;
  transition: .15s ease;
}

.topbar__dropdown-item:hover {
  background: rgba(92, 44, 140, .08);
  color: rgba(92, 44, 140, 1);
}

.topbar__dropdown-icon {
  font-size: 16px;
  line-height: 1;
}

.topbar__dropdown-label {
  font-weight: 600;
  font-size: 14px;
}

.topbar__dropdown-divider {
  height: 1px;
  background: rgba(15, 23, 42, .08);
  margin: 8px 0;
}

.topbar__dropdown-header {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(15, 23, 42, .5);
}

/* Estilo unificado para tabelas */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  white-space: nowrap;
}

.table thead th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
  background-color: rgba(15, 23, 42, 0.02);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background-color: rgba(92, 44, 140, 0.04);
}

.table .right {
  text-align: right;
}

/* Brand link */
.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.brand:hover {
  text-decoration: underline;
}

/* ===== Títulos/links em áreas claras: força preto (não herdar branco do header) ===== */
.kpi-card, .kpi-card *,
.chart-card, .chart-card *,
.data-table-card, .data-table-card *,
.card, .card *,
main, main * {
  color: rgba(15, 23, 42, .92);
}

/* ===== Títulos em páginas/cards: preto ===== */
h1, h2, h3,
.card__title, .card__subtitle,
.section-title, .page-title {
  color: rgba(15, 23, 42, .92) !important;
}

/* ===== Remove a linha/divisão no topo entre header e conteúdo ===== */
.topbar {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Caso a linha esteja no header tag */
header.topbar {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Se a linha estiver no container logo abaixo do header */
main,
.main,
.content,
.page,
.carousel {
  box-shadow: none !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
}

/* ===== Carousel sem “linha”: mesma cor do fundo da página ===== */
.carousel {
  background: #f6f7fb !important; /* mesma cor do body */
  box-shadow: none !important;
  border: none !important;
}

/* ===== Tabs em fundo claro: texto preto ===== */
.tabs .tab,
.tabs .tab:link,
.tabs .tab:visited {
  color: rgba(15, 23, 42, .92) !important;
}

/* fundo claro para combinar com a página off-white */
.tabs .tab {
  background: rgba(15, 23, 42, .04) !important;
  border: 1px solid rgba(15, 23, 42, .10) !important;
}

.tabs .tab:hover {
  background: rgba(15, 23, 42, .07) !important;
}

.tabs .tab.is-active {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, .14) !important;
  color: rgba(15, 23, 42, .92) !important;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px; /* Ajustado para um padding mais clean */
  border: none;
  border-radius: 8px; /* Bordas mais suaves */
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: #fff; /* Cor do texto */
  background: var(--primary); /* Cor principal */
  transition: background 0.3s ease, transform 0.2s ease; /* Efeito suave */
  cursor: pointer;
}

/* Hover do botão */
.btn:hover {
  background: #4a2370; /* Cor ao passar o mouse */
  transform: translateY(-2px); /* Levanta o botão levemente */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra leve ao hover */
}

/* Estado ativo (clique) */
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Variante primária (se você usa btn--primary) */
.btn--primary {
  background: rgba(92, 44, 140, 1) !important;
  color: #fff !important;
  border-color: rgba(92, 44, 140, 1) !important;
}
.btn--primary:hover {
  background: rgba(74, 35, 112, 1) !important;
  border-color: rgba(74, 35, 112, 1) !important;
}

/* =========================
   GLOBAL (tirado do antigo dashboard.css)
   Mantém: fundo claro + conteúdo escuro + header roxo
   ========================= */

/* Fundo geral (off-white) para destacar os cards */
html, body{
  background: #f6f7fb;
}

/* Mantém wrappers transparentes */
.page,
.main,
.content,
.dashboard,

/* Topbar roxo */
.topbar{
  background: rgba(92, 44, 140, 1);
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Header: textos brancos */
.topbar,
.topbar *{
  color: #f5f5f7 !important;
}

.topbar a,
.topbar a:link,
.topbar a:visited{
  color: #f5f5f7 !important;
}
.topbar a:hover{
  color:#ffffff !important;
}

/* Dropdown: texto escuro (não herdar branco do header) */
.topbar__dropdown-menu,
.topbar__dropdown-menu *{
  color: rgba(15,23,42,.92) !important;
}

/* Tipografia do header (padroniza tamanho/peso) */
.topbar__left a,
.topbar__left .topbar__dropdown-trigger{
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: .2px !important;
}

.topbar__left .brand{
  font-size: 15px !important;
  font-weight: 600 !important;
}

/* Conteúdo principal: texto escuro */
main, main *{
  color: rgba(15,23,42,.92);
}

/* Títulos: escuro */
h1, h2, h3,
.card__title, .card__subtitle,
.section-title, .page-title{
  color: rgba(15,23,42,.92) !important;
}

/* Cards padrão */
.card,
.kpi-card,
.chart-card,
.data-table-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  box-shadow: none;
}

/* Tabelas (unificado) */
.table-wrap{overflow-x:auto;}
.table{width:100%;border-collapse:collapse;font-size:14px;}
.table th,.table td{padding:12px 16px;text-align:left;border-bottom:1px solid rgba(15,23,42,.10);white-space:nowrap;}
.table thead th{font-weight:700;text-transform:uppercase;font-size:12px;color:rgba(15,23,42,.55);letter-spacing:.5px;background:rgba(15,23,42,.02);}
.table tbody tr:last-child td{border-bottom:none;}
.table tbody tr:hover{background:rgba(92,44,140,.04);}
.table .right{text-align:right;}

/* Tabs em fundo claro */
.tabs .tab,
.tabs .tab:link,
.tabs .tab:visited{
  color: rgba(15,23,42,.92) !important;
}
.tabs .tab{
  background: rgba(15,23,42,.04) !important;
  border: 1px solid rgba(15,23,42,.10) !important;
}
.tabs .tab:hover{background: rgba(15,23,42,.07) !important;}
.tabs .tab.is-active{
  background:#fff !important;
  border-color: rgba(15,23,42,.14) !important;
  color: rgba(15,23,42,.92) !important;
}

/* Botões padrão */
.btn,
button.btn,
a.btn{
  background: rgba(92,44,140,1);
  color:#fff;
  border:1px solid rgba(92,44,140,1);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:10px;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  cursor:pointer;
}
.btn:hover,
button.btn:hover,
a.btn:hover{
  background: rgba(74,35,112,1);
  border-color: rgba(74,35,112,1);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15,23,42,.12);
}
.btn:active,
button.btn:active,
a.btn:active{
  transform: translateY(0);
  box-shadow:none;
}
.btn--primary{
  background: rgba(92,44,140,1) !important;
  color:#fff !important;
  border-color: rgba(92,44,140,1) !important;
}

/* Alertas com texto legível */
.alert{color:#fff !important;}
.alert *{color:#fff !important;}
.alert--ok{color:#fff !important;}
.alert--error{color:#fff !important;}

:root{
  --brand-purple: #5c2c84;  
  --footer-h: 44px;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #5c2c84 !important; /* roxo garantido */
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f5f7 !important;
  font-size: 12px;
  z-index: 9999;
  padding-top: 16px; /* Adiciona espaço acima do footer */
  padding-bottom: 16px; /* Adiciona espaço abaixo do footer */
}

/* Reserva espaço pro footer não cobrir conteúdo */
body.page{
  padding-bottom: var(--footer-h);
}
/* =========================
   ESTILOS GLOBAIS DO USERS.CSS (movidos para base.css)
   ========================= */

@font-face{
  font-family: Poppins;
  src: url('../fonts/poppins/Poppins-Regular.ttf');
  font-weight: 400;
  font-style: normal;
}
@font-face{
  font-family: Poppins;
  src: url('../fonts/poppins/Poppins-Bold.ttf');
  font-weight: 700;
  font-style: normal;
}

:root{
  --bg1: #c850c0;
  --bg2: #4158d0;
  --ink: #0b1020;
  --muted: #64748b;
  --card: rgba(255,255,255,.92);
  --border: rgba(15,23,42,.10);
  --shadow: 0 18px 45px rgba(2,6,23,.12);
  --primary1: #5c2c8c;
  --primary2: #2c2c7c;
  --accent: #accc36;
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 14px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(-135deg, var(--bg1), var(--bg2));
}


/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.topbar__left{
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand{
  font-weight: 700;
  color: #fff;
  letter-spacing: .2px;
}

.muted{
  color: rgba(255,255,255,.85);
  font-size: 13px;
}

/* Links */
.link{
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .2s, transform .08s;
}
.link:hover{ background: rgba(255,255,255,.18); }
.link:active{ transform: translateY(1px); }

.link--pill{
  color: var(--primary1);
  background: rgba(92,44,140,.10);
  border: 1px solid rgba(92,44,140,.25);
}
.link--pill:hover{
  background: rgba(92,44,140,.14);
}

/* Page title */
.page-title{
  margin: 18px 0 16px;
  color: #fff;
  font-size: 26px;
  letter-spacing: .2px;
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card--mt{ margin-top: 18px; }

.card__header{ margin-bottom: 12px; }
.card__title{
  margin: 0;
  font-size: 18px;
  color: #111827;
}
.card__subtitle{
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Alerts */
.alert{
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  border: 1px solid transparent;
}

.alert--ok{
  background: rgba(22,163,74,.10);
  border-color: rgba(22,163,74,.25);
  color: #166534;
}

.alert--error{
  background: rgba(220,38,38,.10);
  border-color: rgba(220,38,38,.25);
  color: #991b1b;
}

/* Botões */
.btn{
  height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .3px;
  transition: filter .2s, transform .08s;
}

.btn--primary{
  grid-column: 1 / -1;
  color: #fff;
  background: linear-gradient(90deg, var(--primary1), var(--primary2), var(--accent));
  box-shadow: 0 14px 30px rgba(2,6,23,.18);
}

.btn:hover{ filter: brightness(1.03); }
.btn:active{ transform: translateY(1px); }

/* Table */
.table-wrap{
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
}

.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.table thead th{
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .55px;
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15,23,42,.10);
}

.table tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  color: #111827;
  font-size: 14px;
  white-space: nowrap;
}

.table tbody tr:hover{
  background: rgba(92,44,140,.06);
}

/* Badges */
.badge{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
}

.badge--ok{
  color: #166534;
  background: rgba(22,163,74,.10);
  border-color: rgba(22,163,74,.25);
}

.badge--no{
  color: #991b1b;
  background: rgba(220,38,38,.10);
  border-color: rgba(220,38,38,.25);
}

.badge--admin{
  color: #1d4ed8;
  background: rgba(29,78,216,.10);
  border-color: rgba(29,78,216,.25);
}

.badge--user{
  color: #334155;
  background: rgba(51,65,85,.10);
  border-color: rgba(51,65,85,.20);
}

/* Responsivo */
@media (max-width: 900px){
  .table{ min-width: 880px; }
  .page-title{ font-size: 22px; }
}
/* =========================
   FIX setas do dropdown do header
   (não depender de caractere/fonte)
   ========================= */

.topbar__dropdown-trigger::after{
  content: "" !important;
  display: inline-block !important;
  width: 10px !important;
  height: 10px !important;
  margin-left: 6px !important;

  background: no-repeat center/10px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='white' d='M5.25 7.5 10 12.25 14.75 7.5l1.25 1.25L10 14.75 4 8.75z'/%3E%3C/svg%3E") !important;

  transform: translateY(1px) rotate(0deg) !important;
  transition: transform .2s ease !important;
}

/* quando abre, gira */
.topbar__dropdown-trigger.is-open::after{
  transform: translateY(1px) rotate(180deg) !important;
}


/* =========================
   Upload de arquivo (global) — padrão igual admin-users
   ========================= */

.file-input{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}

.file-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  height:44px;
  padding:0 14px;

  border-radius:12px;
  border:1px solid rgba(92,44,132,.35);
  background: rgba(92,44,132,.10);

  color:#5c2c84;
  font-weight:800;
  cursor:pointer;
  user-select:none;

  transition: background .15s ease, transform .08s ease, box-shadow .15s ease;
}

.file-btn:hover{
  background: rgba(92,44,132,.14);
  box-shadow: 0 10px 18px rgba(92,44,132,.12);
}

.file-btn:active{
  transform: translateY(1px);
}

.file-btn:focus-visible{
  outline: 3px solid rgba(92,44,132,.18);
  outline-offset: 3px;
}

.file-meta{display:flex;flex-direction:column;gap:2px;margin-top:8px}
.file-name{font-size:.92rem;color:rgba(17,24,39,.75);max-width:560px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-hint{font-size:.82rem;color:rgba(17,24,39,.55)}

.file-preview{
  margin-top:10px;
  width:88px;
  height:88px;
  border-radius:14px;
  border:1px solid rgba(92,44,132,.18);
  background: rgba(92,44,132,.06);
  overflow:hidden;
  display:none;
}
.file-preview.is-on{display:block}
.file-preview img{width:100%;height:100%;object-fit:cover;display:block}

.file-field__row--with-preview{align-items:flex-start}

/* bloco da esquerda (botão + textos) */
.file-field__controls{display:flex;flex-direction:column;gap:8px}

/* preview ao lado */
.file-preview--side{
  margin-top:0;      /* remove o espaçamento de “embaixo” */
  flex:0 0 auto;
}

/* opcional: aumentar um pouco o preview pra ficar mais “card” */
.file-preview--side{
  width:96px;
  height:96px;
}

.modal-backdrop{
  position:fixed; inset:0;
  background: rgba(15, 10, 25, .55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}
.modal-backdrop.is-on{display:flex}

.modal{
  width:min(520px, 100%);
  background:#fff;
  border-radius:16px;
  border:1px solid rgba(92,44,132,.18);
  box-shadow: 0 18px 55px rgba(0,0,0,.25);
  overflow:hidden;
}

.modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  background: rgba(92,44,132,.06);
}
.modal__title{margin:0;font-size:16px;font-weight:700;color:#2b1b3a}
.modal__close{
  border:0;background:transparent;
  font-size:22px;line-height:1;
  cursor:pointer;color:#5c2c84;
}

.modal__body{padding:14px 16px}
.modal__text{margin:0;color:#3b2b4a}

.modal__actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  padding:14px 16px;
  border-top:1px solid rgba(92,44,132,.12);
}
/* ===== ALERTS GLOBAIS ===== */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 1px;
}

/* ✅ ALERT OK (sucesso) */
.alert--ok {
  background: rgba(92, 44, 140, 0.08); /* roxo bem suave */
  border-color: rgba(92, 44, 140, 0.35);
  color: rgba(15, 23, 42, 0.92); /* texto escuro */
}

.alert--ok::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235c2c8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ❌ ALERT ERROR (erro) */
.alert--error {
  background: rgba(220, 38, 38, 0.08); /* vermelho suave */
  border-color: rgba(220, 38, 38, 0.35);
  color: rgba(15, 23, 42, 0.92);
}

.alert--error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
}

/* ⚠️ ALERT WARNING (aviso) */
.alert--warning {
  background: rgba(245, 158, 11, 0.08); /* laranja suave */
  border-color: rgba(245, 158, 11, 0.35);
  color: rgba(15, 23, 42, 0.92);
}

.alert--warning::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
}

/* ℹ️ ALERT INFO (informação) */
.alert--info {
  background: rgba(59, 130, 246, 0.08); /* azul suave */
  border-color: rgba(59, 130, 246, 0.35);
  color: rgba(15, 23, 42, 0.92);
}

.alert--info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
}

/* Conteúdo do alert */
.alert__content {
  flex: 1;
}

/* Título do alert (opcional) */
.alert__title {
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}

/* Botão de fechar (opcional) */
.alert__close {
  background: transparent;
  border: 0;
  padding: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert__close:hover {
  opacity: 1;
}

.alert__close::before {
  content: '×';
  font-size: 20px;
  line-height: 1;
  display: block;
  text-align: center;
}

/* Responsivo */

@media (max-width: 768px) {
  .alert {
    padding: 10px 14px;
    font-size: 13px;
  }
}
/* Alerts sem classe específica (fallback) */
.alert:not([class*="alert--"]) {
  background: rgba(92, 44, 140, 0.08);
  border-color: rgba(92, 44, 140, 0.35);
  color: rgba(15, 23, 42, 0.92);
}

.alert:not([class*="alert--"])::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235c2c8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E");
}

/* ===== ALERT GLOBAL (FORÇA PADRÃO) ===== */
.alert{
  padding:12px 16px;
  border-radius:12px;
  border:1px solid rgba(92,44,140,.35);
  margin:14px 0;
  line-height:1.4;
}

/* SUCESSO */
.alert.alert--ok{
  background: rgba(92,44,140,.10) !important;  /* fundo roxo translúcido */
  border-color: rgba(92,44,140,.45) !important; /* borda roxa */
  color: rgba(15,23,42,.92) !important;         /* texto escuro */
}

/* ERRO */
.alert.alert--error{
  background: rgba(239,68,68,.10) !important;
  border-color: rgba(239,68,68,.45) !important;
  color: rgba(15,23,42,.92) !important;
}

.site-footer-modern--center {
  display: flex;
  flex-direction: column;
  align-items: center;   /* Centraliza horizontalmente */
  justify-content: center; /* Centraliza verticalmente */
  text-align: center;    /* Centraliza texto */
  padding: 14px 16px;
  margin-top: 18px;

  background: rgba(11, 18, 32, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(229, 231, 235, 0.78);
  font-size: 12.5px;
  line-height: 1.5;
  z-index: 9999;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-footer-modern__line {
  margin: 0;
}

.site-footer-modern__line + .site-footer-modern__line {
  margin-top: 6px;
}

/* Link do dev: underline animado */
.site-footer-modern__dev {
  position: relative;
  display: inline-block;

  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  text-decoration: none;

  padding: 0 2px;
  transition: color 0.18s ease, transform 0.18s ease, text-shadow 0.18s ease;
}

.site-footer-modern__dev::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;

  width: 100%;
  height: 2px;

  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  border-radius: 999px;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  opacity: .95;
}

.site-footer-modern__dev:hover {
  color: #ffffff;
  transform: translateY(-1px);
  text-shadow: 0 6px 18px rgba(99, 102, 241, 0.25);
}

.site-footer-modern__dev:hover::after {
  transform: scaleX(1);
}

/* Acessibilidade: foco no teclado */
.site-footer-modern__dev:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.65);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ===== FIX FINAL: FOOTER ROXO CENTRALIZADO (override) ===== */
:root{
  --footer-h: 56px; /* 2 linhas sem “cortar” */
}

/* evita o footer cobrir o conteúdo (use body OU body.page, não os dois) */
body{
  padding-bottom: var(--footer-h);
}

/* footer */
.site-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-h);

  display: flex;
  align-items: center;
  justify-content: center;

  background: #5c2c84 !important; /* roxo garantido */
  border-top: 1px solid rgba(255,255,255,.18);

  color: #f5f5f7 !important;
  font-size: 12px;
  z-index: 9999;

  /* remove qualquer “faixa”/sombra que venha de outro trecho */
  margin: 0 !important;
  box-shadow: none !important;
}

/* conteúdo centralizado em 2 linhas */


/* link do nome com hover moderno */
.site-footer__inner a{
  color: #ffffff !important;
  font-weight: 800;
  text-decoration: none;
  position: relative;
}

.site-footer__inner a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:100%;
  height:2px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
  opacity:.95;
}

.site-footer__inner a:hover{
  text-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.site-footer__inner a:hover::after{
  transform: scaleX(1);
}

  .avatar-lg{
    width:80px;
    height:80px;
    border-radius:8px; /* quadrado com bordas suaves */
    object-fit:cover;
    border:1px solid rgba(15,23,42,.12);
    background:#fff;
  }
  .avatar-lg--emoji{
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    background:rgba(255,255,255,.75);
    border:1px solid rgba(15,23,42,.12);
    color:rgba(15,23,42,.55);
  }
  .photo-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
  .help-row{margin-top:8px;}
/* deixa mais alto e dá mais área pro canvas */
.chart-box{
  height: 320px; /* tente 320/360 */
}

/* garante que o canvas use 100% do box */
.chart-box canvas{
  width: 100% !important;
  height: 100% !important;
}
body {
  padding-bottom: var(--footer-h); /* Garante que o conteúdo não fique atrás do footer */
}
.reward-card {
  display: flex;
  flex-direction: column;
  min-height: 420px; /* Define altura mínima fixa para todos os cards */
  justify-content: space-between; /* Distribui espaço entre elementos */
}

.reward-body {
  flex: 1; /* Faz o corpo ocupar o espaço disponível */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reward-hint {
  margin-top: auto; /* Empurra o hint para o final do card */
  padding-top: 12px; /* Espaço extra acima do hint para compensar */
  font-size: 12px;
  color: #dc2626; /* Vermelho para avisos */
}

/* FIX FUNDO: força o fundo claro (override final) */
html, body{
  background: #f6f7fb !important;
  background-image: none !important;
}

/* ===== FIX: carrossel sempre cabe na viewport (notebook) ===== */
.carousel__viewport{
  /* altura disponível = viewport - header aproximado - footer - folga */
  height: calc(100svh - var(--footer-h) - 86px);
}

/* limita para não ficar gigante em telas altas */
@media (min-width: 1100px){
  .carousel__viewport{
    max-height: 720px;
  }
}
@media (max-width: 1366px) and (max-height: 768px){
  .slide--insight .insight{
    display: grid !important;
    grid-template-columns: 1.7fr 0.9fr !important; /* direita maior p/ gráficos */
    grid-template-areas:
      "top charts"
      "headline charts"
      "sub charts"
      "grid charts" !important;
    column-gap: 14px !important;
    align-items: start !important;
    overflow: hidden !important;
  }

  .slide--insight .insight__top{ grid-area: top !important; }
  .slide--insight .insight__headline{ grid-area: headline !important; }
  .slide--insight .insight__sub{ grid-area: sub !important; }
  .slide--insight .insight__grid{ grid-area: grid !important; }
  .slide--insight .insight__charts{ grid-area: charts !important; }

  /* Cards: 3 colunas (usa largura e evita ficar pequeno) */
  .slide--insight .insight__grid{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  /* Gráficos: ajusta para caber bonito na coluna direita */
  .slide--insight .insight__charts{
    margin-top: 0 !important;
    gap: 10px !important;
    align-self: start !important;
  }

  .slide--insight .chartSvg{ height: 76px !important; }
  .slide--insight .chartSvg[viewBox="0 0 100 52"]{ height: 92px !important; }

  /* Tipografia: mantém legível sem estourar altura */
  .slide--insight .insight__headline{ font-size: 17px !important; line-height: 1.18 !important; }
  .slide--insight .insight__sub{ font-size: 11px !important; line-height: 1.18 !important; }

  .slide--insight .insight__value{ font-size: 13.5px !important; }
  .slide--insight .insight__label{ font-size: 10.5px !important; }
  .slide--insight .insight__hint{ font-size: 10px !important; }
    /* garante que a coluna de gráficos seja uma coluna (vertical) */
  .slide--insight .insight__charts{
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: min-content !important;
    gap: 10px !important;
  }

  /* ordem explícita: 1º Progresso, 2º Ritmo */
  .slide--insight .insight__charts .chartCard:nth-child(1){ order: 1 !important; }
  .slide--insight .insight__charts .chartCard:nth-child(2){ order: 2 !important; }

  /* se por algum motivo vier invertido, isso mantém a intenção */
  .slide--insight .insight__charts .chartCard{ width: 100% !important; }
   /* dá mais “presença” pros cards de gráfico */
  .slide--insight .insight__charts .chartCard{
    padding: 10px 10px !important; /* antes ~7/8 */
  }

  .slide--insight .insight__charts .chartCard__title{
    font-size: 12px !important;    /* antes ~11 */
    margin-bottom: 6px !important;
  }

  /* aumenta os SVGs (os dois gráficos) */
  .slide--insight .insight__charts .chartSvg{
    height: 88px !important;       /* antes ~76 */
  }

  /* o gráfico do ritmo é o viewBox 0 0 100 52 (mais alto) */
  .slide--insight .insight__charts .chartSvg[viewBox="0 0 100 52"]{
    height: 104px !important;      /* antes ~92 */
  }

  /* legendas um pouco maiores */
  .slide--insight .insight__charts .chartLegend{
    font-size: 11px !important;    /* antes ~10 */
    margin-top: 6px !important;
  }
}

/* Footer mais baixo */
footer, .footer{
  padding: 8px 16px !important; /* diminui “altura” sem mexer na fonte */
  min-height: 44px !important;
}

/* Se existir altura fixa, derruba */
footer, .footer{
  height: auto !important;
}

/* Atualiza a variável usada nos seus cálculos */
:root{
  --footer-h: 44px;
}

.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.footer__right{
  margin-left:auto;
  font-size: 12px;
  font-weight: 700;
  opacity: .85;
  white-space: nowrap;
}
/* Layout: footer sempre no fim da página */
html, body{
  height: 100%;
}

body.page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* faz o conteúdo ocupar o espaço e empurrar o footer para baixo */
body.page > main{
  flex: 1;
}

/* Tira a faixa branca entre header e carousel */
body.page > main{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Se você estiver usando .container com padding-top (28px), zera só no topo */
body.page > main.container,
body.page > main .container{
  padding-top: 0 !important;
}

/* Remove o espaço padrão do carousel (você tem margin: 24px 0 em .carousel) */
#mainCarousel.carousel{
  margin-top: 0 !important;
}

/* Se existir alguma section wrapper dando margem */
.carousel-section{
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* =========================
   Botão Forçar TOTVS
   ========================= */

#btnForceTotvs{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  height: 38px;
  padding: 0 16px;

  border-radius: 10px;
  border: 1px solid rgba(92,44,140,.35);

  background: linear-gradient(
    180deg,
    rgba(92,44,140,.08),
    rgba(92,44,140,.02)
  );

  color: var(--primary1);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;

  cursor: pointer;
  transition: all .18s ease;

  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* hover */
#btnForceTotvs:hover{
  background: linear-gradient(
    180deg,
    rgba(92,44,140,.14),
    rgba(92,44,140,.05)
  );

  border-color: var(--primary1);

  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(92,44,140,.18);
}

/* click */
#btnForceTotvs:active{
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

/* loading state */
#btnForceTotvs.is-loading{
  pointer-events: none;
  opacity: .7;
}

/* spinner */
#btnForceTotvs.is-loading::after{
  content:'';
  width:14px;
  height:14px;

  border-radius:50%;
  border:2px solid rgba(92,44,140,.25);
  border-top-color: var(--primary1);

  animation: totvsSpin .7s linear infinite;
}

@keyframes totvsSpin{
  to{ transform: rotate(360deg); }
}

/* =====================================================
   DASHBOARD EXECUTIVO — remove fundo azul global
   ===================================================== */

body.dashboard-exec{
  background: #f6f7fb !important;
  background-image: none !important;
}

/* garante que containers não herdem fundo escuro */
.dashboard-exec main,
.dashboard-exec .container,
.dashboard-exec .dashboard-grid{
  background: transparent !important;
}

/* cards padrão igual contas a pagar */
.dashboard-exec .card,
.dashboard-exec .kpi-card,
.dashboard-exec .chart-card,
.dashboard-exec .data-table-card{
  background: #ffffff !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: none !important;
}
/* ===== TOP LIST (scroll) ===== */
.top-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.top-sub{
  font-size:12px;
  opacity:.7;
  margin-top:-6px;
}

.top-badge{
  font-size:12px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(59,130,246,.10);
  border: 1px solid rgba(59,130,246,.20);
}

.top-list{
  max-height: 420px;       /* <<< scroll aparece aqui */
  overflow-y: auto;
  padding-right: 8px;
}

/* item estilo “contas a pagar” */
.top-item{
  display:grid;
  grid-template-columns: 34px 1fr auto;
  gap:12px;
  padding:12px 6px;
  border-top:1px solid rgba(15,23,42,.06);
}

.top-item:first-child{ border-top:0; }

.top-rank{
  width:26px;height:26px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:12px;
  background: rgba(245,158,11,.18);
}

.top-main{ min-width:0; }
.top-name{
  font-weight:800;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.top-subline{
  font-size:12px;
  opacity:.75;
  margin-top:3px;
}

.top-bar{
  height:6px;
  border-radius:999px;
  background: rgba(15,23,42,.10);
  overflow:hidden;
  margin-top:8px;
}
.top-bar i{
  display:block;
  height:100%;
  width:0%;
  border-radius:999px;
  background: #1d4ed8;
}

.top-val{
  font-weight:900;
  color:#1d4ed8;
  font-size:13px;
  white-space:nowrap;
}

/* destaca TOP 10 (sem cortar o resto) */
.top-item.is-top .top-name{ font-size:13.5px; }
.top-item.is-top .top-rank{ background: rgba(59,130,246,.18); }

