/* Print stylesheet - hide nav/footer, white background, clean tables */
@media print {
    /* Reset to white background for printing */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    /* Hide navigation and footer */
    nav, footer, .no-print {
        display: none !important;
    }

    /* Remove dark theme styling */
    main {
        padding-top: 0 !important;
    }

    /* Override dark-themed card backgrounds */
    [class*="bg-white/"], [class*="bg-gradient"] {
        background: white !important;
        border-color: #ddd !important;
    }

    /* Make text readable on white */
    [class*="text-gray-"], [class*="text-white"] {
        color: #333 !important;
    }

    h1, h2, h3 {
        color: black !important;
    }

    /* Table styling for print */
    table {
        border-collapse: collapse;
        width: 100%;
    }

    th, td {
        border: 1px solid #ddd;
        padding: 6px 10px;
        text-align: left;
    }

    th {
        background: #f5f5f5 !important;
        font-weight: bold;
    }

    /* Colour badges print-friendly */
    [class*="bg-green-500/20"] { background: #e6f9e6 !important; color: #166534 !important; }
    [class*="bg-red-500/20"] { background: #fce6e6 !important; color: #991b1b !important; }
    [class*="bg-yellow-500/20"] { background: #fef9e6 !important; color: #854d0e !important; }
    [class*="bg-blue-500/20"] { background: #e6f0fe !important; color: #1e40af !important; }
    .text-green-400 { color: #166534 !important; }
    .text-red-400 { color: #991b1b !important; }
    .text-yellow-400 { color: #854d0e !important; }
    .text-blue-400 { color: #1e40af !important; }

    /* Progress bars */
    [class*="bg-white/10"] {
        background: #eee !important;
    }

    /* Links don't need colours in print */
    a {
        color: inherit !important;
        text-decoration: none !important;
    }

    /* Hide action buttons/links */
    .print-hide, button, [type="submit"] {
        display: none !important;
    }

    /* Page breaks */
    .page-break {
        page-break-before: always;
    }
}
