@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600&display=swap");

body,
p {
    margin: 0;
    line-height: 1.4;
    color: #333;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
}

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

h4 {
    margin: 0;
}

h4 {
    margin: 0;
}

.italic_font {
    font-style: italic;
    color: #bbb;
}

.center_txt {
    text-align: center;
}

.right_txt {
    text-align: right;
}

.uppercase {
    text-transform: uppercase;
}

.captaize {
    text-transform: capitalize;
}

.bold {
    font-weight: bold;
}

table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.botm_brdr_tr {
    border-bottom: 1px solid #bfbfbf;
}

.border_tr .border_td,
.border_tr .border_th {
    border: 1px solid #bfbfbf;
    padding: 5px;
}

.invoice_container {
    max-width: 100%;
    background: #f4f4f4;
}

.invoice_container_colorless {
    max-width: 100%;
    background: #fff;
}

.invoice_logo {
    display: inline-block;
    min-height: 50px;
}

.top_details {
    border-bottom: 0;
    margin-top: 15px;
    float: right;
    min-height: 50px;
}

.top_details .top_p {
    display: inline-block;
    margin-right: 15px;
}

.invoice_body {
    /* border: 1px solid #bfbfbf; */
    padding: 10px 20px;
}

.agent_details .agent_details-left {
    display: inline-block;
    width: 50%;
    float: left;
    clear: both;
    margin-bottom: 25px;
}

.agent_details .agent_details-right {
    float: right;
    text-align: right;
    width: 40%;
}

.tkt_details-table tr td,
.tkt_details-table tr th {
    border: 1px solid #bfbfbf;
    padding: 5px;
    font-size: 14px;
}

.tkt_details-table {
    margin: 20px 0;
}

.header-bg {
    background: #fff;
}

.bill_container {
    margin: 15px 0;
}

.bill_details .bill_info {
    display: inline-block;
    width: 40%;
    vertical-align: top;
    float: left;
    margin-right: 20px;
}

.bill_info tr td {
    text-align: center;
}

.bill_details .bill_breakup {
    width: 50%;
    float: right;
}

.bill_details .bill_breakup.leftBill {
    float: left;
}

.bill_details .bill_breakup.leftBill .b2cFare_label {
    padding: 10px;
}

.terms_conditions {
    background: #fff;
    padding: 10px;
}

.bill_details {
    margin-top: 15px;
    display: inline-block;
    width: 100%;
}

.gst_container {
    margin: 20px 0;
}

.terms_p {
    display: inline-block;
}

.terms_width {
    min-width: 150px;
    display: inline-block;
}

.bill_table {
    border: 1px solid #bfbfbf;
    margin-bottom: 10px;
}

.bill_table tr th,
.bill_table tr td {
    border: 1px solid #bfbfbf;
    padding: 3px;
}

.invoice_table thead {
    background-color: #e8ecef;
}

.invoice_table tbody tr:nth-child(odd) {
    background-color: #fff;
    padding: 5px;
}

.invoice_table tbody tr:nth-child(even) {
    background-color: #f7f8fa;
    padding: 5px;
}

.tj-bookingId {
    font-size: 17px;
    font-weight: 600;
    float: left;
}

.terms-conditions {
    list-style-type: none;
    padding-left: 0;
}

.agentlogo-invoice {
    max-width: 200px;
    max-height: 50px;
    width: auto;
}

.newcart-reissue {
    clear: both;
}

.download-button {
    text-align: right;
    padding: 10px;
}

.download-button button {
    padding: 10px 20px;
    color: #fff;
    background: #ee7f29;
    border: 0;
    font-size: 16px;
    border-radius: 3px;
    cursor: pointer;
}

.reporting_details_container {
    border: 1px solid #bfbfbf;
    border-bottom: none;
}

.reporting_details_container-heading {
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #bfbfbf;
    padding: 6px;
    background: #e8ecef;
}

.reporting_details_container-pax:nth-child(even) {
    border-bottom: 1px solid #bfbfbf;
    background-color: #fff;
}

.reporting_details_container-pax:nth-child(odd) {
    border-bottom: 1px solid #bfbfbf;
    background-color: #f7f8fa;
}

.reporting_details_container-name {
    padding: 4px 0 0 6px;
    font-size: 15px;
}

