/* Overall wrapper */

.monthly {
    background: #F3F3F5;
    color: #545454;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
}


/* Top bar containing title, navigation, and buttons */

.monthly-header {
    position: relative;
    text-align: center;
    padding: 10px;
    background: #fff;
    height: 4em;
    box-sizing: border-box;
}


/* Center area of top bar containing title and buttons */

.monthly-header-title {
    width: 100%;
    font-size: .8em;
    text-transform: uppercase;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}


/* Buttons for reverting to "today", and closing event list */

.monthly-header-title a:link,
.monthly-header-title a:visited {
    display: inline-block;
    border: 1px solid #ccc;
    color: #545454;
    text-decoration: none;
    font-size: 12px;
    height: 2em;
    padding: 3px 10px 1px;
    box-sizing: border-box;
    transition: background .1s;
}


/* Add some roundy-ness */

.monthly-header-title a:first-of-type {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.monthly-header-title a:last-of-type {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.monthly-header-title a:hover {
    background: #8b8b8b;
    border: 1px solid #8b8b8b;
    color: #fff;
}

.monthly-header-title a:active {
    background: #222;
    border: 1px solid #222;
    transition: none;
}


/* current month/yr block */

.monthly-header-title-date,
.monthly-header-title-date:hover {
    background: #eee!important;
    border: 1px solid #ccc!important;
    color: #545454!important;
    cursor: default;
}


/* Button to reset to current month */

.monthly-reset {
    border-left: 0!important;
}


/* Button to return to month view */

.monthly-cal {
    border-right: 0!important;
}


/* wrapper for left button to make the clickable area bigger */

.monthly-prev:after,
.monthly-next:after {
    font-family: 'Font Awesome 5 pro';
    font-size: 1em;
    font-style: normal;
    font-weight: normal;
    color: #0F3D39;
    display: inline-block;
}

.monthly-next,
.monthly-prev {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    opacity: 1;
    display: inline-block;
    padding: 0.5em 1em;
}

.monthly-prev {
    left: 0;
}

.monthly-next {
    right: 0;
}

.monthly-prev:hover {
    opacity: 1;
}


/* Left Arrow */

.monthly-prev:after {
    content: "\f053";
    /*position: absolute;
	top:50%;
	left:50%;
	border-left:2px solid #222;
	border-bottom:2px solid #222;
	width:5px;
	height:5px;
	margin:-3px 0 0 -5px;
	-webkit-transform:rotate(45deg) ;
		-ms-transform:rotate(45deg) ;
	        transform:rotate(45deg) ;*/
}


/* wrapper for right button to make the clickable area bigger */

.monthly-next:hover {
    opacity: 1;
}


/* Right Arrow */

.monthly-next:after {
    content: "\f054";
    /*position: absolute;
	top:50%;
	left:50%;
	border-right:2px solid #222;
	border-top:2px solid #222;
	width:5px;
	height:5px;
	margin:-3px 0 0 -5px;
	-webkit-transform:rotate(45deg) ;
		-ms-transform:rotate(45deg) ;
	        transform:rotate(45deg) ;*/
}


/* Day of the week headings */

.monthly-day-title-wrap {
    display: table;
    table-layout: fixed;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #EBEBEB;
}

.monthly-day-title-wrap div {
    width: 14.28%!important;
    display: table-cell;
    box-sizing: border-box;
    position: relative;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    font-size: 11px;
}


/* Calendar days wrapper */

.monthly-day-wrap {
    display: table;
    table-layout: fixed;
    width: 100%;
    overflow: hidden;
}

.monthly-week {
    display: table-row;
    width: 100%;
}


/* Calendar Days */

.monthly-day,
.monthly-day-blank {
    width: 14.28%!important;
    display: table-cell;
    vertical-align: top;
    box-sizing: border-box;
    position: relative;
    font-weight: bold;
    color: inherit;
    background: #fff;
    box-shadow: 0 0 0 1px #EBEBEB;
    -webkit-transition: .25s;
    transition: .25s;
    padding: 0;
    text-decoration: none;
}


/* Trick to make the days' width equal their height */

.monthly-day:before {
    content: "";
    display: block;
    padding-top: 100%;
    float: left;
}


/* Hover effect for non event calendar days */

.monthly-day-wrap>a:hover {
    background: #A1C2E3;
}


/* Days that are part of previous or next month */

.monthly-day-blank {
    background: #F3F3F5;
}


/* Event calendar day number styles */

.monthly-day-event>.monthly-day-number {
    position: absolute;
    line-height: 1em;
    top: 2px;
    left: 2px;
    font-size: 11px;
}


/* Non-Event calendar day number styles */

.monthly-day-pick {}

.monthly-day-pick>.monthly-day-number {
    line-height: 1em;
    font-size: 11px;
    padding-top: 35%;
}

.monthly-day-pick>.monthly-indicator-wrap {
    margin: 0;
}


/* Days in the past in "picker" mode */

.monthly-past-day:after {
    content: '';
    width: 150%;
    height: 2px;
    -webkit-transform-origin: left top;
    -ms-transform-origin: left top;
    transform-origin: left top;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    background: rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 0;
    top: 0;
}

.monthly-past-day:hover {
    background: #fff!important;
}


/* Current day style */

.monthly-today .monthly-day-number {
    color: #FFF;
    background: #EA6565;
    border-radius: 20px;
    top: 1px;
    left: 1px;
    font-size: 10px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
}

.monthly-day-pick.monthly-today .monthly-day-number {
    padding: 0;
    margin: 22% 22% 0 22%;
}


/* Wrapper around events */

.monthly-indicator-wrap {
    position: relative;
    text-align: center;
    line-height: 0;
    max-width: 20px;
    margin: 0 auto;
    padding-top: 40%;
}


/* Event indicator dots */

.monthly-day .monthly-event-indicator {
    display: inline-block;
    margin: 1px;
    width: 8px;
    height: 8px;
    border-radius: 6px;
    vertical-align: middle;
    border-radius: 6px;
    background: #7BA7CE;
    font-size: 0;
    color: transparent;
}

.monthly-day .monthly-event-indicator:hover {
    cursor: pointer;
}


/* Listing of events under calendar */

.monthly-event-list {
    background: rgba(233, 235, 236, 0.9);
    overflow: auto;
    position: absolute;
    top: 42px;
    width: 100%;
    height: calc(100% - 42px);
    display: none;
    -webkit-transition: .25s;
    transition: .25s;
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}


/* Days in Events List */

.monthly-list-item {
    position: relative;
    padding: 10px 10px 5px 50px;
    display: none;
    border-top: 1px solid #D6D6D6;
    text-align: left;
}

.monthly-list-item:after {
    content: 'No Events';
    padding: 4px 10px;
    display: block;
    margin-bottom: 5px;
}

.monthly-event-list .monthly-today .monthly-event-list-date {
    color: #EA6565;
}


/* Events in Events List */

.monthly-event-list .listed-event {
    display: block;
    color: #fff;
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 5px;
}

.monthly-list-item a:link,
.monthly-list-item a:visited {
    text-decoration: none;
}

.item-has-event {
    display: block;
}

.item-has-event:after {
    display: none!important;
}

.monthly-event-list-date {
    width: 50px;
    position: absolute;
    left: 0;
    top: 13px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2em;
}

.monthly-list-time-start,
.monthly-list-time-end {
    font-size: .8em;
    display: inline-block;
}

.monthly-list-time-end:not(:empty):before {
    content: '-';
    padding: 0 2px;
}


/* Events List custom webkit scrollbar */

.monthly-event-list::-webkit-scrollbar {
    width: 9px;
}


/* Track */

.monthly-event-list::-webkit-scrollbar-track {
    background: none;
}


/* Handle */

.monthly-event-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border: 1px solid #E9EBEC;
    border-radius: 10px;
}

.monthly-event-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* Increase font & spacing over larger size */

@media (min-width: 400px) {
    .monthly-day-number {
        top: 5px;
        left: 5px;
        font-size: 13px;
    }
}


/* Styles for large mode where text is revealed within events */

@media (min-width: 600px) {
    .monthly-day-event {
        padding-top: 20px;
    }
    .monthly-day-event:before {
        padding-top: 77%;
    }
    .monthly-day-event>.monthly-indicator-wrap {
        width: auto;
        max-width: none;
    }
    .monthly-indicator-wrap {
        padding: 0;
    }
    .monthly-day .monthly-event-indicator {
        display: block;
        margin: 0 0 1px 0;
        width: auto;
        height: 20px;
        font-size: 10px;
        padding: 4px;
        border-radius: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #fff;
        text-shadow: 0 0 2px rgba(0, 0, 0, .2);
        text-decoration: none;
        line-height: 1em;
        white-space: nowrap;
        box-sizing: border-box;
    }
}

.printcad .monthly-day .monthly-event-indicator {
    height: auto;
}


/*Print*/

@media print {
    .monthly-day {
        border: 1px solid #808080;
    }
    .printcad .monthly-day .monthly-event-indicator {
        font-size: 10px;
        color: #333333;
        font-weight: normal;
        display: block;
        margin: 0 0 2px 0;
        width: auto;
        height: auto;
        padding: 0;
        border-radius: 0;
        overflow: hidden;
        text-overflow: initial;
        text-shadow: none;
        text-decoration: none;
        line-height: 1em;
        white-space: normal;
        box-sizing: border-box;
        border-bottom: 1px solid #808080;
    }
    .monthly-day-event>.monthly-indicator-wrap {
        max-width: none!important;
    }
}


/*Print*/