/* ================================================================
   TX Shape Details — the BTM Explorer's Transaction Details look (dtx-*);
   only what is the dialog's own is here.
   ================================================================ */

.tshd-dialog .tshd-description { white-space: pre-line; line-height: 1.5; }
/* Imported From: the environment's badge and, beside it, its ID */
.tshd-dialog .tshd-env { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Viewer tab: drawn over the tabs' content area (below the 48px tab headers), outside md-tab-content — a canvas under its
   transform + overflow:auto was left with stale tiles (ghost images) on zoom / pan. The content is the positioning box. */
.tshd-dialog .dtx-content { position: relative; }
.tshd-dialog .tshd-viewer {
  position: absolute;
  top: 49px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: var(--bm-surface, #fff);
}
.tshd-dialog .tshd-viewer > bm-dag-viewer-embed { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }

/* <bm-dag-viewer-embed>: the viewer's .ddv-dialog without its dialog box */
.ddv-dialog.ddv-embedded {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.ddv-dialog.ddv-embedded .ddv-embed-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  min-height: 40px;
  font-size: 12.5px;
  color: var(--bm-navy-500, #4B5878);
  border-bottom: 1px solid var(--bm-navy-100, #DDE2EF);
}

/* A TX shape's status (Published / Unpublished) and its collections' statuses: the API Collections' status badge look
   (the ac-status-* colours; unpublished and unknown in the draft's grey). Used by the summary and the details. */
.tsh-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--bm-r-pill, 999px);
  white-space: nowrap;
  line-height: 1.4;
}
.tsh-status__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.tsh-status.ac-status-unpublished,
.tsh-status.ac-status-unknown { background: var(--bm-surface-3) !important; color: var(--bm-text-muted) !important; }
.tsh-status.ac-status-unpublished .tsh-status__dot,
.tsh-status.ac-status-unknown .tsh-status__dot { background: var(--bm-navy-300) !important; }
.tsh-status.ac-status-published .tsh-status__dot { background: var(--bm-success) !important; }

.tshd-dialog .tshd-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tshd-dialog .tshd-collection {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--bm-border, rgba(0, 0, 0, 0.08));
}
.tshd-dialog .tshd-collection:last-of-type { border-bottom: 0; }
/* The collection's name: the size and color of the dialog's other values (dtx-fields dd), not the dialog's base size */
.tshd-dialog .tshd-collection > .dtx-strong { font-size: 13px; color: var(--bm-text-primary); }

/* The version pill next to a TX shape's name (BTM Explorer, Tx Shapes tab, details): never shrinks, the name truncates first */
.tsh-ver-pill { flex-shrink: 0; margin-left: 4px; vertical-align: middle; }
