/* MAXPDV v4.9.0 · reconstrução mobile adaptativa */
:root{
  --app-safe-top:env(safe-area-inset-top,0px);
  --app-safe-right:env(safe-area-inset-right,0px);
  --app-safe-bottom:env(safe-area-inset-bottom,0px);
  --app-safe-left:env(safe-area-inset-left,0px)
}

@media (max-width:900px){
  :root{
    --app-mobile-bg:#f2f5f9;
    --app-mobile-card:#fff;
    --app-mobile-ink:#12243c;
    --app-mobile-muted:#6f8094;
    --app-mobile-line:#dce5ee;
    --app-mobile-accent:var(--module-primary,#1769c8);
    --app-mobile-accent-dark:var(--module-primary-dark,#0b458f);
    --app-mobile-soft:var(--module-soft,#eaf3ff);
    --app-mobile-radius:20px;
    --app-mobile-shadow:0 8px 26px rgba(11,38,70,.075);
    --app-mobile-nav-height:88px;
    --app-mobile-header-height:68px
  }

  html{width:100%;max-width:100%;overflow-x:clip;scroll-padding-top:calc(var(--app-mobile-header-height) + var(--app-safe-top) + 10px);-webkit-text-size-adjust:100%}
  body.mobile-app-v49-ready{width:100%;max-width:100%;min-height:100dvh;margin:0;overflow-x:clip;background:var(--app-mobile-bg);color:var(--app-mobile-ink);-webkit-tap-highlight-color:transparent;overscroll-behavior-x:none}
  body.mobile-app-v49-ready *,body.mobile-app-v49-ready *::before,body.mobile-app-v49-ready *::after{box-sizing:border-box}
  body.mobile-app-v49-ready :where(main,section,article,aside,header,footer,nav,form,fieldset,div,label){min-width:0}
  body.mobile-app-v49-ready :where(img,svg,video,canvas,iframe){max-width:100%}
  body.mobile-app-v49-ready :where(a,button,[role="button"],summary){touch-action:manipulation}
  body.mobile-app-v49-ready :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea){width:100%;max-width:100%;min-height:48px;font-size:16px!important}
  body.mobile-app-v49-ready textarea{min-height:104px;resize:vertical}
  body.mobile-app-v49-ready :where(button,.btn,[role="button"],summary){min-height:44px}
  body.mobile-app-v49-ready :where(input,select,textarea,button,.btn){border-radius:13px}
  body.mobile-app-v49-ready :where(p,small,dd,td,th,a,b,strong,span){overflow-wrap:anywhere}
  body.mobile-app-v49-ready .desktop-only{display:none!important}
  body.mobile-app-v49-ready .mobile-only{display:initial!important}
  body.mobile-app-v49-ready.mobile-dialog-open{overflow:hidden}
  body.mobile-app-v49-ready.mobile-app-offline{--app-mobile-bg:#f5f1e9}

  /* Estrutura principal em formato de aplicativo */
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-app-shell,
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-main-wrap{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:100dvh!important;margin:0!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-header{
    position:sticky!important;inset:0 0 auto!important;z-index:110!important;display:flex!important;align-items:center!important;width:100%!important;
    height:calc(var(--app-mobile-header-height) + var(--app-safe-top))!important;min-height:calc(var(--app-mobile-header-height) + var(--app-safe-top))!important;
    padding:var(--app-safe-top) max(12px,var(--app-safe-right)) 0 max(12px,var(--app-safe-left))!important;border:0!important;border-bottom:1px solid rgba(216,227,237,.92)!important;
    border-radius:0!important;background:rgba(255,255,255,.94)!important;box-shadow:0 6px 24px rgba(12,38,69,.06)!important;
    backdrop-filter:blur(20px) saturate(1.25)!important;-webkit-backdrop-filter:blur(20px) saturate(1.25)!important
  }
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-header-leading{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;flex:1 1 auto!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-mobile-symbol{display:block!important;width:42px!important;height:42px!important;flex:0 0 42px!important;padding:7px!important;border:1px solid var(--app-mobile-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 15px rgba(14,42,75,.08)!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-page-title{display:block!important;min-width:0!important;line-height:1.15!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-page-title>small{display:block!important;margin:0 0 3px!important;color:var(--app-mobile-accent)!important;font-size:8.5px!important;font-weight:900!important;letter-spacing:.07em!important;text-transform:uppercase!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-page-title h1{max-width:58vw!important;margin:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:17px!important;line-height:1.18!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-breadcrumbs,
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-global-search,
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-header-collapse,
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-header-cta,
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-header-icon,
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-header-logout,
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-header-usercopy{display:none!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-header-session{display:flex!important;align-items:center!important;gap:7px!important;flex:0 0 auto!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-header-operator{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border:1px solid var(--app-mobile-line)!important;border-radius:14px!important;background:#fff!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-header-operator .commercial-avatar{width:32px!important;height:32px!important;display:grid!important;place-items:center!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-store-switch label{width:42px!important;height:42px!important;padding:0!important;border-radius:14px!important;overflow:hidden!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-store-switch label>.ui-icon{display:none!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-store-switch select{width:42px!important;min-height:42px!important;padding:0 5px!important;border-radius:14px!important;color:transparent!important;background-position:center!important}

  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-content{
    width:100%!important;max-width:840px!important;min-height:calc(100dvh - var(--app-mobile-header-height))!important;margin:0 auto!important;
    padding:12px max(10px,var(--app-safe-right)) calc(var(--app-mobile-nav-height) + var(--app-safe-bottom) + 22px) max(10px,var(--app-safe-left))!important;overflow:visible!important
  }
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-footer{display:none!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .subscription-strip{display:flex!important;align-items:flex-start!important;flex-direction:column!important;gap:9px!important;margin:0 0 11px!important;padding:13px 14px!important;border-radius:17px!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .subscription-strip a{display:grid!important;place-items:center!important;width:100%!important;min-height:42px!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .alert{position:relative!important;margin:0 0 11px!important;padding:13px 14px!important;border-radius:16px!important;font-size:12px!important;line-height:1.5!important}

  /* Gaveta lateral e navegação inferior */
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-sidebar,
  body.maxpdv-brand.mobile-app-v49-ready.commercial-sidebar-collapsed:not(.immersive-pdv) .commercial-sidebar{
    position:fixed!important;inset:0 auto 0 0!important;z-index:145!important;display:flex!important;width:min(344px,89vw)!important;height:var(--app-viewport-height,100dvh)!important;
    padding:max(12px,var(--app-safe-top)) 11px calc(12px + var(--app-safe-bottom))!important;border-radius:0 24px 24px 0!important;transform:translateX(-105%)!important;
    box-shadow:24px 0 58px rgba(3,18,38,.34)!important;transition:transform .22s ease!important
  }
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-sidebar.open{transform:translateX(0)!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-sidebar-backdrop{position:fixed!important;inset:0!important;z-index:140!important;display:block!important;width:100%!important;height:100%!important;border:0!important;border-radius:0!important;background:rgba(3,16,36,.62)!important;opacity:0!important;visibility:hidden!important;backdrop-filter:blur(2px)!important;transition:opacity .2s ease,visibility .2s ease!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-sidebar-backdrop.visible{opacity:1!important;visibility:visible!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-sidebar-brand{height:58px!important;min-height:58px!important;padding:2px 4px 10px!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-sidebar-scroll{overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-nav a,
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-nav-disabled{min-height:50px!important;border-radius:13px!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-mobile-nav{
    position:fixed!important;left:max(8px,var(--app-safe-left))!important;right:max(8px,var(--app-safe-right))!important;bottom:calc(7px + var(--app-safe-bottom))!important;z-index:125!important;
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;width:auto!important;height:74px!important;padding:7px 6px!important;gap:2px!important;
    border:1px solid rgba(214,225,235,.96)!important;border-radius:23px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 18px 44px rgba(8,28,52,.23)!important;
    backdrop-filter:blur(22px) saturate(1.3)!important;-webkit-backdrop-filter:blur(22px) saturate(1.3)!important;transition:opacity .18s ease,transform .18s ease!important
  }
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-mobile-nav :where(a,button){display:grid!important;place-items:center!important;grid-template-rows:26px 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:#758497!important;text-decoration:none!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-mobile-nav .ui-icon{width:22px!important;height:22px!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-mobile-nav span{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important;font-weight:850!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-mobile-nav :where(a.active,button.active){background:var(--app-mobile-soft)!important;color:var(--app-mobile-accent-dark)!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-mobile-nav .commercial-mobile-sale{min-height:62px!important;margin-top:-18px!important;border:4px solid var(--app-mobile-bg)!important;border-radius:21px!important;background:linear-gradient(145deg,var(--app-mobile-accent),var(--app-mobile-accent-dark))!important;color:#fff!important;box-shadow:0 10px 23px color-mix(in srgb,var(--app-mobile-accent) 33%,transparent)!important}
  body.maxpdv-brand.mobile-app-v49-ready.mobile-keyboard-open:not(.immersive-pdv) .commercial-mobile-nav{opacity:0!important;pointer-events:none!important;transform:translateY(calc(100% + 30px))!important}

  /* Componentes, painéis, ações e formulários */
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.panel,.box,.form-panel,.modern-form-panel,.finance-filter-panel,.inventory-history-panel,.inventory-stock-panel,.ar-panel,.customers-pro-panel,.access-form-card){width:100%!important;min-width:0!important;margin-bottom:12px!important;padding:15px!important;border-radius:var(--app-mobile-radius)!important;border-color:var(--app-mobile-line)!important;background:var(--app-mobile-card)!important;box-shadow:var(--app-mobile-shadow)!important;overflow:visible!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.panel-head,.customers-pro-toolbar,.finance-ledger-head,.purchase-section-head,.ops-panel-head){display:flex!important;align-items:stretch!important;flex-direction:column!important;gap:9px!important;width:100%!important;margin-bottom:13px!important;padding-bottom:12px!important;border-bottom:1px solid #edf1f5!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.panel-head,.customers-pro-toolbar,.finance-ledger-head,.purchase-section-head) h2{margin:0!important;font-size:17px!important;line-height:1.25!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.panel-head,.customers-pro-toolbar,.finance-ledger-head,.purchase-section-head) p{margin:4px 0 0!important;font-size:12px!important;line-height:1.5!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.panel-head,.customers-pro-toolbar,.finance-ledger-head,.purchase-section-head)>:where(a,button,.btn,form){width:100%!important;max-width:none!important;margin:0!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.panel-head,.customers-pro-toolbar,.finance-ledger-head,.purchase-section-head)>form :where(button,.btn){width:100%!important}

  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.form-grid,.detail-grid,.grid,.dialog-grid,.finance-filter-grid,.finance-dialog-grid,.finance-detail-grid,.finance-detail-cards,.purchase-meta-grid,.purchase-cost-grid,.purchase-finance-grid,.service-form-section,.access-profile-editor,.access-user-form,.rules-grid,.form-switches,.store-settings-grid,.checkout-layout){grid-template-columns:1fr!important;gap:12px!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.span-2,.span-3,.full){grid-column:1/-1!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.form-actions,.toolbar,.quick-actions,.split-actions,.document-actions,.finance-command-actions,.inventory-command-actions,.ar-hero-actions,.customers-pro-actions,.customer360-actions,.service-show-actions,.access-hero-actions,.maxpdv-home-welcome-actions){display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:8px!important;width:100%!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.form-actions,.toolbar,.quick-actions,.split-actions,.document-actions,.finance-command-actions,.inventory-command-actions,.ar-hero-actions,.customers-pro-actions,.customer360-actions,.service-show-actions,.access-hero-actions,.maxpdv-home-welcome-actions)>*{width:100%!important;max-width:none!important;margin:0!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.form-actions,.toolbar,.quick-actions,.split-actions) form :where(button,.btn){width:100%!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) form.is-submitting{pointer-events:none;opacity:.72}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) form.is-submitting [aria-busy="true"]{cursor:wait}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.inline-form,.cash-open-form,.cash-close-form,.cash-movement-form,.customer-credit-receive-form,.ar-receive form){display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:12px!important;width:100%!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.inline-form,.cash-open-form,.cash-close-form,.cash-movement-form,.customer-credit-receive-form,.ar-receive form)>*{width:100%!important;max-width:none!important;margin:0!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.money-field,.money-input,.document-field,.field-action,.select-with-action,.product-code-field){width:100%!important;max-width:100%!important;min-width:0!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.document-field,.field-action,.select-with-action,.product-code-field){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) details>summary{display:flex!important;align-items:center!important;cursor:pointer!important}

  /* Cabeçalhos e grades de cada módulo */
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.maxpdv-home-welcome,.ops-hero,.finance-command-hero,.inventory-command-hero,.ar-hero,.customers-pro-hero,.customer360-hero,.access-hero,.finance-detail-hero,.cash-hero,.plan-hero,.service-order-hero,.purchase-hero){display:flex!important;align-items:stretch!important;flex-direction:column!important;grid-template-columns:1fr!important;gap:14px!important;width:100%!important;margin-bottom:12px!important;padding:17px!important;border-radius:22px!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.maxpdv-home-welcome,.ops-hero,.finance-command-hero,.inventory-command-hero,.ar-hero,.customers-pro-hero,.customer360-hero,.access-hero,.finance-detail-hero,.cash-hero,.plan-hero,.service-order-hero,.purchase-hero) h1,
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.maxpdv-home-welcome,.ops-hero,.finance-command-hero,.inventory-command-hero,.ar-hero,.customers-pro-hero,.customer360-hero,.access-hero,.finance-detail-hero,.cash-hero,.plan-hero,.service-order-hero,.purchase-hero) h2{font-size:21px!important;line-height:1.18!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.stats-grid,.maxpdv-kpi-grid,.executive-metrics,.usage-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,.purchase-meta-cards){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.stats-grid,.maxpdv-kpi-grid,.executive-metrics,.usage-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,.purchase-meta-cards)>*{min-width:0!important;padding:13px!important;border-radius:17px!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.ops-main-grid,.ops-priority-grid,.inventory-main-grid,.customer360-grid,.cash-open-layout,.cash-operation-grid,.service-orders-layout,.access-profile-grid,.plans-grid,.suite-layout){display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.cash-hero-main,.cash-hero-balance,.plan-hero-price,.sale-edit-hero-total){width:100%!important;min-width:0!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .cash-hero-balance{text-align:left!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .cash-close-equation{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;text-align:left!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .cash-close-equation>i{display:none!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.suite-tabs,.finance-quick-nav,.ar-quick-filters,.upgrade-admin-tabs){display:flex!important;flex-wrap:nowrap!important;gap:7px!important;width:auto!important;margin-inline:-10px!important;padding:2px 10px 9px!important;overflow-x:auto!important;scroll-snap-type:x proximity!important;scrollbar-width:none!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.suite-tabs,.finance-quick-nav,.ar-quick-filters,.upgrade-admin-tabs)::-webkit-scrollbar{display:none!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) :where(.suite-tabs,.finance-quick-nav,.ar-quick-filters,.upgrade-admin-tabs)>*{flex:0 0 auto!important;scroll-snap-align:start!important;white-space:nowrap!important}

  /* Tabelas de consulta viram cartões; tabelas editáveis mantêm rolagem */
  body.mobile-app-v49-ready :where(.table-wrap,.sales-pro-table-wrap,.suite-table-wrap):has(>table[data-mobile-v49="cards"]){overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"]{display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] thead{display:none!important}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] tbody{display:grid!important;gap:10px!important;width:100%!important}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] tr{display:grid!important;width:100%!important;min-width:0!important;padding:5px 13px!important;border:1px solid var(--app-mobile-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 7px 21px rgba(15,43,75,.055)!important}
  body.mobile-app-v49-ready table[data-mobile-v49="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:#304963!important;font-size:12.5px!important;line-height:1.4!important;text-align:right!important;white-space:normal!important}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] td:last-child{border-bottom:0!important}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] td::before{content:attr(data-mobile-v49-label);min-width:0;color:#77879a;font-size:8.5px;font-weight:900;letter-spacing:.055em;line-height:1.25;text-align:left;text-transform:uppercase}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] td>*{max-width:100%;min-width:0}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] td small{display:block!important;white-space:normal!important}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] td.mobile-table-actions{display:flex!important;align-items:stretch!important;justify-content:stretch!important;flex-wrap:wrap!important;gap:7px!important;padding-top:10px!important}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] td.mobile-table-actions::before,
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] td.mobile-table-empty::before{display:none!important}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] td.mobile-table-actions :where(.btn,a,button,form,details){flex:1 1 124px!important;min-width:0!important;margin:0!important}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] td.mobile-table-actions form :where(.btn,button){width:100%!important}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] td.mobile-table-empty{display:block!important;padding:22px 8px!important;text-align:center!important;border:0!important}
  body.mobile-app-v49-ready .mobile-table-scroll{position:relative!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important}
  body.mobile-app-v49-ready .mobile-table-scroll>table[data-mobile-v49="scroll"]{width:max-content!important;min-width:100%!important}
  body.mobile-app-v49-ready .mobile-table-scroll:focus-visible{outline:3px solid color-mix(in srgb,var(--app-mobile-accent) 30%,transparent)!important;outline-offset:3px!important}

  /* Diálogos como telas/painéis do aplicativo */
  body.mobile-app-v49-ready dialog.mobile-app-sheet{width:100vw!important;max-width:100vw!important;height:var(--app-viewport-height,100dvh)!important;max-height:var(--app-viewport-height,100dvh)!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:hidden!important}
  body.mobile-app-v49-ready dialog.mobile-app-sheet::backdrop{background:rgba(4,17,35,.67)!important;backdrop-filter:blur(3px)!important}
  body.mobile-app-v49-ready dialog.mobile-app-sheet>:first-child{width:100%!important;max-width:none!important;max-height:100%!important;margin:0!important;padding:max(16px,var(--app-safe-top)) max(14px,var(--app-safe-right)) calc(18px + var(--app-safe-bottom)) max(14px,var(--app-safe-left))!important;border-radius:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;background:#fff!important}
  body.mobile-app-v49-ready dialog.mobile-app-sheet :where(.quick-dialog-card,.finance-dialog-card,.commercial-help-card,.pdv27-dialog-card,.pdv-camera-card){width:100%!important;max-width:none!important;min-height:100%!important;max-height:none!important;margin:0!important;border-radius:0!important}

  /* Administração */
  body.admin-theme.mobile-app-v49-ready .app-shell,body.admin-theme.mobile-app-v49-ready .main-wrap{display:block!important;width:100%!important;min-width:0!important;min-height:100dvh!important}
  body.admin-theme.mobile-app-v49-ready .topbar{position:sticky!important;top:0!important;z-index:110!important;height:calc(var(--app-mobile-header-height) + var(--app-safe-top))!important;padding:var(--app-safe-top) 14px 0 68px!important;border-bottom:1px solid var(--app-mobile-line)!important;background:rgba(255,255,255,.95)!important;box-shadow:0 6px 22px rgba(14,40,72,.055)!important;backdrop-filter:blur(20px)!important}
  body.admin-theme.mobile-app-v49-ready .topbar h1{max-width:62vw!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:17px!important}
  body.admin-theme.mobile-app-v49-ready .topbar .status-pill{display:none!important}
  body.admin-theme.mobile-app-v49-ready>.mobile-menu{position:fixed!important;left:max(12px,var(--app-safe-left))!important;top:calc(12px + var(--app-safe-top))!important;z-index:155!important;width:44px!important;height:44px!important;border:1px solid var(--app-mobile-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.mobile-app-v49-ready .content{width:100%!important;max-width:840px!important;margin:0 auto!important;padding:12px max(10px,var(--app-safe-right)) calc(var(--app-mobile-nav-height) + var(--app-safe-bottom) + 22px) max(10px,var(--app-safe-left))!important}
  body.admin-theme.mobile-app-v49-ready .admin-sidebar{height:var(--app-viewport-height,100dvh)!important}
  body.admin-theme.mobile-app-v49-ready .admin-mobile-nav{left:max(8px,var(--app-safe-left))!important;right:max(8px,var(--app-safe-right))!important;bottom:calc(7px + var(--app-safe-bottom))!important;height:74px!important}
  body.admin-theme.mobile-app-v49-ready.mobile-keyboard-open .admin-mobile-nav{opacity:0!important;pointer-events:none!important;transform:translateY(calc(100% + 30px))!important}

  /* Loja pública e entrada */
  body.store-page.mobile-app-v49-ready .store-header{position:sticky!important;top:0!important;z-index:90!important;display:flex!important;align-items:center!important;gap:8px!important;min-height:calc(64px + var(--app-safe-top))!important;padding:var(--app-safe-top) 12px 0!important;background:rgba(255,255,255,.95)!important;box-shadow:0 5px 20px rgba(14,40,72,.07)!important;backdrop-filter:blur(18px)!important}
  body.store-page.mobile-app-v49-ready .store-brand{min-width:0!important;flex:1 1 auto!important}
  body.store-page.mobile-app-v49-ready .store-brand b{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  body.store-page.mobile-app-v49-ready .store-header nav{display:flex!important;gap:6px!important;flex:0 0 auto!important}
  body.store-page.mobile-app-v49-ready .store-header nav>a{display:grid!important;place-items:center!important;min-height:42px!important;padding:0 10px!important;border-radius:12px!important}
  body.store-page.mobile-app-v49-ready .store-main{width:100%!important;overflow-x:clip!important}
  body.store-page.mobile-app-v49-ready :where(.store-products,.store-product-detail,.checkout-layout){grid-template-columns:1fr!important;gap:12px!important;padding-inline:10px!important}
  body.store-page.mobile-app-v49-ready .store-footer{padding-bottom:calc(24px + var(--app-safe-bottom))!important}
  body.sales-site.mobile-app-v49-ready .sales-login-card,
  body.sales-site.mobile-app-v49-ready>.login-card{scroll-margin-top:calc(70px + var(--app-safe-top))}

  /* Barra de conectividade sem cobrir comandos */
  body.mobile-app-v49-ready .offline-system-bar{position:fixed!important;left:max(10px,var(--app-safe-left))!important;right:max(10px,var(--app-safe-right))!important;bottom:calc(var(--app-mobile-nav-height) + var(--app-safe-bottom) + 4px)!important;z-index:124!important;width:auto!important;max-width:none!important;border-radius:16px!important;box-shadow:0 12px 32px rgba(9,29,54,.2)!important}
  body.immersive-pdv.mobile-app-v49-ready .offline-system-bar{bottom:calc(84px + var(--app-safe-bottom))!important}
}

@media (max-width:600px){
  body.mobile-app-v49-compact :where(.stats-grid,.maxpdv-kpi-grid,.executive-metrics,.usage-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,.purchase-meta-cards){grid-template-columns:1fr!important}
  body.mobile-app-v49-compact .commercial-content,body.admin-theme.mobile-app-v49-compact .content{padding-inline:9px!important}
  body.mobile-app-v49-compact table[data-mobile-v49="cards"] td{grid-template-columns:minmax(78px,.64fr) minmax(0,1.36fr)!important}
  body.mobile-app-v49-compact :where(.service-item-row,.sale-row){grid-template-columns:1fr!important}
  body.mobile-app-v49-compact .plan-limit-grid{grid-template-columns:1fr!important}
  body.store-page.mobile-app-v49-compact .store-header nav>a:first-child{display:none!important}
}

@media (max-width:370px){
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-page-title h1{max-width:46vw!important;font-size:15px!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-mobile-nav span,
  body.admin-theme.mobile-app-v49-ready .admin-mobile-nav span{font-size:8px!important}
  body.mobile-app-v49-ready table[data-mobile-v49="cards"] td{grid-template-columns:1fr!important;gap:4px!important;text-align:left!important}
}

@media (max-width:900px) and (orientation:landscape) and (max-height:520px){
  :root{--app-mobile-nav-height:68px;--app-mobile-header-height:58px}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-mobile-nav,
  body.admin-theme.mobile-app-v49-ready .admin-mobile-nav{height:58px!important;border-radius:18px!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-mobile-nav :where(a,button),
  body.admin-theme.mobile-app-v49-ready .admin-mobile-nav :where(a,button){min-height:44px!important;grid-template-rows:22px 10px!important}
  body.maxpdv-brand.mobile-app-v49-ready:not(.immersive-pdv) .commercial-mobile-nav .commercial-mobile-sale{min-height:52px!important;margin-top:-12px!important}
}

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