/* --------------------------
   Calendar basic styling
--------------------------- */

#SDOCalendar {
    max-width: 100%;
    margin: 20px auto;
    font-family: "Arial", sans-serif;
	font-size: 0.9rem;
}

#SDOCalendar .fc-toolbar {
    margin-bottom: 0.5rem;
}

#SDOCalendar .fc-toolbar-title {
    font-size: 1.1rem;
}

#SDOCalendar .fc-daygrid-day-frame {
    padding: 2px;
}

/* --------------------------
   Calendar text colors
--------------------------- */

/* Weekday names (MO, DI, MI, ...) */
#SDOCalendar .fc-col-header-cell-cushion {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
}

/* Day numbers (1, 2, 3, ...) */
#SDOCalendar .fc-daygrid-day-number {
    color: #000000;
    text-decoration: none;
	font-weight: 600;
}

/* Prevent hover color from theme */
#SDOCalendar .fc-daygrid-day-number:hover,
#SDOCalendar .fc-col-header-cell-cushion:hover {
    color: #000000;
}

/* Remove gap between weekday header and calendar body */
/* Header → body separator cleanup */
#SDOCalendar .fc-scrollgrid-section-header th {
    border-bottom: none;
    padding-bottom: 0;
}

/* Bottom spacing cleanup */
#SDOCalendar .fc-scrollgrid {
    border-bottom: none;
}



/* Events styling */
.fc-event {
    border-radius: 4px;
    font-size: 0.85em;
    padding: 2px 4px;
}

/* Modal */
#event-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#event-modal-body {
    /*white-space: pre-line;*/
	white-space: normal;
}

#event-modal.open {
    display: flex;
}

#event-modal .modal-content {
    background: #ffffff;
    max-width: 500px;
    width: 90%;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

#event-modal h3 {
    margin-top: 0;
}

#event-modal a {
    color: #cc0000;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#event-modal a:hover {
    color: #cc0000;
    /* text-decoration-thickness: 2px; */
}

#event-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    cursor: pointer;
    border: none;
    background: none;
}

#calendar-legend {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-weight: 600;
    font-size: 0.9em;
}

.legend-item {
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
}
.legend-item[style*="ffeb0a"] { color: #000; } /* override for yellow */

.event-meta {
    margin-bottom: 6px;
}

#event-modal p {
    margin: 4px 0 0 0;
}