/* Zero1 1.0.55 — Motion System: visual transversal, sem alterar lógica ou hierarquia. */
:root{--zui-gold:#efc42b;--zui-gold-soft:rgba(239,196,43,.16);--zui-blue:#07529d;--zui-ink:#101415;--zui-shadow:0 7px 22px rgba(24,36,49,.075);--zui-ease:cubic-bezier(.2,.8,.2,1)}
/* Foco acessível e coerente com a marca, sem a borda grossa vista em versões anteriores. */
.zui-enabled :is(button,a[href],input,select,textarea,summary,[role="button"]):focus-visible{outline:2px solid var(--zui-blue);outline-offset:2px}
.zui-enabled :is(input,select,textarea):not(:disabled):focus-visible{border-color:var(--zui-blue)}
.zui-enabled :is(button,.btn,input,select,textarea,.product-card,.customer-product-card,.customer-cart-card,.z-mobile-record,.zi-card){transition-property:background-color,border-color,box-shadow,color,opacity;transition-duration:180ms;transition-timing-function:var(--zui-ease)}
/* Hover intencional, sem deslocar estruturas fixed/sticky nem esconder botões. */
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .zui-enabled .btn:not(:disabled):hover,.zui-enabled button.btn:not(:disabled):hover{box-shadow:0 3px 12px rgba(19,34,48,.12)}
 .zui-enabled #content .product-card:hover,.zui-enabled #content .invoice-item-card:hover,.zui-enabled #content .z-mobile-record:hover{border-color:rgba(202,151,12,.45);box-shadow:var(--zui-shadow)}
 .zui-enabled #content .table tbody tr:hover td{background:#fffbeb}
 .zui-enabled #content .zi-card:hover{border-color:rgba(202,151,12,.3);box-shadow:var(--zui-shadow)}
 .zui-enabled .customer-product-card:hover{box-shadow:var(--zui-shadow)}
}
/* Microfeedback em botões sem alterar o tamanho/cálculo do layout. */
.zui-enabled :is(button,.btn):not(:disabled):active{filter:brightness(.96)}
.zui-enabled button:disabled{cursor:not-allowed}
/* Produtos: evita visual de formulário achatado e realça preço/estoque sem sobrescrever tipografia. */
html[data-zero1-menu="products"] #content :is(.product-card,.invoice-item-card){border-radius:16px}
html[data-zero1-menu="products"] #content .product-card .price{font-variant-numeric:tabular-nums}
html[data-zero1-menu="products"] #content .product-actions{align-items:stretch}
/* Vendas e pedidos: leitura aprimorada de estados e ações, desktop e mobile. */
html[data-zero1-menu="sales"] #content .table td:has(.badge),
html[data-zero1-menu="orders"] #content .table td:has(.badge){white-space:normal}
html[data-zero1-menu="sales"] #content .actions-row,
html[data-zero1-menu="orders"] #content .actions-row{gap:6px}
html[data-zero1-menu="orders"] #content .z-mobile-record,
html[data-zero1-menu="sales"] #content .z-mobile-record{border-left:3px solid var(--zui-gold)}
/* Configurações / usuários / entrada: navegação mais legível sem mexer nas validações. */
html[data-zero1-menu="settings"] #content :is(.form-grid,.settings-grid),
html[data-zero1-menu="entry"] #content .invoice-fields-grid{min-width:0}
html[data-zero1-menu="settings"] #content .card,
html[data-zero1-menu="users"] #content .card{scroll-margin-top:90px}
/* Relatórios e financeiro: animação dos dados existente preservada, foco no gráfico SVG. */
html[data-zero1-menu="cash"] #content .zi-chart,
html[data-zero1-menu="reports"] #content svg{max-width:100%}
html[data-zero1-menu="cash"] #content .zi-card{scroll-margin-top:110px}
/* Menus: realce discreto, ações e ícones continuam clicáveis. */
.zui-enabled .nav button[data-page]:not(:disabled):focus-visible{outline-offset:-3px}
.zui-enabled .nav button[data-page].active{font-weight:750}
/* Evidência visual imediata ao carregar nova aba: só um fade muito curto. */
@keyframes zui-soft-enter{from{opacity:.72}to{opacity:1}}
@media(prefers-reduced-motion:no-preference){
 html:not(.zui-motion-off) .zui-enter{animation:zui-soft-enter .20s var(--zui-ease) both}
}
/* Loja do cliente: adição e controles preservam a posição do checkout flutuante. */
.customer-store.zui-enabled .customer-card-quantity button:not(:disabled):active{filter:brightness(1.12)}
.customer-store.zui-enabled .customer-cart-line{transition:background-color .18s var(--zui-ease)}
.customer-store.zui-enabled .customer-product-card :is(button,input):focus-visible{outline-offset:1px}
/* PDV: botão finalizar, leitor e seleção continuam operando com o fluxo existente. */
body.zui-enabled .pdv-product-card button:focus-visible{outline-offset:1px}
/* Protege menu e formulários em telas pequenas, com scroll interno horizontal nas tabelas. */
@media(max-width:760px){
 .zui-enabled #content .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .zui-enabled #content :is(.head-actions,.actions-row){max-width:100%}
 .zui-enabled #content .card{min-width:0}
}
/* Invisível para impressão; não introduz fundos ou transformações no cupom. */
@media print{.zui-enabled .zui-enter{animation:none!important;transition:none!important}}
@media(prefers-reduced-motion:reduce){
 body.zui-enabled:not(.zero1-motion-forced) .zui-enter{animation:none!important}
 body.zui-enabled:not(.zero1-motion-forced) :is(button,.btn,input,select,textarea,.product-card,.customer-product-card,.customer-cart-card,.z-mobile-record,.zi-card){transition:none!important}
}

