:focus {
  outline: none;
}
.row {
  margin-right: 0;
  margin-left: 0;
}
/* 
    Sometimes the sub menus get too large for the page and prevent the menu from scrolling, limiting functionality
    A quick fix is to change .side-menu to 

    -> position:absolute
    
    and uncomment the code below.
    You also need to uncomment 
    
    -> <div class="absolute-wrapper"> </div> in the html file

    you also need to tweek the animation. Just uncomment the code in that section
    --------------------------------------------------------------------------------------------------------------------
    If you want to make it really neat i suggest you look into an alternative like http://areaaperta.com/nicescroll/
    This will allow the menu to say fixed on body scoll and scoll on the side bar if it get to large
*/
/*.absolute-wrapper{
    position: fixed;
    width: 300px;
    height: 100%;
    background-color: #f8f8f8;
    border-right: 1px solid #e7e7e7;
}*/

.side-menu {
  position: fixed;
  width: 300px;
  height: 100%;
  background-color: #f8f8f8;
  border-right: 1px solid #e7e7e7;
}
.side-menu .navbar {
  border: none;
}
.side-menu .navbar-header {
  width: 100%;
  border-bottom: 1px solid #e7e7e7;
}
.side-menu .navbar-nav .active a {
  background-color: transparent;
  margin-right: -1px;
  border-right: 5px solid #e7e7e7;
}
.side-menu .navbar-nav li {
  display: block;
  width: 100%;
  border-bottom: 1px solid #e7e7e7;
}
.side-menu .navbar-nav li a {
  padding: 15px;
}
.side-menu .navbar-nav li a .glyphicon {
  padding-right: 10px;
}
.side-menu #dropdown {
  border: 0;
  margin-bottom: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}
