/* CSS Document */
@import url('https://fonts.googleapis.com/css?family=Noto+Sans:400,700|Roboto:300,400,500,700,900');

body {
    background-color: #e5e5e5;
    font-size: 13px;
    margin:0;
    font-family: 'Roboto', sans-serif;
}

#existingHeader, #newHeader{
    margin:5px;
}

.select2-container .select2-selection--single {
    height: 44px;
    line-height: 44px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

.select2-container--default .select2-selection--single {
    box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.08);
    border-radius: 5px;
    border: 1px solid #f0f0f0;
}


/* body:after {
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    margin: auto;
    z-index:-1;
    background-image: url('https://www.pixelscrapper.com/sites/default/files/styles/456_scale/public/s3fs-user-content/template-image/user-2/node-667/polka-dots-19-template-overlay-polka-dots.png');
    background-size: 17%;
    opacity: 0.4;
} */

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h1 {
    font-size: 2em;
    font-weight: bold;
    color: #000000;
    line-height: 1.2em;
    margin-bottom: 10px;
}

html, body, #main {
    margin: 0;
    height: 100%;
    width: 100%;
    font-size: 13px;
    font-family: 'Roboto';
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

a {
	color: inherit;
	text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    font-weight:normal;
}

a:hover:not(.button) {
    text-decoration: underline;
}

img {
    display:block;
}

input:focus, .select2-container span:focus, select:focus {
    outline: 2px solid #009dfd;
    caret-color: #009dfd;
}

.mainBackground {
    border-radius: 5px;
    overflow: hidden;
}

.mainBackground.padded {
    padding: 15px;
}

.container {
    width:1150px;
    max-width: calc(100% - 245px);
    margin-top:65px;
    display:block;
    border-radius:4px;
    position:relative;
    margin-right: 16px;
    z-index: 5;
}

.container + .container {
    margin: 0;
}

.container.fullWidth {
    width: calc(100% - 276px);
    max-width: calc(100% - 276px);
}

.tableOffset {
    padding: 10px 20px;
    box-sizing: border-box;
}

.styledForm {
    width: 300px;
    display: block;
    padding: 20px;
    border-radius: 5px;
}

.formRow {
    display: block;
    margin-bottom: 10px;
}

.formRow input:focus, .formRow select:focus {
    outline: none;
    box-shadow: 0 0 1px 2px rgb(0, 195, 255);
}

input.large {
    padding: 8px;
}

.lightButton {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    background-color: white;
    text-align: center;
    line-height: 30px;
    border-radius: 100px;
}

.lightButton a {
    font-weight: bold;
    font-size: 23px;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: rgb(155, 155, 155);
    opacity: 0.9;
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: rgb(155, 155, 155);
    opacity: 0.9;
}

::-ms-input-placeholder { /* Microsoft Edge */
    color: rgb(155, 155, 155);
    opacity: 0.9;
}

input:focus::placeholder {
    opacity: 0.2;
}

input:focus:-ms-input-placeholder { /* Internet Explorer 10-11 */
    opacity: 0.2;
}

input:focus::-ms-input-placeholder { /* Microsoft Edge */
    opacity: 0.2;
}

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

legend {
    margin-bottom: 20px;
}

.select2-container {
    vertical-align: top;
    margin-right: 10px;
    min-width: 150px;
}

.select2-container .select2-selection--single {
    height: 44px;
    line-height: 44px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

.select2-container--default .select2-selection--single {
    box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.08);
    border-radius: 5px;
    border: 1px solid #f0f0f0;
}

.styledForm .select2-container--default .select2-selection--single {
    box-shadow: none;
    border: 2px solid #e5e5e5;
}

.filterRow select, .filterRow input[type="text"], .filterRow input[type="search"] {
    border-radius: 5px;
    border: 2px solid rgba(102, 102, 102, 0.1);
    padding: 4px 4px 4px 0;
    font-size: 11px;
}

.filterRow input[type="text"], .filterRow input[type="search"] {
    padding: 4px;
}

.animateFadeInUp {
    -webkit-animation: fadeInUp 1s;
    -moz-animation: fadeInUp 1s;
    -ms-animation: fadeInUp 1s;
    -o-animation: fadeInUp 1s;
    animation: fadeInUp 1s;
}

.columns {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
}

