.invoices-table > tbody > tr:not(.invoice-row) > td {
    transition: background .3s, color .3s;
    cursor: pointer;
}
.invoice-row {
    position: relative;
}
.invoice-row .lds-roller {
    display: none;
}
.invoice-row.is-loading .lds-roller {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(144,144,144,0.65);
    width: 100%;
    height: 100%;
}

.lds-roller,
.lds-roller div,
.lds-roller div:after {
    box-sizing: border-box;
}
.lds-roller {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}
.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7.2px;
    height: 7.2px;
    border-radius: 50%;
    background: currentColor;
    margin: -3.6px 0 0 -3.6px;
}
.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
    top: 62.62742px;
    left: 62.62742px;
}
.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
    top: 67.71281px;
    left: 56px;
}
.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
    top: 70.90963px;
    left: 48.28221px;
}
.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}
.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
    top: 70.90963px;
    left: 31.71779px;
}
.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
    top: 67.71281px;
    left: 24px;
}
.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
    top: 62.62742px;
    left: 17.37258px;
}
.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12.28719px;
}
@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.invoices-table > tbody > tr:not(.invoice-row):hover > td {
    background: #4D88B5;
    color: #fff;
}

.section-invoices-table .template__content span {
    height: 15px;
    width: 15px;
}

.section-invoices-table .template__content li {
    font-size: 18px;
}

.section-invoices-table input {
    width: 280px;
    height: 36px;
    font-size: 18px;
    box-shadow: 1px 1px 7px 0 rgba(0, 0, 0, .25);
    text-align: center;
    border: none;
    border-radius: 5px;
}

.section-invoices-table .invoices-table-container {
    overflow-x: auto;
}

.invoices-table > thead th:after {
    position: relative;
    content: '\f0dc';
    font-family: 'Font Awesome 5 free';
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
}

.invoices-table > thead th:last-child:after {
    display: none;
}

.invoices-table > thead th.th-sort-asc:after {
    content: '\f0dd';
    margin-top: -6px;
}

.invoices-table > thead th.th-sort-desc:after {
    content: '\f0de';
    margin-bottom: -6px;
}

.section-invoices-table .invoices-table-container > .table > thead th {
    background: #94BACC;
    border: 1px solid #C5C5C5;
    color: #fff;
    font-weight: 600;
    height: 60px;
    vertical-align: middle;
    cursor: pointer !important;
}

.section-invoices-table .invoices-table-container > .table > tbody > tr > td, 
.section-invoices-table .invoices-table-container > .table > thead > tr > th {
    padding: 0.15rem;
    font-size: 12px;
}

@media (min-width: 767px) {

    .section-invoices-table .invoices-table-container > .table > tbody > tr > td, 
    .section-invoices-table .invoices-table-container > .table > thead > tr > th {
        padding: 0.25rem;
        font-size: 13px;
    }
}

@media (min-width: 992px) {

    .section-invoices-table .invoices-table-container > .table > tbody > tr > td, 
    .section-invoices-table .invoices-table-container > .table > thead > tr > th {
        padding: 0.5rem;
        font-size: 15px;
    } 
}

.section-invoices-table .invoices-table-container > .table > thead th:nth-child(2),
.section-invoices-table .invoices-table-container > .table > thead th:nth-child(5) {
    width: 12%;
}

.section-invoices-table .invoices-table-container > .table > thead th:first-child,
.section-invoices-table .invoices-table-container > .table > thead th:nth-child(3),
.section-invoices-table .invoices-table-container > .table > thead th:nth-child(4) {
    width: 10%;
}

.section-invoices-table .invoices-table-container > .table > thead th:nth-child(6) {
    width: 13%;
}

.section-invoices-table .invoices-table-container > .table > thead th:last-child {
    width: 33%;
}

.section-invoices-table .table > tbody > tr > td {
    border: 1px solid #C5C5C5;
}

.section-invoices-table .table > tbody > tr > td:nth-child(6):empty:before {
    content: '!';
    color: red;
}

