/** {
	z-index:1;
}*/
html {
	font-family:'Open Sans Hebrew';
	font-size:16px;
}

#everything {
	padding:0;
	margin:0;
	width:100%;
	overflow:hidden;
}
.fixed {
	z-index:100;
	display:block;
	width:100%;
}
body{
	margin:0;
	padding:0;
	background:white;
	font-family:'Open Sans Hebrew';
}

input[type=button], input[type=submit], input[type=image] {
	cursor:pointer;
}
p:first-child {
	margin-top:0;
}
#logo {
	background-image: url("/images/logo_mottes.png"), url("/images/sky.jpg");
	background-position: center center, left top;
	background-repeat: no-repeat, repeat-x;
	background-size: contain, cover;
	text-align: center;
	height:12vh;
	cursor:pointer;
	margin-bottom:40px;
}
#logo img {
	height:12vh;
	display:none;
}
#menu, #news{
	min-height:40px;
	font-size:22px;
	width:100%;
	height:40px;
	/*font-size: 2.2vh;*/
	font-weight: 500;	
	padding:0;
	z-index:100;
	overflow:hidden;
}
#menu {
	margin-top:-40px;
}

#news-controls {
	position:relative;
	display:inline-block;
	vertical-align:middle;
}

.authenticated > #news, #news.fixed  .home.scrolling #news.fixed{
	position:fixed;
	bottom:0;
	right:0;
}
.home #news.fixed{ 
	position:relative;
}
.authenticated  #news-icon {
	/*	display:block;*/
}
authenticated  #news-flash {
	/*	display:inline-block;*/
}
#menu ,.submenu{
	background:#404042;
	color: #ffffff;
	font-weight:500;
}
#menu .scrolling-logo {
	display:none;
}

/*#menu >div {
	display:inline-block;
}*/
#menu > ul li, #menu>div {
	cursor:pointer;
}

#menu.scrolling .scrolling-logo {
	display:inline;
	width: 3.5vh;
	height:3.5vh;
	min-height:30px;
	background: url("/images/tensio_flower.png");
	background-repeat: no-repeat;
	background-size: 100% auto;
	position: absolute;
	top: 0.25vh;
	left: 1vw;
	margin-top:0px;
}
.mobile #menu.scrolling .scrolling-logo {
	display:none;
}

#menu.scrolling {
	position:fixed !important;
	top:0;
	right:0;
	margin-top:0;
}

ul.menu-block, div.menu-block  {
	display:block;
	line-height: 40px;
}
ul#login li:before {
	content:'|';
	/*margin-left:5px;
	padding: 0 5px;*/
}

ul#login li:first-child:before {
	content:none;
}
#login a:hover {
	background-color:#ffffff;
	color:#404042!important;
}
/*#login{
	margin:0;
	vertical-align:middle;
	padding:0;
	height:100%;
}*/

#login, #login a:link, #login a:visited{
	display:inline-block;
	color:white;
	text-decoration:none;
}

#login a:link,#login a:visited {
	padding:0 5px;
/*	height:100%;
	box-sizing:border-box;
*/}

#menu ul {
	display:inline;
	padding: 0vh 2vw 0 0;
	text-align:right;
	list-style: none;
	margin: 0;
}

#menu ul#login {
	text-align:center;
	padding:0;
	margin:-3px 0 0 0;
	white-space:nowrap;
	overflow:hidden;
}

#menu ul#login .profile-link {
	font-weight:bold;
	font-size:smaller;
	max-width: 10vw;
	overflow: hidden;
}
#menu ul#login .profile-link a::before, #menu ul#login .profile-link a:before {
	content:url("/images/user_icon.png");
	margin-left:5px;
	/*vertical-align:middle;*/
	width:18px;
}

#menu ul#login .profile-link a:hover::before, #menu ul#login .profile-link a:hover:before {
	width:18px;
	content:url(/images/user_icon_hover.png);
}

ul#login li {
	margin:0;
	display:inline;
	vertical-align:middle;
	height:inherit;
	white-space:nowrap;
}

ul.menu li{
	display: inline-block;
	padding: 0 0.5vw;
	margin: 0;
	height:100%;
	box-sizing: border-box;
}
ul.menu li a {
	text-decoration:none;
	color:inherit;
}
ul.menu li:hover , ul.submenu li:hover{
	/*  color: #404042;
	  background-color: #c2c2c2;	*/
	color:#404042;
	background:#ffffff;
}

ul.menu li#menucollector {
    min-width:88px;
}

/*sub menus*/
#menu ul.submenu {
	position: absolute;
	z-index: 5;
	display:none;
}

