/* ============================================================================
   THE CALM LISTS, IN THE PREVIEW (R-2138 Leads, R-2139 Jobs, R-2140 Candidates, R-2149 Clients, R-2147 Placements; the owner,
   3 Dec 2026, D-1023: "okay build this now", pinned on "Not in this build"). NEW PACE ONLY, and only for a person who switched
   the calm preview on: every rule starts with html[data-new-pace][data-calm] (set by public/js/99zzzz5-calm-frame.js on a wide
   screen with a mouse). Without the attribute this file changes nothing.
   What a list is in the drawings (docs/design/CALM_SCREENS.md, pictures 12, 14, 16, 28, 32):
     1. a row is 50px high: the name and one quiet line under it. Today's rows are 64 to 99px;
     2. the column names are one 34px line of small capitals;
     3. the label of a row's state and the owner's circle are smaller; a record's code is plain small text beside the name;
     4. the line under the list (what is shown, what is hidden, the pages) is 36px and stays at the bottom of the screen;
     5. Candidates: the status counts are one 40px line of quiet words; a person's tags stand in a column of their own; the
        tick box shows on the row the pointer is on; one filled button adds people;
     6. Placements: the four numbers are one line above the list, not four cards.
   Only sizes and places change here: every word, number, button and colour is the page's own.
   An opened row's panel (tr.row-exp, tr.nj-exp) keeps today's spacing: the rules below leave it out by name.
   Guard: test/calm-rows-smoke.mjs.
   ============================================================================ */

/* ── 1. a row: 50px with its one line, the name and one quiet line under it. Every rule names the list's own cell
      (table.dt > tbody > tr > td), never a cell or a label inside an opened row's panel ── */
html[data-new-pace][data-calm] .np-place table.dt > tbody > tr:not(.row-exp):not(.nj-exp) > td,
html[data-new-pace][data-calm] .ld-drawn table.dt > tbody > tr:not(.row-exp) > td{height:50px;padding-top:var(--np-space-1);padding-bottom:var(--np-space-1);font-size:var(--np-text-md)}
html[data-new-pace][data-calm] .np-place table.dt > tbody > tr:not(.row-exp):not(.nj-exp) > td .cell-id b,
html[data-new-pace][data-calm] .ld-drawn table.dt > tbody > tr:not(.row-exp) > td .cell-id b{font:600 var(--np-text-md)/20px var(--font)}
html[data-new-pace][data-calm] .np-place table.dt > tbody > tr:not(.row-exp):not(.nj-exp) > td .cell-id small,
html[data-new-pace][data-calm] .ld-drawn table.dt > tbody > tr:not(.row-exp) > td .cell-id small{font:400 var(--np-text-sm)/18px var(--font);margin-top:0}
html[data-new-pace][data-calm] .ld-drawn table.dt > tbody > tr:not(.row-exp) > td .ld-who span{font:400 var(--np-text-md)/20px var(--font)}
html[data-new-pace][data-calm] .ld-drawn table.dt > tbody > tr:not(.row-exp) > td .ld-who small{font:400 var(--np-text-sm)/18px var(--font)}
html[data-new-pace][data-calm] .np-place table.dt > tbody > tr:not(.row-exp):not(.nj-exp) > td .cand-last{gap:0}
html[data-new-pace][data-calm] .np-place table.dt > tbody > tr:not(.row-exp):not(.nj-exp) > td .cand-last b{font:500 var(--np-text-md)/20px var(--font)}
html[data-new-pace][data-calm] .np-place table.dt > tbody > tr:not(.row-exp):not(.nj-exp) > td .cand-last small{font:400 var(--np-text-sm)/18px var(--font)}

/* ── 2. the column names: one 34px line of small capitals ── */
html[data-new-pace][data-calm] .np-place table.dt > thead th,
html[data-new-pace][data-calm] .ld-drawn table.dt > thead th{height:34px;padding-top:var(--np-space-2);padding-bottom:var(--np-space-2);font:700 var(--np-text-min)/1.2 var(--font);text-transform:uppercase;letter-spacing:.03em}