.side-menu #dropdown .caret {
  float: right;
  margin: 9px 5px 0;
}
.side-menu #dropdown .indicator {
  float: right;
}
.side-menu #dropdown > a {
  border-bottom: 1px solid #e7e7e7;
}
.side-menu #dropdown .panel-body {
  padding: 0;
  background-color: #f3f3f3;
}
.side-menu #dropdown .panel-body .navbar-nav {
  width: 100%;
}
.side-menu #dropdown .panel-body .navbar-nav li {
  padding-left: 15px;
  border-bottom: 1px solid #e7e7e7;
}
.side-menu #dropdown .panel-body .navbar-nav li:last-child {
  border-bottom: none;
}
.side-menu #dropdown .panel-body .panel > a {
  margin-left: -20px;
  padding-left: 35px;
}
.side-menu #dropdown .panel-body .panel-body {
  margin-left: -15px;
}
.side-menu #dropdown .panel-body .panel-body li {
  padding-left: 30px;
}
.side-menu #dropdown .panel-body .panel-body li:last-child {
  border-bottom: 1px solid #e7e7e7;
}
.side-menu #search-trigger {
  background-color: #f3f3f3;
  border: 0;
  border-radius: 0;
  position: absolute;
  top: 0;
  right: 0;
  padding: 15px 18px;
}
.side-menu .brand-name-wrapper {
  min-height: 50px;
}
.side-menu .brand-name-wrapper .navbar-brand {
  display: block;
}
.side-menu #search {
  position: relative;
  z-index: 1000;
}
.side-menu #search .panel-body {
  padding: 0;
}
.side-menu #search .panel-body .navbar-form {
  padding: 0;
  padding-right: 50px;
  width: 100%;
  margin: 0;
  position: relative;
  border-top: 1px solid #e7e7e7;
}
.side-menu #search .panel-body .navbar-form .form-group {
  width: 100%;
  position: relative;
}
.side-menu #search .panel-body .navbar-form input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: 50px;
}
.side-menu #search .panel-body .navbar-form .btn {
  position: absolute;
  right: 0;
  top: 0;
  border: 0;
  border-radius: 0;
  background-color: #f3f3f3;
  padding: 15px 18px;
}
/* Main body section */
.side-body {
	margin-left: 285px;
}
/* small screen */
@media (max-width: 1080px) {
	.navbar-toggle {
		display: inline;
	}
	
  .side-menu {
    position: relative;
    width: 100%;
    height: 0;
    border-right: 0;
    border-bottom: 1px solid #e7e7e7;
  }
  .side-menu .brand-name-wrapper .navbar-brand {
    display: inline-block;
  }
  /* Slide in animation */
  @-moz-keyframes slidein {
    0% {
      left: -300px;
    }
    100% {
      left: 10px;
    }
  }
  @-webkit-keyframes slidein {
    0% {
      left: -300px;
    }
    100% {
      left: 10px;
    }
  }
  @keyframes slidein {
    0% {
      left: -300px;
    }
    100% {
      left: 10px;
    }
  }
  @-moz-keyframes slideout {
    0% {
      left: 0;
    }
    100% {
      left: -300px;
    }
  }
  @-webkit-keyframes slideout {
    0% {
      left: 0;
    }
    100% {
      left: -300px;
    }
  }
  @keyframes slideout {
    0% {
      left: 0;
    }
    100% {
      left: -300px;
    }
  }
  /* Slide side menu*/
  /* Add .absolute-wrapper.slide-in for scrollable menu -> see top comment */
  .side-menu-container > .navbar-nav.slide-in {
    -moz-animation: slidein 300ms forwards;
    -o-animation: slidein 300ms forwards;
    -webkit-animation: slidein 300ms forwards;
    animation: slidein 300ms forwards;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  .side-menu-container > .navbar-nav {
    /* Add position:absolute for scrollable menu -> see top comment */
    position: fixed;
    left: -300px;
    width: 300px;
    top: 43px;
    height: 100%;
    border-right: 1px solid #e7e7e7;
    background-color: #f8f8f8;
    -moz-animation: slideout 300ms forwards;
    -o-animation: slideout 300ms forwards;
    -webkit-animation: slideout 300ms forwards;
    animation: slideout 300ms forwards;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
	margin-left: -10px;
	margin-top: 8px;
  }
  /* Uncomment for scrollable menu -> see top comment */
  /*.absolute-wrapper{
        width:285px;
        -moz-animation: slideout 300ms forwards;
        -o-animation: slideout 300ms forwards;
        -webkit-animation: slideout 300ms forwards;
        animation: slideout 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }*/
  @-moz-keyframes bodyslidein {
    0% {
      left: 0;
    }
    100% {
      left: 300px;
    }
  }
  @-webkit-keyframes bodyslidein {
    0% {
      left: 0;
    }
    100% {
      left: 300px;
    }
  }
  @keyframes bodyslidein {
    0% {
      left: 0;
    }
    100% {
      left: 300px;
    }
  }
  @-moz-keyframes bodyslideout {
    0% {
      left: 300px;
    }
    100% {
      left: 0;
    }
  }
  @-webkit-keyframes bodyslideout {
    0% {
      left: 300px;
    }
    100% {
      left: 0;
    }
  }
  @keyframes bodyslideout {
    0% {
      left: 300px;
    }
    100% {
      left: 0;
    }
  }
  /* Slide side body*/
  .side-body {
    margin-left: 5px;
    margin-top: 70px;
    position: relative;
    -moz-animation: bodyslideout 300ms forwards;
    -o-animation: bodyslideout 300ms forwards;
    -webkit-animation: bodyslideout 300ms forwards;
    animation: bodyslideout 300ms forwards;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  .body-slide-in {
    -moz-animation: bodyslidein 300ms forwards;
    -o-animation: bodyslidein 300ms forwards;
    -webkit-animation: bodyslidein 300ms forwards;
    animation: bodyslidein 300ms forwards;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  /* Hamburger */
  .navbar-toggle {
    border: 0;
    float: left;
    padding: 18px;
    margin: 0;
    border-radius: 0;
    background-color: #f3f3f3;
  }
  /* Search */
  #search .panel-body .navbar-form {
    border-bottom: 0;
  }
  #search .panel-body .navbar-form .form-group {
    margin: 0;
  }
  .navbar-header {
    /* this is probably redundant */
    position: fixed;
    z-index: 3;
    background-color: #f8f8f8;
  }
  /* Dropdown tweek */
  #dropdown .panel-body .navbar-nav {
    margin: 0;
  }
}

.backSet{
	background-color: White;
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    text-align: center;
    top: 0;
    z-index: 100;
	white-space: nowrap;

} 
 
.backSet::before {
    content: "";
    display: inline-block;
    height: 100%;
    margin-right: -0.25em;
    vertical-align: middle;
}

 
.loginModal{
	background-color: white;
	width: 350px;
    vertical-align: middle;
	white-space: initial;
	display:inline-block;
}
 
form {
	padding: 0 10px 20px;
}

.LogonInput{
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
	font-family: 'Muli', sans-serif;
}

.button {
    background-color: rgb(0, 0, 102);
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}
.button:hover{
	cursor: pointer;
}

.imgcontainer {
    text-align: center;
    margin: 24px 0 10px 0;
}

.logonMessage{
	height: 25px;
	color: red;
	text-align: center;
}

.Device{
	margin: 5px;
	background: #f8f8f8 none repeat scroll 0 0;
    border-radius: 4px;
    padding: 10px;
	text-align: center;
	height: 160px;
}

.Device:hover{
	cursor: pointer;
}

.block {
	text-align: center;
	white-space: nowrap;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	top: 0;
	z-index: 100;
}

.block:before {
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	margin-right: -0.25em;
}

.centered {
	display: inline-block;
	vertical-align: middle;
}

#deviceSetupContent{
    background: white none repeat scroll 0 0;
    display: inline-block;
    width: 90%;
    max-width: 700px;
  	font-family: Arial, Helvetica, sans-serif;
    color: grey;
	
	
}

#deviceSetupTitleWrap {
    font-size: 14px;
    text-align: left;
}

