/* General Styles */
div#tablePlace {
  display: flex;
  flex-direction: column;
}

/* Map Styles */
#viewDiv {
  padding: 0;
  margin: 0;
  height: 600px;
  width: 100%;
  /*overflow:hidden;*/
}

.catRowHead {
  display: flex;
  flex-direction: row;
  border-bottom: 2px solid #ccc;
}

.catRowHead div {
  width: 50%;
  padding: 0 10px;
}

.catRowGrp {
  display: flex;
  flex-direction: row;
}

.panel-result.catRowGrp:hover,
.panel-result.catRowGrp:focus {
  background: #eff7ff !important;
  border-left: 5px solid #003b8d;
  transition: linear .1s;
}

.catRowGrp div {
  width: 50%;
  padding: 10px;
  display: flex;
  flex-direction: row;
}

.catRowGrp div span {
  padding: 0 0.5em;
}

.catLabel {
  font-weight: bold;
}

#tableDiv .catRowGrp:nth-child(even) {
  background: #f5f5f5;
}

#backToList {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: bold;
  text-align: right;
}

#backToList span {
  padding: 0.5em 1em;
}

#backToList .fullList:hover,
#backToList .fullList:focus {
  border-right: 5px solid #003b8d;
  background: #eff7ff !important;
  transition: linear .1s;
}

#backToList .esri-icon {
  padding: 0 5px;
}

#noElectionId {
  display: none;
}

#legendDiv {
  display: flex;
  flex-direction: row;
  flex: 1 0 auto;
  justify-content: space-around;
  font-size: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
  background: #fcfcfb;
}

#legendDiv div {
  padding: 5px;
}

.legend-base-dot {
  height: 0.8em;
  width: 0.8em;
  border-radius: 50%;
  border: 1px solid black;
  display: inline-block;
  margin-right: 5px;
}

.legend-base-blackdot {
  background-color: black;
}

.legend-base-greendot {
  background-color: green;
}

.legend-base-yellowdot {
  background-color: yellow;
}

.legend-base-reddot {
  background-color: red;
}

.panel-result {
  cursor: pointer;
  margin: 2px 0;
}

.esri-view .esri-view-surface--inset-outline:focus::after {
  outline: none !important;
}

.esri-legend {
  width: auto !important;
}

/* Will Be Replaced with generic */
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #003b8d;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin: 10px;
}

.spinnerbox {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.sampleTitles {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.sampleTitles a.titleLink {
  padding: 12px;
  background: #f5f5f5;
  margin: 5px 0;
  border-left: 8px solid #003b8d;
  font-size: 16px;
  color: #333;
  box-shadow: 5px 3px rgb(0 0 0 / 15%);
}

.sampleTitles a.titleLink:hover {
  text-decoration: none;
  border-left: 12px solid #cc0000;
  box-shadow: none;
}


@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/**Responsive Sizes**/
@media (max-width: 968px) {
  .catRowGrp {
    flex-direction: column;
  }

  .catRowGrp div {
    width: 100%;
  }

  h4.catRowHead {
    display: none;
  }

  #backToList {
    flex-direction: column;
    background: #f5f5f5;
    padding: 0;
  }

  #backToList>span:nth-child(1) {
    border-bottom: 1px solid #ccc;
  }
}

@media (max-width: 767px) {
  .maincontent-collin {
    float: none !important;
  }
}

@media screen and (max-width: 490px) {
  .catRowGrp div {
    width: auto;
  }

  .catRowGrp div:nth-child(1) {
    flex-direction: column;
  }
}