
.dropdown-menu {
  max-height: min(70vh, 560px);
  overflow-y: auto;
}

/* su schermi piccoli lasciagli più spazio */
@media (max-width: 576px) {
  .dropdown-menu {
    max-height: 80vh;
    width: 92vw;            /* se vuoi che su mobile sia più larga */
  }
}


#allegati_feedback .badge { font-weight: 400; }




/* Forum overlay look-alike "tabella" */
#pannello_forum .overlay-wrap{
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05);
    overflow: hidden;
}

/* barra superiore come gli altri splash */
#pannello_forum .overlay-header{
  background:#f8f9fa;            /* bg chiaro */
  border-bottom:1px solid #e9ecef;
  padding:.75rem 1rem;
}

/* corpo bianco con padding (al posto della table) */
#pannello_forum .overlay-body{
  padding:1rem;
}

/* lista thread più pulita, stile "righe" */
#pannello_forum .list-group{
  border:1px solid #f1f3f5;
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}
#pannello_forum .list-group-item{
  border:0;
  border-bottom:1px solid #f1f3f5;
}
#pannello_forum .list-group-item:last-child{
  border-bottom:0;
}

/* form box sopra la lista */
#pannello_forum .new-thread-box{
  background:#fff;
  border:1px solid #f1f3f5;
  border-radius:8px;
  padding:1rem;
  margin-bottom:1rem;
}

/* bottoni e badge leggermente più compatti */
#pannello_forum .badge{ font-weight:500; }
#pannello_forum .btn-sm{ padding:.3rem .6rem; }









/* ========== INDICATORI GERARCHICI (colonna Titolo) ========== */
#crud_fasi tbody tr[data-level] td:first-child { position: relative; }
#crud_fasi tbody tr[data-level] td:first-child::before {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%); opacity: .7;
  content: "";
}
#crud_fasi tbody tr[data-level="0"] td:first-child input { padding-left: 28px; }      /* root */
#crud_fasi tbody tr[data-level="1"] td:first-child::before { content: "↳ "; }
#crud_fasi tbody tr[data-level="1"] td:first-child input { padding-left: 32px; }
#crud_fasi tbody tr[data-level="2"] td:first-child::before { content: "↳ ↳ "; letter-spacing: 2px; }
#crud_fasi tbody tr[data-level="2"] td:first-child input { padding-left: 40px; }
#crud_fasi tbody tr[data-level="3"] td:first-child::before { content: "↳ ↳ ↳ "; letter-spacing: 2px; }
#crud_fasi tbody tr[data-level="3"] td:first-child input { padding-left: 48px; }

/* ========== RIGHE COMPATTE: SOLO FOGLIE NON-ROOT ========== */
#crud_fasi tbody tr[data-has-children="0"][data-level]:not([data-level="0"]) td { padding-top: .25rem; padding-bottom: .25rem; }
#crud_fasi tbody tr[data-has-children="0"][data-level]:not([data-level="0"])
  .form-control-sm,
#crud_fasi tbody tr[data-has-children="0"][data-level]:not([data-level="0"])
  .form-select-sm,
#crud_fasi tbody tr[data-has-children="0"][data-level]:not([data-level="0"])
  .input-group-text { font-size: .82rem; padding-top: .18rem; padding-bottom: .18rem; line-height: 1.1; }
#crud_fasi tbody tr[data-has-children="0"][data-level]:not([data-level="0"]) .btn { padding: .18rem .45rem; font-size: .78rem; line-height: 1.1; }

/* ========== TINTA LEGGERA PER LIVELLI > 0 (senza .table-striped) ========== */
/* ====== Evidenza livelli > 0 (senza .table-striped) ====== */
/* sfondo più visibile + barretta sinistra in tinta */

/* LIVELLO 1 */
#crud_fasi table tbody tr[data-level="1"] > td {
  background-color: #eaf2ff !important;   /* azzurro chiarissimo ma visibile */
}
#crud_fasi table tbody tr[data-level="1"] > td:first-child {
  border-left: 4px solid #6ea8fe;         /* primary-300 */
}

/* LIVELLO 2 */
#crud_fasi table tbody tr[data-level="2"] > td {
  background-color: #e1ecff !important;
}
#crud_fasi table tbody tr[data-level="2"] > td:first-child {
  border-left: 4px solid #4f8cff;         /* primary-400 */
}

/* LIVELLO 3 */
#crud_fasi table tbody tr[data-level="3"] > td {
  background-color: #d8e6ff !important;
}
#crud_fasi table tbody tr[data-level="3"] > td:first-child {
  border-left: 4px solid #2f6fe4;         /* primary-500 */
}

