/* Keep the shared list renderer and its column preferences; scope visual rules to business groups. */
.business-group-list-page .data-toolbar {
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-block: 12px;
}
.business-group-list-page .toolbar-primary,
.business-group-list-page .toolbar-secondary {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.business-group-list-page #referenceMasterSpecialActions { display: contents; }
.business-group-list-page .data-toolbar .command-button {
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  white-space: nowrap;
}
.business-group-list-page .list-filter-strip {
  gap: 12px;
  flex-wrap: wrap;
}
.business-group-list-page #referenceMasterOrganizationFilter { width: min(320px, 60vw); }
.business-group-list-page .filter-summary:has(.filter-chip.hidden):has(.filter-note:empty) { display: none; }
.business-group-list-page .table-pagination {
  min-height: 44px;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 12px;
}
.business-group-list-page .table-scroll {
  max-height: calc(100vh - 310px);
  min-height: 180px;
  overflow: auto;
  scrollbar-gutter: stable;
}
.business-group-list-page .reference-master-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.business-group-list-page .reference-master-table th {
  height: 40px;
  background: #f3f5f8;
  border-right: 1px solid #e3e7ed;
}
.business-group-list-page .reference-master-table tbody tr { height: 40px; }
.business-group-list-page .reference-master-table tbody td {
  box-sizing: border-box;
  padding: 10px 12px;
  line-height: 20px;
  vertical-align: top;
  color: #2f343b;
  border-right: 1px solid #edf0f4;
}
.business-group-list-page #referenceMasterTableBody td[rowspan] { background: #f8fafc; }
.business-group-list-page #referenceMasterTableBody tr:has(td[rowspan]) td { border-top: 1px solid #ccd5e1; }
.business-group-list-page #referenceMasterTableBody tr.selected td { background: #eaf2ff; }
.business-group-list-page .reference-master-table td:has(> input[type="checkbox"]),
.business-group-list-page .reference-master-table td:has(> span[aria-label]) { text-align: center; }
@media (max-width: 720px) {
  .business-group-list-page .table-scroll { max-height: calc(100vh - 380px); }
}
