/* Preserve platform branding; make the participant table readable rather than
   compressing names into character-wide columns. Scroll is local to the table. */
.hr-cabinet [aria-label="Таблица участников"] {
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #aab2bf transparent;
  border-radius: 1rem;
}
.hr-cabinet [aria-label="Таблица участников"]:focus-visible {
  outline: 2px solid var(--color-primary, #545b62);
  outline-offset: 3px;
}
.hr-cabinet [aria-label="Таблица участников"] table {
  inline-size: 100%;
  min-inline-size: 74rem;
  table-layout: fixed;
}
.hr-cabinet [aria-label="Таблица участников"] th:nth-child(1) { inline-size: 12.5rem; }
.hr-cabinet [aria-label="Таблица участников"] th:nth-child(2) { inline-size: 15rem; }
.hr-cabinet [aria-label="Таблица участников"] th:nth-child(3) { inline-size: 10rem; }
.hr-cabinet [aria-label="Таблица участников"] th:nth-child(4) { inline-size: 14rem; }
.hr-cabinet [aria-label="Таблица участников"] th:nth-child(5) { inline-size: 8rem; }
.hr-cabinet [aria-label="Таблица участников"] th:nth-child(6) { inline-size: 6.5rem; }
.hr-cabinet [aria-label="Таблица участников"] th:nth-child(7) { inline-size: 8rem; }
.hr-cabinet [aria-label="Таблица участников"] td { vertical-align: top; }
.hr-cabinet [aria-label="Таблица участников"] td:first-child > button { max-inline-size: 100%; }
.hr-cabinet [aria-label="Таблица участников"] th:first-child,
.hr-cabinet [aria-label="Таблица участников"] td:first-child {
  position: sticky;
  inset-inline-start: 0;
  box-shadow: 1px 0 #e5e7eb;
}
.hr-cabinet [aria-label="Таблица участников"] th:first-child { z-index: 2; background: var(--color-bg, #f6f7fb); }
.hr-cabinet [aria-label="Таблица участников"] td:first-child { z-index: 1; background: #fff; }
.hr-cabinet [aria-label="Таблица участников"] tr:hover > td:first-child,
.hr-cabinet [aria-label="Таблица участников"] tr.bg-hover-bg > td:first-child { background: var(--color-hover-bg, #f1f3f6); }
.hr-cabinet [aria-label="Таблица участников"]::after {
  content: "Если столбцы не помещаются, прокрутите таблицу вправо или влево.";
  display: block;
  position: sticky;
  inset-inline-start: 0;
  padding: .625rem 1rem;
  border-block-start: 1px solid #eef0f4;
  background: #fff;
  color: var(--color-text-secondary, #6b7280);
  font-size: .75rem;
  line-height: 1.5;
}
/* These two lists still use cards below lg (1024), not table rows at 768. */
@media (min-width: 48rem) and (max-width: 63.999rem) {
  .hr-cabinet :is([aria-label="Загружаем участников"],[aria-label="Загружаем карты сотрудников"]) .hr-loading-skeleton__row {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    min-block-size: 7rem;
    gap: .75rem 1rem;
    padding-block: 1rem;
  }
}
@media (max-width: 63.999rem) {
  .hr-cabinet button[aria-label^="Действия:"] { min-block-size: 2.5rem; min-inline-size: 2.5rem; }
}