/* ── 3. the state's label, the owner's circle, a record's code ── */
html[data-new-pace][data-calm] .np-place table.dt > tbody > tr:not(.row-exp):not(.nj-exp) > td .pill,
html[data-new-pace][data-calm] .ld-drawn table.dt > tbody > tr:not(.row-exp) > td .ld-st{padding:0 var(--np-space-2_5);font:700 var(--np-text-min)/20px var(--font)}
html[data-new-pace][data-calm] .ld-drawn table.dt > tbody > tr:not(.row-exp) > td .ld-own{width:26px;height:26px;font-size:var(--np-text-min)}
html[data-new-pace][data-calm] .np-place table.dt > tbody > tr:not(.row-exp):not(.nj-exp) > td .cell-id .id-chip{padding:0;background:none;font:500 var(--np-text-min)/20px var(--font)}

/* ── 4. the line under the list: 36px, at the bottom of the screen while the list moves under it (a float is opaque) ── */
html[data-new-pace][data-calm] .ld-drawn .lv-foot,
html[data-new-pace][data-calm] .np-pl-jobs .nj-foot,
html[data-new-pace][data-calm] .np-pl-candidates .pg-body > .dt-wrap + div.fs-12_5{position:sticky;bottom:0;z-index:2;box-sizing:border-box;min-height:36px;padding:var(--np-space-1) var(--np-space-5);
  background:var(--card-solid);border-radius:0;font-size:var(--np-text-sm)}
html[data-new-pace][data-calm] .np-pl-jobs .nj-foot{margin-bottom:0}
/* the line stays at the bottom of the part that scrolls: on Leads that is the page, so the list's own box must not be one */
html[data-new-pace][data-calm] .ld-drawn .pg-body{padding-bottom:0;overflow:visible}
html[data-new-pace][data-calm] .np-pl-candidates .pg-body{padding-bottom:0}
html[data-new-pace][data-calm] .ld-drawn .lv-foot .ld-hz-btn,
html[data-new-pace][data-calm] .np-pl-jobs .nj-foot .nj-lnk{min-height:26px;font-size:var(--np-text-sm)}
html[data-new-pace][data-calm] .np-pl-jobs .nj-foot .hz-pg{min-height:26px;font-size:var(--np-text-sm)}
html[data-new-pace][data-calm] .np-pl-jobs .nj-foot .hz-pgn{font-size:var(--np-text-sm)}
html[data-new-pace][data-calm] .ld-drawn .lv-foot .btn,
html[data-new-pace][data-calm] .np-pl-candidates .pg-body > .dt-wrap + div.fs-12_5 .btn{min-height:26px;height:26px;font-size:var(--np-text-sm)}

/* ── 5. Candidates: the status counts are one 40px line of quiet words (the one in use tinted); the tags' own column; the search
      row's tools in the top line; the three choosers behind the funnel (99zzzz7-calm-lists.js) ── */
html[data-new-pace][data-calm] .np-pl-candidates .pg > .np-chips{flex:none;flex-wrap:nowrap;gap:var(--np-space-0_5);height:var(--np-h-control-sm);margin:0;overflow:hidden}
html[data-new-pace][data-calm] .np-pl-candidates .pg > .np-chips .np-chip{flex:none;min-height:0;height:30px;padding:0 var(--np-space-2_5);border-color:transparent;border-radius:var(--np-round-sm);background:transparent;box-shadow:none;
  font:500 var(--np-text-md)/1 var(--font);color:var(--text2)}
