:root {
  --theme-dark-primary: #0070A9;
  --theme-light-primary: #4BACD2;
  --theme-light-secondary: #9BCB3C;
  --theme-dark-secondary: #5BAB46;
  --theme-light-grey: #E1E1E1;
  --theme-dark-grey: #231f20;
  --theme-light-alternate: #F5F7E8;
  --theme-main-bg: #202020;
  --theme-main-bg-gradient-stop: #343a40;
  --theme-body-bg: #101010;
  --theme-main-color: #eeeeee;
}

body {
  padding-top: 5rem;
  font-family: "Nunito Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
}

body,
.modal-content {
  height: 100%;
  color: var(--theme-main-color);
  background-color: var(--theme-main-bg);
}

.modal-content {
  border: 1px solid #777;
}

body.modal-open {
  overflow: visible;
  position: inherit;
}

.bg {
  background-image: url("images/sky_bg.jpg");
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: var(--theme-body-bg);
}

main {
  background: var(--theme-main-bg);
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to bottom, var(--theme-main-bg), var(--theme-main-bg-gradient-stop));
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to bottom, var(--theme-main-bg), var(--theme-main-bg-gradient-stop));
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  padding-bottom: 50px;
  margin-bottom: 10px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1700px;
  }
}

@media (min-width: 992px) {
  .modal-lg {
    max-width: 1000px;
  }

}

.form-control,
input {
  background-color: #333333;
  color: #CCCCCC;
  margin-bottom: 0.5em;
}

.form-control-plaintext {
  color: #CCCCCC;
}

input:focus,
select:focus,
.form-control:focus,
select,
input {
  background-color: #333333;
  color: #CCCCCC;
}

.text-primary {
  color: var(--theme-dark-primary) !important;
}

.badge-info {
  background-color: var(--theme-dark-primary) !important;
}

.badge-success {
  background-color: var(--theme-dark-secondary) !important;
}

.st-template {
  text-align: left;
  background-image: url("images/grey_waves-fs8-dark.png");
  background-repeat: no-repeat;
  background-position: right;
  padding: 0.5em 0;
}

.st-template .navbar-brand {
  padding: 0px;
}

@media screen and (max-width:600px) {
  .st-template {
    background-image: none;
  }
}

.navbar-brand img {
  max-width: 250px;
}

.leader {
  display:flex;
  align-items: center;
}

.leader h1 {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--theme-dark-primary);
  margin:0;
  margin-right:1em;
}

.leader p {
  font-size: 0.8em;
  font-weight: 200;
  margin-bottom:0;
  padding-bottom:0;
  line-height:1.3em;
  opacity:70%;
}

.st-template .col, .st-template .col-auto {
  border-right: none;
}

@media only screen and (min-width:600px) {
  .st-template .col, .st-template .col-auto {
    border-right: 1px solid var(--theme-dark-secondary);
  }
}

.jqstooltip {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  width: 50px;
  height: 25px !important;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  border-radius: 5px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
}

#modal-chart-placeholder h5 {
  color: var(--theme-dark-grey);
}

#sensor-location-map table {
  display: table;
  width: 100%;
  table-layout: fixed;
  min-width: 15rem;
}

#sensor-location-map td:first-child {
  width: 200px;
}

#sensor-location-map td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sensor-location-map .leaflet-content-table-wrapper {
  overflow-y: scroll;
  max-height: 200px;
}

#sensor-location-map i {
  font-size: 25px;
  color: var(--theme-dark-secondary);
  text-shadow: 2px 2px rgba(50, 50, 50, .75);
  text-align: center;
}

#sensor-location-map .aretas-leaflet-icon-overrides {
  text-align: center;
  line-height: 25px;
}

#sensor-location-map .leaflet-popup-content table .btn {
  font-size: unset;
  color: white;
  background: unset;
  padding: 0;
  border: none;
}

.leaflet-container .bg-primary a {
  color: #ffffff;
}

.leaflet-container .bg-warning a,
.leaflet-container .bg-danger a {
  color: #ffffff;
}

.leaflet-popup-content table {
  overflow-y: auto;
  max-height: 300px;
  border-collapse: collapse;
  display: block;
}

.leaflet-popup-content {
  margin: 10px;
}

.aretas-marker-div-wrapper {
  padding: 5px;
  border-radius: 12px;
}

.aretas-marker-div-wrapper .title {
  display: block;
  font-weight: bold;
  font-size: 120%;
}