#deviceSetupFooter {
	background: white; 
	width: 960px;
	height:	10%; 
	min-height: 100px
}



.deviceHeader{
	border-color: lightgrey;
    border-style: none none solid;
    border-width: 0.2px;
    font-size: 20px;
    margin-top: 0;
    padding: 16px;
    text-align: left;
	
}

.deviceLabel{
	font-weight:normal;
	width: 20%;
	margin: 0px;
}

.deviceInput{
    border-color: lightblue;
    border-style: none none solid;
    border-width: 1px;
    box-sizing: border-box;
    font-size: 20px;
    padding-right: 6px;
    text-align: left;
    width: 78%;
}

#deviceWrap{
	position: fixed;
	z-index: 1000;
	display: block; 
	width: 100%; 
	height: 100%; 
	text-align: center;
	top: 0px;
	bottom: 0px;
	background: rgba(0, 0, 0, 0.8);
}

#deviceMain{
	display: table;
	width: 100%; 
	height: 100%; 
	padding: 10px;
}

#deviceHeader{
	height: 30px;
	background: white;
	
}

#deviceNew{
	padding: 10px 20px; 
	background: white;
	
}

.deviceHeader {
  display: table-row;

}

.deviceContent{
  display: table-row;
  height: 100%;
  position: relative;
}

.deviceFooter {
  display: table-row;
  float: right;
}

.deviceInner {
  position: relative;
  display: table-cell;
  background-color: white;
  padding: 5px;
  font-weight: bold;
}

.deviceScrollable {
	position: absolute;
	left: 0; 
	right: 0;
	top: 0; 
	bottom: 0;
	overflow: auto;
	border: 0.5px solid lightgrey;
	
}

#deviceInput{
	resize: none;
	width: 680px;
	height: 50px;
	text-align: center;
	float: left;
	box-sizing: border-box;
}

.SaveDevice{
	background-color: rgb(0, 0, 102);
	color:white;
	width: 100px;
	height: 50px;
	float:left;
	font-size: 12px;
	border-style: none;
	margin-left: 10px;
}

.CancelDevice{
	background-color: #292929;
	color: white;
	width: 100px;
	height: 50px;
	float:left;
	font-size: 12px;
	border-style: none;
	margin-left: 10px;
}

.SaveDevice:hover{
	cursor: pointer;
}

.deviceList{
	padding: 10px;
	font-weight: normal;
}

.chartHeading  {
	font-size: x-large;
	margin: 10px 0px;
}

.deviceHeading {
	font-size: x-large;
}

.sensorHeading {
	border-color: lightgray;
	border-style: solid;
	border-width: 0 0 0.5px;
	font-size: large;
	font-weight: normal;
	padding: 15px;
	text-align: left;
	background-color: #efefef;
}

.sensorHeading:hover {
	cursor: pointer;
}

.sensorContent {
	text-align: left;
	font-weight: normal;
	width: 100%;
	padding: 0px 10px;
	display: block;
	
}

.sensorInputWrap{
	display: block;
	width: 100%;
}

.TickBox {
    background-color: white;
    border: 1px solid #ccc;
    box-sizing: border-box;
    float: left;
    font: 12px arial,sans-serif;
    height: 25px;
    margin: 10px 0px;
    padding: 5px 0;
    text-align: center;
    width: 25px;
}

.sensorLabel{
	float: left;
    font-weight: normal;
    margin-top: 15px;
    text-align: left;
    width: 30%;
	white-space: pre-wrap;
}

.clear{
	clear:both;
}

.sensorInput{
	border: 1px solid #ccc;
    box-sizing: border-box;
    display: inline-block;
    font-family: "Muli",sans-serif;
    margin: 8px 0;
    padding: 5px 10px;
    width: 70%;
}

.addBtn {
    background-color: darkgreen;
    color: white;
    font-weight: bold;
    height: 40px;
    line-height: 40px;
    margin: 12px 0;
    text-align: center;
    width: 100px;
}

.addBtn:hover {
	cursor: pointer;
}

.addAddressInput {
	width: 58%;
}

.Delete{
	width: 5%;
	display: inline-block;
	margin-left: 10px;
	font-size: 20px;
	text-align: right;
}

.Delete:hover {
	cursor: pointer;
}

.Datefilter{
	transition: background-color 0.3s ease;
    background-color: grey;
    color: white;
    float: left;
    margin-left: 2px;
    text-align: center;
    width: 47px;
}

.Datefilter:hover{
	cursor: pointer;
}

.DatefilterActive{
	background-color: #000066;
	transition: background-color 0.3s ease;
}

.DatefilterTitle{
	float: left; 
	width: 55px
}

.loader {
	animation: 2s linear 0s normal none infinite running spin;
	border-color: lightblue lightgrey;
	border-image: none;
	border-radius: 50%;
	border-style: solid;
	border-width: 16px;
	display: inline-block;
	height: 70px;
	width: 70px;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}