/* =========================================================
   SISTEMA BC - Contrast Fix V10
   Escopo: correção visual/tema para telas legadas de negócio.
   Não altera backend, rotas, forms, IDs, endpoints, JS de regra ou cálculos.
   ========================================================= */

/* Tokens finais de contraste por tema. */
html[data-bc-theme="dark"] body.bc-commerce-page,
body.bc-commerce-page.theme-dark{
  --bcv10-bg:#050608;
  --bcv10-bg-soft:#0b0f16;
  --bcv10-panel:#1f252e;
  --bcv10-panel-2:#252c36;
  --bcv10-panel-3:#303743;
  --bcv10-text:#f8fafc;
  --bcv10-text-strong:#ffffff;
  --bcv10-muted:#b9c0ca;
  --bcv10-muted-2:#9aa3af;
  --bcv10-border:rgba(255,255,255,.15);
  --bcv10-border-strong:rgba(255,255,255,.24);
  --bcv10-input:#2b323d;
  --bcv10-shadow:0 22px 58px rgba(0,0,0,.34);
}
html[data-bc-theme="light"] body.bc-commerce-page,
body.bc-commerce-page.theme-light{
  --bcv10-bg:#f5f7fa;
  --bcv10-bg-soft:#edf1f5;
  --bcv10-panel:#ffffff;
  --bcv10-panel-2:#f8fafc;
  --bcv10-panel-3:#eef2f7;
  --bcv10-text:#1f2430;
  --bcv10-text-strong:#111827;
  --bcv10-muted:#667085;
  --bcv10-muted-2:#7a8390;
  --bcv10-border:rgba(15,23,42,.12);
  --bcv10-border-strong:rgba(15,23,42,.20);
  --bcv10-input:#ffffff;
  --bcv10-shadow:0 16px 42px rgba(15,23,42,.10);
}


