/* Compras 0.0.332: tokens e componentes compartilhados, restritos ao módulo. */
/* 0.0.511 — flyout da sidebar recolhida encosta no alvo de 40px para eliminar zona morta no hover. */
#view-compras-veiling,.app-screen.compras-admin-mode{--mf-ui-font:"Instrument Sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--mf-canvas:#fafafa;--mf-side:#fafafa;--mf-surface:#fff;--mf-raised:#fff;--mf-subtle:#f4f4f5;--mf-line:#e4e4e7;--mf-text:#27272a;--mf-muted:#71717a;--mf-accent:#a91d4d;--mf-accent-strong:#89163e;--mf-accent-soft:#fbedf2;--mf-danger:#b42345;--mf-warning:#a16207;--mf-success:#16804a;--mf-success-soft:#e9f8ee;--mf-hover:#eeeef0;--mf-on-accent:#fff;color-scheme:light;font-family:var(--mf-ui-font)!important}
:root[data-marflores-theme="dark"] #view-compras-veiling,:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode{--mf-canvas:#111113;--mf-side:#18181b;--mf-surface:#1c1c20;--mf-raised:#27272a;--mf-subtle:#27272a;--mf-line:#3f3f46;--mf-text:#f4f4f5;--mf-muted:#a1a1aa;--mf-accent:#ee83a7;--mf-accent-strong:#f3a3bc;--mf-accent-soft:#3b202b;--mf-danger:#fb7185;--mf-warning:#fbbf24;--mf-success:#69d59a;--mf-success-soft:#183428;--mf-hover:#303036;--mf-on-accent:#201218;color-scheme:dark}
#view-compras-veiling :is(button,input,select,textarea,table,dialog):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-family:var(--mf-ui-font)!important;}
#view-compras-veiling :is(h1,h2,h3):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-text);font-weight:600!important;letter-spacing:-.025em;}
#view-compras-veiling :is(button,.compras-side-item,.compras-side-group>summary):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-weight:500!important;}
#view-compras-veiling :is(.primary-button,.v6-btn.primary):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-weight:600!important;}

/* Navegação 256/56 px: menu sem clipping, flyout e tooltip por hover/foco. */
#view-compras-veiling .compras-app-shell{--compras-side-width:256px;min-height:100dvh;background:var(--mf-canvas)}
#view-compras-veiling .compras-app-shell[data-collapsed="true"]{--compras-side-width:56px}
#view-compras-veiling .compras-side-nav{top:0;height:100dvh;padding:14px 8px 10px;overflow:visible;background:var(--mf-side);border-color:var(--mf-line)}
#view-compras-veiling .compras-side-menu{overflow:visible;gap:7px;padding:0}
#view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-nav{padding-inline:4px;cursor:default}
#view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-brand{min-height:87px}
#view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-collapse{width:40px;height:34px}
#view-compras-veiling .compras-side-collapse{color:var(--mf-muted);border-radius:8px}
#view-compras-veiling .compras-side-collapse:is(:hover,:focus-visible){background:var(--mf-hover);color:var(--mf-text)}
#view-compras-veiling .compras-side-search-wrap{background:var(--mf-surface);border-color:var(--mf-line)}
#view-compras-veiling .compras-side-search-wrap input{color:var(--mf-text)!important}
#view-compras-veiling .compras-side-section-label{color:var(--mf-muted);font-size:10px!important}
#view-compras-veiling .compras-side-home{margin-bottom:2px}
#view-compras-veiling .compras-side-item,#view-compras-veiling .compras-side-group>summary{min-height:36px;color:var(--mf-muted);font-size:14px!important;line-height:20px}
#view-compras-veiling .compras-side-item>i,#view-compras-veiling .compras-side-group>summary>i:first-child{color:var(--mf-muted);font-size:18px}
#view-compras-veiling .compras-side-item:is(:hover,:focus-visible),#view-compras-veiling .compras-side-group>summary:is(:hover,:focus-visible){background:var(--mf-hover);color:var(--mf-text);transform:none}
#view-compras-veiling .compras-side-item.active{background:var(--mf-accent-soft);border-color:transparent;box-shadow:none;color:var(--mf-accent);font-weight:600!important}
#view-compras-veiling .compras-side-item.active>i{color:var(--mf-accent)}
#view-compras-veiling .compras-side-submenu{border-color:var(--mf-line)}
#view-compras-veiling .compras-side-submenu button{font-size:13px!important;color:var(--mf-muted)}
#view-compras-veiling .compras-side-submenu button:is(:hover,:focus-visible){background:var(--mf-hover);color:var(--mf-text);transform:none}
#view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-item,#view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-group>summary{width:40px;min-width:40px;height:40px}
#view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-group .compras-side-submenu{left:40px;top:-5px;width:224px;background:var(--mf-raised);border-color:var(--mf-line)}
#view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-group .compras-side-submenu::after{left:-12px;width:14px}
#view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-item[data-menu-label]::after{left:47px;background:var(--mf-text);color:var(--mf-surface);font-size:12px}
#view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-item[data-menu-label]:focus-visible::after{opacity:1;transform:translate(0,-50%)}
#view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-collapse{position:relative}
#view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-collapse::after{content:"Expandir menu";position:absolute;left:48px;top:50%;z-index:130;transform:translate(5px,-50%);padding:6px 9px;white-space:nowrap;background:var(--mf-text);color:var(--mf-surface);font-size:12px;opacity:0;pointer-events:none}
#view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-collapse:is(:hover,:focus-visible)::after{opacity:1;transform:translate(0,-50%)}
#view-compras-veiling .compras-side-footer{border-color:var(--mf-line)}
#view-compras-veiling .compras-side-env span{background:var(--mf-subtle);color:var(--mf-muted)}
#view-compras-veiling .compras-side-user-button{background:var(--mf-surface);border-color:var(--mf-line)}
#view-compras-veiling .compras-side-user-popover{background:var(--mf-raised);border-color:var(--mf-line)}
#view-compras-veiling .compras-side-user-popover>button:hover{background:var(--mf-hover)}
#view-compras-veiling .compras-side-theme-options button{background:var(--mf-surface);border-color:var(--mf-line);color:var(--mf-muted)}
#view-compras-veiling .compras-side-theme-options button.active{background:var(--mf-accent-soft);color:var(--mf-accent);border-color:var(--mf-accent)}
#view-compras-veiling .compras-side-logout{color:var(--mf-danger)!important}
#view-compras-veiling .compras-side-logout:hover{background:var(--mf-accent-soft)!important}
#view-compras-veiling .compras-workspace{background:var(--mf-canvas)!important;color:var(--mf-text)!important;padding:26px 26px 24px}
#view-compras-veiling .compras-veiling-build-footer{color:var(--mf-muted)!important}

/* Campos, botões, cards, tabelas e estados nas três telas de Compras. */
#view-compras-veiling :is(.workflow-card,.preco-medio-results-card,.preco-medio-detail-card,.compras-google-sheets-panel-card):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;border:1px solid var(--mf-line)!important;border-radius:12px!important;color:var(--mf-text)!important;box-shadow:0 1px 3px rgb(0 0 0 / 6%)!important;}
#view-compras-veiling :is(.compras-veiling-filters-card,.compras-veiling-results-menu-card,.compras-google-sheets-operational-sheet-card,.compras-google-sheets-purchases):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:18px 20px!important;}
#view-compras-veiling :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea,.compras-veiling-date-range-button):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:36px;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-surface)!important;color:var(--mf-text)!important;box-shadow:none!important;font-size:13px!important;}
#view-compras-veiling input::placeholder{color:var(--mf-muted)!important}
#view-compras-veiling :is(.field>span,.compras-veiling-primary-grid label>span,.compras-veiling-filter-grid label>span,.compras-google-sheets-operational-grid label>span):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted)!important;font-size:12px!important;font-weight:500!important;}
#view-compras-veiling :is(.primary-button,.secondary-button,.v6-btn,.compras-google-sheets-action-button):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){transition:background .16s,border-color .16s,color .16s,box-shadow .16s;}
#view-compras-veiling :is(.primary-button,.secondary-button,.v6-btn,.compras-google-sheets-action-button):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-radius:8px!important;min-height:36px;}
#view-compras-veiling :is(.primary-button,.v6-btn.primary):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-accent)!important;border-color:var(--mf-accent)!important;color:var(--mf-on-accent)!important;box-shadow:none!important;}
#view-compras-veiling :is(.primary-button,.v6-btn.primary):hover:not(:disabled):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:var(--mf-accent-strong)!important;border-color:var(--mf-accent-strong)!important;}
#view-compras-veiling :is(.secondary-button,.v6-btn:not(.primary),.compras-veiling-date-range-button):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;box-shadow:none!important;}
#view-compras-veiling :is(.secondary-button,.v6-btn:not(.primary),.compras-veiling-date-range-button):hover:not(:disabled):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:var(--mf-hover)!important;border-color:var(--mf-muted)!important;}
#view-compras-veiling :is(button,input,select,textarea,summary):focus-visible:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){outline-offset:2px!important;}
#view-compras-veiling :is(button,input,select,textarea,summary):focus-visible:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){outline:2px solid var(--mf-accent)!important;}
#view-compras-veiling :is(button,input,select,textarea):disabled:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){opacity:.47!important;cursor:not-allowed!important;}
#view-compras-veiling :is(button,input,select,textarea):disabled:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){box-shadow:none!important;}
#view-compras-veiling input[type="checkbox"]:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){accent-color:var(--mf-accent)!important;}
#view-compras-veiling :is(.preco-medio-table,.compras-google-sheets-link-table,.compras-google-sheets-links-table):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;color:var(--mf-text)!important;}
#view-compras-veiling :is(.preco-medio-table,.compras-google-sheets-link-table,.compras-google-sheets-links-table) th:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;color:var(--mf-muted)!important;border-color:var(--mf-line)!important;font-size:12px!important;font-weight:600!important;}
#view-compras-veiling :is(.preco-medio-table,.compras-google-sheets-link-table,.compras-google-sheets-links-table) td:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important;}
#view-compras-veiling :is(.preco-medio-table,.compras-google-sheets-link-table,.compras-google-sheets-links-table) tbody tr:hover td:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;}
#view-compras-veiling :is(.preco-medio-empty,.compras-veiling-subtitle-compact,.compras-google-sheets-purchases-title p,.compras-google-sheets-operational-title p):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted)!important;}
#view-compras-veiling :is(.compras-google-sheets-link-table-wrap,.preco-medio-table-wrap,.compras-veiling-table-wrap){overflow-x:auto;}
#view-compras-veiling :is(.compras-google-sheets-link-table-wrap,.preco-medio-table-wrap,.compras-veiling-table-wrap):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){max-width:100%;}
#view-compras-veiling :is(.compras-google-sheets-purchases-summary article,.preco-medio-stats article):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;}
#view-compras-veiling :is(.compras-google-sheets-purchases-summary article span,.preco-medio-stats article span):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted)!important;}
#view-compras-veiling :is(.compras-google-sheets-purchases-summary article strong,.preco-medio-stats article strong):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-text)!important;}
#view-compras-veiling :is(details:not(.compras-side-group)>summary,.preco-medio-columns-list,.preco-medio-mark-config-panel,.mf-dialog-card,.compras-google-sheets-product-search-portal):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important;}
#view-compras-veiling :is(.mf-dialog-head,.mf-dialog-actions):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;}
#view-compras-veiling dialog::backdrop{background:rgb(17 17 19 / 56%)}

/* Contexto da planilha mantém os controles e o aviso de escrita controlada. */
#view-compras-veiling .compras-sheet-context-summary{display:flex;}
#view-compras-veiling .compras-sheet-context-summary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center;gap:16px;padding:14px 16px;margin:14px 0;border:1px solid var(--mf-line);border-radius:10px;background:var(--mf-subtle);}
#view-compras-veiling .compras-sheet-context-copy{display:grid;min-width:0;flex:1;}
#view-compras-veiling .compras-sheet-context-copy:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:3px;}
#view-compras-veiling .compras-sheet-context-kicker:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted);font-size:10px;font-weight:600;letter-spacing:.07em;}
#view-compras-veiling .compras-sheet-context-copy strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-text);font-size:17px;font-weight:700;line-height:1.18;}
#view-compras-veiling .compras-sheet-context-copy small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted);font-size:12px;}
#view-compras-veiling .compras-sheet-context-status:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:5px 8px;border-radius:999px;background:var(--mf-surface);color:var(--mf-warning);font-size:11px;font-weight:600;}
#view-compras-veiling .compras-sheet-context-status[data-state="ready"]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-success-soft);color:var(--mf-success);}
#view-compras-veiling .compras-sheet-context-config[hidden]{display:none!important}
#view-compras-veiling .compras-sheet-context-config:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:0 0 4px;}
#view-compras-veiling .compras-google-sheets-operational-status:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;}
#view-compras-veiling .compras-google-sheets-readonly-badge:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-success-soft)!important;border-color:var(--mf-success)!important;color:var(--mf-success)!important;}
#view-compras-veiling .compras-google-sheets-link-footer[data-selection-active="true"]{position:sticky;bottom:16px;z-index:12;display:flex;}
#view-compras-veiling .compras-google-sheets-link-footer[data-selection-active="true"]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center;gap:12px;margin:16px auto 0;padding:10px 12px;border:1px solid var(--mf-line);border-radius:11px;background:var(--mf-raised);box-shadow:0 12px 30px rgb(0 0 0 / 16%);}
#view-compras-veiling .compras-google-sheets-link-footer[data-selection-active="true"] #compras-google-sheets-link-selected-count:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-accent);font-weight:600;}

/* Estados operacionais e ações compactas. */
#view-compras-veiling .compras-google-sheets-action-button.launch.launched:disabled:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-success-soft)!important;border-color:var(--mf-success)!important;color:var(--mf-success)!important;opacity:1!important;}
#view-compras-veiling .compras-google-sheets-action-button.launch.launched:disabled :is(svg,svg *):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){stroke:var(--mf-success)!important;}
#view-compras-veiling .compras-google-sheets-link-inline-button.unlink:not(:disabled):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;border:1px solid var(--mf-line)!important;color:var(--mf-muted)!important;cursor:pointer!important;}
#view-compras-veiling .compras-google-sheets-link-inline-button.unlink:is(:hover,:focus-visible):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-accent-soft)!important;border-color:var(--mf-accent)!important;color:var(--mf-accent)!important;box-shadow:0 0 0 2px var(--mf-accent-soft)!important;}
#view-compras-veiling .compras-google-sheets-link-inline-button.unlink:is(:hover,:focus-visible) :is(svg,svg *):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){stroke:var(--mf-accent)!important;}
#view-compras-veiling .mf-dialog-close,#admin-veiling-catalog-dialog:not(.mf-ta-products-dialog) .mf-dialog-x{width:34px!important;display:grid!important;}
#view-compras-veiling .mf-dialog-close:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#admin-veiling-catalog-dialog:not(.mf-ta-products-dialog) .mf-dialog-x:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:34px!important;place-items:center!important;padding:0!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-surface)!important;color:var(--mf-muted)!important;line-height:1!important;}
#view-compras-veiling .mf-dialog-close:hover:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#admin-veiling-catalog-dialog:not(.mf-ta-products-dialog) .mf-dialog-x:hover:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-hover)!important;border-color:var(--mf-muted)!important;color:var(--mf-text)!important;transform:none!important;}
#view-compras-veiling .mf-dialog-close svg{width:17px!important;}
#view-compras-veiling .mf-dialog-close svg:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:17px!important;}
#admin-veiling-catalog-dialog:not(.mf-ta-products-dialog) .mf-dialog-x{--mf-line:#e4e4e7;--mf-surface:#fff;--mf-muted:#71717a;--mf-hover:#f4f4f5;--mf-text:#27272a}
#admin-veiling-catalog-dialog:not(.mf-ta-products-dialog) #admin-veiling-catalog-dismiss.primary{background:#a91d4d;color:#fff;border-color:#a91d4d}
@media(max-width:980px){#view-compras-veiling .compras-app-shell,#view-compras-veiling .compras-app-shell[data-collapsed="false"]{--compras-side-width:56px}#view-compras-veiling .compras-side-nav{padding-inline:4px}#view-compras-veiling .compras-workspace{padding:18px 14px 24px}}
@media(max-width:700px){
#view-compras-veiling .compras-sheet-context-summary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling .compras-google-sheets-link-footer[data-selection-active="true"]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){flex-wrap:wrap;}#view-compras-veiling .compras-sheet-context-copy{flex-basis:100%;}}
@media(prefers-reduced-motion:reduce){#view-compras-veiling .compras-app-shell,#view-compras-veiling .compras-side-item,#view-compras-veiling .compras-side-group>summary{transition-duration:0s!important}}
/* A tela-piloto tinha regras históricas mais específicas para títulos, chips e tabela.
   Estas regras concluem o tema escuro sem mudar largura ou estrutura da tabela. */
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel :is(.compras-google-sheets-operational-title h2,.compras-google-sheets-purchases-title h2):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-text)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel :is(.compras-google-sheets-operational-title p,.compras-google-sheets-purchases-title p,.compras-google-sheets-auto-refresh span):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary article:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;border-color:var(--mf-line)!important;box-shadow:none!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary article :is(span,strong):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-text)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel :is(.compras-google-sheets-section-tabs button,.compras-google-sheets-link-tabs button,.compras-google-sheets-table-font-control,.compras-google-sheets-search-box):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel :is(.compras-google-sheets-section-tabs button.active,.compras-google-sheets-link-tabs button.active):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-accent-soft)!important;color:var(--mf-accent)!important;border-color:var(--mf-accent)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table thead th:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody tr:hover td:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-hover)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table-wrap:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-footer:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted)!important;}
#view-compras-veiling #compras-google-sheets-panel #compras-google-sheets-launch-selected:disabled:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;border-color:var(--mf-line)!important;color:var(--mf-muted)!important;opacity:.7!important;box-shadow:none!important;}
#view-compras-veiling #compras-google-sheets-panel #compras-google-sheets-launch-selected:disabled :is(svg,svg *):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){stroke:var(--mf-muted)!important;}
#view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-weight:400!important;}
#view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table thead th:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-weight:600!important;}

/* Produtos e Configurações continuam usando os controles administrativos
   existentes; ao chegar pela sidebar de Compras, recebem os mesmos tokens. */