/* Hover (un filo più marcato) */
#crud_fasi table tbody tr[data-level="1"]:hover > td { background-color: #dfeaff !important; }
#crud_fasi table tbody tr[data-level="2"]:hover > td { background-color: #d5e2ff !important; }
#crud_fasi table tbody tr[data-level="3"]:hover > td { background-color: #cbdcff !important; }



.chkPerm {
  width: 20px; height: 20px;
  cursor: pointer;
}
.chkPerm:checked {
  accent-color: green;
}




input[readonly] {
    background-color: #e9e0ff !important;
}

.note-pannellino {
    max-height: 230px;
    font-size: 12px;
    overflow-y: auto;
    background: #fff;
    border-radius: 6px;
    padding: 6px 8px;
    box-sizing: border-box;
}

.azienda-row td {
    background: #dddddd;
    letter-spacing: 1px;
    color: #201f5b;
    border-bottom: 2px solid #42515f;
    padding-top: 8px;
    padding-bottom: 8px;
}






.right-panel {
  clip-path: polygon(3% 0, 100% 0, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(3% 0, 100% 0, 100% 100%, 0% 100%);
  background-image: url('path/to/sfondo.jpg');
  background-size: cover;
  background-position: center;
}



.app-description {
  background-color: rgba(255, 255, 255, 0.9); /* grigio chiaro trasparente */
  padding: 20px;
  border-radius: 8px;
  max-width: 70%;
  margin: 60px auto 20px auto;
  /*text-align: center;*/
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding-bottom: 20px;
  
}

.footer-links a {
  color: #022948;
  width:200px;
  text-align: center;
  background: #fff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}



.intestazione_bilancio {
    font-variant: small-caps;
    background-color: #fef8f5;
}


.section-not-found {
  background-color: #fef8f5;
  border: 1px solid #ffc107;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.1);
}




.font-10 {
    font-size: 10px;
}


#promemoria-box textarea::placeholder {
  color: #6c757d;
  font-style: italic;
}

#promemoria-box .list-group-item {
  border-left: 4px solid #0d6efd;
  background-color: #fff;
  transition: background-color 0.2s;
}

#promemoria-box .list-group-item:hover {
  background-color: #f8f9fa;
}





.flatpickr-input[readonly] {
    background-color: #f3f3f3;
}



    .excel-preview-container {
        border: 1px solid #ccc;
        padding: 5px;
        background: #fdfdfd;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        overflow-x: auto;
        font-family: 'Courier New', monospace;
    }

    .excel-preview-table {
        border-collapse: collapse;
        width: 100%;
        table-layout: auto;
        min-width: 800px;
    }

    .excel-preview-table th,
    .excel-preview-table td {
        border: 1px solid #aaa;
        padding: 5px 8px;
        font-size: 12px;
        color: #111;
        white-space: nowrap;
    }

    .excel-preview-table th {
        background-color: #e9ecef;
        font-weight: bold;
        text-align: left;
    }

    .excel-preview-table td input[type="checkbox"] {
        transform: scale(1.2);
        margin-top: 3px;
    }

    .badge.bg-warning {
        background-color: #f7c948 !important;
        color: #212529;
    }

    .badge.bg-success {
        background-color: #38c172 !important;
        color: #fff;
    }

/* --- MODALE EVENTO (FullCalendar) --- */


.fc-daygrid-event-dot {
    height: 24px;
}





.modal-content {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: none;
}

