body,
* {
  margin: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #fff7f0;
}

#wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.background {
  fill: #fff;
}

.states {
  fill: #d3d3d3;
  stroke: #ffffff;
  stroke-linejoin: round;
}

path.active {
  fill: #bbb !important;
}

button {
  padding: 7px 20px;
  background-color: #eee;
  border: 0;
  border-radius: 2px;
}

button.toggle-button {
  margin: 0px;
  border: 1px solid #999;
  box-sizing: border-box;
  padding: 10px 15px;
  font-size: 16px;
}

button.toggle-button:nth-of-type(1) {
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

button.toggle-button:nth-of-type(2) {
  border-left: 0px;
  border-right: 0px;
  border-radius: 0px;
}

button.toggle-button:nth-of-type(3) {
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

button.toggle-button.selected {
  background-color: #333;
  color: #fff;
}

button.toggle-button:hover {
  background: #444;
  color: #fff;
  cursor: pointer;
}

button.multiselect-reset,
.multiselect-reset button {
  cursor: pointer;
  width: 100% !important;
  text-align: left !important;
  border-bottom: 1px solid #aaa;
}

.multiselect-container {
  position: absolute;
  list-style-type: none;
  margin: 0;
  padding: 0 !important;
}

button#download {
  margin: 20px 0;
  float: right;
}

#filters {
  width: 300px;
  height: 80px;
  margin-bottom: -100px;
}

#statedrop {
  position: absolute;
  top: 210px;
}

#allus {
  position: absolute;
  top: 10px;
  background: #333;
  color: #fff;
  padding: 10px;
  left: 1093px;
  cursor: pointer;
}

#allus.show {
  z-index: 100;
}

#active_project {
  padding: 15px 0;
  top: 240px;
  position: absolute;
  margin-left: 0;
}

#partner_type {
  margin-top: 20px;
}

#gov {
  padding: 10px;
  margin: 20px;
  padding-left: 20px;
}

#reset {
  position: absolute;
  top: 300px;
  background: #333;
  padding: 10px;
  width: 85px;
  color: #fff;
  cursor: pointer;
}

/* map */

.states {
  fill: #d3d3d3;
  stroke: #ffffff;
  stroke-linejoin: round;
}

.tooltip {
  position: absolute;
  padding: 15px;
  font: 12px sans-serif;
  background: #fff;
  color: #000;
  border: 0px;
  pointer-events: none;
  opacity: 0.8;
  visibility: hidden;
  -moz-box-shadow: 0 0 15px #aaa;
  -webkit-box-shadow: 0 0 15px #aaa;
  box-shadow: 0 0 15px #aaa;
  max-width: 240px;
  z-index: 100;
}

.block {
  width: 18%;
  height: 15px;
  display: inline-block;
}

.statetooltip {
  position: absolute;
  font: 12px sans-serif;
  color: #000;
  border: 0px;
  pointer-events: none;
  opacity: 0.8;
  visibility: hidden;
  max-width: 40px;
}

h1 {
  margin-top: 30px;
}

.otherlinks {
  display: flex;
  flex-direction: column;
  margin-top: 5px;
}

.activity {
  align-items: baseline;
}

.summ {
  line-height: 145%;
  padding-bottom: 10px !important;
  margin-bottom: 10px;
  border-bottom: 1px dashed #ccc !important;
}

#selectbuttons {
  position: absolute;
  top: 380px;
}

#chart-head {
  display: flex;
  max-width: 1500px;
  margin: 0 auto;
  flex-direction: column;
}

#activeButtons {
  margin-bottom: 10px;
  display: flex;
  flex-direction: row;
}

#searchLegend {
  display: flex;
  flex-direction: row;
}

/* search */

input#search {
  border: 1px solid #aaa;
  padding: 10px;
  border-radius: 3px;
  width: 300px;
  margin-bottom: 15px;
  height: 20px;
  margin-top: auto;
  font-size: 16px;
  margin-left: 0px;
  margin-top: 10px;
}

#results {
  width: 200px;
  text-align: right;
  margin-left: 1000px;
  margin-top: -30px;
  margin-bottom: 5px;
}

