/**
 * @file
 * Visual styles for Dark+'s tables.
 */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 0 0 40px;
}
.table-responsive {
  margin-bottom: 40px;
}
.table-responsive table {
  margin-bottom: 0;
}
table tr th {
  border-style: solid;
  border-width: 0;
  border-color: var(--mt-form-border);
  padding: 20px 26px;
  font-size: 18px;
  font-weight: 700;
}
.region--bright-background table tr th,
.region--tint-background table tr th,
.region--pattern table tr th,
.region--accent-background table tr th {
  border-color: var(--mt-form-border-contrast);
}
table tr:first-child th {
  border-top-width: 1px;
}
table tr:last-child th {
  border-bottom-width: 1px;
}
.headings-wide-spacing-enabled table tr th {
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
table thead tr:first-child th {
  border-bottom-width: 0;
}
table tr th:last-child {
  border-right-width: 1px;
}
table tr td {
  border-style: solid;
  border-width: 0;
  padding: 12px 26px;
  font-weight: 400;
  border-color: var(--mt-form-border);
}
.region--bright-background table tr td,
.region--tint-background table tr td,
.region--pattern table tr td,
.region--accent-background table tr td {
  border-color: var(--mt-form-border-contrast);
}
table tr:first-child td {
  border-top-width: 1px;
}
table tr:last-child td {
  border-bottom-width: 1px;
  padding-bottom: 16px;
}
table thead + tbody tr:first-child th,
table thead + tbody tr:first-child td {
  padding-top: 24px;
  border-top-width: 0;
}
table tr th:first-child,
table tr td:first-child {
  border-left-width: 0px;
}
table tr th:last-child,
table tr td:last-child {
  border-right-width: 0px;
}
td.is-active {
  background-color: var(--mt-active-cell);
}

/* Table caption */
table caption {
  padding: 10px 0;
  font-size: 16px;
  color: inherit;
}

/* layout builder */
#layout-builder-modal table tr td {
  padding: 12px 15px;
}