.app-screen.compras-admin-mode .app-main{background:var(--mf-canvas)!important}
.app-screen.compras-admin-mode #view-admin{background:var(--mf-canvas)!important;color:var(--mf-text)!important;font-family:var(--mf-ui-font)!important}
.app-screen.compras-admin-mode #view-admin :is(button,input,select,textarea,table){font-family:var(--mf-ui-font)!important}
.app-screen.compras-admin-mode #view-admin :is(.workflow-card,.admin-product-candidates,.admin-veiling-catalog-strip){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;border-radius:12px!important}
.app-screen.compras-admin-mode #view-admin :is(h1,h2,h3,.admin-users-head strong,.admin-product-candidates-head strong){color:var(--mf-text)!important;font-weight:600!important}
.app-screen.compras-admin-mode #view-admin :is(small,.section-label,.admin-users-head small,.admin-product-candidates-head small){color:var(--mf-muted)!important}
.app-screen.compras-admin-mode #view-admin :is(input,select,textarea){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important}
.app-screen.compras-admin-mode #view-admin :is(.primary-button,.v6-btn.primary){background:var(--mf-accent)!important;border-color:var(--mf-accent)!important;color:var(--mf-on-accent)!important}
.app-screen.compras-admin-mode #view-admin :is(.secondary-button,.v6-btn:not(.primary)){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important}
.app-screen.compras-admin-mode #view-admin :is(.secondary-button,.v6-btn:not(.primary)):hover{background:var(--mf-hover)!important}
.app-screen.compras-admin-mode #view-admin :is(th,td){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important}
.app-screen.compras-admin-mode #view-admin th{background:var(--mf-subtle)!important;font-weight:600!important}
.app-screen.compras-admin-mode #view-admin :is(button,input,select,textarea):focus-visible{outline:2px solid var(--mf-accent)!important;outline-offset:2px!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode :is(.mf-dialog-card,.mf-dialog-head,.mf-dialog-actions){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode :is(.mf-dialog-card input,.mf-dialog-card select,.mf-dialog-card textarea){background:var(--mf-subtle)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important}
@media(max-height:650px){#view-compras-veiling .compras-side-nav{position:relative;height:auto;min-height:100dvh}}

/* 0.0.333 — normalização global de Compras. Wrappers organizam, controles desenham. */
#app-screen #view-compras-veiling{font:400 14px/1.45 var(--mf-ui-font)!important;color:var(--mf-text)!important}
#app-screen #view-compras-veiling :is(.page-heading h1):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:22px!important;line-height:1.2!important;font-weight:600!important;color:var(--mf-text)!important;}
#app-screen #view-compras-veiling :is(.compras-google-sheets-operational-title h2,.compras-google-sheets-purchases-title h2,.preco-medio-results-head strong,.compras-veiling-filters-head strong):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:16px!important;line-height:1.35!important;font-weight:600!important;color:var(--mf-text)!important;}
#app-screen #view-compras-veiling :is(.compras-veiling-subtitle-compact,.compras-google-sheets-operational-title p,.compras-google-sheets-purchases-title p,.preco-medio-results-head small,.compras-google-sheets-operational-grid small):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:12px!important;line-height:1.45!important;font-weight:400!important;color:var(--mf-muted)!important;}
#app-screen #view-compras-veiling :is(.compras-veiling-primary-grid label>span,.compras-veiling-secondary-filter-grid label>span,.compras-google-sheets-operational-grid label>span,.compras-google-sheets-current-info>span,.field>span):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:12px!important;font-weight:500!important;line-height:1.35!important;letter-spacing:0!important;text-transform:none!important;color:var(--mf-muted)!important;}
#app-screen #view-compras-veiling :is(.compras-side-search-wrap,.compras-google-sheets-search-box){display:flex!important;}
#app-screen #view-compras-veiling :is(.compras-side-search-wrap,.compras-google-sheets-search-box):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:36px!important;min-height:36px!important;align-items:center!important;gap:9px!important;padding:0 10px!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-control)!important;color:var(--mf-muted)!important;box-shadow:none!important;}
#app-screen #view-compras-veiling :is(.compras-side-search-wrap,.compras-google-sheets-search-box):focus-within:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:var(--mf-accent)!important;box-shadow:0 0 0 3px var(--mf-focus)!important;}
#app-screen #view-compras-veiling :is(.compras-side-search-wrap,.compras-google-sheets-search-box) input{width:100%!important;}
#app-screen #view-compras-veiling :is(.compras-side-search-wrap,.compras-google-sheets-search-box) input:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:100%!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;color:var(--mf-text)!important;}
#app-screen #view-compras-veiling :is(.compras-side-search-wrap,.compras-google-sheets-search-box) :is(i,svg){width:17px!important;flex:0 0 17px!important;}
#app-screen #view-compras-veiling :is(.compras-side-search-wrap,.compras-google-sheets-search-box) :is(i,svg):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:17px!important;color:var(--mf-muted)!important;}
#app-screen #view-compras-veiling :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea,.compras-veiling-date-range-button,.compras-veiling-multiselect>summary):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:36px!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background-color:var(--mf-control)!important;color:var(--mf-text)!important;font:500 14px/1.3 var(--mf-ui-font)!important;box-shadow:none!important;}
#app-screen #view-compras-veiling :is(input,textarea)::placeholder{color:var(--mf-placeholder)!important;font-weight:400!important;opacity:1}
#app-screen #view-compras-veiling :is(select,.compras-veiling-date-range-button):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:0 32px 0 11px!important;}
#app-screen #view-compras-veiling select:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),.app-screen.compras-admin-mode #view-admin select:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){appearance:none!important;-webkit-appearance:none!important;background-repeat:no-repeat!important;background-position:right 10px center!important;background-size:16px!important;}
#app-screen #view-compras-veiling select:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),.app-screen.compras-admin-mode #view-admin select:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling select,:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important}
#app-screen #view-compras-veiling select option:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),.app-screen.compras-admin-mode #view-admin select option:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-raised);color:var(--mf-text);}
#app-screen #view-compras-veiling :is(input,select,textarea,.compras-veiling-date-range-button,.compras-veiling-multiselect>summary):hover:not(:disabled):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-color:var(--mf-line-hover)!important;}
#app-screen #view-compras-veiling :is(input,select,textarea,.compras-veiling-date-range-button,.compras-veiling-multiselect>summary):focus-visible:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:var(--mf-accent)!important;box-shadow:0 0 0 3px var(--mf-focus)!important;outline:0!important;}
#app-screen #view-compras-veiling :is(.compras-google-sheets-period-field,.compras-google-sheets-sector-field,.compras-google-sheets-sheet-control-group,.compras-google-sheets-current-info,.compras-google-sheets-service-compact,.compras-veiling-primary-grid label,.compras-veiling-secondary-filter-grid label):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;}
#app-screen #view-compras-veiling .compras-google-sheets-sheet-control-group:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:auto!important;min-height:0!important;padding:0!important;gap:8px!important;}
#app-screen #view-compras-veiling .compras-google-sheets-current-info:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:36px!important;padding:0!important;}
#app-screen #view-compras-veiling .compras-google-sheets-service-compact:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:36px!important;padding:0!important;}
#app-screen #view-compras-veiling :is(.primary-button,.v6-btn.primary,.secondary-button,.v6-btn:not(.primary),.compras-google-sheets-action-button,.compras-veiling-primary-actions button,.compras-veiling-results-actions button):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:inline-flex;}
#app-screen #view-compras-veiling :is(.primary-button,.v6-btn.primary,.secondary-button,.v6-btn:not(.primary),.compras-google-sheets-action-button,.compras-veiling-primary-actions button,.compras-veiling-results-actions button):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center;justify-content:center;gap:7px!important;}
#app-screen #view-compras-veiling :is(.primary-button,.v6-btn.primary,.secondary-button,.v6-btn:not(.primary),.compras-google-sheets-action-button,.compras-veiling-primary-actions button,.compras-veiling-results-actions button):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:36px!important;border-radius:8px!important;padding:0 12px!important;font:500 14px/1.2 var(--mf-ui-font)!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important;}
#app-screen #view-compras-veiling :is(.primary-button,.v6-btn.primary,#compras-veiling-manual-average-button):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-weight:600!important;background:var(--mf-primary)!important;border-color:var(--mf-primary)!important;color:#fff!important;}
#app-screen #view-compras-veiling :is(.primary-button,.v6-btn.primary,#compras-veiling-manual-average-button):hover:not(:disabled):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:var(--mf-primary-hover)!important;border-color:var(--mf-primary-hover)!important;color:#fff!important;}
#app-screen #view-compras-veiling :is(.secondary-button,.v6-btn:not(.primary),.compras-google-sheets-action-button,#compras-google-sheets-change):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;border:1px solid var(--mf-line)!important;color:var(--mf-text)!important;font-weight:500!important;}
#app-screen #view-compras-veiling :is(.secondary-button,.v6-btn:not(.primary),.compras-google-sheets-action-button,#compras-google-sheets-change):hover:not(:disabled):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-hover)!important;border-color:var(--mf-line-hover)!important;color:var(--mf-text)!important;}
#app-screen #view-compras-veiling :is(button,summary) .compras-hero-icon:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *)){width:17px!important;}
#app-screen #view-compras-veiling :is(button,summary) .compras-hero-icon:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:17px!important;stroke:currentColor!important;}
#app-screen #view-compras-veiling :is(.compras-veiling-filters-card,.compras-veiling-results-menu-card,.preco-medio-grid-card,.preco-medio-toolbar,.compras-google-sheets-operational-status,.compras-google-sheets-purchases-summary article,.preco-medio-stats article):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;box-shadow:none!important;}
#app-screen #view-compras-veiling :is(.compras-google-sheets-purchases-summary article strong,.preco-medio-stats strong):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-text)!important;font-size:16px!important;}
#app-screen #view-compras-veiling :is(.compras-google-sheets-purchases-summary article span,.preco-medio-stats span):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted)!important;font-size:12px!important;font-weight:400!important;}
#app-screen #view-compras-veiling :is(.preco-medio-table,.compras-google-sheets-link-table) thead th:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;color:var(--mf-muted)!important;border-color:var(--mf-line)!important;font-size:12px!important;font-weight:600!important;line-height:1.35!important;}
#app-screen #view-compras-veiling :is(.preco-medio-table,.compras-google-sheets-link-table) tbody td:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important;font-size:13px!important;font-weight:400!important;line-height:1.4!important;}
#app-screen #view-compras-veiling :is(.preco-medio-table,.compras-google-sheets-link-table) tbody tr:hover td:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-hover)!important;}
#app-screen #view-compras-veiling :is(.compras-veiling-multiselect-panel,.preco-medio-mark-config-panel,.preco-medio-columns-list,.compras-veiling-calendar,.mf-dialog-card,.compras-google-sheets-product-search-portal):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-raised)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;}
#app-screen #view-compras-veiling :is(.compras-veiling-multiselect-option,.compras-veiling-calendar-shortcuts button):hover:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:var(--mf-hover)!important;color:var(--mf-text)!important;}
#app-screen #view-compras-veiling .compras-google-sheets-link-tabs button:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:34px!important;padding:0 11px!important;border-radius:8px!important;font:500 12px/1.2 var(--mf-ui-font)!important;color:var(--mf-text)!important;background:var(--mf-surface)!important;border-color:var(--mf-line)!important;}
#app-screen #view-compras-veiling .compras-google-sheets-link-tabs button strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-left:5px!important;font-size:12px!important;font-weight:600!important;color:var(--gs-filter-color,var(--mf-muted))!important;}
#app-screen #view-compras-veiling .compras-google-sheets-link-tabs button.active:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;border-color:var(--gs-filter-color,var(--mf-accent))!important;box-shadow:inset 0 -2px 0 var(--gs-filter-color,var(--mf-accent))!important;}
#app-screen #view-compras-veiling .compras-sheet-context-summary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;border-color:var(--mf-line)!important;gap:14px;}
#app-screen #view-compras-veiling .compras-sheet-context-copy strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:18px!important;font-weight:700!important;color:var(--mf-text)!important;}
#app-screen #view-compras-veiling .compras-sheet-context-copy small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:12px!important;color:var(--mf-muted)!important;}
#app-screen #view-compras-veiling .compras-sheet-context-status:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:12px!important;background:var(--mf-raised)!important;color:var(--mf-warning)!important;}
#app-screen #view-compras-veiling .compras-sheet-context-status[data-state="ready"]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-success-soft)!important;color:var(--mf-success)!important;}
#app-screen #view-compras-veiling .compras-side-search-wrap input{font-size:14px!important}
#app-screen #view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-search-wrap{height:0!important;min-height:0!important;margin:0!important;padding:0!important;border-width:0!important;opacity:0!important}
#app-screen #view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-group .compras-side-submenu{left:40px!important;background:var(--mf-raised)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important}
#app-screen #view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-group .compras-side-submenu::after{left:-14px!important;width:16px!important}
#app-screen #view-compras-veiling :is(.compras-side-user-button,.compras-side-user-popover,.compras-side-theme-options button){background:var(--mf-raised)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important}
#app-screen #view-compras-veiling .compras-side-theme-options button.active{background:var(--mf-accent-soft)!important;border-color:var(--mf-accent)!important;color:var(--mf-accent)!important}
#app-screen #view-compras-veiling :is(input,select,textarea,button):disabled:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){opacity:.55!important;cursor:not-allowed!important;}
#app-screen #view-compras-veiling .compras-google-sheets-action-button.launch.launched:disabled:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){opacity:1!important;background:var(--mf-success-soft)!important;border-color:var(--mf-success)!important;color:var(--mf-success)!important;}
#app-screen #view-compras-veiling .compras-google-sheets-link-table:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:max-content;min-width:100%;}
#app-screen #view-compras-veiling #compras-veiling-table:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){width:max-content;min-width:100%;}
#app-screen #view-compras-veiling :is(.compras-google-sheets-link-table-wrap,.compras-veiling-table-wrap,.preco-medio-table-wrap):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){scrollbar-color:var(--mf-scroll) transparent;scrollbar-width:thin;}
#app-screen #view-compras-veiling{--mf-control:#fff;--mf-placeholder:#a1a1aa;--mf-line-hover:#a1a1aa;--mf-focus:rgb(169 29 77 / 13%);--mf-primary:#a91d4d;--mf-primary-hover:#89163e;--mf-scroll:#a1a1aa}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling,:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode{--mf-canvas:#161619;--mf-side:#1c1c20;--mf-surface:#242429;--mf-raised:#2b2b31;--mf-subtle:#303037;--mf-control:#303037;--mf-line:#414149;--mf-line-hover:#71717a;--mf-text:#f4f4f5;--mf-muted:#b4b4bd;--mf-placeholder:#9a9aa4;--mf-hover:#36363e;--mf-focus:rgb(238 131 167 / 17%);--mf-primary:#a91d4d;--mf-primary-hover:#c32b61;--mf-on-accent:#fff;--mf-scroll:#63636b;color-scheme:dark}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.compras-side-nav,.compras-workspace,.compras-veiling-filters-card,.compras-veiling-results-menu-card,.preco-medio-grid-card,.preco-medio-toolbar,.compras-google-sheets-operational-status,.compras-google-sheets-purchases-summary article,.preco-medio-stats article,.compras-google-sheets-service-compact,.compras-google-sheets-sheet-control-group,.compras-google-sheets-period-field,.compras-google-sheets-sector-field):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-text)!important;border-color:var(--mf-line)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.compras-veiling-filters-card,.compras-veiling-results-menu-card,.preco-medio-grid-card,.preco-medio-toolbar,.compras-google-sheets-operational-status,.compras-google-sheets-purchases-summary article,.preco-medio-stats article):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(input,select,textarea,.compras-veiling-date-range-button,.compras-veiling-multiselect>summary,.compras-google-sheets-search-box,.compras-side-search-wrap):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background-color:var(--mf-control)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;-webkit-text-fill-color:var(--mf-text)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.compras-google-sheets-search-box,.compras-side-search-wrap) input:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:transparent!important;border:0!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.primary-button,.v6-btn.primary){background:var(--mf-primary)!important;border-color:var(--mf-primary)!important;color:#fff!important}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.secondary-button,.v6-btn:not(.primary),.compras-google-sheets-action-button,#compras-google-sheets-change):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-raised)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.secondary-button,.v6-btn:not(.primary),.compras-google-sheets-action-button,#compras-google-sheets-change):hover:not(:disabled):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-hover)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.compras-google-sheets-link-tabs button,.compras-google-sheets-section-tabs button,.compras-veiling-klok-view-toggle button):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-raised)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.compras-google-sheets-link-tabs button.active,.compras-google-sheets-section-tabs button.active):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-accent-soft)!important;color:var(--mf-accent)!important;border-color:var(--mf-accent)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.compras-google-sheets-section-tabs button.active,.compras-google-sheets-section-tabs button.active .compras-hero-icon):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-accent)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.preco-medio-table,.compras-google-sheets-link-table) thead th:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;color:var(--mf-muted)!important;border-color:var(--mf-line)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.preco-medio-table,.compras-google-sheets-link-table) tbody td:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.preco-medio-table,.compras-google-sheets-link-table) tbody tr:hover td:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-hover)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.preco-medio-grid-card,.compras-google-sheets-link-table-wrap,.compras-veiling-table-wrap,.preco-medio-table-wrap):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.compras-veiling-multiselect-panel,.preco-medio-mark-config-panel,.preco-medio-columns-list,.compras-veiling-calendar,.mf-dialog-card,.mf-dialog-head,.mf-dialog-actions,.compras-google-sheets-product-search-portal):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-raised)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.compras-veiling-multiselect-option,.compras-veiling-calendar-shortcuts button,.compras-veiling-sort-button,.preco-medio-mark-menu summary):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){color:var(--mf-text)!important;background:transparent!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.compras-google-sheets-purchases-summary article strong,.preco-medio-stats strong,.compras-google-sheets-current-info strong,.compras-veiling-filters-head strong):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-text)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.compras-google-sheets-purchases-summary article span,.preco-medio-stats span,.compras-google-sheets-operational-grid small,.compras-veiling-filters-head small):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling :is(.compras-google-sheets-link-footer,.compras-google-sheets-purchases-tools,.compras-google-sheets-operational-grid,.compras-veiling-filter-actions):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:transparent!important;border-color:var(--mf-line)!important;color:var(--mf-muted)!important;}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin :is(.workflow-card,.admin-product-candidates,.admin-veiling-catalog-strip,.mf-dialog-card){background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin :is(input,select,textarea){background-color:var(--mf-control)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;-webkit-text-fill-color:var(--mf-text)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin :is(.secondary-button,.v6-btn:not(.primary)){background:var(--mf-raised)!important;color:var(--mf-text)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin :is(th,td){background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin th{background:var(--mf-subtle)!important}
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#2b2b31!important;color:#f4f4f5!important;border-color:#414149!important;color-scheme:dark;}
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel :is(input,button,.compras-veiling-multiselect-option):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#303037!important;color:#f4f4f5!important;border-color:#414149!important;}
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel .compras-veiling-multiselect-option:hover:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#36363e!important;}

/* Login aprovado permanece claro inclusive sob tema escuro e autofill. */
#auth-screen.auth-preview-page{color-scheme:light!important}
#auth-screen.auth-preview-page .auth-preview-card{color-scheme:light!important}
#auth-screen.auth-preview-page .auth-preview-input-wrap input{background:#fff!important;color:#20252b!important;-webkit-text-fill-color:#20252b!important;caret-color:#20252b!important}
#auth-screen.auth-preview-page .auth-preview-input-wrap input:-webkit-autofill,#auth-screen.auth-preview-page .auth-preview-input-wrap input:-webkit-autofill:hover,#auth-screen.auth-preview-page .auth-preview-input-wrap input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 100px #fff inset!important;box-shadow:0 0 0 100px #fff inset!important;-webkit-text-fill-color:#20252b!important;caret-color:#20252b!important;border-color:#e1e5ea!important;transition:background-color 5000s ease-in-out 0s}
#auth-screen.auth-preview-page .auth-preview-input-wrap input:is(:focus,:focus-visible){border-color:#df4e7f!important;box-shadow:0 0 0 4px rgba(233,31,99,.085)!important;outline:0!important}

/* Superfícies temporárias montadas fora do shell (calendário e filtros portais). */
:root[data-marflores-theme="dark"] body :is(.compras-veiling-calendar-card,.compras-veiling-calendar-head,.compras-veiling-calendar-body,.compras-veiling-calendar-shortcuts,.compras-veiling-calendar-months,.compras-veiling-calendar-footer):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#2b2b31!important;color:#f4f4f5!important;border-color:#414149!important;color-scheme:dark;}
:root[data-marflores-theme="dark"] body :is(.compras-veiling-calendar-head strong,.compras-veiling-calendar-month-title,.compras-veiling-calendar-selection):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){color:#f4f4f5!important;}
:root[data-marflores-theme="dark"] body :is(.compras-veiling-calendar-head span,.compras-veiling-calendar-week span):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){color:#b4b4bd!important;}
:root[data-marflores-theme="dark"] body :is(.compras-veiling-calendar-day,.compras-veiling-calendar-nav button,.compras-veiling-calendar-shortcuts button,.compras-veiling-calendar-clear,.compras-veiling-calendar-cancel):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#303037!important;color:#f4f4f5!important;border-color:#414149!important;}
:root[data-marflores-theme="dark"] body :is(.compras-veiling-calendar-day,.compras-veiling-calendar-nav button,.compras-veiling-calendar-shortcuts button):hover:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#36363e!important;}
:root[data-marflores-theme="dark"] body .compras-veiling-calendar-day.in-range:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#492836!important;}
:root[data-marflores-theme="dark"] body .compras-veiling-calendar-day:is(.start,.end):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#a91d4d!important;color:#fff!important;}
/* 0.0.335: ATUALIZAR COMPRAS deixa de ser exceção primária; usa botão secundário canônico. */
#app-screen #view-compras-veiling .compras-google-sheets-action-button.launch:not(.launched):not(:disabled):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-primary)!important;border-color:var(--mf-primary)!important;color:#fff!important;font-weight:600!important;}
#app-screen #view-compras-veiling .compras-google-sheets-action-button.launch:not(.launched):hover:not(:disabled):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-primary-hover)!important;border-color:var(--mf-primary-hover)!important;color:#fff!important;}
#app-screen #view-compras-veiling #compras-veiling-table:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){width:max-content;min-width:0;}
#app-screen #view-compras-veiling .compras-google-sheets-link-table:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:max-content;min-width:0;}

/* Resumos de Lançamentos mantêm ações inteiras com texto de 14px. */
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-head:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:flex;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-head:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:flex-start;flex-wrap:wrap;gap:14px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-title{flex:1 1 430px;min-width:0;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary{display:flex;flex:1 1 100%;min-width:0;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){flex-wrap:wrap;gap:8px!important;margin-left:0!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary article{min-width:120px;flex:0 1 160px;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-actions:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:flex;flex:1 1 260px;min-width:0;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-actions:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel #compras-google-sheets-import-purchases{flex:0 0 auto;min-width:max-content!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel #compras-google-sheets-import-purchases:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){white-space:nowrap!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-table-font-control:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-muted)!important;}
@media(max-width:700px){
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-actions:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){justify-content:flex-start;}#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary article{flex:1 1 110px;}}

/* Busca: apenas a moldura externa desenha o campo. */
#app-screen #view-compras-veiling .compras-side-search-wrap #compras-side-search:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-search-box #compras-google-sheets-link-search:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:100%!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;outline:0!important;-webkit-text-fill-color:var(--mf-text)!important;}
#app-screen #view-compras-veiling .compras-side-search-wrap #compras-side-search:is(:focus,:focus-visible):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-search-box #compras-google-sheets-link-search:is(:focus,:focus-visible):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border:0!important;box-shadow:none!important;outline:0!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-search-box:focus-within:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling .compras-side-search-wrap:focus-within:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:var(--mf-accent)!important;box-shadow:0 0 0 3px var(--mf-focus)!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table thead th:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling .preco-medio-table thead th:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;color:var(--mf-muted)!important;border-color:var(--mf-line)!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling .preco-medio-table tbody td:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important;}

/* Extrato aberto: cards, toolbar e tabela usam os mesmos tokens das três telas. */
#app-screen #view-compras-veiling #compras-veiling-results-card :is(.compras-veiling-results-menu-card,.compras-veiling-result-toolbar,#compras-veiling-grid-card,.compras-veiling-table-wrap):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;}
#app-screen #view-compras-veiling #compras-veiling-results-card :is(.compras-veiling-results-head strong,.compras-veiling-results-head small,.compras-veiling-table-font-control>span):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){color:var(--mf-text)!important;}
#app-screen #view-compras-veiling #compras-veiling-results-card .compras-veiling-results-head small:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){color:var(--mf-muted)!important;font-size:12px!important;font-weight:400!important;}
#app-screen #view-compras-veiling #compras-veiling-results-card :is(.preco-medio-columns-picker>summary,.preco-medio-mark-config>summary):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){min-height:36px!important;padding:0 12px!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-surface)!important;color:var(--mf-text)!important;font:500 14px/1.2 var(--mf-ui-font)!important;}
#app-screen #view-compras-veiling #compras-veiling-results-card :is(.preco-medio-columns-picker>summary,.preco-medio-mark-config>summary):hover:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:var(--mf-hover)!important;}
#app-screen #view-compras-veiling #compras-veiling-results-card .compras-veiling-table-font-control:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-muted)!important;}
#app-screen #view-compras-veiling #compras-veiling-results-card #compras-veiling-search:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
#app-screen #view-compras-veiling #compras-veiling-results-card #compras-veiling-klok-search:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){min-height:36px!important;padding:0 11px!important;background:var(--mf-control)!important;color:var(--mf-text)!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;font:500 14px/1.3 var(--mf-ui-font)!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table thead tr:nth-child(2) th:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;color:var(--mf-muted)!important;border-color:var(--mf-line)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-veiling-results-card :is(.compras-veiling-results-menu-card,.compras-veiling-result-toolbar,#compras-veiling-grid-card,.compras-veiling-table-wrap,.preco-medio-columns-picker>summary,.preco-medio-mark-config>summary,.compras-veiling-table-font-control):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-veiling-results-card #compras-veiling-table :is(th,td):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){border-color:var(--mf-line)!important;color:var(--mf-text)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-veiling-results-card #compras-veiling-table th:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:var(--mf-subtle)!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-veiling-results-card #compras-veiling-table td:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:var(--mf-surface)!important;}

/* Filtros expandidos e resumo KLOK: nenhum painel claro no tema escuro. */
#app-screen #view-compras-veiling #compras-veiling-filters-card #compras-veiling-filters-body:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;}
#app-screen #view-compras-veiling #compras-veiling-filters-card .compras-veiling-filter-actions:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:transparent!important;color:var(--mf-muted)!important;border-color:var(--mf-line)!important;}
#app-screen #view-compras-veiling #compras-veiling-filters-card .compras-veiling-secondary-filter-grid label>span:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){color:var(--mf-muted)!important;font-size:12px!important;font-weight:500!important;}
#app-screen #view-compras-veiling #compras-veiling-stats.klok-average-summary:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;}
#app-screen #view-compras-veiling #compras-veiling-stats.klok-average-summary article+article:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){border-color:var(--mf-line)!important;}
#app-screen #view-compras-veiling #compras-veiling-result-toolbar:not(.manual-average-active) #compras-veiling-manual-average-button{visibility:hidden!important;overflow:hidden!important;pointer-events:none!important;}
#app-screen #view-compras-veiling #compras-veiling-result-toolbar:not(.manual-average-active) #compras-veiling-manual-average-button:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){flex:0 0 0!important;max-width:0!important;width:0!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;}
#app-screen #view-compras-veiling #compras-veiling-result-toolbar.manual-average-active #compras-veiling-manual-average-button{visibility:visible!important;}
#app-screen #view-compras-veiling #compras-veiling-result-toolbar.manual-average-active #compras-veiling-manual-average-button:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){opacity:1!important;}

/* Administração acessada por Compras: mesmos tokens sem tocar nas demais áreas. */
.app-screen.compras-admin-mode #view-admin{--mf-control:#fff;--mf-placeholder:#a1a1aa;--mf-line-hover:#a1a1aa;--mf-focus:rgb(169 29 77 / 13%);--mf-primary:#a91d4d;--mf-primary-hover:#89163e;font:400 14px/1.45 var(--mf-ui-font)!important}
.app-screen.compras-admin-mode #view-admin :is(input,select,textarea){min-height:36px!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background-color:var(--mf-control)!important;color:var(--mf-text)!important;font:500 14px/1.3 var(--mf-ui-font)!important;box-shadow:none!important}
.app-screen.compras-admin-mode #view-admin :is(input,textarea)::placeholder{color:var(--mf-placeholder)!important;font-weight:400!important}
.app-screen.compras-admin-mode #view-admin :is(.primary-button,.v6-btn.primary){min-height:36px!important;padding:0 12px!important;border-radius:8px!important;background:var(--mf-primary)!important;border-color:var(--mf-primary)!important;color:#fff!important;font:600 14px/1.2 var(--mf-ui-font)!important}
.app-screen.compras-admin-mode #view-admin :is(.secondary-button,.v6-btn:not(.primary),.page-back-button){min-height:36px!important;padding:0 12px!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-surface)!important;color:var(--mf-text)!important;font:500 14px/1.2 var(--mf-ui-font)!important}
.app-screen.compras-admin-mode #view-admin :is(.secondary-button,.v6-btn:not(.primary),.page-back-button):hover{background:var(--mf-hover)!important;border-color:var(--mf-line-hover)!important}
.app-screen.compras-admin-mode #view-admin :is(.admin-summary-grid article,.admin-integration-status-grid article,.admin-product-names-summary article,.admin-product-candidates-summary,.admin-product-name-variant-row,.admin-product-name-variant-editor,.admin-product-names-note,.admin-veiling-catalog-strip){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;box-shadow:none!important}
.app-screen.compras-admin-mode #view-admin :is(.admin-summary-grid span,.admin-integration-status-grid span,.admin-product-names-summary span,.admin-product-candidates-head small,.admin-product-names-note){color:var(--mf-muted)!important;font-size:12px!important;font-weight:400!important}
.app-screen.compras-admin-mode #view-admin :is(.admin-summary-grid strong,.admin-integration-status-grid strong,.admin-product-names-summary strong,.admin-product-candidates-head strong){color:var(--mf-text)!important;font-weight:600!important}
.app-screen.compras-admin-mode #view-admin :is(.admin-users-head,.admin-integration-body,.admin-product-names-body,.admin-users-table-wrap,.admin-product-names-table-wrap,.admin-product-candidates-table-wrap){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important}
.app-screen.compras-admin-mode #view-admin :is(.admin-users-table,.admin-product-names-table,.admin-product-candidates-table){background:var(--mf-surface)!important;color:var(--mf-text)!important}
.app-screen.compras-admin-mode #view-admin :is(.admin-users-table,.admin-product-names-table,.admin-product-candidates-table) th{background:var(--mf-subtle)!important;border-color:var(--mf-line)!important;color:var(--mf-muted)!important;font-size:12px!important;font-weight:600!important}
.app-screen.compras-admin-mode #view-admin :is(.admin-users-table,.admin-product-names-table,.admin-product-candidates-table) td{background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;font-size:13px!important}
.app-screen.compras-admin-mode #view-admin :is(.admin-users-table,.admin-product-names-table,.admin-product-candidates-table) tbody tr:hover td{background:var(--mf-hover)!important}
.app-screen.compras-admin-mode #view-admin :is(.admin-product-names-table-wrap,.admin-product-candidates-table-wrap,.admin-users-table-wrap){scrollbar-color:var(--mf-scroll) transparent;scrollbar-width:thin}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode{--mf-control:#303037;--mf-placeholder:#9a9aa4;--mf-line-hover:#71717a;--mf-focus:rgb(238 131 167 / 17%);--mf-primary:#a91d4d;--mf-primary-hover:#c32b61;--mf-scroll:#63636b}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode :is(.app-header,.app-header-inner,.dev-strip){background:var(--mf-side)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode .app-header :is(span,small,button){color:var(--mf-text)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin :is(.page-heading,.page-heading h1,.page-heading p,.section-label){color:var(--mf-text)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin .page-heading p:not(.section-label){color:var(--mf-muted)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin :is(.admin-summary-grid article,.admin-integration-status-grid article,.admin-product-names-summary article,.admin-product-candidates-summary,.admin-product-name-variant-row,.admin-product-name-variant-editor,.admin-product-names-note,.admin-veiling-catalog-strip){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin :is(.admin-users-head,.admin-integration-body,.admin-product-names-body,.admin-users-table-wrap,.admin-product-names-table-wrap,.admin-product-candidates-table-wrap){background:var(--mf-surface)!important;border-color:var(--mf-line)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin :is(input,select,textarea){background-color:var(--mf-control)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;-webkit-text-fill-color:var(--mf-text)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin :is(.admin-users-table,.admin-product-names-table,.admin-product-candidates-table) td{background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin :is(.admin-users-table,.admin-product-names-table,.admin-product-candidates-table) th{background:var(--mf-subtle)!important;color:var(--mf-muted)!important;border-color:var(--mf-line)!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin :is(.admin-summary-grid strong,.admin-integration-status-grid strong,.admin-product-names-summary strong,.admin-product-candidates-head strong){color:var(--mf-text)!important}

:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin{--mf-control:#303037;--mf-placeholder:#a1a1aa;--mf-line-hover:#71717a;--mf-focus:rgb(238 131 167 / 17%);--mf-primary:#a91d4d;--mf-primary-hover:#c32b61;color-scheme:dark}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin .field>span{color:var(--mf-muted)!important;font-size:12px!important;font-weight:500!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin :is(input,select,textarea){background:#303037!important;color:#f4f4f5!important;-webkit-text-fill-color:#f4f4f5!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode #view-admin :is(input,textarea)::placeholder{color:#a1a1aa!important;-webkit-text-fill-color:#a1a1aa!important}
:root[data-marflores-theme="dark"] .app-screen.compras-admin-mode .app-header .environment-pill{background:#3b3120!important;border-color:#755a2a!important;color:#f7d58a!important}

/* ============================================================
   0.0.336 • HOMOLOGAÇÃO — consolidação visual final do tema claro
   Esta seção substitui o bloco 0.0.335 e mantém uma única camada
   autoritativa para tipografia, botões e composição tocados aqui.
   O tema escuro permanece deliberadamente separado abaixo.
   ============================================================ */

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling{
  --mf-label-size:12px;
  --mf-control-size:13px;
  --mf-button-size:13px;
  --mf-button-weight:500;
  --mf-help-size:12px;
  --mf-section-size:14px;
  --mf-control-height:36px;
  --mf-control-radius:8px;
  --mf-control-pad-x:12px;
}

/* Sidebar: referência aprovada — menu e submenu com a mesma presença real. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-section-label{
  color:#706870!important;
  font:600 10.5px/1.2 var(--mf-ui-font)!important;
  letter-spacing:.055em!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(.compras-side-item,.compras-side-group>summary,.compras-side-submenu button){
  color:#4b4650!important;
  font:600 14px/20px var(--mf-ui-font)!important;
  letter-spacing:0!important;
  -webkit-font-smoothing:antialiased;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-submenu button{
  min-height:36px!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(.compras-side-item,.compras-side-group>summary,.compras-side-submenu button):is(:hover,:focus-visible){
  color:#27272a!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-item.active{
  color:#a91d4d!important;
  font-weight:600!important;
}

/* 0.0.338 • HOMOLOGAÇÃO — fechamento visual do tema claro e hierarquia de superfícies.
   A sidebar agrupa o Extrato de Compras e reforça a presença dos ícones; Lançamentos reduz
   camadas concorrentes de card e une filtros + tabela em uma única superfície operacional. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  .compras-side-item>span,
  .compras-side-group>summary>span:not(.compras-side-caret),
  .compras-side-submenu button
){
  font-family:"Segoe UI Semibold","Segoe UI",system-ui,sans-serif!important;
  font-size:14px!important;
  font-weight:600!important;
  line-height:20px!important;
  color:#484149!important;
  letter-spacing:0!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-item.active>span{color:#a91d4d!important}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-menu :is(.compras-side-item,.compras-side-group>summary)>i:not(.compras-side-caret){
  font-size:16px!important;line-height:1!important;color:#746d72!important;-webkit-text-stroke:.22px currentColor!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-group>summary>.compras-side-caret{font-size:13px!important;color:#8b8388!important}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-extrato-group{
  /* 0.0.426: preservar apenas o respiro vertical. O shorthand antigo
     zerava as margens horizontais e anulava margin-inline:auto no menu recolhido. */
  margin-block:2px 4px!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-extrato-group>summary{
  min-height:36px!important;border-radius:8px!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-extrato-group:has(.compras-side-submenu button.active)>summary{
  color:#40383d!important;background:#faf7f8!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-extrato-group:has(.compras-side-submenu button.active)>summary>span{
  color:#40383d!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-extrato-group:has(.compras-side-submenu button.active)>summary>i:first-child{
  color:#a91d4d!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-extrato-group .compras-side-submenu{
  margin:2px 0 4px 14px!important;padding-left:10px!important;border-left:1px solid #eadde2!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-extrato-group .compras-side-submenu button{
  min-height:34px!important;padding:0 10px!important;border-radius:7px!important;color:#5a5357!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-extrato-group .compras-side-submenu button.active{
  background:#fcecf2!important;color:#a91d4d!important;font-weight:600!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-side-section-label{
  font-family:"Segoe UI Semibold","Segoe UI",system-ui,sans-serif!important;
}

/* Régua tipográfica: rótulo, conteúdo, auxílio, ação e títulos. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  .compras-veiling-primary-grid label>span,
  .compras-veiling-secondary-filter-grid label>span,
  .compras-google-sheets-operational-grid label>span,
  .compras-google-sheets-field-label,
  .field>span
):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#625b60!important;font-size:var(--mf-label-size)!important;font-weight:600!important;line-height:1.3!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  .compras-veiling-primary-grid input,
  .compras-veiling-primary-grid select,
  .compras-veiling-date-range-button,
  .compras-veiling-secondary-filter-grid input,
  .compras-veiling-secondary-filter-grid select,
  .compras-veiling-result-toolbar input,
  .compras-veiling-result-toolbar select,
  .compras-veiling-result-toolbar details>summary,
  #compras-google-sheets-panel input:not([type="checkbox"]),
  #compras-google-sheets-panel select
):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:var(--mf-control-height)!important;height:var(--mf-control-height)!important;border-radius:var(--mf-control-radius)!important;font-size:var(--mf-control-size)!important;font-weight:500!important;line-height:1.25!important;letter-spacing:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  .compras-veiling-subtitle-compact,
  .compras-veiling-filter-actions>span,
  .compras-veiling-results-head small,
  .compras-sheet-context-copy small,
  .compras-google-sheets-operational-title p,
  .compras-google-sheets-purchases-title p
):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:var(--mf-help-size)!important;font-weight:400!important;line-height:1.4!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-google-sheets-purchases-title p:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#655e62!important;font-weight:450!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  .compras-veiling-results-head strong,
  .compras-google-sheets-operational-title h2,
  .compras-google-sheets-purchases-title h2
):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:var(--mf-section-size)!important;font-weight:600!important;line-height:1.25!important;}

/* Botão canônico: a geometria é única; só a intenção muda a cor. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  .primary-button,
  .secondary-button,
  .v6-btn,
  .compras-google-sheets-action-button,
  .compras-veiling-filter-toggle
):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:inline-flex!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  .primary-button,
  .secondary-button,
  .v6-btn,
  .compras-google-sheets-action-button,
  .compras-veiling-filter-toggle
):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center!important;justify-content:center!important;gap:7px!important;white-space:nowrap!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  .primary-button,
  .secondary-button,
  .v6-btn,
  .compras-google-sheets-action-button,
  .compras-veiling-filter-toggle
):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:var(--mf-control-height)!important;height:var(--mf-control-height)!important;padding:0 var(--mf-control-pad-x)!important;border-radius:var(--mf-control-radius)!important;font-size:var(--mf-button-size)!important;font-weight:var(--mf-button-weight)!important;line-height:1.25!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  .secondary-button,
  .v6-btn:not(.primary),
  #compras-veiling-filters-toggle,
  #compras-veiling-clear-filters,
  #compras-sheet-context-toggle,
  #compras-google-sheets-change,
  #compras-google-sheets-service-account-copy,
  #compras-google-sheets-link-clear
):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#fff!important;border:1px solid #ddd7da!important;color:#3f3f46!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  .secondary-button,
  .v6-btn:not(.primary),
  #compras-veiling-filters-toggle,
  #compras-veiling-clear-filters,
  #compras-sheet-context-toggle,
  #compras-google-sheets-change,
  #compras-google-sheets-service-account-copy,
  #compras-google-sheets-link-clear
):hover:not(:disabled):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#faf7f8!important;border-color:#c9bcc1!important;color:#89163e!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(.primary-button,.v6-btn.primary,.compras-google-sheets-action-button.launch):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#a91d4d!important;border:1px solid #a91d4d!important;color:#fff!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(.primary-button,.v6-btn.primary,.compras-google-sheets-action-button.launch):hover:not(:disabled):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#89163e!important;border-color:#89163e!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-hero-icon:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *)){width:17px!important;flex:0 0 17px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-hero-icon:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:17px!important;}

/* Intermediação/KLOK: a estrutura permanece intacta; só a hierarquia é unificada. */
/* A faixa principal usa literalmente a tipografia de “Selecionar período”. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  #compras-veiling-customer,
  #compras-veiling-date-type,
  #compras-veiling-date-range-button,
  #compras-veiling-date-range-label,
  #compras-veiling-origin,
  #compras-veiling-filters-toggle,
  #compras-veiling-refresh
):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  font-family:var(--mf-ui-font)!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:1.25!important;
  letter-spacing:0!important;}
/* Origem vira multiselect customizado em runtime; o summary é o controle realmente visível. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling details.compras-veiling-multiselect[data-compras-veiling-multi-for="compras-veiling-origin"]>summary:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling details.compras-veiling-multiselect[data-compras-veiling-multi-for="compras-veiling-origin"]>summary :is(.compras-veiling-multiselect-placeholder,.compras-veiling-multiselect-count):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  font-family:var(--mf-ui-font)!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:1.25!important;
  color:#27272a!important;
  letter-spacing:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-veiling-customer:disabled:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  opacity:1!important;
  color:#27272a!important;
  -webkit-text-fill-color:#27272a!important;
  background:#fafafa!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-veiling-primary-grid:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  align-items:end!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-veiling-primary-actions:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  align-items:end!important;
  gap:8px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-veiling-filter-actions:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  min-height:36px!important;
  align-items:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-veiling-results-actions:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  align-items:center!important;
  gap:8px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-veiling-table-font-control:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  min-height:36px!important;
  height:36px!important;
  border-radius:8px!important;
  align-items:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-veiling-table-font-control>span:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-veiling-table-font-control output:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  font-size:13px!important;
  font-weight:600!important;
  line-height:1!important;
  color:#4b4548!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-veiling-table-font-control button:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  font-size:14px!important;
  font-weight:600!important;
  line-height:1!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-veiling-columns-picker>summary,
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-veiling-mark-config>summary{
  display:flex!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-veiling-columns-picker>summary:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-veiling-mark-config>summary:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  min-height:36px!important;
  height:36px!important;
  padding:0 12px!important;
  border:1px solid #ddd7da!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#3f3f46!important;
  font-size:13px!important;
  font-weight:600!important;
  line-height:1!important;
  align-items:center!important;
  gap:7px!important;}

/* Painéis flutuantes — multiselect aprovado na 0.0.335 é preservado. */
body>.mf-floating-details-portal-panel:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:13px!important;
  line-height:1.4!important;}
body>.mf-floating-details-portal-panel.compras-veiling-multiselect-panel{overflow:hidden!important;}
body>.mf-floating-details-portal-panel.compras-veiling-multiselect-panel:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  padding:0!important;border:1px solid #e4d7dc!important;border-radius:10px!important;
  background:#fff!important;color:#27272a!important;box-shadow:0 14px 34px rgba(73,33,45,.14)!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-search{
  display:block!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-search:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){width:100%!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0 12px!important;
  border:0!important;border-bottom:1px solid #eee4e8!important;border-radius:0!important;background:#fff!important;color:#27272a!important;
  box-shadow:none!important;outline:0!important;font:500 13px/1.3 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-search:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *))::placeholder{color:#8b8589!important;font-weight:400!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-search:focus:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){border-bottom-color:#b94a70!important;box-shadow:inset 0 -1px 0 #b94a70!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-actions{display:flex!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-actions:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  min-height:40px!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  padding:0 12px!important;border-bottom:1px solid #eee4e8!important;background:#fffafb!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-actions button:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
body>.mf-floating-details-portal-panel .preco-medio-columns-help button:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  appearance:none!important;border:0!important;background:transparent!important;color:#a91d4d!important;padding:4px 2px!important;
  font:600 12.5px/1.25 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;cursor:pointer!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-actions button:hover:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
body>.mf-floating-details-portal-panel .preco-medio-columns-help button:hover:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){color:#7f1236!important;text-decoration:underline!important;text-underline-offset:2px!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-list{overflow:auto!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-list:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  padding:6px 7px 7px!important;scrollbar-width:thin!important;scrollbar-color:#c47b95 #f8edf1!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-list:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *))::-webkit-scrollbar,

body>.mf-floating-details-portal-panel.preco-medio-columns-list:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *))::-webkit-scrollbar,

body>.mf-floating-details-portal-panel.preco-medio-mark-config-panel:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *))::-webkit-scrollbar{width:9px!important;height:9px!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-list:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *))::-webkit-scrollbar-track,

body>.mf-floating-details-portal-panel.preco-medio-columns-list:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *))::-webkit-scrollbar-track,

body>.mf-floating-details-portal-panel.preco-medio-mark-config-panel:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *))::-webkit-scrollbar-track{background:#f8edf1!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-list:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *))::-webkit-scrollbar-thumb,

body>.mf-floating-details-portal-panel.preco-medio-columns-list:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *))::-webkit-scrollbar-thumb,

body>.mf-floating-details-portal-panel.preco-medio-mark-config-panel:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *))::-webkit-scrollbar-thumb{background:#c47b95!important;border:2px solid #f8edf1!important;border-radius:999px!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-option{display:flex!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-option:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  min-height:34px!important;align-items:center!important;gap:9px!important;padding:7px!important;border-radius:7px!important;
  color:#40383b!important;font-size:13px!important;font-weight:500!important;line-height:1.25!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-option:hover:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#fff4f7!important;color:#27272a!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-option input:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
body>.mf-floating-details-portal-panel.preco-medio-columns-list label>input[type="checkbox"]:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  appearance:none!important;-webkit-appearance:none!important;width:16px!important;min-width:16px!important;height:16px!important;min-height:16px!important;
  margin:0!important;padding:0!important;border:1px solid #a8a1a5!important;border-radius:3px!important;background:#fff!important;box-shadow:none!important;cursor:pointer!important;}
body>.mf-floating-details-portal-panel .compras-veiling-multiselect-option input:checked:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
body>.mf-floating-details-portal-panel.preco-medio-columns-list label>input[type="checkbox"]:checked:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  border-color:#a91d4d!important;background-color:#a91d4d!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.4 8.2 6.5 11l6.1-6.2' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-position:center!important;background-repeat:no-repeat!important;}

/* Selecionar colunas: explicação em largura útil; ações ficam em linha própria. */
body>.mf-floating-details-portal-panel.preco-medio-columns-list:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
body>.mf-floating-details-portal-panel.preco-medio-mark-config-panel:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  padding:10px!important;border:1px solid #e4d7dc!important;border-radius:10px!important;background:#fff!important;color:#27272a!important;
  box-shadow:0 14px 34px rgba(73,33,45,.14)!important;scrollbar-width:thin!important;scrollbar-color:#c47b95 #f8edf1!important;}
body>.mf-floating-details-portal-panel .preco-medio-columns-help{
  display:grid!important;}
body>.mf-floating-details-portal-panel .preco-medio-columns-help:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){grid-template-columns:1fr!important;gap:8px!important;align-items:start!important;
  margin:0 0 8px!important;padding:2px 2px 9px!important;border-bottom:1px solid #eee4e8!important;
  color:#5f565a!important;font-size:12px!important;font-weight:400!important;line-height:1.45!important;}
body>.mf-floating-details-portal-panel .preco-medio-columns-help>span:last-child{
  display:flex!important;}
body>.mf-floating-details-portal-panel .preco-medio-columns-help>span:last-child:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){justify-content:flex-end!important;gap:14px!important;white-space:normal!important;}
body>.mf-floating-details-portal-panel.preco-medio-columns-list label:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  min-height:36px!important;padding:6px!important;color:#40383b!important;font-size:13px!important;font-weight:500!important;line-height:1.3!important;}
body>.mf-floating-details-portal-panel.preco-medio-columns-list label:hover:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#fff4f7!important;}
body>.mf-floating-details-portal-panel .preco-medio-column-order-actions button:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;
  border:1px solid #e3d8dc!important;border-radius:7px!important;background:#fff!important;color:#5f565a!important;}
body>.mf-floating-details-portal-panel .preco-medio-column-order-actions button:hover:not(:disabled):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#fff4f7!important;border-color:#d6a7b7!important;color:#a91d4d!important;}
body>.mf-floating-details-portal-panel.preco-medio-mark-config-panel>strong:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){margin-bottom:8px!important;color:#27272a!important;font-size:13.5px!important;font-weight:600!important;}
body>.mf-floating-details-portal-panel.preco-medio-mark-config-panel label:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
body>.mf-floating-details-portal-panel.preco-medio-mark-config-panel .preco-medio-mark-config-row:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){color:#40383b!important;font-size:13px!important;font-weight:500!important;}
body>.mf-floating-details-portal-panel.preco-medio-mark-config-panel input:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){min-height:34px!important;border:1px solid #ded4d8!important;border-radius:7px!important;background:#fff!important;color:#27272a!important;font-size:13px!important;}
body>.mf-floating-details-portal-panel.preco-medio-mark-config-panel small:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){color:#71696d!important;font-size:12px!important;line-height:1.4!important;}

/* Lançamentos: contexto e edição formam um único conjunto coerente. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(.compras-google-sheets-connect-card,.compras-google-sheets-purchases):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#fff!important;border-color:#eadde2!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-sheet-context-summary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:12px 0 10px!important;padding:12px 14px!important;border:1px solid #eadde2!important;border-left:3px solid #c84a76!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-sheet-context-kicker:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#8a737b!important;font-size:10.5px!important;font-weight:600!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-sheet-context-copy strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#27272a!important;font-size:18px!important;font-weight:700!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-sheet-context-copy small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#71696d!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-sheet-context-status{display:inline-flex!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-sheet-context-status:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:28px!important;align-items:center!important;padding:0 9px!important;border:1px solid #e5d8dd!important;border-radius:999px!important;background:#fff!important;color:#8f5d00!important;font-size:12px!important;font-weight:600!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-sheet-context-status[data-state="ready"]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:#bfe1cc!important;background:#f2fbf5!important;color:#16804a!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-sheet-context-config:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:0 0 8px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid!important;grid-template-columns:minmax(410px,.95fr) minmax(430px,1.28fr) minmax(240px,.68fr)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:12px!important;align-items:end!important;padding:12px!important;border:1px solid #eadde2!important;border-radius:10px!important;background:#fff!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-context-fields:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-width:0!important;display:grid!important;grid-template-columns:minmax(290px,1.35fr) minmax(170px,.65fr)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-context-fields:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:10px!important;align-items:end!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(
  .compras-google-sheets-period-field,.compras-google-sheets-sector-field,.compras-google-sheets-sheet-field,.compras-google-sheets-service-field
){min-width:0!important;display:grid!important;grid-template-columns:1fr!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(
  .compras-google-sheets-period-field,.compras-google-sheets-sector-field,.compras-google-sheets-sheet-field,.compras-google-sheets-service-field
):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:5px!important;align-self:stretch!important;align-content:end!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-field-label{display:block!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(#compras-google-sheets-period-rule,#compras-google-sheets-sector-rule){display:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(.compras-google-sheets-sheet-control-group,.compras-google-sheets-service-compact):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:flex!important;min-width:0!important;overflow:visible!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(.compras-google-sheets-sheet-control-group,.compras-google-sheets-service-compact):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:36px!important;align-items:center!important;gap:6px!important;border:0!important;border-radius:0!important;background:transparent!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-sheet-control-group>.compras-google-sheets-current-info{flex:1 1 auto!important;min-width:0!important;display:flex!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-sheet-control-group>.compras-google-sheets-current-info:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:36px!important;min-height:36px!important;align-items:center!important;padding:0 10px!important;border:1px solid #ddd7da!important;border-radius:8px!important;background:#fff!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-current-info>strong{min-width:0!important;overflow:hidden!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-current-info>strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){text-overflow:ellipsis!important;white-space:nowrap!important;color:#343438!important;font-size:13px!important;font-weight:500!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(#compras-google-sheets-change,#compras-google-sheets-service-account-copy){flex:0 0 auto!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(#compras-google-sheets-change,#compras-google-sheets-service-account-copy):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:36px!important;min-height:36px!important;margin:0!important;border-radius:8px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-compact:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:0!important;color:#4b4548!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-display{flex:1 1 auto!important;min-width:0!important;display:flex!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-display:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:36px!important;align-items:center!important;gap:7px!important;padding:0 10px!important;border:1px solid #ddd7da!important;border-radius:8px!important;background:#fff!important;color:#4b4548!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-display>span{flex:1 1 auto!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-display>span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#4b4548!important;font-size:13px!important;font-weight:500!important;white-space:nowrap!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-account-hidden{display:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-status:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:flex!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-status:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-top:0!important;min-height:48px!important;padding:6px 8px 6px 12px!important;border:1px solid #eadde2!important;border-radius:10px!important;background:#fff!important;color:#5f565a!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel #compras-google-sheets-loaded-summary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:12px!important;font-weight:500!important;color:#625b60!important;}

/* Compras: título + indicadores no cabeçalho; abas e ações em uma toolbar única. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-head:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid!important;grid-template-columns:minmax(420px,1fr) auto!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-head:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:18px!important;align-items:center!important;margin:0 0 12px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary{display:grid!important;grid-template-columns:repeat(3,minmax(128px,1fr))!important;width:auto!important;overflow:hidden!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:stretch!important;gap:0!important;margin:0!important;border:1px solid #eccfda!important;border-radius:10px!important;background:#fff7f9!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary article{min-width:128px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary article:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:54px!important;padding:8px 11px!important;background:transparent!important;border:0!important;border-right:1px solid #eccfda!important;border-radius:0!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary article span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#776d71!important;font-size:11px!important;font-weight:500!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary article strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#8f1745!important;font-size:15px!important;font-weight:600!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary article:last-child:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-right:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-commandbar:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:flex!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-commandbar:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:54px!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 10px!important;padding:8px 10px!important;border:1px solid #eadde2!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-section-tabs:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:flex!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-section-tabs:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;padding:0!important;align-items:center!important;gap:6px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-section-tabs button:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:36px!important;height:36px!important;padding:0 13px!important;border-radius:8px!important;font-size:13px!important;font-weight:600!important;line-height:1.2!important;white-space:nowrap!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-actions:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:flex!important;flex:0 0 auto!important;min-width:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-actions:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center!important;justify-content:flex-end!important;gap:8px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel #compras-google-sheets-import-purchases{width:176px!important;min-width:176px!important;max-width:176px!important;flex:0 0 176px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel #compras-google-sheets-import-purchases:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:36px!important;min-height:36px!important;padding:0 12px!important;font-size:13px!important;font-weight:500!important;line-height:1.25!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel #compras-google-sheets-refresh{width:176px!important;min-width:176px!important;max-width:176px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel #compras-google-sheets-refresh:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){justify-content:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-table-font-control{flex:0 0 auto!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-table-font-control:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:36px!important;height:36px!important;border-radius:8px!important;color:#4b4548!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-table-font-control>span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-table-font-control output:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:13px!important;font-weight:600!important;line-height:1!important;color:#4b4548!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-table-font-control button:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:14px!important;font-weight:600!important;line-height:1!important;}

/* Status + busca/ordenação ficam dentro de uma mesma área operacional. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-tools:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid!important;grid-template-columns:1fr!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-tools:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:10px!important;align-items:center!important;margin-top:10px!important;padding:10px 12px!important;border:1px solid #eadde2!important;border-bottom:0!important;border-radius:10px 10px 0 0!important;background:#fff!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:100%!important;min-width:0!important;display:flex!important;overflow:visible!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){flex-wrap:wrap!important;gap:6px!important;padding:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs button:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){flex:0 0 auto!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs button:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:34px!important;height:34px!important;padding:0 11px!important;border-radius:8px!important;font-size:12px!important;font-weight:500!important;line-height:1.2!important;color:#3f3f46!important;background:var(--gs-filter-bg,#fff)!important;border-color:var(--gs-filter-border,#ded7da)!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs button strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-left:5px!important;font-size:12px!important;font-weight:600!important;color:var(--gs-filter-color,#7b314c)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs button.active:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-weight:600!important;background:var(--gs-filter-active-bg,var(--gs-filter-bg,#f6f2f4))!important;border-color:var(--gs-filter-active-border,var(--gs-filter-border,#bfaeb5))!important;box-shadow:inset 0 -2px 0 var(--gs-filter-color,#7b314c)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-all{--gs-filter-color:#7b314c;--gs-filter-bg:#fff;--gs-filter-border:#ded7da;--gs-filter-active-bg:#f6f2f4;--gs-filter-active-border:#bfaeb5;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-pending{--gs-filter-color:#c43548;--gs-filter-bg:#fff0f2;--gs-filter-border:#f0c1c8;--gs-filter-active-bg:#ffdce2;--gs-filter-active-border:#df8997;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-linked{--gs-filter-color:#8a294d;--gs-filter-bg:#f8eef2;--gs-filter-border:#dfbdca;--gs-filter-active-bg:#efd9e2;--gs-filter-active-border:#be8198;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-occurrence{--gs-filter-color:#6c4680;--gs-filter-bg:#f4eef9;--gs-filter-border:#d5c0e3;--gs-filter-active-bg:#e6d8f1;--gs-filter-active-border:#ae8bc6;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-cost-review{--gs-filter-color:#916100;--gs-filter-bg:#fff8e9;--gs-filter-border:#e7cf91;--gs-filter-active-bg:#ffedbf;--gs-filter-active-border:#cca84c;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-ready{--gs-filter-color:#237548;--gs-filter-bg:#edf8f1;--gs-filter-border:#b7dfc5;--gs-filter-active-bg:#d7efdf;--gs-filter-active-border:#79bb91;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-launched{--gs-filter-color:#17675f;--gs-filter-bg:#e9f6f3;--gs-filter-border:#acd8d1;--gs-filter-active-bg:#d0ebe5;--gs-filter-active-border:#69aea4;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-manual{--gs-filter-color:#2d66a1;--gs-filter-bg:#edf5fd;--gs-filter-border:#c2daf1;--gs-filter-active-bg:#d9eafb;--gs-filter-active-border:#86b2dd;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-ignored{--gs-filter-color:#686164;--gs-filter-bg:#f5f4f4;--gs-filter-border:#d9d4d6;--gs-filter-active-bg:#e8e5e6;--gs-filter-active-border:#b8afb2;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-search:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:100%!important;display:grid!important;grid-template-columns:minmax(320px,1fr) minmax(190px,230px) auto!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-search:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;gap:8px!important;align-items:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-search-box{min-width:0!important;}

/* 0.0.338: filtros e tabela formam uma única superfície operacional. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-tools + #compras-google-sheets-link-message[hidden] + .compras-google-sheets-link-table-wrap:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-tools + #compras-google-sheets-link-message + .compras-google-sheets-link-table-wrap:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){
  margin-top:0!important;border:1px solid #eadde2!important;border-top:1px solid #eadde2!important;border-radius:0 0 10px 10px!important;background:#fff!important;overflow:auto!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-top:0!important;}

/* Cabeçalhos e scroll da grade no rosa já aprovado. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#f0dce4!important;color:#27272a!important;border-color:#e2cdd5!important;font-size:12px!important;font-weight:600!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-group-head th:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#fff0f4!important;color:#3f3f46!important;border-color:#ead8df!important;font-size:12px!important;font-weight:600!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table-wrap:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){scrollbar-width:thin!important;scrollbar-color:#bd718d #f8edf1!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table-wrap::-webkit-scrollbar:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:10px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table-wrap:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar{height:10px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table-wrap:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-track{background:#f8edf1!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table-wrap:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-thumb{background:#bd718d!important;border:2px solid #f8edf1!important;border-radius:999px!important;}

@media(max-width:1380px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-head:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:1fr!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){justify-self:start!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-commandbar:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){flex-wrap:wrap!important;}
}
@media(max-width:1180px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:minmax(360px,1fr) minmax(390px,1.05fr)!important;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-field{grid-column:1/-1!important;}

}
@media(max-width:860px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:1fr!important;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-context-fields:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:minmax(0,1.4fr) minmax(130px,.6fr)!important;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel #compras-google-sheets-refresh,
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel #compras-google-sheets-import-purchases{width:auto!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-search:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:1fr!important;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary{grid-template-columns:1fr!important;width:100%!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-commandbar:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:flex-start!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-actions:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){justify-content:flex-start!important;flex-wrap:wrap!important;}
}

/* Dark: mesmas hierarquias e cores sem voltar ao preto chapado. */
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel.compras-veiling-multiselect-panel:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel.preco-medio-columns-list:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel.preco-medio-mark-config-panel:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  background:#2b2b31!important;
  border-color:#45454d!important;
  color:#f4f4f5!important;}
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel .compras-veiling-multiselect-search:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  background:#2b2b31!important;
  color:#f4f4f5!important;
  border-bottom-color:#45454d!important;}
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel .compras-veiling-multiselect-search:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *))::placeholder{color:#a1a1aa!important;}
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel .compras-veiling-multiselect-actions:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){
  background:#303037!important;
  border-bottom-color:#45454d!important;}
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel :is(.compras-veiling-multiselect-option,.preco-medio-columns-help,.preco-medio-columns-list label,.preco-medio-mark-config-panel label,.preco-medio-mark-config-panel .preco-medio-mark-config-row):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){color:#e8e8eb!important;}
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel .compras-veiling-multiselect-option:hover:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel.preco-medio-columns-list label:hover:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#37323a!important;}
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel .compras-veiling-multiselect-option input:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel.preco-medio-columns-list label>input[type="checkbox"]:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#242429!important;border-color:#777781!important;}
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel .compras-veiling-multiselect-option input:checked:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)),
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel.preco-medio-columns-list label>input[type="checkbox"]:checked:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background-color:#c74473!important;border-color:#c74473!important;}
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel :is(.compras-veiling-multiselect-list,.preco-medio-columns-list,.preco-medio-mark-config-panel):where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){scrollbar-color:#a65070 #29282d!important;}
:root[data-marflores-theme="dark"] body>.mf-floating-details-portal-panel.preco-medio-mark-config-panel input:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){background:#303037!important;border-color:#45454d!important;color:#f4f4f5!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel :is(.compras-google-sheets-connect-card,.compras-google-sheets-purchases):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#242429!important;border-color:#414149!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-sheet-context-summary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#242429!important;border-color:#414149!important;border-left-color:#d0648b!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-sheet-context-copy strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#f4f4f5!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-sheet-context-copy small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#b4b4bd!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#201d21!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-display:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#303037!important;border-color:#4a4a52!important;color:#f4f4f5!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-display>span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#f4f4f5!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel :is(.compras-google-sheets-sheet-control-group,.compras-google-sheets-service-compact):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#303037!important;border-color:#4a4a52!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-current-info>strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-compact>span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#f4f4f5!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel :is(.compras-google-sheets-sheet-control-group>#compras-google-sheets-change,#compras-google-sheets-service-account-copy):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#303037!important;border-color:#4a4a52!important;color:#e4e4e7!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel :is(.compras-google-sheets-sheet-control-group>#compras-google-sheets-change,#compras-google-sheets-service-account-copy):hover:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#3b202b!important;color:#f3a3bc!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-status:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#242429!important;border-color:#414149!important;color:#b4b4bd!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary article:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#3b202b!important;border-color:#573243!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary article span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#c7bdc2!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary article strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#f3a3bc!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs button:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#e4e4e7!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-all{--gs-filter-bg:#303037;--gs-filter-border:#4b4b54;--gs-filter-active-bg:#3a3438;--gs-filter-active-border:#7b5d68;--gs-filter-color:#e58aaa;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-pending{--gs-filter-bg:#3b2429;--gs-filter-border:#63323b;--gs-filter-active-bg:#4b2931;--gs-filter-active-border:#9a4c5c;--gs-filter-color:#ff8da0;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-linked{--gs-filter-bg:#39252e;--gs-filter-border:#5a3644;--gs-filter-active-bg:#472b37;--gs-filter-active-border:#8d536b;--gs-filter-color:#f08bb1;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-occurrence{--gs-filter-bg:#30293a;--gs-filter-border:#50445e;--gs-filter-active-bg:#3c304a;--gs-filter-active-border:#76618a;--gs-filter-color:#c7a3db;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-cost-review{--gs-filter-bg:#39301f;--gs-filter-border:#5b4b2c;--gs-filter-active-bg:#493c23;--gs-filter-active-border:#826936;--gs-filter-color:#f4c568;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-ready{--gs-filter-bg:#20352a;--gs-filter-border:#355843;--gs-filter-active-bg:#294537;--gs-filter-active-border:#4a7c5e;--gs-filter-color:#7ed6a3;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-launched{--gs-filter-bg:#203633;--gs-filter-border:#355b56;--gs-filter-active-bg:#294743;--gs-filter-active-border:#4a8178;--gs-filter-color:#80d9cf;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-manual{--gs-filter-bg:#213143;--gs-filter-border:#38516b;--gs-filter-active-bg:#293d54;--gs-filter-active-border:#54779c;--gs-filter-color:#87b9e9;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-tabs .status-ignored{--gs-filter-bg:#303033;--gs-filter-border:#4a4a4f;--gs-filter-active-bg:#3b3b3f;--gs-filter-active-border:#6a6a70;--gs-filter-color:#c4c4ca;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#3a2730!important;color:#f4f4f5!important;border-color:#563746!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-group-head th:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#30232a!important;color:#ded7db!important;border-color:#4b343e!important;}
:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table-wrap:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){scrollbar-color:#a65070 #252328!important;}

@media(max-width:1280px){
  #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:minmax(250px,1fr) minmax(150px,.6fr) minmax(340px,1.2fr)!important;}
  #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-compact:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-column:1 / 3!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-compact:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){justify-self:start!important;}
  #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary{grid-template-columns:repeat(3,minmax(110px,1fr))!important;}
  #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-actions{grid-column:1 / -1!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-actions:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){justify-self:end!important;}
}
@media(max-width:860px){
  #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:1fr!important;}
  #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-compact:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-column:auto!important;width:100%!important;}
  #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-summary{grid-template-columns:1fr 1fr!important;}
  #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-actions{grid-column:1 / -1!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-actions:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){justify-self:stretch!important;}
  #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-purchases-search:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:100%!important;grid-template-columns:1fr!important;}
  body>.mf-floating-details-portal-panel .preco-medio-columns-help:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){grid-template-columns:1fr!important;}
  body>.mf-floating-details-portal-panel .preco-medio-columns-help>span:last-child:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)){white-space:normal!important;}
}

