/* Responsive Plotly chart; keep existing dashboard.css unchanged */
.chart-wrap {
  min-width: 0;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible;
}

#historyChart {
  display: block;
  width: 100%;
  min-width: 0;
  height: 370px;
}

#historyChart .js-plotly-plot,
#historyChart .plot-container {
  width: 100% !important;
}

/* Hide Plotly toolbar */
#historyChart .modebar-container,
#historyChart .modebar {
  display: none !important;
}

@media (max-width: 700px) {
  .chart-wrap {
    padding: 0 !important;
    margin: 0;
  }

  #historyChart {
    height: 300px !important;
  }

  .panel {
    min-width: 0;
  }
}