#new_billing_window {
    position: fixed;
    inset: 0;
    background-color: rgb(0 0 0 / 63%);
    z-index: 1;
    overflow-y: scroll;
}

#bill_footer {
    display: flex;
    float: right;
    margin-top: 8px;
}

#main_bill_container {
    background: #f8f8f8fc;
    position: absolute;
    width: 954px;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 14px 25px 14px 25px;
    box-shadow: 0 0 7px 0.3px #0c0b0b;
    font-size: var(--fontSize);
}

.xp_bill_input_container,
.xp_bill_amt_input_container {
    border: 1px solid rgb(161 156 156);
    padding: 1px 3px;
    background: white;
}

.xp_bill_input_container:focus-within,
.xp_bill_amt_input_container:focus-within {
    border: 1px solid #0300c9;
}

.xp_bill_amunts {
    text-align: right;
    width: 96%;
    font-size: var(--fontSize);
    padding: 1px 3px;
}

.bill_sub_head_flex_div {
    display: flex;
    padding: 5px 0;
}

.bill_sub_head_flex_div span {
    color: red;
    margin-right: 2px;
}

.bill_sub_head_flex_div input {
    /* border-bottom: 1px solid rgb(161 156 156); */
    font-size: var(--fontSize);
    width: 100%;
    padding-bottom: 2px;
    text-transform: uppercase;
}

.bill_dropdown {
    border: 1px solid rgb(161 156 156 / 95%);
    padding: 1px 0;
    font-size: var(--fontSize);
    width: 360px;
    margin-left: 10px;
}

.bill_dropdown:focus-within {
    border: 1px solid #0300c9;
}

#xp_bill_gender,
#xp_bill_ref_by_dr,
#xp_bill_agent_name,
#xp_bill_test_name {
    padding: 1px 4px;
}

#exist_patient_list {
    position: absolute;
}


/* tests table */

#xp_bill_test_section {
    border: 1px solid #00000063;
    height: 170px;
    padding: 6px 0;
}

#xp_bill_test_container {
    height: 150px;
    overflow-y: scroll;
    background: white;
}

.bill_test_table_header {
    padding-bottom: 6px;
    border-bottom: 1px solid #00000052;
    /* margin-bottom: 6px; */
    display: flex;
    font-size: var(--fontSize);
    position: relative;
}

.bill_test_row {
    display: flex;
    font-size: var(--fontSize);
    padding: 4px 0px;
    margin: -5px 0px;
    position: relative;
    border-top: 1px solid rgb(220, 220, 220);
}

.bill_test_row div {
    /* border-top: 1px solid rgb(220, 220, 220); */
    padding-top: 2px;
}

.bill_test_row_column_zero {
    width: 20px;
    padding: 0px 5px;
}

.bill_test_row_column_zero img {
    cursor: pointer;
    padding-top: 1px;
    position: absolute;
}

.bill_test_row_column_one {
    width: 50px;
    text-align: center;
}

.bill_test_row_column_two {
    width: 425px;
    padding-left: 20px;
}

.bill_test_row_column_three {
    width: 100px;
    text-align: center;
}

.bill_test_row_column_four {
    width: 100px;
    text-align: center;
}

.bill_test_row_column_five {
    width: 90px;
    text-align: right;
    padding-right: 20px;
}

.print_btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
}

#add_new_test_window input:focus,
#add_new_test_window select:focus,
#add_new_test_window textarea:focus {
    border: 1px solid blue;
}

/* doctor suggession popup */

#xp_bill_ref_by_dr_container, #xp_bill_ref_by_agent_container {
    width: 373px;
    max-height: 350px;
    overflow-y: scroll;
    padding: 4px 5px;
    background: white;
    position: absolute;
    top: 177px;
    left: 121px;
    border: 1px solid #0092c9;
}

#xp_bill_test_suggession_container {
    width: 794px;
    height: 150px;
    overflow-y: scroll;
    padding: 4px 5px;
    background: white;
    position: absolute;
    top: 224px;
    left: 44px;
    border: 1px solid #0092c9;
}

