/* ================================
   Vendors Table (Admin)
================================ */

.table-responsive {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    padding: 10px;
}

/* الجدول */
.table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 900px;
}

/* رأس الجدول */
.table thead th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 12px;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

/* صفوف الجدول */
.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* خلايا الجدول */
.table tbody td {
    padding: 14px 12px;
    font-size: 14px;
    color: #343a40;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
}

/* العمود الأول (#) */
.table tbody td:first-child {
    font-weight: 600;
    color: #6c757d;
}

/* الحالة */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

/* حالات مختلفة */
.status-active {
    background-color: #e6f4ea;
    color: #198754;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-suspended {
    background-color: #fdecea;
    color: #dc3545;
}

/* أزرار الإجراءات */
.action-buttons {
    display: flex;
    gap: 6px;
}

.action-btn {
    border: none;
    background: transparent;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.action-btn.view {
    color: #0d6efd;
}

.action-btn.edit {
    color: #198754;
}

.action-btn.delete {
    color: #dc3545;
}

.action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Responsive تحسين */
@media (max-width: 768px) {
    .table {
        font-size: 13px;
    }

    .table thead th,
    .table tbody td {
        padding: 10px 8px;
    }
}
