/* --- TABLE LOADING STATE --- */

/* Loading State Overlay for the Table Container */
.tv-table-container.is-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* --- TOOLBAR FOOTER (Container for Reset Button) --- */
.tv-toolbar-footer {
    display: flex;
    justify-content: flex-end; /* Right aligned */
    align-items: center;
    min-height: 30px; /* RESERVED SPACE: Prevents layout jumps */
    margin-bottom: 10px; /* Margin to table */
    padding-right: 2px;
}

/* --- RESET BUTTON --- */
.tv-reset-btn {
    /* Layout & Size */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px; /* Smaller than filters (38px) */
    padding: 0 10px;

    /* Visuals */
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #d63031;
    font-size: 0.75rem; /* Smaller font */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;

    /* VISIBILITY LOGIC (Space remains reserved) */
    visibility: hidden;
    opacity: 0;
    transform: translateY(5px);
}

.tv-reset-btn:hover {
    background-color: #fff5f5;
    border-color: #ffdede;
    color: #c0392b;
}

.tv-reset-btn.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE: TABLET & MOBILE --- */
@media screen and (max-width: 1024px) {

    /* Stack toolbar items vertically */
    .tv-table-toolbar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
        height: auto !important;
    }

    /* Reset Reset-Button position */
    .tv-toolbar-footer {
        justify-content: center; /* Center button on mobile */
        width: 100%;
    }
}