
/*  NAVIGATION          */
.navbar {
  left: 0;
  height: 60px;
  z-index: 1050; /* Ensure it stays above everything */
}
/* edit .bg-info to match prototype */
.navbar.bg-info {
  background-color: rgb(42, 157, 143) !important;
}

/*  LAYOUT: SIDEBAR     */
.sidebar {
  padding: 10px;
}
.range-dropdown summary::marker {
  content: "";
}
.range-dropdown summary::after {
  margin-left: 0.2em;
  content: "▶︎";
  float: right;
}
.range-dropdown[open] summary::after {
  content: "▼";
}

/* make sidebar sticky when window is large enough */
@media (min-width: 667px) {
  #sidebar {
    height: calc(100vh - 60px);
    top: 60px;
    position: sticky;
  }
}

/*  LAYOUT: CONTAINER (custom overrides)   */
.container-fluid {
  margin-left: 250px;
  padding-left: 0;
  padding-right: 0;
  margin-right: 0;
}

.container-fluid:has(#sidebar) {
  display: flex;
  width: 100%;
  padding: 0;
  margin: 0;
}

.container-fluid .row {
  margin-left: 0;
  margin-right: 0;
}

.container-fluid .row.content-div {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
}

/*  LAYOUT: FLEX/GRID   */

/*  HEADERS             */
.results-header {
  position: sticky;
  top: 60px;
  background-color: white;
  z-index: 1020;
  width: inherit;
}

.removable-header {
  position: relative;
  min-width: 90px;
}
.border-white-50 {
  border-color: #ffffff80 !important;
}

/*  TABLE               */
.table thead {
  background-color: white;
  z-index: 1010;
  white-space: nowrap;
  vertical-align: middle;
}

/* apply text align rules only to table on search page */
.table-search td {
  vertical-align: middle;
}

/*  BUTTONS: OUTLINE-LIGHT & CLOSE (X) */
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}
.x-button {
  position: absolute;
  top: 0;
  right: 0;
  color: crimson;
  font-family: sans-serif;
  cursor: pointer;
  display: none;
  padding: 0 4px 2px;
  line-height: 1em;
  z-index: 2;
}

.x-button:before {
  content: '×';
}

.removable-header:hover .x-button {
  display: inline-block;
}

.x-button:hover {
  background: crimson;
  color: white;
}

/* MAPS */
/* hide map when empty */
#map svg:empty {
  opacity: 0;
}
/* fade in when svg gets children elements */
#map svg {
  opacity: 1;
  transition: opacity 0.7s;
  height: auto;
  max-height: 550px;
  max-width: 100%;
}
#map .state {
  opacity: 1;
  transition: opacity 1s;
}
/* fade out selected state */
/* allow hover events to pass thru to counties only for selected state */
#map .state.active {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 991px) {
  .month-year {
    display: none;
  }
}
.heatmap-sort, .search-sort {
  cursor: pointer;
  font-weight: normal;
}
.heatmap-sort::after, .search-sort::after {
  color: #0069DB;
  content: '↑';
  margin-left: 0.5em;
  opacity: 0;
}
.heatmap-sort:hover::after, .search-sort:hover::after {
  opacity: 1;
}
.heatmap-sort.asc, .heatmap-sort.desc,
.search-sort.asc, .search-sort.desc {
  color: #0069DB;
  &::after {
    opacity: 1;
  }
}
.heatmap-sort.desc::after, .search-sort.desc::after {
  content: '↓';
}

/*  MISC    */
.scrollable {
  overflow: auto;
  scrollbar-width: none; /* Firefox */
}

.scrollable::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

a {
  color: #0069DB;
}
