
html, body{
    font-size: 16px;
    font-family:  serif;
    height: 100%; /* Đảm bảo html và body chiếm toàn bộ chiều cao màn hình */
    margin: 0;   /* Loại bỏ margin mặc định */
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto; /* auto cho header/footer, 1fr cho nội dung chính */
    grid-template-columns: 100%;       /* Chiếm toàn bộ chiều rộng */
}

#main_header { /* Hoặc class/selector thích hợp */
    height: 70px; /* Chiều cao ví dụ */
    position: relative;
    /* Các thuộc tính khác */
}

#right_nav{
    /*position: absolute;*/
    /*left: 50%;*/
    /*transform: translateX(-50%);*/
    width: 25%;
    display: flex;
    justify-content: space-around;
}

#main_footer { /* Hoặc class/selector thích hợp */
    height: 33px; /* Chiều cao ví dụ */
    /* Các thuộc tính khác */
}

.wrapper {
    /*min-height: calc(100vh - 70px - 33px); !* 100vh - header - footer *!*/
    min-height: calc(100vh - 70px ); /* 100vh - header - footer */
    /*margin-top: 70px; !* Chiều cao header *!*/
    margin-bottom: 50px; /* Chiều cao footer */
    /* Các thuộc tính khác */
}

#overlay3 {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,30%);
    z-index: 4;
    cursor: pointer;
}

.text_overlay2{
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    /* Các thuộc tính cho phần nội dung bên trong wrapper */
    min-height: inherit; /* Cho phép content kế thừa min-height từ wrapper */
    height: 100%;
}

#view_root{
    width: 100%;
    height: 100%;
    /*background: #000c19;*/
}

.center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.view_content{
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    grid-gap: 15px;
    /*background: #000c19;*/
    padding: 25px;
}
.view_pay_content {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 45% 55%;
    /*grid-template-rows: auto 1fr; !* Thêm một hàng để chứa table *!*/
    grid-gap: 15px;
    /*background: #000c19;*/
    padding: 25px;
}

.table-wrapper {
    grid-column: 1 / 3; /* Chiếm cả hai cột */
    height: 400px; /* Chiều cao cố định */
    overflow: hidden auto; /* Ẩn nội dung tràn ra ngoài */
}

.bill_table {
    height: 100%; /* Lấp đầy .table-wrapper */
    width: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.side_bar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    /*background-color: #000c19;*/
    /*position: fixed;*/
    height: 100%;
    overflow: auto;
}

.side_bar_item a {
    display: flex;
    justify-content: center ;
    align-items: center;
    flex-direction: column;
    color: #FFF;
    padding: 8px 8px;
    text-decoration: none;
    font-size: 1.1rem;
}

.side_bar_item a.active {
    background-color: rgba(46%, 58%, 69%,20%);
    border-radius: 10px;
    color: white;
    position: relative;

    &:before {
        content: '';
        position: absolute;
        bottom: 0;
        width: 100%;
        left: 0;
        display: inline-block;
        height: 5px;
        /*background: #4daf7c;*/
        z-index: 25;
        /*padding: 0 15px;*/
        pointer-events: none;
        /*border-radius: 0 10px 10px 0;*/
        /*border: 1px solid #ced4da;*/
    }
}

.side_bar_item a:hover:not(.active) {
    background-color: rgba(46%, 58%, 69%,50%);
    transform: scale(1.2);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    color: white;
    border-radius: 10px;
}

.side_bar_icon{
    width: 35px;
    height: 35px;
    /*margin-right: 10px;*/
}

.main_content{
    display: grid;
    /*grid-template-columns: 6% 94%;*/
    column-gap: 1px;
}

