#dashboardoverlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
  cursor: pointer;
}

#dashboardoverlay .nopadding {
  padding: 0 !important;
  margin: 0 !important;
}

#vmtoverlaytext {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 50px;
  color: white;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

#vmtpiechart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#vmtlinechart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#vmtlinechartd3 {
  position: relative;
  /*top: 50%;*/
  /*left: 50%;*/
  /*transform: translate(-50%,-50%);*/
}

.title-block {
  width: auto;
  height: auto;
  padding: 6px 8px;
  font: 14px/16px Arial, Helvetica, sans-serif;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  position: fixed;
  left: 50px;
  top: 5px;
}
.title-block h4 {
  display: inline-block;
  margin: 0 0 5px;
  /* WCAG 2.1 AA text on white (~12.6:1) */
  color: #212529;
}

.hover-info {
  width: auto;
  height: auto;
  padding: 6px 8px;
  font: 10pt Arial, Helvetica, sans-serif;
  background: white;
  /*background: rgba(255,255,255,0.8);*/
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  /* Body lines (Local Name, etc.) inherit from here — was browser default only */
  color: #212529;
  /* Prevent overlap at small screens / high zoom: allow the panel to scroll */
  max-height: min(55vh, 420px);
  overflow: auto;
}
/* Hover-info panel text. These intentionally use class-styled <p> tags
   rather than heading tags — the panel is a transient floating control,
   not document structure, so headings would break the page's heading
   outline (axe "Heading elements are not in a sequentially-descending
   order"). */
.hover-info .hover-info-title {
  font-size: 11pt;
  font-weight: 700;
  display: inline-block;
  margin: 0 0 5px;
  color: #1a1a1a;
}

.hover-info .hover-info-note {
  display: inline-block;
  margin: 0 0 5px;
  color: #1a1a1a;
  font-style: italic;
  font-size: 10pt;
}

.hover-info-collapse {
  width: 25px;
  height: 25px;
  padding: 6px 8px;
  font: 14px/16px Arial, Helvetica, sans-serif;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

#d3-dashboard-wrapper {
  font-family: Arial, Helvetica, sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
}

#d3-dashboard {
  font-family: Arial, Helvetica, sans-serif;
  border-radius: 5px;
}

/*#d3-dashboard path {*/
/*    stroke: #fff;*/
/*}*/

#d3-dashboard path:hover {
  opacity: 0.9;
}

#d3-dashboard .selected-path {
  opacity: 0.5;
}

/*#d3-dashboard rect:hover {*/
/*    fill: sienna;*/
/*}*/

#d3-dashboard .chart-bar rect:hover {
  fill: #41ab5d;
}

#d3-dashboard .selected-bar {
  fill: #41ab5d;
}

#d3-dashboard #bar-chart-title {
  /*fill: #777;*/
}

#d3-dashboard #pie-chart-title {
  /*fill: green;*/
}

#d3-dashboard .axis {
  font: 10px Arial, Helvetica, sans-serif;
}
#d3-dashboard .axis path,
#d3-dashboard .axis line {
  fill: black;
  stroke: #000;
  shape-rendering: crispEdges;
}

#d3-dashboard .x.axis path {
  display: none;
}

#d3-dashboard .legend {
  font: 11pt Arial, Helvetica, sans-serif;
  /*position: absolute;*/
  /*left: 50%;*/
  /*transform: translate(-50%, -10%);*/
  display: inline-block;
  border-collapse: collapse;
  border-spacing: 0;
  padding-right: 10px;
}

#d3-dashboard .legend th {
  padding: 4px 5px;
  text-align: center;
  border-width: 2px 1px 2px 1px;
  border-color: grey;
  border-style: solid;
  background: #1f4283;
  color: white;
}

#d3-dashboard .legend td {
  padding: 4px 5px;
  text-align: center;
  border: 1px solid grey;
}

#d3-dashboard .legend tr td:first-child,
#d3-dashboard .legend tr th:first-child {
  border-left: 0;
}

#d3-dashboard .legend tr:nth-child(odd) {
  background: #f2f2f2;
}
#d3-dashboard .legend tr td:last-child,
#d3-dashboard .legend tr th:last-child {
  border-right: 0;
}

#county-group-desc {
  display: block;
  padding-left: 10px;
  /*transform: translate(0, -260%);*/
}

#seg-info-title {
  display: block;
  padding-left: 10px;
  font-size: 14pt;
  /*transform: translate(0, -190%);*/
}

