/* AtualPros V19 - Modo Claro/Escuro global por tokens
   Mantem o tema escuro existente e adiciona camada clara consistente. */
:root{
  color-scheme: dark;
  --ap-bg:#060b17;
  --ap-bg-accent:#0a1323;
  --ap-sidebar:#0b1220;
  --ap-topbar:rgba(6,11,23,.92);
  --ap-surface:#0e1729;
  --ap-surface-soft:#121f35;
  --ap-card:#0f172a;
  --ap-input:#07111f;
  --ap-text:#e5edf8;
  --ap-text-strong:#f8fafc;
  --ap-text-secondary:#cbd5e1;
  --ap-muted:#94a3b8;
  --ap-subtle:#64748b;
  --ap-border:rgba(148,163,184,.20);
  --ap-border-strong:rgba(34,211,238,.34);
  --ap-primary:var(--brand,#22c55e);
  --ap-success:#22c55e;
  --ap-danger:#ef4444;
  --ap-warning:#f59e0b;
  --ap-info:#0ea5e9;
  --ap-shadow:0 24px 70px rgba(2,6,23,.46);
}
html.ap-theme-light,html[data-theme="light"]{
  color-scheme: light;
  --ap-bg:#eef3f8;
  --ap-bg-accent:#f8fbff;
  --ap-sidebar:#ffffff;
  --ap-topbar:rgba(255,255,255,.94);
  --ap-surface:#ffffff;
  --ap-surface-soft:#f6f9fd;
  --ap-card:#ffffff;
  --ap-input:#ffffff;
  --ap-text:#0f172a;
  --ap-text-strong:#020617;
  --ap-text-secondary:#334155;
  --ap-muted:#64748b;
  --ap-subtle:#7a8aa0;
  --ap-border:rgba(15,23,42,.12);
  --ap-border-strong:rgba(22,163,74,.38);
  --ap-primary:#16a34a;
  --ap-success:#16a34a;
  --ap-danger:#dc2626;
  --ap-warning:#d97706;
  --ap-info:#0369a1;
  --ap-shadow:0 18px 44px rgba(15,23,42,.08),0 2px 10px rgba(15,23,42,.04);
}
html.ap-theme-dark,html[data-theme="dark"]{color-scheme:dark;}
html.ap-theme-light body,html[data-theme="light"] body{
  background:linear-gradient(160deg,#f8fbff 0%,#eef3f8 52%,#e6eef7 100%)!important;
  color:var(--ap-text)!important;
}
html.ap-theme-light body::after,html[data-theme="light"] body::after{display:none!important;}
html.ap-theme-light body::before,html[data-theme="light"] body::before{opacity:.65!important;filter:none!important;}

/* Shell */
html.ap-theme-light .app-topbar,html[data-theme="light"] .app-topbar{background:var(--ap-topbar)!important;border-color:#dce6f0!important;box-shadow:0 10px 30px rgba(15,23,42,.06)!important;}
html.ap-theme-light .app-sidebar-inner,html[data-theme="light"] .app-sidebar-inner{background:linear-gradient(180deg,#fff,#f7fafd)!important;border-color:#dce6f0!important;box-shadow:2px 0 22px rgba(15,23,42,.06)!important;}
html.ap-theme-light .app-main,html.ap-theme-light .app-content,html[data-theme="light"] .app-main,html[data-theme="light"] .app-content{color:var(--ap-text)!important;}

/* Texto global no modo claro */
html.ap-theme-light h1,html.ap-theme-light h2,html.ap-theme-light h3,html.ap-theme-light h4,html.ap-theme-light h5,html.ap-theme-light h6,
html.ap-theme-light .text-white,html.ap-theme-light .text-slate-50,html.ap-theme-light .text-slate-100,html.ap-theme-light .text-slate-200,
html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3,html[data-theme="light"] h4,html[data-theme="light"] h5,html[data-theme="light"] h6,
html[data-theme="light"] .text-white,html[data-theme="light"] .text-slate-50,html[data-theme="light"] .text-slate-100,html[data-theme="light"] .text-slate-200{color:var(--ap-text-strong)!important;}
html.ap-theme-light p,html.ap-theme-light label,html.ap-theme-light small,html.ap-theme-light span,html.ap-theme-light .text-slate-300,html.ap-theme-light .text-slate-400,html.ap-theme-light .text-slate-500,
html[data-theme="light"] p,html[data-theme="light"] label,html[data-theme="light"] small,html[data-theme="light"] span,html[data-theme="light"] .text-slate-300,html[data-theme="light"] .text-slate-400,html[data-theme="light"] .text-slate-500{color:inherit;}
html.ap-theme-light .text-slate-300,html.ap-theme-light .text-slate-400,html.ap-theme-light .text-slate-500,html.ap-theme-light .zw-muted,
html[data-theme="light"] .text-slate-300,html[data-theme="light"] .text-slate-400,html[data-theme="light"] .text-slate-500,html[data-theme="light"] .zw-muted{color:var(--ap-muted)!important;}
html.ap-theme-light label,html[data-theme="light"] label{color:var(--ap-text-secondary)!important;}

/* Cards, superficies, Tailwind antigo */
html.ap-theme-light .saas-card,html.ap-theme-light .panel-premium,html.ap-theme-light .metric-card,html.ap-theme-light .chart-panel,html.ap-theme-light .zw-card,html.ap-theme-light .card,html.ap-theme-light .content-card,html.ap-theme-light .section-card,
html.ap-theme-light .wa-card-v32,html.ap-theme-light .wa-card-v183,html.ap-theme-light .wa-empty-v32,html.ap-theme-light .wa-config-v32,
html[data-theme="light"] .saas-card,html[data-theme="light"] .panel-premium,html[data-theme="light"] .metric-card,html[data-theme="light"] .chart-panel,html[data-theme="light"] .zw-card,html[data-theme="light"] .card,html[data-theme="light"] .content-card,html[data-theme="light"] .section-card,
html[data-theme="light"] .wa-card-v32,html[data-theme="light"] .wa-card-v183,html[data-theme="light"] .wa-empty-v32,html[data-theme="light"] .wa-config-v32{background:var(--ap-card)!important;color:var(--ap-text)!important;border-color:#dce6f0!important;box-shadow:var(--ap-shadow)!important;}
html.ap-theme-light [class*="bg-slate-950"],html.ap-theme-light [class*="bg-slate-900"],html.ap-theme-light [class*="bg-slate-800"],html.ap-theme-light [class*="bg-white/5"],html.ap-theme-light [class*="bg-white\/5"],html.ap-theme-light [class*="bg-white/10"],html.ap-theme-light [class*="bg-white\/10"],
html[data-theme="light"] [class*="bg-slate-950"],html[data-theme="light"] [class*="bg-slate-900"],html[data-theme="light"] [class*="bg-slate-800"],html[data-theme="light"] [class*="bg-white/5"],html[data-theme="light"] [class*="bg-white\/5"],html[data-theme="light"] [class*="bg-white/10"],html[data-theme="light"] [class*="bg-white\/10"]{background:#f8fafc!important;color:var(--ap-text)!important;border-color:#dce6f0!important;}
html.ap-theme-light [class*="border-white/"],html.ap-theme-light [class*="border-white\/"],html[data-theme="light"] [class*="border-white/"],html[data-theme="light"] [class*="border-white\/"]{border-color:#dce6f0!important;}

/* Formulários */
html.ap-theme-light input:not([type="checkbox"]):not([type="radio"]),html.ap-theme-light select,html.ap-theme-light textarea,
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),html[data-theme="light"] select,html[data-theme="light"] textarea{background:#fff!important;color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;border-color:#cbd5e1!important;caret-color:#0f172a!important;box-shadow:0 1px 2px rgba(15,23,42,.04)!important;opacity:1!important;}
html.ap-theme-light input::placeholder,html.ap-theme-light textarea::placeholder,html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder{color:#7a8aa0!important;-webkit-text-fill-color:#7a8aa0!important;opacity:1!important;}
html.ap-theme-light input:focus,html.ap-theme-light select:focus,html.ap-theme-light textarea:focus,html[data-theme="light"] input:focus,html[data-theme="light"] select:focus,html[data-theme="light"] textarea:focus{border-color:rgba(22,163,74,.68)!important;box-shadow:0 0 0 4px rgba(34,197,94,.14)!important;outline:none!important;}
html.ap-theme-light input:-webkit-autofill,html.ap-theme-light textarea:-webkit-autofill,html.ap-theme-light select:-webkit-autofill,
html[data-theme="light"] input:-webkit-autofill,html[data-theme="light"] textarea:-webkit-autofill,html[data-theme="light"] select:-webkit-autofill{-webkit-text-fill-color:#0f172a!important;box-shadow:0 0 0 1000px #fff inset!important;caret-color:#0f172a!important;}

/* Tabelas */
html.ap-theme-light .table-wrap,html[data-theme="light"] .table-wrap{background:#fff!important;border-color:#dce6f0!important;}
html.ap-theme-light thead,html[data-theme="light"] thead{background:#f1f5f9!important;}
html.ap-theme-light th,html[data-theme="light"] th{background:#f1f5f9!important;color:#475569!important;border-color:#dce6f0!important;}
html.ap-theme-light td,html[data-theme="light"] td{color:#1e293b!important;border-color:#e8eef6!important;}
html.ap-theme-light tbody tr:hover,html[data-theme="light"] tbody tr:hover{background:rgba(22,163,74,.055)!important;}
html.ap-theme-light .sticky-th th,html[data-theme="light"] .sticky-th th{background:#f8fafc!important;}

/* Navegação/badges/botões */
html.ap-theme-light .sidebar-section-title,html[data-theme="light"] .sidebar-section-title{color:#64748b!important;}
html.ap-theme-light .sidebar-link,html[data-theme="light"] .sidebar-link{color:#334155!important;}
html.ap-theme-light .sidebar-link.active,html[data-theme="light"] .sidebar-link.active{background:#dcfce7!important;color:#052e16!important;border-color:#86efac!important;}
html.ap-theme-light .topbar-credit-pill,html.ap-theme-light .credit-pill,html.ap-theme-light .topbar-version-pill,html.ap-theme-light .version-chip,
html[data-theme="light"] .topbar-credit-pill,html[data-theme="light"] .credit-pill,html[data-theme="light"] .topbar-version-pill,html[data-theme="light"] .version-chip{background:#ecfdf5!important;color:#064e3b!important;border-color:#86efac!important;}
html.ap-theme-light .topbar-theme-toggle,html.ap-theme-light .topbar-logout-btn,html.ap-theme-light .icon-btn,
html[data-theme="light"] .topbar-theme-toggle,html[data-theme="light"] .topbar-logout-btn,html[data-theme="light"] .icon-btn{background:#fff!important;color:#0f172a!important;border-color:#dce6f0!important;}
html.ap-theme-light .primary-action,html[data-theme="light"] .primary-action{background:#22c55e!important;color:#04130a!important;border-color:#22c55e!important;box-shadow:0 16px 34px rgba(34,197,94,.22)!important;}
html.ap-theme-light button[class*="bg-gradient"],html.ap-theme-light a[class*="bg-gradient"],html[data-theme="light"] button[class*="bg-gradient"],html[data-theme="light"] a[class*="bg-gradient"]{color:#04130a!important;}

/* Modais, menus, alertas */
html.ap-theme-light .credit-purchase-dialog,html.ap-theme-light .modal,html.ap-theme-light .dropdown-menu,html[data-theme="light"] .credit-purchase-dialog,html[data-theme="light"] .modal,html[data-theme="light"] .dropdown-menu{background:#fff!important;color:#0f172a!important;border-color:#dce6f0!important;box-shadow:0 34px 90px rgba(15,23,42,.18)!important;}
html.ap-theme-light .credit-purchase-copy h3,html[data-theme="light"] .credit-purchase-copy h3{color:#0f172a!important;}
html.ap-theme-light .credit-purchase-copy p,html[data-theme="light"] .credit-purchase-copy p{color:#475569!important;}
html.ap-theme-light .toast-success,html[data-theme="light"] .toast-success{background:#ecfdf5!important;color:#065f46!important;border-color:#a7f3d0!important;}
html.ap-theme-light .toast-error,html[data-theme="light"] .toast-error{background:#fff1f2!important;color:#9f1239!important;border-color:#fecdd3!important;}
html.ap-theme-light .zw-alert-warning,html[data-theme="light"] .zw-alert-warning{background:#fffbeb!important;color:#92400e!important;border-color:#fde68a!important;}

/* Auth: login/cadastro tambem tem modo claro */
html.ap-theme-light body.auth-zapwarm,html[data-theme="light"] body.auth-zapwarm{background:#eef3f8!important;color:#0f172a!important;}
html.ap-theme-light body.auth-zapwarm .auth-zapwarm-stage,html[data-theme="light"] body.auth-zapwarm .auth-zapwarm-stage{background:radial-gradient(circle at 86% 30%,rgba(34,197,94,.14),transparent 18rem),linear-gradient(135deg,#f8fbff,#e8f0f8)!important;}
html.ap-theme-light body.auth-zapwarm .auth-zapwarm-shell,html[data-theme="light"] body.auth-zapwarm .auth-zapwarm-shell{background:#f8fbff!important;}
html.ap-theme-light body.auth-zapwarm .auth-zapwarm-hero,html[data-theme="light"] body.auth-zapwarm .auth-zapwarm-hero{background:linear-gradient(rgba(15,23,42,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.035) 1px,transparent 1px),radial-gradient(circle at 74% 58%,rgba(34,197,94,.18),transparent 21rem),linear-gradient(145deg,#f0fdf4 0%,#dcfce7 48%,#f8fafc 100%)!important;color:#0f172a!important;border-color:#dce6f0!important;}
html.ap-theme-light body.auth-zapwarm .auth-hero-copy h1,html.ap-theme-light body.auth-zapwarm .auth-hero-copy h1 span,html[data-theme="light"] body.auth-zapwarm .auth-hero-copy h1,html[data-theme="light"] body.auth-zapwarm .auth-hero-copy h1 span{color:#0f172a!important;text-shadow:none!important;}
html.ap-theme-light body.auth-zapwarm .auth-hero-copy p,html.ap-theme-light body.auth-zapwarm .auth-benefits small,html[data-theme="light"] body.auth-zapwarm .auth-hero-copy p,html[data-theme="light"] body.auth-zapwarm .auth-benefits small{color:#475569!important;}
html.ap-theme-light body.auth-zapwarm .auth-benefits strong,html[data-theme="light"] body.auth-zapwarm .auth-benefits strong{color:#0f172a!important;}
html.ap-theme-light body.auth-zapwarm .auth-zapwarm-panel-wrap,html[data-theme="light"] body.auth-zapwarm .auth-zapwarm-panel-wrap{background:radial-gradient(circle at 88% 36%,rgba(34,197,94,.14),transparent 12rem),linear-gradient(135deg,#f8fbff,#eef3f8)!important;color:#0f172a!important;}
html.ap-theme-light body.auth-zapwarm .auth-zapwarm-card,html[data-theme="light"] body.auth-zapwarm .auth-zapwarm-card{background:#fff!important;color:#0f172a!important;border-color:#dce6f0!important;box-shadow:0 32px 90px rgba(15,23,42,.14)!important;}
html.ap-theme-light body.auth-zapwarm .auth-zapwarm-card h2,html.ap-theme-light body.auth-zapwarm .auth-card-kicker,html[data-theme="light"] body.auth-zapwarm .auth-zapwarm-card h2,html[data-theme="light"] body.auth-zapwarm .auth-card-kicker{color:#0f172a!important;text-shadow:none!important;}
html.ap-theme-light body.auth-zapwarm .auth-card-lead,html.ap-theme-light body.auth-zapwarm .auth-card-footer,html.ap-theme-light body.auth-zapwarm .auth-zapwarm-card label span,html.ap-theme-light body.auth-zapwarm .auth-secure,html[data-theme="light"] body.auth-zapwarm .auth-card-lead,html[data-theme="light"] body.auth-zapwarm .auth-card-footer,html[data-theme="light"] body.auth-zapwarm .auth-zapwarm-card label span,html[data-theme="light"] body.auth-zapwarm .auth-secure{color:#475569!important;}
html.ap-theme-light body.auth-zapwarm .auth-input,html.ap-theme-light body.auth-zapwarm .auth-math input,html.ap-theme-light body.auth-zapwarm .auth-antispam,html.ap-theme-light body.auth-zapwarm .auth-robot,html[data-theme="light"] body.auth-zapwarm .auth-input,html[data-theme="light"] body.auth-zapwarm .auth-math input,html[data-theme="light"] body.auth-zapwarm .auth-antispam,html[data-theme="light"] body.auth-zapwarm .auth-robot{background:#fff!important;border-color:#cbd5e1!important;color:#0f172a!important;box-shadow:0 1px 2px rgba(15,23,42,.04)!important;}
html.ap-theme-light body.auth-zapwarm .auth-input input:not([type="checkbox"]):not([type="radio"]),html.ap-theme-light body.auth-zapwarm .auth-math input:not([type="checkbox"]):not([type="radio"]),html[data-theme="light"] body.auth-zapwarm .auth-input input:not([type="checkbox"]):not([type="radio"]),html[data-theme="light"] body.auth-zapwarm .auth-math input:not([type="checkbox"]):not([type="radio"]){color:#0f172a!important;-webkit-text-fill-color:#0f172a!important;background:transparent!important;caret-color:#0f172a!important;font-weight:700!important;}
html.ap-theme-light body.auth-zapwarm .auth-input input::placeholder,html.ap-theme-light body.auth-zapwarm .auth-math input::placeholder,html[data-theme="light"] body.auth-zapwarm .auth-input input::placeholder,html[data-theme="light"] body.auth-zapwarm .auth-math input::placeholder{color:#7a8aa0!important;-webkit-text-fill-color:#7a8aa0!important;}
html.ap-theme-light body.auth-zapwarm .auth-tabs,html[data-theme="light"] body.auth-zapwarm .auth-tabs{background:#f1f5f9!important;border-color:#dce6f0!important;}
html.ap-theme-light body.auth-zapwarm .auth-tabs a,html[data-theme="light"] body.auth-zapwarm .auth-tabs a{color:#475569!important;}
html.ap-theme-light body.auth-zapwarm .auth-tabs a.active,html[data-theme="light"] body.auth-zapwarm .auth-tabs a.active{background:#22c55e!important;color:#04130a!important;}
html.ap-theme-light body.auth-zapwarm .auth-submit,html[data-theme="light"] body.auth-zapwarm .auth-submit{background:#22c55e!important;color:#04130a!important;box-shadow:0 18px 38px rgba(34,197,94,.22)!important;}
.auth-theme-toggle-v19{position:fixed;right:18px;top:18px;z-index:80;width:42px;height:42px;border-radius:14px;border:1px solid var(--ap-border);background:var(--ap-surface);color:var(--ap-text);box-shadow:var(--ap-shadow);display:flex;align-items:center;justify-content:center;font-weight:900;cursor:pointer;}
.auth-theme-toggle-v19:hover{transform:translateY(-1px);border-color:rgba(34,197,94,.42)!important;}
@media(max-width:760px){.auth-theme-toggle-v19{right:12px;top:12px;width:38px;height:38px}.topbar-actions{gap:.35rem!important}.topbar-credit-pill span,.primary-action span{display:none!important}}

/* ═══════════════════════════════════════════════════════════════
   AtualPros v19.1 — Complementos do Modo Claro
   Reforços adicionais para layout full, gráficos, ações, tabelas
   ═══════════════════════════════════════════════════════════════ */

/* Layout full — garantia absoluta (dark = light em estrutura) */
html.ap-theme-light .app-main,html[data-theme="light"] .app-main{
  margin-left:var(--ap-sidebar-width,272px)!important;
  width:calc(100% - var(--ap-sidebar-width,272px))!important;
  max-width:none!important;min-height:100vh!important;background:transparent!important;
}
html.ap-theme-light .app-content,html[data-theme="light"] .app-content{
  width:100%!important;max-width:none!important;margin:0!important;
  padding:var(--ap-space,24px)!important;box-sizing:border-box!important;
  color:var(--ap-text)!important;
}
@media(max-width:1023px){
  html.ap-theme-light .app-main,html[data-theme="light"] .app-main{margin-left:0!important;width:100%!important;}
}

/* Gráficos (recharts, chart.js, SVG) */
html.ap-theme-light text,html[data-theme="light"] text{fill:#475569!important;}
html.ap-theme-light .recharts-text,html.ap-theme-light .recharts-label,html.ap-theme-light .recharts-legend-item-text,
html[data-theme="light"] .recharts-text,html[data-theme="light"] .recharts-label,html[data-theme="light"] .recharts-legend-item-text{fill:#475569!important;color:#475569!important;}
html.ap-theme-light .recharts-cartesian-grid line,html.ap-theme-light .recharts-cartesian-grid path,
html[data-theme="light"] .recharts-cartesian-grid line,html[data-theme="light"] .recharts-cartesian-grid path{stroke:#e2ecf7!important;}
html.ap-theme-light .recharts-tooltip-wrapper,html[data-theme="light"] .recharts-tooltip-wrapper{filter:drop-shadow(0 4px 16px rgba(15,23,42,.12));}
html.ap-theme-light .recharts-default-tooltip,html[data-theme="light"] .recharts-default-tooltip{background:#fff!important;border-color:#dce6f0!important;color:#0f172a!important;}
html.ap-theme-light .recharts-tooltip-label,html[data-theme="light"] .recharts-tooltip-label{color:#0f172a!important;}
html.ap-theme-light .recharts-tooltip-item,html[data-theme="light"] .recharts-tooltip-item{color:#475569!important;}
html.ap-theme-light .recharts-surface,html[data-theme="light"] .recharts-surface{overflow:visible;}

/* Action chips no claro */
html.ap-theme-light .action-chip,html[data-theme="light"] .action-chip{
  background:#f1f5f9!important;border-color:#dce6f0!important;color:#1e293b!important;
}
html.ap-theme-light .action-chip:hover,html[data-theme="light"] .action-chip:hover{
  background:#e2e8f0!important;border-color:#cbd5e1!important;
}
html.ap-theme-light .action-chip.is-disabled,html[data-theme="light"] .action-chip.is-disabled{
  opacity:.45!important;
}
html.ap-theme-light .action-chip-csv,html[data-theme="light"] .action-chip-csv{background:#ecfeff!important;border-color:#a5f3fc!important;color:#0e7490!important;}
html.ap-theme-light .action-chip-wa,html[data-theme="light"] .action-chip-wa{background:#f0fdf4!important;border-color:#86efac!important;color:#14532d!important;}
html.ap-theme-light .action-chip-email,html[data-theme="light"] .action-chip-email{background:#faf5ff!important;border-color:#d8b4fe!important;color:#6b21a8!important;}
html.ap-theme-light .action-chip-neutral,html[data-theme="light"] .action-chip-neutral{background:#f8fafc!important;border-color:#dce6f0!important;color:#334155!important;}

/* Company chips / badges de status */
html.ap-theme-light .company-chip,html[data-theme="light"] .company-chip{background:#f1f5f9!important;border-color:#dce6f0!important;color:#1e293b!important;}
html.ap-theme-light .cv16-kpi,html[data-theme="light"] .cv16-kpi{background:#fff!important;border-color:#dce6f0!important;color:#0f172a!important;}
html.ap-theme-light .cv16-kpi span,html[data-theme="light"] .cv16-kpi span{color:#64748b!important;}
html.ap-theme-light .cv16-kpi strong,html[data-theme="light"] .cv16-kpi strong{color:#0f172a!important;}
html.ap-theme-light .cv16-kpi.good strong,html[data-theme="light"] .cv16-kpi.good strong{color:#15803d!important;}
html.ap-theme-light .cv16-kpi.bad strong,html[data-theme="light"] .cv16-kpi.bad strong{color:#dc2626!important;}
html.ap-theme-light .cv16-kpi.info strong,html[data-theme="light"] .cv16-kpi.info strong{color:#0369a1!important;}

/* Status badges */
html.ap-theme-light .status-sending,html[data-theme="light"] .status-sending{background:#dbeafe!important;color:#1d4ed8!important;border-color:#93c5fd!important;}
html.ap-theme-light .status-completed,html.ap-theme-light .status-finished,
html[data-theme="light"] .status-completed,html[data-theme="light"] .status-finished{background:#dcfce7!important;color:#14532d!important;border-color:#86efac!important;}
html.ap-theme-light .status-paused,html[data-theme="light"] .status-paused{background:#fef3c7!important;color:#78350f!important;border-color:#fbbf24!important;}
html.ap-theme-light .status-failed,html.ap-theme-light .status-error,
html[data-theme="light"] .status-failed,html[data-theme="light"] .status-error{background:#fee2e2!important;color:#991b1b!important;border-color:#fca5a5!important;}

/* Badges WA / Email nas tabelas */
html.ap-theme-light .badge-wa,html[data-theme="light"] .badge-wa{background:#dcfce7!important;color:#14532d!important;border-color:#86efac!important;}
html.ap-theme-light .badge-email,html[data-theme="light"] .badge-email{background:#f0f9ff!important;color:#0369a1!important;border-color:#bae6fd!important;}

/* Toasts e notificações */
html.ap-theme-light .toast,html[data-theme="light"] .toast{background:#fff!important;color:#0f172a!important;box-shadow:0 12px 32px rgba(15,23,42,.14)!important;border-color:#dce6f0!important;}
html.ap-theme-light .toast-success,html[data-theme="light"] .toast-success{background:#ecfdf5!important;color:#065f46!important;border-color:#a7f3d0!important;}
html.ap-theme-light .toast-error,html[data-theme="light"] .toast-error{background:#fff1f2!important;color:#9f1239!important;border-color:#fecdd3!important;}
html.ap-theme-light .toast-warning,html[data-theme="light"] .toast-warning{background:#fffbeb!important;color:#78350f!important;border-color:#fde68a!important;}
html.ap-theme-light .toast-info,html[data-theme="light"] .toast-info{background:#eff6ff!important;color:#1d4ed8!important;border-color:#bfdbfe!important;}

/* Modais v19.1 — cobertura completa */
html.ap-theme-light .zw-modal,html.ap-theme-light .modal-box,html.ap-theme-light .pros-modal,
html[data-theme="light"] .zw-modal,html[data-theme="light"] .modal-box,html[data-theme="light"] .pros-modal{
  background:#fff!important;color:#0f172a!important;border-color:#dce6f0!important;
  box-shadow:0 40px 120px rgba(15,23,42,.22)!important;
}
html.ap-theme-light .zw-modal h2,html.ap-theme-light .zw-modal h3,
html[data-theme="light"] .zw-modal h2,html[data-theme="light"] .zw-modal h3{color:#0f172a!important;}
html.ap-theme-light .zw-modal-backdrop,html[data-theme="light"] .zw-modal-backdrop{background:rgba(15,23,42,.55)!important;}
html.ap-theme-light .zw-modal-close,html[data-theme="light"] .zw-modal-close{color:#475569!important;}

/* Dropdowns */
html.ap-theme-light select option,html[data-theme="light"] select option{background:#fff!important;color:#0f172a!important;}
html.ap-theme-light .dropdown-menu,html[data-theme="light"] .dropdown-menu{background:#fff!important;border-color:#dce6f0!important;box-shadow:0 12px 32px rgba(15,23,42,.14)!important;}

/* Pre / código / filtros JSON */
html.ap-theme-light pre,html[data-theme="light"] pre{background:#f1f5f9!important;color:#1e293b!important;border-color:#dce6f0!important;}
html.ap-theme-light code,html[data-theme="light"] code{background:#e2e8f0!important;color:#1e293b!important;}

/* Page head e breadcrumb */
html.ap-theme-light .page-head,html[data-theme="light"] .page-head{color:#0f172a!important;}
html.ap-theme-light .page-head h1,html[data-theme="light"] .page-head h1{color:#020617!important;}
html.ap-theme-light .page-head p,html[data-theme="light"] .page-head p{color:#475569!important;}
html.ap-theme-light .breadcrumb-current,html[data-theme="light"] .breadcrumb-current{color:#0f172a!important;}
html.ap-theme-light .breadcrumb-home,html[data-theme="light"] .breadcrumb-home{color:#64748b!important;}

/* Buttons genéricos */
html.ap-theme-light .btn-soft,html[data-theme="light"] .btn-soft{background:#fff!important;border-color:#dce6f0!important;color:#334155!important;box-shadow:0 4px 12px rgba(15,23,42,.06)!important;}
html.ap-theme-light .btn-soft:hover,html[data-theme="light"] .btn-soft:hover{background:#f1f5f9!important;}
html.ap-theme-light .btn-danger,html[data-theme="light"] .btn-danger{background:#fee2e2!important;color:#991b1b!important;border-color:#fca5a5!important;}

/* Sidebar card do usuário */
html.ap-theme-light .sidebar-user-card,html[data-theme="light"] .sidebar-user-card{background:#f1f5f9!important;border-color:#dce6f0!important;color:#0f172a!important;}
html.ap-theme-light .sidebar-user-name,html[data-theme="light"] .sidebar-user-name{color:#0f172a!important;}
html.ap-theme-light .sidebar-user-role,html[data-theme="light"] .sidebar-user-role{color:#64748b!important;}
html.ap-theme-light .sidebar-credit-balance,html[data-theme="light"] .sidebar-credit-balance{color:#16a34a!important;}

/* Choice cards (filtros) */
html.ap-theme-light .choice-card,html[data-theme="light"] .choice-card{background:#fff!important;border-color:#dce6f0!important;color:#334155!important;}
html.ap-theme-light .choice-card.is-selected,html[data-theme="light"] .choice-card.is-selected{background:#dcfce7!important;border-color:#86efac!important;color:#14532d!important;}

/* Ignore extracted toggle */
html.ap-theme-light .ignore-extracted-toggle,html[data-theme="light"] .ignore-extracted-toggle{background:#f8fafc!important;border-color:#dce6f0!important;color:#334155!important;}

/* Extras: progresso, barras */
html.ap-theme-light .progress-bar-wrap,html[data-theme="light"] .progress-bar-wrap{background:#e2e8f0!important;}
html.ap-theme-light .zw-progress,html[data-theme="light"] .zw-progress{background:#e2e8f0!important;}

/* Version no modo claro — confirmar */
html.ap-theme-light .topbar-version-pill,html[data-theme="light"] .topbar-version-pill{
  background:#dbeafe!important;border-color:#93c5fd!important;color:#1d4ed8!important;
}
html.ap-theme-light .version-chip,html[data-theme="light"] .version-chip{
  background:#dbeafe!important;border-color:#93c5fd!important;color:#1d4ed8!important;
}

/* v19.1 — Fix autofill Chrome (webkit-text-fill-color) */
html.ap-theme-light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.ap-theme-light select,
html.ap-theme-light textarea,
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="light"] select,
html[data-theme="light"] textarea{
  background:#fff!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  caret-color:#0f172a!important;
  border-color:#cbd5e1!important;
  opacity:1!important;
}
html.ap-theme-light input::placeholder,
html.ap-theme-light textarea::placeholder,
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder{
  color:#7a8aa0!important;
  -webkit-text-fill-color:#7a8aa0!important;
  opacity:1!important;
}
html.ap-theme-light input:-webkit-autofill,
html.ap-theme-light input:-webkit-autofill:hover,
html.ap-theme-light input:-webkit-autofill:focus,
html.ap-theme-light textarea:-webkit-autofill,
html.ap-theme-light select:-webkit-autofill,
html[data-theme="light"] input:-webkit-autofill,
html[data-theme="light"] input:-webkit-autofill:hover,
html[data-theme="light"] input:-webkit-autofill:focus,
html[data-theme="light"] textarea:-webkit-autofill,
html[data-theme="light"] select:-webkit-autofill{
  -webkit-text-fill-color:#0f172a!important;
  -webkit-box-shadow:0 0 0 1000px #ffffff inset!important;
  box-shadow:0 0 0 1000px #ffffff inset!important;
  caret-color:#0f172a!important;
}
html.ap-theme-dark input:-webkit-autofill,
html.ap-theme-dark input:-webkit-autofill:hover,
html.ap-theme-dark input:-webkit-autofill:focus,
html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus{
  -webkit-text-fill-color:#e5edf8!important;
  -webkit-box-shadow:0 0 0 1000px #07111f inset!important;
  box-shadow:0 0 0 1000px #07111f inset!important;
  caret-color:#e5edf8!important;
}

