/* 
 * Navbar Scrolling Fix
 * Ensures proper scrolling behavior for the navigation menu
 */

/* Hide horizontal scrollbars and only show vertical when needed */
.navbar-collapse {
  overflow-x: hidden !important;
}

/* Make sure the menu doesn't extend outside its container */
.navbar-collapse.collapse.in {
  max-height: 85vh !important; /* Set max height to 85% of viewport */
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Fix the mobile menu container */
@media (max-width: 768px) {
  .manual-list {
    max-height: 85vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  
  /* Hide horizontal scrollbar */
  .manual-list::-webkit-scrollbar-horizontal {
    display: none;
  }
  
  /* Customize vertical scrollbar */
  .manual-list::-webkit-scrollbar {
    width: 4px;
  }
  
  .manual-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
  }
  
  /* Prevent overflow from inner menus */
  .listitms {
    overflow: hidden !important;
  }
  
  /* Fix panel expansion */
  .panel {
    max-height: none !important;
    overflow: visible !important;
  }
} 