﻿/* ============================================================
   YIBEN - Custom DataTables CSS
   ============================================================ */

/* ── Wrapper ── */
.dataTables_wrapper {
    padding: 0;
    width: 100%;
    overflow-x: auto;
}

    /* Tablo responsive — taşmayı önle */
    .dataTables_wrapper .dataTables_scroll,
    .dataTables_wrapper table.dataTable {
        width: 100% !important;
    }

    /* ── Üst Bar ── */
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        margin-bottom: 1rem;
    }

        .dataTables_wrapper .dataTables_filter label,
        .dataTables_wrapper .dataTables_length label {
            font-size: 0.875rem;
            color: #64748b;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* ── Arama Input — şeffaf, minimal ── */
        .dataTables_wrapper .dataTables_filter input {
            border: none;
            border-bottom: 1.5px solid #e2e8f0;
            border-radius: 0;
            padding: 0.4rem 0.5rem;
            font-size: 0.875rem;
            color: #334155;
            outline: none;
            background: transparent;
            min-width: 200px;
            transition: border-color 0.2s ease;
        }

            .dataTables_wrapper .dataTables_filter input:focus {
                border-bottom-color: #E60013;
            }

            .dataTables_wrapper .dataTables_filter input::placeholder {
                color: #cbd5e1;
            }

        /* ── Length Select — sade pill ── */
        .dataTables_wrapper .dataTables_length select {
            border: 1px solid #e2e8f0;
            border-radius: 0.375rem;
            padding: 0.35rem 0.6rem;
            font-size: 0.8rem;
            color: #475569;
            outline: none;
            background: #fff;
            cursor: pointer;
            transition: border-color 0.2s ease;
            appearance: auto;
        }

            .dataTables_wrapper .dataTables_length select:focus {
                border-color: #E60013;
                outline: none;
            }

    /* ── Alt Bar ── */
    .dataTables_wrapper .dataTables_info {
        font-size: 0.82rem;
        color: #94a3b8;
        padding-top: 0.75rem;
    }

    /* ── Pagination ── */
    .dataTables_wrapper .dataTables_paginate {
        padding-top: 0.5rem;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            min-width: 2rem;
            height: 2rem;
            padding: 0 0.6rem !important;
            border-radius: 0.375rem !important;
            border: 1px solid #e2e8f0 !important;
            background: #fff !important;
            color: #64748b !important;
            font-size: 0.85rem;
            font-weight: 500;
            margin: 0 2px !important;
            cursor: pointer;
            transition: all 0.15s ease;
            box-shadow: none !important;
        }

            .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
                background: #f1f5f9 !important;
                border-color: #e2e8f0 !important;
                color: #E60013 !important;
            }

            /* Aktif sayfa */
            .dataTables_wrapper .dataTables_paginate .paginate_button.current,
            .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
                background: #E60013 !important;
                border-color: #E60013 !important;
                color: #fff !important;
            }

            /* Devre dışı */
            .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
            .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
                background: #f8fafc !important;
                border-color: #e2e8f0 !important;
                color: #cbd5e1 !important;
                cursor: not-allowed;
            }

    /* ── Processing ── */
    .dataTables_wrapper .dataTables_processing {
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 0.5rem !important;
        color: #64748b !important;
        font-size: 0.875rem !important;
        padding: 0.75rem 1.5rem !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    }

/* ── Sıralama ikonları ── */
table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: 0.4rem;
    color: #cbd5e1;
}

table.dataTable thead th.sorting::after {
    content: "\f0dc";
}

table.dataTable thead th.sorting_asc::after {
    content: "\f0de";
    color: #E60013;
}

table.dataTable thead th.sorting_desc::after {
    content: "\f0dd";
    color: #E60013;
}

/* ── Mobil ── */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_filter input {
        min-width: 140px;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        width: 100%;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        min-width: 1.75rem;
        height: 1.75rem;
        font-size: 0.78rem;
        padding: 0 0.4rem !important;
    }
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ebe8e8 !important;
    border-radius: 8px !important;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ebe8e8 !important;
    border-radius: 8px !important;
}

