/* NORTEAR ONE — LIGHT MODE PREMIUM v1 | proprietário oficial */
body.ws-theme-light {
  --no-bg: #f4f7fb;
  --no-surface: #fff;
  --no-surface-2: #f8fafc;
  --no-surface-3: #eef2f7;
  --no-text: #172033;
  --no-text-2: #475467;
  --no-muted: #667085;
  --no-border: #dfe5ec;
  --no-border-2: #cfd7e3;
  --no-shadow: 0 8px 30px rgba(16, 24, 40, .07);
  --no-shadow-lg: 0 22px 60px rgba(16, 24, 40, .16);
  background: var(--no-bg) !important;
  color: var(--no-text) !important;
  color-scheme: light;
}

body.ws-theme-light .app,
body.ws-theme-light .main,
body.ws-theme-light .content,
body.ws-theme-light .section {
  background: var(--no-bg) !important;
  color: var(--no-text) !important
}

body.ws-theme-light #side {
  background: linear-gradient(180deg, #fff, #f7f9fc) !important;
  border-right: 1px solid var(--no-border) !important;
  color: var(--no-text) !important
}

body.ws-theme-light .top,
body.ws-theme-light .ws-global-header {
  background: rgba(255, 255, 255, .96) !important;
  border-bottom: 1px solid var(--no-border) !important;
  color: var(--no-text) !important;
  backdrop-filter: blur(16px)
}

body.ws-theme-light :is(.card, .box, .panel, .metric-card, .ws-v91-panel, .ws2-kpi, .ws2-panel, .ws2-quick, .ws-service-card, .ws-manual-card, .ws-profile-analysis-card, .ws-diag-mini, .ws61-card, .ws61-section, .ws-bank-details, .lead-import-preview, .ws-base-table, .ws-floating-tools-v1111, .ws-floating-tools-v1112) {
  background: var(--no-surface) !important;
  color: var(--no-text) !important;
  border-color: var(--no-border) !important;
  box-shadow: var(--no-shadow) !important
}

body.ws-theme-light :is(h1, h2, h3, h4, h5, h6, strong, b) {
  color: var(--no-text) !important;
  text-shadow: none !important
}

body.ws-theme-light :is(p, label, small, .small, .muted, .subtitle, .description) {
  color: var(--no-text-2) !important;
  text-shadow: none !important
}

body.ws-theme-light :is(input, select, textarea, .input, [contenteditable=true]) {
  background: #fff !important;
  color: var(--no-text) !important;
  border-color: var(--no-border-2) !important;
  box-shadow: none !important
}

body.ws-theme-light :is(input, select, textarea, .input):focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent) !important;
  outline: none !important
}

body.ws-theme-light :is(input, textarea)::placeholder {
  color: #8b95a5 !important;
  opacity: 1 !important
}

body.ws-theme-light :is(button, .btn, .mini-btn, .ws-header-action, .ws-header-icon, .ws-menu-toggle, .menuBtn) {
  text-shadow: none !important
}

body.ws-theme-light :is(.btn.secondary, button.secondary, .mini-btn, .ws-header-action, .ws-header-icon, .ws-menu-toggle, .menuBtn) {
  background: #fff !important;
  color: var(--no-text) !important;
  border-color: var(--no-border) !important
}

body.ws-theme-light :is(.btn.secondary, button.secondary, .mini-btn, .ws-header-action, .ws-header-icon, .ws-menu-toggle, .menuBtn):hover {
  background: var(--no-surface-3) !important;
  border-color: #c7d0dc !important
}

body.ws-theme-light :is(.btn.danger, button.danger) {
  background: #fff1f2 !important;
  color: #be123c !important;
  border-color: #fecdd3 !important
}

body.ws-theme-light :is(table, thead, tbody, tr, th, td) {
  border-color: var(--no-border) !important;
  color: var(--no-text) !important
}

body.ws-theme-light th {
  background: #f3f6fa !important;
  color: #344054 !important
}

body.ws-theme-light td {
  background: #fff !important
}

body.ws-theme-light tr:hover td {
  background: #f8fafc !important
}

body.ws-theme-light :is(.modal, .overlay, [role=dialog]) {
  color: var(--no-text) !important
}

body.ws-theme-light :is(.modal.open, .modal.show, .overlay.open) {
  background: rgba(15, 23, 42, .38) !important
}

body.ws-theme-light :is(.modal .box, .modal-content, .dialog, .drawer, .popover, .dropdown-menu, .ws-profile-dropdown, [role=menu], [role=listbox]) {
  background: #fff !important;
  color: var(--no-text) !important;
  border-color: var(--no-border) !important;
  box-shadow: var(--no-shadow-lg) !important
}

body.ws-theme-light :is(.dropdown-menu, .ws-profile-dropdown, [role=menu], [role=listbox]) :is(button, a, [role=option]) {
  color: var(--no-text) !important;
  background: transparent !important
}

body.ws-theme-light :is(.dropdown-menu, .ws-profile-dropdown, [role=menu], [role=listbox]) :is(button, a, [role=option]):hover {
  background: #f2f5f9 !important
}

body.ws-theme-light :is(.kanban .col, .ws-kcol, .kanban-column) {
  background: #eef2f7 !important;
  border-color: var(--no-border) !important;
  color: var(--no-text) !important
}

body.ws-theme-light :is(.kanban .lead, .lead-card, .kanban-card) {
  background: #fff !important;
  color: var(--no-text) !important;
  border-color: var(--no-border) !important;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .06) !important
}

body.ws-theme-light :is(.tabs button, .project-tab, .ws-extra-tabs button) {
  background: #fff !important;
  color: var(--no-text-2) !important;
  border-color: var(--no-border) !important
}

body.ws-theme-light :is(.tabs button.active, .project-tab.active, .ws-extra-tabs button.active) {
  background: #fff8e6 !important;
  color: #8a6100 !important;
  border-color: #e8c75d !important
}

body.ws-theme-light :is(.badge, .tag, .status, .chip) {
  text-shadow: none !important
}

body.ws-theme-light :is(canvas, svg) {
  filter: none
}

body.ws-theme-light :is(#dashboard, #clientes, #prospeccao, #diagnosticomensal, #propostas, #contratos, #projetos, #relatorios, #financeiro, #aprovacao, #organizacao, #documentos, #teamarea, #redessociais, #centrobranding, #linhaeditorial, #concorrentes, #config) {
  color: var(--no-text) !important
}

body.ws-theme-light :is(#ws48Modal .ws48-dialog, #ws61NovoLeadModal .ws61-dialog, #modal .box) {
  background: #fff !important;
  color: var(--no-text) !important;
  border-color: var(--no-border) !important;
  box-shadow: var(--no-shadow-lg) !important
}

/* .ws61-head/.ws61-close são elementos à parte de .ws61-dialog (cabeçalho sticky e botão fechar
   do modal Novo Lead) e continuavam pretos mesmo com o corpo do modal já em branco. */
body.light #ws61NovoLeadModal .ws61-head,
body.ws-theme-light #ws61NovoLeadModal .ws61-head {
  background: #ffffff !important
}

body.light #ws61NovoLeadModal .ws61-close,
body.ws-theme-light #ws61NovoLeadModal .ws61-close {
  background: #f1f5f9 !important;
  color: #334155 !important
}

body.light .ws61-modal,
body.ws-theme-light .ws61-modal {
  background: rgba(15, 23, 42, .5) !important
}

body.ws-theme-light :is(#ws48Body, #ws61NovoLeadBody, #modalContent) {
  background: #fff !important;
  color: var(--no-text) !important
}

body.ws-theme-light * {
  scrollbar-color: rgba(71, 85, 105, .32) transparent
}

body.ws-theme-light *::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, .32) !important;
  background-clip: padding-box !important
}

body.ws-theme-light :disabled,
body.ws-theme-light [aria-disabled=true] {
  opacity: .56 !important;
  cursor: not-allowed !important
}

/* ==========================================================================\n   NORTEAR ONE — LIGHT PREMIUM | ETAPA SHELL + DASHBOARD\n   Escopo deliberadamente limitado ao shell global e ao Dashboard.\n   ========================================================================== */
body.light,
body.ws-theme-light {
  --no-bg: #f3f6fa;
  --no-surface: #ffffff;
  --no-surface-soft: #f7f9fc;
  --no-surface-muted: #eef2f6;
  --no-text: #172033;
  --no-text-2: #475467;
  --no-muted: #667085;
  --no-border: #dbe2ea;
  --no-border-strong: #c9d3df;
  --no-shadow: 0 8px 28px rgba(15, 23, 42, .07);
  --no-shadow-soft: 0 3px 12px rgba(15, 23, 42, .05);
  --bg: var(--no-bg) !important;
  --panel: var(--no-surface) !important;
  --panel2: var(--no-surface-soft) !important;
  --text: var(--no-text) !important;
  --muted: var(--no-muted) !important;
  --line: var(--no-border) !important;
  --ws-bg: var(--no-bg) !important;
  --ws-card: var(--no-surface) !important;
  --ws-card2: var(--no-surface-soft) !important;
  --ws-line: var(--no-border) !important;
  --ws-text: var(--no-text) !important;
  --ws-muted: var(--no-muted) !important;
}

/* Shell global */
body.light .app,
body.ws-theme-light .app,
body.light .main,
body.ws-theme-light .main,
body.light #main,
body.ws-theme-light #main,
body.light .content,
body.ws-theme-light .content {
  background: var(--no-bg) !important;
  color: var(--no-text) !important;
  filter: none !important;
}

body.light #side,
body.light #side.side,
body.ws-theme-light #side,
body.ws-theme-light #side.side {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) !important;
  border-right: 1px solid var(--no-border) !important;
  color: var(--no-text) !important;
  box-shadow: 18px 0 45px rgba(15, 23, 42, .10) !important;
}

