/**
 * Building environment monitoring styling.
 *
 * @author      Erki Suurjaak
 * @created     28.11.2018
 * @modified    12.07.2019
 */

label {
  font-family: Roboto Bold;
  font-size: 1.05em;
}


report[type=zone_status] table.report td.error {
  color: red;
}

reportsection.exports div.report-container {
  display: none;
}

report table.header td,
report table.report th,
report table.report td:first-child {
  font-family: "Roboto Bold";
  font-size: 1.05em;
}

report table.report tr:nth-child(even) {
  background: #023141;
}
report table.footer {
  border-top-color: white;
}

printview report div.report table.report tr {
  background: unset;
}
printview report table.footer {
  border-top-color: black;
}
printview report {
  color: #333;
}


appmap div.map div.heatmap-legend {
  display: none;
}

/** Dashboard building environment monitoring status panel. */
bemstatus .panel-thinnect {
  margin-bottom: 10px;
}
bemstatus .panel-body {
  overflow-x: auto;
}
.panel table.ambientstate {
  margin: 0 5px;
  width: calc(100% - 10px);
}
.panel table.ambientstate tr {
  color: #222;
  border-top: 1px solid #eee;
  line-height: 26px;
}
.panel table.ambientstate th {
  opacity: 0.7;
  padding-right: 10px;
  text-transform: capitalize;
  white-space: nowrap;
  width: 100px;
}
.panel table.ambientstate td {
  color: #565656;
  padding-right: 10px;
}
.panel table.ambientstate th.group {
  width: auto;
}
.panel table.ambientstate .ambience,
.panel table.ambientstate .efficiency,
.panel table.ambientstate .setpoint,
.panel table.ambientstate .value {
  text-align: right;
}
.panel table.ambientstate td.time {
  color: gray;
  font-size: 12px;
  white-space: nowrap;
}
.panel table.ambientstate td.error {
  color: red;
}
.panel table.ambientstate td.group,
.panel table.ambientstate td.sensor {
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel table.ambientstate td.battery:not(:empty) {
  background-position: right;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 20px;
  background-image: url("media/battery.png");
  white-space: nowrap;
}
.panel table.ambientstate td.error {
  color: red;
}


/** Dashboard monitoring status panel. */
monitoringstatus .panel-thinnect {
  margin-bottom: 10px;
}
monitoringstatus .panel-body {
  overflow-x: auto;
}
monitoringstatus table {
  margin: 0 5px;
  width: calc(100% - 10px);
}
monitoringstatus table tr {
  color: #222;
  border-top: 1px solid #eee;
  line-height: 26px;
}
monitoringstatus table th {
  opacity: 0.7;
  padding-right: 10px;
  text-transform: capitalize;
  white-space: nowrap;
  width: 100px;
}
monitoringstatus table td {
  color: #565656;
  padding-right: 10px;
}
monitoringstatus table .battery,
monitoringstatus table .range,
monitoringstatus table .value {
  text-align: right;
}
monitoringstatus table td.time {
  color: gray;
  font-size: 12px;
  white-space: nowrap;
}
monitoringstatus table td.error {
  color: red;
}
monitoringstatus table td.device {
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
monitoringstatus table td.battery:not(:empty) {
  background-position: right;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 20px;
  background-image: url("media/battery.png");
  white-space: nowrap;
}



mappopup datafield .error {
  color: red;
}


.leaflet-marker-pane .leaflet-marker-icon.sensors.temperature.monitoringerror:after {
  color: red;
  content: "!!!";
  font-size: 16px;
  font-weight: bold;
  left: 26px;
  position: relative;
  top: -26px;
  white-space: nowrap;
}
.leaflet-marker-pane .leaflet-marker-icon.size-16.sensors.temperature.monitoringerror:after {
  font-size: 12px;
  left: 16px;
  top: -16px;
}


/** Map controls repositioning */
appmap div.markersize {
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  display: block;
  width: 34px;
}

appmap div.markersize > a {
  border-left: unset;
  display: inline-block;
  min-width: 30px;
  height: 30px;
}

appmap div.markersize > a:first-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  display: table-cell;
  padding-left: 0px;
}

appmap div.markersize > a > img {
  padding: 14px 14px;
  position: relative;
  top: 2px;
}

appmap div.markersize > a:first-child > img {
  padding: 8px 8px;
  margin-bottom: 2px;
}

.leaflet-touch .leaflet-control-layers {
  border-radius: 4px;
}
.leaflet-touch .leaflet-control-layers-toggle {
  background-position: center;
  background-size: 70%;
  height: 30px;
  width: 30px;
}


/** Dashboard map sizing */
dashboard .map-container {
  height: 500px;
}


/** Area dropdown styling. */
appmap dropdown li.error a:after {
  color: red;
  content: "!!!";
  font-weight: bold;
  position: absolute;
  right: 10px;
}
appmap dropdown span.selected.error:after {
  color: white;
  content: "!!!";
  font-weight: bold;
  position: absolute;
  right: 36px;
}


/** Zone section styling. */
zonedetailpage > div {
  height: calc(100% - 95px);
  overflow: auto;
}
zonedetailpage > div:first-child > div:first-child {
  width: 520px;
}
zonedetailpage fieldset {
  border-radius: 0;
  border: 1px solid #0e9cae;
  margin-bottom: 10px;
  padding: 5px;
  display: inline-block;
}
zonedetailpage fieldset legend {
  color: #00b5cc;
  width: initial;
  margin: 0;
  font-size: inherit;
  font-weight: bold;
  border: 0;
  padding: 0px 5px;
}
zonedetailpage div.minimap {
  height: 330px;
  text-align: right;
}
zonedetailpage div.minimap dropdown {
  text-align: initial;
}
zonedetailpage div.minimap > appmap > div {
  height: 300px;
}
zonedetailpage div.minimap .leaflet-marker-icon {
  cursor: default;
}
zonedetailpage div.minimap.editmode .leaflet-marker-icon {
  cursor: pointer;
}
zonedetailpage fieldset > table {
  width: 510px;
}
zonedetailpage fieldset > table th {
  color: #00b5cc;
  font-weight: 500;
  padding-bottom: 5px;
  padding-right: 50px;
  text-align: left;
  text-transform: capitalize;
  vertical-align: top;
  white-space: nowrap;
}
zonedetailpage fieldset > table td {
  padding-bottom: 5px;
}
zonedetailpage fieldset > table tr:last-child td {
  padding-bottom: 0;
}
zonedetailpage fieldset > table input, zonedetailpage fieldset > table textarea {
  resize: vertical;
  width: 100%;
}
zonedetailpage div.buttons {
  display: flex;
  padding-bottom: 10px;
}
zonedetailpage div.buttons > * {
  margin-right: 5px;
}
zonedetailpage div.buttons > *:last-child {
  margin-left: auto;
  margin-right: 0;
}


/** Images preload. */
zonedetailpage:before {
  content: "";
  background: url("media/icon-groups.png");

  height: 0;
  visibility: hidden;
  width: 0;
}




/** Group section added dataplot styling. */
zonedetailpage ul.topfilters {
  margin: 0 0 5px 0;
  width: 522px;
}
zonedetailpage dataplot > div {
  width: 522px;
}
zonedetailpage dataplot div.plot-loading {
  height: 320px;
  line-height: 320px;
}



/** Device wizard styling. */
devicewizard div.main {
  color: #00b5cc;
  position: absolute;
  left: 50%;
  top: 100px;
  bottom: 100px;
  margin-left: -350px;
  padding: 10px;
  padding-left: 20px;
  background: white;
  z-index: 4001;
  border: 1px solid #5C5C5C;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  width: 700px;
}
@media (max-height: 500px) {
  devicewizard div.main {
    top: 10px;
    bottom: 10px;
  }
}
@media (min-height: 500px) and (max-height: 750px) {
  devicewizard div.main {
    top: 20px;
    bottom: 20px;
  }
}
devicewizard h2 {
  text-transform: capitalize;
}
devicewizard div.step {
  overflow: auto; height: calc(100% - 100px);
}
devicewizard div.shadow { z-index: 4000; }
devicewizard div.minimap { height: 330px; }
devicewizard div.minimap > appmap > div {
  border: 1px solid #00b5cc;
  border-radius: 5px;
  height: 300px;
  margin: 20px 5px;
  padding: 5px;
  width: calc(100% - 20px);
}
devicewizard div.buttons { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px; z-index: 400; }
devicewizard div.buttons button { float: right; }
devicewizard div.buttons button:nth-child(n+1) { margin-left: 5px; }
devicewizard div.buttons button.dark { float: left; }
devicewizard table.fields {
  width: calc(100% - 15px);
}
devicewizard table.fields td {
  position: relative;
}
devicewizard table.fields td button {
  position: absolute;
  right: 0;
  top: 0;
}
devicewizard table.fields.area td button {
  position: relative;
}
devicewizard multiselect > div.editmode ul.selecteds, devicewizard multiselect > div.opened ul.selections {
  border-color: gray;
}
devicewizard multiselect > div {
  max-width: initial;
  width: 300px;
}
devicewizard table textarea, devicewizard table input[type=text], devicewizard table input[type=number] {
  border: 1px solid gray;
  width: 300px;
}
devicewizard table.condition td:first-child {
  margin-right: 10px;
  white-space: nowrap;
  width: 170px;
}
devicewizard table.condition span.radio {
  margin: 0 0 10px 0;
}
devicewizard .step.category button {
  display: block;
  margin: 20px 10px;
  padding: 10px 20px;
  text-transform: capitalize;
}
devicewizard .step.final table.condition {
  margin-top: 20px;
}
devicewizard .step.final table.condition + table.condition {
  margin-top: 0;
}
devicewizard table input[type=number] {
  min-width: 80px;
  width: 80px;
}
devicewizard table input[type=range] {
  font-size: 0.9em;
  font-weight: normal;
  min-width: 100px;
  width: 100px;
}
devicewizard table textarea {
  resize: vertical;
}
devicewizard datafield.error multiselect ul.selecteds {
  background-color: pink;
}
devicewizard table .range label {
  font-weight: normal;
  margin-right: 3pt;
}



/** Statusboard styling */
statusboard > div {
  margin-left: 20pt;
  width: 500pt;
}

statusboard div.header {
  background-size: auto;
  background-image: url("media/statusheader.svg");
  background-repeat: no-repeat;
  width: 100pt;
  height: 70pt;
}
statusboard div.headerimage {
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  margin-bottom: 10px;
}
statusboard div.devices {
  position: relative;
}
statusboard div.devices div.site {
  background-image: linear-gradient(to right, #162e39, #0E576D);
  border-image: linear-gradient(to right, white, #0E576D) 2;
  border-bottom: 2pt solid white;
  border-top: 2pt solid white;
  font-family: Roboto Bold;
  font-size: 24pt;
  padding: 5pt;
  width: 500pt;
  display: flex;
  align-items: center;
}
statusboard div.sites div.site,
statusboard div.devices div.device {
  font-family: Roboto Light;
  font-size: 18pt;
  height: 50pt;
  display: flex;
  align-items: center;
  width: 100%;
}
statusboard div.sites div.site span.title,
statusboard div.devices div.site span.title,
statusboard div.devices div.device span.title {
  display: inline-block;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 220pt;
}
statusboard div.devices.selected div.device span.title {
  flex-grow: unset;
  width: 150pt;
}



statusboard div.sites div.site:hover span.title {
  font-weight: bold;
}
statusboard div.devices.selected div.device:hover span.title {
  font-weight: bold;
}
statusboard div.devices.selected div.device:not(.selected):hover span.title {
  cursor: pointer;
}
statusboard div.devices.selected div.device.selected:hover span.title {
  font-weight: normal;
}

statusboard div.devicedata {
  margin-top: 10pt;
  max-height: 400pt;
  overflow: hidden auto;
  position: relative;
}
statusboard div.plot {
  position: absolute;
  top: 100pt;
  right: 0;
  width: 350pt;
}


statusboard div.devices div.device.selected {
  background-image: linear-gradient(to right, #162e39, #0E576D);
  border-image: linear-gradient(to right, white, #0E576D) 2;
  border-bottom: 2pt solid white;
  border-top: 2pt solid white;
  width: 150pt;
}


statusboard a,
statusboard a:hover,
statusboard a:visited {
  text-decoration: none;
}
statusboard a.period, statusboard a.feature {
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  margin-right: 5pt;
}
statusboard a.period {
  width: 40pt;
  height: 40pt;
}
statusboard a.period.now {
  background-image: url("media/period_now.svg");
}
statusboard a.period.day {
  background-image: url("media/period_day.svg");
}
statusboard a.period.week {
  background-image: url("media/period_week.svg");
}
statusboard a.period.now:hover {
  background-image: url("media/period_now_selected.svg");
}
statusboard a.period.day:hover {
  background-image: url("media/period_day_selected.svg");
}
statusboard a.period.week:hover {
  background-image: url("media/period_week_selected.svg");
}
statusboard a.period.now.active {
  background-image: url("media/period_now_active.svg");
}
statusboard a.period.now.active:hover {
  background-image: url("media/period_now_active_selected.svg");
}
statusboard a.period.day.active {
  background-image: url("media/period_day_active.svg");
}
statusboard a.period.day.active:hover {
  background-image: url("media/period_day_active_selected.svg");
}
statusboard a.period.week.active {
  background-image: url("media/period_week_active.svg");
}
statusboard a.period.week.active:hover {
  background-image: url("media/period_week_active_selected.svg");
}



statusboard div.devices div.site a.period {
  width: 55pt;
  height: 55pt;
  opacity: 0.5;
}
statusboard div.devices div.site a.period.selected {
  opacity: 1;
}

statusboard div.devices div.site a.feature {
  opacity: 0.5;
}
statusboard div.devices div.site a.feature.selected {
  width: 75pt;
  height: 75pt;
  opacity: 1;
}


statusboard div.devices div.site a.period.selected {
  opacity: 1;
}
statusboard div.devices div.site span.period {
  font-family: Roboto Bold;
  font-size: 24pt;
  margin: 0 30pt;
}




statusboard div.devices div.site a.period.selected {
  height: 70pt;
  width: 70pt;
}
statusboard div.devices div.site a.period.now {
  background-image: url("media/period_now_big.svg");
  margin: 0 30pt;
}
statusboard div.devices div.site a.period.day {
  background-image: url("media/period_day_big.svg");
}
statusboard div.devices div.site a.period.week {
  background-image: url("media/period_week_big.svg");
}

statusboard div.devices div.site a.period.now:hover {
  background-image: url("media/period_now_big_selected.svg");
}
statusboard div.devices div.site a.period.day:hover {
  background-image: url("media/period_day_big_selected.svg");
}
statusboard div.devices div.site a.period.week:hover {
  background-image: url("media/period_week_big_selected.svg");
}

statusboard div.devices div.site a.period.now.active {
  background-image: url("media/period_now_big_active.svg");
}
statusboard div.devices div.site a.period.now.active:hover {
  background-image: url("media/period_now_big_active_selected.svg");
}
statusboard div.devices div.site a.period.day.active {
  background-image: url("media/period_day_big_active.svg");
}
statusboard div.devices div.site a.period.day.active:hover {
  background-image: url("media/period_day_big_active_selected.svg");
}
statusboard div.devices div.site a.period.week.active {
  background-image: url("media/period_week_big_active.svg");
}
statusboard div.devices div.site a.period.week.active:hover {
  background-image: url("media/period_week_big_active_selected.svg");
}



statusboard a.feature {
  width: 35pt;
  height: 35pt;
}
statusboard a.feature.temperature {
  background-image: url("media/feature_temperature.svg");
}
statusboard a.feature.humidity {
  background-image: url("media/feature_humidity.svg");
}
statusboard a.feature.temperature:hover {
  background-image: url("media/feature_temperature_selected.svg");
}
statusboard a.feature.humidity:hover {
  background-image: url("media/feature_humidity_selected.svg");
}
statusboard a.feature.temperature.active {
  background-image: url("media/feature_temperature_active.svg");
}
statusboard a.feature.humidity.active {
  background-image: url("media/feature_humidity_active.svg");
}
statusboard a.feature.temperature.active:hover {
  background-image: url("media/feature_temperature_active_selected.svg");
}
statusboard a.feature.humidity.active:hover {
  background-image: url("media/feature_humidity_active_selected.svg");
}

statusboard a.feature.temperature.selected {
  background-image: url("media/feature_temperature_big.svg");
}
statusboard a.feature.temperature.active.selected {
  background-image: url("media/feature_temperature_big_active.svg");
}
statusboard a.feature.humidity.selected {
  background-image: url("media/feature_humidity_big.svg");
}
statusboard a.feature.humidity.active.selected {
  background-image: url("media/feature_humidity_big_active.svg");
}


statusboard a.feature.temperature.selected:hover {
  background-image: url("media/feature_temperature_big_selected.svg");
}
statusboard a.feature.temperature.active.selected:hover {
  background-image: url("media/feature_temperature_big_active_selected.svg");
}
statusboard a.feature.humidity.selected:hover {
  background-image: url("media/feature_humidity_big_selected.svg");
}
statusboard a.feature.humidity.active.selected:hover {
  background-image: url("media/feature_humidity_big_active_selected.svg");
}





statusboard a.back {
  font-family: Roboto Medium;
  font-size: 18pt;
  opacity: 0.7;
}
statusboard a.back:before {
  content: "\20\25c4";
}
statusboard a.back:hover {
  font-weight: bold;
  color: #337ab7;
}
statusboard a.back:visited {
  text-decoration: none;
}



/** Export section styling. */
reportform:not(.exports) exportsection {
  display: none;
}

reportform.exports div.inputs > form > .detailrow,
reportform.exports div.inputs > form > .clearfix,
reportform.exports div.inputs > form > .buttons {
  display: none;
}

exportsection .settings {
  margin-bottom: 20px;
}
exportsection .settings table {
  table-layout: fixed;
  width: 100%;
}
exportsection .settings table th {
  text-transform: capitalize;
}
exportsection .settings table tbody td:first-child {
  padding: 0;
}
exportsection .settings table th:first-child,
exportsection .settings table tbody tr.recipient td:first-child {
  padding-left: 10px;
}
exportsection .settings table tr.site td:last-child {
  text-align: left;
}
exportsection .settings table tr.add td {
  padding: 5px 0 20px 10px;
}
exportsection .settings table td:nth-child(n+2),
exportsection .settings table th:nth-child(n+2) {
  text-align: center;
}
exportsection .settings .magic-checkbox + label {
  top: -2px;
}
exportsection table.data th {
  cursor: default;
}
exportsection table.data tr.site div {
  border-top: 1px dashed white;
  font-family: "Roboto Bold";
  font-size: 1.05em;
  font-weight: bold;
  padding-top: 15px;
}
exportsection tbody:nth-child(2) tr.site div {
  border-top-color: transparent;
}
exportsection th.size,
exportsection td.size {
  text-align: right;
}
exportsection td.size a,
exportsection td.size a:visited,
exportsection td.size a:hover {
  color: white;
  cursor: pointer;
  text-decoration: underline;
}




/** New design. */

@font-face {
  font-family: "Roboto Light";
  src: url("vendor/Roboto-Light.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Roboto Medium";
  src: url("vendor/Roboto-Medium.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Roboto Regular";
  src: url("vendor/Roboto-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Roboto Bold";
  src: url("vendor/Roboto-Bold.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

* {
  font-family: Roboto Medium;
}
body {
  color: white;
  background-color: #0E576D;
}
contentheader .title {
  color: inherit;
}
menuheader #header .user-menu-button:hover {
  background: #0E576D;
}
.menu-full menuheader .thinnect-header-text {
  height: 100px;
  background-image: url(media/tempsense.svg);
  background-size: auto;
}
login div.main {
  background-image: url(media/tempsense.svg);
  height: 350px;
  background-size: 350px 200px;
  padding-top: 220px;
}

input, textarea {
  color: #333;
}

lightning button, login button, clientsite button {
  background-color: #0A4659;
  border-color: white;
  color: white;
}
button:hover {
  background-color: white;
  color: #0A4659;
}
button:disabled:hover {
  background-color: #0A4659;
  border-color: #d4d0c8;
  color: #d4d0c8;
}


appmenu {
  background-image: linear-gradient(to left, #162e39, #0E576D);
}
appmenu li.active,
appmenu li:hover,
appmenu a.toggle:hover {
  background-image: linear-gradient(to right, #162e39, #0E576D);
}
appmenu li > i, appmenu li > img {
  display: none;
}
appmenu li span {
  width: 100%;
  text-align: right;
  padding-right: 5pt;
}
appmenu li {
  opacity: 0.5;
}
appmenu li.active {
  opacity: 1;
}


contentheader .clock {
  color: inherit;
}
contentheader .content-header .hr-line {
  border-bottom-color: white;
}


.panel.panel-thinnect {
  background-color: #0E576D;
  border-color: #0A4659;
}
.panel-thinnect > .panel-heading {
  background-color: #0A4659;
}
.panel table.ambientstate tr {
  color: inherit;
}
.panel table.ambientstate th {
  opacity: unset;
}
.panel table.ambientstate td,
.panel table.ambientstate td.time {
  color: inherit;
}

helplink {
  color: inherit;
}


appdialog, help, relogin {
  color: #333;
}


ul.topfilters li {
  background-color: #0A4659;
  color: #477588;
}
ul.topfilters li.active {
  border-bottom-color: white;
  color: white;
}
ul.topfilters li:hover {
  color: white;
}


datatable table.data tr.highlight,
datatable table.data tr:hover {
  background: #0A4659;
  cursor: pointer;
}
table.data td {
  border-bottom: 1px solid transparent;
  color: inherit;
}
table.data th {
  background-color: #0A4659;
}
datatable div.minimap {
  border-color: white;
}

datatable table.data tr.groupby td {
  border-bottom-color: white;
}
datatable table.data tbody tr.groupby:nth-child(n+2) td {
  border-top-color: white;
}
datatable table.data td .error::after {
  color: #ee3c5b;
  content: " ! ";
  font-weight: bold;
}


/** apptable+detailpage combo. */
apptable.detailpage div.buttons {
  visibility: hidden;
}
apptable.detailpage datatable table.data tr.open {
  background-color: #0A4659;
}
detailpage a.close,
zonedetailpage a.close {
  display: none;
  position: absolute;
  top: -33px;
  right: 15px;
  z-index: 1;
}
detailpage.apptable a.close,
zonedetailpage.apptable a.close,
noticedetailpage.apptable a.close {
  color: white;
  display: inline-block;
  font-weight: normal;
  opacity: 1;
  text-shadow: none;
}
apptable.detailpage pager {
  visibility: visible;
}
apptable.detailpage pager > div {
  max-width: 200px;
  flex-direction: column;
}
apptable.detailpage pager > div > span {
  display: block;
  margin-bottom: 5px;
}
zonedetailpage.apptable > div,
detailpage.apptable > div {
  background-color: #0E576D;
  margin-left: 1px;
  margin-top: 0;
  padding-left: 9px;
  padding-top: 30px;
  position: absolute;
  right: 0;
}
zonedetailpage.apptable > div {
  padding-top: 44px;
}
zonedetailpage a.close {
  left: 515px;
  top: 20px;
}



dropdown > div {
  background-color: #0A4659;
}
dropdown > div:after {
  border-color: white transparent;
}

pager > div {
  color: #477588;
}
pager a {
  border-color: #477588;
  color: #477588;
}
pager a:hover {
  color: white;
}
pager a.active {
  background: #0A4659;
}
pager a:visited {
  color: #477588;
}
pager a:not([href]) {
  color: white;
}
pager a:not([href]):hover {
  cursor: default;
  text-decoration: none;
}


itemlist li {
  color: #477588;
}
itemlist li.active {
  background-color: #0A4659;
  color: inherit;
}


dashboard > div {
  color: inherit;
}
monitoringstatus table tr {
  color: inherit;
}
monitoringstatus table th {
  opacity: unset;
}


reportsection div.inputs {
  background-color: #0E576D;
}
reportsection div.inputs form {
  background-color: inherit;
  border-color: white;
  box-shadow: 30px 30px 20px 20px #0E576D;
}


settingssection h2, settingssection h4 {
  color: inherit;
}


areasection table.area {
  color: inherit;
}
areasection table.area th {
  color: inherit;
}
areasection fieldset.area {
  border-color: white;
}
areasection fieldset.area legend {
  color: inherit;
}
areasection table.area th {
  color: inherit;
}


noticedetailpage h4, noticedetailpage h5,
noticedetailpage label,
noticedetailpage table th,
noticedetailpage fieldset legend {
  color: inherit;
}
noticedetailpage fieldset {
  border-color: white;
  border-radius: 0;
}
.detailform {
  border-color: white;
}


zonedetailpage label,
zonedetailpage fieldset > table th,
zonedetailpage fieldset legend {
  color: inherit;
}
zonedetailpage fieldset {
  border-color: white;
}



.c3-tooltip {
  color: #333;
}
.plot-loading {
  color: inherit;
}
.c3-container text.c3-title,
.c3-container .c3-axis text {
  fill: white;
}
.c3-container .tick line,
.c3-container .c3-ygrid,
.c3-container .c3-axis path.domain {
  stroke: #0A4659;
}


detailpage .detailinfo {
  background: #0A4659;
}

.panel-footer {
  background-color: #0A4659
}
.tabs-bottom.nav-tabs.nav-justified > .active > a, .tabs-bottom.nav-tabs.nav-justified > .active > a:focus, .tabs-bottom.nav-tabs.nav-justified > .active > a:hover {
  color: inherit;
  background-color: inherit;
}
.tabs-bottom.nav-tabs.nav-justified > .active > button {
  color: #477588;
}
.tabs-bottom.nav-tabs.nav-justified > .active > button:hover {
  background-color: inherit;
  color: white;
}
.tabs-bottom.nav-tabs.nav-justified a {
  color: #477588;
}
.tabs-bottom.nav-tabs.nav-justified li:not(.active) a:hover {
  background-color: inherit;
  border-color: transparent;
  color: white;
}

.plot-loading {
  color: white;
}



multiselect > div {
  background-color: unset;
}
multiselect ul.selecteds {
  background-color: white;
}


noticewizard h2, noticewizard h4 { color: #00b5cc; }



body.clientsite clientsite div.main {
  background-color: inherit;
  border: none;
}
body.clientsite clientsite h2 {
  color: white;
}
body.clientsite clientsite button.client,
body.clientsite clientsite button.site {
  font-size: 1.2em;
  margin-top: 0;
  padding: 8px 10px;
  border-bottom: none;
  border-left: none;
  border-right: none;
  border-top: 1px solid white;
}
body.clientsite clientsite button.client:last-of-type,
body.clientsite clientsite button.site:last-of-type {
  border-bottom: 1px solid white;
}
body.clientsite clientsite button.client:disabled,
body.clientsite clientsite button.site:disabled {
  background-color: #0a4d59;
}
body.clientsite clientsite button.client.strong,
body.clientsite clientsite button.site.strong {
  background-color: #023141;
}



lightning input, lightning select, lightning textarea, login input {
  border-radius: 0;
  border: none;
}
.appdialog input, .appdialog select, .appdialog textarea {
  border: 1px solid gray;
  resize: none;
}
lightning button, login button, clientsite button {
  background-color: #0a4d59;
  border-color: #0a4d59;
  border-radius: 0;
  color: white;
  cursor: pointer;
}
button.dark:hover,
button:hover,
login button.minor:hover {
  background-color: #023141;
  border-color: #023141;
  color: white;
}
button.dark,
login button.minor {
  background-color: #0e576d;
  border-color: #57bbcd;
  color: #57bbcd;
}
login span.msg {
  color: #57bbcd;
}
login span.msg.error {
  color: #ee3c5b;
}
login span.msg.loading::after,
body.clientsite clientsite span.msg.loading::after {
  background: none;
  display: none;
  width: 0;
  height: 0;
}
body.clientsite clientsite span.msg {
  color: #57bbcd;
}
body.clientsite clientsite span.msg.error {
  color: #ee3c5b;
}
button.strong {
  background-color: #023141;
}

.magic-checkbox+label:before {
  border-radius: 0;
}
.magic-checkbox:checked+label:before {
  border: #023141;
  background-color: #023141;
}


multiselect > div.editmode ul.selecteds, multiselect > div.opened ul.selections {
  border-color: transparent;
}
multiselect > div.opened ul.selections {
  border-top-color: transparent;
  border-bottom-color: transparent;
}
multiselect ul.selecteds {
  border-radius: 0;
}

detailpage .detailinfo {
  border-radius: 0;
}
detailform {
  border-radius: 0;
}

dropdown ul,
dropdown > div {
  border-radius: 0;
}

.detailform {
  border-radius: 0;
}

div.settings .input-group-addon,
div.settings .input-group-addon.standalone {
  border-radius: 0;
}



/** Images preload. */
statusboard:after {
  content: "";
  background: url("media/feature_humidity.svg"), url("media/feature_humidity_active.svg"), url("media/feature_humidity_active_selected.svg"), url("media/feature_humidity_big.svg"), url("media/feature_humidity_big_active.svg"), url("media/feature_humidity_big_active_selected.svg"), url("media/feature_humidity_big_selected.svg"), url("media/feature_humidity_selected.svg"), url("media/feature_temperature.svg"), url("media/feature_temperature_active.svg"), url("media/feature_temperature_active_selected.svg"), url("media/feature_temperature_big.svg"), url("media/feature_temperature_big_active.svg"), url("media/feature_temperature_big_active_selected.svg"), url("media/feature_temperature_big_selected.svg"), url("media/feature_temperature_selected.svg"), url("media/period_day.svg"), url("media/period_day_active.svg"), url("media/period_day_active_selected.svg"), url("media/period_day_big.svg"), url("media/period_day_big_active.svg"), url("media/period_day_big_active_selected.svg"), url("media/period_day_big_selected.svg"), url("media/period_day_selected.svg"), url("media/period_now.svg"), url("media/period_now_active.svg"), url("media/period_now_active_selected.svg"), url("media/period_now_big.svg"), url("media/period_now_big_active.svg"), url("media/period_now_big_active_selected.svg"), url("media/period_now_big_selected.svg"), url("media/period_now_selected.svg"), url("media/period_week.svg"), url("media/period_week_active.svg"), url("media/period_week_active_selected.svg"), url("media/period_week_big.svg"), url("media/period_week_big_active.svg"), url("media/period_week_big_active_selected.svg"), url("media/period_week_big_selected.svg"), url("media/period_week_selected.svg"), url("media/statusheader.svg"), url("media/thinnect.svg");

  height: 0;
  visibility: hidden;
  width: 0;
}
