
.main-content {
    margin-top: 5rem;
    margin-bottom: 5.2rem;
}

.checkout-content {
    margin-top: 5rem;
}
@media screen and (max-width: 576px) {
    .checkout-content {
        padding-bottom: 5rem;
    }
}

.navicon {
    max-height: 2rem;
}

.menu-text {
    font-size: 1rem;
}

@media screen and (max-width: 436px) {
    .menu-text {
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 552px) {
    .check-out-text {
        display: none;
    }
}

@media screen and (max-width: 949px) and (min-width: 575px) {
    .check-out-text {
        display: none;
    }
}

.checkout-bill {
    height: 77vh;
}

@media screen and (max-width: 575px) {
    .checkout-bill {
        height: auto;
    }
}
@media screen and (max-height: 727px) {
    .checkout-bill {
        height: 77vh;
    }
}
@media screen and (max-height: 665px) {
    .checkout-bill {
        height: 74vh;
    }
}

.menu-bill {
    overflow-y: auto;
}

@media screen and (max-width: 575px) {
    .menu-bill {
        height: auto;
        overflow-y: auto;
    }
}


.table-bill-area {
    height: 32vh;
    overflow-y: auto;
}
@media screen and (max-width: 575px) {
    .table-bill-area {
        max-height: 250px;
        overflow-y: auto;
    }
}
@media screen and (max-height: 727px) {
    .table-bill-area {
        height: 25vh;
        overflow-y: auto;
    }
}
@media screen and (max-height: 665px) {
    .table-bill-area {
        height: 22vh;
        overflow-y: auto;
    }
}

.discount-menus {
    height: 265px;
    overflow-y: auto;
}

@media screen and (max-width: 767px) {
    .discount-menus {
        height: 140px;
        overflow-y: auto;
    }
}

.menus {
    height: 37rem;
    overflow-y: auto;
}

@media screen and (max-width:767px) {
    .order-test {
        padding-bottom: 180px;
    }

    .customer-order {
        padding-bottom: 100px;
    }
}

.current-order {
    height: 78vh;
}

@media screen and (max-width:767px) {
    .current-order.show {
        display: block;
        position: fixed;
        top:67px;
        right: 0;
        left: 0;
        z-index: 1031;
        padding-left: 0px;
        padding-right: 0px;
    }
    .current-order {
        display: block;
        position: fixed;
        top: 2000px;
        right: 0;
        left: 0;
        z-index: 1031;
    }
}

.order-items {
    overflow-y: auto;
    height: 20rem;
}
@media screen and (max-width:768px) {
    .order-items {
        overflow-y: auto;
        height: 20rem;
    }   
}
@media screen and (min-height:667px) {
    .order-items {
        overflow-y: auto;
        height: 47vh;
    }   
}
@media screen and (min-height:740px) {
    .order-items {
        overflow-y: auto;
        height: 51vh;
    }   
}
@media screen and (min-height:844px) {
    .order-items {
        overflow-y: auto;
        height: 56vh;
    }   
}
@media screen and (min-height:896px) {
    .order-items {
        overflow-y: auto;
        height: 61vh;
    }   
}

@media screen and (min-height:1024px) {
    .order-items {
        overflow-y: auto;
        height: 66vh;
    }   
}

@media screen and (min-height:1366px) {
    .order-items {
        overflow-y: auto;
        height: 72vh;
    }   
}
@media screen and (max-width: 768px) and (min-height:667px) {
    .order-items {
        overflow-y: auto;
        height: 49vh;
    }   
}
@media screen and (max-width: 768px) and (min-height:740px) {
    .order-items {
        overflow-y: auto;
        height: 55vh;
    }   
}
@media screen and (max-width: 768px) and (min-height:844px) {
    .order-items {
        overflow-y: auto;
        height: 59vh;
    }   
}

@media screen and (max-width: 768px) and (min-height:896px) {
    .order-items {
        overflow-y: auto;
        height: 62vh;
    }   
}
.customer-menus {
    height: 38rem;
    overflow-y: auto;
}

.customer-current-order {
    height: 78vh;
}

@media screen and (max-width:767px) {
    .customer-current-order {
        display: none !important;
    }
}

.full-height-content{
    margin-top: 4.2rem;
    margin-bottom: 5.2rem;
    height: 78vh;
    /* background-color: blue; */
}

.sidebar {
    width: 290px;
    height: 78vh;
    overflow-y: auto;
    background-color: #fff;
    transition: all .2s;
}

.sidebar.small {
    width: 0px;
    transition: all .3s;
}

.btn-sidebar-toggle{
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.3rem;
    text-decoration: none;
    color: #6c757d;
    background-color: transparent;
    /* transition: all 0.2s; */
}

.sidebar.small .btn-sidebar-toggle{
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    /* border-radius: unset; */
    text-decoration: none;
    background-color: transparent;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 4px;
    background-color:#fff ;
    color: #000;
    border-width: 1px ;
    border-color: #000 ;

    /* transition: all 0.2s; */
    position: fixed;
    left: -12px;
    top: 67px;
}

@media screen and (max-width: 767px){
    .sidebar {
        position: fixed;
        top: 66px;
        left: -290px;
        z-index: 2;
        width: 290px;
        height: 80vh;
        overflow-y: auto;
        background-color: #fff;
    }

    .sidebar.small {
        position: fixed;
        top: 66px;
        left: 0;
        z-index: 2;
        width: 290px;
        height: 80vh;
        overflow-y: auto;
        background-color: #fff;
    }

    .btn-sidebar-toggle{
        display: inline-block;
        font-weight: 400;
        text-align: center;
        vertical-align: middle;
        cursor: pointer;
        border: 1px solid transparent;
        font-size: 1rem;
        line-height: 1.5;
        /* border-radius: unset; */
        text-decoration: none;
        background-color: transparent;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-right: 4px;
        background-color:#fff ;
        color: #000;
        border-width: 1px ;
        border-color: #000 ;

        /* transition: all 0.2s; */
        position: fixed;
        left: -12px;
        top: 67px;
    }

    .sidebar.small .btn-sidebar-toggle{
        display: inline-block;
        font-weight: 400;
        text-align: center;
        vertical-align: middle;
        cursor: pointer;
        border: 1px solid transparent;
        font-size: 1rem;
        line-height: 1.5;
        border-radius: 0.375rem;
        text-decoration: none;
        color: #6c757d;
        background-color: transparent;
        /* transition: all 0.2s ease-in-out; */
        position:static;
        padding-right: 5px;
        background-color:#fff ;
        color: #6c757d;
    }
}


.content-report {
    /* position: absolute; */
    overflow-y: auto;
}


.toggle-icon {
    transition: transform 0.3s ease;
}

button[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.menu-graph{
    overflow-y: auto;
}

.keyboard-offcanvas{
    height: auto !important;
}

.nav-item.active-link {
    background-color: #cfb0ff;
    color: black;
}

.nav-item.active-link .nav-link a{
    color: black;
}

.nav-item.active-link .nav-link-item.active-link a{
    color: #6f42c1;
    font-weight: bold;
}

.sidebar .nav-item a.nav-link {
    color:#6c757d;
    text-decoration: none;
    cursor: pointer;
}
.sidebar .nav-item a.nav-link-item {
    color:#6c757d;
    text-decoration: none;
    cursor: pointer;
}

.scrollable-cancel-bill {
    max-height: 150px; /* กำหนดความสูงสูงสุดของเซลล์ */
    overflow-y: auto; /* ทำให้สามารถเลื่อนในแนวตั้งได้ */
}
.table-nowrap{
    text-wrap: nowrap;
}

/* .table-responsive{
    max-height: 400px; overflow: auto;
} */

.offcanvas-scrollable{
    max-height: calc(110vh - 150px);
    overflow-y: auto;
}
.mian-scrollable{
    max-height: 630px;
     overflow-y: auto;
}

.orders-viewcurrent{
    margin-bottom: 71px;
}
@media screen and (max-width:340px) {
    .order-test {
        margin-bottom: 87px;
    }
}

.text-align-center{
    text-align:center;
}

.offcanvas-250 {
    width: 250px !important;
}

.fixed-size-img {
    width: auto;
    height: 90px;
    object-fit: cover;
    background-color: white;
    display: block;
}

@media screen and (min-width: 1440px) {
    .fixed-size-img {
        width: auto;
        height: 123px;
    }
}

@media screen and (max-width: 991px) {
    .fixed-size-img {
        width: auto;
        height: 123px;
    }
}

@media screen and (max-width: 767px) {
    .fixed-size-img {
        width: auto;
        height: 165px;
    }
}

@media screen and (max-width: 575px) {
    .fixed-size-img {
        width: auto;
        height: 105px;
    }
}

.menu-category {
    position: sticky; top: 0;
    background-color: white;
    z-index: 10;
    overflow-x: auto;
    white-space: nowrap;
}

.fixed-main-content {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
}

.fullscreen-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* สีพื้นหลังโปร่งแสง */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050; /* ให้แสดงอยู่ด้านหน้า */
  }

/* สไตล์ที่ใช้แสดงใน desktop */
.current-customer-order {
    display: block; /* แสดงเสมอใน desktop */
    z-index: 1;
}

/* สไตล์สำหรับ Mobile */


@media (max-width: 768px) {
    .current-customer-order.mobile-slide {
        display: block; /* ให้แสดงใน Mobile */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(100%); /* เริ่มจากที่ซ่อน */
        transition: transform 0.3s ease-in-out;
        z-index: 1050;
    }
}

/* เมื่อมี class 'show' */
.current-customer-order.mobile-slide.show {
    transform: translateY(0); /* เลื่อนขึ้นเมื่อเปิด */
}


.btn-close-current-order {
    display: none;
}

@media (max-width: 768px) {
    .btn-close-current-order {
        display: block; /* แสดงปุ่ม Close ใน Mobile */
    }
}

.current-order-mobile-btn {
    display: none;
}

@media screen and (max-width: 768px){
    .current-order-mobile-btn {
        display:block;
        position: fixed;
        right: 0;
        bottom: 74px;
        left: 0;
        z-index: 1030;
    }
}
.scrollModelCheckots{
    max-height:440px;
    overflow-y: auto;
}
.imgBankking{
    width: 30px;
    height: 30px;
}
