.menu-subitem {
  display: block;
  padding: 7px 14px 7px 42px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dark .menu-item, .dark .menu-subitem {
  color: #94a3b8;
}

.menu-item:hover, .menu-subitem:hover {
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.05);
}

/* Item Ativo (Destaque Verde) */
.menu-item.active, .menu-subitem.active {
  color: #10b981 !important;
  font-weight: 600;
  background-color: rgba(16, 185, 129, 0.1) !important;
  border-left-color: #10b981 !important;
}

.field-editable {
  background-color: rgba(16, 185, 129, 0.1) !important;
  border: 1px dashed #059669 !important;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* NOVA BARRA DE ROLAGEM ELEGANTE PARA TABELAS NO PC */
.custom-scrollbar::-webkit-scrollbar { height: 8px; width: 8px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(30, 41, 59, 0.5); border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(71, 85, 105, 0.8); border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 1); }

@keyframes toastSlideIn { 
    from { transform: translateX(100%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}
.toast-anim { animation: toastSlideIn 0.3s ease-out forwards; }

/* MÁGICA DO MODO CLARO (INVERSÃO DE CORES) */
html:not(.dark) body { background-color: #f1f5f9; color: #0f172a; }
html:not(.dark) .bg-slate-950 { background-color: #f1f5f9 !important; }
html:not(.dark) .bg-slate-900 { background-color: #ffffff !important; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
html:not(.dark) .bg-slate-800 { background-color: #f8fafc !important; color: #1e293b !important; border-color: #e2e8f0 !important; }
html:not(.dark) .border-slate-800 { border-color: #e2e8f0 !important; }
html:not(.dark) .border-slate-700 { border-color: #cbd5e1 !important; }
html:not(.dark) .text-white, html:not(.dark) .text-slate-100 { color: #0f172a !important; }
html:not(.dark) .text-slate-200, html:not(.dark) .text-slate-300, html:not(.dark) .text-slate-400 { color: #475569 !important; }
html:not(.dark) input, html:not(.dark) select { background-color: #ffffff !important; color: #0f172a !important; border-color: #cbd5e1 !important; }
html:not(.dark) .divide-slate-800 > :not([hidden]) ~ :not([hidden]) { border-color: #e2e8f0 !important; }
html:not(.dark) .hover\:bg-slate-800:hover { background-color: #f1f5f9 !important; }
html:not(.dark) .bg-slate-900\/90 { background-color: rgba(255,255,255,0.95) !important; }
html:not(.dark) .bg-slate-900\/50 { background-color: rgba(255,255,255,0.5) !important; }

/* ===== MENU ACCORDION v3.1.0 ===== */
.accordion-body {
    display: none;
    padding-left: 0.5rem;
    margin-top: 0.25rem;
}

.sub-accordion-body {
    display: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.accordion-group .nav-btn,
.menu-group .nav-btn {
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.accordion-group .nav-btn:hover,
.menu-group .nav-btn:hover {
    background-color: rgba(30, 41, 59, 0.8);
}

/* Item ativo no menu */
.nav-btn.active-tab {
    background-color: rgba(5, 150, 105, 0.2);
    color: #10b981;
    font-weight: 600;
}

/* ===== EXPORTAÇÃO DA DRE EM PDF (via impressão do navegador) ===== */
.dre-print-only { display: none; }

@media print {
    body * { visibility: hidden; }
    #dreAreaImprimivel, #dreAreaImprimivel * { visibility: visible; }
    #dreAreaImprimivel { position: absolute; top: 0; left: 0; width: 100%; }
    .dre-no-print { display: none !important; }
    .dre-print-only { display: block !important; }
    #dreAreaImprimivel table { font-size: 9px; color: #000 !important; }
    #dreAreaImprimivel td, #dreAreaImprimivel th { color: #000 !important; background: #fff !important; border: 1px solid #ccc !important; }
}