.g-chart {
  margin-bottom: -30px;
  text-align: center;
}

/* violation types */

#types {
  display: flex;
  flex-direction: column;
  margin-left: auto;
  padding-left: 10px;
  padding-bottom: 10px;
  margin-top: auto;
}

#type-labels {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 5px;
  margin-top: 3px;
}

.type-label {
  display: flex;
  flex-direction: row;
  margin-right: 10px;
}

.type-label.equipment {
  width: 145px;
}

.type-label.document {
  width: 148px;
}

.type-label.bic {
  width: 228px;
}

.type-label.moving {
  width: 142px;
}

.type-label.other {
  width: 137px;
}

.type-label.unspecified {
  width: 112px;
}

.square {
  width: 15px;
  height: 15px;
  margin-right: 5px;
}

.equip-rec {
  background-color: #2e1d97;
}

.Equipment.defect {
  background-color: #2e1d97;
  color: #fff;
  padding: 3px 5px;
  border-radius: 3px;
  height: 23px;
  margin-bottom: 10px;
}

.doc-rec {
  background-color: #FFB255;
}

.Document.defect {
  background-color: #FFB255;
  padding: 3px 5px;
  border-radius: 3px;
  height: 23px;
  margin-bottom: 10px;
}

.mov-rec {
  background-color: #EF4136;
}

.Moving.violation {
  background-color: #EF4136;
  color: #fff;
  padding: 3px 5px;
  border-radius: 3px;
  height: 23px;
  margin-bottom: 10px;
}

.bic-rec {
  background-color: #0E002C;
}

.bicycle {
  background-color: #0E002C;
  color: #fff;
  padding: 3px 5px;
  border-radius: 3px;
  height: 23px;
  margin-bottom: 10px;
}

.oth-rec {
  background-color: #97DFD1;
}

.Other.infraction {
  background-color: #97DFD1;
  padding: 3px 5px;
  border-radius: 3px;
  height: 23px;
  margin-bottom: 10px;
}

.uns-rec {
  background-color: #ccc;
}

.Unspecified {
  background-color: #ccc;
  padding: 3px 5px;
  border-radius: 3px;
  margin-bottom: 10px;
}

span.Unspecified {
  height: 23px;
}

.Unspecified.row {
  padding: 0px;
  border-radius: 0px;
  margin-bottom: 0px;
}

.nonmov-rec {
  background-color: royalblue;
}

.Nonmoving {
  background-color: royalblue;
  color: #fff;
  padding: 3px 5px;
  border-radius: 3px;
  margin-bottom: 10px;
}

span.Nonmovingviolations {
  height: 23px;
}

.Nonmovingviolations.row {
  padding: 0px;
  border-radius: 0px;
}

.infractions_many {
  flex-wrap: wrap;
}

/* table */
.stopstable {
  max-width: 1500px;
  margin: 0 auto;
}

h3 {
  margin-bottom: -10px;
  padding: 0;
  font-size: 16px;
  font-weight: normal;
}

h3.note {
  margin-top: 20px;
}

.item-label {
  padding-right: 10px;
  padding-bottom: 5px;
}

.box {
  font-family: "GT Walsheim Regular", sans-serif;
  font-size: 16px
}

#data-table {
  max-height: 450px;
  overflow-y: scroll;
}

.grid,
.lowergrid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.grid>div.jurisdiction {
  display: flex;
  flex-basis: calc(17% - 22px);
  justify-content: top;
  flex-direction: column;
  padding: 10px;
  text-align: left;
}

.grid>div {
  display: flex;
  flex-basis: calc(20% - 22px);
  justify-content: top;
  flex-direction: column;
  padding: 10px;
  text-align: left;
}

.grid>div.policy_type {
  flex-basis: calc(20% - 22px);
}

.box.hrbox.state {
  padding: 10px 9px 10px 10px;
}

.grid>div.state {
  display: flex;
  flex-basis: calc(9% - 22px);
  justify-content: top;
  flex-direction: column;
  padding: 10px;
  text-align: left;
}