.columns .oneHalf {
    width: 50%;
}

.columns.spaced .oneHalf {
    width: calc(50% - 9px);
}

.flexibleLayout {
    display: flex;
    justify-content: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
}

.flexibleLayout.column {
    flex-direction: column;
}

.flexibleLayout > div {
    margin-right: 16px;
    margin-bottom: 16px;
}

.spacer {
    width: 16px;
    height: 16px;
    display: block;
}

.columns.spaced > div {
    margin-bottom: 16px;
}

.columns.spaced.border .oneHalf:first-child {
    border-right: 1px solid #DDDDDD;
}

.columns .oneThird {
    width: 33.333%;
}
.columns.spaced .oneThird {
    width: calc(33.333% - 9px);
}

.columns .oneFourth {
    width: 25%;
}
.columns.spaced .oneFourth {
    width: calc(25% - 13px);
}

.columns .threeFourths {
    width: 75%;
}
.columns.spaced .threeFourths {
    width: calc(75% - 13px);
}

.columns .twoThirds {
    width: 66.666%;
}
.columns.spaced .twoThirds {
    width: calc(66.666% - 9px);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .actionButton {
    padding: 4px;
    width: 30px;
    height: 30px;
    box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.08);
    border-radius: 5px;
    background-color: #FFFFFF;
    box-sizing: border-box;
    border: 1px solid #f0f0f0;
    font-size: 20px;
    margin-right: 5px;
    text-align: center;
    cursor: pointer;
}

.pagination .pageNumber, .pagination .pageNumber  {
    padding: 4px;
    width: 30px;
    height: 30px;
    box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.08);
    border-radius: 5px;
    background-color: #FFFFFF;
    box-sizing: border-box;
    border: 1px solid #f0f0f0;
    font-size: 16px;
    margin-right: 5px;
    text-align: center;
    cursor: pointer;
}

.pagination .pageNumber.selected {
    background-color: #009dfd;
    border: 1px solid #009dfd;
    color:#FFFFFF;
    cursor: auto;
}

.pagination .actionButton.disabled {
    background-color: #aaaaaa;
    border: 1px solid #aaaaaa;
    color: #3e4a5c;
    cursor: auto;
}

.pagination .actionButton:last-child {
    margin-right: 0;
}

.button.disabled {
    background-color: rgb(207, 207, 207) !important;
    border: 1px solid rgb(207, 207, 207) !important;
    color: #898c91;
    cursor: no-drop;
    box-shadow: none !important;
}


.pagination .actionButton:not(.disabled):not(.selected):hover, .pagination .pageNumber:not(.disabled):not(.selected):hover {
    background-color: #009dfd;
    border: 1px solid #009dfd;
    color: #FFFFFF;
}

.pagination .pageOption  {
    margin: 0 8px;
    font-size:20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 50%, 0);
        transform: translate3d(0, 50%, 0);
    }

    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

.styledForm label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.largeButton:hover {
    background-color: #2892c0;
    color:rgb(250, 250, 250);
}

.largeButton:active {
    background-color: #2589b4;
    box-shadow: inset 1px 2px 0px 0px rgba(0,0,0,0.6);
    border-top: 2px solid rgba(0,0,0,0);
    border-bottom: 2px solid rgba(0,0,0,0);
    color:rgb(230, 230, 230);
}

