/**
 * Zeventra custom FullCalendar styles.
 *
 * Extracted from frontend-style.css and styles.css for FullCalendar 7.x.
 * Official library CSS lives under libraries/full-calendar/.
 * Do not mix library theme/skeleton styles into this file.
 */

/* ===== Extracted from frontend-style.css ===== */

.zozo-full-calendar-notice, .zozo-calendar-notice {
    margin: 12px 0px;
    padding: 12px 16px;
    background: rgb(255, 248, 229);
    border-left: 4px solid rgb(219, 166, 23);
    color: rgb(29, 35, 39);
}

.zozo-calendar-config-tooltip {
    display: none;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgb(255, 248, 229);
    border-left: 4px solid rgb(219, 166, 23);
    color: rgb(29, 35, 39);
    font-size: 13px;
    line-height: 1.4;
    max-width: 360px;
}

.zozo-calendar-config-tooltip.is-visible {
    display: block;
}

.zozo-events-timetable-wrap, .timetable-toolbar {
    /* Prefer available content width; avoid full-bleed 49vw that compresses columns
       and can force the page wider than the viewport inside theme containers. */
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, #ffffff, #f6faf8);
    padding: 10px 15px 10px 15px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.zozo-calendar-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin: 0px auto;
}

/* FullCalendar list view clean column spacing */

#event-builder-full-calendar .fc-list-event-time {
    width: 130px;
    min-width: 130px;
    padding: 12px 20px 12px 15px !important;
    white-space: nowrap;
    vertical-align: middle;
}

#event-builder-full-calendar .fc-list-event-graphic {
    width: 45px;
    min-width: 45px;
    padding: 12px 10px !important;
    text-align: center;
    vertical-align: middle;
}

#event-builder-full-calendar .fc-list-event-title {
    padding: 12px 15px 12px 15px !important;
    vertical-align: middle;
}

#event-builder-full-calendar .fc-list-event-dot {
    display: inline-block;
    margin: 0;
}

.zozo-full-calendar-container {
    width: 100%;
}

.zozo-full-calendar-container a.fc-event,
.zozo-full-calendar-container .fc .fc-list-event-title a {
    text-decoration: none;
}

.zozo-full-calendar-container .fc-col-header-cell a, .zozo-events-timetable-wrap .fc-col-header-cell a {
    text-decoration: none;
    color: #333333;
    font-size: 16px;
}

.zozo-day-navigation {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e9edf2;
}

.zozo-day-number {
    display: block;
    font-size: 64px;
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: -3px;
    color: #444;
}

.zozo-day-name {
    display: block;
    margin-top: 8px;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 400;
    color: #aeb5bd;
}

.zozo-day-event-count {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    color: #8c969f;
}

.zozo-day-dates {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Event indicator */

.zozo-day-event-dot {
    position: absolute;
    left: 50%;
    bottom: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--zozo-primary-color, #00afff);
    transform: translateX(-50%);
}

/* Day view: title (line 1) + start–end time (line 2, smaller). */

.fc-dayGridDay-view .zozo-fc-day-event-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.fc-dayGridDay-view .zozo-fc-day-event-title,
.fc-dayGridDay-view .fc-daygrid-event .fc-event-title {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100%;
    line-height: 1.25;
}

.fc-dayGridDay-view .zozo-fc-day-event-time {
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ===== Extracted from styles.css ===== */

/*-------------------------------------------------
 Full Calendar Styles
-------------------------------------------------*/

.fc-header-toolbar, .timetable-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px;
    align-items: end;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 #0000000d;
    border: 1px solid #dae2fd;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

#fc-dropdown-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zozo-calendar-wrapper .fc-header-toolbar .fc-toolbar-chunk, .timetable-toolbar > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33.33%;
}

.zozo-calendar-wrapper .fc-header-toolbar .fc-toolbar-chunk:first-child, .timetable-toolbar > div:first-child {
    justify-content: left;
}

.zozo-calendar-wrapper .fc-header-toolbar .fc-toolbar-chunk:last-child, .timetable-toolbar > div:last-child {
    justify-content: right;
}

.zozo-calendar-wrapper .fc-header-toolbar .fc-toolbar-title, .tt-label {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.zozo-calendar-wrapper #fc-dropdown-container select, .tt-view-mode, .zozo-event-booking-form select {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    height: 45px;
    line-height: 25px;
    font-weight: 500;
    color: #131b2e;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.zozo-calendar-wrapper #fc-dropdown-container select:first-child {
    width: 125px;
}

.zozo-calendar-wrapper #fc-dropdown-container select:last-child, .tt-view-mode {
    width: 85px;
}

