@media print {
    /* Hide navigation, sidebar, filter bar, buttons */
    .topnav,
    .sidebar,
    .report-nav-item,
    .btn,
    #reportPeriod,
    #customDateRange,
    #dateRangeDisplay,
    #reportGroupFilter,
    #reportClientFilter,
    #reportUserFilter,
    #reportProjectFilter {
        display: none !important;
    }

    /* Remove sidebar offset */
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    /* Flatten card borders */
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }

    /* Make table print-friendly */
    .data-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 11px;
    }

    .data-table th,
    .data-table td {
        border: 1px solid #ccc;
        padding: 4px 8px;
    }

    .data-table thead th {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Hide Chart.js canvases — printReport() injects img snapshots instead */
    canvas {
        display: none !important;
    }

    .report-chart-img {
        display: block !important;
        width: 100%;
        max-height: 260px;
        object-fit: contain;
        margin-bottom: 12px;
    }

    body {
        font-size: 12px;
        color: #000;
    }
}
