/* ========================================================
   استایل‌های جدول سریع (Mobile-First & RTL)
======================================================== */

/* کانتینر اصلی: ایجاد اسکرول افقی در موبایل برای جلوگیری از به هم ریختگی قالب */
.custom-responsive-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* اسکرول روان در iOS */
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.custom-easy-table {
    width: 100%;
    min-width: 600px; /* در موبایل، اگر عرض جدول از این کمتر شد اسکرول می‌خورد */
    border-collapse: collapse;
    font-family: inherit; /* استفاده از فونت قالب (مثلاً فونت وزیر) */
    text-align: right;
    background-color: #ffffff;
}

.custom-easy-table th,
.custom-easy-table td {
    padding: 15px;
    border-bottom: 1px solid #eeeeee;
    font-size: 14px;
}

.custom-easy-table thead th {
    background-color: #f7f9fa;
    color: #333333;
    font-weight: bold;
    border-bottom: 2px solid #dddddd;
}

/* تغییر رنگ سطرهای زوج برای خوانایی بهتر */
.custom-easy-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.custom-easy-table tbody tr:hover {
    background-color: #f5f5f5;
    transition: background-color 0.2s ease;
}

/* بهینه‌سازی برای نمایشگرهای بزرگ‌تر (Desktop) */
@media (min-width: 768px) {
    .custom-responsive-table-wrapper {
        overflow-x: visible; /* حذف اسکرول در دسکتاپ */
    }
    .custom-easy-table {
        min-width: 100%;
    }
    .custom-easy-table th,
    .custom-easy-table td {
        font-size: 15px; /* بزرگ‌تر شدن فونت در دسکتاپ */
    }
}