.user-stats.fi-wi-stats-overview-stat {
  padding: 1.1rem 1.2rem;
}

.user-stats .fi-wi-stats-overview-stat-value {
  font-size: 1.5rem !important;
}

.user-stats.user-created-at-stats .fi-wi-stats-overview-stat-value {
  font-size: 1.16rem !important;
}

.user-stats .fi-wi-stats-overview-stat-description {
  font-size: 0.76rem !important;
}

.user-stats > div.grid {
  row-gap: 0.1rem;
}

@media (min-width: 768px) {
  .user-stats.user-stats-wide {
    grid-column: span 2 / span 2;
  }
}

.user-dropdown {
  max-width: 300px;
}

/* Admin */

body.fi-body {
  background-color: rgb(17, 17, 17) !important;
  color: white !important;
}

.fi-topbar > nav,
.fi-sidebar,
.fi-sidebar-header {
  background-color: rgb(22, 22, 22) !important;
  color: white !important;
}

.fi-sidebar-nav {
  border-right: 1px solid #ffffff1a !important;
}

.fi-simple-main,
.fi-ta-ctn,
.fi-tabs,
.fi-modal-window,
.fi-wi-stats-overview-stat,
.fi-section:not(.fi-aside),
.fi-section.fi-aside .fi-section-content-ctn {
  background-color: rgb(26, 26, 26) !important;
}

.fi-tabs,
.fi-tabs-item {
  border-radius: 100px !important;
  padding: .5rem 0.7rem !important;
}


.fi-btn.fi-btn-color-gray {
  background-color: #333333;
  color: white !important;
}

.fi-dropdown-list:has(.fi-theme-switcher) {
  display: none !important;
}

.fi-sidebar-item-button {
  padding: .62rem 0.8rem !important;
}

@media (max-width: 620px) {
  .btn-open-site {
    display: none !important;
  }
}


/* KYC: utilitários do Tailwind usados nas telas do KYC que não vêm no CSS compilado do Filament */

.-mt-1 { margin-top: -0.25rem; }
.mt-4 { margin-top: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.object-contain { object-fit: contain; }
.odd\:bg-gray-50:nth-child(odd) { background-color: rgb(249 250 251); }
.dark .dark\:odd\:bg-white\/5:nth-child(odd) { background-color: rgb(255 255 255 / 0.05); }

@media (min-width: 768px) {
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:w-72 { width: 18rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
}

/* Listagem de usuários: coluna de ações (⋮) fixa à direita enquanto a tabela rola na horizontal */
.fi-resource-users.fi-resource-list-records-page .fi-ta-actions-header-cell,
.fi-resource-users.fi-resource-list-records-page .fi-ta-actions-cell {
  position: sticky;
  right: 0;
  z-index: 2;
  background-color: rgb(26, 26, 26);
  box-shadow: -8px 0 12px -8px rgba(0, 0, 0, 0.6);
}
.fi-resource-users.fi-resource-list-records-page .fi-ta-row:nth-child(even) .fi-ta-actions-cell {
  background-color: rgb(37, 37, 37);
}

/*
 * Seletor de ícone (Menu Lateral e Categorias).
 * Lista aberta em grade: ícone em cima e nome pequeno embaixo. No campo, o escolhido fica em linha.
 */
.acd-icon-option { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; line-height: 18px; white-space: nowrap; }
.acd-icon-option > span { overflow: hidden; text-overflow: ellipsis; }
.choices .acd-icon-option img { flex: none; margin: 0; }

.icon-selector .choices__list--dropdown { left: auto; right: 0; min-width: 340px; }
.icon-selector .choices__list--dropdown .choices__list[role="listbox"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 4px;
    padding: 6px;
}
.icon-selector .choices__list--dropdown .choices__item { min-width: 0; padding: 8px 4px; border-radius: 8px; }
.icon-selector .choices__list--dropdown .acd-icon-option { flex-direction: column; gap: 6px; font-size: 10px; line-height: 12px; text-align: center; }
.icon-selector .choices__list--dropdown .acd-icon-option img { width: 24px; height: 24px; }
.icon-selector .choices__list--dropdown .acd-icon-option > span { max-width: 100%; }
