/* The Job work screen.
 *
 * EVERY COLOUR AND EVERY CORNER COMES FROM A TOKEN (D25). And every class this
 * screen uses has a rule here -- a class with no rule behind it draws as a bare
 * browser default and no check can see it.
 */

.k-jobwork__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

/* Every job. It comes down while a form is open and comes straight back when
 * it closes. */
.k-jobwork__list {
  display: block;
  min-width: 0;
}

.k-jobwork__form {
  display: block;
  min-width: 0;
}

.k-jobwork-form {
  margin: 0 0 16px;
}

/* The four things about the job itself, above the material. They wrap, so on a
 * phone they stack instead of squeezing. */
.k-jobwork-form__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  min-width: 0;
}

.k-jobwork-form__what {
  margin: 16px 0 4px;
  font-size: 1rem;
}

/* The lines of an assignment are the shared format now
 * (`components/lines.js`) -- what a line is, how wide each box is, where the
 * words over a box go and when they are shown all live there. What is left here
 * is only what is true of THIS screen's boxes. */
.k-jobwork-line__qty {
  text-align: right;
}

/* THE UNIT IS SHOWN, NOT CHOSEN. Material handed out is a physical amount off a
 * shelf, and the shelf speaks one unit -- so this is a label, not a control. */
.k-jobwork-line__unit {
  color: var(--text-muted);
}