/* Always set the map height explicitly to define the size of the div
       * element that contains the map. */

.hidden {
  display: none !important;
}

#expand-tool {
  position: absolute;
  width: auto;
  font-size: 14px !important;
  padding: 0 10px;
  height: 40px;
  left: 5px;
  background: white;
  bottom: 5px;
  z-index: 9;
  display: flex;
  justify-content: center;
  align-items: center;
}
#expand-tool i {
  padding-right: 5px;
}
.data-layer-name {
  white-space: break-spaces;
}
.no-margin p {
  margin-bottom: 0;
}

#map-error div {
  padding: 20px;
  line-height: 1;
  font-size: 16px;
  text-align: center;
  color: white;
  background: #ff3f3f;
}
#header {
  height: 70px;
  background: rgba(34, 34, 34, 0.8);
  max-height: 70px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-image {
  display: flex;
  align-items: center;
  color: white;
  font-size: 18px;
}

.header-image img {
  height: 50px;
  padding: 10px 20px 10px 40px;
}
.uppco-link {
  padding: 0 40px;
}
.uppco-link a {
  font-weight: 600;
  text-decoration: none;
  color: white;
}
.outage-page-content {
  height: calc(100vh - 70px);
  display: flex;
}
.has-map-error {
  height: calc(100vh - 126px) !important;
}
#map {
  height: calc(100vh - 70px);
  width: calc(100% - 375px);
}

.has-map-error #map {
  height: calc(100vh - 126px) !important;
}
/* Optional: Makes the sample page fill the window. */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
}
#tool-content {
  left: 20px;
  width: 375px;
  z-index: 10;
  height: calc(100%);
  background: #f7f7f7;
  padding: 20px;
  top: calc(50% + 35px);
}
#tool-content .minimize {
  padding-bottom: 10px;
  display: none;
}
#tool-content select {
  width: 140px;
  height: 30px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 3px;
}

#tool-content option:hover {
  cursor: pointer;
}

.fl-builder-content-14,
.fl-builder-content-59 {
  display: none;
}
.table-head {
  font-weight: bold;
  font-size: 15px;
  letter-spacing: -0.5px;
  border-bottom: 1px solid black;
  padding-bottom: 5px;
}
.table-head > div {
  display: flex;
  font-size: 15px;
  justify-content: space-around;
  width: 100%;
  text-align: center;
}
.table-body {
  height: calc(100% - 124px);
  background: #f7f7f7;
  padding: 0 10px;
  font-size: 14px;
  overflow-y: auto;
}
.table-body > div,
.table-foot > div {
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: center;
}
.table-foot {
  background: #f7f7f7;
  font-size: 15px;
  padding: 0 10px 10px;
  text-align: center;
}
.table-foot > div {
  border-top: 1px solid black;
}

.table-head > div > div:first-of-type,
.table-head > div > div:nth-of-type(3),
.table-body > div > div:first-of-type,
.table-body > div > div:nth-of-type(3),
.table-foot > div > div:first-of-type,
.table-foot > div > div:nth-of-type(3) {
  width: 30%;
}

.table-head > div > div:nth-of-type(2),
.table-head > div > div:nth-of-type(4),
.table-body > div > div:nth-of-type(2),
.table-body > div > div:nth-of-type(4),
.table-foot > div > div:nth-of-type(2),
.table-foot > div > div:nth-of-type(4) {
  width: 20%;
}
.data-layer-name,
.data-layer-number-of-outages,
.data-layer-percent-out,
.data-layer-total-customers {
  cursor: pointer;
}

@media (max-width: 1200px) {
  #tool-content {
    font-size: 14px;
    width: 260px;
  }
  #map {
    height: 100%;
    width: calc(100% - 260px);
  }
}

@media (max-width: 850px) {
  .minimize {
    display: block !important;
  }
  #tool-content {
    position: absolute;
    bottom: 25px;
    width: calc(100% - 20px) !important;
    z-index: 222;
    height: 276px;
    left: 10px;
    top: auto;
    transform: translate(0, 0);
  }
  #map {
    height: 100%;
    width: 100%;
  }
}
@media (max-width: 768px) {
  #header img {
    padding: 10px 20px;
  }
  .uppco-link {
    display: none;
  }
}
