/* Database roster panel */

.accounts-panel {
  flex: none;
  min-height: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
}

.accounts-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: auto;
  flex: none;
  overflow: visible;
  background: var(--bg-surface);
}

.accounts-table-wrap {
  flex: none;
  min-height: auto;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-surface);
}

.accounts-roster-table {
  width: max(100%, var(--accounts-table-min-w, 860px));
  min-width: var(--accounts-table-min-w, 860px);
  font-size: var(--text-sm);
}

.accounts-roster-table th,
.accounts-roster-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  /* never display:flex/inline on cells — breaks row layout under thead on iOS */
  display: table-cell;
}

.accounts-roster-table th {
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.accounts-roster-table th[data-sort-dir="asc"]::after {
  content: " ↑";
  opacity: 0.7;
}

.accounts-roster-table th[data-sort-dir="desc"]::after {
  content: " ↓";
  opacity: 0.7;
}

.accounts-roster-table th.col-actions,
.accounts-roster-table td.cell-actions {
  cursor: default;
  white-space: nowrap;
}

.accounts-roster-table th.col-actions {
  pointer-events: none;
}

.accounts-roster-table .col-index,
.accounts-roster-table .cell-index {
  width: 2.5rem;
  color: color-mix(in srgb, currentColor 55%, transparent);
}

.accounts-roster-table .cell-actions {
  /* keep table-cell; flex lives on .row-actions inside */
  white-space: nowrap;
  vertical-align: middle;
}

.accounts-roster-table tbody tr:hover td {
  background: color-mix(in srgb, currentColor 4%, transparent);
}

.nav-count {
  margin-left: auto;
  flex-shrink: 0;
  font-size: var(--text-2xs);
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
  padding-left: 0.5rem;
  max-width: 3.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.sidebar-nav--accounts .nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 6px;
  min-width: 0;
}

/* Row overflow menu + icon actions → styles-row-actions.css */
