button.close {
	position: absolute;
	font-size: 150%;
	top: 0px;
	right: 0.2em;
	padding: 0px !important;
	border: none;
	box-shadow: none;
	color: inherit;
	background: transparent !important;
}

button.close:hover, button.close:active {
	padding: 0px !important;
	border: none !important;
	font-weight: bold;
	cursor: pointer;
}


div.error, div.warning, div.message {
	max-width: 60em;
	margin: 0.5em auto;
	padding: 1em 1.5em 1em 1em;
	position: relative;
	opacity: 1;
	transition: all 0.3s;
	border-radius: 0.5em;
	z-index: 5;
	overflow: hidden;
}


div.error {
	border: 1px solid #cc0000;
	color: #cc0000;
	background-color: #ffeeee;
}

div.warning {
	border: 1px solid #aa8800;
	color: #aa8800;
	background-color: #fff8dd;
}

div.message {
	border: 1px solid #00aa00;
	color: #00aa00;
	background-color: #eeffee;
}

.invisible {
	opacity: 0 !important;
}

div.help {
	display: inline-block;
	margin-left: 1em;
	padding: 0.2em 0.5em;
	background-color: #ffeeaa;
	color: #000000;
	border-radius: 1em;
}

.tiptrigger {
	position: relative;
	border-bottom: 2px dotted #eeaa00;
	cursor: help;
}

div.help.tiptrigger {
	border-bottom: none;
}

#tooltip {
	display: none;
	position: absolute;
	top: 0px;
	left: 0px;
	box-sizing: border-box;
	min-width: 15em;
	max-width: 80%;
	max-width: 30em;
	padding: 0.5em 1em;
	font-size: 90%;
	font-weight: normal;
	background-color: #ffeeaa;
	color: #333333;
	z-index: 101;
	border-radius: 1em;
	border-top-left-radius: 0px;
	opacity: 0;
	transition: opacity 0.5s;
	text-align: center;
	border: 1px solid #333333;
	cursor: pointer;
}

.tooltip {
	padding: 0px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	position: absolute;
	box-sizing: border-box;
	top: 0px;
	left: 100%;
}


.togglevis::after {
	content: "▲";
	margin-left: 1em;
}

.togglevis {
	cursor: pointer;
}

.togglevis.hidden::after {
	content: "▼";
}

@media only screen and (max-width: 600px)  {
	.hideable {
		display: none;
	}
}

.req {
	color: #cc0000;
}


table.centered {
	width: auto;
	margin-bottom: 1em;
}

table.centered th {
	text-align: right;
}

table.centered td {
	text-align: left;
}

/* admin */

.banned {
	color: #cc0000;
	text-decoration: line-through;
}

.red, .denied {
	color: #cc0000;
}

.strike, .deleted {
	text-decoration: line-through;
}

.pending {
	color: #339900;
}

div.deskuser h3 {
	padding: 0.8em 0px 0.5em 0px;
	margin: 0px;
}

div.deskuser p {
	margin-bottom: 2.5em;
}

div.modalbg {
	display: none;
	position: fixed;
	top: 0px;
	left: 0px;
	bottom: 0px;
	right: 0px;
	background-color: rgba(127, 127, 127, 0.7);
	z-index: 100;
	text-align: center;
	overflow: auto;
}

div.modal {
	display: inline-block;
	margin: 5em auto;
	padding: 2em;
	background-color: #ffffff;
	border: 1px solid #000000;
	text-align: left;
	max-width: 50em;
}

div.modal h2 {
	margin-top: 0px;
}


/* forms */

form {
	position: relative;
}

input, select, button, .btn, label.check, textarea {
	display: inline-block;
	box-sizing: border-box;
	font-size: 100%;
	padding: 0.2em 0.5em !important;
	margin: 0px;
	vertical-align: middle;
	line-height: 140%;
	box-shadow: 0 0 0 1px #333333;
	font-family: inherit;
	min-height: 2em;
}

input, button, .btn {
	-moz-appearance: none;
	-webkit-appearance: none;
}

.formsection {
	border: none;
	position: relative;
}

