/* Print styles — applied when printing validation results (loaded via index.html) */

@media print {
    /* Hide everything except print container */
    body > *:not(#print-container) {
        display: none !important;
    }

    #print-container {
        display: block !important;
    }

    .print-content {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        line-height: 1.4;
        color: #333;
        margin: 20px;
    }

    /* Heading styles */
    h1 {
        font-size: 24px;
        margin-bottom: 25px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e0e0e0;
    }

    h3, 
    .section-title,
    .collapsible-header h3 {
        color: var(--error-red);
        margin: 0 0 10px 0;
        padding: 0;
        font-size: 16px;
        font-weight: 600;
    }

    .error-message, 
    .warning-message {
        margin: 8px 0;
        font-size: 14px;
        line-height: 1.5;
    }

    .toggle-button,
    .error-count,
    .count,
    .dialog-header,
    .dialog-close,
    .print-button,
    .sidebar,
    .dialog-footer {
        display: none !important;
    }

    /* Show all collapsible content */
    .collapsible-content {
        display: block !important;
        padding: 0;
        margin-bottom: 20px;
    }

    /* Ensure detailed locations are visible */
    .detailed-locations {
        display: block !important;
    }

    /* Prevent content breaks */
    * {
        page-break-inside: avoid !important;
    }

    #critical .error-message {
        padding: 12px 16px;
        border-left: 4px solid var(--error-red);
    }

    #validation .error-message {
        padding: 8px 12px;
        border-left: 4px solid var(--warning-orange);
    }

    #flags .error-message {
        border-left: 4px solid var(--flag-blue);
    }

    #suggestions .error-message,
    #suggestions .warning-message {
        padding: 0;
        margin: 4px 0;
    }

    /* Remove decorative elements */
    .error-section,
    .missing-pressure-section,
    .required-parameters-section,
    .parameter-naming-errors,
    [class*="error-section"],
    .suggestion-section {
        border: none !important;
        box-shadow: none !important;
        background: none !important;
    }
}
