.calendar {
    position: relative;
    overflow: hidden;
    text-transform: capitalize;
    text-align: center;
    font: 1.5rem /1.6rem inherit;
    color: #545A5C;
    margin-bottom: -22px;
    /* background: #edeff7; */
}

    .calendar h2 {
        font-size: 20px;
        /*line-height: 2.5rem;*/
    }


    .calendar a {
        text-decoration: none;
        color: inherit;
    }

    .calendar header .simple-calendar-btn {
        display: inline-block;
        position: absolute;
        width: 2rem;
        height: 2rem;
        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;
        }

.day {
    position: relative;
}

.calendar header .simple-calendar-btn:after {
    content: '';
    position: absolute;
    top: 16px;
    left: 5px;
    width: .8rem;
    height: .8rem;
    border-style: solid;
    border-width: .3rem .3rem 0 0;
    transform: rotate(45deg);
    transform-origin: center center;
}

.calendar header .btn-prev {
    top: 13px;
    left: 10px;
    transform: rotate(-180deg);
}

.calendar header .btn-next {
    top: 0;
    right: 10px
}

    .calendar header .btn-next:before {
        transform: rotate(45deg);
    }

.calendar header .month {
    padding: 0;
    margin-top: 3px;
    /* margin-top: -16px; */
    /* height: 40px; */
    display: flex;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    text-align: center;
    background-color: #2C4073 !important;
    margin-bottom: 0 !important;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    padding: 7px;
}

    .calendar header .month .year {
        font-size: 20px;
        font-weight: 500;
    }

.calendar table {
    width: 100%;
    /* margin: .5rem 0; */
    border-spacing: 0rem;
    height: 22rem;
    background: #edeff7;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

.calendar thead {
    font-size: 1.92rem;
    font-weight: 600;
}
.calendar thead td{
    padding-top:16px;
}
.calendar td {
 
    font-size: 16px;
    /* text-align: center; */
    /* margin: auto; */
}

.calendar .day {
    /*position: relative;
    display: inline-block;
    width: 4rem;
    height: 4rem;
    line-height: 3.52rem;
    border-radius: 50%;*/
    border: 0.2rem solid transparent;
    cursor: pointer;
    padding: 1px 4px;
    /*cursor: pointer;*/
}

    /*  .calendar .day:hover {
        border: .2rem solid #6691CC;
    }*/

    .calendar .day.today {
        background: #6691CC;
        color: white;
        border-radius: 50%;
        /* height: 22%; */
        width: 41%;
        /* text-align: center; */
        /* display: flex; */
        left: 25px;
        /* justify-content: center; */
    }

        .calendar .day.today.has-event:after {
            background: transparent;
        }

    .calendar .day.wrong-month {
        color: #CBD1D2;
    }

        .calendar .day.wrong-month:hover {
            border: .2rem solid transparent;
        }

    .calendar .day.has-event:after {
        content: '';
        position: absolute;
        top: -4px;
        left: 11px;
        width: 75%;
        height: 100%;
        /* border-radius: 51%; */
        border: 0.1rem solid #6691CC;
        padding-right: 33px;
        padding-left: 11px;
        padding: 18px 26px 11px 22px;
    }

    .calendar .day.disabled {
        cursor: pointer;
    }

        .calendar .day.disabled:hover {
            border: .2rem solid transparent;
        }

.calendar td:hover {
    font-size: 16px;
}

.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%);
}


@media (max-width:592px) {
    .calendar .day.has-event:after {
        left: 4px;
        /* width: 96%; */
        padding: 10px;
        top: -1px;
    }

    .calendar .day.today {
        width: 69%;
        left: 5px;
    }
}

@media (max-width:320px) {
    .calendar .day.has-event:after {
        padding: 17px;
    }
}