.formsection > div {
	padding: 0px 0px 0px 13em;
	margin-bottom: 1em;
	position: relative;
}

.formsection label {
	position: absolute;
	left: 0px;
	top: 0.2em;
	display: block;
	text-align: right;
	width: 12em;
	font-weight: bold;
	xfont-variant: small-caps;
	font-size: 90%;
}

.formsection p {
	margin: 0px;
	padding-top: 0.2em;
	display: block;
}

.formsection img {
	max-width: 100%;
}

.formsection input, .formsection select, .formsection textarea {
	width: 100%;
	min-width: 6em;
}

.formsection textarea {
	height: 8em;
}

.formsection.checks label {
	position: static;
	display: inline-block;
	margin-left: 0px;
}

.formsection label.forcheck {
	position: static;
	display: inline-block;
	text-align: left;
	vertical-align: middle;
	width: auto;
	max-width: 90%;
	margin-left: 0.5em;
}


.formsection.checks > div {
	padding-left: 0px;
	padding-left: 2em;
}

label.check {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
	min-height: 0px;
}

.formsection.checks label.check {
	position: absolute;
}

div.nolabel {
	margin-top: 1em;
}

fieldset {
	position: relative;
	border: 1px solid #6747aa;
	margin-bottom: 1em;
	padding: 0pxm 1em 1em 1em;
	display: block;
	background-color: #ffffff;
}

legend {
	padding: 0.2em 1em;
	border: 1px solid #6747aa;
	margin-bottom: 0px !important;
	border-radius: 0.5em;
	margin-top: 0px !important;
	background-color: #ffffff;
}

legend + div, fieldset + div {
	padding-top: 1em;
}

fieldset h4 {
	font-size: 110%;
	font-weight: normal;
	padding-bottom: 0.2em;
	border-bottom: 1px solid #6747aa;
	margin-bottom: 1em;
}

label.forcheck {
	cursor: pointer;
}

.formsection.checks label.forcheck {
	width: auto;
}

@media only screen and (max-width: 600px)  {
	form.medium {
		width: 100%;
	}

	.formsection label {
		position: static;
		text-align: left;
		margin-bottom: 0.4em;
		width: auto;
	}

	label.forcheck, label.check {
		display: inline-block;
	}

	label.forcheck {
		xmargin-top: 1em;
		margin-right: 0.5em;
	}

	div.nolabel {
		margin-left: 0px;
	}

	.formsection > div {
		padding-left: 0px;
	}

	.formsection.checks label {
		width: auto;
	}

	.formsection.checks > div {
		padding-right: 0px;
		white-space: normal;
	}

}


input[type="checkbox"], input[type="radio"] {
	display: none !important;
}

input[type="checkbox"] + label.check, input[type="radio"] + label.check {
	position: relative;
	left: 0px;
	top: 0px;
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: middle;
	color: #f8f4ff;
	padding: 0px !important;
	text-align: center;
	font-size: 150%;
	font-weight: bold;
	line-height: 100% !important;
	margin-bottom: 0px;
}

input[type="checkbox"]:checked + label.check {
	color: inherit;
}

input[type="checkbox"]:disabled + label.check, input[type="radio"]:disabled + label.check {
	background-color: #d6d3e5;
	color: #d6d3e5;
}

label.disabled {
	color: #a6a3b5;
}

input[type="radio"] + label.check {
	font-size: 100%;
	border-radius: 1em;
	border-width: 0.2em;
	margin-right: 1em;
}

input[type="radio"]:checked + label.check {
	background-color: #000000;
}

.formsection.checks input[type="checkbox"] + label.check {
	top: 0px;
	left: 0px;
}

.formsection.checks input[type="radio"] + label.check {
	top: 0.2em;
	left: 0.3em;
}

div.postcheck {
	display: inline-block;
}

@media only screen and (max-width: 600px)  {
	.checks input[type="checkbox"] + label.check, .checks input[type="radio"] + label.check {
		position: absolute;
	}

	div.postcheck label.forcheck {
		display: inline;
	}

}

