/* ── TecSkill Admin — padrão NEXA / Buriti (Indústrias) em Bootstrap ── */

:root {
  --nexa-primary: #7b39ff;
  --nexa-primary-hover: #6528e0;
  --nexa-primary-soft: #ede9fe;
  --nexa-primary-border: #c4b5fd;
  --nexa-primary-ink: #4c1d95;
  --nexa-terracotta: var(--nexa-primary);
  --nexa-terracotta-hover: var(--nexa-primary-hover);
  --nexa-terracotta-soft: var(--nexa-primary-soft);
  --nexa-terracotta-border: var(--nexa-primary-border);
  --nexa-ink: #3b1f6e;
  --nexa-text: #1f2937;
  --nexa-muted: #6b7280;
  --nexa-stone-50:  #faf9f7;
  --nexa-stone-100: #f3f2ee;
  --nexa-stone-200: #e8e6e1;
  --nexa-stone-300: #d5d2cb;
  --nexa-row-hover: rgba(123, 57, 255, 0.07);
  --nexa-accent: #7b39ff;
  --nexa-bulk-bg: #fecdd3;
  --nexa-bulk-border: #fda4af;
  --nexa-bulk-text: #9f1239;
  --sidebar-width: 252px;
  --sidebar-collapsed-width: 0px;
  --topbar-height: 56px;
}

body {
  font-size: 0.9rem;
  color: var(--nexa-text);
  background: var(--nexa-stone-100);
  -webkit-font-smoothing: antialiased;
}

/* Topbar clara (referência Indústrias) */
.navbar-admin {
  background: #fff !important;
  border-bottom: 1px solid var(--nexa-stone-200);
  min-height: 56px;
}

.navbar-admin .navbar-brand {
  color: var(--nexa-text) !important;
  font-weight: 700;
}

.navbar-admin .text-light,
.navbar-admin .btn-outline-light {
  color: var(--nexa-muted) !important;
  border-color: var(--nexa-stone-300) !important;
}

.navbar-admin .btn-outline-light:hover {
  background: var(--nexa-stone-50);
  color: var(--nexa-text) !important;
}

.navbar-admin .badge.bg-secondary {
  background: var(--nexa-stone-200) !important;
  color: var(--nexa-muted) !important;
}

.navbar-admin .bi-grid-fill {
  color: var(--nexa-terracotta) !important;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  min-height: calc(100vh - var(--topbar-height));
  position: sticky;
  top: var(--topbar-height);
  background: #fff !important;
  border-right: 1px solid var(--nexa-stone-200) !important;
  box-shadow: none !important;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

/* Desktop collapse via .sidebar-collapsed no body */
@media (min-width: 992px) {
  body.sidebar-collapsed .sidebar {
    width: 0;
    border-right-color: transparent !important;
    overflow: hidden;
  }
  body.sidebar-collapsed main.flex-grow-1 {
    max-width: 100%;
  }
}

.sidebar__section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nexa-muted);
  padding: 1rem 1.25rem 0.35rem;
  margin: 0;
}

.sidebar .nav-link {
  color: #57534e;
  padding: 0.55rem 1rem;
  margin: 0 0.45rem;
  border-radius: 10px;
  font-weight: 500;
}

.sidebar .nav-link:hover {
  background: var(--nexa-terracotta-soft);
  color: var(--nexa-ink);
}

.sidebar .nav-link.active {
  background: var(--nexa-terracotta-soft);
  color: var(--nexa-ink);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--nexa-terracotta);
}

main.flex-grow-1 {
  background: var(--nexa-stone-100) !important;
}

/* Botões da listagem — Buriti skill §9: inline-flex, ícone+texto na mesma linha, borda arredondada */
.btn-nexa-round,
.btn.btn-nexa-round,
.nexa-list-page .btn.btn-pill,
.nexa-list-header .btn,
.nexa-list-toolbar .btn,
.nexa-filters-panel .btn {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  border: 1px solid var(--nexa-stone-300) !important;
  border-style: solid !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  min-height: 2.5rem;
  vertical-align: middle;
}