.section-invoices-table .table > tbody > tr {
    background: #eee;
}

.section-invoices-table .table tr.is-paid {
    background: #E5F1E5;
}

.section-invoices-table .table tr.is-overdue {
    background: #FFECE9;
}

.section-invoices-table .table tr.is-five-days-before {
    background: #F9EABF;
}

/*  invoice  */

.invoice-wrapper {
    background-color: #eee;
    padding: 10px;
}

.invoice {
    margin: 0 auto;
    width: 666px;
    background-color: #fff;
    padding: 20px 15px;
    position: relative;
}

.invoice .table-single-invoice tbody {
    line-break: anywhere;
}

.table-single-invoice .table__comment p {
    text-wrap: wrap;
}

.table-single-invoice .text-wrap {
    text-wrap: wrap;
}

.table-single-invoice .th, 
.table-single-invoice td {
    border: none;
}

.table-single-invoice {
    width: 100%;
    border-spacing: 10px 13px;
    border-collapse: separate;
    table-layout: fixed;
}

.table-single-invoice .ml-auto {
    margin-left: auto;
}

.table-single-invoice .text-right {
    text-align: right;
}

.table-single-invoice h2 {
    font-size: 18pt;
    margin-bottom: 5px;
    font-weight: 700;
    position: relative;
    white-space: initial;
    min-height: 29px;
    /* white-space: nowrap; */
}

.table-single-invoice h2 ~ h5 {
    /* white-space: initial; */
}

.table-single-invoice h6 {
    font-size: 9pt;
    margin: -16px -4px 5px;
    font-weight: 400;
}

.table-single-invoice .fw-bold {
    font-weight: 700;
}

@media (min-width: 767px) {

    .table-single-invoice .fz-9pt {
        font-size: 9pt;
    }

    .table-single-invoice .fz-11pt {
        font-size: 11pt;
    }
}

.table-single-invoice .pr-5px {
    padding-right: 5px !important;
}

.table-single-invoice .ws-initial {
    white-space: initial;
}

.table-single-invoice .min-h-32px {
    min-height: 32px;
}

.table-single-invoice h6 span {
    background: #fff;
    padding: 0 5px;
}

.table-single-invoice h1,
.table-single-invoice h2,
.table-single-invoice h3,
.table-single-invoice h4,
.table-single-invoice h5 {
    font-weight: 700;
}

.table-single-invoice h1 {
    font-size: 20pt;
    line-height: 1.15;
}

@media (min-width: 767px) {

    .table-single-invoice h1 {
        line-height: 1.35;
    }
}

.table-single-invoice h1 small {
    font-size: 16pt;
}

.table-single-invoice p,
.table-single-invoice h5 {
    font-size: 10pt;
    margin-bottom: 0;
}

.table-single-invoice td {
    font-size: 10pt;
    padding: 1px 7px 1px 0;
    text-align: left;
}

.table-single-invoice .col-50 {
    width: 50%;
}

.table-single-invoice td {
    vertical-align: top;
    white-space: nowrap;
}

.table-single-invoice .table-simple {
    border-spacing: 0;
    border: 0;
}

.table-single-invoice .table-border,
.table-single-invoice .table-simple.table-border {
    border: 1px solid #000;
    padding: 8px;
}

.table-single-invoice .table-simple.table-border {
    border-collapse: separate;
}

.table-single-invoice .main-title-alt {
    margin-bottom: 3px;
}

.table-single-invoice .address-1,
.table-single-invoice .address-2 {
    margin-bottom: 2px;
    min-height: 24px;
    font-size: 9pt;
    white-space: initial;
    line-height: 1;
}

@media (max-width: 767px) {
    .table-single-invoice .address-1,
    .table-single-invoice .address-2 {
        font-size: 4.5pt;
        min-height: 12px;
    }
}

.table-single-invoice .address-2 {
    padding-right: 60px;
}

.table-single-invoice .mb-20 {
    margin-bottom: 20px;
}

.table-single-invoice .v-center {
    vertical-align: middle;
}

