.pv-wrapper,
.pv-wrapper *,
.modal,
.modal *,
.ui-widget,
.ui-widget *,
body,
button,
input,
select,
textarea {
  font-family: "Roboto", Arial, sans-serif !important;
}

html,
body {
  color: #101828;
  font-size: 14px;
  font-weight: 400;
}

.pv-viewpanel {
  z-index: 1;
}

.pv-mapview-canvas {
  z-index: 1;
}

.pv-mapview-canvas .leaflet-control-container {
  position: relative;
  z-index: 2;
}

.pv-filterpanel,
.pv-infopanel,
.pv-altinfopanel,
.pv-toolbarpanel {
  z-index: 1000;
}

#page {
  height: calc(100vh - 135px);
}

#pivotviewer,
.pv-wrapper {
  height: 100%;
}

.pv-mainpanel {
  height: calc(100% - 37px);
}

.pv-canvas {
  touch-action: none;
}

.modal {
  z-index: 2000;
}

.modal-backdrop {
  z-index: 1990;
}

#myModal .modal-content,
#myModal .modal-header,
#myModal .modal-body,
#myModal .modal-footer {
  background: #000;
  color: #fff;
  border-color: #333;
}

#myModal .modal-dialog {
  max-width: 50vw;
  width: 50vw;
}

#myModal a {
  color: #fff;
}

#myModal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.pv-filterpanel-accordion .ui-accordion-header,
.pv-filterpanel-accordion .ui-accordion-header.ui-state-default,
.pv-filterpanel-accordion .ui-accordion-header.ui-state-hover,
.pv-filterpanel-accordion .ui-accordion-header.ui-state-focus,
.pv-filterpanel-accordion .ui-accordion-header.ui-state-active {
  background: #005fab;
  color: #fff;
  border-color: #005fab;
}

.pv-filterpanel-accordion .ui-accordion-header a {
  color: #fff;
}

.pv-toolbarpanel {
  background: #005fab;
  border-bottom-color: #fbaa00;
  filter: none;
}

.pv-toolbarpanel-facetbreadcrumb,
.pv-toolbarpanel-info,
.pv-toolbarpanel-name,
.pv-filterpanel-version,
.pv-filterpanel-clearall,
.pv-filterpanel-accordion .ui-accordion-header a,
.pv-facet-customrange-label,
.pv-countbox,
.pv-bucket-countbox {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.pv-filterpanel-accordion-facet-list-item {
  position: relative;
  min-height: 18px;
  line-height: 16px;
}

.pv-facet-facetitem {
  margin-top: 2px;
}

.pv-filterpanel-version {
  color: #fff;
  text-shadow: none;
}

.pv-filterpanel-clearall {
  color: #fbaa00;
}

.pv-facet-facetitem-label,
.pv-facet-customrange-label {
  color: #fff;
}

.pv-facet-facetitem-label {
  left: 18px;
  width: calc(100% - 58px);
  margin-top: 1px;
  overflow: hidden;
  color: #fff;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-facet-facetitem-label:hover {
  background: #004f8e;
}

.pv-facet-facetitem-count {
  min-width: 26px;
  margin-top: 0;
  padding: 0 5px;
  border-radius: 10px;
  background: #fbaa00;
  background-image: none !important;
  color: #111827;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.pv-countbox,
.pv-bucket-countbox,
.pv-tableview-heading {
  background: #005fab;
  color: #fff;
}

.pv-filterpanel-accordion-facet-chart rect {
  stroke: #005fab;
  fill: #fbaa00;
}

.pv-infopanel-heading {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.pv-infopanel {
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}

.pv-infopanel-details,
.detail-item-title,
.detail-item-value {
  font-size: 13px;
  line-height: 1.35;
}

.modal-body,
.pv-infopanel-details {
  overflow-y: auto;
}

.modal-body {
  max-height: calc(100vh - 190px);
}

.pv-credits-button {
  margin-top: 6px;
  width: 100%;
  font-family: inherit;
}

.pv-tableview-heading {
  min-width: 80px;
  resize: horizontal;
  overflow: auto;
}

@media (max-width: 900px) {
  #myModal .modal-dialog {
    max-width: calc(100vw - 24px);
    width: calc(100vw - 24px);
  }
}
