/* ============================================================
   tabulator_overrides.css — Personalizzazioni Tabulator
   Consolida: libs/tabulator-overrides.css + overrides da style1.css
   ============================================================ */

/* Da libs/tabulator-overrides.css */
.tabulator-popup-container {
    z-index: 20000 !important;
}

.drag-handle {
    cursor: grab;
    opacity: 0.7;
    display: flex;
    justify-content: center;
}

.drag-handle:active {
    cursor: grabbing;
}

/* ================================
   TABULATOR BASE
   ================================ */
.tabulator {
    background: white;
    border: none;
    font-size: 14px;
}

.tabulator .tabulator-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tabulator .tabulator-col {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.tabulator .tabulator-col:last-child {
    border-right: none;
}

.tabulator .tabulator-col-title {
    padding: 16px;
    font-size: 17px;
}

.tabulator .tabulator-row {
    background: white;
    border-bottom: 1px solid #f1f5f9;
}

.tabulator .tabulator-row:hover {
    background: #f8fafc;
}

.tabulator .tabulator-row.tabulator-selected {
    background: #fce7e7;
    color: #991b1b;
}

.tabulator .tabulator-row.tabulator-selected:hover {
    background: #ffefef;
}

.tabulator .tabulator-cell {
    padding: 12px;
    border-right: 1px solid #f1f5f9;
    color: #475569;
    font-size: 15px;
    font-weight: 500;
    vertical-align: middle;
}

.tabulator .tabulator-cell:last-child {
    border-right: none;
}

/* ================================
   TABULATOR NELLE MODALI (compatto)
   ================================ */
.modal-table-container .tabulator-col {
    min-height: 24px;
    padding: 2px 8px;
}

.modal-table-container .tabulator-col-title {
    padding: 2px 8px;
    min-height: 20px;
}

.modal-table-container .tabulator-row {
    min-height: 20px;
}

.modal-table-container .tabulator-cell {
    padding: 1px 8px;
    min-height: 18px;
}

.modal-table-container .tabulator-cell > * {
    min-height: 16px;
}