.form_bottom {
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form_bottom_pay_view{
    height: 10%;
    display: flex;
    /*justify-content: center;*/
    /*align-items: center;*/
    justify-content: end;
    align-items: start;
    padding-right: 40px;
}

.text-center{
    text-align: center;
}

.select2-container{
    width: 100% !important;
}

.info_table{
    width: 100%;
    height: 100%;
    overflow: hidden auto;
    /*padding: 15px;*/
    padding: 5px 15px;
    /*border: 1px solid #000;*/
    border-radius: 5px;
    /*background: #053554;*/
}
.info-label{
    font-size: 1.05rem;
}
.info_image{
    width: 100%;
    padding: 5px;
    border: 1px solid #000;
    border-radius: 5px;
}

.info_field{
    border-radius: 10px;
}

.w-60{
    width: 60% !important;
}

.form-group{
    margin-bottom: 0.75rem;
    /*display: flex;*/
    justify-content: space-between;
}

.guide_div,
.update_view,
.info_form{
    background: #fff;
    border-radius: 15px;
    height: 100%;
    border: 1px solid;
}

.info_form{
    display: grid;
    grid-template-rows: 10% 90% ;

}

.update_view {
    display: grid;
    grid-template-rows: 50% 50%;
}


.info_form .form-title{
    padding:  10px 0px 0px 15px;
}
.update_view .form-title{
    padding:  10px 0px 0px 15px;
}

.update_view .form-title-text{
    font-size: 1.5rem;
}
.info_form .form-title, .form_bottom{
    height: 100%;
}

.form-title{
    height: 20%;
    padding: 10px 0px 0px 0px ;
    font-weight: 800;
}
.form-title-text{
    font-weight: 800;
}

.pay_div{
    display: grid;
    /*grid-template-rows: 70% 29%;*/
    /*grid-gap: 5px;*/
}

.info_order_div,
.gen_code_div{
    width: 100%;
    height: 100%;
    background: #fff ;
    border-radius: 15px;
}

.info_order_div{
    display: grid;
    grid-template-rows: 10% 77% 10% ;
    border: 1px solid ;
}

.info_order_div .form-title{
    font-size: 2rem;
    font-weight: 800;
    padding: 10px 0px 0px 15px;
    /*margin-left: 15px;*/
}
.gen_code_div .form-title{
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0px;
    margin-left: 15px;
}
.info_order{
    padding: 10px;
    height: 100%;
    overflow: hidden ;
}

.total_price{
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total_price_value{
    font-size: 1.3rem;
    text-align: end;
}
.order_item{
    margin-left: 20px;
}
.order_item_content{
    margin-left: 10px;
}
.price{
    font-size: 1.2rem;
    display: flex;
    justify-content: end;
    padding: 0px 10px;
}
.bill_table{
    height: 300px;
    overflow:  auto;
}
/*nút select*/
.select2-container--bootstrap4 .select2-selection{
    border: 1px solid transparent;
    border-radius: 10px !important;
}

.btn_pay {
    background: #053554;
    min-width: 135px;
    width: 150px;
    height: 45px;
    padding: 10px;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    border: 0;
    font-weight: 500;
    font-size: 1.1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07), 0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07), 0 16px 32px rgba(0, 0, 0, 0.07), 0 32px 64px rgba(0, 0, 0, 0.07), inset 0 1px 0 0px rgba(255, 255, 255, 0.15);
    transition: all 150ms ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.btn_pay:hover {
    filter: brightness(1.1);
}

.btn_pay:active {
    transform: scale(.95);
}

.pay_text{
    margin-left: 5px;
}

.pay_img{
    width: 20%;
}

.select2-selection--multiple { /* Thay selector này nếu cần */
    max-height: 55px; /* Chiều cao tối đa của ô */
    overflow-y: auto; /* Thêm thanh cuộn dọc khi nội dung vượt quá */
}

.select2-selection__rendered { /* Selector cho phần tử chứa các item */
    display: block; /* Đảm bảo các item được hiển thị theo chiều dọc */
    overflow: hidden; /* Ẩn nội dung tràn ra ngoài */
    text-overflow: ellipsis; /* Hiển thị dấu "..." khi nội dung bị cắt */
    white-space: nowrap; /* Ngăn xuống dòng */
}

/*nút upload*/
.file-upload-wrapper {

    position: relative;
    width: 100%;
    height: 40px;

    &:after {
        content: attr(data-text);
        font-size: 1rem;
        position: absolute;
        top: 0;
        left: 0;
        background: #fff;
        padding: 10px 15px;
        display: block;
        width: calc(100% - 40px);
        pointer-events: none;
        z-index: 20;
        height: 40px ;
        line-height: 20px;
        color: #999;
        border-radius: 10px;
        font-weight: 400;
        border : 1px solid #ced4da;
    }

    &:before {
        content: 'Upload';
        position: absolute;
        top: 0;
        right: 0;
        display: inline-block;
        height: 40px;
        background: #053554;
        color: #fff;
        font-weight: 700;
        z-index: 25;
        font-size: 1rem;
        line-height: 40px;
        padding: 0 15px;
        text-transform: uppercase;
        pointer-events: none;
        border-radius: 0 10px 10px 0;
        border: 1px solid #ced4da;
    }

    /*&:hover {*/
    /*    &:before {*/
    /*        background: darken($defaultColor, 10%);*/
    /*    }*/
    /*}*/
    input {
        opacity: 0;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 99;
        height: 40px;
        margin: 0;
        padding: 0;
        display: block;
        cursor: pointer;
        width: 100%;
    }


}

/*update view*/
.progress_div{
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
}

.progress_img{
    height: 70%;
}

.update_progress{
    display: grid;
    grid-template-rows: 20% 60% 20%;
}

.progress_bar{
    width: 100%;
    display: flex;
    justify-content: center;
}

.progress-6 {
    width:50%;
    height:25px;
    border-radius: 20px;
    color:#000c19;
    border:2px solid;
    position: relative;
}
.progress-6::before {
    content:"";
    position: absolute;
    margin:2px;
    inset:0 100% 0 0;
    border-radius: inherit;
    background:currentColor;
    animation:p6 2s infinite;
}
@keyframes p6 {
    100% {inset:0}
}

.item{
    display: flex;
    min-height: 150px;
    height: 150px;
    background: #0f1f2c;
    border-radius: 10px;
}
.item_content{
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding-left: 30px;
}
.img{
    height: 100%;
    width: 30%;
}
.item-img{
    height: 100%;
    width: 100%;
    object-fit: contain;
}
.item-title{
    font-size: 1.3rem;
    color: aliceblue;
    font-weight: 800;
}
.active_btn{
    width: 70%;
    height: 35%;
    background: aliceblue;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
}
.active_btn:hover {
    cursor: pointer;
}

.active_btn:active {
    transform: scale(.95);
}
.active_btn_img{
    width: 10%;
    margin-left: 10px;
}
.list_active_devices{
    padding: 15px;
}