/* R4 — Motion set sem mudar paleta, layout ou duração de operações. */
@keyframes zui-reveal-r4{from{opacity:.40}to{opacity:1}}
@keyframes zui-dialog-r4{from{opacity:.35}to{opacity:1}}
@media(prefers-reduced-motion:no-preference){
 html:not(.zui-motion-off) .zui-enabled .zui-enter{animation:zui-reveal-r4 300ms var(--zui-ease) var(--zui-delay,0ms) backwards}
 html:not(.zui-motion-off) .zui-enabled :is(.modal-bg.show,.store-menu-bg:not([hidden]))>.modal{animation:zui-dialog-r4 220ms var(--zui-ease)}
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 html:not(.zui-motion-off) .zui-enabled :is(.customer-product-card,.pdv-product-card,.metric-clickable){transition:translate 180ms var(--zui-ease),box-shadow 180ms var(--zui-ease),border-color 180ms var(--zui-ease)}
 html:not(.zui-motion-off) .zui-enabled :is(.pdv-product-card,.metric-clickable):hover{translate:0 -2px}
 html:not(.zui-motion-off) .zui-enabled :is(.pdv-product-card,.metric-clickable):active{translate:0 0}
}
/* Desligar efeitos deve valer para o conjunto, não apenas para o banner. */
html.zui-motion-off .zui-enabled *,html.zui-motion-off .zui-enabled *::before,html.zui-motion-off .zui-enabled *::after,
body.zero1-motion-off *,body.zero1-motion-off *::before,body.zero1-motion-off *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;translate:none!important}
@media(prefers-reduced-motion:reduce){
 body.zui-enabled:not(.zero1-motion-forced) *,body.zui-enabled:not(.zero1-motion-forced) *::before,body.zui-enabled:not(.zero1-motion-forced) *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;translate:none!important}
}
@media print{
 .zui-enabled *,.zui-enabled *::before,.zui-enabled *::after{animation:none!important;transition:none!important;translate:none!important}
}
