/* ==========================================================================
   RAP10 • CONTROLE DE ACESSO POR PERFIL (RBAC v2)
   ========================================================================== */

/* --- Itens bloqueados: menu lateral --- */
.sidebar-nav .nav-item.rbac-locked {
  opacity: 0.45;
  filter: grayscale(0.6);
  cursor: not-allowed;
  position: relative;
}
.sidebar-nav .nav-item.rbac-locked:hover { opacity: 0.7; }
.rbac-nav-lock {
  margin-left: auto;
  font-size: 11px;
  padding-left: 6px;
}

/* --- Itens bloqueados: Central de Gestão (celular) --- */
.gestao-list-card.rbac-locked {
  opacity: 0.62;
  border-style: dashed !important;
  border-color: rgba(244, 63, 94, 0.35) !important;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 10px, rgba(255,255,255,0.03) 10px 20px) !important;
  cursor: not-allowed;
}
.gestao-list-card.rbac-locked .gl-icon { filter: grayscale(0.8); }
.gestao-list-card.rbac-locked:active { transform: scale(0.99); }

.rbac-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

/* --- Faixa de perfil no topo da Central de Gestão --- */
.rbac-role-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 16px 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(168, 85, 247, 0.10));
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 12px;
}
.rbac-role-pill { font-weight: 800; color: #e0f2fe; }
.rbac-role-count { color: #94a3b8; font-weight: 600; }
.rbac-sim-exit {
  margin-left: auto;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fecdd3;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  cursor: pointer;
}

/* --- Modal de acesso bloqueado --- */
.rbac-blocked-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  animation: rbacFade 0.18s ease-out;
}
.rbac-blocked-dialog {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 26px 22px 20px;
  border-radius: 18px;
  background: linear-gradient(160deg, #111827 0%, #0b1220 100%);
  border: 1px solid rgba(244, 63, 94, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.03) inset;
  animation: rbacPop 0.22s cubic-bezier(.2,.9,.3,1.2);
}
.rbac-blocked-lock {
  width: 62px; height: 62px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,63,94,0.28), rgba(244,63,94,0.06));
  border: 1px solid rgba(244, 63, 94, 0.45);
}
.rbac-blocked-dialog h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; color: #fff; }
.rbac-blocked-module { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #fbbf24; }
.rbac-blocked-text { margin: 0 0 14px; font-size: 13px; color: #cbd5e1; line-height: 1.5; }
.rbac-blocked-who {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 16px;
}
.rbac-blocked-who > span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}
.rbac-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rbac-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.rbac-blocked-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

@keyframes rbacFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rbacPop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* --- Painel de testes (Gestão de Acessos) --- */
/* --- Badges e Controles de Modo RBAC (Padrão vs Personalizado) --- */
.rbac-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: .3px;
}
.badge-mode-default {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.badge-mode-custom {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde047;
}

.rbac-mode-indicator-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
}
.rbac-mode-indicator-pill.default {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.rbac-mode-indicator-pill.custom {
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.rbac-mode-toggle-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rbac-mode-switch-btn {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all .15s ease;
}
.rbac-mode-switch-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}
.rbac-mode-switch-btn.active {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.rbac-test-custom-banner {
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.35);
  margin-bottom: 12px;
}

/* --- Botões Interativos das Células da Matriz --- */
.rbac-cell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
  user-select: none;
  min-width: 82px;
}
.rbac-cell-btn:hover:not([disabled]) {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.rbac-cell-btn.cell-allowed {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}
.rbac-cell-btn.cell-allowed:hover:not([disabled]) {
  background: rgba(16, 185, 129, 0.28);
  border-color: #34d399;
}
.rbac-cell-btn.cell-blocked {
  background: rgba(244, 63, 94, 0.08);
  color: #fca5a5;
  border-color: rgba(244, 63, 94, 0.25);
  opacity: 0.85;
}
.rbac-cell-btn.cell-blocked:hover:not([disabled]) {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  opacity: 1;
}
.rbac-cell-btn.cell-supervisor {
  background: rgba(245, 158, 11, 0.15);
  color: #fde047;
  border-color: rgba(245, 158, 11, 0.35);
  cursor: default;
  opacity: 0.9;
}
.rbac-cell-btn[disabled] {
  cursor: not-allowed;
}
.rbac-cell-customized {
  position: relative;
}
.rbac-cell-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 6px #fde047;
}

