a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: normal;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

main {
  min-height: 70vh;
}

@media screen and (max-width: 767px) {
  a.navbar-brand {
    white-space: nowrap;
  }
}

.depth-cloud-toolbar label {
  font-size: .875rem;
  font-weight: 600;
  color: #e8f2ef;
  margin-bottom: 0;
}

.depth-cloud-toolbar,
.depth-cloud-legend,
.depth-cloud-status {
  border: 1px solid rgba(190, 214, 215, .38);
  background: rgba(14, 26, 31, .52);
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  backdrop-filter: blur(12px) saturate(145%);
}

.depth-cloud-toolbar {
  position: absolute;
  z-index: 1;
  top: .75rem;
  right: .75rem;
  left: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .75rem;
  max-width: calc(100% - 1.5rem);
  overflow-x: auto;
  white-space: nowrap;
  margin: 0;
  padding: .75rem;
  border-radius: .25rem;
}

.depth-cloud-toolbar .form-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .4rem;
  margin-bottom: 0;
}

.depth-cloud-toolbar [hidden],
.depth-cloud-legend [hidden] {
  display: none !important;
}

.depth-cloud-toolbar .form-control {
  width: auto;
  border-color: rgba(232, 242, 239, .36);
  background-color: rgba(232, 242, 239, .12);
  color: #e8f2ef;
  -webkit-backdrop-filter: blur(8px) saturate(145%);
  backdrop-filter: blur(8px) saturate(145%);
}

.depth-cloud-toolbar .form-control:focus {
  border-color: rgba(31, 201, 173, .75);
  background-color: rgba(232, 242, 239, .2);
  color: #fff;
  box-shadow: 0 0 0 .2rem rgba(31, 201, 173, .16);
}

.depth-cloud-toolbar option {
  background: #17262c;
  color: #e8f2ef;
}

.depth-cloud-legend {
  position: absolute;
  z-index: 1;
  right: .75rem;
  bottom: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .5rem;
  border-radius: .25rem;
  color: #e8f2ef;
  pointer-events: none;
}

.depth-cloud-legend-title {
  font-size: .7rem;
  font-weight: 600;
}

.depth-cloud-legend-scale {
  display: flex;
  align-items: stretch;
  gap: .45rem;
  height: 7rem;
}

.depth-cloud-legend-bar {
  width: .55rem;
  border-radius: .15rem;
  background: linear-gradient(to bottom, #1fc9ad 0%, #ffc95c 50%, #ed4d66 100%);
}

.depth-cloud-legend-values {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: .7rem;
  line-height: 1;
}

.depth-cloud-sensor-legend {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  max-height: 10rem;
  overflow-y: auto;
  font-size: .7rem;
  pointer-events: auto;
}

.depth-cloud-sensor-item {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.depth-cloud-sensor-swatch {
  width: .65rem;
  height: .65rem;
  flex: 0 0 auto;
  border-radius: 50%;
}

.depth-cloud-stage {
  position: relative;
  width: 100%;
  height: min(68vh, 580px);
  min-height: 340px;
  overflow: hidden;
  border: 1px solid #354a50;
  border-radius: .25rem;
  background: #17262c;
}

#depth-cloud-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.depth-cloud-status {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  left: .75rem;
  max-width: max-content;
  margin: 0;
  padding: .4rem .6rem;
  border-radius: .2rem;
  color: #e8f2ef;
  overflow-wrap: anywhere;
}

.depth-cloud-status.is-error {
  color: #ffb4ab;
}

.depth-cloud-note {
  font-size: .875rem;
}

@media screen and (max-width: 575.98px) {
  .depth-cloud-stage {
    height: 55vh;
    min-height: 280px;
  }
}