/* ================ FUNCTIONAL REQUIREMENTS =================== */
div.dpd-hidden {
  visibility: hidden !important;
}

div.dpd-invisible {
  display: none !important;
}

/* ================= TEMPLATE STYLES ==================== */
.dpd-accessible-selector *,
.dpd-accessible-selector *::before,
.dpd-accessible-selector *::after {
  box-sizing: border-box;
}

.dpd-form {
  max-width: 300px;
}

.dpd-form.dpd-horizontal {
  display: flex;
  max-width: none;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

.custom-sticky .dpd-form.dpd-horizontal {
  width:76%;
  max-width:1230px;
}

.dpd-form.dpd-horizontal>.dpd-section {
  display: flex; 
  justify-content: space-around;
  flex-grow: 1;
  flex-wrap: wrap;
  gap: 10px;
}

[data-name="time-section"]{
order:1;
}
[data-name="waterType-section"]{
order:2;
}
[data-name="geography-section"]{
order:3;
}
[data-name="pesticide-section"]{
order:4;
}

.dpd-form.dpd-horizontal .dpd-hidden {
  display: none;
}

div.dpd-section-group[aria-disabled="true"] {
  opacity: 0.5;
}

.dpd-accessible-selector {
  display: block;
  margin-bottom: 1.5em;
  max-width: 300px;
  position: relative;
  min-width: 175px;
}

.dpd-accessible-selector::after {
  border-bottom: 2px solid rgb(0 0 0 / 75%);
  border-right: 2px solid rgb(0 0 0 / 75%);
  content: "";
  display: block;
  height: 12px;
  pointer-events: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translate(0, -65%) rotate(45deg);
  width: 12px;
}

.dpd-combo {
  background-color: #fafafa;
  border: 2px solid rgb(0 0 0 / 75%);
  border-radius: 4px;
  display: block;
  font-size: 0.8em;
  min-height: calc(1.4em + 26px);
  padding: 12px 38px 14px 12px;
  text-align: left;
  width: 100%;
}

.dpd-expanded .dpd-combo {
  border-radius: 4px 4px 0 0;
}

.dpd-combo:focus {
  border-color: #0067b8;
  box-shadow: 0 0 4px 2px #0067b8;
  outline: 4px solid transparent;
}

div.dpd-combo[aria-disabled="true"]:focus {
  border-color: rgb(0 0 0 / 75%);
  outline: none;
  box-shadow: none;
}

.dpd-combo:disabled {
  color: #333;
}

.dpd-section-header {
  font-size: 18px;
  font-weight: bold;
}

.dpd-label {
  display: block;
  font-size: 16px;
  font-weight: 100;
  margin-bottom: 0.25em;
}

.dpd-listbox {
  background-color: #fafafa;
  border: 1px solid rgb(0 0 0 / 75%);
  border-radius: 0 0 4px 4px;
  display: none;
  max-height: 300px;
  overflow-y: scroll;
  left: 0;
  position: absolute;
  top: 100%;
  width: 100%;
  z-index: 100;
  min-width: 250px;
  border-radius: 4px;
}

.dpd-expanded .dpd-listbox {
  display: block;
}

.dpd-option  {
  padding: 10px 12px 12px;
  overflow-wrap: break-word;
}

.dpd-option:hover {
  background-color: rgb(0 0 0 / 10%);
}

.dpd-option.dpd-focused {
  outline: 3px solid #0067b8;
  outline-offset: -3px;
}

.dpd-option[aria-selected="true"] {
  padding-right: 30px;
  position: relative;
}

.dpd-option[aria-selected="true"]::after {
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
  content: "";
  height: 16px;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translate(0, -50%) rotate(45deg);
  width: 8px;
}

.dpd-option.dpd-option-select-all[aria-selected="true"]::after {
  border-bottom: none;
  border-right: none;
  height: 0px;
  width: 0px;
}

.dpd-option.dpd-option-select-all {
  font-weight: bold;
}

.dpd-combo {
  font-size: 0.75em;
  min-height: calc(0.875em + 18px);
  padding: 8px 38px 10px 12px;
}

.dpd-option {
  font-size: 0.75em;
  line-height: 1.5em;
}

@media only screen and (max-width: 425px) {
  .dpd-section-group {
    flex-grow: inherit;
  }
  
  #colourBtn,
  .single-graph-container button {
    width: 100%;
  }
  
  .single-graph-container button {
    margin-top: 10px;
    margin-bottom: 20px;
  }
  
  .graphBox {
    border-left: none;
    border-right: none;
  }
}