/*
 * SambaTune — tema do sistema de gestão (Filament).
 * CSS puro, fora das camadas do Tailwind: vence os estilos padrão sem precisar de build.
 * Estrutura: barra superior e menu lateral escuros (casca do sistema), área de trabalho clara e densa.
 */

:root {
  --st-shell: #17181b;
  --st-shell-2: #1f2024;
  --st-shell-line: #2b2c31;
  --st-shell-text: #c9c9cf;
  --st-shell-muted: #7d7e87;
  --st-gold: #e0a93f;
  --st-gold-soft: rgba(224, 169, 63, 0.14);
  --st-bg: #f2f3f5;
  --st-card: #ffffff;
  --st-line: #e3e4e8;
  --st-text: #1b1c20;
  --st-muted: #6b6d76;
  --st-radius: 8px;
  --st-topbar-h: 4rem;
}

body.fi-body {
  background: var(--st-bg);
  color: var(--st-text);
  font-feature-settings: 'tnum' 1, 'cv11' 1;
}

/* ---------- Barra superior ---------- */
.fi-topbar-ctn {
  box-shadow: none;
}
.fi-topbar {
  background: var(--st-shell);
  border-bottom: 1px solid var(--st-shell-line);
  min-height: var(--st-topbar-h);
  height: var(--st-topbar-h);
  box-shadow: none;
  color: var(--st-shell-text);
}
.fi-topbar .fi-icon-btn {
  color: var(--st-shell-muted);
}
.fi-topbar .fi-icon-btn:hover {
  color: #fff;
  background: var(--st-shell-2);
}
.fi-topbar .fi-logo img,
.fi-sidebar-header .fi-logo img {
  filter: none;
}
.fi-topbar .fi-global-search-field .fi-input-wrp {
  background: var(--st-shell-2);
  border-color: var(--st-shell-line);
  box-shadow: none;
  --tw-ring-color: var(--st-shell-line);
  min-width: 22rem;
}
.fi-topbar .fi-global-search-field .fi-input-wrp:focus-within {
  --tw-ring-color: var(--st-gold);
}
.fi-topbar .fi-global-search-field input {
  color: #fff;
}
.fi-topbar .fi-global-search-field input::placeholder {
  color: var(--st-shell-muted);
}
.fi-topbar .fi-global-search-field .fi-icon {
  color: var(--st-shell-muted);
}
.fi-topbar .fi-user-menu-trigger .fi-avatar {
  outline: 2px solid var(--st-shell-line);
}

