/* Excel-like table styling */

/* Main table styles */
.excel-table {
    border-collapse: collapse;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
    border: 1px solid #e0e0e0;
}

/* Header styles */
.excel-table thead th {
    background-color: #f3f3f3;
    border: 1px solid #e0e0e0;
    padding: 8px;
    font-weight: 600;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

/* Add sort indicators */
.excel-table th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.excel-table th.sortable::after {
    content: "⇕";
    position: absolute;
    right: 5px;
    color: #999;
    font-size: 12px;
}

.excel-table th.sort-asc::after {
    content: "↑";
    color: #333;
}

.excel-table th.sort-desc::after {
    content: "↓";
    color: #333;
}

/* Cell styles */
.excel-table td {
    border: 1px solid #e0e0e0;
    padding: 6px 8px;
    vertical-align: middle;
}

/* Row styles */
.excel-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.excel-table tbody tr:hover {
    background-color: #e9f3ff;
}

/* Filter container */
.excel-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.excel-search-box {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 250px;
    font-size: 14px;
}

.excel-filter-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .excel-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .excel-filter-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .excel-search-box {
        width: 100%;
    }
}

/* Selected row highlight */
.excel-table tr.selected {
    background-color: #cce5ff;
}

/* Cell with numeric values */
.excel-table td.numeric {
    text-align: right;
}

/* Excel-like grid lines */
.excel-table-container {
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: auto;
    max-height: 80vh;
}