/* ============================================================
   0.0.339 • HOMOLOGAÇÃO — acabamento pós-revisão da 0.0.338
   Escopo visual: escala da tabela de Lançamentos, aproveitamento
   vertical Intermediação/Klok, scrollbars e sidebar recolhida.
   Nenhuma regra funcional, endpoint ou persistência é alterada.
   ============================================================ */

/* A escala A−/A+ de Lançamentos volta a comandar a tipografia real da grade.
   A 0.0.338 fixava th/td em px depois da variável e anulava o efeito visual. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table thead th:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:calc(12px * var(--compras-google-sheets-table-font-scale,1))!important;line-height:1.35!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:calc(13px * var(--compras-google-sheets-table-font-scale,1))!important;line-height:1.4!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:calc(11.5px * var(--compras-google-sheets-table-font-scale,1))!important;line-height:1.3!important;}

/* 0.0.546 — Extrato: altura, tabela e scrollbar migrados integralmente para
   marflores-tailadmin.css. Removida a pele histórica marsala deste arquivo. */

/* Sidebar recolhida: tooltip/flyout ficam acima do workspace e ganham respiro real. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-nav{
  z-index:300!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-item[data-menu-label]::after{
  left:54px!important;
  z-index:330!important;
  padding:7px 9px!important;
  border-radius:7px!important;
  background:#342f32!important;
  box-shadow:0 8px 22px rgba(37,25,30,.18)!important;
  font-size:11px!important;
  line-height:1.2!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-group .compras-side-submenu{
  left:40px!important;
  top:-4px!important;
  z-index:330!important;
  width:236px!important;
  padding:9px!important;
  border-radius:11px!important;
  box-shadow:0 18px 40px rgba(37,25,30,.18)!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-group .compras-side-submenu::after{
  left:-18px!important;
  width:20px!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-group .compras-side-submenu::before{
  padding:4px 8px 9px!important;
  margin-bottom:4px!important;
  font-size:12px!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-app-shell[data-collapsed="true"] .compras-side-group .compras-side-submenu button{
  min-height:36px!important;
  padding:0 8px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* Lançamentos: elimina o vazio herdado do antigo service-compact max-content.
   A conta de serviço ocupa sua coluna desde o início, como campo irmão da Planilha. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-field{min-width:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-compact:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:100%!important;max-width:none!important;min-width:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-compact:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){justify-self:stretch!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-display{min-width:0!important;flex:1 1 auto!important;}
/* Lançamentos: grade 0.0.435 com coluna BASE dedicada.
   O estado físico não disputa espaço com o nome do produto. */
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:100%!important;min-width:1300px!important;table-layout:auto!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(1):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:38px!important;min-width:38px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(2):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:62px!important;min-width:62px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(3):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:108px!important;min-width:108px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(4):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:21%!important;min-width:245px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(5):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:88px!important;min-width:88px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(6):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:88px!important;min-width:88px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(7):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:22%!important;min-width:270px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(8):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:78px!important;min-width:78px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(9):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:92px!important;min-width:92px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(10):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:118px!important;min-width:118px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(11):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:110px!important;min-width:110px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(12):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:96px!important;min-width:96px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(13):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:126px!important;min-width:126px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table :is(th,td):nth-child(4):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table :is(th,td):nth-child(7):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){overflow-wrap:anywhere!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table :is(th,td):is(:nth-child(1),:nth-child(2),:nth-child(3),:nth-child(5),:nth-child(6),:nth-child(8),:nth-child(9),:nth-child(10),:nth-child(11),:nth-child(12),:nth-child(13)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){white-space:nowrap!important;}
#view-compras-veiling .compras-google-sheets-base-head:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling .compras-google-sheets-base-cell:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){text-align:center!important;}
#view-compras-veiling .compras-google-sheets-base-state{display:inline-flex;min-width:54px;}
#view-compras-veiling .compras-google-sheets-base-state:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center;justify-content:center;height:22px;padding:0 7px;border:1px solid var(--mf-line);border-radius:999px;background:var(--mf-subtle);color:var(--mf-muted);font-size:9.5px;font-weight:700;line-height:1;white-space:nowrap;}
#view-compras-veiling .compras-google-sheets-base-state.create:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:#f0b6c8;background:#fff0f5;color:#a90d40;}
#view-compras-veiling .compras-google-sheets-base-state.in-base:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:#b7ddc7;background:#edf9f2;color:#26744f;}
#view-compras-veiling .compras-google-sheets-base-state.neutral{min-width:0;}
#view-compras-veiling .compras-google-sheets-base-state.neutral:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:transparent;background:transparent;color:var(--mf-muted);font-weight:500;}

/* Contexto Google: dois campos compostos alinhados na mesma régua.
   O botão TROCAR LINK pertence ao bloco Planilha; COPIAR pertence ao
   bloco Conta de serviço, com geometria equivalente. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:minmax(450px,1.02fr) minmax(520px,1.25fr) minmax(330px,.73fr)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){column-gap:10px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-sheet-control-group{display:grid!important;grid-template-columns:minmax(0,1fr) 118px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-sheet-control-group:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:8px!important;align-items:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-compact:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid!important;grid-template-columns:minmax(0,1fr) 84px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-compact:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:8px!important;align-items:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(#compras-google-sheets-change,#compras-google-sheets-service-account-copy){width:100%!important;min-width:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(#compras-google-sheets-change,#compras-google-sheets-service-account-copy):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){justify-content:center!important;}

/* -------- Família única de modais do módulo Compras -------- */
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog,
  #compras-veiling-manual-average-dialog,
  #compras-veiling-average-detail-dialog
):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){box-sizing:border-box!important;padding:0!important;border:0!important;border-radius:14px!important;background:transparent!important;color:#27272a!important;font-family:var(--mf-ui-font)!important;box-shadow:0 24px 64px rgba(51,31,39,.22)!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog,
  #compras-veiling-manual-average-dialog,
  #compras-veiling-average-detail-dialog
):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::backdrop{background:rgba(39,31,35,.34)!important;backdrop-filter:blur(2px)!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:min(760px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){max-height:88vh!important;}
#compras-google-sheets-create-product-dialog:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:min(860px,calc(100vw - 32px))!important;}
#compras-veiling-manual-average-dialog{width:min(760px,calc(100vw - 32px))!important;max-height:88vh!important}
#compras-veiling-average-detail-dialog{width:min(1180px,calc(100vw - 32px))!important;max-height:88vh!important}

/* Card/shell: mesma superfície, borda e raio em todas as famílias históricas. */
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
)>.mf-dialog-card,
#compras-veiling-manual-average-dialog>.preco-medio-detail-card,
#compras-veiling-average-detail-dialog>.preco-medio-detail-card{overflow:hidden!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
)>.mf-dialog-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-veiling-manual-average-dialog>.preco-medio-detail-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-veiling-average-detail-dialog>.preco-medio-detail-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:100%!important;max-width:100%!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
)>.mf-dialog-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-veiling-manual-average-dialog>.preco-medio-detail-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-veiling-average-detail-dialog>.preco-medio-detail-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){max-height:88vh!important;box-sizing:border-box!important;margin:0!important;border:1px solid #eadde2!important;border-radius:14px!important;background:#fff!important;color:#27272a!important;box-shadow:none!important;font:400 13px/1.45 var(--mf-ui-font)!important;}

/* Cabeçalho modal: mesma hierarquia das telas principais. */
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-head:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-head:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-head:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-head:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:72px!important;box-sizing:border-box!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;padding:16px 18px!important;border-bottom:1px solid #eadde2!important;background:#fff!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-head>div:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-head>div:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-width:0!important;display:grid!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-head>div:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-head>div:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:3px!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-head h3:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-head h2:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;color:#27272a!important;font-size:19px!important;font-weight:600!important;line-height:1.25!important;letter-spacing:-.01em!important;}
:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-head>div>span{
  color:#9f4766!important;
  font-size:10.5px!important;
  font-weight:600!important;
  line-height:1.25!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-head p:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-head p:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:1px 0 0!important;color:#71696d!important;font-size:12px!important;font-weight:400!important;line-height:1.4!important;}

/* Fechar: mesma caixa e mesmo peso de ícone. */
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-close:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-close:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){flex:0 0 36px!important;width:36px!important;min-width:36px!important;display:grid!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-close:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-close:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:36px!important;min-height:36px!important;place-items:center!important;padding:0!important;border:1px solid #ded8db!important;border-radius:9px!important;background:#fff!important;color:#6b6266!important;box-shadow:none!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-close:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-close:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:#cbaab6!important;background:#fff7fa!important;color:#a91d4d!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog,
  #compras-veiling-manual-average-dialog,
  #compras-veiling-average-detail-dialog
) :is(.mf-dialog-close,.preco-medio-detail-close) svg:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:18px!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog,
  #compras-veiling-manual-average-dialog,
  #compras-veiling-average-detail-dialog
) :is(.mf-dialog-close,.preco-medio-detail-close) svg:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:18px!important;stroke-width:1.7!important;}

/* Corpo, campos e mensagens. */
/* Corpo, campos e mensagens. */
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:auto!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:18px!important;gap:12px!important;background:#fff!important;scrollbar-width:thin!important;scrollbar-color:#bd718d #f8edf1!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .field>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#5f565a!important;font-size:12px!important;font-weight:500!important;line-height:1.35!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .field :is(input,select):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:38px!important;border:1px solid #ddd7da!important;border-radius:8px!important;background:#fff!important;color:#27272a!important;font:500 13px/1.3 var(--mf-ui-font)!important;box-shadow:none!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .field>small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#71696d!important;font-size:11.5px!important;font-weight:400!important;line-height:1.4!important;}

/* Ações: somente as duas famílias canônicas (neutro / marsala). */
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-actions:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-actions:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:62px!important;box-sizing:border-box!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;padding:12px 18px!important;border-top:1px solid #eadde2!important;background:#fff!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-actions .v6-btn:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:36px!important;padding:0 14px!important;border:1px solid #ddd7da!important;border-radius:8px!important;background:#fff!important;color:#3f3f46!important;font:600 12.5px/1.2 var(--mf-ui-font)!important;box-shadow:none!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-actions .v6-btn.primary:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:#b01b50!important;background:#b01b50!important;color:#fff!important;}
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-actions .v6-btn.primary:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:#941642!important;background:#941642!important;}

/* KLOK: resumo agrupado e tabela na mesma régua visual de Lançamentos. */
:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-summary{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  margin:14px 18px!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #eadde2!important;
  border-radius:10px!important;
  background:#fff7f9!important;
}
:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-summary article{
  min-height:58px!important;
  box-sizing:border-box!important;
  display:grid!important;
  align-content:center!important;
  gap:3px!important;
  padding:9px 12px!important;
  border:0!important;
  border-right:1px solid #eadde2!important;
  border-radius:0!important;
  background:transparent!important;
}
:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-summary article:last-child{border-right:0!important}
:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-summary article>span{
  color:#776d71!important;font-size:10.5px!important;font-weight:500!important;line-height:1.25!important;letter-spacing:0!important;text-transform:none!important;
}
:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-summary article>strong{
  margin:0!important;color:#8f1745!important;font-size:15px!important;font-weight:600!important;line-height:1.25!important;
}
#compras-veiling-average-detail-dialog .preco-medio-detail-table-wrap{
  min-height:180px!important;
  max-height:48vh!important;
  overflow:auto!important;
  border-top:1px solid #eadde2!important;
  border-bottom:1px solid #eadde2!important;
  scrollbar-width:thin!important;
  scrollbar-color:#bd718d #f8edf1!important;
}
#compras-veiling-average-detail-dialog .preco-medio-detail-table{width:100%!important;border-collapse:collapse!important;font:400 13px/1.4 var(--mf-ui-font)!important}
#compras-veiling-average-detail-dialog .preco-medio-detail-table th{
  height:36px!important;padding:0 10px!important;background:#f0dce4!important;color:#27272a!important;border-color:#e2cdd5!important;font-size:12px!important;font-weight:600!important;line-height:1.25!important;
}
#compras-veiling-average-detail-dialog .preco-medio-detail-table td{
  padding:9px 10px!important;background:#fff!important;color:#3f3f46!important;border-color:#eeeeef!important;font-size:13px!important;font-weight:400!important;line-height:1.4!important;
}
#compras-veiling-average-detail-dialog .preco-medio-detail-table tbody tr:hover td{background:#fffafb!important}
:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-formula{
  margin:0!important;padding:13px 18px 15px!important;border-top:0!important;background:#fff!important;color:#5f565a!important;font-size:12px!important;font-weight:500!important;line-height:1.45!important;
}
#compras-veiling-manual-average-dialog .compras-veiling-manual-average-actions{
  display:flex!important;justify-content:flex-end!important;padding:12px 18px!important;border-top:1px solid #eadde2!important;background:#fff!important;
}
#compras-veiling-manual-average-dialog .compras-veiling-manual-average-actions .secondary-button{
  min-height:36px!important;padding:0 14px!important;border-radius:8px!important;font-size:12.5px!important;font-weight:600!important;
}

/* Detalhes e avisos de Lançamentos deixam de parecer microtexto legado. */
:is(#compras-google-sheets-cost-review-dialog,#compras-google-sheets-multiplier-review-dialog) .compras-google-sheets-cost-review-details article:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:11px 12px!important;border-color:#eadde2!important;border-radius:9px!important;background:#fff!important;}
:is(#compras-google-sheets-cost-review-dialog,#compras-google-sheets-multiplier-review-dialog) .compras-google-sheets-cost-review-details article>span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#776d71!important;font-size:11px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important;}
:is(#compras-google-sheets-cost-review-dialog,#compras-google-sheets-multiplier-review-dialog) .compras-google-sheets-cost-review-details article>strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#27272a!important;font-size:13.5px!important;font-weight:600!important;}
:is(#compras-google-sheets-cost-review-dialog,#compras-google-sheets-multiplier-review-dialog) :is(.compras-google-sheets-cost-review-reason,.compras-google-sheets-cost-review-note,.compras-google-sheets-cost-review-blocked):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:12px!important;line-height:1.45!important;}
:is(#compras-google-sheets-cost-review-dialog,#compras-google-sheets-multiplier-review-dialog) .compras-google-sheets-cost-review-option strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:13px!important;font-weight:600!important;color:#27272a!important;}
:is(#compras-google-sheets-cost-review-dialog,#compras-google-sheets-multiplier-review-dialog) .compras-google-sheets-cost-review-option small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:11.5px!important;line-height:1.4!important;color:#71696d!important;}

@media(max-width:1380px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:minmax(400px,1fr) minmax(470px,1.15fr)!important;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-service-field{grid-column:1/-1!important;}
}
@media(max-width:760px){
  :is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-summary{grid-template-columns:1fr 1fr!important}
:is(
    #compras-google-sheets-route-dialog,
    #compras-google-sheets-cost-review-dialog,
    #compras-google-sheets-multiplier-review-dialog,
    #compras-google-sheets-create-product-dialog,
    #compras-google-sheets-batch-dialog
  ) .mf-dialog-actions:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){flex-wrap:wrap!important;}
}

/* 0.0.340: salvaguarda do dark existente — a auditoria acima é do tema claro;
   no dark apenas reaplicamos tokens já existentes, sem redesenhar a variante. */
:root[data-marflores-theme="dark"] :is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog,
  #compras-veiling-manual-average-dialog,
  #compras-veiling-average-detail-dialog
):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-text)!important;}
:root[data-marflores-theme="dark"] :is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog,
  #compras-veiling-manual-average-dialog,
  #compras-veiling-average-detail-dialog
) :is(
  .mf-dialog-card,.preco-medio-detail-card,.mf-dialog-head,.preco-medio-detail-head,
  .mf-dialog-body,.mf-dialog-actions,.preco-medio-detail-formula,.compras-veiling-manual-average-actions,
  .preco-medio-detail-summary,.preco-medio-detail-summary article
):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;}
:root[data-marflores-theme="dark"] #compras-veiling-average-detail-dialog .preco-medio-detail-table th{background:var(--mf-subtle)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important}
:root[data-marflores-theme="dark"] #compras-veiling-average-detail-dialog .preco-medio-detail-table td{background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:var(--mf-line)!important}

/* ============================================================
   0.0.341 • HOMOLOGAÇÃO — fechamento visual pós-revisão 0.0.340
   Escopo: alinhamento do contexto Google, títulos de dialogs e
   altura adaptativa da composição KLOK. Sem regra funcional.
   ============================================================ */

/* Contexto Google: quatro colunas reais na régua desktop.
   TROCAR LINK pertence a Planilha; COPIAR pertence a Conta de serviço. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:minmax(250px,.9fr) minmax(150px,.55fr) minmax(400px,1.45fr) minmax(300px,1.1fr)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){column-gap:10px!important;row-gap:10px!important;align-items:end!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-context-fields:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:contents!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(
  .compras-google-sheets-period-field,
  .compras-google-sheets-sector-field,
  .compras-google-sheets-sheet-field,
  .compras-google-sheets-service-field
){min-width:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(
  .compras-google-sheets-period-field,
  .compras-google-sheets-sector-field,
  .compras-google-sheets-sheet-field,
  .compras-google-sheets-service-field
):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-self:end!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(
  .compras-google-sheets-sheet-control-group,
  .compras-google-sheets-service-compact
){width:100%!important;min-width:0!important;}

/* Título principal: mesma régua em todos os dialogs auditados. */
:is(
  #compras-google-sheets-route-dialog,
  #compras-google-sheets-cost-review-dialog,
  #compras-google-sheets-multiplier-review-dialog,
  #compras-google-sheets-create-product-dialog,
  #compras-google-sheets-batch-dialog
) .mf-dialog-head h3:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),:is(#compras-veiling-manual-average-dialog,#compras-veiling-average-detail-dialog) .preco-medio-detail-head h2:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;font-family:var(--mf-ui-font)!important;font-size:18px!important;font-weight:600!important;line-height:1.25!important;letter-spacing:-.01em!important;color:#27272a!important;}

/* Composição KLOK: cresce conforme as linhas e só passa a rolar no limite. */
#compras-veiling-average-detail-dialog .preco-medio-detail-table-wrap{
  height:auto!important;
  min-height:0!important;
  max-height:min(48vh,420px)!important;
  overflow:auto!important;
}

@media(max-width:1380px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:minmax(320px,1fr) minmax(190px,.58fr)!important;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-context-fields:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:contents!important;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(.compras-google-sheets-sheet-field,.compras-google-sheets-service-field){grid-column:1/-1!important;}
}
@media(max-width:860px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:1fr!important;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(.compras-google-sheets-period-field,.compras-google-sheets-sector-field,.compras-google-sheets-sheet-field,.compras-google-sheets-service-field){grid-column:auto!important;}
}

/* ============================================================
   0.0.342 • HOMOLOGAÇÃO — alinhamento geométrico do contexto Google
   Escopo único: todos os labels e controles da faixa Ciclo / Setor /
   Planilha / Conta de serviço compartilham exatamente a mesma régua.
   ============================================================ */

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){--mf-gs-context-label-height:16px;--mf-gs-context-control-height:36px;--mf-gs-context-row-gap:5px;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-operational-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:start!important;}

/* A causa do desalinhamento era cada campo compor label+controle de forma
   independente. Aqui todos passam a usar as mesmas duas linhas geométricas. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(
  .compras-google-sheets-period-field,
  .compras-google-sheets-sector-field,
  .compras-google-sheets-sheet-field,
  .compras-google-sheets-service-field
){display:grid!important;grid-template-rows:var(--mf-gs-context-label-height) var(--mf-gs-context-control-height)!important;min-width:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(
  .compras-google-sheets-period-field,
  .compras-google-sheets-sector-field,
  .compras-google-sheets-sheet-field,
  .compras-google-sheets-service-field
):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){row-gap:var(--mf-gs-context-row-gap)!important;min-height:calc(var(--mf-gs-context-label-height) + var(--mf-gs-context-row-gap) + var(--mf-gs-context-control-height))!important;align-self:start!important;align-content:start!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(
  .compras-google-sheets-period-field>span:first-child,
  .compras-google-sheets-sector-field>span:first-child,
  .compras-google-sheets-sheet-field>.compras-google-sheets-field-label,
  .compras-google-sheets-service-field>.compras-google-sheets-field-label
){display:flex!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(
  .compras-google-sheets-period-field>span:first-child,
  .compras-google-sheets-sector-field>span:first-child,
  .compras-google-sheets-sheet-field>.compras-google-sheets-field-label,
  .compras-google-sheets-service-field>.compras-google-sheets-field-label
):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){box-sizing:border-box!important;height:var(--mf-gs-context-label-height)!important;min-height:var(--mf-gs-context-label-height)!important;margin:0!important;padding:0!important;align-items:flex-end!important;line-height:var(--mf-gs-context-label-height)!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(
  #compras-google-sheets-period,
  #compras-google-sheets-work-sector,
  .compras-google-sheets-sheet-control-group,
  .compras-google-sheets-service-compact
){width:100%!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(
  #compras-google-sheets-period,
  #compras-google-sheets-work-sector,
  .compras-google-sheets-sheet-control-group,
  .compras-google-sheets-service-compact
):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){box-sizing:border-box!important;height:var(--mf-gs-context-control-height)!important;min-height:var(--mf-gs-context-control-height)!important;max-height:var(--mf-gs-context-control-height)!important;margin:0!important;align-self:start!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-google-sheets-panel :is(
  .compras-google-sheets-current-info,
  #compras-google-sheets-change,
  .compras-google-sheets-service-display,
  #compras-google-sheets-service-account-copy
):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){box-sizing:border-box!important;height:var(--mf-gs-context-control-height)!important;min-height:var(--mf-gs-context-control-height)!important;max-height:var(--mf-gs-context-control-height)!important;margin-top:0!important;margin-bottom:0!important;}

/* Rich Text da célula BASE: controles mínimos com os tokens HML existentes. */
#view-compras-veiling .compras-rich-toolbar:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex;}
#view-compras-veiling .compras-rich-toolbar:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){flex-wrap:wrap;gap:8px;margin:6px 0;}
#view-compras-veiling .compras-rich-preview:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:36px;padding:8px 10px;border:1px solid var(--mf-line);border-radius:8px;background:var(--mf-subtle);color:var(--mf-text);white-space:pre-wrap;overflow-wrap:anywhere;}
#view-compras-veiling .compras-rich-preview .compras-rich-red:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-danger);}
#view-compras-veiling .compras-google-sheets-link-target [data-edit-sheet-text]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-top:6px;}#view-compras-veiling .compras-launch-choice{display:grid;}
#view-compras-veiling .compras-launch-choice:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border:1px solid var(--mf-line);border-radius:10px;padding:12px;gap:8px;}
#view-compras-veiling .compras-launch-choice[hidden]{display:none}
#view-compras-veiling .compras-launch-choice legend:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-weight:700;color:var(--mf-text);padding:0 5px;}
#view-compras-veiling .compras-launch-choice p:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0;color:var(--mf-muted);}
#view-compras-veiling .compras-launch-choice label{display:flex;}
#view-compras-veiling .compras-launch-choice label:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:flex-start;gap:9px;color:var(--mf-text);}
#view-compras-veiling .compras-launch-choice label span{display:grid;}
#view-compras-veiling .compras-launch-choice label span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:2px;}
#view-compras-veiling .compras-launch-choice small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted);}
#view-compras-veiling .compras-google-sheets-rich-edit:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border:0;background:none;color:var(--mf-accent);font-size:11px;padding:4px 0;cursor:pointer;}

/* ========================================================================== 
   MARFLORES WEB — 0.0.344 HOMOLOGAÇÃO
   Hotfix UX: modal de criação, Rich Text, multiplicador e forma de lançamento.
   ========================================================================== */

/* O botão visual não pode vencer o atributo hidden. */
#compras-google-sheets-create-product-use-generic[hidden]{display:none!important}

/* Criar produto: cabeçalho/rodapé ficam fixos e somente o corpo rola. */
#view-compras-veiling #compras-google-sheets-create-product-dialog:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){max-height:92vh!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog>.mf-dialog-card{overflow:hidden!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog>.mf-dialog-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog>.mf-dialog-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){flex-direction:column!important;max-height:92vh!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-head:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-actions:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){flex:0 0 auto!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body{overflow-x:hidden!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow-y:auto!important;overflow-x:hidden!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){flex:1 1 auto!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:0!important;gap:7px!important;padding:10px 14px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-google-sheets-create-product-details article:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:6px 9px!important;gap:1px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-rich-toolbar:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:2px 0!important;gap:6px!important;align-items:center!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-rich-preview:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:34px!important;padding:7px 10px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-launch-choice:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:7px 9px!important;gap:5px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-google-sheets-create-product-learn:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:6px 9px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-google-sheets-create-product-naming:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:6px 9px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-google-sheets-create-product-placement:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:9px 10px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-google-sheets-create-product-note:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:8px 10px!important;}

/* Scrollbars discretas somente nas superfícies novas/locais. */
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling .compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){scrollbar-width:thin!important;scrollbar-color:#c8bcc1 transparent!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar,#view-compras-veiling .compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar{width:6px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar,#view-compras-veiling .compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar{height:6px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-track,#view-compras-veiling .compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-track{background:transparent!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-thumb,#view-compras-veiling .compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-thumb{border-radius:999px!important;background:#c8bcc1!important;}

/* Editor da célula: lápis ao lado da ação de vínculo, sem criar segunda linha. */
#view-compras-veiling .compras-google-sheets-link-inline-button.rich-text-edit:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){flex:0 0 34px!important;width:34px!important;min-width:34px!important;}
#view-compras-veiling .compras-google-sheets-link-inline-button.rich-text-edit:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:34px!important;min-height:34px!important;padding:0!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-surface)!important;color:var(--mf-muted)!important;}
#view-compras-veiling .compras-google-sheets-link-inline-button.rich-text-edit:hover:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:var(--mf-accent)!important;background:var(--mf-accent-soft)!important;color:var(--mf-accent)!important;}
#view-compras-veiling .compras-google-sheets-link-inline-button.rich-text-edit .compras-google-sheets-action-icon:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:16px!important;}
#view-compras-veiling .compras-google-sheets-link-inline-button.rich-text-edit .compras-google-sheets-action-icon:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:16px!important;}

/* Multiplicador: valor na primeira linha, ação compacta logo abaixo. */
#view-compras-veiling .compras-google-sheets-multiplier-cell{display:grid!important;}
#view-compras-veiling .compras-google-sheets-multiplier-cell:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){justify-items:end!important;align-content:center!important;gap:2px!important;line-height:1.2!important;}
#view-compras-veiling .compras-google-sheets-multiplier-change{display:block!important;}
#view-compras-veiling .compras-google-sheets-multiplier-change:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;padding:1px 0!important;border:0!important;background:transparent!important;color:var(--mf-accent)!important;font:500 10.5px/1.2 var(--mf-ui-font)!important;cursor:pointer!important;white-space:nowrap!important;}
#view-compras-veiling .compras-google-sheets-multiplier-change:hover:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){text-decoration:underline!important;text-underline-offset:2px!important;}

/* Forma de lançamento: mantém o modal atual e usa melhor o espaço com tipografia maior. */
#view-compras-veiling #compras-launch-choice-dialog .mf-dialog-head h3:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;font-size:20px!important;line-height:1.25!important;font-weight:650!important;color:var(--mf-text)!important;}
#view-compras-veiling #compras-launch-choice-dialog .mf-dialog-head p:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:3px 0 0!important;font-size:13.5px!important;line-height:1.4!important;color:var(--mf-muted)!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:10px!important;padding:14px!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice>p:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:14px!important;line-height:1.4!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice label:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:10px!important;font-size:14px!important;line-height:1.35!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice label strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:15px!important;line-height:1.3!important;font-weight:650!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling #compras-launch-choice-dialog #compras-launch-choice-remember-label:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:13px!important;line-height:1.35!important;}

/* O editor de texto usa o mesmo acabamento modal, sem alterar a lógica. */
#view-compras-veiling #compras-sheet-rich-text-dialog{width:min(620px,calc(100vw - 32px))!important;}
#view-compras-veiling #compras-sheet-rich-text-dialog:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){max-height:88vh!important;}
#view-compras-veiling #compras-sheet-rich-text-dialog>.mf-dialog-card{display:flex!important;}
#view-compras-veiling #compras-sheet-rich-text-dialog>.mf-dialog-card:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){max-height:88vh!important;flex-direction:column!important;}
#view-compras-veiling #compras-sheet-rich-text-dialog .mf-dialog-body:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:0!important;}
#view-compras-veiling #compras-sheet-rich-text-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:auto!important;}
/* O autocomplete vive em portal anexado ao body. */
.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){scrollbar-width:thin!important;scrollbar-color:#c8bcc1 transparent!important;}
.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar{width:6px!important;}
.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar{height:6px!important;}
.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-track{background:transparent!important;}
.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-thumb{border-radius:999px!important;background:#c8bcc1!important;}

/* ========================================================================== 
   MARFLORES WEB — 0.0.345 HOMOLOGAÇÃO
   Fechamento UX: criação compacta, forma preparada sem lançamento e spinner.
   ========================================================================== */

/* Memória visual: seleção ativa em marsala em todo o módulo Compras. */
#view-compras-veiling input[type="checkbox"]:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling input[type="radio"]:where(:not(#compras-veiling-extrato-panel, #compras-veiling-extrato-panel *, .mf-ta-extrato-floating, .mf-ta-extrato-floating *, [class^="compras-veiling-calendar"], [class^="compras-veiling-calendar"] *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){accent-color:var(--mf-accent)!important;}

/* Scrollbar do modal de criação usa o mesmo marsala da grade. */
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling .compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){scrollbar-color:var(--mf-accent) transparent!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-thumb,#view-compras-veiling .compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-thumb{background:var(--mf-accent)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body::-webkit-scrollbar-thumb:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling .compras-google-sheets-product-search-portal::-webkit-scrollbar-thumb:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-accent-strong)!important;}

/* Criar produto: menos informação simultânea, sem perder nenhuma função. */
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-google-sheets-create-product-details:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:1fr!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-context-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:0!important;padding:8px 10px!important;border-color:var(--mf-line)!important;background:var(--mf-subtle)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-context-card>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:9.5px!important;line-height:1.2!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-context-card>strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:13px!important;line-height:1.25!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-context-card>small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:10.5px!important;line-height:1.25!important;}

#view-compras-veiling #compras-google-sheets-create-product-dialog :is(.compras-create-format-details,.compras-create-placement-details):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){overflow:hidden!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog :is(.compras-create-format-details,.compras-create-placement-details):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border:1px solid var(--mf-line)!important;border-radius:10px!important;background:var(--mf-surface)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog :is(.compras-create-format-details,.compras-create-placement-details)>summary:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:flex!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog :is(.compras-create-format-details,.compras-create-placement-details)>summary:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:36px!important;padding:7px 10px!important;cursor:pointer!important;list-style:none!important;color:var(--mf-text)!important;font-size:12px!important;font-weight:650!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog :is(.compras-create-format-details,.compras-create-placement-details)>summary:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-details-marker{display:none!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog :is(.compras-create-format-details,.compras-create-placement-details)>summary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::after{content:"+";}
#view-compras-veiling #compras-google-sheets-create-product-dialog :is(.compras-create-format-details,.compras-create-placement-details)>summary:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::after{color:var(--mf-accent)!important;font-size:17px!important;line-height:1!important;font-weight:500!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog :is(.compras-create-format-details,.compras-create-placement-details)[open]>summary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::after{content:"−";}
#view-compras-veiling #compras-google-sheets-create-product-dialog :is(.compras-create-format-details,.compras-create-placement-details)>summary small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-left:auto!important;color:var(--mf-muted)!important;font-size:10px!important;font-weight:500!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog :is(.compras-create-format-content,.compras-create-placement-content):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:0 10px 9px!important;}
#view-compras-veiling #compras-google-sheets-create-product-section-field[hidden]{
  display:none!important;
}

/* Forma na criação: comparação lado a lado; preferência ocupa toda a largura. */
#view-compras-veiling .compras-launch-choice-two-column{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
#view-compras-veiling .compras-launch-choice-two-column:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:stretch!important;}
#view-compras-veiling .compras-launch-choice-two-column>:not(.compras-launch-choice-option){grid-column:1/-1!important;}
#view-compras-veiling .compras-launch-choice-two-column>.compras-launch-choice-option{min-width:0!important;}
#view-compras-veiling .compras-launch-choice-two-column>.compras-launch-choice-option:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:8px 9px!important;border:1px solid var(--mf-line)!important;border-radius:9px!important;background:var(--mf-subtle)!important;}
#view-compras-veiling .compras-launch-choice-two-column>.compras-launch-choice-remember:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-top:2px!important;padding-top:6px!important;border-top:1px solid var(--mf-line)!important;}

/* Multiplicador volta ao eixo central da coluna. */
#view-compras-veiling .compras-google-sheets-link-table td.compras-google-sheets-number:has(.compras-google-sheets-multiplier-cell):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){text-align:center!important;}
#view-compras-veiling .compras-google-sheets-multiplier-cell:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){justify-items:center!important;text-align:center!important;}

