/* Painel administrativo — complementos sobre o Bootstrap. Paleta sóbria. */

:root {
  --admin-navy: #0f172a;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.admin-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #334155;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Cartão de autenticação centralizado (login, 2FA, troca de senha). */
.auth-shell {
  max-width: 26rem;
  margin: 0 auto;
}

.auth-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.auth-logo {
  width: 56px;
  height: 56px;
}

/* Código de 2FA: campo largo, centralizado, monoespaçado. */
.codigo-input {
  font-size: 1.75rem;
  letter-spacing: 0.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.config-grupo {
  border-left: 3px solid var(--admin-navy);
  padding-left: 1rem;
}

.perm-matriz td,
.perm-matriz th {
  vertical-align: middle;
}

/* Utilitários — substituem style= inline (bloqueado pela CSP sem unsafe-inline). */
.env-banner {
  letter-spacing: 0.04em;
}

.page-narrow {
  max-width: 40rem;
}

.col-thumb {
  width: 48px;
}

/* Miniatura de foto de produto. Largura/altura vêm dos atributos width/height. */
.thumb {
  object-fit: cover;
  border-radius: 6px;
}

.thumb--lg {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* Caixa de placeholder quando o produto não tem foto. */
.thumb-ph {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.uf-input {
  text-transform: uppercase;
}

/* Cartões do hub de configurações. */
.config-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.config-card:hover {
  border-color: var(--admin-navy);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.config-card > .bi:first-child {
  font-size: 1.5rem;
  color: var(--admin-navy);
  flex-shrink: 0;
}

.config-card__corpo {
  flex-grow: 1;
  min-width: 0;
}

.config-card__titulo {
  font-weight: 600;
}

.config-card__desc {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.config-card__seta {
  color: #9ca3af;
  flex-shrink: 0;
}

/* Cores por seção — Loja (quente) e Plataforma (frio) — para distinguir os grupos.
   Fundo bem claro + borda de destaque + ícone/título na cor da seção. */
.config-titulo--loja {
  color: #b45309;            /* âmbar */
  letter-spacing: 0.03em;
}

.config-titulo--plataforma {
  color: #1d4ed8;            /* azul */
  letter-spacing: 0.03em;
}

.config-card--loja {
  background: #fffbeb;       /* âmbar bem claro */
  border-color: #fde68a;
}

.config-card--loja:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.10);
}

.config-card--loja > .bi:first-child,
.config-card--loja .config-card__titulo {
  color: #b45309;
}

.config-card--plataforma {
  background: #eff6ff;       /* azul bem claro */
  border-color: #bfdbfe;
}

.config-card--plataforma:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.10);
}

.config-card--plataforma > .bi:first-child,
.config-card--plataforma .config-card__titulo {
  color: #1d4ed8;
}

.logo-preview {
  max-height: 64px;
}

.busca-input {
  min-width: 14rem;
}

/* Listas do painel (últimas doações / brindes): rolam dentro do card. */
.painel-lista {
  max-height: 420px;
  overflow-y: auto;
}

/* Gráfico de linhas do painel: SVG responsivo. */
.painel-grafico {
  width: 100%;
  height: auto;
}
