.open_order_popup {
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--gtt-primary-color);
}
#popup-order-detail {}
#popup-order-detail .popup_container {
    /* height: calc(100% - 40px);
    width: 100%;
    padding: 10px; */
}
#popup-order-detail.wrap_popup .popup_head {
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: column;
    top: 6px;
    width: 70px;
    height: 100%;
}
#popup-order-detail.wrap_popup .popup_head button {
    font-size: 15px;
    color: #000;
    background: transparent;
    padding: 5px 0px;
    margin-bottom: 7px;
    border: 0;
}
#popup-order-detail.wrap_popup .popup_head button span {
    display: block;
}
#popup-order-detail.wrap_popup .close_popup {
    position: initial;
    margin-bottom: 10px;
}
#popup-order-detail.wrap_popup .close_popup i {
    display: block;
    color: var(--gtt-primary-color);
    font-size: 39px;
    margin-bottom: -2px;
}
#popup-order-detail.wrap_popup .popup_head .order_action {
    border: 0;
    position: relative;
}
#popup-order-detail.wrap_popup .popup_head .order_action i {
    display: block;
    color: var(--gtt-primary-color);
    font-size: 28px;
    margin: auto;
}
#popup-order-detail.wrap_popup .popup_head .order_action .icon-cho-phep-nhan-viec {
    position: absolute;
    top: -1px;
    right: 13px;
    font-size: 19px;
}
#popup-order-detail.wrap_popup .popup_head #admin-approve-don-hang-si,
#popup-order-detail.wrap_popup .popup_head #admin-approve-don-hang-yapi {
    position: absolute;
    bottom: 38px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
#popup-order-detail.wrap_popup .popup_head #admin-approve-don-hang-yapi {
    bottom: 110px;
    text-wrap: nowrap;
    padding-left: 0;
    padding-right: 0;
}
#popup-order-detail.wrap_popup .popup_head #admin-approve-don-hang-si i,
#popup-order-detail.wrap_popup .popup_head #admin-approve-don-hang-yapi i {
    width: 28px;
    height: 28px;
    border: 3px solid var(--gtt-primary-color);
    border-radius: 100%;
    font-size: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2px;
}
#popup-order-detail .wrap_comment .wrap_comment_box {
}

/* popup_content_left_right */
.popup_content_left_right .popup_content_left .order_marks span#percent_gia_von_don_hang {
    cursor: context-menu;
}

/*--------- VAT button */
#popup-order-detail .popup_content_left .vat_action_buttons {
    display: inline-flex;
    gap: 5px;
    width: auto;
    overflow: initial;
}
#popup-order-detail .popup_content_left .vat_action_buttons button,
#popup-order-detail .popup_content_left .vat_action_buttons a {
    border: 0;
    color: var(--gtt-primary-color);
    background: transparent;
    font-size: 13px;
    border-radius: 100%;
    padding: 0;
    /* height: 21px; */
    width: 15px;
    /* line-height: 21px; */
    text-align: center;
    position: relative;
    top: 3px;
}
#popup-order-detail .popup_content_left .vat_action_buttons button i,
#popup-order-detail .popup_content_left .vat_action_buttons a i {
    width: 15px;
    height: 15px;
}


/*--------- hiển thị file thiết kế theo status */
.popup_content_left_right #wrap_file_thiet_ke #upload_file_thiet_ke,
.popup_content_left_right #wrap_file_thiet_ke #designer,
.popup_content_left_right #wrap_file_thiet_ke #design_file,
.popup_content_left_right #wrap_file_thiet_ke #user_san_xuat {
    display: none;
}

/* dang-cho-thiet-ke */
.popup_content_left_right #wrap_file_thiet_ke.dang-cho-thiet-ke #upload_file_thiet_ke,
.popup_content_left_right #wrap_file_thiet_ke.dang-cho-thiet-ke #designer,
.popup_content_left_right #wrap_file_thiet_ke.dang-cho-thiet-ke #design_file { display: none; }

/* dang-thiet-ke */
.popup_content_left_right #wrap_file_thiet_ke.dang-thiet-ke #designer { display: block; }
.popup_content_left_right #wrap_file_thiet_ke.dang-thiet-ke #design_file,
.popup_content_left_right #wrap_file_thiet_ke.dang-thiet-ke #upload_file_thiet_ke { display: none; }

