/* ================================
   TAB SYSTEM (Shared)
================================ */

/* Navigation */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: #374151;
    background: #f8fafc;
}

.tab-button.active {
    color: #dc2626;
    border-bottom-color: #dc2626;
    background: #fef2f2;
}

/* Content container */
.tab-content {
    flex: 1;
    overflow-y: auto;
}

/* Tutte le tab occupano tutta l'altezza */
.tab-panel {
    height: 100%;
    display: none;
}

/* Solo la tab attiva diventa flex */
.tab-panel.active {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Fix tooltip sopra Tabulator */
.tab-panel .modal-section-header {
    position: relative;
    z-index: 50;
    flex: 0 0 auto;
}

/* Area tabella prende spazio restante */
.tab-panel .table-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* parti extra interne ai tab */
.box-files {
    overflow-y: auto;
}