/* Specially for pdf view */

#bill_html_container_for_pdf {
    background: var(--mainColor);
}

.bill_pdf_head {
    border-bottom: 1px solid rgb(86 84 84);
    padding-bottom: 40px;
    margin-bottom: 32px;
    position: relative;
}

.bill_pdf_head p {
    font-size: 33px;
    font-weight: bold;
    width: 420px;
    height: 52px;
    text-align: center;
}

.bill_pdf_moneyreceipt {
    border: 1px solid #000000bf;
    width: fit-content;
    position: absolute;
    bottom: -50px;
    left: 50%;
    padding: 0px 60px;
    border-radius: 10px;
    background: white;
    transform: translate(-50%, -50%);
}

.bill_pdf_test_row_header {
    display: flex;
    font-weight: bold;
    border-bottom: 1px solid rgb(14 14 14);
    border-top: 1px solid rgb(14 14 14);
}

.bill_pdf_test_container {
    margin-top: 12px;
    height: 760px;
    border-bottom: 1px solid rgb(14 14 14);
    font-size: 36px;
    position: relative;
}

.bill_pdf_info_header {
    font-size: 36px;
}

.bill_pdf_footer {
    border-bottom: 1px solid rgb(14 14 14);
    font-size: 36px;
}

.bill_pdf_flex {
    display: flex;
}

.pdf_bill_amounts {
    width: 50%;
    text-align: right;
}

.pdf_bill_amounts_head {
    width: 50%;
    font-weight: bold;
}
/* /////////// */

.bill_pdf_test_container .bill_in_a4 {
    color: #000000f5;
    position: relative;
    width: 1800px;
    height: 3000px;
    background: var(--mainColor);
    font-size: 36px;
    padding: 20px 30px;
}

.bill_in_half_a4 {
    color: #000000f5;
    position: relative;
    width: 1800px;
    background: var(--mainColor);
    font-size: 36px;
    padding: 20px 30px;
}

.bill_head {
    text-align: center;
    border-bottom: 1px solid rgb(161 156 156);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.bill_head p {
    font-size: 16px;
    font-weight: bold;
}

/* .bill_pdf_test_container p,
.bill_pdf_test_container span,
.bill_pdf_test_container div {
    font-size: 22px;
} */

.bill_pdf_test_row {
    display: flex;
    /* font-size: var(--fontSizeForPrint); */
    padding: 2px 0px;
    margin: -5px 0px;
}

.bill_pdf_flex p.left {
    width: 72%;
    margin-right: 2%;
    font-size: 34px;
}

.bill_pdf_flex p.right {
    width: 28%;
    position: relative;
    font-size: 34px;
}

/* refund test */

#test_refund_value {
    width: -webkit-fill-available;
    /* margin: 0 40px 20px 40px; */
    font-size: 20px;
    border-bottom: 1px solid rgb(220 220 220);
    background: none;
}


/* receive payment */

.payment_receive_patient_details {
    width: 66%;
    display: flex;
    flex-wrap: wrap;
}

.payment_receive_patient_details_div {
    display: flex;
    margin-bottom: 12px;
}

.payment_receive_patient_details p {
    width: 132px;
}

.payment_receive_body select {
    width: 56%;
    font-size: var(--fontSize);
    border: 1px solid rgb(220 220 220);
    height: 26px;
    margin-top: 4px;
    margin-left: 0px;
}

#receive_payment_value,
#rp_adj_value,
#rc_refund_value {
    width: 150px;
    text-align: right;
    background: white;
    padding: 4px;
    font-size: var(--fontSize);
    border: 1px solid #00000040;
}

.payment_receive_body textarea {
    width: 95%;
    /* width: 223px; */
    font-size: var(--fontSize);
    border: 1px solid rgb(220 220 220);
    height: 52px;
    margin-top: 6px;
    padding: 6px;
}

.payment_receive_body {
    border: 1px solid #00000036;
    margin-left: 2px;
}

.payment_receive_body p {
    /* width: 140px; */
    margin-top: 8px;
    background: #00540ed4;
    margin-bottom: 10px;
    padding: 2px 4px;
    color: white;
}

