/* NAWTT text-size.css: the one brand layer (owner 2026-11-27). Loaded LAST on every signed-in portal page and on the sign-in,
   password, forgot and reset pages (never on the public landing, privacy or Arabic pages). pico-layer.css, loaded FIRST,
   puts Pico CSS 2.1.1 in the layer "pico"; this file is the layer "nawtt-text-size" right after it.

   A. ONE TEXT SIZE. Every word is the same size: html font-size is 16 px x --text-scale (common.js sets the scale from the
      A- / A+ buttons beside Sign out: 75, 85, 100, 110 or 120 %) and every text element is 1rem. Titles are only bold.
      Icons (svg), the logo and the initials badge keep their own sizes.
   C. TABLE WIDTH. On a desktop a list is as wide as its columns need, never wider than its panel, aligned left; its filter
      bar and pager (on top, F) share the table's width and left edge. Label/value lists and forms stop at 48rem.
   D/E. ONE BUTTON, ONE FIELD. Pico is the base of buttons, inputs, selects, textareas and tables; its variables carry the
      brand: pill buttons that fit their words, pill fields that fit their text (textareas 20 px), 2 px borders, 44 px
      minimum height, padding 0.5em 1em, one font size, burgundy focus, no transition. Only colours differ between kinds:
      primary (burgundy fill, white words), outline (burgundy line and words), danger (deep burgundy line and words), on a
      dark bar (white line and words), pressed or current (soft burgundy fill).

   How the cascade is used (why it holds everywhere):
   - A rule in a layer loses to every unlayered rule (app.css and the other page files), so Pico never moves the layout.
   - "all: revert" below (a NORMAL declaration in this layer) wins over Pico's layer, so every element that is not a button,
     field or table looks exactly as it did before Pico (the page files' own rules still apply on top).
   - An !important declaration in a layer wins over every !important declaration outside layers, whatever its specificity,
     so the button, field, table and text-size rules below win over the older page files without editing them. */
