/* Cashback Pro V36.7.169 — adaptive menu position after header scroll.
   When the app header leaves the viewport, move the fixed hamburger and drawer
   upward so they stay close to the browser's top navigation area. */
@media (min-width: 420px) and (hover: hover) and (pointer: fine) {
  html.v169-header-scrolled body #header-menu-row.header-menu-row {
    top: 8px !important;
  }

  html.v169-header-scrolled body #app-sidebar.app-sidebar {
    top: 50px !important;
    height: min(78vh, calc(100dvh - 62px)) !important;
    max-height: min(78vh, calc(100dvh - 62px)) !important;
  }

  /* Keep the hamburger hit area stable while the browser window is resized. */
  html body #header-menu-row #mobile-menu-toggle.mobile-menu-toggle {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
  }
}
