/*
 * Custom AdminJS styles, loaded through `assets.styles` in admin.js.
 */

/*
 * Hide the "Delete Relation" button in a record's show-page header.
 *
 * @adminjs/relations only renders the per-row trash icon in a many-to-many relation list
 * when the owning record's `deleteRelation` action is visible, so resources.js sets it to
 * `isVisible: true` (Buyer, SellerGroup). AdminJS then also renders it in the header, where
 * it has no target record and does nothing useful. The header button is the only element
 * carrying this data-css; the relation list's trash icon doesn't, so it keeps working.
 */
[data-css$="-deleteRelation-button"] {
  display: none !important;
}
