table.cog-locum-calendar thead a {
	text-decoration: none;
	display: flex;
	gap: 15px;
	align-content: center;
	justify-content: center;
}

table.cog-locum-calendar thead a svg {
	width: 12px;
}

table.cog-locum-calendar thead tr.divider th {
	padding: 2px;
	background: #c2c2c2;
}

table.cog-locum-calendar tbody tr,
table.cog-locum-calendar tbody tr:hover {
	background: transparent;
}
table.cog-locum-calendar tbody tr td {
	background: #fff;
	text-align: center;
	position: relative;
	padding: 45px 15px;
}

table.cog-locum-calendar tbody tr td.muted {
	color: #aaa;
}

table.cog-locum-calendar tbody tr td:before,
table.cog-locum-calendar tbody tr td.muted:before  {
	background: #f6f6f6 !important;
	content: '';
	position: absolute;
	top: 0;
	left:0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

table.cog-locum-calendar tbody tr td:before {
	background: #fff!important;
}

.cog-locum-calendar-legend,
.cog-locum-calendar-legend p {
	display: flex;
	gap: 15px;
	align-items: center;
}

.cog-locum-calendar-legend legend {
	width: 25px;
	height: 25px;
	border: 1px solid #999;
	position: relative;
}

.cog-locum-calendar-legend legend:before,
.cog-locum-calendar-legend legend:after,
table.cog-locum-calendar tbody tr td.am:after,
table.cog-locum-calendar tbody tr td.pm:after,
table.cog-locum-calendar tbody tr td.am_pm:after {
	content: '';
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	z-index: 0;
}

table.cog-locum-calendar tbody tr td.am,
table.cog-locum-calendar tbody tr td.pm,
table.cog-locum-calendar tbody tr td.am_pm {
	color: #000;
}

.cog-locum-calendar-legend legend:before,
.cog-locum-calendar-legend legend:after,
table.cog-locum-calendar tbody tr td.muted {
	background: #EEE;
}

table.cog-locum-calendar tbody tr td span {
	position: relative;
	z-index: 1;
}

table.cog-locum-calendar tbody tr td {
	width: 14.28%;
}

table.cog-locum-calendar tbody tr td.today {
	font-weight: bold;
}

table.cog-locum-calendar thead th.weekend,
table.cog-locum-calendar tbody tr td.weekend {
	color: #AAA !important;
}
table.cog-locum-calendar thead th.weekend,
table.cog-locum-calendar tbody tr td.weekend:before {
	background-color: #EEE !important;
}

table.cog-locum-calendar tbody tr td.weekend:after {
	display: none;
}

table.cog-locum-calendar tbody tr td.am:after,
.cog-locum-calendar-legend legend.am:after {
	background: rgb(0,255,6);
	background: -moz-linear-gradient(145deg, rgba(0,255,6,0.5) 0%, rgba(0,255,6,0.5) 50%, rgba(255,14,0,0) 50%);
	background: -webkit-linear-gradient(145deg, rgba(0,255,6,0.5) 0%, rgba(0,255,6,0.5) 50%, rgba(255,14,0,0) 50%);
	background: linear-gradient(145deg, rgba(0,255,6,0.5) 0%, rgba(0,255,6,0.5) 50%, rgba(255,14,0,0) 50%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ff06",endColorstr="#ff0e00",GradientType=1);
}

table.cog-locum-calendar tbody tr td.pm:after,
.cog-locum-calendar-legend legend.pm:after {
	background: rgb(255,14,0);
	background: -moz-linear-gradient(145deg, rgba(255,14,0,0) 0%, rgba(255,14,0,0) 50%, rgba(0,255,6,0.5) 50%);
	background: -webkit-linear-gradient(145deg, rgba(255,14,0,0) 0%, rgba(255,14,0,0) 50%, rgba(0,255,6,0.5) 50%);
	background: linear-gradient(145deg, rgba(255,14,0,0) 0%, rgba(255,14,0,0) 50%, rgba(0,255,6,0.5) 50%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff0e00",endColorstr="#00ff06",GradientType=1);
}

table.cog-locum-calendar tbody tr td.am_pm:after,
.cog-locum-calendar-legend legend.am_pm:after {
	background: rgba(0,255,6, 0.5) !important;
}