html, body {
	width:100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: sans-serif;
	font-size: 1em;
	box-sizing: border-box;
}

div {
	box-sizing: border-box;
}

body.padding {
	padding: 1em;
}

body.nopull {
	overflow-y: hidden;
}

body.nozoom {
}

input, select, button {
	border:1px black solid;
	pointer-events: auto;
	font-size: 1em;
	padding:0.2em;
	margin:0.1em;
	flex: 1;
}

input[type=radio] + label {
	color: #000;
	background: url('/common/images/circle.png');
	background-size: 1.1em 1.1em;
	background-repeat: no-repeat;
	background-position: left center;
	background-color: #EEE;
	background-origin: content-box;
	flex: 1;
	display: inline-block;
}

input[type=radio]:checked + label {
	color: #CF6;
	background: url('/common/images/circlechecked.png');
	background-size: 1.1em 1.1em;
	background-repeat: no-repeat;
	background-position: left center;
	background-color: #4080c0;
	background-origin: content-box;
	flex: 1;
	display: inline-block;
}

input[type=checkbox] + label {
	color: #000;
	background: url('/common/images/box.png');
	background-size: 1.1em 1.1em;
	background-repeat: no-repeat;
	background-position: left center;
	background-color: #EEE;
	background-origin: content-box;
	flex: 1;
	display: inline-block;
}

input[type=checkbox]:checked + label {
	color: #CF6;
	background: url('/common/images/boxchecked.png');
	background-size: 1.1em 1.1em;
	background-repeat: no-repeat;
	background-position: left center;
	background-color: #4080c0;
	background-origin: content-box;
	flex: 1;
	display: inline-block;
}

input[type=checkbox].online + label  {
	background: url('/common/images/box.png'), url('/common/images/box_green.png');
	background-size: 1.1em 1.1em;
	background-repeat: no-repeat;
	background-position: left center;
	background-color: #EEE;
	background-origin: content-box;
}

input[type=checkbox]:checked.online + label  {
	background: url('/common/images/boxchecked_black.png'), url('/common/images/box_green.png');
	background-size: 1.1em 1.1em;
	background-repeat: no-repeat;
	background-position: left center;
	background-color: #4080c0;
	background-origin: content-box;
}

input[type=checkbox].offline + label  {
	background: url('/common/images/box.png'), url('/common/images/box_orange.png');
	background-size: 1.1em 1.1em;
	background-repeat: no-repeat;
	background-position: left center;
	background-color: #EEE;
	background-origin: content-box;
}

input[type=checkbox]:checked.offline + label  {
	background: url('/common/images/boxchecked_black.png'), url('/common/images/box_orange.png');
	background-size: 1.1em 1.1em;
	background-repeat: no-repeat;
	background-position: left center;
	background-color: #4080c0;
	background-origin: content-box;
}

input[type=checkbox].obsoleted + label  {
	background: url('/common/images/box.png'), url('/common/images/box_gray.png');
	background-size: 1.1em 1.1em;
	background-repeat: no-repeat;
	background-position: left center;
	background-color: #EEE;
	background-origin: content-box;
}

input[type=checkbox]:checked.obsoleted + label  {
	background: url('/common/images/boxchecked_black.png'), url('/common/images/box_gray.png');
	background-size: 1.1em 1.1em;
	background-repeat: no-repeat;
	background-position: left center;
	background-color: #4080c0;
	background-origin: content-box;
}

input[type=radio]:hover + label,
input[type=checkbox]:hover + label,
input[type=checkbox]:hover.sensors + label {
	background-color: #CF6;
	background-origin: content-box;
}

input[type=radio]:checked:hover + label,
input[type=checkbox]:checked:hover + label,
input[type=checkbox]:checked:hover.sensors + label {
	background-color: #357;
	background-origin: content-box;
}

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

input[type=radio] + label:before,
input[type=checkbox] + label:before {
	content: "";
	width: 1.5em;
	height: 1.1em;
	display: inline-block;
}

a, label {
	pointer-events: auto;
	min-height: 1em;
}

a {
	color: #4080c0;
}

a:active {
	color: #FFF;
	background-color: #4080c0;
}

fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

fieldset legend {
	position: relative;
	font-weight: bold;
	padding: 0 0 0.3em 0;
}

fieldset>div {
	margin: 0.2em 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
}

fieldset>div.hide {
	display: none;
}

label, .nowrap {
	white-space: nowrap;
}

