
/*..............UCALENDAR............................................................................................................................*/

/*..............GLOBAL...............................*/

.hidden {
    display: none;
}

.uca_ucalendar {
    overflow: hidden;
    margin-top: 25px;
    /* display: none; */
}
.uca_ucalendar.modeON {
    display: table;
}

.ucalendar {
    font: 15px arial, sans-serif;
    background-color: transparent;
    /* display: table; */
    position: relative;
    font-family: "Lato", sans-serif;
    font-size: 12px;
}
.ucalendar.size-xs { font-size: 12px; }
.ucalendar.size-m { font-size: 14px; }
.ucalendar.size-xl { font-size: 16px; }

.ucalendar tbody .day_wrapper{
    min-height: 250px;

}
/*..............POPUP...............................*/
.ucal_popup_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    background-color: #FFFFFFBB;
}
.ucaRow:nth-child(2n) .ucal_popup_wrapper {
    background-color: #EDEDEDBB;
}

.ucal_popup {
    position: relative;
    width: 70%;
    /* height: 70%; */
    top: 15%;
    left: 15%;
    background-color: #FFF;
    border-radius: 3px;
    overflow-y: auto;
    border: 1px solid #0B8068;
}
.ucal_popup_header {
    color: #FFF;
    background-color: #41464a;
    padding: 0.7rem;
    text-align: center;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0B8068;
}
.ucal_popup_header .h_title {
    flex-grow: 1;
    font-size: 1.7rem;
    margin: 0;
    color: white;
}
.ucalendar.size-xs .ucal_popup_header {
    font-size: 1.2em;
    
}

.ucal_popup_content {
    /* color: #FFF; */
    padding: 10px 2rem;
    /* color: #808080; */
}
.ucal_popup_content h2{
    font-size: 1.7rem;
}

.ucal_popup_header .btn.btn-primary {
    border: 2px solid transparent;
    padding: 0.2rem 24px;
    background-color: transparent;
    font-size: 1rem;
}

.ucal_popup_header .btn.btn-primary:hover, .ucal_popup_header .btn.btn-primary:focus {
    border: 2px solid white;
    background-color: transparent;
}

.ucal_popup_header .btn.disabled {
    background-color: transparent;
    border: 2px solid transparent;
}

/*..............HEADER...............................*/

.ucalendar .ucal_header {
    width: 100%;
    display: flex;
}
.ucalendar .h_left,
.ucalendar .h_right {
    background-color: transparent;
}
.ucalendar .h_right {
    text-align: right;
}
.ucalendar .h_list {
    background-color: transparent;   
    text-align: right;
}
.ucalendar .ucal_header .h_title {
    flex-grow: 1;
    font-size: 1.8em;
    font-weight: 600;
    padding: 1px 10px;
    color: #41464a;
    text-align: center;
    line-height: 2rem;
}
.ucalendar.size-xs .ucal_header .h_title {
    font-size: 1.5em;
}

.ucalendar .ucal_header .btn {
    margin: 0 5px;
}
.ucalendar .ucal_header .ucal_eventListButton {
    margin-right: 0;
}

.ucalendar .ucal_header .btn .fa {  font-size: 13px; }
.ucalendar .ucal_header .fa-chevron-right { margin-left: 10px }
.ucalendar .ucal_header .fa-chevron-left { margin-right: 10px }


/*..............CALENDARIO...............................*/

.ucalendar .ucal_month {
    border-collapse: collapse;
    width: 99%;
    margin: 10px auto;
    table-layout: fixed;
    /* white-space: nowrap; */
}
.ucalendar th, 
.ucalendar td.day {
    border: 2px solid #FFF;
}

.ucaRow:nth-child(2n) .ucalendar th,
.ucaRow:nth-child(2n) .ucalendar td.day {
    border: 2px solid #DDD;
}