/* Lápis: espaço preservado, ação discreta; ao clicar, o próprio ícone vira spinner. */
#view-compras-veiling .compras-google-sheets-link-inline-button.rich-text-edit:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){opacity:.08!important;transition:opacity .14s ease,border-color .14s ease,background .14s ease,color .14s ease!important;}
#view-compras-veiling [data-link-row]:hover .compras-google-sheets-link-inline-button.rich-text-edit:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling .compras-google-sheets-link-inline-button.rich-text-edit:is(:focus-visible,.is-busy):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){opacity:1!important;}
#view-compras-veiling .compras-google-sheets-link-inline-button.rich-text-edit.is-busy:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-accent)!important;}
@media (hover:none){
#view-compras-veiling .compras-google-sheets-link-inline-button.rich-text-edit:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){opacity:.55!important;}
}

/* Forma de lançamento: produto explícito, matemática legível e opções 50/50. */
#view-compras-veiling #compras-launch-choice-dialog>.mf-dialog-card{width:min(650px,calc(100vw - 32px))!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-product-context{display:grid!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-product-context:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:2px!important;padding:9px 11px!important;border:1px solid var(--mf-line)!important;border-radius:10px!important;background:var(--mf-subtle)!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-product-context>span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted)!important;font-size:10px!important;font-weight:650!important;text-transform:uppercase!important;letter-spacing:.035em!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-product-context>strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-text)!important;font-size:14px!important;line-height:1.25!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-product-context>small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted)!important;font-size:11.5px!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-math{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-math:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:8px!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-math>div{display:grid!important;min-width:0!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-math>div:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-content:start!important;gap:3px!important;padding:8px 9px!important;border:1px solid var(--mf-line)!important;border-radius:9px!important;background:var(--mf-surface)!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-math span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted)!important;font-size:10px!important;font-weight:650!important;text-transform:uppercase!important;letter-spacing:.025em!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-math strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-text)!important;font-size:13.5px!important;line-height:1.3!important;font-weight:650!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-options-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-options-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:8px!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-options-grid>.compras-launch-choice-option{min-width:0!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-options-grid>.compras-launch-choice-option:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:10px!important;border:1px solid var(--mf-line)!important;border-radius:9px!important;background:var(--mf-subtle)!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-remember:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-top:2px!important;padding-top:8px!important;border-top:1px solid var(--mf-line)!important;}

@media (max-width:680px){
  #view-compras-veiling .compras-launch-choice-two-column,
  #view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-options-grid,
  #view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-math{grid-template-columns:1fr!important;}
  #view-compras-veiling .compras-launch-choice-two-column>:not(.compras-launch-choice-option){grid-column:1!important;}
}

/* ========================================================================== 
   MARFLORES WEB — 0.0.346 HOMOLOGAÇÃO
   Fluxo mais direto de vínculo + consolidação visual do modal Criar produto.
   ========================================================================== */

/* Forma de lançamento: seleção ativa usa o mesmo marsala funcional do módulo. */
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-option:has(input:checked):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling #compras-create-launch-choice>.compras-launch-choice-option:has(input:checked):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:var(--mf-accent)!important;background:var(--mf-accent-soft)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--mf-accent) 12%,transparent)!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-option:has(input:checked) strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling #compras-create-launch-choice>.compras-launch-choice-option:has(input:checked) strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-accent-strong)!important;}

/* Criar produto: contexto compacto em duas colunas e nome como um único bloco. */
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-google-sheets-create-product-details:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:repeat(2,minmax(0,1fr))!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-google-sheets-create-product-details:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:8px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-name-block:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-name-block:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:6px!important;padding:8px!important;border:1px solid var(--mf-line)!important;border-radius:11px!important;background:var(--mf-surface)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-name-block>h4:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;color:var(--mf-text)!important;font-size:13px!important;line-height:1.2!important;font-weight:700!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-name-options:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-name-options:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:6px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-name-options>.compras-google-sheets-create-product-learn:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:50px!important;margin:0!important;align-items:flex-start!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-name-options>.compras-google-sheets-create-product-learn:has(input:checked):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:var(--mf-accent)!important;background:var(--mf-accent-soft)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-name-options>.compras-google-sheets-create-product-learn strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:11.5px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-name-options>.compras-google-sheets-create-product-learn small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:10.5px!important;line-height:1.25!important;}

/* Nome padrão: invisível por padrão; só aparece quando JS confirma generic_name útil. */
#view-compras-veiling #compras-google-sheets-create-product-dialog #compras-google-sheets-create-product-use-generic:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:none!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog #compras-google-sheets-create-product-use-generic.is-visible:not([hidden]):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){
  display:inline-flex!important;
  justify-content:center!important;
  justify-self:end!important;
  min-width:0!important;
  min-height:30px!important;
  padding:0 12px!important;
}

/* Formatação expandida: controles e prévia ficam lado a lado e permanecem funcionais. */
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-format-content:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid!important;grid-template-columns:minmax(220px,.8fr) minmax(260px,1.2fr)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-format-content:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:10px!important;align-items:end!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-format-content>.compras-create-format-preview:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-format-content>.compras-create-format-preview:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:4px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-format-preview>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted)!important;font-size:10px!important;font-weight:600!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-format-help:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:block!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-format-help:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-top:5px!important;color:var(--mf-muted)!important;font-size:10px!important;line-height:1.3!important;}

/* Posição: resumo automático fica visível mesmo fechado; detalhes abrem para alteração. */
#view-compras-veiling #compras-google-sheets-create-product-dialog #compras-create-placement-summary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){overflow:hidden!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog #compras-create-placement-summary:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-width:0!important;max-width:62%!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog #compras-create-placement-summary:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){text-overflow:ellipsis!important;white-space:nowrap!important;text-align:right!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-placement-details[open]>.compras-create-placement-content:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-format-details[open]>.compras-create-format-content:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-placement-content:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:8px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-placement-content>.field:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;}

/* Produto na planilha: o vínculo deixa de ser um botão separado.
   Remover vínculo e editar texto vivem dentro do próprio campo. */
#view-compras-veiling .compras-google-sheets-link-target-control:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){position:relative!important;display:block!important;width:100%!important;}
#view-compras-veiling .compras-google-sheets-link-target-control>[data-link-target]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:100%!important;min-width:0!important;}
#view-compras-veiling .compras-google-sheets-link-target-control>[data-link-target]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding-right:10px!important;}
#view-compras-veiling .compras-google-sheets-link-target-control.has-inline-actions>[data-link-target]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding-right:66px!important;}
#view-compras-veiling .compras-google-sheets-link-field-actions:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){position:absolute!important;top:50%!important;right:5px!important;display:inline-flex!important;z-index:2!important;}
#view-compras-veiling .compras-google-sheets-link-field-actions:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){transform:translateY(-50%)!important;align-items:center!important;gap:3px!important;}
#view-compras-veiling .compras-google-sheets-link-field-actions .compras-google-sheets-link-inline-button:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){flex:0 0 26px!important;width:26px!important;min-width:26px!important;}
#view-compras-veiling .compras-google-sheets-link-field-actions .compras-google-sheets-link-inline-button:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:26px!important;min-height:26px!important;padding:0!important;border-radius:7px!important;box-shadow:none!important;}
#view-compras-veiling .compras-google-sheets-link-field-actions .compras-google-sheets-link-inline-button .compras-google-sheets-action-icon:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:14px!important;}
#view-compras-veiling .compras-google-sheets-link-field-actions .compras-google-sheets-link-inline-button .compras-google-sheets-action-icon:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:14px!important;}
#view-compras-veiling .compras-google-sheets-link-field-actions .compras-google-sheets-link-inline-button.rich-text-edit:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){opacity:1!important;border:1px solid var(--mf-line)!important;background:var(--mf-surface)!important;color:var(--mf-muted)!important;cursor:pointer!important;}
#view-compras-veiling .compras-google-sheets-link-field-actions .compras-google-sheets-link-inline-button.rich-text-edit:is(:hover,:focus-visible,.is-busy):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){opacity:1!important;border-color:var(--mf-accent)!important;background:var(--mf-accent-soft)!important;color:var(--mf-accent)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--mf-accent) 10%,transparent)!important;}
#view-compras-veiling .compras-google-sheets-link-field-actions .compras-google-sheets-link-inline-button.unlink:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;border:1px solid var(--mf-line)!important;color:var(--mf-accent)!important;}
#view-compras-veiling .compras-google-sheets-link-field-actions .compras-google-sheets-link-inline-button.unlink:is(:hover,:focus-visible):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-accent-soft)!important;border-color:var(--mf-accent)!important;color:var(--mf-accent)!important;}
#view-compras-veiling .compras-google-sheets-link-target-control.is-linking:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::after{content:""!important;position:absolute!important;top:50%!important;right:10px!important;width:15px!important;}
#view-compras-veiling .compras-google-sheets-link-target-control.is-linking:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::after{height:15px!important;margin-top:-7.5px!important;border:2px solid color-mix(in srgb,var(--mf-accent) 24%,transparent)!important;border-top-color:var(--mf-accent)!important;border-radius:50%!important;animation:spin .7s linear infinite!important;}
#view-compras-veiling .compras-google-sheets-link-target-control.is-linking>[data-link-target]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding-right:36px!important;}

/* O botão de vínculo manual antigo não deve reaparecer nessa linha nova. */
#view-compras-veiling .compras-google-sheets-link-target-control>.compras-google-sheets-link-inline-button.link:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:none!important;}

@media (max-width:760px){
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-google-sheets-create-product-details:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-format-content:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:1fr!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog #compras-create-placement-summary:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){max-width:50%!important;}
}

/* ========================================================================== 
   MARFLORES WEB — 0.0.347 HOMOLOGAÇÃO
   Posição tolerante, memória visual consistente e refinamentos da criação.
   ========================================================================== */

/* Modal de criação: o dialog não corta o card quando detalhes/avisos aumentam. */
#view-compras-veiling #compras-google-sheets-create-product-dialog{overflow:visible!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){max-height:none!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog>.mf-dialog-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){max-height:calc(100dvh - 24px)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body{overscroll-behavior:contain!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding-bottom:16px!important;}
#view-compras-veiling #compras-google-sheets-create-product-message:not([hidden]){
  flex:0 0 auto!important;
  scroll-margin-bottom:10px!important;
}

/* Nome na planilha: a própria prévia é a superfície de seleção Rich Text. */
#view-compras-veiling #compras-google-sheets-create-product-dialog #compras-create-rich-preview{user-select:text!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog #compras-create-rich-preview:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){cursor:text!important;background:#fff!important;border-color:color-mix(in srgb,var(--mf-accent) 22%,var(--mf-line))!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog #compras-create-rich-preview:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::selection,#view-compras-veiling #compras-google-sheets-create-product-dialog #compras-create-rich-preview *:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::selection{background:color-mix(in srgb,var(--mf-accent) 28%,transparent)!important;}

/* Toda opção que ensina/memoriza uma regra usa o mesmo card rosé. */
#view-compras-veiling .compras-memory-choice,
#view-compras-veiling .compras-launch-choice-remember{display:flex!important;}
#view-compras-veiling .compras-memory-choice:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling .compras-launch-choice-remember:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:flex-start!important;gap:9px!important;margin:0!important;padding:8px 10px!important;border:1px solid color-mix(in srgb,var(--mf-accent) 32%,var(--mf-line))!important;border-radius:9px!important;background:color-mix(in srgb,var(--mf-accent-soft) 72%,#fff)!important;color:var(--mf-text)!important;}
#view-compras-veiling .compras-memory-choice>span,
#view-compras-veiling .compras-launch-choice-remember>span{display:grid!important;min-width:0!important;}
#view-compras-veiling .compras-memory-choice>span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling .compras-launch-choice-remember>span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:2px!important;}
#view-compras-veiling .compras-memory-choice strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling .compras-launch-choice-remember strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-accent-strong)!important;font-size:11.5px!important;font-weight:650!important;line-height:1.25!important;}
#view-compras-veiling .compras-memory-choice small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling .compras-launch-choice-remember small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-muted)!important;font-size:10.5px!important;line-height:1.25!important;}
#view-compras-veiling .compras-memory-choice:has(input:checked):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling .compras-launch-choice-remember:has(input:checked):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:var(--mf-accent)!important;background:var(--mf-accent-soft)!important;}
#view-compras-veiling #compras-create-launch-choice>.compras-launch-choice-remember:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-remember:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-top:1px solid color-mix(in srgb,var(--mf-accent) 32%,var(--mf-line))!important;margin-top:2px!important;}

/* Desvinculado: memória conhecida volta como sugestão, não como dado confirmado. */
#view-compras-veiling [data-link-target][data-suggested-target]:placeholder-shown{
  color:var(--mf-muted)!important;
  font-style:italic!important;
  background:var(--mf-subtle)!important;
}

/* Custo decidido: mantém a mesma escala do restante da coluna, com sinal âmbar sutil. */
#view-compras-veiling .compras-google-sheets-cost-decided:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#fffdf7!important;color:var(--mf-text)!important;box-shadow:inset 3px 0 0 #d3a33a!important;}
#view-compras-veiling .compras-google-sheets-cost-decided .compras-google-sheets-cost-decision:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;font-size:inherit!important;font-weight:600!important;line-height:inherit!important;color:var(--mf-text)!important;text-decoration:none!important;}
#view-compras-veiling .compras-google-sheets-cost-decided .compras-google-sheets-cost-decision:hover:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-accent-strong)!important;text-decoration:underline!important;}

/* ========================================================================== 
   MARFLORES WEB — 0.0.348 HOMOLOGAÇÃO
   Nome Rich Text em campo único, posição tolerante refinada e scrollbars marsala.
   ========================================================================== */

/* O nome é uma única superfície: edita, seleciona e mostra Rich Text no mesmo lugar. */
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-name-field:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-name-field:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:5px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-rich-name-editor:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){overflow:auto!important;user-select:text!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-rich-name-editor:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:100%!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-rich-name-editor:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){box-sizing:border-box!important;min-height:36px!important;max-height:72px!important;padding:8px 11px!important;border:1px solid var(--mf-line)!important;border-radius:9px!important;background:#fff!important;color:var(--mf-text)!important;font:400 12.5px/1.45 var(--mf-ui-font)!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;outline:0!important;cursor:text!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-rich-name-editor:empty::before{content:attr(data-placeholder)!important;pointer-events:none!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-rich-name-editor:empty:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::before{color:var(--mf-muted)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-rich-name-editor:focus:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:var(--mf-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--mf-accent) 10%,transparent)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-rich-name-editor.is-disabled:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle)!important;color:var(--mf-muted)!important;cursor:default!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-rich-name-editor .compras-rich-red:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-danger)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-rich-name-editor:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::selection,#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-rich-name-editor *:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::selection{background:color-mix(in srgb,var(--mf-accent) 28%,transparent)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-format-single:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:1fr!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-format-single:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:start!important;}

/* Manual: o card nunca corta os controles; o corpo do modal é a única área rolável. */
#view-compras-veiling #compras-google-sheets-create-product-dialog{overflow:hidden!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:min(860px,calc(100vw - 24px))!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){max-height:calc(100dvh - 16px)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog>.mf-dialog-card{overflow:hidden!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog>.mf-dialog-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog>.mf-dialog-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){flex-direction:column!important;max-height:calc(100dvh - 16px)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body{overflow-x:hidden!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow-y:auto!important;overflow-x:hidden!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){flex:1 1 auto!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:0!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-placement-details[open]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){overflow:visible!important;}
#view-compras-veiling #compras-google-sheets-create-product-reference-field:not([hidden]){
  display:grid!important;
}

/* Pesquisa de produtos: scrollbar fina no mesmo marsala das tabelas. O portal vive no body. */
.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){scrollbar-width:thin!important;scrollbar-color:#bd718d #f8edf1!important;}
.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar{width:7px!important;}
.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar{height:7px!important;}
.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-track{background:#f8edf1!important;}
.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-thumb{background:#bd718d!important;border:1px solid #f8edf1!important;border-radius:999px!important;}
.compras-google-sheets-product-search-portal::-webkit-scrollbar-thumb:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#a91d4d!important;}

/* ========================================================================== 
   MARFLORES WEB — 0.0.361 HOMOLOGAÇÃO
   Padronização visual: Forma de lançamento + Rich Text na família atual.
   Exclusivamente visual; sem mudança de handlers, payloads ou regras.
   ========================================================================== */
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog){max-width:calc(100vw - 32px)!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){box-sizing:border-box!important;padding:0!important;border:0!important;border-radius:14px!important;background:transparent!important;color:#27272a!important;font-family:var(--mf-ui-font)!important;box-shadow:0 24px 64px rgba(51,31,39,.22)!important;max-height:88vh!important;}
#compras-launch-choice-dialog{width:min(650px,calc(100vw - 32px))!important;}
#compras-sheet-rich-text-dialog{width:min(620px,calc(100vw - 32px))!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::backdrop{background:rgba(39,31,35,.34)!important;backdrop-filter:blur(2px)!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog)>.mf-dialog-card{width:100%!important;max-width:100%!important;overflow:hidden!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog)>.mf-dialog-card:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){max-height:88vh!important;box-sizing:border-box!important;margin:0!important;border:1px solid #eadde2!important;border-radius:14px!important;background:#fff!important;color:#27272a!important;box-shadow:none!important;font:400 13px/1.45 var(--mf-ui-font)!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-head{display:flex!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-head:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:72px!important;box-sizing:border-box!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;padding:16px 18px!important;border-bottom:1px solid #eadde2!important;background:#fff!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-head>div{min-width:0!important;display:grid!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-head>div:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:3px!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-head h3:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;font-family:var(--mf-ui-font)!important;font-size:18px!important;font-weight:600!important;line-height:1.25!important;letter-spacing:-.01em!important;color:#27272a!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-head p:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:1px 0 0!important;color:#71696d!important;font-size:12px!important;font-weight:400!important;line-height:1.4!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-close{flex:0 0 36px!important;width:36px!important;min-width:36px!important;display:grid!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-close:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:36px!important;min-height:36px!important;place-items:center!important;padding:0!important;border:1px solid #ded8db!important;border-radius:9px!important;background:#fff!important;color:#6b6266!important;box-shadow:none!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-close:hover:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:#cbaab6!important;background:#fff7fa!important;color:#a91d4d!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-close svg{width:18px!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-close svg:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:18px!important;stroke-width:1.7!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-body:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:0!important;padding:18px!important;gap:12px!important;background:#fff!important;scrollbar-width:thin!important;scrollbar-color:#bd718d #f8edf1!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:auto!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .field>span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#5f565a!important;font-size:12px!important;font-weight:500!important;line-height:1.35!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .field :is(input,select):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:38px!important;border:1px solid #ddd7da!important;border-radius:8px!important;background:#fff!important;color:#27272a!important;font:500 13px/1.3 var(--mf-ui-font)!important;box-shadow:none!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-actions{display:flex!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-actions:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:62px!important;box-sizing:border-box!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;padding:12px 18px!important;border-top:1px solid #eadde2!important;background:#fff!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-actions .v6-btn:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:36px!important;padding:0 14px!important;border:1px solid #ddd7da!important;border-radius:8px!important;background:#fff!important;color:#3f3f46!important;font:600 12.5px/1.2 var(--mf-ui-font)!important;box-shadow:none!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-actions .v6-btn.primary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:#b01b50!important;background:#b01b50!important;color:#fff!important;}
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-actions .v6-btn.primary:hover:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:#941642!important;background:#941642!important;}

/* Forma de lançamento: preserva a matemática e as escolhas homologadas;
   só aproxima superfícies/ritmo do Revisar custo. */
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-product-context:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:10px 12px!important;border-color:#eadde2!important;border-radius:10px!important;background:#f8f5f6!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:10px!important;padding:12px!important;border-color:#eadde2!important;border-radius:10px!important;background:#fff!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-math>div:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:62px!important;padding:9px 10px!important;border-color:#eadde2!important;background:#fff!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-options-grid>.compras-launch-choice-option:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:58px!important;padding:10px 11px!important;border-color:#e2dcdf!important;background:#f8f7f8!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice-option strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:13px!important;font-weight:600!important;}
#view-compras-veiling #compras-launch-choice-dialog .compras-launch-choice small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:11.5px!important;line-height:1.4!important;}

/* Rich Text: mesmos controles e aviso visual discreto do restante de Compras. */
#view-compras-veiling #compras-sheet-rich-text-dialog .compras-rich-toolbar:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex!important;}
#view-compras-veiling #compras-sheet-rich-text-dialog .compras-rich-toolbar:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center!important;flex-wrap:wrap!important;gap:7px!important;padding:9px 10px!important;border:1px solid #eadde2!important;border-radius:9px!important;background:#f8f5f6!important;}
#view-compras-veiling #compras-sheet-rich-text-dialog .compras-rich-toolbar .secondary-button:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:32px!important;padding:0 11px!important;border:1px solid #ddd7da!important;border-radius:8px!important;background:#fff!important;color:#3f3f46!important;font:600 11.5px/1.2 var(--mf-ui-font)!important;box-shadow:none!important;}
#view-compras-veiling #compras-sheet-rich-text-dialog .compras-rich-toolbar small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){flex:1 1 180px!important;}
#view-compras-veiling #compras-sheet-rich-text-dialog .compras-rich-toolbar small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#71696d!important;font-size:11.5px!important;line-height:1.35!important;}
#view-compras-veiling #compras-sheet-rich-text-dialog .compras-rich-preview:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:54px!important;padding:11px 12px!important;border:1px solid #eadde2!important;border-radius:9px!important;background:#fff!important;color:#27272a!important;font:600 13px/1.4 var(--mf-ui-font)!important;}

@media(max-width:680px){
:is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) .mf-dialog-actions:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){flex-wrap:wrap!important;}
}
:root[data-marflores-theme="dark"] :is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-text)!important;}
:root[data-marflores-theme="dark"] :is(#compras-launch-choice-dialog,#compras-sheet-rich-text-dialog) :is(.mf-dialog-card,.mf-dialog-head,.mf-dialog-body,.mf-dialog-actions):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-surface)!important;border-color:var(--mf-line)!important;color:var(--mf-text)!important;}

/* ========================================================================== 
   MARFLORES WEB — 0.0.372 HOMOLOGAÇÃO
   Lançamentos: carregamento explícito + confirmação de multiplicador rígida.
   ========================================================================== */
#view-compras-veiling .compras-google-sheets-initial-loading{display:flex;}
#view-compras-veiling .compras-google-sheets-initial-loading:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:148px;align-items:center;justify-content:center;gap:14px;padding:28px;text-align:left;}
#view-compras-veiling .compras-google-sheets-initial-loading[hidden]{display:none!important}
#view-compras-veiling .compras-google-sheets-initial-spinner{width:24px;flex:0 0 24px;}
#view-compras-veiling .compras-google-sheets-initial-spinner:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:24px;border:2px solid var(--mf-line);border-top-color:var(--mf-accent);border-radius:50%;animation:mfComprasInitialSpin .8s linear infinite;}
#view-compras-veiling .compras-google-sheets-initial-loading-copy{display:grid;}
#view-compras-veiling .compras-google-sheets-initial-loading-copy:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:4px;}
#view-compras-veiling .compras-google-sheets-initial-loading-copy strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:15px;color:var(--mf-text);}
#view-compras-veiling .compras-google-sheets-initial-loading-copy small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:12px;color:var(--mf-muted);}
#view-compras-veiling .compras-google-sheets-initial-loading[data-state="error"] .compras-google-sheets-initial-spinner{display:none;}
#view-compras-veiling .compras-google-sheets-initial-loading[data-state="error"] .compras-google-sheets-initial-loading-copy strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--mf-danger);}
@keyframes mfComprasInitialSpin{to{transform:rotate(360deg)}}

/* A confirmação especial nunca depende apenas do atributo hidden. */
#view-compras-veiling #compras-launch-choice-unconfigured-wrap{display:none!important;}
#view-compras-veiling #compras-launch-choice-unconfigured-wrap.is-required:not([hidden]){display:flex!important}
/* Compras 0.0.373: componentes do fluxo independente de compra. */
#view-compras-veiling .compras-purchase-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
#view-compras-veiling .compras-purchase-tabs .is-active{background:var(--mf-accent-soft);border-color:var(--mf-accent);color:var(--mf-accent)}
#view-compras-veiling .compras-purchase-card{padding:18px;margin-bottom:16px;background:var(--mf-surface);border:1px solid var(--mf-line);border-radius:12px}
#view-compras-veiling .compras-purchase-row{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
#view-compras-veiling .compras-purchase-row .field{min-width:min(400px,100%)}
#view-compras-veiling .compras-purchase-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px;align-items:end;margin:12px 0}
#view-compras-veiling .compras-purchase-fields .field{min-width:0}
#view-compras-veiling .compras-purchase-fields input,#view-compras-veiling .compras-purchase-fields select{width:100%;min-height:38px;padding:7px 10px;border:1px solid var(--mf-line);border-radius:8px;background:var(--mf-surface);color:var(--mf-text)}
#view-compras-veiling .compras-purchase-note{color:var(--mf-muted);font-size:13px;margin:10px 0}
#view-compras-veiling .compras-purchase-error{padding:10px 14px;margin-bottom:12px;border-radius:8px;border:1px solid var(--mf-danger);color:var(--mf-danger);background:var(--mf-surface)}
#view-compras-veiling .compras-purchase-table-wrap{max-width:100%;overflow-x:auto}
#view-compras-veiling .compras-purchase-table-wrap table{min-width:760px;width:100%;border-collapse:collapse}
#view-compras-veiling .compras-purchase-table-wrap th,#view-compras-veiling .compras-purchase-table-wrap td{padding:7px 9px;white-space:nowrap}
#view-compras-veiling .compras-purchase-table-wrap td small{display:block;color:var(--mf-muted)}
#view-compras-veiling .compras-purchase-image{width:46px;height:46px;object-fit:cover;border-radius:7px}
#view-compras-veiling .compras-purchase-offer-detail{margin-top:16px;padding-top:16px;border-top:1px solid var(--mf-line)}
#view-compras-veiling .compras-purchase-detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:8px 14px}
#view-compras-veiling .compras-purchase-detail>div{padding:8px;background:var(--mf-subtle);border-radius:8px;min-width:0;overflow-wrap:anywhere}
#view-compras-veiling .compras-purchase-detail dt{color:var(--mf-muted);font-size:11px}
#view-compras-veiling .compras-purchase-detail dd{margin:3px 0 0;color:var(--mf-text);font-size:13px}
#view-compras-veiling .compras-purchase-json{max-height:340px;overflow:auto;padding:12px;background:var(--mf-subtle);color:var(--mf-text);border-radius:8px;font-size:12px}
#view-compras-veiling .compras-purchase-check{display:flex;align-items:center;gap:8px;color:var(--mf-text);font-size:13px}
#view-compras-veiling .compras-purchase-check input{width:auto;min-height:0}
@media(max-width:680px){#view-compras-veiling .compras-purchase-card{padding:12px}#view-compras-veiling .compras-purchase-fields{grid-template-columns:1fr}}

/* ================================================================
   SOBRA DE ESTOQUE — BASE CONSOLIDADA NO DESIGN SYSTEM
   Movida de styles.css na 0.0.389 para eliminar duas autoridades
   concorrentes. O bloco 0.0.389 abaixo fecha a régua visual atual.
   ================================================================ */
.compras-sobra-view:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding-bottom:32px;}
.compras-sobra-heading{;}
.compras-sobra-heading:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){align-items:flex-start;}
.compras-sobra-search-card{;}
.compras-sobra-search-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex;flex-direction:column;gap:16px;}
.compras-sobra-context-line{display:flex;gap:26px;flex-wrap:wrap;}
.compras-sobra-context-line:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding-bottom:12px;border-bottom:1px solid var(--mf-line,#e5dfe2);}
.compras-sobra-context-line>div{display:flex;flex-direction:column;gap:3px;min-width:180px}
.compras-sobra-context-line span{;}
.compras-sobra-context-line span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--mf-muted,#81797e);}
.compras-sobra-context-line strong{;}
.compras-sobra-context-line strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.92rem;color:var(--mf-text,#332d31);}
.compras-sobra-search-grid{display:grid;grid-template-columns:minmax(280px,1.15fr) minmax(260px,.85fr);gap:14px;align-items:end}
.compras-sobra-inline{display:flex;gap:8px;align-items:center}
.compras-sobra-inline input{min-width:0;flex:1}
.compras-sobra-order-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid;gap:8px;}
.compras-sobra-order-results:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){padding-top:4px;}
.compras-sobra-order-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:100%;display:grid;grid-template-columns:minmax(120px,.45fr) minmax(180px,1fr) auto;gap:12px;align-items:center;cursor:pointer;}
.compras-sobra-order-option:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border:1px solid var(--mf-line,#ded7db);border-radius:10px;background:var(--mf-surface,#fff);padding:10px 12px;text-align:left;color:var(--mf-text,#332d31);}
.compras-sobra-order-option:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-color:#bda6af;background:color-mix(in srgb,var(--mf-accent,#7b3145) 4%,var(--mf-surface,#fff));}
.compras-sobra-order-option strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font-size:.88rem;}
.compras-sobra-order-option span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font-size:.84rem;}
.compras-sobra-order-option small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-muted,#81797e);}

.compras-sobra-preparation{display:flex;flex-direction:column;gap:14px;}


.compras-sobra-preparation:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-top:14px;}
.compras-sobra-summary-grid{;}
.compras-sobra-summary-grid:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:10px;}
.compras-sobra-summary-grid article{;}
.compras-sobra-summary-grid article:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border:1px solid var(--mf-line,#e3dde0);background:var(--mf-surface,#fff);border-radius:12px;padding:12px 14px;}
.compras-sobra-summary-grid article:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex;flex-direction:column;gap:4px;}
.compras-sobra-summary-grid span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.72rem;color:var(--mf-muted,#81797e);text-transform:uppercase;letter-spacing:.04em;}
.compras-sobra-summary-grid strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:1.28rem;color:var(--mf-text,#332d31);}
.compras-sobra-table-card{overflow:hidden;}

.compras-sobra-table-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:0;}
.compras-sobra-table-head:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex;align-items:center;gap:12px;}
.compras-sobra-table-head:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){justify-content:space-between;}

.compras-sobra-table-head:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:14px 16px;border-bottom:1px solid var(--mf-line,#e4dfe1);}
.compras-sobra-table-head>div:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex;flex-direction:column;gap:3px;}.compras-sobra-table-head small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-muted,#81797e);}
.compras-sobra-table-wrap{overflow:auto;}

.compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){max-height:64vh;}
.compras-sobra-table:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-width:1280px;}

.compras-sobra-table:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0;}
.compras-sobra-table td{vertical-align:top;}
.compras-sobra-product-cell:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex;flex-direction:column;gap:3px;}
.compras-sobra-product-cell small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-muted,#81797e);}
.compras-sobra-observation{max-width:220px;white-space:normal;word-break:break-word}
.compras-sobra-conversion{white-space:nowrap;font-variant-numeric:tabular-nums}
.compras-sobra-conversion small{display:block;}
.compras-sobra-conversion small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-top:3px;color:#9b6b1d;}
.compras-sobra-status{display:inline-flex;align-items:center;white-space:nowrap;}

.compras-sobra-status:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-radius:999px;padding:4px 8px;font-size:.68rem;font-weight:800;letter-spacing:.03em;}
.compras-sobra-status.ready:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#e6f4ec;color:#1f6b45;}
.compras-sobra-status.pending{;}
.compras-sobra-status.pending:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fff3d9;color:#8a5a00;}
.compras-sobra-status.info{;}
.compras-sobra-status.info:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#eee9f0;color:#684959;}
.compras-sobra-readonly-note:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0;padding:10px 16px 14px;font-size:.78rem;color:var(--mf-muted,#81797e);border-top:1px solid var(--mf-line,#e4dfe1);}

.compras-sobra-link-dialog-card{width:min(760px,calc(100vw - 28px))}
.compras-sobra-link-source{display:grid;gap:4px;}
.compras-sobra-link-source:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:10px 12px;border:1px solid var(--mf-line,#e2dcdf);border-radius:10px;background:color-mix(in srgb,var(--mf-text,#332d31) 2%,var(--mf-surface,#fff));margin-bottom:12px;}
.compras-sobra-link-source strong{;}
.compras-sobra-link-source strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.92rem;}.compras-sobra-link-source small{;}.compras-sobra-link-source small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-muted,#81797e);}
.compras-sobra-name-results{display:grid;gap:6px;overflow:auto;}
.compras-sobra-name-results:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){max-height:240px;margin:8px 0 12px;}
.compras-sobra-name-option{cursor:pointer;display:flex;flex-direction:column;gap:2px;}
.compras-sobra-name-option:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border:1px solid var(--mf-line,#e2dcdf);border-radius:9px;background:var(--mf-surface,#fff);padding:9px 11px;text-align:left;color:var(--mf-text,#332d31);}
.compras-sobra-name-option:hover,.compras-sobra-name-option.selected{;}
.compras-sobra-name-option:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),.compras-sobra-name-option.selected:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-color:#a77b8b;background:color-mix(in srgb,var(--mf-accent,#7b3145) 5%,var(--mf-surface,#fff));}
.compras-sobra-name-option small{;}
.compras-sobra-name-option small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-muted,#81797e);}
.compras-sobra-selected-name{;}
.compras-sobra-selected-name:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:10px 12px;border-radius:9px;background:#f5eef1;margin:0 0 12px;color:#5d3342;}

:root[data-marflores-theme="dark"] .admin-permission-children{border-left-color:#46383e}
:root[data-marflores-theme="dark"] #view-compras-veiling :is(.compras-sobra-order-option,.compras-sobra-summary-grid article,.compras-sobra-link-source,.compras-sobra-name-option):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){background:#1d1b1e!important;border-color:#3a3539!important;color:#f3eef1!important;}
:root[data-marflores-theme="dark"] #view-compras-veiling .compras-sobra-selected-name{;}
:root[data-marflores-theme="dark"] #view-compras-veiling .compras-sobra-selected-name:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#2b2025;color:#f1dce5;}

@media(max-width:1180px){.compras-sobra-summary-grid{;}.compras-sobra-summary-grid:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){grid-template-columns:repeat(3,minmax(120px,1fr));}}
@media(max-width:760px){
  .compras-sobra-search-grid{grid-template-columns:1fr}
  .compras-sobra-summary-grid{;}
  .compras-sobra-summary-grid:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){grid-template-columns:repeat(2,minmax(110px,1fr));}
.compras-sobra-order-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:1fr;gap:3px;}
}

/* ================================================================
   COMPRAS — 0.0.384 HOMOLOGAÇÃO
   Sobra: planilha independente por link + status de estoque VHSYS.
   ================================================================ */
.compras-sobra-sheet-connect-grid{display:grid;grid-template-columns:minmax(420px,1.45fr) minmax(300px,.55fr);gap:14px;align-items:end}
.compras-sobra-sheet-url-field small{display:block;}
.compras-sobra-sheet-url-field small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-top:5px;color:var(--mf-muted,#81797e);font-size:.76rem;}
.compras-sobra-service-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.compras-sobra-service-field>span{;}
.compras-sobra-service-field>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.75rem;color:var(--mf-muted,#81797e);}
.compras-sobra-service-box{display:flex;align-items:center;gap:8px;min-width:0}
.compras-sobra-service-box strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.compras-sobra-service-box strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.78rem;font-weight:600;}
.compras-sobra-sheet-status:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-top:10px;padding:9px 11px;border-radius:9px;font-size:.8rem;font-weight:700;}
.compras-sobra-sheet-status.success:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#e6f4ec;color:#1f6b45;border:1px solid #b8ddc9;}
.compras-sobra-order-search-row{max-width:760px;}
.compras-sobra-order-search-row:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-top:12px;}
.compras-sobra-order-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:minmax(120px,.4fr) minmax(180px,1fr) auto auto;}
.compras-sobra-stock{justify-self:end;display:inline-flex;align-items:center;white-space:nowrap;}
.compras-sobra-stock:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-radius:999px;padding:4px 8px;font-size:.68rem;font-weight:800;font-style:normal;}
.compras-sobra-stock.launched{;}
.compras-sobra-stock.launched:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#e6f4ec;color:#1f6b45;}
.compras-sobra-stock.not-launched{;}
.compras-sobra-stock.not-launched:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fff3d9;color:#8a5a00;}
:root[data-marflores-theme="dark"] #view-compras-veiling .compras-sobra-sheet-status.success{;}
:root[data-marflores-theme="dark"] #view-compras-veiling .compras-sobra-sheet-status.success:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#173527;color:#bde4cc;border-color:#2d5a42;}
:root[data-marflores-theme="dark"] #view-compras-veiling .compras-sobra-stock.launched{;}
:root[data-marflores-theme="dark"] #view-compras-veiling .compras-sobra-stock.launched:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#173527;color:#bde4cc;}
:root[data-marflores-theme="dark"] #view-compras-veiling .compras-sobra-stock.not-launched{;}
:root[data-marflores-theme="dark"] #view-compras-veiling .compras-sobra-stock.not-launched:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#3a2c12;color:#f1d59a;}
@media(max-width:900px){.compras-sobra-sheet-connect-grid{grid-template-columns:1fr}.compras-sobra-service-box{align-items:stretch}
.compras-sobra-order-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:1fr;gap:3px;}.compras-sobra-stock{justify-self:start}}

/* 0.0.387 — Sobra de estoque: cabeçalho compacto + resolução inline */
#view-compras-veiling .compras-sobra-view:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding-bottom:24px;}
#view-compras-veiling .compras-sobra-heading{;}
#view-compras-veiling .compras-sobra-heading:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){align-items:center;}

#view-compras-veiling .compras-sobra-heading:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-bottom:10px;}
#view-compras-veiling .compras-sobra-heading p{max-width:760px;}

#view-compras-veiling .compras-sobra-heading p:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-top:3px;}
#view-compras-veiling .compras-sobra-search-card{;}
#view-compras-veiling .compras-sobra-search-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){gap:10px;}

#view-compras-veiling .compras-sobra-search-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:12px 14px;}
#view-compras-veiling .compras-sobra-compact-context{;}
#view-compras-veiling .compras-sobra-compact-context:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
#view-compras-veiling .compras-sobra-context-chip{;}
#view-compras-veiling .compras-sobra-context-chip:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex;align-items:center;gap:7px;}

#view-compras-veiling .compras-sobra-context-chip:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border:1px solid var(--mf-line,#e3dde0);border-radius:9px;padding:5px 8px;background:color-mix(in srgb,var(--mf-text,#332d31) 2%,var(--mf-surface,#fff));}
#view-compras-veiling .compras-sobra-context-chip span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.65rem;text-transform:uppercase;letter-spacing:.045em;color:var(--mf-muted,#81797e);}
#view-compras-veiling .compras-sobra-context-chip strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.76rem;color:var(--mf-text,#332d31);font-weight:700;}
#view-compras-veiling .compras-sobra-setup-grid{display:grid;grid-template-columns:minmax(430px,1fr) auto;gap:12px;align-items:end}
#view-compras-veiling .compras-sobra-sheet-url-field{;}
#view-compras-veiling .compras-sobra-sheet-url-field:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0;}
#view-compras-veiling .compras-sobra-sheet-url-field>span,#view-compras-veiling .compras-sobra-order-field>span{;}
#view-compras-veiling .compras-sobra-sheet-url-field>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),#view-compras-veiling .compras-sobra-order-field>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.7rem;}
#view-compras-veiling .compras-sobra-service-compact{min-width:225px;}
#view-compras-veiling .compras-sobra-service-compact:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:grid;grid-template-columns:auto auto;grid-template-areas:"label button" "identity button";column-gap:9px;align-items:center;}

#view-compras-veiling .compras-sobra-service-compact:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-left:1px solid var(--mf-line,#e3dde0);padding-left:12px;}
#view-compras-veiling .compras-sobra-service-label{grid-area:label;}

