/* ===================================================================
   05-premium.css — ETG Design System v4.0
   DARK  = preto absoluto + bordas brancas visíveis + texto branco
   LIGHT = branco puro + cinza limpo (estilo Dappr)
   =================================================================== */

/* ── TIPOGRAFIA ─────────────────────────────────────────────────────── */
body { font-feature-settings:'cv02','cv03','cv04','cv11'; letter-spacing:-0.01em; }
.stat-num { font-size: 32px !important; font-weight: 800 !important; letter-spacing: -0.04em !important; }
.dash-greeting-title { font-size: 32px !important; font-weight: 800 !important; letter-spacing: -0.03em !important; }
.stat-label, .filter-label, .rh-nav-label { letter-spacing: 0.06em !important; font-size: 10px !important; }
.modal-title { font-size: 20px !important; font-weight: 800 !important; letter-spacing: -0.025em !important; }

/* ── CURSOR ─────────────────────────────────────────────────────────── */
.rh-nav-btn,.btn-primary-rh,.btn-secondary-rh,.btn-icon,.btn-logout,
.stat-card,.emp-row,.rh-tab,.brand-btn,.modal-close,
.transfer-card,.notice-card,.vacancy-card,.training-card,
.dash-mov-item,.dash-act-item,.vg-store-item,.stat-card-add,
.rh-nav-btn-add,.btn-approve,.btn-reject { cursor:pointer; }

/* ── SCROLLBAR ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width:4px; height:4px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(17,17,17,0.30); border-radius:99px; }
::-webkit-scrollbar-thumb:hover { background:rgba(17,17,17,0.55); }

/* ================================================================
   OVERRIDE JS INLINE STYLES — corrige HTML hardcoded em dark mode
   ================================================================ */
