/* ZYKO — Direção A (aprovada em 15/11/2026). Camada visual sobre o CSS original.
   Regras: dourado sólido só na ação principal; sem degradês nem brilhos; cores de status com significado. */
:root{
  --z-bg:#0B0B0C; --z-s1:#151517; --z-s2:#1D1D20; --z-bd:#2A2A2F;
  --z-tx:#F4F1EA; --z-mu:#A6A196; --z-gold:#D4A84B; --z-on-gold:#1A1408;
  --z-ok:#5CC08F; --z-ok-bg:#14261D; --z-warn:#E8AE45; --z-warn-bg:#2A2112; --z-bad:#EE7568; --z-bad-bg:#2C1614;
  --z-r:12px; --z-r-lg:14px;
  font-family:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--z-tx); background:var(--z-bg);
}
body{background:var(--z-bg)!important;font-variant-numeric:tabular-nums}
body:before,body:after{display:none!important}
h1,h2,h3{letter-spacing:-0.01em}
/* Botões: principal sólido, secundário neutro */
button{background:var(--z-gold);border:1px solid var(--z-gold);color:var(--z-on-gold);border-radius:var(--z-r);box-shadow:none;min-height:44px}
button:hover{filter:brightness(1.06);transform:none}
button.secondary{background:var(--z-s1);color:var(--z-tx);border-color:var(--z-bd)}
/* Campos */
input,select,textarea{background:var(--z-s1);color:var(--z-tx);border:1px solid var(--z-bd);border-radius:var(--z-r);min-height:48px}
input:focus,select:focus,textarea:focus{border-color:var(--z-gold);box-shadow:0 0 0 3px #d4a84b33}
input::placeholder{color:#7d786e}
/* Superfícies */
.panel{background:var(--z-s1);border:1px solid var(--z-bd);border-radius:var(--z-r-lg);box-shadow:none}
.muted{color:var(--z-mu)}
a{color:var(--z-gold)}

/* ===== Login ===== */
#loginPanel.login{background:transparent;border:0;box-shadow:none;max-width:420px;margin:0 auto;min-height:100vh;min-height:100dvh;padding:32px 24px 20px;display:flex;flex-direction:column;justify-content:center}
#loginPanel .zyko-login-logo{width:min(220px,62%);margin:0 auto 36px}
#loginPanel .zyko-login-logo path{fill:#D6AD60}
#loginPanel label{color:var(--z-tx);font-weight:700;font-size:14px}
#loginPanel #loginForm p{margin:0}
#loginPanel #loginForm button[type=submit]{width:100%;min-height:52px;font-size:16px;letter-spacing:0}
#loginPanel .login-password-toggle{background:transparent;border:0;color:var(--z-gold);min-height:44px;box-shadow:none;padding:0 14px}
.z-login-links{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:6px}
.z-link{background:transparent!important;border:0!important;color:var(--z-gold)!important;font-weight:800;padding:0 4px;min-height:44px;box-shadow:none}
.z-forgot{display:flex;justify-content:flex-end;margin:4px 0 12px}
.z-invite{color:var(--z-mu);font-size:15px;text-align:center}
.z-help{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--z-mu);text-decoration:none;font-size:14px}
.z-help strong{color:var(--z-gold)}
.z-legal{display:flex;justify-content:center;gap:16px;margin-top:auto;padding-top:28px;font-size:13px}
.z-legal a{color:var(--z-mu)}
/* Ajustes sobre regras antigas do login */
#loginPanel.login{margin:0 auto!important;padding:32px 24px 20px!important;background:transparent!important;border:0!important;box-shadow:none!important}
#loginPanel .zyko-login-logo{filter:none!important;margin:0 auto 36px!important;width:min(220px,62%)!important}
#loginPanel button,#loginPanel form button{letter-spacing:0!important;font-size:15px}
#loginPanel .z-forgot button{width:auto!important;margin:0!important}
#loginPanel .z-invite button{width:auto!important;margin:0!important;display:inline}
#loginPanel #loginForm .login-password-toggle{background:transparent!important;border:0!important;color:var(--z-gold)!important;font-size:14px}
#loginPanel h3{color:var(--z-tx)}
#loginPanel .zyko-login-logo{margin-top:auto!important}

/* ===== Etapa 2: estrutura ===== */
.z-bottomnav,.z-top-logo{display:none}
.z-side-logout{color:var(--z-bad)!important;margin-top:8px}
#dashboard>.row.between:first-child{display:none}
#quickStart .quick-action-title{display:none}
.hero#quickStart{background:transparent!important;border:0!important;padding:0!important;margin-bottom:16px;min-height:0}
.hero#quickStart .hero-actions button{width:100%;min-height:52px;font-size:16px}
.hero#quickStart .hero-actions button span{display:none}
.sidebar{background:var(--z-s1)!important;border-color:var(--z-bd)!important}
.nav button,.nav button.secondary{background:transparent;border-color:transparent;color:var(--z-tx)}
.nav button[aria-current="page"],.nav button.active{background:var(--z-s2)!important;color:var(--z-gold)!important;border-color:var(--z-bd)!important}
.nav-symbol,.nav-chevron,.side-section-label{color:var(--z-mu)!important}

@media(max-width:760px){
  .page-topbar{position:sticky;top:0;z-index:20;background:var(--z-bg);margin:0 -15px 14px!important;padding:10px 15px;align-items:center!important;min-height:60px;border-bottom:1px solid var(--z-bd)}
  #menuToggle,#sectionEyebrow,#sectionDescription,.store-switch-label,.today-chip{display:none!important}
  .page-heading h2{font-size:20px!important;margin:0!important;letter-spacing:-0.01em!important}
  .store-switch{flex:0 1 46%;margin:0!important}
  .store-switch{margin-left:auto!important;display:flex;justify-content:flex-end;min-width:0}
  #activeStoreTag:not(.hide){display:inline-flex!important;align-items:center;max-width:100%;min-height:36px;padding:6px 14px;border-radius:999px;font-size:13px;font-weight:700;color:var(--z-tx)!important;background:var(--z-s1)!important;border:1px solid var(--z-bd)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block!important;line-height:22px}
  .store-switch select{min-height:40px;padding:6px 10px;font-weight:700;font-size:14px;border-radius:999px}
  body:has(#homeView:not(.hide)) .z-top-logo{display:block;flex:none}
  body:has(#homeView:not(.hide)) .page-heading{display:none}
  .workspace-main{padding:0 15px calc(96px + env(safe-area-inset-bottom))!important}
  .z-bottomnav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:25;background:var(--z-s1);border-top:1px solid var(--z-bd);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
  .z-bn{display:flex;flex-direction:column;align-items:center;gap:3px;background:transparent!important;border:0!important;color:var(--z-mu)!important;min-height:56px;padding:4px 0!important;font-size:12px;font-weight:700;box-shadow:none!important;width:auto!important;margin:0!important}
  .z-bn[aria-current="page"]{color:var(--z-gold)!important}
  .z-bottomnav:not(:has([aria-current="page"])) #zMore{color:var(--z-gold)!important}
  body.menu-open .z-bottomnav{z-index:20}
}
#goService{background:var(--z-gold)!important;border-color:var(--z-gold)!important;color:var(--z-on-gold)!important;box-shadow:none!important}

/* ===== Etapa 3: telas ===== */
/* Superfícies planas, bordas neutras, sem sombras/degradês */
.panel,.stat,.daily-panel,.daily-hero,.daily-tile,.daily-net,.cash-quick,.hero,#tabList .table-overview,.notice,.cash-gate-notice,.module-load-status,.scroll,.brand-mark{
  background:var(--z-s1)!important;background-image:none!important;border:1px solid var(--z-bd)!important;box-shadow:none!important}
.stat:before,.stat:after,.daily-hero:before,.daily-hero:after,.panel:before,.panel:after,.hero-decoration{display:none!important}
.daily-tile,.stat,.daily-net{background:var(--z-s2)!important;border-color:transparent!important}
.panel{border-radius:var(--z-r-lg)!important}
h2,h3,.panel h2,.panel h3,.daily-panel h2{color:var(--z-tx)!important;letter-spacing:-0.01em!important}
.panel h2{font-size:18px;font-weight:800}
.panel h3{font-size:16px;font-weight:800}
.daily-eyebrow,.eyebrow{color:var(--z-mu)!important;letter-spacing:.04em!important}
.stat,.daily-tile span,.daily-hero span,.daily-hero small,.daily-net span{color:var(--z-mu)!important}
.stat strong,.daily-tile strong,.daily-net strong{color:var(--z-tx)!important}
.daily-hero strong{color:var(--z-gold)!important}
.tag,.cash-badge,.store-switch .active-store-tag{background:var(--z-s2)!important;border:1px solid var(--z-bd)!important;color:var(--z-mu)!important;font-weight:700;background-image:none!important}
.error{color:var(--z-bad)!important}
.ok{color:var(--z-ok)!important}
.module-load-status{color:var(--z-mu)!important}
.cash-gate-notice{border-color:#5a4520!important;background:var(--z-warn-bg)!important}
.cash-gate-notice strong{color:var(--z-warn)}
label{color:var(--z-tx)}
th{color:var(--z-mu)!important;font-weight:700;font-size:13px}
td,th{border-bottom:1px solid var(--z-bd)!important}
td{color:var(--z-tx)!important}
.scroll{border-radius:var(--z-r)!important}
/* Selo decorativo sem função */
#homeView .daily-panel>.row .tag,#productsView .row.between>.tag,#combosView .row.between>.tag{display:none}
/* Início: KPIs sem relevância diária saem do topo */
#homeView>.overview-mini{display:none!important}

@media(max-width:760px){
  .panel{padding:16px!important;margin-top:12px!important}
  .panel>p.muted{font-size:14px;margin:4px 0 10px}
  .grid{gap:10px!important}
  /* Tabelas viram linhas legíveis no celular */
  .scroll{border:0!important;background:transparent!important;overflow:visible!important;margin-top:8px!important}
  .scroll table,table.z-stack{min-width:0!important;width:100%}
  table.z-stack thead{display:none}
  table.z-stack,table.z-stack tbody,table.z-stack tr,table.z-stack td{display:block;width:100%}
  table.z-stack tr{background:var(--z-s2);border:1px solid var(--z-bd);border-radius:var(--z-r);padding:6px 12px;margin-bottom:8px}
  table.z-stack td{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 0!important;border:0!important;font-size:14px;text-align:right;min-height:0}
  table.z-stack td:first-child{font-weight:800;font-size:15px;text-align:left}
  table.z-stack td[data-label]:not(:first-child):before{content:attr(data-label);color:var(--z-mu);font-weight:600;text-align:left;flex:none;max-width:48%}
  table.z-stack td:empty{display:none}
  table.z-stack td button{min-height:40px;padding:8px 14px}
  table.z-stack td:has(button){justify-content:flex-end;flex-wrap:wrap}
  table.z-stack td:has(button):before{display:none}
}
/* Força o padrão de botões sobre regras antigas declaradas depois */
button:not(.secondary):not(.z-bn):not(.z-link):not(.login-password-toggle):not(.icon-button){background:var(--z-gold)!important;background-image:none!important;border-color:var(--z-gold)!important;color:var(--z-on-gold)!important;box-shadow:none!important;letter-spacing:0!important}
button.secondary{background:var(--z-s1)!important;background-image:none!important;border-color:var(--z-bd)!important;color:var(--z-tx)!important;box-shadow:none!important}
.nav button.secondary{background:transparent!important;border-color:transparent!important}
.nav button.secondary.active,.nav button.secondary[aria-current="page"]{background:var(--z-s2)!important;color:var(--z-gold)!important}
.nav button.z-side-logout{color:var(--z-bad)!important}
/* Indicadores em 2 colunas */
.grid:has(>.stat){grid-template-columns:repeat(2,minmax(0,1fr))!important}
.stat{border-radius:var(--z-r)!important;font-size:13px;font-weight:600}
.stat strong{font-size:22px!important}
/* Início: uma ação principal só */
#homeNewCounter{background:var(--z-s1)!important;border-color:var(--z-bd)!important;color:var(--z-tx)!important}
/* Clientes: quem deve aparece primeiro; listas antes dos formulários de cadastro */
#customersView{display:flex;flex-direction:column}
#customersView>#fiadosView{order:-1}
#customersView>.module-load-status{order:-2}
#customersView>section.panel,#suppliersView>section.panel:first-of-type{display:flex;flex-direction:column}
#customerForm,#supplierForm{order:2;border-top:1px solid var(--z-bd);padding-top:14px;margin-top:6px}
#customerForm+p,#supplierForm+p{order:3}
#customersView>#fiadosView{border-top:0!important;margin-top:0!important;padding-top:0!important}
/* Login no computador: escala maior */
@media(min-width:900px){
  #loginPanel.login{max-width:520px!important}
  #loginPanel .zyko-login-logo{width:320px!important;margin-bottom:48px!important}
  #loginPanel label{font-size:16px}
  #loginPanel input{min-height:60px;font-size:17px;padding:0 18px}
  #loginPanel #loginForm button[type=submit]{min-height:62px;font-size:18px!important}
  #loginPanel #loginForm .login-password-toggle{font-size:16px!important}
  #loginPanel .z-link,.z-invite{font-size:17px!important}
  .z-help{font-size:16px}
  .z-legal{font-size:15px}
}
@media(min-width:900px){
  #loginPanel.login{max-width:640px!important}
  #loginPanel .zyko-login-logo{width:420px!important;margin-bottom:56px!important}
  #loginPanel label{font-size:19px;margin-bottom:8px}
  #loginPanel input{min-height:72px;font-size:20px;padding:0 22px;border-radius:14px}
  #loginPanel #loginForm button[type=submit]{min-height:74px;font-size:21px!important;border-radius:14px}
  #loginPanel #loginForm .login-password-toggle{font-size:18px!important}
  #loginPanel .z-link,.z-invite{font-size:19px!important}
  .z-help{font-size:18px}
  .z-help svg{width:22px;height:22px}
  .z-legal{font-size:16px}
}
[hidden]{display:none!important}

/* ===== Mesas: lista → mesa ===== */
.z-detail-bar,.z-pay-bar{display:none}
#tabsView:not(.z-detail)>section.panel:not(:first-of-type){display:none!important}
#tabsView.z-detail>section.panel:first-of-type{display:none!important}
#tabsView.z-detail .z-detail-bar{display:flex;align-items:center;gap:12px;margin:4px 0 8px}
#tabsView .z-detail-bar button{width:auto!important;min-height:40px;padding:6px 14px}
#tabsView .z-detail-bar strong{font-size:20px;font-weight:800}
#tabsView.z-detail #orderTabWrap,#tabsView.z-detail label[for="orderSelect"],#tabsView.z-detail #orderSelect{display:none!important}
#newCounterSale{background:var(--z-s1)!important;border-color:var(--z-bd)!important;color:var(--z-tx)!important;width:100%}

#tabList .table-overview{cursor:pointer;border-radius:var(--z-r)!important;position:relative}
#tabList .table-overview:after{content:"Abrir ›";position:absolute;right:14px;top:16px;color:var(--z-gold);font-weight:800;font-size:14px}
#tabList .table-status{margin-right:70px}
#tabList .table-overview:active{border-color:var(--z-gold)!important}
#orderPaymentPanel{scroll-margin-top:72px}
@media(max-width:760px){
  #tabsView.z-detail .z-pay-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:fixed;left:0;right:0;bottom:calc(68px + env(safe-area-inset-bottom));z-index:24;background:var(--z-s1);border-top:1px solid var(--z-bd);padding:10px 15px}
  .z-pay-bar small{display:block;color:var(--z-mu);font-size:13px;font-weight:600}
  .z-pay-bar strong{font-size:22px;font-weight:800}
  .z-pay-bar button{width:auto!important;min-width:140px;min-height:48px}
  #tabsView.z-detail{padding-bottom:84px}
}
button{transition:none!important}
#tabList .table-head strong{color:var(--z-tx)!important;font-size:18px}
#tabList .table-status{background:var(--z-s2)!important;color:var(--z-mu)!important;border:1px solid var(--z-bd)!important}
#tabList .table-items{color:var(--z-mu)}
/* Na mesa: itens primeiro, depois adicionar */
#tabsView.z-detail>section.panel:nth-of-type(2){display:flex;flex-direction:column}
#tabsView.z-detail>section.panel:nth-of-type(2)>h2{display:none}
#tabsView.z-detail #addItemForm{order:3;border-top:1px solid var(--z-bd);padding-top:14px;margin-top:6px}
#tabsView.z-detail #addItemForm:before{content:"Adicionar item";font-weight:800;font-size:16px;grid-column:1/-1}
#tabsView.z-detail #itemsMsg{order:2}
#tabsView.z-detail #newOrder{align-self:flex-start}
.sidebar{box-shadow:none!important}body.menu-open .sidebar{box-shadow:24px 0 60px #0008!important}

/* ===== Caixa ===== */
#cashQuickOpen{display:none!important}
#cashQuick{padding:16px!important;border-radius:var(--z-r-lg)!important}
#cashQuick h2{font-size:20px!important;margin:6px 0 2px}
#cashView>section.panel:nth-of-type(2)>p.muted:first-of-type{display:none}
#cashOpenForm>p.muted{display:none}
#cashActive .grid:has(>.stat){grid-template-columns:1fr 1fr!important}
#cashActive .stat:first-child{grid-column:1/-1;background:var(--z-s2)!important}
#cashActive .stat:first-child strong{font-size:34px!important;color:var(--z-gold)!important}
#cashActive>p.muted{font-size:12.5px;line-height:1.5}
#cashMovementForm,#cashCloseForm{border-top:1px solid var(--z-bd);padding-top:14px;margin-top:14px}
#cashMovementForm:before{content:"Sangria ou suprimento";font-weight:800;font-size:16px;grid-column:1/-1}
#cashCloseForm:before{content:"Fechar caixa";font-weight:800;font-size:16px;grid-column:1/-1}
#cashMovementForm button[type=submit]{background:var(--z-s1)!important;border-color:var(--z-bd)!important;color:var(--z-tx)!important}
#zykoClosurePanel>p.muted{font-size:13px}
/* Menu (Mais): limpo, sem ícones decorativos */
@media(max-width:760px){
  .sidebar .nav-symbol,.sidebar .side-section-label,.sidebar .side-footer{display:none!important}
  .sidebar .side-brand{padding-bottom:16px!important}
  .sidebar .nav button{min-height:52px;font-size:16px;font-weight:700;border-bottom:1px solid var(--z-bd)!important;border-radius:0!important}
}
.z-hide{display:none!important}
#tabList .table-overview button{display:none!important}
#zCounterList{margin-top:10px}
#zCounterList:not(:empty):before{content:"Vendas de balcão em aberto";display:block;font-weight:800;font-size:16px;margin:8px 0 2px}
#zCounterList .table-overview{cursor:pointer;position:relative;padding:16px}
#zCounterList .table-overview:after{content:"Abrir ›";position:absolute;right:14px;top:16px;color:var(--z-gold);font-weight:800;font-size:14px}
#zCounterList .table-status{margin-right:70px;padding:4px 10px;border-radius:999px;font-size:12px;background:var(--z-warn-bg);color:var(--z-warn);border:1px solid #5a4520}
#zCounterList .table-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
#zCounterList .table-head strong{font-size:17px}
#zCounterList .table-overview{background:var(--z-s2)!important;border:1px solid var(--z-bd)!important;border-radius:var(--z-r)!important}
#tabsView #newOrder{display:none!important}
/* Mesa fecha com "Fechar mesa"; balcão fecha com "Fechar pedido" */
#tabsView.z-mesa #closeOrder,#tabsView.z-balcao #closeTab{display:none!important}
#tabsView.z-mesa #closeTab{background:var(--z-gold)!important;border-color:var(--z-gold)!important;color:var(--z-on-gold)!important}
#reportLossWrap{margin-top:16px}
#reportLossWrap h3{margin:0 0 8px}
.z-loss{background:var(--z-s2);border:1px solid var(--z-bd);border-left:3px solid var(--z-bad);border-radius:var(--z-r);padding:12px 14px}
.z-loss-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.z-loss-top strong{color:var(--z-bad);font-size:17px}
.z-loss-top span{color:var(--z-mu);font-size:13px}
.z-loss p{margin:6px 0 0}
/* Mesa sem itens: sem buraco vazio */
#tabsView p:empty{display:none}
#tabsView.z-detail .scroll:has(#orderItems:empty) table{display:none}
#tabsView.z-detail .scroll:has(#orderItems:empty):before{content:"Nenhum item nesta mesa ainda.";display:block;color:var(--z-mu);padding:4px 0 8px}
#tabsView.z-balcao .z-serve{display:none!important}

/* ===== Mais: tela cheia no celular (em vez de menu lateral) ===== */
@media(max-width:760px){
  .sidebar{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:calc(68px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;height:auto!important;transform:none!important;visibility:hidden;opacity:0;transition:none!important;background:var(--z-bg)!important;border:0!important;border-radius:0!important;padding:0 15px 20px!important;z-index:22!important;overflow-y:auto}
  body.menu-open .sidebar{visibility:visible;opacity:1}
  body.menu-open .sidebar-backdrop{display:none!important}
  body.menu-open{overflow:hidden}
  .sidebar .side-brand{display:none!important}
  .sidebar:before{content:"Mais";display:flex;align-items:center;position:sticky;top:0;z-index:1;background:var(--z-bg);min-height:60px;margin:0 -15px 14px;padding:0 15px;border-bottom:1px solid var(--z-bd);font-size:20px;font-weight:800;letter-spacing:-0.01em}
  .sidebar .nav{display:flex;flex-direction:column;gap:0;background:var(--z-s1);border:1px solid var(--z-bd);border-radius:var(--z-r-lg);padding:2px 16px;overflow:hidden}
  .sidebar .nav button[data-tab="home"],.sidebar .nav button[data-tab="tabs"],.sidebar .nav button[data-tab="cash"],.sidebar .nav button[data-tab="products"]{display:none!important}
  .sidebar .nav button{display:flex;align-items:center;justify-content:space-between;width:100%!important;margin:0!important;padding:14px 0!important;min-height:64px;background:transparent!important;border:0!important;border-top:1px solid var(--z-bd)!important;border-radius:0!important;text-align:left;color:var(--z-tx)!important}
  .sidebar .nav button:not(.hide):first-of-type,.sidebar .nav button[data-tab="combos"]{border-top:0!important}
  .sidebar .nav button[aria-current="page"]{background:transparent!important;color:var(--z-gold)!important}
  .sidebar .nav-label{display:block;font-size:16px;font-weight:700}
  .sidebar .nav-label:after{display:block;margin-top:2px;font-size:13px;font-weight:500;color:var(--z-mu)}
  .sidebar [data-tab="combos"] .nav-label:after{content:"Kits e promoções"}
  .sidebar [data-tab="customers"] .nav-label:after{content:"Cadastro e fiado"}
  .sidebar [data-tab="reports"] .nav-label:after{content:"Vendas, pagamentos e perdas"}
  .sidebar [data-tab="suppliers"] .nav-label:after{content:"Compras e contas a pagar"}
  .sidebar [data-tab="team"] .nav-label:after{content:"Equipe e convites"}
  .sidebar [data-tab="admin"] .nav-label:after{content:"Adegas e acessos · só administrador"}
  .sidebar #supportButton .nav-label:after{content:"Falar com o suporte no WhatsApp"}
  .sidebar .nav-chevron{display:block!important;color:var(--z-mu)!important;font-size:22px}
  .sidebar .nav .z-side-logout{color:var(--z-bad)!important;font-weight:800}
  .sidebar .nav .z-side-logout .nav-label{color:var(--z-bad)}
}
@media(max-width:760px){body.menu-open .z-bn[aria-current="page"]{color:var(--z-mu)!important}body.menu-open #zMore{color:var(--z-gold)!important}}

/* ===== Mesas: duas ações principais em dourado ===== */
#tabsView>section.panel:first-of-type>p.muted{display:none}
#tabsView>section.panel:first-of-type>.row{margin:6px 0 4px}
#newCounterSale{width:100%!important;min-height:52px;font-size:16px;background:var(--z-gold)!important;border-color:var(--z-gold)!important;color:var(--z-on-gold)!important}
#tabForm{grid-template-columns:1fr auto!important;align-items:end;gap:10px!important;margin-top:12px}
#tabForm button[type=submit]{min-height:48px;padding:0 18px;white-space:nowrap}

/* ===== Produtos: situação do estoque ===== */
#productRows tr[data-stock] td:nth-child(4){font-weight:800}
#productRows tr[data-stock="ok"] td:nth-child(4){color:var(--z-ok)!important}
#productRows tr[data-stock="low"] td:nth-child(4){color:var(--z-warn)!important}
#productRows tr[data-stock="out"] td:nth-child(4){color:var(--z-bad)!important}
#productRows tr[data-stock="low"] td:nth-child(4):after{content:" · baixo";font-weight:600}
#productRows tr[data-stock="out"] td:nth-child(4):after{content:" · esgotado";font-weight:600}
#productsView>section.panel:first-of-type>p.muted{display:none}
#search{margin:8px 0 4px}

/* ===== Início ===== */
#homeView{display:flex;flex-direction:column}
#homeView>*{order:5}
#zHomeCash{order:1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:0!important}
#zHomeCash.hide{display:none!important}
#zHomeCash>div{display:flex;flex-direction:column;gap:2px;min-width:0}
#zHomeCash strong{font-size:18px;font-weight:800}
#zHomeCash small{color:var(--z-mu);font-size:13px}
.z-hc-badge{align-self:flex-start;font-size:12px;font-weight:800;padding:3px 10px;border-radius:999px;background:var(--z-warn-bg);color:var(--z-warn);margin-bottom:4px}
#zHomeCash.z-open .z-hc-badge{background:var(--z-ok-bg);color:var(--z-ok)}
#zHomeCash button{width:auto!important;flex:none;min-height:44px}
#homeView>.daily-panel{order:2}
#homeView>section.panel:has(#homeStockAlerts){order:3}
#homeView>section.panel:has(#homeOpenTabs){order:4}
#homeView>section.panel:has(#homeOpenTabs)>p.muted{display:none}
#homeNewCounter,#homeNewTable{display:none!important}
#homeView .daily-net small,#dailyStatus{display:none}
#homeStockAlerts .notice{border-left:3px solid var(--z-warn)!important;padding:12px 14px}
.z-attn-link{cursor:pointer;border-left:3px solid var(--z-warn)!important;padding:12px 14px;margin-bottom:8px;font-weight:700}
@media(max-width:760px){
  #productRows td:nth-child(2),#productRows td:nth-child(5){display:none!important}
  #productRows td:nth-child(4){justify-content:flex-end!important;gap:4px}
  #productRows td:nth-child(4):before{margin-right:auto}
  #tabsView>section.panel:first-of-type>h2{display:none}
}
/* Telas abertas pelo Mais: botão de voltar */
.z-back-more{display:none!important}
@media(max-width:760px){
  body:has(#combosView:not(.hide)) .z-back-more,body:has(#customersView:not(.hide)) .z-back-more,body:has(#reportsView:not(.hide)) .z-back-more,body:has(#suppliersView:not(.hide)) .z-back-more,body:has(#teamView:not(.hide)) .z-back-more,body:has(#adminView:not(.hide)) .z-back-more{display:flex!important}
  .z-back-more{align-items:center;justify-content:center;flex:none;width:40px!important;min-height:40px!important;height:40px;padding:0!important;margin:0!important;font-size:24px;line-height:1;border-radius:12px!important}
}
/* Exportação técnica (JSON): só para o administrador geral (pedidos de cópia dos dados / LGPD) */
#reportsView>section.panel:has(#backupExport){display:none!important}
body:has(.admin-nav-button:not(.hide)) #reportsView>section.panel:has(#backupExport){display:block!important}
#activeStoreTag:empty,.today-chip:empty{display:none!important}
.sidebar .side-footer{display:none!important}

/* ===== Importar planilha ===== */
#zImport{padding-bottom:18px;margin-bottom:6px;border-bottom:1px solid var(--z-bd)}
.z-imp-actions{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}
.z-imp-actions button{width:auto!important}
.z-imp-file{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px dashed var(--z-bd);border-radius:var(--z-r);background:var(--z-s2);font-weight:700;cursor:pointer}
.z-imp-file input{min-height:auto;padding:8px;background:transparent;border:0}
#zImpPreview{margin-top:14px;display:flex;flex-direction:column;gap:10px}
#zImpPreview.hide{display:none}
.z-imp-sum{font-weight:800;margin:0}
.z-imp-errors{border:1px solid #5a2a24;background:var(--z-bad-bg);color:var(--z-bad);border-radius:var(--z-r);padding:12px 14px;display:flex;flex-direction:column;gap:4px;font-size:14px}
.z-imp-list{max-height:360px;overflow:auto;border:1px solid var(--z-bd);border-radius:var(--z-r)}
.z-imp-list>div{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;padding:10px 12px;border-top:1px solid var(--z-bd)}
.z-imp-list>div:first-child{border-top:0}
.z-imp-list small{grid-column:2;color:var(--z-mu);font-size:13px}
.z-imp-tag{font-size:11px;font-weight:800;padding:2px 8px;border-radius:999px;background:var(--z-s2);color:var(--z-mu);border:1px solid var(--z-bd)}
.z-imp-tag.new{background:var(--z-ok-bg);color:var(--z-ok);border-color:#24503a}
#zImpGo{width:100%;min-height:52px}
#zImpClear{width:auto!important;margin-top:10px}

/* ===== Cobrança ===== */
#zBillBanner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--z-warn-bg);border:1px solid #5a4520;color:var(--z-warn);border-radius:var(--z-r);padding:12px 14px;margin:0 0 14px;font-weight:700;font-size:14px}
#zBillBanner.hide{display:none}
#zBillBanner button{width:auto!important;min-height:40px}
#zBillLock{position:fixed;inset:0;z-index:60;background:rgba(5,5,6,.92);display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;padding:24px 16px}
#zBillLock.hide{display:none}
body.z-locked{overflow:hidden}
body.z-locked #zBillLock{background:var(--z-bg)}
.z-bill-box{width:100%;max-width:440px;background:var(--z-s1);border:1px solid var(--z-bd);border-radius:var(--z-r-lg);padding:22px 20px;display:flex;flex-direction:column;gap:12px}
.z-bill-box h2{margin:0;font-size:22px}
.z-bill-chip{align-self:flex-start;font-size:12px;font-weight:800;padding:3px 10px;border-radius:999px;background:var(--z-warn-bg);color:var(--z-warn)}
.z-bill-amount{display:flex;justify-content:space-between;align-items:baseline;background:var(--z-s2);border-radius:var(--z-r);padding:12px 14px}
.z-bill-amount span{color:var(--z-mu)}
.z-bill-amount strong{font-size:24px;color:var(--z-gold)}
.z-bill-qr{display:flex;justify-content:center}
.z-bill-qr img{width:220px;height:220px;background:#fff;border-radius:12px;padding:8px}
#zBillCopy{width:100%;min-height:52px}
.z-bill-link{text-align:center;font-weight:700}
.z-bill-link.hide,#zBillCopy.hide,#zBillClose.hide{display:none!important}
.z-bill-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--z-bd);padding-top:10px;font-size:14px}
.z-bill-foot a{color:var(--z-mu)}
.z-bill-foot .z-link{width:auto!important;min-height:40px}
#zBillAdmin h3{margin:18px 0 8px;font-size:15px;color:var(--z-mu)!important;text-transform:none}
.z-bill-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;background:var(--z-s2);border:1px solid var(--z-bd);border-radius:var(--z-r);margin-bottom:8px}
.z-bill-row>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.z-bill-row small{color:var(--z-mu)}
.z-bill-acts{display:flex;gap:8px;flex-wrap:wrap}
.z-bill-acts button{width:auto!important;min-height:40px}
.z-bill-form{width:100%;margin-top:8px}
.z-bill-setup{margin-top:16px;color:var(--z-mu)}
.z-bill-setup summary{cursor:pointer;font-weight:700}
.z-bill-setup button{width:auto!important;margin-top:8px}

#zBillQr{display:flex;justify-content:center}
#zBillQr img{width:100%;max-width:240px;height:auto;display:block}
#zBillQr img+img{display:none}

/* Garçom não vê valores de caixa nem pagamentos */
body.z-waiter .daily-panel,body.z-waiter .stat:has(#homeReceivable),body.z-waiter #zAttnFiado,body.z-waiter #zPayBar,
body.z-waiter .stat:has(#orderPaid),body.z-waiter .stat:has(#orderDue),body.z-waiter .stat:has(#orderDiscountDisplay){display:none!important}
.z-loss-req{display:flex;flex-direction:column;gap:6px}
.z-loss-req small{color:var(--z-mu)}
.z-loss-req .row{gap:8px;margin-top:4px}
