.fish-chart_container__xH9Sm {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.5rem;
  font-family: var(--font-sans);
}

.fish-chart_header__3vEy5 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.fish-chart_header__3vEy5 h1 {
  font-size: 2rem;
  color: #2a5885;
  margin: 0;
}

.fish-chart_navigation__CICj5 {
  display: flex;
  gap: 1rem;
}

.fish-chart_navLink__17yqG {
  background-color: #2a5885;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.fish-chart_navLink__17yqG:hover {
  background-color: #1e446d;
}

.fish-chart_selectors__eY1aD {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.fish-chart_selectorGroup__q6uGk {
  display: flex;
  flex-direction: column;
  min-width: 100px;
}

.fish-chart_selectorGroup__q6uGk label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #4a4a4a;
}

.fish-chart_selector__aMA3s {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  background-color: white;
  cursor: pointer;
}

.fish-chart_selector__aMA3s:focus {
  outline: none;
  border-color: #2a5885;
  box-shadow: 0 0 0 2px rgba(42, 88, 133, 0.2);
}
.fish-chart_damSelector__i31vL {
  width: 200px;
}

.fish-chart_yearSelector__bqMwf {
  width: 100px;
}

.fish-chart_dataContainer__Cn_2q {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  overflow: visible !important;
}

.fish-chart_chartWrapper__xssFi {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  overflow: visible !important; /* Ensure tooltip isn't cut off */
}

/* Add some bottom margin to ensure there's space for the tooltip */
.fish-chart_chartWrapper__xssFi > div {
  margin-bottom: 20px;
}
.fish-chart_yearComparisonLabel__a_esx {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-style: italic;
  font-weight: normal;
  color: #666;
  margin-bottom: 0.5rem;
}

