/* Payslips pages: only what the shared component layer does not cover yet (the send confirmation; the record facts are
   the shared dl.facts of design spec 5.19); colours come from theme roles, never literals. */
.payslips-page .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.payslips-page .inline-form { display: inline; margin-inline-start: var(--space-1); }
.payslips-page .field-help { display: block; }
/* The month's delivery (task 056b, Rosa F12): who receives a payslip in normal text, what cannot be undone in the warning
   box beside the button, then its side panel (task 343). */
.payslips-send [data-send-names] { color: var(--ink); font-size: var(--ph-text-md); }
.payslips-send .alert { margin-bottom: var(--space-2); }
.payslips-send > .field-help { margin-top: var(--space-2); }
.payslips-send > [data-send-left] { margin: var(--space-1) 0 0; }
/* The person's own payslips (task 051b item 13, task 052e): the net sits under the month; the actions cell wraps so the
   amounts line, the receipt line and the report form stay inside the card at 390 (B10, I42), reading left to right. */
.payslip-net { color: var(--ink); font-weight: 600; }
.my-payslips td.row-actions { text-align: left; white-space: normal; }
/* The column keeps room for its lines on a wide screen only; on a phone the card is the width (review round 1, P2-3). */
@media (min-width: 40rem) {
  .my-payslips td.row-actions { min-width: 20rem; }
}
.payslip-actions { align-items: center; }
.payslip-pdf-note, .payslip-ack-lead { flex-basis: 100%; margin: 0 0 var(--space-1); color: var(--ink); font-size: var(--ph-text-md); }
.payslip-ack-lead { margin-top: var(--space-1); }
/* «Scarica» and «Segnala un errore…» are as tall as a thumb (B8b). */
.payslip-download, .payslip-report { display: inline-flex; align-items: center; min-height: var(--ph-control-h-touch); }
.my-payslips .payslip-download .app-icon { width: 1.25rem; height: 1.25rem; }
.my-payslips td.payslip-state:not(:has(.pill))::before { content: none; }
/* Task 052e, the desk. The row actions wrap between their controls inside the cell instead of leaving the table at 1440
   (R40, I18); each control keeps its label on one line. */
.payslips-desk td.row-actions { white-space: normal; }
.payslips-desk .row-actions > .button-ghost, .payslips-desk .row-actions > .inline-form { white-space: nowrap; }
/* The fifth column leaves the name less room: a name wraps between its words, never inside one (I20). */
.payslips-desk .person-cell { min-width: 11rem; }
/* The words the rows use, glossed once above them in normal text (R39, R9). */
.payslips-glosses { margin: 0 0 var(--space-2); color: var(--ink); font-size: var(--ph-text-md); }
.payslips-glosses > p { margin: 0 0 var(--space-1); }
/* A decision taken from a row says so under that row (the jump lands there): the flash spans the row. */
.payslips-row-flash > td { padding-block: var(--space-1); }
.payslips-row-flash .flash { margin: 0; }
.payslips-bulk { margin: 0 0 var(--space-3); }
.payslips-issue { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: var(--space-3) 0; color: var(--ink-2); }
/* The payslip page: where the amounts are, beside the button that opens them (item 4). */
.payslip-pdf { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: 0 0 var(--space-3); color: var(--ink); font-size: var(--ph-text-md); }
/* A chiarimento message: the side, the kind and the time on the author's line (I26). */
.thread-message-facts { color: var(--ink-2); font-size: var(--ph-text-sm); }
/* At 390 the first person comes before the glosses (I27): the list leads, the words it uses follow it. */
.payslips-listing { display: flex; flex-direction: column; }
@media (max-width: 40rem) {
  .payslips-row-flash > td { grid-column: 1 / -1; }
  .payslips-listing > .payslips-glosses { order: 1; margin-top: 0; }
}
/* Task 053c (Rosa R20): the clarification the approval weighs, read beside «Approva»: its subject and whose turn, the
   question and the last answer as the thread shows them, and the way to the thread. */
