div#calendar{
    /* margin:0px 10px; */
    padding:0px;
    max-width: 602px;
    font-family:Helvetica, "Times New Roman", Times, serif;
    display:flex;
    flex-direction:column;
    /* box-shadow: 2px 2px 5px #80808082; */
    border-radius: 10px;
    min-width: 200px;
    background-color: white;
}

div#calendar div.box{
    height: 60px;
    background-color: var(--e-context-primary-color);
    border-radius: 10px 10px 0px 0px;    
}

div#calendar div.box-filter {
    padding: 10px;
    display: flex;
    align-items: center;
}

div#calendar div.box-filter select {
    font-size: 0.8em;
    padding: 5px;
    margin-right: 10px;
}

div#calendar div.box-filter i {
    font-size: 0.8em;
    background-color: var(--e-global-color-astglobalcolor0);
    color: white;
    margin-left: auto;
    padding: 10px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

div#calendar div.box-filter i:hover {
    transform: scale(1.05);
}

div#calendar div.header{
    line-height:60px;  
    display: flex;
    justify-content: space-between;
    margin: 0px 20px;
}

div#calendar div.header a.prev,div#calendar div.header a.next{ 
    text-decoration :none;
    color: var(--e-global-color-astglobalcolor0);
    font-size: 1.2em;
}

div#calendar div.header span.title{
    color: var(--e-global-color-astglobalcolor0);
    font-size: 1.6em;
    font-weight: bold;
}


div#calendar div.header a.prev{
    left:0px;
}

div#calendar div.header a.next{
    right:0px;
}

/* Calendar Content Cells */

div#calendar ul.label{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 10px;
    list-style-type: none;
}

div#calendar ul.label li{
    margin:0px;
    padding:0px;
    color:#000;
    font-size: 15px;
    background-color: transparent;
    flex-basis: calc(14.2857% - 10px);
    text-align: center;
    margin: 5px;
}

div#calendar ul.dates{
    margin: 0px;
    padding: 0px;
    display: flex;
	width: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    aspect-ratio: 1/0;
    padding: 10px;
    list-style-type: none;
}
   
div#calendar ul.dates li {
    font-size: 1em;
    background-color: #fff;
    color: #000;
    text-align: center;
    aspect-ratio: 1;
    margin: 5%;
    padding: 10%;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

div#calendar ul.dates li.end {
    color: red;
}
   
div#calendar ul.dates .today{
    background-color: var(--e-global-color-astglobalcolor2);
    /* border-color: #008000; */
}

div#calendar ul.dates .date-selected{
    background-color: var(--ast-global-color-0) !important;
    color: white !important;
    font-weight: bold;
    /* border-color: var(--e-context-primary-color); */
}

div#calendar ul.dates .have-events {
    background-color: #ffff0029;
    /* border-color: #c1c106; */
}

div#calendar ul.dates .not-empty {
    border: solid 1px var(--ast-global-color-1);
    background-color: rgb(0 155 219 / 7%);
}

div#calendar ul.dates li .badge {
    position: absolute;
    bottom: 0px;
    right: 0px;
    /* border: var(--e-button-context-color-dark); */
    color: white;
    background: var(--ast-global-color-0);
    padding: 0px 5px;
    border-radius: 50px;
    overflow: hidden;
    font-size: 10px;
}

:focus{
    outline:none;
}

div.clear{
    clear:both;
}

.date-cell {
    border-radius: 50px;
}

.not-masked {
    cursor: pointer;
    transition:all 0.3s ease;
}

/* .not-masked:hover {
    transform: scale(1.04);
} */

.interactable-cell:hover {
    background-color: var(--e-global-color-astglobalcolor2) !important;
    font-weight:bold;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .calendar-box .left-col {
        display:flex;
        min-width: 250px;
    }

    div#calendar ul.dates li {
        font-size: 0.9em;
    }

    div#calendar ul.label li {
        font-size: 14px !important;
    }
}

@media (max-width: 769px) {
    .calendar-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .calendar-box .left-col {
        width: 80%;
    }

    .right-col {
        margin-left: 0px;
        width: calc(100% - 20px);
    }

    div#calendar ul.dates li {
        font-size: 1em;
    }

    div#calendar ul.label li {
        font-size: 14px !important;
    }

    .public-event-list-box h2 {
        font-size: 1em;
    }
}

@media (max-width: 426px) {
    .left-col {
        min-width: 100% !important;
    }

    .public-event-list-box {
        padding:20px 10px;
    }
    
    div#calendar ul.dates li {
        font-size: 0.9em;
    }

    .public-event-list-box ul li .list-item-upper p {
        font-size: 12px !important;
        margin-top: 5px;
    }
    .public-event-list-box ul li .list-item-lower p {
        font-size: 12px !important;
        margin-top: 5px;
    }
    .public-event-list-box ul li .list-item-upper, .public-event-list-box ul li .list-item-lower {
        line-height: 12px;
    }

    div#calendar ul.dates li .badge {
        font-size: 8px;
    }

    /* EVENT DETAIL */
    .event-detail-body .info-row p:first-child {
        width: 120px;
    }
}
