﻿@media print {
    .no-print, .no-print *, .pdf-hide, .pdf-hide * {
        display: none !important;
    }

    @page {
        /* forced landscape */
        size: 297mm 210mm;
        /*size: auto;*/
        margin: 15mm; /* you can also specify margins here: */
        margin-bottom: 20mm; /* for compatibility with both A4 and Letter */
    }

    html {
        zoom: 75%;
    }

    .pdf-export-root,
    .content-wrapper {
        background: #fff !important;
        color: #222 !important;
    }

    .pdf-page-break {
        page-break-before: always;
        break-before: page;
    }

    .pdf-avoid-break,
    .card {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

.pdf-export-root {
    background: #fff;
}

.pdf-exporting .pdf-hide,
.pdf-exporting .no-print,
.pdf-exporting nav,
.pdf-exporting footer,
.pdf-exporting .header-navbar,
.pdf-exporting .main-menu-content,
.pdf-exporting .customizer,
.pdf-exporting .card-header .btn-group,
.pdf-exporting .toggle-fullscreen,
.pdf-exporting .fullscreenTools,
.pdf-exporting .sort-icon,
.pdf-exporting [data-pdf-control] {
    display: none !important;
}

.pdf-page-break {
    break-before: page;
}

.pdf-avoid-break {
    break-inside: avoid;
}

.pdf-report-header {
    display: flex;
    align-items: stretch;
    gap: 22px;
    padding: 18px 20px 16px;
    margin: 0 0 16px;
    background: #fff;
    border: 1px solid #d8e2ed;
    border-radius: 6px;
    color: #0b1d45;
    font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
}

.pdf-report-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    flex: 0 0 160px;
    padding-right: 18px;
    border-right: 2px solid #7a7f86;
}

.pdf-report-logo {
    display: block;
    max-width: 145px;
    max-height: 170px;
}

.pdf-report-heading {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.pdf-report-heading h1,
.pdf-report-heading h2,
.pdf-report-heading p {
    margin: 0;
    overflow-wrap: anywhere;
}

.pdf-report-heading h1 {
    color: #0b2f69;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.pdf-report-heading h2 {
    margin-top: 8px;
    color: #1f7a3b;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.pdf-report-heading p {
    margin-top: 8px;
    color: #40526d;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

.pdf-report-rules {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 520px;
    margin-top: 18px;
}

.pdf-report-rule-blue,
.pdf-report-rule-green {
    display: block;
    height: 4px;
}

.pdf-report-rule-blue {
    flex: 1 1 auto;
    background: #008bd2;
}

.pdf-report-rule-green {
    flex: 0 0 70px;
    background: #5a8b2b;
}

.pdf-report-metadata {
    align-self: center;
    width: 330px;
    flex: 0 0 330px;
    padding: 10px 14px;
    border: 1px solid #c9d8e8;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(11, 47, 105, 0.08);
    color: #111827;
    font-size: 14px;
}

.pdf-report-metadata-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #e5ecf3;
}

.pdf-report-metadata-row:last-child {
    border-bottom: 0;
}

.pdf-report-metadata-label {
    min-width: 118px;
    color: #0b2f69;
    font-weight: 700;
}

.pdf-report-metadata-value {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.pdf-report-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    color: #0b1d45;
    font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}

.pdf-export-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.65);
    color: #0b2f69;
    font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.pdf-export-sandbox {
    position: fixed;
    top: 0;
    left: -100000px;
    z-index: -1;
    overflow: visible;
    background: #fff;
    color: #222;
}

.bevtk-report-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 29, 69, 0.45);
    font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
}

.bevtk-report-overlay__card {
    width: 400px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    padding: 24px;
    color: #0b1d45;
    text-align: center;
}

.bevtk-report-overlay__title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.bevtk-report-overlay__msg {
    font-size: 13px;
    margin-bottom: 14px;
    min-height: 18px;
    word-break: break-word;
}

.bevtk-report-overlay__track {
    height: 8px;
    background: #eef0f4;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
}

.bevtk-report-overlay__bar {
    height: 100%;
    width: 0;
    background: #953735;
    transition: width 0.3s ease;
}

.bevtk-report-overlay__warn {
    font-size: 12px;
    color: #c0392b;
    line-height: 1.4;
}

.bevtk-report-overlay__close {
    margin-top: 16px;
    border: none;
    border-radius: 6px;
    background: #0b1d45;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    cursor: pointer;
}

.bevtk-report-overlay--error .bevtk-report-overlay__bar {
    background: #c0392b;
}

.pdf-exporting .pdf-report-header {
    gap: 16px;
    padding: 12px 14px 10px;
    margin-bottom: 12px;
}

.pdf-exporting .pdf-report-brand {
    width: 120px;
    flex-basis: 120px;
    padding-right: 14px;
}