/* Exportar e rodapé de formulário — pill (rounded-full) */
.btn-nexa-pill,
.btn.btn-nexa-pill,
.btn.btn-pill,
.login-page .btn.btn-pill {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  border-radius: 9999px !important;
  padding: 0.5rem 1.15rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  border: 1px solid var(--nexa-stone-300) !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  min-height: 2.5rem;
}

.nexa-list-toolbar .nexa-export details > summary.btn {
  list-style: none;
  border-radius: 9999px !important;
}

.nexa-list-toolbar .nexa-export details > summary.btn::-webkit-details-marker {
  display: none;
}

.btn-nexa-round:focus-visible,
.btn-nexa-pill:focus-visible,
.nexa-list-header .btn:focus-visible,
.nexa-list-toolbar .btn:focus-visible {
  outline: 2px solid var(--nexa-primary);
  outline-offset: 2px;
}

/* Dentro do card da listagem: sem sombra “flutuante” nos botões */
.nexa-page-shell .btn.btn-pill {
  box-shadow: none !important;
}

/* Novo — roxo sólido (ação principal) */
.btn-nexa-primary {
  background: var(--nexa-primary) !important;
  border-color: var(--nexa-primary-hover) !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(123, 57, 255, 0.35) !important;
}

.btn-nexa-primary:hover,
.btn-nexa-primary:focus {
  background: var(--nexa-primary-hover) !important;
  border-color: #4e1ec7 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(123, 57, 255, 0.45) !important;
}

/* Excluir em lote — rosa salmão */
.btn-nexa-bulk,
.btn-nexa-danger[data-bulk-delete] {
  background: var(--nexa-bulk-bg) !important;
  border-color: var(--nexa-bulk-border) !important;
  color: var(--nexa-bulk-text) !important;
}

.btn-nexa-bulk:hover:not(:disabled),
.btn-nexa-danger[data-bulk-delete]:hover:not(:disabled) {
  background: #fda4af !important;
  border-color: #fb7185 !important;
  color: #881337 !important;
}

.btn-nexa-bulk:disabled,
.btn-nexa-danger[data-bulk-delete]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Atualizar, Filtros, Exportar, Cancelar — branco com contorno */
.btn-nexa-ghost {
  background: #fff !important;
  border-color: var(--nexa-stone-300) !important;
  color: #374151 !important;
}

.btn-nexa-ghost:hover,
.btn-nexa-ghost:focus {
  background: var(--nexa-stone-50) !important;
  border-color: #a8a29e !important;
  color: #1f2937 !important;
}

/* Listagem padrão Buriti: título + ações FORA do card; só a tabela DENTRO */
.nexa-list-page {
  margin-bottom: 1.5rem;
  background: transparent;
}

.nexa-list-page > .nexa-list-header,
.nexa-list-page > .nexa-list-toolbar,
.nexa-list-page > .nexa-bulk-form {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.nexa-list-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nexa-list-header .nexa-page-title {
  font-size: 1.75rem;
}

.nexa-list-page > .nexa-filters-panel {
  margin-bottom: 1rem;
}

/* Barra de ações — fora do card branco (fundo cinza da página) */
.nexa-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.nexa-list-toolbar__start,
.nexa-list-toolbar__end,
.nexa-page-shell__toolbar-start,
.nexa-page-shell__toolbar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.nexa-bulk-form {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
}

/* Card branco — apenas tabela + paginação */
.nexa-list-card {
  background: #fff;
  border: 1px solid var(--nexa-stone-300);
  border-radius: 1.25rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08), 0 0 0 0 transparent;
  overflow: hidden;
}

.nexa-list-card .table-responsive {
  background: #fff;
}

/* Legado: shell antigo (evitar card envolvendo tudo) */
.nexa-page-shell {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  margin-bottom: 0;
}

.nexa-page-shell__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.nexa-page-shell__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.nexa-page-shell__form {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
}

/* (nexa-list-card definido acima) */

.nexa-list-card__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--nexa-stone-100);
  background: #fff;
}

