/* Shared data-table presentation for public, member and administration pages. */
.table {
  --bs-table-color: #17241d;
  --bs-table-border-color: #111111;
  --bs-table-striped-color: #17241d;
  --bs-table-hover-color: #17241d;
  --bs-secondary-color: #52605a;
  --bs-heading-color: #17241d;
  border: 1px solid #111111;
  border-collapse: collapse;
}

.table > :not(caption) > * > * {
  border: 1px solid #111111 !important;
  background-color: var(--im-table-row-bg, #ffffff) !important;
  color: #17241d !important;
  /* Bootstrap paints stripes and hover states with a cell-wide inset shadow. */
  box-shadow: none !important;
}

.table > thead > tr > * {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  font-weight: 700;
  vertical-align: middle;
}

.table > tbody > tr:nth-child(odd) {
  --im-table-row-bg: #edf7e9;
}

.table > tbody > tr:nth-child(even) {
  --im-table-row-bg: #fff9df;
}

.table > tfoot > tr > * {
  background-color: #e8eef7 !important;
  font-weight: 600;
}

.table > :not(caption) > tr > .im-table-index {
  background-color: #e5e7eb !important;
  color: #17241d !important;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.table > thead > tr > * a:not(.btn) {
  color: inherit;
}

@media print {
  .table {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
