/*
 * Zé da Prata ERP — identidade visual
 * Grafite, branco e prata, com detalhes em dourado discreto.
 * Carregado só quando zp_brand() é verdadeiro (modo empresa única + marca zedaprata);
 * os demais temas do Vellora (claro, noir, clínica) não são afetados.
 */
body.theme-zp{
  --zp-graphite:#1c1f24;
  --zp-graphite-2:#262a31;
  --zp-graphite-3:#343943;
  --zp-silver:#c4c8ce;
  --zp-silver-2:#9aa0a8;
  --zp-silver-soft:#eceef1;
  --zp-paper:#f6f7f8;
  --zp-gold:#b8964f;
  --zp-gold-soft:#efe6d3;
  --zp-ink:#1c1f24;
  --zp-ink-soft:#5d646d;
  --zp-line:#e2e5e9;

  --dp-pink:var(--zp-gold);
  --dp-pink-600:#9c7c3b;
  --dp-pink-700:#806530;
  --dp-pink-50:#faf7f0;
  --dp-pink-100:var(--zp-gold-soft);
  --dp-pink-200:#e1d1ad;
  --dp-ink:var(--zp-ink);
  --dp-ink-soft:var(--zp-ink-soft);
  --dp-line:var(--zp-line);
  --dp-bg:var(--zp-paper);
  --dp-side:var(--zp-graphite);
  --dp-side-2:var(--zp-graphite-2);
  --dp-radius:12px;
  --dp-shadow:0 1px 2px rgba(28,31,36,.05),0 10px 28px -16px rgba(28,31,36,.22);
  --bs-body-font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --bs-body-color:var(--zp-ink);
  --bs-primary:var(--zp-graphite);
  --bs-link-color:var(--zp-graphite-3);
  --bs-link-hover-color:var(--zp-gold);
  --bs-border-color:var(--zp-line);
  background:var(--zp-paper);
  color:var(--zp-ink);
  font-family:var(--bs-body-font-family);
  letter-spacing:.005em;
}
body.theme-zp ::selection{background:var(--zp-gold-soft);color:var(--zp-ink)}
body.theme-zp h1,body.theme-zp h2,body.theme-zp h3,body.theme-zp .h1,body.theme-zp .h2,body.theme-zp .h3{font-family:"Playfair Display",Georgia,serif;font-weight:600;letter-spacing:0}
body.theme-zp .zp-gold{color:var(--zp-gold)}

