div.table-wrapper {
  overflow: auto;
  height: auto;
  max-height: 600px;
  clear: both;
}

table {
  --color: #d0d0f5;
  border-collapse: collapse;
  width: auto;
  text-align: start;
}

table.filter {
  width: auto;
}

caption {
  caption-side: top;
  font-weight: bold;
  text-decoration: underline;
}

table.filter td:not(:first-child) {
  border-left: 1px solid #cccccc;
}

td.numeric, th.numeric {
  text-align: right;
}

span.fa.fa-sort {
  color: #0044ffaa !important;
}

table.table-scroll {
  table-layout: fixed;
}

table.table-scroll thead th, table.table-scroll tfoot th {
  vertical-align: bottom;
  padding-left: 4px;
}

table.table-scroll thead tr th:not(:first-child) {
  min-width: 8rem;
}

table.table-scroll thead tr th:first-child {
  min-width: 6rem;
}

table.table-scroll thead, table.table-scroll tfoot {
  border: 2px solid var(--color);
  border-block-end: 2px solid;
  background: var(--color);
}

table.table-scroll tbody th, table.table-scroll tbody td {
  border: 1px solid lightgrey;
  padding: 0.5rem;
  vertical-align: top;
}

table.table-scroll tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color), transparent 60%);
}

table.table-scroll thead tr:first-child {
  position: sticky;
  top: 0;
  background: var(--color);
  z-index: 10;
}

table.table-scroll thead th:first-child, table.table-scroll tbody tr th {
  position: sticky;
  left: 0;
}

table.table-scroll thead th:first-child {
  background: var(--color);
}

/*table.table-scroll tbody tr th:first-child {*/
/*  background: white;*/
/*}*/

table.table-scroll tbody tr:hover {
  background: var(--color);
}

table.table-scroll a {
  text-decoration: none;
}

table.table-scroll a:hover {
  text-decoration: underline;
}
