/* ================================================================
   <bm-table>: a table icon + [schema.]name, monospace, one line, cut with
   "…" (the whole on hover). Sized by its context (em): a dialog header, a
   row, a chip. The schema is subdued so the name reads first.
   ================================================================ */
bm-table { display: inline-flex; min-width: 0; max-width: 100%; vertical-align: middle; }
.bm-table { display: inline-flex; align-items: center; gap: .4em; min-width: 0; max-width: 100%; }
/* A table: a grid with a filled header row (drawn, not a font glyph), in the connection's accent colour */
.bm-table__icon {
  flex: 0 0 auto; width: 1.15em; height: 1.15em; min-width: 14px; min-height: 14px;
  color: var(--bm-teal-600, #0D9488);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.bm-table__icon .bm-table__head { fill: currentColor; fill-opacity: .18; stroke: none; }
.bm-table__text {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--bm-font-mono, 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace);
  color: inherit;
}
.bm-table__name { font-weight: 600; }
.bm-table__schema { color: var(--bm-text-secondary, #4B5563); font-weight: 400; }
.bm-table__sep, .bm-table__arrow { color: var(--bm-text-muted, #6B7280); font-weight: 400; }
.bm-table__previous { color: var(--bm-text-muted, #6B7280); text-decoration: line-through; font-weight: 400; }
.bm-table--deleted .bm-table__name { text-decoration: line-through; color: var(--bm-error-text, #B91C1C); }
.bm-table--deleted .bm-table__icon { color: var(--bm-error-text, #B91C1C); }
.bm-table--muted { opacity: .5; }
.bm-table--muted .bm-table__icon { color: var(--bm-text-muted, #9CA3AF); }
/* On a dark header (dialog toolbars): icon and schema take the text colour */
md-toolbar .bm-table__icon, .md-toolbar-tools .bm-table__icon { color: currentColor; }
md-toolbar .bm-table__schema, md-toolbar .bm-table__sep, .md-toolbar-tools .bm-table__schema, .md-toolbar-tools .bm-table__sep { color: inherit; opacity: .8; }