html[data-new-pace][data-calm] .np-pl-candidates .pg > .np-chips .np-chip b{font-weight:600;color:var(--text3)}
html[data-new-pace][data-calm] .np-pl-candidates .pg > .np-chips .np-chip[aria-pressed="true"]{background:var(--accent-l);color:var(--accent);font-weight:700}
html[data-new-pace][data-calm] .np-pl-candidates .pg > .np-chips .np-chip[aria-pressed="true"] b{color:var(--accent)}
html[data-new-pace][data-calm] .np-pl-candidates table.dt > tbody > tr:not(.row-exp) > td .cand-tags{flex-wrap:nowrap;margin-top:0;overflow:hidden}
html[data-new-pace][data-calm] .np-pl-candidates .cand-fold .sel{width:100% !important}
/* the tick box: on the row the pointer is on, on every row once one is ticked, and when the keyboard reaches it */
html[data-new-pace][data-calm] :is(.np-pl-candidates table.dt :is(th,td):first-child,:is(.ld-drawn,.np-pl-jobs) table.dt :is(th,td):first-child:has(:is(.ck,.nj-ck))){width:44px;padding-left:var(--np-space-4);padding-right:0}
html[data-new-pace][data-calm] :is(.np-pl-candidates,.ld-drawn,.np-pl-jobs) table.dt :is(th,td):first-child :is(.ck,.nj-ck){opacity:0}
html[data-new-pace][data-calm] :is(.np-pl-candidates,.ld-drawn,.np-pl-jobs) table.dt :is(thead,tbody) > tr:hover > :first-child :is(.ck,.nj-ck),
html[data-new-pace][data-calm] .np-pl-candidates table.dt:has(.ck:checked) .ck,
html[data-new-pace][data-calm] :is(.np-pl-candidates,.ld-drawn,.np-pl-jobs) table.dt :is(th,td):first-child :is(.ck,.nj-ck):focus-visible,
html[data-new-pace][data-calm] #content:has(:is(.ld-select-btn,.nj-select)[aria-pressed="true"]) :is(.ld-drawn,.np-pl-jobs) table.dt :is(.ck,.nj-ck){opacity:1}
/* Leads and Jobs as drawn (R-2157): "Select" is the three dots' first line ("Done" stays while ticking); an icon tool has no arrow;
   the pool's number is the Unassigned chip, pressed */
html[data-new-pace][data-calm] :is(.ld-drawn,.np-pl-jobs) table.dt > thead th:first-child:has(:is(.ck,.nj-ck)){padding-top:0;padding-bottom:0}   /* the names' line stays 34px with a tick in it */
html[data-new-pace][data-calm] #content :is(.ld-select-btn,.nj-select)[aria-pressed="false"]{display:none}
html[data-new-pace][data-calm] #content .btn > .np-icon-word{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}   /* an icon tool's word: out of sight, still read by a screen reader */
html[data-new-pace][data-calm] #content :is(.btn:has(> .np-icon-word),.ld-refresh-btn) > svg{width:18px;height:18px;flex:none}   /* the calm screens' icon size; Leads' Refresh beside them too */
html[data-new-pace][data-calm] #content .btn:has(> .np-icon-word) .tb-caret{display:none}
html[data-new-pace][data-calm] #content .ld-pool{padding:0 var(--np-space-2_5);font:700 var(--np-text-min)/20px var(--font)}
/* one button adds people: "Add people" (its menu starts with "New candidate") is the filled one, and the top line's own
   "New candidate" is not drawn beside it. Only where the page has drawn "Add people" */
