*{
	font-family: arial;
	box-sizing: border-box;
}

h1, h2, h3, h4, h5{
	padding: 0;
	margin: 0;
}

html, body{
	height: 100vh;
	width: 100vw;
	overflow: hidden;
}
body{
	box-sizing: border-box;
	padding: 5px;
	overflow: hidden;
	margin: 0;
}


#header, #footer, #content{
	border: 1px solid black;
	border-radius: 0.5em;
	margin: 8px;
	padding: 5px;
}


#header{
	height: 3em;
	position: relative;
}
#header a {
	text-decoration: none;
	color: black;
}
#header a:hover {
	text-decoration: underline;
}
#footer{
	height: 2em;
	line-height: 2em;
}
#content{
	position: relative;
	overflow: auto;
	height: calc(100% - 7em);
}
#loginbox{
        padding: 6px;
        border: 1px solid black;
}
#loginbox > section.table > * > *{
	padding: 3px;
}
#login{
	margin: 3px auto;
}

#logout{
	cursor: pointer;
}
#logout:hover{
	text-decoration: underline;
}

#chpasswd_newpass{
        width: 150px;
}

button{
	margin: 5px;
	padding: 3px;
	width: 120px;
}

fieldset{
	margin: 10px;
	padding: 5px;
}

.bold{
	font-weight: bold;
}
.right{
	text-align: right;
}
.hidden{
	display: none;
}
.table{
	display: table;
}
.table > *{
	display: table-row;
}
.table > * > *{
	display: table-cell;
	vertical-align: top;
}
.fill-width{
	width: 100%;
}
.placeholder{
	font-style: italic;
	color: #ccc;
}

table.border, table.border thead tr th, table.border tbody tr td{
	border-collapse: collapse;
	border: 1px solid black;
	padding-left: 3px;
	padding-right: 3px;
}

#filtercustomers, #filterprojects{
	display: block;
	min-width: 100%;
}
#projectslist, #customerslist{
	min-width: 100%;
}
.blinder{
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(204, 204, 204, 0.75);
}
.dialog{
	background-color: white;
	border: 1px solid black;
	border-radius: 0.5em;
	margin: 8px;
	padding: 5px;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 999999999;
}

.customerinfo{
	display: inline-block;
	height: 100%;
	vertical-align: top;
	margin-right: 15px;
}
#projectcustomers{
	margin-bottom: 10px;
}
#customerdetails_box{
	white-space: nowrap;
}
#customerdetails_box fieldset{
	padding: 10px;
}
#username, #username:visited, #username:active{
	color: black;
	text-decoration: none;
}
#username:hover{
	text-decoration: underline;
}
#userlist{
	width: 50%;
}

#loginbox input[type="text"], #loginbox input[type="password"]{
	width: 50vw;
}

#userlist {
	width: 100%;
}

@media only screen and (orientation: landscape) {
	#loginbox {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
	
	input[type="text"], input[type="password"], input[type="datetime-local"], input[type="number"]{
		width: 50vw;
	}
	
	#userlist {
		width: 75%;
	}

	#userlist, #manageusersbuttons {
		display: block;
		float: left;
	}

	#manageusersbuttons button {
		display: block;
	}
}
