/* Alternância claro/escuro — botão no topo (visível em ambos os temas) */
.topo__side--left {
    gap: 0.5rem;
    flex-wrap: wrap;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #dbe7f5;
    background: #fff;
    color: #0b4f8a;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
        color 0.15s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--color-primary, #0070c0);
    box-shadow: 0 2px 10px rgba(0, 112, 192, 0.12);
}

.theme-toggle-btn:focus-visible {
    outline: 2px solid var(--color-primary, #0070c0);
    outline-offset: 2px;
}

.theme-toggle-btn__svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

html[data-theme="light"] .theme-toggle-btn__svg--sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle-btn__svg--moon {
    display: none;
}

/* ========= Tema escuro ========= */
html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
    color: #e2e8f0;
}

html[data-theme="dark"] .container {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    color: #e2e8f0;
}

html[data-theme="dark"] .container > h1,
html[data-theme="dark"] .container > h2 {
    color: #7dd3fc;
}

html[data-theme="dark"] a {
    color: #38bdf8;
}

html[data-theme="dark"] .app-footer {
    border-top-color: #334155;
    color: #94a3b8;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #64748b;
}

/* Botões: sem estilo global — cada componente (form-panel, topo, paginação, etc.) define o visual. */

html[data-theme="dark"] .flash {
    background: linear-gradient(90deg, #0c4a6e 0%, #164e63 100%);
    color: #e0f2fe;
    border-left-color: #38bdf8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .theme-toggle-btn {
    border-color: #475569;
    background: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .theme-toggle-btn:hover {
    border-color: #38bdf8;
    background: #3f4f63;
}

html[data-theme="dark"] .topo-user-menu__dropdown summary {
    border-color: #475569;
    background: #334155;
}

html[data-theme="dark"] .topo-user-menu__label {
    color: #f1f5f9;
}

html[data-theme="dark"] .topo-user-menu__type {
    color: #94a3b8;
}

html[data-theme="dark"] .topo-user-menu__content {
    border-color: #475569;
    background: #1e293b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .topo-user-menu__content a {
    color: #e2e8f0;
    border-bottom-color: #334155;
}

html[data-theme="dark"] .topo-user-menu__content a:hover {
    background: #334155;
}

html[data-theme="dark"] .topo-cnpj-btn {
    background: linear-gradient(180deg, #1e3a5f 0%, #172554 100%);
    border-color: rgba(56, 189, 248, 0.45);
    color: #bae6fd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .topo-cnpj-btn:hover {
    border-color: #38bdf8;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
}

html[data-theme="dark"] .nav-monitoria {
    background: linear-gradient(180deg, #0c1929 0%, #0b4f8a 100%);
    border: 1px solid #1e3a5f;
}

html[data-theme="dark"] .menu-dropdowns {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

html[data-theme="dark"] .menu-dropdown {
    border-color: #334155;
    background: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .menu-dropdown summary {
    color: #e2e8f0;
}

html[data-theme="dark"] .menu-dropdown summary::after {
    color: #94a3b8;
}

html[data-theme="dark"] .menu-dropdown-content {
    border-color: #475569;
    background: #1e293b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border-top-color: #334155;
}

html[data-theme="dark"] .menu-link {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .menu-link:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

html[data-theme="dark"] .menu-link.destaque {
    background: #0369a1;
    border-color: #0ea5e9;
    color: #fff;
}

html[data-theme="dark"] .subtitulo-home {
    color: #94a3b8;
}

html[data-theme="dark"] .titulo-bloco-home {
    color: #7dd3fc;
}

html[data-theme="dark"] .section-divider {
    background: linear-gradient(90deg, transparent, #334155 15%, #334155 85%, transparent);
}

html[data-theme="dark"] .resumo-setores-wrap--modern .resumo-setores-head h2 {
    color: #f1f5f9;
}

html[data-theme="dark"] .resumo-setores-wrap--modern .resumo-setores-head__lead {
    color: #94a3b8;
}

html[data-theme="dark"] .tabela-relatorio th,
html[data-theme="dark"] .tabela-relatorio td {
    border-color: #475569;
}

html[data-theme="dark"] .tabela-relatorio tbody tr:nth-child(even) {
    background-color: #0f172a;
}

html[data-theme="dark"] .tabela-relatorio tbody tr:nth-child(odd) {
    background-color: #1e293b;
}

html[data-theme="dark"] .tabela-relatorio .coluna-dia-atual {
    background-color: #1e3a5f;
    box-shadow: inset 0 0 0 1px #38bdf8;
    color: #bae6fd;
}

html[data-theme="dark"] .form-panel {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: var(--radius-lg, 14px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .form-panel__title {
    color: #f1f5f9;
}

html[data-theme="dark"] .form-panel__label,
html[data-theme="dark"] .form-panel__field-label {
    color: #cbd5e1;
}

html[data-theme="dark"] .form-panel__select,
html[data-theme="dark"] .form-panel__input,
html[data-theme="dark"] textarea.form-panel__input {
    background: #1e293b;
    border-color: #475569;
    color: #f1f5f9;
}

html[data-theme="dark"] .form-panel__hint {
    color: #94a3b8;
}

html[data-theme="dark"] .form-panel__readonly {
    background: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .form-panel__details {
    border-color: #334155;
}

html[data-theme="dark"] .form-panel__submit {
    background: linear-gradient(180deg, #0284c7, #0369a1);
    color: #fff;
    border-color: #0369a1;
}

html[data-theme="dark"] .form-panel__submit:hover {
    background: linear-gradient(180deg, #0ea5e9, #0284c7);
}

html[data-theme="dark"] .form-panel__summary-link {
    color: #38bdf8;
}

html[data-theme="dark"] .metas-vendedor-dash {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .metas-vendedor-dash__title {
    color: #f1f5f9;
}

html[data-theme="dark"] .metas-vendedor-dash__title-ico {
    color: #38bdf8;
}

html[data-theme="dark"] .metas-vendedor-dash__subtitle {
    color: #94a3b8;
}

html[data-theme="dark"] .metas-vendedor-dash__kpi {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .metas-vendedor-dash__kpi-ico {
    color: #38bdf8;
}

html[data-theme="dark"] .metas-vendedor-dash__kpi-label {
    color: #94a3b8;
}

html[data-theme="dark"] .metas-vendedor-dash__kpi-valor {
    color: #f1f5f9;
}

html[data-theme="dark"] .metas-vendedor-dash__kpi-valor--aviso {
    color: #64748b;
}

html[data-theme="dark"] .metas-vendedor-dash__kpi-hint {
    color: #64748b;
}

html[data-theme="dark"] .metas-vendedor-dash__aviso-periodo {
    color: #fcd34d;
    background: #422006;
    border-color: #92400e;
}

html[data-theme="dark"] .metas-vendedor-tier {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .metas-vendedor-tier:hover {
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.35),
        0 0 0 3px var(--tier-accent-soft);
}

html[data-theme="dark"] .metas-vendedor-tier--quarta {
    --tier-accent: #4ade80;
    --tier-accent-title: #f0fdf4;
    --tier-accent-soft: rgba(34, 197, 94, 0.28);
    --tier-accent-head: rgba(34, 197, 94, 0.38);
    --tier-border: rgba(74, 222, 128, 0.45);
}

html[data-theme="dark"] .metas-vendedor-tier--terceira {
    --tier-accent: #60a5fa;
    --tier-accent-title: #f0f9ff;
    --tier-accent-soft: rgba(59, 130, 246, 0.28);
    --tier-accent-head: rgba(59, 130, 246, 0.38);
    --tier-border: rgba(96, 165, 250, 0.45);
}

html[data-theme="dark"] .metas-vendedor-tier--segunda {
    --tier-accent: #38bdf8;
    --tier-accent-title: #f0f9ff;
    --tier-accent-soft: rgba(14, 165, 233, 0.26);
    --tier-accent-head: rgba(14, 165, 233, 0.36);
    --tier-border: rgba(56, 189, 248, 0.45);
}

html[data-theme="dark"] .metas-vendedor-tier--primeira {
    --tier-accent: #fb923c;
    --tier-accent-title: #fff7ed;
    --tier-accent-soft: rgba(251, 146, 60, 0.26);
    --tier-accent-head: rgba(251, 146, 60, 0.36);
    --tier-border: rgba(251, 146, 60, 0.45);
}

html[data-theme="dark"] .metas-vendedor-tier__head {
    border-bottom-color: #334155;
    background: linear-gradient(180deg, var(--tier-accent-head) 0%, #1e293b 100%);
}

html[data-theme="dark"] .metas-vendedor-tier__head-icon {
    color: #0f172a;
    background: linear-gradient(145deg, var(--tier-accent) 0%, color-mix(in srgb, var(--tier-accent) 70%, #0f172a) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .metas-vendedor-tier__title {
    color: var(--tier-accent-title);
}

html[data-theme="dark"] .metas-vendedor-tier__criterio {
    color: #94a3b8;
}

html[data-theme="dark"] .metas-vendedor-tier__name {
    color: #f1f5f9;
}

html[data-theme="dark"] .metas-vendedor-tier__metric {
    color: #94a3b8;
}

html[data-theme="dark"] .metas-vendedor-tier__metric strong {
    color: #e2e8f0;
}

html[data-theme="dark"] .metas-vendedor-tier__row {
    border-bottom-color: #334155;
}

html[data-theme="dark"] .metas-vendedor-tier__more-btn {
    background: #0f172a;
    border-color: #475569;
    color: #cbd5e1;
}

html[data-theme="dark"] .metas-vendedor-tier__more[open] .metas-vendedor-tier__more-btn {
    border-color: #475569;
}

html[data-theme="dark"] .metas-vendedor-tier__badge {
    background: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .metas-vendedor-tier--quarta .metas-vendedor-tier__badge {
    background: rgba(34, 197, 94, 0.22);
    color: #86efac;
}

html[data-theme="dark"] .metas-vendedor-tier--terceira .metas-vendedor-tier__badge {
    background: rgba(59, 130, 246, 0.22);
    color: #93c5fd;
}

html[data-theme="dark"] .metas-vendedor-tier--segunda .metas-vendedor-tier__badge {
    background: rgba(14, 165, 233, 0.2);
    color: #7dd3fc;
}

html[data-theme="dark"] .metas-vendedor-tier--primeira .metas-vendedor-tier__badge {
    background: rgba(251, 146, 60, 0.2);
    color: #fdba74;
}

html[data-theme="dark"] .metas-vendedor-fail {
    --tier-accent: #f87171;
    --tier-accent-title: #fecaca;
    --tier-accent-soft: rgba(220, 38, 38, 0.28);
    --tier-accent-head: rgba(127, 29, 29, 0.9);
    --tier-border: rgba(248, 113, 113, 0.45);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: var(--tier-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .metas-vendedor-fail__head {
    border-bottom-color: #7f1d1d;
    background: linear-gradient(180deg, var(--tier-accent-head) 0%, #1e293b 100%);
}

html[data-theme="dark"] .metas-vendedor-fail__head-ico {
    color: #fff;
    background: linear-gradient(145deg, var(--tier-accent) 0%, #b91c1c 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .metas-vendedor-fail__title {
    color: var(--tier-accent-title);
}

html[data-theme="dark"] .metas-vendedor-fail__badge {
    background: rgba(220, 38, 38, 0.22);
    color: #fca5a5;
}

html[data-theme="dark"] .metas-vendedor-fail__cell {
    background: #0f172a;
    border-color: rgba(248, 113, 113, 0.35);
}

html[data-theme="dark"] .metas-vendedor-fail__name {
    color: #f1f5f9;
}

html[data-theme="dark"] .metas-vendedor-fail__tipo {
    color: #94a3b8;
}

html[data-theme="dark"] .metas-vendedor-fail__val {
    color: #fca5a5;
}

html[data-theme="dark"] .metas-vendedor-fail__more-btn {
    background: #0f172a;
    border-color: rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

html[data-theme="dark"] .metas-vendedor-tier__criterio--fail {
    color: #fca5a5;
}

html[data-theme="dark"] .visao-grupo-setor-dash__card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .visao-grupo-setor-dash__card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .visao-grupo-setor-dash__card--getnet {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(180deg, #172554 0%, #1e293b 52%);
}

html[data-theme="dark"] .visao-grupo-setor-dash__card--mei {
    border-color: rgba(168, 85, 247, 0.45);
    background: linear-gradient(180deg, #3b0764 0%, #1e293b 52%);
}

html[data-theme="dark"] .visao-grupo-setor-dash__card--e1 {
    border-color: rgba(34, 197, 94, 0.45);
    background: linear-gradient(180deg, #052e16 0%, #1e293b 52%);
}

html[data-theme="dark"] .visao-grupo-setor-dash__card--conta-integrada {
    border-color: rgba(251, 146, 60, 0.45);
    background: linear-gradient(180deg, #431407 0%, #1e293b 52%);
}

html[data-theme="dark"] .visao-grupo-setor-dash__card-head {
    border-bottom-color: #334155;
}

html[data-theme="dark"] .visao-grupo-setor-dash__card-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .visao-grupo-setor-dash__metric {
    border-bottom-color: #334155;
}

html[data-theme="dark"] .visao-grupo-setor-dash__metric-label {
    color: #94a3b8;
}

html[data-theme="dark"] .visao-grupo-setor-dash__metric-val {
    color: #f1f5f9;
}

html[data-theme="dark"] .card-setor-resumo {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .card-setor-resumo--cor-1 {
    --card-accent-soft: rgba(37, 99, 235, 0.25);
    --card-border: rgba(96, 165, 250, 0.45);
}

html[data-theme="dark"] .card-setor-resumo--cor-2 {
    --card-accent-soft: rgba(22, 163, 74, 0.25);
    --card-border: rgba(74, 222, 128, 0.4);
}

html[data-theme="dark"] .card-setor-resumo--cor-3 {
    --card-accent-soft: rgba(234, 88, 12, 0.22);
    --card-border: rgba(251, 146, 60, 0.45);
}

html[data-theme="dark"] .card-setor-resumo--cor-4 {
    --card-accent-soft: rgba(147, 51, 234, 0.22);
    --card-border: rgba(192, 132, 252, 0.45);
}

html[data-theme="dark"] .card-setor-resumo--cor-5 {
    --card-accent-soft: rgba(219, 39, 119, 0.2);
    --card-border: rgba(244, 114, 182, 0.45);
}

html[data-theme="dark"] .card-setor-resumo--cor-6 {
    --card-accent-soft: rgba(8, 145, 178, 0.22);
    --card-border: rgba(34, 211, 238, 0.4);
}

html[data-theme="dark"] .card-setor-resumo--cor-7 {
    --card-accent-soft: rgba(101, 163, 13, 0.22);
    --card-border: rgba(163, 230, 53, 0.4);
}

html[data-theme="dark"] .card-setor-resumo--cor-8 {
    --card-accent-soft: rgba(202, 138, 4, 0.22);
    --card-border: rgba(250, 204, 21, 0.45);
}

html[data-theme="dark"] .card-setor-resumo__head {
    border-bottom-color: #334155;
    background: linear-gradient(180deg, var(--card-accent-soft) 0%, #1e293b 100%);
}

html[data-theme="dark"] .card-setor-resumo__nome {
    color: #f1f5f9;
}

html[data-theme="dark"] .card-setor-resumo__status {
    background: #0f172a;
    border-color: #475569;
    color: #cbd5e1;
}

html[data-theme="dark"] .card-setor-resumo__producao {
    color: #94a3b8;
}

html[data-theme="dark"] .card-setor-resumo__producao-label {
    color: #94a3b8;
}

html[data-theme="dark"] .card-setor-resumo__producao-valor {
    color: #f8fafc;
}

html[data-theme="dark"] .card-setor-resumo__producao-periodo {
    color: #64748b;
}

html[data-theme="dark"] .card-setor-resumo__producao--aviso {
    color: #fcd34d;
}

html[data-theme="dark"] .card-setor-resumo__metas-pills {
    border-top-color: #334155;
    background: #0f172a;
}

html[data-theme="dark"] .card-setor-resumo__pill {
    background: #1e293b;
    border-color: #475569;
    color: #94a3b8;
}

html[data-theme="dark"] .card-setor-resumo__pill-v {
    color: #f8fafc;
}

html[data-theme="dark"] .card-setor-resumo__pill--atingida {
    background: linear-gradient(180deg, #052e16 0%, #1e293b 100%);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.55);
}

html[data-theme="dark"] .card-setor-resumo__pill--atingida .card-setor-resumo__pill-v {
    color: #bbf7d0;
}

html[data-theme="dark"] .card-setor-resumo__row {
    border-bottom-color: #334155;
}

html[data-theme="dark"] .card-setor-resumo__row-label {
    color: #94a3b8;
}

html[data-theme="dark"] .card-setor-resumo__row-value {
    color: #f8fafc;
}

html[data-theme="dark"] .card-setor-resumo__row-proj {
    color: #94a3b8;
}

html[data-theme="dark"] .card-setor-resumo__foot {
    border-top-color: #334155;
    background: #0f172a;
}

html[data-theme="dark"] .card-setor-resumo__foot-label {
    color: #94a3b8;
}

html[data-theme="dark"] .card-setor-resumo__bar {
    background: #334155;
}

html[data-theme="dark"] .resumo-setores-legend__title {
    color: #94a3b8;
}

html[data-theme="dark"] .resumo-setores-legend {
    color: #cbd5e1;
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .resumo-setores-empty {
    color: #94a3b8;
    background: #0f172a;
    border-color: #475569;
}

html[data-theme="dark"] .card-setor-resumo__status--ok {
    color: #86efac;
    background: #052e16;
    border-color: rgba(34, 197, 94, 0.5);
}

html[data-theme="dark"] .card-setor-resumo__status--risco {
    color: #fdba74;
    background: #431407;
    border-color: rgba(251, 146, 60, 0.45);
}

html[data-theme="dark"] .card-setor-resumo__status--abaixo {
    color: #fca5a5;
    background: #450a0a;
    border-color: rgba(248, 113, 113, 0.45);
}

html[data-theme="dark"] .card-setor-resumo__status--neutro,
html[data-theme="dark"] .card-setor-resumo__status--meta-niv-0 {
    color: #cbd5e1;
    background: #0f172a;
    border-color: #475569;
}

html[data-theme="dark"] .card-setor-resumo__status--meta-niv-1 {
    color: #fcd34d;
    background: #422006;
    border-color: rgba(245, 158, 11, 0.45);
}

html[data-theme="dark"] .card-setor-resumo__status--meta-niv-2 {
    color: #86efac;
    background: #052e16;
    border-color: rgba(34, 197, 94, 0.45);
}

html[data-theme="dark"] .card-setor-resumo__status--meta-niv-3 {
    color: #93c5fd;
    background: #172554;
    border-color: rgba(59, 130, 246, 0.45);
}

html[data-theme="dark"] .card-setor-resumo__status--meta-niv-4 {
    color: #e9d5ff;
    background: #3b0764;
    border-color: rgba(168, 85, 247, 0.45);
}

html[data-theme="dark"] .card-setor-resumo:hover {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 10px 22px rgba(0, 0, 0, 0.3),
        0 28px 56px rgba(0, 0, 0, 0.25), 0 0 0 3px var(--card-accent-soft),
        0 48px 96px -32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] dialog.cnpj-modal::backdrop {
    background: rgba(0, 0, 0, 0.65);
}

html[data-theme="dark"] .cnpj-modal__panel {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .cnpj-modal__toolbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1e293b 100%);
    border-bottom-color: #334155;
}

html[data-theme="dark"] .cnpj-modal__title {
    color: #f1f5f9;
}

html[data-theme="dark"] .cnpj-modal__close {
    background: #334155;
    color: #cbd5e1;
}

html[data-theme="dark"] .cnpj-modal__close:hover {
    background: #475569;
    color: #fff;
}

html[data-theme="dark"] .cnpj-modal__lead {
    color: #94a3b8;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

html[data-theme="dark"] .cnpj-modal__label {
    color: #cbd5e1;
}

html[data-theme="dark"] .cnpj-modal__input {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}

html[data-theme="dark"] .cnpj-modal__footer {
    border-top-color: #334155;
    background: #0f172a;
}

html[data-theme="dark"] .cnpj-modal__link-page {
    color: #38bdf8;
}

html[data-theme="dark"] .cnpj-modal__btn-ghost {
    border-color: #475569;
    color: #e2e8f0;
    background: #334155;
}

html[data-theme="dark"] .cnpj-modal__btn-ghost:hover {
    background: #475569;
}

html[data-theme="dark"] .alerta-conteudo {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
}

html[data-theme="dark"] .alerta-conteudo h2 {
    color: #f87171;
}

/* Flatpickr (CDN) */
html[data-theme="dark"] .flatpickr-calendar {
    background: #1e293b;
    border-color: #475569;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: #e2e8f0;
}

html[data-theme="dark"] .flatpickr-months .flatpickr-month {
    background: #1e293b;
    color: #f1f5f9;
}

html[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months,
html[data-theme="dark"] .flatpickr-current-month input.cur-year {
    background: #0f172a;
    color: #f1f5f9;
    border-color: #475569;
}

html[data-theme="dark"] span.flatpickr-weekday {
    color: #94a3b8;
}

html[data-theme="dark"] .flatpickr-day {
    color: #e2e8f0;
    border-color: #334155;
}

html[data-theme="dark"] .flatpickr-day:hover,
html[data-theme="dark"] .flatpickr-day:focus {
    background: #334155;
    border-color: #475569;
}

html[data-theme="dark"] .flatpickr-day.selected,
html[data-theme="dark"] .flatpickr-day.startRange,
html[data-theme="dark"] .flatpickr-day.endRange {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

html[data-theme="dark"] .flatpickr-day.flatpickr-disabled,
html[data-theme="dark"] .flatpickr-day.prevMonthDay,
html[data-theme="dark"] .flatpickr-day.nextMonthDay {
    color: #64748b;
}

html[data-theme="dark"] .cnpj-modal__alert {
    background: #450a0a;
    border-color: #991b1b;
    color: #fecaca;
}

html[data-theme="dark"] .cnpj-card {
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .cnpj-card__head {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.12) 0%, transparent 55%);
    border-bottom-color: #334155;
}

html[data-theme="dark"] .cnpj-card--interno .cnpj-card__head {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.15) 0%, transparent 55%);
}

html[data-theme="dark"] .cnpj-card__title {
    color: #f1f5f9;
}

html[data-theme="dark"] .cnpj-card__meta,
html[data-theme="dark"] .cnpj-card__hint {
    color: #94a3b8;
}

html[data-theme="dark"] .cnpj-dl__row {
    border-bottom-color: #334155;
}

html[data-theme="dark"] .cnpj-dl__row dt {
    color: #94a3b8;
}

html[data-theme="dark"] .cnpj-dl__row dd {
    color: #e2e8f0;
}

/* ---------- Listagens, filtros, tabelas modernas ---------- */
html[data-theme="dark"] .lista-header h1,
html[data-theme="dark"] .lista-header__titles h1 {
    color: #f1f5f9;
}

html[data-theme="dark"] .lancamento-back {
    color: #94a3b8;
}

html[data-theme="dark"] .lancamento-back:hover {
    color: #38bdf8;
}

html[data-theme="dark"] .lancamento-header h1 {
    color: #7dd3fc;
}

html[data-theme="dark"] .lancamento-lead {
    color: #94a3b8;
}

html[data-theme="dark"] .lista-panel {
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .lista-panel__title {
    color: #e2e8f0;
}

html[data-theme="dark"] .filtros-lista-grid label {
    color: #94a3b8;
}

html[data-theme="dark"] .pfpj-filtros-panel {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 28rem),
        linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
}

html[data-theme="dark"] .pfpj-filtros-panel__head .lista-panel__title {
    color: #f1f5f9;
}

html[data-theme="dark"] .pfpj-filtros-panel__hint {
    color: #94a3b8;
}

html[data-theme="dark"] .pfpj-filtros-panel__badge {
    background: #172554;
    border-color: #3b82f6;
    color: #93c5fd;
}

html[data-theme="dark"] .pfpj-filtros-grid label {
    color: #94a3b8;
}

html[data-theme="dark"] .pfpj-filtros-grid input,
html[data-theme="dark"] .pfpj-filtros-grid select,
html[data-theme="dark"] .pfpj-filtros-grid .pfpj-combo__input {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}

html[data-theme="dark"] .pfpj-filtros-acoes {
    border-top-color: #334155;
}

html[data-theme="dark"] .pfpj-filtros-acoes__limpar {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .pfpj-filtros-acoes__limpar:hover {
    background: #475569;
    border-color: #64748b;
}

html[data-theme="dark"] .btn-link-clean {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .btn-link-clean:hover {
    border-color: #94a3b8;
    color: #f8fafc;
}

html[data-theme="dark"] .lista-export {
    color: #94a3b8;
}

html[data-theme="dark"] .lista-export a {
    background: #334155;
    border-color: #475569;
    color: #38bdf8;
}

html[data-theme="dark"] .lista-export a:hover {
    background: #475569;
}

html[data-theme="dark"] .lista-table-wrap {
    border-color: #334155;
    background: #0f172a;
}

html[data-theme="dark"] .tabela-relatorio--moderna th,
html[data-theme="dark"] .tabela-relatorio--moderna td {
    border-bottom-color: #334155;
}

html[data-theme="dark"] .tabela-relatorio--moderna thead th {
    background: linear-gradient(180deg, #0c1929 0%, #0b4f8a 100%);
}

html[data-theme="dark"] .tabela-relatorio--moderna tbody tr {
    background: #0f172a;
}

html[data-theme="dark"] .tabela-relatorio--moderna tbody tr:nth-child(even) {
    background: #1e293b;
}

html[data-theme="dark"] .tabela-relatorio--moderna tbody tr:hover {
    background: #334155;
}

html[data-theme="dark"] .tabela-relatorio--moderna td {
    color: #e2e8f0;
}

html[data-theme="dark"] .resultados-fechamento-edit__field,
html[data-theme="dark"] .resultados-fechamento-fluxo-form__select {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .resultados-fechamento-edit__field:focus,
html[data-theme="dark"] .resultados-fechamento-fluxo-form__select:focus {
    border-color: #38bdf8;
    outline: none;
}

html[data-theme="dark"] .tabela-relatorio--moderna td.pfpj-cad-lista-txt {
    color: #cbd5e1;
}

html[data-theme="dark"] .cell-mono {
    color: #e2e8f0;
}

html[data-theme="dark"] .leads-carteira-td-tel__num {
    color: #e2e8f0;
}

html[data-theme="dark"] .leads-carteira-icon-btn--voip {
    border-color: #475569;
    background: #334155;
    color: #cbd5e1;
}

html[data-theme="dark"] .leads-carteira-icon-btn--voip:not(:disabled):hover {
    border-color: #38bdf8;
    background: #1e3a5f;
    color: #e0f2fe;
}

html[data-theme="dark"] .leads-carteira-icon-btn--voip:disabled {
    border-color: #475569;
    background: #1e293b;
    color: #64748b;
}

html[data-theme="dark"] .lead-carteira-card,
html[data-theme="dark"] .lead-carteira-card__panel,
html[data-theme="dark"] .lead-carteira-card__quick-facts {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .lead-carteira-card__body {
    background: #0f172a;
    border-top-color: #334155;
}

html[data-theme="dark"] .lead-carteira-card[open] {
    border-color: #38bdf8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .lead-carteira-card__summary {
    color: #e2e8f0;
}

html[data-theme="dark"] .lead-carteira-card__nome {
    color: #f8fafc;
}

html[data-theme="dark"] .lead-carteira-card__cnpj,
html[data-theme="dark"] .lead-carteira-card__segmento,
html[data-theme="dark"] .lead-carteira-card__summary-label,
html[data-theme="dark"] .lead-carteira-card__fact dt {
    color: #94a3b8;
}

html[data-theme="dark"] .lead-carteira-card__cnpj-bar {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .lead-carteira-card__cnpj-bar-value {
    color: #f8fafc;
}

html[data-theme="dark"] .lead-carteira-card__btn-copy {
    color: #93c5fd;
    background: #1e3a5f;
    border-color: #334155;
}

html[data-theme="dark"] .lead-carteira-card__btn-copy:hover {
    background: #1e40af;
}

html[data-theme="dark"] .lead-carteira-card__btn-copy.is-copied {
    color: #86efac;
    background: #14532d;
    border-color: #166534;
}

html[data-theme="dark"] .lead-carteira-card__summary-contact,
html[data-theme="dark"] .lead-carteira-card__summary-item,
html[data-theme="dark"] .lead-carteira-card__fact dd,
html[data-theme="dark"] .lead-carteira-contato-form__label {
    color: #e2e8f0;
}

html[data-theme="dark"] .lead-carteira-card__chevron {
    color: #94a3b8;
}

html[data-theme="dark"] .lead-carteira-card__btn-voip:not(:disabled) {
    background: linear-gradient(180deg, #1e3a5f 0%, #0f2744 100%);
}

html[data-theme="dark"] .lead-carteira-card__btn-voip:disabled {
    background: #334155;
    color: #64748b;
}

html[data-theme="dark"] .lead-carteira-chip {
    background: #172554;
    color: #93c5fd;
}

html[data-theme="dark"] .lead-carteira-chip--muted {
    background: #334155;
    color: #cbd5e1;
}

html[data-theme="dark"] .lead-carteira-chip--resultado,
html[data-theme="dark"] .lead-carteira-chip--ok {
    background: #052e16;
    color: #86efac;
}

html[data-theme="dark"] .lead-carteira-chip--warn {
    background: #431407;
    color: #fdba74;
}

html[data-theme="dark"] .lead-carteira-chip--note {
    background: #172554;
    color: #93c5fd;
}

html[data-theme="dark"] .lead-carteira-chip--danger {
    background: #450a0a;
    color: #fca5a5;
}

html[data-theme="dark"] .lead-atendimento-box__titulo,
html[data-theme="dark"] .lead-insatisfacao-box__titulo {
    color: #7dd3fc;
}

html[data-theme="dark"] .lead-atendimento-form__label,
html[data-theme="dark"] .leads-insatisfacao-form__label {
    color: #cbd5e1;
}

html[data-theme="dark"] .leads-carteira-page .lead-atendimento-form__textarea,
html[data-theme="dark"] .leads-carteira-page .lead-atendimento-form__select,
html[data-theme="dark"] .leads-carteira-page .leads-insatisfacao-form__textarea,
html[data-theme="dark"] .leads-carteira-page .leads-insatisfacao-form__select {
    background: #0f172a;
    border: 1px solid #475569;
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-carteira-page .lead-atendimento-form__textarea:focus,
html[data-theme="dark"] .leads-carteira-page .lead-atendimento-form__select:focus,
html[data-theme="dark"] .leads-carteira-page .leads-insatisfacao-form__textarea:focus,
html[data-theme="dark"] .leads-carteira-page .leads-insatisfacao-form__select:focus {
    border-color: #38bdf8;
    outline: none;
}

html[data-theme="dark"] .lead-atendimento-form__btn,
html[data-theme="dark"] .leads-insatisfacao-form__btn {
    background: #1e3a5f;
    border-color: #334155;
    color: #e0f2fe;
}

html[data-theme="dark"] .lead-atendimento-form__btn:hover,
html[data-theme="dark"] .leads-insatisfacao-form__btn:hover {
    background: #2563eb;
    border-color: #38bdf8;
}

html[data-theme="dark"] .lead-insatisfacao-box__valor,
html[data-theme="dark"] .lead-insatisfacao-box__motivo,
html[data-theme="dark"] .leads-carteira-page .form-panel__hint {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-carteira-page .form-panel__hint strong,
html[data-theme="dark"] .leads-carteira-page p strong {
    color: #e2e8f0;
}

html[data-theme="dark"] .leads-carteira-empty {
    background: #1e293b;
    border-color: #475569;
    color: #94a3b8;
}

html[data-theme="dark"] .leads-views-nav__link {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .leads-views-nav__link:hover {
    background: #334155;
    border-color: #64748b;
    color: #f8fafc;
}

html[data-theme="dark"] .leads-views-nav__link--active {
    background: #1e3a5f;
    border-color: #38bdf8;
    color: #e0f2fe;
}

html[data-theme="dark"] .leads-listagem-wrap {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .leads-listagem-table thead th {
    background: #0f172a;
    color: #cbd5e1;
    border-color: #334155;
}

html[data-theme="dark"] .leads-listagem-table td {
    color: #e2e8f0;
    border-color: #334155;
}

html[data-theme="dark"] .leads-listagem-table tbody tr {
    background: #1e293b;
}

html[data-theme="dark"] .leads-listagem-table tbody tr:hover {
    background: #273548;
}

html[data-theme="dark"] .leads-listagem-table__anotacao,
html[data-theme="dark"] .leads-listagem-table__insat small {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-carteira-page .paginacao-lista,
html[data-theme="dark"] .leads-listagem-page .paginacao-lista {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-carteira-page .paginacao-lista a,
html[data-theme="dark"] .leads-listagem-page .paginacao-lista a {
    color: #38bdf8;
}

html[data-theme="dark"] .leads-carteira-page .cell-mono {
    color: #cbd5e1;
}

html[data-theme="dark"] .leads-carteira-page .leads-carteira-icon-btn--whatsapp {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.45);
    color: #4ade80;
}

html[data-theme="dark"] .leads-carteira-page .leads-carteira-icon-btn--whatsapp:hover {
    background: rgba(37, 211, 102, 0.28);
    color: #86efac;
}

html[data-theme="dark"] .leads-listagem-page .tabela-relatorio-compacta thead th {
    background: #0f172a;
    color: #cbd5e1;
}

html[data-theme="dark"] .leads-listagem-page .tabela-relatorio-compacta tbody tr:nth-child(even) {
    background-color: #172033;
}

html[data-theme="dark"] .leads-listagem-page .tabela-relatorio-compacta tbody tr:nth-child(odd) {
    background-color: #1e293b;
}

html[data-theme="dark"] .leads-carteira-page .filtros-lista-acoes button[type="submit"],
html[data-theme="dark"] .leads-listagem-page .filtros-lista-acoes button[type="submit"] {
    background: linear-gradient(180deg, #1e3a5f 0%, #0f2744 100%);
    border-color: #334155;
    color: #e0f2fe;
}

html[data-theme="dark"] .leads-carteira-page .filtros-lista-acoes button[type="submit"]:hover,
html[data-theme="dark"] .leads-listagem-page .filtros-lista-acoes button[type="submit"]:hover {
    filter: brightness(1.1);
}

html[data-theme="dark"] .leads-carteira-page small,
html[data-theme="dark"] .leads-listagem-page small {
    color: #94a3b8;
}

html[data-theme="dark"] .paginacao-lista--moderna {
    border-color: #334155;
    background: #0f172a;
    color: #94a3b8;
}

html[data-theme="dark"] .paginacao-lista__btn {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .paginacao-lista__btn:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

html[data-theme="dark"] .lista-msg-expand__body {
    background: #450a0a;
    border-color: #991b1b;
    color: #fecaca;
}

html[data-theme="dark"] .action-link {
    background: #334155;
    border-color: #475569;
    color: #38bdf8;
}

html[data-theme="dark"] .action-link:hover {
    background: #475569;
    border-color: #38bdf8;
}

html[data-theme="dark"] .badge-tipo {
    background: #172554;
    color: #93c5fd;
    border: 1px solid #3b82f6;
}

html[data-theme="dark"] .tabela-vendedores .td-vazia,
html[data-theme="dark"] .tabela-vendedores .lista-tabela-vazia,
html[data-theme="dark"] .tabela-usuarios .lista-tabela-vazia {
    background: #0f172a;
    color: #94a3b8;
}

html[data-theme="dark"] .tabela-relatorio-compacta tbody tr:nth-child(even) {
    background-color: #1e293b;
}

html[data-theme="dark"] .tabela-relatorio-compacta td,
html[data-theme="dark"] .tabela-relatorio-compacta th {
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .tabela-relatorio-compacta th {
    background-color: #0b4f8a;
    color: #fff;
}

html[data-theme="dark"] .pfpj-th-ficha,
html[data-theme="dark"] .pfpj-td-ficha {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

html[data-theme="dark"] .pfpj-btn-ficha {
    background: #334155;
    border-color: #475569;
    color: #38bdf8;
}

html[data-theme="dark"] .pfpj-btn-ficha:hover {
    background: #475569;
}

/* ---------- Chips, KPIs, toolbar, alertas de painel ---------- */
html[data-theme="dark"] .status-chip--aprovado {
    color: #86efac;
    background: #052e16;
}

html[data-theme="dark"] .status-chip--reprovado {
    color: #fca5a5;
    background: #450a0a;
}

html[data-theme="dark"] .status-chip--neutro {
    color: #cbd5e1;
    background: #334155;
}

html[data-theme="dark"] .kpi-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .kpi-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .kpi-card__label {
    color: #94a3b8;
}

html[data-theme="dark"] .kpi-card__value {
    color: #f8fafc;
}

html[data-theme="dark"] .kpi-card__hint {
    color: #94a3b8;
}

html[data-theme="dark"] .kpi-card--grupo .kpi-card__stack strong {
    color: #f1f5f9;
}

html[data-theme="dark"] .painel-dash-analise__alert {
    background: linear-gradient(180deg, #422006 0%, #451a03 100%);
    border-color: #d97706;
    color: #fde68a;
}

html[data-theme="dark"] .painel-dash-analise__alert--qualidade {
    border-color: #3b82f6;
    background: linear-gradient(180deg, #172554 0%, #1e3a5f 100%);
    color: #bfdbfe;
}

html[data-theme="dark"] .painel-dash-analise__cta {
    background: #334155;
    border-color: #f59e0b;
    color: #fde68a;
}

html[data-theme="dark"] .painel-dash-analise__cta:hover {
    background: #475569;
}

html[data-theme="dark"] .painel-dash-analise__cta--qualidade {
    color: #93c5fd;
    border-color: #3b82f6;
    background: #1e293b;
}

html[data-theme="dark"] .painel-dash-analise__cta--qualidade:hover {
    background: #334155;
}

html[data-theme="dark"] .qualidade-lock-aviso {
    color: #fde68a;
    background: linear-gradient(180deg, #422006 0%, #451a03 100%);
    border-color: #d97706;
}

html[data-theme="dark"] .qualidade-lock-timer--mine {
    color: #bae6fd;
    background: linear-gradient(180deg, #0c4a6e 0%, #075985 100%);
    border-color: #0284c7;
}

html[data-theme="dark"] .qualidade-lock-timer--wait {
    color: #fde68a;
    background: linear-gradient(180deg, #422006 0%, #451a03 100%);
    border-color: #d97706;
}

html[data-theme="dark"] .qualidade-lock-timer--urgent .qualidade-lock-timer__valor {
    color: #fdba74;
}

html[data-theme="dark"] .qualidade-lock-timer--done .qualidade-lock-timer__valor,
html[data-theme="dark"] .qualidade-lock-timer--expired {
    color: #fca5a5;
}

html[data-theme="dark"] .btn-qualidade-abortar {
    background: #450a0a;
    border-color: #991b1b;
    color: #fecaca;
}

html[data-theme="dark"] .btn-qualidade-abortar:hover {
    background: #7f1d1d;
    border-color: #b91c1c;
}

html[data-theme="dark"] .totais-kpi__heading {
    color: #94a3b8;
}

html[data-theme="dark"] .config-admin__hint {
    color: #94a3b8;
}

html[data-theme="dark"] .btn-delete-all {
    background: #450a0a;
    border-color: #991b1b;
    color: #fecaca;
}

html[data-theme="dark"] .btn-delete-all:hover {
    background: #7f1d1d;
    border-color: #f87171;
    color: #fff;
}

html[data-theme="dark"] .page-footnote {
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .page-footnote__note {
    color: #94a3b8;
}

html[data-theme="dark"] .page-footnote__link {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .page-footnote__link:hover {
    color: #38bdf8;
    border-color: #38bdf8;
}

html[data-theme="dark"] .page-toolbar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

html[data-theme="dark"] .page-toolbar__link {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .page-toolbar__link:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}

/* ---------- Cadastro PF/PJ (formulário) ---------- */
html[data-theme="dark"] .cadastro-pfpj-form {
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    border-left-color: #38bdf8;
}

html[data-theme="dark"] .cadastro-pfpj-form .form-group label {
    color: #94a3b8;
}

html[data-theme="dark"] .cadastro-pfpj-form .form-group input,
html[data-theme="dark"] .cadastro-pfpj-form .form-group select {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}

/* ---------- Dialog exceção (qualidade) ---------- */
html[data-theme="dark"] dialog.dialog-excecao {
    background: #1e293b;
    color: #e2e8f0;
}

html[data-theme="dark"] .dialog-excecao::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .dialog-excecao__title {
    color: #f1f5f9;
}

html[data-theme="dark"] .dialog-excecao__msg {
    color: #cbd5e1;
}

html[data-theme="dark"] .dialog-excecao__btn {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .dialog-excecao__btn--primary {
    background: #065f46;
    border-color: #10b981;
    color: #d1fae5;
}

html[data-theme="dark"] .voip-call-dialog__hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 52%, #1e293b 100%);
    border-bottom-color: #334155;
}

html[data-theme="dark"] .voip-call-dialog__eyebrow {
    color: #7dd3fc;
}

html[data-theme="dark"] .voip-call-dialog__badge {
    background: #172554;
    color: #93c5fd;
    border-color: #3b82f6;
}

html[data-theme="dark"] .voip-call-dialog__msg {
    color: #f8fafc;
}

html[data-theme="dark"] .voip-call-dialog__hint {
    color: #94a3b8;
}

html[data-theme="dark"] .voip-call-dialog__spinner {
    border-color: #475569;
    border-top-color: #38bdf8;
}

html[data-theme="dark"] .voip-call-dialog[data-state="success"] .voip-call-dialog__badge {
    background: #052e16;
    color: #86efac;
    border-color: #166534;
}

html[data-theme="dark"] .voip-call-dialog[data-state="success"] .voip-call-dialog__icon {
    background: linear-gradient(180deg, #15803d 0%, #166534 100%);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.22);
}

html[data-theme="dark"] .voip-call-dialog[data-state="success"] .voip-call-dialog__msg {
    color: #86efac;
}

html[data-theme="dark"] .voip-call-dialog[data-state="error"] .voip-call-dialog__badge {
    background: #450a0a;
    color: #fca5a5;
    border-color: #991b1b;
}

html[data-theme="dark"] .voip-call-dialog[data-state="error"] .voip-call-dialog__icon {
    background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

html[data-theme="dark"] .voip-call-dialog[data-state="error"] .voip-call-dialog__msg {
    color: #fca5a5;
}

html[data-theme="dark"] .venda-qualidade-details__summary {
    color: #e2e8f0;
}

html[data-theme="dark"] .venda-qualidade-details__body {
    border-left-color: #475569;
}

html[data-theme="dark"] .qualidade-reprovar-aprovada-details__label {
    color: #fdba74;
    text-decoration-color: rgba(253, 186, 116, 0.45);
}

html[data-theme="dark"] .qualidade-reprovar-aprovada-details__hint {
    color: #94a3b8;
}

html[data-theme="dark"] .btn-qualidade-reprovar-aprovada {
    background: #450a0a;
    border-color: #991b1b;
    color: #fecaca;
}

html[data-theme="dark"] .btn-qualidade-reprovar-aprovada:hover {
    background: #7f1d1d;
    border-color: #f87171;
    color: #fff;
}

html[data-theme="dark"] .qualidade-fila-tabs {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .qualidade-fila-tabs__tab {
    color: #94a3b8;
}

html[data-theme="dark"] .qualidade-fila-tabs__tab:hover {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

html[data-theme="dark"] .qualidade-fila-tabs__tab--active {
    background: #422006;
    border-color: #d97706;
    color: #fdba74;
}

html[data-theme="dark"] .qualidade-fila-tabs__hint {
    color: #94a3b8;
}

html[data-theme="dark"] .painel-dash-analise__alert--reenviada {
    border-color: #ea580c;
    background: linear-gradient(180deg, #431407 0%, #7c2d12 100%);
    color: #fed7aa;
}

html[data-theme="dark"] .painel-dash-analise__alert--qualidade.painel-dash-analise__alert--reenviada {
    border-color: #ea580c;
    background: linear-gradient(180deg, #431407 0%, #7c2d12 100%);
    color: #fed7aa;
}

html[data-theme="dark"] .kpi-card--accent-reenviada,
html[data-theme="dark"] .metas-vendedor-dash__kpi--accent-reenviada {
    background: linear-gradient(180deg, #431407 0%, #292524 100%);
    border-color: #9a3412;
}

html[data-theme="dark"] .kpi-card--accent-reenviada .kpi-card__label,
html[data-theme="dark"] .kpi-card--accent-reenviada .kpi-card__value {
    color: #fdba74;
}

html[data-theme="dark"] .metas-vendedor-dash__kpi--accent-reenviada .metas-vendedor-dash__kpi-ico {
    color: #fb923c;
}

html[data-theme="dark"] .status-chip--reenviada {
    color: #fdba74;
    background: #431407;
    border-color: #9a3412;
}

html[data-theme="dark"] .lista-reprova-msg {
    color: #fca5a5;
}

html[data-theme="dark"] .lista-page .filtros-lista-grid select,
html[data-theme="dark"] .lista-page .filtros-lista-grid input {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}

/* ---------- Ficha PF/PJ v2 + log + modal ---------- */
html[data-theme="dark"] .ficha-pfpj--v2 {
    --ficha-surface: #0f172a;
    --ficha-line: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .ficha-pfpj-v2__hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #1e293b 100%);
    border-color: #334155;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .ficha-pfpj-v2__kicker,
html[data-theme="dark"] .ficha-pfpj-v2__cod {
    color: #7dd3fc;
}

html[data-theme="dark"] .ficha-pfpj-v2__title {
    color: #f8fafc;
}

html[data-theme="dark"] .ficha-pfpj-v2__meta {
    color: #94a3b8;
}

html[data-theme="dark"] .ficha-pfpj-v2__pill--tipo {
    background: #172554;
    color: #93c5fd;
    border-color: #3b82f6;
}

html[data-theme="dark"] .ficha-pfpj-v2__pill--ok {
    background: #052e16;
    color: #86efac;
    border-color: #166534;
}

html[data-theme="dark"] .ficha-pfpj-v2__pill--off {
    background: #450a0a;
    color: #fca5a5;
    border-color: #991b1b;
}

html[data-theme="dark"] .ficha-pfpj-v2__dl--id > .ficha-pfpj-v2__field {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .ficha-pfpj-v2__dl--id > .ficha-pfpj-v2__field dt {
    color: #94a3b8;
}

html[data-theme="dark"] .ficha-pfpj-v2__dl--id > .ficha-pfpj-v2__field .ficha-pfpj-v2__val {
    color: #f8fafc;
}

html[data-theme="dark"] .ficha-pfpj-v2__photo-frame {
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .ficha-pfpj-v2__photo-frame--empty {
    background: linear-gradient(180deg, #1e293b, #0f172a);
}

html[data-theme="dark"] .ficha-pfpj-v2__panel {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .ficha-pfpj-v2__sec-tit,
html[data-theme="dark"] .ficha-pfpj-v2__card-tit {
    color: #7dd3fc;
}

html[data-theme="dark"] .ficha-pfpj-v2__row {
    border-top-color: #334155;
}

html[data-theme="dark"] .ficha-pfpj-v2__dl dt {
    color: #94a3b8;
}

html[data-theme="dark"] .ficha-pfpj-v2__dl dd {
    color: #f1f5f9;
}

html[data-theme="dark"] .ficha-pfpj-v2__card {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .ficha-pfpj-v2__card-head {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.1) 0%, #1e293b 100%);
    border-bottom-color: #334155;
}

html[data-theme="dark"] .ficha-pfpj-v2__icon {
    background: #0c4a6e;
    color: #7dd3fc;
}

html[data-theme="dark"] .ficha-pfpj-v2__doc-item {
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .ficha-pfpj-v2__doc-nome {
    color: #e2e8f0;
}

html[data-theme="dark"] .ficha-pfpj-v2__doc-nome .ficha-pfpj__doc-tipo,
html[data-theme="dark"] .ficha-pfpj__doc-tipo {
    color: #94a3b8;
}

html[data-theme="dark"] .ficha-pfpj__vazio {
    color: #94a3b8;
}

html[data-theme="dark"] .pfpj-log-card {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .pfpj-log-card__head {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.1) 0%, #1e293b 100%);
    border-bottom-color: #334155;
}

html[data-theme="dark"] .pfpj-log-card__kicker {
    color: #94a3b8;
}

html[data-theme="dark"] .pfpj-log-card__head h2 {
    color: #7dd3fc;
}

html[data-theme="dark"] .pfpj-log-card__count {
    background: #0c4a6e;
    color: #bae6fd;
}

html[data-theme="dark"] .pfpj-log-item {
    border-top-color: #334155;
}

html[data-theme="dark"] .pfpj-log-item--supervisao {
    background: #172554;
}

html[data-theme="dark"] .pfpj-log-item__title-row strong {
    color: #f1f5f9;
}

html[data-theme="dark"] .pfpj-log-item__title-row span,
html[data-theme="dark"] .pfpj-log-item__meta {
    color: #94a3b8;
}

html[data-theme="dark"] .pfpj-log-item__values span {
    border-color: #334155;
    background: #0f172a;
    color: #e2e8f0;
}

html[data-theme="dark"] .pfpj-log-item__values small {
    color: #64748b;
}

html[data-theme="dark"] .pfpj-log-card__empty {
    color: #94a3b8;
}

html[data-theme="dark"] .ficha-pfpj__exclui-btn {
    background: #450a0a;
    border-color: #991b1b;
    color: #fecaca;
}

html[data-theme="dark"] .ficha-pfpj__exclui-btn:hover {
    background: #7f1d1d;
}

html[data-theme="dark"] .pfpj-ficha-dialog {
    background: #1e293b;
    color: #e2e8f0;
    box-shadow: 0 0 0 1px #334155, 0 32px 64px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .pfpj-ficha-dialog__chrome {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom-color: #334155;
}

html[data-theme="dark"] .pfpj-ficha-dialog__kicker {
    color: #7dd3fc;
}

html[data-theme="dark"] .pfpj-ficha-dialog__link {
    color: #38bdf8;
}

html[data-theme="dark"] .pfpj-ficha-dialog__link:hover {
    background: #334155;
    border-color: #38bdf8;
}

html[data-theme="dark"] .pfpj-ficha-dialog__x {
    background: #334155;
    border-color: #475569;
    color: #cbd5e1;
}

html[data-theme="dark"] .pfpj-ficha-dialog__x:hover {
    background: #475569;
    color: #fff;
}

html[data-theme="dark"] .pfpj-ficha-dialog__scroller {
    background: #0f172a;
}

html[data-theme="dark"] .pfpj-ficha-dialog__load,
html[data-theme="dark"] .pfpj-ficha-dialog__erro {
    color: #94a3b8;
}

/* ---------- Leads — distribuição ---------- */
html[data-theme="dark"] .leads-distribuicao-header h1 {
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-distribuicao-header__lead {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-distribuicao-header__icon {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
}

html[data-theme="dark"] .leads-distribuicao-header__icon--redist {
    background: rgba(251, 146, 60, 0.15);
    color: #fdba74;
}

html[data-theme="dark"] .leads-distribuicao-badge--off {
    color: #86efac;
    background: rgba(22, 101, 52, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}

html[data-theme="dark"] .leads-distribuicao-badge--on {
    color: #86efac;
    background: rgba(22, 101, 52, 0.28);
    border-color: rgba(34, 197, 94, 0.5);
}

html[data-theme="dark"] .leads-distribuicao-toolbar {
    border-color: #334155;
    background: #0f172a;
}

html[data-theme="dark"] .leads-distribuicao-setor label {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-distribuicao-setor select {
    background: #1e293b;
    border-color: #475569;
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-distribuicao-regra {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-distribuicao-regra strong {
    color: #e2e8f0;
}

html[data-theme="dark"] .leads-distribuicao-card__title {
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-distribuicao-card__hint {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-distribuicao-empty {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.5);
    color: #94a3b8;
}

html[data-theme="dark"] .leads-resumo-item {
    border-color: #334155;
    background: #1e293b;
}

html[data-theme="dark"] .leads-resumo-item__topo strong,
html[data-theme="dark"] .leads-resumo-item--compact strong {
    color: #f8fafc;
}

html[data-theme="dark"] .leads-resumo-item__topo span,
html[data-theme="dark"] .leads-resumo-item--compact span {
    background: #0c4a6e;
    color: #bae6fd;
}

html[data-theme="dark"] .leads-resumo-item__grid span {
    background: #0f172a;
    color: #94a3b8;
}

html[data-theme="dark"] .leads-resumo-item__grid strong {
    color: #f8fafc;
}

html[data-theme="dark"] .leads-distribuicao-secao-label,
html[data-theme="dark"] .leads-distribuicao-campo > label:first-child {
    color: #cbd5e1;
}

html[data-theme="dark"] .leads-distribuicao-opcao {
    border-color: #334155;
    background: #0f172a;
}

html[data-theme="dark"] .leads-distribuicao-opcao:has(input:checked) {
    border-color: #38bdf8;
    background: #172554;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

html[data-theme="dark"] .leads-distribuicao-opcao strong {
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-distribuicao-opcao small {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-distribuicao-vendedores__topo {
    color: #cbd5e1;
}

html[data-theme="dark"] .leads-distribuicao-vendedores__lista {
    border-color: #334155;
    background: #0f172a;
}

html[data-theme="dark"] .leads-distribuicao-vendedor {
    border-bottom-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .leads-distribuicao-vendedor:hover {
    background: #334155;
}

html[data-theme="dark"] .leads-distribuicao-submit {
    background: #0284c7;
    color: #fff;
    border: none;
}

html[data-theme="dark"] .leads-distribuicao-submit:hover {
    background: #0369a1;
}

html[data-theme="dark"] .leads-distribuicao-submit--redist {
    background: #ea580c;
}

html[data-theme="dark"] .leads-distribuicao-submit--redist:hover {
    background: #c2410c;
}

html[data-theme="dark"] .leads-distribuicao-page .leads-distribuicao-campo select {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-distribuicao-quantidade-input {
    border-color: #475569;
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .leads-distribuicao-quantidade-input:not([hidden]) {
    border-color: rgba(56, 189, 248, 0.4);
}

html[data-theme="dark"] .leads-distribuicao-quantidade-input label {
    color: #cbd5e1;
}

html[data-theme="dark"] .leads-distribuicao-quantidade-input input[type="number"] {
    background: #0f172a;
    border-color: #475569;
    color: #f8fafc;
}

html[data-theme="dark"] .leads-distribuicao-quantidade-input input[type="number"]:focus {
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

html[data-theme="dark"] .leads-distribuicao-quantidade-input .form-panel__hint {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-distribuicao-opcao input[type="radio"],
html[data-theme="dark"] .leads-distribuicao-vendedor input[type="checkbox"],
html[data-theme="dark"] .leads-distribuicao-opcao--confirm input[type="checkbox"] {
    accent-color: #38bdf8;
}

html[data-theme="dark"] .leads-distribuicao-vendedor__nome {
    color: #e2e8f0;
}

html[data-theme="dark"] .leads-distribuicao-sidebar__title {
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-distribuicao-steps li strong {
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-distribuicao-steps li p {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-distribuicao-dica {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.25);
    color: #cbd5e1;
}

html[data-theme="dark"] .leads-distribuicao-dica strong {
    color: #e2e8f0;
}

html[data-theme="dark"] .leads-distribuicao-dica p {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-distribuicao-dica--warn {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.3);
}

html[data-theme="dark"] .leads-distribuicao-aviso {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.35);
    color: #fde68a;
}

html[data-theme="dark"] .leads-distribuicao-redist {
    border-color: #334155;
    background: #0f172a;
}

html[data-theme="dark"] .leads-distribuicao-redist__text {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-distribuicao-redist__btn {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .leads-distribuicao-redist__btn:hover {
    background: #334155;
    border-color: #64748b;
    color: #fff;
}

html[data-theme="dark"] .leads-redistribuicao-toolbar__back {
    color: #7dd3fc;
}

html[data-theme="dark"] .leads-redistribuicao-resumo__info {
    color: #64748b;
}

html[data-theme="dark"] .leads-redist-resumo-card__label {
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-redist-resumo-card__total {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-redist-resumo-card--atendimento {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.25);
}

html[data-theme="dark"] .leads-redist-resumo-card--ativado {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
}

html[data-theme="dark"] .leads-redist-resumo-card--falha {
    background: rgba(251, 146, 60, 0.1);
    border-color: rgba(251, 146, 60, 0.25);
}

html[data-theme="dark"] .leads-redist-resumo-card--finalizado {
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.28);
}

html[data-theme="dark"] .leads-redist-resumo-card--outro {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .leads-redist-resumo-card--custom-a {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.28);
}

html[data-theme="dark"] .leads-redist-resumo-card--custom-b {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.28);
}

html[data-theme="dark"] .leads-redist-resumo-card--custom-c {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.28);
}

html[data-theme="dark"] .leads-redist-resumo-card--custom-d {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}

html[data-theme="dark"] .leads-redist-resumo-card--custom-e {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.28);
}

html[data-theme="dark"] .leads-redist-resumo-card--custom-f {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.28);
}

html[data-theme="dark"] .leads-redist-form-section__title {
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-redist-resultados-list {
    border-color: #334155;
    background: #0f172a;
}

html[data-theme="dark"] .leads-redist-result-row {
    border-bottom-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .leads-redist-result-row:hover {
    background: #334155;
}

html[data-theme="dark"] .leads-redist-result-row:has(input:checked) {
    background: #172554;
}

html[data-theme="dark"] .leads-redist-result-row__label {
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-redist-result-row__count {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-redist-sidebar-aviso {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.35);
    color: #fde68a;
}

html[data-theme="dark"] .leads-redist-sidebar-aviso strong {
    color: #fef3c7;
}

html[data-theme="dark"] .leads-redist-sidebar-aviso em {
    color: #fcd34d;
}

html[data-theme="dark"] .leads-redist-sidebar-duvidas {
    border-top-color: #334155;
    color: #94a3b8;
}

html[data-theme="dark"] .leads-redist-sidebar-duvidas strong {
    color: #e2e8f0;
}

/* ---------- Página inicial (wallpaper) ---------- */
html[data-theme="dark"] .inicio-wallpaper__card {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(51, 65, 85, 0.9);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .inicio-wallpaper__kicker {
    color: #7dd3fc;
}

html[data-theme="dark"] .inicio-wallpaper__card h1 {
    color: #f8fafc;
}

html[data-theme="dark"] .inicio-wallpaper__lead {
    color: #cbd5e1;
}

html[data-theme="dark"] .inicio-wallpaper__btn--secondary {
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.85);
    border-color: #475569;
    box-shadow: none;
}

html[data-theme="dark"] .inicio-wallpaper__btn--secondary:hover {
    color: #fff;
    background: #334155;
    border-color: #64748b;
}

/* ---------- Cadastros PF/PJ — navegação topo ---------- */
html[data-theme="dark"] .pfpj-topnav {
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .pfpj-topnav__brand {
    color: #94a3b8;
}

html[data-theme="dark"] .pfpj-topnav__a {
    color: #cbd5e1;
}

html[data-theme="dark"] .pfpj-topnav__a:hover {
    background: #334155;
    color: #f8fafc;
}

html[data-theme="dark"] .pfpj-topnav__a--active {
    background: #172554;
    color: #93c5fd;
    border-color: #3b82f6;
}

html[data-theme="dark"] .pfpj-topnav__inicio {
    color: #94a3b8;
}

html[data-theme="dark"] .pfpj-topnav__inicio:hover {
    color: #38bdf8;
}

/* Login e formulários simples no container */
html[data-theme="dark"] .container form button[type="submit"] {
    background: #0284c7;
    color: #fff;
    border: none;
}

html[data-theme="dark"] .container form button[type="submit"]:hover {
    background: #0369a1;
}

html[data-theme="dark"] .topo__brand .logo--light {
    display: none;
}

html[data-theme="dark"] .topo__brand .logo--dark {
    display: block;
}

/* Metas por setor */
html[data-theme="dark"] .metas-container {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
    color: #e2e8f0;
}

html[data-theme="dark"] .metas-bloco h3 {
    color: #7dd3fc;
}

html[data-theme="dark"] .metas-bloco p.hint {
    color: #94a3b8;
}

html[data-theme="dark"] .metas-container table {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
}

html[data-theme="dark"] .metas-container th,
html[data-theme="dark"] .metas-container td {
    border-bottom-color: #334155;
}

html[data-theme="dark"] .metas-container th {
    background: #0b5ea8;
    color: #f8fafc;
}

html[data-theme="dark"] .metas-container td {
    color: #e2e8f0;
}

html[data-theme="dark"] .metas-container td strong {
    color: #f8fafc;
}

html[data-theme="dark"] .metas-container input[type="number"] {
    background: #1e293b;
    border-color: #475569;
    color: #f8fafc;
}

html[data-theme="dark"] .metas-container .btn-salvar {
    background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.22);
}

html[data-theme="dark"] .metas-container .btn-salvar:hover {
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
}

/* Quadro semanal */
html[data-theme="dark"] .quadro-semanal__subtitulo {
    color: #f8fafc;
}

html[data-theme="dark"] .quadro-semanal__intro {
    color: #cbd5e1;
}

html[data-theme="dark"] .quadro-semanal__filters input,
html[data-theme="dark"] .quadro-semanal__filters select {
    background: #1e293b;
    border-color: #475569;
    color: #f8fafc;
}

html[data-theme="dark"] .quadro-semanal__action-btn {
    background: #1e40af;
    border-color: #3b82f6;
    color: #eff6ff;
}

html[data-theme="dark"] .quadro-semanal__action-btn:hover {
    background: #1d4ed8;
    border-color: #60a5fa;
}

html[data-theme="dark"] #areaExportavelQuadro {
    background: #0f172a;
    border: 1px solid #334155;
    box-shadow: inset 0 0 0 1px rgba(51, 65, 85, 0.18);
}

/* Matriz de permissões */
html[data-theme="dark"] .permissoes-matriz__grupo {
    background: #172554;
    color: #dbeafe;
}

html[data-theme="dark"] .permissoes-matriz__atalhos {
    background: #1e293b;
    color: #e2e8f0;
}

html[data-theme="dark"] .permissoes-matriz__perm {
    color: #e2e8f0;
}

/* Edição inline em vendedores e usuários */
html[data-theme="dark"] .tabela-vendedores .vendedor-resumo-compacto,
html[data-theme="dark"] .tabela-usuarios .vendedor-resumo-compacto {
    color: #cbd5e1;
}

html[data-theme="dark"] .tabela-vendedores .vendedor-btn-toggle-edit,
html[data-theme="dark"] .tabela-usuarios .vendedor-btn-toggle-edit {
    background: #0f172a;
    border-color: #334155;
    color: #7dd3fc;
}

html[data-theme="dark"] .tabela-vendedores .vendedor-btn-toggle-edit:hover,
html[data-theme="dark"] .tabela-usuarios .vendedor-btn-toggle-edit:hover {
    background: #172554;
    border-color: #3b82f6;
    color: #bfdbfe;
}

html[data-theme="dark"] .tabela-vendedores .vendedor-btn-toggle-edit[aria-pressed="true"],
html[data-theme="dark"] .tabela-usuarios .vendedor-btn-toggle-edit[aria-pressed="true"] {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .tabela-vendedores .vendedor-ajustes-bloco--editando,
html[data-theme="dark"] .tabela-usuarios .vendedor-ajustes-bloco--editando {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 0.45rem 0.55rem;
}

html[data-theme="dark"] .tabela-vendedores .vendedor-form-linha__select,
html[data-theme="dark"] .tabela-vendedores .vendedor-form-linha__user,
html[data-theme="dark"] .tabela-vendedores .vendedor-form-linha__senha,
html[data-theme="dark"] .tabela-usuarios .vendedor-form-linha__select,
html[data-theme="dark"] .tabela-usuarios .vendedor-form-linha__user,
html[data-theme="dark"] .tabela-usuarios .vendedor-form-linha__senha {
    background: #1e293b;
    border-color: #475569;
    color: #f8fafc;
}

html[data-theme="dark"] .tabela-vendedores .vendedor-ajustes__sep,
html[data-theme="dark"] .tabela-usuarios .vendedor-ajustes__sep {
    color: #475569;
}

html[data-theme="dark"] .btn-icon-save {
    background: #0f172a;
    border-color: #334155;
    color: #7dd3fc;
}

html[data-theme="dark"] .btn-icon-save:hover {
    background: #172554;
    border-color: #3b82f6;
    color: #dbeafe;
}

html[data-theme="dark"] .btn-icon-save:disabled,
html[data-theme="dark"] .btn-icon-save:disabled:hover {
    background: #0f172a;
    border-color: #334155;
    color: #475569;
}

html[data-theme="dark"] .tabela-usuarios .usuario-hint-admin-setor {
    color: #94a3b8;
}

html[data-theme="dark"] .lista-linha-usuario-inativo td {
    background: rgba(127, 29, 29, 0.14);
}

/* Cards e blocos administrativos */
html[data-theme="dark"] .perfil-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24);
}

html[data-theme="dark"] .perfil-card__header h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .perfil-card__desc {
    color: #cbd5e1;
}

html[data-theme="dark"] .perfil-card__meta {
    color: #94a3b8;
}

html[data-theme="dark"] .perfil-card__details > summary {
    color: #93c5fd;
}

html[data-theme="dark"] .periodo-item {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .status-aberto {
    background: rgba(22, 101, 52, 0.22);
    color: #86efac;
}

html[data-theme="dark"] .status-fechado {
    background: rgba(71, 85, 105, 0.35);
    color: #cbd5e1;
}

html[data-theme="dark"] .relatorio-fieldset {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .relatorio-fieldset > legend {
    color: #e2e8f0;
}

html[data-theme="dark"] .relatorio-checkgrid label {
    color: #cbd5e1;
}

html[data-theme="dark"] .status-chip--ok {
    background: rgba(22, 101, 52, 0.22);
    color: #86efac;
}

html[data-theme="dark"] .status-chip--erro {
    background: rgba(153, 27, 27, 0.26);
    color: #fca5a5;
}

/* ---------- Leads — importação (wizard) ---------- */
html[data-theme="dark"] .leads-import-btn--ghost {
    background: #1e293b;
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.35);
}

html[data-theme="dark"] .leads-import-btn--ghost:hover {
    background: rgba(56, 189, 248, 0.12);
}

html[data-theme="dark"] .leads-import-btn--outline {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #475569;
}

html[data-theme="dark"] .leads-import-btn--outline:hover {
    background: #334155;
}

html[data-theme="dark"] .leads-import-step__num {
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
}

html[data-theme="dark"] .leads-import-step__title {
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-import-field-label {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-import-select {
    background: #0f172a;
    border-color: #475569;
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-import-setor-fixo {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-import-alert {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.28);
    color: #e2e8f0;
}

html[data-theme="dark"] .leads-import-alert svg {
    color: #7dd3fc;
}

html[data-theme="dark"] .leads-import-layout-card {
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .leads-import-layout-card--accent {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, #0f172a 100%);
    border-color: rgba(56, 189, 248, 0.25);
}

html[data-theme="dark"] .leads-import-layout-card__title {
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-import-layout-card__text {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-import-dropzone {
    background: #0f172a;
    border-color: #475569;
}

html[data-theme="dark"] .leads-import-dropzone--hover,
html[data-theme="dark"] .leads-import-dropzone:focus-visible {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
}

html[data-theme="dark"] .leads-import-dropzone--filled {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.1);
}

html[data-theme="dark"] .leads-import-dropzone__icon {
    color: #64748b;
}

html[data-theme="dark"] .leads-import-dropzone__title {
    color: #e2e8f0;
}

html[data-theme="dark"] .leads-import-dropzone__hint {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-import-dropzone__file {
    color: #7dd3fc;
}

html[data-theme="dark"] .leads-import-requisitos__title {
    color: #f1f5f9;
}

html[data-theme="dark"] .leads-import-requisitos__lista li {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-import-check {
    color: #86efac;
}

html[data-theme="dark"] .leads-import-footer {
    border-top-color: #334155;
    color: #94a3b8;
}

html[data-theme="dark"] .leads-import-page .form-panel__hint {
    color: #94a3b8;
}

html[data-theme="dark"] .leads-import-page .form-panel__hint strong,
html[data-theme="dark"] .leads-import-alert strong {
    color: #e2e8f0;
}

html[data-theme="dark"] .leads-import-alert code {
    background: rgba(15, 23, 42, 0.65);
    color: #bae6fd;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

html[data-theme="dark"] .leads-import-mapeamento-table th,
html[data-theme="dark"] .leads-import-mapeamento-table td {
    color: #e2e8f0;
    border-color: #334155;
}

html[data-theme="dark"] .leads-import-mapeamento-table thead th {
    background: #1e293b;
    color: #cbd5e1;
}

html[data-theme="dark"] .leads-import-mapeamento-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.55);
}

html[data-theme="dark"] .leads-import-mapeamento-table tbody tr:hover {
    background: #334155;
}