#menu > li > ul.submenu > li ,#menu ul.submenu li{
	/*	background-color: #eeeeee;
		background-image: -moz-linear-gradient(center top , #FFFFFF 0px, #ffC9C9 1050px);
		background-image: -webkit-linear-gradient(center top , #FFFFFF 0px, #ffC9C9 1050px);
		background-image: linear-gradient(center top , #FFFFFF 0px, #ffC9C9 1050px);*/
	border-radius:0;
	border:none;
	border-right:none;
	border-top:none;
	display:block;
	float:none;
	line-height:30px;
}
#menu ul.submenu a:link ,ul.submenu a:visited{ 
	line-height:inherit;
	margin: auto auto;
	text-decoration: none;
	display: auto;
	text-decoration: none;
	text-align:left;
}
#menu ul.submenu li a:visited {
	text-decoration: none; 
}
#menu ul.submenu a:active {
}
/*#menu li ul.submenu li :hover{
	color:white;
	background-color:#1b406a;
	background: -moz-linear-gradient(center top , #060 0px, #002918 100%) no-repeat scroll 0 0 rgba(0, 0, 0, 0);
	background: -webkit-linear-gradient(center top , #060 0px, #002918 100%) no-repeat scroll 0 0 rgba(0, 0, 0, 0);
	background: linear-gradient(center top , #060 0px, #002918 100%) no-repeat scroll 0 0 rgba(0, 0, 0, 0);
	box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
	-svg-background:linear-gradient(top, #060 0px, #002918 100%) no-repeat;
}*/

#menu li ul.submenu {
	display:none;
}
#menu li.show ul.submenu {
	display:block;
	position:fixed;
}
#menu li.hide ul.submenu {
	display:none;
}
/* */
.scrollable {
	overflow: auto;
	height: 100%;
}

/**/
#sidebar {
	/*font-size:small;*/
}

#sidebar .toggle-button {
	display:none;
}

.popup #content {
	margin:auto;
}

/* */

#language{
	display:inline-block;
	height:40px;
	min-height:40px;
	vertical-align:middle;
}
#language img {
	vertical-align:middle;
	display:inline-block;
	height:20px;
	/*margin: 0.5vh 0 -1.2vh;*/
	padding: 7px;
}
#language img.selected,#language img:hover {
	border-radius: 5px 5px 0 0;
	background-color: white;
}
#banner ,#tensio_banner{
	position:relative;
	margin-bottom:-5px;
	width:100%;
}
#banner > div {
	color: rgba(255,255,255,1);
	font-size: 4vw;
	white-space:nowrap;
	font-weight: bold;
	left: 15vw;
	position: absolute;
	top: 5vh;
	width: 30vw;
	text-align:left;
}
#banner > video{
	max-height:80vh;
	min-width:100%;
	background-color: #302e2a;
	object-fit:fill;
}

#news {
	background-image:url('/images/news_bg1.jpg');
	background-repeat:repeat-x;
	background-size:contain;
	/*margin-top:5px;*/
	z-index:99;
}

#news-icon {
	background-image:url('/images/news_bg2.jpg') ;
	background-repeat:repeat-x;
	background-size:contain;
	color:white;
	display:inline-block;
	margin:0;
	line-height:40px;
	padding-left: 0.5vw;
	padding-right:0.5vw;
}
#news img , #news span.label{
	min-height:22px;
	height:2.2vh;	
	padding-left: 0.5vw;
	padding-right:0.5vw;
	/*margin-top:0.5vh;*/
	vertical-align:middle;
}
#news-flash {
	overflow:hidden;
	display:inline;
	line-height:40px;
}
#content {
	margin: 2vh 20vw 2vh 0;
	display:block;
}

#content.home {
	float:right;
	margin:2vh 10vw;
}

#footer-content {
	margin: 2vh 10vw;
	font-size:large;
}
#content h1 {
	font-size:x-large;
	color:#2F93CF;
	font-weight:bold;
}
#content h2, #content h3 { /*, #content:first-child > div:first-child p:first-child{*/
	font-size:x-large;
	font-weight:normal;
	border-bottom:2px solid lightgrey;
	text-align:right;
	color:grey;
	padding:0 0 10px 100px;
	margin:20px;
	display:inline-block;
	clear:both;
}
#content.chart h2 , #content.chart h2{
	font-size: x-large;
	margin: 15px 20px;
	padding-bottom: 5px;
}
#content.my_units h2, #content.my_units h3, #content.content h2,  #content.content h3{/*, #content:first-child > div:first-child p:first-child {*/
	color:#9eb924;
	border-bottom:2px solid #9eb924;
}
#content.my_units span.virtual_unit::after {
    content: "\1f5c2";
    font-size: 25px;
    display: inline-block;
    vertical-align: super;
}

#content h3 {
	color: green;
	border-color:green;
}

.box-container:before, .box-container:after {
	display:block;
	clear:both;
	content: "";
}
.box-container{
	displat:table;
	box-sizing:border-box;
	clear:both;
	margin-left:-0.5vw;
	margin-right:-0.5vw;
}
.box ,.two-box{
	float:right;
	box-sizing:border-box;
	width:33.3333%;
	position:relative;
	min-height:30vh;
	min-width: 275px;/*320px*/
	display:table-cell;
}

.two-box{
	width:50%;
	min-width:320px;
}
.one-column .two-box {
	width:100%;
}

.two-columns .box {
	width:100%;
}

