.filter-panel {
  display: flex;
  flex-direction: column;
  /* the rows keep off the card's left edge */
  /* padding-left: 8px; */
}

.filter-card-header  {
  display: flex;
  align-items: center;
  gap: 2px;
  /* a little more room than the controls need: the caret's disc is 20px,
     and in a line of exactly that height the bolt touches both edges */
  min-height: 26px;
  /* the controls keep off the card's right edge; the rows do not need it,
     their scrollbar takes the last few pixels anyway */
  padding-right: 8px;
  padding-left: 8px;
  background-color: #fdca00;
}

/* the title: an unstyled button taking whatever the two controls leave */
/* !important beats the global button rule (00_global.css gives every
   button a yellow border), which is not wanted on these controls */
.filter-title {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 2px 0;
  border: none !important;
  background: none !important;
  color: #041a2f;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

/* The filter's name reads larger than the rows it filters. 12px, not
   more: "Geneesmiddelen" is 113px at this size, and the 1/6 column leaves
   the name 121px at a 1366px viewport once the bolt and the caret have
   taken their share — 13px would break the word mid-way. */
.filter-title .filter-text {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.filter-body {
  padding-top: 4px;
  padding-left: 12px;
}

/* one row: its checkbox (or header) and its caret on one line, the
   children in a collapse that takes a line of its own below. The block
   carries a subtle divider, so each molecule (and each indication) is
   separated from the next; the children stay inside their parent's block */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid #eceef1;
  padding-bottom: 1px;
}

.filter-rows > .filter-group:last-child {
  border-bottom: none;
}

/* --- filter panel ------------------------------------------------------ */

/* The filter column's card keeps the shared look but hands its side chrome
   to the panel: in a 1/6 column the 13px filter name, the bolt and the
   caret are already 162px wide together, and the card's own padding and
   border would leave them 158px. */
#settings-filters-column.card-basic {
  padding-left: 0;
  padding-right: 0;
  border-left-width: 4px;
  border-right-width: 4px;
}

/* one filter is a block of its own: a clear rule and some air between it
   and the next, so the three read as separate groups rather than one list */
.filter-panel + .filter-panel {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid #d6dbe1;
}

/* the rows scroll; the title and the two controls stay in view. The gutter
   is always reserved, so the carets do not shift when the list grows */
.filter-rows {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

/* the bolt and the caret are separate buttons a couple of pixels apart;
   the caret keeps its distance so the two do not read as one target */
.filter-card-header .filter-caret-toggle {
  margin-left: 6px;
}

/* the button that opens the rows, in a grey disc so it reads as a button
   and offers a real target. Every property bootstrap's .btn also sets
   needs !important: bootstrap's stylesheet lands after this one, so a
   plain rule loses to it and the disc renders as a 6px-radius rectangle. */
.filter-caret-toggle {
  flex: 0 0 auto;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 17px !important;
  height: 17px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background-color: white !important;
  line-height: 1;
  cursor: pointer;
}

.filter-caret-toggle:hover {
  background-color: #dfe3e7 !important;
}

.filter-caret {
  font-size: 8px;
  line-height: 1;
  color: #555555;
}

/* the group caret: a small, unstyled button at the right end of its row,
   centred on it and lined up with the filter title's own caret */
.filter-caret-button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 2px;
  border: none !important;
  background: none !important;
  line-height: 1;
  cursor: pointer;
}

/* the quick-actions dropdown: a borderless bolt button and, under it, the
   two controls it hides */
.filter-quick-actions {
  flex: 0 0 auto;
}

/* the bolt: no chrome of its own, sized to its icon */
.filter-quick-actions-toggle {
  flex: 0 0 auto;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  line-height: 1;
  cursor: pointer;
}

/* the bolt is the whole button; bootstrap's own dropdown caret would
   otherwise sit beside it, take flex space and push the bolt off centre */
.filter-quick-actions-toggle::after {
  display: none !important;
}

.filter-quick-actions-icon {
  display: block;
  width: 12px;
  height: 12px;
  margin: 0;
}

.filter-quick-actions .dropdown-menu {
  min-width: 0;
  padding: 4px;
}