body.light #side .brand,
body.light .ws-sidebar-brand,
body.ws-theme-light #side .brand,
body.ws-theme-light .ws-sidebar-brand {
  background: transparent !important;
  border-bottom-color: var(--no-border) !important;
}

body.light #side .brand h1,
body.light #side .brand p,
body.ws-theme-light #side .brand h1,
body.ws-theme-light #side .brand p {
  color: var(--no-text) !important;
  text-shadow: none !important;
}

body.light #side .brand p,
body.ws-theme-light #side .brand p {
  color: #8a6400 !important
}

body.light .ws-side-collapse,
body.ws-theme-light .ws-side-collapse {
  background: #f8fafc !important;
  color: #344054 !important;
  border-color: var(--no-border) !important;
  box-shadow: var(--no-shadow-soft) !important;
}

body.light .ws-nav-section-label,
body.ws-theme-light .ws-nav-section-label {
  color: #7a8797 !important
}

body.light .ws-premium-nav button,
body.ws-theme-light .ws-premium-nav button {
  background: transparent !important;
  color: #344054 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.light .ws-premium-nav button:hover,
body.ws-theme-light .ws-premium-nav button:hover {
  background: #eef2f6 !important;
  color: #101828 !important;
  border-color: #e1e7ee !important;
}

body.light .ws-premium-nav button.active,
body.ws-theme-light .ws-premium-nav button.active {
  background: linear-gradient(90deg, #fff6d8, #fffdf5) !important;
  color: #7a5600 !important;
  border-color: #e6be37 !important;
  box-shadow: 0 6px 18px rgba(189, 137, 0, .12) !important;
}

body.light .ws-premium-nav button .ws-nav-label,
body.light .ws-premium-nav button .ws-nav-chevron,
body.ws-theme-light .ws-premium-nav button .ws-nav-label,
body.ws-theme-light .ws-premium-nav button .ws-nav-chevron {
  color: inherit !important
}

body.light .ws-nav-icon,
body.ws-theme-light .ws-nav-icon {
  background: #ffffff !important;
  border: 1px solid #e3e8ef !important;
  box-shadow: 0 3px 9px rgba(15, 23, 42, .05) !important;
  text-shadow: none !important;
}

body.light .ws-plan-card,
body.ws-theme-light .ws-plan-card {
  background: #ffffff !important;
  border-color: var(--no-border) !important;
  color: var(--no-text) !important;
  box-shadow: var(--no-shadow-soft) !important;
}

body.light .ws-plan-card small,
body.light .ws-plan-card span,
body.ws-theme-light .ws-plan-card small,
body.ws-theme-light .ws-plan-card span {
  color: var(--no-text-2) !important
}

body.light .ws-side-logout,
body.ws-theme-light .ws-side-logout {
  background: #fff !important;
  color: #b42318 !important;
  border-color: #f2c7c2 !important;
}

body.light .top,
body.light .ws-global-header,
body.ws-theme-light .top,
body.ws-theme-light .ws-global-header {
  background: rgba(255, 255, 255, .97) !important;
  color: var(--no-text) !important;
  border-bottom: 1px solid var(--no-border) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .05) !important;
}

body.light .ws-page-heading h2,
body.light .ws-page-heading p,
body.ws-theme-light .ws-page-heading h2,
body.ws-theme-light .ws-page-heading p {
  color: var(--no-text) !important
}

body.light .ws-page-heading p,
body.ws-theme-light .ws-page-heading p {
  color: var(--no-muted) !important
}

body.light .ws-global-search,
body.ws-theme-light .ws-global-search {
  background: #f8fafc !important;
  color: var(--no-text) !important;
  border-color: var(--no-border) !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .03) !important;
}

body.light .ws-global-search input,
body.ws-theme-light .ws-global-search input {
  background: transparent !important;
  color: var(--no-text) !important;
}

body.light .ws-global-search kbd,
body.ws-theme-light .ws-global-search kbd {
  background: #fff !important;
  color: #344054 !important;
  border-color: var(--no-border) !important;
}

body.light .ws-profile-trigger,
body.ws-theme-light .ws-profile-trigger {
  color: #344054 !important
}

body.light .ws-profile-trigger:hover,
body.light .ws-profile-menu.open .ws-profile-trigger,
body.ws-theme-light .ws-profile-trigger:hover,
body.ws-theme-light .ws-profile-menu.open .ws-profile-trigger {
  background: #f2f5f8 !important;
  border-color: var(--no-border) !important;
}

body.light .ws-profile-trigger .avatar,
body.ws-theme-light .ws-profile-trigger .avatar {
  background: #eef2f6 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.light .ws-avatar-fallback,
body.ws-theme-light .ws-avatar-fallback {
  color: #8a6100 !important;
  background: linear-gradient(145deg, #fff8dd, #f2e3a6) !important;
}

body.light .ws-profile-chevron,
body.ws-theme-light .ws-profile-chevron {
  color: #667085 !important
}

/* Dashboard — raiz e cabeçalho */
body.light #dashboard.wsx-dashboard,
body.ws-theme-light #dashboard.wsx-dashboard {
  background: var(--no-bg) !important;
  color: var(--no-text) !important;
}

body.light #dashboard.wsx-dashboard .wsx-heading h2,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-heading h2 {
  color: #172033 !important
}

body.light #dashboard.wsx-dashboard .wsx-heading p,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-heading p {
  color: #667085 !important
}

body.light #dashboard.wsx-dashboard .wsx-heading-actions button,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-heading-actions button {
  background: #ffffff !important;
  color: #344054 !important;
  border-color: var(--no-border) !important;
  box-shadow: var(--no-shadow-soft) !important;
}

body.light #dashboard.wsx-dashboard .wsx-heading-actions button:hover,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-heading-actions button:hover {
  background: #f2f5f8 !important;
  border-color: var(--no-border-strong) !important;
}

/* KPI e cartões principais */
body.light #dashboard.wsx-dashboard .wsx-kpi,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi,
body.light #dashboard.wsx-dashboard .wsx-card,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-card,
body.light #dashboard.wsx-dashboard .wsx-quick,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-quick {
  background: #ffffff !important;
  color: var(--no-text) !important;
  border-color: var(--no-border) !important;
  box-shadow: var(--no-shadow) !important;
}

body.light #dashboard.wsx-dashboard .wsx-kpi small,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi small {
  color: #172033 !important
}

body.light #dashboard.wsx-dashboard .wsx-kpi p,
body.light #dashboard.wsx-dashboard .wsx-kpi p em,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi p,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi p em {
  color: #667085 !important
}

body.light #dashboard.wsx-dashboard .wsx-kpi strong,
body.light #dashboard.wsx-dashboard .wsx-card h3,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi strong,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-card h3 {
  color: #172033 !important
}

body.light #dashboard.wsx-dashboard .wsx-spark .fill,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-spark .fill {
  opacity: .10 !important
}

/* Funil */
body.light #dashboard.wsx-dashboard .wsx-funnel-side,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-funnel-side {
  background: #f8fafc !important;
  border: 1px solid var(--no-border) !important;
  border-radius: 10px !important;
  padding: 12px !important;
}

body.light #dashboard.wsx-dashboard .wsx-funnel-side small,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-funnel-side small {
  color: #667085 !important
}

body.light #dashboard.wsx-dashboard .wsx-funnel-side strong,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-funnel-side strong {
  color: #2f80ff !important
}

body.light #dashboard.wsx-dashboard .wsx-funnel-side em,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-funnel-side em {
  color: #7d8a97 !important
}

body.light #dashboard.wsx-dashboard .wsx-funnel-side em.down,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-funnel-side em.down {
  color: #e02b4d !important
}

body.light #dashboard.wsx-dashboard .wsx-funnel>div,
body.light #dashboard.wsx-dashboard .wsx-funnel>div span,
body.light #dashboard.wsx-dashboard .wsx-funnel>div b,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-funnel>div,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-funnel>div span,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-funnel>div b {
  color: #fff !important
}

/* Origem / donut */
body.light #dashboard.wsx-dashboard .wsx-donut>div,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-donut>div {
  background: #ffffff !important;
  border-color: var(--no-border) !important;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .06) !important;
}

body.light #dashboard.wsx-dashboard .wsx-donut b,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-donut b {
  color: #172033 !important
}

body.light #dashboard.wsx-dashboard .wsx-donut small,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-donut small {
  color: #667085 !important
}

body.light #dashboard.wsx-dashboard .wsx-origin-legend p,
body.light #dashboard.wsx-dashboard .wsx-origin-legend b,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-origin-legend p,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-origin-legend b {
  color: #475467 !important
}

/* Faturamento */
body.light #dashboard.wsx-dashboard .wsx-revenue-summary>strong,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-revenue-summary>strong {
  color: #2f80ff !important
}

body.light #dashboard.wsx-dashboard .wsx-revenue-summary>p,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-revenue-summary>p {
  color: #667085 !important
}

body.light #dashboard.wsx-dashboard .wsx-revenue-summary>p.up,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-revenue-summary>p.up {
  color: #1cad5c !important
}

body.light #dashboard.wsx-dashboard .wsx-revenue-summary>p.down,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-revenue-summary>p.down {
  color: #e02b4d !important
}

body.light #dashboard.wsx-dashboard .wsx-revenue-summary>p em,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-revenue-summary>p em {
  color: #667085 !important
}

body.light #dashboard.wsx-dashboard .wsx-revenue-chart label,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-revenue-chart label {
  color: #344054 !important
}

body.light #dashboard.wsx-dashboard .wsx-revenue-chart span,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-revenue-chart span {
  color: #667085 !important
}

/* Atividades, mini-kanban e serviços */
body.light #dashboard.wsx-dashboard .wsx-activities article,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-activities article {
  border-bottom-color: #edf0f4 !important
}

body.light #dashboard.wsx-dashboard .wsx-activities b,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-activities b {
  color: #344054 !important
}

