
*, *:after, *:before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

body {
	font-family: 'Arial', sans-serif;
	font-weight: 300;
	font-size: 14px;
	color: #333;
	max-width: 850px;
	min-width: 700px;
	height: 500px; top: 0px; left: 0px;
	background-color: #fff;
}
header, footer{
	display: block;
	width:100%;
	clear: both;
	padding: .7em;
	background-color: #285E8E;
	color: #fff;
}
#msg{
	display:none; 
	position: absolute; 
	top: 0;
	width: 100%;
	padding: 1em;
	background-color: #FFFFAA;
	z-index: 999;
}
.container{
	position: relative;
	margin: .5em 0;
	border: 1px solid #555;
	height:inherit;
	padding: .5em;
	background-color: #999;
	-moz-box-shadow:    1px 1px 5px 1px #555;
	-webkit-box-shadow: 1px 1px 5px 1px #555;
	box-shadow:         1px 1px 5px 1px #555;
	clear: both;
}

/* monitor screen */
.screen{
	position: relative;
	float: left;
	width: 80%;
	
}
.row {
	display: block;
	width: 100%;
	text-align: center;
	clear: both;
	position: relative;
	margin: .1em auto;
}
#row1 .box {
	width: 48%;
}
.row:nth-child(2){
	height: auto;
}
.row:nth-child(3) .box {
	width: 32%;
}
.box{
	display: inline-block;
	padding: .5em;
	border: 1px solid #fff;
	border-radius: .5em;
	background-color: rgba(130,130,130,.2);
	min-height: 50px;
	vertical-align: top;
	position: relative;
	margin: .1em auto;
}
.box-small{
	min-height: 20px;
	margin-right: .5em;
	vertical-align: center;
}
.box.selected,
.box.active.selected{
	background-color: rgb(255,255,255);	
	border: 2px solid #aa0;	
}
form{
	background-color: rgba(255,255,255,.9);
	padding: 1em .5em;
	display: none;
	z-index: 9000;
	-moz-box-shadow:    5px 5px 5px 5px #555;
	-webkit-box-shadow: 5px 5px 5px 5px #555;
	box-shadow:         5px 5px 5px 5px #555;
	max-width: 100px;
}
form p{
	text-align: left;
	font-size: .8em;
	padding: 1em;
}
form input{
	font-size: 1.2em;
	text-align: center;
	width: 100%;
	
}
.selected form{
	position: absolute;
	width: 100%;
	height: auto;
	left: 100%;
	top: 0;
	display:block;
}
.box-input.selected form{
	left: 45%;
}
.compact{
	background-color: transparent;
	border: 1px solid #888;
}

/* nav */
.rightside{
	width: 19%;
	float: right;
}
.rightside .box{
	width: 100%;
	text-align: center;
}
.btn{
	min-height: 50px;
	border: 1px solid #999;
	pointer-events: none;
}
.btn.active{
	cursor:pointer;
	pointer-events: auto;
	background-color: #ddd;
	border: 1px solid #aa9;	
}
.btn.active:hover{
	border: 1px solid #ee7;
	background-color: #59d3e7;	
}

/* flow */
#flow .actual{
	line-height: 4em;
	font-size: .8em;
	vertical-align: middle;
}
#flow p{
	display: none;
	width: 100%;
}
#flow .box{
	pointer-events: none;
}
#flow .set{
	color: #050;
	font-weight: bold;
}
#flow.selected p{
	display: block;
}
#flow.selected .box{
	cursor: pointer;
	pointer-events: auto;
}
#flow.selected .box:hover{
	border: 1px solid #ee7;
	background-color: #59d3e7;
}

