/* Toolbar */

#location_selector {
	background-color: #f5f5f5;
	border: 1px solid lightgray;
	border-radius: 5px;
	padding: 5px 10px;
	text-align: center;
}

/* Timetable design */

div#timetable {
	width: 90%;
	display: grid;
	grid-template-columns: 40px repeat(7, 1fr);
	grid-template-rows: repeat(2, 25px) repeat(62, 1fr);
	grid-column-gap: 3px;
}

div.head_week {
	grid-column: 1 / 9;
	grid-row: 1;

	background-color: lightgray;
	text-align: center;
	font-weight: bold;
	line-height: 25px;
	color: #313131;

	padding-right: 50px;
}

div.head_week span {
	text-decoration: underline;
}

div.head_week button {
	height: 22px;
	width: 22px;
	float: left;

	background: none;
	border: none;
	line-height: 22px;
	cursor: pointer;
	margin-left: 3px;
}

div.head_week button:hover {
	color: black;
}

div.head_days {
	text-align: center;
	font-weight: bold;
	color: #313131;
	background-color: lightgray;

	height: 25px;
	line-height: 25px;
}

div.head_days span {
	float: right;
	font-size: 11px;
	margin-right: 1ch;
	margin-left: -3ch;
	color: #555;
	font-variant-position: sub;
}

div.head_hours {
	grid-column: 1;

	text-align: right;
	font-size: 10px;
	font-weight: bold;
	color: #313131;
	position: relative;
	top: -6px;
	right: 10px;
}

div.line {
	grid-column: 2 / 9;
	border-top: 1px dotted lightgrey;
}

div.line.halfs {
	border-color: rgb(230, 230, 230);
}

div.line.quarters {
	border-color: transparent;
}

div.line:hover {
	border-color: grey;
}

div.schedule_cell {
	width: 100%;
	display: flex;
	justify-content: center;
	flex-direction: column;
	overflow: hidden;

	border-radius: 10px;
	background-color: #ccc;
	cursor: pointer;
}

div.schedule_cell legend {
	display: none;
}

div.schedule_cell:hover {
	overflow: visible;
}

div.schedule_cell > p {
	text-align: center;
	border-radius: 10px;
	padding: 10px;
}

div.schedule_cell:hover  p {
	background-color: inherit;
}

div.schedule_cell.ui-selected {
	box-shadow: inset 0 0 0 1px rgba(0,0,0,1);
}

.schedule_cell.cancelled {
	opacity: 0.6;
}
.schedule_cell.cancelled:hover {
	opacity: 1;
}
.schedule_cell.cancelled > p > span {
	text-decoration: line-through;
}
.schedule_cell.cancelled > p::after {
	content: "Annulé";
	display: block;
}
