/*
 * Таблицы контрольных цифр приёма только внутри .table26-scroll.
 * Класс .commission-table-class1 на остальных страницах этот файл не трогает.
 * Подключать после commission_ext.css и smallTables.css.
 *
 * Шапка: первая ячейка с colspan="2" (код + название), дальше 6 числовых колонок.
 * Общая сетка subgrid держит колонки строк на одной линии и не даёт тексту
 * залезать в соседние ячейки.
 */

.table26-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table26-scroll table.commission-table-class1 {
  display: grid !important;
  /* Доли на ширину блока ~825px (колонка col-lg-9): код, название, 6 чисел. */
  grid-template-columns: 84fr 190fr repeat(6, 92fr);
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  box-shadow: 0 0 5px rgba(100, 100, 100, 0.3);
  background-color: #fff;
  overflow: visible !important;
}

.table26-scroll table.commission-table-class1 > tbody {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}

.table26-scroll table.commission-table-class1 tr {
  display: grid !important;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: stretch;
  padding: 0 !important;
  border: 0 !important;
}

.table26-scroll table.commission-table-class1 tr:nth-child(1) {
  padding: 0 !important;
  border: 0 !important;
  background-color: #708db8;
  color: #f0f0f0;
  font-weight: 600;
  text-transform: uppercase;
}

.table26-scroll table.commission-table-class1 tr:nth-child(2n) {
  background-color: #fbfbfb;
}

.table26-scroll table.commission-table-class1 tr:first-child > th:first-child {
  grid-column: 1 / span 2;
}

.table26-scroll table.commission-table-class1 th,
.table26-scroll table.commission-table-class1 td {
  display: block !important;
  align-self: stretch;
  justify-self: stretch;
  align-content: center;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.table26-scroll table.commission-table-class1 tr:nth-child(1) > th {
  padding: 8px 2px !important;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid #ccc;
  background-color: transparent;
  color: #f0f0f0;
  font-size: 10px !important;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-wrap: balance;
}

.table26-scroll table.commission-table-class1 tr:nth-child(1) > th:last-child {
  border-right: 1px solid transparent;
}

.table26-scroll table.commission-table-class1 th sup {
  font-size: 0.7em;
  line-height: 0;
  vertical-align: super;
}

.table26-scroll table.commission-table-class1 td {
  padding: 9px 8px !important;
  border: 0;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  background-color: transparent;
  color: #333;
  font-size: 14px !important;
  line-height: 1.35;
}

.table26-scroll table.commission-table-class1 tr > td:first-child {
  border-left: 1px solid #ccc;
}

.table26-scroll table.commission-table-class1 td:nth-child(1) {
  padding-right: 4px !important;
  padding-left: 4px !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.table26-scroll table.commission-table-class1 td:nth-child(n+3) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

@media (max-width: 767px) {
  .table26-scroll table.commission-table-class1 {
    min-width: 680px;
  }
}

@supports not (grid-template-columns: subgrid) {
  .table26-scroll table.commission-table-class1 {
    display: table !important;
    table-layout: fixed !important;
    min-width: 0;
    border-collapse: collapse !important;
  }

  .table26-scroll table.commission-table-class1 > tbody {
    display: table-row-group;
    grid-column: auto;
    grid-template-columns: none;
  }

  .table26-scroll table.commission-table-class1 tr {
    display: table-row !important;
    grid-column: auto;
    grid-template-columns: none;
  }

  .table26-scroll table.commission-table-class1 th,
  .table26-scroll table.commission-table-class1 td {
    display: table-cell !important;
    align-content: normal;
    vertical-align: middle;
  }

  .table26-scroll table.commission-table-class1 tr:first-child > th:first-child {
    grid-column: auto;
    width: 38%;
  }

  .table26-scroll table.commission-table-class1 tr:first-child > th:not(:first-child) {
    width: 10.3%;
  }
}

@media print {
  .table26-scroll {
    overflow: visible;
  }

  .table26-scroll table.commission-table-class1 {
    box-shadow: none;
  }
}