@layer nawtt-text-size {
  /* ---------------------------------------------------------------- Pico off outside its families (NORMAL declarations) */
  /* (svg, img and media are left out: "revert" would also drop their width, height, fill and stroke attributes) */
  :where(html, body, body :not(button, input, select, textarea, table, caption, thead, tbody, tfoot, tr, th, td, .btn,
    [role=button], svg, svg *, img, picture, video, audio, canvas, iframe, object)),
  :where(body *)::before, :where(body *)::after { all: revert; }
  /* navigation and in-row controls the page files draw themselves: menu tabs, the phone bar, the More sheet entries,
     the column-heading sort buttons, the name link of a phone card row, the employee's last-transfer card */
  :where(.tab, .tabbar__more, .sheet__item, .sort-btn, .cell-open, .emp-tx) { all: revert; }
  /* Pico's own spacing around fields and buttons never moves the layout */
  :where(button, input, select, textarea, table, .btn, [role=button]) { margin: revert;
    --pico-form-element-spacing-vertical: 0.5em; --pico-form-element-spacing-horizontal: 1em; --pico-border-width: 2px; }
  /* the brand through Pico's variables (a later layer than Pico, so these win) */
  :root, [data-theme=light] {
    color-scheme: light;
    --pico-font-size: calc(100% * var(--text-scale, 1));
    --pico-font-family: inherit;
    --pico-color: #000; --pico-h1-color: #000; --pico-h2-color: #000; --pico-h3-color: #000; --pico-h4-color: #000;
    --pico-h5-color: #000; --pico-h6-color: #000; --pico-muted-color: #000; --pico-background-color: #fff;
    --pico-primary: #8B1538; --pico-primary-background: #8B1538; --pico-primary-border: #8B1538;
    --pico-primary-underline: #8B1538; --pico-primary-hover: #6F0F2B; --pico-primary-hover-background: #6F0F2B;
    --pico-primary-hover-border: #6F0F2B; --pico-primary-focus: #8B1538; --pico-primary-inverse: #fff;
    --pico-border-radius: 999px; --pico-border-width: 2px; --pico-outline-width: 3px;
    --pico-form-element-spacing-vertical: 0.5em; --pico-form-element-spacing-horizontal: 1em;
    --pico-form-element-background-color: #fff; --pico-form-element-border-color: #6F6F6F; --pico-form-element-color: #000;
    --pico-form-element-active-border-color: #8B1538; --pico-form-element-focus-color: #8B1538;
    --pico-table-border-color: #DCDDD3; --pico-transition: 0s; --pico-spacing: 1rem;
  }

  /* ---------------------------------------------------------------- A. one text size */
  html { font-size: calc(16px * var(--text-scale, 1)) !important; -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important; }
  body,
  body :not(svg, svg *, .wm, .wm *, .wordmark, .wordmark *, [data-look1-wordmark], [data-look1-wordmark] *,
    .account__avatar) { font-size: 1rem !important; }
  /* text written by CSS (phone card labels, "Waiting", "Owes", sort arrows) follows its element */
  body :not(svg, svg *, .wm, .wm *, .wordmark, .wordmark *, [data-look1-wordmark], [data-look1-wordmark] *)::before,
  body :not(svg, svg *, .wm, .wm *, .wordmark, .wordmark *, [data-look1-wordmark], [data-look1-wordmark] *)::after {
    font-size: 1em !important; }
  body :is(h1, h2, h3, h4, h5, h6, .card__title) { font-weight: 700 !important; }
  /* the partner page set its lines in pixels (14px/20px): lines follow the one size instead */
  body.inv, body.inv :is(h1, h2, .tile b, .tile small) { line-height: 1.4 !important; }
  /* the tab count badges were 16-18 px circles drawn for small print: they grow with their number */
  body .tab__badge { line-height: 1.25 !important; block-size: auto !important; min-block-size: 1.25em !important;
    min-inline-size: 1.25em !important; }

  /* ---------------------------------------------------------------- D. one button */
  :where(button, [type=button], [type=submit], [type=reset], [role=button], .btn) { --nawtt-button-fill: transparent;
    --nawtt-button-line: var(--pico-primary); --nawtt-button-ink: var(--pico-primary); }
  :is(button, [type=button], [type=submit], [type=reset], [role=button], .btn):not(.tab, .tabbar__more, .sheet__item,
    .sort-btn, .cell-open, .emp-tx) {
    gap: 0.5em !important; box-sizing: border-box !important; inline-size: fit-content !important; width: fit-content !important;
    max-inline-size: 100% !important; min-inline-size: 44px !important; min-width: 44px !important; flex: 0 0 auto !important;
    block-size: auto !important; height: auto !important; min-block-size: 44px !important; min-height: 44px !important;
    max-block-size: none !important;
    padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal) !important;
    border: var(--pico-border-width) solid var(--nawtt-button-line) !important;
    border-radius: 999px !important;
    background: var(--nawtt-button-fill) !important; color: var(--nawtt-button-ink) !important; font-family: inherit !important;
    font-size: 1rem !important; font-weight: 700 !important; font-style: normal !important; line-height: 1.25 !important;
    letter-spacing: normal !important; text-transform: none !important; text-decoration: none !important;
    text-align: center !important; white-space: normal !important; overflow: visible !important;
    overflow-wrap: break-word !important;
    box-shadow: none !important; opacity: 1 !important; cursor: pointer !important; transition: none !important;
    animation: none !important; transform: none !important; }
  /* the kinds: only the colours differ. Every rule here has zero specificity (:where), so the order below decides. */
  :where(button, .btn):where(.btn--primary, .btn--solid) { --nawtt-button-fill: var(--pico-primary-background);
    --nawtt-button-line: var(--pico-primary-border); --nawtt-button-ink: var(--pico-primary-inverse); }
  :where(button, .btn):where(.btn--danger) { --nawtt-button-line: #6F0F2B; --nawtt-button-ink: #6F0F2B; }
  :where(button, .btn):where([aria-pressed=true], [aria-current=page], [aria-selected=true], .is-on, .is-current):where(
    :not(.btn--primary, .btn--solid)) { --nawtt-button-fill: #F3E7EA; }
  :where(button, .btn):where(:not(.btn--primary, .btn--solid)):where(:not([disabled])):hover { --nawtt-button-fill: #F3E7EA; }
  :where(button, .btn):where(.btn--primary, .btn--solid):where(:not([disabled])):hover {
    --nawtt-button-fill: var(--pico-primary-hover-background); --nawtt-button-line: var(--pico-primary-hover-border); }
  /* on the dark top bar and the employee hero: white line and words */
  :where(.topbar, .emp-hero) :where(button, .btn) { --nawtt-button-fill: transparent; --nawtt-button-line: #FFFFFF;
    --nawtt-button-ink: #FFFFFF; }
  :where(.topbar, .emp-hero) :where(button, .btn):where([aria-pressed=true], [aria-expanded=true]),
  :where(.topbar, .emp-hero) :where(button, .btn):where(:not([disabled])):hover {
    --nawtt-button-fill: rgba(255, 255, 255, 0.2); }
  /* desktop with the side menu: the account button sits at the foot of the light side column */
  :where(body.has-side-menu .topbar__end) :where(.account__btn) { --nawtt-button-fill: transparent;
    --nawtt-button-line: var(--pico-primary); --nawtt-button-ink: #000; }
  :where(body.has-side-menu .topbar__end) :where(.account__btn):hover { --nawtt-button-fill: #F3E7EA; }
  :is(button, .btn):not(.tab, .tabbar__more, .sheet__item, .sort-btn, .cell-open, .emp-tx):focus-visible {
    outline: 3px solid #8B1538 !important; outline-offset: 2px !important; box-shadow: none !important; }
  :is(.topbar, .emp-hero) :is(button, .btn):focus-visible { outline-color: #FFFFFF !important; }
  /* disabled: never faded, a dashed line instead */
  :is(button, .btn):not(.tab, .tabbar__more, .sheet__item, .sort-btn, .cell-open, .emp-tx):is([disabled], [aria-disabled=true]) {
    border-style: dashed !important; cursor: not-allowed !important; }
  /* the old phone pager drew a chevron in place of the words: the words now show on every pager */
  :is(#operatorPage, #officerPage) :is(.pager .btn, .adv-pager__btn)::before,
  :is(#operatorPage, #officerPage) :is(.pager .btn, .adv-pager__btn)::after { content: none !important;
    display: none !important; }

  /* ---------------------------------------------------------------- E. one field */
  :where(input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=hidden], [type=submit], [type=button],
    [type=reset], [type=image], [type=color]), select, textarea) {
    box-sizing: border-box !important; vertical-align: middle !important;
    inline-size: auto !important; width: auto !important; max-inline-size: 100% !important; max-width: 100% !important;
    min-inline-size: 0 !important; min-width: 0 !important; flex: 0 1 auto !important; justify-self: start !important;
    block-size: auto !important; height: auto !important; min-block-size: 44px !important; min-height: 44px !important;
    padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal) !important;
    border: var(--pico-border-width) solid var(--pico-form-element-border-color) !important;
    border-radius: 999px !important; background-color: var(--pico-form-element-background-color) !important;
    background-image: none !important; color: var(--pico-form-element-color) !important; font-family: inherit !important;
    font-size: 1rem !important; font-weight: 400 !important; font-style: normal !important; line-height: 1.25 !important;
    letter-spacing: normal !important; text-transform: none !important; box-shadow: none !important; opacity: 1 !important;
    transition: none !important; }
  /* the dialog forms framed each field in a box (with a "CR-" or "%" beside it): the field is the one pill now, the box
     only holds the field and its prefix or suffix side by side */
  .fk-box, .fk-box:focus-within { border: 0 !important; background: transparent !important; box-shadow: none !important;
    outline: 0 !important; padding: 0 !important; block-size: auto !important; min-block-size: 0 !important;
    border-radius: 0 !important; }
  .fk-box .fk-suffix { border: 0 !important; }
  /* the width follows the text (or the placeholder), from one starting width of 18ch for every field (owner 2026-11-27: empty
     fields must not be tiny); common.js gives a size attribute where field-sizing is missing */
  input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=hidden], [type=submit], [type=button], [type=reset],
    [type=image], [type=color], [type=date], [type=month], [type=time], [type=week], [type=datetime-local]) {
    field-sizing: content !important; min-inline-size: 18ch !important; }
  input:is([type=date], [type=month], [type=time], [type=week], [type=datetime-local]) { field-sizing: fixed !important; }
  /* placeholders upright: an italic placeholder overhangs a field sized to its text and its last letter is cut */
  input::placeholder, textarea::placeholder { font-style: normal !important; }
  /* a select is as wide as its longest option, with Pico's chevron */
  select { field-sizing: fixed !important; -webkit-appearance: none !important; appearance: none !important;
    background-image: var(--pico-icon-chevron) !important; background-repeat: no-repeat !important;
    background-position: right 0.75em center !important; background-size: 1em auto !important;
    padding-inline-end: 2.5em !important; }
  textarea { border-radius: 20px !important; field-sizing: content !important; min-inline-size: 20ch !important;
    min-block-size: calc(3 * 1.25em + 1em + 4px) !important; resize: vertical !important; }
  :is(input, select, textarea):focus, :is(input, select, textarea):focus-visible {
    outline: 3px solid #8B1538 !important; outline-offset: 2px !important; border-color: #8B1538 !important;
    box-shadow: none !important; }
  :is(input, select, textarea)[disabled] { cursor: not-allowed !important; border-style: dashed !important; }

  /* ---------------------------------------------------------------- the top bar */
  .topbar .role-chip { inline-size: auto !important; max-inline-size: none !important; white-space: nowrap !important; }
  .topbar .topbar__middle, .topbar .seg { inline-size: auto !important; min-inline-size: 0 !important;
    flex: 0 1 auto !important; }
  .topbar .seg__item { inline-size: auto !important; white-space: nowrap !important; }
  .topbar .topbar__end { min-inline-size: 0 !important; }
  /* A- and A+ sit right next to Sign out, one group */
  .topbar__exit { display: inline-flex !important; align-items: center !important; gap: 6px !important;
    flex: 0 0 auto !important; }
  .topbar__exit .signout-btn { margin-inline-start: 0 !important; }
  .textsize { display: inline-flex !important; align-items: center !important; gap: 4px !important; flex: 0 0 auto !important;
    inline-size: auto !important; margin: 0 !important; box-shadow: none !important; }
  /* the employee phone hero (the top bar is hidden there): the same two buttons beside its Sign out */
  .emp-hero__row { flex-wrap: wrap !important; row-gap: 6px !important; }
  .emp-hero__row .textsize { margin-inline-start: auto !important; margin-inline-end: 6px !important; }
  @media (min-width: 761px) {
    /* desktop with the side menu: the group (A-, A+, Sign out) takes the place Sign out had at the bar's right end */
    body.has-side-menu .topbar__end .topbar__exit { position: fixed !important;
      inset-block-start: calc(var(--own1-topbar-h, 64px) / 2 - 22px) !important; inset-inline-end: 16px !important;
      z-index: 33 !important; margin: 0 !important; }
    body.has-side-menu .topbar__end .topbar__exit .signout-btn { position: static !important; }
    /* the side menu keeps its width: a long label wraps to a second line, never cut off */
    body.has-side-menu > #tabbar.tabbar--side .tab__label, body.has-side-menu .topbar__end .account__name {
      white-space: normal !important; overflow: visible !important; text-overflow: clip !important;
      overflow-wrap: anywhere !important; min-inline-size: 0 !important; }
  }
  @media (max-width: 760px), (pointer: coarse) and (max-height: 500px) {
    /* the phone top bar: one row while it fits; at a large size A-, A+ and Sign out move to a second row, at the right */
    .topbar .topbar__inner { padding-inline: 8px !important; column-gap: 4px !important; row-gap: 6px !important;
      flex-wrap: wrap !important; padding-block: 6px !important; }
    .topbar .brand { flex: 0 1 auto !important; min-inline-size: 0 !important; }
    .topbar .topbar__end { gap: 4px !important; flex: 0 1 auto !important; flex-wrap: wrap !important;
      justify-content: flex-end !important; margin-inline-start: auto !important; row-gap: 6px !important; }
    .topbar .account__name { display: none !important; }
    .topbar .topbar__exit { gap: 4px !important; }
    .textsize { gap: 4px !important; }
    /* phone card rows (label, then value): a value that no longer fits beside its label goes under it, words whole */
    th, td { overflow-wrap: break-word !important; word-break: normal !important; }
    .table tbody td { flex-wrap: wrap !important; overflow-wrap: break-word !important; word-break: normal !important;
      block-size: auto !important; height: auto !important; }
    .table td.row-show-cell { inline-size: auto !important; width: auto !important; }
    /* the pager is ONE row on a phone: Previous, the count, Next; the count gives way and wraps inside its middle space */
    .list-view__pager, .pager { flex-wrap: nowrap !important; column-gap: 8px !important; align-items: center !important; }
    .list-view__pager .pager__info, .pager .pager__info { flex: 1 1 0 !important; min-inline-size: 0 !important;
      text-align: center !important; white-space: normal !important; }
    .list-view__pager .btn, .pager .btn { flex: 0 0 auto !important; white-space: nowrap !important; }
    .list-view__pager .pager__info, .pager .pager__info { white-space: nowrap !important; }
    /* when the three do not fit one row (large text), the count takes its own line above Previous and Next */
    .list-view, .rows-pager, .card__body { container-type: inline-size; }
    @container (max-width: 24em) {
      .list-view__pager, .pager { flex-wrap: wrap !important; justify-content: space-between !important; row-gap: 6px !important; }
      .list-view__pager .pager__info, .pager .pager__info { order: -1 !important; flex: 1 0 100% !important; }
    }
    /* the operator's data viewer phone rows and pager: long words wrap, never cut off */
    #panel-view :is(.pager__info, .vw-main, .vw-key, .vw-r2) { white-space: normal !important; overflow: visible !important;
      text-overflow: clip !important; overflow-wrap: anywhere !important; }
    /* a card head with a button (employee "Change requests  More"): the button goes under the title when both do not fit */
    .card__head { flex-wrap: wrap !important; row-gap: 6px !important; }
    /* the partner's film controls wrap to a second row at a large size */
    /* the film controls stay on ONE line (owner 2026-11-27): the seek bar gives way */
    .film-bar { flex-wrap: nowrap !important; column-gap: 6px !important; }
    /* employee Account: "Password" and its button share a row while they fit, else the button goes under the word */
    .acct-pw__row { flex-wrap: wrap !important; }
    .acct-pw__lbl { overflow-wrap: break-word !important; }
    /* label/value rows: a label keeps its words whole (the value column gives way and wraps instead) */
    .pg-dl--rows { grid-template-columns: minmax(min-content, 1fr) minmax(0, auto) !important; }
    .pg-dl--rows dt, .pg-dl dt { overflow-wrap: break-word !important; word-break: normal !important; hyphens: none !important; }
    /* phone card rows of the officer and operator lists: a long name or amount wraps, never cut off */
    :is(#officerPage, #operatorPage) .table tbody tr:not(.table__empty) > td { white-space: normal !important;
      overflow: visible !important; text-overflow: clip !important; overflow-wrap: break-word !important;
      word-break: normal !important; min-inline-size: auto !important; }
  }
  /* the figure cards: each is at least nine characters wide, so a big size takes fewer cards per row, never broken words */
  .glance { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9em), 1fr)) !important; }

  /* ---------------------------------------------------------------- C. table width and Pico's table: desktop only
     (the complement of the phone query used by shell.js and the list CSS; phone card rows are unchanged) */
  @media (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none),
    (min-width: 761px) and (min-height: 501px) {
    .list-view { inline-size: fit-content !important; min-inline-size: min(100%, 36rem) !important;
      max-inline-size: 100% !important; box-sizing: border-box !important; }
    /* the bar and the pager never widen the list: they take the table's width and wrap inside it */
    .list-view > .list-view__bar, .list-view > .list-view__pager { contain: inline-size !important;
      inline-size: auto !important; max-inline-size: 100% !important; box-sizing: border-box !important; }
    .list-view > .list-view__bar { flex-wrap: wrap !important; }
    .list-view > .list-view__pager { flex-wrap: nowrap !important; column-gap: 12px !important; align-items: center !important; }
    .table-wrap { inline-size: fit-content !important; max-inline-size: 100% !important; overflow-x: auto !important;
      box-sizing: border-box !important; }
    table { inline-size: auto !important; width: auto !important; border-collapse: collapse !important;
      border-spacing: 0 !important; }
    /* Pico's table rows: half-spacing above and below, one spacing at the sides, one line under each row */
    :is(th, td) { padding: calc(var(--pico-spacing) / 2) var(--pico-spacing) !important;
      border: 0 !important; border-block-end: 1px solid var(--pico-table-border-color) !important; color: #000 !important;
      vertical-align: middle !important; }
    thead th { font-weight: 700 !important; border-block-end-width: 2px !important; }
    /* the partner's month table sits in its own box: a table wider than the box scrolls inside it */
    .box:has(> .fin-table) { max-inline-size: 100% !important; overflow-x: auto !important; }
    .pg-dl { max-inline-size: 48rem !important; }
    .pg-form, .fk-form { max-inline-size: 48rem !important; }
  }
  /* ---------------------------------------------------------------- the single view reads like a table (owner 2026-11-27):
     label on the left, value on the right of the same line, one thin line between rows, on every portal and size */
  .record-view .record-fields { display: grid !important; grid-template-columns: minmax(min-content, max-content) minmax(0, 1fr) !important;
    column-gap: 0 !important; row-gap: 0 !important; margin: 0 0 12px !important; padding: 0 !important; }
  .record-view .record-fields > dt { padding-inline-end: 16px !important; }
  .record-view .record-fields > dt, .record-view .record-fields > dd { margin: 0 !important; padding: 10px 0 !important;
    border-block-end: 1px solid rgba(0, 0, 0, .12) !important; display: flex !important; align-items: center !important; }
  .record-view .record-fields > dt { font-weight: 700 !important; }
  .record-view .record-fields > dd { justify-content: flex-end !important; text-align: end !important; overflow-wrap: anywhere !important; }
  .record-view .card__title:focus { outline: none !important; }
  #invoiceRows .line-sub { display: none; }
  /* ---------------------------------------------------------------- FORM-TABLE (owner 2026-11-28): every form is an HTML
     table (common.js formTable): the label in the left cell, the field with its hint and error in the right cell, the
     buttons under the fields, every text left aligned. On a phone the label sits above its field. */
  .form-table { inline-size: 100% !important; border-collapse: collapse !important; border: 0 !important; margin: 0 !important;
    background: none !important; box-shadow: none !important; }
  .form-table > tbody > tr { display: table-row !important; background: none !important; border: 0 !important; }
  .form-table > tbody > tr > :is(th, td) { display: table-cell !important; text-align: start !important; vertical-align: top !important;
    padding: 8px 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; color: #000 !important; }
  .form-table > tbody > tr > th[scope='row'] { inline-size: 35% !important; max-inline-size: 16rem !important;
    padding-inline-end: 16px !important; padding-block-start: 20px !important; font-weight: 700 !important; }
  .form-table > tbody > tr > th[scope='row'] > .field__label { display: block !important; margin: 0 !important;
    font-weight: 700 !important; color: #000 !important; text-align: start !important; text-transform: none !important;
    letter-spacing: normal !important; font-size: 1rem !important; }
  .form-table > tbody > tr.form-table__group > th { padding-block: 16px 0 !important; }
  .form-table > tbody > tr.form-table__group > th > * { margin: 0 !important; text-align: start !important; }
  .form-table > tbody > tr > td > .field { margin: 0 !important; text-align: start !important; align-items: stretch !important;
    justify-content: flex-start !important; }
  .form-table > tbody > tr > td :is(.fk-actions, .confirm__actions, .pg-row, .emp-adv__action) { justify-content: flex-start !important;
    text-align: start !important; margin: 0 !important; display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
  .form-table > tbody > tr > td :is(.fk-actions, .confirm__actions) > .btn { flex: 0 1 auto !important; min-inline-size: 0 !important;
    max-inline-size: 100% !important; white-space: normal !important; }
  /* the fields keep their own width (it follows the text, from one starting width: owner 2026-11-27); they start at the
     left edge of their cell */
  .form-table > tbody > tr > td > .field > :is(.input, .fk-box, select, textarea) { align-self: flex-start !important;
    margin-inline: 0 !important; }
  .form-table .field__error:empty { display: none !important; }
  /* owner 2026-11-28: on a computer a field's hint and error sit on the same line as the field, to its right (on a phone
     they stay under it). The officers' list of a new employer keeps its own layout. */
  @media (min-width: 761px) {
    .form-table > tbody > tr > td > .field:not(:has(.fk-officers, .fk-check)) { display: grid !important;
      grid-template-columns: auto minmax(8rem, 1fr) !important; column-gap: 12px !important; row-gap: 2px !important;
      align-items: center !important; }
    .form-table > tbody > tr > td > .field:not(:has(.fk-officers, .fk-check)) > :is(.input, .fk-box, select, textarea) {
      grid-column: 1 !important; grid-row: 1 / span 2 !important; align-self: center !important; }
    .form-table > tbody > tr > td > .field:not(:has(.fk-officers, .fk-check)) > :is(.field__hint, .field__error) {
      grid-column: 2 !important; margin: 0 !important; text-align: start !important; align-self: end !important; }
    .form-table > tbody > tr > td > .field:not(:has(.fk-officers, .fk-check)) > .field__error { align-self: start !important; }
    .form-table > tbody > tr > td > .field:not(:has(.fk-officers, .fk-check)):not(:has(> .field__hint)) > .field__error,
    .form-table > tbody > tr > td > .field:not(:has(.fk-officers, .fk-check)):not(:has(> .field__error:not(:empty))) > .field__hint {
      grid-row: 1 / span 2 !important; align-self: center !important; }
    .form-table > tbody > tr > th[scope='row'] { vertical-align: middle !important; padding-block-start: 8px !important; }
  }
  /* the officers of a new employer: each officer's fields one under the other inside the Officers cell */
  .form-table .fk-officer { display: flex !important; flex-direction: column !important; align-items: stretch !important;
    gap: 8px !important; }
  .form-table .fk-officer > .field { margin: 0 !important; }
  .form-table .fk-officer > .field > .fk-box { align-self: flex-start !important; }
  .form-table > tbody > tr:has(> td > [hidden]) { display: none !important; }
  @media (max-width: 760px), (pointer: coarse) and (max-height: 500px) {
    .form-table, .form-table > tbody, .form-table > tbody > tr, .form-table > tbody > tr > :is(th, td) {
      display: block !important; inline-size: auto !important; max-inline-size: none !important; }
    .form-table > tbody > tr > th[scope='row'] { padding: 8px 0 4px !important; inline-size: auto !important;
      max-inline-size: none !important; }
    .form-table > tbody > tr > th[scope='row']:empty, .form-table > tbody > tr > td.form-table__empty { display: none !important; }
    .form-table > tbody > tr > th[scope='row'] + td { padding-block-start: 0 !important; }
    .form-table > tbody > tr:has(> td > [hidden]) { display: none !important; }
  }
  /* owner 2026-11-28: Back and the view's actions on one row at the top; the extra part (an invoice's lines) is its own
     section under the figures, with a clear line above it */
  .record-view .record-top { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px !important;
    margin-block-end: 8px !important; }
  .record-view .record-top .btn { min-block-size: 44px !important; margin: 0 !important; }
  .record-view .record-extra { margin-block-start: 24px !important; padding-block-start: 16px !important;
    border-block-start: 2px solid rgba(0, 0, 0, .12) !important; }
  .record-view .record-extra > * > .card__title, .record-view .record-extra > .card__title { margin: 0 0 4px !important; }
  /* on a phone: Back on its own full row, the actions share the row under it */
  @media (max-width: 760px), (pointer: coarse) and (max-height: 500px) {
    .record-view .record-top .record-back { flex: 1 1 100% !important; }
    .record-view .record-top .record-action { flex: 1 1 0 !important; min-inline-size: 0 !important; }
  }
  /* the single view takes the place of its list's card content: no card inside a card, no list heading above it */
  .card .record-view { border: 0 !important; box-shadow: none !important; background: transparent !important;
    padding: 0 !important; margin: 0 !important; }
  .card:has(> .card__body .record-view, > .record-view, .record-view) > .card__head { display: none !important; }
  /* the phone More sheet: every item is a rounded row, like the list cards */
  dialog.sheet .sheet__item { border: 1px solid rgba(0, 0, 0, .12) !important; border-radius: 24px !important;
    background: #fff !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .06) !important; margin-block-end: 8px !important;
    padding-inline: 16px !important; min-block-size: 48px !important; }
  /* ---------------------------------------------------------------- staff rows (owner 2026-11-28), like the employee app:
     the status cell shows its mark before the word; on a phone every row is ONE line: mark, lead, one figure, round arrow.
     The other cells stay in the desktop table and in the single view. */
  .line-row > td.line-status { white-space: nowrap !important; }
  .line-row > td.line-figure > .line-narrow { display: none !important; }
  .line-row > td.line-status > .emp-mark { margin-inline-end: 6px !important; vertical-align: -0.2em !important; }
  @media (max-width: 760px), (pointer: coarse) and (max-height: 500px) {
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row {
      display: flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: 10px !important;
      padding: 8px 8px 8px 16px !important; min-block-size: 0 !important; }
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row > td {
      display: none !important; }
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row::before,
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row::after {
      content: none !important; display: none !important; }
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row > td:is(.line-status,
      .line-lead, .line-figure, .row-show-cell) {
      display: block !important; padding: 0 !important; margin: 0 !important; border: 0 !important; inline-size: auto !important;
      width: auto !important; min-inline-size: 0 !important; background: none !important; text-align: start !important;
      font-size: inherit !important; font-weight: 400 !important; white-space: nowrap !important; order: 0 !important; }
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row > td::before {
      content: none !important; display: none !important; }
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row > td.line-status {
      order: 1 !important; flex: 0 0 auto !important; }
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row
      > td.line-status > .emp-mark { margin: 0 !important; }
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row
      > td.line-status > .line-word {
      position: absolute !important; inline-size: 1px !important; block-size: 1px !important; overflow: hidden !important;
      clip-path: inset(50%) !important; white-space: nowrap !important; }
    /* the officer's invoices (owner 2026-11-28): Live, Unpaid and Part paid share the clock, so the status word sits
       under the month; the row keeps its height (the arrow is taller than the two lines) */
    #officerPage #invoiceRows tr.line-row > td.line-lead > .line-sub { display: block !important; font-weight: 400 !important;
      line-height: 1.2 !important; overflow: hidden !important; text-overflow: ellipsis !important; }
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row > td.line-lead {
      order: 2 !important; flex: 1 1 auto !important; overflow: hidden !important; text-overflow: ellipsis !important;
      font-weight: 700 !important; }
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row > td.line-figure {
      order: 3 !important; flex: 0 0 auto !important; max-inline-size: 55% !important; overflow: hidden !important;
      text-overflow: ellipsis !important;
      text-align: end !important; }
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row > td.line-figure
      > .line-narrow { display: inline !important; }
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row > td.line-figure
      > .line-wide { position: absolute !important; inline-size: 1px !important; block-size: 1px !important;
      overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
    :is(#officerPage, #operatorPage, body) .list-view:not(.emp-lv) .list-view__table tbody tr.line-row > td.row-show-cell {
      order: 4 !important; flex: 0 0 auto !important; margin-inline-start: 0 !important; }
    /* the investor's Total under the employer cards: one line, its figure under the cards' figures (the count is hidden,
       as it is in the cards; the empty last cell keeps the arrow's place) */
    body .list-view .list-view__table tfoot#finEmployerTotal { display: block !important; }
    body .list-view .list-view__table tfoot#finEmployerTotal > tr { display: flex !important; align-items: center !important;
      gap: 10px !important; padding: 8px 8px 8px 16px !important; border: 0 !important; background: none !important; }
    body .list-view .list-view__table tfoot#finEmployerTotal > tr > :is(th, td) { display: block !important;
      padding: 0 !important; border: 0 !important; inline-size: auto !important; width: auto !important;
      font-weight: 700 !important; background: none !important; box-shadow: none !important; }
    body .list-view .list-view__table tfoot#finEmployerTotal > tr > :is(th, td)::before { content: none !important;
      display: none !important; }
    body .list-view .list-view__table tfoot#finEmployerTotal > tr > th { flex: 1 1 auto !important;
      text-align: start !important; }
    body .list-view .list-view__table tfoot#finEmployerTotal > tr > td:nth-child(2) { display: none !important; }
    body .list-view .list-view__table tfoot#finEmployerTotal > tr > td:last-child { flex: 0 0 44px !important; }
  }
  /* SIGN-IN EXCEPTION (owner 2026-11-28): the sign-in form keeps captions above its fields (no form table).
     One left-aligned block, centred in the card. */
  body #signInForm[data-no-table] { inline-size: fit-content !important; max-inline-size: 100% !important;
    margin-inline: auto !important; text-align: start !important; align-items: flex-start !important; }
  body #signInForm[data-no-table] .field { display: flex !important; flex-direction: column !important;
    align-items: flex-start !important; text-align: start !important; }
  body #signInForm[data-no-table] .field__label { text-align: start !important; text-transform: none !important;
    letter-spacing: normal !important; }
  body #signInForm[data-no-table] :is(.pg-actions, .form-actions, .btn-row) { justify-content: flex-start !important; }
}

