/* Settings: records list rows and password reveal. */
.directories-results { list-style:none; padding-left:0; gap:0; }
.directories-results li { display:flex; flex-wrap:wrap; }

/* Round 13 (T2-U5): «Numerotare registre» is a plain title like the other tabs (no chevron; the section stays open),
   and the «În uz» badge is as wide as its text. */
#numbering-settings .numbering-panel > details > summary { list-style:none; cursor:default; }
#numbering-settings .numbering-panel > details > summary::-webkit-details-marker { display:none; }
#numbering-settings .numbering-panel > details > summary::marker { content:''; }
#numbering-settings .numbering-row-fields .numbering-row-status.state-badge { justify-self:start; align-self:start; width:fit-content; max-width:100%; }

/* Round 14: modules/settings. Two labelled rows of tabs (Lucru zilnic / Configurare) and the «Module» tab. */
.settings-tabs > .settings-tab-group { display:inline-flex; align-items:center; flex:none; min-width:6.75rem; min-height:44px; padding-right:.5rem; color:hsl(var(--muted-foreground)); font-size:.8125rem; font-weight:600; }
.settings-tabs > .settings-tab-break { flex:0 0 100%; height:0; }
.settings-navigation.is-compact > .settings-tabs > .settings-tab-break { display:none; }
.settings-navigation.is-compact > .settings-tabs > .settings-tab-group { grid-column:1 / -1; min-height:0; padding:.4rem .5rem 0; }
.settings-modules :is(#uat-panel, #library-settings, #fees-settings, #deadlines-settings, #numbering-settings, #accounts-settings, #audit-settings, #directories-settings) { display:none !important; }
#modules-settings[hidden] { display:none; }
#modules-settings .modules-intro { margin:0 0 1rem; }
.modules-item { padding:0; }

/* ===== Round 15 (Z2): Settings ===== */
/* S-02: one title per tab, at the section scale. */
.settings-page :is(#modules-heading, #fees-heading, #deadlines-heading, #accounts-heading, #audit-heading, #library-heading, #directories-heading, #password-heading, #uat-heading) { margin:0 0 var(--space-4); font-size:var(--text-section); font-weight:650; }
#numbering-settings .numbering-panel > details > summary { margin:0 0 var(--space-4); font-size:var(--text-section); font-weight:650; }
.settings-page:has(> .settings-navigation.is-side) .uat-form > .form-actions { margin-inline:0; padding-inline:var(--space-4); }

/* S-05: Datele UAT in cards; what is below a card title is a line and a title, not a second card. */
.uat-subsection { margin:var(--space-4) 0 0; padding:var(--space-3) 0 0; border:0; border-top:1px solid hsl(var(--border)); border-radius:0; background:none; box-shadow:none; }
.settings-page fieldset.uat-subsection > legend { padding:0; font-size:var(--text-card); font-weight:650; }
.settings-page details.uat-subsection > summary { min-height:44px; align-content:center; font-weight:650; }
/* Round 25 (S-06): «Sursa listelor…» is a quiet «more», as everywhere: blue, regular weight, the same size. */
.settings-page details.uat-subsection.about-disclosure > summary { font-size:.88rem; font-weight:500; }
.settings-page .uat-subsection h3 { margin:0 0 var(--space-1); font-size:var(--text-card); font-weight:650; }
.uat-other > summary > .help { display:block; margin:2px 0 0; font-weight:400; }
.uat-signatory .uat-signatory-main > button.danger { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; align-self:end; }
.uat-signatory .danger > svg { flex:none; width:16px; height:16px; }
/* Round 19 (C2): «Elimină» is a quiet icon, red only on hover or focus; the signatory cards are tighter. */
.uat-signatory .uat-signatory-main > button.uat-signatory-remove { width:40px; min-width:40px; height:40px; min-height:40px; padding:0; color:hsl(var(--muted-foreground)); }
.uat-signatory .uat-signatory-main > button.uat-signatory-remove:hover:not(:disabled), .uat-signatory .uat-signatory-main > button.uat-signatory-remove:focus-visible { color:hsl(var(--danger)); background:hsl(var(--danger) / .08); }
.uat-signatory .uat-signatory-main > button.uat-signatory-remove > svg { width:18px; height:18px; }
.settings-page .uat-signatories { gap:var(--space-2); }
.settings-page .uat-signatory { padding:var(--space-2) var(--space-3); }
.settings-page .uat-signatory-more { margin-top:var(--space-1); }
@media (max-width:900px) { .uat-signatory .uat-signatory-main > button.uat-signatory-remove { justify-self:end; } .settings-page .uat-signatory-main { gap:var(--space-2); } }


/* S-06: Module with switches. */
.modules-list { list-style:none; margin:0 0 var(--space-4); padding:0; border-top:1px solid hsl(var(--border)); }
.modules-item { padding:0; border-bottom:1px solid hsl(var(--border)); }
.modules-choice { display:flex; align-items:center; justify-content:space-between; gap:var(--space-4); min-height:56px; padding:var(--space-2) 0; cursor:pointer; }
.modules-text { display:grid; gap:2px; min-width:0; }
.modules-name { font-weight:600; }
.modules-hint { color:hsl(var(--muted-foreground)); font-size:var(--text-help); }
.modules-choice input.modules-switch { flex:none; appearance:none; -webkit-appearance:none; position:relative; width:44px; height:26px; margin:0; padding:0; border:0; border-radius:999px; background:hsl(var(--muted-foreground)); cursor:pointer; transition:background .15s; }
.modules-choice input.modules-switch::after { content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:transform .15s; }
.modules-choice input.modules-switch:checked { background:hsl(var(--primary)); }
.modules-choice input.modules-switch:checked::after { transform:translateX(18px); }
.modules-choice input.modules-switch:focus-visible { outline:2px solid hsl(var(--primary)); outline-offset:2px; }
.modules-choice input.modules-switch:disabled { opacity:.45; cursor:not-allowed; }
.modules-item.modules-level-1 { padding-left:var(--space-5); }
.modules-item.modules-level-2 { padding-left:calc(var(--space-5) * 2); }
.modules-item .modules-reason { margin:calc(var(--space-2) * -1) 0 var(--space-2); }

/* S-08: Termene. The days are plain rows, not a box in a box. */
.deadlines-form .deadlines-days { margin:var(--space-4) 0 0; padding:0; border:0; }
.deadlines-form .deadlines-days > legend { padding:0; font-size:var(--text-card); font-weight:650; }
.deadlines-day-rows { display:grid; border-top:1px solid hsl(var(--border)); margin:var(--space-2) 0; }
.deadlines-day-row { display:grid; grid-template-columns:12rem minmax(0,1fr) auto; gap:var(--space-2) var(--space-3); align-items:center; min-height:48px; padding:var(--space-1) 0; border-bottom:1px solid hsl(var(--border)); }

/* S-07: Taxe. */
.fees-table .fees-amount { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.settings-page :is(details.field-group.fees-check, details.field-group.deadlines-check, details.field-group.account-recovery) { margin:var(--space-4) 0; padding:0; border:0; background:none; box-shadow:none; }
.settings-page :is(details.field-group.fees-check, details.field-group.deadlines-check, details.field-group.account-recovery) > summary { float:none; width:auto; min-height:44px; margin:0; font-size:.88rem; font-weight:500; color:hsl(var(--primary)); cursor:pointer; }

/* S-09: Numerotare, compact. */
.numbering-row-title { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2); }
.numbering-row-title h4 { margin:0; }
.numbering-row-title .numbering-row-status.state-badge { width:fit-content; }
.numbering-current { margin:2px 0 0; color:hsl(var(--muted-foreground)); font-size:var(--text-help); font-variant-numeric:tabular-nums; }

/* S-10: Conturi. */
.account-state .account-name { font-weight:600; }
.account-state .account-detail { color:hsl(var(--muted-foreground)); }
.account-new { margin:var(--space-4) 0; }
.account-new > summary { cursor:pointer; list-style:none; }
.account-new > summary::-webkit-details-marker { display:none; }
.account-new[open] > summary { margin-bottom:var(--space-3); }
.accounts-list .account-more > summary { min-width:44px; justify-content:center; padding-inline:.7rem; font-size:1.25rem; line-height:1; text-decoration:none; }
.accounts-disabled-box .group-label { margin:var(--space-4) 0 var(--space-1); }

/* S-11: Jurnal. */
.audit-filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:var(--space-3) var(--space-4); margin:0 0 var(--space-4); }
.audit-filters .field { margin:0; min-width:10rem; }
.audit-filters .audit-downloads { min-width:0; }
.audit-actions { display:flex; align-items:center; gap:var(--space-4); margin-left:auto; }
.audit-csv { color:hsl(var(--primary)); font-weight:500; text-decoration:none; }
.audit-csv:hover, .audit-csv:focus-visible { text-decoration:underline; }
.audit-when { white-space:nowrap; }
.audit-when > span { display:block; }
.audit-when .audit-day { font-weight:600; }
.audit-when .audit-time { color:hsl(var(--muted-foreground)); font-size:var(--text-help); font-variant-numeric:tabular-nums; }
.audit-object .audit-object-title, .audit-object .audit-object-context { display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.audit-object .audit-object-title { -webkit-line-clamp:2; line-clamp:2; }
.audit-object .audit-object-context { -webkit-line-clamp:1; line-clamp:1; color:hsl(var(--muted-foreground)); font-size:var(--text-help); }

/* S-04: Evidențe as a list with columns; the kinds as a segmented switch under the search. */
.directories-search { display:flex; flex-wrap:wrap; align-items:flex-end; gap:var(--space-2) var(--space-3); margin:0 0 var(--space-3); }
.directories-search .field { flex:1 1 16rem; margin:0; }
.directories-kinds.workspace-tabs { display:inline-flex; flex-wrap:nowrap; gap:2px; margin:0 0 var(--space-4); padding:2px; border:1px solid hsl(var(--border)); border-radius:var(--radius); background:hsl(var(--muted)); }
.workspace .directories-kinds > a { display:inline-flex; align-items:center; justify-content:center; min-height:36px; margin:0; padding:.3rem 1rem; border:0; border-radius:calc(var(--radius) - 2px); background:transparent; color:hsl(var(--foreground)); font-weight:500; text-decoration:none; }
.workspace .directories-kinds > a[aria-current="page"], .workspace .directories-kinds > a[aria-current="page"]:hover { background:hsl(var(--card)); color:hsl(var(--primary)); font-weight:650; box-shadow:0 1px 2px rgb(15 23 42 / .12); }
.directories-results { border-top:1px solid hsl(var(--border)); margin:0 0 var(--space-4); }
.directories-head { padding:var(--space-1) var(--space-3); color:hsl(var(--muted-foreground)); font-size:var(--text-label); font-weight:600; gap:var(--space-3); }
.directories-head > span:first-child { flex:2 1 0; }
.directories-head > span + span { flex:1.3 1 0; }
.directories-head::after { content:''; flex:none; width:1rem; }
.directories-results li > button.directories-row { display:flex; align-items:center; gap:var(--space-3); width:100%; min-height:48px; padding:var(--space-2) var(--space-3); border:0; border-bottom:1px solid hsl(var(--border)); border-radius:0; background:none; box-shadow:none; color:hsl(var(--foreground)); font-weight:400; text-align:left; text-decoration:none; }
.directories-name { flex:2 1 0; min-width:0; font-weight:600; overflow-wrap:anywhere; }
.directories-col { flex:1.3 1 0; min-width:0; color:hsl(var(--muted-foreground)); overflow-wrap:break-word; }
.directories-go { flex:none; width:1rem; color:hsl(var(--muted-foreground)); }
.directories-results li > button.directories-row:focus-visible { outline:2px solid hsl(var(--primary)); outline-offset:-2px; }

/* Round 25 (S25-4): the editor of a record opens inside the row chosen, under it. */
.directories-results li > .directories-card { flex:1 1 100%; min-width:0; margin:0; padding:var(--space-3) var(--space-3) var(--space-4); border:0; border-bottom:1px solid hsl(var(--border)); border-left:3px solid hsl(var(--primary)); border-radius:0; background:hsl(var(--muted) / .3); box-shadow:none; }
.directories-results li > .directories-card[hidden] { display:none; }
.directories-results li > button.directories-row[aria-expanded="true"] { background:hsl(var(--muted) / .5); }
.directories-row[aria-expanded="true"] .directories-go { transform:rotate(90deg); }

/* S-03: Texte. */
.library-toolbar { align-items:flex-end; }
.library-toolbar .field { min-width:10rem; }
.library-actions .link-button { align-self:center; }
.library-category > summary { display:flex; align-items:center; gap:var(--space-2); min-height:44px; font-weight:600; border-bottom:0; }
.library-category[open] > summary { border-bottom:1px solid hsl(var(--border)); }
.library-count { display:inline-block; padding:0 .5rem; border-radius:999px; background:hsl(var(--tone-neutral-bg)); color:hsl(var(--tone-neutral-fg)); font-size:var(--text-label); font-weight:600; font-variant-numeric:tabular-nums; }

@media (hover:hover) { .workspace .settings-navigation > .settings-tabs > a:not([aria-current="page"]):hover { background:hsl(var(--muted)/.7); } }
@media (hover:hover) { .directories-results li > button.directories-row:hover { background:hsl(var(--muted)/.5); } }
@media (max-width:640px) {
  .directories-results li.directories-head { display:none; }
  /* Round 25 (V25-2): name and arrow share the first line on every row; the other columns follow below. */
  .directories-results li > button.directories-row { display:grid; grid-template-columns:minmax(0,1fr) 1rem; align-items:start; gap:var(--space-1) var(--space-3); }
  .directories-name { grid-column:1; grid-row:1; }
  .directories-go { grid-column:2; grid-row:1; }
  .directories-col { grid-column:1 / -1; }
  .directories-col:empty { display:none; }
  .directories-kinds.workspace-tabs { display:flex; }
  .workspace .directories-kinds > a { flex:1; min-height:44px; }
  .deadlines-day-row { grid-template-columns:minmax(0,1fr) auto; }
  .deadlines-day-row > input[data-part="note"] { grid-column:1 / -1; grid-row:2; }
  .audit-actions { margin-left:0; }
  /* S-14: touch targets of the links inside rows. */
  .settings-page :is(.link-button, .library-card-actions button, .account-actions .link-button, .deadlines-day-row button, .audit-csv, .audit-technical > summary) { min-height:44px; display:inline-flex; align-items:center; }
}

/* Round 16: the «Module» toast sits at the top, so it never covers the switches at the bottom of the list. */
@media (min-width:1024px) { #modules-settings .toast-box:not(.toast-empty) { top:calc(var(--space-4,1rem) + var(--toast-stack-offset,0px)); bottom:auto; } }

/* «Verifică un termen»: the button sits right under the fields, not at the end of a tall row. */
.settings-page .deadlines-check-actions { position:static; min-height:0; margin:var(--space-2) 0 0; padding:0; border:0; background:none; box-shadow:none; }
.settings-page .deadlines-check-actions + .deadlines-result { margin-top:var(--space-3); }
#deadlines-check-heading + .help + .uat-settings-grid { margin-bottom:0; }

/* Review 16: the side list belongs to wide screens. Right after a resize the script may not have switched the class yet; below
   1200 px the page then stays one column, so nothing is pushed past the screen (measured: 370 px on a 320 px screen). */
@media (max-width:1023px) {
  .settings-page:has(> .settings-navigation.is-side) { display:block; }
  .settings-page:has(> .settings-navigation.is-side) > .settings-navigation { position:static; }
}
.settings-page .deadlines-check-grid { margin-bottom:0; }
.settings-page .deadlines-check-grid .field { margin-bottom:var(--space-2); }
.settings-page .deadlines-check-grid + .field-error + .deadlines-check-actions,.settings-page .deadlines-check-actions { margin-top:0; }
/* Round 18 (R18-3): «Parola mea» starts at the same height as the other titles (no extra top margin). */
.settings-page #password-heading { margin-top:0; }

/* Round 18 (P5): the add buttons of Texte and Taxe sit right under the title, with no rule above them (as in Evidențe and Termene). */
.settings-page .form-actions.library-actions { margin-top:0; padding-top:0; border-top:0; background:none; box-shadow:none; position:static; }
.audit-filters .audit-filters-more { display:flex; flex:1 1 100%; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-2) var(--space-4); min-width:0; }

/* Round 19 (C1): in the side list the pointer shows a soft hover (grey, thin bar); the current section keeps the blue bar and tint. */
@media (hover:hover) { .workspace .settings-navigation.is-side > .settings-tabs > a:not([aria-current="page"]):hover { background:hsl(var(--muted)/.7); border-left-color:hsl(var(--border)); } }
/* Round 19 (C1): the title of «Datele UAT» is seen, like the titles of the other sections. */
.settings-page #uat-heading { margin:0 0 var(--space-4); }

/* Round 19 (C4): «Retrage» is the discreet red action; every card title (HCL, text) has the same size. */
.library-card-actions button[data-action="status"].danger { color:hsl(var(--danger)); }
.library-card-actions button[data-action="status"].danger:hover:not(:disabled) { background:hsl(var(--danger) / .08); color:hsl(var(--danger)); text-decoration:none; }
.library-card :is(h4, h5) { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; margin:0 0 .3rem; font-size:var(--text-card,.95rem); font-weight:600; line-height:1.35; }

/* Round 19 (C5): Jurnal, only the arrow for the technical details (the name stays for assistive technology). */
.audit-technical > summary { display:inline-flex; align-items:center; justify-content:center; width:44px; min-height:44px; padding:0; font-size:0; list-style:none; }
.audit-technical > summary::-webkit-details-marker { display:none; }
.audit-technical > summary::before { content:'▸'; font-size:1rem; line-height:1; }
.audit-technical[open] > summary::before { content:'▾'; }
.audit-technical > summary::after { content:none; }

/* Round 19 (C5): Numerotare, the series in a grid, one-line banner, a quiet green «În uz». */
#numbering-settings .numbering-rows { grid-template-columns:repeat(auto-fit, minmax(17rem, 1fr)); gap:var(--space-3); }
#numbering-settings .numbering-row { grid-template-columns:minmax(0,1fr); gap:var(--space-2); padding:var(--space-3); align-content:start; }
#numbering-settings .numbering-panel .notice { margin:0 0 var(--space-3); padding:.4rem .75rem; font-size:.8125rem; line-height:1.4; }
#numbering-settings .numbering-row-title .numbering-row-status.state-badge { background:hsl(var(--tone-ok-bg)); border-color:transparent; color:hsl(var(--tone-ok-fg)); font-weight:500; }

/* Round 19 (C5): Texte, one rhythm between toolbar, categories and cards. */
.library-toolbar { margin:0 0 var(--space-3); gap:var(--space-2) var(--space-3); }
.library-list { gap:var(--space-3); }
.library-category > .library-card { margin:var(--space-2) var(--space-3); }
.library-card .help { margin:0 0 var(--space-2); }
.library-card-actions { margin:var(--space-2) 0 0; }

/* Round 19 (C6): «Parola mea», fields as wide as a password needs; the sign-in card gets a quiet accent. */
#password-form .field, #password-form .password-field { max-width:26rem; }
.login-page .login-card { border-top:3px solid hsl(var(--accent)); }
/* Round 20 (R20-3): on a phone the journal is a list of cards, not a table scrolled sideways inside its box. */
@media (max-width:600px) {
  /* Round 26: stacked one under another, the month, the event and the account are as wide as the column (no ragged edge). */
  .audit-filters > .field:not(.audit-downloads) { flex:1 1 100%; }
  .audit-filters > .field:not(.audit-downloads) :is(select, input) { width:100%; }
  #audit-settings .audit-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  #audit-settings .audit-table, #audit-settings .audit-table tbody, #audit-settings .audit-table tr, #audit-settings .audit-table td { display:block; width:auto; min-width:0; }
  #audit-settings .audit-table tr { padding:var(--space-2) 0; border-bottom:1px solid hsl(var(--border)); }
  #audit-settings .audit-table td { padding:.15rem 0; border:0; white-space:normal; overflow-wrap:anywhere; }
  #audit-settings .audit-table td:is(:nth-child(4), :nth-child(5))::before { content:attr(data-label); display:block; color:hsl(var(--muted-foreground)); font-size:var(--text-label); }
  #audit-settings .audit-table .audit-when > span { display:inline; margin-right:.4rem; }
}
/* Round 20 (R20-5): beside the section list (901–1279 px) the role takes its own row, so «Conducătorul autorității emitente» is read whole. */
@media (min-width:901px) and (max-width:1279px) {
  .settings-page .uat-signatory-main > .field:first-child { grid-column:1 / -1; }
  .settings-page .uat-signatory-main > button.uat-signatory-remove { grid-column:-2; grid-row:2; }
}
/* Round 23 (C): every check box in the settings is a target of at least 24 px. */
.settings-page input[type=checkbox], .settings-page input[type=radio] { width:1.5rem; min-width:1.5rem; height:1.5rem; min-height:1.5rem; }
/* Round 23 (R22-09, R22-10): the number box looks inactive until its series is ticked; the series ticks are 24 px targets. */
#numbering-settings .numbering-row-fields input:disabled { background:hsl(var(--muted)); color:hsl(var(--muted-foreground)); cursor:not-allowed; }
#numbering-settings .numbering-row-check input, #numbering-settings .numbering-confirm input { width:1.5rem; height:1.5rem; }
/* Round 23 (U-22): «Pentru început», a short fixed list above the UAT form. */
.settings-start { margin:0 0 var(--space-4,1rem); padding:var(--space-3,.75rem) var(--space-4,1rem); border:1px solid hsl(var(--border)); border-radius:var(--radius); background:hsl(var(--muted) / .35); }
.settings-start h4 { margin:0 0 .35rem; }
.settings-start-list { display:grid; gap:.1rem; margin:0; padding:0; list-style:none; }
.settings-start-list li { display:flex; align-items:center; gap:.6rem; min-height:32px; }
.settings-start-list a { display:inline-flex; align-items:center; min-height:32px; }
.settings-start[hidden] { display:none; }

/* Round 25 (V25-5, S25-6, F25-3): Numerotare. One plain table of series; the form as wide as the table; the reason for a disabled button beside it. */
#numbering-settings #registry-numbering-details > summary::before, #numbering-settings #registry-numbering-details[open] > summary::before { content:none; display:none; }
#numbering-settings .numbering-required { color:hsl(var(--muted-foreground)); font-size:.75rem; font-weight:400; white-space:nowrap; }
#numbering-settings .numbering-panel .numbering-form { max-width:none; }
#numbering-settings .numbering-submit-row { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2) var(--space-3); }
#numbering-settings .numbering-submit-row > .help { flex:1 1 14rem; margin:0; min-width:0; }
#numbering-settings .numbering-table-help { margin:0 0 var(--space-2); }
#numbering-settings .numbering-panel .numbering-rows { display:block; }
#numbering-settings .numbering-table tr.numbering-row { display:table-row; padding:0; border:0; border-radius:0; }
#numbering-settings .numbering-table { width:100%; border-collapse:collapse; font-size:.9375rem; }
#numbering-settings .numbering-table th, #numbering-settings .numbering-table td { padding:.35rem var(--space-3); border-bottom:1px solid hsl(var(--border)); text-align:left; vertical-align:middle; }
#numbering-settings .numbering-table thead th { color:hsl(var(--muted-foreground)); font-size:var(--text-label); font-weight:600; }
#numbering-settings .numbering-table td.numbering-cell-next, #numbering-settings .numbering-table th:last-child { text-align:right; font-variant-numeric:tabular-nums; }
#numbering-settings .numbering-table td.numbering-cell-last input { width:100%; max-width:11rem; margin:0; }
#numbering-settings .numbering-table .numbering-row-check { align-items:center; min-height:44px; padding:0; }
#numbering-settings .numbering-table .numbering-row-check input { margin:0; }
#numbering-settings .numbering-table .numbering-row-status.state-badge { justify-self:auto; }
#numbering-settings .numbering-table .numbering-next-hint { color:hsl(var(--foreground)); }
#numbering-settings .numbering-table input[aria-invalid="true"] { border-color:hsl(var(--danger)); }
@media (min-width:1024px) { #numbering-settings .toast-box:not(.toast-empty) { top:calc(var(--space-4,1rem) + var(--toast-stack-offset,0px)); bottom:auto; } }
@media (max-width:600px) {
  #numbering-settings .numbering-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  #numbering-settings .numbering-table, #numbering-settings .numbering-table tbody { display:block; }
  #numbering-settings .numbering-table tr.numbering-row { display:grid; grid-template-columns:minmax(0,1fr) 5rem; gap:0 var(--space-3); align-items:center; padding:var(--space-2) 0; border-bottom:1px solid hsl(var(--border)); }
  #numbering-settings .numbering-table td { padding:.15rem 0; border:0; }
  #numbering-settings .numbering-table td.numbering-cell-series { grid-column:1 / -1; }
  #numbering-settings .numbering-table td.numbering-cell-last::before, #numbering-settings .numbering-table td.numbering-cell-next::before { content:attr(data-label); display:block; margin-bottom:.15rem; color:hsl(var(--muted-foreground)); font-size:var(--text-label); }
  #numbering-settings .numbering-table td.numbering-cell-last input { max-width:none; }
}

/* Round 25 (V25-6): Texte, the folded groups sit at one equal distance and a closed group has a single border (no cut line under it). */
.library-list > .library-category { margin:0; }
.library-list { gap:var(--space-2); }
/* Round 25 (V25-4): Taxe, the heading «Sumă» is right-aligned over the amounts; the HCL table fills its card; the rural tick sits on the line of the fields next to it. */
.fees-table thead th:last-child { text-align:right; }
.library-card > .fees-table, .library-card > details > .fees-table { max-width:none; }
.fees-check .uat-settings-grid > label.library-option { align-self:end; min-height:44px; margin:0 0 .85rem; }

/* Round 25 (F2-01): the switches of «Module» are the pill with a track of «Include retrase» (Documentații): 2.75 x 1.5 rem, knob 1.1 rem. The 24 px rule for check boxes below must not squeeze them. */
.settings-page .modules-choice input.modules-switch { width:2.75rem; min-width:2.75rem; height:1.5rem; min-height:1.5rem; border-radius:999px; background:#64748b; transition:background-color .15s; }
.settings-page .modules-choice input.modules-switch::after { top:.2rem; left:.2rem; width:1.1rem; height:1.1rem; }
.settings-page .modules-choice input.modules-switch:checked { background:hsl(var(--primary)); }
.settings-page .modules-choice input.modules-switch:checked::after { transform:translateX(1.25rem); }
.settings-page .modules-choice:has(input.modules-switch:focus-visible) { outline:2px solid hsl(var(--primary)); outline-offset:2px; border-radius:var(--radius); }
.settings-page .modules-choice input.modules-switch:focus-visible { outline:0; }

/* Round 25 (F2-07): the save bar of «Datele UAT» sticks to the bottom only while there are unsaved changes; otherwise it is the last line of the form. */
.settings-page .uat-form:not(.is-dirty) > .form-actions { position:static; margin:var(--space-4) 0 0; padding:var(--space-4) 0 0; background:none; box-shadow:none; border-radius:0; }

/* Round 25 (F2-08): the title of Numerotare is as high as the other titles. */
#numbering-settings .numbering-panel > details > summary { min-height:24px; padding:0; display:block; line-height:1.3; }
#numbering-settings .numbering-year-field { margin-top:0; }

/* Round 25 (F2-09): the folded check leaves no gap above it. */
.settings-page details.field-group.deadlines-check { margin:var(--space-2) 0; }
.settings-page details.field-group.deadlines-check:not([open]) > summary { margin-bottom:0; }

/* Round 25 (F2-10): «Descarcă CSV» is a target of 32 px. */
.audit-csv { display:inline-flex; align-items:center; min-height:32px; }

/* Round 25 (S-19): «Pentru început», links as the other action links (no permanent underline). */
.settings-start-list a { color:hsl(var(--primary)); font-weight:500; text-decoration:none; }
.settings-start-list a:hover, .settings-start-list a:focus-visible { text-decoration:underline; }

/* Round 25 (F2-09): Termene, the line under the title is followed at once by the folded check. */
#deadlines-settings #deadlines-heading + .help { margin-bottom:0; }
#deadlines-settings .toast-box.toast-empty { margin:0; }
.settings-page details.field-group.deadlines-check > summary { min-height:36px; }

/* Round 25 (S-19): Jurnal, «Detalii» is a short link with an arrow, left-aligned under its heading, not a lost triangle in a wide cell. */
.audit-table thead th:last-child { text-align:left; }
.audit-technical > summary { width:auto; min-height:32px; padding:0 .25rem; justify-content:flex-start; gap:.35rem; font-size:.875rem; font-weight:500; color:hsl(var(--primary)); }
.audit-technical > summary::before { font-size:.875rem; }

/* ===== Lot tabele: Texte and Taxe as dense tables (header row, aligned columns, actions at the right). ===== */
.library-category > .library-table-head { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1.4fr) 11rem 11rem; align-items:center; column-gap:.9rem; margin:0 var(--space-3); padding:.4rem .65rem; border-bottom:2px solid hsl(var(--border)); color:hsl(var(--muted-foreground)); font-size:.72rem; font-weight:650; letter-spacing:.04em; text-transform:uppercase; }
.library-category > .library-table-head > span:last-child { text-align:right; }
.library-category > .library-card { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1.4fr) 11rem 11rem; align-items:center; column-gap:.9rem; row-gap:0; margin:0 var(--space-3); padding:var(--space-2) .65rem; border:0; border-bottom:1px solid hsl(var(--border)); border-radius:0; background:transparent; }
.library-category > .library-card:hover { background:hsl(var(--muted) / .5); }
.library-category > .library-card.library-retired { background:hsl(var(--muted) / .35); }
.library-category > .library-card > h5 { grid-column:1; grid-row:1; margin:0; font-size:.9rem; }
.library-category > .library-card > .library-meta { grid-column:2; grid-row:1; margin:0; font-size:.84rem; overflow-wrap:anywhere; }
.library-category > .library-card > .library-revision { grid-column:3; grid-row:1; margin:0; font-size:.78rem; font-variant-numeric:tabular-nums; }
.library-category > .library-card > .library-card-actions { grid-column:4; grid-row:1; flex-wrap:nowrap; justify-content:flex-end; margin:0; gap:.3rem; }
.library-category > .library-card > .library-card-actions > button { min-height:32px; padding:.2rem .6rem; font-size:.8rem; }
.library-category > .library-card > :is(.library-text, .library-source) { grid-column:1 / -1; grid-row:2; margin:var(--space-1) 0 0; font-size:.84rem; line-height:1.4; }
.library-category > .library-card > .library-source { grid-row:3; }
.library-category > .library-card > .library-history { grid-column:1 / -1; grid-row:4; }
.library-category > .library-card > .library-history > summary { min-height:32px; padding:.3rem 0; font-size:.8rem; font-weight:500; color:hsl(var(--muted-foreground)); }

/* Taxe: the HCL is a row block — title and period on the left, the actions at the right; its amounts stay a table. */
.fees-list > .library-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:.9rem; border-radius:0; border-width:0 0 1px; background:transparent; padding-inline:.65rem; }
.fees-list > .library-card > h4 { grid-column:1; grid-row:1; margin:0; }
.fees-list > .library-card > .help:not(.library-revision) { grid-column:1; grid-row:2; margin:0 0 var(--space-1); }
.fees-list > .library-card > .library-card-actions { grid-column:2; grid-row:1 / span 2; justify-content:flex-end; margin:0; }
.fees-list > .library-card > :is(table, details, .library-text, .library-revision) { grid-column:1 / -1; }
.fees-list > .library-card .fees-table th, .fees-list > .library-card .fees-table td { padding:.25rem .65rem; font-size:.84rem; }

@media (max-width:760px) {
  .library-category > .library-table-head { display:none; }
  .library-category > .library-card { grid-template-columns:minmax(0,1fr) auto; row-gap:.15rem; padding:.65rem .5rem; }
  .library-category > .library-card > h5 { grid-column:1 / -1; }
  .library-category > .library-card > .library-meta { grid-column:1 / -1; grid-row:2; }
  .library-category > .library-card > .library-revision { grid-column:1; grid-row:3; }
  .library-category > .library-card > .library-card-actions { grid-column:2; grid-row:3; }
  .library-category > .library-card > :is(.library-text, .library-source) { grid-row:4; }
  .library-category > .library-card > .library-source { grid-row:5; }
  .library-category > .library-card > .library-history { grid-row:6; }
  .library-category > .library-card > .library-meta:empty { display:none; }
}

/* Beneficiaries, N2: the commune profile, above the module switches. */
.modules-preset { margin:0 0 .75rem; }

/* Beneficiaries (meeting 27.10): the signatories as a table, one row per role: role · function (from a list) · name. */
.uat-signatories { display:block; margin:.25rem 0 .75rem; border-top:1px solid hsl(var(--border)); }
.uat-signatories-head, .uat-signatories > .uat-signatory { display:grid; grid-template-columns:minmax(10rem,1.1fr) minmax(0,1fr) minmax(0,1.2fr); gap:.75rem; align-items:center; }
.uat-signatories-head { padding:.45rem .25rem; border-bottom:1px solid hsl(var(--border)); color:hsl(var(--muted-foreground)); font-size:.72rem; font-weight:650; letter-spacing:.04em; text-transform:uppercase; }
.uat-signatories > .uat-signatory { margin:0; padding:.4rem .25rem; border:0; border-bottom:1px solid hsl(var(--border)); border-radius:0; background:none; }
.uat-signatory .field { margin:0; max-width:none; }
.uat-signatory-role { font-weight:600; font-size:.9rem; }
@media (max-width:760px) { .uat-signatories-head { display:none; } .uat-signatories > .uat-signatory { grid-template-columns:1fr; gap:.35rem; padding:.6rem .25rem; } }

/* ===== Runda 4 (S1): Texte, Evidențe, Conturi, Jurnal — titlu + buton la dreapta, filtre într-un chenar, tabel, formulare în ferestre ===== */
.records-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-2) var(--space-4); margin:0 0 var(--space-4); }
.settings-page .records-head > h3 { margin:0; }
.records-head .form-actions, .records-head .records-head-actions { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2); margin:0; }
.records-head details.section-window { margin:0; }
.records-head details.section-window > summary, .records-head .head-secondary { display:inline-flex; align-items:center; justify-content:center; min-height:var(--control-height); padding:.55rem 1rem; border:1px solid hsl(var(--input)); border-radius:var(--radius);
  background:hsl(var(--card)); color:hsl(var(--foreground)); font-size:.9375rem; font-weight:500; line-height:1.2; text-decoration:none; list-style:none; cursor:pointer; }