html[data-new-pace][data-calm] body:has(#content .np-pl-candidates .cand-add) #topbar .tb-act{display:none}
html[data-new-pace][data-calm] #content .np-pl-candidates .cand-add > summary.btn-primary{background:var(--fx-main);border:0;color:var(--fx-on-main);box-shadow:var(--fx-main-sh)}
/* Candidates as drawn (R-2183, picture 16): the last thing that happened is one line: what, a dot, when. From a 1366 laptop up only:
   one line asks for more of the table's width, and on a narrower screen that room comes out of the name's column (measured at 1280:
   rows grew taller), so there it keeps its two lines. Where even a wide column has no room for a long line, "when" folds under
   "what" as before, and its dot, written left of it, is then outside the line's start and cut off. The search and its tools stand
   at the right of the top line, before "Add people" (the frame sets .pgtabs-right at the line's end, 99zzzz5 ENDS) */
@media (min-width:1366px){
html[data-new-pace][data-calm] .np-pl-candidates table.dt > tbody > tr:not(.row-exp):not(.nj-exp) > td .cand-last{flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:var(--np-space-1);overflow:clip}
html[data-new-pace][data-calm] .np-pl-candidates table.dt > tbody > tr:not(.row-exp):not(.nj-exp) > td .cand-last:has(> b){column-gap:var(--np-space-3)}
html[data-new-pace][data-calm] .np-pl-candidates table.dt > tbody > tr:not(.row-exp):not(.nj-exp) > td .cand-last b + small{position:relative}
html[data-new-pace][data-calm] .np-pl-candidates table.dt > tbody > tr:not(.row-exp):not(.nj-exp) > td .cand-last b + small::before{content:"·";position:absolute;left:calc(-1 * var(--np-space-2))}
}
html[data-new-pace][data-calm] #content .np-pl-candidates .tbar.calm-lift{justify-content:flex-end}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) .tbar-ico{flex:none;width:36px;height:36px;border-color:transparent;background:transparent;box-shadow:none}
html[data-new-pace][data-calm] #content :is(.calm-lift,.calm-row) .tbar-sep{margin:0 var(--np-space-1)}

/* ── 6. Placements: the four numbers are one line of words; the list's rows as every list's; the state's stripe at the left ── */
html[data-new-pace][data-calm] .pl-page{gap:0}
/* Clients as drawn (R-2183, picture 32): the two totals beside "Job orders", in quiet words */
html[data-new-pace][data-calm] .np-pl-clients table.dt > thead th .cl-jo-all{margin-left:var(--np-space-2);font:500 var(--np-text-min)/1.2 var(--font);text-transform:none;color:var(--text3)}
html[data-new-pace][data-calm] .pl-kpis{display:flex;align-items:center;gap:0;height:46px}
html[data-new-pace][data-calm] .pl-kpi{flex:none;display:flex;flex-direction:row-reverse;align-items:baseline;gap:var(--np-space-2);padding:0 var(--np-space-5);background:transparent;border:0;border-radius:0}
html[data-new-pace][data-calm] .pl-kpi + .pl-kpi{border-left:1px solid var(--border2)}
html[data-new-pace][data-calm] .pl-kpi:first-child{padding-left:var(--np-space-1)}
html[data-new-pace][data-calm] .pl-kpi span{font-size:var(--np-text-sm)}
html[data-new-pace][data-calm] .pl-kpi b{margin-top:0;font-size:var(--np-text-lead)}
html[data-new-pace][data-calm] .pl-tbl th{height:34px;padding-top:var(--np-space-2);padding-bottom:var(--np-space-2);font-weight:700;letter-spacing:.03em}
html[data-new-pace][data-calm] .pl-tbl td{height:50px;padding-top:var(--np-space-1);padding-bottom:var(--np-space-1);vertical-align:middle;font-size:var(--np-text-md);line-height:20px}
html[data-new-pace][data-calm] .pl-tbl td b{font-weight:600}
html[data-new-pace][data-calm] .pl-tbl td small{margin-top:0;font-size:var(--np-text-sm);line-height:18px}
html[data-new-pace][data-calm] .pl-tbl td:first-child small{display:inline;margin-left:var(--np-space-2);font-size:var(--np-text-min)}
html[data-new-pace][data-calm] .pl-tbl .pl-pill{padding:0 var(--np-space-2_5);font:700 var(--np-text-min)/20px var(--font)}
html[data-new-pace][data-calm] .pl-tbl .pl-pill.pl-plain{display:none}   /* a plain Active is not written (R-2183, picture 28); its green stripe stays */
html[data-new-pace][data-calm] .pl-tbl tbody tr:has(.pl-pill.ok) > td:first-child{box-shadow:inset 3px 0 0 var(--green)}
html[data-new-pace][data-calm] .pl-tbl tbody tr:has(.pl-pill.wait) > td:first-child{box-shadow:inset 3px 0 0 var(--amber)}
html[data-new-pace][data-calm] .pl-tbl tbody tr:has(.pl-pill.end) > td:first-child{box-shadow:inset 3px 0 0 var(--red)}
html[data-new-pace][data-calm] .pl-tbl tbody tr:has(.pl-pill.mute) > td:first-child{box-shadow:inset 3px 0 0 var(--text3)}

/* ── 7. the column names stay at the top while the list moves under them (R-2155). Only in a box whose whole table fits
      (99zzzz7-calm-lists.js marks it calm-hold): there the box stops being a scrolling box of its own (it still clips to its
      round corners), so the names hold to the part of the page that scrolls — to its top EDGE: where that part starts with
      a margin of its own, the script says how much (--calm-hold-top), so no sliver of a row shows above the names.
      A float is opaque; a held cell's own border does not travel with it, so its line is drawn inside it ── */
html[data-new-pace][data-calm] #content :is(.dt-wrap,.pl-tblwrap).calm-hold{overflow:clip}
html[data-new-pace][data-calm] #content :is(.dt-wrap,.pl-tblwrap).calm-hold > table > thead th{position:sticky;top:var(--calm-hold-top,0px);z-index:2;background:var(--card-solid);box-shadow:inset 0 -1px 0 var(--border)}
