/* CALENDAR */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

th, td {
    padding: 8px;
    white-space: nowrap;
    word-break:break-word;
    /*border-bottom: 1px solid #ecf0f1;*/
}

th {
    background-color: #34495e;
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: #f4f4f9;
}
.container-monthview {
    margin-top:0px;
}
.calendar-container{
    min-width:1000px;
    max-width:90vw;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.calendar {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.calendar-th{
    background-color: #34495e;
    color: white;
    font-weight: 600;
    text-align: center;
    width:14%;
}
.calendar-td{
    padding: 4px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
    align-content: flex-end;
}
.calendar-td:hover{
    background-color: #f1e6ef;
}
.calendar-tr{
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    height: calc(100vh / 7);
}
.calendar-day{
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}
.calendar-today{
    background-color: #eac9ff;
    color: white;
    font-weight: 600;
    text-align: center;
}
.cal-event{
    padding:2px;
    font-size: 3.5mm;
    font-weight: 300;
    letter-spacing: -0.1mm;
    color: #2c3e50;
    line-height: 3.5mm;
    background-color: #dfedf9;
    border: 1px solid #bcdeff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-bottom:2px;
    width:100%;
}
.cal-event:hover{
    background-color: #dfffc9;
    border: 1px solid #98a009;
}
.cal-number{
    padding:0px;
    font-size: 4mm;
    font-weight: 500;
    letter-spacing: -0.3mm;
    color: #2c3e50;
    line-height: 4mm;
    cursor: pointer;
}
.cal-number:hover{
    color: #ffffff;
}
.cal-circle-number{
    border: #a7bff5 1px solid;
    color:#a7bff5;
    border-radius: 15px;
    padding:0px;
    font-size:1rem;
    font-weight:500;
    width:30px;
    height:30px;
    text-align:center
}
.cal-dayname{
    color:#a7bff5;
}
.cal-monthname{
    color:#707c99;
    font-weight:200;
}
.cal-year{
    color:#707c99;
    font-weight:100;

}
.past-event{
    background-color: #e8e8e8;
    color:#b8b8b8;
    border: 1px solid #bababa;
}
.past-event:hover{
    background-color: #f4f4f9;
    color:#8f8f8f;
}
.past-day{
    background-color: #e8e8e8;
    color:#b8b8b8;
}
.past-day:hover{
    background-color: #f4f4f9;
    color:#8f8f8f;
}
.cal-arrow{
    padding: 12px;
}
.cal-fulltxt{
    display: block;
}
.cal-shorttxt{
    display: none;
}
.cal-disponible{
    background-color:#ecf7f8;
}
.cal-reservado24h{
    background-color:#e7dcb9;
}
.cal-reservado{
    background-color:#ccf1cc;
}
.cal-feriado{
    background-color:#e9d7df;
}
.cal-cerrado{
    background-color:#dae1e2;
}
.cal-hoy{
    background-color:#a6e6f2;
}


@media only screen and (min-width: 481px) and (max-width: 1000px) {
    .calendar-container{
        min-width:100vw;
        max-width:100vw;
    }

    .cal-fulltxt{
        display: none;
    }
    .cal-shorttxt{
        display: block;
    }
}
@media only screen and (max-width: 481px) {
    .calendar-container{
        min-width:100vw;
        max-width:100vw;
    }
    .cal-fulltxt{
        display: none;
    }
    .cal-shorttxt{
        display: block;
    }
}

/* FUNC ECHO_AGENDA */
.agenda-container {
    width: 100%;
    overflow-x: auto;
}

.agenda-days {
    display: flex;
    gap: 20px;
    min-width: min-content;
}

.day-column {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 500px;
    overflow-y: auto;
}

.day-header {
    gap:4px;
    flex-wrap:nowrap;
    font-size:0.9rem;
    font-weight:500;
    color:#aab6cf;
    border-bottom: 2px solid #ddd;
    background-color:#2c3e50;
    padding:4px 8px;
}

.event-item {
    background: white;
    border-left: 4px solid #4CAF50;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 13px;
}

.event-item.past {
    opacity: 0.6;
    background: #e0e0e0;
    border-left-color: #999;
}

.event-time {
    font-weight: bold;
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.event-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.event-notas {
    color: #777;
    font-size: 11px;
    margin-top: 5px;
}

.no-events {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

.day-column::-webkit-scrollbar {
    width: 8px;
}

.day-column::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.day-column::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.day-column::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.agenda-container::-webkit-scrollbar {
    height: 10px;
}

.agenda-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.agenda-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.agenda-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}



/* RESPONSIVE DESIGN */
/* Extra small devices (phones, 480px and down) */
/*@media only screen and (max-width: 480px) {
    .cal-fulltxt{
        display: none;
    }
    .cal-shorttxt{
        display: block;
    }
    .calendar-tr{
        height: 100px;
    }
    .calendar-day{
        height: 100px;
    }
}

/* Small devices (portrait tablets and large phones, 481px and up) */
/*@media only screen and (min-width: 481px) and (max-width: 768px) {
    .cal-fulltxt{
        display: none;
    }
    .cal-shorttxt{
        display: block;
    }
}*/