.nexa-list-card__toolbar-start,
.nexa-list-card__toolbar-end,
.nexa-page-shell__toolbar-start,
.nexa-page-shell__toolbar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.nexa-list-card .nexa-table-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.nexa-export details summary.btn {
  list-style: none;
  cursor: pointer;
}

/* Cabeçalho de página */
.nexa-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.nexa-page-title .bi {
  color: var(--nexa-terracotta);
  font-size: 1.35rem;
}

.nexa-page-meta {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--nexa-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Chips de filtro ativo */
.nexa-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--nexa-terracotta-border);
  background: var(--nexa-terracotta-soft);
  color: var(--nexa-ink);
  text-decoration: none;
}

.nexa-filter-chip:hover {
  background: rgba(123, 57, 255, 0.16);
  color: var(--nexa-ink);
}

/* Painel de filtros */
.nexa-filters-panel {
  border-radius: 1rem;
  border: 1px solid var(--nexa-stone-200);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.nexa-filters-panel .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
}

/* Card tabela (isolado; dentro de .nexa-page-shell não usa borda extra) */
.nexa-table-card {
  border-radius: 1.25rem;
  border: 1px solid var(--nexa-stone-200);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.02);
  overflow: hidden;
}

.nexa-page-shell > .nexa-table-card,
.nexa-page-shell .nexa-page-shell__table {
  border: none;
  box-shadow: none;
}

.nexa-table {
  margin: 0;
  font-size: 0.875rem;
}

.nexa-table thead {
  background: var(--nexa-stone-50);
}

.nexa-table thead th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nexa-muted);
  border-bottom: 1px solid var(--nexa-stone-100);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.nexa-table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--nexa-stone-100);
}

.nexa-table tbody tr {
  transition: background 0.12s ease;
}

.nexa-table tbody tr:nth-child(odd) {
  background: #faf6f0;
}

.nexa-table tbody tr:nth-child(even) {
  background: #f3ece3;
}

.nexa-table tbody tr:hover {
  background: rgba(168, 111, 63, 0.18) !important;
}

/* Status pill */
.nexa-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.nexa-status-pill--active {
  background: #d1fae5;
  color: #065f46;
}

.nexa-status-pill--inactive {
  background: #fee2e2;
  color: #991b1b;
}

.nexa-status-pill--on-site {
  background: rgba(123, 57, 255, 0.12);
  color: #5a1fd1;
}

.nexa-status-pill--hidden {
  background: var(--nexa-stone-100);
  color: var(--nexa-muted);
}

/* Menu ações por linha */
.nexa-row-menu-btn {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--nexa-stone-300);
  background: #fff;
  color: #57534e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nexa-row-menu-btn:hover {
  background: var(--nexa-stone-50);
}

.nexa-row-menu {
  position: fixed;
  z-index: 1200;
  min-width: 11rem;
  border-radius: 1rem;
  border: 1px solid var(--nexa-stone-200);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 0.25rem 0;
}

.nexa-row-menu a,
.nexa-row-menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  color: #374151;
  text-align: left;
  text-decoration: none;
}

.nexa-row-menu a:hover,
.nexa-row-menu button:hover {
  background: var(--nexa-stone-50);
}

.nexa-row-menu .text-danger {
  color: #b91c1c !important;
}

/* Export dropdown */
.nexa-export details summary {
  list-style: none;
  cursor: pointer;
}

.nexa-export details summary::-webkit-details-marker {
  display: none;
}

.nexa-export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  border-radius: 1rem;
  border: 1px solid var(--nexa-stone-200);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 0.25rem 0;
  z-index: 50;
}

.nexa-export-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
}

.nexa-export-menu a:hover {
  background: var(--nexa-stone-50);
}

/* Formulário */
.admin-form-tabs .nav-link {
  font-weight: 600;
  color: var(--nexa-muted);
  border-radius: 10px 10px 0 0;
}

.admin-form-tabs .nav-link.active {
  color: var(--nexa-primary);
  border-color: var(--nexa-stone-200) var(--nexa-stone-200) #fff;
}

.admin-panel-marketplace {
  border: 2px solid var(--nexa-primary-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--nexa-primary-soft) 0%, #fff 100px);
}

