/* Correções de contraste (WCAG AA, 4,5:1) e de tamanho mínimo de texto — vêm da auditoria de acessibilidade de 17/10/2026.
   Tema claro: escurece os cinzas de apoio e o botão da cor da marca. Tema escuro: clareia o cinza dos botões secundários. */

html:not([data-bs-theme="dark"]) .ls-cabecalho p,
html:not([data-bs-theme="dark"]) .cl-cabecalho p,
html:not([data-bs-theme="dark"]) .dw-chips > span,
html:not([data-bs-theme="dark"]) .ls-kpi small,
html:not([data-bs-theme="dark"]) .ls-kpi em,
html:not([data-bs-theme="dark"]) .ls-sub,
html:not([data-bs-theme="dark"]) .ls-cel,
html:not([data-bs-theme="dark"]) .ls-visao button,
html:not([data-bs-theme="dark"]) .form-text,
html:not([data-bs-theme="dark"]) .text-muted,
html:not([data-bs-theme="dark"]) .app-sidebar__versao,
html:not([data-bs-theme="dark"]) .tb-empresa,
html:not([data-bs-theme="dark"]) .tb-usuario__texto small,
html:not([data-bs-theme="dark"]) kbd { color: #566172 !important; }

html:not([data-bs-theme="dark"]) .btn-outline-secondary { --bs-btn-color: #566172; --bs-btn-border-color: #8a94a3; --bs-btn-hover-bg: #566172; --bs-btn-hover-border-color: #566172; }
html:not([data-bs-theme="dark"]) .btn-primary { --bs-btn-bg: color-mix(in srgb, var(--cor-primaria) 82%, black); --bs-btn-border-color: color-mix(in srgb, var(--cor-primaria) 82%, black); }

html[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: #aab4c3; --bs-btn-border-color: #5b6676; }
html[data-bs-theme="dark"] .text-muted { color: #a3adbb !important; }

/* texto minúsculo (menos de 11 px) fica ilegível, sobretudo no modo automático em notebooks */
.app-sidebar__versao, kbd { font-size: .74rem; }
.tb-empresa { font-size: .8rem; }

/* selos de contagem (vermelho): branco sobre #e5484d dava 3,9:1 */
.app-nav-row__badge, .tb-badge { background: #c62f35 !important; }