.grid>div.policy {
  display: flex;
  flex-basis: calc(23% - 22px);
  justify-content: top;
  flex-direction: column;
  padding: 10px;
  text-align: left;
}

.grid>div.eff {
  display: flex;
  flex-basis: calc(12% - 22px);
  justify-content: top;
  flex-direction: column;
  padding: 10px;
  text-align: left;
}

.grid>div.dept {
  display: flex;
  flex-basis: calc(42% - 22px);
  justify-content: top;
  padding: 10px;
  text-align: left;
}

.grid>div.hrbox.dept {
  border-right: 1px solid #333;
}

.grid>div.box2 {
  flex-basis: calc(8% - 20px);
}

.grid>div.hrbox.name {
  flex-basis: calc(17% - 22px);
}

.grid>div.hrbox.city_county {
  background: #333 url('img/updownmuted.svg') no-repeat 110px 15px;
  background-size: 12px;
  cursor: pointer;
}

.grid>div.hrbox.states {
  flex-basis: calc(8% - 20px);
  background: #333 url('img/updownmuted.svg') no-repeat 55px 15px;
  background-size: 12px;
  cursor: pointer;
}

.grid>div.box3 {
  flex-basis: calc(28% - 20px);
}

.grid>div.hrbox.initiative {
  flex-basis: calc(28% - 20px);
  background: #333 url('img/updownmuted.svg') no-repeat 78px 15px;
  background-size: 12px;
  cursor: pointer;
}

.grid>div.box4 {
  flex-basis: calc(30% - 20px);
}

.grid>div.hrbox.partner {
  flex-basis: calc(30% - 20px);
  background: #333 url('img/updownmuted.svg') no-repeat 70px 15px;
  background-size: 12px;
  cursor: pointer;
}

.grid>div.box5 {
  flex-basis: calc(14% - 20px);
}

.grid>div.hrbox.partner_type {
  display: flex;
  margin-top: 0px;
  flex-basis: calc(14% - 20px);
  justify-content: top;
  flex-direction: column;
  padding: 10px;
  background: #333 url('img/updownmuted.svg') no-repeat 110px 15px;
  background-size: 12px;
  cursor: pointer;
}

.lowergrid>div {
  display: flex;
  justify-content: top;
  flex-direction: column;
  padding: 15px 10px;
}

.lowergrid>div.box8 {
  flex-basis: calc(45% - 20px);
  border: none;
  padding-bottom: 20px;
}

/* .lowergrid>div.box8>div>span.item-label{
  width: 50%;
} */

.lowergrid>div.box9 {
  flex-basis: calc(55% - 40px);
  padding: 15px 20px;
  border: 0px;
}

.box9>.category {
  display: flex;
  flex-direction: column;
}

#typehead {
  display: flex;
  flex-direction: row;
  border-top: 1px solid #000;
  margin-top: 20px;
  margin-bottom: 10px;
}

#typehead:first-of-type {
  margin-top: 0px;
}

.typerect {
  width: 15px;
  height: 15px;
  border-radius: 0px !important;
}

.typerect.Document.defect {
  background-color: #FFB255;
}

.typerect.Equipment.defect {
  background-color: #2E1D97;
}

.typerect.Other.infraction {
  background-color: #97DFD1;
}

.typerect.Moving.violation {
  background-color: #EF4136;
}

.typerect.bicycle {
  background-color: #0E002C;
}

.typerect.Nonmoving {
  background-color: royalblue;
}

.typeheader {
  background: #fff !important;
  color: #000 !important;
}

.typedetail {
  padding-bottom: 3px;
}

.typedetail:before {
  content: "• ";
}

.lowergrid>div.empty {
  display: none;
}

/* .lowergrid>div.box10 {
  flex-basis: calc(30% - 20px);
} */

button.accordion {
  width: 100%;
}

.accordion.active {
  background-color: #ffffff;
  font-weight: bold;
}

.accordion.active>.box.panel {
  border-top: 1px dashed #ccc;
}

button.accordion:hover {
  /* background-color: #aaa; */
}

.grid>div>div,
.grid>div,
.lowergrid>div>div {
  display: flex;
  justify-content: left;
  flex-direction: row;
  flex-direction: row;
  border-bottom: 0px;
}