/* vertical meters */
.vmeter, .tmeter{
	position: relative;
	width: 19%;
	min-width: 100px;
	height: 170px;
}
.vmeter .label{
	background-color: #fff;
	border: 1px solid #999;
	font-weight: bold;	
	-moz-box-shadow:    -1px -1px 0px 0px #555;
	-webkit-box-shadow: -1px -1px 0px 0px #555;
	box-shadow:         -1px -1px 0px 0px #555;
	border-radius: 5px;
}
.vmeter .slider-bg{
	position: relative;
	background-color: #fff;
	border: 1px solid #999;
	height: 60%;
	width: 15px;
	margin: 6px auto 15px auto;
	border-radius: 3px;
}
.vmeter .slider-bar{
	position: absolute;
	top: 50%;
	left: 0;
	height: 3px;
	width: 100%;
	background-color: #333;	
}
.vmeter .slider-label{
	position: absolute;
	font-size: .7em;
	text-align: right;
	left: -5.5em;
	width: 5em;
}
.vmeter .slider-label:first-child{
	top: 90%;
}
.vmeter .bar-label {
	position: absolute;
	top: 50%;
	left: 100%;
	min-width: 2.5em;
	padding: 2px 5px;
	font-size: .8em;
	background-color: #fff;
	border: 1px solid #999;
	border-radius: 5px;
}
.vmeter.compact .label:not(:first-child){
	display:none;
}

/* hmeter */
.hmeter{
	position: relative;
	text-align: left;
}
.box-mode .label,
.hmeter .label{
	display: inline-box;
	width: 20%;
	font-size: .8em;
	font-weight: bold;
	display: inline-block;
	text-align: left;
}
.hmeter .slider-bg{
	position: relative;
	display: inline-block;
	background-color: #fff;
	border: 1px solid #999;
	width: 75%;
	height: 1.1em;
	border-radius: 3px;
	vertical-align: top;
	margin-top: 1em;
	margin-left: 5px;
}
.hmeter .slider-bar{
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 3px;
	background-color: #333;	
}
.hmeter .slider-label{
	position: absolute;
	font-size: .7em;
	text-align: right;
	top: 1.5em;
	right: 0;
	width: 5em;
}
.hmeter .slider-label:first-child{
	left: 0em;
	text-align: left;
}
.hmeter .bar-label {
	position: absolute;
	top: -1.8em;
	left: 0;
	min-width: 2.5em;
	padding: 2px 5px;
	font-size: .8em;
	background-color: #fff;
	border: 1px solid #999;
	border-radius: 5px;
}
.hmeter.compact .slider-bg{
	background-color: transparent;
	border: none;
}
.hmeter.compact .slider-bar,
.hmeter.compact .slider-label{
	display: none;	
}
.hmeter.compact .bar-label{
	font-size: 1.1em;
	position:static;
	border: none;
	width: 80px;
	margin-left: .3em;
	margin-top: -.5em;
	text-align: center;
}

/* tmeter */
.tmeter .label{
	font-size: .8em;
	font-weight: bold;
}
.tmeter .slider-bg{
	position: relative;
	display: block;
	background-color: none;
	border: 10px solid #bbb;
	border-top: 10px solid rgba(0,0,0,0);
	border-right: 10px solid #111;
	width: 100px;
	height: 100px;
	border-radius: 50px;
	vertical-align: top;
	margin: .5em auto;
}
.tmeter .slider-label{
	position: absolute;
	font-size: .8em;
	text-align: center;
	top: 0em;
	left: -35px;
	width: 5em;
}
.tmeter .slider-label:first-child{
	left: 55px;
}
.tmeter .bar-label {
	position: absolute;
	top: 35%;	
	width: 100%;
	margin: 0 auto;
	padding: 2px 5px;
	font-size: 1.2em;
	text-align: center;
}
.bar-label.set{
	color: #050;
	font-weight: bold;
}
/* heparin submenu */
.submenu{
	position: absolute;
	right: 5px;
	top: 190px;
	width: 40%;
	background-color: #999;
	padding: .5em;
	border: 5px solid #333;
}


/* screen size */
@media (max-width: 650px) {
	.container{
		-ms-transform: scale(.8); /* IE 9 */
	    -webkit-transform: scale(.8); /* Chrome, Safari, Opera */
	    transform: scale(.8);
	    margin-left: -5em;
	}
}

@media (max-width: 550px) {
	.container{
		-ms-transform: scale(.6); /* IE 9 */
	    -webkit-transform: scale(.6); /* Chrome, Safari, Opera */
	    transform: scale(.6);
	    margin-left: -10em;
	    font-size: 1.32em;
	    min-height: 550px;
	}
	footer{
		position:fixed;
		bottom: 0;
	}
	#msg{
		position: fixed;
		bottom: 50px;
	}
}