.zozo-calendar-wrapper #fc-dropdown-container select:hover, .zozo-calendar-wrapper #fc-dropdown-container select:focus, .tt-view-mode:hover, .tt-view-mode:focus {
    border-color: var(--zozo-primary);
    outline: none;
    box-shadow: none;
}

.zozo-calendar-wrapper .fc-button .fc-icon {
    font-size: 16px;
    line-height: 1;
    color: #131b2e;
}

.zozo-calendar-wrapper .fc-button, .zozo-timetable-container .timetable-nav-buttons button {
    line-height: 25px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    color: #131b2e;
}

.zozo-calendar-wrapper .fc-button.fc-today-button {
    text-transform: capitalize;
    font-size: 16px;
    line-height: 1;
    color: #131b2e;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.zozo-calendar-wrapper .fc-button.fc-next-button:hover, .zozo-calendar-wrapper .fc-button.fc-next-button:active, .zozo-calendar-wrapper .fc-button.fc-next-button:focus, .zozo-calendar-wrapper .fc-button.fc-today-button:hover, .zozo-calendar-wrapper .fc-button.fc-today-button:active, .zozo-calendar-wrapper .fc-button.fc-today-button:focus, .zozo-calendar-wrapper .fc-button.fc-prev-button:hover, .zozo-calendar-wrapper .fc-button.fc-prev-button:active, .zozo-calendar-wrapper .fc-button.fc-prev-button:focus, .zozo-timetable-container .timetable-toolbar button:hover, .zozo-timetable-container .timetable-toolbar button:active, .zozo-timetable-container .timetable-toolbar button:focus {
    background: #e4e4e470;
    color: #131b2e;
    border-color: #e5e7eb;
}

.zozo-calendar-wrapper .fc-button:hover, .zozo-calendar-wrapper .fc-button:active, .zozo-calendar-wrapper .fc-button:focus {
    background: var(--zozo-primary);
    color: #fff;
    border-color: var(--zozo-primary);
    outline: none;
    box-shadow: none;
}

.zozo-calendar-wrapper .fc-addEventButton-button::before, #add-event-btn::before {
    content: "\2b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    margin-right: 8px;
}

.zozo-calendar-wrapper .fc-addEventButton-button, #add-event-btn {
    position: relative;
    background: var(--zozo-primary);
    color: #fff;
    border: 1px solid var(--zozo-primary);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 16px;
    line-height: 25px;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.zozo-calendar-wrapper .fc-addEventButton-button:hover, .zozo-calendar-wrapper .fc-addEventButton-button:active, .zozo-calendar-wrapper .fc-addEventButton-button:focus, #add-event-btn:hover, #add-event-btn:active, #add-event-btn:focus {
    background: var(--zozo-secondary);
    color: #fff;
    border-color: var(--zozo-secondary);
    outline: none;
    box-shadow: none;
}

.zozo-calendar-wrapper .fc-dayGridMonth-button, .zozo-calendar-wrapper .fc-listWeek-button {
    background: #fff;
    color: #131b2e;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 16px;
    line-height: 25px;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.zozo-calendar-wrapper .fc .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--zozo-secondary);
    color: #fff;
    border-color: var(--zozo-secondary);
    outline: none;
    box-shadow: none;
}

.zozo-calendar-wrapper .fc-scrollgrid, .zozo-view-timetable .fc-scrollgrid, .zozo-calendar-wrapper .fc-list-table {
    border: 1px solid #dae2fd;
    border-radius: 12px;
    overflow: hidden;
    margin: 0;
}

.fc-scrollgrid thead:first-child tr:first-child th, .zozo-calendar-wrapper .fc-scrollgrid-section td, .fc-theme-standard .fc-list {
    border-block-start: none; 
    border: none;
}

