@media screen {
    .print-format-gutter {
        background-color: #d1d8dd;
        padding: 30px 0px;
    }

    .print-format {
        background-color: white;
        border-radius: 8px;
        max-width: 12.3in;
        min-height: 11.69in;
        padding: 5px;
        margin: 10px;
        color: var(--gray-900);
    }

    .print-format.landscape {
        max-width: 11.69in;
        padding: 0.2in;
    }

    .page-break {
        /* padding: 15px 0px; */
        border-bottom: 1px dashed #888;
    }

    /* .page-break:first-child {
		padding-top: 0px;
	} */

    .page-break:last-child {
        border-bottom: 0px;
    }

    /* mozilla hack for images in table */
    body:last-child .print-format td img {
        width: 100% !important;
    }

    @media(max-width: 767px) {
        .print-format {
            padding: 0.2in;
        }
    }
}

@media print {
    .print-format p {
        margin-left: 1px;
        margin-right: 1px;
    }
}

.disabled-check {
    color: #eee;
}

.data-field {
    margin-top: 5px;
    margin-bottom: 5px;
}

.data-field .value {
    word-wrap: break-word;
}

.important .value {
    font-size: 120%;
    font-weight: bold;
}

.important label {
    line-height: 1.8;
    margin: 0px;
}

.table {
    font-size: inherit;
    margin: 20px 0px;
}

.checkbox-options {
    columns: var(--checkbox-options-columns);
}

.square-image {
    width: 100%;
    height: 0;
    padding: 50% 0;
    background-size: contain;
    /*background-size: cover;*/
    background-repeat: no-repeat !important;
    background-position: center center;
    border-radius: 4px;
}

.print-item-image {
    object-fit: contain;
}

.pdf-variables,
.pdf-variable,
.visible-pdf {
    display: none !important;
}

/* .print-format {
	font-size: 9pt;
	font-family: Inter, "Helvetica Neue", Helvetica, Arial, "Open Sans", sans-serif;
	-webkit-print-color-adjust:exact;
} */

.page-break {
    page-break-after: always;
}

.print-heading {
    border-bottom: 1px solid #aaa;
    margin-bottom: 10px;
}

.print-heading h2 {
    margin: 0px;
}

.print-heading h4 {
    margin-top: 5px;
}

table.no-border,
table.no-border td {
    border: 0px;
}

.print-format label {
    /* wkhtmltopdf breaks label into multiple lines when it is inline-block */
    display: block;
    font-weight: 700;
}

.print-format img {
    max-width: 100%;
}

.print-format table td>.primary:first-child {
    font-weight: bold;
}

.print-format td,
.print-format th {
    vertical-align: top !important;
    padding: 6px !important;
}

.print-format p {
    margin: 3px 0px 3px;
}

.print-format table td pre {
    white-space: normal;
    word-break: normal;
}

/* hack for webkit specific browser */
@media (-webkit-min-device-pixel-ratio:0) {

    thead,
    tfoot {
        display: table-header-group;
    }
}

[document-status] {
    margin-bottom: 5mm;
}

.signature-img {
    background: #fff;
    border-radius: 3px;
    margin-top: 5px;
    max-height: 150px;
}

.print-format-preview [data-fieldtype="Table"] {
    overflow: auto;
}

.print-format,
.print-format table {
    font-size: 0.875em;
}

.print-format .d-flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}

.print-format .justify-content-between {
    -webkit-box-pack: justify;
    justify-content: space-between;
}

.print-format .fw-bold {
    font-weight: 700;
}

.print-format .px-1 {
    padding-right: 0.25rem;
    padding-left: 0.25rem;
}

.print-format .px-2 {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.print-format .px-3 {
    padding-right: 1rem;
    padding-left: 1rem;
}

.print-format .py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.print-format .py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.print-format .py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.print-format .fs-07 {
    font-size: 0.7em;
}

.print-format .fs-0875 {
    font-size: 0.875em;
}

.print-format .fs-3 {
    font-size: 1.6em;
}

.print-format .fs-4 {
    font-size: 1.4em;
}

.print-format .fs-5 {
    font-size: 1.2em;
}

.print-format .text-end {
    text-align: right;
}

.print-format .currency-end {
    text-align: right;
}

.print-format .text-left {
    text-align: left;
}


.print-format .pt-3 {
    padding-top: 1rem;
}

.print-format .pe-2 {
    padding-right: 0.5rem;
}

.print-format .p-2 {
    padding: 0.5rem;
}



.print-format .nwr-dark,
.print-format .nwr-dark div,
.print-format table thead th {
    background-color: #555555;
    color: white !important;
    font-weight: 700;
}

.w-40 {
    width: 40%;
}

.w-50 {
    width: 50%;
}

.w-60 {
    width: 60%;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.gap-5 {
    gap: 3rem;
}

.button-group {
    text-align: end;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 10px;
}

.print-format table {
    border-collapse: collapse;
    width: 100%;
}

.print-format table tbody tr {
    border-bottom: 1px solid #aeaeae;
}

.print-format .border-below {
    border-bottom: 2px solid #aeaeae;
}

.print-format .border-left-side {
    border-left: 2px solid #aeaeae !important;
}

.print-format #nwrlogo {
    background-image: url("/assets/ct/frr_img/logo-quarter.webp");
}

.print-format .link-dark {
    color: black;
}

.print-format .nowrap {
    white-space: nowrap;
}

.td {
    max-width: 600px;
}

.td.nd {
    min-width: 120px;
}

.tooltip-content {
    display: none;
}

.pending {
    background-color: #e7e5e5;
    color: black;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
    text-align: center;
}

.client-approved,
.invoice-paid {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
    text-align: center;
}

.changes-requested {
    background-color: #17a2b8;
    color: black;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
    text-align: center;
}

.client-declined {
    background-color: #ffc107;
    color: black;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
    text-align: center;
}

table.border-below {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

table.border-below th,
table.border-below td {
    padding: 8px;
    vertical-align: top;
}

table.border-below th:nth-child(1),
table.border-below td:nth-child(1) {
    width: 15%;
}

table.border-below th:nth-child(2),
table.border-below td:nth-child(2) {
    width: 45%;
    /* Increase this for more space for details */
}

table.border-below th:nth-child(3),
table.border-below td:nth-child(3),
table.border-below th:nth-child(4),
table.border-below td:nth-child(4),
table.border-below th:nth-child(5),
table.border-below td:nth-child(5) {
    width: 13%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .d-flex {
        flex-direction: column !important;
    }

    .w-60,
    .w-40,
    .w-50 {
        width: 100% !important;
    }

    .border-below {
        display: block;
    }

    table.border-below thead {
        display: none;
    }

    table.border-below tbody,
    table.border-below tr,
    table.border-below td {
        display: block;
        width: 100%;
    }

    table.border-below tr {
        margin-bottom: 16px;
        padding-bottom: 8px;
    }

    table.border-below td {
        padding: 10px 0;
        position: relative;
    }

    table.border-below tbody tr:last-child {
        border-bottom: none;
    }

    table.border-below td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 4px;
        color: #555;
    }

    .button-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        margin-top: 20px;
    }

    .button-group button {
        width: 100%;
    }

    .text-left,
    .text-end {
        text-align: left !important;
    }

    .currency-end {
        text-align: right !important;
    }

    img[alt="Signature"] {
        max-width: 100% !important;
        height: auto;
    }
}

.totals-table {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
    font-size: 10pt;
    text-align: right;
    height: 100%;
    font-size: 15px !important;
}

.label {
    text-align: left !important;
}

/* .totals-table tr {
    border-bottom: none !important;
} */