button:focus {
    outline: none !important;
    box-shadow: none !important;
}

.fc table {
    font-size: 22px;
}

body .fc .fc-toolbar.fc-header-toolbar {
    justify-content: flex-start;
    gap: 25px;
}

.fc .fc-button-primary {
    background-color: #EEEBE7;
    border-color: #EEEBE7;
    color: #72005F;
}

.calendar-block a, .calendar-block a:hover {
    color: #171725;
}

.calendar-layout-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 991px) {
    .calendar-layout-wrapper {
        grid-template-columns: 1fr;
    }

    .calendar-layout-wrapper .calendar-legend-block {
        display: none;
    }

    .calendar-layout-wrapper div.calendar-section-wrapper {
        margin: 0;
    }

    body .fc .fc-toolbar.fc-header-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }
}

.calendar-details-block .calendar-event-details-block {
    width: 80%;
    /* height: 96vh;*/
    max-height: 768px;
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 90px;
}

.calendar-details-block .calendar-event-details-block:after {

    content: '';
    display: block;
    height: 140px; /*TODO*/
    width: calc(100% - 2px);
    position: absolute;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 7%, rgba(255, 255, 255, 1) 100%);
    /*background: linear-gradient(to top, transparent , #FFFFFF);*/
    /*  background: rgba(255, 255, 255, 0.1);*/
    backdrop-filter: blur(2px) opacity(0.2);
    /*backdrop-filter: blur(1px) saturate(120%) contrast(200%);*/
    bottom: 0;

}

.calendar-details-block .calendar-event-details-block::-webkit-scrollbar {
    display: none;
}

.calendar-layout-wrapper .calendar-section-wrapper {
    flex: 1;
    margin: 0 80px 80px 50px;
}

.calendar-block .fc-header-toolbar .fc-toolbar-chunk .fc-button-group .fc-button-primary {
    background: #4F6185;
    border-color: #4F6185;
}

.calendar-block .fc-header-toolbar .fc-toolbar-chunk .fc-button-group .fc-button-primary:hover {
    background: #112C63;
    border-color: #112C63;
}

.calendar-block .fc-header-toolbar .fc-toolbar-chunk .fc-today-button {
    background-color: #72005f;
    font-weight: 400;
    outline: none;
    box-shadow: none;
    padding-left: 20px;
    padding-right: 20px;
    color: white;
}

.calendar-block .fc-view-harness .fc-daygrid table tbody tr td.fc-day-today:not(.clicked-day) a {
    color: white;
}

.calendar-block .fc-header-toolbar .fc-toolbar-chunk .fc-toolbar-title {
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 18px;
}

.calendar-block .fc-view-harness .fc-daygrid table {
    border: none;
    margin: 0;
}

.calendar-block .fc-view-harness .fc-daygrid table thead tr th {
    border: none;
    padding-bottom: 15px;
}

.calendar-block .fc-view-harness .fc-daygrid table thead tr th .fc-scroller-harness .fc-scroller table thead tr th .fc-scrollgrid-sync-inner .fc-col-header-cell-cushion {
    padding: 0;
    font-size: 15px;
    color: #adadad;
    font-weight: 500;
    text-transform: uppercase;
}

.fc .fc-daygrid-day-top {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    justify-content: center;
}

.calendar-block .fc-view-harness .fc-daygrid table tbody tr td {
    border: none;
    position: relative;
    width: 100%;
    cursor: pointer;
}

.calendar-block .fc-view-harness .fc-daygrid table tbody tr td.fc-day-today {
    background: transparent;
    color: white;
    position: relative;
}

.calendar-block .fc-view-harness .fc-daygrid table tbody tr td .fc-scroller-harness .fc-scroller .fc-daygrid-body table tbody tr td .fc-daygrid-day-frame {
    justify-content: center;
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    min-height: 80px;
    flex-direction: column;
}

.calendar-block .fc-view-harness .fc-daygrid table tbody tr td .fc-scroller-harness .fc-scroller .fc-daygrid-body table tbody tr td .fc-daygrid-day-frame .fc-daygrid-day-top .fc-daygrid-day-number {
    text-decoration: none !important;
}

.calendar-block .fc-view-harness .fc-daygrid table tbody tr td .fc-scroller-harness .fc-scroller .fc-daygrid-body table tbody tr {
    position: relative;
}