.reporting_details_container-field {
    display: inline-block;
    width: 24%;
    padding: 4px;
    text-transform: capitalize;
}

.footer-terms {
    display: inline-block;
    width: 90%;
}

.footer-seal {
    display: inline-block;
    width: 8%;
    padding-top: 25px;
    text-align: center;
}

.seal-img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.corporate-invoiceId {
    font-size: small;
}

.invoice_addressData {
    border: 1px solid #e6e6e6;
    padding: 5px 10px;
    background: #fff;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.invoice_addressmargin {
    margin-bottom: 5px;
}

.footerb2c-terms {
    border: 1px solid #e6e6e6;
    background: #fff;
    padding: 10px;
}

.b2cfooter_list {
    margin-bottom: 5px;
}

.b2cfare_details {
    padding: 10px !important;
}

.b2cinvoice_container {
    width: 80%;
    margin: 0 auto;
    border: 1px solid #ccc;
    background: #f3f3f3;
}

.b2cinvoice_table thead {
    background-color: #09867a;
    color: #fff;
}

.b2cinvoice_th {
    background-color: #09867a;
    color: #fff;
}

.b2cinvoice_table tbody tr:nth-child(even) {
    background-color: #efefef;
}

.b2cinvoice_number {
    text-align: center;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 10px;
    padding: 10px 0;
}

.invoice_bookingdata {
    font-weight: 400;
}
.ssrloader_wrap {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff2e2;
}

.ssrloader {
    position: relative;
    width: 65px;
    border: 1px solid transparent;
    margin: 40px auto;
}

.ssrloader span {
    position: absolute;
    bottom: 0;
    display: block;
    width: 9px;
    height: 5px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.1);
    -webkit-animation: preloader 2s infinite ease-in-out;
    animation: preloader 2s infinite ease-in-out;
}

.ssrloader span:nth-child(2) {
    left: 11px;
    -webkit-animation-delay: 200ms;
    animation-delay: 200ms;
}

.ssrloader span:nth-child(3) {
    left: 22px;
    -webkit-animation-delay: 400ms;
    animation-delay: 400ms;
}

.ssrloader span:nth-child(4) {
    left: 33px;
    -webkit-animation-delay: 600ms;
    animation-delay: 600ms;
}

.ssrloader span:nth-child(5) {
    left: 44px;
    -webkit-animation-delay: 800ms;
    animation-delay: 800ms;
}

.ssrloader span:nth-child(6) {
    left: 55px;
    -webkit-animation-delay: 1000ms;
    animation-delay: 1000ms;
}

@-webkit-keyframes preloader {
    0% {
        height: 5px;
        -webkit-transform: translateY(0);
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.1);
    }

    25% {
        height: 30px;
        -webkit-transform: translateY(15px);
        transform: translateY(15px);
        background: #f8990c;
    }
    50%,
    100% {
        height: 5px;
        -webkit-transform: translateY(0);
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.1);
    }
}

@keyframes preloader {
    0% {
        height: 5px;
        -webkit-transform: translateY(0);
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.1);
    }

    25% {
        height: 30px;
        -webkit-transform: translateY(15px);
        transform: translateY(15px);
        background: #f8990c;
    }
    50%,
    100% {
        height: 5px;
        -webkit-transform: translateY(0);
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.1);
    }
}
/* with border css */
.borderContainer .invoice_body {
    background: #fff;
}
.borderContainer .invoice_body .agent_container .invoiceHeading {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}
.borderContainer .invoice_body .agent_container .invoiceHeading .header-bg .top_details {
    display: none;
}
.borderContainer .invoice_body .agent_container .invoiceHeading .header-bg .invoice_logo .agentlogo-invoice {
    max-width: 150px;
    max-height: 100%;
}
.borderContainer .invoice_body .agent_container .invoiceHeading .invoicenumber {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    margin: 0;
}
.borderContainer .invoice_body .agent_details {
    border: 2px solid #1d4779;
}
.borderContainer .invoice_body .agent_details .agent_details-left {
    float: none;
    border-right: 2px solid #1d4779;
    margin-bottom: 0;
    padding: 0 0 20px 20px;
}
.borderContainer .invoice_body .agent_details .agent_details-right {
    text-align: left;
    width: 47%;
}
.borderContainer .invoice_body .ticket_head {
    text-align: center;
    margin-top: 20px;
}
.borderContainer .invoice_body .ticket_details-container {
    border: 2px solid #1d4779;
    padding: 0 20px;
}
.borderContainer .invoice_body .bill_container .bill_details {
    display: inline-flex;
    justify-content: flex-end;
}
.borderContainer .invoice_body .bill_container .bill_details {
    margin: 0;
}
.borderContainer .invoice_body .bill_container .bill_details .bill_info {
    width: 50%;
    margin-right: 0;
    border: 2px solid #1d4779;
    border-right: 0;
    padding: 20px;
}
.borderContainer .invoice_body .bill_container .bill_details .bill_breakup {
    width: 50%;
    padding: 20px;
    border: 2px solid #1d4779;
}

