/* --- Tabs Container (Full Width) --- */
.tabs-wrapper {
    margin-top: 24px;
    position: relative;
    /* Remove masks since we aren't scrolling anymore */
    -webkit-mask-image: none;
    mask-image: none;
}

.filter-tabs {
    display: flex;
    width: 100%;
    gap: 0; /* Tabs touch each other for a "button group" look */
    position: relative;
    bottom: -1px; /* Overlap table border */
    z-index: 2;
}

.tab-btn {
    flex: 1; /* Key: Distributes space equally across screen width */
    font-family: var(--font-data);
    padding: 12px 5px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0; /* Square for internal buttons */
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* Rounded corners for the edges of the group */
.tab-btn:first-child {
    border-radius: 8px 0 0 0;
}

.tab-btn:last-child {
    border-radius: 0 8px 0 0;
}

.tab-btn.active {
    background: var(--table-header);
    color: var(--text-primary);
    border-bottom: 1px solid var(--table-header); /* Blends into table */
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .tab-btn {
        font-size: 0.65rem; /* Shrink text to fit small screens */
        padding: 10px 2px;
        letter-spacing: 0.02em;
    }
}
