body {
	background: #eee;
	font-family: sans-serif;
	color: #222;
	margin: 0;
}

.topitems {
	padding: 0.5em;
}

a {
	color: #36d;
	text-decoration: none;
}

a:hover {
	color: #48f;
	text-decoration: underline;
}

input[type="text"], input[type="password"], input[type="number"], input:not([type]) {
	font-size: 1em;
	height: 1.5em;
}

.button {
	display: inline-block;
	background-color: #3b3;
	padding: 0.5em 1em;
	font-weight: bold;
	color: #fff;
	cursor: pointer;
	user-select: none;
	transition: all 0.125s;
}

.button:hover {
	background-color: #4d4;
}

.button.red {
	background-color: #b33;
}

.button.red:hover {
	background-color: #d44;
}



#allrooms {
	max-width: 100vw;
	overflow-x: auto;
	padding: 0 0.5em;
}

.roomsetname {
	font-size: 2em;
	display: inline-block;
	background: #ccc;
	padding: 0.25em 0.5em;
	margin-bottom: 0.25em;
	border-top: 1px solid #666;
}

.roomgroup {
	white-space: nowrap;
}

.room {
	vertical-align:top;
	background: #ddd;
	display: inline-block;
	border: 1px solid #666;
	margin-right: 1em;
	margin-bottom: 1em;
}

.room > * {
	padding: 0.5em;
}

.roominfo {
	background: #bbb;
}

.roominfo.useless {
	background: #c66;
}

.roominfo:not(:last-child) {
	border-bottom: 1px solid #666;
}

.userinfo:not(:last-child) {
	border-bottom: 1px solid #aaa;
}

.xcb {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	margin: 0;
	margin-right: 0.5em;
}

.xcb::after {
	display: inline-block;
	width: 0;
	height: 0;
	border-top: 0.75em solid transparent;
	border-bottom: 0.75em solid transparent;
	border-left: 1.25em solid #222;
	cursor: pointer;
	content: "";
	transition: all 0.125s;
}

.xcb:checked::after {
	transform: rotate(90deg);
}

.xcb:hover::after {
	border-left-color: #546;
}

.userinfo {
	padding-left: 1.25em;
}

.maininfo {
	font-size: 1.25em;
	line-height: 1.5em;
}

label {
	transition: all 0.125s;
	cursor: pointer;
}

label:hover, .xcb:hover ~ label {
	color: #546;
	text-decoration: underline;
}

.roominfo .maininfo {
	font-weight: bold;
}

.xcb:not(:checked) ~ .details {
	display: none;
}

.details {
	margin-top: 0.5em;
}

.details > p {
	margin: 0;
	margin-bottom: 0.5em;
}

.free {
	background: #bfb;
}

.reserved {
	background: #efb;
}





.hidden {
	display: none;
}

.modal {
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	position: fixed;
	background-color: rgba(0, 0, 0, 0.5);
	text-align: center;
}

.modal > * {
	text-align: left;
	display: inline-block;
	margin-top: 50vh;
	transform: translateY(-50%);
	background: #eee;
	border: 1px solid #888;
	box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.25), 0 0 2em 1em rgba(0, 0, 0, 0.5);
}

.modal > div > div {
	padding: 0.5em;
}

.mheader {
	font-size: 1.25em;
	font-weight: bold;
	color: #def;
	background: linear-gradient(to right, #00c , #6af);
}

.closebutton {
	float: right;
	background: #aaa;
	margin-left: 1em;
	width: 1.625em;
	height: 1.625em;
	margin-top: -0.25em;
	margin-right: -0.25em;
	padding: 0;
	color: #222;
	cursor: pointer;
	box-shadow: 1px 1px #222 inset, -1px -1px #222 inset;
	position: relative;
	transition: all 0.125s;
}

.closebutton::after, .closebutton::before {
	position: absolute;
	left: 50%;
	top: 50%;
	display: inline-block;
	width: 0.875em;
	height: 1px;
	background: #222;
	border: 1px solid #222;
	border-radius: 2px;
	content: "";
}

.closebutton::before {
	transform: translate(-50%, -50%)rotate(135deg);
}

.closebutton::after {
	transform: translate(-50%, -50%)rotate(45deg);
}

.closebutton:hover{
	background: #ccd;
}



.mcontent {
	max-height: calc(100vh - 8em);
	overflow-y: auto;
}

.mcontent > p:first-child {
	margin-top: 0.25em;
}


.wsection {
	vertical-align:top;
	background: #ddd;
	border: 1px solid #666;
	margin-bottom: 0.5em;
}

.wsheader {
	padding: 0.5em;
	font-size: 1.25em;
	font-weight: bold;
	background: #bbb;
	border-bottom: 1px solid #666;
}

.wscontent {
	padding: 0.625em;
}

.wscontent > p {
	margin: 0;
	margin-bottom: 0.5em;
}

.wsbig {
	font-size: 1.25em;
}

.wssmall {
	font-size: 0.75em;
}

.wscontent > .wssmall {
	margin-bottom: 0;
}



.dateinput [type="number"] {
	appearance: textfield;
	-moz-appearance: textfield;
	-webkit-appearance: textfield;
	text-align: right;
	width: 2.5em;
}

.dateinput [type="number"]:nth-child(3) {
	width: 3.5em;
}



.subsection {
	background: #eee;
	border: 1px solid #666;
	padding: 0.5em;
	padding-bottom: 0;
}

.subsection:not(:last-child) {
	margin-bottom: 0.5em;
}

.subsection > p {
	margin: 0;
	margin-bottom: 0.5em;
}



p.status {
	margin-bottom: 0;
	margin-top: 0.5em;
}