/* ============================================
   WMS-only: Core System Functions dropdown
   Show all menu items without scrolling.
   Scoped under .wms-header — only affects WMS pages.
   ============================================ */

/* Allow full height when submenu is open (no max-height restriction) */
.wms-header .venus-drawer-accordion-item.is-open .venus-drawer-submenu {
  max-height: none;
}

/* Reduce vertical spacing of dropdown links */
.wms-header .venus-drawer-submenu a {
  padding: 5px 14px;
  font-size: 13px;
  line-height: 1.2;
}

/* Reduce spacing between menu items */
.wms-header .venus-drawer-submenu a + a {
  margin-top: 0;
}

/* ============================================
   Desktop dropdown: Core System Functions
   Three-column layout so all items fit without scrolling.
   ============================================ */

.wms-header .venus-nav-submenu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 18px;
  padding: 10px 16px;
  min-width: 420px;
}

.wms-header .venus-nav-submenu li {
  margin: 0;
}

.wms-header .venus-nav-submenu a {
  display: block;
  padding: 6px 6px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Core System Functions mega menu: 3-column grid (WMS only) */
.wms-header .mega-menu-grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 22px;
}