.zozo-calendar-wrapper .fc .fc-list-day-cushion, .zozo-calendar-wrapper .fc .fc-list-table td {
    padding: 12px 24px;
}

.zozo-calendar-wrapper .fc .fc-daygrid-body-natural .fc-daygrid-day-events {
    margin: 16px 0;
}

.zozo-calendar-wrapper .fc .fc-list-day a {
    text-decoration: none;
    color: #131b2e;
}

.zozo-calendar-wrapper .fc .fc-list-day a:hover {
    color: var(--zozo-primary);
}

.zozo-calendar-wrapper .fc .fc-scrollgrid-sync-table tr:not(:last-child) {
    border-bottom: 1px solid #dae2fd;
}

.zozo-calendar-wrapper .fc .fc-scrollgrid-sync-table tr td:not(:first-child) {
    border-left: 1px solid #dae2fd;
}

.zozo-calendar-wrapper .fc .fc-daygrid-week-number {
    color: #737686;
    background: none;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    padding: 8px;
    text-decoration: none;
}

.zozo-view-timetable table tbody > tr:nth-child(odd) > td, .zozo-view-timetable table tbody > tr:nth-child(odd) > th, .zozo-calendar-wrapper table tbody > tr:nth-child(odd) > td, .zozo-calendar-wrapper table tbody > tr:nth-child(odd) > th, .zozo-calendar-wrapper table tbody tr:hover > td, .zozo-calendar-wrapper table tbody tr:hover > th, .zozo-view-timetable table tbody tr:hover > td, .zozo-view-timetable table tbody tr:hover > th {
    background-color: transparent;
}

.zozo-calendar-wrapper table caption + thead tr:first-child td, .zozo-calendar-wrapper table caption + thead tr:first-child th, .zozo-calendar-wrapper table colgroup + thead tr:first-child td, .zozo-calendar-wrapper table colgroup + thead tr:first-child th, .zozo-calendar-wrapper table thead:first-child tr:first-child td, .zozo-calendar-wrapper table thead:first-child tr:first-child th {
    border-block-start: 0; }

.zozo-calendar-wrapper .fc .fc-daygrid-day-frame {
    min-height: 150px;
}

.zozo-calendar-wrapper .fc .fc-daygrid-day-number, .zozo-calendar-wrapper .fc .fc-daygrid-day-number:hover, .zozo-calendar-wrapper .fc .fc-daygrid-day-number:focus, .zozo-calendar-wrapper .fc .fc-daygrid-day-number:active {
    color: var(--zozo-primary);
    text-decoration: none;
    padding: 8px;
}

.zozo-calendar-wrapper .fc .fc-scrollgrid-sync-table tr td.fc-day-other {
    background-color: #e4e4e470;
}

.zozo-calendar-wrapper .fc .fc-scrollgrid-sync-table tr td.fc-day {
    cursor: pointer;
}

.zozo-calendar-wrapper .fc .fc-scrollgrid-sync-table tr td.fc-day:hover, .zozo-view-timetable .fc-scrollgrid tr td.fc-timegrid-slot:hover {
    background-color: rgb(0 0 0 / 11%);
}

.zozo-calendar-wrapper .fc .fc-daygrid-day.fc-day-today, .zozo-calendar-wrapper .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background-color: var(--zozo-primary);
    color: #fff;
}

.fc .fc-event, .fc .fc-event:hover td .zozo-calendar-wrapper .fc .fc-event, .zozo-calendar-wrapper .fc .fc-event:hover td {
    background: #555555;
    color: #ffffff;
    font-size: 13.6px;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#zozo-timetable-calendar .fc-event.fc-event-past, .fc .zozo-event-past, .fc .fc-event-past, #zozo-timetable-calendar .fc-event.fc-event-past:hover, #zozo-timetable-calendar .fc-list-event.fc-event-past td, #zozo-timetable-calendar .fc-list-event.fc-event-past:hover td, #event-builder-full-calendar .fc-event.fc-event-past, #event-builder-full-calendar .fc-event.fc-event-past:hover, #event-builder-full-calendar .fc-list-event.fc-event-past td, #event-builder-full-calendar .fc-list-event.fc-event-past:hover td {
    background: #555555 !important;
    background-color: #555555 !important;
    border-color: #555555 !important;
    color: #ffffff !important;
    opacity: 0.6;
}