span.error {
	background-color: rgba(255,0,0,0.8);
	color: white;
}

div.section {
	background-color: rgba(255,255,255,0.8);
	padding: 0.2em;
	margin: 0.1em;
	display: block;
}

div.clear {
	clear: both;
}

div.mid {
	display:inline-block;
}

div.left {
	float: left;
	display:inline-block;
}

div.right {
	float: right;
	display:inline-block;
}

iframe.noframe {
	margin: 0;
	padding: 0;
	border: none;
	overflow: hidden;
}

iframe.chart {
	width:100%;
	height:100%;
	pointer-events: auto;
}

iframe.multichart {
	padding:1em;
	width:100%;
	height:30%;
	min-height:18em;
	box-sizing:border-box;
}

img.inline {
	height: 1.2em;
	vertical-align: middle;
}

a.button {
	color:#4080c0;
	background-color: #EEE;
	border: solid #4080c0 1px;
	display: inline-block;
    margin: 0.15em 0;
	text-decoration: none;
}

a.button:hover {
	background-color: #CF6;
}

a.button.activated {
	color: #CF6;
	background-color: #4080c0;
}

a.button.activated:hover {
	background-color: #357;
}

.nodecor,
a.nodecor {
	text-decoration: none;
}

.hide {
	display: none;
}

.centerpage-outer {
	width: 100%;
	height: 100%;
	display: table;
	position: absolute;
	padding: 0;
	margin: 0;
}

.centerpage-inner {
	vertical-align: middle;
	text-align: center;
	display: table-cell;
}

.center {
	margin:auto;
}

.left {
	text-align:left;
	float:left;
}

/* new way to center elements */
.center-container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.expanded {
	height: 100%;
}



.flex {
	flex:1;
}

div.text-container {
	display:block;
	padding:0.3em;
}

.infowindowcontent {
	margin:0;
	padding:0;
}

.touchable {
	pointer-events: auto;
}

.untouchable {
	pointer-events: none;
}

#map {
	position: absolute;
	top:0;
	right: 0;
	left:0;
	bottom: 0;
}
#panel {
	z-index: 1;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	position: absolute;
	pointer-events: none;
}

#control {
	transition: 0.4s;
	padding: 0;
	margin: 0;
	position: absolute;
	z-index: 3;
	width: 25em;
	height: 100%;
	max-width: 100%;
	background-color: #fff;
	box-shadow: 0 0 1em 0 #666;
	pointer-events: auto;
	display: flex;
	flex-direction: column;
}

#control.slideout{
	transform: translate(-100%, 0);
	visibility: hidden;
}

#control .controlhead {
	border-bottom: #666 solid 1px;
	background-color: #4080c0;
	display: flex;
	align-items: flex-start;
}

#control .controlfoot {
	border-top: #666 solid 1px;
	background-color: #4080c0;
	display: flex;
	align-items: center;
}

#control .controlfoot #update {
	margin: 0.5em;
	font-size: 1.5em;
	font-weight: bold;
	background-color: #CF6;
}

#control .controlbody {
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: contain;
	flex: 1;
}

.controlhead .hbg-bar1,
.controlhead .hbg-bar2,
.controlhead .hbg-bar3 {
	background-color: #FFF;
	box-shadow: none;
}

.controlbody a,
.controlbody label {
	padding: 0.3em;
}

.controlbody > .section {
	margin: 0;
	padding: 0.8em;
	border-bottom: #666 solid 1px;
}
#closeicon {
	display: block;
	min-width: 3em;
	padding: 0.5em;
}

#toggleui {
	pointer-events: auto;
}

.hbg-container {
	display: inline-block;
	cursor: pointer;
}

.hbg-bar1, .hbg-bar2, .hbg-bar3 {
	width: 2.1em;
	height: 0.3em;
	background-color: #000;
	margin: 0.3em 0.5em;
	transition: 0.4s;
	box-shadow: -1px 0 0.1em 0 #fff, 0 1px 0.1em 0 #fff, 1px 0 0.1em 0 #fff, 0 -1px 0.1em 0 #fff;
}

.hbg-close .hbg-bar1 {
	transform: rotate(-45deg) translate(-0.435em, 0.45em);
}

.hbg-close .hbg-bar2 {
	opacity: 0;
}

.hbg-close .hbg-bar3 {
	transform: rotate(45deg) translate(-0.435em, -0.45em);
}