.record-thread { margin: 0 0 var(--space-3); }
.record-thread-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); margin: 0 0 var(--space-2); }
.record-thread .consultant-messages { margin-bottom: var(--space-2); }
/* Task 373 (rompi-ui 372 #11): the message a reply answers, folded at the top of its panel. */
.thread-quote { margin: 0 0 var(--space-3); padding: var(--space-1) var(--space-2); border-left: 3px solid var(--line); }
.thread-quote p { margin: var(--space-1) 0 0; white-space: pre-wrap; overflow-wrap: break-word; }
.record-thread-label { display: block; color: var(--ink-2); font-size: var(--ph-text-sm); }
/* Task 054a (theme 2, I36): the month names the card, in the weight of an identifier. */
.my-payslips .payslip-month { font-weight: 600; }
/* Task 054a (theme 2, I48): at 390 the note on rows waiting for the consultant follows the table, as the glosses do. */
@media (max-width: 40rem) {
  .payslips-listing > .payslips-awaiting { order: 1; }
}
/* Task 054a (H1): the row says that its closed box sent and changed nothing. */
.payslips-left { flex-basis: 100%; color: var(--ink); }
.record-deliver .alert { margin-bottom: var(--space-2); }
/* Task 056b (Rosa F11): what came of a closed clarification, read like the open one above it (.record-thread), its two
   ways (the thread, the month the action applies to) side by side. */
.record-outcome > p { margin: 0 0 var(--space-1); color: var(--ink); }
.record-outcome-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
/* Task 059a (H2, Iris I14, Rosa R19): while a proposal waits, its acceptance leads the thread with its consequence in
   normal text (vocabulary rule 6), and «Rispondi» carries, beside the button, that a reply keeps it a proposal. */
.thread-accept { margin: var(--space-2) 0 var(--space-3); }
.thread-accept > p { margin: 0; color: var(--ink); font-size: var(--ph-text-md); }
.thread-reply-keeps { color: var(--ink); font-size: var(--ph-text-md); }
/* Task 166: what «Archiviato» means is said once above the person's list, quietly; the import's confirmation leads each
   filed line with the rule it follows, so it reads before the rest of the line. */
.payslip-archived-note { margin: 0 0 var(--space-2); color: var(--ink-2); font-size: var(--ph-text-sm); }
.filing-plan .filing-rule { font-weight: 600; }

/* Task 284 (#13 of task 283): the people of the import review, eight columns too wide for the column beside the menu,
   are cards from the phone up to 80rem as well, three fields to a line, its first cell and its actions each a line of
   their own: nothing on it is reachable only by a sideways scroll. Over 80rem it is the table. */
@media (min-width: 40.0625rem) and (max-width: 79.999rem) {
  .data-table.stack-until-wide, .data-table.stack-until-wide tbody { display: block; }
  .data-table.stack-until-wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data-table.stack-until-wide tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ph-space-05) var(--space-2); padding: var(--ph-space-15) var(--space-2); border-bottom: var(--border-w) solid var(--line); }
  .data-table.stack-until-wide tbody :is(th, td) { display: block; padding: 0; border: 0; text-align: left; }
  .data-table.stack-until-wide tbody th, .data-table.stack-until-wide td.row-actions { grid-column: 1 / -1; }
  .data-table.stack-until-wide td[data-label]::before { content: attr(data-label); display: block; color: var(--ink-2); font-size: var(--text--1); }
  .data-table.stack-until-wide tbody tr.is-attention > :first-child { box-shadow: none; }
  .data-table.stack-until-wide tbody tr.is-attention { box-shadow: inset 3px 0 0 var(--warn); }
  .data-table.stack-until-wide tbody td:empty { display: none; }
}
/* Task 284: the name of an uploaded file is one long word more often than not; it wraps inside its row of the files
   table, so the table never runs past its column on a phone. */
.payslip-files tbody th { overflow-wrap: anywhere; }
/* Tasks 304 and 307: the person and kind of a file sent back were selects in the table, cut at 1440 and on a phone. Since
   task 343 the table reads and the selects live in the «Abbina» side panel, one field each at the panel's width. */
/* Task 305 (#12): on «Dividi per persona» a range of pages («11–12») is one run, never broken after its dash; the line
   may still break between runs, so a long list of pages wraps instead of widening the cell. */
.split-page .split-run { white-space: nowrap; }
/* Task 308 (R1 of the browser pass of task 307): «Dividi il resto» and «Scarta il resto…» on the result of a division
   stand apart from the summary line under them. */
