.entity-combobox { position: relative; min-width: 0; }
.entity-combobox-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.entity-combobox-list { position: absolute; z-index: 80; inset: calc(100% + 0.25rem) 0 auto; max-height: min(20rem, 45vh); overflow: auto; padding: 0.35rem; border: 1px solid var(--border); border-radius: 0.6rem; background: var(--surface); box-shadow: 0 14px 34px rgba(8, 11, 16, 0.24); }
.entity-combobox-option { display: block; width: 100%; padding: 0.65rem 0.75rem; border: 0; border-radius: 0.4rem; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.entity-combobox-option:hover, .entity-combobox-option.is-active { background: var(--surface-alt, rgba(127, 127, 127, 0.12)); }
.entity-combobox-status { display: block; min-height: 1em; margin-top: 0.25rem; color: var(--muted); font-size: 0.72rem; font-weight: 650; text-transform: none; letter-spacing: 0; }
.entity-combobox-status.error { color: var(--danger); }
.has-sticky-actions th:last-child,
.has-sticky-actions td:last-child { position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: -8px 0 12px -12px rgba(8, 11, 16, 0.55); }
.has-sticky-actions th:last-child { z-index: 2; }

@media (max-width: 720px) {
  .table-wrap:has(.responsive-record-table) { overflow: visible; border: 0; }
  .responsive-record-table,
  .responsive-record-table tbody,
  .responsive-record-table tr,
  .responsive-record-table td { display: block; width: 100%; }
  .responsive-record-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .responsive-record-table tbody { display: grid; gap: 0.75rem; }
  .responsive-record-table tr { border: 1px solid var(--border); background: var(--surface); padding: 0.55rem 0.75rem; }
  .responsive-record-table td { display: grid; grid-template-columns: minmax(7.5rem, 38%) minmax(0, 1fr); gap: 0.65rem; align-items: start; padding: 0.5rem 0; border-bottom: 1px solid var(--border); white-space: normal; overflow-wrap: anywhere; }
  .responsive-record-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.72rem; font-weight: 850; text-transform: uppercase; }
  .responsive-record-table td:last-child { position: static; display: flex; flex-wrap: wrap; justify-content: flex-end; background: transparent; border-bottom: 0; box-shadow: none; }
  .responsive-record-table td:last-child::before { margin-right: auto; }
}
.record-detail-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem; margin: 0; }
.record-detail-list > div { min-width: 0; padding: 0.7rem; border: 1px solid var(--border); background: var(--surface); }
.record-detail-list dt { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.record-detail-list dd { margin: 0.25rem 0 0; overflow-wrap: anywhere; }