#view-compras-veiling .compras-sobra-service-label:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.66rem;color:var(--mf-muted,#81797e);}
#view-compras-veiling .compras-sobra-service-identity{min-width:0;}
#view-compras-veiling .compras-sobra-service-identity:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){grid-area:identity;display:flex;align-items:center;gap:6px;}

#view-compras-veiling .compras-sobra-service-identity:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.76rem;font-weight:700;color:var(--mf-text,#332d31);}
#view-compras-veiling .compras-sobra-service-identity strong{position:absolute!important;width:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;}

#view-compras-veiling .compras-sobra-service-identity strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:1px!important;padding:0!important;margin:-1px!important;border:0!important;}
#view-compras-veiling .compras-sobra-google-dot{display:inline-grid;place-items:center;width:18px;}
#view-compras-veiling .compras-sobra-google-dot:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:18px;border-radius:50%;font-size:.65rem;font-weight:800;border:1px solid var(--mf-line,#ded6da);background:var(--mf-surface,#fff);}
#view-compras-veiling .compras-sobra-service-compact>#compras-sobra-service-account-copy{;}
#view-compras-veiling .compras-sobra-service-compact>#compras-sobra-service-account-copy:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:32px;}
#view-compras-veiling .compras-sobra-service-compact>#compras-sobra-service-account-copy:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){grid-area:button;align-self:center;}
#view-compras-veiling .compras-sobra-setup-foot{display:grid;grid-template-columns:minmax(200px,1fr) minmax(340px,.75fr);gap:12px;align-items:end}
#view-compras-veiling .compras-sobra-sheet-status{align-self:end;}

#view-compras-veiling .compras-sobra-sheet-status:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0;padding:7px 9px;font-size:.73rem;}
#view-compras-veiling .compras-sobra-order-field:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0;}
#view-compras-veiling .compras-sobra-order-results:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){padding-top:2px;}
#view-compras-veiling .compras-sobra-order-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:minmax(105px,.34fr) minmax(160px,.7fr) minmax(170px,.72fr) auto auto;gap:10px;align-items:center;}
#view-compras-veiling .compras-sobra-order-option:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){padding:9px 11px;}
#view-compras-veiling .compras-sobra-order-reference{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#view-compras-veiling .compras-sobra-order-reference:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.78rem;color:var(--mf-text,#332d31);font-weight:650;}
#view-compras-veiling .compras-sobra-summary-grid{;}
#view-compras-veiling .compras-sobra-summary-grid:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){gap:7px;}
#view-compras-veiling .compras-sobra-summary-grid article{;}
#view-compras-veiling .compras-sobra-summary-grid article:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-radius:9px;padding:8px 10px;}
#view-compras-veiling .compras-sobra-summary-grid article:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){gap:1px;}
#view-compras-veiling .compras-sobra-summary-grid span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.64rem;}
#view-compras-veiling .compras-sobra-summary-grid strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:1.02rem;}
#view-compras-veiling .compras-sobra-table-head:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:10px 12px;}
#view-compras-veiling .compras-sobra-table:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-width:1180px;}
#view-compras-veiling .compras-sobra-table th{white-space:nowrap;}
#view-compras-veiling .compras-sobra-table td{vertical-align:top;}

#view-compras-veiling .compras-sobra-table td:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding-top:8px;padding-bottom:8px;}
#view-compras-veiling .compras-sobra-table th:nth-child(1):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-width:205px;}
#view-compras-veiling .compras-sobra-table th:nth-child(2):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-width:150px;}
#view-compras-veiling .compras-sobra-table th:nth-child(4):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-width:320px;}
#view-compras-veiling .compras-sobra-table th:nth-child(5):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){width:82px;}
#view-compras-veiling .compras-sobra-destination-editor{position:relative;display:grid;gap:4px;min-width:300px}
#view-compras-veiling .compras-sobra-destination-input{width:100%;}

#view-compras-veiling .compras-sobra-destination-input:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:34px;border:1px solid var(--mf-line,#d9d2d5);border-radius:8px;background:var(--mf-surface,#fff);color:var(--mf-text,#332d31);padding:6px 9px;font:inherit;font-size:.8rem;}
#view-compras-veiling .compras-sobra-destination-input:focus:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){outline:2px solid color-mix(in srgb,var(--mf-accent,#7b3145) 25%,transparent);border-color:var(--mf-accent,#7b3145);}
#view-compras-veiling .compras-sobra-destination-editor.is-resolved .compras-sobra-destination-input{;}
#view-compras-veiling .compras-sobra-destination-editor.is-resolved .compras-sobra-destination-input:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-weight:700;border-color:#bfaab2;background:color-mix(in srgb,var(--mf-accent,#7b3145) 3%,var(--mf-surface,#fff));}
#view-compras-veiling .compras-sobra-destination-editor>small{;}
#view-compras-veiling .compras-sobra-destination-editor>small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.65rem;color:var(--mf-muted,#81797e);line-height:1.25;}
#view-compras-veiling .compras-sobra-inline-results{display:grid;gap:3px;overflow:auto;}
#view-compras-veiling .compras-sobra-inline-results:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border:1px solid var(--mf-line,#ddd5d9);border-radius:8px;background:var(--mf-surface,#fff);padding:4px;box-shadow:0 10px 24px rgba(42,27,34,.10);max-height:250px;}
#view-compras-veiling .compras-sobra-inline-results[hidden]{display:none!important}
#view-compras-veiling .compras-sobra-inline-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#view-compras-veiling .compras-sobra-create-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex;flex-direction:column;gap:1px;width:100%;border:0;border-radius:6px;background:transparent;color:var(--mf-text,#332d31);text-align:left;padding:7px 8px;cursor:pointer;font:inherit;}
#view-compras-veiling .compras-sobra-inline-option:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#view-compras-veiling .compras-sobra-create-option:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){background:color-mix(in srgb,var(--mf-accent,#7b3145) 7%,var(--mf-surface,#fff));}
#view-compras-veiling .compras-sobra-inline-option strong{;}
#view-compras-veiling .compras-sobra-inline-option strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.77rem;}
#view-compras-veiling .compras-sobra-inline-option small{;}
#view-compras-veiling .compras-sobra-inline-option small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.64rem;color:var(--mf-muted,#81797e);}
#view-compras-veiling .compras-sobra-create-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font-size:.74rem;font-weight:800;color:var(--mf-accent,#7b3145);border-top:1px solid var(--mf-line,#e3dde0);margin-top:2px;}
#view-compras-veiling .compras-sobra-inline-empty{;}
#view-compras-veiling .compras-sobra-inline-empty:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:7px 8px;font-size:.72rem;color:var(--mf-muted,#81797e);}
#view-compras-veiling .compras-sobra-multiplier-editor{display:grid;gap:2px;width:70px}
#view-compras-veiling .compras-sobra-multiplier-editor input{width:64px;}

#view-compras-veiling .compras-sobra-multiplier-editor input:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:32px;border:1px solid var(--mf-line,#ddd5d9);background:var(--mf-surface,#fff);color:var(--mf-text,#332d31);padding:4px 6px;font:inherit;text-align:center;}
#view-compras-veiling .compras-sobra-multiplier-editor small{;}
#view-compras-veiling .compras-sobra-multiplier-editor small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:.62rem;color:var(--mf-muted,#81797e);text-align:center;}
.compras-sobra-create-dialog-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:min(620px,calc(100vw - 28px));}
.compras-sobra-create-source:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid;gap:3px;padding:10px 12px;border:1px solid var(--mf-line,#e2dcdf);border-radius:9px;background:color-mix(in srgb,var(--mf-text,#332d31) 2%,var(--mf-surface,#fff));margin-bottom:12px;color:var(--mf-text,#332d31);}
.compras-sobra-create-source strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font-size:.9rem;color:var(--mf-text,#332d31);}
.compras-sobra-create-source small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-muted,#81797e);}
.compras-sobra-create-note:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin-top:10px;border-radius:8px;padding:9px 10px;background:#f7f2f4;color:#694554;font-size:.75rem;line-height:1.35;}
:root[data-marflores-theme="dark"] #view-compras-veiling :is(.compras-sobra-context-chip,.compras-sobra-destination-input,.compras-sobra-inline-results,.compras-sobra-multiplier-editor input){;}
:root[data-marflores-theme="dark"] #view-compras-veiling :is(.compras-sobra-context-chip,.compras-sobra-destination-input,.compras-sobra-inline-results,.compras-sobra-multiplier-editor input):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#1d1b1e!important;border-color:#3a3539!important;color:#f3eef1!important;}
:root[data-marflores-theme="dark"] .compras-sobra-create-source:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){background:#1d1b1e!important;border-color:#3a3539!important;color:#f3eef1!important;}
:root[data-marflores-theme="dark"] .compras-sobra-create-source strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:#f3eef1!important;}
:root[data-marflores-theme="dark"] .compras-sobra-create-note:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){background:#2b2025;color:#f1dce5;}
@media(max-width:980px){
  #view-compras-veiling .compras-sobra-setup-grid,#view-compras-veiling .compras-sobra-setup-foot{grid-template-columns:1fr}
  #view-compras-veiling .compras-sobra-service-compact:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-left:0;padding-left:0;border-top:1px solid var(--mf-line,#e3dde0);padding-top:8px;}
#view-compras-veiling .compras-sobra-order-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:1fr;gap:3px;}
  #view-compras-veiling .compras-sobra-stock{justify-self:start}
}

/* ============================================================
   0.0.390 • HOMOLOGAÇÃO — Sobra · preparação operacional consolidada
   Autoridade visual: este arquivo é carregado depois de styles.css.
   Não usar tokens legados --marsala nem cores vinho próprias da Sobra.
   ============================================================ */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-view:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-text)!important;font:400 14px/1.45 var(--mf-ui-font)!important;padding-bottom:24px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-heading{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-heading:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){align-items:flex-start!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-heading:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0 0 12px!important;padding:0 0 12px!important;border-bottom:1px solid var(--mf-line)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-heading h1:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0!important;color:var(--mf-text)!important;font:600 22px/1.2 var(--mf-ui-font)!important;letter-spacing:-.025em!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-heading p{max-width:880px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-heading p:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:5px 0 0!important;color:var(--mf-muted)!important;font:400 12px/1.45 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-heading .status-badge:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:24px!important;margin-top:0!important;padding:4px 8px!important;border-radius:999px!important;font:600 10px/1 var(--mf-ui-font)!important;letter-spacing:.02em!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-search-card{overflow:visible!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-search-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:grid!important;gap:12px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-search-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0!important;padding:16px 18px!important;border:1px solid var(--mf-line)!important;border-radius:12px!important;background:var(--mf-surface)!important;box-shadow:0 1px 3px rgb(0 0 0 / 6%)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-compact-context{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-compact-context:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex!important;flex-wrap:wrap!important;gap:7px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-compact-context:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-context-chip{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-context-chip:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:inline-flex!important;align-items:center!important;gap:6px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-context-chip:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:28px!important;padding:0 9px!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-surface)!important;color:var(--mf-text)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-context-chip span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-muted)!important;font:500 10px/1.2 var(--mf-ui-font)!important;letter-spacing:0!important;text-transform:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-context-chip strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-text)!important;font:600 11px/1.2 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-setup-grid{
  display:grid!important;
  grid-template-columns:minmax(520px,1fr) minmax(300px,360px)!important;
  gap:16px!important;
  align-items:end!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(.compras-sobra-sheet-url-field,.compras-sobra-order-field){min-width:0!important;gap:6px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(.compras-sobra-sheet-url-field,.compras-sobra-order-field):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(.compras-sobra-sheet-url-field>span,.compras-sobra-order-field>span,.compras-sobra-service-label):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:#625b60!important;font:600 12px/1.3 var(--mf-ui-font)!important;letter-spacing:0!important;text-transform:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-inline{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-inline input{min-width:0!important;flex:1 1 auto!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-inline input:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:36px!important;min-height:36px!important;padding:0 11px!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-control)!important;color:var(--mf-text)!important;font:500 13px/1.3 var(--mf-ui-font)!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-inline input::placeholder{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-inline input:where(:not(.mf-ta-sobra, .mf-ta-sobra *))::placeholder{color:var(--mf-placeholder)!important;font-weight:400!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-inline input:focus-visible:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-color:var(--mf-accent)!important;box-shadow:0 0 0 3px var(--mf-focus)!important;outline:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  #compras-sobra-spreadsheet-validate,
  #compras-sobra-order-search,
  #compras-sobra-service-account-copy,
  #compras-sobra-refresh
){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;white-space:nowrap!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  #compras-sobra-spreadsheet-validate,
  #compras-sobra-order-search,
  #compras-sobra-service-account-copy,
  #compras-sobra-refresh
):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:36px!important;min-height:36px!important;padding:0 12px!important;border-radius:8px!important;font:500 13px/1.2 var(--mf-ui-font)!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  #compras-sobra-spreadsheet-validate,
  #compras-sobra-service-account-copy,
  #compras-sobra-refresh
):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:var(--mf-surface)!important;border:1px solid var(--mf-line)!important;color:var(--mf-text)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-order-search:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:var(--mf-primary)!important;border:1px solid var(--mf-primary)!important;color:#fff!important;font-weight:600!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  #compras-sobra-spreadsheet-validate,
  #compras-sobra-order-search,
  #compras-sobra-service-account-copy,
  #compras-sobra-refresh
)>i{order:-1!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  #compras-sobra-spreadsheet-validate,
  #compras-sobra-order-search,
  #compras-sobra-service-account-copy,
  #compras-sobra-refresh
)>i:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:16px!important;line-height:1!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-compact{min-width:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-compact:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:grid!important;gap:6px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-compact:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:0!important;border:0!important;background:transparent!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-row{min-width:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-row:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-identity{min-width:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-identity:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex!important;align-items:center!important;gap:8px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-identity:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:36px!important;padding:0 11px!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-control)!important;color:var(--mf-text)!important;font:500 13px/1.2 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-identity strong{position:absolute!important;width:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-identity strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:1px!important;padding:0!important;margin:-1px!important;border:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-setup-foot{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:8px!important;
  align-items:end!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-order-field{max-width:760px!important}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-sheet-status{width:fit-content!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-sheet-status:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:32px!important;margin:0!important;padding:6px 9px!important;border-radius:8px!important;font:500 12px/1.35 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-preparation{gap:10px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-preparation:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-top:12px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){gap:8px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid .compras-sobra-summary-card{align-content:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid .compras-sobra-summary-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:grid!important;gap:2px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid .compras-sobra-summary-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:52px!important;padding:8px 11px!important;border:1px solid var(--mf-line)!important;border-radius:10px!important;background:var(--mf-surface)!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-muted)!important;font:500 10.5px/1.2 var(--mf-ui-font)!important;letter-spacing:0!important;text-transform:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-text)!important;font:600 15px/1.2 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-card{overflow:hidden!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:0!important;border:1px solid var(--mf-line)!important;border-radius:12px!important;background:var(--mf-surface)!important;box-shadow:0 1px 3px rgb(0 0 0 / 6%)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:52px!important;padding:8px 12px!important;background:var(--mf-surface)!important;border-bottom:1px solid var(--mf-line)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-text)!important;font:600 14px/1.25 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-top:2px!important;color:var(--mf-muted)!important;font:400 11px/1.35 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-wrap{overflow:auto!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){scrollbar-width:thin!important;scrollbar-color:#bd718d #f8edf1!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){max-height:66vh!important;background:var(--mf-surface)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table{border-collapse:collapse!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-width:1120px!important;width:100%!important;table-layout:auto!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-text)!important;font-family:var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table thead{position:sticky!important;top:0!important;z-index:12!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table thead th{position:static!important;vertical-align:middle!important;white-space:nowrap!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table thead th:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:36px!important;padding:0 10px!important;background:#f0dce4!important;color:#27272a!important;border-color:#e2cdd5!important;font:600 12px/1.25 var(--mf-ui-font)!important;letter-spacing:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table tbody td{vertical-align:middle!important;overflow:visible!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table tbody td:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:36px!important;padding:6px 10px!important;background:var(--mf-surface)!important;color:var(--mf-text)!important;border-color:#eeeeef!important;font:400 13px/1.35 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table tbody tr:hover>td:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fffafb!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(1):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-width:230px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(2):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-width:160px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(3):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){width:68px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(4):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-width:300px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(5):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){width:84px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-product-cell:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){gap:2px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-product-cell:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){line-height:1.2!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-product-cell strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-text)!important;font:500 12.5px/1.25 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-product-cell small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-muted)!important;font:400 10px/1.2 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-observation:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){max-width:190px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-observation:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-text)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-observation-hint{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-observation-hint:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-left:6px!important;padding:1px 5px!important;border-radius:999px!important;background:var(--mf-subtle)!important;color:var(--mf-muted)!important;font:500 9px/1.2 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-editor{display:block!important;min-width:280px!important;position:relative!important}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-input{width:100%!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-input:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:34px!important;min-height:34px!important;padding:0 10px!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-control)!important;color:var(--mf-text)!important;font:500 13px/1.25 var(--mf-ui-font)!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-editor.is-resolved .compras-sobra-destination-input{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-editor.is-resolved .compras-sobra-destination-input:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-color:var(--mf-line)!important;background:var(--mf-control)!important;color:var(--mf-text)!important;font-weight:600!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-editor{display:flex!important;align-items:center!important;gap:5px!important;width:auto!important;min-width:72px!important}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-editor input{width:64px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-editor input:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:34px!important;min-height:34px!important;padding:0 7px!important;border-radius:8px!important;font:500 13px/1.2 var(--mf-ui-font)!important;text-align:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-editor small{white-space:nowrap!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-editor small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-muted)!important;font:400 10px/1.2 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-conversion{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-conversion:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font:400 13px/1.3 var(--mf-ui-font)!important;color:var(--mf-text)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-conversion small{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-conversion small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font:400 10px/1.2 var(--mf-ui-font)!important;color:var(--mf-muted)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:22px!important;padding:3px 7px!important;border-radius:999px!important;font:600 9.5px/1.1 var(--mf-ui-font)!important;letter-spacing:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-readonly-note:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0!important;padding:10px 12px!important;border-top:1px solid var(--mf-line)!important;background:var(--mf-surface)!important;color:var(--mf-muted)!important;font:400 11px/1.4 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *))::-webkit-scrollbar{width:10px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *))::-webkit-scrollbar{height:10px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *))::-webkit-scrollbar-track{background:#f8edf1!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *))::-webkit-scrollbar-thumb{background:#bd718d!important;border:2px solid #f8edf1!important;border-radius:999px!important;}

/* Os dois dropdowns são portais no body; recebem explicitamente os mesmos tokens do módulo. */
body>.compras-sobra-order-results-portal,
body>.compras-sobra-destination-portal{position:fixed!important;z-index:10120!important;overflow:auto!important;}
body>.compras-sobra-order-results-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),body>.compras-sobra-destination-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){--mf-ui-font:"Instrument Sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--mf-surface:#fff;--mf-subtle:#f4f4f5;--mf-line:#e4e4e7;--mf-text:#27272a;--mf-muted:#71717a;--mf-accent:#a91d4d;--mf-accent-soft:#fbedf2;--mf-hover:#eeeef0;display:grid!important;gap:2px!important;}
body>.compras-sobra-order-results-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),body>.compras-sobra-destination-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin:0!important;padding:5px!important;border:1px solid var(--mf-line)!important;border-radius:10px!important;background:var(--mf-surface)!important;color:var(--mf-text)!important;box-shadow:0 14px 34px rgb(24 24 27 / 14%)!important;font:400 13px/1.35 var(--mf-ui-font)!important;}
body>.compras-sobra-order-results-portal[hidden],body>.compras-sobra-destination-portal[hidden]{display:none!important}
body>.compras-sobra-order-results-portal .compras-sobra-order-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;grid-template-columns:minmax(100px,.35fr) minmax(170px,.7fr) minmax(170px,.65fr) auto auto!important;gap:10px!important;align-items:center!important;}
body>.compras-sobra-order-results-portal .compras-sobra-order-option:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-height:42px!important;padding:8px 10px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--mf-text)!important;box-shadow:none!important;text-align:left!important;font-family:var(--mf-ui-font)!important;}
body>.compras-sobra-order-results-portal .compras-sobra-order-option:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){background:var(--mf-hover)!important;}
body>.compras-sobra-order-results-portal .compras-sobra-order-option strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-text)!important;font:600 13px/1.25 var(--mf-ui-font)!important;}
body>.compras-sobra-order-results-portal .compras-sobra-order-option :is(span,small):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-muted)!important;font:400 12px/1.25 var(--mf-ui-font)!important;}
body>.compras-sobra-order-results-portal .compras-sobra-order-reference:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-text)!important;font-weight:500!important;}
body>.compras-sobra-order-results-portal .compras-sobra-stock:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font:600 10px/1.1 var(--mf-ui-font)!important;padding:4px 7px!important;}
body>.compras-sobra-destination-portal :is(.compras-sobra-inline-option,.compras-sobra-create-option):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:100%!important;}
body>.compras-sobra-destination-portal :is(.compras-sobra-inline-option,.compras-sobra-create-option):where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-height:36px!important;padding:7px 9px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--mf-text)!important;text-align:left!important;font-family:var(--mf-ui-font)!important;}
body>.compras-sobra-destination-portal .compras-sobra-inline-option:hover{;}
body>.compras-sobra-destination-portal .compras-sobra-inline-option:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:var(--mf-hover)!important;}
body>.compras-sobra-destination-portal .compras-sobra-inline-option strong{;}
body>.compras-sobra-destination-portal .compras-sobra-inline-option strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-text)!important;font:500 13px/1.25 var(--mf-ui-font)!important;}
body>.compras-sobra-destination-portal .compras-sobra-inline-option small{display:block!important;}
body>.compras-sobra-destination-portal .compras-sobra-inline-option small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-top:2px!important;color:var(--mf-muted)!important;font:400 11px/1.25 var(--mf-ui-font)!important;}
body>.compras-sobra-destination-portal .compras-sobra-create-option:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin-top:3px!important;border-top:1px solid var(--mf-line)!important;border-radius:0 0 8px 8px!important;color:var(--mf-accent)!important;background:transparent!important;font:600 12.5px/1.25 var(--mf-ui-font)!important;}
body>.compras-sobra-destination-portal .compras-sobra-create-option:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){background:var(--mf-accent-soft)!important;}
body>.compras-sobra-destination-portal .compras-sobra-inline-empty{;}
body>.compras-sobra-destination-portal .compras-sobra-inline-empty:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:8px 9px!important;color:var(--mf-muted)!important;font:400 12px/1.3 var(--mf-ui-font)!important;}
:root[data-marflores-theme="dark"] body>.compras-sobra-order-results-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),:root[data-marflores-theme="dark"] body>.compras-sobra-destination-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){--mf-surface:#2b2b31;--mf-subtle:#303037;--mf-line:#414149;--mf-text:#f4f4f5;--mf-muted:#b4b4bd;--mf-accent:#ee83a7;--mf-accent-soft:#3b202b;--mf-hover:#36363e;color-scheme:dark;}
@media(max-width:980px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-setup-grid{grid-template-columns:1fr!important}
body>.compras-sobra-order-results-portal .compras-sobra-order-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:1fr!important;gap:2px!important;}
}

/* 0.0.390 — refinamentos operacionais da Sobra dentro da autoridade visual de Compras. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-search-card{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-search-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){gap:10px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-search-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:14px 16px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-setup-grid{grid-template-columns:minmax(560px,1fr) minmax(300px,340px)!important;gap:14px!important}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-compact{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-compact:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){align-self:end!important;gap:5px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-row{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-row:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex!important;grid-template-columns:none!important;align-items:center!important;gap:8px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-identity{flex:1 1 auto!important;width:auto!important}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-service-account-copy{position:static!important;flex:0 0 auto!important;align-self:auto!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-service-account-copy:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-setup-foot{grid-template-columns:minmax(220px,max-content) minmax(420px,760px)!important;justify-content:space-between!important;align-items:end!important;gap:14px!important}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-order-field{width:100%!important;max-width:760px!important;justify-self:end!important}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-setup-foot:has(.compras-sobra-sheet-status[hidden]){grid-template-columns:minmax(420px,760px)!important;justify-content:start!important}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-setup-foot:has(.compras-sobra-sheet-status[hidden]) .compras-sobra-order-field{justify-self:start!important}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid .compras-sobra-summary-card{appearance:none!important;cursor:pointer!important;transition:border-color .14s ease,background .14s ease,box-shadow .14s ease!important;}


:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid .compras-sobra-summary-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){text-align:left!important;color:inherit!important;font-family:var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid .compras-sobra-summary-card:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-color:#d5c8cd!important;background:#fffafb!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid .compras-sobra-summary-card.is-active:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-color:color-mix(in srgb,var(--mf-accent) 46%,var(--mf-line))!important;background:var(--mf-accent-soft)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--mf-accent) 10%,transparent)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-pending-filters{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-pending-filters:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:-2px 0 0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-pending-filters[hidden]{display:none!important}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-pending-filters>span{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-pending-filters>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-muted)!important;font:500 11px/1.2 var(--mf-ui-font)!important;margin-right:2px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-pending-filters>button{cursor:pointer!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-pending-filters>button:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:28px!important;padding:0 9px!important;border:1px solid var(--mf-line)!important;border-radius:999px!important;background:var(--mf-surface)!important;color:var(--mf-text)!important;font:500 11px/1.1 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-pending-filters>button.is-active{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-pending-filters>button.is-active:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-color:color-mix(in srgb,var(--mf-accent) 42%,var(--mf-line))!important;background:var(--mf-accent-soft)!important;color:var(--mf-accent)!important;font-weight:600!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.ready:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#e6f4ec!important;color:#1f6b45!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.ready-remainder{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.ready-remainder:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#e8f3ef!important;color:#23644b!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.missing-link:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fff3d9!important;color:#8a5a00!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.missing-multiplier{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.missing-multiplier:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#e9eefc!important;color:#3756a6!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.missing-producer{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.missing-producer:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fbe8ef!important;color:#97405e!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.ambiguous{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.ambiguous:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#f1eafb!important;color:#6b4b9d!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.invalid,
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.remainder-pending{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.invalid:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.remainder-pending:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fde9e7!important;color:#a33f39!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-wrap{overflow-x:auto!important;overflow-y:visible!important;}


:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){max-height:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table thead{position:sticky!important;top:0!important;z-index:12!important;}

body>.compras-sobra-destination-portal .compras-sobra-inline-option:first-child{;}

body>.compras-sobra-destination-portal .compras-sobra-inline-option:first-child:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:color-mix(in srgb,var(--mf-accent-soft) 55%,var(--mf-surface))!important;}
body>.compras-sobra-destination-portal .compras-sobra-inline-option:first-child:hover{;}
body>.compras-sobra-destination-portal .compras-sobra-inline-option:first-child:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:var(--mf-accent-soft)!important;}

@media(max-width:980px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-setup-foot{grid-template-columns:1fr!important}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-order-field{justify-self:stretch!important;max-width:none!important}
}

/* 0.0.391 — estabilização final da preparação da Sobra. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order{width:100%!important;max-width:760px!important;justify-self:end!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:52px!important;padding:8px 10px!important;border:1px solid var(--mf-line)!important;border-radius:10px!important;background:var(--mf-subtle)!important;color:var(--mf-text)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order[hidden]{display:none!important}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order-copy{min-width:0!important;display:grid!important;gap:2px!important}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order-copy>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-muted)!important;font:500 10.5px/1.2 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order-copy>strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-text)!important;font:600 13px/1.25 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order-copy>small{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order-copy>small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-muted)!important;font:400 11px/1.25 var(--mf-ui-font)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-change-order{flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-change-order:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:34px!important;min-height:34px!important;padding:0 10px!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-surface)!important;color:var(--mf-text)!important;font:500 11.5px/1.2 var(--mf-ui-font)!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-change-order>i{order:-1!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-change-order>i:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:15px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-editor{
  display:flex!important;align-items:center!important;gap:6px!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-input{flex:1 1 auto!important;min-width:0!important}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-remove-destination{width:30px!important;min-width:30px!important;flex:0 0 30px!important;display:grid!important;place-items:center!important;cursor:pointer!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-remove-destination:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:30px!important;padding:0!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-surface)!important;color:var(--mf-muted)!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-remove-destination:hover{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-remove-destination:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-color:#dfb6c4!important;background:var(--mf-accent-soft)!important;color:var(--mf-accent)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-remove-destination>i{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-remove-destination>i:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:15px!important;}

/* Os multiplicadores usam teclado numérico, mas sem o spinner nativo preto do navegador. */
#compras-sobra-create-dialog #compras-sobra-create-multiplier:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-editor input:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){appearance:textfield!important;-moz-appearance:textfield!important;}
#compras-sobra-create-dialog #compras-sobra-create-multiplier:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-inner-spin-button,#compras-sobra-create-dialog #compras-sobra-create-multiplier:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-outer-spin-button,:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-editor input:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-inner-spin-button,:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-editor input:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-outer-spin-button{-webkit-appearance:none!important;}
#compras-sobra-create-dialog #compras-sobra-create-multiplier:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-inner-spin-button,#compras-sobra-create-dialog #compras-sobra-create-multiplier:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-outer-spin-button,:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-editor input:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-inner-spin-button,:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-editor input:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-outer-spin-button{margin:0!important;}

@media(max-width:980px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order{justify-self:stretch!important;max-width:none!important}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order-copy>small{white-space:normal!important}
}

/* 0.0.392 — fechamento UX da preparação da Sobra. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-setup-grid{
  grid-template-columns:minmax(0,1fr) minmax(360px,420px)!important;
  gap:16px!important;
  align-items:start!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-sheet-url-field,
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-compact{align-content:start!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-sheet-url-field:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-compact:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:grid!important;grid-template-rows:16px 36px!important;gap:6px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-sheet-url-field>span,
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-label{display:flex!important;align-items:flex-end!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-sheet-url-field>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-label:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:16px!important;margin:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-row{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-row:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-row:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:36px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-identity:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-service-account-copy:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:36px!important;min-height:36px!important;margin:0!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status-filters{;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status-filters:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){grid-template-columns:repeat(4,minmax(130px,1fr))!important;gap:8px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-all:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:var(--mf-surface)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-pending:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fff8e8!important;border-color:#eed8a2!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-pending :is(span,strong):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:#8a5a00!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-multiplier:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#f1f4fd!important;border-color:#cbd5f3!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-multiplier :is(span,strong):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:#3756a6!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-ready:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#edf8f2!important;border-color:#c5e5d2!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-ready :is(span,strong):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:#1f6b45!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-pending.is-active{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-pending.is-active:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){box-shadow:inset 0 0 0 1px #d9b65e!important;border-color:#d9b65e!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-multiplier.is-active{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-multiplier.is-active:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){box-shadow:inset 0 0 0 1px #8fa3dc!important;border-color:#8fa3dc!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-ready.is-active{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-ready.is-active:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){box-shadow:inset 0 0 0 1px #7ab694!important;border-color:#7ab694!important;}
body>.compras-sobra-order-results-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),body>.compras-sobra-destination-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){scrollbar-width:thin!important;scrollbar-color:#bd718d #f8edf1!important;}
body>.compras-sobra-order-results-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar,body>.compras-sobra-destination-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar{width:10px!important;}
body>.compras-sobra-order-results-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar,body>.compras-sobra-destination-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar{height:10px!important;}
body>.compras-sobra-order-results-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-track,body>.compras-sobra-destination-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-track{background:#f8edf1!important;border-radius:999px!important;}
body>.compras-sobra-order-results-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-thumb,body>.compras-sobra-destination-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-thumb{background:#bd718d!important;border:2px solid #f8edf1!important;border-radius:999px!important;}
body>.compras-sobra-order-results-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-button,body>.compras-sobra-destination-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-button{display:none!important;width:0!important;}
body>.compras-sobra-order-results-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-button,body>.compras-sobra-destination-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-button{height:0!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-editor.is-busy .compras-sobra-destination-input{opacity:1!important;cursor:wait!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-editor.is-busy .compras-sobra-destination-input:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-text)!important;background:var(--mf-subtle)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-busy{width:30px!important;min-width:30px!important;flex:0 0 30px!important;display:grid!important;place-items:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-busy:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:30px!important;color:var(--mf-accent)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-remove-destination.is-busy{cursor:wait!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-remove-destination.is-busy:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-accent)!important;background:var(--mf-accent-soft)!important;}
.compras-sobra-spin{display:inline-block!important;animation:compras-sobra-spin .7s linear infinite!important;transform-origin:center!important}
@keyframes compras-sobra-spin{to{transform:rotate(360deg)}}

@media(max-width:980px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-setup-grid{grid-template-columns:1fr!important}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status-filters{;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status-filters:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){grid-template-columns:repeat(2,minmax(120px,1fr))!important;}
}

/* 0.0.393 — Sobra: alinhamento final do topo + Heroicons + criação de variante por produtor. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-setup-grid{
  grid-template-columns:minmax(0,1fr) minmax(300px,360px)!important;
  gap:14px!important;
  align-items:end!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-sheet-url-field{
  display:grid!important;
  grid-template-rows:auto 36px!important;
  gap:6px!important;
  align-content:end!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-compact{min-width:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-compact:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex!important;flex-direction:column!important;justify-content:flex-end!important;align-self:end!important;gap:6px!important;grid-template-columns:none!important;grid-template-rows:none!important;grid-template-areas:none!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-compact:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:0!important;border:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-label{display:flex!important;align-items:flex-end!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-label:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:16px!important;margin:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-row{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-row:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex!important;align-items:center!important;gap:8px!important;grid-template-columns:none!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-row:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:36px!important;min-height:36px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-identity{flex:1 1 auto!important;width:auto!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-identity:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:36px!important;min-height:36px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-service-account-copy{flex:0 0 auto!important;position:static!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-service-account-copy:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:36px!important;min-height:36px!important;margin:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-action-icon:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){width:16px!important;height:16px!important;flex:0 0 16px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling :is(
  #compras-sobra-spreadsheet-validate,
  #compras-sobra-order-search,
  #compras-sobra-service-account-copy,
  #compras-sobra-refresh,
  #compras-sobra-change-order
)>.compras-sobra-action-icon{order:-1!important}

body>.compras-sobra-destination-portal .compras-sobra-inline-result-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:4px!important;
  align-items:stretch!important;
}
body>.compras-sobra-destination-portal .compras-sobra-inline-result-row>.compras-sobra-inline-option{
  min-width:0!important;
}
body>.compras-sobra-destination-portal .compras-sobra-inline-variant{min-width:78px!important;cursor:pointer!important;}
body>.compras-sobra-destination-portal .compras-sobra-inline-variant:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:0 8px!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-surface)!important;color:var(--mf-accent)!important;font:600 10.5px/1.15 var(--mf-ui-font)!important;}
body>.compras-sobra-destination-portal .compras-sobra-inline-variant:hover{;}
body>.compras-sobra-destination-portal .compras-sobra-inline-variant:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:var(--mf-accent-soft)!important;border-color:color-mix(in srgb,var(--mf-accent) 35%,var(--mf-line))!important;}
.compras-sobra-variant-fields:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid;gap:10px;}
.compras-sobra-variant-fields:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin:0 0 10px;padding:10px 12px;border:1px solid var(--mf-line,#e4e4e7);border-radius:10px;background:var(--mf-subtle,#f4f4f5);}
.compras-sobra-variant-fields[hidden]{display:none!important}
.compras-sobra-variant-context{display:grid;gap:2px}
.compras-sobra-variant-context>span{;}
.compras-sobra-variant-context>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-accent,#a91d4d);font:600 10.5px/1.2 var(--mf-ui-font,"Instrument Sans",sans-serif);text-transform:uppercase;letter-spacing:.025em;}
.compras-sobra-variant-context>strong{;}
.compras-sobra-variant-context>strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-text,#27272a);font:600 13px/1.25 var(--mf-ui-font,"Instrument Sans",sans-serif);}
.compras-sobra-variant-context>small{;}
.compras-sobra-variant-context>small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-muted,#71717a);font:400 11px/1.25 var(--mf-ui-font,"Instrument Sans",sans-serif);}
.compras-sobra-variant-fields .field small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:block;}
.compras-sobra-variant-fields .field small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin-top:4px;color:var(--mf-muted,#71717a);font-size:11px;line-height:1.3;}

@media(max-width:980px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-setup-grid{grid-template-columns:1fr!important}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-service-compact{width:100%!important}
}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-remove-destination>.compras-hero-icon,
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-busy>.compras-hero-icon{width:15px!important;flex:0 0 15px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-remove-destination>.compras-hero-icon:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-busy>.compras-hero-icon:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:15px!important;}

/* 0.0.394 — Sobra: busca física na BASE + criação guiada + hierarquia marsala. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-heading h1:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-accent)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-accent-card{position:relative!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-accent-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding-top:17px!important;border-top:4px solid var(--mf-accent)!important;box-shadow:0 4px 18px rgb(55 24 36 / 6%)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-compact-context:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding-bottom:2px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-context-chip:first-child:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-color:color-mix(in srgb,var(--mf-accent) 24%,var(--mf-line))!important;background:color-mix(in srgb,var(--mf-accent-soft) 54%,var(--mf-surface))!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-context-chip:first-child span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-accent)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-spreadsheet-validate{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-spreadsheet-validate:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:var(--mf-primary)!important;border-color:var(--mf-primary)!important;color:#fff!important;font-weight:600!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-spreadsheet-validate:hover:not(:disabled){;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-spreadsheet-validate:hover:not(:disabled):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:var(--mf-primary-hover)!important;border-color:var(--mf-primary-hover)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-left:3px solid var(--mf-accent)!important;background:linear-gradient(90deg,color-mix(in srgb,var(--mf-accent-soft) 52%,var(--mf-surface)) 0%,var(--mf-subtle) 48%)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order-copy>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-accent)!important;}
body>.compras-sobra-destination-portal .compras-sobra-create-product-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;gap:2px!important;width:100%!important;padding:9px 10px!important;text-align:left!important;}
body>.compras-sobra-destination-portal .compras-sobra-create-product-option strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-accent)!important;font:600 12.5px/1.2 var(--mf-ui-font)!important;}
body>.compras-sobra-destination-portal .compras-sobra-create-product-option small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-muted)!important;font:400 10.5px/1.25 var(--mf-ui-font)!important;}
.compras-sobra-create-dialog-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:min(700px,calc(100vw - 28px))!important;}
.compras-sobra-create-known-panel:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid;gap:9px;margin:0 0 12px;padding:12px;border:1px solid var(--mf-line,#e4e4e7);border-radius:11px;background:color-mix(in srgb,var(--mf-accent-soft,#fbedf2) 28%,var(--mf-surface,#fff));}
.compras-sobra-create-section-head:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid;gap:2px;}
.compras-sobra-create-section-head>strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-accent,#a91d4d);font:600 13px/1.25 var(--mf-ui-font,"Instrument Sans",sans-serif);}
.compras-sobra-create-section-head>small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-muted,#71717a);font:400 11px/1.35 var(--mf-ui-font,"Instrument Sans",sans-serif);}
.compras-sobra-create-known-panel .field:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin:0!important;}
.compras-sobra-create-known-selected:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px dashed var(--mf-line,#e4e4e7);border-radius:9px;background:var(--mf-surface,#fff);color:var(--mf-muted,#71717a);}
.compras-sobra-create-known-selected>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font:500 11.5px/1.25 var(--mf-ui-font,"Instrument Sans",sans-serif);}
.compras-sobra-create-known-selected>small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:block;margin-top:2px;font:400 10.5px/1.3 var(--mf-ui-font,"Instrument Sans",sans-serif);}
.compras-sobra-create-known-selected.has-selection:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-style:solid;border-color:color-mix(in srgb,var(--mf-accent) 28%,var(--mf-line));color:var(--mf-text,#27272a);}
.compras-sobra-create-known-selected.has-selection>div:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-width:0;display:grid;gap:2px;}
.compras-sobra-create-known-selected.has-selection span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-accent,#a91d4d);font:600 10px/1.2 var(--mf-ui-font,"Instrument Sans",sans-serif);text-transform:uppercase;letter-spacing:.02em;}
.compras-sobra-create-known-selected.has-selection strong{overflow:hidden;}
.compras-sobra-create-known-selected.has-selection strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){text-overflow:ellipsis;white-space:nowrap;color:var(--mf-text,#27272a);font:600 12.5px/1.25 var(--mf-ui-font,"Instrument Sans",sans-serif);}
.compras-sobra-create-known-selected.has-selection small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-muted,#71717a);}
.compras-sobra-create-known-selected button:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:30px;height:30px;min-width:30px;display:grid;place-items:center;border:1px solid var(--mf-line,#e4e4e7);border-radius:8px;background:var(--mf-surface,#fff);color:var(--mf-muted,#71717a);cursor:pointer;}
.compras-sobra-create-known-selected button:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-color:var(--mf-accent,#a91d4d);color:var(--mf-accent,#a91d4d);background:var(--mf-accent-soft,#fbedf2);}
.compras-sobra-create-known-selected .compras-hero-icon:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:15px;height:15px;}
.compras-sobra-create-known-results{overflow:auto;}
.compras-sobra-create-known-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){max-height:180px;display:grid;gap:4px;scrollbar-width:thin;scrollbar-color:#bd718d #f8edf1;}
.compras-sobra-create-known-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar{width:9px;height:9px;}
.compras-sobra-create-known-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-track{background:#f8edf1;border-radius:999px;}
.compras-sobra-create-known-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-thumb{background:#bd718d;border:2px solid #f8edf1;border-radius:999px;}
.compras-sobra-create-known-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-button{display:none;width:0;height:0;}
.compras-sobra-create-known-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:100%;display:grid;gap:2px;padding:8px 9px;border:1px solid transparent;border-radius:8px;background:var(--mf-surface,#fff);text-align:left;cursor:pointer;color:var(--mf-text,#27272a);}
.compras-sobra-create-known-option:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-color:color-mix(in srgb,var(--mf-accent) 24%,var(--mf-line));background:var(--mf-accent-soft,#fbedf2);}
.compras-sobra-create-known-option strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font:600 12px/1.25 var(--mf-ui-font,"Instrument Sans",sans-serif);}
.compras-sobra-create-known-option small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-muted,#71717a);font:400 10.5px/1.3 var(--mf-ui-font,"Instrument Sans",sans-serif);}
.compras-sobra-create-known-empty:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){padding:8px 9px;border-radius:8px;background:var(--mf-surface,#fff);color:var(--mf-muted,#71717a);font:400 11px/1.35 var(--mf-ui-font,"Instrument Sans",sans-serif);}
.compras-sobra-create-mode:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px;padding:0;border:0;}
.compras-sobra-create-mode legend:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-column:1/-1;margin:0 0 2px;color:#625b60;font:600 12px/1.3 var(--mf-ui-font,"Instrument Sans",sans-serif);}
.compras-sobra-create-mode label:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border:1px solid var(--mf-line,#e4e4e7);border-radius:9px;background:var(--mf-surface,#fff);cursor:pointer;}
.compras-sobra-create-mode label:has(input:checked):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-color:var(--mf-accent,#a91d4d);background:var(--mf-accent-soft,#fbedf2);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--mf-accent) 8%,transparent);}
.compras-sobra-create-mode input:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin-top:2px;accent-color:var(--mf-accent,#a91d4d);}
.compras-sobra-create-mode label>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid;gap:2px;}
.compras-sobra-create-mode strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-text,#27272a);font:600 12px/1.25 var(--mf-ui-font,"Instrument Sans",sans-serif);}
.compras-sobra-create-mode small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:var(--mf-muted,#71717a);font:400 10.5px/1.3 var(--mf-ui-font,"Instrument Sans",sans-serif);}
.compras-sobra-variant-fields:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin-bottom:12px!important;background:color-mix(in srgb,var(--mf-accent-soft,#fbedf2) 36%,var(--mf-subtle,#f4f4f5))!important;}
.compras-sobra-create-note:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-left:3px solid var(--mf-accent,#a91d4d)!important;background:color-mix(in srgb,var(--mf-accent-soft,#fbedf2) 60%,var(--mf-surface,#fff))!important;color:#694554!important;}
:root[data-marflores-theme="dark"] .compras-sobra-create-known-panel:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),:root[data-marflores-theme="dark"] .compras-sobra-create-known-selected:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),:root[data-marflores-theme="dark"] .compras-sobra-create-known-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),:root[data-marflores-theme="dark"] .compras-sobra-create-known-empty:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),:root[data-marflores-theme="dark"] .compras-sobra-create-mode label:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){background:#2b2b31!important;border-color:#414149!important;color:#f4f4f5!important;}

@media(max-width:760px){
.compras-sobra-create-mode:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:1fr;}
}

/* ==========================================================================
   MARFLORES WEB — 0.0.395 HOMOLOGAÇÃO
   Sobra: autocomplete/modal no padrão de Lançamentos + ordenação + memória limpa.
   ========================================================================== */