.aretas-icon-div {
  min-width: 30px;
  min-height: 22px;
  border-radius: 20%;
  border: 2px solid black;
  text-align: center;
  vertical-align: middle;
  box-shadow: 2px 2px 4px #202020;
  font-size: 9pt;
}

.type-div-container {
  font-size: 120%;
  margin-bottom: 0.5em;
}

.marker-div-data-span {
  font-size: 150%;
  font-weight: bold;
  display: block;
  float: right;
  padding: 0.5em;
}

.sensor-gauge {
  display: block;
  width: 100% !important;
  height: auto !important;
  background: transparent;
  border: 2px solid #ccc;
  margin-bottom: 10px;
}

.chart-canvas {
  border: 1px solid rgba(255, 255, 255, 0.247);
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 400px !important;
}

.chart-container {
  min-height: 400px !important;
  padding: 0.4em 2%;
}

.modal-med .chart-container {
  min-height: 1px !important;
}

#modal-full-chart {
  height: 400px;
}

.modal-med #modal-full-chart {
  height: unset;
}

#modal-chart-placeholder {
  position: absolute;
  top: 280px;
  right: 40px;
}

#modal-chart-placeholder .modal-content {
  background-color: white;
}

#modal-chart-placeholder .modal-header {
  padding: 0.33em;
}

#modal-chart-placeholder .modal {
  position: relative;
  top: 0;
  right: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  height: 350px;
  width: 450px;
}

.gauge-textfield-avg {
  text-align: center;
  width: 100%;
  margin: 0px auto;

}

.analytics-table {
  table-layout: fixed;
  word-wrap: break-word;
}

.mac-th,
.mac-td {
  width: 35%;
}

.selected-table-row {
  background-color: #007bff;
}

.dashboard-stats-container {
  background-color: var(--theme-main-bg);
  border-top: 2px solid var(--theme-light-secondary);
  margin-top: 10px;
}

.div-min-max {
  text-align: center;
  white-space: normal;
}

.gauge-panel-container {

  background: #202020;
  /* Old browsers */
  background: -moz-linear-gradient(top, #202020 0%, #555 100%);
  /* FF3.6-15 */
  background: -webkit-linear-gradient(top, #202020 0%, #555 100%);
  /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, #202020 0%, #555 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#202020', endColorstr='#555', GradientType=0);
  padding: 15px 15px;
}

.gauge-panel-container .list-group-item {
  color: #ccc;
  background-color: #202020 !important;
  border-bottom: 2px solid #444;
}

.span-min,
.span-max,
.span-avg {
  background: #202020;

}

.span-min,
.span-max {
  margin: 0.3em;
  padding-right: 0.5em;
}

.list-group-item img,
.span-min img,
.span-max img {
  margin: 0.5em;
}

.text-highest {
  color: var(--theme-light-secondary);
}

.text-lowest {
  color: var(--theme-dark-secondary);
}

.sparkline-chart-span {
  width: 100%;
  height: auto;
  display: inline-block;
  padding: 4px 2px;
}

.sparkline-chart-span-latest {
  width: 100%;
  height: auto;
  display: block;
  padding: 4px 2px;
}

.td-spark {
  border-top: none !important;
}

.canvas-container {
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  position: relative;
}

.canvas-container img:hover {
  cursor: pointer;
}

#map-pane {
  position:relative;
  display:block;
}

.building-map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.building-map-heatmap-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.building-map-tools-div {
  padding: 0.5em;
}

#query-filters {
  margin-top: 20px;
}

#map-controls-group,
#map-footer,
#main-sensor-container-controls,
#query-filters,
.query-ui {
  background: var(--theme-dark-secondary);
  background: -moz-linear-gradient(top, var(--theme-dark-secondary) 80%, var(--theme-light-secondary) 100%);
  background: -webkit-linear-gradient(top, var(--theme-dark-secondary) 80%, var(--theme-light-secondary) 100%);
  background: linear-gradient(to bottom, var(--theme-dark-secondary) 80%, var(--theme-light-secondary) 100%);
  color: white;
  padding: 4px 2px;
  border-left: 2px solid #999;
  border-right: 2px solid #999;
  padding-left: 10px;
  -webkit-box-shadow: 7px 6px 22px -6px rgba(0, 0, 0, 0.58);
  -moz-box-shadow: 7px 6px 22px -6px rgba(0, 0, 0, 0.58);
  box-shadow: 7px 6px 22px -6px rgba(0, 0, 0, 0.58);
}

