/* Tema escuro (menu do usuário -> Aparência). O piTema.aplicar (_Host.cshtml) marca o <html> com
   data-bs-theme="dark"; aqui só entram as cores fixas do style.css legado que ficam ilegíveis no escuro.
   O claro não muda. Tela nova: usar var(--mud-palette-*) no lugar de cor fixa e não precisa vir para cá. */

html[data-bs-theme="dark"] th {
    background: var(--mud-palette-background-gray);
}

html[data-bs-theme="dark"] .input-ultra-compacto .mud-input-label-inputcontrol.mud-input-label-outlined.mud-input-label-animated {
    background-color: var(--mud-palette-surface);
}

/* CpCardIndicador e telas antigas (text-red/blue/green/yellow): tons mais claros para ler no fundo escuro */
html[data-bs-theme="dark"] .text-red { color: #FF6B72; }
html[data-bs-theme="dark"] .text-blue { color: #5FB2FF; }
html[data-bs-theme="dark"] .text-green { color: #3ADB7A; }
html[data-bs-theme="dark"] .text-yellow { color: #FFB84D; }
