/* css/charts.css */

.charts-controls{
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.charts-controls label{
  min-width: 160px;
}

.charts-controls label.min-gp{
  min-width: 110px;
}

.charts-controls label.trendline{
  min-width: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 20px; /* aligns checkbox with selects */
}

.charts-controls input[type="number"]{
  width: 90px;
}

.status{
  margin: 10px 0 12px;
}

.charts-wrap{
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

#chart{
  width: 100%;
  height: 560px;
}

@media (max-width: 900px){
  #chart{ height: 520px; }
}

@media (max-width: 600px){
  #chart{ height: 480px; }
}

.charts-footnote{
  opacity: 0.75;
  font-size: 12px;
  margin-top: 10px;
}

.page{
  max-width: 1500px;
}

#chart{
  height: 620px; /* optional: gives it more presence */
}

/* Override global input min-width on this page */
.charts-controls input{
  min-width: 0;
}

/* Keep Min GP tight */
.charts-controls input[type="number"]{
  width: 70px;
}

/* Keep the trendline control snug */
.charts-controls label.trendline{
  padding-top: 0;      /* remove the old alignment hack */
  margin-top: 22px;    /* aligns with the bottom of selects */
  gap: 8px;
}