.records-head details.section-window > summary:hover, .records-head .head-secondary:hover { border-color:hsl(var(--primary) / .6); color:hsl(var(--primary)); background:hsl(var(--primary) / .06); }
.records-head details.section-window > summary.head-primary { border-color:hsl(var(--primary)); background:hsl(var(--primary)); color:hsl(var(--primary-foreground)); font-weight:600; }
.records-head details.section-window > summary.head-primary:hover { background:hsl(var(--primary-hover)); color:hsl(var(--primary-foreground)); }
/* A window opened by code: the summary is not shown, the details only holds the window. */
details.modal-host { margin:0; padding:0; border:0; }
details.modal-host > summary { display:none; }
/* A button that opens a window, inside a table row. */
.workspace details.section-window.no-chevron > summary.act-btn { list-style:none; }
.workspace details.section-window.no-chevron > summary.act-btn::-webkit-details-marker { display:none; }
.workspace details.section-window.no-chevron > summary.act-btn::before, .workspace details.section-window.no-chevron > summary.act-btn::after { content:none !important; }
details.library-history.section-window > summary::after, details.library-history.section-window[open] > summary::after { content:none !important; }
.row-actions details.section-window { margin:0; }
.settings-page .table-wrap { overflow-x:auto; }
.settings-page .filter-card .library-toolbar, .settings-page .filter-card .directories-search, .settings-page .filter-card .audit-filters { margin:0; }
.settings-page .filter-card .field { margin:0; }