.table-single-invoice .pr-0 {
    padding-right: 0;
}

.table-single-invoice .pt-7 {
    padding-top: 4px;
}

@media (min-width: 767px) {
    
    .table-single-invoice .pt-7 {
        padding-top: 7px;
    }
}

.table-single-invoice h2 img {
    max-width: 55px;
    position: absolute;
    right: -5px;
    top: -8px;
}

.table-alt {
    border-collapse: collapse;
    width: 100%;
}

.table-alt th {
    text-align: center;
    font-weight: normal;
}

.table-alt th,
.table-alt td {
    vertical-align: middle;
    padding: 1px 5px;
    font-size: 10pt;
    position: relative;
}

.table-alt th:after,
.table-alt td:after {
    content:'';
    position: absolute;
    top: 0;
    left:0 ;
    right:0;
    bottom: 0;
    border-left: 1px solid #000;
    border-bottom: 1px solid #000;
}

.table-alt th:after {
    border-top: 1px solid #000;
}

.table-alt th:last-child:after,
.table-alt td:last-child:after {
    content:'';
    position: absolute;
    top: 0;
    left:0 ;
    right:0;
    bottom: 0;
    border-right: 1px solid #000;
}

.table-alt th:first-child,
.table-alt td:first-child,
.table-alt th:nth-child(3),
.table-alt td:nth-child(3) {
    width: 25px;
    text-align: center;
}

.table-alt th:nth-child(4),
.table-alt td:nth-child(4),
.table-alt th:nth-child(5),
.table-alt td:nth-child(5),
.table-alt th:last-child,
.table-alt td:last-child {
    width: 95px;
}

.table-alt td:nth-child(4),
.table-alt td:nth-child(5),
.table-alt td:last-child {
    text-align: right;
}

.table-dif {
    width: 100%;
    border-spacing: 0;
}

.table-dif .col-2of5 {
    width: 40%;
    padding-left: 10px;
}

.table-dif .col-2of5 tr td:last-child {
    text-align: right;
    padding-right: 0;
}

.table-dif .col-3of5 {
    width: 60%;
}   

.table .table-border .table-simple td:first-child {
    width: 88px;
}

.table-dif .table-simple {
    width: 100%;
}

.table-small {
    border-spacing: 0;
}

.table-small td {
    width: 25%;
}

.table-single-invoice table {
    width: 100%;
}

.td-signature {
    padding-top: 10px !important;
    position: relative;
}

.td-signature small {
    position: absolute;
    left: 39px;
    bottom: 6px;
}

@media (min-width: 767px) {

    .td-signature small {
        left: 90px;
        bottom: 8px;
    }
}

.table-height {
    min-height: 40px;
    margin-bottom: 10px;
    border-spacing: 0;
}

.mt--1 {
    margin-top: -1px;
}

.mb--1 {
    margin-bottom: -1px;
}

.table-simple td:last-child {
    padding-right: 0;
}

td.v-center {
    padding-right: 0;
}

