html {
	text-align: center;
	background-color: #666;
}
body {
	display: grid;
	grid-template-columns: 42em 1fr;
	grid-template-rows: 1fr 3em;
	grid-template-areas: "main aside" "nav aside";
	max-width: 1535px;
	margin: 0 auto;
	background-color: #fff;
}
@media (max-width: 768px) {
	body {
		grid-template-areas: "main" "nav" "aside";
		grid-template-columns: 1fr;
		grid-template-rows: minmax(auto, 50%) 3em auto;
	}
	main::after {
		display: none;
	}
	form {
		max-height: 100% !important;
	}
}

main {
	grid-area: main;
	position: relative;
}
main::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 42em;
	height: 3em;
	background: linear-gradient(transparent, white);
	pointer-events: none;
}
form {
	max-height: calc(100vh - 4em);
	overflow-y: scroll;
}

nav {
	grid-area: nav;
	display: flex;
}
aside {
	grid-area: aside;
	display: flex;
	flex-wrap: wrap;
	align-content: start;
	justify-content: space-around;  /* fallback */
	justify-content: space-evenly;  /* stretch */
	margin: 0 0.5rem;
}


table {
	width: 100%;
    margin-bottom: 1em;
    border: 2px solid #000;
    border-width: 2px 0;
	border-collapse: collapse;
	font-size: 12px;
}
tr:nth-child(even) {
	background-color: #f0f0f0;
}
th {
	line-height: 2em;
	border-bottom: 2px solid #000;
	cursor: pointer;
}
th:hover {
	color: #fff;
	background-color: #333;
}
td:nth-child(3),  td:nth-child(6) {
	border-right: 1px dashed #999;
	text-align: right;
}
th, td {
	text-align: left;
	padding: 0 1em;
}
td:nth-child(3) {
	font-family: monospace;
}

tr.enrol {
	background-color: #cfc;
}
tr.reject {
	background-color: #fcc;
}
tr.dropout {
	color: #fff;
	background-color: #363;
}

nav button {
	flex: auto;
	width: 8em;
	margin: 0.5em;
}
nav button:enabled {
	cursor: pointer;
	border: 1px solid #ddd;
	background-color: #fff;
	color: #555;
}
nav button:enabled:hover {
	border-color: #999;
	background-color: #f8f8f8;
	color: #000;
}
nav button:enabled:active {
	border: 2px solid #666;
	background-color: #fff;
}
nav button:disabled {
	border: 1px solid #ccc;
	background-color: #eee;
	color: #999;
}

/* TODO: try to have gauge max size 50% and balance 100% */
figure {
	flex: 1 1 48vh;
	margin: 0;
}

input {
	display: none;
}
label {
	display: block;
	width: 90%;
	text-align: center;
	cursor: pointer;
	transition: background-color 1s linear;
}
label::after {
	content: "\2716";
	padding: 0px 3px;
	border: 1px solid #ccc;
	color: #fff;
	background-color: #fff;
	font-size: 0.8em;
	transition: all .3s linear;
}
input:checked + label {
	background-color: #aee5ae;
}
input:checked + label::after {
	content: "\2714";
	border: none;
	background-color: #3c9b3c;
}
input:indeterminate + label {
	background-color: #e5aeae;
}
input:indeterminate + label::after {
	content: "\2716";
	border: none;
	background-color: #9b3c3c;
}
input:disabled + label {
	cursor: default;
}