.box .icon {
	border-radius:60px;
	width:115px;
	height:115px;
	display:inline-block;
	float:right;
	margin-left: 5%;
	margin-right:-70px;
}

.text {
	box-sizing:border-box;
	color:white;
	padding-left:30px;
	overflow:hidden;
	/*height:25vh;*/
}
.text > h1 {
	color:white!important;
	margin-left:21px;
}
#tensiometers .icon {
	background:url("/images/tensio_icon_rtl.png"),white ;
	background-repeat:no-repeat;
	background-position:center center;
	background-size: 101px auto;
}
#content .box>div:first-child {
	margin:1vh 7px;
	display:block;
	min-height:130px;
	padding:10px 15px;
}
.box .content {
	float:left;
}
#tensiometers {
	background-color:#EA9308;
}
#tensiometers> .text{
	color:white;
}

#units{
	background-color:#0f9dcd;
}
#units .text{
	color:white;
}
#units .icon {
	background:url("/images/units_icon_rtl.png") ,white;
	background-repeat:no-repeat, no-repeat;
	background-position:center center, center center;
	background-size: 101px auto;
}
#data .icon {
	background:url("/images/graph_icon.png"), white; 
	background-repeat:no-repeat;
	background-position:center center;
	background-size: 101px auto;
}
#data {
	background-color:#96ae24;
}
#data .text{
	color:white;
}
#content-footer {
	background-image: url("/images/plant4.png");
	background-repeat: no-repeat;
	bottom: -248px;
	background-position: calc(10vw - 80px);
	line-height: 394px;
	position: relative;
	width:100%;
	float:left;
	/*width: 270px;
	/*
		background-image: url("/images/plant.png");
    background-position: -307px 51px;
    background-repeat: no-repeat;
    clear: both;
    float: left;
    height: 183px;
    left: 10%;
    line-height: 183px;
    position: relative;
    width: 135px;
 
 /*
	background-image:url('/images/footer_top.jpg');
	background-repeat:no-repeat;
	background-position:left bottom;
	line-height:183px;
	margin:0 0 -0.5vw 0;
	clear:both;*/
}
#content-footer #mottes-slogan {
	width: calc(90% - 200px);
	max-width: calc(90% - 200px);
	overflow: hidden;
	right: 0;
	text-align: left;
	position: relative;
	bottom: 67px;
}

#content-footer #mottes-slogan img {
	max-width: calc(90vw - 270px);
}
#footer {
	margin:0;
	padding-top:5vh;
	padding-bottom:5vh;
	background-image:url('/images/footer_bg.jpg');
	background-repeat:repeat;
	color:white;
	display:table;
	width:100%;
}
#footer-content {
	margin-left:10%;
}
#footer-content form {
	display: inline-block;
	width: 90%;
}

#footer-content input {
	box-sizing:border-box;
	font-size:large;
	font-family:'Open Sans Hebrew';
	width: 100%;
	height:40px;
	margin-bottom:2vh;
	border-radius:0;
	background-color:rgba(255,255,255,0.7);
	box-shadow:none;
	border:none;
	color: black;
	font-weight:bold;
}
#footer-content input[type=submit]{
	background-color:#AAC538;
	width:auto;
	float:left;
	color:white;
	padding:3px 20px;
}
#footer-content textarea{
	box-sizing:border-box;
	font-family:'Open Sans Hebrew';
	font-size:large;
	width: 100%;
	height:80px;
	margin-bottom:2vh;
	border-radius:0;
	background-color:rgba(255,255,255,0.7);
	box-shadow:none;
	border:none;
	color: black;
	font-weight:bold;
}
#footer input::-webkit-input-placeholder,#footer textarea::-webkit-input-placeholder{  
	padding:5px;
	color: black;
	font-weight:bold; 
}
#footer input:-ms-input-placeholder, #footer textarea:-ms-input-placeholder {
	padding:5px;
	color: black;
	font-weight:bold; 
}
#footer input::-moz-placeholder, #footer textarea::-moz-placeholder {
	padding:5px;
	color: black;
	font-weight:bold;
}
input:-moz-placeholder, textarea::-moz-placeholder {
	padding:5px;
	color: black;
	font-weight:bold;
}

#footer-content #contact-info {
	display:inline-block;
	margin:10px;
	vertical-align:middle;
}

#footer-content a, #footer-content a:link,#footer-content a:visited {
	color:inherit
}

#footer-content #copyright {
	position:absolute;
	bottom:10px;
	left:0;
}
#second-paragraph {
	margin-top:4vh;
	display:table;
}

#second-paragraph video {
	box-sizing: border-box;
	max-width: 100%;
	position:relative;
}
#second-paragraph:after {
	content:" ";
	clear:both;
	display:block;
}

.login-form {
	background: #8ab130;
	opacity: 0.96;
	border: 1px outset rgba(0, 0, 0, 1);
	border-radius: 30px;
	box-shadow: 10px 10px 20px rgba(150, 150, 150, 1);
	display: block;
	left: calc(50% - 200px);
	max-height: 80%;
	max-width: 80%;
	height:200px;
	width:400px;
	padding: 3%;
	position: fixed;
	top: 23%;
	color:white;
	z-index:200;
}

