/*
 BeeTech V2 scroll correction:
 Use normal document scrolling for the active public page. The previous
 fixed-height nested scroll containers could stop before the last content
 cleared the floating bottom dock.
*/
html {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
}
body:not(.app-body):not(.portal-body):not(.theme-staff) {
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-bottom: calc(190px + env(safe-area-inset-bottom, 0px)) !important;
}
body:not(.app-body):not(.portal-body):not(.theme-staff) main {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  overflow: visible !important;
}
body:not(.app-body):not(.portal-body):not(.theme-staff) main > .page {
  box-sizing: border-box !important;
  display: none !important;
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  overflow: visible !important;
}
body:not(.app-body):not(.portal-body):not(.theme-staff) main > .page.active {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
}
body:not(.app-body):not(.portal-body):not(.theme-staff) main > .page.active > .page-content,
body:not(.app-body):not(.portal-body):not(.theme-staff) main > #home.page.active > .home-content {
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: calc(210px + env(safe-area-inset-bottom, 0px)) !important;
}
/* Extra physical scroll space guarantees the final line/card can clear the dock. */
body:not(.app-body):not(.portal-body):not(.theme-staff) main > .page.active::after {
  content: "";
  display: block !important;
  width: 100% !important;
  height: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
  min-height: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
  pointer-events: none !important;
}
.beetech-dock {
  position: fixed !important;
  z-index: 100300 !important;
  left: 50% !important;
  bottom: 0 !important;
}
@media (max-width: 800px) {
  body:not(.app-body):not(.portal-body):not(.theme-staff) {
    padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:not(.app-body):not(.portal-body):not(.theme-staff) main > .page.active > .page-content,
  body:not(.app-body):not(.portal-body):not(.theme-staff) main > #home.page.active > .home-content {
    padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:not(.app-body):not(.portal-body):not(.theme-staff) main > .page.active::after {
    height: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
