#results-table {
  background-color: var(--pico-form-element-selected-background-color);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 20px;
}

table.homepage-table{
  width: auto;
  td {
    text-align: center;
    padding: 0 20px;
  }
  th {
    text-align: center;
  }
}

table.rounded-corners {
  /* Change these properties */
  --border: 0px solid black;
  border-radius: 10px;

  /* Don't change these properties */
  border-spacing: 0;
  border-collapse: separate;
  border: var(--border);
  overflow: hidden;
}

/* Apply a border to the right of all but the last column */
table.rounded-corners th:not(:last-child),
table.rounded-corners td:not(:last-child) {
  border-right: var(--border);
}

/* Apply a border to the bottom of all but the last row */
table.rounded-corners>thead>tr:not(:last-child)>th,
table.rounded-corners>thead>tr:not(:last-child)>td,
table.rounded-corners>tbody>tr:not(:last-child)>th,
table.rounded-corners>tbody>tr:not(:last-child)>td,
table.rounded-corners>tfoot>tr:not(:last-child)>th,
table.rounded-corners>tfoot>tr:not(:last-child)>td,
table.rounded-corners>tr:not(:last-child)>td,
table.rounded-corners>tr:not(:last-child)>th,
table.rounded-corners>thead:not(:last-child),
table.rounded-corners>tbody:not(:last-child),
table.rounded-corners>tfoot:not(:last-child) {
  border-bottom: var(--border);
}

#table-header th{
  background-color: var(--pico-primary-background) !important;
  color: var(--pico-primary-inverse);
  font-weight: bold;
}

td {
  padding: 0;
}

td a {
  display: block;
  width: 100%;
  height: 100%;
  padding: calc(var(--pico-spacing)/ 2) var(--pico-spacing);
}

#table-footer th {
  background-color: var(--pico-primary-background) !important;
  color: var(--pico-primary-inverse);
  margin: auto;
  text-align: center;
}

#table-footer a {
  text-decoration: none !important;
  color: var(--pico-text-color);
}

#pagination {
  display: flex;
  justify-content: space-between;;
  padding: 0 30px;
}