.pdf-exporting .pdf-report-logo {
    max-width: 105px;
    max-height: 125px;
}

.pdf-exporting .pdf-report-heading h1 {
    font-size: 24px;
}

.pdf-exporting .pdf-report-heading h2 {
    margin-top: 5px;
    font-size: 15px;
}

.pdf-exporting .pdf-report-rules {
    margin-top: 12px;
}

.pdf-exporting .pdf-report-metadata {
    width: 280px;
    flex-basis: 280px;
    padding: 7px 10px;
    font-size: 11px;
}

.pdf-exporting .pdf-report-metadata-row {
    gap: 8px;
    padding: 4px 0;
}

.pdf-exporting .pdf-report-metadata-label {
    min-width: 98px;
}

.pdf-exporting.pdf-table-report .pdf-report-heading h1 {
    font-size: var(--pdf-report-title-font-size) !important;
}

.pdf-exporting.pdf-table-report .pdf-report-heading h2 {
    font-size: var(--pdf-report-subtitle-font-size) !important;
}

.pdf-exporting.pdf-table-report .pdf-report-heading p {
    font-size: var(--pdf-report-subject-font-size) !important;
}

.pdf-exporting.pdf-table-report .pdf-report-metadata {
    width: var(--pdf-report-metadata-width);
    flex-basis: var(--pdf-report-metadata-width);
    font-size: var(--pdf-report-metadata-font-size);
}

.pdf-exporting.pdf-table-report .pdf-report-metadata-label {
    min-width: var(--pdf-report-metadata-label-width);
}

.pdf-exporting [data-pdf-split-table] {
    width: 100% !important;
}

.pdf-exporting .custom-table,
.pdf-exporting .custom-table-ecosystems,
.pdf-exporting .economic-table,
.pdf-exporting .ecosystem-table,
.pdf-exporting .social-impact {
    font-size: 11px !important;
    line-height: 1.28 !important;
}

.pdf-exporting .custom-table th,
.pdf-exporting .custom-table td,
.pdf-exporting .custom-table-ecosystems th,
.pdf-exporting .custom-table-ecosystems td,
.pdf-exporting .economic-table th,
.pdf-exporting .economic-table td,
.pdf-exporting .ecosystem-table th,
.pdf-exporting .ecosystem-table td,
.pdf-exporting .social-impact th,
.pdf-exporting .social-impact td {
    font-size: 11px !important;
    line-height: 1.28 !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.pdf-exporting .custom-table th,
.pdf-exporting .custom-table-ecosystems th,
.pdf-exporting .economic-table th,
.pdf-exporting .ecosystem-table th,
.pdf-exporting .social-impact th {
    font-size: 12px !important;
}

.pdf-exporting.pdf-table-report .pdf-split-table-block table,
.pdf-exporting.pdf-table-report .pdf-split-table-block th,
.pdf-exporting.pdf-table-report .pdf-split-table-block td {
    font-size: var(--pdf-table-body-font-size) !important;
}

.pdf-exporting.pdf-table-report .pdf-split-table-block th,
.pdf-exporting.pdf-table-report .pdf-split-table-block .card-title,
.pdf-exporting.pdf-table-report .pdf-split-table-block .card-title small,
.pdf-exporting.pdf-table-report .pdf-split-table-block [data-pdf-split-table-title] {
    font-size: var(--pdf-table-header-font-size) !important;
}

.pdf-exporting .data-year-badge,
.pdf-exporting .latest-available-year,
.pdf-exporting .latest-year-badge {
    font-size: 9px !important;
}

.pdf-exporting.pdf-table-report .pdf-split-table-block .data-year-badge,
.pdf-exporting.pdf-table-report .pdf-split-table-block .latest-available-year,
.pdf-exporting.pdf-table-report .pdf-split-table-block .latest-year-badge {
    font-size: var(--pdf-report-badge-font-size) !important;
}

.pdf-split-table-block {
    margin-bottom: 16px;
}

.pdf-exporting .pdf-split-table-block .economic-card-body,
.pdf-exporting .pdf-split-table-block .card-content,
.pdf-exporting .pdf-split-table-block .card-body {
    height: auto !important;
    min-height: 0 !important;
}

.pdf-exporting .pdf-split-table-block .economic-card-body {
    padding: 0.75rem !important;
}

.pdf-split-table-block .card-header {
    min-height: 0;
}

/* The split-table export widens the chart card to the full page width, but the
   chart canvas keeps the bitmap captured at its live (narrower) size. Centering
   it removes the left-aligned gap without upscaling/distorting the pyramid. */
.pdf-exporting #definedPyramidChart,
.pdf-exporting .defined-pyramid-chart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pdf-exporting #definedPyramidChart canvas {
    max-width: 100% !important;
}