/* Sign-in, forgot and reset: the form sits in the middle of its card (owner 2026-11-27). */
.pg-auth .login-card form { display: flex !important; flex-direction: column !important; align-items: center !important; }
.pg-auth .login-card .field { display: flex !important; flex-direction: column !important; align-items: center !important; }
.pg-auth .login-card .field__label { text-align: center !important; }
/* Sign-in card: the button's lock icon was burgundy on burgundy, invisible but pushing "Sign in" off centre; the card is compact
   so it fits one phone screen without scrolling (owner 2026-11-27). */
.pg-auth .login-card .btn .ic { display: none !important; }
.pg-auth { padding-block: 16px !important; }
.pg-auth .login-card { padding-block: 16px !important; }
.pg-auth .login-card__head { margin-block-end: 8px !important; }
.pg-auth .login-card__head h1 { margin-block: 4px !important; }
.pg-auth .login-card__sub { margin-block: 4px !important; }
.pg-auth .login-card form, .pg-auth .login-card .field { gap: 6px !important; }
.pg-auth .login-card form { gap: 12px !important; }
.pg-auth .login-card__foot { margin-block: 8px 0 !important; }

/* owner 2026-11-27: every portal's list rows match the employee app.
   1. Show is a round burgundy button with a white arrow, the same size on every portal. */
