@media print {
    /* Hide Filament UI elements */
    .fi-sidebar,
    .fi-topbar,
    .fi-header,
    .fi-footer,
    .fi-pagination,
    .fi-ta-actions,
    .fi-ta-filters,
    .fi-ta-bulk-actions,
    .fi-modal,
    .fi-dropdown,
    button:not(.print-button),
    select,
    .hidden-print {
        display: none !important;
    }

    /* Print styles for content */
    #printable-content {
        display: block !important;
        width: 100% !important;
        padding: 20px !important;
    }

    .print-header {
        text-align: center;
        margin-bottom: 20px;
    }

    .print-header h2 {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .print-header p {
        font-size: 14px;
        color: #666;
    }

    /* Table styles */
    .fi-table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .fi-table th,
    .fi-table td {
        border: 1px solid #ddd !important;
        padding: 8px !important;
        font-size: 12px !important;
    }

    .fi-table th {
        background-color: #f8f9fa !important;
        font-weight: bold !important;
    }

    /* Ensure proper page breaks */
    .fi-ta-row {
        page-break-inside: avoid !important;
    }

    /* Remove background colors and shadows */
    * {
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .fi-main {
        padding: 0 !important;
    }

    .fi-ta-content {
        overflow: visible !important;
    }

    table {
        width: 100% !important;
        page-break-inside: auto !important;
    }

    tr {
        page-break-inside: avoid !important;
        page-break-after: auto !important;
    }
}