.login-form label ,.login-form input[type=text], .login-form input[type=password]{
	display:inline-block;
	width:65%;
	box-sizing:border-box;
	padding:5px;

}
.login-form label {
	width:30%;
}

#sidebar, .first-column {
	box-sizing:border-box;
	float:right;
	clear:both;
	width:20%;
	max-width:20%;
	margin-top:6vh;
}

#sidebar .sidebar_box {
	margin:2vh 2vw;
	padding: 1vh 1vw;
	max-width:20vw;
	display:block;
	background:#adc53b;
	color: black;
	overflow:hidden;
	/*white-space:nowrap*/;
	font-size:small;
}

#sidebar input {
	border-radius:3px;
	border-color: gray;
	border-radius: 3px;
	border-style: solid;
	border-width: 1px;
	box-shadow: none;
	margin: 2px;
	padding: 2px;
	vertical-align:bottom;
	font-size:medium;
	height:25px;
}
#sidebar .search input[type=text]{
	max-width:calc(100% - 50px);
}
#sidebar .sidebar_box:nth-child(4){
	background:#acc53a;
	color: black;
}

#sidebar .sidebar_box:nth-child(2), #sidebar .sidebar_box[cont*=tension_diff]{
	background:#bbcdf1;
	color: black;
}

#sidebar input[type=submit], #sidebar input[type=button] {
	width:100%;
	border:none;
}

#sidebar .sidebar_box:nth-child(2) input[type=button],
#sidebar .sidebar_box:nth-child(2) input[type=image],
#sidebar .sidebar_box:nth-child(2) input[type=submit] ,
#sidebar .sidebar_box[cont*=tension_diff] input[type=button],
#sidebar .sidebar_box[cont*=tension_diff] input[type=image],
#sidebar .sidebar_box[cont*=tension_diff] input[type=submit] {
	background-color:#2b2a70;
	color:white;
}


#sidebar .sidebar_box[cont*=sensor_checkbox],
#sidebar .sidebar_box:nth-child(3) {
	background:#f4f4f4;
	color: black;
}

#sidebar .sidebar_box[cont*=sensor_checkbox] input[type=button],
#sidebar .sidebar_box[cont*=sensor_checkbox] input[type=image],
#sidebar .sidebar_box[cont*=sensor_checkbox] input[type=submit],
#sidebar .sidebar_box:nth-child(3) input[type=button],
#sidebar .sidebar_box:nth-child(3) input[type=image],
#sidebar .sidebar_box:nth-child(3) input[type=submit]{
	background-color:darkgray;
	color:white;
}


.sidebar_box input {
	max-width:12vw;
}
.sidebar_box form[name=unit_search_form] input[type=checkbox] +label {
	cursor:auto;
}
.sidebar_box form[name=unit_search_form] input[type=checkbox] {
	display:inline;
}
.sidebar_box form[name=unit_search_form] input[type=checkbox] + label::before, .sidebar_box form[name=unit_search_form]  input[type=checkbox] + label:before{
	content:none;
	padding:inherit;
}
.sidebar_box form[name=unit_search_form]  input[type=checkbox]:checked + label::before, .sidebar_box form[name=unit_search_form]  input[type=checkbox]:checked + label:before{
	content:none;
	padding:inherit;
}

.sidebar_box input[type=checkbox] + label ,.sidebar_box input[type=checkbox].box-close-open + label{
	cursor:pointer;
	color:black;
}
.sidebar_box input[type=checkbox] {
	display:none;
}
.sidebar_box input[type=checkbox] + label::before, .sidebar_box input[type=checkbox] + label:before,
.sidebar_box input[type=checkbox].box-close-open + label::before {
	content:url(/images/open_arrow.png);
	padding:3px;
}
.sidebar_box input[type=checkbox]:checked + label::before, .sidebar_box input[type=checkbox]:checked + label:before,
.sidebar_box input[type=checkbox]:checked.box-close-open + label::before{
	content:url(/images/close_arrow.png);
	padding:3px;
}
.sidebar_box #tensionLegend ul {
	padding: 2px 15px;
}
.ims-weather, .aemet-weather, .evaporation, .accuweather {
	padding-right: 50px;
	height: 35px;
	vertical-align: middle;
	display: block;
	line-height: 35px;
}
.sidebar_box a:link, .sidebar_box a:visited {
	text-decoration:none;
	color:black;
	/*font-weight:bold;*/
}

.ims-weather {
	background: url("/images/weather-il.png") top right no-repeat;

}
.evaporation {
	background:url('/images/evaporation.png') top right no-repeat;
}
.accuweather {
	background:url('/images/evaporation.png') top right no-repeat;
}
.aemet-weather {
	background: url("/images/aemet.png") top right no-repeat;
}
.authenticated #content, #content.content , #content.products /*,
.authenticated  #content.my_units, .authenticated  #content.chart, .authenticated  #content.table,
 #content.downloads */{
	margin:auto;
	float:left;
	width:80%;
	box-sizing:border-box;
}
#content.content a[href^="/uploads/"] , #content.products a[href^="/uploads/"] ,
#content.content a[href^="uploads/"] , #content.products a[href^="uploads/"] {
	display:list-item;
	list-style-image:url("/images/icon_download.jpg");
}

