/* Tablet Menu Scrolling Fix */
/* This fixes the scrolling issue in the menu on tablet devices (768px - 1199px) */

@media (max-width: 1199.98px) and (min-width: 768px) {
    /* Allow menu content to scroll when expanded on tablets */
    .layout-menu-expanded .layout-menu {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Ensure menu inner content can scroll */
    .layout-menu-expanded .layout-menu .menu-inner {
        overflow-y: auto !important;
        max-height: 100vh !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 2rem !important;
    }
    
    /* Keep body overflow hidden but allow menu to scroll */
    .layout-menu-expanded body {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    /* Fix menu vertical scrollbar styling for tablets */
    .layout-menu .menu-inner::-webkit-scrollbar {
        width: 6px !important;
    }
    
    .layout-menu .menu-inner::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1) !important;
        border-radius: 3px !important;
    }
    
    .layout-menu .menu-inner::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 3px !important;
    }
    
    .layout-menu .menu-inner::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.5) !important;
    }
    
    /* Ensure proper touch scrolling behavior */
    .layout-menu .menu-inner {
        scroll-behavior: smooth !important;
        touch-action: pan-y !important;
    }
}

/* Mobile devices - ensure this still works as expected */
@media (max-width: 767px) {
    .layout-menu-expanded .layout-menu {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .layout-menu-expanded .layout-menu .menu-inner {
        overflow-y: auto !important;
        max-height: 100vh !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 2rem !important;
    }
}