.admin-hint {
  font-size: 0.82rem;
  color: var(--nexa-muted);
  background: var(--nexa-stone-50);
  border-left: 3px solid var(--nexa-primary);
  padding: 0.65rem 0.85rem;
  border-radius: 0 8px 8px 0;
}

.form-switch .form-check-input {
  border-radius: 9999px;
  width: 2.5em;
  height: 1.35em;
}

.form-switch .form-check-input:checked {
  background-color: var(--nexa-primary);
  border-color: var(--nexa-primary);
}

.form-switch.rounded-xl .form-check-label {
  padding-top: 0.15rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(123, 57, 255, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(123, 57, 255, 0.15);
}

.alert {
  border-radius: 10px;
}

@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    left: 0;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 56px 0 0 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1035;
}

/* Dashboard — KPI */
.nexa-kpi-card {
  border-radius: 1rem;
  border: 1px solid var(--nexa-stone-200);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.nexa-kpi-card .card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.nexa-kpi-card__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nexa-terracotta-soft);
  color: var(--nexa-terracotta);
  font-size: 1.35rem;
}

.nexa-kpi-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
}

.nexa-kpi-card__label {
  font-size: 0.8rem;
  color: var(--nexa-muted);
}

/* Login */
.login-page {
  min-height: 100vh;
  background: var(--nexa-stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  border-radius: 1rem;
  border: 1px solid var(--nexa-stone-200);
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.login-card .bi-grid-fill {
  color: var(--nexa-terracotta);
  font-size: 2.25rem;
}

/* Formulário em card */
.nexa-form-card {
  border-radius: 1rem;
  border: 1px solid var(--nexa-stone-200);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nexa-form-card .form-control,
.nexa-form-card .form-select {
  border-radius: 10px;
}

/* Badges de ação (logs) */
.nexa-action-pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: lowercase;
}

.nexa-action-pill--create { background: #d1fae5; color: #065f46; }
.nexa-action-pill--update { background: #fef3c7; color: #92400e; }
.nexa-action-pill--delete { background: #fee2e2; color: #991b1b; }
.nexa-action-pill--login { background: var(--nexa-terracotta-soft); color: var(--nexa-ink); }
.nexa-action-pill--logout { background: var(--nexa-stone-100); color: var(--nexa-muted); }
.nexa-action-pill--login_fail { background: #1f2937; color: #fff; }
.nexa-action-pill--default { background: var(--nexa-stone-100); color: #57534e; }

.nexa-role-pill--admin { background: #fee2e2; color: #991b1b; }
.nexa-role-pill--editor { background: #fef3c7; color: #92400e; }
.nexa-role-pill--viewer { background: rgba(123, 57, 255, 0.12); color: #5a1fd1; }

/* Sidebar — layout NEXA (espaçamento, tipografia, sem ícones nos itens) */
.nexa-sidebar {
  background: var(--cor-menu);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.nexa-sidebar__brand {
  padding: 1.35rem 1.25rem 1.1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nexa-sidebar__brand-link {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #fff;
  text-decoration: none;
}
.nexa-sidebar__brand-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.nexa-sidebar__nav {
  padding: 0.75rem 0.85rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.nexa-nav-item {
  display: block;
  padding: 0.55rem 0.85rem;
  margin: 0.12rem 0;
  border-radius: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.nexa-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.nexa-nav-item.is-active {
  background: var(--cor-botoes-menu);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--cor-texto-menu);
  font-weight: 600;
}
.nexa-nav-item--badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.nexa-sidebar__spacer {
  height: 1.25rem;
  flex-shrink: 0;
}
.nexa-sidebar__spacer--large {
  height: 3.5rem;
  margin: 0.5rem 0;
}
.nexa-sidebar__group {
  margin-bottom: 0.25rem;
}
.nexa-sidebar__group-title {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  user-select: none;
}
.nexa-sidebar__group-title::-webkit-details-marker { display: none; }
.nexa-sidebar__group[open] .nexa-sidebar__group-title {
  color: rgba(255, 255, 255, 0.85);
}
.nexa-sidebar__group-items {
  padding: 0.15rem 0 0.35rem 0.65rem;
  margin-left: 0.35rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.nexa-sidebar-badge {
  min-width: 1.2rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background: #f59e0b;
  color: #1f2937;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
}

/* Drawer — quase metade da tela */
.offcanvas.admin-drawer-wide {
  width: min(48vw, 52rem) !important;
  max-width: 100vw;
}

/* Publicar no site — padrão único (switch + barra) */
.admin-form-publish-bar {
  margin-top: 1.75rem;
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--cor-borda-suave, #d6d3d1);
  background: var(--cor-superficie, #fafaf9);
  border-radius: 0.75rem;
}
.admin-product-form .admin-form-publish-bar {
  margin-left: -1rem;
  margin-right: -1rem;
  margin-bottom: -1rem;
  border-radius: 0 0 12px 12px;
}
.offcanvas-body .admin-form-publish-bar {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}
.admin-form-publish-bar .form-check-input {
  width: 2.5rem;
  height: 1.35rem;
  cursor: pointer;
}
.admin-form-publish-bar .form-check-label {
  cursor: pointer;
  padding-left: 0.35rem;
}
.admin-product-form .tab-content {
  padding-top: 0.5rem;
}
.admin-panel-marketplace .card-body {
  padding-top: 1.25rem;
}

/* Settings — página sem nav lateral redundante */
.nexa-settings-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 0.25rem;
}
.nexa-settings-page {
  width: 100%;
  max-width: none;
}
.nexa-settings-page .nexa-table-card {
  width: 100%;
}
.nexa-settings-page-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nexa-muted);
}

/* Sidebar TecSkill — layout NEXA (menu branco, módulos separados, ativo roxo) */
#tecskill-sidebar.tecskill-sidebar--nexa {
  background: var(--cor-menu) !important;
  color: #57534e;
}

#tecskill-sidebar .sidebar-brand {
  background: #fff !important;
  border-bottom: 1px solid var(--nexa-stone-200) !important;
}

#tecskill-sidebar .sidebar-brand-logo {
  display: block;
  max-height: 5rem;
  width: auto;
  max-width: min(100%, 17.5rem);
}

#tecskill-sidebar .sidebar-nav {
  background: #fff;
}

#tecskill-sidebar .sidebar-module {
  border-top: none;
  padding: 0.35rem 0;
  margin-top: 0;
}

#tecskill-sidebar .sidebar-nav > .sidebar-module + .sidebar-module,
#tecskill-sidebar .sidebar-nav > .sidebar-module + details.sidebar-module,
#tecskill-sidebar .sidebar-nav > details.sidebar-module + details.sidebar-module {
  border-top: 1px solid #e9d5ff;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

#tecskill-sidebar .sidebar-module--painel {
  padding-top: 0.15rem;
  margin-top: 0;
}

#tecskill-sidebar .sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.1rem 0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #57534e;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#tecskill-sidebar .sidebar-link-icon {
  color: #a8a29e;
}

#tecskill-sidebar .sidebar-link:hover {
  background: var(--nexa-terracotta-soft);
  color: var(--nexa-primary);
}

#tecskill-sidebar .sidebar-link:hover .sidebar-link-icon {
  color: var(--nexa-primary);
}

#tecskill-sidebar .sidebar-link.active {
  background: var(--cor-botoes-menu);
  color: var(--cor-texto-menu);
  font-weight: 600;
  box-shadow: none;
}

#tecskill-sidebar .sidebar-link.active:hover {
  background: var(--nexa-terracotta-soft);
  color: var(--nexa-primary);
}

#tecskill-sidebar .sidebar-link.active .sidebar-link-icon {
  color: var(--nexa-primary);
}