/* A pesquisa principal da Sobra reutiliza literalmente a superfície visual de Lançamentos. */
body>.compras-sobra-destination-portal.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){scrollbar-width:thin!important;scrollbar-color:var(--mf-accent) transparent!important;}
body>.compras-sobra-destination-portal.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:5px!important;border:1px solid #eadfe3!important;border-radius:12px!important;background:#fff!important;box-shadow:0 12px 28px rgba(24,24,27,.10)!important;font-family:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif!important;}
body>.compras-sobra-destination-portal.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar{width:6px!important;}
body>.compras-sobra-destination-portal.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar{height:6px!important;}
body>.compras-sobra-destination-portal.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-track{background:transparent!important;}
body>.compras-sobra-destination-portal.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-thumb{border:0!important;border-radius:999px!important;background:var(--mf-accent)!important;}
body>.compras-sobra-destination-portal.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *))::-webkit-scrollbar-thumb:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-accent-strong)!important;}
body>.compras-sobra-destination-portal.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-button{display:none!important;width:0!important;}
body>.compras-sobra-destination-portal.compras-google-sheets-product-search-portal:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::-webkit-scrollbar-button{height:0!important;}
body>.compras-sobra-destination-portal .compras-google-sheets-product-option:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#fff!important;color:#27272a!important;}
body>.compras-sobra-destination-portal .compras-google-sheets-product-option:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),body>.compras-sobra-destination-portal .compras-google-sheets-product-option.active:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#fffafb!important;}
body>.compras-sobra-destination-portal .compras-google-sheets-product-option-main strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#27272a!important;font-size:11px!important;font-weight:600!important;}
body>.compras-sobra-destination-portal .compras-google-sheets-product-option-meta:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),body>.compras-sobra-destination-portal .compras-google-sheets-product-option-meta span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#7a7376!important;font-size:9.8px!important;font-weight:400!important;}
body>.compras-sobra-destination-portal .compras-google-sheets-product-create:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#fff7fa!important;border-color:#e7a9bf!important;color:var(--marsala)!important;}
body>.compras-sobra-destination-portal .compras-google-sheets-product-create:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#f9e9ef!important;border-color:#d883a1!important;}
body>.compras-sobra-destination-portal .compras-google-sheets-product-create strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:var(--marsala-dark)!important;font-size:10.8px!important;font-weight:600!important;}
body>.compras-sobra-destination-portal .compras-google-sheets-product-create small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#7a7376!important;font-size:9.5px!important;font-weight:400!important;}

/* Cabeçalhos da Sobra ordenáveis no mesmo padrão enxuto das demais grades de Compras. */
#view-compras-veiling .compras-sobra-sort-button:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){width:100%!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;cursor:pointer!important;}

#view-compras-veiling .compras-sobra-sort-button:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:24px!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;font:inherit!important;text-align:left!important;}
#view-compras-veiling .compras-sobra-sort-button:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
#view-compras-veiling .compras-sobra-sort-button.is-active:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-accent)!important;}
#view-compras-veiling .compras-sobra-sort-icon{display:inline-flex;align-items:center;justify-content:center;}

#view-compras-veiling .compras-sobra-sort-icon:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){width:13px;height:13px;flex:0 0 13px;}
#view-compras-veiling .compras-sobra-sort-icon .compras-hero-icon{width:12px!important;}
#view-compras-veiling .compras-sobra-sort-icon .compras-hero-icon:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:12px!important;}

/* ==========================================================================
   MARFLORES WEB — 0.0.396 HOMOLOGAÇÃO
   Sobra: correção da variante, sugestões vazias e leitura da conversão.
   ========================================================================== */

/* Hover/seleção mais perceptível, sem pintar permanentemente os resultados. */
body>.compras-sobra-destination-portal .compras-google-sheets-product-option:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),body>.compras-sobra-destination-portal .compras-google-sheets-product-option.active:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#f7e3eb!important;box-shadow:inset 3px 0 0 var(--mf-accent)!important;}

/* Novos estados semanais: conhecido/ausente da BASE e multiplicador que exige confirmação. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.ready-create{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.ready-create:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#e4f3f0!important;color:#1e675a!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.ready-create-remainder{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.ready-create-remainder:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#e9f2ee!important;color:#37675a!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.confirm-multiplier{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.confirm-multiplier:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fff0d9!important;color:#8a5200!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-edit-preparation{width:30px!important;min-width:30px!important;flex:0 0 30px!important;display:grid!important;place-items:center!important;cursor:pointer!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-edit-preparation:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:30px!important;padding:0!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-surface)!important;color:var(--mf-muted)!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-edit-preparation:hover{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-edit-preparation:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-color:#dfb6c4!important;background:var(--mf-accent-soft)!important;color:var(--mf-accent)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-edit-preparation>.compras-hero-icon{width:15px!important;flex:0 0 15px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-edit-preparation>.compras-hero-icon:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:15px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-editor.is-resolved .compras-sobra-destination-input[readonly]{cursor:default!important;caret-color:transparent!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-destination-editor.is-resolved .compras-sobra-destination-input[readonly]:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:color-mix(in srgb,var(--mf-accent,#7b3145) 3%,var(--mf-surface,#fff))!important;}
.admin-product-name-variant-row{grid-template-columns:minmax(120px,.8fr) minmax(180px,1.2fr) auto auto!important}
@keyframes mfSobraAppliedName{0%{box-shadow:0 0 0 4px rgba(169,29,77,.22)}100%{box-shadow:0 0 0 0 rgba(169,29,77,0)}}

/* Nomes e vínculos: campos equivalentes com a mesma geometria. */
#admin-product-name-dialog .admin-product-name-form-grid{align-items:stretch!important;gap:11px!important}
#admin-product-name-dialog .admin-product-name-form-grid>.field,
#admin-product-name-dialog .admin-product-name-variant-grid>.field{
  display:grid!important;grid-template-rows:auto 42px minmax(28px,auto)!important;align-content:start!important;gap:5px!important;box-sizing:border-box!important;
}
#admin-product-name-dialog .admin-product-name-form-grid>.field>span,
#admin-product-name-dialog .admin-product-name-variant-grid>.field>span{font:600 10.5px/1.2 var(--mf-ui-font)!important;color:#5e555a!important}
#admin-product-name-dialog .admin-product-name-form-grid :is(input,select),
#admin-product-name-dialog .admin-product-name-variant-grid :is(input,select){height:42px!important;min-height:42px!important;box-sizing:border-box!important;border-radius:8px!important;font-family:var(--mf-ui-font)!important}
#admin-product-name-dialog .admin-product-name-form-grid>.field>small,
#admin-product-name-dialog .admin-product-name-variant-grid>.field>small{min-height:28px!important;margin:0!important;color:#7b7076!important;font:400 9.5px/1.35 var(--mf-ui-font)!important}
.admin-product-names-summary article>small{display:block;margin-top:2px;color:#80767b;font:400 9px/1.2 var(--mf-ui-font)!important}

/* =========================================================
   MARFLORES WEB — 0.0.406 HOMOLOGAÇÃO
   Sobra: fluxo horizontal Produto → Produtor → Nome final.
   ========================================================= */
:root:not([data-marflores-theme="dark"]) :is(.mf-dialog,.mf-dialog-card,.mf-dialog-body):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)):where(:not(.mf-ta-products-dialog, .mf-ta-products-dialog *)){color-scheme:light!important;}
:root:not([data-marflores-theme="dark"]) .mf-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)):where(:not(.mf-ta-products-dialog, .mf-ta-products-dialog *)){scrollbar-width:thin!important;scrollbar-color:#bd718d #f8edf1!important;background-clip:padding-box!important;}
:root:not([data-marflores-theme="dark"]) .mf-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-products-dialog, .mf-ta-products-dialog *))::-webkit-scrollbar{width:8px!important;height:8px!important;background:#f8edf1!important;}
:root:not([data-marflores-theme="dark"]) .mf-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-products-dialog, .mf-ta-products-dialog *))::-webkit-scrollbar-track{background:#f8edf1!important;border-radius:999px!important;}
:root:not([data-marflores-theme="dark"]) .mf-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-products-dialog, .mf-ta-products-dialog *))::-webkit-scrollbar-thumb{background:#bd718d!important;border:2px solid #f8edf1!important;border-radius:999px!important;}
:root:not([data-marflores-theme="dark"]) .mf-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-products-dialog, .mf-ta-products-dialog *))::-webkit-scrollbar-corner{background:#f8edf1!important;}

.compras-sobra-multiplier-suggestion{max-width:72px;white-space:nowrap;cursor:pointer;}

.compras-sobra-multiplier-suggestion:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-top:2px;padding:3px 6px;border:1px solid #d7a8b8;border-radius:999px;background:#fff7fa;color:#8d153f;font:700 8.5px/1.1 var(--mf-ui-font);}
.compras-sobra-multiplier-suggestion:hover{;}
.compras-sobra-multiplier-suggestion:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fbedf2;border-color:#bd718d;}
.compras-sobra-multiplier-popover{position:fixed;z-index:99999;}
.compras-sobra-multiplier-popover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:220px;display:grid;gap:5px;color-scheme:light;}
.compras-sobra-multiplier-popover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){padding:10px;border:1px solid #dfc2cc;border-radius:10px;background:#fff;color:#332d31;box-shadow:0 14px 34px rgba(55,31,40,.18);font-family:var(--mf-ui-font);}
.compras-sobra-multiplier-popover strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font-size:11px;color:#7e2948;}
.compras-sobra-multiplier-popover span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font-size:9.5px;color:#756c71;}
.compras-sobra-multiplier-popover b:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font-size:10.5px;font-weight:650;color:#3b3438;}
.compras-sobra-multiplier-popover button:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){justify-self:start;cursor:pointer;}
.compras-sobra-multiplier-popover button:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-height:28px;padding:0 9px;border:1px solid #b01b50;background:#b01b50;color:#fff;font:700 9px/1 var(--mf-ui-font);}

/* =========================================================
   MARFLORES WEB — 0.0.407 HOMOLOGAÇÃO
   Sobra: ciclo/setor -> planilha automática + fechamento visual.
   ========================================================= */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-card{display:grid!important;gap:8px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:10px 12px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:30px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row .compras-sobra-compact-context{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row .compras-sobra-compact-context:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row .compras-sobra-context-chip:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:28px!important;padding:0 9px!important;border-radius:8px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row .compras-sobra-service-compact{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row .compras-sobra-service-compact:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row .compras-sobra-service-compact:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-left:auto!important;padding-left:12px!important;border-left:1px solid var(--mf-line)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row .compras-sobra-service-row{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row .compras-sobra-service-row:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row .compras-sobra-service-identity:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-service-account-copy:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:28px!important;min-height:28px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row #compras-sobra-service-account{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row #compras-sobra-service-account:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-operation-grid{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-operation-grid:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:grid!important;grid-template-columns:minmax(175px,.72fr) minmax(140px,.52fr) minmax(280px,1.15fr) minmax(390px,1.50fr)!important;gap:8px!important;align-items:end!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-operation-grid>.field{min-width:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-operation-grid>.field:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:grid!important;gap:4px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-operation-grid>.field:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-operation-grid>.field>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0!important;font-size:10px!important;line-height:1.2!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-cycle,
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-sector,
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-auto-sheet-box,
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-order-field,
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order{box-sizing:border-box!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-cycle:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-sector:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-auto-sheet-box:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-order-field:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:38px!important;min-height:38px!important;max-height:38px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-cycle:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-sector:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding-top:0!important;padding-bottom:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-auto-sheet-box{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-auto-sheet-box:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex!important;align-items:center!important;gap:8px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-auto-sheet-box:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:5px 9px!important;border:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-surface)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-auto-sheet-icon{display:grid!important;place-items:center!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-auto-sheet-icon:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){width:24px!important;height:24px!important;flex:0 0 24px!important;border-radius:7px!important;background:var(--mf-accent-soft)!important;color:var(--mf-accent)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-auto-sheet-copy{
  min-width:0!important;display:grid!important;gap:1px!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-auto-sheet-copy>strong,
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-auto-sheet-copy>small{
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-auto-sheet-copy>strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:11px!important;line-height:1.15!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-auto-sheet-copy>small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:8.5px!important;line-height:1.1!important;}

/* Pedido selecionado é informação de contexto, não alerta marsala. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order{width:100%!important;max-width:none!important;justify-self:stretch!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:4px 7px 4px 9px!important;border:1px solid var(--mf-line)!important;border-left:1px solid var(--mf-line)!important;border-radius:8px!important;background:var(--mf-subtle)!important;box-shadow:none!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order-copy{
  gap:0!important;align-content:center!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order-copy>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){color:var(--mf-muted)!important;font-size:8.5px!important;line-height:1.05!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order-copy>strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:11px!important;line-height:1.15!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order-copy>small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:8.5px!important;line-height:1.1!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-change-order{white-space:nowrap!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-change-order:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:30px!important;min-height:30px!important;margin:0 2px 0 12px!important;padding:0 12px!important;border-radius:7px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-sheet-status:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-message:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:25px!important;padding:4px 8px!important;border-radius:7px!important;font-size:10px!important;line-height:1.25!important;}

/* Filtros compactos; o estado ativo preserva a cor semântica do próprio filtro. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){gap:8px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-top:10px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid .compras-sobra-summary-card{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid .compras-sobra-summary-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){gap:1px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid .compras-sobra-summary-card:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:44px!important;padding:6px 10px!important;border-radius:9px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid .compras-sobra-summary-card>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:10px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-grid .compras-sobra-summary-card>strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:14px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-pending.is-active{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-pending.is-active:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fff3d8!important;border-color:#dfa742!important;box-shadow:inset 0 0 0 1px #dfa742!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-multiplier.is-active{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-multiplier.is-active:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#eaf0ff!important;border-color:#8fa3dc!important;box-shadow:inset 0 0 0 1px #8fa3dc!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-ready.is-active{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-ready.is-active:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#e8f6ee!important;border-color:#7ab694!important;box-shadow:inset 0 0 0 1px #7ab694!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-summary-card.filter-all.is-active:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fff7fa!important;border-color:#c98da3!important;box-shadow:inset 0 0 0 1px #c98da3!important;}

/* Barra operacional imediatamente acima da tabela. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-preparation{
  gap:8px!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex!important;align-items:center!important;gap:12px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){justify-content:space-between!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:48px!important;padding:7px 10px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head>.compras-sobra-table-title{flex:0 1 auto!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head>.compras-sobra-table-title:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-width:180px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head>.compras-sobra-table-title:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:grid!important;gap:2px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head>.compras-sobra-table-toolbar:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-width:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head>.compras-sobra-table-toolbar:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head>.compras-sobra-table-toolbar:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){justify-content:flex-end!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head>.compras-sobra-table-toolbar:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin:0 0 0 auto!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-product-filter:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:clamp(310px,38vw,620px)!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-product-filter:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){height:32px!important;min-height:32px!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-product-filter-clear:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-refresh:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){white-space:nowrap!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-product-filter-clear:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-refresh:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){height:32px!important;min-height:32px!important;padding:0 10px!important;}

/* Alinhamento operacional: texto à esquerda, medidas/estado curtos ao centro. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(3),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(5),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(6),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(8){vertical-align:middle!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(3):where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(5):where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(6):where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(8):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){text-align:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(1),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(2),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(4),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(7){vertical-align:middle!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(1):where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(2):where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(4):where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(7):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){text-align:left!important;}

@media(max-width:1180px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-operation-grid{;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-operation-grid:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){grid-template-columns:1fr 1fr!important;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-selected-order:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){max-height:none!important;min-height:38px!important;height:auto!important;}
}
@media(max-width:1050px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){flex-wrap:wrap!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head>.compras-sobra-table-toolbar:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){width:100%!important;}

  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-head>.compras-sobra-table-toolbar:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-left:0!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling #compras-sobra-product-filter:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){flex:1 1 auto!important;width:auto!important;}
}
@media(max-width:680px){
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row{;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){align-items:flex-start!important;flex-direction:column!important;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-header-context-row .compras-sobra-service-compact:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){margin-left:0!important;padding-left:0!important;border-left:0!important;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-operation-grid{;}
  :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-operation-grid:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){grid-template-columns:1fr!important;}
}

/* Dropdown de pedidos: sem rolagem horizontal e com hierarquia em duas linhas. */
body>.compras-sobra-order-results-portal{overflow-y:auto!important;overflow-x:hidden!important;}
body>.compras-sobra-order-results-portal .compras-sobra-order-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:minmax(100px,.34fr) minmax(0,1fr) auto!important;grid-template-areas:"order client stock" "order reference date"!important;gap:3px 10px!important;min-width:0!important;}
body>.compras-sobra-order-results-portal .compras-sobra-order-option>strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-area:order!important;align-self:center!important;white-space:nowrap!important;}
body>.compras-sobra-order-results-portal .compras-sobra-order-option>span:not(.compras-sobra-order-reference){overflow:hidden!important;}
body>.compras-sobra-order-results-portal .compras-sobra-order-option>span:not(.compras-sobra-order-reference):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-area:client!important;min-width:0!important;white-space:nowrap!important;text-overflow:ellipsis!important;}
body>.compras-sobra-order-results-portal .compras-sobra-order-option>.compras-sobra-order-reference{overflow:hidden!important;}
body>.compras-sobra-order-results-portal .compras-sobra-order-option>.compras-sobra-order-reference:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-area:reference!important;min-width:0!important;white-space:nowrap!important;text-overflow:ellipsis!important;}
body>.compras-sobra-order-results-portal .compras-sobra-order-option>small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-area:date!important;white-space:nowrap!important;}
body>.compras-sobra-order-results-portal .compras-sobra-order-option>.compras-sobra-stock:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-area:stock!important;justify-self:end!important;white-space:nowrap!important;}

/* Mult. volta a ser uma coluna estreita e realmente centralizada. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(5):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){width:88px!important;min-width:88px!important;max-width:88px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(5):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){text-align:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(5) .compras-sobra-sort-button:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){justify-content:center!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table :is(th,td):nth-child(5) .compras-sobra-sort-button:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){text-align:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-editor{
  width:100%!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-editor input{width:58px!important;min-width:58px!important;max-width:58px!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-editor input:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){text-align:center!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-confirmed{width:17px!important;flex:0 0 17px!important;display:inline-grid!important;place-items:center!important;}

:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-multiplier-confirmed:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:17px!important;border:1px solid #b9dbc7!important;border-radius:999px!important;background:#edf8f2!important;color:#1f6b45!important;font:700 10px/1 var(--mf-ui-font)!important;}

@media(max-width:680px){
body>.compras-sobra-order-results-portal .compras-sobra-order-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:1fr auto!important;grid-template-areas:"order stock" "client client" "reference date"!important;}
}

/* MARFLORES WEB — 0.0.407 REV6 MODAL APROVADO HOMOLOGAÇÃO */
/* Geometria autoritativa única do modal de preparação */
#compras-sobra-create-dialog{;}
/* MARFLORES WEB — 0.0.407 REV6 MODAL APROVADO HOMOLOGAÇÃO */
/* Geometria autoritativa única do modal de preparação */
#compras-sobra-create-dialog:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:visible!important;}
#compras-sobra-create-dialog:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:min(1080px,calc(100vw - 48px))!important;max-width:min(1080px,calc(100vw - 48px))!important;max-height:calc(100dvh - 40px)!important;padding:0!important;border:0!important;border-radius:15px!important;background:transparent!important;color:var(--mf-text,#27272a)!important;font-family:var(--mf-ui-font,"Instrument Sans",sans-serif)!important;color-scheme:light;}
#compras-sobra-create-dialog:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::backdrop{background:rgba(51,37,44,.26)!important;backdrop-filter:blur(1.5px)!important;}
#compras-sobra-create-dialog>.compras-sobra-create-dialog-card{;}
#compras-sobra-create-dialog>.compras-sobra-create-dialog-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:hidden!important;}
#compras-sobra-create-dialog>.compras-sobra-create-dialog-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){inline-size:100%!important;width:100%!important;max-width:none!important;max-height:calc(100dvh - 40px)!important;margin:0!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important;border:1px solid #ded9dc!important;border-radius:15px!important;background:#fff!important;box-shadow:0 24px 70px rgba(42,27,34,.20)!important;}
#compras-sobra-create-dialog .mf-dialog-head:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){flex:0 0 auto!important;min-height:62px!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;padding:13px 16px 12px!important;border-bottom:1px solid #ece8ea!important;background:#fff!important;box-sizing:border-box!important;}
#compras-sobra-create-dialog .mf-dialog-head>div:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;gap:4px!important;min-width:0!important;}
#compras-sobra-create-dialog .mf-dialog-head h3:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin:0!important;color:#27272a!important;font:760 18px/1.2 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .mf-dialog-head p:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin:0!important;color:#6f6b70!important;font:400 12px/1.4 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .mf-dialog-close:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){flex:0 0 36px!important;width:36px!important;min-width:36px!important;display:grid!important;place-items:center!important;cursor:pointer!important;}
#compras-sobra-create-dialog .mf-dialog-close:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){height:36px!important;min-height:36px!important;padding:0!important;border:1px solid #d7d3d6!important;border-radius:9px!important;background:#fff!important;color:#514b4f!important;box-shadow:none!important;}
#compras-sobra-create-dialog .mf-dialog-close:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-color:#b9afb4!important;background:#fafafa!important;color:#514b4f!important;}
#compras-sobra-create-dialog .mf-dialog-close svg:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:18px!important;}
#compras-sobra-create-dialog .mf-dialog-close svg:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){height:18px!important;stroke-width:1.7!important;}

#compras-sobra-create-dialog .mf-dialog-body{;overflow-y:auto!important;overscroll-behavior:contain!important;}
#compras-sobra-create-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow-x:hidden!important;overflow-y:auto!important;}
#compras-sobra-create-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){flex:1 1 auto!important;scroll-behavior:smooth!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;scrollbar-color:#a8a3a6 #f1f1f2!important;}
#compras-sobra-create-dialog .mf-dialog-body:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-height:0!important;background:#fafafa!important;}
#compras-sobra-create-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar{width:8px!important;}
#compras-sobra-create-dialog .mf-dialog-body:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar{height:8px!important;}
#compras-sobra-create-dialog .mf-dialog-body:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-track{background:#f1f1f2!important;}
#compras-sobra-create-dialog .mf-dialog-body:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-thumb{background:#aaa4a7!important;border-radius:999px!important;border:2px solid #f1f1f2!important;}
#compras-sobra-create-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-button{display:none!important;width:0!important;}
#compras-sobra-create-dialog .mf-dialog-body:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-button{height:0!important;}
#compras-sobra-create-dialog .compras-google-sheets-create-product-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:visible!important;}
#compras-sobra-create-dialog .compras-google-sheets-create-product-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;}
#compras-sobra-create-dialog .compras-google-sheets-create-product-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:11px!important;}
#compras-sobra-create-dialog .compras-google-sheets-create-product-body:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:14px 16px 15px!important;}

#compras-sobra-create-dialog .compras-sobra-create-overview{;}
#compras-sobra-create-dialog .compras-sobra-create-overview:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:visible!important;}
#compras-sobra-create-dialog .compras-sobra-create-overview:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;grid-template-columns:1fr 1.2fr 1fr!important;gap:10px!important;align-items:stretch!important;}
#compras-sobra-create-dialog .compras-create-context-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-result-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:96px!important;min-height:96px!important;box-sizing:border-box!important;padding:11px 12px!important;border:1px solid #e2dee0!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;align-content:center!important;}
#compras-sobra-create-dialog .compras-sobra-create-product-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;grid-template-rows:14px minmax(18px,36px) 16px!important;align-content:center!important;gap:4px!important;border-top:1px solid #e2dee0!important;}
#compras-sobra-create-dialog .compras-create-context-card>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-origin-copy>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-result-card>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex!important;}
#compras-sobra-create-dialog .compras-create-context-card>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-origin-copy>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-result-card>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:14px!important;align-items:center!important;color:#a91d4d!important;font:750 10.5px/1.2 var(--mf-ui-font)!important;letter-spacing:.02em!important;text-transform:uppercase!important;}
#compras-sobra-create-dialog .compras-create-context-card>strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-origin-copy>strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-result-card>strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-top:0!important;color:#27272a!important;font:700 13.5px/1.2 var(--mf-ui-font)!important;}

#compras-sobra-create-dialog .compras-sobra-create-product-card>strong{;}
#compras-sobra-create-dialog .compras-sobra-create-product-card>strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:hidden!important;}
#compras-sobra-create-dialog .compras-sobra-create-product-card>strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow-wrap:anywhere!important;}
#compras-sobra-create-dialog .compras-sobra-create-product-card>small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){align-self:end!important;}
#compras-sobra-create-dialog .compras-create-context-card>small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-origin-copy>small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-result-card>small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-top:0!important;color:#6f6b70!important;font:400 11.5px/1.35 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-create-origin-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;grid-template-columns:minmax(0,1fr) 112px!important;gap:10px!important;align-items:center!important;}
#compras-sobra-create-dialog .compras-sobra-create-origin-copy:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;grid-template-rows:14px minmax(18px,36px) 16px!important;align-content:stretch!important;gap:4px!important;min-width:0!important;}
#compras-sobra-create-dialog .compras-sobra-create-box-qty:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:112px!important;height:100%!important;align-self:stretch!important;justify-self:end!important;justify-items:center!important;align-items:center!important;display:grid!important;grid-template-rows:14px 1fr!important;gap:4px!important;margin:0!important;}
#compras-sobra-create-dialog .compras-sobra-create-box-qty>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:100%!important;margin:0!important;color:#595358!important;text-align:center!important;font:500 11.5px/1.2 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-create-box-qty input:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:100%!important;height:42px!important;min-height:42px!important;padding:0 11px!important;border:1px solid #d7d1d4!important;border-radius:9px!important;background:#fff!important;color:#27272a!important;text-align:center!important;font:500 13.5px/1.2 var(--mf-ui-font)!important;outline:0!important;box-shadow:none!important;}
#compras-sobra-create-dialog .compras-sobra-create-box-qty input:focus:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-color:#b45c7d!important;box-shadow:0 0 0 2px rgba(169,29,77,.08)!important;}
#compras-sobra-create-dialog .compras-sobra-create-result-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;grid-template-rows:14px 22px 30px!important;align-content:stretch!important;gap:4px!important;background:#fff!important;}
#compras-sobra-create-dialog .compras-sobra-create-result-card>strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:#27272a!important;font-size:15px!important;}
#compras-sobra-create-dialog .compras-sobra-use-multiplier:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){justify-self:start!important;margin-top:3px!important;min-height:28px!important;padding:0 9px!important;border:1px solid #d7d1d4!important;border-radius:8px!important;background:#fff!important;color:#4e494c!important;font:650 11px/1 var(--mf-ui-font)!important;cursor:pointer!important;}

/* Área operacional: superfície única e três colunas equivalentes. */
#compras-sobra-create-dialog .compras-sobra-create-name-block{position:relative!important;}
/* Área operacional: superfície única e três colunas equivalentes. */
#compras-sobra-create-dialog .compras-sobra-create-name-block:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:visible!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-block:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;gap:10px!important;padding:13px!important;border:1px solid #e2dee0!important;border-radius:11px!important;background:#fff!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-block>h4:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin:0!important;color:#27272a!important;font:740 15px/1.2 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-create-workflow{;}
#compras-sobra-create-dialog .compras-sobra-create-workflow:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:visible!important;}
#compras-sobra-create-dialog .compras-sobra-create-workflow:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;align-items:start!important;min-width:0!important;}
#compras-sobra-create-dialog .compras-sobra-workflow-label:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .field>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:block!important;}
#compras-sobra-create-dialog .compras-sobra-workflow-label:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .field>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin:0 0 7px!important;color:#5d575b!important;font:560 12px/1.2 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .field>span em:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font-style:normal!important;font-weight:420!important;color:#898287!important;}
#compras-sobra-create-dialog .compras-sobra-product-reference,
#compras-sobra-create-dialog .compras-sobra-final-column{position:relative!important;}
#compras-sobra-create-dialog .compras-sobra-product-reference:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-final-column:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:visible!important;}
#compras-sobra-create-dialog .compras-sobra-product-reference:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-final-column:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-width:0!important;display:grid!important;align-content:start!important;}
#compras-sobra-create-dialog .compras-sobra-product-reference:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-rows:auto 52px minmax(36px,auto)!important;gap:0!important;}
#compras-sobra-create-dialog .compras-sobra-final-column:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-rows:auto minmax(36px,auto)!important;gap:0!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-field:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;grid-template-rows:auto 52px!important;gap:0!important;margin:0!important;}

/* Produtor sem card antigo/rosado. */
#compras-sobra-create-dialog .compras-sobra-variant-fields,
#compras-sobra-create-dialog .compras-sobra-variant-fields[hidden]{
  display:block!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
/* Produtor sem card antigo/rosado. */
#compras-sobra-create-dialog .compras-sobra-variant-fields:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-variant-fields[hidden]:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:visible!important;}
#compras-sobra-create-dialog .compras-sobra-producer-search-wrap{position:relative!important;}
#compras-sobra-create-dialog .compras-sobra-producer-search-wrap:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:visible!important;}
#compras-sobra-create-dialog .compras-sobra-producer-search-wrap:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-width:0!important;}
#compras-sobra-create-dialog .compras-sobra-producer-field:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;grid-template-rows:auto 52px minmax(36px,auto)!important;gap:0!important;}
#compras-sobra-create-dialog .compras-sobra-producer-field:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin:0!important;}

/* Produto selecionado + ação de troca em ícone puro. */
#compras-sobra-create-dialog .compras-sobra-create-known-selected:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:block!important;min-width:0!important;}
#compras-sobra-create-dialog .compras-sobra-create-known-selected:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){padding:0!important;border:0!important;background:transparent!important;}
#compras-sobra-create-dialog .compras-sobra-create-known-selected[hidden]{display:none!important}
#compras-sobra-create-dialog .compras-sobra-product-selected-main:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){height:52px!important;min-height:52px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 36px!important;align-items:center!important;gap:8px!important;padding:5px 6px 5px 11px!important;border:1px solid #d7d1d4!important;border-radius:9px!important;background:#fff!important;box-sizing:border-box!important;}
#compras-sobra-create-dialog .compras-sobra-product-selected-main>div:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;gap:2px!important;min-width:0!important;}
#compras-sobra-create-dialog .compras-sobra-product-selected-main strong{;}
#compras-sobra-create-dialog .compras-sobra-product-selected-main strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:hidden!important;}
#compras-sobra-create-dialog .compras-sobra-product-selected-main strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){text-overflow:ellipsis!important;white-space:nowrap!important;color:#27272a!important;font:690 12.5px/1.2 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-product-selected-main small{;}
#compras-sobra-create-dialog .compras-sobra-product-selected-main small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:hidden!important;}
#compras-sobra-create-dialog .compras-sobra-product-selected-main small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){text-overflow:ellipsis!important;white-space:nowrap!important;color:#777075!important;font:400 10.5px/1.2 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-product-selected-main button:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;display:grid!important;place-items:center!important;padding:0!important;border:1px solid #d7d1d4!important;border-radius:8px!important;background:#fff!important;color:#a91d4d!important;cursor:pointer!important;font-size:0!important;line-height:0!important;}
#compras-sobra-create-dialog .compras-sobra-product-selected-main button:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-color:#b9afb4!important;background:#f7f7f8!important;}
#compras-sobra-create-dialog .compras-sobra-product-selected-main button .compras-hero-icon:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:17px!important;height:17px!important;stroke-width:1.8!important;}
#compras-sobra-create-dialog .compras-sobra-product-selected-main button .sr-only{position:absolute!important;}
#compras-sobra-create-dialog .compras-sobra-product-selected-main button .sr-only:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:hidden!important;}
#compras-sobra-create-dialog .compras-sobra-product-selected-main button .sr-only:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}

/* Campos principais. */
#compras-sobra-create-dialog .compras-sobra-product-search{position:relative!important;}
/* Campos principais. */
#compras-sobra-create-dialog .compras-sobra-product-search:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:visible!important;}
#compras-sobra-create-dialog .compras-sobra-product-search:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-width:0!important;}
#compras-sobra-create-dialog .compras-sobra-product-search>input:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-producer-field>input:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:100%!important;height:52px!important;min-height:52px!important;box-sizing:border-box!important;padding:0 12px!important;border:1px solid #d7d1d4!important;border-radius:9px!important;background:#fff!important;color:#27272a!important;font:500 13px/1.25 var(--mf-ui-font)!important;outline:0!important;box-shadow:none!important;}
#compras-sobra-create-dialog .compras-sobra-product-search>input:focus:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-producer-field>input:focus:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-color:#b45c7d!important;box-shadow:0 0 0 2px rgba(169,29,77,.08)!important;}
#compras-sobra-create-dialog input[type="search"]:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-search-cancel-button,#compras-sobra-create-dialog input[type="search"]:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-search-decoration{-webkit-appearance:none!important;appearance:none!important;display:none!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-help:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-producer-field>small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-height:36px!important;margin:6px 0 0!important;color:#6e686c!important;font:400 11.5px/1.35 var(--mf-ui-font)!important;overflow-wrap:anywhere!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-help.is-resolved:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:#6e686c!important;}

/* Dropdowns flutuantes: não empurram o modal e entram suavemente. */
#compras-sobra-create-dialog .compras-sobra-create-name-results,
#compras-sobra-create-dialog .compras-sobra-producer-results{position:absolute!important;left:0!important;right:0!important;top:54px!important;z-index:80!important;overflow-y:auto!important;}
/* Dropdowns flutuantes: não empurram o modal e entram suavemente. */
#compras-sobra-create-dialog .compras-sobra-create-name-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-producer-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow-x:hidden!important;overflow-y:auto!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-producer-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:100%!important;max-height:250px!important;box-sizing:border-box!important;margin:0!important;padding:5px!important;border:1px solid #ded9dc!important;border-radius:10px!important;background:#fff!important;box-shadow:0 16px 36px rgba(49,32,40,.16)!important;scrollbar-width:thin!important;scrollbar-color:#aaa4a7 #f1f1f2!important;transform-origin:top center!important;animation:mfSobraDropdownIn .14s ease both!important;}
@keyframes mfSobraDropdownIn{
  from{opacity:0;transform:translateY(-5px) scale(.995)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
#compras-sobra-create-dialog .compras-sobra-create-name-results[hidden],
#compras-sobra-create-dialog .compras-sobra-producer-results[hidden],
#compras-sobra-create-dialog .compras-sobra-create-name-results:empty{
  display:none!important;
}
#compras-sobra-create-dialog .compras-sobra-create-name-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar,#compras-sobra-create-dialog .compras-sobra-producer-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar{width:8px!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-results:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar,#compras-sobra-create-dialog .compras-sobra-producer-results:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar{height:8px!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-results:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-track,#compras-sobra-create-dialog .compras-sobra-producer-results:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-track{background:#f1f1f2!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-results:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-thumb,#compras-sobra-create-dialog .compras-sobra-producer-results:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::-webkit-scrollbar-thumb{background:#aaa4a7!important;border-radius:999px!important;border:2px solid #f1f1f2!important;}

/* Opções neutras: nada do tom antigo em “Produtores Veiling”. */
#compras-sobra-create-dialog .compras-google-sheets-product-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-known-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:100%!important;min-width:0!important;}
#compras-sobra-create-dialog .compras-google-sheets-product-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-known-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){box-sizing:border-box!important;}
#compras-sobra-create-dialog .compras-google-sheets-product-option:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-known-option:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:9px 10px!important;border:1px solid transparent!important;border-radius:8px!important;background:#fff!important;color:#27272a!important;box-shadow:none!important;}
#compras-sobra-create-dialog .compras-google-sheets-product-option:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-sobra-create-dialog .compras-google-sheets-product-option.active:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-known-option:hover:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-sobra-create-dialog .compras-sobra-create-known-option:focus-visible:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:#e3e0e2!important;background:#f6f6f7!important;box-shadow:none!important;outline:0!important;}
#compras-sobra-create-dialog .compras-google-sheets-product-option-main strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#27272a!important;font-size:12.5px!important;}
#compras-sobra-create-dialog .compras-google-sheets-product-option-meta:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#747075!important;font-size:10.5px!important;}
#compras-sobra-create-dialog .compras-sobra-producer-results-label:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-producer-section:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){padding:6px 8px 5px!important;color:#655e62!important;background:transparent!important;font:750 10.5px/1.2 var(--mf-ui-font)!important;text-transform:uppercase!important;letter-spacing:.025em!important;}
#compras-sobra-create-dialog .compras-sobra-producer-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:100%!important;min-width:0!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;cursor:pointer!important;}
#compras-sobra-create-dialog .compras-sobra-producer-option:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){padding:9px 10px!important;border:1px solid transparent!important;border-radius:8px!important;background:#fff!important;color:#27272a!important;text-align:left!important;box-shadow:none!important;}
#compras-sobra-create-dialog .compras-sobra-producer-option.is-create:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:18px minmax(0,1fr)!important;}
#compras-sobra-create-dialog .compras-sobra-producer-option:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-producer-option:focus-visible:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-color:#e3e0e2!important;background:#f6f6f7!important;outline:0!important;}
#compras-sobra-create-dialog .compras-sobra-producer-option span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-width:0!important;display:grid!important;gap:3px!important;}
#compras-sobra-create-dialog .compras-sobra-producer-option strong{;}
#compras-sobra-create-dialog .compras-sobra-producer-option strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:hidden!important;}
#compras-sobra-create-dialog .compras-sobra-producer-option strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){text-overflow:ellipsis!important;white-space:nowrap!important;font:690 12.5px/1.2 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-producer-option small{;}
#compras-sobra-create-dialog .compras-sobra-producer-option small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:hidden!important;}
#compras-sobra-create-dialog .compras-sobra-producer-option small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){text-overflow:ellipsis!important;white-space:nowrap!important;color:#747075!important;font:400 10.5px/1.25 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-producer-option em:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font-style:normal!important;white-space:nowrap!important;color:#686166!important;font:500 10.5px/1.2 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-producer-option .compras-hero-icon:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:16px!important;height:16px!important;color:#a91d4d!important;}
#compras-sobra-create-dialog .compras-sobra-producer-directory-state:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){padding:8px!important;color:#6e686c!important;font:500 11px/1.3 var(--mf-ui-font)!important;}

/* Rich Text: cursor e seleção corretos, com leitura confortável. */
#compras-sobra-create-dialog .compras-sobra-create-name-editor{;overflow-y:auto!important;user-select:text!important;}
/* Rich Text: cursor e seleção corretos:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),com leitura confortável. */
#compras-sobra-create-dialog .compras-sobra-create-name-editor:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow-x:hidden!important;overflow-y:auto!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-editor:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-height:52px!important;height:52px!important;max-height:92px!important;box-sizing:border-box!important;padding:11px 11px 3px!important;display:block!important;border:1px solid #d7d1d4!important;border-radius:9px!important;background:#fff!important;color:#27272a!important;font:500 12.5px/1.28 var(--mf-ui-font)!important;outline:0!important;white-space:pre-wrap!important;overflow-wrap:break-word!important;word-break:normal!important;cursor:text!important;-webkit-user-select:text!important;caret-color:#27272a!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-editor:focus:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-color:#b45c7d!important;box-shadow:0 0 0 2px rgba(169,29,77,.08)!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-editor:empty::before{content:attr(data-placeholder)!important;pointer-events:none!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-editor:empty:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::before{color:#aaa4a7!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-editor *{user-select:text!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-editor *:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:inline!important;cursor:text!important;-webkit-user-select:text!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-editor .compras-rich-red:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#ff0000!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-editor:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::selection,#compras-sobra-create-dialog .compras-sobra-create-name-editor *:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::selection{background:rgba(169,29,77,.20)!important;}
#compras-sobra-create-dialog .compras-sobra-create-format:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-height:34px!important;display:flex!important;align-items:center!important;gap:8px!important;margin:6px 0 0!important;}
#compras-sobra-create-dialog .compras-sobra-create-format>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){white-space:nowrap!important;color:#686166!important;font:500 11.5px/1 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-rich-toolbar:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex!important;align-items:center!important;gap:5px!important;}
:is(#compras-sobra-create-dialog .compras-sobra-rich-toolbar,#compras-google-sheets-create-product-dialog .compras-rich-toolbar) .secondary-button:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:30px!important;min-height:30px!important;padding:0 10px!important;border:1px solid #d7d1d4!important;border-radius:8px!important;background:#fff!important;color:#4e494c!important;font-size:11.5px!important;cursor:pointer!important;}
#compras-sobra-create-dialog .compras-sobra-rich-toolbar .secondary-button:hover:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-color:#b9afb4!important;background:#f7f7f8!important;}
#compras-sobra-create-dialog .compras-sobra-font-color-mark{position:relative!important;}
#compras-sobra-create-dialog .compras-sobra-font-color-mark:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:inline-grid!important;place-items:center!important;width:16px!important;height:17px!important;color:#27272a!important;font:700 12px/1 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-font-color-mark::after{content:""!important;position:absolute!important;left:1px!important;right:1px!important;bottom:0!important;}
#compras-sobra-create-dialog .compras-sobra-font-color-mark:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::after{height:2px!important;border-radius:4px!important;background:#ff0000!important;}
#compras-sobra-create-dialog .compras-sobra-font-color-mark.is-default:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::after{background:#555!important;}

/* Estados contextuais legíveis e sem rosa antigo. */
#compras-sobra-create-dialog .compras-sobra-identity-loading{position:absolute!important;left:13px!important;right:13px!important;bottom:13px!important;z-index:4!important;}
#compras-sobra-create-dialog .compras-sobra-identity-loading:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-height:36px!important;display:flex!important;align-items:center!important;gap:7px!important;padding:7px 10px!important;border:1px solid #dfdcde!important;border-radius:8px!important;background:#f8f8f9!important;color:#5f5a5e!important;font:500 11.5px/1.35 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-identity-loading[hidden]{display:none!important}
#compras-sobra-create-dialog .compras-sobra-name-comparison:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;padding:8px 10px!important;border:1px solid #d4e2d7!important;border-radius:8px!important;background:#f8fbf9!important;}
#compras-sobra-create-dialog .compras-sobra-name-comparison[hidden]{display:none!important}
#compras-sobra-create-dialog .compras-sobra-name-comparison>div:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;gap:2px!important;min-width:0!important;}
#compras-sobra-create-dialog .compras-sobra-name-comparison span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:#6e686c!important;font:600 10.5px/1.2 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-name-comparison strong{;}
#compras-sobra-create-dialog .compras-sobra-name-comparison strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:hidden!important;}
#compras-sobra-create-dialog .compras-sobra-name-comparison strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){text-overflow:ellipsis!important;white-space:nowrap!important;color:#27272a!important;font:650 12px/1.2 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-name-comparison button:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){height:30px!important;padding:0 10px!important;border:1px solid #d7d1d4!important;border-radius:8px!important;background:#fff!important;color:#4e494c!important;font:650 10.5px/1 var(--mf-ui-font)!important;cursor:pointer!important;white-space:nowrap!important;}
#compras-sobra-create-dialog .compras-sobra-name-comparison.is-applied:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-color:#b9dbc7!important;background:#edf8f2!important;}
#compras-sobra-create-dialog .compras-sobra-save-behavior:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-height:36px!important;display:flex!important;align-items:center!important;padding:7px 10px!important;border:1px solid #dfdcde!important;border-radius:8px!important;background:#f8f8f9!important;color:#5f5a5e!important;font:500 11.5px/1.35 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .compras-sobra-save-behavior.is-share:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-save-behavior.is-known:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-save-behavior.is-local:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){border-color:#dfdcde!important;background:#f8f8f9!important;color:#5f5a5e!important;}
#compras-sobra-create-dialog .compras-sobra-final-name:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:none!important;}
#compras-sobra-create-dialog .compras-sobra-create-note:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin-top:0!important;padding:9px 11px!important;border:1px solid #dfdcde!important;border-left:1px solid #dfdcde!important;border-radius:8px!important;background:#fff!important;color:#666065!important;font:400 11.5px/1.4 var(--mf-ui-font)!important;}
#compras-sobra-create-dialog .mf-dialog-actions:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important;box-sizing:border-box!important;}
#compras-sobra-create-dialog .mf-dialog-actions:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-height:56px!important;padding:10px 16px!important;border-top:1px solid #ece8ea!important;background:#fff!important;border-radius:0 0 15px 15px!important;}
#compras-sobra-create-dialog .mf-dialog-actions .v6-btn:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-height:36px!important;padding:0 14px!important;border-radius:8px!important;font-size:12px!important;}

@media(max-width:900px){
#compras-sobra-create-dialog:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;}
#compras-sobra-create-dialog .compras-sobra-create-overview:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:1fr!important;}
#compras-sobra-create-dialog .compras-sobra-create-workflow:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:1fr!important;}
#compras-sobra-create-dialog .compras-sobra-final-column:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-column:auto!important;}
  #compras-sobra-create-dialog .compras-sobra-create-name-results,
  #compras-sobra-create-dialog .compras-sobra-producer-results{position:relative!important;top:6px!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)),#compras-sobra-create-dialog .compras-sobra-producer-results:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin-bottom:6px!important;}
}

/* 0.0.408 — Sobra: estados de gravação e último alinhamento do Nome final. */
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.launched,
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.launched-remainder{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.launched:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.launched-remainder:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#e6f4ec!important;color:#1f6b45!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.launch-uncertain{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.launch-uncertain:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fff3d9!important;color:#8a5a00!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.launch-review{;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-status.launch-review:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fde9e7!important;color:#a33f39!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-editor:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){padding:13px 11px 1px!important;}

/* 0.0.410 — lançamento individual da Sobra */
#view-compras-veiling .compras-sobra-status-actions{display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
#view-compras-veiling .compras-sobra-launch-one{cursor:pointer;}

#view-compras-veiling .compras-sobra-launch-one:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:28px;padding:4px 9px;border:1px solid #b70f46;border-radius:8px;background:#fff;color:#a30d3e;font:700 .68rem/1 inherit;}
#view-compras-veiling .compras-sobra-launch-one:hover:not(:disabled):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fff4f7;}
#view-compras-veiling .compras-sobra-launch-one:disabled{opacity:.58;cursor:wait}

/* 0.0.412 — Sobra: pendente é campo de trabalho; resolvido é leitura. */
    #compras-sobra-preparation .compras-sobra-destination-editor:not(.is-resolved) .compras-sobra-destination-input:not(:disabled):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fff!important;border-color:#c9859a!important;color:#27272a!important;box-shadow:0 0 0 1px rgba(139,18,57,.05)!important;}
    #compras-sobra-preparation .compras-sobra-destination-editor:not(.is-resolved) .compras-sobra-destination-input:not(:disabled):focus:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){border-color:#8b1239!important;box-shadow:0 0 0 3px rgba(139,18,57,.10)!important;outline:none!important;}
    #compras-sobra-preparation .compras-sobra-destination-editor.is-resolved .compras-sobra-destination-input,#compras-sobra-preparation .compras-sobra-destination-input:disabled{;}
    #compras-sobra-preparation .compras-sobra-destination-editor.is-resolved .compras-sobra-destination-input:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),#compras-sobra-preparation .compras-sobra-destination-input:disabled:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#f3f1f2!important;color:#777075!important;border-color:#e5dfe2!important;}
    .compras-sobra-destination-cell{display:flex;flex-direction:column;gap:3px;min-width:0;}
    .compras-sobra-destination-section{display:block;}
    .compras-sobra-destination-section:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding-left:2px;color:#75666d;font-size:10.5px;line-height:1.2;}
    .compras-sobra-actions-cell,.compras-sobra-actions-head{width:84px;min-width:84px;}

    .compras-sobra-actions-cell:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),.compras-sobra-actions-head:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){text-align:center!important;}
    .compras-sobra-action-buttons{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;}
    .compras-sobra-launch-one{width:34px!important;min-width:34px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}

    .compras-sobra-launch-one:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:34px!important;padding:0!important;}
    .compras-sobra-launch-one .compras-hero-icon:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){width:18px!important;height:18px!important;}