@media (max-width: 767px) {

    .mb--1 {
        margin-bottom: 0;
    }

    .mt--1 {
        margin-top: 0;
    }

    .invoice-wrapper {
        padding: 10px 0;
        
    }
    
    .invoice {
        width: 320px;
        padding: 10px 0px;
    }

    .table-single-invoice {
        border-spacing: 6px 10px;
    }

    .table-single-invoice h2 img {
        max-width: 30px;
        right: -1px;
        top: -4px;
    }

    .invoice.invoice-odd {
        width: 319px;
    }

    .invoice-odd .table-single-invoice {
        border-spacing: 7px 10px;
    }

    .table-single-invoice .table-border {
        padding: 4px;
        border-width: 0.5px !important;
        box-shadow: none;
        outline: none;
    }

    .table-alt th:after,
    .table-alt td:after,
    .table-alt th:after,
    .table-alt th:last-child:after,
    .table-alt td:last-child:after {
        border-width: 0.5px !important;
    } 
    
    .table-single-invoice .table-border .table-simple td:first-child {
        width: 34px;
    }

    .table-single-invoice h2 {
        font-size: 8pt;
        margin-bottom: 4px;
        padding: 0 2px;
    }

    .table-single-invoice h6 {
        font-size: 5pt;
        margin: -10px 0px 3px;
    }

    .table-single-invoice h1 {
        font-size: 11pt;
    }

    .table-single-invoice p,
    .table-single-invoice h5 {
        font-size: 5pt;
        padding: 0 2px;
    }

    .table-single-invoice h1 small {
        font-size: 8pt;
    }

    .table-single-invoice h2 ~ h5 {
        margin-bottom: 3px;
    }

    .table-single-invoice td {
        font-size: 4pt;
        padding: 0 6px 0 2px;
        color: #000;
    }

    .table-single-invoice .table-small td {
        padding-left: 0;
    }

    .table-alt th, 
    .table-alt td {
        font-size: 4pt;
        padding: 0 2px;
    }

    .table-alt th:first-child, 
    .table-alt td:first-child, 
    .table-alt th:nth-child(3), 
    .table-alt td:nth-child(3) {
        width: 14px;
    }

    .table-alt th:nth-child(4), 
    .table-alt td:nth-child(4), 
    .table-alt th:nth-child(5), 
    .table-alt td:nth-child(5), 
    .table-alt th:last-child, 
    .table-alt td:last-child {
        width: 42px;
    }

    .table-height {
        /* min-height: 62px; */
        min-height: 38px;
        margin-bottom: 7px;
        border-spacing: 0;
    }

    .table-single-invoice h6 span {
        padding: 0px 2px;
    }

    .table-single-invoice .pl-0 {
        padding-left: 0;
    }
}

.table-title-img td:last-child {
    width: 30px;
    max-width: 30px;
    padding: 0;
    vertical-align: top;
    position: relative;
}

.table-title-img td:last-child img {
    width: 30px;
    max-width: 30px;
    position: absolute;
    top: -5px;
    right: -1px;
}

@media (min-width: 767px) {

    .table-title-img td:last-child,
    .table-title-img td:last-child img {
        width: 55px;
        max-width: 55px;
    }
}

@page {
    /* size: A4; */
    size: auto;
    /* 
    size: 7in 9.25in;*/
    /* margin: 16mm; */
} 

.section-invoices-table .section__date select {
    height: 36px;
    font-size: 18px;
    box-shadow: 1px 1px 7px 0 rgba(0, 0, 0, .25);
    border: none;
    border-radius: 5px;
    padding: 0 15px;
}

