.navbar-nav.me-auto {
    width: max-content !important;
}

nav.menu-main {
    overflow-x: auto;
    /* Ẩn scrollbar cho Firefox */
    scrollbar-width: none;
    /* Ẩn scrollbar cho IE và Edge cũ */
    -ms-overflow-style: none;
}
.nav-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#mainNav {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

    #mainNav::-webkit-scrollbar {
        display: none;
    }

.nav-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    white-space: nowrap;
}



    .nav-item:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

/* Nút mũi tên */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

    .nav-arrow:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .nav-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }

.nav-arrow-left {
    left: 10px;
}

.nav-arrow-right {
    right: 10px;
}

/* Hiện mũi tên khi hover vào wrapper */
.nav-wrapper:hover .nav-arrow {
    opacity: 1;
    visibility: visible;
}

/* Ẩn mũi tên khi không thể cuộn */
.nav-arrow.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.info {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .info p {
        margin: 10px 0;
        color: #666;
    }

@media (max-width:1200px) and (min-width:800px) {
    h5.tablefontsize, .card-header h5 {
        font-size: 18px !important;
    }

    div.menuTrai {
        min-width: 200px !important;
    }

    .mobistlkhoi1 {
        flex-direction: column !important;
    }

    div.col-table-ipad {
        width: 50%;
        margin-bottom: 7px;
    }

    div.col-table-ipad100 {
        width: 100%;
        margin-bottom: 7px;
        margin-top: 5px;
    }

    a.text-menu-header {
        font-size: 11px;
    }

    .MenuTrai a.BarLinkv3, .MenuTrai a.BarDropdownItemv2 p, .tim-kiem-nang-cao a, .tim-kiem-nang-cao span, .Content-VanBan Button, .Content-VanBan button, .Content-VanBan select, .Content-VanBan input, .Content-VanBan td span {
        font-size: 13px;
        font: 500 12px / 18px Arial;
    }

    .Content-VanBan select {
        height: 31px !important;
    }

    .content-body div, a.BarDropdownTogglev2 {
        font-size: 13px;
        font-family: Arial;
    }

    .MenuTrai a.BarDropdownItemv2 p {
        padding-left: 10px;
    }
}
