.rep-pro-container {
    margin: 20px 0;
    font-family: Tahoma, Arial, sans-serif;
    overflow-x: auto;
   
    border-radius: 12px;
    
    background: white;
    padding: 0;
    border: 1px solid #e0e0e0;
}

/* ------------------- فیلترها ------------------- */
.rep-filters {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #eee;
   
}

.rep-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    align-items: end;
}

.rep-filter-row input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13.5px;
    background: #fff;
    transition: border 0.3s;
}

.rep-filter-row input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.rep-filter-row button {
    background: #c8470c;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13.5px;
    transition: all 0.3s;
}

.rep-filter-row button:hover {
    background: #8b8786;
}

.rep-reset {
    color: #e74c3c;
    font-size: 12.5px;
    text-decoration: none;
    padding: 10px 0;
    align-self: center;
    margin-right: 10px;
}

.rep-reset:hover {
    text-decoration: underline;
    color: #c0392b;
}

/* ------------------- جدول ------------------- */
.rep-pro-table {
    width: 100%;
    min-width: 600px; /* حداقل عرض برای اسکرول افقی */
    border-collapse: collapse;
    background: white;
    margin: 0;
}

.rep-pro-table th {
    background: linear-gradient(135deg, #c4c4c4 0%, #b8b8b8);
    color: #000;
    padding: 4px 0px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rep-pro-table th a {
    
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    font-family: Tahoma, Arial, sans-serif;
}

.rep-pro-table th a:hover {
    text-decoration: underline;
}

.rep-pro-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13.5px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rep-pro-table tr:hover {
    background: #f8f9ff;
}

.rep-pro-table tr:nth-child(even) {
    background: #f3f3f3;
}

/* عرض ستون‌ها در موبایل */
.rep-pro-table th:nth-child(1), .rep-pro-table td:nth-child(1) { min-width: 100px; }
.rep-pro-table th:nth-child(2), .rep-pro-table td:nth-child(2) { min-width: 70px; }
.rep-pro-table th:nth-child(3), .rep-pro-table td:nth-child(3) { min-width: 90px; }
.rep-pro-table th:nth-child(4), .rep-pro-table td:nth-child(4) { min-width: 100px; }
.rep-pro-table th:nth-child(5), .rep-pro-table td:nth-child(5) { min-width: 70px; }

/* ------------------- صفحه‌بندی ------------------- */
.rep-pagination {
    margin-top: 25px;
    text-align: center;
    padding: 10px 0;
}

.rep-pagination .page-numbers {
    display: inline-block !important;
    padding: 9px 14px;
    margin: 0 3px;
    background: #f1f1f1;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13.5px;
    min-width: 40px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.rep-pagination .page-numbers:hover,
.rep-pagination .page-numbers.current {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102,126,234,0.3);
}

/* ------------------- ریسپانسیو (موبایل) ------------------- */
@media (max-width: 768px) {
    .rep-pro-container {
        margin: 15px -10px;
        padding: 0 10px;
        border-radius: 0;
        box-shadow: none;
    }

    .rep-filters {
        padding: 12px;
        margin-bottom: 15px;
    }

    .rep-filter-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .rep-filter-row input,
    .rep-filter-row button,
    .rep-reset {
        font-size: 13px;
        padding: 9px;
    }

    .rep-pro-table {
        min-width: 560px;
        font-size: 12.5px;
    }

    .rep-pro-table th,
    .rep-pro-table td {
        padding: 10px 6px;
        font-size: 12px;
    }

    .rep-pro-table th a {
        font-size: 11.5px;
        gap: 3px;
    }

    .rep-pro-table th a i {
        font-size: 11px !important;
        margin-right: 3px !important;
    }

    /* عرض ستون‌ها در موبایل */
    .rep-pro-table th:nth-child(1), .rep-pro-table td:nth-child(1) { min-width: 90px; }
    .rep-pro-table th:nth-child(2), .rep-pro-table td:nth-child(2) { min-width: 20px; }
    .rep-pro-table th:nth-child(3), .rep-pro-table td:nth-child(3) { min-width: 40px; }
    .rep-pro-table th:nth-child(4), .rep-pro-table td:nth-child(4) { min-width: 40px; }
    .rep-pro-table th:nth-child(5), .rep-pro-table td:nth-child(5) { min-width: 40px; }

    .rep-pagination .page-numbers {
        padding: 7px 11px;
        font-size: 12.5px;
        margin: 2px;
        min-width: 36px;
    }
}

/* اسکرول افقی زیبا */
.rep-pro-container::-webkit-scrollbar {
    height: 8px;
}

.rep-pro-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.rep-pro-container::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 8px;
}

.rep-pro-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}