/* The slim top bar: a back affordance, an optional centred title, and actions.
 * Used by the holdings list shell, the transaction editor and the rule editor. */
@layer components {
  .nav-bar {
    align-items: center;
    block-size: 3.5rem;
    display: flex;
    gap: var(--inline-space);
    justify-content: space-between;
    padding-block-start: var(--block-space-half);
    padding-inline: var(--inline-space-double);
  }

  .nav-bar__back {
    align-items: center;
    color: var(--color-ink-medium);
    display: flex;
    font-size: var(--text-large);
  }

  .nav-bar__title {
    color: var(--color-ink-medium);
    flex-grow: 1;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
