/* Dashboard sidebar viewport correction, 2026-09-09.
 * Keep the native scrollable menu and Logout handler. Safari's 100vh can be
 * taller than the visible app while browser bars are open; the app uses dvh.
 */
@supports (height: 100dvh) {
  .custom-sidebar.navbar-visible,
  .custom-sidebar.navbar-hidden,
  .custom-sidebar.sidebar-visible,
  .custom-sidebar.sidebar-hidden {
    height: calc(100dvh - var(--f7-navbar-height));
  }
}

.custom-sidebar {
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
}

.custom-sidebar > .sidebar-header,
.custom-sidebar > .sidebar-footer {
  flex-shrink: 0;
}

.custom-sidebar > .sidebar-menu {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