#query-filters {
  background-color:var(--theme-main-bg);
  background:none;
}

/**
#map-controls-group,
#map-footer,
#main-sensor-container-controls,
#query-filters,
.query-ui {
  border: 2px solid var(--theme-dark-secondary);
  border-radius: 5px;
  color: white;
  padding: 1em;
}
**/

#map-footer i {
  /* filter: drop-shadow(offset-x offset-y blur-radius color);   */
  filter: drop-shadow(0px 0px 1px white);
}

.query-ui,
.query-ui input,
.query-ui .form-control {
  font-size: 85%;
}

#query-filters h5 {
  color: #fff;
}

#map-container {
  background: #5BAB46;
}

#map-footer img {
  transform: scale(0.5, 0.5);
  -ms-transform: scale(0.5, 0.5);
  -webkit-transform: scale(0.5, 0.5);
}

/**
.gradient-buttons .btn {
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2) 49%, rgba(0, 0, 0, 0.15) 51%, rgba(0, 0, 0, 0.05));
  background-repeat: repeat-x;
}
*/

.card {
  margin: 10px;
  box-shadow: 0 5px 10px -2.5px;
}

footer a {
  color: white;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

footer .list-group-item {
  background-color: rgb(50, 50, 50);

}

#page-footer .btn {
  color: white;
  border-radius: 20px;
  border: none;
  width: 150px;
  display: block;
  margin: 0 auto;
  margin-top: 10px;
  line-height: 25px;
}

#page-footer .social-networks {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 16px;
}

#page-footer .social-networks a {
  font-size: 32px;
  color: #f9f9f9;
  padding: 10px;
  transition: 0.2s;
}

#page-footer .logo {
  width: 60%;
  height: auto;
}

.spacer-row td {
  height: 30px;
}

.stats-table-container {
  font-size: 80%;
}

#alert-modal .chart-container {
  border-top: 5px solid #ddd;
  border-bottom: 5px solid #ddd;
}

#alert-modal #form-chk-alert-disabled {
  margin-top:0.5em;
}

.status-tile {
  color: #ddd;
  border: 2px solid #ccc;
  border-radius: 15px;
  background: #404040;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to bottom, #404040, #202020);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to bottom, #404040, #202020);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  margin: 10px;
  min-height: 180px;
  padding-top: 10px;
  -webkit-box-shadow: 7px 6px 22px -6px rgba(0, 0, 0, 0.58);
  -moz-box-shadow: 7px 6px 22px -6px rgba(0, 0, 0, 0.58);
  box-shadow: 7px 6px 22px -6px rgba(0, 0, 0, 0.58);
}

.leaflet-popup-content .status-tile {
  min-width: 100%;
  margin: 0px;
  padding: 0.4em;
  font-size: 140%;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.status-tile:hover {
  border: 4px solid #fff;
}

.status-tile:before {
  content: ' ';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
  background-image: url('images/AretasLogo_soft.png');
  background-repeat: no-repeat;
  background-position: right bottom;
}

.status-tile .title-text {
  width: 90%;
  font-size: 70%;
  font-weight: bold;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.status-tile .sensor-reading-title {
  z-index: 2;
  font-size: 120%;
  font-weight: bold;
  position: relative;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-tile .sensor-reading-data {
  font-size: 120%;
  font-weight: bold;
}

.sensor-problem {
  background: #dc3545;
  color: #fff;
}

.sensor-not-responding {
  background: #ffc107;
  color: #222;
}

.sensor-in-strategy {
  background: #6c757d
}

.sensor-normal {
  /** background: #007bff; **/
  background: var(--theme-dark-secondary);
  color: #FFF;
}

.sensor-status {
  color: white;
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  border: 2px solid #aaa;
  border-radius: 5px;
}

.status-tile .time-text {
  font-size: 70%;
  font-style: italic;
  text-align: center;
}

.status-tile i {
  margin: auto 5px;
}

.status-tile i,
.status-tile a {
  position: relative;
  z-index: 3;
}

#div-notifications {
  font-size: 75%;
  max-height: 60px;
  overflow-y: auto;
}

#div-notifications .alert-notice {
  border: 2px solid var(--theme-light-secondary);
  background: var(--theme-dark-secondary);
  color: white;
  padding: 5px;
  border-radius: 8px;
}

#div-notifications i {
  margin: 4px;
  color: red;
}