#tecskill-sidebar .sidebar-link.active:hover .sidebar-link-icon {
  color: var(--nexa-primary);
}

#tecskill-sidebar .module-summary {
  color: #78716c;
  transition: background 0.15s ease, color 0.15s ease;
}

#tecskill-sidebar .module-summary:hover {
  background: var(--nexa-terracotta-soft);
  color: var(--nexa-primary);
}

#tecskill-sidebar .module-summary:hover .module-summary-icon,
#tecskill-sidebar .module-summary:hover .module-summary-chevron {
  color: var(--nexa-primary);
}

#tecskill-sidebar .module-summary-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
}

#tecskill-sidebar .module-summary-icon {
  color: var(--nexa-primary);
  flex-shrink: 0;
}

#tecskill-sidebar .module-summary-chevron {
  color: #a8a29e;
  flex-shrink: 0;
}

#tecskill-sidebar details[open] > .module-summary {
  color: #44403c;
}

#tecskill-sidebar details[open] > .module-summary .module-summary-icon,
#tecskill-sidebar details[open] > .module-summary .module-summary-chevron {
  color: var(--nexa-primary);
}

#tecskill-sidebar .sidebar-module-items {
  margin: 0.2rem 0 0.35rem 0.65rem;
  padding: 0.1rem 0 0.25rem 0.75rem;
  border-left: 2px solid var(--nexa-stone-200);
}