#event-builder-full-calendar .fc-event.fc-event-past .fc-event-main, #event-builder-full-calendar .fc-event.fc-event-past .zozo-fc-event-title, #event-builder-full-calendar .fc-event.fc-event-past .zozo-fc-event-time, #event-builder-full-calendar .fc-list-event.fc-event-past a {
    color: #ffffff;
}

#event-builder-full-calendar .fc-event.fc-event-past .fc-list-event-dot, #event-builder-full-calendar .fc-event.fc-event-past .fc-daygrid-event-dot {
    border-color: #555555 !important;
}

#event-builder-full-calendar .zozo-fc-event-time {
    display: block;
    width: 100%;
    font-weight: 500;
    font-size: 13px;
    margin-top: 4px;
    text-align: left;
    line-height: 1.25;
}

#zozo-timetable-calendar .fc-event,
#zozo-timetable-calendar .zozo-tt-event,
#event-builder-full-calendar .fc-event {
    margin: 0;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
}

#event-builder-full-calendar .fc-event {
    padding: 12px;
}

/* Timed events need compact padding so short slots stay readable. */
#zozo-timetable-calendar .fc-event,
#zozo-timetable-calendar .zozo-tt-event {
    padding: 4px 6px;
    box-sizing: border-box;
}

#zozo-timetable-calendar .fc-event-mirror {
    margin: 0;
}

#event-builder-full-calendar .fc-daygrid-event {
    white-space: normal;
}

#event-builder-full-calendar .zozo-fc-event-title {
    display: block;
    width: 100%;
    font-weight: 600;
    text-align: left;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc .fc-list-event,
.zozo-calendar-wrapper .fc .fc-event:hover td {
    background: #ffffff;
    color: #030712
}

@media (max-width: 767px) {
.zozo-events-timetable-wrap {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

#zozo-timetable-calendar {
        width: 100%;
        max-width: 100%;
    }

#zozo-timetable-calendar .fc-timegrid-axis {
        width: 48px !important;
    }

#zozo-timetable-calendar .fc-timegrid-slot-label {
        font-size: 11px;
        padding: 0 4px;
    }

#zozo-timetable-calendar .fc-col-header-cell-cushion {
        font-size: 13px;
        padding: 8px 4px;
    }

#zozo-timetable-calendar .fc-event,
    #zozo-timetable-calendar .zozo-tt-event {
        margin: 1px;
        padding: 3px 5px;
        border-radius: 8px;
        overflow: hidden;
    }

#zozo-timetable-calendar .fc-event-main {
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }

#zozo-timetable-calendar .zozo-tt-event-title,
    #zozo-timetable-calendar .zozo-fc-event-title {
        display: block;
        width: 100%;
        max-width: 100%;
        font-size: 12px;
        line-height: 1.3;
        font-weight: 600;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        overflow: hidden;
    }

#zozo-timetable-calendar .zozo-tt-event-time,
    #zozo-timetable-calendar .zozo-fc-event-time {
        display: block !important;
        width: 100%;
        font-size: 10px;
        line-height: 1.2;
        margin-top: 2px;
        white-space: normal;
    }
}

/*-------------------------------------------------------------------------------------------
 Responsive Styles
-------------------------------------------------------------------------------------------*/

/*-------------------------------------------------------------------------------------------
 Responsive Styles
-------------------------------------------------------------------------------------------*/

@media (max-width: 1199px) {
.zozo-calendar-wrapper .fc-header-toolbar, .timetable-toolbar {
        gap: 12px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

.zozo-calendar-wrapper .fc-header-toolbar .fc-toolbar-chunk, .timetable-toolbar > div {
        width: 100%;
    }

.zozo-calendar-wrapper .fc-header-toolbar .fc-toolbar-chunk:first-child, .zozo-calendar-wrapper .fc-header-toolbar .fc-toolbar-chunk:last-child, .timetable-toolbar > div:last-child, .timetable-toolbar > div:first-child {
        order: 9;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 768px) {
.zozo-day-number {
        font-size: 48px;
    }

.zozo-day-name {
        font-size: 20px;
    }

.zozo-day-dates {
        overflow-x: auto;
        scrollbar-width: none;
    }

.zozo-day-dates::-webkit-scrollbar {
        display: none;
    }

#zozo-timetable-calendar .fc-event,
    #zozo-timetable-calendar .zozo-tt-event {
        margin: 0;
        padding: 3px 5px;
    }

#event-builder-full-calendar .zozo-fc-event-time {
        display: none;
    }
}