#div-notifications .title-text {
  font-size: 1.2em;
}

#assoc-macs-table .mac-td {
  overflow: hidden;
  text-overflow: ellipsis;
}

#assoc-macs-table .tr-title {
  background-color: var(--theme-dark-secondary);
  color: #fff;

}

#assoc-macs-table .tr-title a {
  color: #fff;

}

#assoc-macs-table .tr-title a img {

  display: inline-block;
  margin-top: -4px;

}

#assoc-macs-table .tr-title a:hover {
  color: #fff;
  text-decoration: underline;
}

#assoc-macs-table .tr-title td {
  padding: 10px;
}

#assoc-macs-table .tr-title i {
  margin-left: 10px;
}

#assoc-macs-table .tr-cur-cond {
  border-left: 4px solid var(--theme-dark-secondary);
  border-right: 4px solid var(--theme-dark-secondary);
}

#assoc-macs-table .tr-chart-container {
  border-left: 4px solid var(--theme-dark-secondary);
  border-right: 4px solid var(--theme-dark-secondary);
  border-bottom: 4px solid var(--theme-dark-secondary);
}

#assoc-macs-table .tr-chart-container td {
  padding-bottom: 15px;
}

#assoc-macs-table .tr-title {
  Width: 100%;
  z-Index: 1;
  Top: 0;
  Margin: 0;
  Padding: 10px 0 0 0;
  Background: var(--theme-dark-secondary);
  Background: var(--theme-light-secondary);
  Background: Linear-Gradient(45deg, var(--theme-dark-secondary), var(--theme-light-secondary)), URL(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAnCAQAAAAmqpm+AAAAUUlEQVR4AWMgDvyXJEoV7/AwjnckGzdq3Khxo8apDQvj/kuCIS9OqIYCefFD4tzG+F+NGFW0Mo7ysBvNFaPGjRo3apzkIDfuP89/XipASQgEAF4fpQGYXVnnAAAAAElFTkSuQmCC);
  Background-Blend-Mode: Lighten;
  Box-Shadow: 0 0 20px 0 rgba(0, 0, 0, .4);
  -Moz-Animation: BluePrint 60s Infinite;
  -Webkit-Animation: BluePrint 60s Infinite;
  Animation: BluePrint 60s Infinite;
}

@-moz-keyframes BluePrint {
  0% {
    Background-Position: 0 0;
  }

  100% {
    Background-Position: 1100% 100%;
  }
}

@-webkit-keyframes BluePrint {
  0% {
    Background-Position: 0 0;
  }

  100% {
    Background-Position: 1100% 100%;
  }
}

@keyframes BluePrint {
  0% {
    Background-Position: 0 0;
  }

  100% {
    Background-Position: -100% 100%;
  }
}

#assoc-macs-table .tr-title div {
  margin-left: 20px;
  font-size: 80%;
}

#assoc-macs-table .h5,
#assoc-macs-table h5 {
  font-size: 1.25rem;
  margin-top: 10px;
  margin-left: 10px;
}

div.sensortype-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  top: 8px;
  position: relative;
}

.type-246,
.type-243,
.type-244,
.type-245,
.type-242 {
  background-image: url('images/sensortypes/temperature30x30.png');
}

.type-248 {
  background-image: url('images/sensortypes/rh30x30.png');
}

.type-181{
  background-image: url('images/sensortypes/CO2-30x30.png');
}

.type-182{
  background-image: url('images/sensortypes/eCO2-30x30.png');
}

.type-100,
.type-99 {
  background-image: url('images/sensortypes/pressure.png');
}

.type-96 {
  background-image: url('images/sensortypes/VOCicon.png');
}

.type-64 {
  background-image: url('images/sensortypes/CO.png');
}

.type-32,
.type-33,
.type-34,
.type-35,
.type-36,
.type-37,
.type-38,
.type-39,
.type-40 {
  background-image: url('images/sensortypes/PM\ icon.png');
}

.type-49,
.type-50,
.type-51 {
  background-image: url('images/sensortypes/volume-icon.png');
}

.type-115 {
  background-image: url('images/sensortypes/light-icon.png');
}

.type-52,
.type-53,
.type-54 {
  background-image: url('images/sensortypes/vibration-30x30.png');
}

.type-28 {
  background-image: url('images/sensortypes/AQI-30x30.png')
}

