/* Report / Print Styles */
@media print {
    @page {
        size: A4;
        margin: 1.5cm;
    }

    body {
        background: white !important;
        color: black !important;
        font-family: 'Segoe UI', system-ui, sans-serif;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Hide App UI */
    .app-layout,
    .glass-nav,
    .bottom-nav,
    .fab-add,
    .fab,
    button:not(.print-only),
    dialog:not([open]) {
        display: none !important;
    }

    /* Report Container */
    #printReport {
        display: block !important;
        width: 100%;
        max-width: 100%;
    }

    .report-header {
        border-bottom: 2px solid #000;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .report-title {
        font-size: 24pt;
        font-weight: bold;
    }

    .report-meta {
        text-align: right;
        font-size: 10pt;
        color: #444;
    }

    .report-section {
        margin-bottom: 2rem;
        page-break-inside: avoid;
    }

    .section-title {
        font-size: 14pt;
        font-weight: bold;
        border-bottom: 1px solid #ccc;
        margin-bottom: 1rem;
        padding-bottom: 0.2rem;
    }

    /* Data Tables */
    .report-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
    }

    .report-table th,
    .report-table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }

    .report-table th {
        background-color: #f3f4f6 !important;
        /* Force grey bg */
        font-weight: 600;
    }

    /* Highlights */
    .highlight-red {
        color: #dc2626;
        font-weight: bold;
    }

    .highlight-orange {
        color: #d97706;
    }

    .highlight-green {
        color: #16a34a;
    }

    /* Footer */
    .report-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
        font-size: 9pt;
        color: #666;
        border-top: 1px solid #eee;
        padding-top: 0.5rem;
    }
}

/* Hide report in normal view */
#printReport {
    display: none;
}