table.table-excel {
    border-collapse: collapse;
    width: 100%;
    font-family: 'Calibri', 'Arial', sans-serif;
    font-size: 14px;
    background-color: #fff; /* Light background for light themes */
    color: #333; /* Dark text for contrast */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* Header styling */
table.table-excel thead th {
    background-color: #f5f6f5; /* Light gray like Excel headers */
    border: 1px solid #d3d3d3; /* Light gray borders */
    padding: 8px;
    text-align: left;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    font-size: 12px;
}

/* Cell styling */
table.table-excel td {
    border: 1px solid #d3d3d3; /* Thin, Excel-like borders */
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

/* Alternating row colors */
table.table-excel tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Subtle gray for even rows */
}

table.table-excel tbody tr:nth-child(odd) {
    background-color: #ffffff; /* White for odd rows */
}

/* Hover effect for rows */
table.table-excel tbody tr:hover {
    background-color: #e6f3ff; /* Light blue hover, Excel-like selection */
}

/* Optional: Selected cell effect */
table.table-excel td.selected {
    background-color: #d9eaf7; /* Light blue for selected cells */
    border: 2px solid #4a90e2; /* Blue outline for focus */
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    table.table-excel {
        background-color: #2b2b2b; /* Dark background */
        color: #e0e0e0; /* Light text */
    }

    table.table-excel thead th {
        background-color: #3c3f41; /* Darker header */
        border-color: #555555; /* Darker borders */
        color: #e0e0e0;
    }

    table.table-excel td {
        border-color: #555555;
    }

    table.table-excel tbody tr:nth-child(even) {
        background-color: #333333; /* Slightly lighter dark for even rows */
    }

    table.table-excel tbody tr:nth-child(odd) {
        background-color: #2b2b2b; /* Match table background for odd rows */
    }

    table.table-excel tbody tr:hover {
        background-color: #4a5a6b; /* Darker blue hover for dark theme */
    }

    table.table-excel td.selected {
        background-color: #4a5a6b;
        border-color: #66b3ff;
    }
}