#content.content a[href$='.pdf'] , #content.products a[href$='.pdf']{
	display:list-item;
	list-style-image:  url("/images/icon_mottes.jpg");
}
.authenticated  #content.all_graphs {
	margin:auto;
	width:100%;
	box-sizing:border-box;
}
/* my units icons */
#sidebar .sidebar_box input[type=button].action-icon {
	display:none;
	float:left;
}
#sidebar .sidebar_box .show input[type=button].action-icon{
	display:block;
}
.action-icon, input[type=button].action-icon, input[type=submit].action-icon , #sidebar .sidebar_box .show input[type=button].action-icon{ 
    background-image: url("/images/icons.png");
    background-size: auto 100%;
    background-origin: content-box;
    background-repeat: no-repeat;
	background-color:transparent;
	color:transparent;
    display: inline-block;
	width:40px;
	height:40px;
}
input[type=button].action-icon, input[type=submit].action-icon {
	padding:0;
	border:none;
	color:transparent;
}

.action-icon.small {
	width: 25px;
	height: 25px;
}
.action-icon.table-icon {
	background-position: top left;
}
.action-icon.edit-icon {
	background-position: 25%
}
.action-icon.reload-icon {
	background-position: 50%;
}
.action-icon.excel-icon {
	background-position: 75%;
}
.action-icon.graph-icon {
	background-position:97%;
}

#chart_header div.action-icon{
	margin-bottom: -5px;
}

/* imported from "authenticated" stylesheet */
/*input[type="text"], input[type="password"], input[type="email"], input[type="url"], textarea {
    color: #66513D !important;
    font-size: 13px;
    font-style: normal;
    font-weight: normal;
    padding: 4px 0;
    text-shadow: none;
    width: 100%;
    background: none repeat scroll 0 0 #F9FAFB;
    border: 1px solid #B9C2CB;
    border-radius: 4px;
    margin: 3px auto;
}

input, select, textarea {
    font-size: 13px;
    font-style: normal;
    font-weight: normal;
    vertical-align: middle;
	max-width:100px;
	background-color:transparent;
}
*/
.error_message{
	font-weight:bold;
	color:#bf0000;
}
.sensors label {
	clear:none;
	float:none
}
.sensors label + input {
	clear:none;
	float:none;
}

input[type=checkbox] + label {
	float:none;

}
label {
	float:right;
	clear: right;
	max-width:45%;
	min-width:90px;
	margin-left:2px;

}

label + input {
	max-width:50% !important;
	min-widh:90px;
	clear: left;
	float: right;
}

input[type=checkbox] {
	margin:5px;
	width:22px;
}
input[type=checkbox]::after {
	background:#ededed;
	width:20px;
	height:20px;
	z-index:2;
	text-align:center;
	border:1px solid grey;
	display:inline-block;
	color:black;
	content:" ";
}

input[type=checkbox]:checked::after {
	content:"✔";
	font-weight:bold;
	font-size:16px;
	color:grey;
}


.class input {
	width:auto!important;
}
input[type="button"],input[type="submit"]{
	-moz-box-sizing: content-box;
	background: #576614;
	color: #FFFFFF;
	display: block;
	clear:both;
	margin: 5px;
	overflow: visible;
	position: relative;
	text-align: center;
	text-indent: 0;
	vertical-align: middle;
	white-space: nowrap;
	font-size:1.5em;
    /*
    line-height: 24px;
    text-decoration: none;
   background-attachment: scroll;
    background-clip: border-box;
    background-image: none;
    background-origin: border-box !important;
    background-position: 0 0;
    background-repeat: repeat;
    background-size: auto auto;
    border-collapse: separate;
    height: 24px;
*/
    border: 0 none;
    border-radius: 3px;
    margin: 0 auto;
    padding: 0 21px;
}


#rightbar {
	border-left: 1px dotted #A3B4C8;
    margin: 0 auto;
    width: 200px;
	min-width:200px;
	display: table-cell;
    vertical-align: top;
	padding:5px;
}
#rightbar select {
	max-width:200px;
}

a.inbody:link { 
	color: blue;
	text-decoration: none;
}
a.inbody:visited { 
	color:blue;
	text-decoration: none; 
}
a.inbody:active { 
	color: #14075e;
	font-weight: bold; 
	text-decoration: none;
}

a.inbody:hover { 
	color: grey; 
	text-decoration: underline;
}
/*
.home_units {
	float:right;
	display:inline-block;
	margin:20px;
}
.home_units h2 {
	font-size:14px;
	text-align:center;
}*/
#from input, #to input {
	float: none;
	width:100px;
}

