/* Reports & History print: A5 paper, clinic logo on the left of the header */

/* The logo image is added by the print window (F4 in assets/index-*.js) */
.cd-report-logo {
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 54px;
    object-fit: contain;
}

@media print {
    @page {
        size: A5;
        margin: 8mm;
    }

    .assessment-report {
        color: #1f2d3d;
        font-size: 9.5px;
    }

    .assessment-report .report-header {
        min-height: 54px;
        margin-bottom: 7px;
        padding: 0 54px 5px;
        border-bottom-color: #0b5cad;
    }

    .assessment-report .report-header .clinic {
        font-size: 15px;
    }

    .assessment-report .report-header .clinic span {
        color: #1e88e5;
    }

    .assessment-report .report-header .title {
        margin-top: 2px;
        font-size: 11px;
    }

    .assessment-report .report-patient {
        gap: 2px 14px;
        margin-bottom: 7px;
    }

    /* Let a long section continue on the next page instead of jumping
       whole to it, so every A5 page is filled from top to bottom */
    .assessment-report .report-section {
        break-inside: auto;
        page-break-inside: auto;
        margin-bottom: 7px;
        border-color: #b9dcf5;
        background: #f5fbff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Never leave a section title alone at the bottom of a page */
    .assessment-report .report-section-title {
        break-after: avoid;
        page-break-after: avoid;
        padding: 3px 8px;
        border-bottom-color: #b9dcf5;
        background: #d9eefc;
        color: #0b4f9c;
    }

    .assessment-report .report-section-body {
        padding: 4px 8px;
    }

    .assessment-report .report-list {
        columns: 2;
        column-gap: 1rem;
    }

    .assessment-report .report-item {
        gap: 8px;
        padding: 2px 0;
        border-bottom-color: #7a95ad;
    }

    .assessment-report .report-item .label {
        color: #33475b;
    }

    .assessment-report .report-table th,
    .assessment-report .report-table td {
        padding: 2px 6px;
        border-color: #9cc8ea;
    }

    .assessment-report .report-table td {
        background: #ffffff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .assessment-report .report-signature {
        margin-top: 24px;
    }
}