#tecskill-sidebar .sidebar-user-avatar {
  background: var(--nexa-stone-200);
  color: #57534e;
}

#tecskill-sidebar .sidebar-logout:hover {
  background: var(--nexa-stone-100) !important;
  border-color: var(--nexa-stone-300) !important;
  color: #44403c !important;
}
.nexa-sidebar-group__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 0.5rem;
}
.nexa-sidebar-group__summary::-webkit-details-marker { display: none; }
.nexa-sidebar-group[open] .nexa-sidebar-group__chevron { transform: rotate(180deg); }
.nexa-sidebar-group__chevron { transition: transform 0.2s ease; margin-left: auto; opacity: 0.45; }
.nexa-sidebar-group__items { margin: 0.25rem 0 0.5rem 0.5rem; padding-left: 0.5rem; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.nexa-sidebar-badge {
  min-width: 1.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background: #f59e0b;
  color: #1f2937;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
}
.nexa-sidebar-user {
  background: rgba(0, 0, 0, 0.2);
}
.nexa-sidebar-user__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}
.nexa-sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.nexa-sidebar-logout:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Settings — nav por seção da landing */
.nexa-settings-nav__link {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  color: #44403c;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.nexa-settings-nav__link:hover { background: #f5f5f4; color: #1c1917; }
.nexa-settings-nav__link.is-active {
  background: rgba(123, 57, 255, 0.1);
  color: #5a1fd1;
  font-weight: 600;
}

/* Botões — catálogo Buriti (TecSkill) */
.buriti-btn-primary,
.buriti-btn-search {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 9999px;
  padding: 0.55rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-sage, #7b39ff);
  box-shadow: 0 4px 12px rgba(101, 40, 224, 0.25);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.buriti-btn-primary:hover,
.buriti-btn-search:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(101, 40, 224, 0.32);
}
.buriti-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #ef4444;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}
.buriti-btn-danger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.buriti-btn-outline,
.buriti-btn-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--cor-borda-suave, #d6d3d1);
  background: var(--cor-superficie-elevada, #fff);
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.buriti-btn-outline:hover,
.buriti-btn-filters:hover {
  background: var(--cor-superficie, #fafaf9);
  color: #1f2937;
}
.buriti-btn-filters {
  border-color: #e7e5e4;
  font-weight: 500;
}
.text-brand-ink { color: var(--brand-ink, #3b1f6e); }
.text-brand-terracotta { color: var(--cor-primaria, #7b39ff); }

/* Prévia depoimento — landing */
.admin-testimonial-preview__card {
  border: 1px solid #ece9f7;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(44, 39, 86, 0.08);
}
.admin-testimonial-preview__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  min-height: 88px;
  background: linear-gradient(90deg, rgba(123, 57, 255, 0.14) 0%, rgba(123, 57, 255, 0.09) 50%, rgba(123, 57, 255, 0.13) 100%);
}
.admin-testimonial-preview__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(123, 57, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #6528e0;
}
.admin-testimonial-preview__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-testimonial-preview__meta h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1c1917;
}
.admin-testimonial-preview__meta span {
  font-size: 13px;
  color: #57534e;
}
.admin-testimonial-preview__body {
  padding: 1rem 1.1rem 1.15rem;
}
.admin-testimonial-preview__body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #57534e;
}

#tecskill-sidebar nav > details + details {
  margin-top: 0;
}

#tecskill-sidebar details[open] summary .module-summary-chevron {
  transform: rotate(180deg);
  color: #78716c;
}

/* ── TecSkill — decoração roxa só no menu lateral ── */
#tecskill-sidebar.tecskill-sidebar--nexa {
  box-shadow: inset 3px 0 0 0 var(--nexa-primary);
}

#tecskill-sidebar .sidebar-brand {
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%) !important;
  border-bottom: 1px solid #e9d5ff !important;
}

