@media print {
    body {
        background: white;
        color: black;
    }

    /* Hide everything by default */
    .screen,
    .app-footer,
    .instructions,
    #completion-dialog {
        display: none !important;
    }

    /* Reset layout for print to remove centering */
    html,
    body {
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .app-container {
        display: block !important;
        height: auto !important;
        padding: 20px !important;
        /* Standard document padding */
    }

    /* Show only the results screen */
    #results-screen {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: none !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Show error details clearly */
    #error-details-container {
        display: block !important;
        max-height: none !important;
        /* Allow full expansion on paper */
        overflow: visible !important;
        margin-top: 10px !important;
    }

    #error-list {
        max-height: none !important;
    }

    /* Show Print Footer */
    #print-footer {
        display: block !important;
        margin-top: 4rem !important;
    }

    /* Hide buttons */
    button,
    #export-pdf-btn {
        display: none !important;
    }

    /* Ensure card looks like a report documents */
    .card.glass-panel {
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Typography tweaks for print */
    h1,
    h2,
    h3 {
        color: black !important;
    }

    p,
    span,
    li {
        color: black !important;
    }
}