.current-readings-label {
  font-size: 75%;
  border-radius: 4px;
  background-color: #0070A9;
  color: #fff;
  padding: 5px 8px;
}

.current-readings-data {
  font-size: 75%;
  border-radius: 4px;
  background-color: #4BACD2;
  color: #fff;
  padding: 5px 8px;
  font-weight: bold;
}

.monitor-label .title {

  font-size: 75%;
  border-radius: 4px;
  background-color: var(--theme-dark-secondary);
  color: #fff;
  padding: 5px 8px;

}

.monitor-label .mac {

  font-size: 75%;
  border-radius: 4px;
  background-color: var(--theme-light-secondary);
  color: #fff;
  padding: 5px 8px;

}

#area-details {
  font-size: 80%;
}

#area-details .btn {
  font-size: 0.8rem;
  line-height: 1.0rem;
}

#thermal-report-container {
  height: 100%;
  width: 100%;
}

#thermal-image-container {
  padding-left: 10px;
  height: 208px;
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
  background: #000;
  padding-top: 4px;
  padding-bottom: 4px;
}

.thermal-img-div img {
  height: 128px;
  width: 128px;
  margin: auto;
}

#thermal-image-container .thermal-img-div,
.thermal-img-div {
  position: relative;
  padding: 4px;
  display: inline-block;
  align-content: center;
  text-align: center;
  width: 140px;
  margin-right: 5px;
  margin-left: 5px;
  border: 1px solid #505050;
  -webkit-box-shadow: 3px 4px 4px -1px rgba(134, 134, 134, 0.3);
  -moz-box-shadow: 3px 4px 4px -1px rgba(134, 134, 134, 0.3);
  box-shadow: 3px 4px 4px -1px rgba(134, 134, 134, 0.3);
}

.thermal-temp-tooltip {
  font-size: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid #999;
  border-radius: 4px;
  -webkit-box-shadow: 3px 4px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 3px 4px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: 3px 4px 5px 0px rgba(0, 0, 0, 0.75);
  padding: 4px 2px;
  z-index: 5;
}

div.stat {
  font-size: 9px;
  color: #ccc;
  margin-right: 5px;
}

.thermal-div-date {
  display: block;
}

.thermal-div-min,
.thermal-div-max,
.thermal-div-avg {
  display: inline;
}

#thermal-stats-chart {
  min-height: 400px;
}

#thermal-stats-chart #ctxFullChart {
  width: 100%;
  background-color: #000;
}

#viz-amg-thermal {
  min-height: 400px;
  background: #000;
}

#viz-amg-thermal .title-div {
  padding-top: 10px;
  color: #FFBC00;
  text-decoration: underline;
  font-size: 110%;
}

#thermal-stats-div {
  position: relative;
}

#thermal-report-container {
  background: #000;
  color: #ccc;
  padding: 20px;
}

#thermal-report-container .title {
  font-size: 120%;
  font-weight: 700;
  display: inline;
}

#thermal-report-container .mac {
  display: inline;
  margin-left: 10px;
}

.thermal-image-container-title,
#thermal-stats-div .span-title {
  font-size: 110%;
  margin: 10px;
  color: #FFBC00;
  text-decoration: underline;
}

#thermal-image-container::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #505050;
}

#thermal-image-container::-webkit-scrollbar {
  width: 12px;
  background-color: #505050;
}

#thermal-image-container::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  background-color: #000;
}

.stat-thermal-image-container .thermal-img-div {
  display: block;
}

.stat-thermal-image-container {
  padding: 10px;
  display: inline-block;
  text-align: center;
}

.div-thermal-stats-info {
  display: inline-block;
  vertical-align: top;
  padding: 10px;
  font-size: 14px;
  color: #fff;
}

#tab-vis-content-audio {
  width: 100%;
  height: auto;
  padding: 10px;
  background: #000;
  color: #eee;
}

#tab-vis-content-audio .col {
  border: 1px solid #303030;
  margin: 20px;
}

#viz-audio-3D {
  width: 100%;
  height: auto;
  min-height: 350px;
}

#viz-audio-FFT,
#viz-audio-waveform,
#viz-spl-trend {
  min-height: 300px;
  max-height: 400px;
}

#viz-spl-trend {
  min-width: 200px;
  width: 70%;
}

/* Center the loader */
#loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
  display: none;
}

#loader2 {
  height: 50px;
  width: 50px;
  z-index: 1;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
  display: none;
}