.largeButtonList {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.largeButton {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: 125px;
    text-align: center;
    font-size: 20px;
    padding: 10px;
    background-color: #2ca5d9;
    border-radius: 3px;
    margin: 5px;
    cursor: pointer;
    box-shadow: 1px 2px 2px 0px rgba(0,0,0,0.4);
    user-select: none;
    border-top: 2px solid rgba(255,255,255,0.2);
    border-bottom: 2px solid rgba(0,0,255,0.2);
    transition: all 0.1s ease;
    color:rgb(240, 240, 240);
    text-decoration: none;
    width: calc((100%/3) - 30px);
}

.largeButton .fa, .largeButton .fas, .largeButton .fal, .largeButton .far {
    font-size: 70px;
    opacity: 0.2;
}

.styledForm input[type="submit"], .styledForm input[type="button"], .button{
    border-radius: 3px;
    padding: 10px 5px;
    border:none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.6s, width 0.6s, border-radius 0.6s, padding 0.6s;
    text-align: center;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-shadow: 0px 1px 0px rgba(18,18,18,0.40);
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 2px solid rgba(0,0,0,0.2);
    border-left: 1px solid rgba(0,0,0,0);
    border-right: 1px solid rgba(0,0,0,0);
    font-size:12px;
}

.styledForm input[type="submit"], .styledForm input[type="button"], .button{
    border-radius: 5px;
    background-color: #138FDC;
    color:#FFFFFF;
    outline: none;
    display: inline-block;
}

.styledForm input[type="submit"]:hover, .styledForm input[type="button"]:hover, .button:hover {
    background-color: #1c79b3;
}

.styledForm input[type="submit"]:active, .styledForm input[type="button"]:active, .button:active {
    background-color: #175a83;
    border: 1px solid rgba(0,0,0,0.2);
    transition: background-color 0.2s;
}

.button.red {
    background-color: #e0240a;
}
.button.red:hover {
    background-color: #b81c08;
}
.button.red:active {
    background-color: #9b1a09;
}

.button.green {
    background-color: #32a852;
}
.button.green:hover {
    background-color: #28c708;
}
.button.green:active {
    background-color: #1db109;
}

.button.large {
    padding: 16px 8px;
    font-size: 14px;
    border-top: 2px solid rgba(255,255,255,0.2);
}

.prbButton {
    padding: 16px 8px;
    font-size: 14px;
    left: 200px;
    right: 0;
    width: 20%;
    margin: auto;
    max-width: 300px;
    background-color: #138FDC;
    border: bisque;
    color: #FFFF;
    font-size: 16px;
}

.mstButton {
    padding: 16px 8px;
    font-size: 14px;
    left: 200px;
    right: 0;
    width: 20%;
    margin: auto;
    max-width: 300px;
    background-color: #138FDC;
    border: bisque;
    color: #FFFF;
    font-size: 16px;
}

.styledForm input[type="text"], .styledForm input[type="password"], .styledForm input[type="email"], .styledForm input[type="number"] {
    border-radius: 5px;
    border: 2px solid rgba(102, 102, 102, 0.1);
    padding: 7px;
    font-size: 14px;
}

.styledForm select {
    border-radius: 5px;
    border: 2px solid rgba(102, 102, 102, 0.1);
    padding: 7px;
    font-size: 14px;
}

.styledForm .inputRow {
    display: flex;
    margin-bottom: 9px;
    align-items: center;
}

.styledForm .inputRow label {
    width: 180px;
    padding-top: 5px;
    padding-right: 20px;
    box-sizing: border-box;
    text-align: right;
}

input.disabled, input[disabled] {
    background-color: #bbbbbb !important;
    border: 1px solid #bbbbbb !important;
    color: #3e4a5c !important;
    cursor: auto !important;
}

#mainMenu {
    background-color: #3e4a5c;
    display: flex;
    color: #FFFFFF;
    box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.2);
    height: 70px;
}

#mainMenu .logo {
    width: 115px;
    height: auto;
    padding: 8px
}

#mainMenu .menuItems {
    display: flex;
    padding-left: 0px;
    margin: 0px 18px;
    justify-content: flex-end;
    width: 100%;
}

.menuItems li {
    list-style: none;
    transition: background-color 0.5s;
}

.menuItems li a {
    list-style: none;
    padding: 20px 25px;
    transition: color 0.2s;
    font-size: 16px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-shadow: 1px 1px 0px rgba(18,18,18,0.60);
    display:block;
}

.menuItems li a i {
    font-size: 25px;
    margin-right: 2px;
    color:#DDDDDD;

}

.menuItems li:hover {
    color: #FF4900;
    background-color: rgba(255,255,255,0.1);
}

.section {
    box-shadow: 1px 1px 7px 3px rgba(0,0,0,0.08);
    width:100%;
    border-radius: 5px;
    background-color: #FFFFFF;
    padding:15px;
    box-sizing: border-box;
    margin-bottom: 18px;
}

.styledTable {
    width:100%;
    border-radius: 5px;
}

.styledTable th, .styledTable th span, .styledTable td {
    text-align: left;
    padding: 15px 5px 0 5px;
    padding-top: 15px;
    padding-bottom: 0;
    border:none;
}

