.preview-content.modern-theme {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111827;
    line-height: 1.5;
    background: transparent;
    font-size: 11px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    /* Gap between pages in preview */
    padding-bottom: 40px;
}

/* Individual Page */
.preview-page {
    width: 210mm;
    /* A4 Width */
    min-height: 297mm;
    /* A4 Height */
    padding: 40px;
    /* Standard internal padding */
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    /* Distinct page shadow */
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    /* Allow content to expand */
}

/* Header */
.header-section {
    margin-bottom: 24px;
}

.header-top-bar {
    height: 6px;
    background: #FF8C00;
    margin-bottom: 24px;
    border-radius: 3px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-brand {
    display: flex;
    gap: 20px;
    align-items: center;
}

.brand-logo {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
}

.company-name {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.company-address,
.company-web {
    color: #6B7280;
    font-size: 11px;
}

.company-address {
    white-space: pre-line;
}

.header-meta {
    text-align: right;
}

.meta-block.primary {
    margin-bottom: 12px;
}

.meta-label {
    display: block;
    font-size: 9px;
    color: #9CA3AF;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.meta-value.highlight {
    font-size: 16px;
    font-weight: 700;
    color: #FF8C00;
    font-feature-settings: "tnum";
}

.meta-grid {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.meta-item {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.meta-item .meta-value {
    font-weight: 600;
    min-width: 85px;
    text-align: right;
}

/* Parties */
.parties-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    margin-bottom: 32px;
}

.party-card {
    background: #F9FAFB;
    border-radius: 10px;
    padding: 12px 14px 16px;
    border: 1px solid #F3F4F6;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    box-sizing: border-box;
}

.card-header {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 2px;
}

.card-title {
    font-size: 9.5px;
    font-weight: 800;
    color: #FF8C00;
    letter-spacing: 0.08em;
    line-height: 1;
    display: block;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.party-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.party-meta {
    font-size: 11.5px;
    line-height: 1.35;
    font-weight: 600;
    color: #4B5563;
    text-transform: uppercase;
}

.party-role {
    color: #6B7280;
}

.party-contact-person {
    color: #4B5563;
}

.party-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
    min-width: 0;
}

.party-line {
    font-size: 11.5px;
    line-height: 1.38;
    color: #4B5563;
    font-weight: 500;
    word-break: break-word;
}

.party-line-strong {
    color: #1F2937;
    font-weight: 600;
}

.address {
    margin-top: 3px;
    font-size: 10.5px;
    line-height: 1.45;
    color: #6B7280;
    white-space: pre-line;
    text-transform: uppercase;
}

/* Description */
.description-section {
    margin-bottom: 32px;
    background: #FFF7ED;
    border-left: 4px solid #FF8C00;
    padding: 12px 16px;
    border-radius: 4px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.section-badge {
    font-size: 9px;
    font-weight: 700;
    color: #FF8C00;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.description-text {
    font-size: 11px;
    color: #431407;
    white-space: pre-line;
    text-transform: uppercase;
}

/* Table */
.products-section {
    margin-bottom: 32px;
}

table.modern-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 11px;
}

/*
 * The preview and PDF renderer run in different browsing contexts. Keeping the
 * column geometry in a colgroup prevents the browser's automatic table layout
 * algorithm from redistributing space and changing line breaks during export.
 */
.modern-table .quote-col-num {
    width: 30px;
}

.modern-table .quote-col-img {
    width: 100px;
}

.modern-table .quote-col-code {
    width: 95px;
}

.modern-table .quote-col-unit {
    width: 75px;
}

.modern-table .quote-col-price {
    width: 95px;
}

/* Yalnız satır iskontosu olan tekliflerde basılır (bkz. hasDiscounts). */
.modern-table .quote-col-discount {
    width: 46px;
}

.modern-table .quote-col-kdv {
    width: 50px;
}

.modern-table .quote-col-total {
    width: 105px;
}

.modern-table th {
    background: #F9FAFB;
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    color: #6B7280;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.modern-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
    text-align: center;
    line-height: 1.4;
    /* Unified line height for better breathing and alignment */
}

.th-num,
.td-num {
    width: 30px;
    text-align: center;
    color: #9CA3AF;
    vertical-align: middle;
}

.th-img,
.td-img {
    width: 100px;
    text-align: center;
    padding: 10px 6px !important;
    vertical-align: middle;
}

.th-code,
.td-code {
    width: 95px;
    text-align: center;
    vertical-align: middle;
}

.th-unit,
.td-unit {
    width: 75px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.th-price,
.td-price {
    width: 95px;
    text-align: center;
    vertical-align: middle;
}

.th-discount,
.td-discount {
    width: 46px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.th-kdv,
.td-kdv {
    width: 50px;
    text-align: center;
    vertical-align: middle;
}

.th-total,
.td-total {
    width: 105px;
    text-align: center;
    font-weight: 600;
    vertical-align: middle;
}

.th-desc,
.td-desc {
    text-align: center;
    vertical-align: middle;
}

.td-desc {
    font-weight: 600;
    color: #111827;
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    text-transform: uppercase;
}

.product-img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    flex-shrink: 0;
}

.table-product-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.code-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.code-pill {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    /* Increased from 9px */
    font-family: monospace;
    text-transform: uppercase;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.code-pill.firm {
    background: #F3F4F6;
    color: #374151;
}

.code-pill.product {
    background: #F3F4F6;
    color: #374151;
}



.qty-val {
    font-weight: 700;
    color: #111827;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.4;
}

.unit-val {
    font-size: 9px;
    color: #6B7280;
    margin-left: 2px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.4;
}

/* Bottom Section */
.bottom-section {
    margin-bottom: 32px;
    page-break-inside: avoid;
}

.bottom-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: stretch;
}

.terms-column {
    min-width: 0;
    display: flex;
}

/* Summary */
.summary-section {
    width: 300px;
    justify-self: end;
    page-break-inside: avoid;
    display: flex;
}

.summary-box {
    width: 100%;
    height: 100%;
    background: #F9FAFB;
    border-radius: 12px;
    padding: 20px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.summary-top {
    display: grid;
    gap: 8px;
}

.summary-total-group {
    margin-top: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    font-size: 12px;
    color: #4B5563;
    align-items: baseline;
}

.summary-row .label {
    font-weight: 500;
}

.summary-row .value {
    font-weight: 600;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.summary-row.discount {
    color: #4B5563;
    /* Reset to normal text color */
}

.summary-row.discount .value {
    color: #FF8C00;
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 0 0 12px;
}

.summary-row.grand-total {
    margin-top: 0;
    margin-bottom: 0;
    align-items: baseline;
}

.summary-row.grand-total .label {
    font-weight: 700;
    font-size: 12px;
    color: #111827;
}

.summary-row.grand-total .value {
    font-size: 18px;
    font-weight: 800;
    color: #FF8C00;
}

/* Terms */
.terms-section {
    width: 100%;
    height: 100%;
    background: #F9FAFB;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    padding: 14px 16px;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.terms-header {
    font-size: 10px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    text-transform: uppercase;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 5px;
    letter-spacing: 0.04em;
}

.terms-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: 10px;
    flex: 1;
    min-height: 0;
    align-items: stretch;
}

.terms-list {
    display: grid;
    gap: 6px;
    align-content: start;
    min-width: 0;
}

.terms-list-divider {
    background: #E5E7EB;
    width: 1px;
    align-self: stretch;
}

.term-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    column-gap: 5px;
    align-items: start;
}

.term-item .bullet {
    color: #FF8C00;
    font-weight: bold;
    font-size: 11px;
    line-height: 1;
    margin-top: 2px;
    text-align: center;
}

.term-item .text {
    font-size: 9px;
    color: #4B5563;
    line-height: 1.18;
    font-weight: 500;
    text-transform: uppercase;
}

/* Footer */
.footer-section {
    margin-top: auto;
    page-break-inside: avoid;
}

.footer-line {
    height: 1px;
    background: #E5E7EB;
    margin-bottom: 12px;
}

.footer-content {
    position: relative;
    min-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-section p,
.footer-page-number {
    font-size: 10px;
    color: #9CA3AF;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.footer-section p {
    margin: 0;
}

.footer-page-number {
    position: absolute;
    right: 0;
    bottom: 0;
    font-variant-numeric: tabular-nums;
}

@page {
    margin: 0mm;
    size: A4;
    /* Remove browser default headers and footers */
    marks: none;
}

@media print {
    @page {
        margin: 0mm;
        size: A4;
        /* Remove browser default headers and footers */
        marks: none;
    }

    html,
    body {
        width: 210mm;
        margin: 0;
        padding: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        background: white;
    }

    .preview-content,
    .preview-content.modern-theme {
        padding: 0;
        margin: 0;
        display: block !important;
        gap: 0 !important;
        /* Reset flex */
    }

    .preview-page {
        width: 210mm;
        max-width: 210mm;
        box-shadow: none;
        margin: 0;
        page-break-after: always;
        break-after: page;
        box-sizing: border-box;
        min-height: 297mm;
        height: 297mm;
        /* Enforce A4 height during print */
        overflow: hidden;
        /* Prevent spillover */
    }

    .preview-page:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    .party-card,
    .summary-box,
    .description-section {
        break-inside: avoid;
    }

    tr {
        break-inside: avoid;
    }

    /* Hide any potential footer elements */
    body::after,
    body::before {
        display: none !important;
        content: none !important;
    }
}

/* ===== Payment Report PDF ===== */
.payment-report-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    padding: 16px 0 32px;
    box-sizing: border-box;
    background: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.payment-report-page {
    width: 297mm;
    min-height: 210mm;
    height: 210mm;
    padding: 18px 16px 16px;
    box-sizing: border-box;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(15, 23, 42, 0.12);
    color: #0f172a;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.payment-report-page.is-continuation {
    gap: 8px;
}

.payment-report-page .payment-report-topbar {
    height: 4px;
    border-radius: 999px;
    background: #f97316;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.payment-report-page .payment-report-header {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(370px, 0.9fr);
    gap: 18px;
    align-items: start;
    width: 100%;
}

.payment-report-page .payment-report-header.is-compact {
    grid-template-columns: minmax(0, 1.16fr) minmax(310px, 0.84fr);
    gap: 14px;
    align-items: start;
    width: 100%;
}

.payment-report-page .payment-report-brand {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    justify-items: start;
    min-width: 0;
    margin-left: 0;
    width: 100%;
}

.payment-report-page .payment-report-brand.is-compact {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-left: 0;
    width: 100%;
}

.payment-report-page .payment-report-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.payment-report-page .payment-report-logo {
    max-width: 96px;
    max-height: 96px;
    width: auto;
    height: auto;
    object-position: center center;
    justify-self: start;
    align-self: center;
    display: block;
    margin-left: 0;
}

.payment-report-page .payment-report-brand.is-compact .payment-report-logo {
    max-width: 74px;
    max-height: 74px;
    width: auto;
    height: auto;
    margin-left: 0;
}

.payment-report-page .payment-report-meta {
    min-width: 0;
    max-width: none;
    justify-self: stretch;
    align-self: start;
    width: 100%;
}

.payment-report-page .payment-report-meta.is-compact {
    min-width: 0;
    max-width: none;
    justify-self: stretch;
    align-self: start;
    width: 100%;
}

.payment-report-page .payment-report-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.payment-report-page .payment-report-title {
    margin: 0;
    font-size: 25px;
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #111827;
}

.payment-report-page .payment-report-header.is-compact .payment-report-title {
    font-size: 18px;
}

.payment-report-page .payment-report-subtitle {
    margin-top: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.payment-report-page .payment-report-company-copy {
    margin-top: 1px;
    color: #64748b;
    font-size: 9.5px;
    line-height: 1.4;
}

.payment-report-page .payment-report-meta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.44fr) minmax(0, 0.8fr) minmax(0, 0.98fr);
    gap: 0;
    width: 100%;
}

.payment-report-page .payment-report-meta-grid.is-compact {
    grid-template-columns: minmax(0, 1.26fr) minmax(0, 0.72fr) minmax(0, 0.84fr);
    gap: 0;
    width: 100%;
}

.payment-report-page .payment-report-meta-panel {
    padding: 10px 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    width: 100%;
    box-sizing: border-box;
}

.payment-report-page .payment-report-meta-panel.is-compact {
    padding: 8px 10px;
}

.payment-report-page .payment-report-meta-grid div {
    min-height: 54px;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    align-items: flex-start;
}

.payment-report-page .payment-report-meta-grid .payment-report-meta-card.is-week {
    min-width: 0;
    padding-left: 0;
}

.payment-report-page .payment-report-meta-grid .payment-report-meta-card.is-prepared-by,
.payment-report-page .payment-report-meta-grid .payment-report-meta-card.is-created-at {
    min-width: 0;
}

.payment-report-page .payment-report-meta-grid .payment-report-meta-card + .payment-report-meta-card {
    border-left: 1px solid #e2e8f0;
}

.payment-report-page .payment-report-meta-grid span,
.payment-report-page .payment-report-section-total span,
.payment-report-page .payment-report-summary-card span,
.payment-report-page .payment-report-footer-note,
.payment-report-page .payment-report-footer-total span {
    display: block;
    color: #64748b;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.payment-report-page .payment-report-meta-grid strong,
.payment-report-page .payment-report-section-total strong,
.payment-report-page .payment-report-footer-total strong {
    display: block;
    margin-top: 6px;
    color: #111827;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.payment-report-page .payment-report-meta-grid span {
    line-height: 1.1;
}

.payment-report-page .payment-report-meta-grid strong {
    margin-top: 0;
    font-size: 11px;
    line-height: 1.2;
}

.payment-report-page .payment-report-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.payment-report-page .payment-report-summary-card {
    min-height: 68px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.payment-report-page .payment-report-summary-card.is-strong {
    background: #fff7ed;
    border-color: #fdba74;
}

.payment-report-page .payment-report-summary-card strong {
    display: block;
    margin-top: 4px;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
}

.payment-report-page .payment-report-section-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
}

.payment-report-page .payment-report-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}

.payment-report-page .payment-report-section-label {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    color: #f97316;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-left: 2px;
}

.payment-report-page .payment-report-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.payment-report-page .payment-report-table .payment-report-col-index {
    width: 4%;
}

.payment-report-page .payment-report-table .payment-report-col-aciklama {
    width: 18%;
}

.payment-report-page .payment-report-table .payment-report-col-firma {
    width: 24%;
}

.payment-report-page .payment-report-table .payment-report-col-date {
    width: 10%;
}

.payment-report-page .payment-report-table .payment-report-col-invoice {
    width: 14%;
}

.payment-report-page .payment-report-table .payment-report-col-amount {
    width: 8%;
}

.payment-report-page .payment-report-table .payment-report-col-iban {
    width: 22%;
}

.payment-report-page .payment-report-table th {
    background: #f8fafc;
    font-size: 8.4px;
    color: #64748b;
    padding: 8px 9px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.payment-report-page .payment-report-table th:first-child {
    border-left: 1px solid #e5e7eb;
    border-top-left-radius: 10px;
}

.payment-report-page .payment-report-table th:last-child {
    border-right: 1px solid #e5e7eb;
    border-top-right-radius: 10px;
}

.payment-report-page .payment-report-table th.is-center {
    text-align: center;
}

.payment-report-page .payment-report-table td {
    padding: 8px 9px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 9px;
    vertical-align: top;
    word-break: break-word;
    background: #ffffff;
}

.payment-report-page .payment-report-table td:first-child {
    border-left: 1px solid #e5e7eb;
}

.payment-report-page .payment-report-table td:last-child {
    border-right: 1px solid #e5e7eb;
}

.payment-report-page .payment-report-cell-index {
    text-align: center;
    color: #64748b;
    font-weight: 700;
}

.payment-report-page .payment-report-cell-aciklama {
    color: #111827;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.payment-report-page .payment-report-cell-firma {
    color: #64748b;
    font-size: 8.7px;
    line-height: 1.25;
    text-align: center;
}

.payment-report-page .payment-report-cell-date,
.payment-report-page .payment-report-cell-invoice {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    text-align: center;
}

.payment-report-page .payment-report-cell-iban {
    font-size: 8px;
    color: #334155;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.2;
    text-align: center;
}

.payment-report-page .payment-report-cell-amount {
    text-align: center;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.payment-report-page .payment-report-empty {
    text-align: center;
    color: #64748b;
    padding: 14px 12px;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: #ffffff;
}

.payment-report-page .payment-report-footer {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
}

.payment-report-page .payment-report-footer-note {
    text-align: center;
    justify-self: center;
    font-size: 9px;
}

.payment-report-page .payment-report-footer-page {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    justify-self: end;
}

@media print {
    .payment-report-preview {
        display: block;
        padding: 0;
        margin: 0;
    }

    .payment-report-page {
        box-shadow: none;
        margin: 0;
        page-break-after: always;
        break-after: page;
    }

    .payment-report-page:last-child {
        page-break-after: auto;
        break-after: auto;
    }
}
