/* Print Styles - Minimal ve Standart Rapor Görünümü */
@media print {
    @page {
        size: A4 landscape;
        margin: 1cm;
    }

    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background-color: white !important;
        color: #333 !important;
        font-size: 9pt;
        line-height: 1.4;
        font-family: Arial, Helvetica, sans-serif;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    /* Hide non-printable elements */
    .header-actions,
    .search-bar,
    .actions,
    .modal,
    .toast,
    .btn,
    .flash-message,
    .sorting-hint,
    .drag-handle,
    .dashboard {
        display: none !important;
    }

    header {
        margin: 0 0 0.5rem 0;
        padding: 0 !important;
    }

    header h1 {
        font-size: 20pt;
        font-weight: 700;
        color: #222;
        margin: 0;
        padding: 0 0 0.3rem 0;
        text-transform: none;
        border-bottom: 2px solid #333;
        width: 100%;
    }

    header h1::after {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: none !important;
        background: white !important;
    }

    .table-container {
        overflow: visible !important;
    }

    /* ========== TABLO - AÇIK KENARLIK TANIMLAMALARI ========== */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        border-spacing: 0 !important;
        font-size: 8pt !important;
        margin: 0 !important;
        /* Tablonun dış çerçevesi */
        border-top: 2px solid #333 !important;
        border-right: 2px solid #333 !important;
        border-bottom: 2px solid #333 !important;
        border-left: 2px solid #333 !important;
    }

    /* SATIRLAR */
    tr {
        page-break-inside: avoid !important;
    }

    /* TÜM HÜCRELER - HER KENARI AYRI AYRI TANIMLA */
    th,
    td {
        /* Her hücrenin tüm kenarlarını açıkça belirt */
        border-top: 1px solid #888 !important;
        border-right: 1px solid #888 !important;
        border-bottom: 1px solid #888 !important;
        border-left: 1px solid #888 !important;

        padding: 4px 6px !important;
        color: #333 !important;
        vertical-align: middle !important;
        font-size: 8pt !important;
        line-height: 1.3 !important;
        background-color: white !important;

        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* BAŞLIK HÜCRELERİ */
    th {
        background-color: #e0e0e0 !important;
        font-weight: bold !important;
        text-align: left !important;
        text-transform: uppercase !important;
        font-size: 7pt !important;
        letter-spacing: 0.03em !important;
        /* Başlık altı daha kalın */
        border-bottom: 2px solid #333 !important;
    }

    /* İlk sütun (S.No) ortalı */
    th:first-child,
    td:first-child {
        text-align: center !important;
        width: 25px !important;
    }

    td:first-child {
        font-weight: 600 !important;
    }

    /* ZEBRA ÇİZGİLİ SATIRLAR */
    tbody tr:nth-child(even) td {
        background-color: #f0f0f0 !important;
    }

    tbody tr:nth-child(odd) td {
        background-color: white !important;
    }

    /* Son sütunu (İşlemler) gizle */
    th:last-child,
    td:last-child {
        display: none !important;
    }

    /* Badge stillerini TAMAMEN kaldır */
    .badge,
    span.badge,
    span[class*="badge"] {
        all: unset !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #333 !important;
        font-size: inherit !important;
        font-weight: inherit !important;
        display: inline !important;
    }

    .badge-kurum,
    .badge-ilce {
        font-weight: 500 !important;
    }

    a {
        text-decoration: none !important;
        color: #333 !important;
    }

    thead {
        display: table-header-group !important;
    }
}