body.light #dashboard.wsx-dashboard .wsx-activities small,
body.light #dashboard.wsx-dashboard .wsx-activities time,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-activities small,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-activities time {
  color: #667085 !important
}

body.light #dashboard.wsx-dashboard .wsx-card-title button,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-card-title button {
  color: #175cd3 !important;
  background: #eff6ff !important;
  border: 1px solid #d1e3ff !important;
  border-radius: 999px !important;
  padding: 5px 9px !important;
}

body.light #dashboard.wsx-dashboard .wsx-kanban-mini .wsx-kanban-tile,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kanban-mini .wsx-kanban-tile {
  background: #f8fafc !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .05) !important;
}

body.light #dashboard.wsx-dashboard .wsx-kanban-mini .wsx-kanban-tile>em,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kanban-mini .wsx-kanban-tile>em {
  color: #667085 !important
}

body.light #dashboard.wsx-dashboard .wsx-services article>div,
body.light #dashboard.wsx-dashboard .wsx-services article>div b,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-services article>div,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-services article>div b {
  color: #475467 !important
}

body.light #dashboard.wsx-dashboard .wsx-services article>i,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-services article>i {
  background: #e8edf3 !important
}

/* Ações rápidas */
body.light #dashboard.wsx-dashboard .wsx-quick button,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-quick button {
  background: #f8fafc !important;
  color: #344054 !important;
  border-color: var(--no-border) !important;
  box-shadow: none !important;
}

body.light #dashboard.wsx-dashboard .wsx-quick button:hover,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-quick button:hover {
  background: #eef2f6 !important;
  color: #101828 !important;
  border-color: var(--no-border-strong) !important;
}

/* Toast de sincronização no tema claro */
body.light #syncNotice,
body.ws-theme-light #syncNotice {
  background: rgba(255, 255, 255, .97) !important;
  border-color: var(--no-border) !important;
  box-shadow: var(--no-shadow) !important;
}

body.light #syncNotice b,
body.ws-theme-light #syncNotice b {
  color: #344054 !important
}

body.light #syncNotice p,
body.ws-theme-light #syncNotice p {
  color: #667085 !important
}

/* ==========================================================================\n   NORTEAR ONE — LIGHT PREMIUM | MENU COMPLETO + CLIENTES\n   ========================================================================== */

/* Menu lateral: cobertura completa das variantes legadas e premium */
body.light #side nav,
body.light #side .nav,
body.light #side .ws-premium-nav,
body.ws-theme-light #side nav,
body.ws-theme-light #side .nav,
body.ws-theme-light #side .ws-premium-nav {
  background: transparent !important;
  color: var(--no-text) !important;
}

body.light #side :is(button, a, .nav-item, .menu-item, [data-section], [data-target]),
body.ws-theme-light #side :is(button, a, .nav-item, .menu-item, [data-section], [data-target]) {
  color: #344054 !important;
  text-shadow: none !important;
}

body.light #side :is(button, a, .nav-item, .menu-item, [data-section], [data-target]):hover,
body.ws-theme-light #side :is(button, a, .nav-item, .menu-item, [data-section], [data-target]):hover {
  background: #eef2f6 !important;
  color: #101828 !important;
  border-color: #dde4ec !important;
}

body.light #side :is(button, a, .nav-item, .menu-item, [data-section], [data-target]).active,
body.light #side :is(button, a, .nav-item, .menu-item, [data-section], [data-target])[aria-current="page"],
body.ws-theme-light #side :is(button, a, .nav-item, .menu-item, [data-section], [data-target]).active,
body.ws-theme-light #side :is(button, a, .nav-item, .menu-item, [data-section], [data-target])[aria-current="page"] {
  background: linear-gradient(90deg, #fff4c7 0%, #fffdf4 100%) !important;
  color: #755300 !important;
  border-color: #e7bd32 !important;
  box-shadow: 0 7px 20px rgba(180, 130, 0, .12) !important;
}

body.light #side :is(.nav-label, .menu-label, .ws-nav-label, .ws-nav-chevron, small, span),
body.ws-theme-light #side :is(.nav-label, .menu-label, .ws-nav-label, .ws-nav-chevron, small, span) {
  text-shadow: none !important;
}

body.light #side :is(.nav-group-title, .menu-section-title, .ws-nav-section-label),
body.ws-theme-light #side :is(.nav-group-title, .menu-section-title, .ws-nav-section-label) {
  color: #7b8794 !important;
}

body.light #side :is(.footer, .side-footer, .ws-sidebar-footer),
body.ws-theme-light #side :is(.footer, .side-footer, .ws-sidebar-footer) {
  background: transparent !important;
  border-top-color: var(--no-border) !important;
  color: var(--no-text-2) !important;
}

/* Clientes: raiz, cabeçalho e ações */
body.light #clientes.ws-clientes-premium,
body.ws-theme-light #clientes.ws-clientes-premium {
  background: var(--no-bg) !important;
  color: var(--no-text) !important;
}

body.light #clientes .wscp-head,
body.ws-theme-light #clientes .wscp-head {
  color: var(--no-text) !important
}

body.light #clientes .wscp-head h1,
body.ws-theme-light #clientes .wscp-head h1 {
  color: #172033 !important
}

body.light #clientes .wscp-head p,
body.ws-theme-light #clientes .wscp-head p {
  color: #667085 !important
}

/* O ícone de título usa gradiente sólido + símbolo branco (definido na base, igual ao dark) —
   antes o tema claro trocava para fundo pastel quase branco com ícone colorido, ficando "apagado". */
body.light #clientes .wscp-title-icon,
body.ws-theme-light #clientes .wscp-title-icon {
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 24%, transparent) !important;
}

body.light #clientes .wscp-btn,
body.ws-theme-light #clientes .wscp-btn {
  background: #fff !important;
  color: #344054 !important;
  border-color: #d7dfe8 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .05) !important;
}

body.light #clientes .wscp-btn:hover,
body.ws-theme-light #clientes .wscp-btn:hover {
  background: #f4f7fa !important;
  color: #101828 !important;
  border-color: #c6d0dc !important;
}

body.light #clientes .wscp-btn.primary,
body.ws-theme-light #clientes .wscp-btn.primary {
  background: linear-gradient(135deg, #2f80ed, #1f65bd) !important;
  color: #fff !important;
  border-color: #2a70ca !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .20) !important;
}

body.light #clientes .wscp-btn.import,
body.ws-theme-light #clientes .wscp-btn.import {
  background: #f5efff !important;
  color: #6941c6 !important;
  border-color: #d9c6f7 !important;
  box-shadow: 0 6px 18px rgba(105, 65, 198, .10) !important;
}

body.light #clientes .wscp-btn.danger,
body.ws-theme-light #clientes .wscp-btn.danger {
  background: #fff1f2 !important;
  color: #c01048 !important;
  border-color: #fecdd3 !important;
}

body.light #clientes .wscp-btn.ghost,
body.ws-theme-light #clientes .wscp-btn.ghost {
  background: #fff !important;
  color: #475467 !important;
  border-color: #d7dfe8 !important;
}

/* Clientes: KPIs */
body.light #clientes .wscp-kpi,
body.ws-theme-light #clientes .wscp-kpi {
  background: #fff !important;
  color: var(--no-text) !important;
  border-color: #dce3eb !important;
  box-shadow: var(--no-shadow) !important;
}

body.light #clientes .wscp-kpi small,
body.ws-theme-light #clientes .wscp-kpi small {
  color: #667085 !important
}

/* Valor e trend acompanham a cor do próprio ícone (--accent de cada card), não mais cinza/verde fixos. */
body.light #clientes .wscp-kpi[style*="--accent:#3b82f6"] strong,
body.light #clientes .wscp-kpi[style*="--accent:#3b82f6"] .trend,
body.ws-theme-light #clientes .wscp-kpi[style*="--accent:#3b82f6"] strong,
body.ws-theme-light #clientes .wscp-kpi[style*="--accent:#3b82f6"] .trend {
  color: #1d4ed8 !important
}

body.light #clientes .wscp-kpi[style*="--accent:#06b6d4"] strong,
body.light #clientes .wscp-kpi[style*="--accent:#06b6d4"] .trend,
body.ws-theme-light #clientes .wscp-kpi[style*="--accent:#06b6d4"] strong,
body.ws-theme-light #clientes .wscp-kpi[style*="--accent:#06b6d4"] .trend {
  color: #0e7490 !important
}

body.light #clientes .wscp-kpi[style*="--accent:#22c55e"] strong,
body.light #clientes .wscp-kpi[style*="--accent:#22c55e"] .trend,
body.ws-theme-light #clientes .wscp-kpi[style*="--accent:#22c55e"] strong,
body.ws-theme-light #clientes .wscp-kpi[style*="--accent:#22c55e"] .trend {
  color: #15803d !important
}

body.light #clientes .wscp-kpi[style*="--accent:#f59e0b"] strong,
body.light #clientes .wscp-kpi[style*="--accent:#f59e0b"] .trend,
body.ws-theme-light #clientes .wscp-kpi[style*="--accent:#f59e0b"] strong,
body.ws-theme-light #clientes .wscp-kpi[style*="--accent:#f59e0b"] .trend {
  color: #92670a !important
}

body.light #clientes .wscp-kpi[style*="--accent:#ec4899"] strong,
body.light #clientes .wscp-kpi[style*="--accent:#ec4899"] .trend,
body.ws-theme-light #clientes .wscp-kpi[style*="--accent:#ec4899"] strong,
body.ws-theme-light #clientes .wscp-kpi[style*="--accent:#ec4899"] .trend {
  color: #be185d !important
}

/* Clientes: painel, formulário e filtros */
body.light #clientes .wscp-panel,
body.ws-theme-light #clientes .wscp-panel {
  background: #fff !important;
  color: var(--no-text) !important;
  border-color: #dce3eb !important;
  box-shadow: var(--no-shadow) !important;
}