/* Header con accento arancione */
.modal-header {
  border-top: 4px solid #F57C00; /* Arancione brand */
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Titolo in blu scuro */
.modal-title {
  color: #2E3A87; /* Blu/viola del sito */
  font-weight: 600;
  font-size: 1.1rem;
}

/* Pulsante di chiusura */
.btn-close {
  filter: brightness(0.5);
}

/* Pulsante Primario (Salva) */
.btn-primary {
  background-color: #2E3A87;
  border-color: #2E3A87;
  color: #fff;
}

.btn-primary:hover {
  background-color: #1d2866;
  border-color: #1d2866;
}

/* Pulsante Secondario (Chiudi) */
.btn-secondary {
  background-color: #666;
  border-color: #666;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #4a4a4a;
  border-color: #4a4a4a;
}

/* Dropdown Ricorrenza */
select.form-select {
  border-radius: 6px;
}

/* Input */
.form-control {
  border-radius: 6px;
}

/* Etichette */
.form-label {
  color: #333;
  font-weight: 500;
}


.piccolissimo {
    font-size:10px;
}


.piccolo {
    font-size:9px;
}

.table-xs {
    font-size:12px;
}

.riga-pari {
  background-color: #ffffff;
}

.riga-dispari {
  background-color: #e7e7e7;
}

.logohome 
{
    display: block;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
}

/* Tablet: larghezza massima 1024px */
@media (max-width: 1024px) 
{
    .logohome 
    {
        width: 80px;
        margin: 0px 0px 0px 0px;
        padding: 0px 0px 0px 0px;
    }
}

/* Telefono orizzontale */
@media (max-width: 768px) and (orientation: landscape) 
{
    .logohome 
    {
        width: 80px;
        margin: 0px 0px 0px 0px;
        padding: 0px 0px 0px 0px;
    }
  
    .hide-on-landscape-phone 
    {
        display: none !important;
    }  
}


@media (max-width: 1200px) and (orientation: landscape) 
{
    .hide-on-landscape-phone 
    {
        display: none !important;
    }  
}







.impersona {
    cursor: pointer;
    margin: 5px 6px 5px 13px;
    padding: 5px;
    font-size: 13px;
    border-bottom: 1px solid #ccc; /* aggiunto bordo sotto */
}

.impersona:nth-child(even) {
    background-color: #ffffff; /* colore più scuro per le righe pari */
}
.impersona:nth-child(odd) {
    background-color: #f0f0f1; /* colore più scuro per le righe pari */
}


.custom-file-upload {
  cursor: pointer;
  font-size: 12px;
  color: black;
  display: inline-block;
  box-shadow: 1px 1px 1px 1px #595959;
}

.custom-file-upload.active {
  color: red;
  font-weight: bold;
}


.bordered-row {
    border: 1px solid #dee2e6;
  }

.gugi-regular {
  font-family: "Gugi", sans-serif;
  font-weight: 400;
  font-style: normal;
}


/* NASCONDE LE SOTTOCATEGORIE SENZA RENDERLE HIDDEN */
.sottocategoria-hidden {
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
    transition: height 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.toggle-subcategories, .delete-category {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    margin-left: 5px;
}
.toggle-subcategories:hover, .delete-category:hover {
    color: red;
}

.nome_categoria {
    font-size:20px;
}

.nome_sottocategoria {
    font-size:16px;
    background-color: #f0f0f1;
}

.btn-edit {
    border: solid 1px #201f5b;
}


.myoverlay_old {
    z-index: 20000;
    padding-top: 20px;
    position: fixed;
    width: 100%;
    top: 0px;
    left: 0px;
    height: 100%;
    bottom: 0;
    overflow-y: auto;
    background-color: #000000c9;
}

.myoverlay {
z-index: 20000;
    padding-top: 20px;
    position: fixed;
    width: 96%;
    top: 12px;
    left: 43px;
    border-radius: 14px;
    height: 97%;
    bottom: 7px;
    overflow-y: auto;
    background-color: #f1f1f1;
}



.myoverlay2 {
    position: relative;
    width: 69%;
    top: 0px;
    left: 0px;
    margin-right: auto;
    margin-left: auto;
    height: 100%;
}

.btn-xs {
    padding: 0.3rem 0.4rem;
    font-size: 12px;
    line-height: 0.9;
    border-radius: 3px;
    /*min-width: 55px;*/
}


tr {
    vertical-align: middle;
}

#header {
    background-color: #ed6905;
    color: white;
}

.bg-primary {
    background-color: #201f5b;
    color: white;
}

.btn-primary {
    background-color: #201f5b;
    color: white;;
}

 /* No More Tables */ 


tableddddd { 
    width: 100%; 
    background-color: white;
    border-collapse: separate;
    border-spacing: 3px;
    border-radius: 12px;
    padding: 9px;
} 

table { 
    width: 100%;
    background-color: white;
    border-color: #f5f5f5;
    border-collapse: separate;
    border-spacing: 1px;
}   
    
    
tdddd { 
    border: solid #dddddd;
    border-width: 0px 1px 9px 0px;
    padding: 3px;
    min-height: 30px;
} 

td {
    border-width: 1px 0px 0px 0px;
    padding: 9px;
    min-height: 30px;
}

th { 
    padding: 3px;
    background-color: #f5f5f5;
    min-height: 30px;
} 





thead { 
    background-color: #f5f5f5; 
} 

.sintesi-card {
    height: 350px;
    overflow-y: auto;
    /* background: #f5f5f5; */
    border-radius: 12px;
    box-shadow: 4px 5px 8px rgb(79 79 79 / 34%);
    /* min-height: 120px; */
    margin-bottom: 10px;
    /* padding: 8px 8px 12px 8px;*/
}

.sintesi-badge {
    text-align: center;
    display: block;
    width: 100%;
    font-size: 15px;
    padding: 10px;
    border-radius: 8px;
    text-transform: uppercase;
}


.sintesi-list li {
    margin-bottom: 6px;
    padding: 6px 6px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgb(183 183 183);
}


.sintesi-list {
  min-height: 48px; 
  padding: 8px; 
  margin: 0;
  list-style: none; 
  border: 1px dashed #ccc; 
  /*border-radius: 8px;*/
}

.sintesi-item { 
    cursor: grab; 
    padding: 6px 8px; 
    border-radius: 6px; 
}

.sintesi-item + .sintesi-item { 
    margin-top: 4px; 
}

.sintesi-list.drag-over { 
    background: rgba(0,0,0,.05); 
}


   

select, input {
    background-color: #f5f5f5 !important;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.15s;
}



select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

 /* Media Query per il No More Tables */ 
  
 @media only screen and (max-width: 767px) { 
     /* Forza la tabella a non comportarsi come una normale tabella */ 
  
 	#no-more-tables table,  
 	#no-more-tables thead,  
 	#no-more-tables tbody,  
 	#no-more-tables th,  
 	#no-more-tables td,  
 	#no-more-tables tr {  
 		display: block;  
 	} 
  
 	/* Nasconde le intestazioni della tabella */ 
  
 	#no-more-tables thead tr {  
 		position: absolute; 
 		top:-9999px; 
 		left:-9999px; 
 	} 
   
 	#no-more-tables tr { border: 1px solid #ccc; padding: 10px; margin:10px } 
  
 	#no-more-tables td {  
 		/* Inserisce il comportamento come una riga */ 

                min-height: 30px;

 		border: none; 
 		border-bottom: 1px solid #eee;  
 		position: relative; 
 		padding-left: 100px;
 		white-space: normal; 
 		text-align:left; 
                overflow-wrap: break-word;
 	} 
  
 	#no-more-tables td:before {  
 		/* Inserisce il comportamento come un'intestazione di tabella */ 
  
 		position: absolute; 
 		/* I valori top/left agiscono come padding */ 
  
 		top: 0; 
 		left: 6px; 
 		width: 45%;  
 		padding-right: 10px;  
 		white-space: nowrap; 
 		text-align:left; 
 		font-weight: bold; 
 	} 
  
 	/* Aggiunge l'etichetta ai dati della tabella */ 
  
 	#no-more-tables td:before { content: attr(data-title); } 
 }
 
 
