/* Documents pages: only the widgets unique to the module; facts, form grids, sections and action rows come from
   components.css (task 043 removed the local copies); colours come from theme roles, never literals. */
.documents-page .documents-queues { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block: 0 var(--space-3); }
/* Task 033: the disposal queue; the person's own requests and removed uploads are checklist rows (task 045). */
.documents-page .disposal-scans { margin: 0 0 var(--space-2); padding-inline-start: var(--space-3); }
.documents-page .inline-form { display: inline; margin-inline-start: var(--space-1); }
/* The person's last dissent on a document, quoted under its date (task 045). */
.documents-quote { margin: var(--space-1) 0 var(--space-2); padding-inline-start: var(--space-2); border-inline-start: 3px solid var(--line); color: var(--ink-2); }
/* Task 052b item 5: the one irreversible step says so in normal text beside its button, never in a grey help line. */
.signature-irreversible { margin: 0; color: var(--ink); font-size: var(--ph-text-md); font-weight: 600; }
/* Task 052e (N27): reached for one duty, the archive names the queue and lists it first; the search and the filters fold
   above the list. The desk tabs wrap on a phone instead of cutting the last label. */
.documents-queue-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); margin: 0 0 var(--space-2); font-size: var(--ph-text-lg); }
.documents-queue-count { color: var(--ink-2); font-size: var(--ph-text-md); font-weight: 400; }
.documents-filters { margin: 0 0 var(--space-2); }
.documents-filters > summary { display: inline-flex; align-items: center; min-height: var(--ph-control-h-touch); color: var(--ink); text-decoration: underline; cursor: pointer; }
.documents-filters[open] > summary { margin-bottom: var(--space-2); }
.documents-page .tabs { flex-wrap: wrap; }
.documents-page .tabs::after { display: none; }
/* Task 052e (C27): the categories the company shares with the consultant, named in normal text above the list. */
.documents-shared { margin: 0 0 var(--space-2); color: var(--ink); font-size: var(--ph-text-md); }
/* Task 052e (B28, A34): what the company asks comes first; «Non sono d'accordo…» is a secondary button that opens its
   side panel (task 342). */
.documents-expected > ul { margin: 0 0 var(--space-1); padding-inline-start: var(--space-3); }
.documents-dissent { margin: 0 0 var(--space-3); }
/* Task 053c (Nina N30, Rosa R34): the signature check comes first; when the signed copy arrived and who uploaded it is
   read before the confirmation; the warning stays with «Conferma la firma…», apart from «Respingi…». */
.signature-uploaded, .signature-original { margin: 0 0 var(--space-2); color: var(--ink); font-size: var(--ph-text-md); }
.signature-verify { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); flex-basis: 100%; }
/* Task 056a (theme 1, Rosa F16, Franco F23): the warning on its own line right above «Conferma la firma…», whose side
   panel repeats it (task 342). */
.signature-verify > .signature-irreversible { flex-basis: 100%; }
/* Task 056a (theme 1, Franco F22 F29): reached for one duty, the count of the queue under the page's title. */
.documents-page > .documents-queue-count { margin: 0 0 var(--space-2); }
/* Task 053c (Franco F26): what a submission only names in words is listed apart from its attached files. */
.submission-words { margin: 0 0 var(--space-2); padding-inline-start: var(--space-3); }
.submission-words > li { margin-bottom: var(--ph-space-05); }
.submission-words .cell-note { display: block; }
/* Task 054c (theme 4, Nina N23, Franco F28): what «Blocco legale» is, beside its name, in the ink of the text. */
.document-hold-gloss { display: block; color: var(--ink); font-size: var(--ph-text-sm); font-weight: 400; }
/* Task 098 (Franco F42 F43, vocabulary rule 6): a button that keeps or delivers a company document stands on a row of
   its own with what it does beside it, and what a delivery means is said above the buttons that deliver, both in the
   ink of the text and never in a grey help line. A long label wraps inside its button on a phone. */
