#bm-table {
  background: var(--table-bg);
  border: 1px solid var(--table-border);
  border-radius: 0;
}

#bm-table .table-header {
  border-bottom: 1px solid var(--table-border);
  overflow: hidden;
  background: var(--bg-white);
}

#bm-table .table-header table,
#bm-table .table-responsive table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  background: var(--table-bg);
  table-layout: auto;
}

#bm-table .table-responsive {
  max-height: calc(100vh - 130px);
  overflow: auto;
}

#bm-table th,
#bm-table td {
  border: 1px solid var(--table-border);
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.25;
  color: var(--table-text);
  background: var(--table-bg);
  vertical-align: middle;
}

#bm-table th {
  background: var(--table-header-bg);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  z-index: 2;
}

#bm-table td {
  font-weight: 500;
}

#bm-table tbody tr:hover td {
  background: var(--row-hover);
}

#bm-table td.drag-selected {
  background: var(--row-selected) !important;
}

#bm-table .status-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
}

#bm-table .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

#bm-table .status-cell.is-live {
  color: var(--status-live);
}

#bm-table .status-cell.is-die {
  color: var(--status-die);
}

#bm-table .status-cell.is-warn {
  color: var(--status-warn);
}

#bm-table .status-cell.is-muted {
  color: var(--status-muted);
}

#bm-table .bm-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#bm-table .bm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 13px;
  flex-shrink: 0;
}

#bm-table .bm-name-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
  gap: 2px;
  line-height: 1.2;
}

#bm-table .bm-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#bm-table .bm-name-link {
  color: var(--table-text);
  font-weight: 700;
  text-decoration: none;
}

#bm-table .bm-name-link:hover {
  text-decoration: none;
}

#bm-table .bm-sub-id {
  font-size: 12px;
  color: var(--table-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

#bm-table .bm-rename-trigger {
  cursor: pointer;
  font-size: 12px;
  color: #94a3b8;
}

#bm-table .bm-rename-trigger:hover {
  color: #475569;
}

#bm-table .role-tag {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  color: var(--table-text);
}
