/* Paged HR tables grow with their rows. Permission choices stay in table flow. */
.hr-spreadsheet-table-wrap:has(.is-compact-hr-sheet) {
  height: auto;
  min-height: 180px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
}
.is-compact-hr-sheet .hr-perm-dropdown-popover {
  position: static;
  width: 320px;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  box-shadow: none;
}
.is-compact-hr-sheet .hr-inline-perm-chip { white-space: normal; }
.hr-account-create-page { display: grid; gap: 12px; min-width: 0; }
.hr-account-create-page > .web-admin-panel-card > .web-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hr-account-create-page .web-admin-form > [role="alert"] { grid-column: 1 / -1; }
.hr-account-editor { min-width: 0; }
.hr-role-reference > summary { cursor: pointer; font-weight: 600; padding: 14px; }
@media (max-width: 680px) {
  .hr-account-create-page > .web-admin-panel-card > .web-admin-form { grid-template-columns: minmax(0, 1fr); }
}