#loader-sm, .loader-sm {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  margin: -75px 0 0 -75px;
  height: 15px;
  width: 15px;
  z-index: 1;
  border: 16px solid #000000;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
  display: none;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Add animation to "page content" */
.animate-bottom {
  position: relative;
  -webkit-animation-name: animatebottom;
  -webkit-animation-duration: 1s;
  animation-name: animatebottom;
  animation-duration: 1s
}

@-webkit-keyframes animatebottom {
  from {
    bottom: -100px;
    opacity: 0
  }

  to {
    bottom: 0px;
    opacity: 1
  }
}

@keyframes animatebottom {
  from {
    bottom: -100px;
    opacity: 0
  }

  to {
    bottom: 0;
    opacity: 1
  }
}

.bg-nodata {
  background-color: #cccccc !important;
}


#viz-gauge-spl .sensor-gauge {
  display: block;
  background: #000;
  border: 2px solid #909090;
  margin-bottom: 10px;
}

#viz-gauge-spl .list-group-item {
  background: #000;
}

#viz-spl-trend {
  height: auto;
  min-height: 400px;
}

li.btn-full-chart {
  text-align: center;
}

.gauge-panel-container {
  font-size: 11pt;
}

.group {
  padding: 10px;
  margin: 10px;
  border: 1px solid #ccc;
}

.fancy-table th {
  font-weight: bold;
  font-size: 1em;
  text-align: left;
  color: #4BACD2;
}

.fancy-table td {
  font-weight: normal;
  font-size: 1em;
  -webkit-box-shadow: 0 2px 2px -2px #0E1119;
  -moz-box-shadow: 0 2px 2px -2px #0E1119;
  box-shadow: 0 2px 2px -2px #0E1119;
}

.fancy-table {
  text-align: left;
  margin: 0 auto;
  display: table;
  padding: 0.2em 0.2em 1em 0.2em;
  color: #ccc;
}

.fancy-table td,
.fancy-table th {
  padding-bottom: 0.2em;
  padding-top: 0.2em;
  padding-left: 0.2em;
}

/* Background-color of the odd rows */
.fancy-table tr:nth-child(odd) {
  background-color: #303030;
}

/* Background-color of the even rows */
.fancy-table tr:nth-child(even) {
  background-color: #202020;
}

.fancy-table th {
  background-color: rgb(28, 30, 39);
}

.fancy-table td:first-child {
  color: var(--theme-light-secondary);
}

.fancy-table tr:hover {
  background-color: #464A52;
  -webkit-box-shadow: 0 6px 6px -6px #0E1119;
  -moz-box-shadow: 0 6px 6px -6px #0E1119;
  box-shadow: 0 6px 6px -6px #0E1119;
}

.fancy-table td:hover {
  background-color: #FFF842;
  color: #403E10;
  font-weight: bold;

  box-shadow: #7F7C21 -1px 1px, #7F7C21 -1px 1px, #7F7C21 -2px 2px, #7F7C21 -2px 2px, #7F7C21 -3px 3px, #7F7C21 -3px 3px;
  transform: translate3d(3px, -3px, 0);

  transition-delay: 0s;
  transition-duration: 0.4s;
  transition-property: all;
  transition-timing-function: line;
}

.fancy-table td,
.fancy-table th {
  border-color: #999;
}

.fancy-table .th-title {
  background: #0070A9;
  color: #fff;
}

.fancy-table {
  margin-bottom: 1em;
}


table.dataTable tbody tr {
  color: #999;
  background-color: #202020;
}

table.dataTable tbody tr.even:hover,
table.dataTable tbody tr:hover {
  background-color: #202020;
}

table.dataTable.stripe tbody tr.odd,
table.dataTable.display tbody tr.odd {
  background-color: #303030;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
  color: #999;
}

table.dataTable.stripe tbody tr.odd.selected,
table.dataTable.display tbody tr.odd.selected {
  background-color: #444;
}

table.dataTable.stripe tbody tr.odd.selected:hover,
table.dataTable.display tbody tr.odd.selected:hover,
table.dataTable tbody tr.selected:hover,
table.dataTable tbody tr.even.selected:hover {
  background-color: #666;
}

table.dataTable tbody tr.selected,
table.dataTable tbody tr.even.selected {
  background-color: #444;
}

table.dataTable.row-border tbody th,
table.dataTable.row-border tbody td,
table.dataTable.display tbody th,
table.dataTable.display tbody td {
  border-color: #555 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: #202020;
  color: #ccc !important;
}

