/* The stylesheet of conduct track f4 (hearings finished): ConductDecisionMakersComponent (packs/conduct/app/components/conduct_decision_makers_component.rb), the buttons on a hearing, and the sheets of hearing changes, naming, objecting and ruling. A naming is one entry of
   the case page's own list (case-work-entry, 68-case-page-layout.css), which is one wrapping row: a person, a seat and a few facts, a button or two. A naming has more parts than that, so its facts take a line
   each, and the written notices of a conflict go under it, each with the ruling on it at the end of its line, as a hearing's people do (63-conduct.css).

   Tokens only and logical properties only, both enforced (test/styles/tokens_test.rb, test/styles/components_test.rb), so it reads on the light shell and the console, in light and in dark, and mirrors in a
   right-to-left language. Nothing pinned to an edge, no height in vh, and everything that holds words may shrink and wrap, so a language 40% longer never widens the page (WCAG 1.4.10). */

.conduct-decision-makers {
  min-inline-size: 0;
}

.conduct-decision-makers .conduct-naming > :is(.case-work-subheading, .conduct-objections, .conduct-naming-actions, .conduct-naming-conflicts) {
  flex: 1 1 100%;
}

.conduct-objections {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  min-inline-size: 0;
}

.conduct-objection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  min-inline-size: 0;
}

.conduct-objection > .case-work-line {
  flex: 0 1 auto;
  justify-content: flex-start;
}

.conduct-objection > .case-work-inline-form {
  margin-inline-start: auto;
}

.conduct-naming-actions,
.conduct-hearing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.conduct-hearings .case-work-entry > .conduct-hearing-actions {
  flex: 1 1 100%;
}

/* gx4: a conflict that arose after a naming (a badge and the reasons in words), the pool of a seat, and the recordings of a hearing with the reviews of each. All of them are case-work entries; what is here is only
   the lists under an entry and the groups of buttons, as the written notices of a conflict are above. */

.conduct-conflicts {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding-block: var(--space-1) 0;
  padding-inline: var(--space-4) 0;
  min-inline-size: 0;
}

.conduct-pool-members,
.conduct-reviews {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  min-inline-size: 0;
}

.conduct-pool-member,
.conduct-review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  min-inline-size: 0;
}

.conduct-pool-member > .case-work-line,
.conduct-review > .case-work-line {
  flex: 0 1 auto;
  justify-content: flex-start;
}

.conduct-pool .case-work-entry > :is(.case-work-subheading, .conduct-pool-members, .conduct-pool-actions),
.conduct-recordings .case-work-entry > :is(.case-work-subheading, .conduct-reviews, .conduct-recording-actions) {
  flex: 1 1 100%;
}

.conduct-pool-actions,
.conduct-recording-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}
