#front-content .front-table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-block: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--color-outline, #dfe2e6);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 24px rgb(9 30 66 / 7%);
  -webkit-overflow-scrolling: touch;
}

#front-content .front-table-scroll:focus-visible {
  outline: 3px solid var(--color-primary, #0047ab);
  outline-offset: 3px;
}

#front-content table {
  display: table;
  width: 100%;
  min-width: 0;
  margin-block: 1.5rem;
  border: 1px solid var(--color-outline, #dfe2e6);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--color-text, #243757);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-align: start;
}

#front-content .front-table-scroll > table {
  margin: 0;
  border: 0;
}

#front-content table caption {
  padding: 1rem 1.25rem;
  color: var(--color-heading, #091e42);
  font-weight: 600;
  text-align: start;
  caption-side: top;
}

/* Keep real table headers and merged cells intact, including legacy rbt tables. */
#front-content table thead { display: table-header-group; }
#front-content table tbody { display: table-row-group; }
#front-content table tfoot { display: table-footer-group; }

#front-content table tr {
  display: table-row;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  transition: background-color 150ms ease;
}

#front-content table th,
#front-content table td {
  display: table-cell;
  padding: 1rem 1.25rem;
  border: 0;
  border-bottom: 1px solid var(--color-outline, #dfe2e6);
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  vertical-align: middle;
  overflow-wrap: break-word;
}

#front-content table thead {
  background: var(--color-primary-sub, #002b68);
  color: #fff;
}

#front-content table thead th,
#front-content table thead td {
  border-bottom: 3px solid var(--color-secondary, #f1af00);
  background: var(--color-primary-sub, #002b68);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: normal;
}

#front-content table tbody th {
  background: var(--color-nuture-2, #e6edf7);
  color: var(--color-heading, #091e42);
  font-weight: 600;
}

#front-content table tbody td:first-child {
  width: auto;
  background: transparent;
  color: inherit;
  font-weight: inherit;
}

#front-content table.rbt-table tbody td:not([align]):not(.text-center):not(.text-right):not(.text-left) {
  text-align: inherit;
}

#front-content table tbody td::before {
  content: none;
}

#front-content table tbody tr:nth-child(even) {
  background: #f5f8fc;
}

#front-content table tbody tr:hover,
#front-content table tbody tr:focus-within {
  background: #eaf1fb;
  transform: none;
}

#front-content table tbody:last-child tr:last-child > *,
#front-content table tfoot tr:last-child > * {
  border-bottom: 0;
}

#front-content table tfoot {
  background: var(--color-nuture-2, #e6edf7);
  font-weight: 600;
}

#front-content table a:not([class]) {
  color: var(--color-primary, #0047ab);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#front-content table thead a:not([class]) {
  color: inherit;
}

#front-content table a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  #front-content table {
    font-size: 0.875rem;
  }

  #front-content table th,
  #front-content table td {
    padding: 0.75rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #front-content table tr {
    transition: none;
  }
}

@media print {
  #front-content .front-table-scroll {
    overflow: visible;
    box-shadow: none;
  }

  #front-content table thead th,
  #front-content table thead td {
    background: #fff;
    color: #000;
  }
}