.styledTable tr:last-child th, .styledTable tr:last-child th span, .styledTable td {
    text-align: left;
    padding:15px 5px;
    font-size: 13px;
}

.styledTable tr th:first-child, .styledTable tr th:first-child span, .styledTable tr td:first-child {
    padding-left: 20px;
}

.styledTable th:last-child, .styledTable th:last-child span, .styledTable td:last-child {
    padding-right: 20px !important;
}

.styledTable tr:nth-child(n+2) th, .styledTable tr:nth-child(n+2) th span {
    padding-top: 5px;
}

.styledTable .styledTable tr:last-child td {
    border-bottom: none;
}

.styledTable th {
    color: rgb(165, 165, 165);
    font-weight: 400;
    position: relative;
    z-index: 25;
}

.styledTable td {
    color: #000000;
    font-weight: 500;
}

.styledTable tr:hover td {
    background-color: #c1eaff;
}

.styledTable .linkedItem td {
    cursor: pointer;
}

.styledTable .totals td {
    background-color: #fff2e9;
    border-top: 2px solid #000000;
    border-bottom: 1px solid #fff2e9;
    font-weight: bold;
    padding: 10px;
}
.styledTable tr.totals:hover td {
    background-color: #fff2e9;
}

.styledTable .totals ~ .totals td {
    border-top: 1px solid #fff2e9;
    border-bottom: 1px solid #fff2e9;
}

.styledTable .hiddenRow {
    opacity: 0;
}

.styledTable .button {
    margin: 5px;
}

.deviceList tr, .deviceList > div  {
    cursor: pointer;
}

.searchForm input.transparentField {
    background-color: rgba(0,0,0,0);
    border: none;
    box-shadow: none;
    font-size: 2em;
    font-weight: bold;
    margin-top:1px;
}

select.transparentSelect2Field, .transparentSelect2Field .select2-selection__rendered {
    display:none !important;
}

.transparentSelect2Field .select2-dropdown.select2-dropdown--below {
    width: 185px !important;
    overflow: hidden;
}

.transparentSelect2Field {
    background-color: rgba(0,0,0,0);
    border: 0;
    box-shadow: none;
    font-weight: bold;
    margin:0;
}

.transparentSelect2Field .select2-results__options {
    height: 60vh;
    overflow-y: scroll;
}

*::-webkit-scrollbar {
    width: 9px;
    background: #FDFDFD;
}

*::-webkit-scrollbar-track {
    background: #ffffff;
    -webkit-box-shadow: inset 0 0 1px 1px rgba(0,0,0,0.2);
}

/* Handle */
*::-webkit-scrollbar-thumb {
    background: #2c8ab6;
    border-radius: 5px;
    -webkit-box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

*::-webkit-scrollbar-thumb:hover {
    background: #316497;
}

.transparent {
    opacity: 0.6;
}

.loginPageBackground {
    background-position: center;
    background-size: cover;
    height:100vh;
}

.loginError {
    font-weight: bold;
    color: #f30909;
    font-size: 14px;
    margin-top: -6px;
}

.loginForm {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    height: 425px;
    width: 300px;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 1px 1px 2px -1px rgba(0,0,0,0.8);
    text-align: center;
    border-radius: 4px;
}

.loginForm .logo {
    width: 160px;
    height: auto;
    margin: 0 auto;
    margin-bottom: 30px;
}

.loginForm input[type="text"], .styledForm input[type="password"], .styledForm input[type="email"], .styledForm input[type="number"] {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.loginForm input[type="submit"], .loginForm input[type="button"], .loginForm .button {
    margin-top: 15px;
    width: 100%;
}

#mainLayout {
    display:flex;
    flex-wrap: wrap;
}

#mainLayout > .container {
    margin-left: 241px;
}

#header {
    padding:15px;
    text-align:center;
    font-size:25px;
    color:#FFFFFF;
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#24284f+1,4c588a+40,4c588a+50,4c588a+60,24284f+100 */
    /* background: -moz-linear-gradient(left, #24284f 1%, #4c588a 40%, #4c588a 50%, #4c588a 60%, #24284f 100%);
    background: -webkit-linear-gradient(left, #24284f 1%,#4c588a 40%,#4c588a 50%,#4c588a 60%,#24284f 100%);
    background: linear-gradient(to right, #24284f 1%,#4c588a 40%,#4c588a 50%,#4c588a 60%,#24284f 100%); */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#24284f', endColorstr='#24284f',GradientType=1 ); /* IE6-9 */
    width: 225px;
    margin-right: 25px;
    box-sizing: border-box;
    min-height: 100vh;
    position: fixed;
    z-index: 15;
}

