@import "../../scss/variables";

/*!
 * FullCalendar v3.9.0
 * Docs & License: https://fullcalendar.io/
 * (c) 2018 Adam Shaw
 */

/*!
* FullCalendar v3.9.0 Print Stylesheet
* Docs & License: https://fullcalendar.io/
* (c) 2018 Adam Shaw
*/

.fc-bg,
.fc-bgevent-container,
.fc-bgevent-skeleton,
.fc-business-container,
.fc-event .fc-resizer,
.fc-helper-container,
.fc-helper-skeleton,
.fc-highlight-container,
.fc-highlight-skeleton {
    display: none;
}

.fc tbody .fc-row {
    min-height: 0 !important;
}

.fc-time-grid {
    min-height: 0 !important;

    .fc-event {
        &.fc-not-end:after,
        &.fc-not-start:before {
            content: "...";
        }
    }
}

.fc {
    max-width: 100% !important;
}

.fc-event {
    background: $white !important;
    color: $black !important;
    page-break-inside: avoid;
}

.fc {
    hr,
    tbody,
    td,
    th,
    thead {
        border-color: #ccc !important;
        background: $white !important;
    }
}

.fc-row {
    border-color: #ccc !important;
    background: $white !important;
}

.fc tbody .fc-row {
    height: auto !important;

    .fc-content-skeleton {
        position: static;
        padding-bottom: 0 !important;

        tbody tr:last-child td {
            padding-bottom: 1em;
        }

        table {
            height: 1em;
        }
    }
}

.fc-more,
.fc-more-cell {
    display: none;
}

.fc {
    tr.fc-limited {
        display: table-row !important;
    }

    td.fc-limited {
        display: table-cell !important;
    }
}

.fc-agenda-view .fc-axis,
.fc-popover,
.fc-slats,
.fc-time-grid hr,
.fc button,
.fc-button-group {
    display: none;
}

.fc-time-grid {
    .fc-event .fc-time span {
        display: none;
    }

    .fc-content-skeleton {
        position: static;

        table {
            height: 4em;
        }
    }

    .fc-event-container {
        margin: 0 !important;
    }

    .fc-event {
        position: static !important;
        margin: 3px 2px !important;

        &.fc-not-end {
            border-bottom-width: 1px !important;
        }

        &.fc-not-start {
            border-top-width: 1px !important;
        }

        .fc-time {
            white-space: normal !important;

            &:after {
                content: attr(data-full);
            }
        }
    }
}

.fc-day-grid-container,
.fc-scroller,
.fc-time-grid-container {
    overflow: visible !important;
    height: auto !important;
}

.fc-row {
    border: 0 !important;
    margin: 0 !important;
}