/* Texte */
.library-table td.library-title-cell { min-width:10rem; }
.library-table .library-title-cell > strong { display:block; }
.library-table .library-meta, .library-table .library-text-clamp { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; overflow-wrap:anywhere; }
.library-table td.library-text-cell { width:28%; min-width:11rem; max-width:26rem; color:hsl(var(--muted-foreground)); }
.library-table tr.library-retired > td { color:hsl(var(--muted-foreground)); }
.library-table .row-actions .library-source-link { text-decoration:none; }
.library-list > p.help { margin:var(--space-3) 0; }

/* Conturi */
.accounts-table .account-name { display:block; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Runda 14.11 (S-03): the column of the name takes what the others leave and cuts a long name with «…» (the whole name is in its title), so «Acțiuni» stays in the frame. */
@media (min-width:761px) { .accounts-table td.account-state { width:100%; max-width:0; } }
.accounts-table tr.account-disabled td.account-state > strong { color:hsl(var(--muted-foreground)); }
.accounts-table td.col-actions .help { margin:0; }
.accounts-group .form-actions { margin-top:var(--space-3); }
.section-modal-body .accounts-action .field-group, .section-modal-body .library-editor .field-group { margin:0 0 var(--space-3); padding:0; border:0; }
.section-modal-body .uat-settings-grid { grid-template-columns:1fr; }
.section-modal-body .library-editor { margin:0; }
.section-modal-body .library-editor .library-wide { grid-column:auto; }
.section-modal-body .form-actions { margin-top:var(--space-3); }

/* Jurnal */
.settings-page .filter-card .audit-filters { display:grid; grid-template-columns:minmax(9rem,12rem) minmax(11rem,16rem) minmax(12rem,1fr) auto auto; align-items:end; gap:var(--space-3); }
.audit-filters .audit-filters-more { display:contents; }
.audit-filters .audit-actions { margin-left:0; }
.audit-filters .audit-downloads { padding-bottom:.35rem; }
.audit-table tr.audit-refused td:nth-child(2), .audit-table tr.audit-refused td:nth-child(3) { color:hsl(var(--tone-problem-fg, 0 70% 38%)); font-weight:550; }
.audit-table td.audit-object { min-width:14rem; max-width:none; }
.audit-table .audit-object-title { font-weight:550; }
.audit-table .audit-event-note { display:block; margin:.1rem 0 0; color:hsl(var(--muted-foreground)); font-size:.78rem; }
.audit-table td.audit-when { width:1%; }
.audit-pagination { margin-top:var(--space-3); }
.section-modal-body .audit-technical-values { margin:0; max-width:none; font-size:.875rem; }
.section-modal-body .audit-technical-values dd { margin-bottom:.35rem; }

/* Evidențe */
.directories-results.table-wrap { border-top:0; margin:0 0 var(--space-4); }
.directories-table td.directories-col { color:hsl(var(--muted-foreground)); overflow-wrap:anywhere; }
.directories-table .directories-name { font-weight:600; overflow-wrap:anywhere; }
.directories-card > h4 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.section-modal-body .directories-card { margin:0; padding:0; border:0; background:none; box-shadow:none; }
.directories-history h5 { margin:var(--space-3) 0 var(--space-1); font-size:var(--text-label); }
.directories-history ul { margin:0; padding-left:1.1rem; font-size:.875rem; }
.directories-card .directories-field-group { padding:0; border:0; margin:0 0 var(--space-3); }

@media (max-width:760px) {
  .library-table thead, .accounts-table thead, .audit-table thead, .directories-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  :is(.library-table, .accounts-table, .audit-table, .directories-table), :is(.library-table, .accounts-table, .audit-table, .directories-table) :is(tbody, tr, td) { display:block; width:auto !important; max-width:none !important; min-width:0 !important; }
  :is(.library-table, .accounts-table, .audit-table, .directories-table) tbody tr { padding:.65rem .5rem; border-bottom:1px solid hsl(var(--border)); }
  .workspace :is(.library-table, .accounts-table, .audit-table, .directories-table) tbody td { padding:.1rem 0; border:0; }
  .workspace :is(.library-table, .accounts-table, .audit-table, .directories-table) tbody tr:hover > td { background:none; }
  :is(.library-table, .accounts-table, .audit-table, .directories-table) td[data-label]:not(:first-child):not(.col-actions):not(:empty)::before { content:attr(data-label) ': '; color:hsl(var(--muted-foreground)); font-size:.78rem; }
  :is(.library-table, .accounts-table, .audit-table, .directories-table) td:empty { display:none; }
  .workspace :is(.library-table, .accounts-table, .audit-table, .directories-table) td.col-actions { text-align:left; padding-top:.4rem; }
  :is(.library-table, .accounts-table, .audit-table, .directories-table) td.col-actions .row-actions { justify-content:flex-start; }
  .settings-page .filter-card .audit-filters { grid-template-columns:1fr; }
  .audit-table td.audit-when > span { display:inline; }
  .audit-table td.audit-when > span + span::before { content:' · '; }
  .records-head { align-items:stretch; }
  .records-head .records-head-actions, .records-head .form-actions { width:100%; }
}

/* Runda 4 – S2 (beneficiarii, 28.10.2026, «cât mai tabelar»): Datele UAT, Module, Taxe, Termene, Numerotare.
   Listele sunt tabele cu coloană de stare și de acțiuni; formularele și instrumentele se deschid în ferestre peste pagină. */
.settings-page .table-wrap { overflow-x:auto; margin:0 0 var(--space-3); }
.settings-page table.data-table { max-width:none; margin:0; }
.settings-page table.data-table th[scope="row"] { color:inherit; font-weight:600; text-align:left; }
.settings-page table.data-table td input:not([type="checkbox"]), .settings-page table.data-table td select { width:100%; min-width:0; margin:0; }
.settings-page table.data-table td .field { margin:0; }

/* «Fereastră peste pagină»: titlul deschiderii arată ca un buton conturat, fără chevron. */
.settings-page details.section-window > summary { display:inline-flex; align-items:center; gap:.4rem; width:fit-content; min-height:36px; margin:0; padding:.35rem .9rem; border:1px solid hsl(var(--input)); border-radius:calc(var(--radius) - 2px);
  background:hsl(var(--card)); color:hsl(var(--foreground)); font-size:.875rem; font-weight:500; line-height:1.2; list-style:none; cursor:pointer; }
.settings-page details.section-window > summary::-webkit-details-marker { display:none; }
.settings-page details.section-window > summary::before, .settings-page details.section-window > summary::after { content:none !important; display:none !important; }
.settings-page details.section-window > summary:hover { border-color:hsl(var(--primary) / .6); color:hsl(var(--primary)); background:hsl(var(--primary) / .06); }
.settings-page details.section-window > summary:focus-visible { outline:2px solid hsl(var(--primary)); outline-offset:2px; }
.settings-page details.section-window > summary.act-primary { border-color:hsl(var(--primary)); background:hsl(var(--primary)); color:hsl(var(--primary-foreground)); }
.settings-page details.section-window > summary.act-primary:hover { background:hsl(var(--primary-hover)); color:hsl(var(--primary-foreground)); }
.settings-page details.section-window > summary.act-btn { min-height:32px; padding:.25rem .65rem; font-size:.8125rem; }
.settings-page details.section-window[open] > summary { margin:0; }
.settings-page details.section-window { margin:0; padding:0; border:0; background:none; box-shadow:none; }
.settings-page .section-modal-body h4 { margin:1rem 0 .4rem; font-size:.95rem; font-weight:650; }
.settings-page .section-modal-body h4:first-child { margin-top:0; }
.settings-page .section-modal-body .help { margin:0 0 .6rem; }
.settings-page .section-modal-body .field-group { margin:0; padding:0; border:0; }
.settings-page :is(.fees-check, .deadlines-rules-fold, .deadlines-calendar-fold) > dialog.section-modal { width:min(52rem, 94vw); }
.settings-page .fees-sums > dialog.section-modal, .settings-page .numbering-init > dialog.section-modal { width:min(36rem, 94vw); }
.settings-page .section-modal-body .fees-table { max-width:none; }

/* Rândul de instrumente: butoanele care deschid ferestre, pe un singur rând, la dreapta titlului. */
.settings-page .settings-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:.5rem; margin:0 0 var(--space-3); }
.settings-page .settings-tools > .deadlines-rules, .settings-page .settings-tools > .deadlines-calendar { display:contents; }
.settings-page .settings-tools > details.fees-check, .settings-page .settings-tools > details.deadlines-check { margin:0; }