#unit-form {
	display: block;
	background-color:#ededed;
	color:black;
	/*margin: 1vh 2.3vw;*/
	padding:5px;
	margin-bottom:10px;/* was: 20px */
	box-sizing:border-box;
	font-size:1em;
}

#unit-form > form {
	display:inline-block;
}
#unit-form #select-unit select {
	max-width: calc(79vw - 1200px);
	min-width: 20px;
	border: 1px solid #9e9e9e;
	box-sizing: border-box;
}

#unit-form input, #unit-form select,#unit-form textarea {
	background-color:transparent;
}
#unit-form input[type=text],#unit-form select,#unit-form textarea {
	/*min-width:60px;*/
	color:grey;
	font-weight:600;
}
#unit-form div > div:before {
	content:'|';
	font-size:1.1em;
}
#unit-form div {
	display:inline-block;
	white-space:nowrap;
}
#unit-form label {
	float: none;
	clear: none;
	max-width: fit-content;
	min-width: fit-content;
	margin-left: auto;
}
#unit-form #to span,#unit-form #from span {
	white-space:nowrap;
}
#unit-form div.sensors {
	display:block;
}

#unit-form input[type=text] {
	border:1px gray solid;
}

.sensors .legend_color {
	display: inline-block;
	float:right;
	margin:3px;
	/*height: 40px;
	line-height:40px;*/
	width: 20px;
	clear:none;
}

.sidebar_box .sensors {
	width:100%;
}
.sensors {
	display:inline-block;
}
.sensors input[type=checkbox] {
	display:none;
}
.sensors input[type=checkbox] + label {
	color:gray;
}
.sensors input[type=checkbox]:checked + label {
	color:black;
	/*font-weight:bolder;*/
}
.sensors .sensor-offset {
	display:none;
}
.show .sensors .sensor-offset {
	display: block;
	padding: 10px;
	margin-top: -20px;
	text-align: center;
}
.sensors input[type=checkbox] + label::before, .sensors input[type=checkbox] + label:before{
	cursor: pointer;
	content:" ";
	width: 20px;
	height: 20px;
	background-color: inherit;
	display: inline-block;
	visibility: visible;
	margin:-6px 4px;
	display:inline-block;
	font-size:medium;
	text-align:center;
}

.sensors input[type=checkbox]:checked + label::before, .sensors input[type=checkbox]:checked + label:before {
	content:"✔";
	color:white;
}
.show .sensors .sensor_id {
	white-space:normal;
	height:50px;

}
.sensors .sensor_id {
	height:40px;
	margin:auto;
	display:block;
	white-space:nowrap;
}

.sensors .edit {
	clear:right;
}
.sensors .offset {
	display:inline;
	clear:left;
	float:right;
}
.sensor_legend_line {
	vertical-align:middle;
	display:block;
	clear: both;
}

#TensioChartContainer {
	text-align:center;
	box-sizing:border-box;
	/*	float:left;*/
}
#TensioChartContainer > span {
	box-sizing: border-box;
}
#chart_properties {
	width:100%;
	white-space:normal;
	padding:20px 5px 0;
	vertical-align:top;
}
#chart_properties input[name=action]{
	clear:both;
	display: block;
	margin: auto;
}
/* for deshen and water display */
#deshen_and_water_sensors {
	display:table-cell;
	width:150px;
	height:190px;
}
#deshen_or_water_sensors {
	display:table-cell;
	width:150px;
	height:170px;
}

#tabs {
	direction:ltr;
	float: right;
	display: block;
	width: 100%;
}      
a.tab { 
	margin-right: 2px;
	margin-left:auto;
	float: left;
	width:50px;
	border-collapse: collapse; 
	border-style: solid solid none solid;  
	border-color: black; 
	border-width: 1px 1px 0px 1px; 
	/*background-color: green;*/ 
	padding: 2px 0.5em 0px 0.5em; 
	margin-top: 4px;
	text-decoration: none;
	border-radius:10px 10px 0 0;
	color:#607E9F;
	font-size:12px;
}
a.tab:hover { 
	border-color: black; 
	/*background-color: silver;*/
}

/* Table/chart navigation*/
#navigation_arrows {
	white-space:nowrap;
	float:right;
}
#navigation_arrows #next{
	float:left;
}
#navigation_arrows #period {
    clear: none;
    float: left;
    margin-left: 15px;
}
#navigation_arrows #previous {
	float:right;
}
#navigation_arrows #next span {
	float:right;
}
#navigation_arrows #next img {
	float:left;
}
#navigation_arrows #previous span {
	float:left;
}
#navigation_arrows #previous img{
	float:right;
}
#navigate {
	font-weight:bold;
	text-align:center;
	white-space:normal;
}
#navigate a {
	text-decration:none;
	color:blue;
	font-weight:bold;
}
#navigate a img {
	border:0;
}

