.hchart-wrapper {
  position: relative;
  padding-bottom: 2.5em; /* reserve space for the buttons */
}

.hchart-wrapper canvas {
  max-width: 100%;
  height: auto;
}

.hchart-table th {
  font-weight: bold;
}

.hchart-controls {
  position: absolute;
  bottom: 0.5em;
  right: 0.5em;
  display: flex;
  gap: 0.25em;
  z-index: 10;
}

.hchart-btn {
  font-size: 0.75em;
  padding: 0.2em 0.4em;
  background: #eee;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.2s, opacity 0.2s;
}

.hchart-btn:hover {
  background: #ddd;
  opacity: 1;
}

/* General controls */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-size: 0.8em !important;
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}

/* Entry dropdown and search input */
.dataTables_wrapper select,
.dataTables_wrapper input[type="search"] {
  font-size: 0.8em !important;
  padding: 2px 6px;
  height: auto;
  line-height: 1.2;
}

/* Pagination buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  font-size: 0.8em !important;
  padding: 2px 6px;
}

/* Optional: Align controls tighter */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 0.25em;
}