body.light #clientes .wscp-form,
body.ws-theme-light #clientes .wscp-form {
  background: #f8fafc !important;
  color: var(--no-text) !important;
  border-bottom-color: #e2e8f0 !important;
}

body.light #clientes .wscp-form h3,
body.ws-theme-light #clientes .wscp-form h3 {
  color: #172033 !important
}

body.light #clientes .wscp-field label,
body.ws-theme-light #clientes .wscp-field label {
  color: #475467 !important
}

body.light #clientes .wscp-toolbar,
body.ws-theme-light #clientes .wscp-toolbar {
  background: #fff !important;
  border-bottom-color: #e2e8f0 !important;
}

body.light #clientes :is(.wscp-input, .wscp-select),
body.ws-theme-light #clientes :is(.wscp-input, .wscp-select) {
  background: #fff !important;
  color: #172033 !important;
  border-color: #d7e5ff00 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03) !important;
}

body.light #clientes :is(.wscp-input, .wscp-select):focus,
body.ws-theme-light #clientes :is(.wscp-input, .wscp-select):focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12) !important;
}

body.light #clientes .wscp-input::placeholder,
body.ws-theme-light #clientes .wscp-input::placeholder {
  color: #98a2b3 !important
}

/* Clientes: tabela, rodapé e ações */
body.light #clientes .wscp-table-wrap,
body.ws-theme-light #clientes .wscp-table-wrap {
  background: #fff !important
}

body.light #clientes .wscp-table,
body.ws-theme-light #clientes .wscp-table {
  background: #fff !important
}

body.light #clientes .wscp-table th,
body.ws-theme-light #clientes .wscp-table th {
  background: #f6f8fb !important;
  color: #667085 !important;
  border-bottom-color: #dfe5ec !important;
}

body.light #clientes .wscp-table td,
body.ws-theme-light #clientes .wscp-table td {
  background: #fff !important;
  color: #344054 !important;
  border-bottom-color: #e8edf3 !important;
}

body.light #clientes .wscp-table tr:hover td,
body.ws-theme-light #clientes .wscp-table tr:hover td {
  background: #f8fafc !important
}

body.light #clientes .wscp-client b,
body.ws-theme-light #clientes .wscp-client b {
  color: #172033 !important
}

body.light #clientes .wscp-client span,
body.ws-theme-light #clientes .wscp-client span {
  color: #667085 !important
}


body.light #clientes .wscp-status,
body.ws-theme-light #clientes .wscp-status {
  background: #ecfdf3 !important;
  color: #15803d !important;
  border-color: #bbebcc !important;
}

body.light #clientes .wscp-icon-btn,
body.ws-theme-light #clientes .wscp-icon-btn {
  background: #fff !important;
  color: #475467 !important;
  border-color: #d7dfe8 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .04) !important;
}

body.light #clientes .wscp-icon-btn:hover,
body.ws-theme-light #clientes .wscp-icon-btn:hover {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: #bfdbfe !important;
}

body.light #clientes .wscp-icon-btn.del:hover,
body.ws-theme-light #clientes .wscp-icon-btn.del:hover {
  background: #fff1f2 !important;
  color: #dc2626 !important;
  border-color: #fecdd3 !important;
}

body.light #clientes .wscp-empty,
body.ws-theme-light #clientes .wscp-empty {
  color: #667085 !important;
  background: #fff !important
}

body.light #clientes .wscp-footer,
body.ws-theme-light #clientes .wscp-footer {
  background: #fff !important;
  color: #667085 !important;
  border-top: 1px solid #eef2f6 !important;
}

body.light #clientes .wscp-page,
body.ws-theme-light #clientes .wscp-page {
  background: #fff !important;
  color: #475467 !important;
  border-color: #d7dfe8 !important;
}

body.light #clientes .wscp-page:hover,
body.ws-theme-light #clientes .wscp-page:hover {
  background: #f2f5f8 !important;
  color: #101828 !important
}

body.light #clientes .wscp-page.active,
body.ws-theme-light #clientes .wscp-page.active {
  background: #fff7dc !important;
  color: #805b00 !important;
  border-color: #e7bf38 !important;
}


/* ========================================================================== 
   NORTEAR ONE — CORREÇÃO V3 | prioridade real do menu e Clientes
   Usa marcador no elemento html e especificidade superior aos estilos injetados.
   ========================================================================== */
html[data-nortear-theme="light"] body #side.side,
html[data-nortear-theme="light"] body.menu-open #side.side,
html[data-nortear-theme="light"] body #side.side.open {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%) !important;
  border-right: 1px solid #dce3eb !important;
  color: #172033 !important;
  box-shadow: 18px 0 46px rgba(15, 23, 42, .12) !important;
}

html[data-nortear-theme="light"] body #side .ws-sidebar-brand,
html[data-nortear-theme="light"] body #side .brand {
  background: transparent !important;
  border-bottom-color: #dce3eb !important;
}

html[data-nortear-theme="light"] body #side .brand h1 {
  color: #172033 !important;
  text-shadow: none !important
}

html[data-nortear-theme="light"] body #side .brand p {
  color: #9a6b00 !important;
  text-shadow: none !important
}

html[data-nortear-theme="light"] body #side .nav button {
  background: transparent !important;
  color: #475467 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-nortear-theme="light"] body #side .nav button:hover {
  background: #eef2f6 !important;
  color: #101828 !important;
  border-color: #dfe5ec !important;
  transform: translateX(2px) !important;
}

html[data-nortear-theme="light"] body #side .nav button.active {
  background: linear-gradient(90deg, #fff4c7, #fffdf5) !important;
  color: #714f00 !important;
  border-color: #e4b91f !important;
  box-shadow: inset 3px 0 #e7b600, 0 8px 20px rgba(173, 126, 0, .13) !important;
}

html[data-nortear-theme="light"] body #side .nav button :is(.ws-nav-label, .ws-nav-chevron, span) {
  color: inherit !important;
  text-shadow: none !important
}

html[data-nortear-theme="light"] body #side .ws-nav-icon {
  background: #fff !important;
  border: 1px solid #dce3eb !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .06) !important;
}

html[data-nortear-theme="light"] body #side .ws-nav-section-label,
html[data-nortear-theme="light"] body #side .nav-section-label {
  color: #7a8797 !important
}

html[data-nortear-theme="light"] body #side .ws-side-collapse {
  background: #fff !important;
  color: #344054 !important;
  border-color: #dce3eb !important;
}

html[data-nortear-theme="light"] body #clientes.ws-clientes-premium {
  background: #f3f6fa !important;
  color: #172033 !important;
}

html[data-nortear-theme="light"] body #clientes .wscp-head {
  background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 72%, #eaf2ff 100%) !important;
  color: #172033 !important;
  border: 1px solid #dce3eb !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08) !important;
}

html[data-nortear-theme="light"] body #clientes .wscp-head:after {
  background: rgba(59, 130, 246, .09) !important;
}

html[data-nortear-theme="light"] body #clientes .wscp-head h1 {
  color: #172033 !important
}

html[data-nortear-theme="light"] body #clientes .wscp-head p {
  color: #667085 !important
}

html[data-nortear-theme="light"] body #clientes .wscp-head-actions .wscp-btn.import {
  background: #f6f0ff !important;
  color: #6941c6 !important;
  border-color: #d9c6f7 !important;
  box-shadow: 0 7px 18px rgba(105, 65, 198, .11) !important;
}

html[data-nortear-theme="light"] body #clientes .wscp-head-actions .wscp-btn.primary {
  background: linear-gradient(135deg, #2f80ed, #1f65bd) !important;
  color: #fff !important;
  border-color: #2a70ca !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .20) !important;
}

html[data-nortear-theme="light"] body #clientes :is(.wscp-kpi, .wscp-panel, .wscp-toolbar, .wscp-table-wrap, .wscp-table, .wscp-footer) {
  background: #fff !important;
  color: #172033 !important;
  border-color: #dce3eb !important;
}

html[data-nortear-theme="light"] body #clientes .wscp-table th {
  background: #f6f8fb !important;
  color: #667085 !important
}

html[data-nortear-theme="light"] body #clientes .wscp-table td {
  background: #fff !important;
  color: #344054 !important
}


/* ========================================================================== 
   NORTEAR ONE — LIGHT V4 | sidebar real + headers de módulos + botões escuros
   ========================================================================== */
html[data-nortear-theme="light"] body #side,
html[data-nortear-theme="light"] body #side.side,
html[data-nortear-theme="light"] body.menu-open #side,
html[data-nortear-theme="light"] body #side.open {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%) !important;
  border-right: 1px solid #dce3eb !important;
  color: #172033 !important;
  box-shadow: 18px 0 46px rgba(15, 23, 42, .14) !important;
}

html[data-nortear-theme="light"] body #side .brand,
html[data-nortear-theme="light"] body #side .ws-sidebar-brand,
html[data-nortear-theme="light"] body #side .ws-side-footer {
  background: transparent !important;
  border-color: #dce3eb !important;
  color: #172033 !important;
}

html[data-nortear-theme="light"] body #side :is(h1, h2, h3, strong, .ws-nav-label) {
  color: #344054 !important;
  text-shadow: none !important
}

html[data-nortear-theme="light"] body #side :is(p, small, .ws-nav-section-label, .ws-nav-chevron) {
  color: #667085 !important;
  text-shadow: none !important
}

html[data-nortear-theme="light"] body #side .nav button,
html[data-nortear-theme="light"] body #side .ws-premium-nav button {
  background: transparent !important;
  color: #475467 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-nortear-theme="light"] body #side .nav button:hover,
html[data-nortear-theme="light"] body #side .ws-premium-nav button:hover {
  background: #eef2f6 !important;
  color: #172033 !important;
  border-color: #dce3eb !important;
}