.filter-quick-actions .dropdown-menu.show {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-button {
  flex: 0 1 auto;
  white-space: nowrap;
  border: 1px solid #fdca00 !important;
  background-color: white !important;
  color: #041a2f !important;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 10px;
  line-height: 1.8;
  font-weight: 600;
  cursor: pointer;
}

.filter-button:hover {
  background-color: #fdca00 !important;
}



/* the row and its caret share one line that never wraps */
.filter-group-row {
  display: flex;
  align-items: center;
  width: 100%;
}

/* The row always fills the line (basis 0, then grow), so the caret stays
   flush right whatever the label does — with flex-basis auto a long label
   pushed the caret along with it on narrow columns. min-width lets the row
   shrink below its content, and the label wraps instead of being clipped. */
.filter-group-row > .filter-row {
  flex: 1 1 0;
  min-width: 0;
  /* a guaranteed gap between a wrapped label's last word and the caret */
  padding-right: 4px;
}

/* A selectable row whose name is its own toggle: the box keeps its place
   and the name takes the line's free space, so the caret stays flush
   right — the job .filter-row does on a row whose label sits in the box. */
.filter-group-row > .filter-row--select {
  flex: 0 0 auto;
}

.filter-group-row > .filter-row-label--toggle {
  flex: 1 1 0;
  min-width: 0;
}

.filter-group-row .filter-row label {
  overflow-wrap: anywhere;
}

.filter-group-row > .filter-caret-button,
.filter-group-row > .filter-caret--empty {
  flex: 0 0 auto;
}

.filter-group > .collapse,
.filter-group > .collapsing {
  flex: 1 0 100%;
}

/* scoped two classes deep so these win over bootstrap's .form-check
   defaults whatever order the stylesheets load in; 1.5em is bootstrap's
   own checkbox padding, kept so every row's box lines up with its label */
.filter-panel .filter-row {
  margin-bottom: 0;
  padding-left: 1.5em;
  /* bootstrap's .form-check reserves 1.5rem of height; at the filter's
     11px text that is most of a blank row */
  min-height: 0;
}

/* the rows of one filter read as a list: keep them tight — the global
   stylesheet gives every label an 8px bottom margin, which is most of a
   row's height here */
.filter-panel .filter-row label {
  display: block;
  margin-bottom: 2px;
  line-height: 1.25;
}

/* a clear step deeper: a brand under its molecule, a sub-indication
   under its parent (bootstrap's own checkbox padding is the base) */
.filter-panel .filter-row--child {
  padding-left: 4.5em;
}

/* the filter's own checkbox look, styled from the project stylesheet
   rather than bootstrap */
.filter-panel .filter-checkbox {
  width: 0.9em;
  height: 0.9em;
  margin-top: 0.2em;
  cursor: pointer;
  background-color: #fdca00;
}

/* A ticked box keeps the panel's yellow instead of bootstrap's blue, so
   the black tick the global stylesheet draws stays legible on it. */
.filter-panel .filter-checkbox:checked {
  background-color: #fdca00;
  border-color: #d5a800;
}


/* A child row that carries a colour box: the row fills the line and the
   box keeps its size at the right edge. */
.filter-child-row {
  display: flex;
  align-items: center;
}

.filter-child-row > .filter-row {
  flex: 1 1 0;
  min-width: 0;
}

.filter-swatch {
  flex: 0 0 auto;
  width: 0.9em;
  height: 0.9em;
  border-radius: 2px;
}

.filter-panel .filter-row--header {
  font-weight: 600;
}


/* the client's request: the filter panel reads smaller than the tables */
.filter-text {
  font-size: 11px;
  line-height: 1.4;
}

.filter-text--parent {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  border: none !important;
  background: none !important;
  color: #041a2f;
  text-align: left;
  cursor: pointer;
}
/* ---- Instellingen card (PRA-16): free content in a filter card's frame ---- */

/* the card's content keeps the rows' small type and right-hand margin */
.settings-body {
  padding-right: 8px;
  font-size: 11px;
  color: #041a2f;
}

.settings-subheading {
  font-weight: 600;
  margin-bottom: 4px;
}

/* one setting per line: the table's name, its number field to the right */
.settings-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 0;
  border-bottom: 1px solid #eceef1;
}

/* the global stylesheet gives every label an 8px bottom margin */
.settings-body .settings-label {
  margin-bottom: 0;
  line-height: 1.25;
}

.settings-body .settings-input {
  width: 4.5em;
  flex: 0 0 auto;
  padding: 1px 4px;
  font-size: 11px;
  text-align: right;
  border: 1px solid #d6dbe1;
  border-radius: 3px;
}
