/* compound-interest-calculator: layout only. Colours, borders and type live in assets/css/tools.css. */

.chart-card {
  margin-top: var(--space-6);
  padding: var(--space-6);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.chart-title {
  margin: 0;
}

.chart-legend {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.legend-dot {
  width: 10px;
  height: 10px;
}

.chart-container-inner {
  width: 100%;
  overflow: hidden;
  padding: var(--space-2);
}

.compound-scroll-table {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: auto;
  margin-top: var(--space-4);
}

.compound-table {
  width: 100%;
  text-align: end;
}

.compound-table th {
  position: sticky;
  top: 0;
  padding: var(--space-2) var(--space-3);
  white-space: nowrap;
  z-index: 1;
}

.compound-table th:first-child,
.compound-table td:first-child {
  text-align: center;
}

.compound-table td {
  padding: var(--space-2) var(--space-3);
  white-space: nowrap;
}
