/* Edit-guard modal: list of referrals/letters blocking a signed order's edit. */

dialog.modals--main-modal:has(.order-edit-guard--list) {
  width: 480px;
  max-width: 90vw;
}

.order-edit-guard--list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.order-edit-guard--item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.order-edit-guard--item-name {
  flex: 1;
  min-width: 0;
  font-size: var(--rem-14);
  line-height: var(--rem-20);
  color: var(--text-information);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.order-edit-guard--item-name:hover {
  text-decoration: underline;
}

.order-edit-guard--item-action {
  margin: 0 0 0 auto;
  flex-shrink: 0;
}

.order-edit-guard--unlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.order-edit-guard--unlink:hover {
  background: var(--surface-secondary);
}
