﻿/* Primary Calendar: */
/* special case for multiday hybrid events in listMonth view */
#calendar.fc tr.event-location-hybrid-multiday .fc-list-event-time {
    visibility: hidden;
}

/* dayGridView view: column headings */
#calendar.fc tr th.fc-col-header-cell a {
    color: #000000;
    text-decoration: none;
}

/* dayGridView view: cell headings */
#calendar.fc tr td.fc-daygrid-day .fc-daygrid-day-top a.fc-daygrid-day-number {
    color: #000000;
    text-decoration: none;
}

/* listMonth view: day headings */
#calendar.fc tr th a.fc-list-day-text {
    color: #000000;
    text-decoration: none;
}

/* listMonth view: day/side headings */
#calendar.fc tr th a.fc-list-day-side-text {
    color: #000000;
    text-decoration: none;
}

/* listMonth view: event link (time) */
#calendar.fc tr:not(.event-past) td.fc-list-event-time {
    color: #0d6efd;
    text-decoration: underline;
}

/* listMonth view: event link */
#calendar.fc tr td.fc-list-event-title a {
    color: #0d6efd;
    text-decoration: underline;
}

/* dayGridMonth View: */
/* all event descriptions should display with normall text - not bold */
#calendar.fc a.fc-daygrid-dot-event .fc-event-title {
    font-weight: normal;
}

/* listMonth View: */
/* disable links for past events */
#calendar.fc .event-past a {
    color: #000000 !important;
    text-decoration: none !important;
    font-weight: normal;
    font-style: italic;
}

#calendar.fc .fc-daygrid a.fc-daygrid-dot-event.event-past,
#calendar.fc .fc-daygrid a.fc-daygrid-dot-event.event-past .fc-event-title {
    /*color: #000000 !important;*/
    text-decoration: none !important;
    font-weight: normal;
    font-style: italic;
}

#calendar.fc .fc-daygrid a.fc-daygrid-event.event-past {
    font-weight: normal;
    font-style: italic;
}

#calendar.fc tr.event-past span.reg-now {
    display: none;
}

/* Secondary calendars */
/* special case for hybrid events in listMonth view */
#calendarPartial.fc tr.event-location-hybrid-multiday .fc-list-event-time {
    visibility: hidden;
}

/* dayGridView view: column headings */
#calendarPartial.fc tr th.fc-col-header-cell a {
    color: #000000;
    text-decoration: none;
}

/* dayGridView view: cell headings */
#calendarPartial.fc tr td.fc-daygrid-day .fc-daygrid-day-top a.fc-daygrid-day-number {
    color: #000000;
    text-decoration: none;
}

/* listMonth view: day headings */
#calendarPartial.fc tr th a.fc-list-day-text {
    color: #000000;
    text-decoration: none;
}

/* listMonth view: day/side headings */
#calendarPartial.fc tr th a.fc-list-day-side-text {
    color: #000000;
    text-decoration: none;
}

/* listMonth view: event link (time) */
#calendarPartial.fc tr:not(.event-past) td.fc-list-event-time {
    color: #0d6efd;
    text-decoration: underline;
}

/* listMonth view: event link */
#calendarPartial.fc tr td.fc-list-event-title a {
    color: #0d6efd;
    text-decoration: underline;
}

/* disable links for past events */
#calendarPartial.fc .event-past a {
    color: #000000 !important;
    text-decoration: none !important;
    font-weight: normal;
    font-style: italic;
}

#calendarPartial.fc .fc-daygrid a.fc-daygrid-dot-event.event-past,
#calendarPartial.fc .fc-daygrid a.fc-daygrid-dot-event.event-past .fc-event-title {
    color: #000000 !important;
    text-decoration: none !important;
    font-weight: normal;
    font-style: italic;
}

#calendarPartial.fc .fc-daygrid a.fc-daygrid-event.event-past {
    font-weight: normal;
    font-style: italic;
}

#calendarPartial.fc tr.event-past span.reg-now {
    display: none;
}

/* Classes to make each location type appear with their own colors in list views: */
.fc-list-table tr.event-location-inperson td.fc-list-event-graphic span.fc-list-event-dot {
    color: #007b7a !important;
    border-color: #007b7a !important;
}

.fc-list-table tr.event-location-virtual td.fc-list-event-graphic span.fc-list-event-dot {
    color: #fbb040 !important;
    border-color: #fbb040 !important;
}

.fc-list-table tr.event-location-hybrid td.fc-list-event-graphic span.fc-list-event-dot, 
.fc-list-table tr.event-location-hybrid-multiday td.fc-list-event-graphic span.fc-list-event-dot {
    color: #343463 !important;
    border-color: #343463 !important;
}

.fc-daygrid-body .fc-daygrid-event .fc-daygrid-event-dot {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Classes to make each location type appear with their own colors in grid views: */
.fc-daygrid-body a.event-location-inperson {
    color: #ffffff !important;
    background-color: #007b7a !important;
    border-color: #007b7a !important;
}

.fc-daygrid-body a.event-location-virtual {
    color: #ffffff !important;
    background-color: #fbb040 !important;
    border-color: #fbb040 !important;
}

.fc-daygrid-body a.event-location-hybrid,
.fc-daygrid-body a.event-location-hybrid-multiday {
    color: #ffffff !important;
    background-color: #343463 !important;
    border-color: #343463 !important;
}

/* Classes for color legend: */
.float-right {
    float:right;
}

.undercal {
    margin-top:0;
}

.undercal dl#clegend {
    margin-top: -20px;
}

dl#clegend {
    margin-top: 5px;
    margin-bottom: 10px;
}

    dl#clegend dt {
        display: inline-block;
        margin-left: 20px;
        margin-right: 3px;
    }

    dl#clegend.listMonth dt span.fc-list-event-dot {
        display: inline-block;
        box-sizing: content-box;
        width: 0;
        height: 0;
        border: 5px solid #3788d8;
        border: calc(var(--fc-list-event-dot-width,10px)/ 2) solid var(--fc-event-border-color,#3788d8);
        border-radius: 5px;
        border-radius: calc(var(--fc-list-event-dot-width,10px)/ 2);
    }

    dl#clegend.dayGridMonth dt span.fc-list-event-dot {
        display: inline-block;
        box-sizing: content-box;
        width: 16px;
        height: 11px;
    }

    dl#clegend dt.event-location-inperson span.fc-list-event-dot {
        color: #007b7a !important;
        background-color: #007b7a !important;
        border-color: #007b7a !important;
    }

    dl#clegend dt.event-location-virtual span.fc-list-event-dot {
        color: #fbb040 !important;
        background-color: #fbb040 !important;
        border-color: #fbb040 !important;
    }

    dl#clegend dt.event-location-hybrid span.fc-list-event-dot,
    dl#clegend dt.event-location-hybrid-multiday span.fc-list-event-dot {
        color: #343463 !important;
        background-color: #343463 !important;
        border-color: #343463 !important;
    }

    dl#clegend dt.event-location-web span.fc-list-event-dot {
        color: #3788D8 !important;
        background-color: #3788D8 !important;
        border-color: #3788D8 !important;
    }

    dl#clegend dd {
        display: inline-block;
        white-space: nowrap;
        font-size: 0.85em;
    }