#header .logo {
    display: block;
    margin-bottom: 25px;
}

#header .logo img {
    max-width: 100%;
    height: auto;
}

#header ul {
    padding-left: 0;
    list-style: none;
    text-align: left;
}

#header ul a {
    font-size: 18px;
}

#header ul li {
    margin-bottom: 15px;
}

#header ul li a {
    color: #FFFFFF;
}

#header ul li i {
    margin-right: 20px;
}

.deviceRow.offline img {
    opacity: 0.5;
}

.deviceRow.offline .status {
    color: #ef3d3d;
    font-weight: bold;
    text-transform: uppercase;
}

.deviceRow.online .status {
    color: #2ec90f;
    font-weight: bold;
    text-transform: uppercase;
}

.deviceRow.red .humidity {
    color: #ef3d3d;
    font-weight: bold;
    text-transform: uppercase;
}

.deviceRow.amber .humidity {
    color: #f28d00;
    font-weight: bold;
    text-transform: uppercase;
}

.deviceRow.green .humidity {
    color: #2ec90f;
    font-weight: bold;
    text-transform: uppercase;
}

.device {
    margin:10px;
    padding:10px;
    padding-top:15px;
    border-radius:5px;
    box-shadow: 1px 2px 3px 0px rgba(0,0,0,0.4);
    position:relative;
    width: calc(100% - 40px);
    cursor:pointer;
    user-select: none;
    overflow: hidden;
}

.deviceGraphContainer {
    padding:10px;
    padding-top:15px;
    border-radius:5px;
    box-shadow: 1px 2px 3px 0px rgba(0,0,0,0.4);
    position:relative;
    width: 100%;
    cursor:pointer;
    user-select: none;
    overflow: hidden;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.deviceGraph {
    width: 100%;
}

.switch {
    text-align: right;
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: #232749;
    width: 25px;
    height: 12px;
    border-radius: 5px;
    box-shadow: inset 1px 1px 1px 0 rgba(0,0,0,0.5);
}
.device .switch .ball {
    width: 13px;
    height: 13px;
    background-color: #9da4a5;
    border-radius: 10px;
    display: block;
    margin-top: -1px;
    margin-left: 14px;
}
.device.active .switch .ball {
    background-color: #02c8ff;
    margin-top: -1px;
    margin-left: -1px;
}
.deviceList {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    /*overflow-y: scroll;*/
    padding-bottom: 20px !important;
}

.deviceList.small {
    height:180px;
}

.deviceList.small .device {
    height:100px;
}

.deviceList::-webkit-scrollbar {
  width: 10px;
}

/* Track */
.deviceList::-webkit-scrollbar-track {
  background: #1b1e3a;
  border-radius: 2px;
}

/* Handle */
.deviceList::-webkit-scrollbar-thumb {
  background: #02c8ff;
  border-radius: 2px;
}

/* Handle on hover */
.deviceList::-webkit-scrollbar-thumb:hover {
  background: #00a8d6;
}

.device .details {
    display:flex;
    margin-top:10px;
    font-size:10px;
}
.device.active .details {
    color:#02c8ff;
}
.device .details strong {
    font-size:15px;
    display:block;
    margin-bottom:2px;
    color:#FFFFFF;
}
.device .icon {
    font-size:30px;
    margin-right:10px;
    margin-top:1px;
    color:#FFFFFF;
}
.device:not(.active) .details, .device:not(.active) .icon, .device:not(.active) strong {
    color:#101010;
}

.graphBackgroundVideo {
    position: absolute;
    left: -10px;
    top: -10px;
    right: 0;
    bottom: 0;
    min-width: 110%;
    min-height: 110%;
    z-index: 1;
    pointer-events: none;
}

#claims h2, .mainBackground h2 {
    margin: 0;
    margin-bottom: 10px;
    font-size: 25px;
    font-weight: 200;
}


.chartWrapper {
    position: relative;

}

.chartWrapper > canvas {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events:none;
}

.chartAreaWrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

