/* PM24 V366 — global mobile viewport and single document scroll.
   Applies to public auth, owner workspace and subscription pages without
   changing business logic. The document (html) is the only page scroller. */
@media (max-width:900px){
  html{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:100%!important;
    margin:0!important;
    padding:0!important;
    overflow-x:clip!important;
    overflow-y:auto!important;
    scrollbar-gutter:auto!important;
    scrollbar-width:none!important;
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar{
    width:0!important;
    height:0!important;
    display:none!important;
  }
  body{
    position:static!important;
    inset:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:100dvh!important;
    height:auto!important;
    margin:0!important;
    overflow-x:clip!important;
    overflow-y:visible!important;
    scrollbar-gutter:auto!important;
    box-sizing:border-box!important;
  }
  body>main.page,
  body>.page,
  body .owner-app-layout,
  body .owner-app-content{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    max-height:none!important;
    margin-left:0!important;
    margin-right:0!important;
    overflow-x:clip!important;
    overflow-y:visible!important;
    scrollbar-gutter:auto!important;
    box-sizing:border-box!important;
  }
  body.owner-shell-page .owner-app-layout,
  body.owner-shell-page .owner-app-content{
    min-height:100dvh!important;
  }
  body.owner-shell-page .owner-page,
  body.app-subscription .page,
  body.public-business-register .pgm-business-auth,
  body.public-business-register .pgm-business-auth-grid,
  body.public-business-register .pgm-business-auth-card-wrap{
    max-width:100%!important;
    min-width:0!important;
    overflow-x:clip!important;
    scrollbar-gutter:auto!important;
    box-sizing:border-box!important;
  }
  body.public-business-register .pgm-business-auth{
    width:100%!important;
    min-height:100dvh!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    overflow-y:visible!important;
  }
  body.public-business-register .pgm-business-auth-grid,
  body.public-business-register .pgm-business-auth-card-wrap,
  body.public-business-register .pgm-business-auth-card{
    width:100%!important;
    height:auto!important;
    max-height:none!important;
  }
  /* Only true drawers, dialogs and horizontal data regions may scroll inside. */
  body .owner-sidebar,
  body dialog,
  body [role="dialog"],
  body .table-wrap{
    scrollbar-gutter:auto!important;
  }
}
