/* ================================================================
   Template TX shapes: the TX Shapes tab of the template dialog and
   its "Add TX Shapes" picker (tts-* shared, tsp-* the picker's own).
   ================================================================ */
.tts-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.tts-search {
  display: flex; align-items: center; gap: 6px; min-width: 360px;
  padding: 6px 10px; border: 1px solid var(--bm-border); border-radius: var(--bm-r-md); background: var(--bm-surface);
}
.tts-search md-icon { margin: 0; font-size: 18px; width: 18px; height: 18px; min-width: 18px; min-height: 18px; color: var(--bm-text-muted); }
.tts-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--bm-text-primary); }
.tts-count { font-size: 12.5px; color: var(--bm-text-secondary); white-space: nowrap; }
.tts-toolbar .md-button md-icon { margin-right: 4px; }
.tts-table td { vertical-align: middle; }
/* Column widths from the header, not from the rows: filtering doesn't make the columns jump */
.edit-template-dialog .tts-table { table-layout: fixed; width: 100%; }
.tts-check, md-checkbox.tts-check { display: inline-flex; margin: 0; }
.tts-check md-checkbox { margin: 0; }
.tts-row--selected td { background: var(--bm-surface-2); }
.tts-row--blocked td { opacity: .6; }
.tts-name { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.tts-name-link, .tts-name-text { flex: 0 1 auto; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tts-name .tsh-ver-pill { flex-shrink: 0; }
.tts-name-link { color: var(--bm-primary); text-decoration: none; }
.tts-name-link:hover { text-decoration: underline; }
.tts-name-text { color: var(--bm-text-primary); }
.tts-name-missing { font-style: italic; color: var(--bm-text-muted); }
.tts-description {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12.5px; line-height: 1.45; color: var(--bm-text-secondary);
}
.tts-description--empty { font-style: italic; color: var(--bm-text-muted); }
.tts-muted { color: var(--bm-text-muted); }
.tts-table th.dex-th-sortable { cursor: pointer; user-select: none; }

/* As in the profile's TX Shapes tab (those rules are scoped to its dialogs): sort arrow, DAG size pill, status pill */
.tts-table .dex-th-label { display: inline-flex; align-items: center; gap: 3px; }
.tts-table md-icon.dex-sort-icon {
  font-size: 13px !important; width: 13px !important; height: 13px !important;
  min-width: 13px !important; min-height: 13px !important; margin: 0 !important; line-height: 13px !important;
  color: var(--bm-teal-600, #0d9488) !important;
}
.tts-table .dex-count-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--bm-text-secondary);
  background: var(--bm-navy-50, #F4F5FA); border: 1px solid var(--bm-border-subtle, #E2E5EF); border-radius: 999px;
}
.tts-table .dex-count-pill md-icon {
  font-size: 13px !important; width: 13px !important; height: 13px !important;
  min-width: 13px !important; min-height: 13px !important; margin: 0 !important; line-height: 13px !important;
  color: currentColor !important;
}
.tts-table .tsh-status.ac-status-published { background: var(--bm-success-bg, #ECFDF5) !important; color: var(--bm-success-text, #047857) !important; }
.tts-table .tsh-status.ac-status-published .tsh-status__dot { background: var(--bm-success, #10B981) !important; }
.tts-table .tsh-status.ac-status-unpublished { background: var(--bm-surface-3, #EEF0F6) !important; color: var(--bm-text-muted, #8E97B4) !important; }
.tts-no-match { text-align: center; font-style: italic; color: var(--bm-text-muted); padding: 18px !important; }

/* ── Picker ─────────────────────────────────────────────────── */
/* Fixed size: searching or paging changes the rows, never the dialog */
md-dialog.client-type-dialog.tx-shape-picker-dialog { width: 1180px !important; max-width: 96vw !important; height: 88vh !important; max-height: 88vh !important; }
.tx-shape-picker-dialog .tsp-content { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 16px 20px 0; overflow: hidden; }
.tx-shape-picker-dialog .tsp-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tx-shape-picker-dialog .tsp-pager { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--bm-text-secondary); }
.tx-shape-picker-dialog .tsp-pager .md-button { margin: 0; }
.tx-shape-picker-dialog .tsp-table-wrap { flex: 1; min-height: 240px; overflow: auto; border: 1px solid var(--bm-border); border-radius: var(--bm-r-lg); }
.tx-shape-picker-dialog .tsp-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tx-shape-picker-dialog .tsp-table th {
  position: sticky; top: 0; z-index: 1; background: var(--bm-surface-2);
  text-align: left; padding: 10px 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--bm-text-secondary); border-bottom: 1px solid var(--bm-border);
}
.tx-shape-picker-dialog .tsp-table td { padding: 10px 12px; border-bottom: 1px solid var(--bm-border); font-size: 13px; }
.tx-shape-picker-dialog .tsp-col-check { width: 52px; text-align: center !important; }
.tx-shape-picker-dialog .tsp-row { cursor: pointer; }
.tx-shape-picker-dialog .tsp-row:hover td { background: var(--bm-surface-2); }
.tx-shape-picker-dialog .ctd-actions { align-items: center; gap: 10px; }
.tx-shape-picker-dialog .ctd-btn--save md-icon { margin-right: 4px; color: inherit; }
