/* B1: grouped selectable list variant, within the existing selection/detail frame. */
.sc-selection-detail--wide { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) {
  .sc-selection-detail--wide { grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); }
}
.sc-table.sc-table--grouped-selectable .sc-table__group > td { padding: 0; background: var(--surface-sunken); }
.sc-table__group-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 16px; background: transparent; border: 0; color: var(--text-auf-hell); font: 600 15px/1.5 var(--font-family-base); text-align: left; cursor: pointer; }
.sc-table__group-toggle::before { content: ''; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor; mask: url('../../vendor/tabler-icons/chevron-right.svg') center / contain no-repeat; }
.sc-table__group-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.sc-table__group-meta { margin-left: auto; color: var(--text-info); font-size: 13px; font-weight: 400; }
.sc-table__select { display: block; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--text-auf-hell); font: 600 15px/1.4 var(--font-family-base); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.sc-table__selection-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--text-info); }
.sc-table.sc-table--grouped-selectable tbody tr.is-active > td { background: var(--surface-selected); }
.sc-table.sc-table--grouped-selectable tbody tr.is-active > td:first-child { box-shadow: inset 3px 0 var(--blau-400); }
.sc-table__group-toggle:focus-visible, .sc-table__select:focus-visible { outline: 2px solid var(--blau-400); outline-offset: -3px; }
@media (max-width: 719px) {
  .sc-table.sc-table--grouped-selectable, .sc-table--grouped-selectable tbody { display: block; min-width: 0; }
  .sc-table--grouped-selectable thead { display: none; }
  .sc-table.sc-table--grouped-selectable tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-bottom: 1px solid var(--border-default); }
  .sc-table.sc-table--grouped-selectable tbody tr > td { min-width: 0; padding: 12px 16px; border: 0; overflow-wrap: anywhere; }
  .sc-table--grouped-selectable td::before { content: attr(data-label); display: block; color: var(--text-info); font-size: 13px; margin-bottom: 4px; font-weight: 400; }
  .sc-table--grouped-selectable td:first-child, .sc-table--grouped-selectable .table-actions, .sc-table--grouped-selectable .sc-table__empty { grid-column: 1 / -1; }
  .sc-table.sc-table--grouped-selectable .sc-table__group > td { padding: 0; }
  .sc-table--grouped-selectable .sc-table__group > td::before { display: none; }
  .sc-table.sc-table--grouped-selectable .sc-table__number { text-align: left; }
}
.sc-row-action-menu__trigger-icon { display: inline-block; width: 18px; height: 18px; background: currentColor; mask: url('../../vendor/tabler-icons/dots.svg') center / contain no-repeat; transform: rotate(90deg); }
.sc-row-action-menu__items { position: fixed; inset: auto; margin: 0; padding: 8px; max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid var(--border-default); border-radius: 8px; background: var(--surface-panel); color: var(--text-auf-hell); box-shadow: var(--shadow-flat); list-style: none; }
.sc-row-action-menu__items:popover-open { display: grid; gap: 8px; }
.sc-row-action-menu__items .sc-row-action-menu__item { width: 100%; min-height: 44px; justify-content: flex-start; text-align: left; white-space: normal; }
.sc-table.sc-table--grouped-selectable { table-layout: auto; min-width: 760px; }
.sc-table.sc-table--grouped-selectable :is(th,td):first-child { min-width: 200px; width: auto; }
.sc-table.sc-table--grouped-selectable .table-actions { min-width: 76px; width: 76px; }
@media (max-width: 719px) {
  .sc-table.sc-table--grouped-selectable { min-width: 0; }
  .sc-table.sc-table--grouped-selectable :is(th,td):first-child { min-width: 0; }
  .sc-table.sc-table--grouped-selectable .table-actions { width: auto; }
}