.chartAreaWrapper2 {
    overflow-x: hidden;
    position: relative;
    height: 100%;
    width:100%;
}

#mapContainer {
    height: 675px;
    position: relative;
    overflow: hidden;
}

#mapContainer #map {
    width: 100%;
    height: calc(100% + 25px);
}

#mapContainer h4 {
    position: absolute;
    left: -2px;
    top: -2px;
    width: 100%;
    padding: 8px;
    padding-bottom: 20px;
    z-index: 1;
}

table.latestResults {
    width: 100%;
}

table.latestResults td {
    padding-bottom: 12px;
    padding-top: 12px;
    border-bottom: 2px solid #f1f1f1;
}

.latestResults .claim {
    font-weight: bold;
}

.latestResults .location {
    font-weight: bold;
    color: #ababc2;
}

.latestResults .details {
    display: inline-block;
}

.latestResults .temperature, .latestResults .humidity {
    font-size: 11px;
    font-weight: bold;
}

.latestResults .temperature span, .latestResults .humidity span {
    font-size: 16px;
}

.deviceList table {
    margin-top: 25px;
    width: 100%;
}

table th {
    text-align: left;
}

.deviceList table td {
    background-color: rgba(255,255,255,0) !important;
    border-bottom: 2px solid #f1f1f1;
}

.deviceList .deviceIcon {
    padding: 8px 0;
}

.redText {
    color: #ef3d3d;
}

.blueText {
    color: #0caae9;
}

.orangeText {
    color: #d1820c;
}

.headerToggleMobile {
    display: none;
}

#timeline {
    margin: 42px 36px;
}

.timelineKeyContainer {
    position: absolute;
    left: calc(100% - 15px);
    top: 0;
    width: 100%;
}

.timelineKey {
    display: flex;
    max-height: 73px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-right: 5px;
    flex-direction: column-reverse;
    position: absolute;
    margin-top: 15px;
    margin-right: 30px;
    right: 0;
    width: 100%;
    z-index: 1;
}

.colourKey {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

.colourSquare {
    height: 16px;
    width: 16px;
    border: 1px solid #DDDDDD;
    margin-left: 5px;
}

.timelineContainer {
    overflow-x:scroll;
    margin-right: 15px;
    direction: rtl;
    position: relative;
    padding-top: 100px !important;
    border-left: 1px solid #a5a5a5;
}

.timelineContainer > div {
    direction: ltr;
}

.desktopOnly {
    display: block;
}

td.desktopOnly, th.desktopOnly {
    display: table-cell;
}

.chartTimes {
    padding:5px;
    margin-top:32px;
}

.graphTitle, .listTitle {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.listTitle h1, .listTitle h2, .listTitle h3 {
    margin-bottom:0;
}

.mobileOnly {
    display: none;
}

.deviceList.large .deviceIcon {
    height: auto;
    width: 95%;
    margin: 0 auto;
}

.deviceList.spaced {
    justify-content: space-between;
}

.deviceList.spaced > div {
    margin: 15px 0;
    width: calc(32% - 4px);
    border: 2px solid rgba(21, 140, 209, 0);
}

.deviceList.spaced.selectable > div {
    opacity: 0.65;
    cursor: pointer;
}

.deviceList.spaced.selectable > div.selected {
    opacity: 1;
    border: 2px solid #158cd1;
}


.deviceList .deviceName {
    text-align: center;
    font-size: 14px;
    margin: 0;
}

#deviceTable th.clickable{
    cursor: pointer;
}

.nextStep {
    position: fixed;
    bottom: 20px;
    left: 200px;
    right: 0;
    width: 50%;
    margin: auto;
    max-width: 300px;
}

.paginationContainer {
    margin: 5px 0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .actionButton {
    padding: 4px;
    width: 30px;
    height: 30px;
    box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.08);
    border-radius: 5px;
    background-color: #FFFFFF;
    box-sizing: border-box;
    border: 1px solid #f0f0f0;
    font-size: 20px;
    margin-right: 5px;
    text-align: center;
    cursor: pointer;
}

.pagination .pageNumber, .pagination .pageNumber  {
    padding: 4px;
    width: 30px;
    height: 30px;
    box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.08);
    border-radius: 5px;
    background-color: #FFFFFF;
    box-sizing: border-box;
    border: 1px solid #f0f0f0;
    font-size: 16px;
    margin-right: 5px;
    text-align: center;
    cursor: pointer;
}