/* --- Botão e Badge de Permissões Individuais de Usuário --- */
.btn-sup-perms {
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
}
.btn-sup-perms:hover {
  background: rgba(56, 189, 248, 0.25) !important;
  color: #e0f2fe !important;
}
.badge-perm-custom {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: inline-block;
  margin-top: 3px;
}

/* --- Painel de testes (Gestão de Acessos) --- */
.rbac-test-panel { margin-top: 18px; padding: 20px !important; }
.rbac-test-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 12px; }
.rbac-test-head h3 { margin: 0; font-size: 17px; font-weight: 800; color: #fff; }
.rbac-test-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-muted, #94a3b8); }
.rbac-test-ok, .rbac-test-fail { padding: 10px 12px; border-radius: 10px; font-size: 12.5px; margin-bottom: 12px; }
.rbac-test-ok { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.35); color: #a7f3d0; }
.rbac-test-fail { background: rgba(244,63,94,0.1); border: 1px solid rgba(244,63,94,0.35); color: #fecdd3; }
.rbac-test-fail ul { margin: 6px 0 0 18px; padding: 0; }

.rbac-sim-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; font-size: 12px; color: #94a3b8; }
.rbac-sim-row > span { font-weight: 800; color: #e2e8f0; margin-right: 4px; }
.rbac-sim-btn {
  font-size: 11.5px; font-weight: 700;
  padding: 5px 10px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,0.04); color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all .15s ease;
}
.rbac-sim-btn:hover:not([disabled]) { background: rgba(56,189,248,0.15); border-color: rgba(56,189,248,0.5); transform: translateY(-1px); }
.rbac-sim-btn.active { background: linear-gradient(135deg, #0ea5e9, #6366f1); border-color: transparent; color: #fff; }
.rbac-sim-btn.exit { background: rgba(244,63,94,0.15); border-color: rgba(244,63,94,0.45); color: #fecdd3; }
.rbac-sim-btn[disabled] { opacity: .4; cursor: not-allowed; }

.rbac-matrix-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,0.07); }
.rbac-matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
.rbac-matrix th, .rbac-matrix td { padding: 6px 8px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.rbac-matrix thead th { position: sticky; top: 0; background: #0f172a; color: #e2e8f0; font-size: 15px; line-height: 1.1; }
.rbac-matrix thead th span { font-size: 10px; font-weight: 700; color: #94a3b8; }
.rbac-matrix thead th:first-child, .rbac-matrix td.rbac-mod { text-align: left; font-size: 12px; white-space: nowrap; }
.rbac-matrix td.rbac-mod { color: #e2e8f0; font-weight: 600; }
.rbac-matrix td.rbac-yes { background: rgba(16,185,129,0.06); }
.rbac-matrix td.rbac-no { background: rgba(244,63,94,0.05); opacity: .75; }
.rbac-area-row td { text-align: left !important; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #fbbf24; background: rgba(251,191,36,0.06); }
.rbac-buttons-details { margin-top: 12px; font-size: 12.5px; color: #cbd5e1; }
.rbac-buttons-details summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.rbac-btn-table td { text-align: left; }

/* --- Tema claro --- */
body.theme-light .rbac-blocked-dialog { background: #ffffff; border-color: #fecdd3; }
body.theme-light .rbac-blocked-dialog h3 { color: #0f172a; }
body.theme-light .rbac-blocked-text { color: #334155; }
body.theme-light .rbac-blocked-who { background: #f8fafc; border-color: #e2e8f0; }
body.theme-light .rbac-chip { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
body.theme-light .rbac-lock-badge { color: #be123c; background: #fff1f2; border-color: #fecdd3; }
body.theme-light .rbac-role-pill { color: #0c4a6e; }
body.theme-light .rbac-test-head h3 { color: #0f172a; }
body.theme-light .rbac-matrix thead th { background: #f1f5f9; color: #0f172a; }
body.theme-light .rbac-matrix td.rbac-mod { color: #0f172a; }
body.theme-light .rbac-sim-btn { color: #0f172a; background: #f8fafc; border-color: #cbd5e1; }
body.theme-light .rbac-sim-row > span { color: #0f172a; }

/* ==========================================================================
   🔐 TELAS DE AUTENTICAÇÃO IDÊNTICAS À AGENDA BOA (https://web.agendaboa.com)
   ETAPA 1: Boas-Vindas (Hexágonos + "Profissionalize seu negócio" + Entrar na minha conta)
   ETAPA 2: Login com ‹ Voltar (Perfis Selecionáveis + Senha + Autenticação RBAC)
   TELA RIGIDAMENTE FIXA: Sem redimensionamento, sem zoom e sem cortes
   ========================================================================== */

/* Bloqueio Rigoroso de Ajuste de Tela (Padrão Nativo Agenda Boa) */
html, body {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  touch-action: pan-y !important;
  -webkit-text-size-adjust: 100% !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

body.is-mobile-device .rap10-mobile-home {
  width: 480px !important;
  max-width: 480px !important;
  min-width: 480px !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 auto !important;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6) !important;
}

@media (max-width: 768px) {
  body.is-mobile-device .rap10-mobile-home {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    border: none !important;
  }
}

.rap10-auth-screen {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: radial-gradient(circle at 50% 10%, #13243a 0%, #09121e 65%, #050a12 100%) !important;
  z-index: 50 !important;
}

.agendaboa-stage {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* ==========================================================================
   ETAPA 1: TELA DE BOAS-VINDAS (LANDING AGENDA BOA - REFINADA & COMPACTA)
   ========================================================================== */
.agendaboa-stage-welcome {
  justify-content: flex-start;
  padding: 10px 14px 32px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.agendaboa-welcome-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 18px 0 18px;
  flex: 1;
  justify-content: center;
}

.agendaboa-brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.agendaboa-logo-main,
.agendaboa-logo-eagle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid #38bdf8;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.agendaboa-logo-divider {
  font-size: 14px;
  font-weight: 900;
  color: #64748b;
}

.agendaboa-main-headline {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.2px !important;
  max-width: 340px !important;
}

.agendaboa-sub-headline {
  font-size: 13px !important;
  color: #cbd5e1 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  max-width: 340px !important;
}

.agendaboa-actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
  margin-top: 14px;
}

.agendaboa-btn-primary {
  width: 100%;
  height: 52px;
  background: #2563eb;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  letter-spacing: 0.3px;
}

.agendaboa-btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.55);
}

.agendaboa-btn-primary:active {
  transform: scale(0.98);
}

.agendaboa-divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 12px 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.agendaboa-btn-secondary {
  width: 100%;
  height: 48px;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  color: #f1f5f9;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.agendaboa-divider::before,
.agendaboa-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.agendaboa-divider span {
  padding: 0 10px;
}

.agendaboa-btn-secondary {
  width: 100%;
  height: 38px;
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.agendaboa-btn-secondary:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.agendaboa-footer-badges {
  margin-top: 8px;
  font-size: 8.5px;
  color: #64748b;
  font-weight: 600;
  display: flex;
  gap: 6px;
}

/* ==========================================================================
   ETAPA 2: TELA DE LOGIN (AGENDA BOA LOGIN - REFINADA & COMPACTA)
   ========================================================================== */
.agendaboa-stage-login {
  padding: 10px 16px 16px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.agendaboa-login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
}

.agendaboa-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.agendaboa-back-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #ffffff;
}

.agendaboa-topbar-brand {
  display: flex;
  align-items: center;
  gap: 5px;
}

.agendaboa-login-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.agendaboa-login-header {
  text-align: left;
  margin-bottom: 1px;
}

.agendaboa-login-title {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 2px 0;
  letter-spacing: -0.3px;
}

.agendaboa-login-subtitle {
  font-size: 10px;
  color: #94a3b8;
  margin: 0;
}

/* Grid de Perfis Elegante e Compacto (2 Colunas) */
.auth-roles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}

.auth-role-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.auth-role-item:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.auth-role-item:active {
  transform: scale(0.97);
}

.auth-role-item.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(30, 58, 138, 0.4) 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3), inset 0 0 6px rgba(56, 189, 248, 0.15);
}

.auth-role-item[data-role="presidente"].active {
  border-color: #eab308;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.3), inset 0 0 6px rgba(234, 179, 8, 0.15);
}
.auth-role-item[data-role="financeiro_master"].active {
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3), inset 0 0 6px rgba(16, 185, 129, 0.15);
}
.auth-role-item[data-role="advogado"].active {
  border-color: #818cf8;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.3), inset 0 0 6px rgba(129, 140, 248, 0.15);
}
.auth-role-item[data-role="adm"].active {
  border-color: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.3), inset 0 0 6px rgba(249, 115, 22, 0.15);
}
.auth-role-item[data-role="mestre_obras"].active {
  border-color: #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3), inset 0 0 6px rgba(6, 182, 212, 0.15);
}
.auth-role-item[data-role="prestador"].active {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3), inset 0 0 6px rgba(168, 85, 247, 0.15);
}

.auth-role-icon-wrap {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.role-ico-ceo { background: rgba(234, 179, 8, 0.15); color: #fbbf24; }
.role-ico-adm { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.role-ico-fin { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.role-ico-jur { background: rgba(129, 140, 248, 0.15); color: #a5b4fc; }
.role-ico-mestre { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.role-ico-prestador { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.auth-role-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.auth-role-badge {
  font-size: 6.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.auth-role-title {
  font-size: 10px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-role-sub {
  font-size: 8px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-role-check {
  display: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38bdf8;
  color: #0b1a2e;
  font-size: 7.5px;
  font-weight: 900;
  align-items: center;
  justify-content: center;
}

.auth-role-item.active .auth-role-check {
  display: flex;
}

.auth-sub-prestador-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  background: rgba(168, 85, 247, 0.08);
  border: 1px dashed rgba(168, 85, 247, 0.4);
  padding: 4px 8px;
  border-radius: 8px;
  animation: rbacFade 0.2s ease;
}

.auth-sub-label {
  font-size: 8px;
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 0.4px;
}

.auth-prestador-select {
  width: 100%;
  height: 28px;
  background: #09121e;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 7px;
  color: #f1f5f9;
  font-size: 10.5px;
  font-weight: 700;
  padding: 0 6px;
  outline: none;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.auth-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.4px;
}

.auth-pwd-hint {
  font-size: 8.5px;
  color: #64748b;
  font-weight: 600;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 10px;
  font-size: 13px;
  pointer-events: none;
}

.auth-input-field {
  width: 100%;
  height: 36px;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 34px 0 32px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

.auth-input-field:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.auth-toggle-pwd {
  position: absolute;
  right: 7px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 3px;
  font-size: 14px;
}

.agendaboa-forgot-pwd {
  font-size: 9.5px;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.agendaboa-forgot-pwd:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.agendaboa-signup-link {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  margin-top: 4px;
}

.agendaboa-signup-link a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
  margin-left: 3px;
  cursor: pointer;
}

.agendaboa-signup-link a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   CARROSSEL DE HEXÁGONOS NO TOPO (AGENDA BOA STYLE - PROPORÇÕES DELICADAS)
   ========================================================================== */
.auth-carousel-container {
  width: 100%;
  padding: 10px 0 6px 0 !important;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.15) 0%, rgba(9, 18, 30, 0) 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.auth-hex-card {
  width: 74px !important;
  min-width: 74px !important;
  height: 72px !important;
  border-radius: 12px !important;
  padding: 4px 3px !important;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.auth-hex-card:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #38bdf8;
}

.auth-hex-badge {
  font-size: 16px !important;
  margin-bottom: 2px !important;
}

.auth-hex-img {
  width: 22px !important;
  height: 22px !important;
  border-radius: 5px !important;
  margin-bottom: 2px !important;
}

.auth-hex-title {
  font-size: 8.5px !important;
  line-height: 1.15 !important;
}

.auth-hex-sub {
  font-size: 7px !important;
  margin-top: 1px !important;
}

/* ==========================================================================
   MODAL DE AUTO-CADASTRO (#modal-rap10-signup)
   ========================================================================== */
.rap10-signup-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 109900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.rap10-signup-modal-dialog {
  width: 100%;
  max-width: 460px;
  max-height: 94vh;
  background: linear-gradient(180deg, #0f1c2e 0%, #08111d 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.rap10-signup-header {
  padding: 14px 18px;
  background: rgba(15, 28, 46, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rap10-signup-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rap10-signup-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.rap10-signup-close:hover {
  color: #ffffff;
}

.rap10-signup-body {
  padding: 16px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rap10-signup-account-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(11, 20, 35, 0.9);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.signup-account-btn {
  padding: 10px 8px;
  border-radius: 9px;
  border: 1.5px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
  text-align: center;
}

.signup-account-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.signup-account-btn.active.is-paid {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.signup-account-btn span.acc-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 800;
}

.signup-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.signup-form-label {
  font-size: 11px;
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.signup-input {
  width: 100%;
  height: 38px;
  background: rgba(11, 20, 35, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 0 12px;
  font-size: 12.5px;
  color: #ffffff;
  transition: border-color 0.2s ease;
}

.signup-input:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(15, 28, 46, 0.95);
}

.signup-code-box {
  background: rgba(2, 132, 199, 0.12);
  border: 1.5px dashed rgba(56, 189, 248, 0.45);
  border-radius: 10px;
  padding: 10px 12px;
}

.signup-paid-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
}

.signup-submit-btn {
  width: 100%;
  height: 42px;
  background: linear-gradient(135deg, #0284c7 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4);
  transition: transform 0.15s ease;
}

.signup-submit-btn:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   PAINEL DE SUPERVISÃO (#rap10-mobile-view-usuarios & #view-gestao_usuarios)
   ========================================================================== */
.supervision-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.supervision-kpi-card {
  background: rgba(15, 28, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.supervision-kpi-card.kpi-total { border-color: rgba(56, 189, 248, 0.4); }
.supervision-kpi-card.kpi-equipe { border-color: rgba(16, 185, 129, 0.4); }
.supervision-kpi-card.kpi-assinante { border-color: rgba(245, 158, 11, 0.4); }
.supervision-kpi-card.kpi-blocked { border-color: rgba(239, 68, 68, 0.4); }

.supervision-kpi-val {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.supervision-kpi-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.supervision-filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.supervision-pill-btn {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(15, 28, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.supervision-pill-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
}

/* CARDS DE USUÁRIOS NO PAINEL */
.supervision-user-card {
  background: rgba(15, 28, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: border-color 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.supervision-user-card.is-blocked {
  background: rgba(30, 15, 20, 0.85);
  border-color: rgba(239, 68, 68, 0.45);
}

.supervision-user-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.supervision-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.supervision-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.supervision-user-name {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.supervision-user-email {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

.supervision-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.badge-plan-equipe {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.badge-plan-assinante {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.badge-status-online {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.badge-status-blocked {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

/* BOTÕES DE AÇÃO DO SUPERVISOR */
.supervision-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-sup-action {
  height: 32px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-sup-kick {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-sup-kick:hover {
  background: #dc2626;
  color: #ffffff;
}

.btn-sup-block {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.btn-sup-block:hover {
  background: #d97706;
  color: #ffffff;
}

.btn-sup-plan {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #93c5fd;
}

.btn-sup-plan:hover {
  background: #0284c7;
  color: #ffffff;
}

.btn-sup-del {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.btn-sup-del:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fca5a5;
}

.sup-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sup-user-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sup-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  color: #94a3b8;
}

.sup-card-meta div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sup-card-meta span {
  color: #64748b;
  margin-right: 3px;
}

.sup-card-meta b {
  color: #e2e8f0;
}

.sup-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 2px;
}

.supervision-user-card.card-blocked {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(30, 15, 20, 0.9);
}

/* ==========================================================================
   BANDEIRA GLOBAL FLUTUANTE DE SIMULAÇÃO DE PERFIL (SUPERVISOR GERAL)
   Visível em todas as telas, desktop e mobile, com botão destacado de retorno.
   ========================================================================== */
.rbac-global-sim-banner {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999999;
  max-width: 95vw;
  animation: rbacSimFloatIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rbacSimFloatIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rbac-global-sim-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.98));
  border: 2px solid #f59e0b;
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.2s ease;
}

.rbac-sim-badge-cluster {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.rbac-sim-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: rbacPulseAnim 1.6s infinite ease-in-out;
}

@keyframes rbacPulseAnim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.rbac-sim-tag {
  font-size: 10.5px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.5px;
}

.rbac-sim-role-info {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rbac-sim-avatar {
  font-size: 20px;
  line-height: 1;
}

.rbac-sim-text-box {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.rbac-sim-label-sub {
  font-size: 10.5px;
  color: #cbd5e1;
  font-weight: 600;
}

.rbac-sim-label-title {
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 800;
}

.rbac-sim-exit-btn-prominent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 1px solid #f87171;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rbac-sim-exit-btn-prominent:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.55);
}

.rbac-sim-exit-btn-prominent:active {
  transform: scale(0.98);
}

.rbac-sim-exit-icon {
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.2);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsividade Mobile para o Banner de Simulação */
@media (max-width: 768px) {
  .rbac-global-sim-banner {
    bottom: 64px;
    left: 10px;
    right: 10px;
    max-width: calc(100vw - 20px);
  }
  .rbac-global-sim-content {
    border-radius: 16px;
    padding: 8px 12px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .rbac-sim-label-sub {
    display: none;
  }
  .rbac-sim-exit-label {
    display: inline;
    font-size: 11px;
  }
}

/* ==========================================================================
   ALTO CONTRASTE E LEGIBILIDADE NO MODO CLARO (LIGHT THEME)
   Resolve: "no modo claro eu quase não veja as letras"
   ========================================================================== */
html.theme-light .rbac-section-title,
body.theme-light .rbac-section-title,
body.mobile-theme-light .rbac-section-title {
  color: #0f172a !important;
}

/* Banner de Simulação no Modo Claro */
html.theme-light .rbac-global-sim-content,
body.theme-light .rbac-global-sim-content,
body.mobile-theme-light .rbac-global-sim-content {
  background: linear-gradient(135deg, #ffffff, #fef3c7) !important;
  border: 2px solid #d97706 !important;
  box-shadow: 0 12px 36px rgba(217, 119, 6, 0.25), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

html.theme-light .rbac-sim-label-sub,
body.theme-light .rbac-sim-label-sub,
body.mobile-theme-light .rbac-sim-label-sub {
  color: #92400e !important;
}

html.theme-light .rbac-sim-label-title,
body.theme-light .rbac-sim-label-title,
body.mobile-theme-light .rbac-sim-label-title {
  color: #0f172a !important;
}

html.theme-light .rbac-sim-badge-cluster,
body.theme-light .rbac-sim-badge-cluster,
body.mobile-theme-light .rbac-sim-badge-cluster {
  background: rgba(217, 119, 6, 0.15) !important;
  border-color: rgba(217, 119, 6, 0.4) !important;
}

html.theme-light .rbac-sim-tag,
body.theme-light .rbac-sim-tag,
body.mobile-theme-light .rbac-sim-tag {
  color: #b45309 !important;
}

/* Títulos, Painéis e Cards de Gestão de Usuários no Modo Claro */
html.theme-light #view-gestao_usuarios h2,
body.theme-light #view-gestao_usuarios h2,
body.mobile-theme-light #view-gestao_usuarios h2,
html.theme-light .rbac-test-head h3,
body.theme-light .rbac-test-head h3,
body.mobile-theme-light .rbac-test-head h3 {
  color: #0f172a !important;
}

html.theme-light .card.rbac-test-panel,
body.theme-light .card.rbac-test-panel,
body.mobile-theme-light .card.rbac-test-panel {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

/* KPIs de Supervisão no Modo Claro */
html.theme-light .supervision-kpi-card,
body.theme-light .supervision-kpi-card,
body.mobile-theme-light .supervision-kpi-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

html.theme-light .supervision-kpi-val,
body.theme-light .supervision-kpi-val,
body.mobile-theme-light .supervision-kpi-val {
  color: #0f172a !important;
}

html.theme-light .supervision-kpi-card.kpi-total .supervision-kpi-val,
body.theme-light .supervision-kpi-card.kpi-total .supervision-kpi-val {
  color: #d97706 !important;
}

html.theme-light .supervision-kpi-card.kpi-equipe .supervision-kpi-val,
body.theme-light .supervision-kpi-card.kpi-equipe .supervision-kpi-val {
  color: #0284c7 !important;
}

html.theme-light .supervision-kpi-card.kpi-assinante .supervision-kpi-val,
body.theme-light .supervision-kpi-card.kpi-assinante .supervision-kpi-val {
  color: #16a34a !important;
}

html.theme-light .supervision-kpi-card.kpi-blocked .supervision-kpi-val,
body.theme-light .supervision-kpi-card.kpi-blocked .supervision-kpi-val {
  color: #dc2626 !important;
}

html.theme-light .supervision-kpi-label,
body.theme-light .supervision-kpi-label,
body.mobile-theme-light .supervision-kpi-label {
  color: #475569 !important;
  font-weight: 700 !important;
}

/* Filtros de Pílulas de Supervisão */
html.theme-light .supervision-pill-btn,
body.theme-light .supervision-pill-btn,
body.mobile-theme-light .supervision-pill-btn {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

html.theme-light .supervision-pill-btn.active,
body.theme-light .supervision-pill-btn.active,
body.mobile-theme-light .supervision-pill-btn.active {
  background: #d97706 !important;
  color: #ffffff !important;
  border-color: #b45309 !important;
}

/* Tabela de Usuários no Desktop */
html.theme-light #users-management-tbody tr,
body.theme-light #users-management-tbody tr {
  background: #ffffff !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html.theme-light #users-management-tbody td,
body.theme-light #users-management-tbody td {
  color: #0f172a !important;
}

html.theme-light #users-management-tbody tr:hover,
body.theme-light #users-management-tbody tr:hover {
  background: #f8fafc !important;
}

/* Cards de Usuários no Mobile */
html.theme-light .supervision-user-card,
body.theme-light .supervision-user-card,
body.mobile-theme-light .supervision-user-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

html.theme-light .supervision-user-card.card-blocked,
body.theme-light .supervision-user-card.card-blocked,
body.mobile-theme-light .supervision-user-card.card-blocked {
  background: #fff5f5 !important;
  border-color: #fca5a5 !important;
}

html.theme-light .supervision-user-name,
body.theme-light .supervision-user-name,
body.mobile-theme-light .supervision-user-name {
  color: #0f172a !important;
}

html.theme-light .supervision-user-email,
body.theme-light .supervision-user-email,
body.mobile-theme-light .supervision-user-email {
  color: #475569 !important;
}

html.theme-light .sup-card-meta,
body.theme-light .sup-card-meta,
body.mobile-theme-light .sup-card-meta {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html.theme-light .sup-card-meta span,
body.theme-light .sup-card-meta span,
body.mobile-theme-light .sup-card-meta span {
  color: #64748b !important;
}

html.theme-light .sup-card-meta b,
body.theme-light .sup-card-meta b,
body.mobile-theme-light .sup-card-meta b {
  color: #0f172a !important;
}

/* Botões de Ações dos Cards de Usuários */
html.theme-light .btn-sup-edit,
body.theme-light .btn-sup-edit,
body.mobile-theme-light .btn-sup-edit {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

html.theme-light .btn-sup-edit:hover,
body.theme-light .btn-sup-edit:hover,
body.mobile-theme-light .btn-sup-edit:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
}

html.theme-light .btn-sup-del,
body.theme-light .btn-sup-del,
body.mobile-theme-light .btn-sup-del {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #be123c !important;
}

html.theme-light .btn-sup-del:hover,
body.theme-light .btn-sup-del:hover,
body.mobile-theme-light .btn-sup-del:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* Matriz de Permissões no Modo Claro */
html.theme-light .rbac-matrix-wrap,
body.theme-light .rbac-matrix-wrap,
body.mobile-theme-light .rbac-matrix-wrap {
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
}

html.theme-light .rbac-matrix,
body.theme-light .rbac-matrix,
body.mobile-theme-light .rbac-matrix {
  background: #ffffff !important;
}

html.theme-light .rbac-matrix thead th,
body.theme-light .rbac-matrix thead th,
body.mobile-theme-light .rbac-matrix thead th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-bottom: 2px solid #cbd5e1 !important;
}

html.theme-light .rbac-matrix thead th span,
body.theme-light .rbac-matrix thead th span,
body.mobile-theme-light .rbac-matrix thead th span {
  color: #334155 !important;
}

html.theme-light .rbac-matrix td,
body.theme-light .rbac-matrix td,
body.mobile-theme-light .rbac-matrix td {
  border-bottom: 1px solid #e2e8f0 !important;
}

html.theme-light .rbac-matrix td.rbac-mod,
body.theme-light .rbac-matrix td.rbac-mod,
body.mobile-theme-light .rbac-matrix td.rbac-mod {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html.theme-light .rbac-area-row td,
body.theme-light .rbac-area-row td,
body.mobile-theme-light .rbac-area-row td {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-bottom: 1px solid #fde68a !important;
}

html.theme-light .rbac-cell-btn.cell-allowed,
body.theme-light .rbac-cell-btn.cell-allowed,
body.mobile-theme-light .rbac-cell-btn.cell-allowed {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-color: #86efac !important;
}

html.theme-light .rbac-cell-btn.cell-blocked,
body.theme-light .rbac-cell-btn.cell-blocked,
body.mobile-theme-light .rbac-cell-btn.cell-blocked {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #fca5a5 !important;
}

html.theme-light .rbac-cell-btn.cell-supervisor,
body.theme-light .rbac-cell-btn.cell-supervisor,
body.mobile-theme-light .rbac-cell-btn.cell-supervisor {
  background: #fef3c7 !important;
  color: #854d0e !important;
  border-color: #fde047 !important;
}

/* Modal de Edição de Usuário no Modo Claro */
html.theme-light #modal-rap10-edit-user .modal-dialog,
body.theme-light #modal-rap10-edit-user .modal-dialog {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

html.theme-light #modal-rap10-edit-user .modal-header,
body.theme-light #modal-rap10-edit-user .modal-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html.theme-light #modal-rap10-edit-user .modal-header h3,
body.theme-light #modal-rap10-edit-user .modal-header h3 {
  color: #0f172a !important;
}

html.theme-light #modal-rap10-edit-user .modal-body,
body.theme-light #modal-rap10-edit-user .modal-body {
  background: #ffffff !important;
}

html.theme-light #modal-rap10-edit-user .form-label,
body.theme-light #modal-rap10-edit-user .form-label {
  color: #334155 !important;
  font-weight: 700 !important;
}

html.theme-light #modal-rap10-edit-user .form-control,
body.theme-light #modal-rap10-edit-user .form-control {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
}

html.theme-light #modal-rap10-edit-user .modal-footer,
body.theme-light #modal-rap10-edit-user .modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}
