/* General table styling */
.kva-kw-chart-table,
.updated-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    text-align: center;
    table-layout: fixed; /* Add this line to fix column widths */
}

/* Sticky Header */
.kva-kw-chart-table thead th,
.updated-table thead th {
    background-color: #ffffff;
    border-bottom: 1px solid #000000;
    padding: 12px;
    font-weight: bold;
    text-align: center !important;
    font-size: 15px !important;
}

/* Highlight 3rd and 8th header values */
.kva-kw-chart-table thead th:nth-child(3),
.kva-kw-chart-table thead th:nth-child(10),
.updated-table thead th:nth-child(3),
.updated-table thead th:nth-child(10) {
    color: #ffffff;
    background-color: #333333;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
}

/* Bold first two columns */
.kva-kw-chart-table tbody td:first-child,
.kva-kw-chart-table tbody td:nth-child(2),
.updated-table tbody td:first-child,
.updated-table tbody td:nth-child(2),
.kva-kw-chart-table thead th:first-child,
.kva-kw-chart-table thead th:nth-child(2),
.updated-table thead th:first-child,
.updated-table thead th:nth-child(2) {
    font-weight: bold;
    width: 8%; /* Set a specific width for the first two columns */
}

/* Bold & colored 3rd and 8th columns */
.kva-kw-chart-table tbody td:nth-child(3),
.kva-kw-chart-table tbody td:nth-child(10),
.updated-table tbody td:nth-child(3),
.updated-table tbody td:nth-child(10) {
    font-weight: bold;
    color: #ffffff;
    background-color: #333333;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
     width: 8%; /* Set a specific width for the third and tenth columns */
}

/* Row striping */
.kva-kw-chart-table tbody tr:nth-child(odd),
.updated-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.kva-kw-chart-table tbody tr:nth-child(even),
.updated-table tbody tr:nth-child(even) {
    background-color: #f7f7f7;
}

/* Alternating colors for first two columns */
.kva-kw-chart-table tbody tr:nth-child(odd) td:first-child,
.kva-kw-chart-table tbody tr:nth-child(odd) td:nth-child(2),
.updated-table tbody tr:nth-child(odd) td:first-child,
.updated-table tbody tr:nth-child(odd) td:nth-child(2) {
    background-color: #333;
    color: #ffffff;
}

.kva-kw-chart-table tbody tr:nth-child(even) td:first-child,
.kva-kw-chart-table tbody tr:nth-child(even) td:nth-child(2),
.updated-table tbody tr:nth-child(even) td:first-child,
.updated-table tbody tr:nth-child(even) td:nth-child(2) {
    background-color: #333;
    color: #ffffff;
}

/* Ensure cell spacing and padding */
.kva-kw-chart-table tbody td,
.updated-table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #bbbbbb;
    text-align: center !important;
    font-size: 15px !important;
    width: 6%; /* Set a specific width for all other columns */
}

/* Responsive: Enable horizontal scrolling */
.kva-kw-chart-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    display: block;
    max-width: 100%;
}

@media (max-width: 768px) {
    .kva-kw-chart-container {
        overflow-x: auto;
        width: 100%;
        display: block;
    }

    .updated-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

/* Style the filter inputs */
.kva-kw-chart-container input[type="text"] {
        padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    color: #000000;
    width: 120px;
    font-size: 16px;
}