.fish-chart_yearComparisonCheckbox__7iR0j {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.fish-chart_yearComparisonText__INQlq {
  user-select: none;
}



.fish-chart_dataContainer__Cn_2q h2 {
  color: #2a5885;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.fish-chart_chartWrapper__xssFi {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow-x: auto;
}

.fish-chart_chartContainer__rDILz {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fish-chart_chart__KyNXH {
  background-color: white;
  border-radius: 4px;
  border: 1px solid #eaeaea;
}

.fish-chart_chartLegend__KW_Nl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.5rem;
  background-color: #f5f7fa;
  border-radius: 4px;
}

.fish-chart_wrapLegend__HN3Bg {
  flex-wrap: wrap;
  justify-content: center;
}

.fish-chart_legendItem__QxdYA {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  margin: 0.25rem 0.5rem;
}

.fish-chart_colorIndicator__2FGKK {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.fish-chart_loading___2_lR {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
}

.fish-chart_error__Dj3du {
  text-align: center;
  padding: 2rem;
  color: #d32f2f;
  background-color: #fff8f8;
  border: 1px solid #ffcdd2;
  border-radius: 4px;
}

.fish-chart_noData__tsoYg {
  text-align: center;
  padding: 2rem;
  color: #666;
  background-color: #f9f9f9;
  border-radius: 4px;
}

/* Mobile-specific spacing reduction */
@media (max-width: 480px) {
  .fish-chart_container__xH9Sm {
    padding: 0.5rem 0.25rem;
  }
  
  .fish-chart_header__3vEy5 {
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
  }
  
  .fish-chart_header__3vEy5 h1 {
    font-size: 1.5rem;
  }
}

.fish-chart_note__AKwyy {
  background-color: #f5f7fa;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #4a4a4a;
}

.fish-chart_dataHeader__5ZJRZ {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.25rem;
  margin-top: -1rem;
}

.fish-chart_lastUpdated__fWBlb {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* Override LastDataDateInfo component font size and spacing */
.fish-chart_dataContainer__Cn_2q .mb-4.p-3.bg-blue-50 {
  font-size: 0.85rem !important;
  margin-bottom: 0.25rem !important;
  margin-top: 0.25rem !important;
  padding: 0.4rem !important;
}

.fish-chart_dataContainer__Cn_2q .mb-4.p-3.bg-blue-50 p {
  font-size: 0.85rem !important;
  margin: 0 !important;
}

.fish-chart_responsiveNote__7dYe1 {
  background-color: #fff8e1;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #856404;
  text-align: center;
}

@media (max-width: 768px) {
  .fish-chart_header__3vEy5 {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .fish-chart_navigation__CICj5 {
    width: 100%;
    justify-content: space-between;
  }
  
  .fish-chart_selectors__eY1aD {
    flex-direction: column;
    gap: 1rem;
  }
  
  .fish-chart_selectorGroup__q6uGk {
    width: 100%;
  }
  
  .fish-chart_selector__aMA3s, .fish-chart_damSelector__i31vL, .fish-chart_yearSelector__bqMwf {
    width: 100%;
    max-width: none;
  }
  
  .fish-chart_dataHeader__5ZJRZ {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Page Footer */
.fish-chart_pageFooter__f0GoL {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 4rem;
  border-radius: 20px 20px 0 0;
}

.FishDataHeader_header__FMWVc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
  gap: 0.5rem;
}

.FishDataHeader_header__FMWVc h1 {
  font-size: 2rem;
  color: #2a5885;
  margin: 0;
  text-align: center;
  flex: 1;
}

.FishDataHeader_navigation__EMA7M {
  display: flex;
  gap: 1rem;
}

.FishDataHeader_navLink__lH_Y5 {
  background-color: #2a5885;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.FishDataHeader_navLink__lH_Y5:hover {
  background-color: #1e446d;
}

.FishDataHeader_navIconButton__wVOy1 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 6px;
  color: #2a5885;
  background-color: #f0f0f0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.FishDataHeader_navIconButton__wVOy1:hover {
  background-color: #2a5885;
  color: white;
}

.FishDataHeader_navRight__rnKWD {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.FishDataHeader_selectors__DG4UQ {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.FishDataHeader_selectorGroup__I0G6X {
  display: flex;
  flex-direction: column;
  min-width: 100px;
}

.FishDataHeader_selectorGroup__I0G6X label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #4a4a4a;
}

.FishDataHeader_selector__Yj6_F {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  background-color: white;
  cursor: pointer;
}

.FishDataHeader_selector__Yj6_F:focus {
  outline: none;
  border-color: #2a5885;
  box-shadow: 0 0 0 2px rgba(42, 88, 133, 0.2);
}

.FishDataHeader_damSelector__y7MfF {
  width: 180px;
}

.FishDataHeader_yearSelector__xQS9Z {
  width: 80px;
}

.FishDataHeader_timeFilterSelector__pMCFd {
    width: 120px;
}

.FishDataHeader_runDatesDisplay__4GuUs {
    background-color: #f8f9fa;
    color: #333;
    border-color: #2a5885;
    cursor: default;
    font-size: 0.8rem;
    font-weight: 500;
    width: 200px;
}

/* Base styles for title parts - they should be inline by default */
.FishDataHeader_damNamePart__kc5bm, .FishDataHeader_titlePart__E3qCd, .FishDataHeader_speciesNamePart__e5WRH, .FishDataHeader_atPart__TSPLR {
  display: inline;
}

.FishDataHeader_speciesNamePart__e5WRH {
  color: #0077b6;
  font-weight: 600;
}

.FishDataHeader_atPart__TSPLR {
  color: #666;
  font-weight: 400;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
  .FishDataHeader_header__FMWVc {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
  }
  
  .FishDataHeader_header__FMWVc h1 {
    font-size: 1.3rem;
    flex: 1;
    text-align: center;
  }
  
  .FishDataHeader_navigation__EMA7M {
    width: 100%;
    justify-content: space-between;
  }
  
  .FishDataHeader_navLink__lH_Y5 {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
  
  .FishDataHeader_navIconButton__wVOy1 {
    padding: 0.4rem;
  }
  
  .FishDataHeader_navIconButton__wVOy1 svg {
    width: 20px;
    height: 20px;
  }
  
  .FishDataHeader_navRight__rnKWD {
    gap: 0.3rem;
  }
  
  .FishDataHeader_selectors__DG4UQ {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem; /* Reduced gap between selectors */
    width: 100%;
  }
  
  .FishDataHeader_selectorGroup__I0G6X {
    min-width: auto;
  }
  
  /* Set proportional widths for the selector groups - NEW ORDER: Species/Dam/Time/Year */
  .FishDataHeader_selectorGroup__I0G6X:nth-child(1) {
    width: 28%; /* Species selector - increased for "All Species" */
  }
  
  .FishDataHeader_selectorGroup__I0G6X:nth-child(2) {
    width: 28%; /* Dam selector */
  }
  
  .FishDataHeader_selectorGroup__I0G6X:nth-child(3) {
    width: 26%; /* Time filter */
  }
  
  .FishDataHeader_selectorGroup__I0G6X:nth-child(4) {
    width: 18%; /* Year selector */
  }
  

  
  /* Make all selectors fill their containers */
  .FishDataHeader_damSelector__y7MfF,
  .FishDataHeader_yearSelector__xQS9Z,
  .FishDataHeader_timeFilterSelector__pMCFd,
  .FishDataHeader_runDatesDisplay__4GuUs {
    width: 100%;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .FishDataHeader_header__FMWVc h1 {
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
  }
  
  .FishDataHeader_navLink__lH_Y5 {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .FishDataHeader_navIconButton__wVOy1 {
    padding: 0.3rem;
  }
  
  .FishDataHeader_navIconButton__wVOy1 svg {
    width: 18px;
    height: 18px;
  }
  
  .FishDataHeader_selector__Yj6_F {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
  
  .FishDataHeader_selectorGroup__I0G6X label {
    font-size: 0.9rem;
  }
  
  .FishDataHeader_damNamePart__kc5bm, .FishDataHeader_titlePart__E3qCd {
    display: block;
  }
  
  .FishDataHeader_damNamePart__kc5bm {
    margin-bottom: 4px;
  }
}

/* Run toggle styles - Compact design */
.FishDataHeader_runToggles__dJ6nA {
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
  padding: 0.4rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f8f9fa;
  align-items: center;
  justify-content: center;
}

.FishDataHeader_runToggle__hpxSa {
  padding: 0.2rem 0.5rem;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #666;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 50px;
}

.FishDataHeader_runToggle__hpxSa:hover {
  border-color: #2a5885;
  color: #2a5885;
}

.FishDataHeader_runToggleActive__yWDkN {
  background-color: #2a5885 !important;
  border-color: #2a5885 !important;
  color: white !important;
}

.FishDataHeader_runToggleActive__yWDkN:hover {
  background-color: #1e446d !important;
  border-color: #1e446d !important;
}

.FishDataHeader_runResetButton___jmnQ {
  padding: 0.2rem 0.5rem;
  border: 1px solid #dc3545;
  background-color: #fff;
  color: #dc3545;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-left: 0.2rem;
}

.FishDataHeader_runResetButton___jmnQ:hover {
  background-color: #dc3545;
  color: white;
}

/* Run toggles section for desktop - inline with selectors */
.FishDataHeader_runTogglesSection__tYNt0 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0;
  margin-top: -52px;
  margin-bottom: -32px;
  gap: 0rem;
  width: auto;
}

.FishDataHeader_runToggleGroup__S75tl {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: auto;
}

.FishDataHeader_runLabel__s9LHs {
  font-size: 0.8rem;
  font-style: italic;
  font-weight: normal;
  color: #666;
  white-space: nowrap;
  text-align: center;
  width: 100%;
}

/* Desktop layout: selectors and run toggles in same row */
.FishDataHeader_selectorsAndRuns__KKeMd {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 1rem;
}

/* Mobile responsive adjustments for run toggles - Extra compact */
@media (max-width: 768px) {
  .FishDataHeader_selectorsAndRuns__KKeMd {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .FishDataHeader_runTogglesSection__tYNt0 {
    margin-left: 0;
    margin-top: -1.2rem;
    margin-bottom: -0.8rem;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
  }
  
  .FishDataHeader_runToggleGroup__S75tl {
    width: 100%;
    justify-content: center;
  }
  
  .FishDataHeader_runToggles__dJ6nA {
    padding: 0.3rem;
    gap: 0.2rem;
    justify-content: center;
    overflow-x: auto;
    width: 100%;
  }
  
  .FishDataHeader_runToggle__hpxSa,
  .FishDataHeader_runResetButton___jmnQ {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    min-width: 45px;
    border-radius: 10px;
  }
}

/* Year Comparison styles */
.FishDataHeader_yearComparisonLabel__TCfth {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  font-style: italic;
  font-weight: normal;
  color: #666;
  text-align: center;
  margin-left: 1.5rem;
}

.FishDataHeader_yearComparisonCheckbox__Ui17x {
  width: 12px;
  height: 12px;
  cursor: pointer;
}

.FishDataHeader_yearComparisonText__YoDRA {
  user-select: none;
}

.FishDataHeader_noComparisonData__iR_tL {
  font-size: 0.7rem;
  color: #999;
}

.DataNavToggle_toggleGroup__PJYX3 {
  display: flex;
  gap: 0.25rem;
  background-color: #f0f0f0;
  border-radius: 6px;
  padding: 0.25rem;
}

.DataNavToggle_iconButton__KUZ0Y {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 4px;
  color: #666;
  background-color: transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.DataNavToggle_iconButton__KUZ0Y:hover {
  background-color: rgba(42, 88, 133, 0.1);
  color: #2a5885;
}

.DataNavToggle_iconButton__KUZ0Y.DataNavToggle_active__W_nWf {
  background-color: #2a5885;
  color: white;
}

.DataNavToggle_iconButton__KUZ0Y.DataNavToggle_active__W_nWf:hover {
  background-color: #1e446d;
}

@media (max-width: 768px) {
  .DataNavToggle_toggleGroup__PJYX3 {
    padding: 0.2rem;
    gap: 0.15rem;
  }
  
  .DataNavToggle_iconButton__KUZ0Y {
    padding: 0.4rem;
  }
  
  .DataNavToggle_iconButton__KUZ0Y svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .DataNavToggle_iconButton__KUZ0Y {
    padding: 0.3rem;
  }
  
  .DataNavToggle_iconButton__KUZ0Y svg {
    width: 18px;
    height: 18px;
  }
}

.Footer_footer__UaG1g {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 4rem;
  border-radius: 20px 20px 0 0;
}

