﻿@media print {
    html, body {
        height: auto !important;
        overflow: visible !important;
    }

    /* Let the layout grow to multiple pages */
    .page {
        height: auto !important;
        overflow: visible !important;
    }

    main {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .content {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    /* Your print area and cards */
    #rounding-print-area,
    #rounding-print-area * {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .rounding-card {
        page-break-inside: avoid;
    }

    .page-break {
        page-break-after: always;
    }
}





.rounding-card {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    page-break-inside: avoid;
}

.patient-name {
    font-size: 1.4rem;
    font-weight: 700;
}

.id-line {
    font-size: 0.95rem;
    margin-top: 3px;
    color: #444;
}

.gpt-analysis-section {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.35rem;
}

.footer-line {
    font-size: 0.8rem;
    opacity: 0.7;
    display: flex;
    justify-content: space-between;
}

.page-break {
    page-break-after: always;
}


