/* RBS Desk v5.1.14 — Mobile Performance Core */
@media (max-width:820px){
  /* Um único viewport e uma única scroll view entre header e Tab Bar. */
  body.portal-client,
  body.portal-client #app,
  body.portal-client .v1813-client-shell,
  body.portal-client .v1813-client-stage{
    height:100dvh!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  body.portal-client .v1813-client-stage{
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;
  }
  body.portal-client .v1813-client-stage > main.page#mainContent,
  body.portal-client .v1813-client-stage > .page{
    height:auto!important;
    block-size:auto!important;
    max-height:none!important;
    min-height:0!important;
    min-block-size:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-y:contain!important;
    touch-action:pan-y!important;
    padding-bottom:max(28px,env(safe-area-inset-bottom))!important;
  }
  body.portal-client .v189-client-groups,
  body.portal-client .v189-client-status-group,
  body.portal-client .v189-client-status-group > div,
  body.portal-client .portal-home,
  body.portal-client .portal-ticket-list,
  body.portal-client .ticket-list{
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    overflow:visible!important;
  }

  /* iOS: menos composição gráfica cara durante navegação e scroll. */
  body.portal-client .page{animation:none!important;transform:none!important}
  body.portal-client .v1813-client-mobile-nav{
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    box-shadow:0 -1px 0 rgba(18,44,68,.08)!important;
  }
  body.portal-client .card,
  body.portal-client .v189-client-ticket{
    box-shadow:0 1px 3px rgba(18,44,68,.05)!important;
  }
  body.portal-client .v189-client-ticket:active{transform:none!important}

  /* Feedback imediato de operações lentas. */
  body.portal-client [aria-busy="true"]{cursor:progress}
  body.portal-client button:disabled{pointer-events:none!important}
}

@media (max-width:820px){
  /* Listas longas: o Safari só compõe os cards próximos ao viewport. */
  body.portal-client .v189-client-ticket,
  body.portal-client .ticket-row,
  body.portal-client .ticket-card{
    content-visibility:auto;
    contain-intrinsic-size:auto 220px;
  }
}
