/* MAXPDV v4.8.0 · experiência mobile unificada */
.admin-mobile-nav{display:none}

@media (max-width:880px){
  :root{
    --m48-bg:#f2f5f9;
    --m48-card:#fff;
    --m48-ink:#10233f;
    --m48-muted:#708197;
    --m48-line:#dde6ef;
    --m48-blue:#1769c8;
    --m48-blue-dark:#0b458f;
    --m48-blue-soft:#eaf3ff;
    --m48-green:#108765;
    --m48-danger:#b84450;
    --m48-shadow:0 8px 26px rgba(13,39,72,.075);
    --m48-safe-bottom:env(safe-area-inset-bottom,0px);
  }
  html{width:100%;max-width:100%;overflow-x:clip;-webkit-text-size-adjust:100%}
  body{width:100%;max-width:100%;min-width:0;overflow-x:clip}
  body.mobile-v48-ready{-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}
  body.mobile-v48-ready *,
  body.mobile-v48-ready *::before,
  body.mobile-v48-ready *::after{box-sizing:border-box}
  body.mobile-v48-ready img,
  body.mobile-v48-ready svg,
  body.mobile-v48-ready video,
  body.mobile-v48-ready canvas{max-width:100%}
  body.mobile-v48-ready :where(section,article,aside,main,header,footer,form,fieldset,div,label){min-width:0}
  body.mobile-v48-ready :where(button,a,[role="button"]){touch-action:manipulation}
  body.mobile-v48-ready :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){max-width:100%;font-size:16px}
  body.mobile-v48-ready :where(.btn,button,[role="button"]){min-height:44px}

  /* Login comercial: acesso primeiro, conteúdo comercial depois */
  body.sales-site{background:#edf3f9;overflow-x:clip}
  body.sales-site .sales-utility{display:none}
  body.sales-site .sales-container{width:calc(100% - 24px);max-width:100%;margin-inline:auto}
  body.sales-site .sales-header{
    position:sticky;top:0;z-index:80;padding-top:env(safe-area-inset-top);
    border-bottom:1px solid rgba(211,224,237,.88);background:rgba(247,250,253,.94);
    box-shadow:0 7px 24px rgba(18,45,76,.06);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
  }
  body.sales-site .sales-header-main{height:64px;gap:10px}
  body.sales-site .sales-brand img{width:132px}
  body.sales-site .sales-main-nav,
  body.sales-site .sales-outline-button,
  body.sales-site .sales-menu-button{display:none!important}
  body.sales-site .sales-header-actions{margin-left:auto}
  body.sales-site .sales-login-button{height:42px;padding:0 13px;border-radius:13px;font-size:11px}
  body.sales-site .sales-hero{padding:12px 0 22px;background:linear-gradient(180deg,#eaf3ff 0%,#f5f8fc 72%,#fff 100%)}
  body.sales-site .sales-hero::before{right:-250px;top:-330px}
  body.sales-site .sales-hero-grid{display:flex;align-items:stretch;flex-direction:column;gap:16px}
  body.sales-site .sales-login-card{
    order:1;width:100%;padding:20px 18px;border-color:#d5e2ee;border-radius:24px;background:#fff;
    box-shadow:0 18px 45px rgba(16,49,85,.13)
  }
  body.sales-site .sales-login-card .login-card-icon{width:46px;height:46px;flex:0 0 46px;border-radius:15px}
  body.sales-site .sales-login-card .login-card-head small{font-size:9px}
  body.sales-site .sales-login-card .login-card-head h2{font-size:20px}
  body.sales-site .sales-login-card>p{margin:13px 0 17px;font-size:12px;line-height:1.55}
  body.sales-site .sales-login-form{gap:14px}
  body.sales-site .sales-login-form label{gap:7px;font-size:12px}
  body.sales-site .sales-input-wrap{height:52px;padding:0 12px;border-radius:14px;background:#fbfdff}
  body.sales-site .sales-input-wrap input{font-size:16px}
  body.sales-site .sales-submit{height:52px;border-radius:14px;font-size:13px}
  body.sales-site .trial-signup-cta{padding:14px;border-radius:15px}
  body.sales-site .trial-signup-cta a{min-height:44px;border-radius:12px}
  body.sales-site .standard-desktop-notice{border-radius:14px}
  body.sales-site .login-card-foot{font-size:9px}
  body.sales-site .sales-hero-copy{order:2;padding:10px 3px 20px;text-align:left}
  body.sales-site .sales-launch-pill{font-size:9px}
  body.sales-site .sales-hero-copy h1{margin:16px 0 13px;font-size:34px;line-height:1.04}
  body.sales-site .sales-hero-copy>p{font-size:14px;line-height:1.6}
  body.sales-site .sales-hero-actions{display:grid;grid-template-columns:1fr;gap:9px;margin-top:19px}
  body.sales-site .sales-primary-button,
  body.sales-site .sales-text-button{width:100%;height:48px;border-radius:14px}
  body.sales-site .sales-proof{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px;font-size:10px}
  body.sales-site .sales-product-preview{display:none!important}
  body.sales-site .sales-trust-strip{margin:0;padding:0 0 16px;background:#fff}
  body.sales-site .sales-trust-strip .sales-container{grid-template-columns:1fr 1fr;border-radius:18px}
  body.sales-site .sales-trust-strip article{min-height:76px;padding:13px;border:0;border-bottom:1px solid #e7edf2}
  body.sales-site .sales-trust-strip article:nth-child(odd){border-right:1px solid #e7edf2}
  body.sales-site .sales-trust-strip b{font-size:11px}
  body.sales-site .sales-trust-strip small{font-size:9px}
  body.sales-site .sales-section{padding:52px 0}
  body.sales-site .sales-section-head{margin-bottom:23px;text-align:left}
  body.sales-site .sales-section-head h2{font-size:26px;line-height:1.15}
  body.sales-site .sales-section-head p{font-size:13px}
  body.sales-site .sales-feature-grid,
  body.sales-site .sales-module-row,
  body.sales-site .sales-pricing-grid{grid-template-columns:1fr;gap:12px}
  body.sales-site .sales-feature-grid article,
  body.sales-site .sales-module-row article,
  body.sales-site .sales-price-card{border-radius:20px}
  body.sales-site .sales-feature-grid article{padding:19px}
  body.sales-site .sales-feature-grid p{min-height:0;font-size:12px}
  body.sales-site .sales-price-card{padding:21px}
  body.sales-site .sales-price-card>p{min-height:0}
  body.sales-site .sales-price-card.price-premium{order:1}
  body.sales-site .sales-price-card.price-gold{order:2}
  body.sales-site .sales-price-card.price-standard{order:3}
  body.sales-site .admin-cycle-prices{grid-template-columns:1fr!important}
  body.sales-site .sales-cta{padding:8px 0 44px}
  body.sales-site .sales-cta .sales-container{grid-template-columns:1fr;gap:14px;padding:24px;border-radius:22px;text-align:left}
  body.sales-site .sales-cta .sales-container>span{width:50px;height:50px}
  body.sales-site .sales-cta h2{font-size:23px}
  body.sales-site .sales-cta a{justify-content:center;width:100%;height:48px;border-radius:13px}
  body.sales-site .sales-footer{padding:28px 0 calc(28px + var(--m48-safe-bottom))}
  body.sales-site .sales-footer .sales-container{align-items:flex-start;flex-direction:column;gap:14px}

  /* Login administrativo e 2FA */
  body.sales-site>.login-card{
    width:calc(100% - 24px);max-width:440px;min-height:0;margin:max(18px,env(safe-area-inset-top)) auto 18px;
    padding:24px 20px;border:1px solid #d9e4ef;border-radius:24px;background:#fff;
    box-shadow:0 22px 60px rgba(12,38,69,.17)
  }
  body.sales-site:has(>.login-card){min-height:100dvh;display:grid;place-items:center;background:radial-gradient(circle at 20% 0,#dcecff,#edf3f9 46%,#e7eef6)}
  body.sales-site>.login-card .login-brand{padding-bottom:18px}
  body.sales-site>.login-card .login-logo{width:150px;max-height:48px}
  body.sales-site>.login-card .login-copy{padding:21px 0 17px}
  body.sales-site>.login-card .login-copy h2{font-size:23px}
  body.sales-site>.login-card input{min-height:50px;border-radius:13px;font-size:16px}
  body.sales-site>.login-card .btn{min-height:50px;border-radius:13px}

  /* Cadastro trial: o formulário vem antes no celular */
  body.sales-site .trial-page{min-height:100dvh;padding:10px 10px calc(18px + var(--m48-safe-bottom));background:#edf4fb}
  body.sales-site .trial-topbar{position:sticky;top:0;z-index:50;height:60px;margin:0 auto 10px;padding:0 8px;border-radius:16px;background:rgba(255,255,255,.92);backdrop-filter:blur(16px)}
  body.sales-site .trial-topbar img{width:132px}
  body.sales-site .trial-shell{display:flex;flex-direction:column;border:0;border-radius:24px;background:transparent;box-shadow:none;overflow:visible}
  body.sales-site .trial-form-card{order:1;padding:23px 18px;border:1px solid #dbe6f1;border-radius:24px;background:#fff;box-shadow:var(--m48-shadow)}
  body.sales-site .trial-overview{order:2;margin-top:12px;padding:25px 20px;border-radius:24px}
  body.sales-site .trial-form-head{gap:11px;margin-bottom:19px}
  body.sales-site .trial-form-head>span{width:44px;height:44px;flex-basis:44px}
  body.sales-site .trial-form-head h2{font-size:1.35rem}
  body.sales-site .trial-form{grid-template-columns:1fr;gap:13px}
  body.sales-site .trial-span-2{grid-column:auto}
  body.sales-site .trial-form label>div{min-height:52px;border-radius:14px}
  body.sales-site .trial-form input{font-size:16px}
  body.sales-site .trial-submit{min-height:52px;border-radius:14px}
  body.sales-site .trial-overview h1{font-size:1.9rem}
  body.sales-site .trial-overview ul{grid-template-columns:1fr}
  body.sales-site .trial-plan-card{border-radius:17px}

  /* Renovação */
  body.renewal-page{min-height:100dvh;overflow-x:clip;background:linear-gradient(155deg,#061a36,#0b3e79 58%,#0f67ba)}
  body.renewal-page .renewal-shell{width:100%;min-height:100dvh;padding:max(16px,env(safe-area-inset-top)) 10px calc(18px + var(--m48-safe-bottom))}
  body.renewal-page .renewal-brand{padding:0 6px}
  body.renewal-page .renewal-brand img{width:138px}
  body.renewal-page .renewal-card{padding:21px 17px;border-radius:24px}
  body.renewal-page .renewal-status{align-items:flex-start}
  body.renewal-page .renewal-status>span{width:44px;height:44px;flex:0 0 44px;border-radius:14px}
  body.renewal-page .renewal-status h1{font-size:1.5rem;line-height:1.16}
  body.renewal-page .renewal-summary{grid-template-columns:1fr;gap:9px;margin:19px 0}
  body.renewal-page .renewal-summary article{border-radius:14px}
  body.renewal-page .renewal-form{padding:16px;border-radius:17px}
  body.renewal-page .renewal-key-field{grid-template-columns:1fr}
  body.renewal-page .renewal-key-field input{min-height:54px;padding:12px 8px;border-radius:12px 12px 0 0;font-size:16px;letter-spacing:.02em;text-align:center}
  body.renewal-page .renewal-key-field button{border-left:0;border-top:1px solid var(--sub-line);border-radius:0 0 12px 12px}
  body.renewal-page .renewal-submit{min-height:52px;border-radius:14px}
  body.renewal-page .renewal-security{border-radius:15px}
  body.renewal-page .renewal-footer{align-items:stretch;flex-direction:column;gap:12px;padding-inline:6px}
  body.renewal-page .renewal-footer button{width:100%;min-height:44px}
}

@media (max-width:880px){
  /* PDV: comando compacto, atalhos roláveis e checkout em tela cheia */
  html:has(body.immersive-pdv),
  body.immersive-pdv{width:100%!important;max-width:100%!important;min-height:100dvh!important;overflow-x:hidden!important;background:#edf2f7!important}
  body.immersive-pdv .commercial-app-shell,
  body.immersive-pdv .commercial-main-wrap,
  body.immersive-pdv .commercial-content.pdv-content{width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:100dvh!important;margin:0!important;padding:0!important;overflow:visible!important}
  body.immersive-pdv .pdv-v27.pdv-professional-pro{width:100%!important;min-width:0!important;height:auto!important;min-height:100dvh!important;padding:max(7px,env(safe-area-inset-top)) 7px calc(86px + var(--m48-safe-bottom))!important;gap:8px!important;grid-template-rows:auto auto auto auto auto!important}
  body.immersive-pdv .pdv27-header{
    position:sticky!important;top:0!important;z-index:38!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:9px!important;
    min-width:0!important;min-height:68px!important;padding:9px!important;border-radius:18px!important;background:rgba(255,255,255,.96)!important;
    box-shadow:0 8px 24px rgba(13,39,72,.1)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important
  }
  body.immersive-pdv .pdv27-brand{align-items:center!important;gap:8px!important;min-width:0!important}
  body.immersive-pdv .pdv27-back{width:42px!important;height:42px!important;flex:0 0 42px!important;border-radius:13px!important}
  body.immersive-pdv .pdv27-title{min-width:0!important}
  body.immersive-pdv .maxpdv-pdv-wordmark{width:118px!important;max-width:38vw!important;margin-bottom:2px!important}
  body.immersive-pdv .maxpdv-pdv-brand-logo{width:44px!important;height:44px!important}
  body.immersive-pdv .maxpdv-pdv-title{display:block!important;max-width:44vw!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:17px!important}
  body.immersive-pdv .maxpdv-pdv-subtitle{display:none!important}
  body.immersive-pdv .maxpdv-pdv-brand-meta{max-width:44vw!important}
  body.immersive-pdv .maxpdv-pdv-brand-meta span{font-size:7px!important}
  body.immersive-pdv .pdv27-header-center{display:none!important}
  body.immersive-pdv .pdv27-grand-total{grid-column:auto!important;min-width:126px!important;min-height:50px!important;padding:8px 10px!important;border-radius:14px!important;text-align:right!important}
  body.immersive-pdv .pdv27-grand-total span{font-size:7px!important}
  body.immersive-pdv .pdv27-grand-total strong{font-size:23px!important;white-space:nowrap!important}
  body.immersive-pdv .pdv27-grand-total small{display:none!important}
  body.immersive-pdv .pdv27-actions{
    display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(112px,34vw)!important;grid-template-columns:none!important;
    min-height:0!important;margin-inline:0!important;padding:7px!important;gap:7px!important;border-radius:18px!important;overflow-x:auto!important;overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;scroll-padding:7px!important;scrollbar-width:none!important
  }
  body.immersive-pdv .pdv27-actions::-webkit-scrollbar{display:none!important}
  body.immersive-pdv .pdv27-actions>button,
  body.immersive-pdv .pdv27-actions>a{min-width:0!important;min-height:58px!important;padding:9px!important;border-radius:13px!important;scroll-snap-align:start!important}
  body.immersive-pdv .pdv27-actions b{font-size:10px!important}
  body.immersive-pdv .pdv27-actions small{font-size:7px!important}
  body.immersive-pdv .pdv27-clientbar{position:relative!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important;min-width:0!important;padding:10px!important;border-radius:18px!important}
  body.immersive-pdv .pdv27-client-title{padding-right:88px!important}
  body.immersive-pdv .pdv27-client-search-wrap{grid-column:auto!important;min-width:0!important}
  body.immersive-pdv .pdv27-client-search{height:50px!important;border-radius:14px!important}
  body.immersive-pdv .pdv27-client-search input[type="search"]{min-width:0!important;font-size:16px!important}
  body.immersive-pdv .pdv27-client-search kbd{display:none!important}
  body.immersive-pdv .pdv27-client-info{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  body.immersive-pdv .pdv27-client-info>span{min-width:0!important;min-height:48px!important;padding:8px!important}
  body.immersive-pdv .pdv27-client-info b{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important}
  body.immersive-pdv .pdv27-client-buttons{position:absolute!important;right:9px!important;top:9px!important;display:flex!important;gap:6px!important}
  body.immersive-pdv .pdv27-client-buttons button{width:40px!important;height:40px!important}
  body.immersive-pdv .pdv27-client-results{left:0!important;right:0!important;max-height:48dvh!important;border-radius:14px!important}
  body.immersive-pdv .pdv27-workspace{display:block!important;min-width:0!important}
  body.immersive-pdv .pdv27-receipt-preview{display:none!important}
  body.immersive-pdv .pdv27-sale-panel{min-width:0!important;border-radius:18px!important;overflow:hidden!important}
  body.immersive-pdv .pdv27-panel-head{align-items:flex-start!important;flex-direction:column!important;gap:8px!important;padding:12px!important}
  body.immersive-pdv .pdv27-panel-head h2{font-size:16px!important}
  body.immersive-pdv .pdv27-panel-head p{font-size:9px!important}
  body.immersive-pdv .pdv27-panel-summary{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  body.immersive-pdv .pdv27-panel-summary span{min-width:0!important}
  body.immersive-pdv .pdv27-table-head{display:none!important}
  body.immersive-pdv .pdv27-items{min-height:190px!important;max-height:none!important;padding:8px!important;overflow:visible!important}
  body.immersive-pdv .pdv27-empty{min-height:200px!important;padding:20px!important;border-radius:16px!important}
  body.immersive-pdv .pdv27-empty h3{font-size:17px!important}
  body.immersive-pdv .pdv27-empty p{font-size:11px!important;line-height:1.45!important}
  body.immersive-pdv .pdv27-empty button{min-height:44px!important;border-radius:12px!important;font-size:11px!important}
  body.immersive-pdv .pdv27-item-row{
    display:grid!important;grid-template-columns:28px minmax(0,1fr) auto!important;grid-template-areas:"i p t" "i q a" "i d a"!important;
    gap:5px 8px!important;min-width:0!important;min-height:94px!important;margin-bottom:8px!important;padding:10px!important;border-radius:15px!important
  }
  body.immersive-pdv .pdv27-item-row .index{grid-area:i!important;align-self:start!important}
  body.immersive-pdv .pdv27-item-row .product{grid-area:p!important}
  body.immersive-pdv .pdv27-item-row .product b{font-size:12px!important;white-space:normal!important;line-height:1.28!important}
  body.immersive-pdv .pdv27-item-row .product small{font-size:9px!important}
  body.immersive-pdv .pdv27-item-row .qty{grid-area:q!important;font-size:10px!important}
  body.immersive-pdv .pdv27-item-row .unit{display:none!important}
  body.immersive-pdv .pdv27-item-row .discount{grid-area:d!important;font-size:9px!important}
  body.immersive-pdv .pdv27-item-row .total{grid-area:t!important;align-self:start!important;font-size:12px!important;text-align:right!important;white-space:nowrap!important}
  body.immersive-pdv .pdv27-item-row .actions{grid-area:a!important;align-self:end!important;display:flex!important;gap:5px!important}
  body.immersive-pdv .pdv27-item-row .actions button{width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border-radius:11px!important}
  body.immersive-pdv .pdv27-item-row .actions em{display:none!important}
  body.immersive-pdv .pdv27-sale-footer{grid-template-columns:1fr!important;gap:8px!important;padding:10px!important}
  body.immersive-pdv .pdv27-sale-footer input{min-height:48px!important;border-radius:13px!important;font-size:16px!important}
  body.immersive-pdv .pdv27-sale-footer>div{text-align:left!important}
  body.immersive-pdv .pdv27-footerbar{
    position:fixed!important;left:7px!important;right:7px!important;bottom:calc(7px + var(--m48-safe-bottom))!important;z-index:36!important;
    display:block!important;width:auto!important;min-height:64px!important;padding:7px!important;border-radius:19px!important;background:rgba(255,255,255,.96)!important;
    box-shadow:0 17px 40px rgba(8,28,52,.23)!important;backdrop-filter:blur(18px)!important
  }
  body.immersive-pdv .pdv27-footerbar>div{display:none!important}
  body.immersive-pdv .pdv27-footerbar>button{width:100%!important;min-height:50px!important;border-radius:14px!important}
  body.immersive-pdv .pdv27-footerbar>button span{font-size:12px!important}
  body.immersive-pdv .pdv27-footerbar>button strong{font-size:18px!important}

  body.immersive-pdv .pdv27-dialog{padding:0!important}
  body.immersive-pdv .pdv27-dialog::backdrop,
  body.immersive-pdv .pdv-camera-dialog::backdrop{background:rgba(5,19,38,.66)!important;backdrop-filter:blur(3px)!important}
  body.immersive-pdv .pdv27-dialog-card,
  body.immersive-pdv .pdv-camera-card,
  body.immersive-pdv .pdv27-exit-card{
    width:calc(100vw - 12px)!important;max-width:none!important;max-height:calc(var(--mobile-viewport-height,100dvh) - 12px)!important;
    margin:auto!important;border-radius:24px!important;overflow:auto!important
  }
  body.immersive-pdv .pdv27-dialog-card>header,
  body.immersive-pdv .pdv-camera-card>header{position:sticky!important;top:0!important;z-index:4!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(14px)!important}
  body.immersive-pdv .pdv27-search-command{grid-template-columns:auto minmax(0,1fr)!important;margin:10px!important;border-radius:15px!important}
  body.immersive-pdv .pdv27-search-command input{min-width:0!important;font-size:16px!important}
  body.immersive-pdv .pdv27-search-command kbd{display:none!important}
  body.immersive-pdv .pdv27-search-row{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;min-height:58px!important;padding:10px!important;border-radius:13px!important}
  body.immersive-pdv .pdv27-search-row .code,
  body.immersive-pdv .pdv27-search-row .stock{display:none!important}
  body.immersive-pdv .pdv27-checkout-grid{grid-template-columns:1fr!important;overflow:visible!important}
  body.immersive-pdv .pdv27-checkout-main{border-right:0!important;border-bottom:1px solid #e1e8ef!important}
  body.immersive-pdv .pdv27-method-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}
  body.immersive-pdv .pdv27-payment-stage{min-height:320px!important}
  body.immersive-pdv :where(.pdv27-card-fields,.pdv27-term-fields,.pdv27-item-fields,.pdv27-pix-grid,.pdv27-payment-values,.pdv27-credit-balance){grid-template-columns:1fr!important}
  body.immersive-pdv :where(.pdv27-card-fields,.pdv27-term-fields,.pdv27-item-fields,.pdv27-payment-values,.pdv27-split-row) :where(input,select){min-height:50px!important;font-size:16px!important}
  body.immersive-pdv .pdv27-checkout-footer{position:sticky!important;bottom:0!important;z-index:5!important;align-items:stretch!important;flex-direction:column!important;gap:8px!important;padding:10px!important;background:#fff!important}
  body.immersive-pdv .pdv27-checkout-footer>button,
  body.immersive-pdv .pdv27-checkout-footer>div,
  body.immersive-pdv .pdv27-checkout-footer>div>button{width:100%!important;min-height:48px!important}
  body.immersive-pdv .pdv27-checkout-footer>div{display:grid!important;gap:7px!important}
  body.immersive-pdv .pdv27-checkout-footer>div>span{display:none!important}

  /* Loja pública */
  body.store-page{min-height:100dvh;overflow-x:clip;background:#f5f7fa}
  body.store-page .store-header{position:sticky;top:0;z-index:60;min-height:66px;padding:max(10px,env(safe-area-inset-top)) 12px 10px;gap:10px;background:rgba(255,255,255,.94);backdrop-filter:blur(18px)}
  body.store-page .store-brand{min-width:0;gap:8px}
  body.store-page .store-brand b{max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.store-page .store-header nav{gap:7px;font-size:12px}
  body.store-page .store-main{width:100%;overflow:hidden}
  body.store-page .store-hero{min-height:0;padding:26px 16px;border-radius:0 0 24px 24px}
  body.store-page .store-hero h1{font-size:30px}
  body.store-page .store-products{grid-template-columns:1fr 1fr;gap:10px}
  body.store-page .store-card{min-width:0;border-radius:18px;overflow:hidden}
  body.store-page .store-card h3{font-size:14px}
  body.store-page .store-card-actions{align-items:stretch;flex-direction:column}
  body.store-page .store-cart-layout,
  body.store-page .checkout-layout,
  body.store-page .store-product-detail{grid-template-columns:1fr;gap:14px;padding-inline:12px}
  body.store-page .store-summary{position:static;border-radius:18px}
  body.store-page .store-cart article{grid-template-columns:56px minmax(0,1fr);gap:10px;border-radius:16px}
  body.store-page .store-cart article>strong{grid-column:2;text-align:right}
  body.store-page :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){min-height:50px;border-radius:13px;font-size:16px}
  body.store-page .store-footer{padding:26px 14px calc(26px + var(--m48-safe-bottom))}
}

@media (max-width:880px){
  /* Tabelas viram cartões sem perder rótulos ou ações */
  body.mobile-v48-ready :where(.table-wrap,.sales-pro-table-wrap,.suite-table-wrap){max-width:100%;min-width:0}
  body.mobile-v48-ready :where(.table-wrap,.sales-pro-table-wrap,.suite-table-wrap):has(>table[data-mobile-v48="cards"]){overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
  body.mobile-v48-ready table[data-mobile-v48="cards"]{display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important}
  body.mobile-v48-ready table[data-mobile-v48="cards"] thead{display:none!important}
  body.mobile-v48-ready table[data-mobile-v48="cards"] tbody{display:grid!important;gap:10px!important;width:100%!important}
  body.mobile-v48-ready table[data-mobile-v48="cards"] tr{
    display:grid!important;width:100%!important;min-width:0!important;padding:5px 13px!important;
    border:1px solid var(--m48-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 7px 20px rgba(16,42,74,.055)!important
  }
  body.mobile-v48-ready table[data-mobile-v48="cards"] td{
    display:grid!important;grid-template-columns:minmax(88px,.72fr) minmax(0,1.28fr)!important;align-items:center!important;gap:10px!important;
    width:100%!important;min-width:0!important;min-height:41px!important;padding:8px 0!important;border:0!important;border-bottom:1px solid #edf1f5!important;
    color:#2f4763!important;font-size:12.5px!important;line-height:1.35!important;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere!important
  }
  body.mobile-v48-ready table[data-mobile-v48="cards"] td:last-child{border-bottom:0!important}
  body.mobile-v48-ready table[data-mobile-v48="cards"] td::before{
    content:attr(data-mobile-label);min-width:0;overflow:hidden;text-overflow:ellipsis;color:#7c8b9d;
    font-size:9px;font-weight:900;letter-spacing:.05em;text-align:left;text-transform:uppercase
  }
  body.mobile-v48-ready table[data-mobile-v48="cards"] td>*{max-width:100%;min-width:0}
  body.mobile-v48-ready table[data-mobile-v48="cards"] td :where(b,strong){color:var(--m48-ink)!important}
  body.mobile-v48-ready table[data-mobile-v48="cards"] td small{display:block!important;line-height:1.45!important;white-space:normal!important}
  body.mobile-v48-ready table[data-mobile-v48="cards"] td.mobile-table-actions{display:flex!important;align-items:center!important;justify-content:stretch!important;flex-wrap:wrap!important;gap:7px!important;padding-top:10px!important}
  body.mobile-v48-ready table[data-mobile-v48="cards"] td.mobile-table-actions::before,
  body.mobile-v48-ready table[data-mobile-v48="cards"] td.mobile-table-empty::before{display:none!important}
  body.mobile-v48-ready table[data-mobile-v48="cards"] td.mobile-table-actions :where(.btn,a,button,form){flex:1 1 115px!important;min-width:0!important;margin:0!important}
  body.mobile-v48-ready table[data-mobile-v48="cards"] td.mobile-table-actions form :where(button,.btn){width:100%!important}
  body.mobile-v48-ready table[data-mobile-v48="cards"] td.mobile-table-empty{display:block!important;padding:22px 8px!important;text-align:center!important;border:0!important}
  body.mobile-v48-ready :where(.purchase-items-table-wrap,.upgrade-comparison,.table-wrap):has(table[data-mobile-table="scroll"]){overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important}

  /* Ajustes das telas de cadastro e operação */
  body.maxpdv-brand:not(.immersive-pdv) .product-mobile-list{display:grid!important;gap:10px!important}
  body.maxpdv-brand:not(.immersive-pdv) .product-mobile-card{border-radius:19px!important;border-color:var(--m48-line)!important;box-shadow:var(--m48-shadow)!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(.product-code-field,.document-field,.select-with-action,.field-action,.money-input){min-width:0!important;max-width:100%!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(.product-code-field,.document-field,.select-with-action,.field-action){grid-template-columns:minmax(0,1fr) auto!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(.product-code-field,.document-field,.select-with-action,.field-action) .btn,
  body.maxpdv-brand:not(.immersive-pdv) :where(.product-code-field,.document-field,.select-with-action,.field-action) button{min-width:46px!important;padding-inline:10px!important}
  body.maxpdv-brand:not(.immersive-pdv) .product-barcode-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(.profit-builder,.customer-credit-receive-panel,.record-delete-zone,.registration-rules-panel){padding:14px!important;border-radius:17px!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(.profit-metrics,.customer-credit-receive-summary,.rules-grid,.form-switches,.finance-dialog-grid,.purchase-cost-grid,.purchase-finance-grid,.purchase-meta-grid,.service-form-section){grid-template-columns:1fr!important}
  body.maxpdv-brand:not(.immersive-pdv) .customer-credit-receive-form{grid-template-columns:1fr!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(.inline-form,.quick-actions,.service-item-actions,.service-show-actions,.service-order-totals,.finance-dialog-card footer){display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:8px!important;width:100%!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(.inline-form,.quick-actions,.service-item-actions,.service-show-actions,.service-order-totals,.finance-dialog-card footer)>*{width:100%!important;max-width:none!important;margin:0!important}
  body.maxpdv-brand:not(.immersive-pdv) .customer-row-actions,
  body.maxpdv-brand:not(.immersive-pdv) .finance-row-actions,
  body.maxpdv-brand:not(.immersive-pdv) .license-row-actions,
  body.maxpdv-brand:not(.immersive-pdv) .admin-user-actions{display:flex!important;align-items:stretch!important;flex-direction:column!important;gap:7px!important}
  body.maxpdv-brand:not(.immersive-pdv) .customer-row-actions :where(a,button,form),
  body.maxpdv-brand:not(.immersive-pdv) .finance-row-actions :where(a,button,form),
  body.maxpdv-brand:not(.immersive-pdv) .license-row-actions :where(a,button,form),
  body.maxpdv-brand:not(.immersive-pdv) .admin-user-actions :where(a,button,form){width:100%!important}
  body.maxpdv-brand:not(.immersive-pdv) .customer-row-actions form button,
  body.maxpdv-brand:not(.immersive-pdv) .finance-row-actions form button,
  body.maxpdv-brand:not(.immersive-pdv) .license-row-actions form button,
  body.maxpdv-brand:not(.immersive-pdv) .admin-user-actions form button{width:100%!important}
  body.maxpdv-brand:not(.immersive-pdv) .suite-tabs,
  body.maxpdv-brand:not(.immersive-pdv) .upgrade-admin-tabs,
  body.maxpdv-brand:not(.immersive-pdv) .ar-quick-filters{margin-inline:-11px!important;padding:3px 11px 9px!important;overflow-x:auto!important;scroll-snap-type:x proximity!important;scrollbar-width:none!important}
  body.maxpdv-brand:not(.immersive-pdv) .suite-tabs::-webkit-scrollbar,
  body.maxpdv-brand:not(.immersive-pdv) .upgrade-admin-tabs::-webkit-scrollbar,
  body.maxpdv-brand:not(.immersive-pdv) .ar-quick-filters::-webkit-scrollbar{display:none!important}
  body.maxpdv-brand:not(.immersive-pdv) .suite-tabs a,
  body.maxpdv-brand:not(.immersive-pdv) .upgrade-admin-tabs a,
  body.maxpdv-brand:not(.immersive-pdv) .ar-quick-filters a{scroll-snap-align:start!important}
  body.maxpdv-brand:not(.immersive-pdv) .sale-row{grid-template-columns:1fr!important;gap:9px!important;padding:12px!important;border-radius:16px!important}
  body.maxpdv-brand:not(.immersive-pdv) .sale-row label:first-child{grid-column:auto!important}
  body.maxpdv-brand:not(.immersive-pdv) .sale-totals{width:100%!important;min-width:0!important;justify-content:stretch!important}
  body.maxpdv-brand:not(.immersive-pdv) .sale-totals span{gap:12px!important}
  body.maxpdv-brand:not(.immersive-pdv) .plan-hero-price,
  body.maxpdv-brand:not(.immersive-pdv) .sale-edit-hero-total,
  body.maxpdv-brand:not(.immersive-pdv) .cash-hero-balance{width:100%!important;min-width:0!important}
  body.maxpdv-brand:not(.immersive-pdv) .plans-grid{grid-template-columns:1fr!important}
  body.maxpdv-brand:not(.immersive-pdv) .plan-card-professional{border-radius:20px!important}
  body.maxpdv-brand:not(.immersive-pdv) .plan-limit-grid{grid-template-columns:1fr 1fr!important}
  body.maxpdv-brand:not(.immersive-pdv) .purchase-summary-panel{position:static!important;width:100%!important}
  body.maxpdv-brand:not(.immersive-pdv) .purchase-items-table-wrap{max-width:100%!important;overflow-x:auto!important}
  body.maxpdv-brand:not(.immersive-pdv) .purchase-items-table{min-width:720px!important}
  body.maxpdv-brand:not(.immersive-pdv) .access-permission-row{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important}
  body.maxpdv-brand:not(.immersive-pdv) .access-form-actions{position:static!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  body.maxpdv-brand:not(.immersive-pdv) .service-orders-list,
  body.maxpdv-brand:not(.immersive-pdv) .cash-movement-list{gap:9px!important}
  body.maxpdv-brand:not(.immersive-pdv) .service-item-row{grid-template-columns:1fr 1fr!important;gap:9px!important;padding:12px!important;border-radius:16px!important}
  body.maxpdv-brand:not(.immersive-pdv) .service-item-kind,
  body.maxpdv-brand:not(.immersive-pdv) .service-item-description{grid-column:1/-1!important}
  body.maxpdv-brand:not(.immersive-pdv) .service-remove-item{position:absolute!important;right:8px!important;top:8px!important}
  body.maxpdv-brand:not(.immersive-pdv) .service-form-footer{position:static!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:10px!important;border-radius:16px!important}
  body.maxpdv-brand:not(.immersive-pdv) .service-form-footer>*{width:100%!important}
  body.maxpdv-brand:not(.immersive-pdv) .purchase-section-head{align-items:flex-start!important;flex-wrap:wrap!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(.purchase-items-counter,.purchase-plan-chip){margin-left:0!important}

  /* Painel Admin em formato de aplicativo */
  body.admin-theme{min-height:100dvh;background:var(--m48-bg)!important;color:var(--m48-ink)!important}
  body.admin-theme .app-shell{display:block!important;width:100%!important;min-height:100dvh!important}
  body.admin-theme .main-wrap{display:block!important;width:100%!important;min-width:0!important}
  body.admin-theme .topbar{
    position:sticky!important;top:0!important;z-index:80!important;width:100%!important;height:calc(68px + env(safe-area-inset-top))!important;
    padding:env(safe-area-inset-top) 66px 0 14px!important;align-items:center!important;border-bottom:1px solid rgba(218,228,238,.92)!important;
    background:rgba(255,255,255,.94)!important;box-shadow:0 6px 22px rgba(14,40,72,.055)!important;
    backdrop-filter:blur(20px)!important;-webkit-backdrop-filter:blur(20px)!important
  }
  body.admin-theme .topbar .eyebrow{font-size:8px!important;letter-spacing:.08em!important}
  body.admin-theme .topbar h1{max-width:60vw!important;margin:2px 0 0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:16px!important}
  body.admin-theme .topbar .status-pill{display:none!important}
  body.admin-theme>.mobile-menu{position:fixed!important;left:12px!important;right:auto!important;top:calc(12px + env(safe-area-inset-top))!important;bottom:auto!important;z-index:150!important;width:44px!important;height:44px!important;border:1px solid var(--m48-line)!important;border-radius:14px!important;background:#fff!important;color:#173b63!important;box-shadow:0 6px 16px rgba(17,43,74,.1)!important}
  body.admin-theme .admin-sidebar,
  body.admin-theme .sidebar[data-sidebar]{
    display:flex!important;position:fixed!important;inset:0 auto 0 0!important;z-index:145!important;
    width:min(340px,88vw)!important;height:100dvh!important;padding:max(16px,env(safe-area-inset-top)) 12px calc(12px + var(--m48-safe-bottom))!important;
    border-radius:0 22px 22px 0!important;transform:translateX(-105%)!important;box-shadow:22px 0 55px rgba(4,19,40,.3)!important
  }
  body.admin-theme .admin-sidebar.open,
  body.admin-theme .sidebar[data-sidebar].open{transform:translateX(0)!important}
  body.admin-theme .sidebar-backdrop{z-index:140!important}
  body.admin-theme .content{width:100%!important;max-width:768px!important;margin:0 auto!important;padding:12px 11px calc(105px + var(--m48-safe-bottom))!important}
  body.admin-theme .panel{min-width:0!important;margin-bottom:12px!important;padding:15px!important;border-radius:20px!important;box-shadow:var(--m48-shadow)!important;overflow:clip!important}
  body.admin-theme .panel-head{align-items:stretch!important;flex-direction:column!important;gap:10px!important;padding-bottom:12px!important;border-bottom:1px solid #edf1f5!important}
  body.admin-theme .panel-head h2{font-size:17px!important}
  body.admin-theme .panel-head p{font-size:12px!important;line-height:1.45!important}
  body.admin-theme :where(.form-grid,.detail-grid,.admin-license-grid,.admin-overview-grid,.admin-client-main-grid,.admin-client-main-grid-v47,.operation-detail-grid,.admin-price-editor,.admin-user-create-grid,.license-toolbar-v47,.system-runtime-grid){grid-template-columns:1fr!important}
  body.admin-theme :where(.span-2,.span-3){grid-column:auto!important}
  body.admin-theme :where(.stats-grid,.admin-kpi-grid,.admin-client-kpis,.admin-client-kpis-v47,.license-stat-grid,.license-stat-grid-v47,.system-health-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.admin-theme :where(.stats-grid,.admin-kpi-grid,.admin-client-kpis,.admin-client-kpis-v47,.license-stat-grid,.license-stat-grid-v47,.system-health-grid)>*{min-width:0!important;border-radius:17px!important}
  body.admin-theme :where(.admin-command-hero,.admin-system-hero,.admin-client-hero,.admin-client-hero-v47){align-items:stretch!important;flex-direction:column!important;grid-template-columns:1fr!important;gap:13px!important;padding:18px!important;border-radius:22px!important}
  body.admin-theme :where(.admin-command-actions,.admin-client-hero-actions,.admin-contact-actions,.form-actions,.toolbar,.split-actions){display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:8px!important;width:100%!important}
  body.admin-theme :where(.admin-command-actions,.admin-client-hero-actions,.admin-contact-actions,.form-actions,.toolbar,.split-actions)>*{width:100%!important;max-width:none!important;margin:0!important}
  body.admin-theme :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){width:100%!important;min-width:0!important;min-height:50px!important;border-radius:14px!important;font-size:16px!important}
  body.admin-theme .btn{min-height:44px!important;border-radius:13px!important}
  body.admin-theme .day-chips{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
  body.admin-theme .day-chips button{min-height:42px!important;border-radius:11px!important}
  body.admin-theme .custom-day-form{grid-template-columns:1fr!important}
  body.admin-theme .license-generated-code{align-items:stretch!important;flex-direction:column!important;border-radius:13px!important}
  body.admin-theme .license-generated-code code{overflow-wrap:anywhere!important;font-size:12px!important;text-align:center!important}
  body.admin-theme .admin-pagination{align-items:stretch!important;flex-direction:column!important}
  body.admin-theme .admin-pagination>div{display:grid!important;grid-template-columns:1fr 1fr!important}
  body.admin-theme .admin-mobile-nav{
    position:fixed;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));left:8px;right:8px;bottom:calc(7px + var(--m48-safe-bottom));z-index:130;
    height:72px;padding:7px 6px;gap:2px;border:1px solid rgba(216,226,236,.94);border-radius:23px;background:rgba(255,255,255,.95);
    box-shadow:0 17px 42px rgba(8,28,52,.22);backdrop-filter:blur(22px) saturate(1.3);-webkit-backdrop-filter:blur(22px) saturate(1.3)
  }
  body.admin-theme .admin-mobile-nav a,
  body.admin-theme .admin-mobile-nav button{display:grid;place-items:center;grid-template-rows:25px 13px;gap:3px;min-width:0;min-height:56px;padding:4px 2px;border:0;border-radius:16px;background:transparent;color:#7c8999}
  body.admin-theme .admin-mobile-nav .ui-icon{width:22px;height:22px}
  body.admin-theme .admin-mobile-nav span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:800}
  body.admin-theme .admin-mobile-nav :is(a.active,button[aria-expanded="true"]){background:var(--m48-blue-soft);color:var(--m48-blue-dark)}
  body.admin-theme.mobile-keyboard-open .admin-mobile-nav{opacity:0;pointer-events:none;transform:translateY(calc(100% + 28px))}
}

@media (max-width:880px){
  /* Aplicação principal: mesma estrutura em todos os planos */
  body.maxpdv-brand:not(.immersive-pdv){background:var(--m48-bg)!important;color:var(--m48-ink)}
  body.maxpdv-brand.plan-standard:not(.immersive-pdv){--m48-blue:#0f766e;--m48-blue-dark:#115e59;--m48-blue-soft:#e7f6f3}
  body.maxpdv-brand.plan-gold:not(.immersive-pdv){--m48-blue:#a96f15;--m48-blue-dark:#744707;--m48-blue-soft:#fff3d9;--m48-line:#e8e0d2;--m48-bg:#f5f4f1}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-app-shell,
  body.maxpdv-brand:not(.immersive-pdv) .commercial-main-wrap{display:block!important;width:100%!important;min-width:0!important;min-height:100dvh!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-header{
    position:sticky!important;top:0!important;z-index:110!important;
    width:100%!important;height:calc(66px + env(safe-area-inset-top))!important;min-height:calc(66px + env(safe-area-inset-top))!important;
    padding:env(safe-area-inset-top) 12px 0!important;border:0!important;border-bottom:1px solid rgba(219,228,237,.92)!important;
    border-radius:0!important;background:rgba(255,255,255,.93)!important;box-shadow:0 6px 22px rgba(14,40,72,.055)!important;
    backdrop-filter:blur(20px) saturate(1.25)!important;-webkit-backdrop-filter:blur(20px) saturate(1.25)!important
  }
  body.maxpdv-brand:not(.immersive-pdv) .commercial-header-leading{gap:9px!important;min-width:0!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-header-collapse{display:none!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-symbol{
    display:block!important;width:40px!important;height:40px!important;flex:0 0 40px!important;padding:6px!important;
    border:1px solid var(--m48-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 14px rgba(14,42,75,.07)!important
  }
  body.maxpdv-brand:not(.immersive-pdv) .commercial-page-title{min-width:0!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-page-title small{display:block!important;margin:0 0 2px!important;color:var(--m48-blue)!important;font-size:9px!important;font-weight:900!important;letter-spacing:.07em!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-page-title h1{max-width:50vw!important;margin:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--m48-ink)!important;font-size:15px!important;line-height:1.2!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-breadcrumbs,
  body.maxpdv-brand:not(.immersive-pdv) .commercial-global-search,
  body.maxpdv-brand:not(.immersive-pdv) .commercial-header-cta,
  body.maxpdv-brand:not(.immersive-pdv) .commercial-store-switch,
  body.maxpdv-brand:not(.immersive-pdv) .commercial-help,
  body.maxpdv-brand:not(.immersive-pdv) .commercial-header-logout{display:none!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-header-session{margin-left:auto!important;gap:0!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-header-operator{width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;padding:3px!important;border:1px solid var(--m48-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 14px rgba(14,42,75,.07)!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-header-operator .commercial-avatar{width:32px!important;height:32px!important;flex:0 0 32px!important;border-radius:11px!important;background:linear-gradient(145deg,var(--m48-blue),var(--m48-blue-dark))!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-header-usercopy{display:none!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-content{
    width:100%!important;max-width:768px!important;min-width:0!important;margin:0 auto!important;
    padding:12px 11px calc(106px + var(--m48-safe-bottom))!important;overflow:visible!important
  }
  body.maxpdv-brand.modal-context:not(.immersive-pdv) .commercial-content{max-width:none!important;padding:10px!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-footer{display:none!important}
  body.maxpdv-brand:not(.immersive-pdv) .offline-system-bar{left:10px!important;right:10px!important;bottom:calc(88px + var(--m48-safe-bottom))!important;width:auto!important;border-radius:16px!important}

  body.maxpdv-brand:not(.immersive-pdv) .subscription-strip{
    align-items:flex-start!important;flex-direction:column!important;gap:8px!important;margin:0 0 11px!important;padding:11px 13px!important;
    border-radius:16px!important;font-size:11px!important;box-shadow:0 5px 16px rgba(17,44,75,.045)!important
  }
  body.maxpdv-brand:not(.immersive-pdv) .subscription-strip strong,
  body.maxpdv-brand:not(.immersive-pdv) .subscription-strip span{display:block!important}
  body.maxpdv-brand:not(.immersive-pdv) .subscription-strip a{width:100%!important;min-height:38px!important;display:grid!important;place-items:center!important;border-radius:11px!important;background:rgba(255,255,255,.72)!important}
  body.maxpdv-brand:not(.immersive-pdv) .alert{margin:0 0 11px!important;padding:13px!important;border-radius:16px!important;font-size:12px!important;line-height:1.45!important}

  body.maxpdv-brand:not(.immersive-pdv) .panel,
  body.maxpdv-brand:not(.immersive-pdv) .suite-card,
  body.maxpdv-brand:not(.immersive-pdv) .ops-panel{
    min-width:0!important;margin-bottom:12px!important;padding:15px!important;border:1px solid var(--m48-line)!important;
    border-radius:20px!important;background:var(--m48-card)!important;box-shadow:var(--m48-shadow)!important;overflow:clip!important
  }
  body.maxpdv-brand:not(.immersive-pdv) .panel-head,
  body.maxpdv-brand:not(.immersive-pdv) .ops-panel-head,
  body.maxpdv-brand:not(.immersive-pdv) .suite-card>header{
    display:flex!important;align-items:stretch!important;flex-direction:column!important;gap:10px!important;
    margin-bottom:14px!important;padding-bottom:12px!important;border-bottom:1px solid #edf1f5!important
  }
  body.maxpdv-brand:not(.immersive-pdv) .panel-head h2,
  body.maxpdv-brand:not(.immersive-pdv) .ops-panel-head h2{margin:2px 0 0!important;font-size:17px!important;line-height:1.22!important}
  body.maxpdv-brand:not(.immersive-pdv) .panel-head p,
  body.maxpdv-brand:not(.immersive-pdv) .ops-panel-head p{margin:5px 0 0!important;font-size:12px!important;line-height:1.45!important}
  body.maxpdv-brand:not(.immersive-pdv) .panel-head>.btn,
  body.maxpdv-brand:not(.immersive-pdv) .panel-head>form,
  body.maxpdv-brand:not(.immersive-pdv) .panel-head>.document-actions{width:100%!important}

  body.maxpdv-brand:not(.immersive-pdv) :where(.btn,button){touch-action:manipulation}
  body.maxpdv-brand:not(.immersive-pdv) .btn{min-height:44px!important;padding:9px 13px!important;border-radius:13px!important;font-size:12.5px!important;font-weight:800!important}
  body.maxpdv-brand:not(.immersive-pdv) .btn-sm{min-height:40px!important;padding:8px 10px!important;border-radius:12px!important}
  body.maxpdv-brand:not(.immersive-pdv) .btn-primary{border-color:var(--m48-blue)!important;background:linear-gradient(135deg,var(--m48-blue),var(--m48-blue-dark))!important;color:#fff!important;box-shadow:0 8px 18px rgba(23,105,200,.17)!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea){
    width:100%!important;min-width:0!important;min-height:50px!important;padding:11px 12px!important;border:1px solid #d6e0ea!important;border-radius:14px!important;
    background:#fbfcfe!important;color:var(--m48-ink)!important;font-size:16px!important;box-shadow:none!important
  }
  body.maxpdv-brand:not(.immersive-pdv) textarea{min-height:108px!important;line-height:1.45!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(input,select,textarea):focus{border-color:var(--m48-blue)!important;background:#fff!important;outline:0!important;box-shadow:0 0 0 4px rgba(23,105,200,.11)!important}
  body.maxpdv-brand:not(.immersive-pdv) label{min-width:0!important;font-size:12px!important;line-height:1.35!important}

  body.maxpdv-brand:not(.immersive-pdv) :where(.form-grid,.dialog-grid,.detail-grid,.modern-form-panel,.report-filter,.sale-edit-grid,.finance-detail-grid,.purchase-entry-layout,.purchase-show-grid,.customer360-grid,.admin-client-main-grid,.inventory-main-grid,.report-main-grid,.cash-open-layout,.cash-operation-grid,.ops-main-grid,.ops-insight-grid,.ops-priority-grid,.ops-v31-receivable-grid,.access-profile-grid,.suite-grid-2,.suite-grid-3,.suite-form-grid,.suite-inline-form,.suite-check-grid,.finance-filter-grid,.service-filter-grid,.service-two-cols,.service-grid-4,.service-show-layout,.service-show-side,.service-detail-grid,.ar-filters,.rp-filters){grid-template-columns:1fr!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(.span-2,.span-3,.full){grid-column:auto!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(.form-actions,.document-actions,.toolbar,.customers-pro-toolbar,.finance-command-actions,.inventory-command-actions,.report-command-actions,.access-hero-actions,.ops-hero-actions,.ar-actions,.ar-filter-actions,.finance-filter-actions,.test-actions,.test-toolbar,.sale-edit-actions,.admin-command-actions,.split-actions,.receipt-actions){
    display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:8px!important;width:100%!important
  }
  body.maxpdv-brand:not(.immersive-pdv) :where(.form-actions,.document-actions,.toolbar,.customers-pro-toolbar,.finance-command-actions,.inventory-command-actions,.report-command-actions,.access-hero-actions,.ops-hero-actions,.ar-actions,.ar-filter-actions,.finance-filter-actions,.test-actions,.test-toolbar,.sale-edit-actions,.admin-command-actions,.split-actions,.receipt-actions)>*{width:100%!important;max-width:none!important;margin:0!important}

  body.maxpdv-brand:not(.immersive-pdv) :where(.stats-grid,.executive-metrics,.usage-grid,.admin-usage-grid,.admin-kpi-grid,.admin-client-kpis,.admin-client-kpis-v47,.license-stat-grid,.license-stat-grid-v47,.system-health-grid,.system-runtime-grid,.finance-kpi-grid,.inventory-kpi-grid,.report-kpi-grid,.cash-kpis,.ar-kpis,.service-kpi-grid,.customer360-kpis,.access-summary-grid,.service-summary-grid,.ops-today-grid,.ops-v31-monitor-grid,.ops-stock-metrics,.suite-metrics,.suite-dre,.finance-detail-cards,.purchase-meta-cards){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important
  }
  body.maxpdv-brand:not(.immersive-pdv) :where(.stats-grid,.executive-metrics,.usage-grid,.admin-usage-grid,.admin-kpi-grid,.admin-client-kpis,.admin-client-kpis-v47,.license-stat-grid,.license-stat-grid-v47,.system-health-grid,.system-runtime-grid,.finance-kpi-grid,.inventory-kpi-grid,.report-kpi-grid,.cash-kpis,.ar-kpis,.service-kpi-grid,.customer360-kpis,.access-summary-grid,.service-summary-grid,.ops-today-grid,.ops-v31-monitor-grid,.ops-stock-metrics,.suite-metrics,.suite-dre,.finance-detail-cards,.purchase-meta-cards)>*{min-width:0!important;border-radius:17px!important}

  body.maxpdv-brand:not(.immersive-pdv) :where(.sales-pro-hero,.customers-pro-hero,.cash-hero,.ar-hero,.finance-command-hero,.inventory-command-hero,.report-command-hero,.service-orders-hero,.service-form-hero,.purchase-entry-hero,.purchase-show-hero,.store-admin-hero,.suite-hero,.access-hero,.customer360-hero,.ops-hero,.sale-edit-hero,.finance-detail-hero,.plan-hero-professional){
    min-width:0!important;margin-bottom:12px!important;padding:18px!important;border-radius:22px!important;overflow:hidden!important;box-shadow:0 13px 30px rgba(13,43,79,.13)!important
  }
  body.maxpdv-brand:not(.immersive-pdv) :where(.sales-pro-hero,.customers-pro-hero,.cash-hero,.ar-hero,.finance-command-hero,.inventory-command-hero,.report-command-hero,.service-orders-hero,.service-form-hero,.purchase-entry-hero,.purchase-show-hero,.store-admin-hero,.suite-hero,.access-hero,.customer360-hero,.ops-hero,.sale-edit-hero,.finance-detail-hero,.plan-hero-professional){align-items:stretch!important;flex-direction:column!important;grid-template-columns:1fr!important;gap:14px!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(.sales-pro-hero,.customers-pro-hero,.cash-hero,.ar-hero,.finance-command-hero,.inventory-command-hero,.report-command-hero,.service-orders-hero,.service-form-hero,.purchase-entry-hero,.purchase-show-hero,.store-admin-hero,.suite-hero,.access-hero,.customer360-hero,.ops-hero,.sale-edit-hero,.finance-detail-hero,.plan-hero-professional) h1,
  body.maxpdv-brand:not(.immersive-pdv) :where(.sales-pro-hero,.customers-pro-hero,.cash-hero,.ar-hero,.finance-command-hero,.inventory-command-hero,.report-command-hero,.service-orders-hero,.service-form-hero,.purchase-entry-hero,.purchase-show-hero,.store-admin-hero,.suite-hero,.access-hero,.customer360-hero,.ops-hero,.sale-edit-hero,.finance-detail-hero,.plan-hero-professional) h2{font-size:22px!important;line-height:1.16!important}

  body.maxpdv-brand:not(.immersive-pdv) .commercial-sidebar,
  body.maxpdv-brand.commercial-sidebar-collapsed:not(.immersive-pdv) .commercial-sidebar{
    position:fixed!important;inset:0 auto 0 0!important;z-index:140!important;width:min(340px,88vw)!important;height:100dvh!important;
    padding:max(14px,env(safe-area-inset-top)) 12px calc(12px + var(--m48-safe-bottom))!important;
    border-radius:0 22px 22px 0!important;transform:translateX(-105%)!important;box-shadow:22px 0 55px rgba(4,19,40,.28)!important
  }
  body.maxpdv-brand:not(.immersive-pdv) .commercial-sidebar.open{transform:translateX(0)!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-sidebar-backdrop{z-index:135!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-sidebar-brand{height:58px!important;min-height:58px!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-logo-full{display:block!important;width:174px!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-logo-symbol{display:none!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-nav a,
  body.maxpdv-brand:not(.immersive-pdv) .commercial-nav-disabled{min-height:48px!important;border-radius:13px!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-nav-copy b{font-size:12px!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-nav-copy small{font-size:9px!important}

  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-nav{
    position:fixed!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(52px,1fr))!important;
    left:8px!important;right:8px!important;bottom:calc(7px + var(--m48-safe-bottom))!important;z-index:125!important;
    width:auto!important;height:72px!important;padding:7px 6px!important;gap:2px!important;border:1px solid rgba(216,226,236,.94)!important;
    border-radius:23px!important;background:rgba(255,255,255,.95)!important;box-shadow:0 17px 42px rgba(8,28,52,.22)!important;
    backdrop-filter:blur(22px) saturate(1.3)!important;-webkit-backdrop-filter:blur(22px) saturate(1.3)!important
  }
  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-nav a,
  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-nav button{
    display:grid!important;place-items:center!important;grid-template-rows:25px 13px!important;gap:3px!important;
    min-width:0!important;min-height:56px!important;padding:4px 2px!important;border:0!important;border-radius:16px!important;background:transparent!important;color:#7c8999!important
  }
  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-nav .ui-icon{width:22px!important;height:22px!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-nav span{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9.5px!important;font-weight:800!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-nav :is(a.active,button.active){background:var(--m48-blue-soft)!important;color:var(--m48-blue-dark)!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-nav a[href="/app"]{order:1}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-nav a[href="/app/products"]{order:2}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-nav .commercial-mobile-sale{order:3}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-nav a[href="/app/customers"]{order:4}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-nav button{order:5}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-nav .commercial-mobile-sale{
    min-height:61px!important;margin-top:-18px!important;border:4px solid var(--m48-bg)!important;border-radius:21px!important;
    background:linear-gradient(145deg,var(--m48-blue),var(--m48-blue-dark))!important;color:#fff!important;box-shadow:0 10px 22px rgba(23,105,200,.28)!important
  }
  body.maxpdv-brand.mobile-keyboard-open:not(.immersive-pdv) .commercial-mobile-nav{opacity:0!important;pointer-events:none!important;transform:translateY(calc(100% + 28px))!important}

  body.maxpdv-brand:not(.immersive-pdv) dialog{max-width:100vw!important}
  body.maxpdv-brand:not(.immersive-pdv) dialog::backdrop{background:rgba(5,19,38,.6)!important;backdrop-filter:blur(3px)!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(.quick-dialog-card,.finance-dialog-card,.commercial-help-card){
    width:calc(100vw - 16px)!important;max-width:none!important;max-height:calc(var(--mobile-viewport-height,100dvh) - 16px)!important;
    margin:auto!important;border-radius:24px!important;overflow:auto!important
  }
  body.maxpdv-brand:not(.immersive-pdv) .subscription-login-dialog{width:calc(100vw - 18px)!important;border-radius:24px!important}
  body.maxpdv-brand:not(.immersive-pdv) .subscription-login-dialog>div{padding:21px 17px!important}
  body.maxpdv-brand:not(.immersive-pdv) .subscription-login-dialog .dialog-summary,
  body.maxpdv-brand:not(.immersive-pdv) .subscription-login-dialog .dialog-actions{align-items:stretch!important;flex-direction:column!important}
  body.maxpdv-brand:not(.immersive-pdv) .subscription-login-dialog .dialog-actions>*{width:100%!important;min-height:44px!important;display:grid!important;place-items:center!important;text-align:center!important}
}

@media (max-width:520px){
  body.maxpdv-brand:not(.immersive-pdv) .commercial-content,
  body.admin-theme .content{padding-inline:9px!important}
  body.maxpdv-brand:not(.immersive-pdv) :where(.stats-grid,.executive-metrics,.usage-grid,.admin-usage-grid,.admin-kpi-grid,.admin-client-kpis,.admin-client-kpis-v47,.license-stat-grid,.license-stat-grid-v47,.system-health-grid,.system-runtime-grid,.finance-kpi-grid,.inventory-kpi-grid,.report-kpi-grid,.cash-kpis,.ar-kpis,.service-kpi-grid,.customer360-kpis,.access-summary-grid,.service-summary-grid,.ops-today-grid,.ops-v31-monitor-grid,.ops-stock-metrics,.suite-metrics,.suite-dre,.finance-detail-cards,.purchase-meta-cards),
  body.admin-theme :where(.stats-grid,.admin-kpi-grid,.admin-client-kpis,.admin-client-kpis-v47,.license-stat-grid,.license-stat-grid-v47,.system-health-grid){grid-template-columns:1fr!important}
  body.maxpdv-brand:not(.immersive-pdv) .plan-limit-grid{grid-template-columns:1fr!important}
  body.sales-site .sales-hero-copy h1{font-size:31px}
  body.sales-site .sales-proof{grid-template-columns:1fr}
  body.immersive-pdv .pdv27-client-info{grid-template-columns:1fr!important}
  body.immersive-pdv .pdv27-client-info>span{min-height:42px!important}
  body.immersive-pdv .pdv27-panel-summary{grid-template-columns:1fr!important}
  body.store-page .store-products{grid-template-columns:1fr!important}
}

@media (max-width:370px){
  body.maxpdv-brand:not(.immersive-pdv) .commercial-page-title h1{max-width:43vw!important}
  body.maxpdv-brand:not(.immersive-pdv) .commercial-mobile-nav span,
  body.admin-theme .admin-mobile-nav span{font-size:8px!important}
  body.immersive-pdv .pdv27-grand-total{min-width:108px!important}
  body.immersive-pdv .pdv27-grand-total strong{font-size:20px!important}
  body.immersive-pdv .maxpdv-pdv-wordmark{display:none!important}
  body.immersive-pdv .maxpdv-pdv-title{max-width:38vw!important}
  body.sales-site .sales-header-main{height:60px}
  body.sales-site .sales-brand img{width:118px}
  body.sales-site .sales-login-button{padding-inline:10px;font-size:10px}
  body.sales-site .sales-hero-copy h1{font-size:28px}
}

@media (prefers-reduced-motion:reduce){
  body.mobile-v48-ready *,
  body.mobile-v48-ready *::before,
  body.mobile-v48-ready *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