html[data-nortear-theme="light"] body #side .nav button.active,
html[data-nortear-theme="light"] body #side .ws-premium-nav button.active {
  background: linear-gradient(90deg, #fff7d6, #fffdf4) !important;
  color: #7a5200 !important;
  border-color: #e6b91e !important;
  box-shadow: 0 8px 20px rgba(190, 140, 0, .14) !important;
}

html[data-nortear-theme="light"] body #side .ws-side-collapse,
html[data-nortear-theme="light"] body #side .ws-side-logout,
html[data-nortear-theme="light"] body #side .ws-plan-card {
  background: #ffffff !important;
  color: #344054 !important;
  border-color: #dce3eb !important;
  box-shadow: none !important;
}

html[data-nortear-theme="light"] body :is(#clientes .wscp-head,
  #propostas .wspp-head,
  #contratos .wsct-head,
  #financeiro .wsfin-head,
  #organizacao .wsorg-head,
  #documentos .wsdoc-head,
  #aprovacao .wsr-module-hero,
  .wsr-module-hero,
  .ws-module-hero) {
  background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%) !important;
  border: 1px solid #dce3eb !important;
  color: #172033 !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06) !important;
  margin-bottom: 28px !important;
}

html[data-nortear-theme="light"] body :is(#clientes .wscp-head,
  #propostas .wspp-head,
  #contratos .wsct-head,
  #financeiro .wsfin-head,
  #organizacao .wsorg-head,
  #documentos .wsdoc-head,
  #aprovacao .wsr-module-hero,
  .wsr-module-hero,
  .ws-module-hero) :is(h1, h2, h3, strong) {
  color: #172033 !important;
  text-shadow: none !important
}

html[data-nortear-theme="light"] body :is(#clientes .wscp-head,
  #propostas .wspp-head,
  #contratos .wsct-head,
  #financeiro .wsfin-head,
  #organizacao .wsorg-head,
  #documentos .wsdoc-head,
  #aprovacao .wsr-module-hero,
  .wsr-module-hero,
  .ws-module-hero) :is(p, small, span) {
  color: #667085 !important;
  text-shadow: none !important
}

html[data-nortear-theme="light"] body #propostas .wspp-btn:not(.primary),
html[data-nortear-theme="light"] body #contratos .wsct-btn:not(.primary),
html[data-nortear-theme="light"] body .btn.secondary,
html[data-nortear-theme="light"] body button.secondary,
html[data-nortear-theme="light"] body .wsdm-choices button {
  background: #ffffff !important;
  color: #344054 !important;
  border-color: #cfd8e3 !important;
  box-shadow: none !important;
}

html[data-nortear-theme="light"] body #propostas .wspp-btn:not(.primary):hover,
html[data-nortear-theme="light"] body #contratos .wsct-btn:not(.primary):hover,
html[data-nortear-theme="light"] body .btn.secondary:hover,
html[data-nortear-theme="light"] body button.secondary:hover,
html[data-nortear-theme="light"] body .wsdm-choices button:hover {
  background: #f2f5f8 !important;
  color: #172033 !important;
  border-color: #98a6b8 !important;
}

html[data-nortear-theme="light"] body .wsdm-company,
html[data-nortear-theme="light"] body .wsdm-choices,
html[data-nortear-theme="light"] body .wsdm-library {
  background: #ffffff !important;
  color: #172033 !important;
  border-color: #d6e0e8 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .07) !important;
}

html[data-nortear-theme="light"] body .wsdm-company :is(b, h3) {
  color: #172033 !important
}

html[data-nortear-theme="light"] body .wsdm-company :is(span, small, p) {
  color: #667085 !important
}

/* ========================================================================== 
   NORTEAR ONE — LIGHT V6 | correções visuais confirmadas por screenshots
   Escopo: menu, documentos/modelos, financeiro, aprovação e botões escuros.
   ========================================================================== */
html[data-nortear-theme="light"] body #side,
html[data-nortear-theme="light"] body #side.side {
  background: #ffffff !important;
  border-right: 1px solid #d8e0ea !important;
  color: #172033 !important;
}

html[data-nortear-theme="light"] body #side .brand,
html[data-nortear-theme="light"] body #side .nav {
  background: #ffffff !important;
}

html[data-nortear-theme="light"] body #side .brand h1,
html[data-nortear-theme="light"] body #side .brand p,
html[data-nortear-theme="light"] body #side .ws-nav-section-label,
html[data-nortear-theme="light"] body #side .ws-nav-label,
html[data-nortear-theme="light"] body #side .ws-nav-chevron {
  color: #344054 !important;
}

html[data-nortear-theme="light"] body #side .nav button {
  background: #ffffff !important;
  color: #475467 !important;
  border: 1px solid transparent !important;
}

html[data-nortear-theme="light"] body #side .nav button:hover {
  background: #f2f4f7 !important;
  color: #172033 !important;
  border-color: #d8e0ea !important;
}

html[data-nortear-theme="light"] body #side .nav button.active {
  background: #fff8dc !important;
  color: #7a5200 !important;
  border-color: #e6b91e !important;
}

html[data-nortear-theme="light"] body .wsdm-library,
html[data-nortear-theme="light"] body .wsdm-model-grid article,
html[data-nortear-theme="light"] body .wsdm-modal,
html[data-nortear-theme="light"] body .wsdm-modal>header,
html[data-nortear-theme="light"] body .wsdm-modal footer {
  background: #ffffff !important;
  color: #172033 !important;
  border-color: #d7e0ea !important;
}

html[data-nortear-theme="light"] body .wsdm-library h3,
html[data-nortear-theme="light"] body .wsdm-model-top b,
html[data-nortear-theme="light"] body .wsdm-modal h2,
html[data-nortear-theme="light"] body .wsdm-modal label {
  color: #172033 !important;
}

html[data-nortear-theme="light"] body .wsdm-library p,
html[data-nortear-theme="light"] body .wsdm-model-top span,
html[data-nortear-theme="light"] body .wsdm-modal header p {
  color: #667085 !important;
}

html[data-nortear-theme="light"] body .wsdm-model-grid footer button,
html[data-nortear-theme="light"] body .wsdm-modal footer button:not(.save) {
  background: #ffffff !important;
  color: #344054 !important;
  border-color: #cfd8e3 !important;
}

html[data-nortear-theme="light"] body .wsdm-model-grid footer button:hover,
html[data-nortear-theme="light"] body .wsdm-modal footer button:not(.save):hover {
  background: #f2f4f7 !important;
  color: #172033 !important;
}

html[data-nortear-theme="light"] body .wsdm-model-grid footer .danger {
  background: #fff1f3 !important;
  color: #d92d20 !important;
  border-color: #fda29b !important;
}

html[data-nortear-theme="light"] body .wsdm-modal :is(input, select, textarea) {
  background: #ffffff !important;
  color: #172033 !important;
  border-color: #cfd8e3 !important;
}

html[data-nortear-theme="light"] body :is(.wsdm-text-preview, .wsdm-file-fixed) {
  background: #f7f9fc !important;
  color: #172033 !important;
  border-color: #d7e0ea !important;
}

html[data-nortear-theme="light"] body .wsdm-config textarea {
  background: #ffffff !important;
  color: #172033 !important;
  border-color: #cfd8e3 !important;
}

html[data-nortear-theme="light"] body .wsdm-config-actions span {
  color: #667085 !important;
}

html[data-nortear-theme="light"] body .wsdm-active-check {
  background: #f7f9fc !important;
  border-color: #d7e0ea !important;
}

html[data-nortear-theme="light"] body .wsdm-notice {
  background: #fffaeb !important;
  color: #7a5c00 !important;
  border-color: #f7c948 !important;
}

html[data-nortear-theme="light"] body #financeiro .wsfp-head {
  background: #ffffff !important;
  border: 1px solid #d8e0ea !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08) !important;
}

html[data-nortear-theme="light"] body #financeiro .wsfp-head :is(h1, p) {
  color: #172033 !important
}

html[data-nortear-theme="light"] body #financeiro .wsfp-form {
  background: #ffffff !important;
  color: #172033 !important;
  border: 1px solid #d8e0ea !important;
}

html[data-nortear-theme="light"] body #financeiro .wsfp-form h3,
html[data-nortear-theme="light"] body #financeiro .wsfp-field label {
  color: #344054 !important;
}

html[data-nortear-theme="light"] body #financeiro .wsfp-field :is(input, select) {
  background: #ffffff !important;
  color: #172033 !important;
  border-color: #cfd8e3 !important;
}

html[data-nortear-theme="light"] body #financeiro .wsfp-btn.ghost {
  background: #ffffff !important;
  color: #344054 !important;
  border-color: #cfd8e3 !important;
}

html[data-nortear-theme="light"] body #financeiro .wsfp-btn.primary {
  background: #159957 !important;
  border-color: #0d7842 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(21, 153, 87, .24) !important;
}

html[data-nortear-theme="light"] body #financeiro .wsfp-btn.primary:hover {
  background: #0d7842 !important;
}

html[data-nortear-theme="light"] body #aprovacao #wsAv2NavWrap {
  background: #f3f6fa !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .07) !important;
}

html[data-nortear-theme="light"] body #aprovacao .wsav2-nav {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  gap: 6px !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  padding: 0 2px 12px !important;
  margin: 0 !important;
  background: transparent !important;
  border-top: 0 !important;
  border-bottom: 1px solid #d8e1eb !important;
  scrollbar-width: thin !important;
}

html[data-nortear-theme="light"] body #aprovacao .wsav2-nav-btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 44px !important;
  padding: 0 8px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: rgba(var(--tab-rgb), .06) !important;
  color: #64748b !important;
  box-shadow: none !important;
}

