/*
 * Keeps the look from Bootstrap 5.0.2 after the move to 5.3.3.
 *
 * 1. Several side menus use <ul class="list-group-flush"> without "list-group".
 *    Bootstrap 5.3 defines the list item variables on .list-group, so those
 *    items lost their padding, background and blue "active" state. These are
 *    the same values Bootstrap 5.3 sets on .list-group.
 * 2. Inactive header links use .link-dark, which Bootstrap 5.3 makes
 *    !important; keep the grey navbar colour they had before.
 * 3. Bootstrap 5.3 tables use black text on a white background; keep the
 *    body text colour on a transparent background as before. Coloured cells
 *    (.table-success etc.) set their own values and are unaffected.
 */
.list-group-flush:not(.list-group) {
  --bs-list-group-color: var(--bs-body-color);
  --bs-list-group-bg: var(--bs-body-bg);
  --bs-list-group-border-color: var(--bs-border-color);
  --bs-list-group-border-width: var(--bs-border-width);
  --bs-list-group-border-radius: var(--bs-border-radius);
  --bs-list-group-item-padding-x: 1rem;
  --bs-list-group-item-padding-y: 0.5rem;
  --bs-list-group-action-color: var(--bs-secondary-color);
  --bs-list-group-action-hover-color: var(--bs-emphasis-color);
  --bs-list-group-action-hover-bg: var(--bs-tertiary-bg);
  --bs-list-group-action-active-color: var(--bs-body-color);
  --bs-list-group-action-active-bg: var(--bs-secondary-bg);
  --bs-list-group-disabled-color: var(--bs-secondary-color);
  --bs-list-group-disabled-bg: var(--bs-body-bg);
  --bs-list-group-active-color: #fff;
  --bs-list-group-active-bg: #0d6efd;
  --bs-list-group-active-border-color: #0d6efd;
}

.navbar-nav .nav-link.link-dark {
  color: rgba(0, 0, 0, 0.55) !important;
}
.navbar-nav .nav-link.link-dark:hover,
.navbar-nav .nav-link.link-dark:focus {
  color: rgba(0, 0, 0, 0.7) !important;
}
.navbar-nav .nav-link.active {
  color: rgba(0, 0, 0, 0.9);
}

.table {
  --bs-table-color: var(--bs-body-color);
  --bs-table-bg: transparent;
  --bs-table-striped-color: var(--bs-body-color);
  --bs-table-hover-color: var(--bs-body-color);
  --bs-table-active-color: var(--bs-body-color);
}