.split-page [data-split-rest] { margin-bottom: var(--space-3); }
/* Task 376 (rompi-ui 375 #11): on «Cedolini dal consulente» why a file has its person, or none, is a row of its own
   under the file's row; the two read as one entry, with no line between them, in the table and in the stacked cards. */
.data-table[data-received] tbody tr:has(+ tr.received-note) > * { border-bottom: 0; }
.data-table[data-received] tbody tr.received-note > td { padding-top: 0; }
@media (max-width: 68.749rem) {
  .data-table[data-received] tbody tr:has(+ tr.received-note) { border-bottom: 0; }
  .data-table[data-received] tbody tr.received-note { padding-top: 0; }
}
/* Task 381: the guided flow of the import from payslips (design/import-cedolini-2026-11-22/prototipo, the owner's choice of
   2026-11-22; round 2, nuovo/confronto.md). One column of 42.5rem (680 px) on every step, the summary, the reading and the
   result. The head is one row: «Indietro» left, «Passo X di Y» in bold and the step's name in the middle, «Esci e
   riprendi dopo» right; on the phone the two links share a row and the progress goes under them. The opening line is
   small and above the question; the answers are tiles, each the whole label with its radio, the answer and its
   consequence, the selected one with a 2 px accent border and a tinted fill. From 720 px the two values of a difference
   stand side by side, the value large (variant B), their texts aligned at the top; below it the tiles stack and say the
   answer in words (variant A), the primary full width in the flow, never a sticky footer, every target at least 44 px.
   «Scelta selezionata» shows only once a tile is chosen and before it is recorded, and the error of an «Avanti» with no
   choice goes once a tile is chosen, by the stylesheet alone. */
.import-flow, .import-result { max-width: 42.5rem; margin-inline: auto; }
.import-flow-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--ph-space-05) var(--space-3); margin: 0 0 var(--space-3); }
.import-flow-head a { display: inline-flex; align-items: center; min-height: var(--ph-control-h-touch); color: var(--accent-text); text-decoration: none; }
.import-flow-head a.import-flow-exit { justify-self: end; color: var(--ink-2); font-size: var(--ph-text-md); }
.import-flow-progress { margin: 0; text-align: center; color: var(--ink-2); font-size: var(--ph-text-md); }
.import-flow-progress strong { color: var(--ink); }
.import-flow-screen { display: block; font-size: var(--ph-text-sm); }
@media (max-width: 44.999rem) {
  .import-flow-head { grid-template-columns: auto auto; justify-content: space-between; }
  .import-flow-progress { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}
.import-flow-opening { margin: 0 0 var(--space-1); color: var(--ink-2); font-size: var(--ph-text-md); }
.import-flow > h1 { margin: 0 0 var(--space-1); overflow-wrap: break-word; }
.import-flow-lead { margin: 0 0 var(--space-3); color: var(--ink-2); }
.import-flow-source { margin: 0 0 var(--space-2); }
.import-flow-source a, .summary-lines a, .import-result a, .import-flow-secondary a { display: inline-flex; align-items: center; min-height: var(--ph-control-h-touch); }
.import-flow-question { margin: 0 0 var(--space-2); padding: 0; border: 0; min-width: 0; }
.import-flow-question:has(input[type="radio"]:checked) > .field-error { display: none; }
.answer-tiles { display: grid; gap: var(--space-2); }
.answer-tile { display: grid; grid-template-columns: 1rem minmax(0, 1fr); align-content: start; gap: var(--ph-space-05) var(--space-2); min-height: var(--ph-control-h-touch); padding: var(--space-3);
  border: var(--border-w) solid var(--line-strong); border-radius: var(--radius-l); background: var(--surface-1); cursor: pointer; }
/* The radio keeps the product's own size (components.css); it sits on the first line of the answer. */
.answer-tile > input { margin-top: 0.25rem; accent-color: var(--accent); }
.answer-tile-words { display: block; }
.answer-tile-answer { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--text-1); overflow-wrap: break-word; }
.answer-tile-value { display: none; }
.answer-tile-then { grid-column: 2; color: var(--ink-2); line-height: 1.45; overflow-wrap: break-word; }
.answer-tile-line { display: block; }
.answer-tile-line + .answer-tile-line { margin-top: var(--ph-space-05); }
.answer-tile-item { display: list-item; margin: var(--ph-space-05) 0 0 var(--space-3); }
.answer-tile:has(> input:checked) { border: 2px solid var(--accent); background: var(--accent-subtle-bg); padding: calc(var(--space-3) - 1px); }
.answer-tile:has(> input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 45rem) {
  .answer-tiles.is-versus { grid-template-columns: 1fr 1fr; }
  .answer-tiles.is-versus .answer-tile-value { display: block; margin: 0 0 var(--ph-space-05); font-family: var(--font-display); font-size: var(--text-4); font-weight: 800; line-height: 1; overflow-wrap: break-word; }
}
.import-flow-note { margin: 0 0 var(--space-2); padding: var(--space-1) var(--space-2); border-left: 3px solid var(--line-strong); color: var(--ink-2); }
/* Task 390 (round 4 R2): the answer recorded under «Avanti». */
.import-flow-state { margin: var(--space-2) 0 0; color: var(--ink-2); }
.import-flow-selected { display: none; margin: 0 0 var(--space-2); color: var(--ink); font-weight: 600; }
.import-flow-form[data-unanswered]:has(input[type="radio"]:checked) .import-flow-selected { display: block; }
.import-flow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: var(--space-2) 0 var(--space-2); }
.import-flow-actions > :is(.button-primary, .button) { min-height: var(--ph-control-h-touch); }
.import-flow-secondary { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); margin: 0; }
.import-flow-secondary a { color: var(--accent-text); }
.import-flow-secondary a.is-danger { color: var(--err); }
@media (max-width: 44.999rem) {
  .import-flow-actions > :is(.button-primary, .button) { width: 100%; justify-content: center; }
}
/* The summary: the registry and the files side by side from 64rem, inside the same column, what follows under them, each
   answer with «Cambia»; the files whose choice is missing outlined in the error colour, and each answer still missing
   beside the button with the way to its step. */