/* Datele UAT: rubricile scurte câte 3–4 pe rând, fără explicații lungi. */
.settings-page .uat-form .uat-grid-compact { grid-template-columns:repeat(auto-fill, minmax(13rem, 1fr)); gap:0 .85rem; }
@media (min-width:1000px) { .settings-page .uat-form .uat-grid-compact > .field-wide { grid-column:span 2; } } /* Runda 7.11 (N7): the name of the institution has its width from 1000 px, not only from 1400 */
.settings-page .uat-form .uat-grid-compact > .field-full { grid-column:1 / -1; }
/* Runda 14.11 (S-08): the three rubrics of «Emitent și structură» stay on one line each at every width: the act's rubric has the longest label and the wider share. */
.settings-page .uat-form #uat-institution .uat-grid-compact { display:flex; flex-wrap:wrap; gap:0 .85rem; }
.settings-page .uat-form #uat-institution .uat-grid-compact > .field { flex:1 1 13rem; min-width:0; }
.settings-page .uat-form #uat-institution .uat-grid-compact > .field:has(#uat-institution-basis) { flex:1.3 1 16.5rem; }
.settings-page .uat-form .field-group { padding:.75rem 1rem .5rem; margin-top:var(--space-3); }
.settings-page .uat-form .uat-subsection { margin-top:var(--space-2); padding-top:var(--space-2); }
.settings-page .uat-form .uat-subsection > h4 { margin:0 0 .5rem; font-size:var(--text-card); font-weight:650; }
.uat-crest-row { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem .75rem; margin:.15rem 0 .5rem; }
.uat-crest-label { font-weight:600; font-size:.9rem; }
.uat-crest-row .image-preview { width:auto; max-width:64px; max-height:64px; margin:0; padding:2px; object-fit:contain; }
.uat-other-row { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin:0 0 .6rem; }
.uat-other-row > a.backup-link { display:inline-flex; align-items:center; min-height:36px; padding:.35rem .9rem; border:1px solid hsl(var(--input)); border-radius:calc(var(--radius) - 2px); background:hsl(var(--card)); color:hsl(var(--foreground)); font-size:.875rem; font-weight:500; text-decoration:none; }
.uat-other-row > a.backup-link:hover { border-color:hsl(var(--primary) / .6); color:hsl(var(--primary)); background:hsl(var(--primary) / .06); }
.settings-page .uat-form .uat-other .checkbox-field { margin:0 0 .4rem; }
.settings-page .uat-form .checkbox-field { margin-bottom:.4rem; }
.uat-signatories { margin:.25rem 0 .5rem; border-top:0; }
.uat-signatories-table th.uat-signatory-role { white-space:nowrap; }
.uat-signatories-table td:nth-child(2) { width:34%; }
.uat-signatories-table td:nth-child(3) { width:30%; }
.uat-signatories-table td.col-actions { width:1%; }