.pagination .pageNumber.selected {
    background-color: #009dfd;
    border: 1px solid #009dfd;
    color:#FFFFFF;
    cursor: auto;
}

.pagination .actionButton.disabled {
    background-color: rgb(167, 167, 167);
    border: 1px solid rgb(167, 167, 167);
    color: #3e4a5c;
    cursor: auto;
}

.pagination .actionButton:not(.disabled):not(.selected):hover, .pagination .pageNumber:not(.disabled):not(.selected):hover {
    background-color: #FF4900;
    border: 1px solid #FF4900;
    color: #FFFFFF;
}

div#banner { 
    display: table; 
  }
  
  div#banner div { 
     display: table-cell; 
     padding: 5px; 
  }

table.redDevices,table.amberDevices {
    width: 100%;
}

table.redDevices td, table.amberDevices td {
    padding-bottom: 12px;
    padding-top: 12px;
    border-bottom: 2px solid #f1f1f1;
}

.redDevices .location {
    font-weight: bold;
    color: #ad4c4c;
}

#propertySelect{
    max-width: 300px;
}

#deviceTable{
    table-layout: fixed;
    width: fit-content;
}

th > input{
    width:90%;
}

th > select{
    width:90%;
}

@media only screen and (max-width: 940px) {

    #deviceTable {
        max-width: 100%;
    }

    .paginationContainer{
        max-width: calc(100% - 30px);
    }

    body {
        font-size: 11px;
    }

    .columns .oneHalf, .columns.spaced .oneHalf {
        width: 100%;
    }

    #mainLayout > .container {
        margin-left: 15px;
        max-width: calc(100% - 30px);
        margin-right: 15px;
    }

    #header {
        margin-left: -225px;
    }

    .headerToggleMobile {
        display: block;
        position: absolute;
        background-color: #316497;
        width: 50px;
        height: 50px;
        top: 40%;
        border-radius: 0 50px 50px 0;
        margin-left: 190px;
        z-index: 10;
    }

    .headerToggleMobile i {
        z-index: 1000;
        color: #fff;
        font-size: 30px;
        margin-left: 10px;
        margin-top: 10px;
    }

    #header.open {
        margin-left: 0;
    }

    #header .fa-arrow-alt-left {
        display:none;
    }
    #header .fa-arrow-alt-right {
        display:block;
    }

    #header.open .fa-arrow-alt-left {
        display:block;
    }
    #header.open .fa-arrow-alt-right {
        display:none;
    }

    .styledTable tr th:first-child, .styledTable tr th:first-child span, .styledTable tr td:first-child {
        padding-left: 10px;
    }

    .styledTable tr:last-child th, .styledTable tr:last-child th span, .styledTable td {
        font-size: 11px;
        padding: 12px 4px;
    }

    .deviceIcon {
        height: 24px;
        width: auto;
    }

    .deviceRow .deviceIcon {
        margin: 8px 0;
    }

    .noMobile {
        display: none;
    }
    .mobileOnly {
        display: block;
    }

    .styledForm input[type="submit"], .styledForm input[type="button"], .button {
        padding: 6px 4px;
        font-size: 10px;
    }

    .button + .button, .styledForm input[type="button"] + .styledForm input[type="button"] {
        margin-top: 5px;
    }

    .styledTable .button {
        margin: 2px;
    }

    .mobileFirst {
        order: 1;
    }
    .mobileSecond {
        order: 2;
    }
    .mobileThird {
        order: 3;
    }
    .flexibleLayout {
        height: auto !important;
    }
    .flexibleLayout > div {
        margin-left: 0;
        margin-right: 0;
    }
    .mainBackground.padded {
        padding: 8px;
    }
    .mainBackground.padded, .mainBackground {
        box-sizing: border-box;
        max-width: 100%;
    }
    #mapContainer {
        width: 100% !important;
        max-width: 100%;
    }
    .desktopOnly {
        display: none;
    }
    .container {
        margin-top: 30px;
    }
    .container.fullWidth {
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
    }
    .nextStep {
        left: 0;
    }
    .deviceList.spaced > div {
        width: calc(50% - 4px);
    }
}