@import "story-iframe.css";
html {
  background-color: #FCFCFC;
}

#text_source p {
  text-align: left;
  font-size: 12px !important;
  padding-top: 12px;
}

div#react-entry-point .filter-container {
  display: flex;
  justify-content: space-between;
}
div#react-entry-point .filter-box-33p {
  width: calc(33.3333% - 10px); /* Adjusting for 10px gaps on both sides */
}
div#react-entry-point .filter-box-50p {
  width: calc(50% - 10px); /* Adjusting for 10px gaps on both sides */
}
@media (max-width: 991px) {
  div#react-entry-point .filter-box-33p,
  div#react-entry-point .filter-box-50p {
    width: 100%; /* Full width on smaller screens */
    margin-bottom: 10px; /* Space between stacked boxes */
    margin-right: 0; /* Remove right margin on mobile */
  }
  div#react-entry-point .filter-container {
    flex-direction: column; /* Stack boxes vertically on small screens */
  }
}

.Select-control,
.is-open > .Select-control {
  background: #f2f2f2 url(img/icons/arrow_down_gray.png) no-repeat right top;
  color: #555;
  width: 100%;
  min-height: 80px;
  height: auto;
  padding: 0 0 0 26px;
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1;
  border: 0;
  border-radius: 0;
  -moz-appearance: none;
  -webkit-appearance: none;
}

.Select-arrow-zone {
  height: 100%;
  width: 80px;
}

.Select-arrow {
  border: none !important;
}

.Select-multi-value-wrapper {
  width: 75%;
}

.Select-value,
.Select-control {
  display: flex;
  align-items: center;
}

.Select-clear-zone {
  margin-right: 20px;
}

.Select-clear {
  font-size: 14px;
}

.Select--single * {
  cursor: pointer;
}

.Select--single > .Select-control .Select-value,
.Select--multi > .Select-control {
  padding-left: 20px;
}

.Select-value-label,
.Select-placeholder {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 65px;
  font-weight: bold;
  color: #0052a4 !important;
  font-size: 14px;
}

.is-focused:not(.is-open) > .Select-control {
  box-shadow: none;
}

.Select-menu-outer {
  background-color: #f2f2f2;
  border: none;
  box-shadow: none;
  color: #0052a4;
  font-weight: bold;
  font-size: 14px !important;
}

.Select-placeholder {
  padding-left: 20px;
  top: 24px;
}

.Select--multi .Select-value {
  background-color: #0052a4;
  border: none;
  color: white !important;
  font-size: 14px;
  line-height: 1.4;
  padding-top: 4px;
  margin-top: 2px;
}
.Select--multi .Select-value .Select-value-label {
  color: white !important;
  padding: 4px 10px 2px 5px;
}

.filter-box-year {
  display: inline-block;
  width: calc(100% - 40px); /* 20px paddings */
  margin: 0;
  padding: 0 20px;
}
.filter-box-year label {
  display: inline-block;
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1;
  margin: 24px 0 10px;
}
.filter-box-year #date_slider {
  padding-right: 10px !important;
  padding-left: 10px !important;
}

.rc-slider-handle {
  border: solid 2px #0052a4;
}

.rc-slider-track {
  background-color: #0052a4;
}

.rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging {
  border-color: #0052a4;
  box-shadow: 0 0 0 5px #0052a4;
}

.rc-slider-handle-click-focused:focus,
.rc-slider-handle:hover,
.rc-slider-dot-active {
  border-color: #0052a4;
}

.rc-slider-handle:active {
  border-color: #0052a4;
  box-shadow: 0 0 5px #0052a4;
}

/* ---- Datalab custom: filter grid ---- */
.filter-cell {
  min-width: 0;
}

/* ---- Datalab custom: footer row ---- */
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.dl-button-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dl-label {
  color: #888;
  white-space: nowrap;
}

.dl-btn {
  background: #f2f2f2;
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  color: #555;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.dl-btn:hover {
  background: #e0e0e0;
}