/* Module: un rând pe modul. */
#modules-settings .modules-table th.modules-name { font-weight:600; }
#modules-settings .modules-table td.modules-what { color:hsl(var(--muted-foreground)); }
#modules-settings .modules-table tr.modules-level-1 > th.modules-name { padding-left:1.75rem; }
#modules-settings .modules-table tr.modules-level-2 > th.modules-name { padding-left:2.75rem; }
#modules-settings .modules-table .modules-reason { white-space:normal; }
#modules-settings .modules-table button:disabled { opacity:.5; cursor:not-allowed; }

/* Taxe */
.fees-schedules td.fees-number strong { font-weight:600; }
.fees-schedules tr.library-retired td { color:hsl(var(--muted-foreground)); }
.fees-schedules .row-actions button.danger { color:hsl(var(--danger)); }
.fees-schedules .row-actions button.danger:hover:not(:disabled) { color:hsl(var(--danger)); background:hsl(var(--danger) / .08); border-color:hsl(var(--danger) / .5); }
.fees-schedules .row-actions > details { display:inline-block; }
@media (min-width:761px) { .settings-page table.data-table .row-actions { flex-wrap:nowrap; } }

/* Termene */
.deadlines-form .deadlines-days-table .deadlines-day-rows { display:table-row-group; margin:0; border:0; }
.deadlines-form .deadlines-days-table tr.deadlines-day-row { display:table-row; min-height:0; padding:0; border:0; }
.deadlines-form .deadlines-days-table td:first-child { width:12rem; }
.deadlines-form .deadlines-days > .act-btn { margin-top:.5rem; }
.deadlines-form .deadlines-days { margin:var(--space-3) 0 0; }

