/* TheaCRM v2.8.588 – Android Chrome standalone scroll hardening.
   Aktivuje se jen pro nainstalovanou PWA z Google Chrome, ne pro Samsung Internet. */
@media (max-width: 991.98px) {
  html.thea-pwa-standalone.thea-pwa-chrome-android:not(.thea-pwa-overlay-open) {
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  html.thea-pwa-standalone.thea-pwa-chrome-android:not(.thea-pwa-overlay-open) body.thea-app-shell {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: var(--thea-pwa-viewport-height, 100dvh) !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y pinch-zoom !important;
    -webkit-overflow-scrolling: touch;
  }

  html.thea-pwa-standalone.thea-pwa-chrome-android:not(.thea-pwa-overlay-open) body.thea-app-shell :is(#mainContent, .content, main.content, .main-content) {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    height: auto !important;
    min-height: calc(var(--thea-pwa-viewport-height, 100dvh) - var(--navbar-height, 60px)) !important;
    max-height: none !important;
    overflow-y: visible !important;
    touch-action: pan-y pinch-zoom !important;
    -webkit-overflow-scrolling: touch;
  }
}