.bill_details .b2c_billing {
    width: 50%;
}
.b2c_billing .b2cfare_details {
    text-align: left;
}
.b2c_billing .right_txt {
    text-align: right;
}
.b2cinvoice_left {
    width: 50%;
    float: left;
}
.b2cinvoice_right {
    width: 50%;
    float: left;
    text-align: right;
}
/*  Ostin Invoice theme CSS */
.ostinContainer {
    width: 70%;
    margin: 10px auto;
    border: 1px solid #bfbfbf;
}
.ostinHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #bfbfbf;
    padding: 10px;
}
.ostinHeader__text {
    font-weight: bold;
    font-size: 16px;
}
.ostinHeader__detail {
    width: 50%;
}
.ostinHeader__detail.fullWidth {
    width: 100%;
    text-align: center;
}
.ostinHeader__logo--img {
    max-width: 200px;
}
.ostinContainer .agent_details {
    display: flex;
    border-bottom: 1px solid #bfbfbf;
}
.ostinContainer .agent_details .agent_details-left {
    padding: 10px;
    padding-top: 0;
    border-right: 1px solid #bfbfbf;
    margin-bottom: 0;
}
.ostinContainer .agent_details .agent_details-right {
    width: 50%;
    padding: 10px;
    padding-top: 0;
    text-align: left;
}
.flightDetails,
.fareDetails {
    padding: 0 15px;
    border-bottom: 1px solid #bfbfbf;
}
/* .fareDetails {
    border-bottom: none;
} */
.ostinContainer .totalFare .tkt_details-table tr td,
.ostinContainer .totalFare .tkt_details-table tr th {
    width: 50%;
}
.ostinContainer .invoiceTerms .footer-terms .terms-conditions {
    padding: 0 15px;
}
.ostinContainer .reporting_details_container,
.ostinContainer .paxGstContainer {
    margin: 15px;
    margin-top: 0;
}