#d3-dashboard .info-table {
  font: 11pt Arial, Helvetica, sans-serif;
  /*transform: translate(0, -60%);*/
  border-collapse: collapse;
  border-spacing: 0;
  padding-left: 10px;
  vertical-align: top;
  width: 100%;
}

#d3-dashboard .info-table td {
  padding: 4px 5px;
  vertical-align: bottom;
  width: 50%;
}

#d3-dashboard .legendFreq,
.legendPerc,
.legnedPct05,
.legnedPct20,
.legnedPct50,
.legnedPct80,
.legnedPct95 {
  vertical-align: top;
  width: 50px;
}

#dashboard-button-bar {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translate(-50%, 0);
}

.dashboardbutton {
  display: inline;
  border-radius: 4px;
  background-color: #002244;
  border: 2px solid rgba(0, 0, 0, 0.2);
  /*border: 1px solid rgba(0, 0, 0, .15);*/
  color: #e8f2fc;
}

.dashboardbutton:hover {
  border-radius: 4px;
  background-color: #e8f2fc;
  border: 2px solid rgba(0, 0, 0, 0.2);
  /*border: 1px solid rgba(0, 0, 0, .15);*/
  color: #002244;
}

.popupBtnContainer {
  display: flex;
  justify-content: center;
}

.popupBtnContainer text {
  font-family: Arial, Helvetica, sans-serif;
}

.popupBtnContainer button {
  /*position:relative;*/
  /*top:50%;*/
  /*left:25%;*/
  /*text-anchor: middle;*/
}

.popupBtnContainer .btn-basic {
  /*font-size: 12pt;*/
  border-radius: 4px;
  background-color: #002244;
  border: 2px solid rgba(0, 0, 0, 0.2);
  /*border: 1px solid rgba(0, 0, 0, .15);*/
  color: #e8f2fc;
}

.popupBtnContainer .btn-basic:hover {
  border-radius: 4px;
  background-color: #e8f2fc;
  border: 2px solid rgba(0, 0, 0, 0.2);
  /*border: 1px solid rgba(0, 0, 0, .15);*/
  color: #002244;
}

.popupBtnContainer .btn-download {
  margin-left: 10px;
  /*font-size: 16pt;*/
  border-radius: 4px;
  background-color: #002244;
  border: 2px solid rgba(0, 0, 0, 0.2);
  /*border: 1px solid rgba(0, 0, 0, .15);*/
  color: #e8f2fc;
}

.popupBtnContainer .btn-download:hover {
  border-radius: 4px;
  background-color: #e8f2fc;
  border: 2px solid rgba(0, 0, 0, 0.2);
  /*border: 1px solid rgba(0, 0, 0, .15);*/
  color: #002244;
}

#popupChartTitle {
  font: 14px Arial, Helvetica, sans-serif;
  fill: black;
  text-decoration: underline;
}

#county-select-overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
  cursor: pointer;
}

#county-select {
  font-family: Arial, Helvetica, sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  padding: 15px;
}

.overlay-close-x {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 4px 0 0;
  border: none;
  text-align: center;
  width: 18px;
  height: 14px;
  font: 16px/14px Tahoma, Verdana, sans-serif;
  color: #c3c3c3;
  text-decoration: none;
  /*font-weight: bold;*/
  background: transparent;
}

#county-download-close-button {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
#county-select-overlay .btn-basic {
  border-radius: 4px;
  background-color: #002244;
  border: 2px solid rgba(0, 0, 0, 0.2);
  color: #e8f2fc;
}

#county-select-overlay .btn-basic:hover {
  border-radius: 4px;
  background-color: #e8f2fc;
  border: 2px solid rgba(0, 0, 0, 0.2);
  /*border: 1px solid rgba(0, 0, 0, .15);*/
  color: #002244;
}

#sidebar-comp-table {
  font-size: 9pt;
  border-collapse: collapse;
  width: 100%;
}

#sidebar-comp-table th,
#sidebar-comp-table td {
  border: 1px solid #ddd;
  width: 100px;
  padding: 5px;
}

#sidebar-comp-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

#sidebar-comp-table tr:hover {
  background-color: #ddd;
}

#sidebar-comp-table th {
  text-align: center;
  background-color: #1f4283;
  color: white;
}

#sidebar-comp-table th:first-child,
#sidebar-comp-table td:first-child {
  width: 75px;
}

.selectpicker {
  font-size: 9pt !important;
}
.filter-option {
  font-size: 9pt;
}

.bs-searchbox > input {
  font-size: 9pt;
}

.legend-note {
  margin-top: 10px; /* Space above the note */
  font-style: italic; /* Optional: if you want the note to be italic */
  font-size: 0.9em; /* Adjust the font size as needed */
}