.payment_receive_body h4 {
    margin-right: 7px;
    margin-top: 4px;
    width: 120px;
}

#payment_receive_footer {
    position: absolute;
    background: rgb(255, 255, 255);
    bottom: 55px;
    /* left: 50%; */
    right: 28px;
}


/* receive payment summary */

#payment_collection_window {
    position: fixed;
    inset: 0;
    background-color: rgb(1 2 40 / 71%);
    overflow-y: scroll;
    padding-top: 42px;
    z-index: 1;
}

#main_payment_collection_container {
    background: #f3f6f8fc;
    position: absolute;
    padding: 20px;
    width: 820px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 7px 0.3px #0c0b0b;
    font-size: var(--fontSize);
}

.paymnt_recv_summary_action {
    width: 4%;
    text-align: center;
    padding: 6px 1%;
    display: inline-flex;
}

.paymnt_recv_summary_action img {
    cursor: pointer;
    margin: 0 2px;
    width: 20px;
    height: 20px;
    padding: 0px 4px;
}

.paymnt_recv_summary_slno {
    width: 4%;
    text-align: center;
    padding: 6px 0.5%;
    border-left: 1px solid #0000003b;
}

.paymnt_recv_summary_billno {
    width: 12%;
    text-align: center;
    padding: 6px 1%;
    border-left: 1px solid #0000003b;
}

.paymnt_recv_summary_date {
    width: 12%;
    text-align: center;
    padding: 6px 1%;
    border-left: 1px solid #0000003b;
}

.paymnt_recv_summary_time {
    width: 10%;
    text-align: center;
    padding: 6px 1%;
    border-left: 1px solid #0000003b;
}

.paymnt_recv_summary_userID {
    width: 8%;
    text-align: center;
    padding: 6px 1%;
    border-left: 1px solid #0000003b;
}

.paymnt_recv_summary_mode {
    width: 12%;
    text-align: center;
    padding: 6px 1%;
    border-left: 1px solid #0000003b;
}

.paymnt_recv_summary_paymntType {
    width: 14%;
    text-align: center;
    padding: 6px 1%;
    border-left: 1px solid #0000003b;
}

.paymnt_recv_summary_amount {
    width: 10%;
    text-align: right;
    padding: 6px 1%;
    border-left: 1px solid #0000003b;
}

/* Report delivered  */
#test_list_view_bill_list {
    position: fixed;
    inset: 0;
    background-color: rgb(1 2 40 / 71%);
    overflow-y: scroll;
    padding-top: 42px;
    z-index: 1;
}

#test_list_view_bill_list_container {
    background: #edededfc;
    position: fixed;
    padding: 20px;
    width: 980px;
    top: 4px;
    bottom: 4px;
    left: 50%;
    transform: translate(-50%);
    box-shadow: 0 0 7px 0.3px #0c0b0b;
    font-size: var(--fontSize);
    overflow-y: scroll;
}

.test_list_test_name {
    width: 46%;
    padding: 6px 0.5%;
}

.test_list_sample_collecton_dt {
    width: 15%;
    padding: 6px 0.5%;
    border-left: 1px solid #ddd6d6;
    text-align: center;
}

.test_list_sample_sourc {
    width: 16%;
    padding: 6px 0.5%;
    border-left: 1px solid #ddd6d6;
    text-align: center;
}

.test_list_report_status {
    width: 14%;
    padding: 6px 0.5%;
    border-left: 1px solid #ddd6d6;
    text-align: center;
}

.test_list_action {
    width: 4%;
    padding: 6px 0.5%;
    border-left: 1px solid #ddd6d6;
    text-align: center;
}

.icon_uqi_btn {
    box-shadow: 4px 4px 10px 0px #c7c4c4;
    padding: 4px 11px;
    cursor: pointer;
}
.icon_uqi_btn:hover {
    background: rgb(100, 100, 226);
    color: #fff;
}
.icon_uqi_active {
    background: rgb(100, 100, 226);
    color: #fff;
}