/* Calendar styles */
.gs_b_top {
    border-bottom: none !important;
    position: relative !important;
    z-index: 15 !important; /* Between toolbar and calendar */
}

.calend_box {
    height: 100vh;
    min-height: 600px;
}

#calendar {
    height: 100%;
    min-height: 600px;
}

/* FullCalendar 브라우저 기본 폰트 적용 */
#calendar,
#calendar *:not(.fc-header-toolbar):not(.fc-header-toolbar *),
.fc,
.fc *:not(.fc-header-toolbar):not(.fc-header-toolbar *) {
    font-family: inherit !important;
    font-weight: 500 !important;
    font-style: inherit !important;
    font-size: 11px !important;
}

/* Calendar grid background */
table[role="grid"] {
    background-color: white;
}

/* Ensure the calendar container takes full available height */
.contants_body {
    height: calc(100vh - 100px); /* Adjust based on your header height */
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.calend_box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#calendar {
    flex: 1;
}

/* Calendar event font size reduction */
.fc-event {
    font-size: calc(1em - 1px) !important;
}

.fc-event-title {
    font-size: calc(1em - 1px) !important;
}

.fc-event-main {
    font-size: calc(1em - 1px) !important;
}

.fc-event-time {
    font-size: calc(1em - 1px) !important;
}

/* Lighter text color for dot events */
.fc-daygrid-dot-event .fc-event-time,
.fc-daygrid-dot-event .fc-event-title {
    color: #666666 !important; /* Slightly lighter black */
}

/* Weekday text color */
.fc-col-header-cell {
    color: black !important;
    background-color: #f8f9fa !important; /* Light background for weekday header */
}

.fc-col-header-cell a {
    color: black !important;
}

/* Header toolbar alignment */
.fc-header-toolbar {
    justify-content: flex-start !important;
    align-items: center !important;
    margin-top: -48px !important; /* Adjust this value as needed */
    position: relative !important;
    z-index: 25 !important; /* Higher than search controls */
    pointer-events: none !important;
}

.fc-toolbar {
    justify-content: flex-start !important;
    align-items: center !important;
    pointer-events: none !important;
}

.fc-toolbar-ltr {
    justify-content: flex-start !important;
    align-items: center !important;
    pointer-events: none !important;
}

.fc-toolbar-chunk {
    display: flex !important;
    align-items: center !important;
    margin-right: 10px !important;
    pointer-events: auto !important;
}

.fc-toolbar-title {
    margin: 0 10px !important;
    pointer-events: auto !important;
}