@media (max-width: 576px) {
.session-title, .zozo-calendar-wrapper .fc-header-toolbar .fc-toolbar-title, .tt-label {
        font-size: 20px;
    }
}

/* ===== Extracted from frontend-style.css (pass 2) ===== */

.fc .fc-toolbar-title {
    font-size: 1.75em;
    margin: 0px;
    text-align: center;
}

.fc .fc-list-event:hover td {
    background-color: none !important;
}

.fc-list-event-graphic {
    border: none !important;
    background: none !important;
}

.fc-list-event-title, .fc-list-event-time {
    border: none !important;
    background: none !important;
}

/* Hide event time in FullCalendar */.fc .fc-event-time,
.fc .fc-daygrid-event .fc-event-time,
.fc .fc-event .fc-event-time {
    display: none !important;
}

/* Prevent event titles from wrapping */.fc .fc-event-title,
.fc .fc-daygrid-event .fc-event-title {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100%;
}

/*
 * Timed events (.fc-v-event) must keep horizontal titles.
 * Do not use writing-mode: vertical-lr — it turns week/day events into
 * tall narrow letter stacks and truncates titles to a few characters.
 */.fc .fc-timegrid-event .fc-event-title,
.fc .fc-v-event .fc-event-title {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.fc .fc-timegrid-event .fc-event-title-container,
.fc .fc-v-event .fc-event-title-container {
    display: block;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

/* Keep event content within its card */.fc .fc-event-main,
.fc .fc-daygrid-event .fc-event-main {
    min-width: 0;
    overflow: hidden;
}

/* Improve event card spacing */.fc .fc-daygrid-event {
    margin-top: 3px !important;
    margin-left: 6px !important;
    margin-right: 6px !important;
    margin-bottom: 2px !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
}

/*
 * Week/Day (dayGridWeek / dayGridDay): compact content-height cards stacked
 * vertically. Uses FC day-grid layout (not time-grid absolute positioning).
 */.fc-dayGridWeek-view .fc-daygrid-day-frame,
.fc-dayGridDay-view .fc-daygrid-day-frame {
    min-height: 120px;
}

.fc-dayGridWeek-view .fc-daygrid-day-events,
.fc-dayGridDay-view .fc-daygrid-day-events {
    margin: 4px 0 6px;
}

.fc-dayGridWeek-view .fc-daygrid-event-harness:not(.fc-daygrid-event-harness-abs),
.fc-dayGridDay-view .fc-daygrid-event-harness:not(.fc-daygrid-event-harness-abs) {
    margin-bottom: 5px;
}

.fc-dayGridWeek-view .fc-daygrid-event,
.fc-dayGridWeek-view a.fc-event,
.fc-dayGridDay-view .fc-daygrid-event,
.fc-dayGridDay-view a.fc-event {
    margin-left: 4px !important;
    margin-right: 4px !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    box-sizing: border-box;
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: 100%;
}

.fc-dayGridWeek-view .fc-daygrid-event .fc-event-main,
.fc-dayGridWeek-view .fc-daygrid-event .fc-event-title,
.fc-dayGridDay-view .fc-daygrid-event .fc-event-main,
.fc-dayGridDay-view .fc-daygrid-event .fc-event-title {
    height: auto !important;
    min-height: 0 !important;
}

.fc-dayGridWeek-view .fc-daygrid-event .fc-event-time {
    display: none !important;
}

/* Month view: Title above, time below */.fc-dayGridMonth-view .fc-daygrid-event .fc-event-main-frame {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    text-align: left;
}

.fc-dayGridMonth-view .fc-daygrid-event .fc-event-title-container {
    order: 1 !important;
    line-height: 1;
}

.fc .fc-list-event.fc-event-forced-url:hover a {
    text-decoration: none;
}

.fc-dayGridMonth-view .fc-daygrid-event .fc-event-time {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.fc-dayGridMonth-view .fc-daygrid-event .fc-event-title {
    font-size: 15px;
}

.fc-scrollgrid-sync-table {
    margin-bottom: 0 !important;
}

/*
 * FullCalendar timeGrid Week/Day (v6.1.8): collapse the left week-number +
 * time-axis / scrollgrid-shrink column. Width is forced to 0 so the event
 * grid reclaims space — not display:none (which can leave a gutter).
 * Scoped to timeGridWeek/Day only; Month, dayGridWeek, and List are unaffected.
 */

.fc-timeGridWeek-view col.fc-scrollgrid-shrink,
.fc-timeGridDay-view col.fc-scrollgrid-shrink {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
}

.fc-timeGridWeek-view .fc-scrollgrid-shrink,
.fc-timeGridWeek-view th.fc-timegrid-axis,
.fc-timeGridWeek-view td.fc-timegrid-axis,
.fc-timeGridWeek-view td.fc-timegrid-slot-label,
.fc-timeGridDay-view .fc-scrollgrid-shrink,
.fc-timeGridDay-view th.fc-timegrid-axis,
.fc-timeGridDay-view td.fc-timegrid-axis,
.fc-timeGridDay-view td.fc-timegrid-slot-label {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border-width: 0 !important;
    overflow: hidden !important;
}

.fc-timeGridWeek-view .fc-scrollgrid-shrink-cushion,
.fc-timeGridWeek-view .fc-timegrid-axis-cushion,
.fc-timeGridWeek-view .fc-timegrid-slot-label-cushion,
.fc-timeGridDay-view .fc-scrollgrid-shrink-cushion,
.fc-timeGridDay-view .fc-timegrid-axis-cushion,
.fc-timeGridDay-view .fc-timegrid-slot-label-cushion {
    width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* ===== Extracted from styles.css (pass 2) ===== */

/*
 * Do not force flex/absolute children of FC timegrid columns — that collapses
 * library overlap stacking. Do not force a fixed 32px height on every grid td.
 */

#zozo-timetable-calendar {
    width: 100%;
    max-width: 100%;
    min-height: 520px;
}

#zozo-timetable-calendar .zozo-tt-event-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#zozo-timetable-calendar .zozo-tt-event-time {
    display: block !important;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 600;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#zozo-timetable-calendar .zozo-tt-event-title {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow: hidden;
}

/* Soften dense slot lines while keeping day/time boundaries. */
.zozo-view-timetable .fc-scrollgrid,
#zozo-timetable-calendar .fc-scrollgrid {
    border-color: rgba(15, 23, 42, 0.1);
}

#zozo-timetable-calendar table {
    width: 100%;
}

