/* Driver paystubs own their viewport; the header stays outside the scroll. */
html.mx-driver-paystub-open .bottom-nav { visibility: hidden; pointer-events: none; }
.driver-paystub-viewer-backdrop {
  box-sizing: border-box;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
.driver-paystub-viewer-backdrop .driver-paystub-viewer {
  min-height: 0;
  height: 100%;
  max-height: 100%;
}
.driver-paystub-viewer > header { flex: 0 0 auto; }
.driver-paystub-viewer > .structured-paystub-document,
.driver-paystub-viewer > .security-return-document,
.driver-paystub-viewer > .paystub-document {
  flex: 1 1 0;
  min-height: 0;
}
.driver-paystub-viewer > .structured-paystub-document,
.driver-paystub-viewer > .security-return-document {
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}
