.calendar {
    position: relative;
    overflow: hidden;
    text-transform: capitalize;
    text-align: center;
    font: 1.5rem /1.6rem inherit;
    color: #545A5C;
    max-height: 380px;
    min-height: 380px
}
    .calendar h2 {
        font-size: 18px;
        line-height: 30px;
    }

.calendar a
{
    text-decoration: none;
    color: inherit;
}
.calendar header .simple-calendar-btn
{
    display: inline-block;
    position: absolute;
    width: 3rem;
    height: 3rem;
    text-align: center;
    line-height: 3rem;
    color: #CBD1D2;
    border-radius: 50%;
    border: .2rem solid #CBD1D2;
}
.calendar header .simple-calendar-btn:hover
{
    background: #CBD1D2;
    color: white;
}
    .calendar header .simple-calendar-btn:before {
        content: '';
        position: absolute;
        top: 8px;
        left: 7px;
        width: 10px;
        height: 10px;
        border-style: solid;
        border-width: .3rem .3rem 0 0;
        transform: rotate(45deg);
        transform-origin: center center;
    }
.calendar header .btn-prev
{
    top: 0;
    left: 0;
    transform: rotate(-180deg);
}
.calendar header .btn-next
{
    top: 0;
    right: 0;
}
.calendar header .btn-next:before
{
    transform: rotate(45deg);
}
.calendar header .month
{
    padding: 0;
    margin: 0;
}
    .calendar header .month .year {
        font-size: 15px;
        font-weight: 500;
    }
.calendar table
{
    width: 100%;
    margin: .5rem 0;
    border-spacing: 0rem;
}
    .calendar thead {
        font-size: 16px;
        font-weight: 600;
    }
.calendar td
{
    padding: 0rem .16rem;
}
    .calendar .day {
        position: relative;
        display: inline-block;
        width: 2rem;
        height: 2rem;
        line-height: 1.52rem;
        border-radius: 50%;
        border: .2rem solid transparent;
        cursor: pointer;
        margin-top: 14px;
    }
.calendar .day:hover
{
    border: .2rem solid #6691CC;
}
.calendar .day.today
{
    background: #6691CC;
    color: white;
}
.calendar .day.today.has-event:after
{
    background: white;
}
.calendar .day.wrong-month
{
    color: #CBD1D2;
}
.calendar .day.wrong-month:hover
{
    border: .2rem solid transparent;
}
.calendar .day.has-event:after
{
        content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: .1rem solid #6691CC;
}
.calendar .day.disabled
{
    cursor: default;
}
.calendar .day.disabled:hover
{
    border: .2rem solid transparent;
}
.calendar .event-container
{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 70px;
    background: #545A5C;
    box-sizing: border-box;
}
.calendar .event-container .event-wrapper
{
    overflow-y: auto;
    max-height: 100%;
}
.calendar .event-container .close
{
    position: absolute;
    width: 30px;
    height: 30px;
    top: 20px;
    right: 20px;
    cursor: pointer;
}
.calendar .event-container .close:before, .calendar .event-container .close:after
{
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #CBD1D2;
}
.calendar .event-container .close:before
{
    transform: rotate(45deg);
}
.calendar .event-container .close:after
{
    transform: rotate(-45deg);
}
.calendar .event-container .event
{
    position: relative;
    width: 100%;
    padding: 1em;
    margin-bottom: 1em;
    background: #6691CC;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.12);
    text-align: left;
    color: white;
}
.calendar .event-container .event-date
{
    margin-bottom: 1em;
}
.calendar .event-container .event-hour
{
    float: right;
}
.calendar .event-container .event-summary
{
    font-weight: 600;
}
.calendar .filler
{
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #545A5C;
    transform: translate(-50%, -50%);
}


    .calendar header .btn-prev {
        top: 15px;
        left: 1.2rem;
        transform: rotate(-180deg);
    }

    .calendar header .btn-next {
        top: 15px;
        right: 1.2rem;
    }
    .calendar header .simple-calendar-btn {
        display: inline-block;
        position: absolute;
        width: 32px;
        height: 32px;
        text-align: center;
        line-height: 3rem;
        color: #CBD1D2;
        border-radius: 50%;
        border: .2rem solid #CBD1D2;
    }