.lowergrid>div>div {
  padding: 4px 0;
}

.item {
  border-bottom: 1px solid #ddd;
  display: contents;
}

.item.empty {
  border-bottom: 0;
  display: none !important;
}

.item.mou,
.item.non_gov_type,
.item.gov-agency,
.item.contact {
  display: inline-grid;
}


.lowergrid>div>div:first-of-type {
  padding: 0px 0px 4px 0px;
}

.lowergrid>div>div:last-of-type {
  padding-bottom: 0px;
  border-bottom: 0;
}

.box {
  margin: 0;
  color: #000;
  border: .5px solid #ccc;
}

.accordion {
  margin: 0;
  padding: 0px;
  border: 0;
}

.panel {
  padding: 0;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  border-bottom: 1px solid #333;
}

.hrbox {
  background-color: #333;
  color: #fff;
}

#policyTypeSel,
#locationTypeSel {
  padding: 5px;
  text-transform: lowercase;
  color: #fff;
  font-size: 16px;
  margin: 0px;
  background: #000;
  border-radius: 3px;
}

#locationTypeSel {
  text-transform: capitalize !important;
}

#policyTypes {
  padding: 7px;
  margin: 10px 0 10px 20%;
  background-color: #160643;
  color: #fff;
  font-size: 16px;
  border-radius: 3px;
}

.last_update {
  margin-top: 20px;
  display: flex;
}

.last_date {
  margin-left: 5px;
}

#head {
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

a.dl {
  color: #2E1D97;
}

a.dl:hover {
  color: royalblue;
}

#insideheader {
  display: flex;
}

#container {
  max-width: 980px;
  margin: 0 auto;
}

.activepol {
  padding: 4px 10px;
  border-radius: 3px;
  background-color: #abffeb;
  width: fit-content;
  margin-top: 5px;
}

.inactivepol {
  padding: 4px 10px;
  border-radius: 3px;
  background-color: #222;
  color: #fff;
  width: fit-content;
  margin-top: 5px;
}

.unknownactivepol {
  padding: 4px 10px;
  border-radius: 3px;
  background-color: #ccc;
  width: fit-content;
  margin-left: 5px;
  margin-top: 5px;
}

/* overflow-y scroll .background */
#data-table::-webkit-scrollbar {
  width: 10px;
}

/* Track */
#data-table::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 9px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 0px;
  border-radius: 0px;
}

/* Handle */
#data-table::-webkit-scrollbar-thumb {
  -webkit-border-radius: 0px;
  border-radius: 0px;
  background: rgba(38, 67, 187, 0.8);
  -webkit-box-shadow: inset 0 0 9px rgba(0, 0, 0, 0.5);
}

#data-table::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(14, 0, 44, 0.4);
}

@media screen and (max-width: 1215px) and (min-width: 700px) {

  #filters,
  #search {
    margin-left: 10px;
  }
}

@media screen and (max-width: 500px) {

  #chart-head,
  #type-labels,
  .lowergrid {
    flex-direction: column;
  }

  #types {
    margin-left: 0px;
  }

  .square {
    margin-left: 0px;
  }

  #search {
    padding-left: 0px;
  }

  .grid>div.eff,
  .grid>div.state {
    display: none;
  }

  .grid>div.hrbox.name {
    flex-basis: calc(28% - 22px);
  }

  .grid>div.hrbox.dept {
    flex-basis: calc(42% - 22px);
  }

  .grid>div.jurisdiction {
    flex-basis: calc(29% - 22px);
  }

  .grid>div.policy_type {
    flex-basis: calc(29% - 22px);
  }

  .grid>div {
    padding: 4px;
  }

  .grid>div.jurisdiction,
  .grid>div.policy_type,
  .grid>div.dept {
    padding: 8px 4px;
  }

  #searchLegend {
    flex-direction: column;
  }

  .g-chart {
    margin-bottom: 10px;
  }

  button.toggle-button,
  #types {
    font-size: 14.5px;
  }
}


/* @media screen and (max-width: 1400px) {
  #chart-head {
    flex-direction: column;
  }
} */