/* all graphs navigtions */
#navigate #next{
	float:left;
	margin-left:30%
}
#navigate #previous {
	float:right;
	margin-right:30%;
}
#navigate #next span {
	float:right;
}
#navigate #next  input[type=submit] {
	float:left;
	clear:none;
}
#navigate #previous span {
	float:left;
}
#navigate #previous input[type=submit]{
	float:right;
	clear:none;

}

#content table,#content table tr,#content table td{
	border-color: white;
	border-style: solid;
	border-width: 2px;
	border-collapse:collapse;
	text-align:center;
	vertical-align:middle;
	font-size: small;
}
#content table tr:nth-child(even) {
    background-color: #f9f9f9;
} 
#content table{
	padding:2px;
}
.order {
	display:none;/*display:inline-block;*/
	vertical-align:middle;
	cursor:pointer;
}
.order:hover {
	background:#f9f9f9;
}
.order span {
	width: 10px;
	height: 7px;
	background-image: url(/images/open_arrow.png);
	display: block;
	background-size: 100%;
	background-repeat: no-repeat;
	margin:2px;
}
.order span.asc {
	background-image: url(/images/close_arrow.png);
	background-size: 100%;
	background-repeat: no-repeat;
}
#content table#my-units td, #content table#my-units th {
	border-width:0px;
	/*padding:11px 15px;*/
	padding: 0 1vw;
	font-size:small;
}
#content table#my-units td {
	text-align:right;
}

#content table#my-units {
	border-collapse:separate;
	border-bottom: 1px solid grey;
}
.mobile #content table#my-units td, .mobile #content table#my-units th {
	border-width:initial;
	padding:initial;
}
.mobile #content table#my-units th {
	display:none;
}
.mobile #content table#my-units td {
	display: block;
	border: none;
}
.mobile #content table#my-units tr {
	background-image:url(/images/units_icon_ltr.png);
	background-repeat:no-repeat;
	background-size:40px;
	background-position:75% center;
	display: block;
	float: right;
}
.mobile #content h1 {
	font-size:medium;
}
.mobile #content h2, .mobile #content h3 {/*, .mobile #content:first-child > div:first-child p:first-child{*/
	padding:0 10px 10px 0;
	margin: 20px 0;
	font-size:medium;	
}

.mobile #unit-form #select-unit select {
	max-width:auto;
}

.mobile #unit-form div.navigate, .mobile #unit-form div#action_buttons {
	width: 100%;
	display: block;
	text-align: center;
}

.mobile #unit-form div#unit-form-navigator {
	display: block;
	margin: auto;
	width: 100%;
}

.mobile #unit-form > form {
	display:block;
	width:100%;
	overflow: auto;
}
.mobile form#select-unit div {
	display:block
}
.mobile form#select-unit div select#select_unit_listbox {
	min-width: calc(100% - 20vw)!important;
}
/*.mobile #select-unit label, .mobile form[name="data"] label {
	width:25%;
	align:left;
}
.mobile #select-unit input, .mobile #select-unit select , .mobile form[name="data"] input, .mobile form[name="data"] select{
	width:75%;
	align:rightt;
}
.mobile .navigation input {
	width:initial;
}*/
.mobile #unit-form div {
	width: auto;
	text-align:center;
} 
.mobile #unit-form div > div:before {
	content:'';
}

#content table#my-units tr td.unit_name {
	text-align:right;
	/*padding:10px;*/
}
table#my-units tr:nth-child(even) {
	background-color: #ededed;
}

#content table thead tr th {
	border-color:white!important;
	border-style: solid;
	border-width:2px;
	background-color:#b8b8ba;
	color:black;
	font-weight:normal;
	font-size:larger;
	vertical-align:middle;
}
#content.table table thead tr th {
	font-size:inherit;
}

#content.table table tbody:nth-child(odd) {
	background-color: #ededed;
}
/* fixed side heading*/
#content table th:first-of-type{
    position: sticky;
    display: table-cell;
    right: 0;
    margin-left: 13px;
    z-index: 2;
border: 1px solid white;
}

#action_buttons {
	display:block;
	clear:both;
}
#action_buttons > input[type="image"] {
    margin: 3px;
}
table#chart-table, table#chart-table tr, table#chart-table tr td{
	border:none!important;
}

#popup-iframe {
	width:100%;
	height:100%;
	margin:auto;
}

#topframe {
	background-color:#e3e3e3;
	position:relative;
	top:0;
	right:0;
	width:100%;
	line-height:20px;
}

.all_graphs_title {
	height:30px;
	font-size:20px;
}
.all_graphs_unit {
	/*	border: none;
		background-color:#d9e3ee;
	*/
	display:table-cell;
	float:left;
	margin:1px;
	cursor:pointer;
	float:left;
	text-align:center;
	min-height:50px;
	min-width:50px;
}
.all_graphs_unit img {
	height: calc( 100% - 30px );
	display:table-cell;
	margin:5px;
	min-height:300px;
}
#content table.all_graphs , #content table.all_graphs td ,#content table.all_graphs tr{
	border-collapse: collapse;
    border-color: transparent;
    border-style: none;
    border-width: 0px;
	border:none !important;
	width:100%;
}

