.calendar {
    display: flex;
    flex-flow: column;
}

.calendar .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
}

.calendar .header .month-year {
    font-weight: bold;
    color: var(--ci-color2);
    font-size: 28px;
}

.calendar .header .calendar_month {
    background: transparent;
    color: var(--ci-color2);
    border:1px solid var(--ci-color2);
    padding: 9px;
    border-radius: 100%;
    cursor: pointer;
}

.calendar .days {
    display: flex;
    flex-flow: wrap;
    -webkit-box-shadow: 0 0 5px 0 rgb(0 0 0 / 10%), 0 11px 6px -7px rgb(0 0 0 / 30%);
    box-shadow: 0 0 5px 0 rgb(0 0 0 / 10%), 0 11px 6px -7px rgb(0 0 0 / 30%);
}

.calendar .days .day_name {
    width: calc(100% / 7);
    border-right: 1px solid #666;
    padding: 12px 15px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: #444;
}

.calendar .days .day_name:nth-child(7) {
    border: none;
}

.calendar .days .day_num {
    display: flex;
    flex-flow: column;
    width: calc(100% / 7);
    border-right: 1px solid #e6e9ea;
    border-bottom: 1px solid #e6e9ea;
    padding: 10px;
    font-weight: 600;
    color: #111;
    min-height: 92px;
    position: relative;
    background-color: #fff;
    cursor: default;
}

.calendar .days .day_num span {
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    font-size: 13px;
}

.calendar .days .day_num.has_event span {
    border-radius: 100%;
}

.calendar .days .day_num .event {
    margin-top: 5px;
    font-size: 14px;
    padding: 3px 6px;
    border-radius: 4px;
    word-wrap: break-word;
}

.calendar .days .day_num.has_event span {
    background-color: #ddd;
    color: #222;
}

.calendar .days .day_num.has_event .event.orange {
    background-color: #f4dab6;
    color: #222;
}

.calendar .days .day_num.has_event .event.yellow {
    background-color: #fbeeaa;
    color: #222;
}

.calendar .days .day_num.has_event .event.red {
    background-color: #ffc5c5;
    color: #222 !important;
}

.calendar .days .day_num.has_event .event.green {
    background-color: #b4f0b7;
    color: #222;
}

.calendar .days .day_num.has_event .event.blue {
    background-color: #c3e0fd;
    color: #222;
}

.calendar .days .day_num:nth-child(7n+1) {
    border-left: 1px solid #e6e9ea;
}

.calendar .days .day_num .week_number {
    color: #595959;
    font-size: 11px;
}

.calendar .days .day_num.selected {
    background-color: #f1f2f3;
}

.calendar .days .day_num.ignore {
    color: #595959;
    font-weight: normal;
}

.calendar .days .day_num.selected span {
    background: #444;
    border-radius: 100%;
    color: #eee;
}

@media (max-width: 767px) {
    .calendar .days .day_num .event {
        height: 0;
        padding: 0;
        overflow: hidden;
    }

    .calendar .days .day_num {
        padding: 7px;
        min-height: 45px;
    }
}