/* center page vertically */
body > .grid {
	height: 100%;
}

/* remove header when collapsing tables */
@media only screen and (max-width:768px) {
	.ui.table:not(.unstackable) > thead {
		display: none !important;
	}
}

/* fix cursor on table headers */
.ui.table > th {
	cursor: default !important;
}

/* fix partially clickable dropdown */
.ui.fluid.dropdown .search {
	display: block;
	width: 100% !important;
	min-width: 0;
}

/* put logout button in the corner */
button.ui.button.logout {
	position: absolute !important;
	top: 1em;
	right:1em;
}

.ui.fixed.label {
	min-width: 7em;
}

/* Make toggle buttons switch between red and green */
.ui.toggle.checkbox.checked input ~ label::before,
.ui.toggle.checkbox.checked input:focus ~ label::before,
.ui.toggle.checkbox.checked input ~ label:hover::before,
.ui.toggle.checkbox.checked input:checked ~ label::before {
	background-color: #21ba45;
}
.ui.toggle.checkbox input ~ label::before,
.ui.toggle.checkbox input:focus ~ label::before,
.ui.toggle.checkbox input ~ label:hover::before {
	background-color: #db2828;
}
