:root {
  --greenDark:#6C883D;
  --green: #728F40;
  --greenLight:#7C9C46;
  --white: #ffffff;
  --black: #666666;
  --red: #E71D1D;
  --yelow: #D8B713;
  --grayLight:#f3f3f3;
  --grayMedium:#eeeeee;
  --gray:#cccccc;
  --grayDark:#666666;
}

body{
  font-weight: lighter;
  font-size: 17px;
}
.page-charts{
/*  margin-top:65px;*/
}

.page-charts .top{
  border-bottom: 1px solid var(--grayMedium);
}

.page-charts #devices{
  background-color: var(--grayLight);
}

.page-homepage #nextContent{
  cursor: pointer;

}
.page-charts #nextContent{
  display: none;
}

.header{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.page-charts .header{
  flex-direction: row-reverse;
}
.header div{
  padding:20px;
}
.header div:first-child{
}
.header div:last-child{
}
h1{
  padding-bottom: 10px;
  margin-bottom: 40px;
  margin-top: 10px;
  border-bottom:1px solid var(--gray);
}

h2{
  font-size: 1.7em;
  font-weight: lighter;
  margin-bottom: 10px;
}

h3{
  font-size: 1.5em;
  font-weight: lighter;
}

a.anchor {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
    border:1px solid red;
}
input.date-change, input.date-change::placeholder{
  font-size: 0.9em;
  font-style: italic;
  color: var(--grayDark);
  width: 150px !important;
  text-align: center;
}

.center{
  text-align: center;
}
.block{
  margin-top:40px;
  margin-bottom:20px;
  padding-top:20px;
  padding-bottom:20px;
}
.section-title{
  margin-top:20px;
  margin-bottom:20px;
}


/* SEARCH BOX */
.search-box-wrapper {
  position: absolute;
  width: 300px;
  left: 10%;
  top: 0px;
  z-index: 1000;
}
.search-box-wrapper h2, .search-box-wrapper p.title {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: lighter;
  margin-top: 10px;
}

.search-box-wrapper .container {
  padding-right: 1px;
  padding-left: 1px;
  margin-right: auto;
  margin-left: auto;
}


.search-box .form-map {
  -moz-transition: 0.4s;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  background-color: rgba(255, 255, 255, 0.4);
  padding: 5px 10px 1px 10px;
}

.search-box .form-map:hover {
  background-color: rgba(255, 255, 255, 0.9);
}
.search-box .form-group {
  margin-bottom: 10px;
}

.search-box .form-group select{
  background-color: var(--greenDark);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  min-height: 40px;
  padding: 10px 9px 9px 9px;
  width: 100%;
}

.search-box .btn, .search-box .field {
  width: 100%;
}
.search-box input.field{
  border:0px;
  border-bottom: 1px dotted #666666;
  font-style: italic;
  font-size: 0.9em;
  padding:5px;
  color:#333;
}

.search-box .form-group .btn.btn-default, select.btn-default {
  -moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
  -moz-transition: 0.2s;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  background-color: var(--black);
  color: var(--white);;
}
/*
.search-box {
  -moz-transition: 0.4s;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  padding-right: 15px;
  position: absolute;
  z-index: 1;
}

.search-box .show-search-box {
  filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
  opacity: 1;
}
*/

/* PAGE */
.chartLoading{
  position: absolute;
  top:60%;
  left:50%;
}

.form-select-sensor label{
  margin-right:10px
}

.top{
    position: sticky;
    background-color: #ffffff;
    top: 0;
    z-index: 999;
    /*
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 65px;
    
    overflow: hidden;
    */
}

.rows{
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;

}
.rows-date {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-end;
  margin-right: 5%;
}
.rows-date .cols:first-child{
  margin-right: 3px;
}
.rows.col{
  flex: 1 0 auto;
  text-align: center;
  box-sizing: border-box;
}
.rows .col .number-wrapper {
  text-align: center;
}
.rows .col .number-wrapper .number {
  color: #1396e2;
  font-size: 3em;
  font-weight: lighter;
  position: relative;
}
.rows .col .number-wrapper figure {
  color: #073855;
  font-size: 14px;
  line-height: 1.42857143;
}

#error-msg{
  text-align: center;
  font-size: 0.9em;
  color: red;
  vertical-align: center;
}

a.dark-link{
  background-color: var(--black);
  padding: 5px;
  border-radius: 5px;
  margin-top:5px;
  color: var(--white);
  font-weight: bolder;
  font-size: 1.1em;
  text-decoration: none;
}

#chart-link{
  background-color: var(--black);
  padding: 5px;
  border-radius: 5px;
  margin-top:5px;
}
#chart-link a{
  color: var(--white);
  font-weight: bolder;
  font-size: 1.1em;
  text-decoration: none;
}

#app-store-qr{
  display: none;
}

.page-charts #page-content{
  position: relative;
}
.page-charts #page-content:after {
  background: #f1f1f1;
  background: -moz-linear-gradient(top, #f1f1f1 0%, white 80%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f1f1f1), color-stop(80%, white));
  background: -webkit-linear-gradient(top, #f1f1f1 0%, white 80%);
  background: -o-linear-gradient(top, #f1f1f1 0%, white 80%);
  background: -ms-linear-gradient(top, #f1f1f1 0%, white 80%);
  background: linear-gradient(to bottom, #f1f1f1 0%, white 80%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f1f1f1', endColorstr='#ffffff',GradientType=0 );
  content: "";
  left: 0;
  height: 110px;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
}

div#calendar {
  position: absolute;
  right: 5%;
  z-index: 1;

}
#date {
  display: none;
}

.btn.btn-default, select.btn-default {
  -moz-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
  -moz-transition: 0.2s;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  background-color: var(--greenDark);
  color: #fff;
}

#app-store-btn img{
  cursor: pointer;
}
#app-store-qr{
 transition: 0.4s;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  position: absolute;
  left: calc(50% - 110px);
  z-index: 1100;
  background-image: url("../img/AjaxLoader.gif");
  background-repeat:no-repeat;
  background-position: center center;
  border:1px solid #cccccc;
  padding:8px
  /*
  background-size: 32px 32px;
  width:52px;
  height: 52px;
  */
}
/* Box search / Login */
