/* DevCure (ew2/web/devcure.js): client-side procurement. Uses the app's tokens. */
.dc { padding-block: 8px 48px; }
.dc-hero h1 { margin: 4px 0 6px; }
.dc-new { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.dc-new .dc-name { flex: 1 1 280px; min-width: 0; }
.dc-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.dc-list li { display: flex; gap: 10px; align-items: center; }
.dc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .dc-grid { grid-template-columns: minmax(0, 1fr); } }
.dc-form { display: grid; gap: 14px; }
.dc-field { display: grid; gap: 6px; min-width: 0; }
.dc-field > label { font-weight: 600; }
.dc-req { color: var(--ink, #123E35); }
.dc-multi { display: grid; gap: 4px; }
.dc-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.dc-weights { display: grid; gap: 6px; }
.dc-weight { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-weight: 400; }
.dc-rec { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); background: var(--sheet, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; }
@media (max-width: 900px) { .dc-rec { position: static; } }
.dc-top { font-size: 1.1rem; margin: 6px 0; }
.dc-working table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dc-working th, .dc-working td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.dc-choice { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.dc-choice textarea { width: 100%; box-sizing: border-box; }
.dc-signed { font-weight: 600; color: var(--ink, #123E35); }
.dc-missing { margin: 6px 0 0; padding-left: 18px; }
.dc select, .dc input[type="text"], .dc input[type="number"], .dc input[type="date"], .dc textarea {
  font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm, 8px); background: var(--sheet, #fff); color: var(--ink);
}
.dc-field > select, .dc-field > input { width: 100%; box-sizing: border-box; }
.dc-weight select { padding: 5px 8px; min-width: 64px; }
.dc-tender { margin-top: 28px; background: var(--sheet, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 10px; min-width: 0; }
.dc-tender:empty { display: none; }
.dc-checks li.dc-block { color: #9D2B25; font-weight: 600; }
.dc-docs { list-style: none; padding: 0; display: grid; gap: 10px; }
.dc-docs li { display: grid; gap: 6px; }
.dc-signrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; }
.dc-upload { display: grid; gap: 8px; }
.dc-findings li.sev-high { color: #9D2B25; }
.dc-clar li { display: grid; gap: 6px; margin-bottom: 12px; }
.dc-flag { border-left: 4px solid #d9a43b; background: #FFF4DC; padding: 8px 10px; border-radius: 0 8px 8px 0; margin: 6px 0; }
.dc-flag.high { border-color: #9D2B25; background: #FBECEA; }
.dc-returns { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.dc-ret-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.dc-ret-list ul { margin: 0; padding-left: 18px; }
.dc-late { background: #FBECEA; color: #9D2B25; }
.dc-eval { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; min-width: 0; }
.dc-eval h4 { margin: 10px 0 2px; }
.dc-score { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dc-score caption { text-align: left; font-weight: 600; padding: 6px 0; }
.dc-score th, .dc-score td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dc-quote { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--line); font-style: italic; }
.dc-exc { display: grid; gap: 6px; margin: 6px 0; }
.dc-panel { display: grid; gap: 6px; }
.pill.dc-pass { background: #E7F4EA; color: #1F6B3A; }
.pill.dc-fail { background: #FBECEA; color: #9D2B25; }
.pill.dc-waived, .pill.dc-reading { background: #FFF4DC; color: #8A5A00; }
.dc-price, .dc-nego, .dc-usage { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; min-width: 0; }
.dc-heat { border-collapse: collapse; font-size: .85rem; }
.dc-heat th, .dc-heat td { padding: 3px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.dc-heat-low, .dc-heat-missing { background: #FBECEA; color: #9D2B25; font-weight: 600; }
.dc-heat-high { background: #FFF4DC; color: #8A5A00; font-weight: 600; }
.dc-heat-watch { background: #F7F7F2; }
.dc-heat-level { background: #E7F4EA; color: #1F6B3A; }
.dc-sessions { margin: 0; padding-left: 20px; }
.dc-back { font-weight: 600; text-decoration: none; }

/* the tender opening register (ew2/devcure_opening.py): the three ticks sit apart from the G-1 to G-6 lines */
.dc-bond > .dc-upload, .dc-opening .dc-ret-list > li > .dc-upload { margin-top: 10px; }

/* Second super-user pass (12 November 2026): the stages of a procurement and its one next step at the top of the page;
   the questions folded once signed off; the approvers as rows; a document's status beside its name. */
.dc-stage { display: grid; gap: var(--ds-3, 12px); margin: var(--ds-4, 16px) 0 var(--ds-6, 24px); min-width: 0; }
.dc-stage[hidden] { display: none; }
.dc-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.dc-st { min-width: 0; }
.dc-st > button, .dc-st > .dc-st-off { width: 100%; min-height: 44px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; text-align: left;
  font: inherit; color: var(--ink, #123E35); background: var(--sheet, #fff); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 0 0 10px 10px; padding: 8px 10px; box-sizing: border-box; }
.dc-st > button { cursor: pointer; }
.dc-st > button:hover { border-color: var(--ink, #123E35); }
.dc-st > button:focus-visible { outline: 3px solid var(--ds-lime-press, #afe25c); outline-offset: 2px; }
.dc-st-n { grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: #EEF1EC; color: var(--ink, #123E35); }
.dc-st-name { font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }
.dc-st-word { font-size: .8rem; color: var(--ink-2, #4B5F59); }
.dc-st-done > button { border-top-color: var(--ink, #123E35); }
.dc-st-done .dc-st-n { background: var(--ink, #123E35); color: #fff; }
.dc-st-now > button { border-top-color: var(--ds-lime-press, #afe25c); background: #F6FCEB; }
.dc-st-now .dc-st-n { background: var(--ds-lime, #c4f578); }
.dc-st-later .dc-st-name, .dc-st-later .dc-st-word { color: var(--ink-2, #4B5F59); }
.dc-stage .next-step { margin: 0; }
.dc-flash { animation: dc-flash 1.6s ease-out 1; }
@keyframes dc-flash { 0% { box-shadow: 0 0 0 4px var(--ds-lime, #c4f578); } 100% { box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: reduce) { .dc-flash { animation: none; outline: 3px solid var(--ds-lime-press, #afe25c); } }
[id^="dc-s-"] { scroll-margin-top: calc(84px + env(safe-area-inset-top, 0px)); }
[id^="dc-s-"]:focus { outline: none; }
@media (max-width: 900px) {
  .dc-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .dc-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dc-fold { min-width: 0; }
.dc-fold > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; list-style: none; min-height: 44px; }
.dc-fold > summary::-webkit-details-marker { display: none; }
.dc-fold > summary h2 { margin: 0; display: inline; }
.dc-fold > summary h2::before { content: "\25B8"; display: inline-block; width: 1.1em; color: var(--ink-2, #4B5F59); }
.dc-fold[open] > summary h2::before { content: "\25BE"; }
.dc-fold[open] > summary { margin-bottom: 12px; }
.dc-fold:not([open]) { background: var(--sheet, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; }
/* the approvers: one row a person (the email, the role, the six gates on one line, the authority) */
.dc-approvers { margin-top: 28px; display: grid; gap: 10px; min-width: 0; }
.dc-approvers h2 { margin: 0; }
.dc-approver-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dc-approver { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; background: var(--sheet, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.dc-approver input[type="email"] { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm, 8px); background: var(--sheet, #fff); color: var(--ink); width: 100%; box-sizing: border-box; min-width: 0; }
.dc-approver > select { width: 100%; box-sizing: border-box; min-width: 0; }
.dc-approver > .btn { justify-self: end; }
.dc-gates { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.dc-gates .dc-check { align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; min-height: 32px; box-sizing: border-box; cursor: pointer; }
.dc-gates .dc-check:has(input:checked) { background: #F6FCEB; border-color: var(--ds-lime-press, #afe25c); font-weight: 600; }
.dc-approver > select[aria-label="Authority"] { grid-column: 1 / span 2; }
.dc-approver > span:not(.dc-gates) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.dc-approver > span:not(.dc-gates) input { width: 100%; box-sizing: border-box; min-width: 0; }
@media (max-width: 640px) {
  .dc-approver { grid-template-columns: minmax(0, 1fr); }
  .dc-approver > select[aria-label="Authority"] { grid-column: auto; }
  .dc-approver > .btn { justify-self: start; }
  .dc-gates .dc-check { min-height: 44px; padding: 8px 14px; }
  .dc-approver > span:not(.dc-gates) { grid-template-columns: minmax(0, 1fr); }
}
/* a tender document: its name, its revision and its status on one line where there is room; the pill keeps to its words */
.dc-docs li { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dc-docs li > .act-link { justify-self: start; min-width: 0; overflow-wrap: anywhere; }
.dc-docs li > .pill { justify-self: end; white-space: nowrap; }
.dc-docs li > .dc-signrow, .dc-docs li > .dc-flag { grid-column: 1 / -1; }
@media (max-width: 640px) { .dc-docs li { grid-template-columns: minmax(0, 1fr); } .dc-docs li > .pill { justify-self: start; } }
/* the usage table: a heading breaks between words, never inside one; a long address wraps in its own cell */
.dc-usage th { overflow-wrap: normal; word-break: normal; hyphens: none; vertical-align: bottom; }
.dc-usage td:first-child { overflow-wrap: anywhere; }
.dc-use-total, .dc-use-month { display: block; font-variant-numeric: tabular-nums; }
.dc-use-month { white-space: nowrap; }
.dc-list li { flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dc-list li > .act-link { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.dc-list li > .pill { white-space: nowrap; }
.dc-stage-pill { background: #F6FCEB; color: var(--ink, #123E35); }
.dc-stages { align-items: stretch; }
.dc-st { display: flex; }
.dc-st > button, .dc-st > .dc-st-off { align-content: center; }
.dc-grid-folded { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.dc-grid-folded .dc-rec { position: static; border: 0; padding: 0; background: none; }
.dc-fold[open] .dc-rec { margin-top: 4px; }
/* eight tenderers (stress, 12 November 2026): a wide table inside a part of the evaluation scrolls in its own box and
   never widens the part (the bid-rigging screens ran 9 px past a 1,280 px screen) */
.dc-eval, .dc-price, .dc-nego, .dc-usage, .dc-returns, .dc-tender { grid-template-columns: minmax(0, 1fr); }
.dc-eval > *, .dc-price > *, .dc-nego > *, .dc-usage > *, .dc-returns > *, .dc-tender > * { min-width: 0; }
.dc-nego table, .dc-price table { max-width: 100%; }
/* one tenderer a fold in the scores and the moderation: its name, what is left, and the table inside */
.dc-tfold { border: 1px solid var(--line); border-radius: 12px; background: var(--sheet, #fff); min-width: 0; }
.dc-tfold > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 14px; min-height: 44px; box-sizing: border-box; list-style: none; }
.dc-tfold > summary::-webkit-details-marker { display: none; }
.dc-tfold > summary strong { min-width: 0; overflow-wrap: anywhere; flex: 1 1 240px; }
.dc-tfold > summary strong::before { content: "\25B8"; display: inline-block; width: 1.1em; color: var(--ink-2, #4B5F59); }
.dc-tfold[open] > summary strong::before { content: "\25BE"; }
.dc-tfold > summary .pill { white-space: nowrap; }
.dc-tfold[open] { padding-bottom: 10px; }
.dc-tfold > :not(summary) { margin-inline: 14px; }
.dc-agree { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
/* the size walk on DevCure with eight tenderers (12 November 2026) */
.dc-tick-cell { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.dc-add-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dc-add-row input { flex: 1 1 240px; min-width: 0; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm, 8px); background: var(--sheet, #fff); color: var(--ink); }
.dc-upload > .btn { justify-self: start; }
.dc-heat th, .dc-heat td { overflow-wrap: normal; word-break: normal; hyphens: none; }
.dc-heat th { min-width: 11ch; vertical-align: bottom; }
.dc-heat td:first-child, .dc-heat th:first-child { min-width: 16ch; }
@media (max-width: 1099px) { .dc-gates .dc-check { min-height: 44px; padding: 8px 14px; } }
