html, body {
	margin: 0;
	position: relative;
	font-family: Verdana, sans-serif;
}

body { padding-top: 52px; }

header {
	position: fixed; z-index: 100; left: 0; top: 0; right: 0;
	height: 44px;
	background-color: #A0A0A0;
	background: linear-gradient(#D0D0D0, #A0A0A0);
	border-bottom: 1px solid #808080;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

header h1 {
	font-family: "Arial Narrow", Arial, sans-serif;
	font-weight: bold;
	font-size: 18pt;
	line-height: 44px;
	vertical-align: baseline;
	margin: 0 0 4px 4px;
	display: inline;
	padding-left: 4px;
}

.notification {
	margin: 0px 8px 8px 8px;
	padding: 3px;
	box-shadow: 0 0 5px rgba(0,0,0,0.5);
	border-width: 1px;
	border-style: solid;
	border-radius: 4px;
	font-weight: bold;
	text-align: center;
}

.notification.good {
	color: #00C000;
	border-color: #008000;
}

.notification.bad {
	color: #C00000;
	border-color: #800000;
}

.notification.info {
	color: #C0C000;
	border-color: #808000;
}

img {
	vertical-align: middle;
}

#container {
	width: 100%;
}

#container:after {
	display: table;
	clear: both;
	content: '';
}

#main {
	width: 100%;
	position: relative;
}

#panels {
	overflow: visible;
}

footer {
	border-top: 1px solid #808080;
}

/* Menu */

#menu {
	border: 1px solid #808080;
	background-color: #F0F0F0;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
	min-width: 160px;
	position: absolute;
	top: 52px;
	left: 8px;
	z-index: 99;
}

#login {
	border: 1px solid #808080;
	background-color: #F0F0F0;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
	min-width: 160px;
	position: absolute;
	top: 52px;
	right: 8px;
	z-index: 99;
}

ul {
	margin: 0;
	padding: 0;
}

li {
	margin: 0;
	padding: 4px;
	font-size: 12pt;
	font-weight: bold;
	list-style-type: none;
	background: linear-gradient(#F0F0F0, #E0E0E0);
	color: #404040;
	border-bottom: 1px solid #C0C0C0;
}

li:hover {
	background: linear-gradient(#C0D0FF, #A0B0EF);
}

a, a:hover, a:visited {
	color: #404040;
	text-decoration: none;
}


/* Width < 500px */
@media only screen and (max-width: 499px) {
	#panels {
		padding: 0 8px 0 8px;
	}
	div.plot {
		height: 160px;
	}
	#menu {
		right: 8px;
	}
	#plot {
		height: 128px;
	}
	div.window {
		clear: both;
	}
	div.content {
		max-height: 450px;
		overflow-y: scroll;
	}
}

/* Width 500px - 767px */
@media only screen and (min-width: 500px) and (max-width: 767px) {
	#panels {
		padding-left: 8px;
		clear: both;
	}
	div.panel {
		float: left;
		width: 220px;
		margin-right: 8px;
	}
	div.plot {
		height: 260px;
	}
	#plot {
		height: 256px;
	}
	div.windowSmall {
		float: left;
	}
}

/* Width >= 768px */
@media only screen and (min-width: 768px) {
	#main {
		float: left;
	}
	div.windows {
		padding-right: 228px;
	}
	#panels {
		float: left;
		width: 220px;
		margin-left: -228px;
		position: relative;
	}
	div.window {
		float: left;
	}
	div.plot {
		width: 500px;
		height: 240px;
	}
	#plot {
		height: 512px;
	}
}

/* Width >= 1900px */
@media only screen and (min-width: 1900px) {
	div.plot {
		width: 535px;
		height: 300px;
	}
	#plot {
		height: 648px;
	}
}

/* Windows */

div.windows {
	padding-left: 8px;
}

div.window {
	width: device-width;
	font-size: 11pt;
	background-color: #F0F0F0;
	border: 1px solid #808080;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
	margin: 0 8px 8px 0;
	position: relative;
	overflow: visible;
}

div.window .content {
	padding: 4px;
}


/* Plot */
div#legend {
	position: absolute;
	background-color: rgba(255,255,255,0.75);
	border: 1px solid #FFFFFF;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
	padding: 1px;
}
#legend table {
	margin: 0;
	padding: 0;
	border-spacing: 1px;
}
#legend th {
	text-align: left;
	font-weight: normal;
	font-size: 10pt;
	border-bottom: 1px solid #FFFFFF;
}
#legend td {
	font-size: 8pt;
}
#legend td.legendValue {
	text-align: right;
}
#legend .legendColorBox {
	width: 14px;
	height: 10px;
	display: inline-block;
	margin-right: 2px;
	border: 3px double #FFFFFF;
	vertical-align: bottom;
}


/* Panels */

div.panel {
	width: device-width;
	font-size: 11pt;
	background-color: #F0F0F0;
	border: 1px solid #808080;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
	margin-bottom: 8px;
	position: relative;
}

span.point {
	text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

div.title {
	font-size: 11pt;
	font-weight: bold;
	text-align: center;
	border-bottom: 1px solid #808080;
	background-color: #A0A0A0;
	background: linear-gradient(#D0D0D0, #A0A0A0);
}

img.expCol {
	margin: 0;
	position: absolute;
	right: 2px;
	top: 1px;
	cursor: pointer;
}

div.panel table {
	width: 100%;
	font-family: Arial, sans-serif;
	font-size: 11pt;
}

.hidden {
	display: none;
}

div.panel td.inputValue {
	text-align: right;
	font-weight: bold;
}

div.panel td.inputUnit {
	width: 16px;
	font-style: italic;
}

/* Buttons */
div.buttons {
	margin: 0 8px 8px 0;
	overflow: visible;
}

div.buttons button {
	margin-right: 6px;
	height: 32px;
}

/* Small progress bar */
.progress { position: relative; height: 18px; border: 1px solid #000000; background-color: #FFFFFF; }
.progress .bar { height: 100%; background-color: #00FF00; background: linear-gradient(#00FF00, #00C000); }
.progress .text { position: absolute; width: 100%; height: 100%; line-height: 14px; text-align: center; overflow: hidden; }

/* Forms */
form {
	margin: 0;
}
input[type=number]{
	width: 80px;
} 

/* Large table */
table.table {
	font-size: 10pt;
	border: 1px solid #808080;
	border-spacing: 0;
	border-collapse: collapse;
}

table.table thead {
	background-color: #D0D0D0;
}

table.table tfoot {
	background-color: #D0D0D0;
}

table.table tbody tr:nth-child(even) { background-color: #FFFFFF; }
table.table tbody tr:nth-child(odd) { background-color: #F0F0F0; }

table.table th, table.table td { padding: 2px 4px; }

/* Report table */
table.report {
	width: 100%;
}
table.report .name { text-align: right; }

/* Misc */
.number { text-align: right; }
.unit { font-style: italic; }
.help { text-decoration: underline; cursor: help; }