#div-select-sensor-form {
  border-bottom: 3px solid #cccccc;
}

.card-body {
  background-color: #202020;
}

.nav-tabs .nav-link {
  color:var(--theme-light-grey);
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  background-color: #101010;
  color:var(--theme-light-grey);
}

.nav-tabs .nav-link.active {
  background-color:var(--theme-dark-primary);
  color:var(--theme-main-color);
}

.modal-header {
  border-bottom: 2px solid #444;
}

.modal-subheader {
  align-items: flex-start;
  border-bottom:none;
  justify-content: left;
}

.modal-footer {
  border-top: 2px solid #444;
  background: #202020;
}

.popover {
  background: inherit;
  border: 1px solid #ccc;
  -webkit-box-shadow: 4px 4px 205px -9px rgba(71, 71, 71, 1);
  -moz-box-shadow: 4px 4px 205px -9px rgba(71, 71, 71, 1);
  box-shadow: 4px 4px 205px -9px rgba(71, 71, 71, 1);

  background: rgba(20, 20, 20, 1);
  background: -moz-linear-gradient(45deg, rgba(20, 20, 20, 1) 0%, rgba(74, 74, 74, 1) 100%);
  background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(20, 20, 20, 1)), color-stop(100%, rgba(74, 74, 74, 1)));
  background: -webkit-linear-gradient(45deg, rgba(20, 20, 20, 1) 0%, rgba(74, 74, 74, 1) 100%);
  background: -o-linear-gradient(45deg, rgba(20, 20, 20, 1) 0%, rgba(74, 74, 74, 1) 100%);
  background: -ms-linear-gradient(45deg, rgba(20, 20, 20, 1) 0%, rgba(74, 74, 74, 1) 100%);
  background: linear-gradient(45deg, rgba(20, 20, 20, 1) 0%, rgba(74, 74, 74, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#141414', endColorstr='#4a4a4a', GradientType=1);
}

.popover-body {
  padding: 1em;
  color: #ccc;
}

.popover-header {
  background: #202020;
}

#results-container {
  padding:0.5em;
}

#results-container h3 {
  display: inline;
  margin-right: 1rem;
}

#clock-div {
  display: inline;
}

#csv-links-container {
  border-bottom: 1px solid #777;
  padding-bottom: 1rem;
}

main {
  border-bottom: var(--theme-dark-secondary) 4px solid;
}

#div-select-sensor-form .side {
  border: 1px solid var(--theme-dark-secondary);
  background: #303030;
  margin:0.5rem;
  padding:0.5rem;
}

div#form-buildingmap-current-map-image {
  overflow-y: scroll;
  overflow-x: scroll;
  max-height: 400px;
}

div.csv-container-div {
  border-right: 1px solid #ccc;
  padding-right: 0.5em;
}

.table-timeseries-aggregation {
  border-spacing: 0em;
  border-collapse: separate;
  padding: 0.5em;
  margin: 0.5em;
  border-bottom: 2px solid #0070A9;
}

.table-timeseries-aggregation td {
  min-width: 1em;
  min-height: 1em;
  padding: 1em;
  font-size: 0.8em;
  /* border: 1px solid black; */
}

.table-timeseries-aggregation thead th {
  border-bottom: 2px solid #0070A9;
  font-weight: normal;
  border-right: 1px solid #333;
  font-size: small;
  text-align: center;
  padding: 0em 0.5em;
}

.table-location-stats td,
.table-location-stats th {
  vertical-align: middle;
}

.table-location-stats td:first-child {
  color: #ddd;
}


.table-location-stats .info-div {
  font-size: 85%;
  text-align: center;
  padding: 0.5em;
}

#table-sensor-statuses .badge {
  display: block;
  width: 100%;
  height: 100%;
}

.clearfix {
  clear: both;
}

#table-live-sensor-data div.sensortype-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  background-size: 15px;
  background-repeat: no-repeat;
  top: 3px;
  position: relative;
}

#table-live-sensor-data {
  width: 100%;
}

#table-live-sensor-data td {
  vertical-align: middle;
}

#table-live-sensor-data td .badge {
  display: inline-block;
  width: 100%;
  height: 100%;
}

.dismiss-btn {
  position: relative;
  float: right;
  background: transparent;
  border: none;
  color: white;
  top: -6px;
  right: -6px;
}