.ucalendar .ucal_month th {
    color: #FFFFFF;
    background-color: #41464a;
    font-size: 1.1em;
    text-align: center;
    padding: 0.5rem;
}
.ucalendar .ucal_month td {
	padding: 0;
}
.ucalendar .day {
    background-color: #ededed;
}
.ucaRow:nth-child(2n) .ucalendar .day {
    background-color: #fff;
}
.ucalendar .day .dayNumber {
    padding: 1px 4px;
    /*background-color: #F0F0F0;*/
    width: 100%;
}
.ucalendar .daycontent {
    text-align: left;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

table td {
  vertical-align: top;
}
.ucalendar .event li{
    color: #212529;
    background-color: transparent;
    width: auto;
    margin: 2px;
    border-radius: 4px;
    overflow: hidden;
    font-size: 1em;
    /* font-size: 0.8em; */
    line-height: 1.35em;
    height: 4.5rem;
}
.ucalendar .event.e_child {
	background-color: rgba(162, 217, 206, 0.9);
}

.ucalendar .event_link {
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 3px 2px;
}
.ucalendar .event .event_link:hover {
    color: #212529;
}
.ucalendar .event_date {
    font-weight: bold;
}
.ucalendar .event_time {
	background-color: rgba(162, 217, 206, 0.9);
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 0px;
}

.ucalendar .event_title {
	margin-left: 2px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.ucalendar .event_location {
    margin-left: 4px;
    font-style: italic;
    opacity: 0.75;
}

.ucalendar .day_wrapper  {
    overflow: hidden;
    height: 65px;
}
/* .ucalendar.size-xs .day_wrapper { height: 65px; }
.ucalendar.size-m .day_wrapper { height: 85px; }
.ucalendar.size-xl .day_wrapper { height: 110px; } */
.ucalendar .day_wrapper { height: auto; }

.ucalendar .day_wrapper .event_date {
    display: none;
}

/*..............LISTA DE EVENTOS...............................*/

.ucalendar .ucal_events {
    overflow-y: scroll;
}

.ucalendar .ucal_events .ucal_popup {
    width: 70%;
    height: 80%;
    top: 10%;
    left: 15%;
}

.ucalendar .event_separator {
    margin: 2px 5px;
    margin-top: 20px;
    font-size: 1.2em;
    color: #000;
}
.ucalendar .sep_year {
    margin-right: 5px;
}
.ucalendar .sep_month {
}

/*..............DAY ZOOM...............................*/

/* .ucalendar .day:hover {
    color: #fff;
	background-color: rgba(162, 217, 206, 0.9);
} */
.ucaRow:nth-child(2n) .ucalendar .day:hover {
	background-color: rgba(162, 217, 206, 0.9);
}

.ucalendar .ucal_zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.ucalendar .ucal_popup_content {
    overflow-y: auto;
}

.ucalendar .ucal_popup_content .event {
    margin: 6px 10px;
    font-size: 1.1em;
}

.ucalendar .zoom_msg {
    padding: 10px;
    text-align: center;
    font-size: 1.3em;
}


/*..............FIN UCALENDAR............................................................................................................................*/

.footer-popup {
  text-align: right;
  /* margin-top: 1em; */
  margin-bottom: 1em;
  margin-right: 1em;
  /* position: absolute;
  bottom: 0.5rem;
  right: 0.5rem; */
}
/* 
.day .event:focus {
  padding: 4px;
  border: 2px solid black;
}

.day .event:hover {
  padding: 5px;
  border: 1px solid black;
} */

/*
Source - https://stackoverflow.com/a/65864728
Posted by Alohci
Retrieved 2026-04-24, License - CC BY-SA 4.0
*/
@media screen and (max-width: 600px) {  

    .ucalendar .ucal_header .h_title{
        font-size: 16px;
    }

    .ucalendar .ucal_header .fa-chevron-right, .ucalendar .ucal_header .fa-chevron-left{
        margin: 0;
    }
    .btn-cal-text{
        display: none;
    }
    table * {
    display: contents;
    }
    table {
    display: flex;
    flex-direction:column;
    }
    th, td {
    display:block;
    /* text-align:center; */
    }
    tr > *:nth-child(1) { order:1;}
    tr > *:nth-child(2) { order:2;}
    tr > *:nth-child(3) { order:3;}
    tr > *:nth-child(4) { order:4;}
    tr > *:nth-child(5) { order:5;}
    tr > *:nth-child(6) { order:6;}
    tr > *:nth-child(7) { order:7;}
    tr > *:nth-child(8) { order:8;}

    .ucalendar .event_link{
        display: flex;
    }
    .ucalendar .event_time{
        background-color: rgba(162, 217, 206, 0.9);
        display: inline;
    }
    .ucalendar .event_title {
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .ucal_popup_header .h_title{
        font-size: 1.2rem;
        line-height: 1.5rem;
    }
    
    .ucal_popup{
        position: fixed;
        top: 50%;
        margin-top: -100px;
    }
    .ucal_popup_content li{
        margin: 0;
    }
    .ucal_popup_content h2{
        font-size: 1.2rem;
        line-height: 1.5rem;
    }
    .ucal_popup_content {
        padding: 10px;
    }

}