/*
 * Partner portal aside menu height fix.
 *
 * The Keenthemes `KTScroll` component sets an explicit inline pixel height on
 * #kt_aside_menu_wrapper (viewport − logo − footer − 20px offset). That value
 * under-shoots the flex space its container actually provides and ignores
 * #kt_aside_menu's own top margin, leaving dead space below the menu and
 * hiding the lower items behind the (hover-hidden) scrollbar.
 *
 * Let flexbox own the height instead: the wrapper fills the space between the
 * logo and footer and scrolls only when the list is taller than the viewport.
 * `height: auto !important` is needed to beat KTScroll's inline style. This
 * file is loaded after style.bundle.css in base.html.
 *
 * Only relevant at >=lg, where the aside is visible (display:none below lg).
 */
@media (min-width: 992px) {
  .aside.aside-default .aside-menu {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  .aside.aside-default #kt_aside_menu {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  .aside.aside-default #kt_aside_menu_wrapper {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    overflow-y: auto;
  }
}
