/* Ajustes finos que o tema do Dash Mantine não cobre.
   O Dash carrega tudo que estiver em app/assets/ automaticamente. */

/* ── Botão de exportar do DataTable ──────────────────────────────────────────
   Vem cru ("Export", cinza, quadrado). Aqui vira uma pílula verde da marca,
   com ícone de download e o rótulo "Exportar Excel", com folga em volta para
   não colar na borda nem no scroll da tabela. */
.dash-spreadsheet-menu {
  display: flex;
  justify-content: flex-end;
  margin: 2px 2px 12px;
  padding-right: 2px;
}

.dash-spreadsheet-menu .export,
button.export {
  font-size: 0 !important;            /* esconde o texto "Export" original */
  line-height: 0;
  background: linear-gradient(135deg, #248072 0%, #1f6e60 60%, #17564b 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 9px 18px !important;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(18, 42, 37, .18),
              0 6px 16px rgba(31, 110, 96, .22);
  transition: box-shadow .18s ease, transform .12s ease, filter .18s ease;
}

.dash-spreadsheet-menu .export::before,
button.export::before {
  content: "\2B07\FE0E\00A0\00A0 Exportar Excel";   /* ⬇ + rótulo */
  font-size: 12.5px;
  font-weight: 700;
  font-family: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  letter-spacing: .015em;
}

.dash-spreadsheet-menu .export:hover,
button.export:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(18, 42, 37, .2),
              0 10px 22px rgba(31, 110, 96, .3);
}

.dash-spreadsheet-menu .export:active,
button.export:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(18, 42, 37, .18);
}

/* ── Linha de filtro/busca do DataTable ──────────────────────────────────────
   O placeholder padrão ("filter data...") e o ícone "Aa" de maiúsculas/
   minúsculas poluem. Esconde o toggle e deixa o campo de busca discreto, com
   um leve fundo e cantos arredondados. */
.dash-table-container .dash-filter .dash-filter--case,
.dash-table-container input.dash-filter--case {
  display: none !important;
}

.dash-table-container .dash-filter input {
  font-family: "Nunito Sans", "Segoe UI", system-ui, sans-serif !important;
  font-size: 12px !important;
  color: #122a25 !important;
  background: #f4f8f4 !important;
  border-radius: 6px !important;
  padding: 3px 8px !important;
}

.dash-table-container .dash-filter input::placeholder {
  color: #9aa8a2 !important;
  font-style: normal !important;
}
