/* Employee pages, design spec 9.1: the record form index and the revealed values; the registry list, the pay consoles and
   the own profile use the shared components (tasks 044 and 045 removed the page scoped rules). */
/* Employee record (task 043): the revealed values and the history aside. */
.reveal-value { overflow-wrap: anywhere; font-family: var(--font-mono); font-size-adjust: none; }
.history-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.history-list > li { padding-bottom: var(--space-2); border-bottom: var(--border-w) solid var(--line); }
.history-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.history-list h3 { margin: 0 0 var(--ph-space-05); }
.history-list p { margin: 0 0 var(--ph-space-05); }
.import-correction { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-1); margin: 0 0 var(--space-1); }
.import-correction > .form-field { flex: 1 1 16rem; margin: 0; }
/* Task 052i (A19 to A22): the IBAN card first on the profile, the reveal and its note on one line where they fit, the
   facts of a change in verifica apart from the reveal above them. */
.self-reveal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); margin: 0 0 var(--space-2); }
.self-reveal .field-help { margin: 0; }
.self-iban-facts { margin: var(--space-2) 0; padding-inline-start: var(--space-3); }
.self-iban-facts > li + li { margin-top: var(--ph-space-05); }
.self-iban-use { margin: 0 0 var(--space-1); }
.self-pending-iban { margin-top: var(--space-3); }
/* The registry list, design «Segnale»: every row is one line, so nothing in it wraps but the pills of «Da sistemare»;
   the number keeps its «Matr.» only on the phone card, where no column head names it. */
.roster-table tbody :is(th, td):not(.roster-fix) { white-space: nowrap; }
.roster-table .roster-matricola { display: none; }
/* Task 290 (#9 of task 289): on a wide screen each problem of «Da sistemare» keeps its words on one line («Contratto non
   agli atti» broke word by word at 1440); the level, a short code or a few words, is the column that gives way. */
@media (min-width: 40.0625rem) {
  .roster-table td.roster-fix :is(.pill, .status) { white-space: nowrap; }
  .roster-table tbody td.roster-level { white-space: normal; }
}
@media (max-width: 40rem) {
  /* The phone card: name and state on the first line, contract, level and number on the second as one quiet line, the
     chevron at the end of the first line (task 212: the chevron's link covers the card, so its cell stays in the flow and
     is not the box the link is stretched over); the hire date stays in the record. The empty «Da sistemare» cell takes no room. */
  .data-table.roster-table tr { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--ph-space-05) var(--space-1); }
  .data-table.roster-table tr::after { content: ""; order: 1; flex-basis: 100%; height: 0; }
  /* Task 290 (#1 of task 289): a long name wraps between its words on the card and never runs over the state beside it. */
  .data-table.roster-table tbody th { flex: 1 1 0; min-width: 0; white-space: normal; overflow-wrap: break-word; }
  .data-table.roster-table td.roster-status { flex: none; }
  .data-table.roster-table td:is(.roster-fact, .roster-fix) { order: 2; }
  .data-table.roster-table td.roster-fix { order: 3; flex-basis: 100%; }
  .data-table.roster-table td:is(.roster-status, .roster-fact, .roster-fix)::before { content: none; }
  .data-table.roster-table td:is(.roster-fact, .roster-fix):empty, .data-table.roster-table td.roster-date { display: none; }
  .data-table.roster-table td.roster-fact { color: var(--ink-2); font-size: var(--ph-text-sm); }
  .data-table.roster-table td.roster-fact:not(:empty) ~ td.roster-fact:not(:empty)::before { content: "\00B7"; display: inline; margin-right: var(--space-1); color: var(--ink-2); }
  .data-table.roster-table .roster-matricola { display: inline; }
  .data-table.roster-table td.row-actions { flex: none; }
}
/* The new person form, design «Segnale»: the share of a part-time is asked only with a part-time schedule, and the reason
   and the confirmation of a protected value only once a fiscal code or an IBAN is typed (their blank placeholder is gone)
   or the server refused one of them. Without :has() every field stays drawn, as before. */
:is(.employee-form-page, .side-panel-body) .form-grid:has(#field-regime option:is([value="FT"], [value="TURNI"]):checked) .form-field:has(#field-percentuale:not([aria-invalid])) { display: none; }
.protected-create:has(#field-cf:placeholder-shown):has(#field-iban:placeholder-shown) .protected-ceremony:not(:has([aria-invalid])) { display: none; }
.employee-later { margin: 0 0 var(--space-3); }
.employee-later[open] > summary { margin-bottom: var(--space-2); }
/* The file for the consultant, design «Segnale»: the period on one line with its button, the facts of the period in one
   line under it, and the phrase and the reason drawn only once the IBAN is ticked (or refused by the server). */
.export-period { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-1) var(--space-2); }
.export-period > .form-field { margin: 0; }
.export-population { margin: var(--space-2) 0 0; color: var(--ink-2); }
.export-generate:has(#export-includeIban:not(:checked)) .export-sensitive:not(:has([aria-invalid="true"])) { display: none; }
.export-delta { margin: var(--space-2) 0 0; }
/* Design «Segnale», the profile's side panel of a correction: the choice of what to correct above its form. */
#side-panel-correction .side-panel-body > nav { margin: 0 0 var(--space-2); }
/* The admin's one line on who decides the requests of their personal area, above the tab's cards; the line on the
   company's contacts between the two lists of the contacts card. */
.self-area-line { margin: var(--space-2) 0; }
.self-company-contacts { margin: var(--ph-space-05) 0 var(--space-1); }
/* The two copies of one's data (design «Segnale»): two choices side by side, each its button with what it is under it. */
.self-downloads { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.self-downloads > li { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
/* Task 192: the reason the license holder is never limited is its own paragraph, apart from the general help. */
.admin-limit-form [data-license-holder] { margin-bottom: var(--space-1); }
/* Task 228: the proposals of a responsabile to the office, one per row with its act and state on one line, then its
   facts; the office's two acts side by side where they fit. */
.proposal-list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.proposal-list > li { padding-bottom: var(--space-3); border-bottom: var(--border-w) solid var(--line); }
.proposal-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.proposal-heading { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.proposal-heading h3 { margin: 0; }
.proposal-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2); margin-top: var(--space-2); }
/* Task 284: a person of an import's result named by the file a payslip came from carries that file's name, often one
   long word: it wraps inside its row, so the result never runs past its column on a phone. */
.import-rows tbody th { overflow-wrap: anywhere; }
/* Task 290 (#4 of task 289): «Quanto spetta in un anno» with a quota not on file holds the sentence as a note that wraps,
   wide enough to read a few words a line on a wide table; on a phone the table stacks, one card per type, and the note
   takes its half of the card. The numbers of the other cells keep their one line. */
.leave-quota-unknown .cell-note { max-width: 20rem; margin-top: 0; }
@media (min-width: 40.0625rem) { .leave-quota-unknown .cell-note { min-width: 9rem; } }
/* Task 371 (#11 of task 370): the administrators and their open invitations read one fact a line below 400px: in two
   columns an address of 130 characters wrapped over 13 lines of 120px beside «Cosa legge». */
@media (max-width: 24.999rem) { .data-table.stack-on-phone.admin-list tr { grid-template-columns: minmax(0, 1fr); } }