.summary-blocks { display: grid; gap: var(--space-2); margin: 0 0 var(--space-2); }
@media (min-width: 64rem) { .summary-blocks { grid-template-columns: 1fr 1fr; } }
/* Each block is the product's own card (.panel, with its border in a forced colours mode); here only its spacing. */
.summary-block { margin: 0 0 var(--space-2); }
.summary-block.is-missing { border: 2px solid var(--err); }
.summary-block h2 { margin: 0 0 var(--space-1); font-size: var(--text-0); color: var(--ink-2); }
.summary-lines { margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.summary-block .summary-lines { margin: 0; }
.summary-lines li { padding: var(--ph-space-05) 0; border-top: var(--border-w) solid var(--line); line-height: 1.45; overflow-wrap: break-word; }
.summary-lines li:first-child { border-top: 0; }
.summary-missing-line, .summary-missing-line a { color: var(--err); font-weight: 600; }
.summary-warn { margin: 0 0 var(--space-1); }
.summary-missing { flex: 1 1 16rem; margin: 0; padding: 0; list-style: none; }
.summary-missing a { display: inline-flex; align-items: center; min-height: var(--ph-control-h-touch); color: var(--err); font-weight: 600; }
/* The review, «Controlla tutti i dati letti»: the choices left and the way back to the flow lead it. */
.import-flow-card { margin: 0 0 var(--space-3); padding: var(--space-3); border: var(--border-w) solid var(--accent-border); border-radius: var(--radius-l); background: var(--accent-subtle-bg); }
.import-flow-card > p { margin: 0 0 var(--space-2); }
.import-flow-card > p:last-child { margin: 0; }
/* The reading (round 2 P10): the files read large, the bar of the files read out of the files. */
.reading-count { margin: 0 0 var(--space-1); font-family: var(--font-display); font-size: var(--text-1); font-weight: 700; }
.reading-bar { display: block; width: 100%; height: 0.5rem; margin: 0 0 var(--space-2); accent-color: var(--accent); }
/* The result (round 2 P5): what changed, then the import's tables behind «Dettagli dell'importazione». */
.import-result-details { margin: var(--space-3) 0 0; }
.import-result-details > summary { display: flex; align-items: center; min-height: var(--ph-control-h-touch); color: var(--accent-text); cursor: pointer; }
/* Round 3 (P8, N3, N5, N6, P10): the receipts of the flow inside its column; the result's receipt in the tone of what
   happened against the summary's promise, and its two ways on the left under the title; the difference's two values in a
   small line, shown on the phone (the tiles show them large on the computer); the summary's longer lists behind «e altri
   N»; the reading's files behind «Dettagli dei file». */
.import-flow-receipt, .import-result-receipt { margin: 0 0 var(--space-2); padding: var(--space-1) var(--space-2); border-radius: var(--radius); background: var(--ph-ok-bg); }
.import-result-receipt.is-warning { background: var(--ph-warn-bg); }
.import-result-actions { justify-content: flex-start; }
.import-flow-compare { color: var(--ink-2); }
@media (min-width: 45rem) { .import-flow-compare { display: none; } }
.summary-after { margin: 0; }
.summary-more > summary, .reading-files > summary { display: flex; align-items: center; min-height: var(--ph-control-h-touch); color: var(--accent-text); cursor: pointer; }
.reading-files { margin: 0 0 var(--space-3); }
/* Task 390: the person's review page, what asks a choice first and every other value read behind one disclosure, drawn as
   the flow's other disclosures (a chevron before the words, turned down once open). */
.import-person-first, .import-person-rest { margin: 0 0 var(--space-3); }
.import-person-rest > summary { display: flex; align-items: center; gap: var(--space-1); min-height: var(--ph-control-h-touch); color: var(--accent-text); cursor: pointer; list-style: none; }
.import-person-rest > summary::-webkit-details-marker { display: none; }
.import-person-rest > summary::before { content: ""; flex: none; width: 0.45em; height: 0.45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.import-person-rest[open] > summary::before { transform: rotate(45deg); }
/* Round 4 (R8): the disclosures of the flow and of the result show that they open and close, as the product's other
   disclosures do (consultant.css .former-clients): a chevron before the words, turned down once open. */
:is(.summary-more, .reading-files, .import-result-details) > summary { gap: var(--space-1); list-style: none; }
/* Task 390 (round 4 B3): a tap leaves no filled box on the row; the keyboard's focus ring stays (base.css :focus-visible). */
:is(.summary-more, .reading-files, .import-result-details, .import-person-rest) > summary { -webkit-tap-highlight-color: transparent; }
:is(.summary-more, .reading-files, .import-result-details, .import-person-rest) > summary:focus:not(:focus-visible) { outline: none; }
:is(.summary-more, .reading-files, .import-result-details) > summary::-webkit-details-marker { display: none; }
:is(.summary-more, .reading-files, .import-result-details) > summary::before { content: ""; flex: none; width: 0.45em; height: 0.45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
:is(.summary-more, .reading-files, .import-result-details)[open] > summary::before { transform: rotate(45deg); }
/* Round 4 (N6): the complete summary's button in the first screen of a computer (1366 x 800): the two blocks a little
   tighter, the line that cannot be undone and the button right under them, what follows the confirmation below the
   button. (R1) A block's heading row holds the «Cambia» of the answer that holds for the whole block. */
[data-flow-step="summary"] > .import-flow-lead { margin-bottom: var(--space-2); }
.summary-blocks > .summary-block { margin: 0; padding: var(--space-3); }
/* Task 390 (round 4 B4): every block's heading row is as tall as one with «Cambia», so the two blocks' titles align. */
.summary-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); min-height: var(--ph-control-h-touch); margin: 0 0 var(--space-1); }
.summary-block .summary-heading h2 { margin: 0; }
.summary-heading a { display: inline-flex; align-items: center; min-height: var(--ph-control-h-touch); color: var(--accent-text); }
.summary-after-block { margin: var(--space-3) 0 var(--space-2); }
/* Round 4 (R2): on the phone the difference's «Avanti» in the first screen: tiles and the source line a little tighter;
   the line of the two values stays. */
@media (max-width: 44.999rem) {
  .import-flow-source { margin-bottom: var(--space-1); }
  .answer-tile { padding: var(--space-2); }
  .answer-tile:has(> input:checked) { padding: calc(var(--space-2) - 1px); }
}
/* Task 393: the office's name of a voce under its printed text in the person's own payslip («cioè …»), read at the body's size and ink. */
.cell-note.voce-alias { color: var(--ink); font-size: inherit; }
/* Task 393: the printed text of a voce at the head of its panel, the document's own words, large. */
.voce-printed { font-size: var(--text-1); }