/* Tema global em telas legadas: evita amarelo/tema antigo vazando. */
html[data-bc-theme="dark"] body.bc-commerce-page{
  background:
    radial-gradient(circle at 8% 8%, rgba(245,196,0,.18), transparent 26%),
    linear-gradient(135deg,#050608 0%,#0b0f16 52%,#15130a 100%) !important;
  color:var(--bcv10-text) !important;
}
html[data-bc-theme="light"] body.bc-commerce-page{
  background:
    radial-gradient(circle at 8% 8%, rgba(245,196,0,.13), transparent 25%),
    linear-gradient(135deg,#f6f7f9 0%,#eef1f5 58%,#e6ebf1 100%) !important;
  color:var(--bcv10-text) !important;
}

/* Botão Claro/Escuro no mesmo estilo discreto do Home/Inventário. */
body.bc-commerce-page .bc-theme-dock-btn,
body.bc-shell .theme-toggle,
body.bc-shell .bc-pill-btn.theme-toggle{
  border:1px solid var(--bcv10-border) !important;
  background:var(--bcv10-panel-2) !important;
  color:var(--bcv10-text-strong) !important;
  box-shadow:0 10px 24px rgba(0,0,0,.12) !important;
}
html[data-bc-theme="dark"] body.bc-commerce-page .bc-theme-dock-btn,
html[data-bc-theme="dark"] body.bc-shell .theme-toggle,
html[data-bc-theme="dark"] body.bc-shell .bc-pill-btn.theme-toggle{
  background:rgba(255,255,255,.075) !important;
  color:#f8fafc !important;
}
html[data-bc-theme="light"] body.bc-commerce-page .bc-theme-dock-btn,
html[data-bc-theme="light"] body.bc-shell .theme-toggle,
html[data-bc-theme="light"] body.bc-shell .bc-pill-btn.theme-toggle{
  background:rgba(255,255,255,.92) !important;
  color:#111827 !important;
}

/* =========================================================
   E-COMMERCE / ML CORE
   Corrige principalmente Agenda: card claro com título branco.
   ========================================================= */
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page{
  --ink:var(--bcv10-text) !important;
  --text:var(--bcv10-text) !important;
  --muted:var(--bcv10-muted) !important;
  --panel:var(--bcv10-panel) !important;
  --card:var(--bcv10-panel) !important;
  --line:var(--bcv10-border) !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page{
  --ink:var(--bcv10-text) !important;
  --text:var(--bcv10-text) !important;
  --muted:var(--bcv10-muted) !important;
  --panel:var(--bcv10-panel) !important;
  --card:var(--bcv10-panel) !important;
  --line:var(--bcv10-border) !important;
}
body.bc-module-ecommerce.bc-commerce-page .hero > .panel,
body.bc-module-ecommerce.bc-commerce-page .hero .panel,
body.bc-module-ecommerce.bc-commerce-page .hero-main,
body.bc-module-ecommerce.bc-commerce-page .hero-side,
body.bc-module-ecommerce.bc-commerce-page .system-status,
body.bc-module-ecommerce.bc-commerce-page .status-operacional{
  background:var(--bcv10-panel) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
  box-shadow:var(--bcv10-shadow) !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .hero > .panel,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .hero .panel,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .hero-main,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .hero-side,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .system-status,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .status-operacional{
  background:linear-gradient(145deg,#1f252e,#171d26) !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .hero > .panel,
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .hero .panel,
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .hero-main,
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .hero-side,
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .system-status,
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .status-operacional{
  background:linear-gradient(135deg,#ffffff,#f8fafc) !important;
}
body.bc-module-ecommerce.bc-commerce-page .hero h1,
body.bc-module-ecommerce.bc-commerce-page .hero h2,
body.bc-module-ecommerce.bc-commerce-page .hero h3,
body.bc-module-ecommerce.bc-commerce-page .hero h4,
body.bc-module-ecommerce.bc-commerce-page .hero b,
body.bc-module-ecommerce.bc-commerce-page .hero strong,
body.bc-module-ecommerce.bc-commerce-page .hero-main h1,
body.bc-module-ecommerce.bc-commerce-page .hero-main h2,
body.bc-module-ecommerce.bc-commerce-page .hero-main h3,
body.bc-module-ecommerce.bc-commerce-page .hero-side h1,
body.bc-module-ecommerce.bc-commerce-page .hero-side h2,
body.bc-module-ecommerce.bc-commerce-page .hero-side h3,
body.bc-module-ecommerce.bc-commerce-page .system-status b,
body.bc-module-ecommerce.bc-commerce-page .status-operacional b{
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
}
body.bc-module-ecommerce.bc-commerce-page .hero p,
body.bc-module-ecommerce.bc-commerce-page .hero .muted,
body.bc-module-ecommerce.bc-commerce-page .hero .small,
body.bc-module-ecommerce.bc-commerce-page .hero-main p,
body.bc-module-ecommerce.bc-commerce-page .hero-side p,
body.bc-module-ecommerce.bc-commerce-page .system-status small,
body.bc-module-ecommerce.bc-commerce-page .status-operacional small{
  color:var(--bcv10-muted) !important;
  -webkit-text-fill-color:var(--bcv10-muted) !important;
}
html[data-bc-theme="light"] body.bc-index-ecommerce .hero-main{
  background:linear-gradient(135deg,#ffffff,#f8fafc) !important;
  color:var(--bcv10-text-strong) !important;
}
html[data-bc-theme="light"] body.bc-index-ecommerce .action-card.primary{
  background:linear-gradient(135deg,#ffffff,#f8fafc) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
html[data-bc-theme="light"] body.bc-index-ecommerce .action-card.primary .action-desc{
  color:var(--bcv10-muted) !important;
}

/* Inputs / selects e tabelas do ecommerce em ambos temas. */
body.bc-module-ecommerce.bc-commerce-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.bc-module-ecommerce.bc-commerce-page select,
body.bc-module-ecommerce.bc-commerce-page textarea,
body.bc-module-ecommerce.bc-commerce-page .input,
body.bc-module-ecommerce.bc-commerce-page .select{
  background:var(--bcv10-input) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
}
body.bc-module-ecommerce.bc-commerce-page input::placeholder,
body.bc-module-ecommerce.bc-commerce-page textarea::placeholder{
  color:var(--bcv10-muted-2) !important;
  -webkit-text-fill-color:var(--bcv10-muted-2) !important;
  opacity:1 !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page th{
  background:#171d26 !important;
  color:#f8fafc !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page td{
  background:#1f252e !important;
  color:#f8fafc !important;
}

/* =========================================================
   CONCILIADOR
   Corrige fundo branco + letra branca em index, conferência, faturas e Shopee.
   ========================================================= */
html[data-bc-theme="dark"] body.bc-module-conciliador{
  --bg:#050608 !important;
  --surface:#1f252e !important;
  --surface-2:#252c36 !important;
  --surface-3:#303743 !important;
  --card:#1f252e !important;
  --soft:#252c36 !important;
  --soft-2:#303743 !important;
  --soft2:#303743 !important;
  --text:#f8fafc !important;
  --muted:#b9c0ca !important;
  --line:rgba(255,255,255,.15) !important;
  --line-2:rgba(255,255,255,.10) !important;
  color:#f8fafc !important;
}
html[data-bc-theme="light"] body.bc-module-conciliador{
  --bg:#f6f7f9 !important;
  --surface:#ffffff !important;
  --surface-2:#f8fafc !important;
  --surface-3:#eef2f7 !important;
  --card:#ffffff !important;
  --soft:#f8fafc !important;
  --soft-2:#eef2f7 !important;
  --soft2:#eef2f7 !important;
  --text:#1f2430 !important;
  --muted:#667085 !important;
  --line:rgba(15,23,42,.12) !important;
  --line-2:rgba(15,23,42,.08) !important;
  color:#1f2430 !important;
}
body.bc-module-conciliador .container,
body.bc-module-conciliador .shell,
body.bc-module-conciliador .wrap{
  background:var(--bcv10-panel) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
  box-shadow:var(--bcv10-shadow) !important;
}
body.bc-module-conciliador .hero,
body.bc-module-conciliador .hero-main,
body.bc-module-conciliador .hero-side,
body.bc-module-conciliador .card,
body.bc-module-conciliador .summary-card,
body.bc-module-conciliador .hero-metric,
body.bc-module-conciliador .metric,
body.bc-module-conciliador .kpi,
body.bc-module-conciliador .filters-card,
body.bc-module-conciliador .table-card,
body.bc-module-conciliador .table-wrap,
body.bc-module-conciliador .pager,
body.bc-module-conciliador .note,
body.bc-module-conciliador .search-scope,
body.bc-module-conciliador .step,
body.bc-module-conciliador .smallbox,
body.bc-module-conciliador .item,
body.bc-module-conciliador .result-card,
body.bc-module-conciliador .recent-item,
body.bc-module-conciliador .modal-card,
body.bc-module-conciliador .modal-section,
body.bc-module-conciliador .subtable,
body.bc-module-conciliador .alert,
body.bc-module-conciliador .message-box,
body.bc-module-conciliador .helper-box,
body.bc-module-conciliador .box-note,
body.bc-module-conciliador .line-table,
body.bc-module-conciliador .jsonbox,
body.bc-module-conciliador #loading-overlay,
body.bc-module-conciliador #overlay,
body.bc-module-conciliador .loading{
  background:var(--bcv10-panel-2) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
html[data-bc-theme="dark"] body.bc-module-conciliador .hero,
html[data-bc-theme="dark"] body.bc-module-conciliador .hero-main,
html[data-bc-theme="dark"] body.bc-module-conciliador .hero-side{
  background:linear-gradient(145deg,#252c36,#1f252e) !important;
}
html[data-bc-theme="light"] body.bc-module-conciliador .hero,
html[data-bc-theme="light"] body.bc-module-conciliador .hero-main,
html[data-bc-theme="light"] body.bc-module-conciliador .hero-side{
  background:linear-gradient(135deg,#ffffff,#f8fafc) !important;
}
body.bc-module-conciliador h1,
body.bc-module-conciliador h2,
body.bc-module-conciliador h3,
body.bc-module-conciliador h4,
body.bc-module-conciliador strong,
body.bc-module-conciliador b,
body.bc-module-conciliador .section-title,
body.bc-module-conciliador .action-title,
body.bc-module-conciliador .result-title,
body.bc-module-conciliador .overlay-title,
body.bc-module-conciliador .recent-title,
body.bc-module-conciliador .recent-title-row,
body.bc-module-conciliador .loading-text,
body.bc-module-conciliador .value,
body.bc-module-conciliador .v,
body.bc-module-conciliador .metric .v,
body.bc-module-conciliador .summary-card .v,
body.bc-module-conciliador .hero-metric .v{
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
}
body.bc-module-conciliador p,
body.bc-module-conciliador label,
body.bc-module-conciliador .muted,
body.bc-module-conciliador .label,
body.bc-module-conciliador .recent-sub,
body.bc-module-conciliador .recent-meta,
body.bc-module-conciliador .small,
body.bc-module-conciliador .smallbox .k,
body.bc-module-conciliador .metric .k,
body.bc-module-conciliador .summary-card .k,
body.bc-module-conciliador .summary-card .s,
body.bc-module-conciliador .hero-metric .k,
body.bc-module-conciliador .overlay-sub,
body.bc-module-conciliador .filter-hint,
body.bc-module-conciliador .mp-msg,
body.bc-module-conciliador .mp-date,
body.bc-module-conciliador .empty,
body.bc-module-conciliador .note{
  color:var(--bcv10-muted) !important;
  -webkit-text-fill-color:var(--bcv10-muted) !important;
}

/* Botões/cards de ação que estavam ficando brancos com texto branco. */
body.bc-module-conciliador .action-btn,
body.bc-module-conciliador .action-card,
body.bc-module-conciliador .button-sec,
body.bc-module-conciliador .btn-sec,
body.bc-module-conciliador .btn-white,
body.bc-module-conciliador .btn.secondary,
body.bc-module-conciliador .btn-secondary{
  background:var(--bcv10-panel-3) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
body.bc-module-conciliador .action-btn.primary,
body.bc-module-conciliador .button,
body.bc-module-conciliador .btn-primary,
body.bc-module-conciliador .btn:not(.btn-sec):not(.btn-white):not(.secondary):not(.btn-secondary):not(.btn-blue):not(.btn-green):not(.btn-warn):not(.btn-danger){
  background:#111827 !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.15) !important;
}
body.bc-module-conciliador .action-btn.success{
  background:rgba(49,212,125,.13) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:rgba(49,212,125,.30) !important;
}
body.bc-module-conciliador .action-icon,
body.bc-module-conciliador .icon{
  color:var(--bcv10-text-strong) !important;
}
body.bc-module-conciliador .action-arrow{
  color:var(--bcv10-muted) !important;
}

/* Inputs/seletores/textarea do Conciliador. */
body.bc-module-conciliador input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
body.bc-module-conciliador select,
body.bc-module-conciliador textarea,
body.bc-module-conciliador .input,
body.bc-module-conciliador .tipo-select{
  background:var(--bcv10-input) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
}
body.bc-module-conciliador input::placeholder,
body.bc-module-conciliador textarea::placeholder{
  color:var(--bcv10-muted-2) !important;
  -webkit-text-fill-color:var(--bcv10-muted-2) !important;
  opacity:1 !important;
}
body.bc-module-conciliador select option{
  background:var(--bcv10-panel-2) !important;
  color:var(--bcv10-text-strong) !important;
}

/* Tabelas do Conciliador. */
body.bc-module-conciliador table,
body.bc-module-conciliador thead,
body.bc-module-conciliador tbody,
body.bc-module-conciliador tr,
body.bc-module-conciliador th,
body.bc-module-conciliador td{
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
html[data-bc-theme="dark"] body.bc-module-conciliador th{
  background:#171d26 !important;
  color:#f8fafc !important;
  -webkit-text-fill-color:#f8fafc !important;
}
html[data-bc-theme="dark"] body.bc-module-conciliador td{
  background:#1f252e !important;
  color:#f8fafc !important;
  -webkit-text-fill-color:#f8fafc !important;
}
html[data-bc-theme="light"] body.bc-module-conciliador th{
  background:#f3f6fa !important;
  color:#334155 !important;
}
html[data-bc-theme="light"] body.bc-module-conciliador td{
  background:#ffffff !important;
  color:#1f2430 !important;
}

/* Elementos criados por JS com style inline background:#fff. */
html[data-bc-theme="dark"] body.bc-module-conciliador [style*="background:#fff"],
html[data-bc-theme="dark"] body.bc-module-conciliador [style*="background: #fff"],
html[data-bc-theme="dark"] body.bc-module-conciliador [style*="background:white"],
html[data-bc-theme="dark"] body.bc-module-conciliador [style*="background: white"]{
  background:var(--bcv10-panel-2) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
html[data-bc-theme="dark"] body.bc-module-conciliador [style*="color:#111"],
html[data-bc-theme="dark"] body.bc-module-conciliador [style*="color: #111"],
html[data-bc-theme="dark"] body.bc-module-conciliador [style*="color:#151515"],
html[data-bc-theme="dark"] body.bc-module-conciliador [style*="color: #151515"]{
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
}

/* Pills/chips semânticos permanecem legíveis. */
body.bc-module-conciliador .pill,
body.bc-module-conciliador .chip,
body.bc-module-ecommerce.bc-commerce-page .chip:not(.ok):not(.warn):not(.bad):not(.danger):not(.info),
body.bc-module-ecommerce.bc-commerce-page .pill:not(.ok):not(.warn):not(.bad):not(.danger):not(.info):not(.sku):not(.calc){
  background:var(--bcv10-panel-3) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
body.bc-commerce-page .pill.ok,
body.bc-commerce-page .chip.ok{background:rgba(49,212,125,.14) !important;color:#27a65a !important;border-color:rgba(49,212,125,.30) !important;}
body.bc-commerce-page .pill.warn,
body.bc-commerce-page .chip.warn{background:rgba(245,196,0,.16) !important;color:#a86400 !important;border-color:rgba(245,196,0,.35) !important;}
body.bc-commerce-page .pill.err,
body.bc-commerce-page .pill.no,
body.bc-commerce-page .pill.bad,
body.bc-commerce-page .chip.bad,
body.bc-commerce-page .pill.danger,
body.bc-commerce-page .chip.danger{background:rgba(255,92,92,.14) !important;color:#b42318 !important;border-color:rgba(255,92,92,.30) !important;}
body.bc-commerce-page .pill.info,
body.bc-commerce-page .chip.info{background:rgba(23,92,211,.12) !important;color:#175cd3 !important;border-color:rgba(23,92,211,.24) !important;}
html[data-bc-theme="dark"] body.bc-commerce-page .pill.ok,
html[data-bc-theme="dark"] body.bc-commerce-page .chip.ok{color:#92efba !important;}
html[data-bc-theme="dark"] body.bc-commerce-page .pill.warn,
html[data-bc-theme="dark"] body.bc-commerce-page .chip.warn{color:#ffd84d !important;}
html[data-bc-theme="dark"] body.bc-commerce-page .pill.err,
html[data-bc-theme="dark"] body.bc-commerce-page .pill.no,
html[data-bc-theme="dark"] body.bc-commerce-page .pill.bad,
html[data-bc-theme="dark"] body.bc-commerce-page .chip.bad,
html[data-bc-theme="dark"] body.bc-commerce-page .pill.danger,
html[data-bc-theme="dark"] body.bc-commerce-page .chip.danger{color:#ffc7c7 !important;}
html[data-bc-theme="dark"] body.bc-commerce-page .pill.info,
html[data-bc-theme="dark"] body.bc-commerce-page .chip.info{color:#9ec5ff !important;}

/* =========================================================
   SISTEMA BC - Front Contrast Fix V11
   Ajustes finais em cima do ZIP atual: Conciliador + Inteligência ML.
   Escopo: somente visual/tema. Não altera endpoints, forms ou regras.
   ========================================================= */

/* ---------- Conciliador: texto legível em cards escuros/claros ---------- */
body.bc-module-conciliador .hero-card,
body.bc-module-conciliador .side-card,
body.bc-module-conciliador .form-card,
body.bc-module-conciliador .recent-card,
body.bc-module-conciliador .hero-mini,
body.bc-module-conciliador .meta-box,
body.bc-module-conciliador .summary-item,
body.bc-module-conciliador .lot-box,
body.bc-module-conciliador .helper-box,
body.bc-module-conciliador .table-head,
body.bc-module-conciliador .search-scope,
body.bc-module-conciliador .b4x-tabs,
body.bc-module-conciliador .mp-card,
body.bc-module-conciliador .smallbox,
body.bc-module-conciliador .message-box{
  background:var(--bcv10-panel-2) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
html[data-bc-theme="light"] body.bc-module-conciliador .hero-card,
html[data-bc-theme="light"] body.bc-module-conciliador .side-card,
html[data-bc-theme="light"] body.bc-module-conciliador .form-card,
html[data-bc-theme="light"] body.bc-module-conciliador .recent-card,
html[data-bc-theme="light"] body.bc-module-conciliador .hero-mini,
html[data-bc-theme="light"] body.bc-module-conciliador .meta-box,
html[data-bc-theme="light"] body.bc-module-conciliador .summary-item,
html[data-bc-theme="light"] body.bc-module-conciliador .lot-box,
html[data-bc-theme="light"] body.bc-module-conciliador .helper-box,
html[data-bc-theme="light"] body.bc-module-conciliador .table-head,
html[data-bc-theme="light"] body.bc-module-conciliador .search-scope,
html[data-bc-theme="light"] body.bc-module-conciliador .b4x-tabs,
html[data-bc-theme="light"] body.bc-module-conciliador .mp-card,
html[data-bc-theme="light"] body.bc-module-conciliador .smallbox,
html[data-bc-theme="light"] body.bc-module-conciliador .message-box{
  background:#ffffff !important;
}
html[data-bc-theme="dark"] body.bc-module-conciliador .hero-card,
html[data-bc-theme="dark"] body.bc-module-conciliador .side-card,
html[data-bc-theme="dark"] body.bc-module-conciliador .form-card,
html[data-bc-theme="dark"] body.bc-module-conciliador .recent-card,
html[data-bc-theme="dark"] body.bc-module-conciliador .hero-mini,
html[data-bc-theme="dark"] body.bc-module-conciliador .meta-box,
html[data-bc-theme="dark"] body.bc-module-conciliador .summary-item,
html[data-bc-theme="dark"] body.bc-module-conciliador .lot-box,
html[data-bc-theme="dark"] body.bc-module-conciliador .helper-box,
html[data-bc-theme="dark"] body.bc-module-conciliador .table-head,
html[data-bc-theme="dark"] body.bc-module-conciliador .search-scope,
html[data-bc-theme="dark"] body.bc-module-conciliador .b4x-tabs,
html[data-bc-theme="dark"] body.bc-module-conciliador .mp-card,
html[data-bc-theme="dark"] body.bc-module-conciliador .smallbox,
html[data-bc-theme="dark"] body.bc-module-conciliador .message-box{
  background:#202731 !important;
}
body.bc-module-conciliador .recent-head h2,
body.bc-module-conciliador .recent-title,
body.bc-module-conciliador .recent-title-row,
body.bc-module-conciliador .hero-mini .v,
body.bc-module-conciliador .meta-box .v,
body.bc-module-conciliador .summary-item .v,
body.bc-module-conciliador .lot-title,
body.bc-module-conciliador .helper-title,
body.bc-module-conciliador .table-head h2,
body.bc-module-conciliador .table-head h3,
body.bc-module-conciliador .screen-tag,
body.bc-module-conciliador .tech-details summary,
body.bc-module-conciliador .b4x-tab,
body.bc-module-conciliador .modal-title{
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
}
body.bc-module-conciliador .recent-head .mini,
body.bc-module-conciliador .recent-sub,
body.bc-module-conciliador .recent-sub.clean,
body.bc-module-conciliador .recent-meta,
body.bc-module-conciliador .hero-mini .k,
body.bc-module-conciliador .meta-box .k,
body.bc-module-conciliador .summary-item .k,
body.bc-module-conciliador .progress-top,
body.bc-module-conciliador .tech-details,
body.bc-module-conciliador .desc,
body.bc-module-conciliador .lot-text,
body.bc-module-conciliador .helper-text,
body.bc-module-conciliador .table-sub,
body.bc-module-conciliador .modal-sub,
body.bc-module-conciliador .clean{
  color:var(--bcv10-muted) !important;
  -webkit-text-fill-color:var(--bcv10-muted) !important;
}
body.bc-module-conciliador .info-box,
body.bc-module-conciliador .box-note,
body.bc-module-conciliador .requirement,
body.bc-module-conciliador .recent-empty{
  background:var(--bcv10-panel) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
body.bc-module-conciliador .info-box b,
body.bc-module-conciliador .box-note b,
body.bc-module-conciliador .requirement b{
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
}
body.bc-module-conciliador .action-btn.primary{
  background:#111827 !important;
  color:#ffffff !important;
  border-color:rgba(15,23,42,.22) !important;
}
body.bc-module-conciliador .action-btn.primary .action-title,
body.bc-module-conciliador .action-btn.primary .action-arrow{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
body.bc-module-conciliador .action-btn.primary .action-icon{
  background:#ffffff !important;
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
}
body.bc-module-conciliador .btn-primary,
body.bc-module-conciliador .btn-download.primary,
body.bc-module-conciliador .button:not(.button-sec){
  background:#111827 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border-color:rgba(255,255,255,.14) !important;
}
body.bc-module-conciliador .btn-sec,
body.bc-module-conciliador .button-sec,
body.bc-module-conciliador .btn-download:not(.primary){
  background:var(--bcv10-panel) !important;
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
body.bc-module-conciliador .progress-track{
  background:rgba(245,196,0,.18) !important;
  border-color:rgba(245,196,0,.28) !important;
}
body.bc-module-conciliador .progress-bar{
  background:#f5c400 !important;
}
body.bc-module-conciliador .status-pill.ok{background:rgba(21,128,61,.14) !important;color:#15803d !important;-webkit-text-fill-color:#15803d !important;}
body.bc-module-conciliador .status-pill.proc{background:rgba(29,78,216,.12) !important;color:#1d4ed8 !important;-webkit-text-fill-color:#1d4ed8 !important;}
body.bc-module-conciliador .status-pill.err{background:rgba(185,28,28,.12) !important;color:#b91c1c !important;-webkit-text-fill-color:#b91c1c !important;}
html[data-bc-theme="dark"] body.bc-module-conciliador .status-pill.ok{color:#86efac !important;-webkit-text-fill-color:#86efac !important;}
html[data-bc-theme="dark"] body.bc-module-conciliador .status-pill.proc{color:#93c5fd !important;-webkit-text-fill-color:#93c5fd !important;}
html[data-bc-theme="dark"] body.bc-module-conciliador .status-pill.err{color:#fecaca !important;-webkit-text-fill-color:#fecaca !important;}
body.bc-module-conciliador .switch span,
body.bc-module-conciliador .filter-hint{
  color:var(--bcv10-muted) !important;
  -webkit-text-fill-color:var(--bcv10-muted) !important;
}

/* ---------- Inteligência ML: cards por SKU e detalhe sempre visíveis ---------- */
body.bc-module-ecommerce.bc-commerce-page .quick-filters,
body.bc-module-ecommerce.bc-commerce-page .view-shortcuts,
body.bc-module-ecommerce.bc-commerce-page .active-filters,
body.bc-module-ecommerce.bc-commerce-page .top-tools-gate{
  color:var(--bcv10-text-strong) !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-board{
  gap:14px !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-card{
  background:var(--bcv10-panel) !important;
  color:var(--bcv10-text-strong) !important;
  border:1px solid var(--bcv10-border) !important;
  border-radius:20px !important;
  box-shadow:0 16px 38px rgba(15,23,42,.14) !important;
  overflow:hidden !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .sku-card{
  box-shadow:0 18px 46px rgba(0,0,0,.34) !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-card-head{
  background:linear-gradient(135deg,#111827,#1f2937) !important;
  color:#ffffff !important;
  border-bottom:1px solid rgba(255,255,255,.12) !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-card-head,
body.bc-module-ecommerce.bc-commerce-page .sku-card-head strong,
body.bc-module-ecommerce.bc-commerce-page .sku-card-head b,
body.bc-module-ecommerce.bc-commerce-page .sku-card-head .sku-card-title,
body.bc-module-ecommerce.bc-commerce-page .sku-card-head .sku-product-name,
body.bc-module-ecommerce.bc-commerce-page .sku-card-head .detail-title-main{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-card-head span,
body.bc-module-ecommerce.bc-commerce-page .sku-card-head .sku-quickline,
body.bc-module-ecommerce.bc-commerce-page .sku-card-head .sub,
body.bc-module-ecommerce.bc-commerce-page .sku-card-head .muted{
  color:rgba(255,255,255,.78) !important;
  -webkit-text-fill-color:rgba(255,255,255,.78) !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-card-head .pill.neutral,
body.bc-module-ecommerce.bc-commerce-page .sku-card-head .chip.neutral{
  background:rgba(255,255,255,.12) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border-color:rgba(255,255,255,.22) !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-decision{
  background:var(--bcv10-panel-2) !important;
  border-color:var(--bcv10-border) !important;
}
body.bc-module-ecommerce.bc-commerce-page .decision-box,
body.bc-module-ecommerce.bc-commerce-page .summary-chip,
body.bc-module-ecommerce.bc-commerce-page .job-progress,
body.bc-module-ecommerce.bc-commerce-page .job-meta,
body.bc-module-ecommerce.bc-commerce-page .page-refresh-progress,
body.bc-module-ecommerce.bc-commerce-page .empty-state{
  background:var(--bcv10-panel) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
body.bc-module-ecommerce.bc-commerce-page .decision-box .label,
body.bc-module-ecommerce.bc-commerce-page .decision-box .desc,
body.bc-module-ecommerce.bc-commerce-page .summary-chip span,
body.bc-module-ecommerce.bc-commerce-page .pagination-bar .page-info,
body.bc-module-ecommerce.bc-commerce-page .page-numbers .dots,
body.bc-module-ecommerce.bc-commerce-page .view-action-msg{
  color:var(--bcv10-muted) !important;
  -webkit-text-fill-color:var(--bcv10-muted) !important;
}
body.bc-module-ecommerce.bc-commerce-page .decision-box .value,
body.bc-module-ecommerce.bc-commerce-page .summary-chip b,
body.bc-module-ecommerce.bc-commerce-page .promo-title,
body.bc-module-ecommerce.bc-commerce-page .promo-value,
body.bc-module-ecommerce.bc-commerce-page .score strong{
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
}
body.bc-module-ecommerce.bc-commerce-page .decision-box.action.ok,
body.bc-module-ecommerce.bc-commerce-page .promo-highlight.active{
  background:rgba(21,128,61,.13) !important;
  border-color:rgba(21,128,61,.30) !important;
}
body.bc-module-ecommerce.bc-commerce-page .decision-box.action.info{
  background:rgba(23,92,211,.12) !important;
  border-color:rgba(23,92,211,.28) !important;
}
body.bc-module-ecommerce.bc-commerce-page .decision-box.action.warn,
body.bc-module-ecommerce.bc-commerce-page .promo-highlight.recommended{
  background:rgba(245,196,0,.16) !important;
  border-color:rgba(245,196,0,.34) !important;
}
body.bc-module-ecommerce.bc-commerce-page .decision-box.action.bad{
  background:rgba(185,28,28,.13) !important;
  border-color:rgba(185,28,28,.30) !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-lines,
body.bc-module-ecommerce.bc-commerce-page .sku-lines table{
  background:var(--bcv10-panel-2) !important;
  border-color:var(--bcv10-border) !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-lines th{
  background:var(--bcv10-panel-3) !important;
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-lines td{
  background:var(--bcv10-panel) !important;
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .sku-lines td{
  background:#ffffff !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-lines tr:hover td{
  background:rgba(245,196,0,.12) !important;
}
body.bc-module-ecommerce.bc-commerce-page .mlb-cell .sub,
body.bc-module-ecommerce.bc-commerce-page .decision-cell .sub,
body.bc-module-ecommerce.bc-commerce-page .catalog-mini .sub,
body.bc-module-ecommerce.bc-commerce-page .promo-highlight .sub{
  color:var(--bcv10-muted) !important;
  -webkit-text-fill-color:var(--bcv10-muted) !important;
}
body.bc-module-ecommerce.bc-commerce-page .detail-backdrop.open{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  z-index:2147483000 !important;
}
body.bc-module-ecommerce.bc-commerce-page .detail.open{
  display:flex !important;
  flex-direction:column !important;
  visibility:visible !important;
  opacity:1 !important;
  position:fixed !important;
  left:50% !important;
  top:50% !important;
  transform:translate(-50%,-50%) !important;
  z-index:2147483001 !important;
  width:min(1560px,calc(100vw - 44px)) !important;
  height:min(920px,calc(100vh - 44px)) !important;
  max-width:calc(100vw - 24px) !important;
  max-height:calc(100vh - 24px) !important;
  overflow:hidden !important;
  background:var(--bcv10-panel) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
body.bc-module-ecommerce.bc-commerce-page .detail-head,
body.bc-module-ecommerce.bc-commerce-page .detail-hero{
  background:linear-gradient(135deg,#111827,#1f2937) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.14) !important;
}
body.bc-module-ecommerce.bc-commerce-page .detail-head *,
body.bc-module-ecommerce.bc-commerce-page .detail-hero h2,
body.bc-module-ecommerce.bc-commerce-page .detail-hero .detail-product-title,
body.bc-module-ecommerce.bc-commerce-page .detail-eyebrow{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
body.bc-module-ecommerce.bc-commerce-page .detail-title-sub,
body.bc-module-ecommerce.bc-commerce-page .detail-hero .detail-meta,
body.bc-module-ecommerce.bc-commerce-page .detail-hero .detail-meta span{
  color:rgba(255,255,255,.78) !important;
  -webkit-text-fill-color:rgba(255,255,255,.78) !important;
}
body.bc-module-ecommerce.bc-commerce-page .detail-body{
  background:var(--bcv10-panel-2) !important;
  color:var(--bcv10-text-strong) !important;
}
body.bc-module-ecommerce.bc-commerce-page .detail-content,
body.bc-module-ecommerce.bc-commerce-page .detail-section,
body.bc-module-ecommerce.bc-commerce-page .detail-kpi,
body.bc-module-ecommerce.bc-commerce-page .detail-info{
  background:var(--bcv10-panel) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
body.bc-module-ecommerce.bc-commerce-page .detail-section-title small,
body.bc-module-ecommerce.bc-commerce-page .detail-kpi span,
body.bc-module-ecommerce.bc-commerce-page .detail-info span,
body.bc-module-ecommerce.bc-commerce-page .decision-highlight p{
  color:var(--bcv10-muted) !important;
  -webkit-text-fill-color:var(--bcv10-muted) !important;
}
body.bc-module-ecommerce.bc-commerce-page .detail .json{
  background:#0f172a !important;
  color:#e5edf8 !important;
  -webkit-text-fill-color:#e5edf8 !important;
}
@media(max-width:1180px){
  body.bc-module-ecommerce.bc-commerce-page .quick-filters{grid-template-columns:1fr 1fr !important;}
}
@media(max-width:720px){
  body.bc-module-ecommerce.bc-commerce-page .quick-filters{grid-template-columns:1fr !important;}
  body.bc-module-ecommerce.bc-commerce-page .detail.open{width:calc(100vw - 16px) !important;height:calc(100vh - 16px) !important;}
}

/* V11.1 - leitura do detalhe Inteligência ML */
body.bc-module-ecommerce.bc-commerce-page .detail-kpi b.warn,
body.bc-module-ecommerce.bc-commerce-page .sku-list-metric b.warn,
body.bc-module-ecommerce.bc-commerce-page .sku-quickline b.warn,
body.bc-module-ecommerce.bc-commerce-page .call-metric b.warn,
body.bc-module-ecommerce.bc-commerce-page .num.warn,
body.bc-module-ecommerce.bc-commerce-page .promo-margin.warn{
  background:transparent !important;
  border:0 !important;
  color:#a86400 !important;
  -webkit-text-fill-color:#a86400 !important;
  box-shadow:none !important;
  padding:0 !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .detail-kpi b.warn,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .sku-list-metric b.warn,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .sku-quickline b.warn,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .call-metric b.warn,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .num.warn,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .promo-margin.warn{
  color:#ffd84d !important;
  -webkit-text-fill-color:#ffd84d !important;
}
body.bc-module-ecommerce.bc-commerce-page .decision-highlight,
body.bc-module-ecommerce.bc-commerce-page .decision-highlight.info,
body.bc-module-ecommerce.bc-commerce-page .decision-highlight.warn,
body.bc-module-ecommerce.bc-commerce-page .decision-highlight.ok,
body.bc-module-ecommerce.bc-commerce-page .decision-highlight.bad{
  background:var(--bcv10-panel-2) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
body.bc-module-ecommerce.bc-commerce-page .decision-highlight strong{
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .decision-highlight.warn{
  background:#fff7df !important;
  border-color:#f0d37a !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .decision-highlight.ok{
  background:#eaf8f0 !important;
  border-color:#b8e6c9 !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .decision-highlight.bad{
  background:#fff0f0 !important;
  border-color:#f0c0c0 !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .decision-highlight.warn,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .decision-highlight.ok,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .decision-highlight.bad{
  background:#17202d !important;
  border-color:#334155 !important;
}

/* V11.2 - botões/pills do cabeçalho do detalhe */
body.bc-module-ecommerce.bc-commerce-page .detail-head .secondary.small,
body.bc-module-ecommerce.bc-commerce-page .detail-head button.secondary.small,
body.bc-module-ecommerce.bc-commerce-page .detail-head .btn.secondary{
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
  background:#ffffff !important;
  border-color:rgba(148,163,184,.55) !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .detail-hero .detail-meta .pill{
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .detail-hero .detail-meta .pill.info{
  color:#0b4ca2 !important;
  -webkit-text-fill-color:#0b4ca2 !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .detail-hero .detail-meta .pill.warn{
  color:#7a4e00 !important;
  -webkit-text-fill-color:#7a4e00 !important;
}

/* =========================================================
   V12 - Compras importação + Inteligência ML leitura executiva
   Escopo: somente visual/tema.
   ========================================================= */

/* Theme inline no cabeçalho da Inteligência ML: evita botão solto na lateral. */
body.bc-module-ecommerce.bc-commerce-page .intelligence-top{
  grid-template-columns:54px minmax(0,1fr) auto 54px !important;
  align-items:center !important;
}
body.bc-module-ecommerce.bc-commerce-page .bc-intel-theme-btn{
  min-height:50px !important;
  height:50px !important;
  padding:0 15px !important;
  border-radius:16px !important;
  border:1px solid var(--bcv10-border) !important;
  background:var(--bcv10-panel-2) !important;
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
  box-shadow:0 10px 24px rgba(16,24,40,.10) !important;
  font-size:.84rem !important;
  font-weight:950 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  white-space:nowrap !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .bc-intel-theme-btn{
  background:rgba(255,255,255,.92) !important;
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .bc-intel-theme-btn{
  background:rgba(255,255,255,.075) !important;
  color:#f8fafc !important;
  -webkit-text-fill-color:#f8fafc !important;
}
body.bc-module-ecommerce.bc-commerce-page .bc-intel-theme-btn:hover{
  transform:translateY(-1px) !important;
  border-color:rgba(245,196,0,.46) !important;
}

/* Cards executivos gerados por JS: remove card claro no tema escuro e melhora hierarquia. */
body.bc-module-ecommerce.bc-commerce-page .sku-exec{
  background:var(--bcv10-panel-2) !important;
  border-color:var(--bcv10-border) !important;
  gap:12px !important;
}
body.bc-module-ecommerce.bc-commerce-page .exec-card{
  background:var(--bcv10-panel) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
  box-shadow:0 10px 24px rgba(15,23,42,.10) !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .exec-card{
  box-shadow:0 12px 26px rgba(0,0,0,.25) !important;
}
body.bc-module-ecommerce.bc-commerce-page .exec-card .label{
  color:var(--bcv10-muted-2) !important;
  -webkit-text-fill-color:var(--bcv10-muted-2) !important;
}
body.bc-module-ecommerce.bc-commerce-page .exec-card .value,
body.bc-module-ecommerce.bc-commerce-page .exec-card .value *,
body.bc-module-ecommerce.bc-commerce-page .exec-card strong,
body.bc-module-ecommerce.bc-commerce-page .exec-card b{
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
}
body.bc-module-ecommerce.bc-commerce-page .exec-card .desc{
  color:var(--bcv10-muted) !important;
  -webkit-text-fill-color:var(--bcv10-muted) !important;
}
body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.ok{
  background:rgba(21,128,61,.14) !important;
  border-color:rgba(21,128,61,.34) !important;
}
body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.info{
  background:rgba(23,92,211,.13) !important;
  border-color:rgba(23,92,211,.32) !important;
}
body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.warn{
  background:rgba(245,196,0,.15) !important;
  border-color:rgba(245,196,0,.38) !important;
}
body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.bad{
  background:rgba(185,28,28,.13) !important;
  border-color:rgba(185,28,28,.32) !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.ok,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.info,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.warn,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.bad{
  background:#17202d !important;
  border-color:#334155 !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.warn{
  background:#fff7df !important;
  border-color:#f0d37a !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.ok{
  background:#eaf8f0 !important;
  border-color:#b8e6c9 !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.info{
  background:#eaf1ff !important;
  border-color:#b9ccff !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.bad{
  background:#fff0f0 !important;
  border-color:#f0c0c0 !important;
}

/* Promoções e ações: Ativar verde; ativo azul. */
body.bc-module-ecommerce.bc-commerce-page .activate-danger,
body.bc-module-ecommerce.bc-commerce-page .activate-success,
body.bc-module-ecommerce.bc-commerce-page button.activate-success,
body.bc-module-ecommerce.bc-commerce-page button.activate-danger{
  background:#15803d !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border-color:rgba(21,128,61,.42) !important;
  box-shadow:0 10px 20px rgba(21,128,61,.16) !important;
}
body.bc-module-ecommerce.bc-commerce-page .activate-danger:hover,
body.bc-module-ecommerce.bc-commerce-page .activate-success:hover{
  filter:brightness(.96) !important;
}
body.bc-module-ecommerce.bc-commerce-page .pill.promo-active,
body.bc-module-ecommerce.bc-commerce-page button.promo-active{
  background:rgba(37,99,235,.16) !important;
  color:#1d4ed8 !important;
  -webkit-text-fill-color:#1d4ed8 !important;
  border-color:rgba(37,99,235,.34) !important;
  box-shadow:none !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .pill.promo-active,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page button.promo-active{
  background:rgba(37,99,235,.22) !important;
  color:#93c5fd !important;
  -webkit-text-fill-color:#93c5fd !important;
  border-color:rgba(147,197,253,.34) !important;
}
body.bc-module-ecommerce.bc-commerce-page button.promo-active:disabled{
  opacity:1 !important;
  cursor:default !important;
}
body.bc-module-ecommerce.bc-commerce-page .promo-highlight,
body.bc-module-ecommerce.bc-commerce-page .promo-highlight.active,
body.bc-module-ecommerce.bc-commerce-page .promo-highlight.recommended{
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .promo-highlight.recommended{
  background:rgba(245,196,0,.12) !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .promo-highlight.active{
  background:rgba(37,99,235,.18) !important;
  border-color:rgba(147,197,253,.26) !important;
}
body.bc-module-ecommerce.bc-commerce-page .promo-highlight .promo-title,
body.bc-module-ecommerce.bc-commerce-page .promo-highlight .promo-value{
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
}

/* Tabela da Inteligência: mantém zebra/hover legível no escuro. */
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .sku-lines tr:hover td{
  background:#1f2937 !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .sku-lines tr[data-item-id] td{
  color:#f8fafc !important;
  -webkit-text-fill-color:#f8fafc !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-lines .title-mini,
body.bc-module-ecommerce.bc-commerce-page .sku-lines .sub,
body.bc-module-ecommerce.bc-commerce-page .sku-lines .muted{
  color:var(--bcv10-muted) !important;
  -webkit-text-fill-color:var(--bcv10-muted) !important;
}

@media(max-width:720px){
  body.bc-module-ecommerce.bc-commerce-page .intelligence-top{
    grid-template-columns:46px minmax(0,1fr) 46px 46px !important;
  }
  body.bc-module-ecommerce.bc-commerce-page .bc-intel-theme-btn{
    width:46px !important;
    min-width:46px !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 !important;
    border-radius:14px !important;
  }
  body.bc-module-ecommerce.bc-commerce-page .bc-intel-theme-btn [data-bc-theme-text]{display:none !important;}
}

/* =========================================================
   V14 - Inteligência ML: header, leitura e botões de ação
   ========================================================= */
body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;
  grid-template-columns:none !important;
  margin:0 0 18px !important;
  padding:14px !important;
  border:1px solid var(--bcv10-border) !important;
  border-radius:24px !important;
  background:linear-gradient(135deg,rgba(17,23,34,.96),rgba(8,12,18,.92)) !important;
  box-shadow:0 18px 46px rgba(0,0,0,.28) !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top{
  background:linear-gradient(135deg,#ffffff,#eef2f7) !important;
  box-shadow:0 16px 34px rgba(15,23,42,.12) !important;
}
body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top .brand.intelligence-brand{
  flex:1 1 auto !important;
  min-width:220px !important;
  height:58px !important;
  min-height:58px !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.94) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  padding:8px 18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55), 0 12px 26px rgba(0,0,0,.18) !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top .brand.intelligence-brand{
  background:#ffffff !important;
  border-color:rgba(15,23,42,.10) !important;
}
body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top .brand.intelligence-brand img{
  height:42px !important;
  max-width:min(420px,68vw) !important;
  object-fit:contain !important;
}
body.bc-module-ecommerce.bc-commerce-page .intelligence-nav{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  flex:0 0 auto !important;
}
body.bc-module-ecommerce.bc-commerce-page .intelligence-logout-form{margin:0 !important;display:flex !important;}
body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top .icon,
body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top .intelligence-logout-form .icon{
  width:50px !important;
  height:50px !important;
  min-width:50px !important;
  border-radius:16px !important;
  border:1px solid var(--bcv10-border) !important;
  background:var(--bcv10-panel-2) !important;
  color:var(--bcv10-text-strong) !important;
  box-shadow:0 10px 22px rgba(0,0,0,.18) !important;
  padding:0 !important;
}
body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top .icon img{
  width:22px !important;
  height:22px !important;
  object-fit:contain !important;
  filter:invert(1) drop-shadow(0 4px 10px rgba(0,0,0,.22)) !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top .icon img{
  filter:brightness(0) drop-shadow(0 4px 10px rgba(0,0,0,.12)) !important;
}
body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top .bc-intel-theme-btn{
  min-width:92px !important;
  height:50px !important;
  min-height:50px !important;
  border-radius:999px !important;
  padding:0 14px !important;
  background:var(--bcv10-panel-2) !important;
  border:1px solid var(--bcv10-border) !important;
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
  box-shadow:0 10px 22px rgba(0,0,0,.18) !important;
}

body.bc-module-ecommerce.bc-commerce-page .cards .metric{
  background:var(--bcv10-panel) !important;
  color:var(--bcv10-text-strong) !important;
  border-color:var(--bcv10-border) !important;
  box-shadow:0 12px 28px rgba(0,0,0,.16) !important;
}
body.bc-module-ecommerce.bc-commerce-page .cards .metric b{
  color:var(--bcv10-text-strong) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong) !important;
}
body.bc-module-ecommerce.bc-commerce-page .cards .metric span{
  color:var(--bcv10-muted) !important;
  -webkit-text-fill-color:var(--bcv10-muted) !important;
}

body.bc-module-ecommerce.bc-commerce-page .sku-card{
  border-radius:22px !important;
  margin-bottom:16px !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-card-head{
  padding:16px 18px !important;
  background:linear-gradient(135deg,#111827,#172236) !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-card-title strong{
  font-size:1.04rem !important;
  line-height:1.18 !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-card-title .sku-product-name{
  font-size:.86rem !important;
  line-height:1.32 !important;
  color:rgba(255,255,255,.88) !important;
  -webkit-text-fill-color:rgba(255,255,255,.88) !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-card-title .sku-quickline{
  color:rgba(255,255,255,.78) !important;
  -webkit-text-fill-color:rgba(255,255,255,.78) !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-exec{
  background:var(--bcv10-panel-2) !important;
  border-top:1px solid var(--bcv10-border) !important;
  border-bottom:1px solid var(--bcv10-border) !important;
  padding:12px !important;
  gap:10px !important;
}
body.bc-module-ecommerce.bc-commerce-page .exec-card{
  min-height:90px !important;
  border-radius:16px !important;
  background:var(--bcv10-panel) !important;
  border:1px solid var(--bcv10-border) !important;
  color:var(--bcv10-text-strong) !important;
  padding:13px 14px !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.ok,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.info,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.warn,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.bad{
  background:#121a29 !important;
  border-color:rgba(148,163,184,.32) !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.ok{box-shadow:inset 4px 0 0 #22c55e !important;}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.info{box-shadow:inset 4px 0 0 #3b82f6 !important;}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.warn{box-shadow:inset 4px 0 0 #facc15 !important;}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .exec-card.primary.bad{box-shadow:inset 4px 0 0 #ef4444 !important;}
body.bc-module-ecommerce.bc-commerce-page .exec-card .label{
  font-size:.68rem !important;
  letter-spacing:.08em !important;
}
body.bc-module-ecommerce.bc-commerce-page .exec-card .value{
  font-size:1.02rem !important;
  line-height:1.18 !important;
}
body.bc-module-ecommerce.bc-commerce-page .exec-card .desc{
  font-size:.76rem !important;
  line-height:1.32 !important;
}

body.bc-module-ecommerce.bc-commerce-page .sku-lines table{
  min-width:1380px !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-lines th{
  font-size:.7rem !important;
  letter-spacing:.055em !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-lines td{
  font-size:.82rem !important;
  line-height:1.28 !important;
  padding:12px 11px !important;
}
body.bc-module-ecommerce.bc-commerce-page .sku-lines tr[data-item-id]:nth-child(even) td{
  background:color-mix(in srgb, var(--bcv10-panel) 88%, #64748b 12%) !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .sku-lines tr[data-item-id]:nth-child(even) td{
  background:#f8fafc !important;
}
body.bc-module-ecommerce.bc-commerce-page .promo-highlight,
body.bc-module-ecommerce.bc-commerce-page .promo-highlight.recommended{
  background:rgba(245,196,0,.12) !important;
  border-color:rgba(245,196,0,.42) !important;
  color:var(--bcv10-text-strong) !important;
}
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .promo-highlight,
html[data-bc-theme="dark"] body.bc-module-ecommerce.bc-commerce-page .promo-highlight.recommended{
  background:#2d311f !important;
  border-color:rgba(250,204,21,.40) !important;
}
body.bc-module-ecommerce.bc-commerce-page .promo-highlight .promo-value,
body.bc-module-ecommerce.bc-commerce-page .promo-highlight strong,
body.bc-module-ecommerce.bc-commerce-page .promo-highlight b{
  color:#fff2a8 !important;
  -webkit-text-fill-color:#fff2a8 !important;
}
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .promo-highlight .promo-value,
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .promo-highlight strong,
html[data-bc-theme="light"] body.bc-module-ecommerce.bc-commerce-page .promo-highlight b{
  color:#111827 !important;
  -webkit-text-fill-color:#111827 !important;
}

body.bc-module-ecommerce.bc-commerce-page button.activate-success,
body.bc-module-ecommerce.bc-commerce-page .actions button.activate-success,
body.bc-module-ecommerce.bc-commerce-page .sku-head-actions button.activate-success,
body.bc-module-ecommerce.bc-commerce-page .sku-list-actions button.activate-success,
body.bc-module-ecommerce.bc-commerce-page .call-actions button.activate-success{
  background:linear-gradient(135deg,#16a34a,#22c55e) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border:1px solid rgba(34,197,94,.58) !important;
  box-shadow:0 10px 22px rgba(22,163,74,.24) !important;
}
body.bc-module-ecommerce.bc-commerce-page button.activate-success:hover{
  filter:brightness(1.06) !important;
  transform:translateY(-1px) !important;
}
body.bc-module-ecommerce.bc-commerce-page .pill.promo-active,
body.bc-module-ecommerce.bc-commerce-page button.promo-active,
body.bc-module-ecommerce.bc-commerce-page .actions .pill.promo-active,
body.bc-module-ecommerce.bc-commerce-page .sku-head-actions .pill.promo-active{
  background:linear-gradient(135deg,#2563eb,#3b82f6) !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border-color:rgba(96,165,250,.65) !important;
  box-shadow:0 8px 18px rgba(37,99,235,.22) !important;
}
body.bc-module-ecommerce.bc-commerce-page button.promo-active:disabled{
  opacity:1 !important;
  cursor:default !important;
}

@media(max-width:780px){
  body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top{
    flex-direction:column !important;
    align-items:stretch !important;
    padding:12px !important;
    border-radius:20px !important;
  }
  body.bc-module-ecommerce.bc-commerce-page .intelligence-nav{
    justify-content:space-between !important;
    width:100% !important;
  }
  body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top .brand.intelligence-brand{
    min-width:0 !important;
    width:100% !important;
    height:52px !important;
    min-height:52px !important;
  }
  body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top .brand.intelligence-brand img{height:36px !important;}
  body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top .bc-intel-theme-btn{
    min-width:50px !important;
    width:auto !important;
  }
}

/* =========================================================
   V15 - Ajustes pontuais solicitados
   Inteligência ML: cabeçalho logo esquerda/botões direita e ativar destacado.
   ========================================================= */
body.bc-module-ecommerce.bc-commerce-page .top.intelligence-top .brand.intelligence-brand{
  order:1 !important;
}
body.bc-module-ecommerce.bc-commerce-page .intelligence-nav{
  order:2 !important;
}
html[data-bc-theme="dark"] body.bc-commerce-page button.small.activate-success.active,
html[data-bc-theme="dark"] body.bc-commerce-page .actions button.small.activate-success.active,
html[data-bc-theme="dark"] body.bc-commerce-page button.activate-success.active,
html[data-bc-theme="light"] body.bc-commerce-page button.small.activate-success.active,
html[data-bc-theme="light"] body.bc-commerce-page .actions button.small.activate-success.active,
html[data-bc-theme="light"] body.bc-commerce-page button.activate-success.active,
body.bc-module-ecommerce.bc-commerce-page button.small.activate-success.active,
body.bc-module-ecommerce.bc-commerce-page .actions button.small.activate-success.active,
body.bc-module-ecommerce.bc-commerce-page .sku-head-actions button.small.activate-success.active,
body.bc-module-ecommerce.bc-commerce-page .sku-list-actions button.small.activate-success.active,
body.bc-module-ecommerce.bc-commerce-page .call-actions button.small.activate-success.active{
  background:linear-gradient(135deg,#0f8f3a 0%,#16a34a 48%,#22c55e 100%) !important;
  background-color:#16a34a !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border:1px solid rgba(74,222,128,.78) !important;
  box-shadow:0 0 0 1px rgba(22,163,74,.25),0 12px 28px rgba(22,163,74,.38) !important;
  opacity:1 !important;
}
html[data-bc-theme="dark"] body.bc-commerce-page button.small.activate-success.active:hover,
html[data-bc-theme="light"] body.bc-commerce-page button.small.activate-success.active:hover,
body.bc-module-ecommerce.bc-commerce-page .actions button.small.activate-success.active:hover{
  filter:brightness(1.08) !important;
  transform:translateY(-1px) !important;
}
body.bc-module-ecommerce.bc-commerce-page .actions .pill.promo-active,
body.bc-module-ecommerce.bc-commerce-page .sku-head-actions .pill.promo-active,
body.bc-module-ecommerce.bc-commerce-page .pill.promo-active,
body.bc-module-ecommerce.bc-commerce-page button.promo-active.active{
  background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 52%,#3b82f6 100%) !important;
  background-color:#2563eb !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border:1px solid rgba(147,197,253,.72) !important;
  box-shadow:0 8px 20px rgba(37,99,235,.24) !important;
}

/* =========================================================
   PATCH 2026-07-01 - Conciliador: botões, competência e tag
   Escopo visual: não altera rotas, forms, ids, endpoints ou regras.
   ========================================================= */

/* A tag do topo da importação estava herdando texto branco em fundo branco. */
html[data-bc-theme] body.bc-module-conciliador.bc-commerce-page .screen-tag{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  min-height:30px !important;
  padding:7px 12px !important;
  border-radius:999px !important;
  background:#111827 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border:1px solid rgba(17,24,39,.22) !important;
  box-shadow:0 10px 20px rgba(15,23,42,.12) !important;
  font-weight:950 !important;
  letter-spacing:.03em !important;
  white-space:nowrap !important;
}
html[data-bc-theme="dark"] body.bc-module-conciliador.bc-commerce-page .screen-tag{
  background:#050608 !important;
  border-color:rgba(255,255,255,.18) !important;
  box-shadow:none !important;
}

/* Botão Consultar: precisa continuar como ação primária escura no tema claro e escuro.
   A regra genérica de botões dos módulos comerciais era mais específica e deixava este botão claro. */
html[data-bc-theme] body.bc-module-conciliador.bc-commerce-page #form-consulta .actions > button.button[type="submit"]:not(.button-sec),
html[data-bc-theme="light"] body.bc-module-conciliador.bc-commerce-page #form-consulta .actions > button.button[type="submit"]:not(.button-sec),
html[data-bc-theme="dark"] body.bc-module-conciliador.bc-commerce-page #form-consulta .actions > button.button[type="submit"]:not(.button-sec){
  appearance:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:50px !important;
  padding:14px 16px !important;
  border-radius:14px !important;
  background:#111827 !important;
  background-color:#111827 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border:1px solid rgba(255,255,255,.16) !important;
  box-shadow:0 12px 26px rgba(15,23,42,.16) !important;
  font-family:var(--bc-font,'Segoe UI',Arial,sans-serif) !important;
  font-size:1rem !important;
  font-weight:950 !important;
  line-height:1.1 !important;
  text-align:center !important;
  text-decoration:none !important;
}
html[data-bc-theme] body.bc-module-conciliador.bc-commerce-page #form-consulta .actions > button.button[type="submit"]:not(.button-sec):hover{
  filter:brightness(1.06) !important;
  transform:translateY(-1px) !important;
  border-color:rgba(245,196,0,.42) !important;
}

/* Botões secundários do bloco de consulta/debug. */
html[data-bc-theme] body.bc-module-conciliador.bc-commerce-page #form-consulta .actions > button.button.button-sec[type="submit"]{
  appearance:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:50px !important;
  padding:14px 16px !important;
  border-radius:14px !important;
  background:var(--bcv10-panel-2, var(--bc-business-panel-2, #ffffff)) !important;
  color:var(--bcv10-text-strong, var(--bc-business-text, #111827)) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong, var(--bc-business-text, #111827)) !important;
  border:1px solid var(--bcv10-border-strong, var(--bc-business-border-strong, rgba(15,23,42,.16))) !important;
  box-shadow:0 8px 18px rgba(15,23,42,.08) !important;
  font-weight:950 !important;
}
html[data-bc-theme="dark"] body.bc-module-conciliador.bc-commerce-page #form-consulta .actions > button.button.button-sec[type="submit"]{
  background:#252c36 !important;
  color:#f8fafc !important;
  -webkit-text-fill-color:#f8fafc !important;
  border-color:rgba(255,255,255,.18) !important;
  box-shadow:none !important;
}

/* Campo Competência: texto, placeholder nativo e ícone do calendário legíveis nos dois temas. */
html[data-bc-theme] body.bc-module-conciliador.bc-commerce-page input[type="month"]{
  min-height:44px !important;
  line-height:20px !important;
  border-radius:12px !important;
  padding:11px 12px !important;
  background:var(--bcv10-input, var(--bc-business-input, #ffffff)) !important;
  color:var(--bcv10-text-strong, var(--bc-business-text, #111827)) !important;
  -webkit-text-fill-color:var(--bcv10-text-strong, var(--bc-business-text, #111827)) !important;
  border:1px solid var(--bcv10-border-strong, var(--bc-business-border-strong, rgba(15,23,42,.20))) !important;
  font-weight:850 !important;
  color-scheme:light !important;
}
html[data-bc-theme="dark"] body.bc-module-conciliador.bc-commerce-page input[type="month"]{
  background:#2b323d !important;
  color:#f8fafc !important;
  -webkit-text-fill-color:#f8fafc !important;
  border-color:rgba(255,255,255,.24) !important;
  color-scheme:dark !important;
}
body.bc-module-conciliador.bc-commerce-page input[type="month"]::-webkit-datetime-edit,
body.bc-module-conciliador.bc-commerce-page input[type="month"]::-webkit-datetime-edit-fields-wrapper,
body.bc-module-conciliador.bc-commerce-page input[type="month"]::-webkit-datetime-edit-month-field,
body.bc-module-conciliador.bc-commerce-page input[type="month"]::-webkit-datetime-edit-year-field,
body.bc-module-conciliador.bc-commerce-page input[type="month"]::-webkit-datetime-edit-text{
  color:inherit !important;
  -webkit-text-fill-color:inherit !important;
}
body.bc-module-conciliador.bc-commerce-page input[type="month"]::-webkit-calendar-picker-indicator{
  opacity:1 !important;
  cursor:pointer !important;
  filter:none !important;
}
html[data-bc-theme="dark"] body.bc-module-conciliador.bc-commerce-page input[type="month"]::-webkit-calendar-picker-indicator{
  filter:invert(1) brightness(1.25) !important;
}

/* Botão nativo de upload dentro de input file: evita botão cinza sem padrão. */
html[data-bc-theme] body.bc-module-conciliador.bc-commerce-page input[type="file"]::file-selector-button{
  margin-right:10px !important;
  border:0 !important;
  border-radius:9px !important;
  background:#111827 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  padding:7px 11px !important;
  font-weight:950 !important;
  cursor:pointer !important;
}
html[data-bc-theme="dark"] body.bc-module-conciliador.bc-commerce-page input[type="file"]::file-selector-button{
  background:#050608 !important;
  border:1px solid rgba(255,255,255,.16) !important;
}

/* Ações de importação/reprocessamento: mantém largura e hierarquia visual previsíveis. */
html[data-bc-theme] body.bc-module-conciliador.bc-commerce-page .btn-row .btn-primary,
html[data-bc-theme] body.bc-module-conciliador.bc-commerce-page .recent-actions .btn-download.primary{
  background:#111827 !important;
  background-color:#111827 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border:1px solid rgba(255,255,255,.16) !important;
}
html[data-bc-theme="dark"] body.bc-module-conciliador.bc-commerce-page .btn-row .btn-primary,
html[data-bc-theme="dark"] body.bc-module-conciliador.bc-commerce-page .recent-actions .btn-download.primary{
  background:#050608 !important;
  background-color:#050608 !important;
}

/* =========================================================
   PATCH 2026-07-01 - Conciliador: badge de competência
   Corrige herança de -webkit-text-fill-color da .recent-title-row,
   que deixava 03/2026 escuro dentro do pill preto no tema claro.
   Escopo somente visual.
   ========================================================= */
html[data-bc-theme] body.bc-module-conciliador.bc-commerce-page .recent-title-row .competencia-badge,
html[data-bc-theme] body.bc-module-conciliador .recent-title-row .competencia-badge,
html[data-bc-theme] body.bc-module-conciliador.bc-commerce-page .competencia-badge,
html[data-bc-theme] body.bc-module-conciliador .competencia-badge{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  min-height:32px !important;
  padding:7px 12px !important;
  border-radius:999px !important;
  background:#111827 !important;
  background-color:#111827 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border:1px solid rgba(15,23,42,.22) !important;
  font-weight:950 !important;
  line-height:1 !important;
  letter-spacing:.02em !important;
  white-space:nowrap !important;
  text-shadow:none !important;
  box-shadow:none !important;
}
html[data-bc-theme="dark"] body.bc-module-conciliador.bc-commerce-page .recent-title-row .competencia-badge,
html[data-bc-theme="dark"] body.bc-module-conciliador .recent-title-row .competencia-badge,
html[data-bc-theme="dark"] body.bc-module-conciliador.bc-commerce-page .competencia-badge,
html[data-bc-theme="dark"] body.bc-module-conciliador .competencia-badge{
  background:#050608 !important;
  background-color:#050608 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border-color:rgba(255,255,255,.18) !important;
}
html[data-bc-theme] body.bc-module-conciliador .competencia-badge *,
html[data-bc-theme] body.bc-module-conciliador.bc-commerce-page .competencia-badge *{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