/* Numerotare */
#numbering-settings .filter-card { margin:0 0 var(--space-3); }
#numbering-settings .filter-card .numbering-year-field { margin:0; max-width:10rem; }
#numbering-settings .numbering-table td.numbering-cell-last input { max-width:11rem; }
#numbering-settings .numbering-table td.numbering-cell-next { text-align:left; }
#numbering-settings .numbering-table th:nth-child(3), #numbering-settings .numbering-table th:nth-child(4) { text-align:left; }
#numbering-settings .numbering-table .numbering-row-check { display:inline-flex; align-items:center; gap:.5rem; min-height:44px; padding:0; border:0; background:none; font-size:.875rem; cursor:pointer; }
#numbering-settings .numbering-table .numbering-row-check input { width:1.1rem; height:1.1rem; margin:0; }
#numbering-settings .numbering-init { margin:var(--space-3) 0 0; }

/* Pe telefon, rândurile tabelelor cu câmpuri devin carduri: fiecare valoare își poartă titlul coloanei. */
@media (max-width:760px) {
  .settings-page :is(.uat-signatories-table, .modules-table, .fees-schedules, .deadlines-days-table, #numbering-settings .numbering-table) thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .settings-page :is(.uat-signatories-table, .modules-table, .fees-schedules, .deadlines-days-table, #numbering-settings .numbering-table), .settings-page :is(.uat-signatories-table, .modules-table, .fees-schedules, .deadlines-days-table, #numbering-settings .numbering-table) tbody { display:block; width:100%; }
  .settings-page :is(.uat-signatories-table, .modules-table, .fees-schedules, .deadlines-days-table, #numbering-settings .numbering-table) tr,
  .deadlines-form .deadlines-days-table tr.deadlines-day-row, #numbering-settings .numbering-table tr.numbering-row { display:grid; grid-template-columns:minmax(0,1fr); gap:.3rem; padding:.7rem .25rem; border-bottom:1px solid hsl(var(--border)); }
  .settings-page :is(.uat-signatories-table, .modules-table, .fees-schedules, .deadlines-days-table, #numbering-settings .numbering-table) :is(th, td) { display:block; width:auto !important; padding:0; border:0; text-align:left; }
  .settings-page :is(.uat-signatories-table, .modules-table, .fees-schedules, .deadlines-days-table, #numbering-settings .numbering-table) td[data-label]::before { content:attr(data-label); display:block; margin-bottom:.15rem; color:hsl(var(--muted-foreground)); font-size:.7rem; font-weight:650; letter-spacing:.05em; text-transform:uppercase; }
  .settings-page :is(.uat-signatories-table, .modules-table, .fees-schedules, .deadlines-days-table, #numbering-settings .numbering-table) td.col-actions { text-align:left; }
  .settings-page :is(.uat-signatories-table, .modules-table, .fees-schedules, .deadlines-days-table, #numbering-settings .numbering-table) .row-actions { justify-content:flex-start; }
  .settings-page .settings-tools { justify-content:flex-start; }
  .settings-page .deadlines-form .deadlines-days-table .act-btn, .settings-page .modules-table .act-btn, .settings-page .fees-schedules .act-btn { min-height:40px; }
  #numbering-settings .numbering-table td.numbering-cell-next { text-align:left; }
  #numbering-settings .numbering-table td.numbering-cell-last input { max-width:none; }
  .uat-signatories-table td:nth-child(2), .uat-signatories-table td:nth-child(3) { width:auto; }
}
:is(.library-table, .accounts-table, .audit-table, .directories-table) td.col-actions .row-actions { flex-wrap:nowrap; }
.records-head + :is(p.help, .help) { margin:calc(var(--space-2) * -1) 0 var(--space-3); }
.audit-filters .audit-downloads label { white-space:nowrap; }
.settings-page .filter-card .audit-filters { grid-template-columns:minmax(9rem,11rem) minmax(11rem,15rem) minmax(10rem,1fr) max-content max-content; }
.directories-kinds.workspace-tabs { margin-top:var(--space-2); }
@media (max-width:760px) { :is(.library-table, .accounts-table, .audit-table, .directories-table) td.col-actions .row-actions { flex-wrap:wrap; } .settings-page .filter-card .audit-filters { grid-template-columns:1fr; } }
.deadlines-form .table-wrap:has(> table > tbody:empty) { display:none; }
.settings-page .settings-tools { margin-top:var(--space-2); }
#numbering-settings .numbering-intro { margin:0 0 var(--space-3); }
.settings-page details.modal-host > summary { display:none !important; }
.settings-page .records-head details.section-window > summary { min-height:var(--control-height); padding:.55rem 1rem; border-radius:var(--radius); font-size:.9375rem; }
.settings-page .records-head details.section-window > summary.head-primary { border-color:hsl(var(--primary)); background:hsl(var(--primary)); color:hsl(var(--primary-foreground)); font-weight:600; }
.settings-page .records-head details.section-window > summary.head-primary:hover { background:hsl(var(--primary-hover)); color:hsl(var(--primary-foreground)); }
.section-modal-body .library-editor .uat-settings-grid { grid-template-columns:1fr 1fr; }
.section-modal-body .library-editor .library-wide, .section-modal-body .library-editor .field:has(#library-title), .section-modal-body .library-editor .field:has(#library-act), .section-modal-body .library-editor .field:has(#library-name), .section-modal-body .library-editor .field:has(#library-approval) { grid-column:1 / -1; }
@media (max-width:760px) { .section-modal-body .library-editor .uat-settings-grid { grid-template-columns:1fr; } }
.fees-editor > .field-group > legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.settings-page :is(.fees-check, .fees-edit-window, .deadlines-check) .section-modal-body .uat-settings-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.settings-page .fees-edit-window > dialog.section-modal { width:min(52rem, 94vw); }
@media (max-width:640px) { .settings-page :is(.fees-check, .fees-edit-window, .deadlines-check) .section-modal-body .uat-settings-grid { grid-template-columns:1fr; } }
.numbering-init .numbering-form { margin:0; padding:0; border:0; }
.settings-page dialog.section-modal { text-align:left; }
.section-modal-body .directories-card .uat-settings-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
@media (max-width:760px) { .section-modal-body .directories-card .uat-settings-grid { grid-template-columns:1fr; } }
@media (max-width:760px) {
  .workspace.settings-page :is(.library-table, .accounts-table, .audit-table, .directories-table) tbody td { padding:.1rem 0; border:0; background:none; }
  .workspace.settings-page :is(.library-table, .accounts-table, .audit-table, .directories-table) td.col-actions { padding-top:.4rem; }
  .audit-table td.audit-object .audit-object-title { display:inline; }
}
/* Runda 5 (QA): on a tablet the journal's filters wrap instead of pushing «Afișează luna» out of the screen. */
@media (max-width:1100px) { .settings-page .filter-card .audit-filters { grid-template-columns:repeat(auto-fit, minmax(10rem, 1fr)); } }

/* ===== Runda 5 (FS): Conturi, Jurnal, Module, ferestre ===== */
/* Q3-06 / Q4-10: the journal's filters wrap inside their frame (the content column is narrow up to ~1440 px, with the section list beside it). */
@media (max-width:1440px) { .settings-page .filter-card .audit-filters { grid-template-columns:repeat(auto-fit, minmax(10rem, 1fr)); } .settings-page .filter-card .audit-filters .audit-downloads { align-self:end; } }
/* Q3-05: the accounts' buttons break into clean rows; the name never breaks inside a word. */
.accounts-table td.account-state { min-width:9.5rem; }
.accounts-table .account-name { white-space:nowrap; }
.accounts-table .account-state .cell-sub { white-space:normal; max-width:14rem; }
.accounts-table td.col-actions { min-width:18.5rem; }
.accounts-table td.col-actions .row-actions, :is(.library-table, .accounts-table, .audit-table, .directories-table) td.col-actions .row-actions { flex-wrap:wrap; justify-content:flex-end; max-width:22rem; margin-left:auto; }
.accounts-table td.col-actions .act-btn { white-space:nowrap; }
/* Q3-17: «Pornește» and «Oprește» have one width; the buttons of the title row do not sit lower than the title. */
.modules-table td.col-actions .act-btn { min-width:6.75rem; justify-content:center; }
.records-head > .settings-tools, .settings-page .records-head > .settings-tools { margin:0; }
.records-head .modules-preset { margin:0; }
/* Q3-20: while a window is open its message is said in the window only, not again on the page behind. */
body:has(dialog.section-modal[open]) .settings-page :is(.error, [role="alert"]):not(dialog *) { visibility:hidden; }
/* Q3-16: fields of one row stand on one line even when a label takes two lines (the control sits at the bottom of its cell); the function select shows its whole text. */
.settings-page .uat-form .uat-grid-compact > .field { display:flex; flex-direction:column; justify-content:flex-end; }
.uat-signatories-table th.uat-signatory-role { white-space:normal; width:30%; }
.uat-signatories-table td:nth-child(2) { width:31%; }
.uat-signatories-table td:nth-child(3) { width:34%; }
.uat-signatories-table td select { padding-right:1.75rem; text-overflow:clip; }
/* Q3-25: a field that cannot be changed (a reading account) stays readable: normal text on a grey ground. */
.settings-page :is(input, select, textarea):disabled { opacity:1; background:hsl(var(--muted)); color:hsl(var(--foreground)); -webkit-text-fill-color:hsl(var(--foreground)); border-color:hsl(var(--border)); }
.settings-page :is(input, select, textarea):disabled::placeholder { color:hsl(var(--muted-foreground)); -webkit-text-fill-color:hsl(var(--muted-foreground)); }
/* R5 (GS): Texte, butoanele din «Acțiuni» într-o coloană curată, de aceeași lățime, cu spațiu față de margine. */
@media (min-width:761px) {
  .settings-page .library-table td.col-actions { padding-right:var(--space-3); }
  .settings-page .library-table td.library-text-cell { min-width:7rem; }
  .settings-page .library-table td.library-title-cell { min-width:8rem; }
  .settings-page .library-table td.col-actions .row-actions { flex-direction:column; flex-wrap:nowrap; align-items:stretch; width:7.5rem; margin-left:auto; gap:.4rem; }
  .settings-page .library-table td.col-actions .row-actions > :is(.act-btn, details) { width:100%; margin:0; text-align:center; justify-content:center; }
  .settings-page .library-table td.col-actions .row-actions > details > summary { width:100%; justify-content:center; }
}
/* R5 (GS): în ferestrele «Cont nou» și «Schimbă dreptul», grupul de câmpuri nu mai trage o linie sub butoane. */
.section-modal-body :is(.account-new form, .accounts-action) .field-group { padding:0; border:0; background:none; box-shadow:none; }
/* R5 (GS, V2-08): Conturi, butoanele rândului se rup pe două rânduri, nu lărgesc tabelul; nota contului are loc să respire. */
@media (min-width:761px) {
  .settings-page .accounts-table td.col-actions .row-actions { display:flex; flex-direction:column; flex-wrap:nowrap; align-items:stretch; width:9.5rem; margin-left:auto; gap:.4rem; }
  .settings-page .accounts-table td.col-actions .row-actions > .act-btn { width:100%; justify-content:center; }
  .settings-page .accounts-table td.account-state { overflow-wrap:anywhere; }
  .settings-page .accounts-table td.col-actions { min-width:0; }
}
/* Round 5 (W2-14): the columns keep their width whether or not a disabled account is in the list. */
@media (min-width:761px) {
  .workspace table.accounts-table { width:100%; }
  .workspace table.accounts-table th:nth-child(2), .workspace table.accounts-table th:nth-child(3), .workspace table.accounts-table th:nth-child(4) { white-space:nowrap; }
  .workspace table.accounts-table th:nth-child(2) { width:9rem; }
  .workspace table.accounts-table th:nth-child(3) { width:7rem; }
  .workspace table.accounts-table th:nth-child(4) { width:5.5rem; }
  .workspace table.accounts-table th.col-actions { width:12rem; }
  .accounts-table td.account-state { min-width:0; }
  .accounts-table .account-state .cell-sub { max-width:none; }
}
@media (min-width:1500px) { .workspace table.accounts-table { table-layout:fixed; } .workspace table.accounts-table th.col-actions, .workspace table.accounts-table td.col-actions { width:12rem; } }

/* Runda 10.11: the list of sections stands at the side from 1280 px (settings-navigation.js); below it the chooser leaves the whole width to the content. */
/* Runda 9 (QA): one banner about the right: the line that says why a section is closed replaces the general note of a reading account. */
.settings-page:has(> #settings-restricted:not([hidden])) > .readonly-banner { display:none; }

/* Runda 9 (QA): «⋯» in a row (the less used actions), a dangerous confirmation, empty states, small windows. */
.settings-page details.row-more { position:relative; display:inline-block; margin:0; padding:0; border:0; background:none; }
.settings-page details.row-more > summary { list-style:none; display:inline-flex; align-items:center; justify-content:center; min-width:2.1rem; min-height:32px; margin:0; padding:0 .5rem; border:1px solid hsl(var(--border)); border-radius:calc(var(--radius) - 2px); background:hsl(var(--card)); color:hsl(var(--foreground)); font-weight:700; letter-spacing:.06em; line-height:1; cursor:pointer; }
.settings-page details.row-more > summary::-webkit-details-marker { display:none; }
.settings-page details.row-more > summary::before, .settings-page details.row-more > summary::after { content:none !important; display:none !important; }
.settings-page details.row-more > summary:hover, .settings-page details.row-more[open] > summary { border-color:hsl(var(--primary) / .55); background:hsl(var(--muted) / .5); }
.settings-page .row-more-menu { position:absolute; right:0; top:calc(100% + .25rem); z-index:30; display:flex; flex-direction:column; align-items:stretch; min-width:12rem; padding:.35rem; border:1px solid hsl(var(--border)); border-radius:var(--radius); background:hsl(var(--card)); box-shadow:0 10px 28px hsl(222 47% 11% / .16); }
.settings-page .row-more-menu > button { display:flex; justify-content:flex-start; width:100%; margin:0; min-height:36px; padding:.35rem .65rem; border:0; border-radius:calc(var(--radius) - 2px); background:none; box-shadow:none; color:hsl(var(--foreground)); text-align:left; font-size:.85rem; font-weight:500; white-space:nowrap; }
.settings-page .row-more-menu > button:hover:not(:disabled) { background:hsl(var(--muted)); }
.settings-page .row-more-menu > button.danger { color:hsl(var(--danger)); }
.settings-page .row-more-menu > button.danger:hover:not(:disabled) { background:hsl(var(--danger) / .08); }
/* the menu must not be cut by the scroll frame of the table (the table does not scroll sideways on a wide screen) */
@media (min-width:761px) { .settings-page .table-wrap:has(details.row-more) { overflow:visible; } }
@media (max-width:760px) { .settings-page .row-more-menu { right:auto; left:0; } }
.settings-page button.confirm-danger { color:hsl(var(--danger)); border-color:hsl(var(--danger) / .55); background:hsl(var(--card)); }
.settings-page button.confirm-danger:hover:not(:disabled) { background:hsl(var(--danger) / .08); color:hsl(var(--danger)); border-color:hsl(var(--danger)); }
.settings-page .empty-state { border:1px dashed hsl(var(--border)); border-radius:var(--radius); justify-content:space-between; margin:var(--space-2) 0 var(--space-4); }
.settings-page .empty-state > button { flex:none; }
.settings-page .uat-defaults-actions { margin:var(--space-4) 0 0; padding-top:var(--space-3); border-top:1px solid hsl(var(--border)); }
.settings-page .deadlines-add-body .field-error { margin:.25rem 0 0; }
.settings-page .deadlines-days-none { margin:.25rem 0 .5rem; }
.settings-page .account-new .field.field-invalid > .help { display:none; }
.settings-page .library-intro { margin:0 0 var(--space-3); }
/* the opener of the numbering window while nothing is ticked */
.settings-page #registry-numbering-init > summary[aria-disabled="true"] { background:hsl(var(--muted)); border-color:hsl(var(--border)); color:hsl(var(--muted-foreground)); cursor:not-allowed; box-shadow:none; }
.settings-page .numbering-init-why { margin:var(--space-1) 0 0; }
/* Runda 9 (QA): Conturi: two buttons and «⋯» on one line (the column of sessions is gone, so the columns are counted again). */
@media (min-width:761px) {
  .settings-page .accounts-table td.col-actions .row-actions { flex-direction:row; flex-wrap:nowrap; align-items:center; justify-content:flex-end; width:auto; max-width:none; }
  .settings-page .accounts-table td.col-actions .row-actions > .act-btn { width:auto; }
  .workspace table.accounts-table th:nth-child(2) { width:10rem; }
  .workspace table.accounts-table th:nth-child(3) { width:6.5rem; }
  .workspace table.accounts-table th:nth-child(4), .workspace table.accounts-table th.col-actions { width:19rem; }
}
@media (min-width:1500px) { .workspace table.accounts-table th.col-actions, .workspace table.accounts-table td.col-actions { width:19rem; } }
@media (min-width:761px) and (max-width:1199px) { .settings-page .accounts-table td.col-actions .row-actions { flex-wrap:wrap; } }

/* Runda 10 (QA H4-02): a long name wraps in the register tables; the page never scrolls sideways. */
.workspace table.data-table :is(td, th):not(.col-actions) { overflow-wrap:anywhere; }
/* Runda 12 (beneficiari, 31.10): Texte — «Editează», «Istoric» and «⋯» on one line, as the fees and the accounts. */
@media (min-width:761px) {
  .settings-page .library-table td.col-actions .row-actions { flex-direction:row; flex-wrap:nowrap; align-items:center; justify-content:flex-end; width:auto; }
  .settings-page .library-table td.col-actions .row-actions > :is(.act-btn, details) { width:auto; }
  .settings-page .library-table td.col-actions .row-actions > details > summary { width:auto; }
  .workspace table.library-table th.col-actions { width:13.5rem; }
}

/* Runda 17 (01.11): in a documentation's history, the source file is named once, then «Vezi» and «Descarcă» beside it. */
.library-revisions .library-source { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem .6rem; }

/* Runda 7.11 (N7, M2): a list of choice is as wide as its longest option; a column does not cut a word. */
.audit-filters .field:has(input[type="checkbox"]) { white-space:nowrap; min-width:0; }
.settings-page .library-table td[data-label="Categorie"] { overflow-wrap:normal; word-break:normal; hyphens:none; }
@media (min-width:1250px) {
  .settings-page .library-table td[data-label="Categorie"] { min-width:8.5rem; }
  .settings-page .library-table td.library-title-cell { min-width:14rem; }
  .settings-page .library-table td.library-text-cell { width:24%; max-width:22rem; }
}

/* The source of the number, series by series (above the year and the initialization of the last numbers). */
.numbering-sources { margin-bottom: var(--space-5, 1.5rem); }
.numbering-sources .numbering-submit-row { margin-top: var(--space-3, .75rem); }
/* The choice of the extension (CU and AC) sits beside the source; on a phone the two selects share the row of the series. */
.numbering-source-table td.numbering-cell-extension:empty { padding:0; }
@media (max-width:600px) {
  #numbering-settings .numbering-source-table tr.numbering-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  #numbering-settings .numbering-source-table td.numbering-cell-extension:empty { display:none; }
  #numbering-settings .numbering-source-table td.numbering-cell-source:has(+ td.numbering-cell-extension:empty) { grid-column:1 / -1; }
  #numbering-settings .numbering-source-table td.numbering-cell-source::before, #numbering-settings .numbering-source-table td.numbering-cell-extension::before { content:attr(data-label); display:block; margin-bottom:.15rem; color:hsl(var(--muted-foreground)); font-size:var(--text-label); }
}
/* The head of the last column of the table of sources (the choice of the extension) is aligned with its content, not to the right as the numbers of the table below. */
#numbering-settings .numbering-source-table th:last-child, #numbering-settings .numbering-source-table td:last-child { text-align:left; }

/* Runda 10.11: the tables of the settings fit their column on a computer (no scroll to the side, no column out of the page) and no word
   is cut in the middle: a cell goes on two lines at a space, the user's name stays whole, the month and the event of the journal are read whole. */
@media (min-width:761px) {
  .settings-page .library-table td.library-title-cell { min-width:8rem; }
  .settings-page .library-table td[data-label="Categorie"] { min-width:0; }
  .settings-page .library-table td.library-text-cell { min-width:5rem; width:22%; }
  .workspace.settings-page table.library-table td.col-nowrap[data-label="Modificat"] { white-space:normal; min-width:6.5rem; }
  .settings-page :is(.library-table, .audit-table, .numbering-table) td:not(.library-text-cell) { overflow-wrap:normal; word-break:normal; }
  .settings-page .audit-table td[data-label="Utilizator"] { white-space:nowrap; }
  .settings-page .audit-table td.audit-object { min-width:10rem; }
  /* When the section is narrow (a computer of 1024 px), the column «Text» (the first words of the text) gives its place: the title stays,
     «Editează» and «Istoric» show the whole text. As the documents of a dossier (cases.css), the width is that of the section, not of the screen. */
  #library-settings { container-type:inline-size; }
  @container (max-width:700px) {
    .settings-page .library-table :is(th:nth-child(3), td.library-text-cell) { display:none; }
  }
}
/* «Altă funcție…»: the written function stands under the list, in the same cell and as high as the other fields. */
.uat-signatories-table td [data-problem-holder] { margin-top:.35rem; }
.uat-signatories-table td [data-problem-holder][hidden] { display:none; }
.uat-signatories-table td .uat-function-other { display:block; width:100%; }
/* «Întocmit»: the fourth row is there only while its option is ticked (the phone layout makes rows blocks, which would show a hidden one). */
.uat-signatories-table td [data-name-box] { margin-top:0; }
.uat-signatories-table tr[hidden] { display:none !important; }

/* Runda 12.11 (istoricul semnatarilor): coloana «În funcție din», «Schimbă» / «Istoric» / «Golește» pe rând, ferestrele «Semnatar nou» și «Istoric». */
.settings-page .uat-signatories-table th.uat-signatory-role { width:18%; }
.settings-page .uat-signatories-table td:nth-child(2) { width:28%; }
.settings-page .uat-signatories-table td:nth-child(3) { width:28%; }
.settings-page .uat-signatories-table th:nth-child(4) { white-space:normal; width:1%; min-width:6.4rem; }
.settings-page .uat-signatories-table td.uat-signatory-from { width:1%; white-space:nowrap; }
/* «În funcție din» se scrie pe rând: câmpul de dată, cu butonul lui de calendar, are loc întreg. */
.uat-signatories-table td.uat-signatory-from [data-problem-holder] { margin-top:0; }
.uat-signatories-table td.uat-signatory-from .date-ro-control { display:flex; min-width:10.5rem; }
.uat-signatories-table td.uat-signatory-from .field-error { white-space:normal; }
.settings-page .uat-signatories-table td.col-actions { width:1%; }
.uat-signatories-table .uat-signatory-future { margin:.3rem 0 0; font-size:.8125rem; }
.uat-signatories-table .row-actions { flex-wrap:nowrap; }
@media (min-width:1440px) { .workspace.settings-page table.data-table.uat-signatories-table :is(th, td) { padding-left:.5rem; padding-right:.5rem; } .settings-page .uat-signatories-table .row-actions { gap:.25rem; } .settings-page .uat-signatories-table .row-actions .act-btn { padding-left:.5rem; padding-right:.5rem; } }
/* Sub 1440 px tabelul de semnatari sunt carduri: rolul pe un rând, numele, funcția și data alături, acțiunile dedesubt. Cu meniul alături, la 1280–1366 px cele cinci coloane nu încap: numele ar fi tăiate și rolul rupt în mijlocul cuvântului. */
@media (max-width:1439px) and (min-width:761px) {
  .workspace.settings-page table.data-table.uat-signatories-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .workspace.settings-page table.data-table.uat-signatories-table, .workspace.settings-page table.data-table.uat-signatories-table tbody { display:block; width:100%; }
  .workspace.settings-page table.data-table.uat-signatories-table tr { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1.1fr) minmax(10.5rem,.8fr); gap:.35rem .75rem; align-items:start; padding:.7rem .25rem; border-bottom:1px solid hsl(var(--border)); }
  .workspace.settings-page table.data-table.uat-signatories-table :is(th, td) { display:block; width:auto !important; padding:0; border:0; background:none; text-align:left; }
  .workspace.settings-page table.data-table.uat-signatories-table th.uat-signatory-role { grid-column:1 / -1; }
  .workspace.settings-page table.data-table.uat-signatories-table tr, .workspace.settings-page table.data-table.uat-signatories-table tr > * { background:none !important; }
  .workspace.settings-page table.data-table.uat-signatories-table td[data-label]::before { content:attr(data-label); display:block; margin-bottom:.15rem; color:hsl(var(--muted-foreground)); font-size:.7rem; font-weight:650; letter-spacing:.05em; text-transform:uppercase; }
  .workspace.settings-page table.data-table.uat-signatories-table td.col-actions { grid-column:1 / -1; }
  .workspace.settings-page table.data-table.uat-signatories-table td.col-actions .row-actions { justify-content:flex-start; }
}
@media (max-width:760px) { .uat-signatories-table .row-actions { flex-wrap:wrap; } .settings-page .uat-signatories-table td.uat-signatory-from { white-space:normal; } }
.uat-signatory-form .uat-settings-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.uat-signatory-form .uat-settings-grid > .field { margin:0; }
.uat-signatory-form .uat-settings-grid > .field:first-child { grid-column:1 / -1; }
.uat-signatory-form .uat-function-other { display:block; width:100%; }
.uat-signatory-form [data-problem-holder] { margin-top:.35rem; }
.uat-signatory-form [data-problem-holder][hidden] { display:none; }
.uat-signatory-form .uat-signatory-note { margin:.75rem 0 0; }
.uat-signatory-form .form-actions { margin-top:1rem; }
.uat-history-form .table-wrap { margin:0; }
.uat-history-form .uat-history-overlap { margin:.75rem 0 0; }
.uat-history-form > .secondary { margin-top:.75rem; }
.uat-history-table th:nth-child(1), .uat-history-table td:nth-child(2) { width:28%; }
.uat-history-table td .date-ro-control { display:flex; }
.uat-history-table td.col-actions { width:1%; white-space:nowrap; }
.uat-history-table td select { padding-right:1.75rem; text-overflow:clip; }
.uat-history-table tr > input[type="hidden"] { display:none; }
@media (max-width:760px) {
  .uat-signatory-form .uat-settings-grid { grid-template-columns:minmax(0,1fr); }
  .uat-history-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .uat-history-table, .uat-history-table tbody { display:block; width:100%; }
  .uat-history-table tr { display:grid; grid-template-columns:minmax(0,1fr); gap:.3rem; padding:.7rem .25rem; border-bottom:1px solid hsl(var(--border)); }
  .uat-history-table :is(th, td) { display:block; width:auto !important; padding:0; border:0; text-align:left; }
  .uat-history-table td[data-label]::before { content:attr(data-label); display:block; margin-bottom:.15rem; color:hsl(var(--muted-foreground)); font-size:.7rem; font-weight:650; letter-spacing:.05em; text-transform:uppercase; }
  .uat-history-table td.col-actions { text-align:left; }
  .uat-history-table .row-actions { justify-content:flex-start; }
}
/* The two windows of the signatories hold no visible place on the page: the window itself is the dialog. */
details.uat-signatory-window { position:fixed; top:0; left:0; width:0; height:0; margin:0; padding:0; border:0; overflow:visible; }
details.uat-signatory-window > summary { display:none; }

/* Round 23.11: the name and function of the signed-in account, shown on «Parola mea». */
.account-person { display:flex; flex-wrap:wrap; gap:var(--space-2) 1.5rem; margin:0 0 var(--space-4); }
.account-person > div { display:flex; flex-direction:column; gap:.1rem; }
.account-person dt { font-size:.8rem; color:hsl(var(--muted-foreground)); }
.account-person dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
