@media print {
    /* Hide everything in the body by default */
    body * {
        visibility: hidden;
    }
    
    /* Make the print container and all its children visible */
    .print-container, .print-container * {
        visibility: visible;
    }
    
    /* Position the print container at the top left of the page */
    .print-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Remove borders and shadows from modal */
    .modal-content {
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Hide modal header and footer (close/print buttons) */
    .modal-header, .modal-footer {
        display: none !important;
    }
    
    /* Simplify cards for print */
    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        margin-bottom: 1rem !important;
        page-break-inside: avoid;
    }

    .card-header {
        background-color: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        border-bottom: 1px solid #000 !important;
    }
    
    /* Format text for better readability on paper */
    .text-primary {
        color: #000 !important;
    }
    
    .bg-light {
        background-color: transparent !important;
    }

    /* Force background colors for badges/progress bars if needed */
    .badge {
        border: 1px solid #000;
        color: #000 !important;
        background-color: transparent !important;
    }
}
