/* Filter controls — an inline search + dropdown filter row above a list. */

.c-controls {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-block-end: var(--space-md);
}
/* Inside a c-toolbar the surrounding box owns the spacing. */
.c-controls--flush { margin-block-end: 0; }

.c-controls__field { display: flex; flex-direction: column; gap: 5px; }
.c-controls__field label {
  font-size: 12.5px;
  font-weight: var(--fw-label);
  color: var(--ink-3);
}
.c-controls__search { flex: 1; min-width: 180px; }
.c-controls__field select,
.c-controls__field input { width: auto; min-width: 150px; }
/* A select is as wide as its widest option, and programme names run past 40
   characters — unbounded, one of them pushes the rest of the row onto a second
   line. The open list still shows each label in full. */
.c-controls__field select { max-width: 260px; text-overflow: ellipsis; }
.c-controls__search input { width: 100%; }
/* Push the trailing field (the Filter submit button) to the right end of the row. */
.c-controls__field:last-child { margin-inline-start: auto; }
