/* CONTAINER */
.calendor {
	font-family: Helvetica, sans-serif;
	-webkit-touch-callout: none;
	  -webkit-user-select: none;
	   -khtml-user-select: none;
	     -moz-user-select: none;
	      -ms-user-select: none;
	          user-select: none;
	flex-direction: column;
	box-sizing: border-box;
	min-height: 60vh;
	font-size: 16px;
	display: flex;
	width: 100%;
	margin-top: 15px;
}

/* HEAD - CONTROLS */
.calendor-head {
	background-color: #00a2f3;
	align-items: center;
	flex-direction: row;
	font-size: 1.2em;
	padding: 0.5em 1em;
	display: flex;
	color: white;
	width: 100%;
	height: 3em;
}
.calendor-head > .fa {
	position: relative;
	font-size: 1.2em;
	cursor: pointer;
	height: 2em;
	width: 2em;
}
.calendor-head > .fa::before {
	transform: translateX(-50%) translateY(-50%);
	position: absolute;
	left: 50%;
	top: 50%;
}

.calendor-head > .fa:hover {
	transform: scale(1.1);
}
.calendor-head > .fa:active {
	transform: scale(1.05);
}
.calendor-control {
	display: inline-block;
	text-align: center;
	font-weight: bold;
	cursor: pointer;
	margin: 0 0.3em;
	flex: 1;
}
input.calendor-start-date {
	background-color: transparent;
	display: inline-block;
	text-align: center;
	font-weight: bold;
	margin: 0 0.3em;
	cursor: pointer;
	border: none;
	color: white;
	width: 258px;
}
.calendor-control.calendor-start-date:hover {
	text-decoration: underline;
}
.calendor-control:hover {
	transform: scale(1.05);
}
.calendor-control:active {
	transform: scale(1.02);
}

/* BODY - DAY CONTAINER */
.calendor-body {
	border-bottom: 1px solid #dcdcdc;
	border-right: 1px solid #dcdcdc;
	border-left: 1px solid #dcdcdc;
	flex-direction: row;
	display: flex;
	width: 100%;
	flex: 1;
}

/* DAY */
.calendor-day {
	flex-direction: column;
	align-items: stretch;
	position: relative;
	display: flex;
	min-width: 0;
	flex: 1;
}
.calendor-col-head {
	background-color: #03a9f3;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-weight: bold;
	display: flex;
	margin: 0.2em;
	height: 3.5em;
	color: white;
}
.calendor-col-body {
	flex-direction: column;
	align-items: stretch;
	position: relative;
	display: flex;
	min-width: 0;
	flex: 1;
}
.calendor-hour {
	transition: opacitu 0.5s ease-in-out;
	border-left: 1px solid #eaeaea;
	border-top: 1px solid #eaeaea;
	background-color: #ffffff;
	justify-content: center;
	text-wrap: ellipsis;
	align-items: center;
	white-space: nowrap;
	position: relative;
	text-align: center;
	padding: 0 0.5em;
	overflow: hidden;
	display: flex;
	flex: 1;
}
.calendor-hour.calendor-occupied {
	opacity: 0;
}
.calendor-hour:hover::before {
	transform: translateX(-50%) translateY(-50%);
	position: absolute;
	font-weight: bold;
	font-size: 2em;
	color: white;
	left: 50%;
	top: 50%;
}
.calendor-hour:nth-child(2n+1) {
	background-color: #fafafa;
}
.calendor-hour.calendor-free {
	background-color: #f7fff6;
	cursor: pointer;
}
.calendor-hour.calendor-free:nth-child(2n+1) {
	background-color: #ebfbe9;
}
.calendor-hour.calendor-free:hover {
	background-color: #00a2f3;/*#c4e3ff;*/
}

/* HOUR GRID */
.calendor-hours {
	flex-direction: column;
	align-items: stretch;
	display: flex;
	width: 5em;
}
.calendor-hours .calendor-hour {
	background-color: #efefef;
	justify-content: flex-end;
	text-align: right;
}
.calendor-hours .calendor-hour:nth-child(2n+1) {
	background-color: #e7e7e7;
}

/* UNAVAILABLE */
.calendor-hour.calendor-away {
	background-color: #efefef;
	color: #bababa;
	cursor: unset;
}
.calendor-hour.calendor-away:nth-child(2n+1) {
	background-color: #e7e7e7;
}

/* EVENT */
.calendor-event {
	-webkit-animation: calendor-event-in 1s bounce-in forwards;
	        animation: calendor-event-in 1s bounce-in forwards;
	/* border: 2px solid white; */
	text-overflow: ellipsis;
	background-color: #00c291ba;
	position: absolute;
	text-align: center;
	padding-top: 0.2em;
	overflow: hidden;
	cursor: pointer;
	display: block;
	color: white;
	width: 98%;
	left: 1%;
	border-radius: 7px;
}
.calendor-event-text {
	transform: translateX(-50%) translateY(-50%);
	position: absolute;
	width: max-content;
	left: 50%;
	top: 50%;
}
.calendor-event:hover {
	background-color: #55c291ba;
}
.calendor-hide-confirmed .calendor-event.calendor-confirmed {
	display: none !important;
}
.calendor-hide-unconfirmed .calendor-event.calendor-unconfirmed {
	display: none !important;
}
.calendor-event.calendor-unconfirmed {
	background-color: #ff0000ba;
}
.calendor-event.calendor-unconfirmed:hover {
	background-color: #ff5555ba;
}
.calendor-event.calendor-confirmed {
	background-color: #00c291ba;
	z-index: 9999999999;
}
.calendor-event.calendor-confirmed:hover {
	background-color: #55c291ba;
}
.calendor-compact .calendor-event {
	color: transparent;
}
@keyframes calendor-event-in {
	from { transform: scale(0.001); opacity: 0; }
	to { }
}

/* EDIT MODES - EVENTS */
.calendor-mode-events .calendor-free:hover::before {
	content: "+";
}
/* EDIT MODES - AVAILABILITY */
.calendor-mode-available .calendor-event {
	display: none;
}
.calendor-mode-available .calendor-hour.calendor-away {
	background-color: #ffdada;
	cursor: pointer;
	color: #c47777;
}
.calendor-mode-available .calendor-hour.calendor-away:nth-child(2n+1) {
	background-color: #fdcdcd;
}
.calendor-mode-available .calendor-free {
	background-color: #f7fff6;
}
.calendor-mode-available .calendor-free:nth-child(2n+1) {
	background-color: #ebfbe9;
}

.calendor-mode-available .calendor-free:hover,
.calendor-mode-available .calendor-free:nth-child(2n+1):hover {
	background-color: #ff9999;
}
.calendor-mode-available .calendor-free:hover::before {
	content: "-";
}

.calendor-mode-available .calendor-away:hover,
.calendor-mode-available .calendor-away:nth-child(2n+1):hover {
	background-color: #00c292;
	color: transparent;
}
.calendor-mode-available .calendor-away:hover::before {
	content: "+";
}

/* EDIT MODES - COLORS */
.calendor-mode-available .calendor-head {
	background-color: #00c292;
}
.calendor-mode-available .calendor-col-head {
	background-color: #00c292;
}