.hbg-left .hbg-bar1 {
	transform: rotate(-45deg) translate(-0.6em, -0.2em) scale(0.5,1);
}

.hbg-left .hbg-bar2 {
	transform: scale(0.8, 1)
}

.hbg-left .hbg-bar3 {
	transform: rotate(45deg) translate(-0.6em, 0.2em) scale(0.5,1);
}

#sensorlist legend.selected:after{
	content: " (" attr(selCount) ")";
}

#loading {
	font-weight: bold;
}

.titlebar-item {
	display: block;
	min-width: 3em;
	padding: 0.5em;
}

.titlebar-item > #loading {
	display: block;
	height: 2em;
	width: 2em;
}

.titlebar-item > h1 {
	display: inline-block;
	font-size: 2em;
	margin:0;
	text-shadow: -1px 0 0.1em #fff, 0 1px 0.1em #fff, 1px 0 0.1em #fff, 0 -1px 0.1em #fff;
	color:#000;
}

#titlebar {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	/* align-items: center; */
	justify-content: space-between;
	transition: 0.4s;
}



#titlebar.solid{
	background-color: #ccff66;
	pointer-events: auto;
	box-shadow: 0 0 1em 0 #666;
}

#errors {
	text-align: right;
	color: white;
	margin: 0.2em;
	position: absolute;
	top: 3em;
	right: 0;
	z-index: 9;
}

#bottomside{
	position: absolute;
	top:0;
	right:0;
	left:0;
	bottom:0;
	height:100%;
	width:100%;
	display: grid;
	place-items: end center;
	z-index: 2;
}
#rightside{
	position: absolute;
	top:0;
	right:0;
	left:0;
	bottom:0;
	display: grid;
	place-items: center end;
	z-index: 2;
}

#colorscale-bottom{
	max-width: 80%;
	min-width: 20em;
	width: 50%;
	height: 3em;
	margin-bottom: 1em;
}

#colorscale{
	max-height: 50vh;
	height: 30em;
	width: 4em;
	margin-right: 0;
	margin-bottom: 10em;
}

#chart {
	position:absolute;
	top:0;
	bottom:0;
	left:0;
	right:0;
	padding:0;
	margin:0;
}

#chartcontrol {
	display: flex;
	flex-direction: column;
	position: absolute;
	height: 100%;
	width: 24em;
	max-width: 100%;
	margin: 0;
	padding: 1em;
	background-color: #fff;
	box-shadow: 0 0 1em 0 #000;
}

#charttitle {
	margin-left: 0.5em;
	flex: 1;
}

#chartpanel {
	display:flex;
	z-index: 1;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	position: absolute;
}

#dash-header,
#dash-footer {
	width: 100%;
	height: auto;
	display: block;
	text-align: center;
	padding:0.2em;
}
#dash-body {
	display:flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}
#dash-body > .item {
	width: 18em;
	height: 18em;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0.5em;
	border: 1px solid black;
}

#exportui {
	padding: 0;
	margin: 0;
	min-height: 100%;
	width: 100%;
	background-color: #fff;
	display: flex;
	flex-direction: column;
}

#exportui .controlhead {
	color:#fff;
	border-bottom: #666 solid 1px;
	background-color: #4080c0;
	display: flex;
	align-items: center;
	justify-content: center;
}

#exportui .controlfoot {
	border-top: #666 solid 1px;
	background-color: #4080c0;
	display: flex;
	align-items: center;
}


#exportui .controlfoot #download {
	margin: 0.5em;
	font-size: 1.5em;
	font-weight: bold;
	background-color: #CF6;
}

#exportui .controlbody {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#exportui .flex-container {
	display: flex;
	flex-wrap: wrap;
}

#exportui .flex-container div {
	margin: 0.2em;
	flex-basis: 20em;
}
#exportui .controlbody .section {
	flex-basis: 24em;
	border: none;
	flex-grow: 0;
}
#exportui .controlbody .section:first-of-type {
	flex-grow: 0;
}
#exportui .controlbody .section:last-of-type {
	flex-grow: 1;
}

#exportui .btnAll{
  width: 20em;
  background-color: white;
  border: 1pt solid #008CBA;
  color: black;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  /* transition-duration: 0.4s; */
  cursor: pointer;
}

#exportui .btnAll:hover {
  background-color: #008CBA;
  color: white;
}

#exportui .btnAll .btnClicked{
  background-color: #008CBA;
  color: white;
}