/* ---------- Menu lateral ---------- */
.fi-sidebar {
  background: var(--st-shell);
  border-right: 1px solid var(--st-shell-line);
}
.fi-sidebar-header {
  background: var(--st-shell);
  border-bottom: 1px solid var(--st-shell-line);
  box-shadow: none;
  height: var(--st-topbar-h);
}
.fi-sidebar-nav {
  padding: 14px 10px 24px;
  row-gap: 18px;
  scrollbar-color: var(--st-shell-line) transparent;
}
.fi-sidebar-group-label {
  color: var(--st-shell-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fi-sidebar-group-btn {
  padding: 0 10px 4px;
}
.fi-sidebar-group-collapse-btn {
  color: var(--st-shell-muted);
}
.fi-sidebar-group-items {
  row-gap: 1px;
}
.fi-sidebar-item-btn {
  border-radius: 6px;
  padding: 7px 10px;
  gap: 10px;
  position: relative;
}
.fi-sidebar-item-label {
  color: var(--st-shell-text);
  font-size: 0.875rem;
  font-weight: 500;
}
.fi-sidebar-item-icon {
  color: var(--st-shell-muted);
  width: 1.15rem;
  height: 1.15rem;
}
.fi-sidebar-item-btn:hover,
.fi-sidebar-item-btn:focus-visible {
  background: var(--st-shell-2);
}
.fi-sidebar-item-btn:hover .fi-sidebar-item-label,
.fi-sidebar-item-btn:hover .fi-sidebar-item-icon {
  color: #fff;
}
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
  background: var(--st-gold-soft);
}
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--st-gold);
}
.fi-sidebar-item.fi-active .fi-sidebar-item-label {
  color: #f6d692;
  font-weight: 600;
}
.fi-sidebar-item.fi-active .fi-sidebar-item-icon {
  color: var(--st-gold);
}
.fi-sidebar-item-badge-ctn .fi-badge {
  background: var(--st-shell-2);
  color: #f6d692;
  --tw-ring-color: var(--st-shell-line);
}
.st-sidebar-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--st-shell-line);
  color: var(--st-shell-muted);
  font-size: 0.72rem;
}
.st-sidebar-foot span:last-child {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Área de trabalho ---------- */
.fi-main {
  padding-top: 18px;
}
.fi-main-sidebar {
  top: var(--st-topbar-h);
  height: calc(100dvh - var(--st-topbar-h));
}
.fi-page-header-main-ctn {
  row-gap: 16px;
}
.fi-header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--st-line);
}
.fi-header-heading {
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.fi-header-subheading {
  color: var(--st-muted);
  font-size: 0.9rem;
  margin-top: 2px;
}
.fi-breadcrumbs {
  font-size: 0.8rem;
}

/* Cartões, seções e widgets: borda fina, sem sombra pesada, cantos discretos */
.fi-section:not(.fi-section-not-contained),
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-wi-chart .fi-section,
.fi-fo-tabs,
.fi-in-tabs,
.fi-sc-tabs {
  border-radius: var(--st-radius);
  box-shadow: none;
  --tw-ring-color: var(--st-line);
}
.fi-section-header-heading {
  font-size: 0.95rem;
  font-weight: 650;
}
.fi-section-header-description {
  font-size: 0.82rem;
}

/* Números do painel */
.fi-wi-stats-overview-stat {
  padding: 16px 18px;
  border-top: 3px solid transparent;
}
.fi-wi-stats-overview-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.fi-wi-stats-overview-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fi-wi-stats-overview-stat-description {
  font-size: 0.8rem;
}
.fi-wi-stats-overview > .fi-section-header,
.fi-wi-stats-overview .fi-section-header-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--st-muted);
}

/* Tabelas densas, cabeçalho de planilha */
.fi-ta-header-cell {
  background: #f8f8fa;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--st-muted);
  padding-top: 9px;
  padding-bottom: 9px;
}
.fi-ta-cell {
  padding-top: 2px;
  padding-bottom: 2px;
}
.fi-ta-text {
  padding-top: 9px;
  padding-bottom: 9px;
}
.fi-ta-row:hover {
  background: #fafaf7;
}
.fi-ta-header {
  padding-top: 12px;
  padding-bottom: 12px;
}
.fi-ta-header-heading {
  font-size: 0.95rem;
  font-weight: 650;
}

/* Abas de filtro das listas (ex.: Em teste, Assinantes…) como abas de sistema */
.fi-tabs {
  margin-inline: 0;
  border-radius: var(--st-radius);
  box-shadow: none;
  --tw-ring-color: var(--st-line);
}
.fi-tabs-item.fi-active {
  box-shadow: inset 0 -2px 0 var(--st-gold);
  border-radius: 6px 6px 0 0;
}

/* Botões */
.fi-btn {
  border-radius: 6px;
  font-weight: 600;
}
.fi-btn.fi-color-primary {
  color: #1b1405;
}

/* Rodapé de formulário fixo e visível */
.fi-form-actions,
.fi-sc-actions {
  padding-top: 12px;
}

/* Tela de login com a casca escura do sistema */
.fi-simple-layout {
  background:
    linear-gradient(180deg, var(--st-shell) 0 38%, var(--st-bg) 38% 100%);
}
.fi-simple-main {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --tw-ring-color: var(--st-line);
}
.fi-simple-header .fi-logo {
  background: var(--st-shell);
  padding: 12px 18px;
  border-radius: 8px;
  height: 3.2rem !important;
  width: auto;
  box-sizing: content-box;
}

@media (max-width: 1023px) {
  .fi-topbar .fi-global-search-field .fi-input-wrp {
    min-width: 0;
  }
}
