#external-events {
    margin-left: 0;
    padding-right: 24px;
}
.calendars-list a {
    cursor: pointer;
}


.calendar-header {
    margin-bottom: 30px;
    width: 100%;
}
.calendar-header .div-calendars-list {
    display: flex;
    flex-direction: column;
}
.div-calendars-list .calendars-list,
.div-calendars-list .calendars-action {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px
}
.div-calendars-list .calendars-action {
    right: 15px;
}


.fc table:not([role=presentation]) tbody > tr > td:first-child {
    padding-left: 4px;
}
.fc table tbody.fc-body > tr > td.fc-widget-content {
    padding-left: 0;
}

.fc button {
    background: var(--color-background-builder-100, #F5F5F5);
    border-color: var(--color-background-builder-100, #F5F5F5);
    color: var(--app-color-dark);
    margin: 0;
    text-shadow: none;
}
.fc-state-down, .fc button.fc-state-active {
    background: var(--app-color-black);
    border-color: var(--app-color-black);
    box-shadow: none;
    color: var(--app-color-white);
}
.fc-toolbar h2 {
    font-size: 22px;
    font-weight: 800;
}
.user-interface .fc-toolbar h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    margin-bottom: 0 !important;
    line-height: 30px !important;
}
.user-interface .fc-time-grid .fc-slats td,
.user-interface .fc table tr td {
    padding: 0 !important;
}


.calendar-content {
    display: flex;
    flex-direction: row;
    gap: 0;
}
@media (max-width: 991px) {
    .calendar-content {
        flex-direction: column;
    }
}
.calendar-left-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.calendar-right-content {

}
.calendar-right-content .fc-toolbar.fc-header-toolbar {
    margin-bottom: 0;
    border-left: 1px solid var(--Border-Secondary, #F3EEE8);
    padding-bottom: 16px;
    padding-left: 16px;
}


#custom_calendar_container {

}
#custom_calendar_header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 16px;
}
#custom_calendar_header h4 {
    font-weight: 700;
    font-size: 16px;
    margin: 0;
}
#prev_month {
    margin-left: auto;
}
#custom_calendar_header button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transform: none !important;
    background: transparent;
}

#custom_calendar_weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 10px;
}
.weekday {
    text-align: center;
    font-weight: 800;
    font-size: 10px;
    padding: 8px 0;
    opacity: 0.7;
}

#custom_calendar_days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 0 10px 10px 10px;
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: transparent;
}
.calendar-day:not(.empty):hover {
    background: var(--app-color-dark, #1C1D23);
    color: white;
    cursor: pointer;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.today {
    background: #F9F5F1;
}

.calendar-day.selected {
    background: var(--app-color-dark, #1C1D23) !important;
    color: var(--app-color-white);
}
.calendar-day.has-events {
    border: 1px solid var(--app-color-dark);
    background: transparent;
}
.calendar-day.has-events:hover {
    background: var(--app-color-dark, #1C1D23);
    color: white;
}


.events-list i {
    font-size: 8px;
    margin-right: 2px;
}
.events-list .event-title {
    font-size: 10px;
    font-weight: 600;
    margin-right: 4px;
}
.events-list .event-date {
    font-weight: 300;
    font-size: 10px;
}

body.dark .fc-unthemed .fc-today,
body.dark .fc-unthemed td.fc-today {
    background: var(--common-primary-brand-navy-blue-20, #434553);
}