@media print {
    html, body {
        /* width: 210mm; */
        /* height: 297mm;*/
        /* height: 99% !important; */
        /* overflow: hidden !important;
        height:99% !important; */
        /* background: red !important; */
        /* height: auto !important; */
        /* border: 1px solid #000 !important; */
        /* margin: 0 !important;
        padding: 0 !important; */
        /* height: auto !important; */
        min-height: auto !important;
    } 

    body {
        background-image: none !important;
    }

    .no-print {
        display: none !important;
        margin: 0 !important;
    }
    
    .invoices-table > thead,
    .invoices-table > tbody > tr:not(.invoice-row) {
        display: none !important;
        margin: 0 !important;
    } 

    .container.container--1230 {
        padding: 0 !important;
        /* max-width: 100% !important;
        width: 100% !important */
        
    }
    /* .container {width: auto !important;min-width:21cm !important;} */
    
    .invoices-table-container {
        margin-top: 0 !important;
    }
    
    .invoices-table .invoice-row,
    .invoices-table .invoice-row > td {
        border: 0 !important;
        background: #fff !important;
        padding: 0 !important;
    }
    
    .invoices-table .invoice-row .invoice-wrapper,
    .invoices-table.table {
        padding: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* .invoices-table .invoice-row .invoice-wrapper > .invoice { */
        /* width: 100% !important; */
    /* } */
    
    .table__comment h6 {
        margin-top: -12px !important;
    }
    
    .td-signature small {
        left: 105px;
    }

    html, body { 
        min-height: auto;
        height: auto;
    }

    .mb--1 {
        margin-bottom: -1px;
    }

    .mt--1 {
        margin-top: -1px;
    }

    .invoice-wrapper {
        padding: 0;
    }
    
    .invoice,
    .invoice.invoice-odd {
        width: 660px;
        /* width: 992px; */
        /* width: 230mm; */
        padding: 0;
    }
    
    /* .invoice { */
        /* transform: scale(1.3); */
/*  */
    /* } */

    .invoice-odd .table-single-invoice,
    .table-single-invoice {
        border-spacing: 10px 15px;
    }

    .table-single-invoice h2 ~ h5 {
        margin-bottom: 5px;
    }

    .table-simple td:last-child {
        padding-right: 0;
    }

    .table-single-invoice h2 img {
        max-width: 55px;
        right: -5px;
        top: -8px;
    }

    .table-single-invoice .table-border {
        border: 1px solid #000 !important; 
        padding: 8px;
    }

    .table-alt th:after,
    .table-alt td:after,
    .table-alt th:after,
    .table-alt th:last-child:after,
    .table-alt td:last-child:after {
        border-width: 1px !important;
    } 
    
    .table-single-invoice .table-border .table-simple td:first-child {
        width: 88px;
    }

    .table-single-invoice h2 {
        font-size: 17pt;
        margin-bottom: 7px;
        padding: 0;
    }

    .table-single-invoice h6 {
        font-size: 9pt;
        margin: -16px -4px 5px;
    }

    .table-single-invoice h1 {
        font-size: 20pt;
    }

    .table-single-invoice h1 small {
        font-size: 16pt;
    }

    .table-single-invoice p,
    .table-single-invoice h5 {
        font-size: 10pt;
        padding: 0;
        margin-bottom: 0;
    }

    .table-single-invoice td {
        font-size: 10pt;
        padding: 1px 7px 1px 0;
    }

    .table-alt th, 
    .table-alt td {
        font-size: 10pt;
        padding: 1px 5px;
    }

    .table-alt th:first-child, 
    .table-alt td:first-child, 
    .table-alt th:nth-child(3), 
    .table-alt td:nth-child(3) {
        width: 25px;
    }

    .table-alt th:nth-child(4), 
    .table-alt td:nth-child(4), 
    .table-alt th:nth-child(5), 
    .table-alt td:nth-child(5), 
    .table-alt th:last-child, 
    .table-alt td:last-child {
        width: 95px;
    }

    .table-height {
        /* min-height: 100px; */
        margin-bottom: 10px;
        border-spacing: 0;
    }

    .table-single-invoice h6 span {
        padding: 0 5px;
    }
    
    .table-single-invoice .table__comment h6 {
        margin: -18px -4px 0px;
    }

    .table-single-invoice .table__comment .table-border {
        padding: 4px 8px;
    }

    /* @page { */
        /* size: A4; */
        /* size: auto; */
        /* 
        size: 7in 9.25in;*/
        /* margin: 16mm 12mm; */
    /* }  */
    
    /* @media print {
    
        .table-single-invoice td {
            font-size: 13pt !important;
        }
    
        .table-single-invoice p, .table-single-invoice h5 {
            font-size: 12pt !important;
        }
    
        .invoice {
            width: 240mm !important;
        }
    } */

    .table-single-invoice .address-1,
    .table-single-invoice .address-2 {
        margin-bottom: 2px;
        min-height: 24px;
        font-size: 9pt;
        white-space: initial;
        line-height: 1;
    }

    .invoice-wrapper {
        background-color: #fff !important;
    }

    body {
        transform: scale(1.6) translateY(20%);
    }

    /* .table-single-invoice { */
        /* page-break-after: auto; */
        /* page-break-after: always; */
    /* } */
}

.download-pdf-button {
    margin-top: 18px;
}




.details-table td:nth-of-type(2) {
    text-wrap: wrap;
}