/* uploaded-file */
.popup_content_left_right #wrap_file_thiet_ke.uploaded-file #designer { display: block; }
.popup_content_left_right #wrap_file_thiet_ke.uploaded-file #design_file { display: flex; }

/* dang-thiet-ke owned */
.popup_content_left_right #wrap_file_thiet_ke.dang-thiet-ke.owned #upload_file_thiet_ke {display: flex;}
.popup_content_left_right #wrap_file_thiet_ke.dang-thiet-ke.owned #designer { display: none; }
/* .popup_content_left_right #wrap_file_thiet_ke.dang-thiet-ke.owned #design_file { display: none; } */

/* thiet-ke-xong */
.popup_content_left_right #wrap_file_thiet_ke.thiet-ke-xong #upload_file_thiet_ke { display: none; }
.popup_content_left_right #wrap_file_thiet_ke.thiet-ke-xong #designer { display: block; }
.popup_content_left_right #wrap_file_thiet_ke.thiet-ke-xong #design_file { display: flex; }

/* dang-san-xuat */
.popup_content_left_right #wrap_file_thiet_ke.dang-san-xuat #upload_file_thiet_ke { display: none; }
.popup_content_left_right #wrap_file_thiet_ke.dang-san-xuat #designer {display: block;display: none !important;}
.popup_content_left_right #wrap_file_thiet_ke.dang-san-xuat #design_file { display: flex; }

/* da-san-xuat */
.popup_content_left_right #wrap_file_thiet_ke.da-san-xuat #upload_file_thiet_ke { display: none; }
.popup_content_left_right #wrap_file_thiet_ke.da-san-xuat #designer { display: block; }
.popup_content_left_right #wrap_file_thiet_ke.da-san-xuat #design_file { display: flex; }

.popup_content_left_right .user_incharge { line-height: 20px; margin: 0px 0; font-size: 13px; }
.popup_content_left_right .user_incharge span {}

/* bảo hành */
.popup_content_left_right .hide_info_info .hide_info_expire #order_het_bao_hanh {
    font-size: var(--gtt-font-size-xl);
}

#popup-order-detail .popup_content_left_right .popup_content_left_title [data-action="unlock-order-role-san-xuat-mua-ngoai"] {
    border: 0;
    font-size: 20px;
    position: absolute;
    padding: 0;
    margin-left: 7px;
}
#popup-order-detail .popup_content_left_right .popup_content_left_title [data-action="unlock-order-role-san-xuat-mua-ngoai"] i.fa-unlock {}
#popup-order-detail .popup_content_left_right .popup_content_left_title [data-action="unlock-order-role-san-xuat-mua-ngoai"] i.fa-lock {
    color: var(--bs-danger);
}

/* order_status_log */
#popup-order-detail .popup_content_left_right .order_status_log {
    height: calc(100% - 390px);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;
    transition: bottom 0.2s, height 0.2s;
}

/* Khi order_documents expand, đẩy order_status_log xuống */
#popup-order-detail .popup_content_left_right #order_documents.is_expanded ~ .order_status_log {
    /* bottom: -116px; */
    height: calc(100% - 390px - 72px);
}

