/* AIOTOR ERP V12.7.9 — primary menu recovery.
   Dropdown-bearing containers must never become clipping/scroll containers.
   Horizontal-scroll prevention applies to business content, not the ERP menu. */
.ai-universal-header,
.ai-universal-header .rt-header-menu,
.ai-universal-header .rt-menu,
.aiotor-runtime-shell .rt-topbar,
.aiotor-runtime-shell .rt-topbar .rt-header-menu,
.aiotor-runtime-shell .rt-topbar .rt-menu {
  overflow:visible !important;
  overflow-x:visible !important;
  overflow-y:visible !important;
  contain:none !important;
}
.ai-universal-header .rt-header-menu,
.aiotor-runtime-shell .rt-topbar .rt-header-menu {
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  min-width:0 !important;
  max-width:100% !important;
}
.ai-universal-header .rt-menu,
.aiotor-runtime-shell .rt-topbar .rt-menu {
  position:relative !important;
}
.ai-universal-header .rt-menu.open,
.aiotor-runtime-shell .rt-topbar .rt-menu.open {
  z-index:12100 !important;
}
.ai-universal-header .rt-menu-panel,
.aiotor-runtime-shell .rt-topbar .rt-menu-panel {
  z-index:12200 !important;
  max-width:min(430px,calc(100vw - 20px)) !important;
}
.ai-universal-header .rt-menu.open > .rt-menu-panel,
.aiotor-runtime-shell .rt-topbar .rt-menu.open > .rt-menu-panel {
  display:grid !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}
/* Never create a horizontal rail around the primary menu. It wraps instead. */
.ai-universal-header .rt-header-menu,
.aiotor-runtime-shell .rt-topbar .rt-header-menu {
  scrollbar-width:none !important;
}