#compras-sobra-create-dialog .compras-create-placement-details>summary:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex;}
#compras-sobra-create-dialog .compras-create-placement-details>summary:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center;gap:8px;cursor:pointer;padding:8px 10px;border:1px solid #ead9df;border-radius:8px;background:#fff8fa;}
#compras-sobra-create-dialog .compras-create-placement-details>summary small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-left:0;}
.compras-sobra-placement-toggle:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){margin-left:auto;color:#9d1747;font-size:10px;}
.compras-sobra-create-placement[open] .compras-sobra-placement-toggle:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font-size:0;}.compras-sobra-create-placement[open] .compras-sobra-placement-toggle:after{content:"FECHAR ▴";}
.compras-sobra-create-placement[open] .compras-sobra-placement-toggle:after:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){font-size:10px;}
#compras-sobra-create-dialog .compras-create-position-divider:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#8f2147;color:#fff;border:1px solid #7f173c;}#compras-sobra-create-dialog .compras-create-position-option{contain:layout paint;}.compras-sobra-launched-check{display:inline-grid;place-items:center;width:28px;}.compras-sobra-launched-check:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:28px;color:#2f8a5d;}.compras-sobra-launched-check .compras-hero-icon{width:20px;}.compras-sobra-launched-check .compras-hero-icon:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:20px;}.compras-sobra-launch-one:disabled{opacity:.45;cursor:wait}#view-compras-veiling .compras-sobra-table-wrap{overflow:auto!important;overscroll-behavior:contain;}
#view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){max-height:calc(100dvh - 355px)!important;}.compras-sobra-row-error{display:grid;}.compras-sobra-row-error:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:4px 6px;background:#fff0f0;color:#9a2f32;text-align:left;}.compras-sobra-row-error strong,.compras-sobra-row-error small{;}.compras-sobra-row-error strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),.compras-sobra-row-error small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:9px;}.compras-sobra-row-error small{white-space:normal}
#compras-sobra-create-dialog>.compras-sobra-create-dialog-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;}#compras-sobra-create-dialog .mf-dialog-body{;}
#compras-sobra-create-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow:auto;}
#compras-sobra-create-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){flex:0 1 auto!important;}
#compras-sobra-create-dialog .mf-dialog-body:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){min-height:0;max-height:calc(100dvh - 170px);}#compras-sobra-create-dialog .mf-dialog-body{contain:layout paint;}

/* 0.0.419 — progresso do lote da Sobra */
:is(#compras-sobra-batch-dialog,#compras-google-sheets-launch-batch-dialog){padding:0;border:0;background:transparent;color:var(--mf-text)}
:is(#compras-sobra-batch-dialog,#compras-google-sheets-launch-batch-dialog)::backdrop{background:rgba(24,24,27,.48);backdrop-filter:blur(2px)}
:is(#compras-sobra-batch-dialog,#compras-google-sheets-launch-batch-dialog)>.compras-sobra-batch-card{width:min(620px,calc(100vw - 28px));max-height:min(760px,calc(100vh - 28px));overflow:hidden}
:is(#compras-sobra-batch-dialog,#compras-google-sheets-launch-batch-dialog) .compras-sobra-batch-body{display:grid;gap:18px;padding:22px}
.compras-sobra-batch-progress-line{display:flex;align-items:center;justify-content:space-between;gap:16px}
.compras-sobra-batch-progress-line strong{;}
.compras-sobra-batch-progress-line strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:16px;color:var(--mf-text);}
.compras-sobra-batch-progress-line span{;}
.compras-sobra-batch-progress-line span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:13px;font-weight:800;color:var(--mf-accent,#7f1734);}
.compras-sobra-batch-progress-track{overflow:hidden;}
.compras-sobra-batch-progress-track:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:10px;border-radius:999px;background:var(--mf-subtle,#f4f4f5);border:1px solid var(--mf-line,#e4e4e7);}
.compras-sobra-batch-progress-track>span{display:block;width:0;transition:width .2s ease;}
.compras-sobra-batch-progress-track>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:100%;border-radius:inherit;background:var(--mf-accent,#7f1734);}
.compras-sobra-batch-current{display:grid;gap:5px;}
.compras-sobra-batch-current:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:16px;border:1px solid var(--mf-line,#e4e4e7);border-radius:12px;background:var(--mf-subtle,#fafafa);}
.compras-sobra-batch-current>span,.compras-sobra-batch-counters span,.compras-sobra-batch-times span{;}
.compras-sobra-batch-current>span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),.compras-sobra-batch-counters span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),.compras-sobra-batch-times span:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--mf-muted,#71717a);}
.compras-sobra-batch-current>strong{;}
.compras-sobra-batch-current>strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:15px;color:var(--mf-text);}
.compras-sobra-batch-current>small{;}
.compras-sobra-batch-current>small:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:12px;color:var(--mf-muted,#71717a);}
.compras-sobra-batch-counters,.compras-sobra-batch-times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.compras-sobra-batch-counters>div,.compras-sobra-batch-times>div{display:grid;gap:6px;}
.compras-sobra-batch-counters>div:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),.compras-sobra-batch-times>div:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){padding:12px;border:1px solid var(--mf-line,#e4e4e7);border-radius:10px;background:var(--mf-surface,#fff);}
.compras-sobra-batch-counters strong{;}
.compras-sobra-batch-counters strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:22px;line-height:1;color:var(--mf-text);}
.compras-sobra-batch-times strong{;}
.compras-sobra-batch-times strong:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:13px;color:var(--mf-text);}
:is(#compras-sobra-batch-dialog,#compras-google-sheets-launch-batch-dialog) .mf-dialog-actions{justify-content:flex-end}
@media (max-width:620px){.compras-sobra-batch-counters,.compras-sobra-batch-times{grid-template-columns:1fr}.compras-sobra-batch-times>div,.compras-sobra-batch-counters>div{grid-template-columns:1fr auto;align-items:center}}
/* 0.0.420 — Sobra: rolagem interna estável como o Extrato de Compras. */ #view-compras-veiling .compras-sobra-table-wrap{overflow-x:auto!important;overflow-y:auto!important;overscroll-behavior:auto!important;-webkit-overflow-scrolling:touch!important;}
#view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){scrollbar-gutter:stable!important;}
 #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){max-height:calc(100dvh - 360px)!important;} #view-compras-veiling .compras-sobra-table-wrap .compras-sobra-table thead{position:sticky!important;top:0!important;z-index:14!important;}
#view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *))::-webkit-scrollbar{width:10px!important;} #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *))::-webkit-scrollbar{height:10px!important;} #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *))::-webkit-scrollbar-track{background:#f8edf1!important;} #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *))::-webkit-scrollbar-thumb{background:#bd718d!important;border:2px solid #f8edf1!important;border-radius:999px!important;} #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *))::-webkit-scrollbar-thumb:hover{background:#a91d4d!important;} :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-wrap, :root[data-marflores-theme="dark"] #app-screen #view-compras-veiling .compras-sobra-table-wrap{overflow-x:auto!important;overflow-y:auto!important;overscroll-behavior:auto!important;}
:root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),:root[data-marflores-theme="dark"] #app-screen #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){scrollbar-gutter:stable!important;}
 :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *)), :root[data-marflores-theme="dark"] #app-screen #view-compras-veiling .compras-sobra-table-wrap:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:clamp(360px,64dvh,700px)!important;max-height:calc(100dvh - 285px)!important;min-height:320px!important;} :root:not([data-marflores-theme="dark"]) #app-screen #view-compras-veiling .compras-sobra-table-wrap .compras-sobra-table thead, :root[data-marflores-theme="dark"] #app-screen #view-compras-veiling .compras-sobra-table-wrap .compras-sobra-table thead{position:sticky!important;top:0!important;z-index:18!important;} #admin-product-name-dialog .admin-product-name-form-grid>.admin-product-name-legacy-policy[hidden]{display:none!important} #admin-product-name-dialog .admin-product-name-variant-grid>.admin-product-name-legacy-policy[hidden]{display:none!important}
#view-compras-veiling .compras-sobra-product-select:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex;align-items:center;gap:8px;min-width:0;} #view-compras-veiling .compras-sobra-row-select,#view-compras-veiling .compras-sobra-row-select-placeholder{width:16px;min-width:16px;flex:0 0 16px;}
 #view-compras-veiling .compras-sobra-row-select:where(:not(.mf-ta-sobra, .mf-ta-sobra *)),#view-compras-veiling .compras-sobra-row-select-placeholder:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){height:16px;} #view-compras-veiling .compras-sobra-row-select{accent-color:#a90d40;cursor:pointer} #view-compras-veiling .compras-sobra-row-select:disabled{cursor:not-allowed;opacity:.55} #view-compras-veiling .compras-sobra-table tbody tr.is-selected-for-launch>td:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:color-mix(in srgb,var(--mf-accent,#a90d40) 5%,var(--mf-surface,#fff))!important;} #view-compras-veiling .compras-sobra-selection-action{white-space:nowrap} @media(max-width:1280px){#view-compras-veiling .compras-sobra-selection-action:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:9px!important;padding-inline:7px!important;}}
:is(#compras-google-sheets-cost-review-dialog,#compras-google-sheets-create-product-dialog,#compras-sobra-create-dialog) .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){scrollbar-color:#b3134b #f7edf1!important;}
.compras-create-name-format-row:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;}
.compras-create-name-format-row:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:1.8fr .8fr!important;}
.compras-create-name-format-row:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:10px!important;align-items:end!important;}
.compras-create-format-inline .compras-rich-toolbar:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex!important;}
.compras-create-format-inline .compras-rich-toolbar:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center!important;gap:5px!important;margin:0!important;}
.compras-create-cost-grid:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;grid-template-columns:1fr 1fr!important;}
.compras-create-cost-grid:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:8px!important;margin:0!important;}
#compras-create-format-details:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:none!important;}
.compras-font-color-mark:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#222!important;border-bottom:2px solid currentColor!important;}
.compras-font-color-mark.is-red:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#compras-sobra-create-dialog .compras-sobra-font-color-mark:not(.is-default):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#ff0000!important;}
#compras-sobra-create-dialog .compras-sobra-font-color-mark.is-default:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){color:#222!important;}
#compras-sobra-create-dialog .compras-sobra-create-name-editor:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){padding:15px 11px!important;line-height:20px!important;}

/* 0.0.432 — editor de custo isolado */
/* 0.0.509 — Lançamentos: cards de decisão deixam de ter altura fixa/overflow cortado. */
.compras-cost-choice-card:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){position:relative;display:grid;width:100%;overflow:visible;}
.compras-cost-choice-card:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-content:center;height:auto;min-height:62px;box-sizing:border-box;padding:9px 12px;border:1px solid #dfc8d0;border-radius:9px;background:#fff;cursor:pointer;}
.compras-cost-choice-card:is(:hover,.is-selected):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:#b3134b;background:#fff8fa;}
.compras-cost-choice-card.is-disabled:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){cursor:not-allowed;opacity:.58;background:#faf8f9;}
.compras-cost-choice-card.is-disabled:hover:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:#dfc8d0;background:#faf8f9;}.compras-cost-choice-card>input[type=radio]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){position:absolute;width:1px;pointer-events:none;}
.compras-cost-choice-card>input[type=radio]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:1px;opacity:0;}.compras-cost-choice-card>span:not(.compras-cost-editor):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid;min-width:0;overflow:visible;}
.compras-cost-choice-card>span:not(.compras-cost-editor):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:3px;}.compras-cost-choice-card .compras-cost-card-copy strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),.compras-cost-choice-card .compras-cost-card-copy small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){overflow:visible;}
.compras-cost-choice-card .compras-cost-card-copy strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),.compras-cost-choice-card .compras-cost-card-copy small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){white-space:normal;text-overflow:clip;overflow-wrap:anywhere;}
.compras-cost-choice-card .compras-cost-card-copy strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){line-height:1.2;}
.compras-cost-choice-card small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#7a7074;line-height:1.28;}
.compras-cost-editor:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:none;grid-template-columns:minmax(0,1fr) 34px;min-width:0;}
.compras-cost-editor:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center;gap:8px;}.compras-cost-choice-card.is-editing-manual>span:not(.compras-cost-editor):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:none!important;}.compras-cost-choice-card.is-editing-manual>.compras-cost-editor:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid!important;}#view-compras-veiling .compras-cost-editor input:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:100%!important;min-width:0!important;}
#view-compras-veiling .compras-cost-editor input:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:34px!important;min-height:34px!important;box-sizing:border-box!important;margin:0!important;padding:0 10px!important;}.compras-cost-editor-confirm:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid;width:34px;min-width:34px;}
.compras-cost-editor-confirm:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){place-items:center;height:34px;min-height:34px;padding:0;border:0;background:#b3134b;color:#fff;}.compras-cost-editor-confirm svg:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:18px;}
.compras-cost-editor-confirm svg:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:18px;}
.compras-cost-edit-manual:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:none;position:absolute;right:9px;top:50%;width:26px;}
.compras-cost-edit-manual:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){transform:translateY(-50%);place-items:center;height:26px;border:1px solid #dccbd1;border-radius:7px;background:#fff;color:#6f666a;cursor:pointer;}.compras-cost-edit-manual svg{width:14px;}
.compras-cost-edit-manual svg:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:14px;}.compras-cost-choice-card.is-manual-confirmed>.compras-cost-edit-manual:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:grid;}
.compras-cost-choice-card.is-manual-confirmed>.compras-cost-card-copy:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding-right:34px;}.compras-cost-choice-card.is-editing-manual>.compras-cost-edit-manual:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:none!important;}
.compras-cost-edit-manual:is(:hover,:focus-visible):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border-color:#b3134b;background:#fff1f6;color:#b3134b;outline:0;box-shadow:0 0 0 2px #b3134b14;}


/* MARFLORES WEB — 0.0.433 HOMOLOGAÇÃO — split autoritativo + sugestão de multiplicador */
.compras-split-action{position:relative;overflow:visible!important;}
.compras-split-action:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:inline-flex;}
.compras-split-action:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:36px!important;min-height:36px!important;border:1px solid #a90f43!important;border-radius:8px!important;background:#b3134b!important;align-items:stretch!important;}
.compras-split-action>button:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:34px!important;min-height:34px!important;margin:0!important;border:0!important;background:transparent!important;color:#fff!important;opacity:1!important;box-shadow:none!important;font:650 12px/1 var(--mf-ui-font)!important;cursor:pointer;}
.compras-split-main:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex!important;}
.compras-split-main:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center!important;justify-content:center!important;gap:0!important;padding:0 13px!important;border-radius:7px 0 0 7px!important;white-space:nowrap!important;}
.compras-split-main-icon:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:none!important;}
.compras-split-arrow:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;width:34px!important;min-width:34px!important;}
.compras-split-arrow:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){place-items:center!important;padding:0!important;border-radius:0 7px 7px 0!important;border-left:1px solid rgba(255,255,255,.14)!important;}
.compras-split-chevron:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:17px!important;}
.compras-split-chevron:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:17px!important;}
.compras-split-action>button:disabled:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:rgba(255,255,255,.72)!important;opacity:.62!important;cursor:not-allowed!important;}.compras-split-menu{position:absolute;right:0;bottom:43px!important;z-index:80;}
.compras-split-menu:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:286px;}
.compras-split-menu:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding:5px;background:#fff;border:1px solid #ddd;border-radius:10px;box-shadow:0 14px 36px #2f182133;}.compras-split-menu[hidden]{display:none!important}
.compras-split-menu>button:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:100%;display:grid;grid-template-columns:22px 1fr;}
.compras-split-menu>button:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){appearance:none;padding:9px 10px;border:0;background:transparent;gap:9px;text-align:left;color:#302c2e;cursor:pointer;}
.compras-split-menu>button:is(:hover,:focus-visible):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:#fff3f7;outline:0;}
.compras-split-menu-copy:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:flex;min-width:0;}
.compras-split-menu-copy:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){flex-direction:column;}
.compras-split-menu-copy small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){white-space:normal;}
.compras-split-menu-icon svg:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:18px;}.compras-sobra-multiplier-conflict{white-space:nowrap;}.compras-sobra-multiplier-conflict:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){font-size:9px;line-height:1;color:#8a5a19;}#view-compras-veiling .compras-sobra-multiplier-editor{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:auto!important;min-width:64px!important}#view-compras-veiling .compras-sobra-multiplier-editor input{width:58px!important;min-width:58px!important;box-sizing:border-box!important;}
#view-compras-veiling .compras-sobra-multiplier-editor input:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){min-height:32px!important;height:32px!important;text-align:center!important;}

/* MARFLORES WEB — 0.0.435 HOMOLOGAÇÃO — feedback de preparação sem atraso artificial */
.compras-split-main[data-original-text]:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:7px!important;}.compras-split-main[data-original-text]::before{content:"";}
.compras-split-main[data-original-text]:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *))::before{display:block;width:13px;flex:0 0 13px;}
.compras-split-main[data-original-text]:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *))::before{height:13px;border:2px solid rgba(255,255,255,.42);border-top-color:#fff;border-radius:50%;animation:spin .65s linear infinite;}
.compras-split-main[data-original-text] [data-button-label]:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color:#fff!important;}
/* ============================================================
   MARFLORES WEB — 0.0.445 HOMOLOGAÇÃO
   Lançamentos: grade autoritativa após auditoria de CSS.
   Um único bloco define proporções:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),truncamento e Ações sticky.
   Remove a concorrência 0.0.443/0.0.444 de regras !important.
   ============================================================ */
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:100%!important;min-width:1396px!important;table-layout:fixed!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-colgroup .cgs-col-check:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:28px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-colgroup .cgs-col-origin:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:48px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-colgroup .cgs-col-date:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:92px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-colgroup .cgs-col-product:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:240px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-colgroup .cgs-col-qty:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:78px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-colgroup .cgs-col-veiling-cost:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:78px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-colgroup .cgs-col-target:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:245px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-colgroup .cgs-col-base:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:70px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-colgroup .cgs-col-sheet-qty:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:84px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-colgroup .cgs-col-sheet-cost:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:98px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-colgroup .cgs-col-multiplier:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:105px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-colgroup .cgs-col-status:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:90px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-colgroup .cgs-col-actions:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:140px!important;}

#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(1):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:28px!important;min-width:28px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(2):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:48px!important;min-width:48px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(3):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:92px!important;min-width:92px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(4):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:240px!important;min-width:0!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(5):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:78px!important;min-width:78px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(6):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:78px!important;min-width:78px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(7):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:245px!important;min-width:0!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(8):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:70px!important;min-width:70px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(9):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:84px!important;min-width:84px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(10):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:98px!important;min-width:98px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(11):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:105px!important;min-width:105px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(12):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:90px!important;min-width:90px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(13):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:140px!important;min-width:140px!important;max-width:140px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(1):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td:nth-child(1):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding-left:3px!important;padding-right:3px!important;text-align:center!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(2):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td:nth-child(2):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding-left:6px!important;padding-right:6px!important;}

/* Produto e destino ganham ellipsis; o conteúdo integral já é exposto por title no HTML/JS. */
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td:nth-child(4):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td:nth-child(7):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-width:0!important;overflow:hidden!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td:nth-child(4)>strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td:nth-child(4)>small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-target-control>[data-link-target]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:block!important;max-width:100%!important;overflow:hidden!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td:nth-child(4)>strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td:nth-child(4)>small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-target-control>[data-link-target]:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){text-overflow:ellipsis!important;white-space:nowrap!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-target,
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-target-control:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-width:0!important;max-width:100%!important;}

/* Ações: quatro controles sempre visíveis; sticky sem sombra/painel artificial. */
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(13):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td.compras-google-sheets-link-actions-cell:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){position:sticky!important;right:0!important;width:140px!important;min-width:140px!important;max-width:140px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(13):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)),#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td.compras-google-sheets-link-actions-cell:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding-left:3px!important;padding-right:3px!important;text-align:center!important;white-space:nowrap!important;background:var(--mf-surface,#fff)!important;border-left:1px solid var(--mf-line,#e4e4e7)!important;box-shadow:none!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(13):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){z-index:24!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table>thead>tr:nth-child(2)>th:nth-child(13):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-subtle,#fafafa)!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody td.compras-google-sheets-link-actions-cell:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){z-index:9!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-table tbody tr:hover td.compras-google-sheets-link-actions-cell:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){background:var(--mf-hover,#faf7f8)!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-actions-cell .compras-google-sheets-action-button:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){width:30px!important;min-width:30px!important;}
#app-screen #view-compras-veiling #compras-google-sheets-panel .compras-google-sheets-link-actions-cell .compras-google-sheets-action-button:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:30px!important;min-height:30px!important;margin:0 1px!important;padding:0!important;}
#view-compras-veiling .compras-sobra-status.manual-resolved{;}
#view-compras-veiling .compras-sobra-status.manual-resolved:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#eef7f1;color:#2f6f50;border-color:#c9e3d2;}
#view-compras-veiling .compras-sobra-manual-one:not(.is-reopen):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#edf5fd;border-color:#86b2dd;color:#2d66a1;}
#view-compras-veiling .compras-sobra-manual-one:not(.is-reopen):hover:not(:disabled):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#d9eafb;border-color:#6f9fce;color:#245785;}
#view-compras-veiling .compras-sobra-manual-one.is-reopen{;}
#view-compras-veiling .compras-sobra-manual-one.is-reopen:where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#fff;border-color:#7b8b82;color:#4f675a;}
#view-compras-veiling .compras-sobra-manual-one.is-reopen:hover:not(:disabled){;}
#view-compras-veiling .compras-sobra-manual-one.is-reopen:hover:not(:disabled):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#f2f7f4;}
:root[data-marflores-theme="dark"] #view-compras-veiling .compras-sobra-manual-one:not(.is-reopen){;}
:root[data-marflores-theme="dark"] #view-compras-veiling .compras-sobra-manual-one:not(.is-reopen):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#213143;border-color:#54779c;color:#87b9e9;}
:root[data-marflores-theme="dark"] #view-compras-veiling .compras-sobra-manual-one:not(.is-reopen):hover:not(:disabled){;}
:root[data-marflores-theme="dark"] #view-compras-veiling .compras-sobra-manual-one:not(.is-reopen):hover:not(:disabled):where(:not(.mf-ta-sobra, .mf-ta-sobra *)){background:#293d54;border-color:#6c90b6;color:#a7cef2;}


