/* LARGHEZZA COLONNE */

.order-column-1 {
    width: 30px;
}

.options-column-1 {
    width: 80px;
}

.options-column-2 {
    width: 130px;
}

.options-column-3 {
    width: 180px;
}

.cell-width-1 {
    width: 60px;
}

.cell-width-05 {
    width: 30px;
}

.cell-width-2 {
    width: 120px;
}

.cell-width-3 {
    width: 180px;
}

.cell-width-4 {
    width: 240px;
}

.cell-width-5 {
    width: 300px;
}

.cell-width-6 {
    width: 360px;
}

.cell-width-7 {
    width: 420px;
}

.cell-width-8 {
    width: 480px;
}

.cell-width-9 {
    width: 540px;
}

.cell-width-10 {
    width: 600px;
}

.cell-width-11 {
    width: 660px;
}

.cell-width-12 {
    width: 720px;
}

.no-occurrence{
    font-style: italic;
}

input[type="text"].text_required {
    border: 2px solid #ff6666;
}

input[type="text"].number_required {
    background-color: #ff9999;
}

input[type="number"].number_required {
    background-color: #ff9999;
}

input[type="text"].readOnly {
    background-color: #e9ecef;
}

textarea.readOnly {
    background-color: #e9ecef;
}

input[type="number"].readOnly {
    background-color: #e9ecef;
}


.ragione_sociale_search{
    cursor: default;
    text-decoration: none;
    display: block;
    padding: 2px .4em;
    line-height: 1.5;
    zoom: 1;
    font-weight: normal;
}

.ragione_sociale_search:hover {
    background-color: #E0E0E0;
    text-decoration: none;
}

.commessa_search {
    cursor: default;
    text-decoration: none;
    display: block;
    padding: 5px .4em;
    line-height: 1.5;
    zoom: 1;
    font-weight: normal;
}

.commessa_search:hover {
    background-color: #E0E0E0;
    text-decoration: none;
}

.task_manage {
    cursor: default;
    text-decoration: none;
    display: block;
    padding: 5px .4em;
    line-height: 1.5;
    zoom: 1;
    font-weight: normal;
}

.task_manage:hover {
    background-color: #E0E0E0;
    text-decoration: none;
}

.commessa_manage{
    cursor: default;
    text-decoration: none;
    display: block;
    padding: 5px .4em;
    line-height: 1.5;
    zoom: 1;
    font-weight: normal;
}

.commessa_manage:hover {
    background-color: #E0E0E0;
    text-decoration: none;
}

tr.linked-click{
    cursor: pointer
}

.custom-font-size {
    font-size: .8rem;
}

.custom-italic-font{
    font-style: italic;
}

tr.custom-grey td {
    color: #cccccc;

}

.dashboard .activity-item .button-open-modal-attivita-update{
    position: absolute;
    left: -30px;
    padding: 0;
}

.alert-virtual-desktop{
    position: absolute;
    inset: -2px -5px auto auto;
    font-weight: normal;
    font-size: 12px;
    padding: 3px 6px;
    top: -10px;
    right: 0px;
}

.cursor-pointer { cursor: pointer; }
.transition-icon { transition: transform 0.2s ease; }
.rotate-90 { transform: rotate(90-deg); }
.treeview-container .list-group-item { background: transparent; }
.treeview-container span { font-size: 0.9rem; }

/* Personalizza il "pallino" (thumb) dello slider */
.custom-nice-range::-webkit-slider-thumb {
  background: #4154f1; /* Colore primary di NiceAdmin */
  border: 2px solid #fff;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}

/* Rende la traccia dello slider più sottile */
.custom-nice-range::-webkit-slider-runnable-track {
  background: #f0f0f0;
  height: 6px;
  border-radius: 3px;
}

.profile .profile-card-custom img {
  max-width: 240px;
}

.cursor-pointer {
    cursor: pointer !important;
}

#auto-close-alert{
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999; min-width: 300px;
}

.descrizione-campo-view{
    background-color: #efefef;
    padding: 7px;
    border-radius: 5px;
    min-height: 38px
}

.descrizione-campo-view-text-area {
    background-color: #efefef;
    padding: 7px;
    border-radius: 5px;
    
    /* 1. Forza il comportamento a blocco (indispensabile per altezza e a capo) */
    display: block; 
    
    /* 2. Gestione dell'altezza minima (es. circa 3 righe di testo) */
    line-height: 1.5;
    min-height: 5.5em; /* Regola questo valore per più o meno righe */
    
    /* 3. Preserva i "vado a capo" (invio) e gestisce le parole lunghe */
    white-space: pre-wrap;
    word-wrap: break-word;
    
    /* 4. Include il padding nel calcolo dell'altezza */
    box-sizing: border-box; 
}

.activity-item .button-open-modal-workpackage-attivita-task{
     padding-top: 0;
}   
