.wpec-table-container {
    overflow-x: auto;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
}

.wpec-table {
    width: 100%;
    border-collapse: collapse;
}

.wpec-table th,
.wpec-table td {
    padding: 8px 10px;
    border: 1px solid #ccc;
    text-align: center;
}

.wpec-table thead {
    background-color: #f5f5f5;
    font-weight: bold;
}


.wpec-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 10px;
    border-bottom: 2px solid #ddd;
    background: white;
    position: relative;
    z-index: 10;
}

/* 🔹 Dropdown & Button Styles */
.wpec-filters select,
.wpec-filters button {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background: white;
}

.wpec-filters button {
    background: #4CAF50;
    color: white;
    border: none;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.wpec-filters button:hover {
    background: #388E3C;
}

/* 🔹 Table Wrapper - Ensures only Table Scrolls */
.wpec-table-container {
    width: 100%;
    overflow-x: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* 🔹 Table Styling */
.wpec-table {
    width: 100%;  /* ✅ Ensures Full Width on Desktop */
    border-collapse: collapse;
    min-width: 800px;  /* ✅ Ensures Scroll on Mobile */
    border: 1px solid #ddd;
}

/* 🔹 Table Header (Sticky) */
.wpec-table thead th {
    background: #C8E6C9;
    padding: 8px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 5;
    white-space: nowrap;  /* ✅ Prevents Text Wrapping */
}

/* 🔹 Table Rows */
.wpec-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.wpec-table tbody tr:hover {
    background: #F1F8E9;
}

/* 🔹 Table Cells */
.wpec-table td {
    padding: 8px;
    text-align: center;
    white-space: nowrap;  /* ✅ Keeps Text in One Line */
    font-size: 14px;
    border: 1px solid #ddd;
}

/* 🔹 Fixed First Column (Player Name) */
.wpec-table td:first-child,
.wpec-table th:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 6;
    font-weight: bold;
    text-align: left;
    padding-left: 10px;
    min-width: 160px; /* ✅ Wider for Better Readability */
    max-width: 160px;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.1);
    text-overflow: ellipsis;  /* ✅ Adds "..." if text is too long */
}

/* 🔹 Custom Scrollbar */
.wpec-table-container::-webkit-scrollbar {
    height: 6px;
}

.wpec-table-container::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 10px;
}

.wpec-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* 🔹 Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    .wpec-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .wpec-filters select,
    .wpec-filters button {
        width: 100%;
    }

    .wpec-table-container {
        overflow-x: scroll;
    }

    .wpec-table td:first-child,
    .wpec-table th:first-child {
        min-width: 140px;
        max-width: 140px;
        font-size: 13px;
    }

    .wpec-table th,
    .wpec-table td {
        font-size: 12px;
        padding: 6px;
    }
}


/* livesscore page */

