.calendar {
    position: relative;
}
.calendar #loading {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 9998;
    background: url('../img/loading.gif') center no-repeat #FFF;
    opacity: 0.9;
    filter: alpha(opacity=90);
}
.calendar #calendar {
    width: 100%;
    margin: 0 auto;
}
.calendar #calendar .fc-basic-view .fc-body .fc-row {
    min-height: 45px;
}
@media (min-width: 768px) {
    .calendar #calendar .fc-basic-view .fc-body .fc-row {
        height: 100px;
    }
}
@media (min-width: 992px) {
    .calendar #calendar .fc-basic-view .fc-body .fc-row {
        height: 112px;
    }
}
@media (min-width: 1200px) {
    .calendar #calendar .fc-basic-view .fc-body .fc-row {
        height: 130px;
    }
}
.calendar #calendar .fc-today {
    background-color:#4295C9 !important;
}
.calendar #calendar .fc-sat {
    color: gray;
}
.calendar #calendar .fc-sun {
    color: red;
}
.calendar #calendar .fc-day-grid-event .fc-content {
    text-overflow: ellipsis;
}
.calendar #calendar .fc-agendaWeek-button,
.calendar #calendar .fc-listWeek-button-desk {
    display: none;
}
@media (min-width: 768px) {
    .calendar #calendar .fc-agendaWeek-button,
    .calendar #calendar .fc-listWeek-button-desk  {
        display: block !important;
    }
    .calendar #calendar .fc-listWeek-button {
        display: none;
    }
}
.calendar #calendar .fc-today-button.fc-state-disabled {
    cursor: not-allowed;
}
.calendar #calendar .fc-today-button {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
@media (min-width: 768px) {
    .calendar #calendar .fc-today-button {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
}
.calendar #calendar .fc-toolbar .fc-center {
    padding-top: 10px;
}
.calendar #calendar .fc-toolbar .fc-center h2 {
    font-size: 20px;
}
.calendar #calendar .fc-view-container .fc-scroller {
    min-height: 250px;
    height: 100% !important;
}
.calendar #calendar .fc-toolbar button:focus {
    outline: none;
}
.calendar #calendar .fc-toolbar .fc-head .fc-button-group {
    margin-bottom: 10px;
}
.calendar #calendar .fc-toolbar .fc-head .fc-button-group.fc-right {
    float: right;
}
.calendar #calendar .fc-more-cell div {
    margin: 1px 2px 0;
    background-color: #f89406;
    border-radius: 3px;
    cursor: pointer;
}
@media (min-width: 768px) {
    .calendar #calendar .fc-more-cell div {
        margin: 1px 2px;
        position: relative;
        font-size: 14px;
        line-height: 1.3;
    }
}
.calendar #calendar .fc-more-cell div a {
    color: #000;
    text-decoration: none;
    pointer-events: none;
}
.calendar #calendar .fc-event {
    font-size: 14px;
    cursor: pointer;
}
.calendar #calendar .fc-agendaDay-view .fc-event {
    cursor: auto;
}
.calendar #calendar .fc-agendaDay-view .fc-time-grid-event .fc-time {
    margin-top: 2px;
    float: left;
    padding-right: 10px;
}
.calendar #calendar .fc-agendaDay-view .fc-more-cell div a {
    pointer-events: none;
}
@media (min-width: 768px) {
    .calendar #calendar .fc-agendaDay-view .fc-more-cell div a {
        pointer-events: inherit;
    }
}
@media (max-width: 767px) {
    .calendar #calendar .fc-month-view .fc-week td.fc-event-container a {
        top: 0;
        margin-top: 2px;
        margin-left: 1px;
        padding: 0;
        position: absolute;
        border-style: solid;
        border-width: 20px 20px 0 0;
        border-color: #f89306 transparent transparent transparent !important;
        border-radius: 0;
        background-color: transparent !important;
        pointer-events: none;
    }
}
.calendar #calendar .fc-month-view .fc-week td.fc-event-container .fc-content {
    display: none;
    cursor: pointer;
}
@media (min-width: 768px) {
    .calendar #calendar .fc-month-view .fc-week td.fc-event-container .fc-content {
        display: block;
    }
}
