table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  p { margin: 0; }
}

:where(thead, tbody) :where(th, td) {
  padding: var(--space--small);
  border-right: var(--border--light);
  border-bottom: var(--border--light);
}

:where(tfoot) td, caption {
  padding: var(--space--xx-small) var(--space--small);
  font-weight: var(--font-weight--bold);
  text-align: left;
}

/* lexxy content has its own table styling */
:where(thead, tbody) :where(th, td):first-child:not(:where(.lexxy-content, .lexxy-editor__content) *) {
  border-left: var(--border--light);
}

th {
  /* background-color: var(--color--bg-light); */
  font-size: inherit;
  font-weight: var(--font-weight--normal);
  text-align: left;
  border-top: var(--border--light);
}

.table--striped tbody tr:nth-child(even) { background-color: var(--color--bg-1); }

.table-outer-wrapper { display: flex; }

.table-inner-wrapper {
  overflow-x: auto;
  flex: 1 1 0%;
  width: 1rem;
  margin-bottom: var(--space--base);
}

th.input {
  padding: 0;
  input[type="text"] {
    width: 100%;
    min-block-size: 0;
    block-size: auto;
    padding: var(--space--small);
    font-weight: regular;
    border: none;
    &:hover { background-color: var(--color--bg-max); }
  }
}