.documents-send-choice { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0 0 var(--space-2); }
.documents-send-choice > button { padding-block: var(--ph-space-05); }
.documents-send-note { flex: 1 1 18rem; margin: 0; color: var(--ink); }
.documents-send-told { margin: 0 0 var(--space-2); color: var(--ink); font-size: var(--ph-text-md); }
/* Design «Segnale», the desk: categories, search and year on one line; the coverage as a ratio with its chips on one line. */
.documents-ratio { font-variant-numeric: tabular-nums; }
.documents-page .cell-muted { color: var(--ink-2); }
/* The response term of a new document waits until a duty is ticked (it stays visible where :has is not supported). */
.documents-term-later:not(:has(input[type="checkbox"]:checked)) .form-field:has(#field-responseDueOn) { display: none; }
/* From 40rem the toolbar is one line and the coverage and category cells keep to one line; on a phone the toolbar
   stacks as every toolbar does. */
@media (min-width: 40rem) {
  .documents-page .documents-desk-toolbar, .documents-page .documents-archive-toolbar { align-items: center; }
  .documents-desk-toolbar .toolbar-form { flex: 1 1 auto; }
  :is(.documents-desk-toolbar, .documents-archive-toolbar) .search { flex: 1 1 14rem; max-width: 22rem; }
  .documents-desk-toolbar .segments { flex: 0 1 auto; }
  .documents-coverage, .documents-category { white-space: nowrap; }
}
.archive-filters-menu > .menu-panel { display: grid; gap: var(--space-2); padding: var(--space-2); min-width: 18rem; }
.archive-filters-menu .form-field { margin: 0; }
.documents-send-people { margin: 0 0 var(--space-2); }
.documents-send-people > summary { margin-block-end: var(--space-1); }
/* Design «Segnale», «Caricati da me»: a document with no expiry leaves its cell empty, and on a phone no label stands over
   nothing (the shared rule of every stacked table, components.css, task 281); the row's «⋯» keeps the way to remove it. */
/* A document's title in a list (task 291, views/title.ejs): it breaks at the <wbr> after «_», «-» and «.», never inside a
   word or a number; the cell's own rule breaks anywhere, so the title sets its own. */
.document-title { overflow-wrap: break-word; }
/* Task 384, «Carica documenti»: each file a line with its name, who uploaded it and when, its state and its way out; the
   names break between words, never out of the column. A disabled answer tile reads as one that cannot be chosen. On a
   phone (a coarse pointer) an iPhone photo offers the camera; on a computer, the line about saving it as JPEG. */
.uploads-lines { margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.uploads-line { padding: var(--space-2) 0; border-top: var(--border-w) solid var(--line); overflow-wrap: break-word; }
.uploads-line:first-child { border-top: 0; }
.uploads-line > p { margin: 0 0 var(--ph-space-05); }
.uploads-line-meta { color: var(--ink-2); font-size: var(--ph-text-sm); }
.uploads-line.is-to_resolve .uploads-line-state { font-weight: 600; }
.uploads-line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin: var(--space-1) 0 0; }
.uploads-line-actions a { display: inline-flex; align-items: center; min-height: var(--ph-control-h-touch); }
.uploads-replace, .uploads-inline { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-1) var(--space-2); margin: 0; }
.uploads-counts, .uploads-formats { margin: 0 0 var(--space-2); }
.uploads-chosen { margin: 0 0 var(--space-2); padding-left: var(--space-3); overflow-wrap: break-word; }
/* Task 385, the demo alone: the sentence on its reading of the sample files and «Prova con i cedolini di esempio», above the zone. */
.uploads-sample { margin: 0 0 var(--space-1); }
.uploads-sample-form { margin: 0 0 var(--space-3); }
.answer-tile.is-disabled { color: var(--ink-2); cursor: not-allowed; }
.uploads-on-phone { display: none; }
@media (pointer: coarse) {
  .uploads-on-phone { display: flex; }
  .uploads-on-computer { display: none; }
}
/* Task 386: where the reading stands in a batch, and what it proposes for a file: the proposal, the photo's region cropped by
   the SVG viewBox, a disagreement of the two readings, and the one tap. */
.uploads-reading { margin: 0 0 var(--space-2); }
/* The proposal is a group inside the line or the step: a well on the page tone (design-d 068), no rule and no shadow. */
.uploads-proposal { margin: var(--space-1) 0 0; padding: var(--space-2); background: var(--bg); border-radius: var(--radius); overflow-wrap: break-word; }
.uploads-proposal > p { margin: 0 0 var(--ph-space-05); }
.uploads-proposal-confidence { color: var(--ink-2); font-size: var(--ph-text-sm); }
.uploads-crop { display: block; width: 100%; max-width: 20rem; height: auto; border: var(--border-w) solid var(--line); }
.uploads-proposal-disagree { margin: var(--space-1) 0; padding-left: var(--space-2); border-left: var(--border-w) solid var(--ink); }
.uploads-proposal-disagree > p { margin: 0 0 var(--ph-space-05); }
.uploads-proposal-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: var(--space-1) 0 0; }
