#calendar .c-calendar__body {
    position: relative;
    overflow: auto;
}

#calendar .c-calendar__body .c-curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    -webkit-transition: opacity 250ms ease-out;
    -o-transition: opacity 250ms ease-out;
    transition: opacity 250ms ease-out;
}

#calendar:not(.is-loading) .c-calendar__body .c-curtain {
    opacity: 0;
    pointer-events: none;
}

#calendar .c-calendar__body .c-curtain .c-curtain__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFF;
    z-index: 3;
}

#calendar.is-loading .c-calendar__body .c-curtain .c-curtain__msg {
    z-index: 4;
}

#calendar:not(.is-loading) .c-calendar__body .c-curtain .c-curtain__overlay {
    opacity: 0;
}

#calendar .o-calendar-interval-icon {
    margin-left: 6px;
    font-size: 13px;
}

#calendar.is-loading .c-calendar__body .c-curtain {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    visibility: visible;
    cursor: progress;
    opacity: 1;
}

#calendar .ui-state-highlight {
    height: 20px;
    min-height: 20px;
    max-height: 20px;
}

.ui-tooltip {
    max-width: 200px;
}

#calendar.is-loading .c-calendar__body .c-curtain .c-curtain__overlay {
    opacity: .75;
}

.o-calendar {
    width: 100%;
    margin-top: 25px;
    margin-bottom: 25px;
    table-layout: fixed;
}

.o-calendar * {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixe */
}

@media only screen and (max-width: 600px) {
    .o-calendar * {
        font-size: 8px;
    }
}

.o-calendar .o-calendar-week-header {
    text-align: center;
    padding: 5px 0;
    border-bottom: 3px solid #429edb;
}

.o-calendar .o-calendar-month-separator {
    font-size: .9em;
    text-align: center;
    border-bottom: 2px solid #E1E1E1;
    color: #666666;
    line-height: 15px;
    background: #fbfbfb;
}

.o-calendar > tbody > tr:not(.o-calendar-month-separator) + tr {
    border-top: 2px solid #E1E1E1;
}

.o-calendar > tbody > tr:last-child {
    border-bottom: 2px solid #E1E1E1;
}

.o-calendar .o-calendar-day {
    /* background-color: #FFF; */
    width: 14.285%;
    min-width: 135px;
    margin-top: 0;
    margin-bottom: 0;
    min-height: 165px;
    position: relative;
    padding-top: 22px;
}

.c-calendar .o-calendar-day + .o-calendar-day {
    border-left: 2px solid #E1E1E1;
}

.c-calendar .o-calendar-day .o-calendar-new-item-label {
    display: none;
    padding: 3px;
    font-size: 11px;
    font-style: italic;
    color: #adadad;
    position: absolute;
    top: 1px;
    right: 8px;
}

.c-calendar .o-calendar-day .o-calendar-day__day {
    display: block;
    padding-left: 8px;
    padding-top: 2px;
    color: #bdc3c7;
    position: absolute;
    top: 0;
    left: 0;
}

.c-calendar .o-calendar-day .o-calendar-day__items {
    min-height: 80px;
    max-height: 165px;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.c-calendar .popover {
    padding: 0 !important;
}

.o-calendar .o-calendar-day.is-active {
    background-color: #ecf0f1;
}

.o-calendar .o-calendar-day.is-weekend {
    /* background-color: #F9F9F9; */
}

.o-calendar .o-calendar-day.is-today {
    background-color: rgba(206, 224, 242, .3);
}

.o-calendar .o-calendar-day.is-today .o-calendar-day__day {
    background: #655997;
    color: white !important;
    padding-right: 9px;
    padding-top: 0px;
    padding-bottom: 3px;
    text-align: center;
    display: block;
    min-height: 20px;
    line-height: 20px;
    box-sizing: border-box;
}

.o-calendar .o-calendar-day .o-calendar-day-number {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #777;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
    border: 1px solid #777;
    background-color: transparent;
}

.popover + .o-calendar-day .popover-content {
    word-wrap: break-word;
}

.o-calendar-day-popover-items tr td + td {
    padding-left: 10px;
}

.o-calendar-day-popover-items tr td:first-child {
    font-weight: bold;
    text-align: right;
}

.o-calendar-day-popover-items tr.s-project-separator td {
    padding-bottom: 15px;
}

.o-calendar .o-calendar-week {
    background-color: #FFF;
    width: 100%;
}

.c-calendar .o-calendar-day.o-calendar-selected {
    background-color: #e9ebf5;
    background-image: repeating-linear-gradient(-44deg, transparent, transparent 13px, rgba(255, 255, 255, 0.5) 7px, rgba(255, 255, 255, 0.5) 25px);
}

.c-calendar .o-calendar-day.o-calendar-selected.is-today {
    background-color: #e9f3f5;
}

.c-calendar .o-calendar-day.o-calendar-selected.is-weekend {
    background-color: #e9f5f4;
}

.c-calendar .o-calendar-day.o-calendar-selected * {
    color: #2c2f38;
}

.c-calendar .o-calendar-day.o-calendar-selected .o-calendar-day__item * {
    color: #4f4f4f !important;
}

.popover-content .o-calendar-add-btn-wrapper {
    text-align: center;
}

.popover-content .o-calendar-add-btn {
    margin-right: 5px;
    border: 1px solid #e1e1e1;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    padding: 8px;
    font-size: 20px;
    line-height: 46px;
    color: #4c576a;
}

.popover-content .o-calendar-add-btn:hover {
    background: #dfe6f8;
}

@media (max-width: 600px) {
    .c-calendar form {
        text-align: center;
    }
}

@media (min-width: 601px) {
    .c-calendar form > div:last-child {
        float: right;
    }
}

.s-none-indicator {
    color: #BDC3C7;
}

.o-calendar-day__item {
    min-height: 20px;
    font-size: .9em;
}

.o-calendar-day__item:not(.s-pill) {
    padding-left: 5px;
    padding-right: 5px;
}

.o-calendar-day__item.s-truncate:not(.s-pill) {
    white-space: nowrap;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.o-calendar-day__item.s-pill {
    border-color: transparent;
    border-style: solid;
    border-width: 0;
    padding: 2px 0 2px 5px;
}

.o-calendar-day__item.s-pill:not(.s-start):not(.s-end) {
    border-top-width: 1px;
    border-bottom-width: 1px;
}

.o-calendar-day__item.s-pill.s-start {
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    margin-left: 5px;
}

.o-calendar-day__item.s-pill.s-end {
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-right-width: 1px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-right: 5px;
}

.o-calendar-day__item.s-pill.s-filler {
    height: 25px;
    border-color: transparent;
    background: transparent;
}

.o-calendar-day__item.s-pill + .o-calendar-day__item.s-pill {
    margin-top: 2px;
}