.emp-more__icon { inline-size: 1.25em; block-size: 1.25em; fill: none; stroke: currentColor; stroke-width: 3.4;
  stroke-linecap: round; stroke-linejoin: round; display: block; }
.emp-more { --pico-form-element-spacing-horizontal: 0.55em; }
/* 2. On a phone every list row is its own very round floating card, with a small gap between cards. */
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px) {
  .list-view .list-view__table tbody { display: block !important; padding: 4px 2px 2px !important; border: 0 !important;
    background: none !important; }
  .list-view .list-view__table tbody tr:not(.table__empty),
  .list-view .list-view__table tbody tr:not(.table__empty):hover,
  .list-view .list-view__table tbody tr:not(.table__empty):last-child {
    margin: 0 0 10px !important; background: #fff !important; border: 1px solid rgba(0, 0, 0, .10) !important;
    border-radius: 24px !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .08) !important; }
}
/* 3. (2026-11-28) the status marks of the employee app, shared by every portal's rows */
.emp-mark { display: inline-flex; align-items: center; justify-content: center; inline-size: 1.25em; block-size: 1.25em; }
.emp-mark__icon { inline-size: 1.2em; block-size: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; }
.emp-mark--paid { color: #1a7f37; }
.emp-mark--paid .emp-mark__icon { stroke-width: 3.6; }
.emp-mark--refused { color: #b42318; }
.emp-mark--wait, .emp-mark--cancelled { color: #000; }
.emp-mark--wait .emp-mark__icon, .emp-mark--cancelled .emp-mark__icon { stroke-width: 2; }
