/* 09-contract-document.css: a generated contract in the house style. The contract PDF inlines
   this file (contracts.generator.pdf), so it holds the document only.
   Loaded by base.html, one <link> per file in number order; a later file wins on source order. */

/* ===========================================================================
   The contract document (HEA-416): contracts/_contract_document.html. The
   step 2 preview draws it on a white sheet, as the S6 wireframe does; the
   PDF renders the same markup, with a print sheet on top. Values from the contract
   carry a pale green mark, a missing value a salmon one, both as sampled
   from the wireframe (#e9efe7, #fde3dc on #a3321c); the free block sits on
   the wireframe's warm tint (#fdf1d6, the warning token).
   =========================================================================== */
.contract-doc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.75rem 2rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  min-height: 28rem;
}

.contract-doc__part + .contract-doc__part {
  border-top: 1px dashed var(--color-border);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.contract-doc__part-title {
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.contract-doc__block {
  margin-bottom: 0.6rem;
}

.contract-doc__block p {
  margin: 0 0 0.35rem;
}

/* A block's heading line: the weight the reference tab gives its article heads (<strong>). */
.contract-doc__head {
  font-weight: 700;
}

.contract-doc__block ul {
  margin: 0 0 0.35rem;
  padding-left: 1.25rem;
}

.contract-doc__table {
  border-collapse: collapse;
  margin: 0 0 0.35rem;
}

.contract-doc__table td {
  padding: 0.1rem 1rem 0.1rem 0;
  vertical-align: top;
}

.contract-doc__value {
  background: #e9efe7;
  border-radius: 3px;
  padding: 0 0.25rem;
}

.contract-doc__missing {
  background: #fde3dc;
  color: #a3321c;
  border-radius: 3px;
  padding: 0 0.25rem;
}

.contract-doc__block--extra {
  background: var(--color-warning-bg);
  padding: 0.4rem 0.6rem;
}

.contract-doc__block--undecided {
  border-left: 3px solid var(--color-warning-fg);
  padding-left: 0.6rem;
}

.contract-doc__flag,
.contract-doc__empty {
  color: var(--color-muted);
  font-size: 0.75rem;
  margin: 0 0 0.35rem;
}

.contract-doc__signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.contract-doc__signature-line {
  display: block;
  border-bottom: 1px solid var(--color-text);
  height: 2.5rem;
  margin-bottom: 0.3rem;
}

/* ===========================================================================
   The addendum document (HEA-203): contracts/_addendum_document.html, the
   shared frame around a template's content block. It sits on the contract
   document's sheet and type; the title and the parties follow the PO's
   signed example.
   =========================================================================== */
.addendum-doc__title {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.addendum-doc__parties {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.addendum-doc__parties li {
  margin-bottom: 0.35rem;
}

.addendum-doc__content {
  margin: 0.75rem 0;
}

.addendum-doc__role {
  color: var(--color-muted);
}

/* Step 4's file name (addendum_document.html): the whole name in a narrow card, broken anywhere
   rather than pushing past the card's edge. */
.addendum-document__filename {
  overflow-wrap: anywhere;
}

/* Step 4's card buttons mix link-buttons (PDF openen) and POST buttons (versturen, status
   ophalen), outline and dark, each with its own border, padding and display. One fixed height,
   as step 3's .sign-side__action does, keeps every button in the row on the same edges. */
.addendum-document__actions > a,
.addendum-document__actions > .inline-form > button {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 2.375rem;
  padding-block: 0;
  margin: 0;
}

/* One row of buttons, a form among them a button like its neighbours, not an inline box on its
   own baseline; the gap is the one the link and the button had as inline boxes. */
.addendum-document__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.addendum-document__actions > .inline-form {
  display: flex;
}
