#EstarG-calendar-container {
    position: absolute;
    z-index: 1000; /* Priorità visiva */
     font-family: Arial, sans-serif;
}

.EstarG-calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
} 

.EstarG-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #ddd;
}

.EstarG-calendar-cell {
    background: #fff;
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
    cursor: pointer;
}

.EstarG-calendar-cell:hover {
    background: #007bff;
    color: white;
}

.EstarG-calendar-cell.disabled {
    background: #f0f0f0;
    color: #ccc;
    cursor: not-allowed;
}

/*****************************/
.EstarG-selected {
    background-color: #4caf50;
    color: white;
    border-radius: 50%;
}

.EstarG-in-range {
    background-color: #81c784;
    color: white;
}
.EstarG-temporary-range {
    background-color: #aed581;
    color: white;
}

.EstarG-months-container {
    display: flex;
    flex-direction: column; /* Organizza i mesi verticalmente */
    gap: 15px; /* Spazio tra i mesi */
}

.EstarG-month-container {
    border: 1px solid #e0e0e0; /* Bordo dei mesi */
    border-radius: 5px; /* Angoli arrotondati per i mesi */
    padding: 5px; /* Spazio interno dei mesi */
    background: #fafafa; /* Sfondo leggero */
}

.EstarG-controls-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Spazio tra le frecce e il nome del mese */
}

.EstarG-prev-button,
.EstarG-next-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.EstarG-prev-button:hover,
.EstarG-next-button:hover {
    background-color: #0056b3;
}


.EstarG-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.EstarG-month-year {
    text-align: center;
    flex-grow: 1;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

#EstarG-calendar-container::before,
#EstarG-calendar-container::after {
   
    display: block;
    height: 20px; /* Spazio per l'indicatore */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    position: sticky;
    z-index: 10;
}

#EstarG-calendar-container::before {
    top: 0;
}

#EstarG-calendar-container::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.EstarG-past-date {
    color: gray;
     cursor: not-allowed; /* Icona di divieto */
    
    opacity: 0.6;
}

.EstarG-past-date:hover {
    background-color: #f0f0f0;
}

@media screen and (max-width: 600px) {
	
	.EstarG-prev-button{display: none; }
	.EstarG-next-button{display: none; }
    
    #EstarG-calendar-container {
        max-height: 300px; /* Altezza ridotta su dispositivi mobili */
        padding: 10px; /* Aggiungi padding per una migliore usabilità */
       position: absolute;
    background-color: rgba(255, 255, 255, 0.95); /* Sfondo bianco traslucido */
    border: 1px solid #ccc; /* Bordo grigio */
    border-radius: 8px; /* Angoli arrotondati */
    padding: 10px; /* Padding interno */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombra */
    z-index: 1000; /* Priorità visiva */
    width: 100%;
    max-width: 800px; /* Massima larghezza */
    max-height: 500px; /* Massima altezza per lo scrolling */
    overflow-y: auto; /* Abilita lo scrolling verticale */
    scroll-behavior: smooth; /* Scorrimento fluido */
   	left:0;
   
    }

    .EstarG-month-container {
        flex-direction: column; /* Visualizza i mesi in verticale */
    }

    .EstarG-calendar-cell {
        font-size: 0.8em; /* Riduci il font per adattarlo */
       width:100%!important;
    }
    
   
}

