﻿body {
    font-family: 'Vazir', sans-serif;
    background-color: #f1f3f5;
    margin: 0;
    padding: 10px;
    direction: rtl;
    color: #343a40;
    font-size: 16px;
}

.header-box {
    background: #6c757d;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 10px;
}

    .header-box h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 400;
    }

.table-responsive {
    overflow-x: auto;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* جدول و ستون‌ها */
table.dataTable {
    border-collapse: collapse !important;
    font-size: 16px;
    background: #fff;
    width: 100%;
    min-width: 1000px !important;
    table-layout: auto;
}

    table.dataTable thead {
        background-color: #dee2e6;
        color: #212529;
    }

        table.dataTable thead th {
            text-align: right;
            padding: 8px 10px;
            border-left: 1px solid #ced4da;
            white-space: nowrap;
            font-weight: 500;
        }

            table.dataTable thead th:last-child {
                border-left: none;
            }

    table.dataTable tbody td {
        text-align: right;
        padding: 8px 10px;
        border-left: 1px solid #e2e6ea;
        white-space: nowrap;
    }

        table.dataTable tbody td:last-child {
            border-left: none;
        }

    table.dataTable tbody tr:nth-child(even) {
        background-color: #f8f9fa;
    }

/* سرچ */
.dataTables_filter {
    text-align: right;
    margin-bottom: 10px;
}

    .dataTables_filter input {
        font-family: 'Vazir', sans-serif;
        font-size: 14px;
        color: #343a40;
        background-color: #f8f9fa;
        padding: 8px 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        margin-right: 10px;
        outline: none;
        width: 250px;
    }

/* اطلاعات و صفحه‌بندی */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-size: 14px;
    color: #495057;
}

/* لینک‌ها */
.custom-link {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border: 1.5px solid #4a90e2;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
}

    .custom-link:hover {
        background-color: #4a90e2;
        color: white;
        box-shadow: 0 4px 10px rgba(74,144,226,0.3);
        cursor: pointer;
    }

.custom-link2 {
    color: #007bff;
    text-decoration: underline;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    cursor: pointer;
}

    .custom-link2:hover {
        color: #0056b3;
        text-decoration: none;
    }

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    body {
        font-size: 14px !important;
    }

    .header-box h2 {
        font-size: 16px;
    }

    table.dataTable {
        font-size: 13px !important;
        min-width: 700px !important;
    }

    .dataTables_filter input {
        font-size: 13px !important;
        width: 100% !important;
    }

    .custom-link {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }

    .custom-link2 {
        font-size: 13px !important;
    }

    table.dataTable thead th,
    table.dataTable tbody td {
        padding: 6px 8px !important;
    }

        /* فاصله دادن فلش‌ها از متن در هدر جدول */
        table.dataTable thead th.sorting,
        table.dataTable thead th.sorting_asc,
        table.dataTable thead th.sorting_desc {
            padding-left: 20px !important; /* فاصله از سمت چپ برای جا دادن فلش */
            position: relative;
        }

        table.dataTable thead th::after, table.dataTable thead th::before {
            left: 5px !important; /* فلش رو به چپ منتقل کن که رو متن نیفته */
            right: auto !important;
        }
      

}
