.ds-table-edit-bar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

/* Prevent mobile H-scroll while table-editing; allow vertical page scroll */
body.portfolio-table-edit,
body.portfolio-table-edit-pending {
  overflow-x: hidden;
  overflow-y: auto;
}
body.portfolio-table-edit #holdings-table-container,
body.portfolio-table-edit .ds-group-body {
  overflow-x: auto;
  max-width: 100%;
}
body.portfolio-table-edit #assets-table.ds-table-edit,
body.portfolio-table-edit #liabilities-table.ds-table-edit,
body.portfolio-table-edit #re-table.ds-table-edit {
  max-width: 100%;
}
@media (max-width: 640px) {
  body.portfolio-table-edit .ds-table-edit .ds-input--cell,
  body.portfolio-table-edit .ds-table-edit select.ds-input,
  body.portfolio-table-edit .ds-table-edit .ds-combobox-input {
    min-width: 0;
    font-size: 16px; /* iOS no-zoom */
  }
  /* On small screens footer holds Cancel/Review (header is cramped) */
  .ds-table-edit-header-actions .ds-snapshot-action-btn--review {
    /* keep both if space allows */
  }
}
