/* Excel Viewer Tool Styles */

.excel-table-container {
    max-height: 600px;
    overflow: auto;
}

.excel-table {
    font-size: 0.875rem;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.excel-table th,
.excel-table td {
    padding: 0.5rem;
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #dee2e6;
}

.excel-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.excel-table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.excel-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dark mode support */
[data-bs-theme="dark"] .excel-table th {
    background-color: #212529;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .excel-table th,
[data-bs-theme="dark"] .excel-table td {
    border-color: #495057;
}

[data-bs-theme="dark"] .excel-table tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

[data-bs-theme="dark"] .excel-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Make table responsive on mobile */
@media (max-width: 768px) {
    .excel-table {
        font-size: 0.75rem;
    }

    .excel-table th,
    .excel-table td {
        padding: 0.375rem;
        max-width: 150px;
    }
}
