/* ===== Таблицы в «Статье» позиций (Потоки) ===== */

/* обёртка: не даём вылезти за контейнер, при нехватке места — скролл */
.t-redactor__tte-view .t-table__viewport,
.t-post__text .t-table__viewport {
  max-width: 100% !important;
  overflow-x: auto;
}

/* сама таблица — на всю ширину контейнера, колонки равные */
.t-redactor__tte-view table,
.t-post__text table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #F4F4F1;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  font-size: 15px;
  line-height: 1.45;
  color: #323232;
  margin: 24px 0;
}

/* сбрасываем зашитые ширины колонок (180px из редактора) */
.t-redactor__tte-view table colgroup col,
.t-post__text table colgroup col {
  width: auto;
  min-width: 0;
  max-width: none;
}

/* ячейки: только горизонтальные линии, обычное начертание */
.t-redactor__tte-view table th,
.t-redactor__tte-view table td,
.t-post__text table th,
.t-post__text table td {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #F4F4F1;
  background: #ffffff;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

/* последняя строка без нижней линии */
.t-redactor__tte-view table tr:last-child th,
.t-redactor__tte-view table tr:last-child td,
.t-post__text table tr:last-child th,
.t-post__text table tr:last-child td {
  border-bottom: 0;
}

/* первый столбец — прозрачность 70% */
.t-redactor__tte-view table th:first-child,
.t-redactor__tte-view table td:first-child,
.t-post__text table th:first-child,
.t-post__text table td:first-child {
  color: rgba(50, 50, 50, 0.7);
}