html[data-nortear-theme="light"] body #aprovacao .wsav2-nav-btn:hover {
  background: rgba(var(--tab-rgb), .15) !important;
  color: #172033 !important;
  border-color: rgba(var(--tab-rgb), .42) !important;
}

html[data-nortear-theme="light"] body #aprovacao .wsav2-nav-btn.active {
  background: rgba(var(--tab-rgb), .15) !important;
  color: #172033 !important;
  border-color: rgba(var(--tab-rgb), .42) !important;
}

/* Cards, formulário e kanban da Aprovação de Conteúdo dependiam só de
   rgba(255,255,255,.0X) para se destacar do fundo — some no tema claro. */
html[data-nortear-theme="light"] body #aprovacao :is(.wsav2-card, .wsav2-form, .wsav2-kan-col) {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-nortear-theme="light"] body #aprovacao .wsav2-kan-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #172033 !important;
}

html[data-nortear-theme="light"] body #aprovacao .wsav2-portal-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-nortear-theme="light"] body #aprovacao .wsav2-portal-footer {
  color: #94a3b8 !important;
  border-top-color: #e8edf3 !important;
}

/* Equipe (team-area.js) e Documentos reutilizam a mesma família de cartões translúcidos */
html[data-nortear-theme="light"] body :is(#teamarea, #documentos) :is(.wsap-card, .wsp-item, .wsa-doc-row, .wsa-prod-card, .ws-team-card) {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #172033 !important;
}

html[data-nortear-theme="light"] body #organizacao .wso-progress {
  background: #f1f5f9 !important;
  color: #17212c !important;
}

html[data-nortear-theme="light"] body #documentos .wsa-prod-form {
  background: #ffffff !important;
  color: #17212c !important;
  border-color: #d7e0e9 !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16) !important;
}

html[data-nortear-theme="light"] body .wsa-tool-search {
  background: #f8fafc !important;
  border-color: #d7e0e9 !important;
}

html[data-nortear-theme="light"] body .wsa-tool-search svg {
  color: #64748b !important;
}

html[data-nortear-theme="light"] body :is(#propostas .wspp-head,
  #contratos .wsct-head,
  #financeiro .wsfp-head,
  #clientes .wscp-head) {
  background: #ffffff !important;
  color: #172033 !important;
  border-color: #d8e0ea !important;
}

html[data-nortear-theme="light"] body :is(#propostas .wspp-head,
  #contratos .wsct-head,
  #financeiro .wsfp-head,
  #clientes .wscp-head) :is(h1, h2, h3, p, span, strong) {
  color: #172033 !important;
}

html[data-nortear-theme="light"] body button:not(.primary):not(.save):not(.danger):not(.ws-header-icon):not(.ws-theme-action):not(.ws-profile-trigger):not(.ws-menu-toggle) {
  text-shadow: none !important;
}

/* ========================================================================== 
   NORTEAR ONE — LIGHT V7 | correção real dos botões
   Escopo: biblioteca de modelos, propostas e contratos.
   ========================================================================== */
html[data-nortear-theme="light"] body .wsdm-model-grid footer {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 10px 0 0 !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid #d8e0ea !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

html[data-nortear-theme="light"] body .wsdm-model-grid footer button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 9px !important;
  border: 1px solid #cfd8e3 !important;
  outline: 0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #253047 !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
  transform: none !important;
}

html[data-nortear-theme="light"] body .wsdm-model-grid footer button:hover {
  background: #f5f7fa !important;
  border-color: #98a6b8 !important;
  color: #101828 !important;
  transform: none !important;
}

html[data-nortear-theme="light"] body .wsdm-model-grid footer button svg {
  width: 13px !important;
  height: 13px !important;
  flex: 0 0 13px !important;
}

html[data-nortear-theme="light"] body .wsdm-model-grid footer button.danger {
  background: #fff7f7 !important;
  color: #d92d20 !important;
  border-color: #f4b4b0 !important;
}

html[data-nortear-theme="light"] body .wsdm-model-grid footer button.danger:hover {
  background: #fff0f0 !important;
  border-color: #f97066 !important;
}

/* Botões principais de Propostas e Contratos: texto legível no claro. */
html[data-nortear-theme="light"] body #propostas .wspp-btn,
html[data-nortear-theme="light"] body #contratos .wsct-btn {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-nortear-theme="light"] body #propostas .wspp-btn.primary {
  background: #fff8e1 !important;
  color: #7a5200 !important;
  border: 1px solid #f2bd25 !important;
}

html[data-nortear-theme="light"] body #propostas .wspp-btn.primary i {
  width: 25px !important;
  height: 25px !important;
  background: #8a6200 !important;
  color: #ffffff !important;
}

html[data-nortear-theme="light"] body #contratos .wsct-btn.primary {
  background: #eef5ff !important;
  color: #175cd3 !important;
  border: 1px solid #84adff !important;
}

html[data-nortear-theme="light"] body #contratos .wsct-btn.primary i {
  width: 25px !important;
  height: 25px !important;
  background: #175cd3 !important;
  color: #ffffff !important;
}

html[data-nortear-theme="light"] body #propostas .wspp-btn.primary:hover {
  background: #fff1c2 !important;
  color: #694100 !important;
}

html[data-nortear-theme="light"] body #contratos .wsct-btn.primary:hover {
  background: #e0ecff !important;
  color: #004eeb !important;
}

@media(max-width:900px) {
  html[data-nortear-theme="light"] body .wsdm-model-grid footer {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media(max-width:560px) {
  html[data-nortear-theme="light"] body .wsdm-model-grid footer {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================================================== 
   NORTEAR ONE — LIGHT V9 | Propostas e Contratos: modais e botões
   Correções baseadas na validação visual da usuária.
   ========================================================================== */

/* Preview de proposta/contrato: remove laterais escuras no tema claro. */
html[data-nortear-theme="light"] body #modal>.box:is(.ws-modal-general, .ws-modal-contract),
html[data-nortear-theme="light"] body #modal>.box.ws-modal-docs {
  background: #f7f9fc !important;
  border-color: #d5deea !important;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .24) !important;
  scrollbar-color: #9cb3c8 transparent !important;
}

html[data-nortear-theme="light"] body #modal :is(.ws-modal-general, .ws-modal-contract) #modalContent {
  background: #f7f9fc !important;
}

/* Modais de Importação de leads, Aprovação ao cliente e Edição de lead — mesma
   correção acima nunca havia sido estendida a esses 3 tipos de modal, então
   ficavam com fundo escuro (#111a22→#091118) mesmo no tema claro. */
html[data-nortear-theme="light"] body #modal>.box:is(.ws-modal-import, .ws-modal-approval, .ws-modal-lead) {
  background: #f7f9fc !important;
  color: #172033 !important;
  border-color: #d5deea !important;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .24) !important;
  scrollbar-color: #9cb3c8 transparent !important;
}

html[data-nortear-theme="light"] body #modal :is(.ws-modal-import, .ws-modal-approval) h2 {
  color: #172033 !important;
}

html[data-nortear-theme="light"] body #modal .ws-modal-import .import-box {
  background: #ffffff !important;
  border-color: #d5deea !important;
}

html[data-nortear-theme="light"] body #modal :is(.ws-modal-import, .ws-modal-approval, .ws-modal-lead) :is(input, select, textarea) {
  background: #ffffff !important;
  color: #172033 !important;
  border-color: #c7d2df !important;
}

html[data-nortear-theme="light"] body #modal .ws-modal-approval .client-review-card {
  background: #ffffff !important;
  border-color: #d5deea !important;
}

html[data-nortear-theme="light"] body #modal .ws-modal-approval .preview-box {
  background: #eef1f5 !important;
  border-color: #d5deea !important;
}

html[data-nortear-theme="light"] body #modal :is(.ws-modal-lead, .ws-modal-general) #modalContent>.actions:last-of-type,
html[data-nortear-theme="light"] body #modal .ws-modal-import .actions,
html[data-nortear-theme="light"] body #modal .ws-modal-approval .actions {
  background: rgba(255, 255, 255, .97) !important;
  border-top: 1px solid #d6e0ea !important;
}

html[data-nortear-theme="light"] body #modal :is(.ws-modal-lead, .ws-modal-general) #modalContent>.actions:last-of-type .btn:last-child:not(.danger) {
  background: #eef1f5 !important;
  color: #344054 !important;
  border-color: #c7d2df !important;
}

html[data-nortear-theme="light"] body #modal .ws-modal-x {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #f3b5b9 !important;
}

html[data-nortear-theme="light"] body #modal :is(.ws-modal-general, .ws-modal-contract) #printArea {
  background: #ffffff !important;
  color: #172033 !important;
  border: 1px solid #d8e2ec !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .09) !important;
}

html[data-nortear-theme="light"] body #modal :is(.ws-modal-general, .ws-modal-contract) #modalContent>.actions {
  background: rgba(255, 255, 255, .97) !important;
  border-top: 1px solid #d6e0ea !important;
  box-shadow: 0 -8px 22px rgba(15, 23, 42, .06) !important;
}

/* Ações da prévia: proporcionais, arredondadas e sem estrela gigante. */
html[data-nortear-theme="light"] body #modal :is(.ws-modal-general, .ws-modal-contract) #modalContent>.actions .btn {
  min-width: 176px !important;
  width: auto !important;
  max-width: none !important;
  min-height: 46px !important;
  height: 46px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-nortear-theme="light"] body #modal .ws-use-template-action {
  min-width: 190px !important;
  background: #fff8dc !important;
  color: #7a5200 !important;
  border: 1px solid #e5ae12 !important;
}

html[data-nortear-theme="light"] body #modal .ws-use-template-action svg,
html[data-nortear-theme="light"] body #modal .ws-use-template-action i {
  display: none !important;
}

