﻿/* Main styles for the FullCalendar library */

div.fc-view table tbody {
    background: white;
}

div.fc-daygrid table tbody tr:nth-child(2n),
div.fc-list table tbody tr:nth-child(2n) {
    background: transparent !important;
}

.fc-toolbar-title {
    text-align: center;
}

.fc-multimonth-title:hover {
    color: navy;
    cursor: pointer;
    text-decoration: underline;
}

.fc-event-time {
    text-align: left;
    align-items: start;
}

.fc-event-title {
    font-size: 12px;
    overflow-wrap: break-word;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
}

.fc-daygrid-event {
    align-items: start;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    padding: 2px 5px;
}

.fc-daygrid-event:hover {
    background: white;
}

.fc-daygrid-event-dot {
    align-self: center;
}

/*.fc-daygrid-day {
    background: white;
}*/

.fc-non-business {
    background: transparent !important;
}

.fc-daygrid-day:hover {
    background: rgb(251, 233, 126, 0.15);
}

.fc-day-past:hover {
    background: rgb(203, 203, 203, 0.1);
}

.fc-day-disabled {
    pointer-events: none;
}

.fc-col-header-cell-cushion, .fc-col-header-cell-cushion:hover {
    cursor: default !important;
    text-decoration: none !important;
}

.fc-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
}

@media (max-width: 1090px) {
    .fc-toolbar-title {
        font-size: 24px !important;
    }

    .fc-today-button {
        margin: 5px !important;
    }
}

@media (max-width: 800px) {
    .fc-toolbar-title {
        font-size: 18px !important;
    }
}

@media (max-width: 650px) {
    .fc .fc-toolbar-title {
        font-size: 14px !important;
    }

    .fc .fc-button {
        font-size: 11px !important;
        padding: 2px 6px;
    }

    .fc-prev-button, .fc-next-button {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .fc-toolbar {
        display: grid !important;
    }
}

/* General styles for calendar pages */

.calendar-day-unselectable .fc-daygrid-day-number {
    color: rgb(42, 42, 42, 0.7) !important;
}

.calendar-event-description {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

.calendar-event-description.truncated {
    display: -webkit-box;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.calendar-event-panel {
    height: 60% !important;
    width: 65% !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 0 5000px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    padding: 0;
    overflow: auto;
    z-index: 1000000;
}

.calendar-event-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 20px 0 20px;
}

.calendar-event-panel-title {
    font-weight: bold;
    font-size: 2em;
    margin: 0;
    line-height: 1.1;
    flex: 1 1 auto;
    word-break: break-word;
}

.calendar-event-panel-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    flex: 0 0 auto;
}

.calendar-event-panel-content {
    padding: 12px 20px 20px 20px;
    margin-top: 6px;
}

.calendar-event-panel-buttons {
    padding: 15px;
}

@media (max-width: 800px) {
    .calendar-event-panel {
        height: 65% !important;
        width: 85% !important;
    }

    .modal-window {
        position: absolute !important;
        height: 95% !important;
        width: 95% !important;
        top: 5px !important;
        left: 5px !important;
        margin: 5px !important;
    }
}
