/* Print Styles */
@media print {
    @page {
        size: A4 landscape;
        margin: 1cm;
    }

    body {
        background-color: white;
        color: black;
        font-size: 10pt;
        /* Slightly smaller font for printing */
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    /* Hide non-printable elements */
    .header-actions,
    .search-bar,
    .actions,
    /* Edit/Delete buttons in table */
    .modal,
    .toast,
    .btn {
        display: none !important;
    }

    /* Adjust Header */
    header {
        margin-bottom: 1rem;
        border-radius: 0;
    }

    .table-container {
        overflow: visible;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 9pt;
    }

    th,
    td {
        border: 1px solid #ddd;
        /* Add borders for better readability on paper */
        padding: 0.5rem;
        color: black;
        page-break-inside: avoid;
        /* Prevent rows from splitting across pages */
    }

    th {
        background-color: #f0f0f0 !important;
        /* Light gray background for headers */
        font-weight: bold;
        -webkit-print-color-adjust: exact;
        /* Ensure background colors print */
        print-color-adjust: exact;
    }

    /* Hide the "İşlemler" column header */
    th:last-child,
    td:last-child {
        display: none;
    }

    /* Ensure links print as text (if any) */
    a {
        text-decoration: none;
        color: black;
    }
}