/**
 * @file
 * Formatted text (CKEditor output). Fields with a text format get the
 * "text-content" class in imtm_preprocess_field().
 */

.text-content img {
  max-width: 100%;
  height: auto;
}

.text-content--flush > :last-child,
.text-content--flush p:last-child {
  margin-bottom: 0;
}

/* Editor table style "table-formatted". */
.table-formatted th {
  background-color: var(--imtm-color-surface);
}

.table-formatted th:not(:last-child) {
  border-right: 2px solid var(--imtm-color-surface-light);
}

.table-formatted th,
.table-formatted td {
  padding: 0.75rem;
}

.table-formatted td {
  border: 2px solid var(--imtm-color-surface);
  border-collapse: separate;
  border-spacing: 2px;
}

.table-formatted td:first-child {
  border-left: 0;
}

.table-formatted td:last-child {
  border-right: 0;
}

.table-formatted td p {
  margin-bottom: 0;
}

.table-formatted-striped tr:nth-child(even) {
  background-color: var(--imtm-color-light);
}