.invoice_number {
    padding: 0 20px;
}
.fareDetail_row:first-child th {
    background: #e8ecef;
}
.gstDetails_colRow td:first-child{
    font-weight: bold;
    text-align: left;
}
.footer_message {
    text-align: center;
}
/* Invoice V2  */
.borderContainer .invoice_body .agent_container .invoiceHeading .invoice_number {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    margin: 0;
}
.fareDetails__table {
    overflow: scroll;
}
/* Invoice Error page  */
.invoiceError {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-conditions-link {
    color: #5f5fd5;
    text-decoration: underline;
}


@media only screen and (max-width: 600px) {
    .invoice_body {
        padding: 0 15px 15px;
    }

    .invoice_logo {
        width: 50%;
    }

    .header-bg {
        text-align: center;
        display: flex;
    }

    .top_details {
        margin-top: 15px;
        width: 50%;
    }

    .invoicenumber {
        margin: 0;
    }

    .invoicenumber span {
        display: block;
        width: 100%;
        text-align: left;
    }

    .agentlogo-invoice {
        width: 155px;
    }

    .agent_details .agent_details-left {
        width: 100%;
        margin-bottom: 0;
    }

    .agent_details .agent_details-right {
        width: 100%;
        float: left;
        text-align: left;
    }

    .bill_container,
    .bill_details {
        margin: 0;
    }

    .tkt_details-table {
        margin: 15px 0 0;
    }

    .ticket_details-container {
        width: 100%;
        overflow: scroll;
    }

    .bill_details .bill_info {
        width: 100%;
    }

    .bill_details .bill_breakup {
        width: 100%;
    }

    .footer-seal {
        display: block;
        width: 100%;
    }

    .seal-img {
        max-width: 100px;
    }

    .b2cinvoice_container {
        width: 100%;
    }
    /* New design mobile */
    .borderContainer .invoice_body .agent_container .invoiceHeading {
        flex-direction: column;
    }
    .borderContainer .invoice_body .agent_container .invoiceHeading .invoicenumber span {
        text-align: center;
    }
    .borderContainer .invoice_body .agent_details {
        border: 0;
        width: 100%;
        margin: 0;
    }
    .borderContainer .invoice_body .agent_details .agent_details-left {
        border: 2px solid #1d4779;
        box-sizing: border-box;
        margin-bottom: 15px;
        padding: 0 0 10px 10px;
    }
    .borderContainer .invoice_body .agent_details .agent_details-right {
        width: 100%;
        border: 2px solid #1d4779;
        float: none;
        padding: 0 0 10px 10px;
        box-sizing: border-box;
    }
    .borderContainer .invoice_body .ticket_details-container {
        margin-bottom: 15px;
        box-sizing: border-box;
        padding: 0 10px;
    }
    .borderContainer .invoice_body .ticket_details-container .tkt_details-table {
        margin: 15px 0 15px;
    }
    .borderContainer .invoice_body .bill_container .bill_details {
        flex-wrap: wrap;
    }
    .borderContainer .invoice_body .bill_container .bill_details .bill_info {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border-right: 2px solid #1d4779;
    }
    .borderContainer .invoice_body .bill_container .bill_details .bill_breakup {
        width: 100%;
        padding: 10px;
    }
    /* ostin theme  */
    .ostinContainer {
        margin: 0;
        width: 100%;
        border: 0;
    }
    .ostinContainer .tkt_details-table {
        margin: 15px 0;
    }
    .ostinHeader {
        flex-direction: column-reverse;
    }
    .ostinHeader__detail {
        width: 100%;
        text-align: center;
    }
    .ostinContainer .agent_details {
        flex-wrap: wrap;
    }
    .ostinContainer .agent_details .agent_details-right {
        width: 100%;
    }
    .fareDetails__table,
    .flightDetails-table,
    .ostinContainer .paxGstContainer .ticket_details-container {
        overflow: scroll;
    }
    .top_details .top_p {margin-right: 0;}
    .invoice_number {
        display: flex;
        flex-direction: column;
    }
    .body-arabic--wrapper .invoicenumber-positionHandle {
       text-align: right;
    }
    .body-arabic--wrapper .invoiceV2-receiverDetails-positionHandle {
        text-align: right !important;
    }
    .body-arabic--wrapper .tnc-positionHandle {
        padding-right: 0px;
    }
}

@media print {
    @page {
        size: auto;
        margin: 0;
    }

    * {
        -webkit-print-color-adjust: exact;
        -moz-print-color-adjust: exact;
        color-adjust: exact;
    }

    .b2cinvoice_container {
        width: 100%;
    }
    .borderContainer .invoice_body .ticket_details-container .tkt_details-table tr th {
        word-break: break-all;
    }
    .borderContainer .invoice_body .ticket_details-container {
        padding: 5px;
    }
    .borderContainer .invoice_body .agent_details .agent_details-right {
        width: 45%;
    }
    .ostinContainer {
        width: 95%;
    }
    .ostinContainer .download-button {
        display: none;
    }
}

/****************** CSS CHANGES FOR ARABIC **************************/
.body-arabic--wrapper {
    direction: rtl;
}
.body-arabic--wrapper .invoiceV2-topDetails-positionHandle {
    float: left;
}
.body-arabic--wrapper .top_p-positionHandle {
    margin-right: 0;
    margin-left: 15px;
}
.body-arabic--wrapper .invoiceV2-downloadButton-positionHandle {
    text-align: left;
}
.body-arabic--wrapper .invoiceV2-header-bookingId-positionHandle {
    float: right;
}
.body-arabic--wrapper .invoiceV2-senderDetails-positionHandle {
    float: right;
}
.body-arabic--wrapper .invoiceV2-receiverDetails-positionHandle {
    float: left;
    text-align: left;
}
.body-arabic--wrapper table {
    text-align: right !important;
}
.body-arabic--wrapper .invoiceV2-gstDetails-positionHandle td:first-child {
    text-align: right;
}
.body-arabic--wrapper .invoiceV2-fareDetails-positionHandle {
    text-align: left;
}