/* Keep +N / more popover usable on timetable. */
#zozo-timetable-calendar .fc-popover,
.zozo-view-timetable .fc-popover {
    z-index: 20;
    max-width: min(350px, 92vw);
}

.fc-scrollgrid .fc-col-header, .fc .fc-scrollgrid-section-body table {
    margin: 0;
}

.fc-scrollgrid .fc-col-header tr {
    border-bottom: 1px solid #dae2fd;
}

.fc-scrollgrid .fc-col-header tr th {
    padding: 12px 0;
    border: none;
}

.fc .fc-list-event:hover {
    background: #0000000A;
}

.fc .fc-list-sticky .fc-list-day > * {
    background: linear-gradient(#00000014,#00000014)#fff;
}

.fc .fc-popover {
    max-width: 350px;
    width: 100%;
    border-radius: 8px;
}

.fc .fc-popover .fc-popover-close:hover {
    color: #ff0000;
}

.fc .fc-popover-header {
    padding: 8px 16px;
}

.fc .fc-more-popover .fc-popover-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.fc .fc-daygrid-more-link {
    padding: 10px;
}

.fc .fc-popover-body .fc-event-main-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fc .fc-daygrid-dot-event {
    flex-wrap: wrap;
}

.fc .fc-daygrid-dot-event .fc-daygrid-event-dot {
    padding: 0 ;
    margin: 0 10px 0 0;
}

.fc .fc-daygrid-dot-event .fc-event-title,
.fc .fc-popover-body .fc-event-main-frame .fc-event-title-container {
    order: -1;
    width: 100%;
}

/* Restored non-FullCalendar rules from mixed @media after FC CSS extraction */@media (max-width: 767px) {
.zozo-timetable-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
}

/* ===== FullCalendar day-strip navigation (from frontend-style.css) ===== */

.zozo-day-current {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px 22px;
    text-align: center;
}

.zozo-day-strip {
    display: flex;
    width: 100%;
    border-top: 1px solid #e8ebee;
    border-bottom: 1px solid #e8ebee;
    background: #fff;
}

.zozo-day-date {
    position: relative;
    flex: 1 1 0;
    min-width: 48px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-right: 1px solid #e6e8eb;
    background: transparent;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.zozo-day-date:hover {
    background: #f5f8fb;
    color: var(--zozo-primary-color, #00afff);
}

.zozo-day-date.active {
    background: #f7fafc;
    color: var(--zozo-primary-color, #00afff);
}

.zozo-day-date.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--zozo-primary-color, #00afff);
}

.zozo-day-date-number {
    position: relative;
    z-index: 2;
}

/* Navigation buttons */.zozo-day-nav {
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #fff;
    color: var(--zozo-primary-color, #00afff);
    font-size: 15px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.zozo-day-nav:hover {
    background: var(--zozo-secondary);
    color: #fff;
}

.zozo-day-nav:focus {
    outline: none;
}
:root {
    --fc-classic-today: #f2f2f2 !important;
    --fc-classic-button: var(--zozo-primary);
    --fc-classic-button-strong: var(--zozo-secondary);
    --fc-classic-button-border: transparent;
    --fc-classic-button-strong-border: transparent;

    --fc-monarch-selected: var(--zozo-primary) !important;
    --fc-monarch-tertiary: var(--zozo-secondary) !important;
    --fc-monarch-secondary-foreground: #000 !important;
    --fc-monarch-secondary: #f2f2f2 !important;
    --fc-monarch-secondary-over: #e0e0e0 !important;
}
.event-builder-full-calendar a,
.event-builder-full-calendar button {
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.event-builder-full-calendar button:focus,
.event-builder-full-calendar button:hover {
    background: var(--zozo-secondary);
    color: #fff;
    border-color: var(--zozo-secondary);
}

/* Classic Styles */
.event-builder-full-calendar .fc-classic-C1x {
    border: 1px solid transparent;
}
.event-builder-full-calendar .fc-Ap,
.event-builder-full-calendar .fc-7v {
    border-bottom: 1px solid var(--fc-classic-border) !important;
}
.event-builder-full-calendar .fc-C1 {
    border-width: 0 1px;
    border-color: var(--fc-classic-border);
    border-bottom: 0 solid transparent !important;
}
.event-builder-full-calendar .fc-0s {
    border-top: 1px solid var(--fc-classic-border) !important;
}
.event-builder-full-calendar .fc-classic-YjJ {
    padding: 6px;
    border-radius: 6px;
}
.event-builder-full-calendar .fc-classic-4yP:not(.fc-classic-d0j) {
    padding: 2px 6px;
    background-color: var(--fc-event-color);
    color: #fff;
}
.event-builder-full-calendar .fc-classic-4yP:not(.fc-classic-d0j) .fc-classic-a3B {
    color: #fff;
}
.fc-monarch-1kP button:hover,
.fc-monarch-1kP button:focus,
.fc-classic-tkw button:hover,
.fc-classic-tkw button:focus {
    background-color: #ff4d4d;
}

/* Monarch styles */
.event-builder-full-calendar .fc-monarch-07j:hover {
    --fc-monarch-foreground: #fff;
}
.event-builder-full-calendar .fc-monarch-07j:hover {
    background: var(--zozo-primary);
    border-color: var(--zozo-primary);
}
.event-builder-full-calendar .fc-monarch-hbI:hover {
    background: var(--zozo-primary);
}

@media (max-width: 767px) {
    .event-builder-full-calendar > div {
        flex-direction: column;
    }
    .event-builder-full-calendar > div > div:nth-child(2) {
        order: -1;
    }
}