.calendar {
    border-radius: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 3rem;
    background-color: #0d5a92;
    box-shadow: 0 4px 8px #0000001a;
    position: relative;
    display: block
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #063e67;
    color: #fff;
    height: 70px;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    width: max-content;
    min-width: 100%;
    margin: 0 auto
}

.calendar-header h2 {
    font-size: 2.2rem;
    width: 200px;
    text-align: center;
    white-space: nowrap
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%
}

.calendar-day-name {
    text-align: center;
    font-weight: 700;
    padding: 8px 0
}

.calendar-day {
    border: 1px solid rgba(109 161 194 / 40%);
    border-radius: 4px;
    padding: 8px;
    min-height: 220px;
    position: relative;
    width: 100%;
    height: auto
}

@media (max-width: 768px) {
    .calendar-header {
        min-width: 705px
    }

    .calendar-day {
        min-width: 100px;
        max-width: 100px;
        min-height: 100px;
        height: auto;
        font-size: .7rem
    }
}

.day-number {
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    color: #fff
}

.calendar-tab {
    border-radius: 4px;
    color: #070142;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 4px;
    transition: color 0s ease-out, background-color 0s ease-out
}

.calendar-event {
    position: relative;
    display: flex;
    align-items: center;
    font-size: .8rem;
    color: #fff;
    background-color: #ffffff1a;
    padding: 2px 4px;
    border-radius: 4px;
    margin-top: 4px;
    text-align: center
}

.calendar-event .calendar-event-type {
    border-radius: 50%;
    display: inline-block;
    height: 1rem;
    width: 1rem;
    margin-right: .8rem;
    flex-shrink: 0
}

.type-1 {
    background-color: #3fc29b
}

.type-2 {
    background-color: #ffa41c
}

.type-3 {
    background-color: #d87afa
}

.type-5 {
    background-color: #1671f9
}

.calendar-event-detail {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #fff;
    color: #333;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 8px;
    box-shadow: 0 4px 8px #0000001a;
    width: 240px;
    z-index: 10;
    font-size: 1.1rem;
    white-space: normal;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s ease, transform .3s ease
}

.calendar-event:hover .calendar-event-detail {
    display: block;
    opacity: 1;
    transform: translateY(0)
}

.calendar-event-header {
    font-weight: 500;
    font-size: 1.5rem;
    color: #3d4450
}

.calendar-event .calendar-event-title {
    white-space: normal;
    word-wrap: break-word;
    flex-grow: 1;
    text-align: left;
    max-width: calc(100% - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.calendar-event-title {
    position: relative;
    text-align: center;
    z-index: 1;
    font-size: 9px
}

.calendar-event-image {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px
}

.calendar-day:nth-child(7n-1) .calendar-event:hover .calendar-event-detail,
.calendar-day:nth-child(7n) .calendar-event:hover .calendar-event-detail {
    left: auto;
    right: 100%
}

@media only screen and (min-width:768px) {
    .calendar-event {
        height: 30px;
        width: 155px
    }
}

@media (max-width: 768px) {
    .calendar-event {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        line-height: 1.5
    }

    .calendar-day:nth-child(7n-1) .calendar-event:hover .calendar-event-detail,
    .calendar-day:nth-child(7n) .calendar-event:hover .calendar-event-detail {
        left: 100%;
        right: auto
    }
}

.calendar-day a {
    text-decoration: none
}

.empty {
    visibility: hidden
}

.Content_button-pill-content {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    position: relative;
    z-index: 2
}

.Content_button-pill-content_mask-arrow-right {
    display: grid;
    height: 6px;
    place-items: center
}

.Content_button-pill-content_mask-arrow-left {
    display: grid;
    height: 6px;
    margin-right: 1px;
    place-items: center
}

.button_calendar-header {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color .2s ease
}

.button_calendar-header:hover {
    background-color: #0000001a
}

.button_calendar-header:active {
    transform: scale(.95)
}

@media (max-width: 768px) {
    .calendar-event {
        display: flex;
        align-items: flex-start;
        flex-direction: row;
        padding: 4px 6px;
        min-height: 60px;
        background-color: #ffffff1a;
        margin: 4px 0
    }

    .calendar-event .calendar-event-type {
        flex-shrink: 0;
        margin-right: 8px;
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 50%
    }

    .calendar-event .calendar-event-title {
        flex-grow: 1;
        font-size: .9rem;
        color: #fff;
        line-height: 1.4;
        overflow: hidden;
        display: -webkit-box;
        line-clamp: 4;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        word-break: break-word
    }

    .calendar-event-detail {
        font-size: .9rem;
        width: 200px
    }
}

.spinner {
    border: 4px solid rgba(255, 255, 255, .3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-left: 10px
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}