﻿@media (max-width: 768px), (min-width: 768px) and (max-width: 1024px),(min-width: 1024px) and (max-width: 1200px) {
    :root {
        --avn_content-width: calc(100vw -4px); /* chiều ngang màn hình */
        --avn_footer-height: 12vh;
        --avn-screen-width: 100vw;
    }

    .modal.show {
        padding-bottom: 5rem;
    }

    .avn_full-mobile {
        width: 100vw !important;
    }

    .step-footer .nav-buttons {
        margin-top: -100px;
    }

    .m-lg-0 {
        margin: 0 !important;
    }

    .article-image {
        max-height: 80%;
        width: 150px;
    }

    .step-des, .textTooltip, .show-des, .custom-tooltip, .sub-text-th {
        display: none !important;
    }

    .show-mobile {
        display: block;
    }

    .menu-icon {
        font-size: 28px;
        padding: 10px 15px;
        cursor: pointer;
    }

    .sub-des-mobile {
        font-size: 0.8rem;
        padding-top: 2px;
    }

    .breadcrumb-tool {
        position: fixed;
        bottom: 0;
        width: 100%;
        left: 0;
        z-index: 9999999 !important;
    }

        .breadcrumb-tool .breadcrumb-wrapper {
            padding: 0 8px !important;
            width: 100%;
        }

            .breadcrumb-tool .breadcrumb-wrapper .breadcrumb-menu {
                background-color: #fff;
                margin: 0;
                border-radius: 0;
                padding: 0;
                display: flex;
            }

                .breadcrumb-tool .breadcrumb-wrapper .breadcrumb-menu .breadcrumb-menu-item {
                    text-decoration: none;
                    flex: 1;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-right: 1px solid #e7e7e7;
                    height: 65px;
                    flex-direction: column;
                    border-left: 1px solid #e7e7e7;
                }

                    .breadcrumb-tool .breadcrumb-wrapper .breadcrumb-menu .breadcrumb-menu-item img {
                        height: 25px;
                    }

                    .breadcrumb-tool .breadcrumb-wrapper .breadcrumb-menu .breadcrumb-menu-item .breadcrumb-menu-item-label {
                        font-size: 8px;
                        text-align: center;
                        margin-top: 5px;
                        white-space: pre-line;
                        color: #333;
                    }

    .mobile-menu {
        display: unset;
        position: fixed;
        top: 0;
        left: -100%; /* Ẩn ngoài màn hình */
        width: 100%; /* Chiều ngang bằng màn hình */
        height: 100vh;
        /*        background-color: #fae6e6;*/
        background-color: #fff;
        box-shadow: 2px 0 8px rgba(0,0,0,0.3);
        transition: left 0.3s ease-in-out;
        z-index: 9999999;
        font-size: 14px;
        font-weight: 500;
        color: #404557;
        overflow-y: auto;
    }

        .mobile-menu.active {
            left: 0; /* Trượt vào màn hình */
        }

        .mobile-menu .menu-header {
            display: flex;
            justify-content: end;
            align-items: center;
            padding: 15px;
            /*            border-bottom: 1px solid #ddd;*/
        }

        .mobile-menu .btn-regis {
            width: 92%;
            margin: 4%;
            padding: 0.6rem;
        }

        .mobile-menu .user-info-mobile {
            padding: 0px 15px 0px 15px;
        }

            .mobile-menu .user-info-mobile hr {
                margin-bottom: 10px !important;
            }

            .mobile-menu .user-info-mobile i {
                margin-right: 0.5rem;
                font-size: 1.5rem
            }


        .mobile-menu #closeMenu {
            border: none;
            background-color: transparent;
            font-size: 1.5rem;
            font-weight: bold;
            color: #333;
        }

        .mobile-menu ul {
            list-style: none;
            margin: 0;
            padding: 0px 11px 0px 11px;
            display: grid;
            justify-content: normal;
        }

        .mobile-menu li {
            margin-bottom: 15px;
        }

        .mobile-menu a {
            text-decoration: none;
            color: #333;
        }

            .mobile-menu a:hover {
                color: #ed1c25;
                cursor: pointer;
            }

        .mobile-menu .nav-item .nav-link {
            color: #333;
            font-size: 1.1rem;
            font-weight: 500;
        }

    #qnaContent .pin-badge {
        display: none !important;
    }

    .sidebar-nav .nav-group-mobile {
        /*        background-color: #FFF6F6;
        padding: 10px 8px 10px 8px;
        border-radius: 8px;*/
    }

    .sidebar-nav .nav-group-toggle-mobile {
        /*        background-color: #FFF6F6;*/
        padding: 16px 8px 16px 8px !important;
        border-radius: 8px !important;
        color: #404557 !important;
        text-transform: uppercase;
        font-weight: 600;
        font-size: 14px !important;
    }

    .sidebar-nav .nav-group-mobile .nav-group-items .nav-item-border {
        margin-bottom: 20px !important;
        width: 94%;
        border: 1px dashed #cccccc; /* nhạt */
    }

    .nav-link.active {
        background-color: #ED1C25 !important;
        color: white !important;
    }

    .nav-group .nav-link.active {
        background-color: unset !important;
        color: #ED1C25 !important;
        font-weight: 600;
    }

    .sidebar-nav .nav-group-mobile .nav-link:hover {
        background: #ed1c25 !important;
        color: white !important;
    }

    .sidebar-nav .nav-group-mobile .nav-group-items .nav-link:hover {
        background: none !important;
        color: #ed1c25 !important;
        border-radius: 8px !important;
    }

    .sidebar-nav .nav-group.show {
        background-color: #fff !important;
    }

    /*    .sidebar-nav .nav-group .nav-group-toggle::after {
        transform: scale(1.5) rotate(-90deg) !important;
    }*/

    .question-group .nav-group-toggle::after {
        transform: scale(1.5) rotate(0deg) !important;
    }


    .sidebar-nav .nav-group:not(.question-group) .nav-group-toggle::after {
        transform: scale(1.5) rotate(-90deg) !important;
    }

    .sidebar-nav .nav-group .nav-group-toggle-bottom-top::after {
        transform: scale(1.5) rotate(-90deg) !important;
    }

    .sidebar-nav .nav-group.show > .nav-group-toggle::after {
        transform: scale(1.5) rotate(180deg) !important;
    }

    .sidebar-nav .nav-group:not(.question-group).show > .nav-group-toggle::after {
        transform: scale(1.5) rotate(0deg) !important;
    }

    .sidebar-nav .nav-group .nav-group-toggle-mobile-bottom-top::after {
        background: #404557 !important
    }

    .sidebar-nav .nav-group.show > .nav-group-toggle-mobile {
        background-color: #FFF6F6 !important;
        color: #ED1C25 !important;
    }

        .sidebar-nav .nav-group.show > .nav-group-toggle-mobile::after {
            background-color: #FFF6F6 !important;
            color: #ED1C25 !important;
        }

        .sidebar-nav .nav-group.show > .nav-group-toggle-mobile::after {
            background-color: #ED1C25 !important;
            transform: scale(1.5) rotate(-180deg);
            transform-origin: center;
        }

    .nav-group-mobile .menu-group-title {
        font-size: 12px !important;
        margin: 0px !important;
        min-width: 300px;
        width: 100%;
        text-align: start;
    }

    .nav-group-mobile .nav-group-items .nav-item .nav-link {
        color: #404557 !important;
        text-transform: uppercase;
        font-weight: 500;
        padding: 16px 8px 16px 8px !important;
        font-size: 14px !important;
        text-align: start;
    }

    .nav-group-mobile .nav-group-items {
        background-color: #fff !important;
    }

    .sub_menu.active {
        color: #ED1C25 !important;
    }

    .navigation > a {
        display: block;
        padding: 10px;
        color: #333;
        text-decoration: none;
    }

        .navigation > a:hover {
            background-color: #f2f2f2;
        }

    .menu-mobile, .step-mobile {
        display: block;
    }

    tr.dtrg-start {
        display: contents !important;
    }

    .avn_body {
        background: unset;
        height: auto;
    }

    .header-container {
        margin-bottom: unset;
        background-color: white;
        /*        min-height: var(--avn_header-height);*/
    }

    .dropdown-menu-mobile {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%; /* Aligns below the parent */
        right: 0;
        width: 280px;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #ddd;
        border-radius: 5px;
        z-index: 9999;
        padding: 0;
    }

        .dropdown-menu-mobile ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

            .dropdown-menu-mobile ul li {
                padding: 5px;
                font-size: 16px;
                display: flex;
                align-items: center;
                color: #333;
                /* border-bottom: 1px solid #ddd; */
                transition: background-color 0.3s ease;
            }

                .dropdown-menu-mobile ul li:hover {
                    color: red;
                    background-color: #FFF0F0;
                }

                .dropdown-menu-mobile ul li:last-child {
                    border-bottom: none;
                }

                .dropdown-menu-mobile ul li i {
                    margin-right: 10px;
                    color: #a98e8e;
                }

                .dropdown-menu-mobile ul li a {
                    text-decoration: none;
                    color: inherit;
                    flex-grow: 1;
                }

                .dropdown-menu-mobile ul li:hover {
                    background-color: #FFF0F0;
                    cursor: pointer;
                }

        .dropdown-menu-mobile.login-none {
            width: 150px !important;
        }

    .breadcrumb-item a, .breadcrumb-item span {
        font-size: 1.1rem !important;
    }

    .menu-mobile-left .dropdown-mobile_searching {
        display: none;
    }

        .menu-mobile-left .dropdown-mobile_searching.show {
            display: unset;
            width: 100% !important;
            /* right: 0px !important; */
            right: 0px !important;
            top: 45px !important;
            position: absolute;
            z-index: 1000;
            min-width: 10rem;
            border-radius: 5px;
            background-color: white;
        }

    .menu-mobile-left #search-input-mobile-modal {
        width: 95vw !important;
    }

    .menu-mobile-left .input-group {
        width: 100%;
        margin: auto;
        margin-top: 6px;
        border-radius: 10px;
    }

        .menu-mobile-left .input-group .search_group {
            display: flex;
            width: 100%;
        }

            .menu-mobile-left .input-group .search_group .form-control {
                width: 100%;
                border-radius: 10px !important;
                padding: 8px;
                margin: 0 8px;
            }

            .menu-mobile-left .input-group .search_group .button_search {
                border-radius: 10px !important;
                padding: 7px 12px;
                margin-right: 35px;
            }

                .menu-mobile-left .input-group .search_group .button_search:hover {
                    transition: none !important;
                    border: none;
                }

                .menu-mobile-left .input-group .search_group .button_search i {
                    margin: auto;
                }

        .menu-mobile-left .input-group .icon-close {
            position: absolute;
            /* right: 175px; */
            right: 11px;
            font-size: 20px;
        }

    .menu-mobile-left .search_group .group_container h4 {
        margin-left: 9px;
    }

    .menu-mobile-left .search_group .group_container .group-items:hover {
        background: rgba(0, 0, 0, 0.1); /* màu đen nhẹ */
        transition: opacity 0.3s ease;
    }

    .menu-mobile-left .search_group {
        height: 30px !important;
    }

    .avn_top {
        height: auto;
        display: flex;
        flex-direction: column-reverse;
        margin: 0px;
    }

        .avn_top .avn_top_logo, .avn_top .avn_top_logo2 {
            flex: unset;
            max-width: unset;
            width: 100%;
            margin: 0.5rem 0;
        }

        .avn_top .avn_top_logo {
            background-size: auto 61% !important; /* giữ tỉ lệ width tự động, giảm height còn 50px */
            background-position: center center;
            background-position-x: 40%;
            aspect-ratio: 25/3;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }

            .avn_top .avn_top_logo .menu-mobile {
                display: flex;
                justify-content: center;
                align-items: center;
            }

                .avn_top .avn_top_logo .menu-mobile i {
                    font-size: 2rem;
                    margin: 0.3rem;
                }

            .avn_top .avn_top_logo .menu-mobile-left {
                margin-right: 0.1rem;
                cursor: pointer;
            }

                .avn_top .avn_top_logo .menu-mobile-left i, .avn_top .avn_top_logo .menu-mobile-left svg {
                    font-size: 18px;
                    color: #333;
                }

                .avn_top .avn_top_logo .menu-mobile-left svg {
                    width: 20px;
                    height: 20px;
                    color: #333;
                    margin-left: 4px !important;
                    margin-right: 7px !important;
                }

                .avn_top .avn_top_logo .menu-mobile-left .menu-noti-count {
                    font-size: 0.7rem;
                    left: 1rem;
                }

            .avn_top .avn_top_logo .menu-mobile-right {
                margin-left: 2rem;
                cursor: pointer;
            }

        .avn_top .avn_top_logo2 {
            background-position: center center;
            /*            margin: 0.2rem 0px;*/
            background-size: auto 56px !important; /* giữ tỉ lệ width tự động, giảm height còn 50px */
        }

            .avn_top .avn_top_logo2 a {
                width: 29%;
                margin: 0 2% !important;
            }

    .avn_menu_mid {
        display: none !important;
    }

    .pen_overlay, .divider-horizontal {
        display: none;
    }

    .wrapper {
        overflow: hidden;
    }

    .avn_body {
        margin-top: 10px;
    }

    .avn_content {
        margin: 2px;
        padding: 0.2rem;
        border: solid 0.5rem #312920;
        height: auto;
    }

    .avn_footer {
        display: flex;
        justify-content: center;
        margin-top: 10px;
        margin-bottom: 26px;
    }

    .avn_signal {
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
    }

    .sidebar {
        position: relative;
        margin: auto !important;
        height: auto !important;
    }

    .div-sidebar-mobile {
        height: auto !important;
        margin-bottom: 1rem;
    }

    .col-sidebar, .col-content-body {
        width: 100%;
    }

    .thumnnail-container {
        display: grid !important;
        justify-items: center;
    }

        .thumnnail-container img {
            width: 193px !important;
            height: 120px !important;
        }

    .listSampleKitchen {
        max-height: unset;
    }

        .listSampleKitchen .sampleKitchen .title {
            font-size: 1.2rem !important;
            text-align: justify;
        }

    .training-document .ThumbnailImage {
        aspect-ratio: unset;
    }

    .menu-noti-count-mobile {
        color: white;
        position: absolute;
        top: -12px;
        left: 1rem;
        border: solid 1px #fff;
        border-radius: 30px;
        padding: 2px 6px;
        font-weight: 600;
        font-size: 0.9rem;
        background-color: #da0012;
    }

    .article-container .article-header {
        display: grid;
        align-items: center;
    }

    .div1,
    .div2,
    .div3,
    .div4 {
        border-radius: 16px;
        box-shadow: 0 0.5rem 1rem rgba(8, 10, 12, 0.15);
    }

        .div1 .row {
            margin: auto;
        }
    /*
    .list-articles .card{
        padding: 0px !important;
        height: 366px;
        width: 100%;
    }*/
    /*        .list-articles .card .card-content {
            flex-direction: column;
            height: 100%;
        }*/

    /*            .list-articles .card .card-content .article-image {
                height: 249px;
                width: 100%;
                border-bottom-left-radius: 0px;
                border-bottom-right-radius: 0px;
                object-fit: fill !important;
            }
            .list-articles .card .card-content .card-feature {
                text-align: center;
                min-width: 286px;
                width: 100%;
                display: flex;
                flex-direction: column;
                justify-content: flex-end;
                margin: 0px !important;
            }
        .list-articles .card .card-content .article-title {
            margin-top: 8px;
            text-align: justify;
            margin-left: 10px;
            margin-right: 10px;
        }
            .list-articles .card .card-content .card-feature button {
                margin-bottom: 10px;
                margin-left: 10px;
                margin-right: 10px;
            }*/

    /*    .list-articles .group-header-article {
        display: flex;
        flex-direction: column;
    }

        .list-articles .group-header-article .group-article {
            margin: 0px !important;
            margin-bottom: 10px !important;
        }

        .list-articles .group-header-article .article-detail-img {
            width: 310px;
            height: 249px;
            border-radius: 8px !important;
            border: none;
            object-fit: fill !important;
            padding: 0px !important;
        }

        .list-articles .group-header-article .article-detail-title {
            text-align: justify;
        }
*/

    .group-content-related {
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
        border-radius: 8px;
    }

    .label-required::before {
        content: unset !important;
    }

    .label-required::after {
        content: '*';
        margin-left: 8px;
        color: red;
    }
    /*    .content .title{
        text-align: center;
        margin: 10px 0px 10px 0px;
    }*/

    .bmi-section {
        padding: 2rem 1rem 2rem 1rem;
    }

    .bmi-calc-section .bmi-div-info {
        box-shadow: none !important;
    }

    .button-cal-bmi {
        width: 100%;
    }

    .bmi-calc-section .bmi-div-info:nth-child(3) {
        /*            background-color: white;
            width: 300px;
            margin: auto;
            margin-bottom: 10px;
            border-radius: 8px;*/
    }

    #gender, #weight, #height {
        padding: 0.575rem 0.75rem !important;
    }

    #date {
        /*        padding: 0.475rem 0.75rem !important;*/
    }

    .nutritionEducation {
        margin: auto;
    }

    .project-description {
        font-weight: 600 !important;
        margin: 0px;
        margin-bottom: 10px;
    }

    .project-image-container {
        box-shadow: 2px 0 8px rgba(0,0,0,0.3);
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .introduction .checklist {
        margin: 0px 16px 0px 16px !important;
        padding: 0px !important;
    }

        .introduction .checklist::before {
            display: none !important;
        }

    .checklist .item {
        border: solid 2px #EFEEEE;
        border-radius: 15px;
        display: flex;
        padding: 10px 0px 10px 10px;
    }

    .introduction .item::before {
        position: unset !important;
        margin-right: 10px;
        width: 2.5rem;
        height: 2.5rem;
    }

    .introduction .item .content .title {
        text-align: start;
    }

    .section-title .menu-mobile {
        margin-bottom: 10px;
    }

    .carousel-description {
        width: 100%;
        text-align: center !important;
    }

    .video-div1 {
        margin-bottom: 10px;
    }

    .video-div3 button {
        margin-top: 10px;
    }

    .section-title {
        margin-bottom: 10px;
    }

    .snack-menu label {
        margin-top: 10px !important;
        margin-bottom: 22px;
    }

    .label-instruct, .content p {
        word-wrap: break-word;
        word-break: break-word; /* mạnh hơn, chia từ nếu quá dài */
        white-space: normal; /* đảm bảo xuống dòng */
    }

    .poster, .schoolHealth {
        height: unset;
    }

        .poster .content {
            height: unset !important;
        }

        .poster .listRelated {
            max-height: 460px !important;
            height: unset !important;
        }

        .poster .listRelatedVideo {
            max-height: 420px !important;
            height: unset !important;
        }

        .poster .relatedPoster {
            border: 0px !important;
        }

            .poster .relatedPoster .title-related {
                margin-left: 10px !important;
            }

        .poster .relatedTitle {
            font-size: 14px !important;
        }

    .border-content {
        border: none !important;
        border-radius: 15px !important;
        box-shadow: 0 0.5rem 1rem rgba(8, 10, 12, 0.15) !important;
        /*        height: fit-content !important;*/
    }

    .traditional-corner .title,
    .training-document .title {
        text-align: center;
        text-transform: uppercase;
        margin-bottom: 15px;
    }

    .family-group .list-articles-wrapper,
    .family-list .list-articles-wrapper,
    .vegetable-list .list-articles-wrapper,
    .vegetable-group .list-articles-wrapper,
    .document-group .list-articles-wrapper,
    .news-group .list-articles-wrapper {
        box-shadow: none !important;
        border: 0px !important;
        border-radius: 0px !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }

    .long-placeholder::placeholder {
        white-space: pre-wrap;
        line-height: 1.2;
    }

    .calc-bmi label {
        /*        margin-left: 10px;*/
    }

    .calc-bmi .div-bmi p {
        text-align: justify !important;
        margin-left: 0px !important;
        margin-right: 0px !important;
    }

    .calc-bmi .div-bmi button {
        text-align: start !important;
    }

    #StudentTable_wrapper .dt-length {
        margin-bottom: 10px;
        text-align: left;
    }

    .question-group .nav-group-toggle::after {
        transform: scale(1.5) rotate(0deg) !important;
    }

    .avn_menu_mid .navigation .avn_menu-active,
    .avn_menu_mid .navigation:hover,
    .avn_login:hover,
    .menu-notification-icon:hover {
        background: unset !important;
        top: 0px !important;
    }

    .ck-content figure {
        width: 100% !important;
    }

    .ts-dropdown {
        max-width: 200px;
        width: 100% !important;
    }

    .menu-from-dish .select-week-mobile {
        border: solid 1px rgba(0,0,0,0.3);
        margin: 5px;
        border-radius: 1rem;
        box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.2);
        display: flex;
        justify-content: space-between;
        padding: 1.1rem 0.5rem;
    }

        .menu-from-dish .select-week-mobile button {
            margin: auto;
            padding: 7px 15px !important;
        }

    .menu-from-dish .card-view, .menu-from-dish .card-button {
        display: block;
    }

    .menu-from-dish .table-container {
        display: none;
    }

    .menu-from-dish .container-filter {
        border: solid 1px rgba(0,0,0,0.1);
        margin: 5px;
        border-radius: 1rem;
        box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
    }

        .menu-from-dish .container-filter .mobile-container-filter {
            display: flex !important;
            flex-direction: row !important;
            justify-content: flex-start !important;
        }

            .menu-from-dish .container-filter .mobile-container-filter label {
                width: 30% !important;
                margin-inline: 0.5rem !important;
                margin: auto;
            }

            .menu-from-dish .container-filter .mobile-container-filter select {
                width: 70% !important;
                margin-inline: 0.5rem !important;
                margin: auto;
            }

    .menu-from-dish .tab-content .teleport-target .select2-selection {
        min-height: 30px;
    }

    .menu-from-dish .tab-content .teleport-target .select2-selection__arrow {
        top: 1px !important;
    }

    .menu-from-dish .tab-content .card-dish label {
        color: black;
        font-weight: 600;
    }

    .menu-from-dish .select-week button {
        padding: 8px 12px 24px 12px;
    }

    .day-on-week-select input {
        border: solid 1px #ed1c25;
        font-size: 1.1rem;
    }

    .menu-from-dish .card-view .week-on-month {
        display: flex;
        justify-content: space-between;
        border: solid 1px rgba(0,0,0,0.3);
        margin: 5px;
        border-radius: 10px;
        box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.1);
        padding: 1rem 0.5rem;
    }

        .menu-from-dish .card-view .week-on-month .lable-select, .menu-from-dish .card-view .day-on-week .lable-select {
            border: solid 1px #bbbbbb;
            border-radius: 2rem;
            padding: 10px 17px;
            margin: 2px;
        }

            .menu-from-dish .card-view .week-on-month .lable-select.active, .menu-from-dish .card-view .day-on-week .lable-select.active {
                border: solid 1px #ed1c25;
                background-color: #fff0f0;
                color: #ed1c25;
            }

    .menu-from-dish .card-view .day-on-week {
        border: solid 1px rgba(0,0,0,0.1);
        margin: 5px;
        border-radius: 10px;
        box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.1);
        padding: 1rem 0.5rem;
    }

        .menu-from-dish .card-view .day-on-week .day-on-week-select {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .menu-from-dish .card-view .day-on-week .card-dish {
            border-radius: 8px;
            padding: 10px 17px;
            margin: 2px;
            width: 100%;
            display: flex;
            border: solid 1px rgba(0,0,0,0.1);
            margin-bottom: 15px;
        }

            .menu-from-dish .card-view .day-on-week .card-dish .img-dish {
                width: 30%;
                aspect-ratio: 4 / 3;
                object-fit: cover;
                margin-right: 10px;
                border-radius: 8px;
            }

            .menu-from-dish .card-view .day-on-week .card-dish .infor-dish {
                display: flex;
                flex-direction: column;
                justify-content: space-around;
            }

    .menu-from-dish .card-view-dish .card-dish {
        margin: 7px 5px;
        padding: 10px 15px;
        border: solid 1px rgba(0,0,0,0.1);
        border-radius: 8px;
        box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.1);
    }

        .menu-from-dish .card-view-dish .card-dish select {
            padding: 7px 10px;
        }

    .menu-from-dish .card-view-dish .day-on-week .day-on-week-select {
        margin-bottom: 0px;
    }

    .menu-from-dish .responsive-actions {
        display: flex;
        justify-content: flex-end;
        flex-direction: column;
        margin-bottom: 0px !important;
    }

        .menu-from-dish .responsive-actions button {
            border-radius: 5px;
            font-size: 1.1rem;
            padding: 8px 15px;
            text-wrap: nowrap;
            max-height: 3rem;
            cursor: pointer;
            gap: 4px;
            font-weight: 600;
            width: 87%;
            margin-bottom: 10px;
            justify-content: center;
        }

    .menu-from-dish .card-button {
        display: flex;
        justify-content: space-between;
        width: 90%;
    }

        .menu-from-dish .card-button button {
            border-radius: 5px;
            font-size: 1.1rem;
            padding: 8px 2px;
            text-wrap: nowrap;
            max-height: 3rem;
            cursor: pointer;
            gap: 4px;
            font-weight: 600;
            width: 48%;
        }

            .menu-from-dish .card-button button img {
                height: 1.5rem;
            }

            .menu-from-dish .card-button button:hover img {
                filter: brightness(0) invert(1);
            }

    #material-substitution-modal .sub-text-th, #material-substitution-modal .custom-tooltip {
        display: none;
    }

    #material-substitution-modal .modal-header {
        display: flex;
        justify-content: center;
        align-items: center;
    }

        #material-substitution-modal .modal-header .modal-title {
            margin-right: auto !important;
            margin: auto;
        }

    #material-substitution-modal .modal-body .title {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-content: center;
        align-items: center;
        line-height: 1.5;
    }

    #material-substitution-modal .modal-body .row.g-2.my-2 {
        flex-direction: row !important;
        justify-content: space-between !important;
    }

        #material-substitution-modal .modal-body .row.g-2.my-2 .col-12 {
            display: flex;
            flex-direction: row !important;
            justify-content: space-between !important;
            align-items: center !important;
            font-size: 1.1rem;
        }

            #material-substitution-modal .modal-body .row.g-2.my-2 .col-12 span, #material-substitution-modal .modal-body .row.g-2.my-2 .col-12 input {
                width: 30%;
            }

    #material-substitution-modal .modal-body .div-btn-mobile {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-content: flex-start !important;
        align-self: normal;
    }

        #material-substitution-modal .modal-body .div-btn-mobile button {
            display: flex;
            justify-content: center;
            text-wrap: nowrap;
            margin: 1rem;
            width: 48% !important;
        }

    #material-substitution-modal .modal-body .div-btn button {
        width: 100%;
        font-size: 1rem !important;
        text-wrap: nowrap;
        margin: 1rem;
        text-align: center !important;
        display: flex;
        justify-content: center;
    }

    #material-substitution-modal .tb_dish-infor td {
        font-weight: 500;
    }

    #material-substitution-modal #table-ingredient {
        table-layout: fixed !important; /* Quan trọng: Ép các cột tuân thủ width */
        width: 100% !important;
    }

        #material-substitution-modal #table-ingredient thead {
            display: none;
        }

    #material-substitution-modal .dataTables_scrollHead table,
    #material-substitution-modal .dataTables_scrollBody table {
        table-layout: fixed !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    #material-substitution-modal #table-ingredient_wrapper .dt-layout-table .dt-layout-full {
        padding: 0px !important;
        border-radius: 8px;
    }

    #material-substitution-modal #table-ingredient_wrapper th:nth-child(1), #material-substitution-modal #table-ingredient_wrapper td:nth-child(1) {
        width: 30% !important;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 1px 1px !important;
        min-width: 0px !important;
        margin: 0px !important;
    }

    #material-substitution-modal #table-ingredient_wrapper th:nth-child(2), #material-substitution-modal #table-ingredient_wrapper td:nth-child(2) {
        width: 15% !important;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 4px 2px !important;
        min-width: 0px !important;
    }

    #material-substitution-modal #table-ingredient_wrapper th:nth-child(3), #material-substitution-modal #table-ingredient_wrapper td:nth-child(3) {
        width: 20% !important;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 4px 2px !important;
        min-width: 0px !important;
    }

    #material-substitution-modal #table-ingredient_wrapper th:nth-child(4), #material-substitution-modal #table-ingredient_wrapper td:nth-child(4) {
        width: 15% !important;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 4px 2px !important;
        min-width: 0px !important;
    }

    #material-substitution-modal #table-ingredient_wrapper th:nth-child(5), #material-substitution-modal #table-ingredient_wrapper td:nth-child(5) {
        width: 20% !important;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 1px 1px !important;
        min-width: 0px !important;
    }

    #material-substitution-modal #table-ingredient_wrapper td {
        padding: 2px 4px !important;
        margin: 0px 10px !important;
    }

    #material-substitution-modal #table-ingredient .form-control,
    #material-substitution-modal #table-ingredient .form-select,
    #material-substitution-modal #table-ingredient .ts-wrapper,
    #material-substitution-modal #table-ingredient .input-wrapper,
    #material-substitution-modal #table-ingredient .ts-control {
        width: 100% !important;
        min-width: 0 !important; /* Bỏ chặn độ rộng tối thiểu */
        padding: 2px 1px !important;
        font-size: 12px !important;
    }

    #material-substitution-modal #table-ingredient .ts-control {
        min-height: 28px !important;
        padding: 2px 15px 2px 1px !important;
    }

    #material-substitution-modal .ingredient-cell .ts-control input {
        width: auto !important;
        min-width: unset;
    }

    #material-substitution-modal #table-ingredient .form-select {
        font-size: 10px !important;
        background-position: right 2px center;
    }

    #balance-note-modal .modal-header {
        background-color: white;
    }

    #balance-note-modal .modal-body table th {
        background-color: #4DAA54;
        color: white;
        padding: 10px;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        font-weight: 600;
    }

    #balance-note-modal .modal-body table td {
        background-color: #B9F8CF;
        color: #333;
        font-size: 1.1rem;
        padding: 15px 10px 15px 10px;
    }

    #balance-note-modal .modal-body table tbody td:nth-child(2) {
        text-align: start;
    }

    #balance-note-modal .modal-body button {
        border-radius: 8px;
        padding: 5px 20px;
        border: solid 1px #ED1C25;
        font-size: 1.2rem;
    }

    .table-responsive {
        margin-top: 6px;
    }

    #tova-root {
        display: none !important;
    }

    .menu-from-ing {
        min-height: 440px;
        margin-bottom: 50px;
    }

    .step-mobile {
        margin-bottom: 1rem;
        display: flex;
        flex-direction: row;
    }

        .step-mobile .progress-container {
            position: relative;
            width: 135px;
            height: 120px;
        }

        .step-mobile .progress-ring {
            transform: rotate(-90deg);
            width: 120px;
            height: 120px;
        }

        .step-mobile .progress-ring__bg {
            fill: none;
            stroke: #eee;
            stroke-width: 10;
        }

        .step-mobile .progress-ring__circle {
            fill: none;
            stroke: #ff2d2d;
            stroke-width: 10;
            stroke-linecap: round;
            stroke-dasharray: 314;
            stroke-dashoffset: 314;
            transition: stroke-dashoffset 0.6s ease;
        }

        .step-mobile .progress-text {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            font-weight: bold;
            color: #ff2d2d;
        }

        .step-mobile .step-info-container {
            margin-left: 1rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

            .step-mobile .step-info-container .step-now {
                color: #ED1C25;
                font-size: 1.2rem;
                font-weight: 600;
            }

            .step-mobile .step-info-container .step-next {
                margin-top: 0.5rem;
                color: #404557;
            }

    .step-footer {
        display: flex;
        justify-content: center;
    }

        .step-footer .step-footer-mobile {
            justify-content: center !important;
            right: unset !important;
        }

            .step-footer .step-footer-mobile .btn-delete {
                margin: unset !important;
            }

    .div-step-1 label {
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        white-space: nowrap;
    }

    .div-step-1 .col-4 {
        display: flex !important;
        justify-content: space-between;
        width: 100%;
        margin-top: 0.8rem;
    }

        .div-step-1 .col-4 .form-control {
            max-width: 30% !important;
        }

    .div-step-2 #table-step2 .sub-text-th {
        display: none;
    }

    .div-step-2 #table-step2 {
        min-width: unset;
        width: 100%;
    }

        .div-step-2 #table-step2 th:nth-child(1), .div-step-2 #table-step2 td:nth-child(1) {
            display: none !important;
        }

        .div-step-2 #table-step2 th:nth-child(2), .div-step-2 #table-step2 td:nth-child(2) {
            width: 30% !important;
            white-space: unset !important;
            min-width: unset !important;
        }

        .div-step-2 #table-step2 th:nth-child(3), .div-step-2 #table-step2 td:nth-child(3) {
            width: 25% !important;
            white-space: unset !important;
            min-width: unset !important;
        }

        .div-step-2 #table-step2 th:nth-child(4), .div-step-2 #table-step2 td:nth-child(4) {
            width: 10% !important;
            white-space: unset !important;
            min-width: unset !important;
        }

        .div-step-2 #table-step2 th:nth-child(5), .div-step-2 #table-step2 td:nth-child(5) {
            display: none;
        }

        .div-step-2 #table-step2 th:nth-child(6), .div-step-2 #table-step2 td:nth-child(6) {
            width: 18% !important;
            white-space: unset !important;
            min-width: unset !important;
        }

        .div-step-2 #table-step2 th:nth-child(7), .div-step-2 #table-step2 td:nth-child(7) {
            width: 5% !important;
            white-space: unset !important;
            min-width: unset !important;
        }

        .div-step-2 #table-step2 td {
            padding: 4px !important;
        }

        .div-step-2 #table-step2 input {
            padding: 2px !important;
            margin: unset !important;
        }

    #menu-ingredient .step-footer .d-flex.nav-buttons {
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
    }

    #menu-ingredient #btnSave, #menu-ingredient #btnDownload {
        width: 80%;
        margin: auto;
        margin-top: 0.5rem;
    }

    #menu-ingredient #btnDownload {
        margin-bottom: 3.5rem;
    }

    .pagination {
        width: 90%;
        left: unset !important;
    }

    .menu-from-ing .div-step-3 .div-table {
        max-width: unset;
        /*        max-height: unset;*/
        /*        overflow: unset;*/
        margin-bottom: 2rem;
        margin-left: 2px;
        padding: unset;
        height: auto !important;
    }

    .div-step-3 {
        margin-bottom: 3rem;
    }

        .div-step-3 #menuSummary {
            margin-bottom: 0rem;
        }

        .div-step-3 .summary {
            margin-left: 1rem;
            margin-bottom: 0rem;
            padding-bottom: 0rem;
        }

            .div-step-3 .summary .d-flex .d-flex input {
                width: 30%
            }

            .div-step-3 .summary .d-flex .d-flex label {
                min-width: unset !important;
            }

        .div-step-3 #table-step3 {
            width: 100%;
        }

            .div-step-3 #table-step3 .sub-text-th {
                display: none
            }

            .div-step-3 #table-step3 .form-control,
            .div-step-3 #table-step3 .form-select,
            .div-step-3 #table-step3 .ts-wrapper,
            .div-step-3 #table-step3 .input-wrapper,
            .div-step-3 #table-step3 .ts-control {
                width: 100% !important;
                min-width: 0 !important; /* Bỏ chặn độ rộng tối thiểu */
                padding: 1px 2px !important;
                font-size: 12px !important;
                white-space: unset !important;
            }

            .div-step-3 #table-step3 .ts-control {
                padding: 2px 15px 2px 1px !important;
            }

            .div-step-3 #table-step3 .form-select {
                font-size: 10px !important;
                background-position: right 2px center;
            }

            .div-step-3 #table-step3 th:nth-child(1), .div-step-3 #table-step3 td:nth-child(1) {
                display: none !important;
            }

            .div-step-3 #table-step3 th:nth-child(2), .div-step-3 #table-step3 td:nth-child(2) {
                width: 25% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

            .div-step-3 #table-step3 th:nth-child(3), .div-step-3 #table-step3 td:nth-child(3) {
                width: 15% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

            .div-step-3 #table-step3 th:nth-child(4), .div-step-3 #table-step3 td:nth-child(4) {
                width: 10% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

            .div-step-3 #table-step3 th:nth-child(5), .div-step-3 #table-step3 td:nth-child(5) {
                display: none !important;
            }

            .div-step-3 #table-step3 th:nth-child(6), .div-step-3 #table-step3 td:nth-child(6) {
                width: 20% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

            .div-step-3 #table-step3 th:nth-child(7), .div-step-3 #table-step3 td:nth-child(7) {
                width: 10% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

            .div-step-3 #table-step3 th:nth-child(8), .div-step-3 #table-step3 td:nth-child(8) {
                display: none !important;
            }

    .two-line-ellipsis-wrapper {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        word-break: break-word;
    }

    .menuFromIngModal .ingredient-list, .menuFromIngModal .ingredient-list.list-selected {
        min-height: 100px;
    }

    .modal-title {
        margin-right: 3rem !important;
    }

    .modal-header button {
        font-size: 1rem !important;
    }

    #proposeModal .modal-buttons {
        flex-direction: column !important;
        gap: 0.5rem;
    }

    .view-menu-ing {
        display: block !important;
        padding: 3px 5px !important;
    }

        .view-menu-ing #card-view {
            display: block !important;
        }

        .view-menu-ing .table-responsive {
            display: none !important;
        }

        .view-menu-ing .card-view-mobile {
            margin: 10px 0px;
            border: solid 1px rgba(0,0,0,0.2);
            border-radius: 8px;
            padding: 10px 0px;
        }

            .view-menu-ing .card-view-mobile .col-2 {
                display: flex;
                justify-content: center;
                align-content: center;
                align-items: start;
            }

                .view-menu-ing .card-view-mobile .col-2 div {
                    width: 30px;
                    height: 30px;
                    background-color: #ffabb0;
                    border-radius: 5px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    color: #ed1c25;
                    font-size: 1.2rem;
                    font-weight: 600;
                }

            .view-menu-ing .card-view-mobile .col-7 label {
                font-size: 1.1rem;
                font-weight: 600;
            }

            .view-menu-ing .card-view-mobile .col-3 {
                display: flex;
                justify-content: space-around;
                align-items: center;
            }

                .view-menu-ing .card-view-mobile .col-3 button {
                    border-radius: 50px;
                    width: 30px;
                    height: 30px;
                }

                    .view-menu-ing .card-view-mobile .col-3 button#btn-mobile-edit {
                        color: #0046ff;
                        border-color: transparent;
                        background-color: #c8daf6;
                    }

                    .view-menu-ing .card-view-mobile .col-3 button#btn-mobile-del {
                        color: #ed1c25;
                        border-color: transparent;
                        background-color: #ffdbdb;
                    }

    .view-menu-ing-deltail {
        margin-bottom: 3rem
    }

        .view-menu-ing-deltail table {
            width: 100% !important;
            min-width: unset !important;
            overflow-wrap: anywhere;
            overflow: hidden;
        }

            .view-menu-ing-deltail table th:nth-child(1), .view-menu-ing-deltail table td:nth-child(1) {
                display: none !important;
            }

            .view-menu-ing-deltail table th:nth-child(5), .view-menu-ing-deltail table td:nth-child(5) {
                display: none !important;
            }

            .view-menu-ing-deltail table th:nth-child(8), .view-menu-ing-deltail table td:nth-child(8) {
                display: none !important;
            }

            .view-menu-ing-deltail table th:nth-child(2), .view-menu-ing-deltail table td:nth-child(2) {
                width: 25% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
                padding: unset;
            }

            .view-menu-ing-deltail table th:nth-child(3), .view-menu-ing-deltail table td:nth-child(3) {
                width: 10% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

            .view-menu-ing-deltail table th:nth-child(4), .view-menu-ing-deltail table td:nth-child(4) {
                width: 15% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

            .view-menu-ing-deltail table th:nth-child(6), .view-menu-ing-deltail table td:nth-child(6) {
                width: 20% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

            .view-menu-ing-deltail table th:nth-child(7), .view-menu-ing-deltail table td:nth-child(7) {
                width: 15% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

        .view-menu-ing-deltail .cost-sumary .d-flex {
            flex-direction: row;
            gap: 0.5rem;
        }

        .view-menu-ing-deltail .cost-sumary label, .view-menu-ing-deltail .cost-sumary input {
            width: 48%;
        }

        .view-menu-ing-deltail .func-buttons {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            margin-bottom: 1rem;
        }

            .view-menu-ing-deltail .func-buttons button {
                width: 100%;
                margin: 5px 0px;
            }

        .view-menu-ing-deltail #prevBtn {
            top: 8rem !important;
        }

    .ingredientList table, .ingredientList .dt-scroll-headInner {
        max-width: 100% !important;
    }

        .ingredientList table th, .ingredientList table th .dt-column-title {
            text-align: center !important;
            vertical-align: middle;
            font-size: 1.1rem;
            font-weight: 600;
        }

            .ingredientList table th:nth-child(1), .ingredientList table td:nth-child(1) {
                width: 12% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

            .ingredientList table th:nth-child(2), .ingredientList table td:nth-child(2) {
                width: 30% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

            .ingredientList table th:nth-child(3), .ingredientList table td:nth-child(3) {
                width: 20% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

            .ingredientList table th:nth-child(4), .ingredientList table td:nth-child(4) {
                width: 23% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

            .ingredientList table th:nth-child(5), .ingredientList table td:nth-child(5) {
                width: 25% !important;
                white-space: unset !important;
                min-width: unset !important;
                overflow-wrap: anywhere;
                overflow: hidden;
            }

    .ingredientList .dt-paging .pagination {
        width: 100% !important;
    }

    .ingredientList .footer {
        flex-direction: column !important;
        justify-content: center;
        align-content: center;
        align-items: center;
        gap: 0.5rem;
    }

        .ingredientList .footer button {
            width: 90%;
        }

    .snack-menu .custom-tooltip-big {
        display: grid !important;
    }

    .snack-menu .div-info .label-info span {
        top: 0px;
        right: 5px;
    }


    .snack-menu .table-responsive table {
        width: 100%;
    }

        .snack-menu .table-responsive table th:nth-child(1), .snack-menu .table-responsive table td:nth-child(1) {
            width: 30% !important;
            white-space: unset !important;
            min-width: unset !important;
            overflow-wrap: anywhere;
            overflow: hidden;
        }

        .snack-menu .table-responsive table th:nth-child(2), .snack-menu .table-responsive table td:nth-child(21) {
            width: 20% !important;
            white-space: unset !important;
            min-width: unset !important;
            overflow-wrap: anywhere;
            overflow: hidden;
        }

        .snack-menu .table-responsive table th:nth-child(3), .snack-menu .table-responsive table td:nth-child(3) {
            width: 10% !important;
            white-space: unset !important;
            min-width: unset !important;
            overflow-wrap: anywhere;
            overflow: hidden;
        }

        .snack-menu .table-responsive table th:nth-child(4), .snack-menu .table-responsive table td:nth-child(4) {
            width: 40% !important;
            white-space: unset !important;
            min-width: unset !important;
            overflow-wrap: anywhere;
            overflow: hidden;
        }

        .snack-menu .table-responsive table.show-mobile th, .snack-menu .table-responsive table.show-mobile td {
            width: 50%;
        }

    .snack-menu-table .modal-header {
        text-align: center;
    }

    .snack-menu-table .modal-body .student-count {
        background-color: #f1f1f1;
        color: #333;
    }

        .snack-menu-table .modal-body .student-count .title {
            color: #333;
            text-align: start;
            justify-content: flex-start !important;
            align-items: start !important;
        }

    .snack-menu-table .modal-body .table-responsive th:nth-child(1), .snack-menu-table .modal-body .table-responsive td:nth-child(1) {
        display: none !important;
    }

    .snack-menu-table .modal-body .table-responsive th:nth-child(2), .snack-menu-table .modal-body .table-responsive td:nth-child(2) {
        width: 25% !important;
        white-space: unset !important;
        min-width: unset !important;
        overflow-wrap: anywhere;
        overflow: hidden;
    }

    .snack-menu-table .modal-body .table-responsive th:nth-child(3), .snack-menu-table .modal-body .table-responsive td:nth-child(3) {
        width: 15% !important;
        white-space: unset !important;
        min-width: unset !important;
        overflow-wrap: anywhere;
        overflow: hidden;
    }

    .snack-menu-table .modal-body .table-responsive th:nth-child(4), .snack-menu-table .modal-body .table-responsive td:nth-child(4) {
        width: 20% !important;
        white-space: unset !important;
        min-width: unset !important;
        overflow-wrap: anywhere;
        overflow: hidden;
    }

    .snack-menu-table .modal-body .table-responsive th:nth-child(5), .snack-menu-table .modal-body .table-responsive td:nth-child(5) {
        display: none !important;
    }

    .snack-menu-table .modal-body .table-responsive th:nth-child(6), .snack-menu-table .modal-body .table-responsive td:nth-child(6) {
        width: 20% !important;
        white-space: unset !important;
        min-width: unset !important;
        overflow-wrap: anywhere;
        overflow: hidden;
    }

    .snack-menu-table .modal-body .table-responsive th:nth-child(7), .snack-menu-table .modal-body .table-responsive td:nth-child(7) {
        width: 20% !important;
        white-space: unset !important;
        min-width: unset !important;
        overflow-wrap: anywhere;
        overflow: hidden;
    }

    .snack-menu-table .modal-body .table-responsive .form-control,
    .snack-menu-table .modal-body .table-responsive .form-select,
    .snack-menu-table .modal-body .table-responsive .ts-wrapper,
    .snack-menu-table .modal-body .table-responsive .input-wrapper,
    .snack-menu-table .modal-body .table-responsive .ts-control {
        width: 100% !important;
        min-width: 0 !important; /* Bỏ chặn độ rộng tối thiểu */
        padding: 1px 2px !important;
        font-size: 12px !important;
        white-space: unset !important;
    }

    #paginationLeftAddIng, #paginationRightAddIng,
    #paginationLeft, #paginationRight,
    #paginationLeftDish, #paginationRightDish {
        bottom: 1rem !important;
    }

    #AddIngredientModal #leftListAddIng, #AddIngredientModal #rightListAddIng,
    #createOrUpdateModal #leftList, #createOrUpdateModal #rightList,
    #createOrUpdateDishModal #leftListDish, #createOrUpdateDishModal #rightListDish {
        margin-bottom: 2.5rem !important;
    }

    #AddIngredientModal .modal-title {
        margin-right: auto !important;
    }

    #table-ingredient-snack {
        table-layout: fixed !important; /* Quan trọng: Ép các cột tuân thủ width */
        width: 100% !important;
    }

        #table-ingredient-snack thead {
            display: none;
        }

    #table-ingredient-snack_wrapper .dt-scroll-headInner {
        table-layout: fixed !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .dt-scroll-headInner table,
    .dataTables_scrollBody table {
        table-layout: fixed !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    #table-ingredient-snack_wrapper .dt-layout-table .dt-layout-full {
        padding: 0px !important;
        border-radius: 8px;
    }

    #table-ingredient-snack_wrapper th:nth-child(1), #table-ingredient-snack_wrapper td:nth-child(1) {
        width: 30% !important;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 1px 1px !important;
        min-width: 0px !important;
        margin: 0px !important;
    }

    #table-ingredient-snack_wrapper th:nth-child(2), #table-ingredient-snack_wrapper td:nth-child(2) {
        width: 15% !important;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 4px 2px !important;
        min-width: 0px !important;
    }

    #table-ingredient-snack_wrapper th:nth-child(3), #table-ingredient-snack_wrapper td:nth-child(3) {
        width: 20% !important;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 4px 2px !important;
        min-width: 0px !important;
    }

    #table-ingredient-snack_wrapper th:nth-child(4), #table-ingredient-snack_wrapper td:nth-child(4) {
        width: 15% !important;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 4px 2px !important;
        min-width: 0px !important;
    }

    #table-ingredient-snack_wrapper th:nth-child(5), #table-ingredient-snack_wrapper td:nth-child(5) {
        width: 20% !important;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 1px 1px !important;
        min-width: 0px !important;
    }

    #table-ingredient-snack_wrapper td {
        padding: 2px 4px !important;
        margin: 0px 10px !important;
    }

    #material-substitution-modal #table-ingredient .form-control,
    #material-substitution-modal #table-ingredient .form-select,
    #material-substitution-modal #table-ingredient .ts-wrapper,
    #material-substitution-modal #table-ingredient .input-wrapper,
    #material-substitution-modal #table-ingredient .ts-control {
        width: 100% !important;
        min-width: 0 !important; /* Bỏ chặn độ rộng tối thiểu */
        padding: 2px 1px !important;
        font-size: 12px !important;
    }

    #material-substitution-modal #table-ingredient .ts-control {
        min-height: 28px !important;
        padding: 2px 15px 2px 1px !important;
    }

    @media (max-width: 400px) {
        .avn_top_logo {
            margin-top: 2rem !important;
        }

        .breadcrumb-item {
            margin-bottom: 0.2rem;
        }
    }

    @media (max-width: 450px) {
        .avn_top .avn_top_logo2 {
            margin-bottom: 1rem;
        }

        .avn_top_logo2 a label {
            text-align: center;
            font-size: 7px;
        }
    }

    @media (min-width: 450px) and (max-width: 576px) {
        .avn_top .avn_top_logo2 {
            height: auto;
        }

        .avn_top_logo2 a label {
            text-align: center;
            font-size: 11px;
        }
    }

    @media (max-width: 576px) {
        :root {
            --avn_header-height: 110px;
        }

        .menu-from-dish .select-week button {
            padding: 8px 10px 10px 10px !important;
        }

        .ingredientList label {
            color: #ED1C25;
        }

        .group-training-button button {
            width: 100%;
        }

        .training-document .ThumbnailImage,
        .traditional-corner .ThumbnailImage {
            padding: 0px;
        }

            .training-document .ThumbnailImage img,
            .traditional-corner .ThumbnailImage img {
                aspect-ratio: 3 / 3 !important;
            }

        .calc-bmi .div-btn {
            flex-direction: column;
            gap: 3px;
        }

        #btn-dowload-result,
        #btn-view-result,
        #btn-delete-year {
            text-align: center !important;
            justify-content: center;
        }

        #btn-view-result {
            padding: 10px 20px;
        }

        .filter-year, .filter-times,
        .filter-grade, .filter-class {
            flex-direction: row !important;
            justify-content: space-between;
            align-items: center !important;
        }

            .filter-year input, .filter-times input,
            .filter-grade input, .filter-class input {
                width: 100%;
            }

        .calc-bmi .filter-container-student-list .form-multi-select {
            width: 70% !important;
        }

        .group-btn-edit-student .btn-cancel,
        .group-btn-edit-student .btn-save {
            width: 100%;
            margin-right: 0px !important;
            margin-left: 0px !important;
        }

        #popup-Video {
            /*display: flex !important;*/
            align-items: center;
            justify-content: center;
        }

            #popup-Video.show {
                display: flex !important;
                align-items: center;
                justify-content: center;
            }

        .popup-video iframe {
            width: 100%;
            height: 100%;
            min-height: 200px !important;
        }

        .nutritionEducation .thumbnailVideo {
            min-height: 100px !important;
        }

        .snack-menu .custom-tooltip::after {
            width: 200px;
        }

        .container-button-poster .btn-download {
            border-radius: 8px !important;
        }
    }

    @media (min-width:468px) {
        .avn_top .avn_top_logo2 {
            height: auto !important
        }
    }

    @media (max-width: 768px) {
        :root {
            --avn_header-height: 110px;
        }

        .snack-item .group-image,
        .snack-item .group-content {
            width: 100% !important;
        }

        .snack-menu .snack-item .btn-recipe {
            position: unset !important;
            top: 0px !important;
            right: 0px !important;
            margin: 20px auto 20px auto;
            width: 90%;
            border-radius: 10px;
        }

        .btn-function {
            text-align: center;
            align-items: start;
        }

        .snack-menu .snack-item .snack-image {
            margin: auto !important;
            padding: 0px !important;
            border-bottom-left-radius: 0px;
            border-bottom-right-radius: 0px;
        }

        .snack-item .group-image {
            padding: 0px !important;
        }

        .snack-menu h4 {
            text-align: center;
        }

        .btn-recipe img {
            margin-right: 2px;
        }

        .snack-menu .snack-item .btn-function-item {
            width: 100%;
        }

        .snack-menu .table-responsive table#snack-menu-mobile th:nth-child(1), .snack-menu .table-responsive table#snack-menu-mobile td:nth-child(1) {
            width: 20% !important;
        }

        .label-instruct p {
            overflow-x: auto;
        }

        .student-count {
            gap: 1.5rem;
        }

            .student-count .item {
                flex-direction: row !important;
            }

        .cost-input {
            width: 120px;
        }

        .summary label {
            width: 50%;
        }

        #table-ingredient {
            table-layout: auto !important;
            width: 100%;
        }

        .snack-button {
            flex: 1 1 auto;
            margin: 0px !important;
        }

        .poster .title {
            font-size: 1.4rem !important;
        }
        /*    .nutritionEducation .ThumbnailImage img {
        aspect-ratio: 5 / 3 !important;
    }*/

        .poster {
            margin: auto;
        }

        .schoolHealth {
            margin: auto;
        }

            .schoolHealth .list-content {
                padding: 0px;
            }

            .schoolHealth .content {
                border: solid 1px #ED1C25 !important;
            }

            .schoolHealth .btn-readmore {
                width: 100%;
                margin-bottom: 10px;
            }

            .schoolHealth .title {
                text-align: justify;
                /*            color: #DD0123;*/
            }

            .schoolHealth .ThumbnailImage img {
                width: 100% !important;
                border-radius: 14px !important;
                border-bottom-left-radius: 0px !important;
                border-bottom-right-radius: 0px !important;
                object-fit: cover !important;
            }

        /*        .family-group .ThumbnailImage img,
        .vegetable-group .ThumbnailImage img,
        .sampleKitchen .ThumbnailImage img,
        .document-group .ThumbnailImage img,
        .news-group .ThumbnailImage img {
            border-radius: 8px !important;
            border-bottom-left-radius: 0px !important;
            border-bottom-right-radius: 0px !important;
            object-fit: cover !important;
            aspect-ratio: 4 / 3 !important;
            width: 100% !important;
            height: 100% !important;
            border: 0px !important;
            margin: 0px !important;
        }*/

        .family-group .article-title,
        .vegetable-group .article-title,
        .document-group .article-title,
        .news-group .article-title {
            /*text-align: justify;*/
            white-space: normal !important;
            word-break: break-word;
        }

        .family-group .btn-readmore,
        .vegetable-group .btn-readmore,
        .document-group .btn-readmore,
        .news-group .btn-readmore {
            width: 100% !important;
        }

        .article-detail-title {
            text-align: center !important;
        }

        .listSampleKitchen .btn-readmore {
            margin-bottom: 1rem;
            width: 100%;
        }

        .group-profile-button button {
            width: 93%;
        }

        .calc-bmi table td:first-child {
            white-space: nowrap !important;
        }

        .calc-bmi #div-select-grade .form-multi-select,
        .calc-bmi #div-select-school .form-multi-select,
        .calc-bmi #div-select-student .form-multi-select {
            width: 100% !important;
        }
    }

    @media (max-width: 992px) {
        :root {
            --avn_header-height: 140px;
        }

        #emailInput {
            padding-bottom: 28px !important;
        }

        #AverageFee {
            padding-bottom: 65px !important;
        }

        .img-login {
            margin: 0px !important;
        }

        .change-password-container .form-section {
            padding-left: 30px;
            padding-right: 30px;
        }

        .input-forgot-group {
            gap: 0px !important;
        }

        .selectStudent .arrow-red {
            transform: rotate(90deg);
        }

        #date .date-picker-input {
            padding: 7px 9px;
        }

        .group-traditional-button button,
        .group-document-button button {
            width: 100%;
        }

        .news-group .article-image {
            object-fit: cover !important;
        }
    }

    @media (max-width: 1024px) {
        .student-count .item {
            flex-direction: column;
            width: 100%;
        }

        .student-count .group-input {
            margin: auto;
            flex: 1;
        }

            .student-count .group-input input {
                flex: 1;
            }

        .student-count .item span {
            width: 200px;
        }

        .traditional-corner .ThumbnailImage img,
        .training-document .ThumbnailImage img,
        .poster .ThumbnailImage img {
            width: 100% !important;
            height: 100% !important;
        }

        .poster .ThumbnailImage img {
            aspect-ratio: 3 / 3 !important;
        }

        .btn-login {
            width: 100% !important;
        }
    }

    .menu-from-ing .div-step-3 #divTableBalance {
        overflow-x: hidden;
        margin-bottom: 40px;
    }

    @media (max-width: 1200px) {
        :root {
            --avn_header-height: 160px;
        }

        .change-password-footer,
        .forgot-password-footer {
            display: block !important;
        }

        .avn_top_logo2 a label {
            height: 10%;
        }

        .avn_top .avn_top_logo2 {
            justify-content: center;
        }

        .avn_top .avn_top_logo2 {
            padding: 0px;
        }
    }

    @media (min-width: 576px) and (max-width: 768px) {
        :root {
            --avn_header-height: 110px;
        }

        .calc-bmi .filter-container-student-list .form-multi-select {
            width: 100% !important;
        }
    }

    @media (min-width: 768px) and (max-width: 992px) {
        :root {
            --avn_header-height: 140px;
        }

        .calc-bmi .filter-container-student-list .form-multi-select {
            width: 100% !important;
        }
    }

    @media (min-width: 992px) and (max-width: 1200px) {
        :root {
            --avn_header-height: 140px;
        }

        #date .date-picker-input {
            padding: 8px 9px;
        }
    }


    @media (min-width: 992px) and (max-width: 1024px) {
        :root {
            --avn_header-height: 140px;
        }

        .nav-pills {
            width: 45% !important;
            align-items: center;
        }
    }

    @media (min-width: 1024px) and (max-width: 1200px) {
        :root {
            --avn_header-height: 160px;
        }

        .avn_top .avn_top_logo {
            /*            height: 14vh*/
        }

        .avn_top .avn_top_logo2 {
            /*            height: 12vh*/
        }

        .avn_top_logo2 a label {
            font-size: 14px;
        }

        .avn_top_logo2 a#logo_bgd, .avn_top_logo2 a#logo_aji, .avn_top_logo2 a#logo_vdd {
            height: 100px;
        }
    }

    @media (max-width: 1024px) {

        #menuSummary .summary .flex-column .align-items-center {
            flex-wrap: wrap;
        }

        .menu-from-dish label {
            font-size: 1rem;
        }
    }

    @media (min-width: 768px) {
        #menu-ingredient #btnDownload {
            margin-bottom: 13.5rem;
        }

        #menuSummary .summary {
            margin-bottom: 50px;
        }

        .summary-input {
            max-width: 150px;
            margin-left: auto;
        }
    }

    @media (max-width: 768px) {
        /* Stack each filter item vertically */
        .container-filter .col-md-3 {
            display: flex;
            flex-direction: column;
            align-items: flex-start !important;
        }

        .container-filter .col-md-4 {
            display: flex;
            flex-direction: column;
            align-items: flex-start !important;
        }

        .container-filter .col-md-5 {
            display: flex;
            flex-direction: column;
            align-items: flex-start !important;
        }
        /* Label goes full width on mobile */
        .container-filter label {
            width: 90%;
            text-align: left;
            margin-left: 5%;
            margin-bottom: 6px;
        }
        /* Make selects fill the width */
        .container-filter select {
            width: 90% !important;
            max-width: none !important;
            margin-inline: 5%;
        }
    }

    @media (max-width: 1200px) {
        .snack-menu-content img {
            width: 100%;
            height: auto;
        }

        .snack-menu .table-responsive {
            width: auto !important;
            overflow: auto !important;
        }

            .snack-menu .table-responsive table th:nth-child(1), .snack-menu .table-responsive table td:nth-child(1) {
                width: 30% !important;
            }

            .snack-menu .table-responsive table th:nth-child(2), .snack-menu .table-responsive table td:nth-child(2) {
                width: 20% !important;
            }

            .snack-menu .table-responsive table th:nth-child(3), .snack-menu .table-responsive table td:nth-child(3) {
                width: 20% !important;
            }

            .snack-menu .table-responsive table th:nth-child(4), .snack-menu .table-responsive table td:nth-child(4) {
                width: 30% !important;
            }

        #table-ingredient-snack th,
        #table-ingredient-snack td {
            white-space: nowrap;
        }

        /*        div.dt-scroll-head table,
        div.dt-scroll-body table {
            width: max-content !important;
        }*/

        div.dt-scroll-head {
            overflow: hidden !important;
        }

        div.dt-scroll-body {
            overflow-x: auto !important;
        }
    }

    #StudentTable_wrapper {
        overflow-x: hidden !important;
    }

    #StudentTable {
        width: 100% !important;
        table-layout: fixed !important;
    }

        #StudentTable th,
        #StudentTable td {
            white-space: normal !important;
            word-break: break-word;
        }

            #StudentTable td:nth-child(3) {
                word-break: normal !important;
                overflow-wrap: normal !important;
            }

    #ErrorTable {
        width: 100% !important;
        table-layout: auto;
    }

        #ErrorTable th,
        #ErrorTable td {
            white-space: normal;
        }

            #ErrorTable td:first-child,
            #ErrorTable th:first-child {
                white-space: normal !important;
                word-break: break-word !important;
                overflow-wrap: anywhere;
            }

            #ErrorTable td:nth-child(7) {
                word-break: keep-all;
            }

    #table-dub {
        overflow-x: hidden;
    }

    #DubTable {
        width: 100% !important;
        table-layout: fixed;
    }

        #DubTable th,
        #DubTable td {
            white-space: normal;
        }

            #DubTable th:nth-child(1),
            #DubTable td:nth-child(1) {
            }

            #DubTable th:nth-child(2),
            #DubTable td:nth-child(2) {
                width: 70px;
                max-width: 70px;
                word-break: break-word;
                overflow-wrap: anywhere;
            }

            #DubTable th:nth-child(8),
            #DubTable td:nth-child(8) {
                padding: 2px !important;
                width: 60px;
                max-width: 60px;
            }

            #DubTable td:nth-child(8) {
                word-break: keep-all;
            }

    #HistoryTable {
        width: 100% !important;
        table-layout: auto;
    }

        #HistoryTable th,
        #HistoryTable td {
            white-space: normal;
            word-break: keep-all;
        }

    .selectStudentList {
        overflow-x: hidden;
    }

    .newest-noti {
        width: calc(100% - 10px);
    }

    .list-articles .card .card-content {
        padding-top: 5px;
    }

    .list-content .card .card-content {
        padding-top: 5px;
    }

    .listSampleKitchen .card .card-content {
        padding-top: 5px;
    }

    #btnDownload, #btnSave, #caculatorBtn {
        -webkit-justify-content: inherit;
        justify-content: inherit;
    }

    .menu-from-ing .div-step-3 table#table-step3 th:nth-child(4) {
        padding: 5px;
        font-size: 10px;
    }

    .menu-from-ing .div-step-3 table#table-step3 th:nth-child(7) {
        padding: 5px;
    }

    .responsive-mb-0 {
        margin-bottom: 0px !important;
    }

    .responsive-mt-4 {
        margin-top: 1.5rem !important;
    }

    .responsive-align-center {
        align-self: center !important;
    }

    #tb_dish-infor td, .tb_dish-infor td {
        font-weight: 400;
    }

    .menu-from-dish label {
        font-weight: 400;
    }

    #toast-container {
        max-width: calc(100% - 32px);
    }

        #toast-container .alert {
            min-width: unset !important;
        }

    .responsive-tooltip {
        display: flex !important;
        top: 2rem;
        color: #ED1C25;
        font-weight: 600;
    }

        .responsive-tooltip::after {
            max-width: 180px;
        }

    .tab-content .card-dish .select2-container--default .select2-selection--single {
        border: solid 1px rgba(0,0,0,0.1)
    }

    .ts-control .item {
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        word-break: break-word;
    }

    .nav-pills {
        width: 100% !important;
    }
}
