/* Encorp Pacific (Canada) 2024 Site Design - Events Calendar CSS */
/* Last Updated: 2024.09.12 ET */
/* Used by: */
/* encp_events.css */
/* encp_sitepage.cfm */

h1 + p.calrange,
h2 + p.calrange {
	margin-top: -1em;
}

div.calcontrols {
	text-align: center;
	margin-bottom: 2rem;
}

table.monthlycalendar {
	width: 100%;
}

table.monthlycalendar th,
table.monthlycalendar td {
	box-sizing: border-box;
}

table.monthlycalendar th {
	width: 14.28%;
	color: white;
	line-height: 1.1;
	background-color: rgb(0,53,173);
	font-family: DIN, "Trebuchet MS", sans-serif;
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
	padding: 0.6em 1em 0.4em;
	border: 1px solid white;
}

table.monthlycalendar td {
	width: 14.28%;
	vertical-align: top;
	line-height: 1.1;
	text-align: right;
	padding: 0.25em 0.5em 1em;
	border: 1px solid white;
}

.weekdayevenmonth {
	background-color: rgb(206,218,237);
}

.weekendevenmonth {
	background-color: rgb(185,203,229);
}

.weekdayoddmonth {
	background-color: rgb(255,221,166);
}

.weekendoddmonth {
	background-color: rgb(255,207,128);
}

table.monthlycalendar td.today {
	background-color: rgb(180,240,180);
	border: 1px solid rgb(0,128,0);
}

.statholiday, .funholiday {
	background-color: rgb(220,220,220);
}

table.monthlycalendar td.ritwi {
	background-image: url('/images/encp_logo_ritwi-2016-win_40x20.png');
	background-repeat: no-repeat;
	background-position: left top;
}

div.holiday {
	font-size: 12px;
	line-height: 1.2;
	color: rgb(51,51,51);
}

a.caldate, a.caldate:visited {
	color: black;
	text-decoration: none;
}

a.caldate:hover {
	color: rgb(0,153,0);
	background-color: rgb(204,255,204);
	text-decoration: underline;
}

a.caldate span.calmonth {
	display: none;
}

td.today a.caldate span.calmonth,
td.first a.caldate span.calmonth {
	display: inline;
}

a.calevent,
a.calevent:visited {
	position: relative;
	overflow: hidden;
	clear: both;
	display: block;
	color: black;
	background-color: white;
	font-size: 11px;
	line-height: 1;
	text-align: left;
	margin: 0.25em 0em;
	padding: 0.25em;
	border: 1px solid rgb(0,0,255);
	text-decoration: none;
	box-shadow: 1px 2px 5px rgba(0,0,0,0.4);
	border-radius: 3px;
	transition-property: transform, background-color;
	transition-duration: 0.5s;
}

.ritwievent {
	background-color: rgb(255,240,205) !important;
	border: 3px solid rgb(141,68,51) !important;
}

.calevent.exclusive {
	background-color: rgb(255,240,205) !important;
	border: 1px solid rgb(255,159,0) !important;
}

.calevent.exclusive::before {
	content: 'Internal:';
	font-style: italic;
	float: left;
	margin-right: 0.5em;
}

a.calevent:hover {
	color: rgb(0,0,153) !important;
	background-image: none;
	background-color: rgb(220,240,255) !important;
	text-decoration: none;
	transform: scale(1.3);
}

a.calevent.exclusive:hover {
	color: black !important;
	background-color: rgb(255,240,205)!important;
}

a.errcalevent,
a.errcalevent:visited {
	display: block;
	color: red;
	background-color: rgb(255,240,240);
	font-size: 8px;
	line-height: 1;
	text-align: left;
	margin: 0.25em 0em;
	padding: 0.25em;
	border: 1px dashed red;
	text-decoration: none;
}

a.errcalevent:hover {
	color: rgb(102,0,0);
	background-color: rgb(255,204,204);
	text-decoration: none;
}

div.time {
	font-weight: bold;
	margin-bottom: 0.25em;
}

table.monthlycalendar td.endmonth {
	border-bottom-width: 10px;
}

table.eventdetail th {
	width: 6em;
	background-color: rgb(0,53,173);
	color: white;
	font-family: DIN, "Trebuchet MS", sans-serif;
	font-weight: bold;
	text-align: left;
	text-transform: uppercase;
	vertical-align: top;
	padding: 0.5em 1em 0.5em 0.5em;
}

table.eventdetail td {
	background-color: rgb(206,218,237);
	vertical-align: top;
	padding: 0.5em 1em;
}

table.eventdetail td table.nested {
	margin-top: 0.5em;
}

table.eventdetail td table.nested td {
	padding: 0.25em 1em 0.25em 0em;
}

@media only screen and (max-width : 780px) {

	div.calcontrols {
		float: none;
		text-align: left;
	}

	table.monthlycalendar tr,
	table.monthlycalendar th,
	table.monthlycalendar td {
		display: block;
		width: 100%;
		/* text-align: left; */
	}

	table.monthlycalendar tr.weekhead { display: none; }

	table.monthlycalendar td {
		position: relative;
		overflow: hidden;
		padding: 5px 10px 10px;
	}

	a.caldate span.calmonth {
		display: inline;
	}

	td::before {
		display: inline-block;
		float: left;
		width: 7em;
		background-color: rgb(0,53,173);
		color: white;
		font-family: DIN, "Trebuchet MS", sans-serif;
		font-weight: bold;
		font-size: 14px;
		text-align: center;
		text-transform: uppercase;
		padding: 0.6em 14px 0.4em;
		margin: -5px 10px 10px -10px;
	}

	td.sun::before { content: 'Sunday'; }
	td.mon::before { content: 'Monday'; }
	td.tue::before { content: 'Tuesday'; }
	td.wed::before { content: 'Wednesday'; }
	td.thu::before { content: 'Thursday'; }
	td.fri::before { content: 'Friday'; }
	td.sat::before { content: 'Saturday'; }

	a.calevent {
		font-size: 14px;
		line-height: 1.1em;
		clear: both;
		padding: 0.5em;
	}

	a.calevent:hover {
		transform: none;
	}

}