html[data-nortear-theme="light"] body #modal :is(.ws-modal-general, .ws-modal-contract) #modalContent>.actions .btn:not(.secondary):not(.danger):not(.ws-use-template-action) {
  background: #eef6ff !important;
  color: #175cd3 !important;
  border: 1px solid #84adff !important;
}

html[data-nortear-theme="light"] body #modal :is(.ws-modal-general, .ws-modal-contract) #modalContent>.actions .btn.secondary {
  background: #ffffff !important;
  color: #344054 !important;
  border: 1px solid #c7d2df !important;
}

/* Importar modelo: botões maiores, alinhados e com borda/ícone verdes. */
html[data-nortear-theme="light"] body .wsdm-modal footer.wsdm-import-actions {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  padding-top: 14px !important;
}

html[data-nortear-theme="light"] body .wsdm-modal footer.wsdm-import-actions .wsdm-outline-action {
  min-width: 176px !important;
  height: 46px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: #ffffff !important;
  color: #087443 !important;
  border: 1px solid #20a66a !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

html[data-nortear-theme="light"] body .wsdm-modal footer.wsdm-import-actions .wsdm-outline-action svg {
  width: 18px !important;
  height: 18px !important;
  color: #20a66a !important;
  stroke: currentColor !important;
}

html[data-nortear-theme="light"] body .wsdm-modal footer.wsdm-import-actions .wsdm-outline-action.import {
  min-width: 205px !important;
  background: #eefbf5 !important;
  color: #087443 !important;
  border-color: #20a66a !important;
}

html[data-nortear-theme="light"] body .wsdm-modal footer.wsdm-import-actions .wsdm-outline-action:hover {
  background: #e6f8ef !important;
  border-color: #07864d !important;
  color: #05683a !important;
}

/* Botões de gerar documento/contrato: alongados e bem arredondados. */
html[data-nortear-theme="light"] body #propostas .wspp-actions .wspp-btn.primary,
html[data-nortear-theme="light"] body #contratos .wsct-actions .wsct-btn.primary,
html[data-nortear-theme="light"] body #propostas button[onclick*="createProposal"],
html[data-nortear-theme="light"] body #contratos button[onclick*="genContract"] {
  min-width: 205px !important;
  width: auto !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 24px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html[data-nortear-theme="light"] body #propostas .wspp-actions .wspp-btn.primary,
html[data-nortear-theme="light"] body #propostas button[onclick*="createProposal"] {
  background: #fff8e1 !important;
  color: #7a5200 !important;
  border: 1px solid #eab308 !important;
}

html[data-nortear-theme="light"] body #contratos .wsct-actions .wsct-btn.primary,
html[data-nortear-theme="light"] body #contratos button[onclick*="genContract"] {
  background: #eef5ff !important;
  color: #175cd3 !important;
  border: 1px solid #5b8def !important;
}

