/* ALENGKA GO Driver — guaranteed mobile/desktop scrolling */
html:has(body.driver-rebuild-active),
body.driver-rebuild-active {
  overflow: hidden !important;
  height: 100%;
}

body.driver-rebuild-active .dashboard {
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
}

body.driver-rebuild-active .driver-app {
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.driver-rebuild-active .driver-top {
  flex: 0 0 auto !important;
  z-index: 20 !important;
}

body.driver-rebuild-active .driver-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-width: 760px !important;
  width: 100% !important;
  margin: 0 auto !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: 18px 14px 140px !important;
}

/* Home remains genuinely scrollable even when there are no incoming orders. */
body.driver-rebuild-active .driver-home.active {
  min-height: calc(100dvh + 180px) !important;
}

body.driver-rebuild-active .driver-nav {
  z-index: 50 !important;
}

@media (min-width: 761px) {
  body.driver-rebuild-active .driver-main {
    padding-bottom: 120px !important;
  }
}
