.data-dashboard {
	min-height: 50vh;
}

.data-dashboard button {
	font-size: 14px !important;
}

.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 8px;
  border: 1px solid #555;
}

.legend i:after {
  content: " ";
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  top: 0;
  left: 0;
  opacity: 1 !important;
  background: #eee;
  z-index: -1;
}

.legend,
.tractControl,
.tractToggle button {
  background: #fefefe;
  color: #333;
  padding: 1em;
  box-shadow: 5px 5px 15px -5px #333;
  border-radius: 0.5em;
}

.legend,
.tractControl label {
  font-family: "Atkinson Hyperlegible", sans-serif;
  padding-left: .75em;
}
.tractToggle button {
  font-size: 1em;
}

.tractControl {
  width: 300px;
}

.legend {
  width: 200px;
}

.legend h4,
.tractControl h4 {
  font-size: 1em !important;
}

.legend span,
.tractControl span {
  height: 1em;
  width: 1em;
  margin-right: 1em;
  display: inline-block;
}

p.no-data-list {
  margin-bottom: 0;
}

.noDataCounties {
	font-size: .75em;
	padding: 1em;
}

.data-dashboard {
  opacity: 0;
  height: 0px;
  transition-duration: 1.5s;
}

.dashboard-loading {
  opacity: 1;
  transition-duration: 1.5s;
}

#dataform fieldset {
  border: 0;
  padding: 0;
  margin: 1em 0 1em;
}

#dataform fieldset legend {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 0.5em;
  padding-bottom: 0.25em;
  border-bottom: 1px solid #afc3db;
}

.opt-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 0.25em;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-content: center;
  justify-content: center;
}

input[type="checkbox"]::before {
  content: " ";
  display: block;
  height: 22px;
  width: 100%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 576 512"><!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M384 128c70.7 0 128 57.3 128 128s-57.3 128-128 128H192c-70.7 0-128-57.3-128-128s57.3-128 128-128H384zM576 256c0-106-86-192-192-192H192C86 64 0 150 0 256S86 448 192 448H384c106 0 192-86 192-192zM192 352a96 96 0 1 0 0-192 96 96 0 1 0 0 192z" fill="%23FFFFFF"/></svg>') !important;
  background-size: 28px 22px !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  padding-left: 36px !important;
}

input[type="checkbox"]:checked::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 576 512"><!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M192 64C86 64 0 150 0 256S86 448 192 448H384c106 0 192-86 192-192s-86-192-192-192H192zm192 96a96 96 0 1 1 0 192 96 96 0 1 1 0-192z" fill="%23FFCB05" /></svg>') !important;
}

input[type="checkbox"] ~ label {
  line-height: 1.1em;
}

input[type="checkbox"]:checked ~ label {
  font-weight: 600;
}

.active-filter {
  display: block;
  text-align: left;
  margin-bottom: 0.25em;
  margin-top: 0.25em;
}

.active-name {
  font-weight: 600;
  display: block;
}

.active-county {
  text-decoration: underline;
  display: block;
}

.tractControlExternal {
  padding: 1em;
  font-size: .75em;
  background-color: #afc3db;
}

@media (min-width: 900px) {
  .dash-count {
    position: fixed !important;
    top: 150px;
    margin-right: 15px;
  }
  .filter-bar {
    height: 100%;
  }
}