#popup-order-detail .popup_content_left_right .order_status_log_title {
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}
#popup-order-detail .popup_content_left_right .order_status_log_detail {
    position: relative;
    padding: 17px 0;
    width: 90%;
    margin: auto;
    margin-right: 25px;
    max-height: calc(100% - 24px);
    overflow: auto;
}
#popup-order-detail .popup_content_left_right .order_status_log_detail:before {
    content: "";
    background: #000;
    width: 2px;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 0;
}
#popup-order-detail .popup_content_left_right .order_status_log_detail li {
    display: flex;
    font-size: var(--gtt-font-size);
    position: relative;
    line-height: 35px;
}
#popup-order-detail .popup_content_left_right .order_status_log_detail li:first-child {
}
#popup-order-detail .popup_content_left_right .order_status_log_detail li:before {
    content: "";
    background: #000;
    width: 2px;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 0;
}
#popup-order-detail .popup_content_left_right .order_status_log_detail li:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(0, -50%);
    height: 8px;
    width: 8px;
    margin-left: -3px;
    border-radius: 100%;
    background: #000;
}
#popup-order-detail .popup_content_left_right .order_status_log_detail li.active,
#popup-order-detail .popup_content_left_right .order_status_log_detail li:last-child {}
#popup-order-detail .popup_content_left_right .order_status_log_detail li.active .order_status_log_label,
#popup-order-detail .popup_content_left_right .order_status_log_detail li:last-child .order_status_log_label {
    color: var(--gtt-primary-color);
    /* font-weight: 700; */
}
#popup-order-detail .popup_content_left_right .order_status_log_detail li.active .order_status_log_time,
#popup-order-detail .popup_content_left_right .order_status_log_detail li:last-child .order_status_log_time {
    color: var(--gtt-primary-color);
    /* font-weight: 700; */
}
#popup-order-detail .popup_content_left_right .order_status_log_detail li.active:after,
#popup-order-detail .popup_content_left_right .order_status_log_detail li:last-child:after {
    background: var(--gtt-primary-color);
}

#popup-order-detail .popup_content_left_right .order_status_log_detail .order_status_log_label {
    text-align: right;
    width: 50%;
    padding-right: 19px;
}
#popup-order-detail .popup_content_left_right .order_status_log_detail .order_status_log_avatar {
    position: absolute;
    left: 50%;
    margin-left: 14px;
    border-radius: 100%;
    overflow: hidden;
    /* height: var(--gtt-avatar-sm); */
    /* width: var(--gtt-avatar-sm); */
}
#popup-order-detail .popup_content_left_right .order_status_log_detail .order_status_log_avatar img {
    /* height: 100%; */
    /* width: 100%; */
}
#popup-order-detail .popup_content_left_right .order_status_log_detail .order_status_log_time {
    margin-left: auto;
    width: 50%;
    text-align: left;
    padding-left: 48px;
}

/* order_documents */
#popup-order-detail #order_documents {
    text-align: center;
    justify-content: center;
    position: relative;
    top: -35px;
}
#popup-order-detail #order_documents .order_documents_title {
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}
#popup-order-detail .popup_content_left_right .wrap_order_documents {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s;
}

/* Khi expand, hiển thị wrap_order_documents */
#popup-order-detail .popup_content_left_right #order_documents.is_expanded .wrap_order_documents {
    max-height: 116px;
}
#popup-order-detail .popup_content_left_right #order_documents [data-action="documents-toggler"] {
    border: 0;
    background: var(--gtt-light-bg);
    border-radius: 100%;
    padding: 0;
    height: 45px;
    width: 45px;
    position: relative;
    display: block;
    margin: auto;
}
#popup-order-detail .popup_content_left_right #order_documents [data-action="documents-toggler"]:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid var(--bs-body-color);
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translate(0, -50%);
    margin-left: -6px;
}
#popup-order-detail .popup_content_left_right #order_documents [data-action="documents-toggler"] i {
    width: 27px;
    height: 27px;
}
#popup-order-detail .popup_content_left_right .wrap_order_documents .order_documents_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}
#popup-order-detail .popup_content_left_right .wrap_order_documents .order_documents_list li {}
#popup-order-detail .popup_content_left_right .wrap_order_documents .order_documents_list li a {
    padding: 0 10px;
    color: var(--bs-body-color);
    text-decoration: none;
}
#popup-order-detail .popup_content_left_right .wrap_order_documents .order_documents_list li a:hover {
    color: var(--gtt-primary-color);
}
#popup-order-detail .popup_content_left_right .wrap_order_documents .order_documents_list li:after {
    content: "";
    position: absolute;
    width: 1px;
    height: 19px;
    background: var(--bs-body-color);
}
#popup-order-detail .popup_content_left_right .wrap_order_documents .order_documents_list li:nth-child(3):after,
#popup-order-detail .popup_content_left_right .wrap_order_documents .order_documents_list li:last-child:after {
    display: none;
}
#popup-order-detail .popup_content_left_right #order_documents:not(.is_expanded) .order_documents_list li:after {
    display: none;
}