html:not([data-theme="dark"]) [style*="background:#FFFFFF"],
html:not([data-theme="dark"]) [style*="background: #FFFFFF"],
html:not([data-theme="dark"]) [style*="background-color:#FFFFFF"] {
  background: #141416 !important; color: #F4F4F5 !important;
}
html:not([data-theme="dark"]) [style*="background:#F8FAFC"],
html:not([data-theme="dark"]) [style*="background: #F8FAFC"] {
  background: #0E0E10 !important;
}
html:not([data-theme="dark"]) [style*="background:#FFF5F5"],
html:not([data-theme="dark"]) [style*="background:#FFF7ED"],
html:not([data-theme="dark"]) [style*="background:#FFFBEB"],
html:not([data-theme="dark"]) [style*="background:#FFF0EF"],
html:not([data-theme="dark"]) [style*="background:#F0FFF4"],
html:not([data-theme="dark"]) [style*="background:#f4f4f5"] {
  background: #1C1C1F !important;
}
html:not([data-theme="dark"]) [style*="border:1px solid #E2E8F0"],
html:not([data-theme="dark"]) [style*="border: 1px solid #E2E8F0"],
html:not([data-theme="dark"]) [style*="border:1px solid #d4d4d8"] {
  border-color: rgba(255,255,255,0.10) !important;
}
html:not([data-theme="dark"]) [style*="color:#0F172A"],
html:not([data-theme="dark"]) [style*="color: #0F172A"],
html:not([data-theme="dark"]) [style*="color:#334155"],
html:not([data-theme="dark"]) [style*="color:#1E293B"] { color: #F4F4F5 !important; }
html:not([data-theme="dark"]) [style*="color:#64748B"],
html:not([data-theme="dark"]) [style*="color:#475569"],
html:not([data-theme="dark"]) [style*="color:#94A3B8"] { color: #A1A1AA !important; }

/* ================================================================
   DARK MODE — preto absoluto, bordas brancas, contraste total
   ================================================================ */

/* ── SIDEBAR ────────────────────────────────────────────────────── */
html:not([data-theme="dark"]) .rh-nav {
  background: #101012 !important;
  border-right: 1px solid rgba(148,163,184,0.08) !important;
  box-shadow: 4px 0 24px rgba(0,0,0,.55) !important;
}
html:not([data-theme="dark"]) .rh-nav-header {
  background: #101012 !important;
  border-bottom: 1px solid rgba(148,163,184,0.10) !important;
}
.rh-nav-btn { color: #A1A1AA !important; font-size: 13px !important; }
.rh-nav-btn.active {
  background: rgba(17,17,17,0.20) !important;
  border-left: 3px solid #111111 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  padding-left: 10px !important;
  box-shadow: none !important;
}
.rh-nav-btn:hover:not(.active) {
  background: rgba(255,255,255,0.06) !important;
  color: #F4F4F5 !important;
}
html:not([data-theme="dark"]) .rh-nav-label { color: #454F66 !important; font-size: 10px !important; }
html:not([data-theme="dark"]) .rh-nav-footer { border-top: 1px solid rgba(255,255,255,0.07) !important; }
.rh-nav-btn-add { border-color: rgba(17,17,17,0.35) !important; }
.rh-nav-btn-add:hover { background: rgba(17,17,17,0.22) !important; border-color: rgba(17,17,17,0.60) !important; }

/* ── HEADER ─────────────────────────────────────────────────────── */
html:not([data-theme="dark"]) .rh-header {
  background: #0A0A0B !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 1px 0 rgba(17,17,17,0.10) !important;
}

/* ── STAT CARDS — PRETO + BORDA BRANCA ──────────────────────────── */
.stat-card {
  background: #141416 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.80) !important;
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s ease, border-color .22s ease !important;
}
.stat-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(17,17,17,0.50) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,0.85), 0 0 32px rgba(17,17,17,0.22) !important;
}
.stat-card.active-stat:hover  { border-color:rgba(34,197,94,0.55) !important;  box-shadow:0 20px 48px rgba(0,0,0,.85),0 0 32px rgba(34,197,94,0.25) !important; }
.stat-card.fired-stat:hover   { border-color:rgba(239,68,68,0.55) !important;   box-shadow:0 20px 48px rgba(0,0,0,.85),0 0 32px rgba(239,68,68,0.22) !important; }
.stat-card.notice-stat:hover  { border-color:rgba(245,158,11,0.55) !important;  box-shadow:0 20px 48px rgba(0,0,0,.85),0 0 32px rgba(245,158,11,0.22) !important; }
.stat-card.turnover-stat:hover{ border-color:rgba(139,92,246,0.55) !important;  box-shadow:0 20px 48px rgba(0,0,0,.85),0 0 32px rgba(139,92,246,0.22) !important; }
.stat-card.transfer-stat:hover{ border-color:rgba(17,17,17,0.65) !important;  box-shadow:0 20px 48px rgba(0,0,0,.85),0 0 32px rgba(17,17,17,0.30) !important; }
.stat-card:hover .stat-icon   { opacity:.22 !important; }
html:not([data-theme="dark"]) .stat-num { color: #FFFFFF !important; }

/* ── DASHBOARD CARDS ────────────────────────────────────────────── */
html:not([data-theme="dark"]) .dash-card {
  background: #141416 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.80) !important;
}

/* ── FILTROS, TABELA ────────────────────────────────────────────── */
html:not([data-theme="dark"]) .filters-bar {
  background: #141416 !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  box-shadow: none !important;
}
html:not([data-theme="dark"]) .filter-select,
html:not([data-theme="dark"]) .filter-search input {
  background: #000000 !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: #F4F4F5 !important;
}
html:not([data-theme="dark"]) .emp-table {
  background: #141416 !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  box-shadow: none !important;
}
html:not([data-theme="dark"]) .emp-table-header { background: rgba(255,255,255,0.04) !important; }
.emp-row { border-bottom-color: rgba(255,255,255,0.06) !important; }
.emp-row:hover { background: rgba(17,17,17,0.10) !important; }
.emp-row:hover .emp-name { color: #7FAAFF !important; }

/* ── BOTÕES ─────────────────────────────────────────────────────── */
.btn-primary-rh {
  background: linear-gradient(135deg,#2870F0,#4E94FF) !important;
  box-shadow: 0 4px 20px rgba(17,17,17,0.55), inset 0 1px 0 rgba(255,255,255,0.22) !important;
  font-weight: 700 !important;
}
.btn-primary-rh:hover {
  background: linear-gradient(135deg,#3880FF,#60A5FF) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(17,17,17,0.70), 0 0 0 1px rgba(17,17,17,0.45) !important;
}
html:not([data-theme="dark"]) .btn-icon {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: #A1A1AA !important;
}
html:not([data-theme="dark"]) .btn-icon:hover,
html:not([data-theme="dark"]) .btn-logout:hover {
  background: rgba(17,17,17,0.15) !important;
  border-color: rgba(17,17,17,0.40) !important;
  color: #FFFFFF !important;
}
html:not([data-theme="dark"]) .btn-logout {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: #A1A1AA !important;
}

/* ── INPUTS ─────────────────────────────────────────────────────── */
input:focus, select:focus, textarea:focus {
  border-color: #111111 !important;
  box-shadow: 0 0 0 3px rgba(17,17,17,0.22), 0 0 0 1px rgba(17,17,17,0.55) !important;
  outline: none !important;
}

/* ── MODAIS ─────────────────────────────────────────────────────── */
html:not([data-theme="dark"]) .modal-overlay { background: rgba(0,0,0,0.90) !important; backdrop-filter:blur(8px); }
html:not([data-theme="dark"]) .modal-box {
  background: #141416 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 40px 100px rgba(0,0,0,0.92), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
html:not([data-theme="dark"]) .modal-header {
  background: rgba(17,17,17,0.05) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.modal-close:hover { background:rgba(239,68,68,0.18) !important; border-color:rgba(239,68,68,0.45) !important; color:#FC8181 !important; }

/* ── BADGES ─────────────────────────────────────────────────────── */
.badge-active    { background:rgba(34,197,94,0.15) !important; color:#4ADE80 !important; border:1px solid rgba(34,197,94,0.28) !important; }
.badge-notice    { background:rgba(245,158,11,0.15) !important; color:#FCD34D !important; border:1px solid rgba(245,158,11,0.28) !important; }
.badge-terminated{ background:rgba(239,68,68,0.15) !important; color:#FC8181 !important; border:1px solid rgba(239,68,68,0.28) !important; }

/* ── TABS ───────────────────────────────────────────────────────── */
html:not([data-theme="dark"]) .rh-tab {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: #A1A1AA !important;
}
.rh-tab.active {
  background: rgba(17,17,17,0.20) !important;
  color: #FFFFFF !important;
  border-color: rgba(17,17,17,0.40) !important;
  box-shadow: none !important;
}
.rh-tab:hover:not(.active) { background:rgba(255,255,255,0.08) !important; color:#F4F4F5 !important; }

/* ── CARDS MENORES ──────────────────────────────────────────────── */
html:not([data-theme="dark"]) .transfer-card,
html:not([data-theme="dark"]) .notice-card,
html:not([data-theme="dark"]) .integration-card,
html:not([data-theme="dark"]) .vacancy-card,
html:not([data-theme="dark"]) .training-card {
  background: #141416 !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  box-shadow: none !important;
}
.notice-card:hover,.vacancy-card:hover,.training-card:hover {
  background: #1C1C1F !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 32px rgba(0,0,0,0.70) !important;
}

/* ── ACTIVITY FEED & VG ─────────────────────────────────────────── */
html:not([data-theme="dark"]) .activity-feed,
html:not([data-theme="dark"]) .vg-store-list,
html:not([data-theme="dark"]) .vg-map-area,
html:not([data-theme="dark"]) .vg-rank,
html:not([data-theme="dark"]) .turnover-mini,
html:not([data-theme="dark"]) .turnover-bars {
  background: #141416 !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
}
html:not([data-theme="dark"]) .activity-feed-header { background: rgba(255,255,255,0.04) !important; border-bottom: 1px solid rgba(255,255,255,0.07) !important; }
.dash-act-item:hover, .dash-mov-item:hover { background:rgba(17,17,17,0.08) !important; }
.vg-store-item:hover  { background:rgba(17,17,17,0.10) !important; }
.vg-store-item.active { background:rgba(17,17,17,0.18) !important; border-color:rgba(17,17,17,0.35) !important; }

/* ── MISC DARK ──────────────────────────────────────────────────── */
html:not([data-theme="dark"]) .turnover-hero {
  background: linear-gradient(135deg, rgba(17,17,17,0.12), #141416) !important;
  border: 1px solid rgba(17,17,17,0.22) !important;
}
html:not([data-theme="dark"]) #notif-dropdown {
  background: #141416 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.90) !important;
}
html:not([data-theme="dark"]) .toast.info { background: #1C1C1F !important; border: 1px solid rgba(255,255,255,0.12) !important; }
html:not([data-theme="dark"]) .login-wrapper {
  background: #141416 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 44px 100px rgba(0,0,0,0.90) !important;
}
html:not([data-theme="dark"]) .role-card  { background:#141416 !important; border-color:rgba(255,255,255,0.12) !important; }
html:not([data-theme="dark"]) .role-opt   { background:#1C1C1F !important; border-color:rgba(255,255,255,0.10) !important; }
html:not([data-theme="dark"]) .stat-card-add { background:rgba(17,17,17,0.08) !important; border-color:rgba(17,17,17,0.42) !important; }
html:not([data-theme="dark"]) .stat-card-add:hover { background:rgba(17,17,17,0.18) !important; }
html:not([data-theme="dark"]) .brand-strip { background:#141416 !important; border-color:rgba(255,255,255,0.08) !important; }
html:not([data-theme="dark"]) .tb-bar-fill { background:rgba(17,17,17,0.70) !important; }
.neon-bar-fill { background:linear-gradient(90deg,#2870F0,#22D3EE) !important; box-shadow:0 0 12px rgba(17,17,17,0.65) !important; }
.dash-badge.aprovada { box-shadow:0 0 10px rgba(34,197,94,0.28), inset 0 0 0 1px rgba(34,197,94,0.22) !important; }
.dash-badge.pendente  { box-shadow:0 0 10px rgba(245,158,11,0.25), inset 0 0 0 1px rgba(245,158,11,0.22) !important; }
.dash-badge.analise   { box-shadow:0 0 10px rgba(17,17,17,0.28), inset 0 0 0 1px rgba(17,17,17,0.22) !important; }
.dash-badge.concluida { box-shadow:0 0 10px rgba(34,211,238,0.28), inset 0 0 0 1px rgba(34,211,238,0.22) !important; }
.dash-badge.rejeitada { box-shadow:0 0 10px rgba(239,68,68,0.25),  inset 0 0 0 1px rgba(239,68,68,0.22)  !important; }

/* ================================================================
   LIGHT MODE — html[data-theme="dark"] — Branco Puro / Dappr Style
   ================================================================ */

html[data-theme="dark"] .rh-nav {
  background: #FFFFFF !important;
  border-right: 1px solid #E2E8F0 !important;
  box-shadow: 2px 0 8px rgba(15,23,42,0.06) !important;
}
html[data-theme="dark"] .rh-nav-header { background:#FFFFFF !important; border-bottom:1px solid #E2E8F0 !important; }
html[data-theme="dark"] .rh-nav-btn { color:#475569 !important; }
html[data-theme="dark"] .rh-nav-btn.active {
  background: rgba(17,17,17,0.10) !important;
  border-left-color: #111111 !important;
  color: #111111 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .rh-nav-btn:hover:not(.active) { background:#F1F5F9 !important; color:#0F172A !important; }
html[data-theme="dark"] .rh-nav-label { color:#94A3B8 !important; }
html[data-theme="dark"] .rh-header { background:#FFFFFF !important; border-bottom:1px solid #E2E8F0 !important; box-shadow:0 1px 4px rgba(15,23,42,0.06) !important; }
html[data-theme="dark"] .stat-card { background:#FFFFFF !important; border:1px solid #E2E8F0 !important; box-shadow:0 1px 3px rgba(15,23,42,0.06),0 4px 16px rgba(15,23,42,0.04) !important; }
html[data-theme="dark"] .stat-card:hover { transform:translateY(-3px) !important; box-shadow:0 8px 28px rgba(15,23,42,0.10) !important; border-color:#CBD5E1 !important; }
html[data-theme="dark"] .stat-num { color:#0F172A !important; }
html[data-theme="dark"] .dash-card { background:#FFFFFF !important; border:1px solid #E2E8F0 !important; box-shadow:0 1px 3px rgba(15,23,42,0.06),0 4px 16px rgba(15,23,42,0.04) !important; }
html[data-theme="dark"] .filters-bar { background:#FFFFFF !important; border:1px solid #E2E8F0 !important; box-shadow:0 1px 4px rgba(15,23,42,0.05) !important; }
html[data-theme="dark"] .emp-table { background:#FFFFFF !important; border:1px solid #E2E8F0 !important; box-shadow:0 1px 3px rgba(15,23,42,0.06) !important; }
html[data-theme="dark"] .emp-row:hover { background:#F8FAFC !important; }
html[data-theme="dark"] .emp-row { border-bottom-color: #EEF2F8 !important; }
html[data-theme="dark"] .btn-primary-rh { background:linear-gradient(135deg,#111111,#4338CA) !important; box-shadow:0 2px 8px rgba(17,17,17,0.30) !important; }
html[data-theme="dark"] .btn-primary-rh:hover { box-shadow:0 6px 20px rgba(17,17,17,0.42) !important; transform:translateY(-1px) !important; }
html[data-theme="dark"] .btn-icon:hover,.btn-logout:hover { background:#F1F5F9 !important; color:#0F172A !important; border-color:#CBD5E1 !important; }
html[data-theme="dark"] .modal-overlay { background:rgba(15,23,42,0.55) !important; }
html[data-theme="dark"] .modal-box { background:#FFFFFF !important; border:1px solid #E2E8F0 !important; box-shadow:0 24px 60px rgba(15,23,42,0.14) !important; }
html[data-theme="dark"] .modal-header { background:#FFFFFF !important; border-bottom:1px solid #E2E8F0 !important; }
html[data-theme="dark"] .rh-tab { background:#FFFFFF !important; color:#475569 !important; border-color:#E2E8F0 !important; }
html[data-theme="dark"] .rh-tab.active { background:#111111 !important; color:#FFFFFF !important; border-color:#111111 !important; box-shadow:0 2px 8px rgba(17,17,17,0.30) !important; }
html[data-theme="dark"] .rh-tab:hover:not(.active) { background:#F1F5F9 !important; color:#0F172A !important; }
html[data-theme="dark"] .badge-active    { background:#DCFCE7 !important; color:#166534 !important; border-color:#BBF7D0 !important; }
html[data-theme="dark"] .badge-notice    { background:#FEF9C3 !important; color:#854D0E !important; border-color:#FDE68A !important; }
html[data-theme="dark"] .badge-terminated{ background:#FEE2E2 !important; color:#991B1B !important; border-color:#FECACA !important; }
html[data-theme="dark"] .transfer-card,
html[data-theme="dark"] .notice-card,
html[data-theme="dark"] .integration-card,
html[data-theme="dark"] .vacancy-card,
html[data-theme="dark"] .training-card { background:#FFFFFF !important; border:1px solid #E2E8F0 !important; box-shadow:0 1px 4px rgba(15,23,42,0.05) !important; }
html[data-theme="dark"] .notice-card:hover,
html[data-theme="dark"] .vacancy-card:hover,
html[data-theme="dark"] .training-card:hover { background:#F8FAFC !important; box-shadow:0 4px 16px rgba(15,23,42,0.09) !important; transform:translateY(-1px) !important; }
html[data-theme="dark"] .activity-feed,
html[data-theme="dark"] .vg-store-list,
html[data-theme="dark"] .vg-map-area,
html[data-theme="dark"] .vg-rank,
html[data-theme="dark"] .turnover-mini,
html[data-theme="dark"] .turnover-bars { background:#FFFFFF !important; border:1px solid #E2E8F0 !important; box-shadow:0 1px 4px rgba(15,23,42,0.05) !important; }
html[data-theme="dark"] .activity-feed-header { background:#F8FAFC !important; border-bottom:1px solid #E2E8F0 !important; }
html[data-theme="dark"] .dash-act-item:hover,
html[data-theme="dark"] .dash-mov-item:hover { background:#F8FAFC !important; }
html[data-theme="dark"] #notif-dropdown { background:#FFFFFF !important; border:1px solid #E2E8F0 !important; box-shadow:0 12px 40px rgba(15,23,42,0.12) !important; }
html[data-theme="dark"] .turnover-hero { background:linear-gradient(135deg,rgba(17,17,17,0.06),#FFFFFF) !important; border:1px solid #E2E8F0 !important; }
html[data-theme="dark"] .tb-bar-fill { background:#111111 !important; }
html[data-theme="dark"] .login-wrapper { background:#FFFFFF !important; border:1px solid #E2E8F0 !important; box-shadow:0 24px 60px rgba(15,23,42,0.12) !important; }
html[data-theme="dark"] .stat-card-add { background:rgba(17,17,17,0.06) !important; border-color:rgba(17,17,17,0.35) !important; }
html[data-theme="dark"] .vg-store-item.active { background:rgba(17,17,17,0.08) !important; border-color:rgba(17,17,17,0.25) !important; }

/* ── REDUCED MOTION ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { transition-duration:.01ms !important; animation-duration:.01ms !important; }
}

/* ================================================================
   PREMIUM v7 — PRETO/GRAFITE NEUTRO + GLASSMORPHISM
   Superfícies do dark mode em preto neutro (sem azul); accent azul mantido.
   Separado para não quebrar o histórico acima.
   ================================================================ */

/* ── TIPOGRAFIA: Poppins para display ──────────────────────────── */
html:not([data-theme="dark"]) .stat-num,
html:not([data-theme="dark"]) .modal-title,
html:not([data-theme="dark"]) .dash-greeting-title,
html:not([data-theme="dark"]) .rh-logo,
html:not([data-theme="dark"]) .rh-nav-brand { font-family: 'Poppins', var(--font-body) !important; }

/* ── FUNDO PRINCIPAL — midnight navy ───────────────────────────── */
html:not([data-theme="dark"]) body { background: #0A0A0B !important; }

/* ── SIDEBAR ────────────────────────────────────────────────────── */
html:not([data-theme="dark"]) .rh-nav {
  background: #101012 !important;
  border-right: 1px solid rgba(148,163,184,0.08) !important;
  box-shadow: 4px 0 24px rgba(0,0,0,.55), 0 0 0 1px rgba(148,163,184,.06) !important;
}
html:not([data-theme="dark"]) .rh-nav-header {
  background: #101012 !important;
  border-bottom: 1px solid rgba(148,163,184,0.10) !important;
}
html:not([data-theme="dark"]) .rh-nav-footer {
  border-top: 1px solid rgba(148,163,184,0.07) !important;
}

/* ── HEADER ─────────────────────────────────────────────────────── */
html:not([data-theme="dark"]) .rh-header {
  background: rgba(16,16,18,0.90) !important;
  border-bottom: 1px solid rgba(148,163,184,0.09) !important;
  box-shadow: 0 1px 0 rgba(17,17,17,0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* ── GLASSMORPHISM — STAT CARDS ─────────────────────────────────── */
html:not([data-theme="dark"]) .stat-card {
  background: rgba(20,20,22,0.85) !important;
  border: 1px solid rgba(148,163,184,0.12) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.65), 0 0 0 1px rgba(148,163,184,.06) !important;
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s ease, border-color .22s ease !important;
}
html:not([data-theme="dark"]) .stat-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(17,17,17,0.45) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.80), 0 0 0 1px rgba(17,17,17,.30), 0 0 40px rgba(17,17,17,.18) !important;
}
html:not([data-theme="dark"]) .stat-card.active-stat:hover {
  border-color: rgba(34,197,94,0.50) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.80), 0 0 0 1px rgba(34,197,94,.28), 0 0 36px rgba(34,197,94,.20) !important;
}
html:not([data-theme="dark"]) .stat-card.fired-stat:hover {
  border-color: rgba(248,113,113,0.50) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.80), 0 0 0 1px rgba(248,113,113,.28), 0 0 36px rgba(248,113,113,.18) !important;
}
html:not([data-theme="dark"]) .stat-card.notice-stat:hover {
  border-color: rgba(251,191,36,0.50) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.80), 0 0 0 1px rgba(251,191,36,.28), 0 0 36px rgba(251,191,36,.18) !important;
}
html:not([data-theme="dark"]) .stat-card.turnover-stat:hover {
  border-color: rgba(113,113,122,0.50) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.80), 0 0 0 1px rgba(113,113,122,.28), 0 0 36px rgba(113,113,122,.18) !important;
}
html:not([data-theme="dark"]) .stat-card.transfer-stat:hover {
  border-color: rgba(17,17,17,0.60) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.80), 0 0 0 1px rgba(17,17,17,.38), 0 0 44px rgba(17,17,17,.22) !important;
}

/* ── GLASSMORPHISM — DASHBOARD CARDS ────────────────────────────── */
html:not([data-theme="dark"]) .dash-card,
html:not([data-theme="dark"]) .filters-bar,
html:not([data-theme="dark"]) .emp-table,
html:not([data-theme="dark"]) .activity-feed,
html:not([data-theme="dark"]) .vg-store-list,
html:not([data-theme="dark"]) .vg-map-area,
html:not([data-theme="dark"]) .vg-rank,
html:not([data-theme="dark"]) .turnover-mini,
html:not([data-theme="dark"]) .turnover-bars,
html:not([data-theme="dark"]) .brand-strip {
  background: rgba(20,20,22,0.85) !important;
  border: 1px solid rgba(148,163,184,0.11) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.60), 0 0 0 1px rgba(148,163,184,.05) !important;
}

/* ── GLASSMORPHISM — CARDS MENORES ──────────────────────────────── */
html:not([data-theme="dark"]) .transfer-card,
html:not([data-theme="dark"]) .notice-card,
html:not([data-theme="dark"]) .integration-card,
html:not([data-theme="dark"]) .vacancy-card,
html:not([data-theme="dark"]) .training-card {
  background: rgba(20,20,22,0.85) !important;
  border: 1px solid rgba(148,163,184,0.10) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.50) !important;
}
html:not([data-theme="dark"]) .notice-card:hover,
html:not([data-theme="dark"]) .vacancy-card:hover,
html:not([data-theme="dark"]) .training-card:hover {
  background: rgba(28,28,31,0.90) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 32px rgba(0,0,0,.70), 0 0 0 1px rgba(148,163,184,.14) !important;
}

/* ── GLASSMORPHISM — MODAIS ─────────────────────────────────────── */
html:not([data-theme="dark"]) .modal-overlay {
  background: rgba(0,0,0,0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
html:not([data-theme="dark"]) .modal-box {
  background: rgba(20,20,22,0.95) !important;
  border: 1px solid rgba(148,163,184,0.14) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 40px 100px rgba(0,0,0,.92), 0 0 0 1px rgba(17,17,17,.06) !important;
}
html:not([data-theme="dark"]) .modal-header {
  background: rgba(17,17,17,0.05) !important;
  border-bottom: 1px solid rgba(148,163,184,0.10) !important;
}

/* ── GLASSMORPHISM — NOTIF, TOAST, LOGIN ────────────────────────── */
html:not([data-theme="dark"]) #notif-dropdown {
  background: rgba(20,20,22,0.95) !important;
  border: 1px solid rgba(148,163,184,0.13) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.90) !important;
}
html:not([data-theme="dark"]) .toast.info {
  background: rgba(28,28,31,0.96) !important;
  border: 1px solid rgba(148,163,184,0.14) !important;
  backdrop-filter: blur(12px) !important;
}
html:not([data-theme="dark"]) .login-wrapper {
  background: rgba(20,20,22,0.92) !important;
  border: 1px solid rgba(148,163,184,0.14) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 48px 100px rgba(0,0,0,.92) !important;
}
html:not([data-theme="dark"]) .role-card  { background: rgba(20,20,22,0.90) !important; border-color: rgba(148,163,184,0.13) !important; }
html:not([data-theme="dark"]) .role-opt   { background: rgba(28,28,31,0.90) !important; border-color: rgba(148,163,184,0.10) !important; }

/* ── INPUTS ─────────────────────────────────────────────────────── */
html:not([data-theme="dark"]) .filter-select,
html:not([data-theme="dark"]) .filter-search input {
  background: rgba(0,0,0,0.90) !important;
  border-color: rgba(148,163,184,0.14) !important;
  color: #F4F4F5 !important;
}
html:not([data-theme="dark"]) .filter-select:focus,
html:not([data-theme="dark"]) .filter-search input:focus {
  border-color: rgba(17,17,17,0.60) !important;
  box-shadow: 0 0 0 3px rgba(17,17,17,.18), 0 0 0 1px rgba(17,17,17,.50) !important;
}

/* ── TABELA ─────────────────────────────────────────────────────── */
html:not([data-theme="dark"]) .emp-table-header {
  background: rgba(0,0,0,0.60) !important;
  border-bottom: 1px solid rgba(148,163,184,0.10) !important;
}
html:not([data-theme="dark"]) .emp-row { border-bottom-color: rgba(148,163,184,0.07) !important; }
html:not([data-theme="dark"]) .emp-row:hover {
  background: rgba(17,17,17,0.08) !important;
}
html:not([data-theme="dark"]) .emp-row:hover .emp-name { color: #7FAAFF !important; }

/* ── BOTÃO PRIMÁRIO ─────────────────────────────────────────────── */
html:not([data-theme="dark"]) .btn-primary-rh {
  background: linear-gradient(135deg,#2060E8,#4D8BFF) !important;
  box-shadow: 0 4px 20px rgba(17,17,17,.55), inset 0 1px 0 rgba(255,255,255,.20) !important;
}
html:not([data-theme="dark"]) .btn-primary-rh:hover {
  background: linear-gradient(135deg,#3070F4,#818CF8) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(17,17,17,.65), 0 0 0 1px rgba(17,17,17,.40) !important;
}
html:not([data-theme="dark"]) .btn-icon {
  background: rgba(148,163,184,0.06) !important;
  border-color: rgba(148,163,184,0.12) !important;
  color: #A1A1AA !important;
}
html:not([data-theme="dark"]) .btn-icon:hover,
html:not([data-theme="dark"]) .btn-logout:hover {
  background: rgba(17,17,17,0.14) !important;
  border-color: rgba(17,17,17,0.38) !important;
  color: #F4F4F5 !important;
  box-shadow: 0 0 12px rgba(17,17,17,.18) !important;
}
html:not([data-theme="dark"]) .btn-logout {
  background: rgba(148,163,184,0.05) !important;
  border-color: rgba(148,163,184,0.11) !important;
  color: #A1A1AA !important;
}

/* ── NAV BTN ACTIVE — anel elétrico ─────────────────────────────── */
html:not([data-theme="dark"]) .rh-nav-btn.active {
  background: rgba(17,17,17,0.18) !important;
  border-left: 3px solid #111111 !important;
  color: #F4F4F5 !important;
  font-weight: 700 !important;
  padding-left: 10px !important;
  box-shadow: inset 0 0 20px rgba(17,17,17,.08) !important;
}
html:not([data-theme="dark"]) .rh-nav-btn:hover:not(.active) {
  background: rgba(148,163,184,0.07) !important;
  color: #F4F4F5 !important;
}

/* ── TABS ───────────────────────────────────────────────────────── */
html:not([data-theme="dark"]) .rh-tab {
  background: rgba(148,163,184,0.06) !important;
  border-color: rgba(148,163,184,0.11) !important;
  color: #A1A1AA !important;
}
html:not([data-theme="dark"]) .rh-tab.active {
  background: rgba(17,17,17,0.18) !important;
  color: #F4F4F5 !important;
  border-color: rgba(17,17,17,0.38) !important;
  box-shadow: 0 0 12px rgba(17,17,17,.16) !important;
}
html:not([data-theme="dark"]) .rh-tab:hover:not(.active) {
  background: rgba(148,163,184,0.10) !important;
  color: #F4F4F5 !important;
}

/* ── MISC DARK v6 ───────────────────────────────────────────────── */
html:not([data-theme="dark"]) .turnover-hero {
  background: linear-gradient(135deg, rgba(17,17,17,0.12), rgba(20,20,22,0.85)) !important;
  border: 1px solid rgba(17,17,17,0.20) !important;
  backdrop-filter: blur(12px) !important;
}
html:not([data-theme="dark"]) .activity-feed-header {
  background: rgba(0,0,0,0.55) !important;
  border-bottom: 1px solid rgba(148,163,184,0.08) !important;
}
html:not([data-theme="dark"]) .stat-card-add {
  background: rgba(17,17,17,0.08) !important;
  border-color: rgba(17,17,17,0.40) !important;
}
html:not([data-theme="dark"]) .stat-card-add:hover {
  background: rgba(17,17,17,0.16) !important;
  box-shadow: 0 0 24px rgba(17,17,17,.22) !important;
}

/* ── ACTIVITY FEED — hover ──────────────────────────────────────── */
html:not([data-theme="dark"]) .dash-act-item:hover,
html:not([data-theme="dark"]) .dash-mov-item:hover {
  background: rgba(17,17,17,0.07) !important;
}
html:not([data-theme="dark"]) .vg-store-item:hover  { background: rgba(17,17,17,0.09) !important; }
html:not([data-theme="dark"]) .vg-store-item.active {
  background: rgba(17,17,17,0.16) !important;
  border-color: rgba(17,17,17,0.32) !important;
}

/* ── NEON BAR ───────────────────────────────────────────────────── */
html:not([data-theme="dark"]) .neon-bar-fill {
  background: linear-gradient(90deg,#2060E8,#06B6D4) !important;
  box-shadow: 0 0 14px rgba(17,17,17,.60) !important;
}
html:not([data-theme="dark"]) .tb-bar-fill { background: rgba(17,17,17,.68) !important; }

/* ── INLINE STYLE OVERRIDES — midnight navy ─────────────────────── */
html:not([data-theme="dark"]) [style*="background:#FFFFFF"],
html:not([data-theme="dark"]) [style*="background: #FFFFFF"],
html:not([data-theme="dark"]) [style*="background-color:#FFFFFF"] {
  background: rgba(20,20,22,0.90) !important; color: #F4F4F5 !important;
}
html:not([data-theme="dark"]) [style*="background:#F8FAFC"],
html:not([data-theme="dark"]) [style*="background: #F8FAFC"] {
  background: rgba(18,18,20,0.90) !important;
}
html:not([data-theme="dark"]) [style*="background:#FFF5F5"],
html:not([data-theme="dark"]) [style*="background:#FFF7ED"],
html:not([data-theme="dark"]) [style*="background:#FFFBEB"],
html:not([data-theme="dark"]) [style*="background:#FFF0EF"],
html:not([data-theme="dark"]) [style*="background:#F0FFF4"],
html:not([data-theme="dark"]) [style*="background:#f4f4f5"] {
  background: rgba(28,28,31,0.90) !important;
}
html:not([data-theme="dark"]) [style*="border:1px solid #E2E8F0"],
html:not([data-theme="dark"]) [style*="border: 1px solid #E2E8F0"],
html:not([data-theme="dark"]) [style*="border:1px solid #d4d4d8"] {
  border-color: rgba(148,163,184,0.11) !important;
}
html:not([data-theme="dark"]) [style*="color:#0F172A"],
html:not([data-theme="dark"]) [style*="color: #0F172A"],
html:not([data-theme="dark"]) [style*="color:#334155"],
html:not([data-theme="dark"]) [style*="color:#1E293B"] { color: #F4F4F5 !important; }
html:not([data-theme="dark"]) [style*="color:#64748B"],
html:not([data-theme="dark"]) [style*="color:#475569"],
html:not([data-theme="dark"]) [style*="color:#94A3B8"] { color: #A1A1AA !important; }

/* ── SCROLLBAR v6 ───────────────────────────────────────────────── */
html:not([data-theme="dark"]) ::-webkit-scrollbar-thumb { background: rgba(17,17,17,.28) !important; }
html:not([data-theme="dark"]) ::-webkit-scrollbar-thumb:hover { background: rgba(17,17,17,.50) !important; }

/* ── FOCUS RING GLOBAL ──────────────────────────────────────────── */
html:not([data-theme="dark"]) input:focus,
html:not([data-theme="dark"]) select:focus,
html:not([data-theme="dark"]) textarea:focus {
  border-color: rgba(17,17,17,.60) !important;
  box-shadow: 0 0 0 3px rgba(17,17,17,.18), 0 0 0 1px rgba(17,17,17,.50) !important;
  outline: none !important;
}

/* ── REDUCED MOTION (duplicate guard) ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { transition-duration:.01ms !important; animation-duration:.01ms !important; }
}

/* ================================================================
   LIGHT MODE GLOWS — html[data-theme="dark"]
   Adiciona profundidade e vida ao tema claro sem perder a limpeza.
   Princípio: glow colorido no hover + ring sutil no repouso.
   ================================================================ */

/* ── STAT CARDS — glow colorido por tipo ────────────────────────── */
html[data-theme="dark"] .stat-card {
  transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s ease, border-color .22s ease !important;
}
html[data-theme="dark"] .stat-card:hover {
  transform: translateY(-5px) !important;
  box-shadow:
    0 2px 4px rgba(17,17,17,0.06),
    0 8px 24px rgba(17,17,17,0.14),
    0 0 0 1px rgba(17,17,17,0.20) !important;
  border-color: rgba(17,17,17,0.35) !important;
}
html[data-theme="dark"] .stat-card.active-stat:hover {
  box-shadow:
    0 2px 4px rgba(22,163,74,0.08),
    0 8px 28px rgba(22,163,74,0.20),
    0 0 0 1px rgba(22,163,74,0.30) !important;
  border-color: rgba(22,163,74,0.40) !important;
}
html[data-theme="dark"] .stat-card.fired-stat:hover {
  box-shadow:
    0 2px 4px rgba(220,38,38,0.08),
    0 8px 28px rgba(220,38,38,0.18),
    0 0 0 1px rgba(220,38,38,0.28) !important;
  border-color: rgba(220,38,38,0.38) !important;
}
html[data-theme="dark"] .stat-card.notice-stat:hover {
  box-shadow:
    0 2px 4px rgba(217,119,6,0.08),
    0 8px 28px rgba(217,119,6,0.18),
    0 0 0 1px rgba(217,119,6,0.28) !important;
  border-color: rgba(217,119,6,0.38) !important;
}
html[data-theme="dark"] .stat-card.turnover-stat:hover {
  box-shadow:
    0 2px 4px rgba(124,58,237,0.08),
    0 8px 28px rgba(124,58,237,0.18),
    0 0 0 1px rgba(124,58,237,0.28) !important;
  border-color: rgba(124,58,237,0.35) !important;
}
html[data-theme="dark"] .stat-card.transfer-stat:hover {
  box-shadow:
    0 2px 4px rgba(17,17,17,0.10),
    0 8px 32px rgba(17,17,17,0.22),
    0 0 0 1px rgba(17,17,17,0.35) !important;
  border-color: rgba(17,17,17,0.45) !important;
}

/* ── BOTÃO PRIMÁRIO — glow elétrico ─────────────────────────────── */
html[data-theme="dark"] .btn-primary-rh {
  box-shadow: 0 2px 10px rgba(17,17,17,0.35), 0 0 0 1px rgba(17,17,17,0.15) !important;
}
html[data-theme="dark"] .btn-primary-rh:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 6px 24px rgba(17,17,17,0.50),
    0 0 0 1px rgba(17,17,17,0.28),
    0 0 40px rgba(17,17,17,0.14) !important;
}

/* ── TAB ATIVA ───────────────────────────────────────────────────── */
html[data-theme="dark"] .rh-tab.active {
  box-shadow:
    0 2px 10px rgba(17,17,17,0.40),
    0 0 0 1px rgba(17,17,17,0.20),
    inset 0 1px 0 rgba(255,255,255,0.25) !important;
}

/* ── NAV BTN ATIVO — faixa lateral com glow ─────────────────────── */
html[data-theme="dark"] .rh-nav-btn.active {
  box-shadow:
    inset 0 0 16px rgba(17,17,17,0.06),
    2px 0 12px rgba(17,17,17,0.08) !important;
}

/* ── CARDS DASHBOARD — elevação no hover ────────────────────────── */
html[data-theme="dark"] .dash-card:hover,
html[data-theme="dark"] .activity-feed:hover {
  box-shadow:
    0 4px 12px rgba(15,23,42,0.10),
    0 0 0 1px rgba(17,17,17,0.12) !important;
  border-color: rgba(17,17,17,0.18) !important;
  transition: box-shadow .22s ease, border-color .22s ease !important;
}

/* ── CARDS LATERAIS — glow sutil por cor da borda ───────────────── */
html[data-theme="dark"] .notice-card:hover {
  box-shadow:
    0 4px 16px rgba(217,119,6,0.14),
    0 0 0 1px rgba(217,119,6,0.20) !important;
  border-color: rgba(217,119,6,0.40) !important;
}
html[data-theme="dark"] .vacancy-card:hover {
  box-shadow:
    0 4px 16px rgba(22,163,74,0.14),
    0 0 0 1px rgba(22,163,74,0.22) !important;
  border-color: rgba(22,163,74,0.38) !important;
}
html[data-theme="dark"] .training-card:hover {
  box-shadow:
    0 4px 16px rgba(8,145,178,0.14),
    0 0 0 1px rgba(8,145,178,0.22) !important;
  border-color: rgba(8,145,178,0.35) !important;
}

/* ── LINHA DE FUNCIONÁRIO — ring suave ──────────────────────────── */
html[data-theme="dark"] .emp-row:hover {
  background: #F0F7FF !important;
  box-shadow: inset 0 0 0 1px rgba(17,17,17,0.10) !important;
}
html[data-theme="dark"] .emp-row:hover .emp-name { color: #111111 !important; }

/* ── INPUT FOCUS — ring azul claro ──────────────────────────────── */
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  border-color: #111111 !important;
  box-shadow: 0 0 0 3px rgba(17,17,17,0.15), 0 0 0 1px #111111 !important;
  outline: none !important;
}

/* ── BOTÕES ICON NO HEADER ───────────────────────────────────────── */
html[data-theme="dark"] .btn-icon:hover {
  background: rgba(17,17,17,0.08) !important;
  border-color: rgba(17,17,17,0.25) !important;
  color: #111111 !important;
  box-shadow: 0 0 12px rgba(17,17,17,0.14) !important;
}

/* ── TURNOVER HERO — gradiente + ring ──────────────────────────── */
html[data-theme="dark"] .turnover-hero {
  background: linear-gradient(135deg,rgba(17,17,17,0.07),#FFFFFF) !important;
  border: 1px solid rgba(17,17,17,0.18) !important;
  box-shadow: 0 0 0 1px rgba(17,17,17,0.08), 0 4px 20px rgba(17,17,17,0.06) !important;
}

/* ================================================================
   GLOBAL — AMBOS OS MODOS (sem prefixo de tema)
   Regras que se aplicam tanto no claro quanto no escuro.
   ================================================================ */

/* ── NAV HEADER — layout horizontal, altura alinhada ────────────── */
.rh-nav-header {
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 0 16px !important;
  gap: 10px !important;
}
/* Logo segue o modo (02-layout.css define filter por modo) */
.rh-nav-logo-img {
  height: 24px !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important;
}
/* Brand: cor via variável do modo */
.rh-nav-brand {
  font-family: 'Poppins', var(--font-body) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.10em !important;
  text-align: left !important;
  color: var(--text-main) !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
}

/* ── TOPBAR — mesma altura da nav-header ─────────────────────────── */
.rh-header {
  height: 60px !important;
  min-height: 60px !important;
}
/* Sidebar respeita a nova altura */
.rh-nav { height: 100vh !important; }

/* ── TÍTULO DO TOPBAR — Poppins maior ───────────────────────────── */
.rh-logo {
  font-family: 'Poppins', var(--font-body) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* ── FUNDO DO CORPO — gradiente sombra, sem barra na frente ─────── */
/* Modo escuro: radial glow no fundo, atrás do conteúdo */
html:not([data-theme="dark"]) body {
  background:
    radial-gradient(ellipse 55% 45% at 15% 12%, rgba(255,255,255,0.03) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 88% 88%, rgba(255,255,255,0.02) 0%, transparent 60%),
    #0A0A0B !important;
  background-attachment: fixed !important;
}
/* Modo claro: vignette neutro, sem azul */
html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(15,23,42,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(15,23,42,0.04) 0%, transparent 60%),
    #F1F5F9 !important;
  background-attachment: fixed !important;
}

/* ── SIDEBAR MODO CLARO — sombra lateral ────────────────────────── */
html[data-theme="dark"] .rh-nav {
  background: #FFFFFF !important;
  border-right: 1px solid #E2E8F0 !important;
  box-shadow: 4px 0 24px rgba(15,23,42,0.10), 1px 0 0 #E8EDF5 !important;
}

/* ── TOPBAR MODO CLARO ───────────────────────────────────────────── */
html[data-theme="dark"] .rh-header {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 16px rgba(15,23,42,0.08), 0 1px 0 #E8EDF5 !important;
}
html[data-theme="dark"] .rh-logo { color: #0F172A !important; }
html[data-theme="dark"] .rh-header-left { gap: 16px !important; }

/* ── TOPBAR MODO ESCURO ──────────────────────────────────────────── */
html:not([data-theme="dark"]) .rh-header {
  background: rgba(16,16,18,0.92) !important;
  border-bottom: 1px solid rgba(148,163,184,0.09) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 1px 0 rgba(17,17,17,0.08) !important;
}
html:not([data-theme="dark"]) .rh-logo { color: #F4F4F5 !important; }

/* ── MAIN CONTENT ─────────────────────────────────────────────────── */
html[data-theme="dark"] .rh-main  { background: transparent !important; }
html:not([data-theme="dark"]) .rh-main { background: transparent !important; }

/* ── STAT CARDS MODO CLARO — sombra colorida em repouso ─────────── */
html[data-theme="dark"] .stat-card {
  background: #FFFFFF !important;
  border: 1px solid #E8EDF5 !important;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 4px 16px rgba(15,23,42,0.06) !important;
}
html[data-theme="dark"] .stat-card.active-stat   { box-shadow: 0 2px 8px rgba(22,163,74,0.14),  0 4px 20px rgba(22,163,74,0.08)  !important; }
html[data-theme="dark"] .stat-card.fired-stat    { box-shadow: 0 2px 8px rgba(220,38,38,0.12),  0 4px 20px rgba(220,38,38,0.07)  !important; }
html[data-theme="dark"] .stat-card.notice-stat   { box-shadow: 0 2px 8px rgba(217,119,6,0.14),  0 4px 20px rgba(217,119,6,0.08)  !important; }
html[data-theme="dark"] .stat-card.turnover-stat { box-shadow: 0 2px 8px rgba(124,58,237,0.12), 0 4px 20px rgba(124,58,237,0.07) !important; }
html[data-theme="dark"] .stat-card.transfer-stat { box-shadow: 0 2px 8px rgba(17,17,17,0.14), 0 4px 20px rgba(17,17,17,0.08) !important; }

/* ── DASHBOARD CARDS MODO CLARO — elevação real ─────────────────── */
html[data-theme="dark"] .dash-card,
html[data-theme="dark"] .emp-table,
html[data-theme="dark"] .filters-bar,
html[data-theme="dark"] .activity-feed,
html[data-theme="dark"] .vg-store-list,
html[data-theme="dark"] .vg-map-area,
html[data-theme="dark"] .vg-rank,
html[data-theme="dark"] .turnover-mini,
html[data-theme="dark"] .turnover-bars {
  background: #FFFFFF !important;
  border: 1px solid #E8EDF5 !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 4px 16px rgba(15,23,42,0.07), 0 8px 32px rgba(15,23,42,0.04) !important;
}

/* ── CARDS LATERAIS MODO CLARO ───────────────────────────────────── */
html[data-theme="dark"] .transfer-card,
html[data-theme="dark"] .notice-card,
html[data-theme="dark"] .integration-card,
html[data-theme="dark"] .vacancy-card,
html[data-theme="dark"] .training-card {
  background: #FFFFFF !important;
  border: 1px solid #E8EDF5 !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06), 0 4px 16px rgba(15,23,42,0.04) !important;
}

/* ── MODAL MODO CLARO — sombra dramática ─────────────────────────── */
html[data-theme="dark"] .modal-overlay { background: rgba(15,23,42,0.50) !important; backdrop-filter: blur(6px) !important; }
html[data-theme="dark"] .modal-box {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 8px 32px rgba(15,23,42,0.12), 0 32px 80px rgba(15,23,42,0.16), 0 0 0 1px rgba(17,17,17,0.06) !important;
}

/* ── STAT NUM — bold em ambos os modos ───────────────────────────── */
.stat-num {
  font-family: 'Poppins', var(--font-body) !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}
html[data-theme="dark"] .stat-num { color: #0F172A !important; }

/* ── topbar mesma altura nos dois modos ─────────────────────────── */
html[data-theme="dark"] .rh-header,
html:not([data-theme="dark"]) .rh-header {
  height: 60px !important;
  min-height: 60px !important;
}

/* ================================================================
   v8 — CHROME MONOCROMÁTICO (preto/grafite · branco)
   Accent do "chrome" (botões, nav/tab ativos, links, eyebrow, foco,
   scrollbar, hovers) em tons NEUTROS. KPIs mantêm cor semântica.
   Aplica nos DOIS modos. Última camada → vence o azul anterior.
   ================================================================ */

/* Variáveis de accent → neutras (pega usos via var()) */
:root            { --accent:#E4E4E7 !important; --accent-hover:#FFFFFF !important; --accent-cyan:#A1A1AA !important; }
[data-theme="dark"] { --accent:#18181B !important; --accent-hover:#27272A !important; --accent-cyan:#52525B !important; }

/* Eyebrow / links → neutro (ambos os modos) */
.dash-greeting-label { color: var(--accent-cyan) !important; }
.dash-act-text .dash-act-link { color: var(--text-main) !important; font-weight:700 !important; }

/* ───────── DARK (html sem data-theme) — accent BRANCO/zinc ───────── */
html:not([data-theme="dark"]) .btn-primary-rh {
  background:#F4F4F5 !important; color:#0A0A0B !important;
  box-shadow:0 4px 18px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.6) !important; font-weight:700 !important;
}
html:not([data-theme="dark"]) .btn-primary-rh:hover {
  background:#FFFFFF !important; transform:translateY(-2px) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.25) !important;
}
html:not([data-theme="dark"]) .rh-nav-btn.active {
  background:rgba(255,255,255,0.10) !important; border-left:3px solid #F4F4F5 !important;
  color:#FFFFFF !important; box-shadow:none !important;
}
html:not([data-theme="dark"]) .rh-nav-btn:hover:not(.active) { background:rgba(255,255,255,0.06) !important; color:#F4F4F5 !important; }
html:not([data-theme="dark"]) .rh-tab.active {
  background:rgba(255,255,255,0.12) !important; color:#FFFFFF !important;
  border-color:rgba(255,255,255,0.22) !important; box-shadow:none !important;
}
html:not([data-theme="dark"]) .rh-tab:hover:not(.active) { background:rgba(255,255,255,0.07) !important; color:#F4F4F5 !important; }
html:not([data-theme="dark"]) .btn-icon:hover,
html:not([data-theme="dark"]) .btn-logout:hover {
  background:rgba(255,255,255,0.10) !important; border-color:rgba(255,255,255,0.22) !important; color:#FFFFFF !important; box-shadow:none !important;
}
html:not([data-theme="dark"]) input:focus,
html:not([data-theme="dark"]) select:focus,
html:not([data-theme="dark"]) textarea:focus,
html:not([data-theme="dark"]) .filter-select:focus,
html:not([data-theme="dark"]) .filter-search input:focus {
  border-color:rgba(255,255,255,0.55) !important; box-shadow:0 0 0 3px rgba(255,255,255,0.12) !important; outline:none !important;
}
html:not([data-theme="dark"]) ::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.18) !important; }
html:not([data-theme="dark"]) ::-webkit-scrollbar-thumb:hover { background:rgba(255,255,255,0.32) !important; }
html:not([data-theme="dark"]) .emp-row:hover,
html:not([data-theme="dark"]) .dash-act-item:hover,
html:not([data-theme="dark"]) .dash-mov-item:hover,
html:not([data-theme="dark"]) .vg-store-item:hover { background:rgba(255,255,255,0.05) !important; box-shadow:none !important; }
html:not([data-theme="dark"]) .emp-row:hover .emp-name { color:#FFFFFF !important; }
html:not([data-theme="dark"]) .stat-card:hover {
  border-color:rgba(255,255,255,0.22) !important;
  box-shadow:0 20px 48px rgba(0,0,0,.70), 0 0 0 1px rgba(255,255,255,.10) !important;
}
html:not([data-theme="dark"]) .stat-card-add { background:rgba(255,255,255,0.05) !important; border-color:rgba(255,255,255,0.22) !important; }
html:not([data-theme="dark"]) .stat-card-add:hover { background:rgba(255,255,255,0.10) !important; box-shadow:none !important; }
html:not([data-theme="dark"]) .rh-nav-btn-add { border-color:rgba(255,255,255,0.22) !important; }
html:not([data-theme="dark"]) .rh-nav-btn-add:hover { background:rgba(255,255,255,0.08) !important; border-color:rgba(255,255,255,0.35) !important; }
html:not([data-theme="dark"]) .modal-header { background:rgba(255,255,255,0.04) !important; }
html:not([data-theme="dark"]) .vg-store-item.active { background:rgba(255,255,255,0.12) !important; border-color:rgba(255,255,255,0.22) !important; }
html:not([data-theme="dark"]) .rh-tab.active { box-shadow:none !important; }

/* ───────── LIGHT (html[data-theme="dark"]) — accent GRAFITE/preto ───────── */
html[data-theme="dark"] .btn-primary-rh { background:#18181B !important; color:#FFFFFF !important; box-shadow:0 2px 8px rgba(0,0,0,.18) !important; }
html[data-theme="dark"] .btn-primary-rh:hover { background:#27272A !important; transform:translateY(-1px) !important; box-shadow:0 6px 18px rgba(0,0,0,.22) !important; }
html[data-theme="dark"] .rh-nav-btn.active { background:rgba(0,0,0,0.06) !important; border-left-color:#18181B !important; color:#18181B !important; box-shadow:none !important; }
html[data-theme="dark"] .rh-nav-btn:hover:not(.active) { background:#F4F4F5 !important; color:#18181B !important; }
html[data-theme="dark"] .rh-tab.active { background:#18181B !important; color:#FFFFFF !important; border-color:#18181B !important; box-shadow:none !important; }
html[data-theme="dark"] .rh-tab:hover:not(.active) { background:#F4F4F5 !important; color:#18181B !important; }
html[data-theme="dark"] .btn-icon:hover,
html[data-theme="dark"] .btn-logout:hover { background:#F4F4F5 !important; border-color:#D4D4D8 !important; color:#18181B !important; box-shadow:none !important; }
html[data-theme="dark"] input:focus, html[data-theme="dark"] select:focus, html[data-theme="dark"] textarea:focus {
  border-color:#52525B !important; box-shadow:0 0 0 3px rgba(0,0,0,0.08) !important; outline:none !important;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background:rgba(0,0,0,0.18) !important; }
html[data-theme="dark"] .emp-row:hover,
html[data-theme="dark"] .dash-act-item:hover,
html[data-theme="dark"] .dash-mov-item:hover { background:#F4F4F5 !important; box-shadow:none !important; }
html[data-theme="dark"] .emp-row:hover .emp-name { color:#18181B !important; }
html[data-theme="dark"] .stat-card:hover { border-color:#D4D4D8 !important; box-shadow:0 8px 28px rgba(0,0,0,.10) !important; }

/* ================================================================
   GESTOR — MODO ESCURO (preto/grafite + accent DA BANDEIRA mantido)
   O CSS base do gestor (03-components) é só claro; aqui adicionamos o
   escuro (html sem data-theme). O accent (themeColor da loja) vem inline
   no JSX, então é preservado. Inclui override dos estilos inline
   (modais/abas/auditoria) escopados ao #gestor-theme-wrapper.
   ================================================================ */
html:not([data-theme="dark"]) #gestor-theme-wrapper { background:#0A0A0B !important; color-scheme: dark !important; }
html:not([data-theme="dark"]) .gestor-header { background:#141416 !important; border-bottom:1px solid rgba(255,255,255,.07) !important; color:#F4F4F5 !important; box-shadow:0 1px 0 rgba(255,255,255,.04) !important; }
html:not([data-theme="dark"]) .gestor-store-info { color:#A1A1AA !important; }
html:not([data-theme="dark"]) .gestor-body { background:#0A0A0B !important; }
html:not([data-theme="dark"]) .gestor-tab { background:rgba(255,255,255,.05) !important; border-color:rgba(255,255,255,.10) !important; color:#A1A1AA !important; }
html:not([data-theme="dark"]) .gestor-stat { background:#141416 !important; border-color:rgba(255,255,255,.08) !important; }
html:not([data-theme="dark"]) .gestor-stat-num { color:#F4F4F5 !important; }
html:not([data-theme="dark"]) .gestor-stat-label { color:#A1A1AA !important; }
html:not([data-theme="dark"]) .gestor-filters { background:#141416 !important; border-color:rgba(255,255,255,.08) !important; }
html:not([data-theme="dark"]) .gestor-filter-select,
html:not([data-theme="dark"]) .gestor-search input { background:#0E0E10 !important; border-color:rgba(255,255,255,.12) !important; color:#F4F4F5 !important; }
html:not([data-theme="dark"]) .gestor-emp-card { background:#141416 !important; border-color:rgba(255,255,255,.08) !important; box-shadow:0 4px 20px rgba(0,0,0,.55) !important; }
html:not([data-theme="dark"]) .gestor-card-name { color:#F4F4F5 !important; }
html:not([data-theme="dark"]) .gestor-card-pos { color:#A1A1AA !important; }
html:not([data-theme="dark"]) .gestor-card-info-item label { color:#71717A !important; }
html:not([data-theme="dark"]) .gestor-card-info-item span { color:#E4E4E7 !important; }
html:not([data-theme="dark"]) .gestor-section-title { color:#F4F4F5 !important; }
html:not([data-theme="dark"]) .gestor-info-banner { background:#141416 !important; border-color:rgba(255,255,255,.08) !important; color:#D4D4D8 !important; }
html:not([data-theme="dark"]) .gestor-btn-logout { background:rgba(255,255,255,.06) !important; border-color:rgba(255,255,255,.14) !important; color:#E4E4E7 !important; }
html:not([data-theme="dark"]) .gestor-btn-logout:hover { background:rgba(255,255,255,.12) !important; }
html:not([data-theme="dark"]) .gestor-notif-dropdown { background:#141416 !important; border-color:rgba(255,255,255,.10) !important; }

/* Estilos inline (modais, abas Transferências/Período/Vagas/Auditoria) → escuro */
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="background:#fff"],
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="background: #fff"],
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="background:#FFFFFF"],
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="background: #FFFFFF"] { background:#141416 !important; }
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="background:#F8FAFC"],
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="background: #F8FAFC"],
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="background:#F1F5F9"] { background:#0E0E10 !important; }
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="color:#0F172A"],
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="color: #0F172A"],
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="color:#0f172a"] { color:#F4F4F5 !important; }
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="color:#64748B"],
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="color: #64748B"],
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="color:#94A3B8"] { color:#A1A1AA !important; }
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="border:1px solid #E2E8F0"],
html:not([data-theme="dark"]) #gestor-theme-wrapper [style*="border: 1px solid #E2E8F0"] { border-color:rgba(255,255,255,.10) !important; }

/* Hero de saudação do gestor (ambos os modos) */
.gestor-hero { padding: 4px 0 18px; }
.gestor-hero .g-eyebrow { font-size:11px; font-weight:800; letter-spacing:1.4px; text-transform:uppercase; color:#A1A1AA; margin-bottom:8px; }
.gestor-hero .g-greet { font-family: var(--font-display); font-size:30px; font-weight:800; letter-spacing:-.02em; color:#F4F4F5; line-height:1.1; }
.gestor-hero .g-sub { font-size:13px; color:#A1A1AA; margin-top:6px; }
html[data-theme="dark"] .gestor-hero .g-greet { color:#0F172A; }
html[data-theme="dark"] .gestor-hero .g-eyebrow,
html[data-theme="dark"] .gestor-hero .g-sub { color:#64748B; }

/* ================================================================
   GESTOR — POLIMENTO FINCAN (pílulas, cards arredondados, sombra suave)
   Estrutura do layout-referência (Fincan.io). Ambos os modos.
   Accent = cor da bandeira (vem inline). NÃO altera funcionalidade.
   ================================================================ */
/* Topbar mais limpo (sem linha dura) */
.gestor-header { border-bottom:none !important; }
html:not([data-theme="dark"]) .gestor-header { box-shadow:0 1px 0 rgba(255,255,255,.05), 0 8px 24px rgba(0,0,0,.45) !important; }
html[data-theme="dark"] .gestor-header { box-shadow:0 1px 0 #EEF1F6, 0 6px 20px rgba(15,23,42,.06) !important; }

/* Abas → PÍLULAS */
.gestor-tab {
  border-radius:999px !important; padding:9px 18px !important; font-weight:700 !important;
  border:1px solid transparent !important; transition: all .18s ease !important;
}

/* Botões em pílula */
.gestor-btn-add, .gestor-btn-logout { border-radius:999px !important; font-weight:700 !important; }

/* Inputs/filtros em pílula */
.gestor-filter-select, .gestor-search input { border-radius:999px !important; }
.gestor-filters { border-radius:16px !important; padding:12px 14px !important; }
.gestor-info-banner { border-radius:14px !important; }

/* Cards arredondados + sombra suave Fincan */
.gestor-stat { border-radius:20px !important; padding:20px 22px !important; }
.gestor-emp-card { border-radius:20px !important; transition: transform .2s ease, box-shadow .2s ease !important; }
.gestor-emp-card:hover { transform: translateY(-4px) !important; }
.gestor-notif-dropdown { border-radius:16px !important; }

/* Sombra suave por modo */
html[data-theme="dark"] .gestor-stat,
html[data-theme="dark"] .gestor-emp-card,
html[data-theme="dark"] .gestor-filters {
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px rgba(15,23,42,.07) !important;
  border:1px solid #EEF1F6 !important;
}
html:not([data-theme="dark"]) .gestor-stat,
html:not([data-theme="dark"]) .gestor-emp-card,
html:not([data-theme="dark"]) .gestor-filters {
  box-shadow: 0 10px 30px rgba(0,0,0,.45) !important;
}
html:not([data-theme="dark"]) .gestor-emp-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,.6) !important;
}
html[data-theme="dark"] .gestor-emp-card:hover {
  box-shadow: 0 16px 40px rgba(15,23,42,.12) !important;
}
