/*
 * Toolbar — the boxed control strip above a list/table, stacked in rows:
 *   1. the page's primary action (c-toolbar__cta), right-aligned
 *   2. quick-filter tabs (c-views)
 *   3. filter controls (c-controls), full width, the submit button at the right end
 *
 * The box is a flex column, so DOM order IS visual order — the CTA row is first
 * in the markup on every page. Keep it that way rather than reordering here, so
 * reading a page's HTML tells you what it renders.
 * All inside one raised-cream surface so the controls read as a single bar
 * distinct from the table panel below.
 *
 * Compose: c-views + c-controls go in .c-toolbar__filters (add their --flush
 * modifier so the box owns the spacing); the action goes in .c-toolbar__cta.
 */

.c-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--surf-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--space-sm) var(--space-md);
  margin-block-end: var(--space-md);
}

/* Pager variant — sits BELOW its table, so flip the margin to the top. */
.c-toolbar--pager { margin-block: var(--space-md) 0; }

/* Stacked rows — tabs above the filter controls, each spanning the full width. */
.c-toolbar__filters {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Primary action — its own row, button(s) pinned to the right. */
.c-toolbar__cta {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

@media (max-width: 560px) {
  .c-toolbar__cta .c-btn { width: 100%; justify-content: center; }
}
