 
 .table-custom {
    table-layout: fixed;
    width: 100%; /* o la larghezza che vuoi */
}


/* ===============================
   INTESTAZIONI DELLA TABELLA
   =============================== */

/* Contenuto della cella header */
.table-custom th > .th-content {
    max-height: 40px;           /* Altezza massima */
    overflow: hidden;           /* Nasconde il testo in eccesso */
    white-space: nowrap;        /* Impedisce a capo automatico */
    text-overflow: ellipsis;    /* Mostra "..." se il testo è troppo lungo */
    display: block;             /* Necessario per applicare max-height */
    text-align: center;
}

/* Stile generale delle intestazioni */
.table-custom thead th {
    position: sticky;           /* Sticky header */
    top: 0;
   background-color:  #eaf7ff; 
    
    height: 40px;               /* Altezza fissa */
    vertical-align: middle;
    padding: 5px 10px;
}

/* ===============================
   CORPO DELLA TABELLA
   =============================== */
.table-custom > tbody > tr:not(.exclude){
    height: 150px;              /* Altezza fissa delle righe */
}


.table-custom  .td-content {
    height: 150px;              /* Altezza massima della cella */
    overflow-y: auto;           /* Scroll verticale se il contenuto supera l'altezza */
    white-space: normal;        /* Permette il testo a capo */
    padding: 0px;
    box-sizing: border-box;
}

/* Input/textarea all'interno delle celle */
.table-custom .td-content .form-control {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    font-size: 14px;
    display: block;
}

.table-custom td.details-control {
    text-align: center;
    cursor: pointer;
}



/* ===============================
   SELECT2
   =============================== */



/* Contenitore principale dei tag selezionati con scroll verticale */
.select2-container--default .select2-selection--multiple {
    height: 150px;        /* altezza fissa iniziale */
    min-height: 150px;    
    max-height: 150px;    /* altezza massima */
    overflow-y: auto;     /* scroll verticale se ci sono troppi tag */
    box-sizing: border-box;
    padding: 2px;         /* padding interno */
}