.fc-daygrid-event-harness:not(.fc-daygrid-event-harness-abs) {
    float: left;
    margin-top: 0 !important;
}

.fc-daygrid-event-harness.fc-daygrid-event-harness-abs {
    -left: -35px !important;
}

.single-day-event {
    background: #72005F;
    height: 6px;
    width: 6px;
    border-radius: 10px;
    right: 0;
    left: 0;
    bottom: 0;
}

.fc-day-today:not(.clicked-day) .single-day-event {
    background: white;
}

.calendar-block .fc-view-harness .fc-daygrid table tbody tr td .fc-scroller-harness .fc-scroller .fc-daygrid-body table tbody tr td .fc-daygrid-day-frame .fc-daygrid-day-events .fc-daygrid-event-harness .fc-daygrid-event.single-day-event {
    width: 6px;
}

.calendar-block .fc-view-harness .fc-daygrid table tbody tr td .fc-scroller-harness .fc-scroller .fc-daygrid-body table tbody tr td .fc-daygrid-day-frame .fc-daygrid-day-events .fc-daygrid-day-bottom {
    margin-top: 0 !important;
}

.calendar-block .fc-view-harness .fc-daygrid table tbody tr td .fc-scroller-harness .fc-scroller .fc-daygrid-body table tbody tr td .fc-daygrid-day-frame .fc-daygrid-day-events .fc-daygrid-event-harness .fc-daygrid-event {
    border-radius: 10px;
    outline: none;
    box-shadow: none;
    border: none;
    height: 8px;
    overflow: hidden;
}

.calendar-block .fc-view-harness .fc-daygrid table tbody tr td .fc-scroller-harness .fc-scroller .fc-daygrid-body table tbody tr td .fc-daygrid-day-frame .fc-daygrid-day-events .fc-daygrid-event-harness .fc-daygrid-event:not(.single-day-event) {
    min-width: 110%;
}

.fc-event-title.fc-sticky {
    width: 50px;
    margin: 0 13px;
}

.calendar-block .fc-view-harness .fc-daygrid table tbody tr td.fc-day-today::before {
    position: absolute;
    content: '';
    width: 50px;
    height: calc(100% - 14px);
    background: #72005f;
    margin: 0 auto;
    right: 0;
    left: 0;
    bottom: 0;
    top: 0;
    border-radius: 8px;
    z-index: -1;
}

.calendar-block .fc-view-harness .fc-daygrid table tbody tr td.clicked-day::before {
    position: absolute;
    content: '';
    width: 50px;
    height: calc(100% - 14px);
    border: 2px solid #72005f;
    background: transparent;
    margin: 0 auto;
    right: 0;
    left: 0;
    bottom: 0;
    top: 0;
    border-radius: 8px;
    z-index: -1;
}

.calendar-block .fc-view-harness .fc-daygrid table tbody tr td.fc-day-today.clicked-day {
    color: #72005f !important;
}

.calendar-block .fc-popover {
    border-color: #e7e7e7;
}

.calendar-block .fc-popover .fc-popover-header {
    padding: 10px;
}

.calendar-block .fc-popover .fc-popover-header .fc-popover-title {
    font-size: 14px;
    color: #112d63;
}

.calendar-block .fc-popover-body .fc-daygrid-event-harness a {
    border: none;
    width: 100%;
    display: block;
    padding: 4px;
    font-size: 12px;
    margin-bottom: 4px;
}

.calendar-block .fc-popover-body .fc-daygrid-event-harness:last-child a {
    margin-bottom: 0;
}

.single-day-event {
    height: 6px !important;
}

.long-day-event {
    margin: 0 -74px 0 -27px;
    background-color: #72005F;
}

.calendar-legend-block {
    flex: 0 0 87%;
    margin: 25px auto 40px;
    border-bottom: 2px solid #6c7288;
}

.calendar-legend-block .calendar-culture .ce_line {
    fill: #67C41D;
}

.calendar-legend-block .calendar-cross .ce_line {
    fill: #FFAA30;
}

.calendar-legend-block, .calendar-legend-block > div {
    display: flex;
    flex-direction: row;
    padding-bottom: 10px;
}

.calendar-left, .calendar-right {
    column-gap: 30px;
}

.calendar-right {
    margin-left: 22%;
}

.calendar-legend-block span {
    font-size: 14px;
    line-height: 46px;
    color: #0F2B62;
    margin-left: 5px;
}
