/* ---- button colors ---- */
/*.fc .fc-button-primary {
    background: var(--e-global-color-primary);
    border: none;
}
.fc .fc-button-primary:not(:disabled):hover {
    filter: brightness(0.9);
}*/

.fc .fc-button {
    border-radius: 2em;
}

.fc .fc-button-primary {
    background-color: var(--e-global-color-secondary, #40AF49);
    border-color: var(--e-global-color-secondary, #40AF49);
}

.fc .fc-button-primary:hover {
    background-color: var(--e-global-color-primary, #0a300c);
    border-color: var(--e-global-color-primary, #0a300c);
}

.fc .fc-button-active,
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: var(--e-global-color-primary, #0a300c);
    border-color: var(--e-global-color-primary, #0a300c);
}

.fc .fc-button-primary:disabled {
    background-color: var(--e-global-color-secondary, #40AF49);
    border-color: var(--e-global-color-secondary, #40AF49);
}

.fc-h-event .fc-event-main {
	color: black !important;
}

.fc-h-event {
	border: none !important;
}

/* ---- disable word wrap ---- */
.fc-daygrid-event, .fc-daygrid-event {
    white-space: unset;
}

/* ---- colors event ---- */
.fc-h-event {
    border: none !important;
    background-color: white;
	color: black;
    border-radius: 5px;
    padding: 0.3em;
}

/* ---- Event popup ---- */

#event-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.event-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.event-popup-content {
    position: relative;
    margin: 10vh auto;
    padding: 1.5rem;
    background: #fff;
    max-width: 500px;
    border-radius: 8px;
    z-index: 1;
}

.event-popup-close {
    position: absolute;
    top: .5rem;
    right: .5rem;

    line-height: 0.6em;
    border: 1px solid var(--e-global-color-secondary, #40AF49) !important;
    background-color: var(--e-global-color-secondary, #40AF49) !important;
    color: #FFFFFF !important;
}

.event-popup-close:hover {
    background-color: var(--e-global-color-primary, #0a300c) !important;
    border: 1px solid var(--e-global-color-primary, #0a300c) !important;
}


/* --- FullCalendar event visibility hardening --- */
.fc .fc-event,
.fc .fc-daygrid-event,
.fc .fc-timegrid-event,
.fc .fc-list-event {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Mocht je theme links met href="null" verbergen: voorkom dat events verdwijnen */
.fc a.fc-event[href="null"] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Word-wrap: jouw selector dubbel + unset kan raar zijn. Gebruik dit: */
.fc .fc-daygrid-event .fc-event-title {
  white-space: normal;
}