.doc table.tableblock:not(.iso-admonition) {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
}

.doc table.tableblock:not(.iso-admonition) > :is(thead, tbody, tfoot) > tr > :is(th, td) {
  border-top-width: 0;
  border-left-width: 0;
}

.doc table.tableblock:not(.iso-admonition) > :is(thead, tbody, tfoot) > tr > :is(th, td):last-child {
  border-right-width: 0;
}

.doc table.tableblock:not(.iso-admonition) > :is(thead, tbody, tfoot):last-child > tr:last-child > :is(th, td) {
  border-bottom-width: 0;
}

.doc table.iso-admonition {
  position: relative;
  border-radius: 8px;
  clip-path: inset(0 round 8px);
}

/* Collapsed table borders need a separate rounded outer frame. */
.doc table.iso-admonition::after {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: inherit;
  border-radius: inherit;
  pointer-events: none;
}