/* 0.0.454 — CORTE: conversão explícita para maços. */
.compras-cut-bunch-choice:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin: 0;padding: 12px 14px;border: 1px solid var(--compras-border, #ded8d6);border-radius: 12px;background: var(--compras-surface, #fff);}
.compras-cut-bunch-choice[hidden] { display: none !important; }
.compras-cut-bunch-choice legend:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){padding: 0 6px;font-weight: 700;}
.compras-cut-bunch-choice > p:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin: 0 0 10px;font-size: .82rem;color: var(--compras-muted, #6f6663);}
.compras-cut-bunch-field:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin: 0;}
.compras-cut-bunch-field input {max-width: 150px;}
.compras-cut-bunch-preview:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-top: 10px;padding: 10px 12px;border-radius: 10px;background: rgba(111, 30, 52, .055);font-size: .84rem;line-height: 1.4;}
.compras-cut-bunch-preview strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){color: var(--compras-accent, #6f1e34);}


/* ============================================================
   MARFLORES WEB — 0.0.458 HOMOLOGAÇÃO
   Paridade de modais: preparação + revisão compactas; remoção com confirmação interna.
   A forma comum continua compartilhada; somente CORTE pode exibir maços.
   ============================================================ */
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;grid-template-columns:1fr!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:8px!important;align-items:start!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid.has-cut-bunch:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:minmax(0,2fr) minmax(180px,.82fr)!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>#compras-create-launch-choice:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;padding:8px 9px!important;gap:6px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>#compras-create-launch-choice>p:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;font-size:10.5px!important;line-height:1.2!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>#compras-create-launch-choice>.compras-launch-choice-option:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:46px!important;padding:6px 8px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>#compras-create-launch-choice>.compras-launch-choice-option strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:11.5px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>#compras-create-launch-choice>.compras-launch-choice-option small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:10px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>#compras-create-launch-choice>.compras-launch-choice-remember:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-top:0!important;padding:5px 2px 0!important;min-height:0!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>#compras-create-launch-choice>.compras-launch-choice-remember strong:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:10.5px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>#compras-create-launch-choice>.compras-launch-choice-remember small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:9.5px!important;line-height:1.2!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>.compras-create-cut-card:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;min-height:0!important;padding:8px 9px!important;border-radius:9px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>.compras-create-cut-card>p:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0 0 5px!important;font-size:10px!important;line-height:1.2!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>.compras-create-cut-card .compras-cut-bunch-field:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:grid!important;grid-template-columns:1fr!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>.compras-create-cut-card .compras-cut-bunch-field:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:3px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>.compras-create-cut-card .compras-cut-bunch-field>span:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:10.5px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>.compras-create-cut-card .compras-cut-bunch-field input:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){width:100%!important;max-width:none!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>.compras-create-cut-card .compras-cut-bunch-field input:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:34px!important;height:34px!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>.compras-create-cut-card .compras-cut-bunch-field small:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:9.5px!important;line-height:1.2!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>.compras-create-cut-preview:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-column:1/-1!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>.compras-create-cut-preview:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;padding:7px 10px!important;min-height:0!important;font-size:10.5px!important;line-height:1.25!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog #compras-create-cut-bunch[hidden]+#compras-create-cut-preview{display:none!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid:not(.has-cut-bunch)>#compras-create-launch-choice:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-column:1/-1!important;}
@media(max-width:820px){
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-template-columns:1fr!important;}
#view-compras-veiling #compras-google-sheets-create-product-dialog .compras-create-operation-grid>*:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){grid-column:1!important;}
}


/* 0.0.458 — Revisar lançamento usa a mesma composição compacta do Criar/Editar preparação. */
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid{display:grid!important;grid-template-columns:1fr!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:8px!important;align-items:start!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid.has-cut-bunch{grid-template-columns:minmax(0,2fr) minmax(180px,.82fr)!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>#compras-google-sheets-review-launch-choice:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;padding:8px 9px!important;gap:6px!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>#compras-google-sheets-review-launch-choice>p:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;font-size:10.5px!important;line-height:1.2!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>#compras-google-sheets-review-launch-choice>.compras-launch-choice-option:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:46px!important;padding:6px 8px!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>#compras-google-sheets-review-launch-choice>.compras-launch-choice-option strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:11.5px!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>#compras-google-sheets-review-launch-choice>.compras-launch-choice-option small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:10px!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>#compras-google-sheets-review-launch-choice>.compras-launch-choice-remember:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin-top:0!important;padding:5px 2px 0!important;min-height:0!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>#compras-google-sheets-review-launch-choice>.compras-launch-choice-remember strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:10.5px!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>#compras-google-sheets-review-launch-choice>.compras-launch-choice-remember small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:9.5px!important;line-height:1.2!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>.compras-review-cut-card:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;min-height:0!important;padding:8px 9px!important;border-radius:9px!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>.compras-review-cut-card>p:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0 0 5px!important;font-size:10px!important;line-height:1.2!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>.compras-review-cut-card .compras-cut-bunch-field{display:grid!important;grid-template-columns:1fr!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>.compras-review-cut-card .compras-cut-bunch-field:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:3px!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>.compras-review-cut-card .compras-cut-bunch-field>span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:10.5px!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>.compras-review-cut-card .compras-cut-bunch-field input{width:100%!important;max-width:none!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>.compras-review-cut-card .compras-cut-bunch-field input:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:34px!important;height:34px!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>.compras-review-cut-card .compras-cut-bunch-field small:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:9.5px!important;line-height:1.2!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>.compras-review-cut-preview{grid-column:1/-1!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>.compras-review-cut-preview:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){margin:0!important;padding:7px 10px!important;min-height:0!important;font-size:10.5px!important;line-height:1.25!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog #compras-google-sheets-review-cut-bunch[hidden]+#compras-google-sheets-review-cut-preview{
  display:none!important;
}
#view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid:not(.has-cut-bunch)>#compras-google-sheets-review-launch-choice{grid-column:1/-1!important;}

/* 0.0.458 — confirmação de remoção dentro do sistema; sem window.confirm no fluxo de preparação. */
#view-compras-veiling #compras-google-sheets-remove-preparation-dialog .compras-google-sheets-remove-preparation-card{width:min(500px,calc(100vw - 32px))!important;}
#view-compras-veiling #compras-google-sheets-remove-preparation-dialog .compras-google-sheets-remove-preparation-body{display:grid!important;}
#view-compras-veiling #compras-google-sheets-remove-preparation-dialog .compras-google-sheets-remove-preparation-body:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:10px!important;}
#view-compras-veiling #compras-google-sheets-remove-preparation-dialog .compras-google-sheets-remove-preparation-summary{display:grid!important;}
#view-compras-veiling #compras-google-sheets-remove-preparation-dialog .compras-google-sheets-remove-preparation-summary:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:3px!important;padding:10px 11px!important;border:1px solid var(--mf-line,#e4e4e7)!important;border-radius:9px!important;background:var(--mf-subtle,#fafafa)!important;}
#view-compras-veiling #compras-google-sheets-remove-preparation-dialog .compras-google-sheets-remove-preparation-summary strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:12.5px!important;color:var(--mf-text,#27272a)!important;}
#view-compras-veiling #compras-google-sheets-remove-preparation-dialog .compras-google-sheets-remove-preparation-summary span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:10.5px!important;color:var(--mf-muted,#71717a)!important;}
#view-compras-veiling #compras-google-sheets-remove-preparation-dialog .compras-google-sheets-remove-preparation-note{display:grid!important;}
#view-compras-veiling #compras-google-sheets-remove-preparation-dialog .compras-google-sheets-remove-preparation-note:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){gap:3px!important;padding:9px 10px!important;border:1px solid #f0c2ca!important;border-radius:8px!important;background:#fdecef!important;}
#view-compras-veiling #compras-google-sheets-remove-preparation-dialog .compras-google-sheets-remove-preparation-note strong:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:11px!important;color:#8d2d40!important;}
#view-compras-veiling #compras-google-sheets-remove-preparation-dialog .compras-google-sheets-remove-preparation-note span:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){font-size:10.5px!important;line-height:1.3!important;color:#7b5c65!important;}
@media(max-width:820px){
  #view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid{grid-template-columns:1fr!important;}
  #view-compras-veiling #compras-google-sheets-cost-review-dialog .compras-review-operation-grid>*{grid-column:1!important;}
}


/* ============================================================
   0.0.495 — DASHBOARD COMPRAS • DENSIDADE VISUAL
   Mantém V13 e fonte consolidada em aberto; corrige somente a
   presença/legibilidade dos acessos rápidos e do estado vazio.
   ============================================================ */
#view-compras-veiling .compras-dashboard-v492{--mf491-brand:#a61e4d;--mf491-brand-600:#8f183f;--mf491-brand-50:#fff2f6;--mf491-line:#e4e7ec;--mf491-gray-25:#fcfcfd;--mf491-gray-50:#f9fafb;--mf491-gray-100:#f2f4f7;--mf491-gray-400:#98a2b3;--mf491-gray-500:#667085;--mf491-gray-700:#344054;--mf491-gray-800:#1d2939;--mf491-gray-900:#101828;--mf491-shadow:0 1px 2px rgba(16,24,40,.04),0 8px 22px rgba(16,24,40,.035);font-family:"Outfit",var(--mf-ui-font)!important;display:flex;flex-direction:column;gap:12px;min-height:0}
#view-compras-veiling .compras-dashboard-v492 :is(button,input,select){font-family:"Outfit",var(--mf-ui-font)!important}
#view-compras-veiling .compras-dashboard-v492 .mf-tail-svg{width:22px;height:22px;display:block;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#view-compras-veiling .compras-dashboard-v492 .mf-tail-arrow-svg{width:16px;height:16px;display:block;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#view-compras-veiling .mf491-dashboard-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;animation:mf492DashReveal .45s cubic-bezier(.16,1,.3,1) both}
#view-compras-veiling .mf491-dashboard-eyebrow{display:block;margin-bottom:3px;color:var(--mf491-brand);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
#view-compras-veiling .mf491-dashboard-head h1{margin:0!important;font-size:27px!important;line-height:34px!important;font-weight:700!important;letter-spacing:-.02em!important;color:var(--mf491-gray-900)!important}
#view-compras-veiling .mf491-dashboard-head p{margin:3px 0 0!important;font-size:13px!important;line-height:18px!important;color:var(--mf491-gray-500)!important}
#view-compras-veiling .mf491-dashboard-head p strong{font-weight:600;color:var(--mf491-gray-700)}
#view-compras-veiling .mf491-dashboard-env{font-size:12px;color:#027a48;font-weight:600;background:#ecfdf3;border-radius:999px;padding:6px 10px}
#view-compras-veiling .mf491-quick-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
#view-compras-veiling .mf491-quick-card{position:relative;overflow:hidden;border:1px solid var(--mf491-line)!important;background:#fff!important;border-radius:14px!important;padding:11px 13px!important;min-height:90px!important;text-align:left!important;box-shadow:var(--mf491-shadow)!important;color:var(--mf491-gray-900)!important;transition:transform .26s cubic-bezier(.22,.74,.22,1),box-shadow .26s cubic-bezier(.22,.74,.22,1),border-color .26s!important}
#view-compras-veiling .mf491-quick-card::after{content:"";position:absolute;inset:auto 20px 0;height:3px;background:var(--mf491-brand);border-radius:999px 999px 0 0;transform:scaleX(0);transform-origin:left;transition:transform .26s cubic-bezier(.22,.74,.22,1)}
#view-compras-veiling .mf491-quick-card:hover{transform:translateY(-4px);box-shadow:0 12px 20px -4px rgba(16,24,40,.08),0 4px 6px -2px rgba(16,24,40,.03)!important;border-color:#e9c6d3!important}
#view-compras-veiling .mf491-quick-card:hover::after{transform:scaleX(1)}
#view-compras-veiling .mf491-quick-card:active{transform:translateY(-1px) scale(.988)}
#view-compras-veiling .mf491-quick-icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid #f0d0db;border-radius:10px;background:var(--mf491-brand-50);color:var(--mf491-brand);transition:.24s cubic-bezier(.22,.74,.22,1)}
#view-compras-veiling .mf491-quick-arrow{position:absolute;right:13px;top:13px;width:22px;height:22px;color:var(--mf491-gray-400);display:grid;place-items:center;transition:.22s cubic-bezier(.22,.74,.22,1)}
#view-compras-veiling .mf491-quick-card:hover .mf491-quick-icon{background:var(--mf491-brand);border-color:var(--mf491-brand);color:#fff;transform:translateY(-2px) scale(1.035)}
#view-compras-veiling .mf491-quick-card:hover .mf491-quick-arrow{color:var(--mf491-brand);transform:translateX(3px)}
#view-compras-veiling .mf491-quick-card strong{display:block;margin-top:7px;font-size:13.8px;font-weight:650;color:var(--mf491-gray-800);transition:color .22s}
#view-compras-veiling .mf491-quick-card small{display:block;margin-top:2px;color:var(--mf491-gray-500);font-size:10.3px;line-height:13.5px}
#view-compras-veiling .mf491-dashboard-main-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(300px,3fr);gap:12px;align-items:stretch;min-height:0}
#view-compras-veiling .mf491-dashboard-card{overflow:hidden;border:1px solid var(--mf491-line)!important;background:#fff!important;border-radius:16px!important;box-shadow:var(--mf491-shadow)!important}
#view-compras-veiling .mf491-chart-card{padding:15px 18px 13px;display:flex;flex-direction:column;min-height:330px}
#view-compras-veiling .mf491-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
#view-compras-veiling .mf491-chart-head h2{margin:0!important;font-size:18px!important;line-height:28px!important;font-weight:600!important;color:var(--mf491-gray-800)!important}
#view-compras-veiling .mf491-chart-head p,#view-compras-veiling .mf491-recent-head p{margin:3px 0 0!important;font-size:12px!important;color:var(--mf491-gray-500)!important}
#view-compras-veiling .mf491-total{text-align:right}.mf491-total span{display:block;font-size:12px;color:var(--mf491-gray-500)}
#view-compras-veiling .mf491-total strong{display:block;margin-top:5px;font-size:24px;line-height:32px;color:var(--mf491-brand);font-weight:700}
#view-compras-veiling .mf491-chart-wrap{position:relative;flex:1;min-height:0;margin-top:2px;display:flex;align-items:center;justify-content:center}
#view-compras-veiling .mf491-chart-wrap svg{display:block;width:100%;height:auto;max-height:286px;overflow:visible}.mf491-gridline{stroke:var(--mf491-gray-100);stroke-width:1}.mf491-divider{stroke:#e9eaed;stroke-width:1;stroke-dasharray:4 6}.mf491-axis{fill:var(--mf491-gray-400);font-family:"Outfit",sans-serif;font-size:11px}.mf491-chart-group{fill:var(--mf491-gray-500);font-family:"Outfit",sans-serif;font-size:11px;font-weight:600;letter-spacing:.06em}.mf491-label{fill:#344054;font-family:"Outfit",sans-serif;font-size:12px;font-weight:600}.mf491-bar{fill:var(--mf491-brand)}
#view-compras-veiling .mf491-chart-empty{position:absolute;left:50%;top:50%;transform:translate(-50%,-15%);width:min(440px,72%);margin:0!important;padding:9px 12px;border-radius:10px;background:rgba(255,255,255,.92);text-align:center;font-size:11px!important;line-height:1.4!important;color:var(--mf491-gray-500)!important}
#view-compras-veiling .mf491-recent-card{padding:14px 15px;min-height:330px;display:flex;flex-direction:column}.mf491-recent-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.mf491-recent-head h3{margin:0!important;font-size:16px!important;line-height:24px!important;font-weight:600!important;color:var(--mf491-gray-800)!important}.mf491-recent-head button{height:32px!important;padding:0 10px!important;border-radius:8px!important;border:1px solid var(--mf491-line)!important;background:#fff!important;color:var(--mf491-gray-500)!important;font-size:12px!important;font-weight:500!important}
#view-compras-veiling .mf491-recent-empty{margin:auto 0;display:grid;justify-items:center;text-align:center;padding:26px 14px;color:var(--mf491-gray-500)}.mf491-recent-icon{width:48px;height:48px;border:1px solid #f0d0db;border-radius:14px;background:var(--mf491-brand-50);display:grid;place-items:center;color:var(--mf491-brand)}.mf491-recent-empty strong{margin-top:12px;font-size:13px;color:var(--mf491-gray-800)}.mf491-recent-empty p{max-width:260px;margin:5px 0 0!important;font-size:11px!important;line-height:1.45!important;color:var(--mf491-gray-500)!important}
@keyframes mf492DashReveal{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:1260px){#view-compras-veiling .mf491-quick-grid{grid-template-columns:repeat(3,1fr)}#view-compras-veiling .mf491-dashboard-main-grid{grid-template-columns:1fr}}
@media(max-width:760px){#view-compras-veiling .mf491-quick-grid{grid-template-columns:1fr 1fr}#view-compras-veiling .mf491-dashboard-head,#view-compras-veiling .mf491-chart-head{display:block}#view-compras-veiling .mf491-dashboard-env{display:inline-flex;margin-top:10px}#view-compras-veiling .mf491-total{text-align:left;margin-top:12px}}
@media(max-width:520px){#view-compras-veiling .mf491-quick-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#view-compras-veiling .compras-dashboard-v492 *,#view-compras-veiling .compras-dashboard-v492 *::before,#view-compras-veiling .compras-dashboard-v492 *::after{animation:none!important;transition:none!important}}

/* ============================================================
   0.0.495 — SOBRA • BADGE DE SEÇÃO NO AUTOCOMPLETE
   Visual apenas: mantém a altura e a geografia atuais das linhas.
   VEILING = laranja; qualquer outra seção = verde.
   ============================================================ */
body>.compras-sobra-destination-portal .compras-google-sheets-product-option-meta .compras-sobra-section-badge:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){display:inline-flex!important;}
body>.compras-sobra-destination-portal .compras-google-sheets-product-option-meta .compras-sobra-section-badge:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){align-items:center!important;justify-content:center!important;white-space:nowrap!important;}
body>.compras-sobra-destination-portal .compras-google-sheets-product-option-meta .compras-sobra-section-badge:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){height:16px!important;min-height:16px!important;padding:0 6px!important;border-radius:999px!important;font-family:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif!important;font-size:8.2px!important;line-height:1!important;font-weight:700!important;letter-spacing:.015em!important;}
body>.compras-sobra-destination-portal .compras-google-sheets-product-option-meta .compras-sobra-section-badge.is-veiling:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border:1px solid #f6c58d!important;background:#fff1df!important;color:#bf6500!important;}
body>.compras-sobra-destination-portal .compras-google-sheets-product-option-meta .compras-sobra-section-badge.is-other:where(:not(.mf-ta-sobra, .mf-ta-sobra *)):where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){border:1px solid #bde4cd!important;background:#edf9f2!important;color:#237a4d!important;}

/* ============================================================
   0.0.509 — auditoria dos modais de Lançamentos
   Corrige corte de conteúdo causado pela compactação dos cards de custo.
   ============================================================ */
#view-compras-veiling #compras-google-sheets-cost-review-dialog .mf-dialog-body{overflow-x:hidden!important;}
/* ============================================================
   0.0.509 — auditoria dos modais de Lançamentos
   Corrige corte de conteúdo causado pela compactação dos cards de custo.
   ============================================================ */
#view-compras-veiling #compras-google-sheets-cost-review-dialog .mf-dialog-body:where(:not(.mf-ta-sobra-overlay, .mf-ta-sobra-overlay *)){overflow-y:auto!important;overflow-x:hidden!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog #compras-google-sheets-cost-review-options.compras-cost-card-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-template-columns:repeat(3,minmax(0,1fr))!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog #compras-google-sheets-cost-review-options.compras-cost-card-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-auto-rows:minmax(86px,auto)!important;align-items:stretch!important;gap:8px!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog #compras-google-sheets-cost-review-options .compras-cost-compact-card:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-width:0!important;overflow:visible!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog #compras-google-sheets-cost-review-options .compras-cost-compact-card:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-height:86px!important;height:auto!important;align-content:start!important;padding:10px 12px!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog #compras-google-sheets-cost-review-options .compras-cost-card-copy:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){min-width:0!important;overflow:visible!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog #compras-google-sheets-cost-review-options .compras-cost-card-copy :is(strong,small):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){display:block!important;overflow:visible!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog #compras-google-sheets-cost-review-options .compras-cost-card-copy :is(strong,small):where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){white-space:normal!important;text-overflow:clip!important;overflow-wrap:anywhere!important;}
@media(max-width:820px){
  #view-compras-veiling #compras-google-sheets-cost-review-dialog #compras-google-sheets-cost-review-options.compras-cost-card-grid{grid-template-columns:1fr!important;}
#view-compras-veiling #compras-google-sheets-cost-review-dialog #compras-google-sheets-cost-review-options.compras-cost-card-grid:where(:not(.mf-ta-lancamentos, .mf-ta-lancamentos *, .mf-ta-lancamentos-overlay, .mf-ta-lancamentos-overlay *)){grid-auto-rows:auto!important;}
}

/* ============================================================
   0.0.514 — DASHBOARD COMPRAS • DADOS REAIS / VEILING REPORT
   Preserva a estrutura visual corrente; substitui somente o
   conteúdo analítico do card Compras do dia + Últimas compras.
   ============================================================ */
#view-compras-veiling .mf491-dashboard-main-grid{grid-template-columns:minmax(0,1.82fr) minmax(430px,1fr);gap:14px!important;align-items:stretch}
#view-compras-veiling .mf491-chart-card,#view-compras-veiling .mf491-recent-card{min-height:500px}
#view-compras-veiling .mf514-chart-head{align-items:flex-start}
#view-compras-veiling .mf514-toolbar{display:grid;grid-template-columns:auto 1px auto;align-items:end;gap:14px}
#view-compras-veiling .mf514-filter-block,#view-compras-veiling .mf514-total-block{display:flex;flex-direction:column;gap:5px}
#view-compras-veiling .mf514-toolbar-label{font-size:10px;line-height:1;color:var(--mf491-gray-500);font-weight:600;min-height:10px}
#view-compras-veiling .mf514-filter-row{display:flex;align-items:center;gap:8px}
#view-compras-veiling .mf514-search-button{height:36px!important;min-height:36px!important;padding:0 13px!important;border:1px solid #e4e7ec!important;border-radius:8px!important;background:#fff!important;color:#475467!important;font-size:11px!important;font-weight:600!important;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease!important}
#view-compras-veiling .mf514-search-button:hover{background:#fff4f7!important;border-color:#d8aaba!important;color:var(--mf491-brand)!important;box-shadow:0 4px 10px rgba(181,18,75,.08)!important;transform:translateY(-1px)}
#view-compras-veiling .mf514-search-button:active{transform:translateY(0)}
#view-compras-veiling .mf514-toolbar-divider{width:1px;height:36px;background:#eef1f4;align-self:end}
#view-compras-veiling .mf514-total-block{min-width:154px;text-align:right;align-items:flex-end}
#view-compras-veiling .mf514-total-block strong{height:36px;display:flex;align-items:center;justify-content:flex-end;line-height:1!important;font-size:21px!important;white-space:nowrap}
#view-compras-veiling .mf514-chart-status{margin:10px 0 0;padding:8px 10px;border-radius:8px;background:#fff8fa;border:1px solid #f3d5df;color:#8f183f;font-size:10.5px;line-height:1.35}
#view-compras-veiling .mf514-chart-wrap{position:relative;flex:1;min-height:390px;margin-top:8px;display:grid;grid-template-columns:1fr 1fr}
#view-compras-veiling .mf514-chart-half{padding:6px 24px 0;min-width:0}
#view-compras-veiling .mf514-chart-half+.mf514-chart-half{border-left:1px dashed #e4e7ec}
#view-compras-veiling .mf514-chart-title{text-align:center;color:#667085;font-size:11px;font-weight:600;letter-spacing:.04em;margin:0 0 18px}
#view-compras-veiling .mf514-sector-layout{min-height:300px;display:grid;grid-template-columns:190px 1fr;align-items:center;gap:18px}
#view-compras-veiling .mf514-donut{width:172px;height:172px;border-radius:50%;margin:0 auto;background:conic-gradient(var(--mf491-brand) 0deg,#f2dce4 0deg 360deg);position:relative}
#view-compras-veiling .mf514-donut-hole{position:absolute;inset:22px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
#view-compras-veiling .mf514-donut-hole strong{font-size:22px;line-height:1;color:#1d2939;font-weight:700}
#view-compras-veiling .mf514-donut-hole span{margin-top:6px;font-size:10.5px;color:#667085}
#view-compras-veiling .mf514-sector-legend{display:grid;gap:14px}
#view-compras-veiling .mf514-sector-row{display:grid;grid-template-columns:10px 1fr auto;gap:9px;align-items:center}
#view-compras-veiling .mf514-sector-dot{width:9px;height:9px;border-radius:50%}
#view-compras-veiling .mf514-sector-dot.is-vasos{background:var(--mf491-brand)}
#view-compras-veiling .mf514-sector-dot.is-corte{background:#efb6c8}
#view-compras-veiling .mf514-sector-row b{display:block;font-size:12px;line-height:1.2;color:#344054}
#view-compras-veiling .mf514-sector-row small{display:block;margin-top:3px;font-size:11px;line-height:1.2;color:#667085}
#view-compras-veiling .mf514-sector-row em{font-style:normal;font-size:12px;font-weight:700;color:#344054}

#view-compras-veiling .mf525-origin{position:relative;min-height:312px;display:flex;flex-direction:column;justify-content:flex-end;overflow:visible}
#view-compras-veiling .mf525-axis{position:absolute;left:22px;right:10px;top:12px;bottom:78px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
#view-compras-veiling .mf525-gridline{border-top:1px solid #eef1f4;position:relative}
#view-compras-veiling .mf525-gridline:last-child{border-top-color:#dfe4ea}
#view-compras-veiling .mf525-gridline span{position:absolute;left:0;top:-15px;color:#98a2b3;font-size:10px;font-weight:500}
#view-compras-veiling .mf525-bars{position:relative;z-index:2;height:230px;display:flex;align-items:flex-end;justify-content:center;gap:34px;padding:0 18px 0 50px;overflow:visible}
#view-compras-veiling .mf525-group{width:96px;display:flex;flex-direction:column;align-items:center;overflow:visible}
#view-compras-veiling .mf525-value{font-size:11px;font-weight:600;color:#344054;margin-bottom:7px;white-space:nowrap}
#view-compras-veiling .mf525-shell{width:38px;position:relative;background:transparent;overflow:visible;cursor:pointer;min-height:2px}
#view-compras-veiling .mf525-fill{position:absolute;left:0;right:0;bottom:0;height:0;border-radius:5px 5px 0 0;will-change:height}
#view-compras-veiling .mf525-shell.inter .mf525-fill{background:var(--mf491-brand)}
#view-compras-veiling .mf525-shell.koa .mf525-fill{background:#d65c84}
#view-compras-veiling .mf525-shell.lkp .mf525-fill{background:#efb6c8}
#view-compras-veiling .mf525-label{margin-top:12px;font-size:11.5px;font-weight:600;color:#344054}
#view-compras-veiling .mf525-pct{margin-top:4px;font-size:10.5px;font-weight:500;color:#667085}
#view-compras-veiling .mf525-tooltip{position:absolute;left:50%;bottom:calc(100% + 12px);transform:translateX(-50%) translateY(4px);min-width:188px;padding:10px 11px;border-radius:9px;background:#101828;color:#fff;box-shadow:0 10px 26px rgba(16,24,40,.22);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease,transform .16s ease,visibility .16s ease;z-index:100}
#view-compras-veiling .mf525-shell:hover .mf525-tooltip,#view-compras-veiling .mf525-shell:focus-visible .mf525-tooltip{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
#view-compras-veiling .mf525-shell:focus-visible{outline:none}
#view-compras-veiling .mf525-tooltip::after{content:"";position:absolute;left:50%;top:100%;transform:translateX(-50%);border:6px solid transparent;border-top-color:#101828}
#view-compras-veiling .mf525-tip-title{font-size:11px;font-weight:700;margin-bottom:7px;color:#fff}
#view-compras-veiling .mf525-tip-row{display:flex;justify-content:space-between;gap:14px;color:#d0d5dd;font-size:10.5px;line-height:1.45}
#view-compras-veiling .mf525-tip-row+.mf525-tip-row{margin-top:4px}
#view-compras-veiling .mf525-tip-row strong{color:#fff;font-weight:600}
#view-compras-veiling .mf525-help{text-align:center;margin-top:14px;color:#98a2b3;font-size:9.5px;font-weight:500}

#view-compras-veiling .mf491-recent-head button{transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease!important}
#view-compras-veiling .mf491-recent-head button:hover{background:#fff4f7!important;border-color:#d8aaba!important;color:var(--mf491-brand)!important;box-shadow:0 4px 10px rgba(181,18,75,.08)!important;transform:translateY(-1px)}
#view-compras-veiling .mf491-recent-head button:active{transform:translateY(0)}
#view-compras-veiling .mf514-recent-table{margin-top:12px;min-width:0}
#view-compras-veiling .mf514-recent-head-row,#view-compras-veiling .mf514-recent-row{display:grid;grid-template-columns:48px 104px minmax(130px,1fr) 66px 78px;gap:8px;align-items:center}
#view-compras-veiling .mf514-recent-head-row{padding:6px 2px 10px;border-bottom:1px solid #ead1da;color:var(--mf491-brand);font-size:11px;font-weight:700;letter-spacing:.01em}
#view-compras-veiling .mf514-recent-row{padding:12px 2px;border-bottom:1px solid #eef1f4;color:#344054;font-size:11px;line-height:1.3}
#view-compras-veiling .mf514-recent-row .is-product{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#view-compras-veiling .mf514-recent-row .is-origin{font-weight:600;color:#475467}
#view-compras-veiling .mf514-recent-row .is-qty,#view-compras-veiling .mf514-recent-row .is-total{white-space:nowrap}
#view-compras-veiling .mf514-recent-empty{padding:38px 8px;text-align:center;color:#98a2b3;font-size:11px}

#view-compras-veiling .mf518-date-wrap{position:relative}
#view-compras-veiling .mf518-date-display{position:relative;width:132px!important;height:36px!important;min-height:36px!important;padding:0 34px 0 11px!important;border:1px solid #d0d5dd!important;border-radius:8px!important;background:#fff!important;color:#344054!important;font-size:11.5px!important;font-weight:600!important;box-shadow:0 1px 2px rgba(16,24,40,.03)!important;cursor:pointer!important;text-align:left}
#view-compras-veiling .mf518-date-display:focus-visible{outline:none;border-color:#d7a0b3!important;box-shadow:0 0 0 3px rgba(181,18,75,.08)!important}
#view-compras-veiling .mf518-calendar-icon{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#475467;pointer-events:none}
#view-compras-veiling .mf518-datepicker{position:absolute;top:calc(100% + 8px);right:0;z-index:130;width:304px;background:#fff;border:1px solid #eaecf0;border-radius:12px;padding:16px;box-shadow:0 18px 40px rgba(16,24,40,.14),0 2px 8px rgba(16,24,40,.08)}
#view-compras-veiling .mf518-cal-head{display:grid;grid-template-columns:32px 1fr 32px;align-items:center;gap:4px;margin-bottom:15px}
#view-compras-veiling .mf518-month-title{text-align:center;font-size:14px;line-height:1.2;font-weight:600;color:#1d2939}
#view-compras-veiling .mf518-nav{width:32px;height:32px;display:grid;place-items:center;border:0;background:transparent;border-radius:8px;color:#475467;cursor:pointer;font-size:20px}
#view-compras-veiling .mf518-nav:hover{background:#f9fafb;color:var(--mf491-brand)}
#view-compras-veiling .mf518-weekdays,#view-compras-veiling .mf518-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
#view-compras-veiling .mf518-weekdays{margin-bottom:6px}
#view-compras-veiling .mf518-weekdays span{height:28px;display:grid;place-items:center;font-size:10.5px;font-weight:600;color:#98a2b3}
#view-compras-veiling .mf518-day{width:34px;height:34px;margin:auto;border:1px solid transparent;background:transparent;border-radius:8px;display:grid;place-items:center;font-size:11px;font-weight:500;color:#344054;cursor:pointer}
#view-compras-veiling .mf518-day:hover{background:#f9fafb;border-color:#f2f4f7}
#view-compras-veiling .mf518-day.is-other{color:#b0b7c3}
#view-compras-veiling .mf518-day.is-selected{background:var(--mf491-brand)!important;border-color:var(--mf491-brand)!important;color:#fff!important;font-weight:700!important;box-shadow:0 4px 10px rgba(181,18,75,.18)}
#view-compras-veiling .mf518-day.is-today:not(.is-selected){border-color:#d8aaba;color:var(--mf491-brand);font-weight:700}
#view-compras-veiling .mf518-cal-footer{display:flex;align-items:center;justify-content:flex-end;padding-top:12px;margin-top:10px;border-top:1px solid #f2f4f7}
#view-compras-veiling .mf518-cal-link{border:0;background:transparent;color:var(--mf491-brand);font-size:10.5px;font-weight:600;padding:5px 2px;cursor:pointer}
#view-compras-veiling .mf518-cal-link:hover{text-decoration:underline}

@media(max-width:1260px){#view-compras-veiling .mf491-dashboard-main-grid{grid-template-columns:1fr!important}#view-compras-veiling .mf491-recent-card{min-width:0!important}}
@media(max-width:900px){#view-compras-veiling .mf514-chart-head{display:block}#view-compras-veiling .mf514-toolbar{grid-template-columns:1fr;gap:8px;margin-top:10px}#view-compras-veiling .mf514-toolbar-divider{display:none}#view-compras-veiling .mf514-total-block{align-items:flex-start;text-align:left}#view-compras-veiling .mf514-chart-wrap{grid-template-columns:1fr}#view-compras-veiling .mf514-chart-half+.mf514-chart-half{border-left:0;border-top:1px dashed #e4e7ec;padding-top:20px}#view-compras-veiling .mf514-sector-layout{grid-template-columns:180px 1fr}}
@media(max-width:620px){#view-compras-veiling .mf514-sector-layout{grid-template-columns:1fr}#view-compras-veiling .mf514-recent-head-row,#view-compras-veiling .mf514-recent-row{grid-template-columns:46px 78px minmax(110px,1fr) 58px}#view-compras-veiling .mf514-recent-head-row span:last-child,#view-compras-veiling .mf514-recent-row .is-total{display:none}}

/* ============================================================
   0.0.521 — DASHBOARD • snapshot rápido + donut SVG + ranking
   ============================================================ */
#view-compras-veiling .mf514-donut{
  background:transparent!important;
  overflow:visible;
}
#view-compras-veiling .mf521-donut-svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  transform:rotate(-90deg);
}
#view-compras-veiling .mf521-donut-track,
#view-compras-veiling .mf521-donut-progress{
  fill:none;
  stroke-width:22;
  vector-effect:non-scaling-stroke;
  shape-rendering:geometricPrecision;
}
#view-compras-veiling .mf521-donut-track{stroke:#f2dce4}
#view-compras-veiling .mf521-donut-progress{
  stroke:var(--mf491-brand);
  stroke-linecap:butt;
  stroke-dasharray:452.389;
  stroke-dashoffset:452.389;
  will-change:stroke-dashoffset;
}
#view-compras-veiling .mf514-donut-hole{z-index:2}

#view-compras-veiling .mf521-ranking-card{
  padding:14px 16px 12px;
}
#view-compras-veiling .mf521-ranking-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
#view-compras-veiling .mf521-ranking-head h3{
  margin:0!important;
  font-size:16px!important;
  line-height:24px!important;
  font-weight:600!important;
  color:var(--mf491-gray-800)!important;
}
#view-compras-veiling .mf521-ranking-head p{
  margin:3px 0 0!important;
  font-size:11px!important;
  color:var(--mf491-gray-500)!important;
}
#view-compras-veiling .mf521-ranking-tabs{
  display:flex;
  align-items:center;
  gap:4px;
  padding:3px;
  border:1px solid #eaecf0;
  border-radius:9px;
  background:#f9fafb;
}
#view-compras-veiling .mf521-ranking-tabs button{
  height:30px!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#667085!important;
  font-size:10.5px!important;
  font-weight:600!important;
  cursor:pointer!important;
  transition:background-color .18s ease,color .18s ease,box-shadow .18s ease!important;
}
#view-compras-veiling .mf521-ranking-tabs button:hover{
  color:var(--mf491-brand)!important;
  background:#fff!important;
}
#view-compras-veiling .mf521-ranking-tabs button.is-active{
  background:#fff!important;
  color:var(--mf491-brand)!important;
  box-shadow:0 1px 3px rgba(16,24,40,.08)!important;
}
#view-compras-veiling .mf521-ranking-table{margin-top:12px}
#view-compras-veiling .mf521-ranking-head-row,
#view-compras-veiling .mf521-ranking-row{
  display:grid;
  grid-template-columns:34px minmax(240px,1fr) 100px 130px 120px;
  gap:12px;
  align-items:center;
}
#view-compras-veiling .mf521-ranking-head-row{
  padding:6px 4px 9px;
  border-bottom:1px solid #ead1da;
  color:var(--mf491-brand);
  font-size:10.5px;
  font-weight:700;
}
#view-compras-veiling .mf521-ranking-row{
  padding:10px 4px;
  border-bottom:1px solid #eef1f4;
  color:#344054;
  font-size:11px;
  line-height:1.3;
}
#view-compras-veiling .mf521-ranking-row:last-child{border-bottom:0}
#view-compras-veiling .mf521-ranking-position{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:#fff2f6;
  color:var(--mf491-brand);
  font-weight:700;
}
#view-compras-veiling .mf521-ranking-name{min-width:0}
#view-compras-veiling .mf521-ranking-name strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:600;
  color:#344054;
}
#view-compras-veiling .mf521-ranking-name small{
  display:block;
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#98a2b3;
  font-size:9.5px;
}
#view-compras-veiling .mf521-ranking-row .is-number{white-space:nowrap}
#view-compras-veiling .mf521-ranking-empty{
  padding:24px 8px;
  text-align:center;
  color:#98a2b3;
  font-size:11px;
}
#view-compras-veiling .mf521-ranking-empty[hidden]{display:none!important}

@media(max-width:900px){
  #view-compras-veiling .mf521-ranking-head{display:block}
  #view-compras-veiling .mf521-ranking-tabs{width:max-content;margin-top:10px}
  #view-compras-veiling .mf521-ranking-head-row,
  #view-compras-veiling .mf521-ranking-row{grid-template-columns:30px minmax(160px,1fr) 72px 100px 100px}
}
@media(max-width:620px){
  #view-compras-veiling .mf521-ranking-head-row,
  #view-compras-veiling .mf521-ranking-row{grid-template-columns:28px minmax(140px,1fr) 70px 92px}
  #view-compras-veiling .mf521-ranking-head-row span:nth-child(4),
  #view-compras-veiling .mf521-ranking-row .is-price{display:none}
}

/* ============================================================
   0.0.521 — DASHBOARD • refinamento de leitura
   Aumenta somente tipografia operacional da Home de Compras.
   ============================================================ */
#view-compras-veiling .mf491-dashboard-eyebrow{
  font-size:12px!important;
  line-height:16px!important;
}
#view-compras-veiling .mf491-dashboard-head h1{
  font-size:29px!important;
  line-height:36px!important;
}
#view-compras-veiling .mf491-dashboard-head p{
  font-size:14px!important;
  line-height:20px!important;
}
#view-compras-veiling .mf491-dashboard-env{
  font-size:12.5px!important;
}
#view-compras-veiling .mf491-quick-card{
  min-height:96px!important;
  padding:12px 14px!important;
}
#view-compras-veiling .mf491-quick-card strong{
  font-size:14.8px!important;
  line-height:19px!important;
}
#view-compras-veiling .mf491-quick-card small{
  margin-top:3px!important;
  font-size:12px!important;
  line-height:16px!important;
}
#view-compras-veiling .mf491-chart-head h2{
  font-size:19px!important;
  line-height:28px!important;
}
#view-compras-veiling .mf491-chart-head p,
#view-compras-veiling .mf491-recent-head p{
  font-size:13px!important;
  line-height:18px!important;
}
#view-compras-veiling .mf491-recent-head h3{
  font-size:17px!important;
  line-height:24px!important;
}
#view-compras-veiling .mf491-recent-head button{
  font-size:12.5px!important;
  font-weight:600!important;
}
#view-compras-veiling .mf514-toolbar-label{
  font-size:11px!important;
  line-height:14px!important;
}
#view-compras-veiling .mf518-date-display{
  font-size:12.5px!important;
}
#view-compras-veiling .mf514-search-button{
  font-size:12px!important;
}
#view-compras-veiling .mf491-total span{
  font-size:12.5px!important;
  line-height:17px!important;
}
#view-compras-veiling .mf491-total strong{
  font-size:26px!important;
  line-height:34px!important;
}
#view-compras-veiling .mf514-chart-title{
  font-size:12px!important;
  line-height:16px!important;
  letter-spacing:.035em!important;
}
#view-compras-veiling .mf514-donut-hole strong{
  font-size:24px!important;
}
#view-compras-veiling .mf514-donut-hole span{
  font-size:11.5px!important;
  line-height:15px!important;
}
#view-compras-veiling .mf514-sector-row b{
  font-size:13px!important;
  line-height:17px!important;
}
#view-compras-veiling .mf514-sector-row small{
  font-size:12px!important;
  line-height:16px!important;
}
#view-compras-veiling .mf514-sector-row em{
  font-size:13px!important;
}
#view-compras-veiling .mf525-gridline span{
  font-size:11px!important;
  color:#7f8b9c!important;
}
#view-compras-veiling .mf525-value{
  font-size:12px!important;
  line-height:16px!important;
}
#view-compras-veiling .mf525-label{
  font-size:12.5px!important;
  line-height:17px!important;
}
#view-compras-veiling .mf525-pct{
  font-size:11.5px!important;
  line-height:15px!important;
}
#view-compras-veiling .mf525-help{
  font-size:10.5px!important;
  line-height:15px!important;
  color:#7f8b9c!important;
}
#view-compras-veiling .mf525-tip-title{
  font-size:12px!important;
}
#view-compras-veiling .mf525-tip-row{
  font-size:11.5px!important;
}
#view-compras-veiling .mf514-recent-head-row{
  font-size:11.8px!important;
  line-height:16px!important;
}
#view-compras-veiling .mf514-recent-row{
  font-size:12.2px!important;
  line-height:17px!important;
}
#view-compras-veiling .mf514-recent-row .is-origin{
  font-weight:700!important;
}
#view-compras-veiling .mf514-recent-empty{
  font-size:12px!important;
  line-height:17px!important;
}
#view-compras-veiling .mf521-ranking-head h3{
  font-size:17px!important;
  line-height:24px!important;
}
#view-compras-veiling .mf521-ranking-head p{
  font-size:12.5px!important;
  line-height:17px!important;
}
#view-compras-veiling .mf521-ranking-tabs button{
  font-size:11.5px!important;
}
#view-compras-veiling .mf521-ranking-head-row{
  font-size:11.8px!important;
  line-height:16px!important;
}
#view-compras-veiling .mf521-ranking-row{
  font-size:12.2px!important;
  line-height:17px!important;
}
#view-compras-veiling .mf521-ranking-name small{
  font-size:10.5px!important;
  line-height:14px!important;
  color:#7f8b9c!important;
}
#view-compras-veiling .mf521-ranking-empty{
  font-size:12px!important;
  line-height:17px!important;
}
#view-compras-veiling .mf518-weekdays span,
#view-compras-veiling .mf518-day,
#view-compras-veiling .mf518-cal-link{
  font-size:11.5px!important;
}

/* 0.0.523 — respiro do eixo Por origem: a linha R$ 0 termina acima dos rótulos. */
#view-compras-veiling .mf525-label{padding-top:1px}
