/* Cashback Pro V36.7.170 — narrow desktop: keep the app header visible
   while the page scrolls. The hamburger and drawer stay directly beneath it.
   Wheel input outside the drawer continues to scroll the page (v36.7.168). */
@media (min-width: 420px) and (max-width: 760px) and (hover: hover) and (pointer: fine) {
  html body header.app-header {
    position: sticky !important;
    top: 0 !important;
    inset-block-start: 0 !important;
    transform: none !important;
    z-index: 1810 !important;
    flex-shrink: 0 !important;
  }

  html body #header-menu-row.header-menu-row {
    position: fixed !important;
    top: calc(var(--v170-header-height, 56px) + 7px) !important;
    left: 14px !important;
    right: auto !important;
    z-index: 1805 !important;
  }

  html body #app-sidebar.app-sidebar {
    position: fixed !important;
    top: calc(var(--v170-header-height, 56px) + 54px) !important;
    height: min(78vh, calc(100dvh - var(--v170-header-height, 56px) - 86px)) !important;
    max-height: min(78vh, calc(100dvh - var(--v170-header-height, 56px) - 86px)) !important;
    z-index: 1800 !important;
  }

  /* Header stays visible, so the old "header scrolled away" lift is disabled. */
  html.v169-header-scrolled body #header-menu-row.header-menu-row {
    top: calc(var(--v170-header-height, 56px) + 7px) !important;
  }
  html.v169-header-scrolled body #app-sidebar.app-sidebar {
    top: calc(var(--v170-header-height, 56px) + 54px) !important;
    height: min(78vh, calc(100dvh - var(--v170-header-height, 56px) - 86px)) !important;
    max-height: min(78vh, calc(100dvh - var(--v170-header-height, 56px) - 86px)) !important;
  }
}
