*,
:after,
:before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  height: 100%;
}

body,
html,
#map {
  width: 100%;
  height: 100%;
  margin: 0; padding: 0;
  position: absolute; top: 0; bottom: 0;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background-color: #f1f1f1;
}

.logo {
    position: absolute;
    top: 13px;
    left: 10px;
    z-index: 999;
}

.marker-position {
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    bottom: 20px;
    left: 10px;
    z-index: 999;
    padding: 0px;
    font-weight: 100;
    color: #2347a1;
}

.radio {
    width: 380px;
}
/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-flex;
  flex-direction: row;
}

.hist {
    position: absolute;
    top: 100%;
    margin-left: 5px;
    margin-top: 0px;
    height: 8px;
    background-color: #b2c2d2;
}

.up {
    color: #68A14B;
    text-align: right;
    margin: 1px;
    margin-left: 10px;
    margin-right: 5px;
    
    height: 8px;
}

.stale {
    color: #BD602E;
    text-align: right;
    margin: 1px;
    margin-left: 10px;
    margin-right: 5px;
    height: 8px;
}

.down {
    color: #10162f;
    text-align: right;
    margin: 1px;
    margin-left: 10px;
    margin-right: 5px;
    height: 8px;
}	       

.siteheader {
  position: relative;
  display: inline-flex;
  flex-direction: row;
}
.histinfo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
 
  /* Position the tooltip text - see examples below! */
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */
  z-index: 10;
}

.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  bottom: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

.siteimg {
    display: inline-block;
    
}

span.addr-number {
    color: #2347a1;
}

span.addr-letter {
    color: darkred;
}

div.status {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 80%;
    position: absolute;
    padding: 5px 5px 5px 20px;
    top: 16px;
    left: 65px;
    width: 192px;
    height: 70px;
    border-radius: 3px;
    z-index: 100;
    background-color:  #72F4F0d0;
}    

.popup {
    font-family: Arial, Helvetica, sans-serif;
    color: #2347a1;
    background-color: #ffffffa0;
    border-radius: 10px;
    position: absolute;
    font-weight: 200;
    padding: 20px;
    top: 90px;
    left: 60px;
    width: 240px;
    z-index: 999;
    display: none;
}
    

.modal {
    font-family: Arial, Helvetica, sans-serif;
    color: #2347a1;
    background-color: #ffffffa0;
    visibility: hidden;
    position: absolute;
    padding: 10px;
    border-radius: 3px;
    top: 90px;
    left: 10px;
    width: 240px;
    z-index: 500;
}

.modal p {
    margin-bottom: 10px;
}

.marker {
    background-image: url('xsite.png');
    background-size: cover;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.lds-spinner {
  color: official;
  display: inline-block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
}
.lds-spinner div {
  transform-origin: 40px 40px;
  animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background: #fff;
}
.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


.mapboxgl-popup {
    max-width: 400px;
    font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
}

.xsite {
    width: 400px;
}

#menu {
    background: #fff;
    position: absolute;
    z-index: 20;
    top: 13px;
    right: 10px;
    border-radius: 3px;
    width: 70px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    font-family: 'Open Sans', sans-serif;
}
      
#menu a {
    font-size: 13px;
    color: #303030;
    background-color: #a0b0b0;
    display: block;
    margin: 0;
    padding: 0;
    padding: 8px;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    text-align: center;
}
      
#menu a:last-child {
    border: none;
}

#menu a:hover {
    background-color: #f8e8e8;
    color: #404040;
}

#menu a.active {
    background-color: #3887be;
    color: #ffffff;
}
      
#menu a.active:hover {
    background: #3074a4;
}

.dashbox {
    position: absolute;
    z-index: 10;
    top: 105px;
    left: 10px;
    width: 80%;
}
.collapsible {
    width: 120px;
    padding: 5px;
    border: none;
    outline: none;
    background-color: #eeee;
    border-radius: 3px;
}


.active, .collapsible:hover {
    background-color: #ccce;
}

.dashcontent {
    font-family: Arial, Helvetica, sans-serif;
    padding: 0 0px;
    display: none;
    overflow-x: scroll;
    overflow-y: scroll;
    max-height: 500px;
    max-width: 800px;
    background-color: #f1f1f1;
}

table,
th,
td {
  border: 1px solid;
}

table {
    width: 800px;
    max-width: 800px;
    margin: 0 auto;
    font-size: 80%;
    /*  display: block; */
    /*  overflow-x: auto; */
    border-spacing: 0;
}

tbody {
   /* white-space: nowrap; */
}

th,
td {
  padding: 5px 5px;
  border-top-width: 0;
  border-left-width: 0;
}

.id {
    max-width: 200px;
    width: 40em;
    word-wrap: break-word;
}

th {
  position: sticky;
  top: 0;
  background: #fff;
  vertical-align: bottom;
}

th:last-child,
td:last-child {
  border-right-width: 0;
}

tr:last-child td {
  border-bottom-width: 0;
}

input[type="radio"] { display: none; } 
input + label { display: inline-block;
		font-size: 80%; }

input ~ .currentradios,
input ~ .currentgateways, 
input ~ .previousradios,
input ~ .previousgateways { display: none }

#tab1:checked ~ .currentradios,
#tab2:checked ~ .currentgateways,
#tab3:checked ~ .previousradios, 
#tab4:checked ~ .previousgateways { display: block; }

input + label {
  border: 1px solid #999;
  background: #EEE;
  padding: 4px 12px;
  border-radius: 4px 4px 0 0;
  position: relative;
  top: 1px;
}
input:checked + label {
  background: #FFF;
  border-bottom: 1px solid transparent;
}

input ~ .currentradios,
input ~ .currentgateways,
input ~ .previousradios,
input ~ .previousgateways
{
    border-top: 1px solid #999;
    background: #FFF;
    padding: 12px;
}