#tecskill-sidebar .sidebar-nav {
  background: #fff;
  padding-top: 0.5rem;
}

#tecskill-sidebar .sidebar-nav-primary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.1rem 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

#tecskill-sidebar .sidebar-nav-primary .sidebar-link-icon,
#tecskill-sidebar .module-summary-icon,
#tecskill-sidebar .module-summary-chevron,
#tecskill-sidebar .sidebar-module-items .sidebar-link-icon {
  padding: 0;
  border: none;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  flex-shrink: 0;
}

#tecskill-sidebar .sidebar-nav-primary .sidebar-link-icon svg,
#tecskill-sidebar .module-summary-icon svg,
#tecskill-sidebar .module-summary-chevron svg,
#tecskill-sidebar .sidebar-module-items .sidebar-link-icon svg {
  stroke: currentColor;
}

#tecskill-sidebar .sidebar-nav-primary .sidebar-link-icon,
#tecskill-sidebar .module-summary-icon {
  color: var(--nexa-primary);
}

#tecskill-sidebar .sidebar-nav-primary__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6d28d9;
}

#tecskill-sidebar .sidebar-nav-primary:hover {
  background: var(--nexa-terracotta-soft);
}

#tecskill-sidebar .sidebar-nav-primary:hover .sidebar-link-icon {
  color: var(--nexa-primary);
}

#tecskill-sidebar .sidebar-nav-primary.active {
  background: var(--cor-botoes-menu);
}

#tecskill-sidebar .sidebar-nav-primary.active .sidebar-nav-primary__label {
  color: var(--cor-texto-menu);
}

#tecskill-sidebar .sidebar-nav-primary.active .sidebar-link-icon {
  color: var(--nexa-primary);
}

#tecskill-sidebar .module-summary-label {
  color: #6d28d9;
  letter-spacing: 0.1em;
}

#tecskill-sidebar details[open] > .module-summary .module-summary-label {
  color: #5b21b6;
}

#tecskill-sidebar .sidebar-module-items .sidebar-link {
  color: #6d28d9;
  font-weight: 500;
}

#tecskill-sidebar .sidebar-module-items .sidebar-link-icon {
  color: var(--nexa-primary);
}

#tecskill-sidebar .sidebar-module-items .sidebar-link:hover {
  background: var(--nexa-terracotta-soft);
  color: #5b21b6;
}

#tecskill-sidebar .sidebar-module-items .sidebar-link:hover .sidebar-link-icon {
  color: #5b21b6;
}

#tecskill-sidebar .sidebar-module-items .sidebar-link.active {
  background: var(--cor-botoes-menu);
  color: var(--cor-texto-menu);
  font-weight: 600;
}

#tecskill-sidebar .sidebar-module-items .sidebar-link.active .sidebar-link-icon {
  color: var(--nexa-primary);
}

#tecskill-sidebar .sidebar-module-items {
  border-left-color: #ddd6fe;
}

#tecskill-sidebar .sidebar-footer {
  border-top-color: #e9d5ff !important;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

#tecskill-sidebar .sidebar-user-avatar {
  background: #ede9fe;
  color: #6528e0;
}

#tecskill-sidebar .nexa-sidebar-badge {
  background: var(--nexa-primary);
  color: #fff;
}
