/* Стили для таблиц контентных страниц. Чтобы они применились,
нужно задать таблице класс static-page-table. */

.static-page-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 1.5rem 0;
  table-layout: auto;
}

/* Сброс настроек для ширины колонок */
.static-page-table td[style],
.static-page-table th[style] {
  width: auto !important;
}

/* Базовые стили ячеек */
.static-page-table td,
.static-page-table th {
  padding: 0.75rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid #ddd;
  word-break: break-word;
}

/* Заголовки */
.static-page-table.has-header .is-header-row td {
  background-color: var(--main-color-light-accent, #ccc);
  font-weight: 600;
  border-bottom: 2px solid #ccc;
}

/* Ссылки */
.static-page-table a {
  text-decoration: none;
  word-break: break-all;
}
.static-page-table a:hover {
  text-decoration: underline;
}

/* Выделение строки таблице при наведении курсова */
.static-page-table tr:not(.is-header-row):hover td {
  background-color: var(--main-color-light, #00000008);
}

/* Стили для маленьких экранов */
@media (max-width: 768px) {
  .static-page-table,
  .static-page-table tbody,
  .static-page-table tr,
  .static-page-table td,
  .static-page-table th {
    display: block;
    width: 100% !important;
  }

  /* Hide header row only if the table has a header */
  .static-page-table.has-header thead,
  .static-page-table.has-header .is-header-row {
    display: none;
  }

  .static-page-table tr {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
  }

  .static-page-table td {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.6rem 1rem;
  }

  .static-page-table td:last-child {
    border-bottom: none;
  }

  .static-page-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }
}