.rowtable {
    padding: 15px 5px 15px 5px;
    margin: 0px;
}

.rowborder {
   border-radius: 10px;
   border: solid 1px;
   border-color:#d9d9d9;
   box-shadow: 1px 0px 9px 0px #d9d9d9;
}

.rowcolorhi {
    background-color: #ffe5a6;
}

.rowcolorlow {
    background-color: #f8f8fd;
}

.checkbox {
    transform: scale(1.5);
}



.comunicazione-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06), 0 1.5px 4px rgba(0,0,0,0.03);
    margin: 28px 0 0 0;
    padding: 24px 28px 20px 28px;
    width: 100%;
    transition: box-shadow 0.2s;
}

.comunicazione-box h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #444444;
    font-weight: 700;
    letter-spacing: .5px;
}

.comunicazione-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comunicazione-form-row label {
    flex: 0 0 110px;
    font-weight: 500;
    color: #444444;
    margin-right: 10px;
    font-size: 1rem;
}

.comunicazione-form-row input[type="text"] {
    flex: 1 1 auto;
    padding: 7px 10px;
    border: 1px solid #dadada;
    border-radius: 6px;
    background: #f6f7fa;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.comunicazione-form-row input[type="text"]:focus {
    border-color: #285a8b;
    outline: none;
    background: #fff;
}

.comunicazione-form-row .tox-tinymce {
    flex: 1 1 auto;
    min-width: 0;
}

.comunicazione-btn-row {
    text-align: right;
    margin-top: 22px;
}

.comunicazione-btn-row button {
    background: #ffb300;
    color: #444444;
    border: none;
    border-radius: 7px;
    padding: 9px 28px;
    font-size: 1.08rem;
    box-shadow: 0 2px 10px rgba(255,179,0,0.08);
    transition: background 0.18s, box-shadow 0.18s;
    cursor: pointer;
}
.comunicazione-btn-row button:hover {
    background: #ffd54f;
    box-shadow: 0 4px 24px rgba(255,179,0,0.15);
}