/* ---------- Marca ---------- */
.zp-logo{display:inline-flex;align-items:center;gap:.7rem;color:inherit;text-decoration:none}
.zp-mark{width:38px;height:38px;flex:0 0 auto;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25))}
.zp-logo-text{display:flex;flex-direction:column;line-height:1.05}
.zp-logo-name{font-family:"Playfair Display",Georgia,serif;font-weight:600;font-size:1.28rem;letter-spacing:.01em;background:linear-gradient(180deg,#ffffff 0%,#d9dce1 55%,#a9afb7 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.zp-logo-tag{font-size:.62rem;text-transform:uppercase;letter-spacing:.32em;color:var(--zp-gold,#b8964f);margin-top:.28rem;font-weight:600}
.zp-logo-lg .zp-mark{width:84px;height:84px}
.zp-logo-lg{flex-direction:column;gap:1.1rem}
.zp-logo-lg .zp-logo-text{align-items:center}
.zp-logo-lg .zp-logo-name{font-size:2.6rem}
.zp-logo-lg .zp-logo-tag{font-size:.74rem;margin-top:.6rem}
.zp-logo-sm .zp-mark{width:34px;height:34px}

/* ---------- Menu lateral ---------- */
body.theme-zp .dp-sidebar{background:linear-gradient(180deg,var(--zp-graphite) 0%,#202329 60%,#1a1c21 100%);border-right:1px solid rgba(255,255,255,.04);box-shadow:inset -1px 0 0 rgba(196,200,206,.06)}
body.theme-zp .dp-sidebar-brand{border-bottom:1px solid rgba(196,200,206,.10);padding-bottom:1.1rem}
body.theme-zp .dp-nav-group{color:var(--zp-silver-2);font-size:.64rem;letter-spacing:.24em;font-weight:600;opacity:.9}
body.theme-zp .dp-nav-link{color:#d5d8dd;border-radius:10px;font-weight:500;position:relative}
body.theme-zp .dp-nav-link i{color:var(--zp-silver-2)}
body.theme-zp .dp-nav-link:hover{background:rgba(196,200,206,.07);color:#fff}
body.theme-zp .dp-nav-link:hover i{color:var(--zp-silver)}
body.theme-zp .dp-nav-link.active{background:linear-gradient(90deg,rgba(184,150,79,.16),rgba(184,150,79,.04));color:#fff;box-shadow:none}
body.theme-zp .dp-nav-link.active::before{content:"";position:absolute;left:-.55rem;top:.55rem;bottom:.55rem;width:3px;border-radius:3px;background:var(--zp-gold)}
body.theme-zp .dp-nav-link.active i{color:var(--zp-gold)}
body.theme-zp .dp-nav-badge{background:var(--zp-gold);color:var(--zp-graphite)}
body.theme-zp .dp-sidebar-foot{border-top:1px solid rgba(196,200,206,.10)}
body.theme-zp .dp-sidebar ::-webkit-scrollbar-thumb{background:rgba(196,200,206,.18)}

/* ---------- Barra superior ---------- */
body.theme-zp .dp-topbar{background:rgba(255,255,255,.92);backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid var(--zp-line)}
body.theme-zp .dp-page-title h1{font-size:1.45rem;color:var(--zp-ink)}
body.theme-zp .dp-page-title p{color:var(--zp-ink-soft)}
body.theme-zp .dp-store-select,body.theme-zp .dp-chip{background:#fff;border:1px solid var(--zp-line);color:var(--zp-ink)}
body.theme-zp .dp-store-select i,body.theme-zp .dp-chip i{color:var(--zp-gold)}
body.theme-zp .dp-icon-btn{background:#fff;border:1px solid var(--zp-line);color:var(--zp-ink)}
body.theme-zp .dp-icon-btn:hover{border-color:var(--zp-silver);background:var(--zp-silver-soft)}
body.theme-zp .dp-dot{background:var(--zp-gold);color:var(--zp-graphite)}
body.theme-zp .dp-user-btn{border:1px solid var(--zp-line);background:#fff}
body.theme-zp .dp-avatar{background:linear-gradient(135deg,#e9ebee,#b9bec6);color:var(--zp-graphite);font-weight:600}

/* ---------- Botões ---------- */
body.theme-zp .btn{border-radius:10px;font-weight:500}
body.theme-zp .btn-pink{background:var(--zp-graphite);border:1px solid var(--zp-graphite);color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 6px 16px -10px rgba(28,31,36,.55)}
body.theme-zp .btn-pink:hover,body.theme-zp .btn-pink:focus{background:var(--zp-graphite-3);border-color:var(--zp-graphite-3);color:#fff;box-shadow:0 0 0 3px rgba(184,150,79,.28)}
body.theme-zp .btn-pink:disabled{background:#8d939c;border-color:#8d939c}
body.theme-zp .btn-pink i{color:var(--zp-gold)}
body.theme-zp .btn-outline-pink{color:var(--zp-graphite);border-color:var(--zp-silver)}
body.theme-zp .btn-outline-pink:hover{background:var(--zp-graphite);border-color:var(--zp-graphite);color:#fff}
body.theme-zp .btn-soft{background:var(--zp-silver-soft);color:var(--zp-ink);border:1px solid transparent}
body.theme-zp .btn-soft:hover{background:#e2e5e9}
body.theme-zp .text-pink{color:var(--zp-gold)!important}
body.theme-zp .form-control:focus,body.theme-zp .form-select:focus{border-color:var(--zp-gold);box-shadow:0 0 0 .2rem rgba(184,150,79,.18)}
body.theme-zp .form-check-input:checked{background-color:var(--zp-graphite);border-color:var(--zp-graphite)}
body.theme-zp .nav-pills .nav-link.active{background:var(--zp-graphite);color:#fff}
body.theme-zp .nav-pills .nav-link.active i{color:var(--zp-gold)}

/* ---------- Cartões, indicadores e tabelas ---------- */
body.theme-zp .dp-card{background:#fff;border:1px solid var(--zp-line);border-radius:var(--dp-radius);box-shadow:var(--dp-shadow)}
body.theme-zp .dp-card-head{border-bottom:1px solid var(--zp-line)}
body.theme-zp .dp-card-head h2,body.theme-zp .dp-card-head h3{font-size:1.05rem}
body.theme-zp .dp-kpi{background:#fff;border:1px solid var(--zp-line);border-radius:var(--dp-radius);box-shadow:var(--dp-shadow)}
body.theme-zp .dp-kpi .dp-kpi-label{color:var(--zp-ink-soft);text-transform:uppercase;letter-spacing:.12em;font-size:.68rem;font-weight:600}
body.theme-zp .dp-kpi .dp-kpi-value{font-family:"Playfair Display",Georgia,serif;font-weight:600;color:var(--zp-ink)}
body.theme-zp .dp-kpi .dp-kpi-icon{background:var(--zp-silver-soft);color:var(--zp-graphite-3)}
body.theme-zp .dp-kpi.is-hero{background:linear-gradient(135deg,var(--zp-graphite) 0%,var(--zp-graphite-3) 100%);border-color:var(--zp-graphite);color:#fff}
body.theme-zp .dp-kpi.is-hero .dp-kpi-value{color:#fff}
body.theme-zp .dp-kpi.is-hero .dp-kpi-label,body.theme-zp .dp-kpi.is-hero .dp-kpi-sub{color:var(--zp-silver)}
body.theme-zp .dp-kpi.is-hero .dp-kpi-icon{background:rgba(184,150,79,.18);color:var(--zp-gold)}
body.theme-zp .dp-table thead th{background:#fafbfc;color:var(--zp-ink-soft);text-transform:uppercase;letter-spacing:.08em;font-size:.68rem;font-weight:600;border-bottom:1px solid var(--zp-line)}
body.theme-zp .dp-table td{border-color:#eef0f2}
body.theme-zp .dp-table tbody tr:hover{background:#fafbfc}
body.theme-zp .badge-soft-pink{background:var(--zp-gold-soft);color:#7a6230}
body.theme-zp .dp-thumb-ph{background:var(--zp-silver-soft);color:var(--zp-silver-2)}
body.theme-zp .dp-toast{border-radius:12px}

/* ---------- Tela de acesso ---------- */
body.theme-zp .dp-login{background:#fff}
body.theme-zp .dp-login-art{background:
  radial-gradient(70% 55% at 30% 25%,rgba(196,200,206,.16) 0%,rgba(196,200,206,0) 60%),
  radial-gradient(50% 40% at 80% 90%,rgba(184,150,79,.12) 0%,rgba(184,150,79,0) 70%),
  linear-gradient(160deg,#2a2e35 0%,#1c1f24 55%,#15171b 100%);color:#fff}
body.theme-zp .dp-login-art::before{content:"";position:absolute;inset:0;opacity:.07;background-image:linear-gradient(60deg,#fff 1px,transparent 1px),linear-gradient(-60deg,#fff 1px,transparent 1px);background-size:56px 96px}
body.theme-zp .dp-login-art .ring{border:1px solid rgba(196,200,206,.22);box-shadow:none}
body.theme-zp .dp-login-art p{color:var(--zp-silver)!important;letter-spacing:.01em}
body.theme-zp .dp-login-form h1{font-family:"Playfair Display",Georgia,serif}
body.theme-zp .dp-login-form .form-control{border-color:var(--zp-line);background:#fbfbfc}

/* ---------- Ajustes finos ---------- */
/* números alinhados (valores e quantidades leem melhor em colunas) */
body.theme-zp .dp-kpi .dp-kpi-value,body.theme-zp .dp-table td,body.theme-zp .zp-num{font-variant-numeric:lining-nums tabular-nums}
body.theme-zp .dp-kpi .dp-kpi-value{font-feature-settings:"lnum" 1,"tnum" 1}
/* links no tom grafite, com dourado no foco */
body.theme-zp{--bs-link-color-rgb:52,57,67;--bs-link-hover-color-rgb:184,150,79}
body.theme-zp a:not(.btn):not(.dp-nav-link):not(.dropdown-item):not(.nav-link){color:var(--zp-graphite-3)}
body.theme-zp a:not(.btn):not(.dp-nav-link):not(.dropdown-item):not(.nav-link):hover{color:var(--zp-gold)}
body.theme-zp .dp-card-head a{font-weight:500;text-decoration:none}
/* rótulos dos indicadores não passam por baixo do ícone */
body.theme-zp .dp-kpi .dp-kpi-label{padding-right:46px}
@media (max-width:575.98px){body.theme-zp .dp-kpi .dp-kpi-label{letter-spacing:.05em;font-size:.64rem}}

/* =====================================================================
   Fase 1 (passos 5–10): componentes das telas próprias da Zé da Prata
   ===================================================================== */
body.theme-zp .dp-content{padding-bottom:5rem}
body.theme-zp .zp-toolbar{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between;margin-bottom:1rem}
body.theme-zp .zp-section-title{display:flex;align-items:baseline;gap:.75rem;margin:.25rem 0 .75rem;border-bottom:1px solid var(--zp-line);padding-bottom:.5rem}
body.theme-zp .zp-section-title span{font-family:"Playfair Display",Georgia,serif;font-size:1.15rem;font-weight:600;color:var(--zp-ink)}
body.theme-zp .zp-section-title small{color:var(--zp-ink-soft);font-size:.78rem}
body.theme-zp .zp-row-off{opacity:.55}
body.theme-zp .zp-code{font-size:.78rem;color:var(--zp-graphite-3);background:var(--zp-silver-soft);padding:.1rem .4rem;border-radius:6px}
body.theme-zp .zp-step{display:inline-grid;place-items:center;width:1.6rem;height:1.6rem;border-radius:50%;background:var(--zp-graphite);color:var(--zp-gold);font-family:Inter,sans-serif;font-size:.8rem;margin-right:.55rem;vertical-align:2px}

/* estados vazios */
body.theme-zp .zp-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:.3rem;padding:2.5rem 1rem;color:var(--zp-ink-soft)}
body.theme-zp .zp-empty>i{font-size:2rem;color:var(--zp-silver-2);margin-bottom:.25rem}
body.theme-zp .zp-empty strong{color:var(--zp-ink);font-weight:600}
body.theme-zp .zp-empty span{font-size:.85rem;max-width:34ch}
body.theme-zp .zp-empty-sm{padding:1.5rem 1rem}

/* indicadores */
body.theme-zp .zp-kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:.85rem}
body.theme-zp .zp-kpis-4{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
body.theme-zp a.dp-kpi{text-decoration:none;color:inherit;transition:border-color .15s,transform .15s}
body.theme-zp a.dp-kpi:hover{border-color:var(--zp-gold);transform:translateY(-1px)}
body.theme-zp .dp-kpi{position:relative;padding:1rem 1.1rem}
body.theme-zp .dp-kpi .dp-kpi-icon{position:absolute;top:.9rem;right:.9rem;width:2.1rem;height:2.1rem;border-radius:10px;display:grid;place-items:center;font-size:1rem}
body.theme-zp .dp-kpi .dp-kpi-value{font-size:1.45rem;margin-top:.35rem;line-height:1.2}
body.theme-zp .dp-kpi .dp-kpi-sub{font-size:.76rem;color:var(--zp-ink-soft);margin-top:.15rem}
body.theme-zp .dp-kpi.is-warn{border-color:#e9d39a;background:linear-gradient(180deg,#fffdf6,#fff)}
body.theme-zp .dp-kpi.is-warn .dp-kpi-icon{background:#f6ecd2;color:#8a6a1e}
body.theme-zp .dp-kpi.is-negative .dp-kpi-value{color:#a12c2c}
body.theme-zp .zp-kpi-locked{grid-column:span 2;background:var(--zp-silver-soft);border-style:dashed}

/* filtros do painel */
body.theme-zp .zp-dash-filters{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between;padding:.75rem}
body.theme-zp .zp-presets{display:flex;gap:.35rem;overflow-x:auto;scrollbar-width:none;max-width:100%}
body.theme-zp .zp-presets::-webkit-scrollbar{display:none}
body.theme-zp .zp-pill{white-space:nowrap;padding:.38rem .8rem;border-radius:999px;border:1px solid var(--zp-line);font-size:.82rem;color:var(--zp-ink);text-decoration:none;background:#fff}
body.theme-zp .zp-pill:hover{border-color:var(--zp-silver-2)}
body.theme-zp .zp-pill.active{background:var(--zp-graphite);border-color:var(--zp-graphite);color:#fff}
body.theme-zp .zp-dash-range{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
body.theme-zp .zp-dash-range input{width:7.6rem;text-align:center}
body.theme-zp .zp-dash-range select{width:auto;min-width:11rem}

/* alertas */
body.theme-zp .zp-alerts{display:flex;flex-wrap:wrap;gap:.5rem}
body.theme-zp .zp-alert{display:inline-flex;align-items:center;gap:.45rem;padding:.45rem .8rem;border-radius:10px;font-size:.84rem;text-decoration:none;border:1px solid transparent}
body.theme-zp .zp-alert-warning{background:#fbf4e2;color:#7a5b14;border-color:#efe0b5}
body.theme-zp .zp-alert-danger{background:#fbeaea;color:#8a2323;border-color:#f1cccc}
body.theme-zp .zp-alert-info{background:#eef1f5;color:#3a4250;border-color:#dfe3ea}
body.theme-zp .zp-alert:hover{filter:brightness(.98)}

/* gráfico, ranking, fábrica */
body.theme-zp .zp-chart{position:relative;height:260px}
body.theme-zp .zp-rank{list-style:none;margin:0;padding:.25rem 0}
body.theme-zp .zp-rank li{display:flex;align-items:center;gap:.7rem;padding:.6rem 1.25rem;border-bottom:1px solid #f0f1f3}
body.theme-zp .zp-rank li:last-child{border-bottom:0}
body.theme-zp .zp-rank a{color:var(--zp-ink);text-decoration:none;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.theme-zp .zp-rank-n{width:1.5rem;height:1.5rem;border-radius:50%;display:grid;place-items:center;background:var(--zp-silver-soft);font-size:.75rem;font-weight:600;flex:0 0 auto}
body.theme-zp .zp-rank li:first-child .zp-rank-n{background:var(--zp-gold-soft);color:#7a6230}
body.theme-zp .zp-future{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:.6rem}
body.theme-zp .zp-future-item{display:flex;align-items:center;gap:.7rem;padding:.75rem .9rem;border:1px dashed #d9dce1;border-radius:12px;background:#fbfbfc;color:var(--zp-ink-soft)}
body.theme-zp .zp-future-item>i{font-size:1.15rem;color:var(--zp-silver-2)}
body.theme-zp .zp-future-item b{display:block;color:var(--zp-ink);font-weight:500;font-size:.88rem}
body.theme-zp .zp-future-item small{font-size:.74rem}
body.theme-zp .zp-future-item .badge{margin-left:auto}

/* listagem de produtos */
body.theme-zp .zp-filters{padding:.85rem}
body.theme-zp .zp-filters-main{display:grid;grid-template-columns:1fr minmax(12rem,16rem) auto auto;gap:.5rem}
body.theme-zp .zp-filters-more{display:grid;grid-template-columns:repeat(auto-fill,minmax(10.5rem,1fr));gap:.5rem;padding-top:.6rem}
body.theme-zp .zp-list-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.75rem 1rem;border-bottom:1px solid var(--zp-line)}
body.theme-zp .zp-cols-menu{min-width:15rem}
body.theme-zp .zp-products th a,body.theme-zp .dp-table th a{color:inherit;text-decoration:none}
body.theme-zp .zp-col-foto{width:56px}
body.theme-zp .zp-col-name{min-width:14rem}
body.theme-zp .zp-unit-split{display:flex;gap:.3rem;flex-wrap:wrap;justify-content:flex-end;margin-top:.15rem}
body.theme-zp .zp-unit-split span{font-size:.68rem;padding:.05rem .35rem;border-radius:5px;background:var(--zp-silver-soft);color:var(--zp-ink-soft);white-space:nowrap}
body.theme-zp .zp-pager{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:space-between;align-items:center;padding:.75rem 1rem;border-top:1px solid var(--zp-line)}
body.theme-zp .zp-pager-info{font-size:.82rem;color:var(--zp-ink-soft)}
body.theme-zp .page-link{color:var(--zp-ink)}
body.theme-zp .page-item.active .page-link{background:var(--zp-graphite);border-color:var(--zp-graphite);color:#fff}
body.theme-zp .zp-scroll-y{max-height:360px;overflow-y:auto}

/* formulários */
body.theme-zp .zp-form-actions{position:sticky;bottom:0;z-index:5;display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem;padding:.75rem 1rem;background:rgba(255,255,255,.94);backdrop-filter:blur(6px);border:1px solid var(--zp-line);border-radius:12px;box-shadow:0 -8px 24px -18px rgba(28,31,36,.35)}
body.theme-zp .zp-photo{display:flex;flex-direction:column;gap:.5rem;align-items:stretch}
body.theme-zp .zp-photo img,body.theme-zp .zp-photo>span{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;background:var(--zp-silver-soft);display:grid;place-items:center;font-size:2rem;color:var(--zp-silver-2)}
body.theme-zp .zp-skus{display:grid;gap:.75rem}
body.theme-zp .zp-sku{border:1px solid var(--zp-line);border-radius:12px;padding:.85rem;background:#fcfcfd}
body.theme-zp .zp-sku-head{display:flex;align-items:center;gap:.6rem;margin-bottom:.6rem;flex-wrap:wrap}
body.theme-zp .zp-sku-head strong{font-family:"Playfair Display",Georgia,serif;font-size:1.05rem}
body.theme-zp .zp-sku-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));gap:.5rem}
body.theme-zp .zp-sku-grid .form-label,body.theme-zp .zp-sku-money .form-label{font-size:.74rem;margin-bottom:.15rem;color:var(--zp-ink-soft)}
body.theme-zp .zp-sku-money{display:grid;grid-template-columns:1fr 1.25fr;gap:1rem;margin-top:.75rem;padding-top:.75rem;border-top:1px dashed var(--zp-line)}
body.theme-zp .zp-prices{display:grid;grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr));gap:.5rem;align-content:start}
body.theme-zp .zp-mini-title{grid-column:1/-1;font-size:.7rem;text-transform:uppercase;letter-spacing:.12em;font-weight:600;color:var(--zp-ink-soft)}
body.theme-zp .zp-cost-total{text-transform:none;letter-spacing:0;color:var(--zp-graphite-3);font-weight:600;margin-left:.25rem}
body.theme-zp .zp-costs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));gap:.5rem;margin-top:.35rem}
body.theme-zp .zp-margin{display:block;font-size:.72rem;color:#2f7a4a;margin-top:.15rem}
body.theme-zp .zp-margin.is-neg{color:#a12c2c}
body.theme-zp .zp-kind .btn{font-size:.8rem}
body.theme-zp .zp-approval{border:1px solid #efe0b5;background:#fdf9ee;border-radius:10px;padding:.75rem;font-size:.85rem;margin-bottom:.75rem}

/* unidades, cargos, usuários */
body.theme-zp .zp-unit-card,body.theme-zp .zp-role-card{display:block;padding:1rem 1.1rem;text-decoration:none;color:inherit;height:100%;transition:border-color .15s}
body.theme-zp .zp-unit-card:hover,body.theme-zp .zp-role-card:hover{border-color:var(--zp-gold)}
body.theme-zp .zp-unit-icon{width:2.6rem;height:2.6rem;border-radius:12px;display:grid;place-items:center;background:var(--zp-graphite);color:var(--zp-gold);font-size:1.15rem;flex:0 0 auto}
body.theme-zp .zp-unit-name{font-size:1rem}
body.theme-zp .zp-unit-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-top:.9rem;padding-top:.75rem;border-top:1px solid var(--zp-line)}
body.theme-zp .zp-unit-stats span{display:block;font-weight:600;font-size:1.05rem}
body.theme-zp .zp-unit-stats small{font-size:.72rem;color:var(--zp-ink-soft)}
body.theme-zp .zp-chip-unit{font-size:.76rem;padding:.15rem .5rem;border-radius:7px;background:var(--zp-silver-soft);white-space:nowrap}
body.theme-zp .zp-chip-unit b{color:var(--zp-graphite-3);margin-right:.15rem}
body.theme-zp .zp-avatar-sm{width:2rem;height:2rem;font-size:.85rem}
body.theme-zp .zp-limits{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:1rem}
body.theme-zp .zp-limits div{background:var(--zp-silver-soft);border-radius:10px;padding:.55rem .7rem}
body.theme-zp .zp-limits small{display:block;font-size:.7rem;color:var(--zp-ink-soft)}
body.theme-zp .zp-perm-group{margin-bottom:.75rem}
body.theme-zp .zp-perm-group>span{font-size:.7rem;text-transform:uppercase;letter-spacing:.12em;font-weight:600;color:var(--zp-ink-soft)}
body.theme-zp .zp-perm-group ul{list-style:none;padding:0;margin:.3rem 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:.15rem .75rem;font-size:.85rem}
body.theme-zp .zp-matrix{max-height:70vh}
body.theme-zp .zp-matrix thead th{position:sticky;top:0;z-index:2;white-space:nowrap}
body.theme-zp .zp-matrix-first{position:sticky;left:0;background:#fff;z-index:1;min-width:16rem}
body.theme-zp .zp-matrix thead .zp-matrix-first{z-index:3;background:#fafbfc}
body.theme-zp .zp-matrix-group td{background:#f6f7f8;font-size:.7rem;text-transform:uppercase;letter-spacing:.12em;font-weight:600;color:var(--zp-ink-soft)}
body.theme-zp .zp-split{display:grid;grid-template-columns:15rem 1fr;gap:1rem;align-items:start}
body.theme-zp .zp-subnav{padding:.5rem;position:sticky;top:5rem}
body.theme-zp .zp-subnav-link{display:flex;align-items:center;gap:.6rem;padding:.5rem .65rem;border-radius:9px;color:var(--zp-ink);text-decoration:none;font-size:.88rem}
body.theme-zp .zp-subnav-link small{margin-left:auto;color:var(--zp-ink-soft);font-size:.72rem}
body.theme-zp .zp-subnav-link:hover{background:var(--zp-silver-soft)}
body.theme-zp .zp-subnav-link.active{background:var(--zp-graphite);color:#fff}
body.theme-zp .zp-subnav-link.active i,body.theme-zp .zp-subnav-link.active small{color:var(--zp-gold)}
body.theme-zp .zp-dl{display:grid;grid-template-columns:9rem 1fr;gap:.35rem .75rem;margin:0 0 .75rem;font-size:.88rem}
body.theme-zp .zp-dl dt{color:var(--zp-ink-soft);font-weight:500}
body.theme-zp .zp-dl dd{margin:0}

/* ---------- celular ---------- */
@media (max-width:991.98px){
  body.theme-zp .zp-split{grid-template-columns:1fr}
  body.theme-zp .zp-subnav{position:static;display:flex;overflow-x:auto;gap:.25rem;scrollbar-width:none}
  body.theme-zp .zp-subnav-link{white-space:nowrap}
  body.theme-zp .zp-sku-money{grid-template-columns:1fr}
}
@media (max-width:767.98px){
  body.theme-zp .dp-content{padding-left:.75rem;padding-right:.75rem}
  body.theme-zp .zp-filters-main{grid-template-columns:1fr 1fr}
  body.theme-zp .zp-search{grid-column:1/-1}
  body.theme-zp .zp-f-unit{grid-column:1/-1}
  body.theme-zp .zp-kpis{grid-template-columns:1fr 1fr;gap:.6rem}
  body.theme-zp .zp-kpi-locked{grid-column:1/-1}
  body.theme-zp .dp-kpi{padding:.8rem .85rem}
  body.theme-zp .dp-kpi .dp-kpi-value{font-size:1.15rem}
  body.theme-zp .dp-kpi .dp-kpi-icon{width:1.8rem;height:1.8rem;font-size:.85rem;top:.7rem;right:.7rem}
  body.theme-zp .dp-kpi .dp-kpi-label{padding-right:2.1rem}
  body.theme-zp .zp-dash-range{width:100%}
  body.theme-zp .zp-dash-range input{flex:1;width:auto;min-width:0}
  body.theme-zp .zp-dash-range select{flex:1 1 100%}
  body.theme-zp .zp-dash-range .btn{flex:1 1 100%}
  body.theme-zp .zp-future{grid-template-columns:1fr}
  body.theme-zp .zp-limits{grid-template-columns:1fr}
  body.theme-zp .zp-dl{grid-template-columns:1fr}
  body.theme-zp .zp-dl dt{margin-top:.35rem}
  body.theme-zp .zp-form-actions{margin-left:-.75rem;margin-right:-.75rem;border-radius:0}
  body.theme-zp .zp-form-actions .btn{flex:1}
  /* tabelas viram cartões: cada linha um bloco, cada célula com seu rótulo */
  body.theme-zp table.zp-cards-sm thead{display:none}
  body.theme-zp table.zp-cards-sm,body.theme-zp table.zp-cards-sm tbody,body.theme-zp table.zp-cards-sm tr,body.theme-zp table.zp-cards-sm td{display:block;width:100%}
  body.theme-zp table.zp-cards-sm tr{padding:.7rem .9rem;border-bottom:1px solid var(--zp-line)}
  body.theme-zp table.zp-cards-sm td{border:0!important;padding:.15rem 0!important;text-align:left!important;display:flex;justify-content:space-between;gap:1rem;align-items:center}
  body.theme-zp table.zp-cards-sm td[data-label]::before{content:attr(data-label);font-size:.72rem;color:var(--zp-ink-soft);text-transform:uppercase;letter-spacing:.06em;flex:0 0 auto}
  body.theme-zp table.zp-cards-sm td:not([data-label]){justify-content:flex-end}
  body.theme-zp table.zp-cards-sm td.zp-col-foto{display:none}
  body.theme-zp table.zp-cards-sm td.zp-col-name::before{display:none}
  body.theme-zp table.zp-cards-sm td.zp-col-name{font-size:1rem;padding-bottom:.35rem!important}
  body.theme-zp table.zp-cards-sm .zp-unit-split{justify-content:flex-end}
  body.theme-zp .zp-pager{justify-content:center}
  body.theme-zp .zp-list-head{flex-wrap:wrap}
}
/* ajustes da revisão visual */
body.theme-zp .zp-pill.active,body.theme-zp a.zp-pill.active:hover{color:#fff!important}
@media (min-width:1200px){
  body.theme-zp .zp-kpis-c4{grid-template-columns:repeat(4,1fr)}
  body.theme-zp .zp-kpis-c5{grid-template-columns:repeat(5,1fr)}
  body.theme-zp .zp-sku-grid{grid-template-columns:repeat(8,minmax(0,1fr))}
  body.theme-zp .zp-sku-grid:has(input[name$="[initial_qty]"]){grid-template-columns:repeat(9,minmax(0,1fr))}
}
body.theme-zp .zp-range{display:block;font-size:.72rem;font-weight:400;color:var(--zp-ink-soft)}
body.theme-zp .zp-compact-table .dp-table td,body.theme-zp .zp-compact-table .dp-table th{padding-left:.6rem;padding-right:.6rem}
body.theme-zp .zp-compact-table .dp-table td{font-size:.86rem}
body.theme-zp .zp-sku-table th{white-space:normal;vertical-align:bottom}
body.theme-zp .zp-units-table select{min-width:12rem}
body.theme-zp .zp-products td{font-size:.9rem}
body.theme-zp .zp-products .zp-col-name{min-width:10rem}
@media (min-width:768px){body.theme-zp .zp-sku-head .zp-unit-split{flex-wrap:nowrap}body.theme-zp .zp-products .zp-unit-split{flex-wrap:wrap;justify-content:flex-end;max-width:9.5rem;margin-left:auto}}

/* Revisão final do passo 10: respiro na última coluna e no seletor "por página" */
@media (min-width: 768px) {
  body.theme-zp .zp-products > :not(caption) > * > * { padding-left: .45rem; padding-right: .45rem; }
  body.theme-zp .zp-products > :not(caption) > * > *:first-child { padding-left: 1rem; }
  body.theme-zp .zp-products > :not(caption) > * > *:last-child { padding-right: 1rem; }
}
#pp { min-width: 4.5rem; padding-right: 2rem; }

/* ===== Revisão pré-passo 11 ===== */
/* seções recolhíveis do painel */
body.theme-zp details.zp-sec > summary{list-style:none;cursor:pointer;user-select:none}
body.theme-zp details.zp-sec > summary::-webkit-details-marker{display:none}
body.theme-zp details.zp-sec > summary:focus-visible{outline:2px solid var(--zp-gold);outline-offset:3px;border-radius:4px}
body.theme-zp .zp-sec-chev{margin-left:auto;align-self:center;color:var(--zp-ink-soft);transition:transform .2s ease;font-size:.9rem}
body.theme-zp details.zp-sec:not([open]) > summary{margin-bottom:1.1rem}
body.theme-zp details.zp-sec:not([open]) > summary .zp-sec-chev{transform:rotate(-90deg)}
@media (max-width:767.98px){body.theme-zp details.zp-sec > summary{padding:.35rem 0 .55rem}body.theme-zp .zp-sec-chev{font-size:1.05rem}}
body.theme-zp .zp-na{display:inline-block;font-family:Inter,system-ui,sans-serif;font-size:.8rem;font-weight:600;color:#7a5c12;background:#fbf1d6;border-radius:.35rem;padding:.15rem .5rem;letter-spacing:0}
body.theme-zp .zp-margin.is-na{color:#7a5c12}
/* cadastro: edição em massa, recolher, fotos */
body.theme-zp .zp-bulk{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center;background:var(--zp-silver-soft);border:1px solid var(--zp-line);border-radius:.6rem;padding:.6rem .75rem;margin-bottom:.9rem}
body.theme-zp .zp-bulk-sel{display:flex;gap:.75rem;align-items:center;font-size:.85rem}
body.theme-zp .zp-bulk-edit{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;flex:1 1 32rem}
body.theme-zp .zp-bulk-edit .form-select,body.theme-zp .zp-bulk-edit .form-control{width:auto;min-width:9rem;max-width:15rem}
body.theme-zp .zp-bulk-view{display:flex;gap:.35rem}
body.theme-zp .zp-bulk-msg{flex-basis:100%;color:var(--zp-ink-soft)}
body.theme-zp .zp-bulk-msg:empty{display:none}
body.theme-zp .zp-changed{background:#fff8e6;border-color:var(--zp-gold)}
body.theme-zp .zp-sku-toggle{border:0;background:transparent;color:var(--zp-ink-soft);padding:0 .15rem;line-height:1}
body.theme-zp .zp-sku-toggle i{display:inline-block;transition:transform .15s ease}
body.theme-zp .zp-sku.is-collapsed .zp-sku-toggle i{transform:rotate(-90deg)}
body.theme-zp .zp-sku.is-collapsed .zp-sku-grid,body.theme-zp .zp-sku.is-collapsed .zp-sku-money{display:none}
body.theme-zp .zp-sku-summary{display:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42rem}
body.theme-zp .zp-sku.is-collapsed .zp-sku-summary{display:inline}
body.theme-zp .zp-sku-head [data-zp-pick]{margin:0}
body.theme-zp .zp-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem}
body.theme-zp .zp-thumb{position:relative;display:block;aspect-ratio:1;border-radius:.45rem;overflow:hidden;border:1px solid var(--zp-line);background:#fff}
body.theme-zp .zp-thumb img{width:100%;height:100%;object-fit:cover}
body.theme-zp .zp-thumb.is-main{outline:2px solid var(--zp-gold);outline-offset:1px}
body.theme-zp .zp-thumb em{position:absolute;left:.25rem;bottom:.25rem;font-style:normal;font-size:.65rem;font-weight:600;background:rgba(28,31,36,.78);color:#fff;border-radius:.25rem;padding:0 .3rem}
body.theme-zp .zp-photo-empty{display:flex;gap:.6rem;align-items:center;border:1px dashed var(--zp-line);border-radius:.6rem;padding:.9rem;color:var(--zp-ink-soft);font-size:.85rem}
body.theme-zp .zp-photo-empty i{font-size:1.4rem}
body.theme-zp .zp-sku-thumb{width:2.2rem;height:2.2rem;object-fit:cover;border-radius:.35rem;border:1px solid var(--zp-line)}
body.theme-zp .zp-sku-photo{grid-column:span 2}
body.theme-zp .zp-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr));gap:.75rem}
body.theme-zp .zp-gallery figure{margin:0;border:1px solid var(--zp-line);border-radius:.6rem;overflow:hidden;background:#fff}
body.theme-zp .zp-gallery figure.is-main{outline:2px solid var(--zp-gold);outline-offset:1px}
body.theme-zp .zp-gallery img{width:100%;aspect-ratio:1;object-fit:cover;display:block}
body.theme-zp .zp-gallery figcaption{display:flex;gap:.25rem;justify-content:space-between;align-items:center;padding:.35rem .4rem;font-size:.75rem}
body.theme-zp .zp-fiscal-pending{color:#7a5c12;background:#fbf1d6}
body.theme-zp .zp-span-2{grid-column:span 2}
@media (min-width:1200px){
  body.theme-zp .zp-sku-grid,body.theme-zp .zp-sku-grid:has(input[name$="[initial_qty]"]){grid-template-columns:repeat(6,minmax(0,1fr))}
}
body.theme-zp .zp-products .zp-na{white-space:normal;max-width:6.5rem;text-align:center;line-height:1.25}
body.theme-zp .zp-unit-split-end{justify-content:flex-end;flex-wrap:wrap;max-width:15rem;margin-left:auto}
body.theme-zp .zp-unit-split .is-zero{opacity:.55}
body.theme-zp .zp-products .zp-na{font-size:.72rem;padding:.1rem .35rem;max-width:5.75rem}
@media (min-width:768px){body.theme-zp .zp-products .zp-col-foto{width:3.4rem;padding-right:.2rem}}

/* ===== Passo 11: estoque ===== */
body.theme-zp .zp-bal{min-width:7.5rem}
body.theme-zp .zp-bal-av b{font-size:1.05rem}
body.theme-zp .zp-bal-av small{color:var(--zp-ink-soft)}
body.theme-zp .zp-bal-sub{font-size:.74rem;color:var(--zp-ink-soft);white-space:nowrap}
body.theme-zp .zp-bal.is-low .zp-bal-av b{color:#9a6b00}
body.theme-zp .zp-bal.is-zero .zp-bal-av b{color:#b4232b}
body.theme-zp .zp-bal.is-none{opacity:.5}
body.theme-zp .zp-min-in{max-width:7.5rem;margin-left:auto}
body.theme-zp .zp-range-inputs{display:flex;align-items:center;gap:.4rem}
body.theme-zp .zp-range-inputs .form-control{max-width:9.75rem;min-width:8.5rem}
body.theme-zp .zp-mov-notes{max-width:20rem}
@media (max-width:767.98px){body.theme-zp .zp-range-inputs{width:100%}body.theme-zp .zp-range-inputs .form-control{max-width:none;min-width:0;flex:1}body.theme-zp .zp-bal-sub{white-space:normal}body.theme-zp .zp-min-in{margin-left:0}}

/* ---------------------------------------------------------------- Inventário (passo 12a) */
.zp-seg{display:flex;flex-wrap:wrap;gap:.35rem}
.zp-seg .btn{border-radius:999px;padding:.35rem .85rem;font-size:.9rem}
.zp-seg .btn-check:checked + .btn{background:var(--zp-graphite);color:#fff;border-color:var(--zp-graphite)}
.zp-checks{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem}
.zp-checks .form-check{margin:0;min-width:10rem}
.zp-checks [hidden]{display:none!important}
.zp-progress{height:6px;border-radius:99px;background:var(--zp-silver-soft);min-width:90px}
.zp-progress .progress-bar{background:var(--zp-gold)}
.zp-col-check{width:2.2rem}
.zp-count{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:1rem}
.zp-count-status{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.zp-net,.zp-queue{display:inline-flex;align-items:center;gap:.3rem;font-size:.82rem;padding:.2rem .6rem;border-radius:99px;background:#e8f5ee;color:#1d6b43}
.zp-net[data-state=off]{background:#fff4e0;color:#8a5a00}
.zp-queue{background:var(--zp-gold-soft);color:#6d5524}
.zp-count-alert{padding:.6rem .9rem;border-radius:.6rem;font-size:.92rem;background:#eef3fb;color:#24456e}
.zp-count-alert.is-warning{background:#fff4e0;color:#7a4f00}
.zp-count-alert.is-danger{background:#fdecec;color:#8a1f1f}
.zp-scan{background:#fff;border:1px solid var(--zp-line);border-radius:1rem;padding:1rem}
.zp-scan-input{font-size:1.35rem;padding:.8rem 1rem;letter-spacing:.02em}
.zp-scan-row{display:grid;grid-template-columns:minmax(0,10rem) minmax(0,1fr);gap:.75rem;margin-top:.75rem}
.zp-scan-qty .form-control{font-weight:600}
.zp-scan-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.9rem}
.zp-scan-actions .btn{flex:1 1 auto}
.zp-reads{max-height:none}
.zp-read{display:flex;align-items:center;gap:.75rem}
.zp-read-main{flex:1 1 auto;min-width:0}
.zp-read-main .fw-medium{overflow-wrap:anywhere}
.zp-read-qty{font-weight:700;font-variant-numeric:tabular-nums;min-width:2.5rem;text-align:right}
.zp-read.is-pendente{background:#fffbf2}
.zp-read.is-correcao .zp-read-qty{color:#a33}
.zp-read.is-achado,.zp-read.is-achado_desconhecido,.zp-read.is-achado_fora_escopo{background:#fff8e6}
.zp-read.is-recusada,.zp-read.is-erro{background:#fdf0f0}
.zp-read.is-recusada .zp-read-qty,.zp-read.is-erro .zp-read-qty{text-decoration:line-through;color:#999}
.zp-find-list{max-height:55vh;overflow:auto}
.zp-cam{position:fixed;inset:0;z-index:2000;background:#000;display:flex;flex-direction:column}
.zp-cam video{flex:1;width:100%;object-fit:cover}
.zp-cam-frame{position:absolute;left:12%;right:12%;top:35%;height:22%;border:3px solid var(--zp-gold);border-radius:12px;box-shadow:0 0 0 200vmax rgba(0,0,0,.35);pointer-events:none}
.zp-cam-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;color:#fff;background:#111}
@media (max-width:575.98px){
  .zp-scan-row{grid-template-columns:1fr}
  .zp-scan-actions .btn{flex:1 1 100%}
  .zp-count{gap:.75rem}
}
.zp-note{display:flex;gap:.6rem;align-items:flex-start;padding:.65rem .85rem;border-radius:.6rem;background:var(--zp-silver-soft);font-size:.88rem}
.zp-note > i{color:var(--zp-gold);font-size:1.05rem;line-height:1.3}
.zp-timeline{list-style:none;margin:0;padding:.75rem 1rem 1rem 1.6rem;position:relative}
.zp-timeline::before{content:"";position:absolute;left:.95rem;top:1rem;bottom:1rem;width:2px;background:var(--zp-line)}
.zp-timeline li{position:relative;padding:.35rem 0}
.zp-timeline li::before{content:"";position:absolute;left:-.85rem;top:.6rem;width:9px;height:9px;border-radius:50%;background:var(--zp-gold);border:2px solid #fff}
/* ---------------------------------------------------------------- Inventário: revisão e fechamento (passo 12b) */
.zp-kpis-flat{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}
.zp-kpis-flat > div{display:flex;flex-direction:column;padding:.6rem .75rem;border-radius:.6rem;background:var(--zp-paper)}
.zp-kpis-flat small{color:var(--zp-ink-soft);font-size:.75rem;text-transform:uppercase;letter-spacing:.04em}
.zp-kpis-flat b{font-size:1.25rem;font-variant-numeric:tabular-nums}
.zp-kpis-flat span{font-size:.78rem;color:var(--zp-ink-soft)}
.zp-w-auto{width:auto;min-width:12rem}
.zp-pills-scroll{display:flex;flex-wrap:wrap!important;gap:.35rem;min-width:0;max-width:100%}
.zp-pills-scroll .zp-pill{white-space:normal}
.dp-card-head:has(.zp-pills-scroll){flex-wrap:wrap;gap:.5rem}
.zp-cards-sm .badge{white-space:normal;text-align:left}
.zp-inv-nav{display:flex;flex-wrap:wrap;gap:.35rem}
@media (max-width:767.98px){ .zp-kpis-flat{grid-template-columns:repeat(2,minmax(0,1fr))} .zp-w-auto{min-width:0} }
@media print{
  .dp-sidebar,.dp-topbar,.d-print-none,.zp-inv-nav{display:none!important}
  .dp-content,.dp-main{margin:0!important;padding:0!important}
  .dp-card{break-inside:avoid;box-shadow:none!important;border:1px solid #ccc}
  .zp-kpis{grid-template-columns:repeat(4,1fr)!important}
}
/* passo 13A: sinais de risco no pedido de aprovação */
.zp-risk{border:1px solid var(--bs-border-color,#e5e5e5);border-left:4px solid #d9822b;border-radius:.5rem;padding:.75rem .9rem;background:#fffaf3}
.zp-risk-item{padding:.2rem 0;line-height:1.35;overflow-wrap:anywhere}
.zp-risk-ack{background:#fffaf3;border-radius:.4rem;padding:.5rem .5rem .5rem 2rem}
.zp-risk-effect{min-width:15.5rem;max-width:100%}

/* Etapa 4C — celular dos quiosques: alvos de toque ≥ 44 px, campos sem zoom automático (iOS), foco visível */
@media (max-width: 576px) {
  .dp-main .btn, .dp-main .form-control, .dp-main .form-select { min-height: 44px; }
  .dp-main .btn-sm, .dp-main .form-control-sm, .dp-main .form-select-sm { min-height: 40px; }
  .dp-main input, .dp-main select, .dp-main textarea { font-size: 16px; }
  .dp-main .form-check-input { width: 1.4em; height: 1.4em; }
  .dp-main .form-check-label { padding-left: .25rem; line-height: 1.8; }
}
.dp-main :is(a, button, input, select, textarea):focus-visible { outline: 2px solid #b08d57; outline-offset: 2px; }

/* Web 2B: valores monetários não quebram em duas linhas (fechamento de caixa e demais tabelas no celular). Só apresentação. */
body.theme-zp td.text-end,body.theme-zp th.text-end,body.theme-zp .text-nowrap{white-space:nowrap}

/* Etapa 5 — auditoria visual no celular */
@media (max-width: 576px) {
  /* tabelas sem invólucro responsivo: rolam dentro do cartão em vez de empurrar a página para o lado */
  .dp-card > table.dp-table, .dp-card > form > table.dp-table, .dp-card > .dp-card-body > table.dp-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dp-card .form-select.w-auto, .dp-card .form-control.w-auto { max-width: 100%; }
  .form-select { padding-right: 2.25rem; text-overflow: ellipsis; }
  .zp-sku-toggle { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 400px) {
  body.theme-zp .dp-page-title { min-width: 0; flex: 1 1 auto; }
  body.theme-zp .dp-page-title h1 { font-size: 1.15rem; overflow-wrap: anywhere; }
  body.theme-zp .dp-topbar > .ms-auto { flex-shrink: 0; gap: .25rem !important; }
  body.theme-zp .dp-filters > form { flex-wrap: wrap; min-width: 0; max-width: 100%; }
  body.theme-zp .dp-filters > form input[type=date] { min-width: 0; flex: 1 1 120px; }
  body.theme-zp .form-select.w-auto, body.theme-zp .form-control.w-auto { max-width: 100%; }
  body.theme-zp .badge { white-space: normal; text-align: left; }
}
@media (max-width: 576px) {
  body.theme-zp .dp-card-head { flex-wrap: wrap; row-gap: .5rem; }
  body.theme-zp .dp-card-head > .form-select, body.theme-zp .dp-card-head > select { width: 100% !important; }
  body.theme-zp .dp-card-head .text-pink, body.theme-zp .money, body.theme-zp td.text-end { white-space: nowrap; }
}

/* Etapa 5 — cor de ALERTA própria: no tema herdado o "perigo" deriva da cor da marca (aqui o dourado) e ficava
   igual a um destaque. Bloqueios, cancelamentos, divergências e erros passam a usar vermelho sóbrio. */
body.theme-zp .badge-soft-danger{background:#fbeaea;color:#8a2323}
body.theme-zp .dp-toast-danger{background:#fdf1f1;color:#7a1f1f}
body.theme-zp .dp-toast-danger i{color:#b42318}
body.theme-zp .notif-danger .notif-ic{background:#fbeaea;color:#b42318}
/* Central de lançamento: colunas alinhadas entre os grupos */
body.theme-zp .zp-launch-table{table-layout:fixed}
body.theme-zp .zp-launch-table col.c-item{width:32%}
body.theme-zp .zp-launch-table col.c-sit{width:13%}
body.theme-zp .zp-launch-table col.c-act{width:12%}
@media (max-width:767.98px){body.theme-zp .zp-launch-table{table-layout:auto}}
