body{
    background-color: #E8F0FE;
}
a.nav-link.active {
    color: #2989d8 !important;
    border-bottom: 1px solid;
}
.form-control-user {
    border-radius: 50px;
    padding: 0.75rem .75rem;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
}

input[type=file]::file-selector-button {
    padding: 15px;
    margin: -15px 5px -15px -15px;
}

h1, h2, h3, h4, h5, h6, a, p, span, input {
    font-family: 'Montserrat', sans-serif;
}

input#answerYes, input#answerMaybe, input#answerNo {
    margin: 0.2em 1em 0.2em 0.2em;
}

.gm-custom-radio {
    background: #fafafa; 
}

.gm-custom-radio label{
    width: 90%;
}

.gm-custom-radio:hover, .gm-custom-radio input[type="radio"]:checked{
    background: linear-gradient(45deg,  #c7ebf9 0%,#a5e0f7 50%,#2ab0ed 100%);
}

.gm-custom-radio .form-check-input:checked {
    background: #2ab0ed !important;
    border-color: #a5e0f7;
}

.progress, .progress-stacked {
    background-color: #f8f8f8;
}

/*.gm-custom-radio .form-check-label {
    display: block;     
    width: 100%;
    margin-bottom: 0;   
    cursor: pointer;    
}*/



/*----- Inizio Organigramma -----*/
#tree-container{
    border-radius:20px;
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.7), rgba(200, 230, 255, 0.7));
}
.tree {
    width: max-content;
}
.tree .botcirc {
    background: #fff;
    padding: 40px 10px 10px 10px;
    border-radius: 20px;
    margin: -40px auto 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    max-width: 200px;
}
.botcirc h6 {
    font-weight: 600;
    color: #000;
}
.botcirc p {
    color: #444;
    font-weight: 500;
    margin: 0;
}
.tree .fe-butt {
    position: absolute;
    width: 36px;
    right: -36px;
    top: 75px;
}
.tree .fe-butt button {
    width: 31px;
    border-radius: 50px;
    height: 31px;
    cursor: pointer;
}
.tree img{
    border: 5px solid #fff;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}
.tree ul{
    padding-left: 0 !important;
}
.tree ul {
    padding-top: 20px; 
    position: relative;
    transition: all 0.5s;
}
.tree li {
    float: left; 
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
    transition: all 0.5s;
}
.tree li::before, .tree li::after {
    content: '';
    position: absolute; 
    top: 0; 
    right: 50%;
    border-top: 2px solid #444;
    width: 50%; 
    height: 20px;
}
.tree li::after {
    right: auto; 
    left: 50%;
    border-left: 2px solid #444;
}
.tree li:only-child::after, .tree li:only-child::before {
    display: none;
}
.tree li:only-child {
    padding-top: 0;
}
.tree li:first-child::before, .tree li:last-child::after {
    border: 0 none;
}
.tree li:last-child::before {
    border-right: 2px solid #444;
    border-radius: 0 5px 0 0;
}
.tree li:first-child::after {
    border-radius: 5px 0 0 0;
}
.tree ul ul::before {
    content: '';
    position: absolute; 
    top: 0; 
    left: 50%;
    border-left: 2px solid #444;
    width: 0; 
    height: 20px;
}
.tree li a {
    border: 2px solid #ccc;
    padding: 5px 10px;
    text-decoration: none;
    color: #666;
    font-family: arial, verdana, tahoma;
    font-size: 11px;
    display: inline-block;
    border-radius: 5px;
    transition: all 0.5s;
    min-width: 220px;
}
.tree li .node:hover img, .tree li .node:hover+ul li .node img { 
    border: 5px solid #24d611;
}
.tree li .node:hover+ul li::after, 
.tree li .node:hover+ul li::before, 
.tree li .node:hover+ul::before, 
.tree li .node:hover+ul ul::before {
    border-color:  #000;
}
@media (max-width: 768px) {
    .tree ul {
        padding-top: 10px;
    }
    .tree li {
        padding: 10px 2px 0 2px;
    }
    .tree li a {
        padding: 3px 5px;
        font-size: 10px;
    }
    .tree li img {
        height: 40px;
        width: 40px;
    }
}  
/*----- Fine Organigramma -----*/

/*----- inizio impiegato del mese ------*/
.modal-overlay.dip {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    padding: 16px;
    z-index: 1050;
  }
  .dip .modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12), 0 6px 12px rgba(0,0,0,0.06);
    padding: 20px 20px 16px;
    animation: eom-pop 200ms ease-out;
  }
  .dip .modal-content h2 {
    font-size: 1.25rem;
    margin: 0 0 12px;
    font-weight: 700;
    color: #0b2a4a;
  }
  .dip .modal-content .error {
  color: #c62828;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0 12px;
  font-size: .95rem;
}
.dip .modal-content form {
  display: grid;
  gap: 12px;
}
.dip .modal-content label {
  font-weight: 600;
  color: #0b2a4a;
  font-size: .95rem;
}
.dip .modal-content select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8e2eb;
  border-radius: 12px;
  font-size: 1rem;
  background: #ffffff;
  outline: none;
  transition: box-shadow .2s, border-color .2s;
}
.dip .modal-content select:focus {
  border-color: #6bb8ff;
  box-shadow: 0 0 0 4px rgba(107, 184, 255, .25);
}
.dip .modal-content button {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(135deg, #2ab0ed 0%, #2989d8 100%);
  color: #fff;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 6px 12px rgba(41, 137, 216, .25);
}
.dip .modal-content button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(41, 137, 216, .2);
}
/*----- fine impiegato del mese -----*/

/*----- inizio turni -----*/
.selected-turn {
    outline:2px solid #333; 
    outline-offset:2px;
    border-radius:50%;
  }
/*------ fine turni ------*/

/*------ inizio pdf.js ------*/
.textLayer {
    cursor: text;
  }
.textLayer .endOfContent {
pointer-events: none;
}
/*------ fine pdf.js ------*/

.gest-m .modal-content {
    padding: 0px;
}
.gest-m .modal-body {
    padding: 0px;
}

/*----- inizio user details ----*/
.user-photo-round {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ccc;
    /* Esempio di sfumatura come background del cerchio (se l’immagine fosse trasparente) */
    background: linear-gradient(45deg, #f9f9f9, #e0e0e0);
    /* box-shadow per dare risalto */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  }  
/*------ fine user details -----*/

.leaflet-bottom.leaflet-right {
    display: none !important;
}

.btn-xs {
    padding: 2px 5px;
}

.text-decoration-none {
    text-decoration: none !important;
}