html[data-nortear-theme="light"] body :is(#propostas, #contratos) :is(.wspp-actions, .wsct-actions) {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

@media(max-width:680px) {
  html[data-nortear-theme="light"] body .wsdm-modal footer.wsdm-import-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  html[data-nortear-theme="light"] body .wsdm-modal footer.wsdm-import-actions .wsdm-outline-action,
  html[data-nortear-theme="light"] body #modal :is(.ws-modal-general, .ws-modal-contract) #modalContent>.actions .btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ========================================================================== 
   NORTEAR ONE — LIGHT V10 | PROSPECÇÃO CENTRAL PREMIUM
   Aplicação visual aprovada para o módulo 17-rebuild.
   ========================================================================== */
html[data-nortear-theme="light"] body #prospeccao.wsp17-section {
  background: #f4f7fb !important;
  color: #172033 !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17 {
  gap: 14px !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-hero {
  padding: 20px 22px !important;
  border: 1px solid #dce5ef !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #ffffff 0%, #fbfdff 76%, #f0f6ff 100%) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .07) !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-brand {
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
  background: linear-gradient(145deg, color-mix(in srgb, #14b8a6 92%, #fff 8%), color-mix(in srgb, #14b8a6 74%, #07111f 26%)) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 8px 20px color-mix(in srgb, #14b8a6 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-hero span {
  color: #344054 !important;
  font-size: 9px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-hero h2 {
  color: #172033 !important;
  font-size: 22px !important;
  margin: 4px 0 2px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-hero p {
  color: #667085 !important;
  font-size: 11px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-hero-actions button {
  min-width: 150px !important;
  height: 44px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #344054 !important;
  border: 1px solid #cdd8e5 !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-hero-actions button:first-child {
  color: #087443 !important;
  border-color: #41b883 !important;
  background: #f2fcf7 !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-hero-actions button.primary {
  color: #ffffff !important;
  border-color: #6ea1ff00 !important;
  background: #1ea99b !important;
}

/* Abas superiores: cores suaves, porém mais sólidas e menos transparentes. */
html[data-nortear-theme="light"] body #wsp17Root .wsp17-nav {
  position: sticky !important;
  top: -24px !important;
  margin: 0 -24px !important;
  padding: 30px 24px 12px !important;
  border-bottom: 1px solid #e1e8f0 !important;
  background: rgba(247, 250, 253, .98) !important;
  box-shadow: 0 9px 22px rgba(15, 23, 42, .07) !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-nav button {
  height: 46px !important;
  min-width: 158px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  background: rgb(var(--rgb), .08) !important;
  border: 1px solid transparent !important;
  color: #172033 !important;
  font-size: 12px !important;
  justify-content: center !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-nav button svg {
  color: rgb(var(--rgb)) !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-nav button:hover {
  background: rgba(var(--rgb), .14) !important;
  border-color: transparent !important;
  color: #172033 !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-nav button.active {
  background: rgba(var(--rgb), .14) !important;
  border-color: rgba(var(--rgb), .55) !important;
  color: #172033 !important;
  box-shadow: 0 5px 15px rgba(var(--rgb), .10) !important;
}

/* KPIs */
html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis {
  gap: 10px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis article {
  min-height: 106px !important;
  padding: 16px !important;
  border: 1px solid #dfe7ef !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .055) !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis article>i {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis article small {
  color: #667085 !important;
  font-size: 10px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis article strong {
  font-size: 24px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis article span {
  color: #7b8794 !important;
  font-size: 9px !important
}

/* Valor mantém a cor do ícone/barra também no tema claro (mesmo padrão do Dashboard). */
html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis article strong {
  color: #3b82f6 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis article.cyan strong {
  color: #0891b2 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis article.gold strong {
  color: #b45309 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis article.pink strong {
  color: #be185d !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis article.red strong {
  color: #dc2626 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis article.teal strong {
  color: #0f766e !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis article.green strong {
  color: #15803d !important
}

/* Fluxo 01–05: mesmo padrão colorido por etapa do tema escuro (cada etapa com sua cor),
   e não mais neutro/cinza — a versão "sem excesso de cores" destoava do dark e foi removida. */
html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow {
  padding: 20px !important;
  border: 1px solid #dfe7ef !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .055) !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow>header h3,
html[data-nortear-theme="light"] body #wsp17Root .wsp17-panel h3 {
  color: #172033 !important;
  font-size: 15px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow>header p,
html[data-nortear-theme="light"] body #wsp17Root .wsp17-panel header p {
  color: #667085 !important;
  font-size: 10px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow>div {
  gap: 12px !important;
  overflow-x: auto !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow>div>button {
  position: relative !important;
  min-width: 220px !important;
  min-height: 92px !important;
  padding: 15px 16px !important;
  border: 1px solid color-mix(in srgb, currentColor 34%, #dbe4ee) !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, currentColor 4%, #fff) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .035) !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow>div>button:hover {
  border-color: color-mix(in srgb, currentColor 55%, #cbd5e1) !important;
  background: color-mix(in srgb, currentColor 7%, #fff) !important;
  transform: translateY(-1px) !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow>div>button:nth-child(1) {
  color: #0891b2 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow>div>button:nth-child(2) {
  color: #9333ea !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow>div>button:nth-child(3) {
  color: #d97706 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow>div>button:nth-child(4) {
  color: #0f766e !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow>div>button:nth-child(5) {
  color: #be185d !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow>div>button>i {
  width: 43px !important;
  height: 43px !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, currentColor 10%, #fff) !important;
  color: currentColor !important;
  border: 1px solid color-mix(in srgb, currentColor 44%, #dbe4ee) !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow small {
  font-size: 9px !important;
  color: #667085 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow b {
  font-size: 12px !important;
  color: #172033 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow em {
  font-size: 9px !important;
  color: #667085 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow>div>button>span {
  color: #172033 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-flow>div>button>svg {
  color: #172033 !important;
  width: 15px !important
}

/* Painéis inferiores */
html[data-nortear-theme="light"] body #wsp17Root .wsp17-grid {
  gap: 14px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-panel {
  padding: 20px !important;
  border: 1px solid #dfe7ef !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05) !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-panel>header>button {
  height: 34px !important;
  padding: 0 15px !important;
  border: 1px solid #cbd8e6 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #344054 !important;
  font-size: 10px !important;
  box-shadow: none !important;
}

/* Pipeline: barras coloridas e trilho claro. */
html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars {
  gap: 10px !important;
  margin-top: 18px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars>div {
  grid-template-columns: 140px 1fr 34px !important;
  gap: 12px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars span {
  color: #344054 !important;
  font-size: 10px !important;
  font-weight: 650 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars>div>i {
  height: 8px !important;
  background: #edf1f5 !important;
  border-radius: 99px !important;
  overflow: hidden !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars em {
  height: 100% !important;
  border-radius: 99px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars>div:nth-child(1) em {
  background: #2563eb !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars>div:nth-child(2) em {
  background: #38a0f4 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars>div:nth-child(3) em {
  background: #7c5ce6 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars>div:nth-child(4) em {
  background: #f59e0b !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars>div:nth-child(5) em {
  background: #ec4899 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars>div:nth-child(6) em {
  background: #14b8a6 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars>div:nth-child(7) em {
  background: #22c55e !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars>div:nth-child(8) em {
  background: #64748b !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-bars b {
  color: #172033 !important;
  font-size: 10px !important
}

/* Prioridades e leads recentes */
html[data-nortear-theme="light"] body #wsp17Root .wsp17-row {
  border: 1px solid #e1e8f0 !important;
  border-radius: 12px !important;
  background: #fbfcfe !important;
  color: #172033 !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-row b {
  color: #172033 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-row span {
  color: #667085 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-empty {
  color: #718096 !important
}

/* Ações rápidas: fundo claro e bordas discretas, sem cores excessivas. */
html[data-nortear-theme="light"] body #wsp17Root .wsp17-quick {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 16px !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-quick button {
  min-height: 52px !important;
  padding: 11px 16px !important;
  border: 1px solid #d9e2ec !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #172033 !important;
  box-shadow: none !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-quick button:hover {
  border-color: #aabbd0 !important;
  background: #f8fafc !important;
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-quick button>svg {
  color: #344054 !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-quick b {
  color: #172033 !important;
  font-size: 10px !important
}

html[data-nortear-theme="light"] body #wsp17Root .wsp17-quick small {
  color: #7b8794 !important;
  font-size: 8px !important
}

@media(max-width:1180px) {
  html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important
  }

  html[data-nortear-theme="light"] body #wsp17Root .wsp17-nav button {
    min-width: 145px !important
  }
}

@media(max-width:820px) {
  html[data-nortear-theme="light"] body #wsp17Root .wsp17-grid {
    grid-template-columns: 1fr !important
  }

  html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important
  }

  html[data-nortear-theme="light"] body #wsp17Root .wsp17-hero {
    align-items: flex-start !important;
    flex-wrap: wrap !important
  }

  html[data-nortear-theme="light"] body #wsp17Root .wsp17-hero-actions {
    width: 100% !important
  }

  html[data-nortear-theme="light"] body #wsp17Root .wsp17-hero-actions button {
    flex: 1 !important;
    min-width: 0 !important
  }
}

@media(max-width:560px) {
  html[data-nortear-theme="light"] body #wsp17Root .wsp17-kpis {
    grid-template-columns: 1fr !important
  }

  html[data-nortear-theme="light"] body #wsp17Root .wsp17-quick {
    grid-template-columns: 1fr !important
  }
}


/* Dashboard — ícones KPI mais vivos no tema claro (correção localizada) */
body.light #dashboard.wsx-dashboard .wsx-kpi,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi {
  position: relative !important;
  overflow: hidden !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important
}

body.light #dashboard.wsx-dashboard .wsx-kpi::before,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: currentColor;
  opacity: .82
}

body.light #dashboard.wsx-dashboard .wsx-kpi:hover,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .13) !important;
  border-color: color-mix(in srgb, currentColor 35%, #d7e0e9) !important
}

/* Ícone do KPI (tema claro) — antes usava gradiente sólido + box-shadow/borda BRANCA fixa
   (glow branco atrás de qualquer cor, herdado sem querer do tema claro para o escuro também).
   Trocado pelo padrão "chip" já usado em Central do Cliente (Área do Cliente): fundo suave
   translúcido na cor do próprio KPI (--tone), ícone e brilho na mesma cor, sem glow branco. */
body.light #dashboard.wsx-dashboard .wsx-kpi-icon,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi-icon {
  background: color-mix(in srgb, var(--tone, #3b82f6) 14%, #ffffff) !important;
  color: var(--tone, #3b82f6) !important;
  border: 1px solid color-mix(in srgb, var(--tone, #3b82f6) 30%, transparent) !important;
  box-shadow: none !important;
  animation: wsDashIconEnter .55s cubic-bezier(.22, .8, .24, 1) both;
}

body.light #dashboard.wsx-dashboard .wsx-kpi-icon svg,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi-icon svg {
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.9 !important;
  filter: none !important
}

/* A regra "KPI e cartões principais" no topo deste arquivo força color:var(--no-text)!important
   em .wsx-kpi com especificidade maior que .wsx-kpi.<tom>{color:var(--tone)} (não-escopada) —
   por isso a barra lateral (::before usa currentColor) e o texto ficavam sempre cinza neutro no
   tema claro, nunca a cor da categoria. Restaura a cor oficial de cada tom, mesmo valor do escuro. */
body.light #dashboard.wsx-dashboard .wsx-kpi.blue,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi.blue {
  --tone: #2f80ff;
  color: #2f80ff !important
}

body.light #dashboard.wsx-dashboard .wsx-kpi.cyan,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi.cyan {
  --tone: #12c9c2;
  color: #12c9c2 !important
}

body.light #dashboard.wsx-dashboard .wsx-kpi.purple,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi.purple {
  --tone: #a84cff;
  color: #a84cff !important
}

body.light #dashboard.wsx-dashboard .wsx-kpi.green,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi.green {
  --tone: #2ed46f;
  color: #2ed46f !important
}

body.light #dashboard.wsx-dashboard .wsx-kpi.orange,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi.orange {
  --tone: #ff9d00;
  color: #ff9d00 !important
}

body.light #dashboard.wsx-dashboard .wsx-kpi.pink,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi.pink {
  --tone: #ef3f8f;
  color: #ef3f8f !important
}

/* Ícone, valor e barra lateral usam a mesma cor do KPI (herdada de .wsx-kpi.<tom>{color:...}).
   Antes o valor e o título ficavam sempre cinza neutro no tema claro, quebrando a identidade visual. */
body.light #dashboard.wsx-dashboard .wsx-kpi small,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi small {
  color: #172033 !important;
  font-weight: 650 !important
}

body.light #dashboard.wsx-dashboard .wsx-kpi strong,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi strong {
  color: #172033 !important;
  font-weight: 800 !important
}

body.light #dashboard.wsx-dashboard .wsx-kpi-badge,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi-badge {
  color: currentColor !important
}

body.light #dashboard.wsx-dashboard .wsx-kpi p,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi p {
  color: color-mix(in srgb, currentColor 45%, #667085) !important;
  font-weight: 600 !important
}

body.light #dashboard.wsx-dashboard .wsx-kpi p em,
body.ws-theme-light #dashboard.wsx-dashboard .wsx-kpi p em {
  color: color-mix(in srgb, currentColor 90%, #536176) !important
}

@keyframes wsDashIconEnter {
  0% {
    opacity: 0;
    transform: scale(.72) rotate(-8deg)
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0)
  }
}

/* Área do Cliente: botões de ação decorados por ws-runtime-audit.css (Insights/Métricas/Crescimento etc.)
   misturam --button-tone com base escura fixa (#0c151d), sem variante para tema claro. */
body.light #projetos .project-area button:not(.project-tab),
body.ws-theme-light #projetos .project-area button:not(.project-tab) {
  border: 1px solid color-mix(in srgb, var(--button-tone, #3b82f6) 38%, #d7dce5) !important;
  background: color-mix(in srgb, var(--button-tone, #3b82f6) 8%, #ffffff) !important;
  color: color-mix(in srgb, var(--button-tone, #3b82f6) 78%, #1f2937) !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--button-tone, #3b82f6) 10%, transparent) !important;
}

body.light #projetos .project-area button:not(.project-tab):hover,
body.ws-theme-light #projetos .project-area button:not(.project-tab):hover {
  background: color-mix(in srgb, var(--button-tone, #3b82f6) 16%, #ffffff) !important;
}

body.light .ws-audit-icon,
body.ws-theme-light .ws-audit-icon {
  background: color-mix(in srgb, var(--button-tone, #3b82f6) 16%, #ffffff) !important;
  color: color-mix(in srgb, var(--button-tone, #3b82f6) 85%, #1f2937) !important;
}

/* Padronização dos cards de KPI (tema claro) — Financeiro, Propostas, Contratos e
   Aprovação de Conteúdo usam fundo escuro FIXO (não usam var(--panel), diferente de Clientes/
   Organização/Equipe), então nunca clareavam no tema claro. O card fica branco aqui; o ícone
   (chip translúcido na cor de --accent/--tone) já é theme-agnostic, definido no próprio módulo. */
body.light #financeiro .wsfp-kpi,
body.ws-theme-light #financeiro .wsfp-kpi,
body.light #propostas .wspp-kpi,
body.ws-theme-light #propostas .wspp-kpi,
body.light #contratos .wsct-kpi,
body.ws-theme-light #contratos .wsct-kpi,
body.light #aprovacao .wsr-kpi,
body.ws-theme-light #aprovacao .wsr-kpi {
  background: #ffffff !important;
  border-color: #dce3eb !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08) !important;
}

body.light #financeiro .wsfp-kpi small,
body.ws-theme-light #financeiro .wsfp-kpi small,
body.light #propostas .wspp-kpi small,
body.ws-theme-light #propostas .wspp-kpi small,
body.light #contratos .wsct-kpi small,
body.ws-theme-light #contratos .wsct-kpi small,
body.light #aprovacao .wsr-kpi-txt small,
body.ws-theme-light #aprovacao .wsr-kpi-txt small {
  color: #667085 !important;
}


/* Hero actions use the shared local component geometry and colors in both themes. */
html[data-nortear-theme="light"] body #documentos .wsap-hero-actions .btn :is(svg, path, rect),
body.light #documentos .wsap-hero-actions .btn :is(svg, path, rect),
body.ws-theme-light #documentos .wsap-hero-actions .btn :is(svg, path, rect) {
  color: inherit !important;
  fill: none !important;
  stroke: currentColor !important;
}

html[data-nortear-theme="light"] body #documentos .wsap-action-calendar svg,
body.light #documentos .wsap-action-calendar svg,
body.ws-theme-light #documentos .wsap-action-calendar svg {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 2.1 !important;
}
