/* ALEX REPOSIÇÃO — V10.8, contraste e simplicidade.
   Folha aditiva: não altera dados, estados do carrinho, fotos ou pagamentos.
   Aplicada após os estilos anteriores para corrigir regras com cores fixas. */
:root,html[data-theme="light"]{
  --v108-text:#263948;
  --v108-title:#203544;
  --v108-muted:#586c7b;
  --v108-surface:#ffffff;
  --v108-subtle:#f1f5f8;
  --v108-line:#cbd7e0;
  --v108-icon:#41596c;
  --v108-accent:#a94f15;
  --v108-accent-bg:#fff1e3;
  --v108-alert:#9c2924;
}
html[data-theme="dark"]{
  --v108-text:#eef4f8;
  --v108-title:#f7fafc;
  --v108-muted:#bbccd8;
  --v108-surface:#243440;
  --v108-subtle:#1c2c37;
  --v108-line:#506777;
  --v108-icon:#e0eaf1;
  --v108-accent:#ffc18f;
  --v108-accent-bg:#453426;
  --v108-alert:#ffb0a9;
}
/* Tipografia e contraste: as regras antigas fixavam #24272c mesmo em cartões noturnos. */
html[data-theme] main .heading :is(h1,h2),
html[data-theme] main :is(.section-title,.purchase-list-heading,.purchase-heading) :is(h1,h2),
html[data-theme] main :is(.panel,.stat,.purchase-item) > h2,
html[data-theme] main > :is(.purchase-financial-summary,.purchase-detail-items,.purchase-change-log,.note-panel) > h2,
html[data-theme] main :is(.editor-section-title,.payment-wizard-card) h2{
  color:var(--v108-title)!important;
}
html[data-theme] main :is(.panel,.purchase-item,.history-card,.stat) :is(.muted,.meta),
html[data-theme] main :is(.heading,.section-title) .muted,
html[data-theme] main .purchase-financial-summary > p.muted,
html[data-theme] main .history-main small{
  color:var(--v108-muted)!important;
}
/* Detalhes de compra: fundo, bordas e textos sincronizados com o tema. */
html[data-theme] main > :is(.purchase-financial-summary,.purchase-detail-items,.purchase-change-log,.note-panel){
  color:var(--v108-text)!important;
  background:var(--v108-surface)!important;
  border-color:var(--v108-line)!important;
}
html[data-theme] main > :is(.purchase-financial-summary,.purchase-detail-items,.purchase-change-log,.note-panel) > h2{
  font-size:18px!important;
  line-height:1.35!important;
  font-weight:800!important;
  margin:0 0 16px!important;
  color:var(--v108-title)!important;
}
html[data-theme] main > .purchase-financial-summary .purchase-financial-row{
  color:var(--v108-text)!important;
  border-color:var(--v108-line)!important;
}
html[data-theme] main > .purchase-financial-summary .purchase-financial-row > span{
  color:var(--v108-muted)!important;
}
html[data-theme] main > .purchase-financial-summary .purchase-financial-row > :is(b,strong),
html[data-theme] main > .purchase-detail-items .list-row :is(b,strong),
html[data-theme] main > .purchase-change-log .purchase-change-entry :is(b,strong){
  color:var(--v108-title)!important;
}
html[data-theme] main > .purchase-financial-summary .purchase-financial-total{
  background:var(--v108-accent-bg)!important;
  border:1px solid color-mix(in srgb,var(--v108-accent) 28%,transparent)!important;
  border-radius:12px!important;
}
html[data-theme] main > .purchase-financial-summary .purchase-financial-total > span,
html[data-theme] main > .purchase-financial-summary .purchase-financial-total > strong{
  color:var(--v108-accent)!important;
}
html[data-theme] main > .purchase-detail-items .history-item-editable,
html[data-theme] main > .purchase-detail-items .list-row,
html[data-theme] main > .purchase-change-log .purchase-change-entry{
  border-color:var(--v108-line)!important;
}
html[data-theme] main > .purchase-detail-items .history-item-actions > summary{
  color:var(--v108-accent)!important;
}
html[data-theme] main > .purchase-detail-items .history-item-actions :is(label,p),
html[data-theme] main > .purchase-change-log :is(p,small),
html[data-theme] main > .note-panel .purchase-notes-text{
  color:var(--v108-text)!important;
}
/* Conteúdo de relatórios e listagens; cores semânticas existentes permanecem. */
html[data-theme] main .history-card,
html[data-theme] main .history-card-link,
html[data-theme] main .history-card-link :is(b,strong),
html[data-theme] main .report-grid :is(h2,h3),
html[data-theme] main :is(.history-main,.history-list) :is(b,strong){color:var(--v108-title)!important}
html[data-theme] main .history-icon{background:var(--v108-accent-bg)!important;color:var(--v108-accent)!important}
html[data-theme] main .table-wrap :is(th,td){border-color:var(--v108-line)!important}
html[data-theme] main .table-wrap th{color:var(--v108-muted)!important}
html[data-theme] main .table-wrap td{color:var(--v108-text)!important}
html[data-theme] main :is(.panel,.history-card) :is(.btn.outline,.btn.subtle),
html[data-theme] main .page-actions .btn.outline{
  background:var(--v108-subtle)!important;
  border-color:var(--v108-line)!important;
  color:var(--v108-title)!important;
}
/* Botões laranja: texto sempre contrastante; mantendo a paleta da marca. */
html[data-theme="light"] main .btn.primary{background:#a94f15!important;color:#fff!important;border-color:#a94f15!important}
html[data-theme="dark"] main .btn.primary{background:#f0a26a!important;color:#1a2833!important;border-color:#f0a26a!important}
html[data-theme] main .btn.primary:disabled{opacity:.65!important}
html[data-theme] main .btn.danger{color:var(--v108-alert)!important}
html[data-theme] main :is(button,a,summary):focus-visible{
  outline:2px solid var(--v108-accent)!important;
  outline-offset:2px;
}
/* Títulos, números e ícones em cartões comuns com cores fixas herdadas. */
html[data-theme] main .purchase-status-card strong,
html[data-theme] main .purchase-status-card small,
html[data-theme] main .stat strong,
html[data-theme] main .product-title h3,
html[data-theme] main .purchase-product-copy > b{
  color:var(--v108-text)!important;
}
html[data-theme] main .purchase-status-card small,
html[data-theme] main .stat span{
  color:var(--v108-muted)!important;
}
html[data-theme="dark"] main :is(.purchase-status-card,.stat){
  background:var(--v108-surface)!important;border-color:var(--v108-line)!important;
}
/* Preserva o destaque verde/laranja/vermelho dos estados sem perder contraste. */
html[data-theme="dark"] main .purchase-status-card.status-found{background:#223b36!important;border-color:#3f7061!important}
html[data-theme="dark"] main .purchase-status-card.status-missing{background:#3b3027!important;border-color:#766047!important}
/* Formulários, modal e menus: texto dos campos e ícones acessíveis. */
html[data-theme] main :is(label,.store-check,.ar-shop-current-copy,.ar-shop-tile-copy) {
  color:var(--v108-text);
}
html[data-theme] main :is(input,textarea,select)::placeholder{
  color:var(--v108-muted)!important;opacity:1;
}
html[data-theme="light"] :is(.mobile-theme-toggle,.theme-toggle,.ar-shop-switch,.v10-search-clear){
  color:#334d60!important;
}
html[data-theme="dark"] :is(.mobile-theme-toggle,.theme-toggle,.ar-shop-switch,.v10-search-clear){
  color:#e7f0f5!important;
}
html[data-theme] main :is(.ar-shop-switch,.v6-change-store-btn,.ar-item-options>summary,.ar-shop-tile-enter){color:var(--v108-icon)!important}
html[data-theme] main :is(.ar-shop-switch,.v6-change-store-btn):hover{color:var(--v108-accent)!important}
html[data-theme="light"] main :is(.purchase-hero-icon,.ar-shop-tile-icon,.ar-shop-current-icon,.report-link-icon){color:#354f62!important}
html[data-theme="dark"] main :is(.purchase-hero-icon,.ar-shop-tile-icon,.ar-shop-current-icon,.report-link-icon){color:#dce9f1!important}
html[data-theme] main :is(.v6-change-store-btn,.ar-shop-switch) svg,
html[data-theme] main .btn svg{
  stroke:currentColor;
}
/* Ícones SVG do rodapé, sem fundo colorido ao ativar, mantendo layout V10.2. */
@media(max-width:700px){
 html[data-theme="light"] body .mobile-nav.v10-mobile-nav > a:not(.active),
 html[data-theme="light"] body .mobile-nav.v10-mobile-nav > a:not(.active) .nav-icon,
 html[data-theme="light"] body .mobile-nav.v10-mobile-nav > a:not(.active) small,
 html[data-theme="light"] body .mobile-nav.v10-mobile-nav .v9-more-menu > summary,
 html[data-theme="light"] body .mobile-nav.v10-mobile-nav .v9-more-menu > summary :is(.nav-icon,small){color:#344d60!important}
 html[data-theme="dark"] body .mobile-nav.v10-mobile-nav > a:not(.active),
 html[data-theme="dark"] body .mobile-nav.v10-mobile-nav > a:not(.active) .nav-icon,
 html[data-theme="dark"] body .mobile-nav.v10-mobile-nav > a:not(.active) small,
 html[data-theme="dark"] body .mobile-nav.v10-mobile-nav .v9-more-menu > summary,
 html[data-theme="dark"] body .mobile-nav.v10-mobile-nav .v9-more-menu > summary :is(.nav-icon,small){color:#d7e4ec!important}
 html[data-theme="light"] body .mobile-nav.v10-mobile-nav > a.active :is(.nav-icon,small){color:#ad551d!important}
 html[data-theme="dark"] body .mobile-nav.v10-mobile-nav > a.active :is(.nav-icon,small){color:#ffbb83!important}
 html[data-theme] body .mobile-nav.v10-mobile-nav :is(.nav-icon svg,.nav-icon svg *){
  stroke:currentColor!important;fill:none!important;
 }
 /* Mais espaço no celular: sem o antigo botão/barra de Modo Foco. */
 .purchase-heading.compact-purchase-hero{min-height:0!important;margin:0 0 11px!important;padding:10px 12px!important;gap:0!important}
 .purchase-heading .purchase-title-line{gap:9px!important}
 .purchase-heading .purchase-title-line h1{font-size:19px!important;line-height:1.2!important;margin:0!important}
 .purchase-heading .purchase-title-line .eyebrow,.purchase-heading .purchase-title-line .muted{display:none!important}
 .purchase-heading .purchase-hero-icon{width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:10px!important}
 .purchase-heading .purchase-title-line svg{width:20px!important;height:20px!important}
}
/* Modo Foco removido também dos estilos legados, para qualquer aba já aberta. */
.purchase-focus-toggle,.focus-extra-launcher{display:none!important}