/* for remarks popup */
.advisor {
	font-weight:600;
	color:red;
}

/* in-chart dropdown and moveable divs*/
.moveable {
	z-index:9999;
	background: -moz-linear-gradient(top, rgba(60,60,100,0.9) 25px, rgba(60,60,100,0) 25px, rgba(60,60,100,0) 100%);
	background: -webkit-linear-gradient(top, rgba(60,60,100,0.9) 25px, rgba(60,60,100,0) 25px,rgba(60,60,100,0) 100%);
	background: linear-gradient(to bottom, rgba(60,60,100,0.9) 25px, rgba(60,60,100,0) 25px,rgba(60,60,100,0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c0c0c0', endColorstr='#ffffffff',GradientType=1 );
	/*box-shadow:rgba(192,192,192,0.7) 10px 10px 8px ;*/
}
.moveable.drag {
	box-shadow:none;
	background:gray;
}
#content .moveable {
	/*background:rgba(60,60,100,0.9);*/
}
.remark-moveable span[id^="del["] {
	white-space:nowrap;
}
.remark-moveable span[id^="del["]::before, .moveable span[id^="del["]:before {
	content: "X";
	color: red;
	font-weight: bold;
	font-style: italic;
	cursor: pointer;
	text-align: center;
	display: inline-block;
	background: white;
	padding: 0 5px;
	border: gray solid 1px;
	border-radius: 3px;
}
.remark-moveable span[id^="del["]:hover::before, .remark-moveable span[id^="del["]:hover:before {
	border: gray inset 1px;
	background:lightgrey;
}
.remark-moveable li span {
    display: table-cell;
    padding: 2px 3px;
}
.remark-moveable li {
	display:table-row;
}
.remark-moveable li:nth-child(2n-1){
	background:rgba(255,255,255,0.5);
}

ul.remark-moveable {
	display:table;
	border:1px ridge gray;
	font-size:small;
	padding: 0;
}

.moveable>span	{
	padding:0 5px;
	width:20px;
	height:20px;
	cursor:pointer;
	vertical-align:middle;
        color: black;
	font-weight:bold;
        text-shadow: 1px 1px lightgrey;
        border: lightgrey outset 2px;
        background-color: #c0c0c0;
}
.moveable>span:hover {
        border: lightgrey inset 2px;
}

.moveable .remark-text {
	background: #f4f4f4;
	color: black;
	text-align:center;
	padding:2px;
}

.moveable .remark-text input[type=button],.moveable .remark-text input[type=submit] {
	background-color: darkgrey;
	color: white;
}

.moveable .remark-text h1 {
	font-size:small;
}
.moveable .remark-text textarea {
	height:20px;
	width:90%;
}

.moveable .remark-text ul {
	list-style-type:none;
	max-width:20vw;
	padding:2px
}


#chartDropDown {
	min-width:100px;
	min-height:50px;
	border:1px solid;
	background:rgba(250,250,250,0.7);
	position:absolute;
}
#chartDropDown > span {
	border: solid 1px gray;
	background:#c0c0c0;
	font-color:#bbbbbb;
	border-style:inset;
	padding:2px;
	margin:2px;
	top:4px;
	left:2px;
	cursor:pointer;
	font-weight:600;
	font-family:fixed;
	position:relative;
	box-sizing: border-box;
}

#chartDropDown > ul	{
	margin:10px;
	padding:0;
	list-style-type:none;
	display:block;
	font-size:20px;
}
#chartDropDown > ul	 li {
	margin:3px;
	padding:3px;
	cursor: pointer;
}
#chartDropDown li.disabled {
	color:#f5f5f5;
	text-shadow:gray -1px 1px;
}
#chartDropDown li.disabled:hover {
	color:#f5f5f5;
	text-shadow:gray -1px 1px;
	background:#c0c0c0;
}

#chartDropDown > ul li:hover {
	background:#ededed;
	color:black;
}
#unit-form .topsensors {
	display:none;
}

 input.navigate{
	width:20px;
	height:20px;
	margin:2px;
	padding:0;
	box-sizing:border-box;
	display: inline-block;
	background-color:transparent;
	background-origin: content-box;
	background-repeat: no-repeat;
	color:transparent;
	cursor:pointer;
}

input[type=button][value='fastrewind'].navigate {
	background-image:url(/images/double_arrow_right.png);
}
input[type=button][value='rewind'].navigate {
	background-image:url(/images/arrow_right.png);
}
input[type=button][value='forward'].navigate {
	background-image:url(/images/arrow_left.png);
}
input[type=button][value='fastforward'].navigate {
	background-image:url(/images/double_arrow_left.png);
}

div.fixed-table-header {
	width:100%;
}

.fixed-table-header table {
	/*border-spacing: 0;*/
}
.fixed-table-header table thead, .fixed-table-header table tbody {
	display: block;
	width:calc(100% - 18px);
}
.fixed-table-header th, .fixed-table-header td {
	display: table-cell;
}
.fixed-table-header table tbody {
	max-height: 80vh;
	overflow: auto;
}
