.calendar {
    height: 100%;
    background: #fff;
    padding: 20px;
}

.calendar .calendar-title label {
    margin-bottom: 0px;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    width: 175px;
}

.calendar .calendar-title input.pickerdate-calendar {
    height: 0px;
    visibility: hidden;
    position: absolute;
    width: 0;
    padding: 0;
    min-height: 0px;
    line-height: 0px;
}

.calendar div.cell {
    background: rgb(238 238 238 / 50%);
}

.calendar div.cell.month {
    background: #fff;
}

.calendar .calendar-title-actions {
    margin-left: 20px;
    white-space: nowrap;
}

.calendar .calendar-title-actions i {
    transition: all 0.2s;
    font-size: 22px;
    cursor: pointer;
}

.calendar .calendar-title-actions i:hover {
    color: #777ee3;
}

.calendar .table-calendar-overflow {
    max-height: 700px;
    overflow-y: scroll;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
}

.calendar .table-calendar-overflow::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}

.calendar .flex-header {
    display: flex;
    justify-content: space-around;
} 

.calendar .flex-header > div.cell {
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    width: -webkit-fill-available;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
} 

.calendar .flex-body {
    display: flex;
    justify-content: space-around;
}

.calendar .flex-body.active {
    border-bottom: 1px solid red;
}

.calendar .flex-body > div.cell {
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    width: -webkit-fill-available;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 60px;
}

.calendar .flex-body > div.cell.month {
    height: 135px;
}

.calendar .flex-body > div.cell.month .cell-item {
    flex-direction: column;
}

.calendar .flex-body > div.cell.month .cell-item .cell-item-day {
    text-align: center;
    position: relative;
}

.calendar .flex-body > div.cell.month .cell-item.not-in-month {
    opacity: 0.3;
}

.calendar .calendar-title .switch-calendar-view a {
    color: #333;
    transition: all 0.2s;
}

.calendar .calendar-title .switch-calendar-view a:hover, .calendar .calendar-title .switch-calendar-view a.active {
    color: var(--main-primary-color);
}

.calendar .calendar-title .calendar-user-item-title {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background: #ddd;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar .calendar-title .calendar-user-item {
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    margin-right: 5px;
    overflow: hidden;
    border-radius: 50%;
}

.calendar .calendar-title .calendar-user-list {
    display: flex;
    margin-right: 20px;
    padding-left: 20px;
}

.calendar .calendar-title .calendar-user-item .image {
    width: 32px;
    height: 32px;
    background: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: all 0.2s;
}

.calendar .calendar-title .calendar-user-item span {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 0px;
    z-index: -1;
}

.calendar .calendar-title .calendar-user-item:hover span {
    transform: translateX(0%);
    z-index: 1;
    width: 100%;
}

.calendar .calendar-title .calendar-user-item:hover, .calendar .calendar-title .calendar-user-item.active {
    border-color: var(--main-primary-color);
    box-shadow: 1px 1px 6px 0px var(--main-primary-color);
}

.calendar .flex-body > div.cell.month .cell-item .cell-item-day span {
    font-size: 1rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 5px;
    z-index: 1;
    top: 5px;
}

.calendar .flex-body > div.cell.month .cell-item .cell-item-data {
    margin-bottom: 2px;
}

.calendar .flex-body > div.cell:last-child, .calendar .flex-header > div.cell:last-child {
    border-right: 1px solid #ddd;
}

.calendar .cell .cell-item {
    display: flex;
    height: 100%;
    width: 100%;
}

.calendar .cell.active {
    color: #777ee3;
    background: #fff;
}

.calendar .cell .cell-item .cell-item-data {
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    background: rgb(119 126 227 / 30%);
    font-size: 11px;
    line-height: 0.9rem;
    color: #333;
    min-height: 20px;
    padding: 5px 10px;
    font-weight: bold;
    width: 100%;
    border-left: 4px solid #777ee3;
}

.calendar .cell .cell-item .cell-item-data:hover {
    background: rgb(119 126 227 / 50%);
}

.calendar .cell .cell-item .cell-item-data.back {
    background: rgb(195 227 119 / 30%);
}

.calendar .cell .cell-item .cell-item-data.back:hover {
    background: rgb(195 227 119 / 50%);
}

.calendar .cell .cell-item .cell-item-data .cell-hour {
    display: block;
    font-weight: normal;
    font-size: 10px;
}

.calendar .cell .cell-item .cell-item-data .cell-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.calendar .cell .cell-item .cell-item-data .cell-title .small {
    line-height: 11px;
}

.calendar .calendar-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 22px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.calendar .calendar-title .flex {
    align-items: baseline;
}

.calendar .calendar-title a {
    font-size: 15px;
    font-weight: normal;
}


@media (max-width: 768px) { 
    .calendar .cell-day {
        display: none;
    }

    .calendar .flex-header > div.cell {
        height: 40px;
        padding: 5px;
    }

    .calendar .calendar-title > a {
        width: 100%;
        margin-bottom: 8px;
    }

    .calendar .table-calendar-overflow {
        max-height: calc(100vh - 235px);
    }
}