
/* Universal flex layout */
.table-graph-row,
.table-chart-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

/* Each block: table or chart */
.table-block,
.chart-block {
  flex: 1 1 100%;
  max-width: 100%;
}

/* Chart height tuning */
.chart-block {
  position: relative;
  height: 220px;
}

.chart-block.chart-1 {
  height: 260px; /* for bigger charts */
}

/* Table styling */
.table-block table {
  width: 100%;
  border-collapse: collapse;
}
.table-block th,
.table-block td {
  padding: 8px;
  border: 1px solid #ddd;
  font-size: 13px;
}

/* Section spacing on small screens */
@media (max-width: 600px) {
	/* Container adjustments */
.container {
  padding: 20px;
}
  h2 {
    font-size: 18px;
  }
  .metric-box {
    flex: 1 1 100%;
  }
  .table-graph-row,
  .table-chart-wrapper {
    gap: 12px;
    margin-bottom: 24px;
  }
}

/* Desktop layout */
@media (min-width: 601px) {
  .table-block,
  .chart-block {
    flex: 0 0 48%;
    max-width: 48%;
  }
}
