/* FINAL DRIVER SCROLL OVERRIDE */
html,
body {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.driver-rebuild-active,
body.driver-rebuild-active #root,
body.driver-rebuild-active .dashboard {
  height: auto !important;
  min-height: 100vh !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

body.driver-rebuild-active .driver-app {
  position: relative !important;
  display: block !important;
  height: auto !important;
  min-height: 140vh !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 130px !important;
}

body.driver-rebuild-active .driver-main {
  position: relative !important;
  height: auto !important;
  min-height: 110vh !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 180px !important;
  touch-action: pan-y !important;
}

body.driver-rebuild-active .driver-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

body.driver-rebuild-active .driver-nav {
  position: fixed !important;
  bottom: 0 !important;
  z-index: 200 !important;
}

/* Ensure touch scrolling is never intercepted by the Driver shell. */
body.driver-rebuild-active * {
  touch-action: auto;
}
body.driver-rebuild-active .driver-main,
body.driver-rebuild-active .driver-home,
body.driver-rebuild-active .driver-section {
  touch-action: pan-y !important;
}
