body {
  font-family: sans-serif;
  line-height: 1.5;
}
.wrapper {
  width: min(100vw - 2rem, 768px);
  margin-inline: auto;
}
table {
  width: min(100vw - 2rem, 768px);
  margin-inline: auto;
  border-collapse: collapse;
}
th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
th {
  background-color: #f2f2f2;
  cursor: pointer;
}
th:hover {
  background-color: #e0e0e0;
}
.datatable {
  table-layout: fixed;
}
.datatable th:after {
  content: " ⮃";
}
.datatable .sort-asc::after {
  content: " ↑";
}
.datatable .sort-desc::after {
  content: " ↓";
}
input[type="text"],
select {
  padding: 5px;
  font-size: 0.85rem;
}
button {
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  font-size: 0.85rem;
  background-color: #e9e9e9;
  cursor: pointer;
}
button:hover {
  background-color: #e0e0e0;
}

/**
 * Styles for example D3 graphs
 * ============================
 * Change these to suit your theme requirements.
 */

.chart-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.chart-container svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.area {
  opacity: 0.6;
}
.error {
  stroke: black;
  stroke-width: 1.5px;
}
/*.legend {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.legend-color {
  width: 1.5rem;
  height: 1.5rem;
}*/
.tooltip {
  position: absolute;
  background: black;
  color: white;
  padding: 0.5em 0.75em;
  border-radius: 0.5em;
  pointer-events: none;
  font-size: 14px;
  opacity: 0;
}
