/* PorterSoft base styles. Tenant colours arrive as CSS variables from _Layout. */
:root {
    /* RULE: no grid ever spans the whole screen: every grid (report, list, input) stops at this width and is centred. */
    --pss-grid-max: 1450px;
  --pss-topnav-bg: #006699;
  --pss-toplink: #ffffff;
  --pss-toplink-sel: #FFFF66;
  --pss-font-size: 12px;
}

html { font-size: 14px; position: relative; min-height: 100%; }

/* ---- High-contrast look (matches the legacy screens) ----
   Black Arial text, white background, crisp grey borders with square-ish corners on every box,
   cards and lists. */
body.pss-app { font-family: Arial, Helvetica, sans-serif; color: #000; background: #fff; font-size: 11px !important; }
body.pss-app .card { --bs-card-border-color: #a6a6a6; --bs-card-cap-bg: #f0f0f0; }
body.pss-app .form-control,
body.pss-app .form-select,
body.pss-app .ts-wrapper .ts-control { border: 1px solid #d6d6d4; border-radius: 4px; color: #000; font-family: Arial, Helvetica, sans-serif; background-color: #fff; }
body.pss-app .form-control.pss-required,
body.pss-app .form-select.pss-required,
body.pss-app .ts-wrapper.pss-required .ts-control { background-color: var(--pss-required); }
body.pss-app .form-control:disabled, body.pss-app .form-select:disabled { background-color: #f3f3f3; color: #555; }
body.pss-app .form-label, body.pss-app .form-check-label { color: #000;font-size: 11px; }
body.pss-app .form-check-input { border-color: #808080; }
/* Site-wide: slim boxes like the legacy fields, about 24px tall with little inner padding, whatever
   size class a page uses (also on the signed-out pages). */
body .form-control, body .form-select,
body .form-control-sm, body .form-select-sm { padding: .1rem .35rem; font-size: 11px; line-height: 1.4; min-height: 24px; height: auto; }
body .form-select, body .form-select-sm { padding-right: 1.6rem; background-position: right .35rem center; }
body textarea.form-control { line-height: 1.4; }
body .input-group-text { padding: .1rem .4rem; font-size: 11px; }

/* Site-wide: less padding on buttons. */
body .btn { padding: .2rem .6rem; font-size: 13px; line-height: 1.4; border-radius: 4px; }
/* Button text is always centred both ways, and a button in a flex row (Search, Add / Update,
   Delete...) never gets squeezed narrower than its text (which pushed the text off-centre). */
body .btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; gap: .3rem; }
body .d-flex > .btn, body .d-flex > form > .btn, body .input-group > .btn { flex-shrink: 0; }
body .btn-sm { padding: .1rem .45rem; font-size: 11px; text-decoration: none; }
body .btn-lg { padding: .35rem .9rem; font-size: 15px; }
body .btn-link { padding-left: 0; padding-right: 0; }
/* Every button gets 4px of padding at the top. !important so it also beats Bootstrap utility
   classes such as py-0 / pt-0 / p-0 on individual buttons. Not a link button (.btn-link, legacy LinkButton): it reads as a link and
   its text sits on the same line as the text and links beside it (user 2026-11-26: Return beside "Scroll to:" sat lower). */
body .btn:not(.btn-link), body .btn-sm:not(.btn-link), body .btn-lg:not(.btn-link) { padding-top: 4px !important; }
body.pss-app .btn-pss { border-color: #a6a6a6; border-radius: 4px; }

/* Classic bordered tabs joined to a bordered panel (legacy TabContainer). */
.pss-classic-tabs { border-bottom: 1px solid #a6a6a6; gap: 2px; flex-wrap: wrap; align-items: flex-end; }   /* tabs sit on the panel even when the row holds taller buttons (_TabActions) */
/* RULE (user 2026-11-25): an inactive tab keeps the line under it; only the active tab is open into its panel (white bottom edge). */
.pss-classic-tabs .nav-link {
  border: 1px solid #a6a6a6; border-radius: 3px 3px 0 0; margin-bottom: -1px;
  background: #ececec; color: #000; font-weight: 400; font-size: 11px; padding: .2rem .55rem;
}
.pss-classic-tabs .nav-link:hover { background: #f8f8f8; color: #000; }
.pss-classic-tabs .nav-link.active { background: #fff; color: #000; border-color: #a6a6a6; border-bottom: 1px solid #fff; font-weight: 600; }
.pss-classic-tabs .nav-link.disabled { color: #a0a0a0; font-weight: 400; background: #f5f5f5; }
.pss-classic-tabs .nav-link b, .pss-classic-tabs .nav-link * { font-size: inherit; }   /* bold tab names (required fields) stay 11px too */
.pss-classic-panel { border: 1px solid #a6a6a6; border-top: 0; padding: .9rem .75rem; background: #fff; }
/* RULE (fix system wide): every other tab row on a page (plain Bootstrap .nav-tabs: Confirm Bank Downloads, Approve Order, Call Reports...)
   outlines its inactive tabs the same way; Bootstrap drew a border only round the active one. Dashboard card tabs keep their own look. */
body.pss-app main .nav-tabs:not(.card-header-tabs):not(.pss-classic-tabs) { border-bottom-color: #a6a6a6; gap: 2px; }
body.pss-app main .nav-tabs:not(.card-header-tabs):not(.pss-classic-tabs) .nav-link {
  border: 1px solid #a6a6a6; border-radius: 3px 3px 0 0; margin-bottom: -1px; background: #ececec; color: #000;
}
body.pss-app main .nav-tabs:not(.card-header-tabs):not(.pss-classic-tabs) .nav-link:hover { background: #f8f8f8; }
body.pss-app main .nav-tabs:not(.card-header-tabs):not(.pss-classic-tabs) .nav-link.active { background: #fff; border-bottom-color: #fff; }
.pss-info-msg { color: #0e8a83; font-weight: 600; font-size: 15px; text-align: center; margin: .25rem 0 .75rem; }
a { text-decoration: none; font-size: 11px; }
body { background: #f6f7f9; }
body.pss-app { font-size: var(--pss-font-size); }

.btn:focus-visible, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ---- Top navigation (legacy TopHeader.aspx) ---- */
.pss-topnav { background: var(--pss-topnav-bg); padding-top: .15rem; padding-bottom: .15rem; }
.pss-topnav .navbar-brand { padding-top: 0; padding-bottom: 0; font-size: 1.1rem; }
.pss-topnav .navbar-nav .nav-link { padding-top: .3rem; padding-bottom: .3rem; }
.pss-topnav .pss-userbox .btn { padding: .1rem .5rem; }
.pss-topnav .navbar-toggler { padding: .15rem .4rem; }
.pss-topnav .navbar-brand,
.pss-topnav .nav-link,
.pss-topnav .pss-userbox { color: var(--pss-toplink); }
.pss-topnav .nav-link:hover,
.pss-topnav .nav-link:focus { color: var(--pss-toplink-hover); }
.pss-topnav .nav-link.show,
.pss-topnav .nav-link.active { color: var(--pss-toplink-sel); }
.pss-topnav .navbar-toggler { border-color: var(--pss-toplink); }
.pss-topnav .navbar-toggler-icon { filter: invert(1); }
/* The header is sticky, so on small screens the opened menu scrolls inside itself. */
@media (max-width: 991.98px) {
  .pss-topnav .navbar-collapse { max-height: calc(100vh - 56px); overflow-y: auto; }
}

/* Drop-down menus use the legacy left-nav colours (navbarbg / navlinkcolor / navlinkheadcolor). */
.pss-topnav .dropdown-menu { background: var(--pss-nav-bg); }
.pss-megamenu { max-height: 75vh; overflow-y: auto; padding: 1rem 0; }
.pss-megamenu .dropdown-header,
.pss-topnav .dropdown-header { color: var(--pss-navlink-head); font-weight: 600; white-space: normal; font-size: 11px; }
.pss-topnav .dropdown-item { color: var(--pss-navlink); }
.pss-topnav .dropdown-item:hover,
.pss-topnav .dropdown-item:focus { color: var(--pss-navlink-hover); background: transparent; }
.pss-megamenu .dropdown-item { padding: .15rem 0; white-space: normal; }
.pss-megamenu .dropdown-item.pss-pending { color: #8a8f96; }
.pss-megamenu .dropdown-item.pss-pending::after { content: " \2022"; color: #c9a227; }

/* ---- Login ---- */
.pss-auth { min-height: 50vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pss-auth-card { width: 100%; max-width: 400px; }
.pss-auth-logo { display: block; margin: 0 auto .75rem; max-width: 100%; height: auto; }
@media (max-width: 575.98px) {
    .pss-auth { padding: 12px; }
    .pss-auth-logo { max-width: 200px; }
}
.pss-code { letter-spacing: .5em; font-variant-numeric: tabular-nums; }

/* ---- Company colours for page content ---- */
body.pss-app main a:not(.btn) { color: var(--pss-navlink); }
body.pss-app main a:not(.btn):hover { color: var(--pss-navlink-hover); }
/* A link button (legacy LinkButton, .btn-link) is the same colour as a link, on every page. */
body.pss-app main .btn-link { --bs-btn-color: var(--pss-navlink); --bs-btn-hover-color: var(--pss-navlink-hover); --bs-btn-active-color: var(--pss-navlink-hover); }

/* Legacy .Button: grey face, company-coloured text. */
.btn-pss { background: #f3f3f2; border: 1px solid #cfcfcd; color: var(--pss-button-text); }
.btn-pss:hover { background: #e8e8e6; color: var(--pss-button-text); }

/* High-priority bar (hghpribarcolor / hghpritxtcolor). */
.pss-hp-bar { background: var(--pss-hp-bar); color: var(--pss-hp-text); padding: .5rem 1rem; border-radius: .375rem; }

/* Header red flag + High Priority List (Views/HighPriority/_Flag.cshtml; legacy redflag / redflag_off + Panel10). */
/* The sub-header under the menu bar: a full-width grey bar, like the legacy toolbar (Table5). */
.pss-subheader { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; width: 100%; padding: 3px 12px; background: var(--pss-hp-bar, #ececeb); color: var(--pss-hp-text, #006699);
    border-bottom: 1px solid #d6d6d4; box-shadow: 0 1px 3px silver; }
#pssHighPri { min-width: 20px; min-height: 20px; }         /* holds its place while loading */
/* Flag | page title | links: three columns like legacy (33% / centered / right), so the title is centered on the bar. */
.pss-subheader { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.pss-subheader > .pss-subbar-links { justify-self: end; }
.pss-page-title { font-weight: 700; font-size: 11px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }
@media (max-width: 575.98px) {   /* phones: title on its own line under the flag and links */
  .pss-subheader { grid-template-columns: auto minmax(0, 1fr); }
  .pss-page-title { grid-column: 1 / -1; grid-row: 2; max-width: none; }
}
.pss-hp-flag img { filter: grayscale(1); opacity: .45; }   /* nothing to do: grey, like redflag_off.png */
.pss-hp-flag.pss-hp-on img { filter: none; opacity: 1; }
.pss-hp-count { margin-left: 2px; font-weight: 700; font-size: .85rem; color: #fff; background: #d00000; border-radius: 9px; padding: 0 .35rem; line-height: 1.2; }
/* Fixed height: a long list scrolls inside the box (the title stays at the top). */
body.pss-app .dropdown-menu.pss-hp-menu { --bs-dropdown-font-size: 11px; min-width: 220px; max-width: min(380px, 90vw); padding: .3rem 0;
    background: #fff; border: 1px solid silver; box-shadow: 1px 2px 3px silver; font-size: 11px; line-height: 1.35; }
.pss-hp-menu ul { max-height: 200px; overflow-y: auto; }
body.pss-app .pss-hp-menu .pss-hp-title { font-weight: 700; font-size: 11px; padding: 0 .6rem .25rem; border-bottom: 1px solid #ddd; margin-bottom: .2rem; color: #000; }
body.pss-app .pss-hp-menu .pss-hp-empty { text-align: center; padding: .3rem .6rem; color: #000; font-size: 11px; }
/* One line each, cut at about 45 characters with "..." (the full text is the link's tooltip). */
body.pss-app .pss-hp-menu .dropdown-item { color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45ch;
    font-size: 11px; padding: .12rem .6rem; }
body.pss-app .pss-hp-menu .dropdown-item.pss-hp-critical { color: #d00000; font-weight: 700; }

/* Legacy "required field" highlight and GL account colour. */
.pss-required { background-color: var(--pss-required); }
/* A required box left empty when the form was submitted (site.js). Beats theme borders and focus. */
body .form-control.pss-missing, body .form-select.pss-missing, body .ts-wrapper.pss-missing,
body .form-control.pss-missing:focus, body .form-select.pss-missing:focus {
  border: 1px solid #d00000 !important; box-shadow: none !important;   /* user 2026-11-25: thinner (was 1px + a 1px ring) */
}
.pss-gl { background-color: var(--pss-gl); }

/* ---- Main dashboard (legacy StartDay.aspx) ---- */
/* Dashboards are dense. Padding is set through Bootstrap's card variables (not padding directly)
   so header tabs, which offset themselves by the same variables, stay lined up with the title. */
.pss-panel {
  --bs-card-cap-padding-y: .3rem; --bs-card-cap-padding-x: .6rem;
  --bs-card-spacer-y: .4rem; --bs-card-spacer-x: .6rem;
}
.pss-panel .card-header { background: var(--pss-nav-bg); }
.pss-panel .card-header h2 { color: var(--pss-navlink-head); font-weight: 600; font-size: .8rem; }
.pss-panel .card-header .nav-link { padding: .2rem .55rem; font-size: .75rem; line-height: 1.5; }
/* A title beside header tabs: same padding, line height and bottom offset as a tab, so the text
   lines up while the tabs (and the selected tab's outline) stay on the header's bottom edge. */
.pss-panel .pss-tabbed-header > h2 {
  font-size: .85rem; line-height: 1.5;
  padding: .2rem 0 calc(.2rem + var(--bs-border-width));
  margin-bottom: calc(-1 * var(--bs-card-cap-padding-y));
}
.pss-tabbed-header > .pss-collapse-toggle { align-self: center; }
.pss-panel-links a { color: var(--pss-navlink); }
.pss-panel-body { min-height: 140px; max-height: 240px; overflow-y: auto; }
.pss-indicators { font-size: .85rem; }
.pss-indicators > :not(caption) > * > * { padding: .15rem .3rem; }
.pss-indicators th { font-weight: 500; color: #6c757d; border-bottom-width: 1px; }
.pss-cash .table { font-size: .85rem; }
.pss-cash .table > :not(caption) > * > * { padding: .15rem .3rem; }
/* Prefixed with body.pss-app main so these beat the general content-link colour above. */
body.pss-app main .pss-indicators a.pss-indicator { color: var(--pss-hp-text); }
body.pss-app main .pss-indicators a.pss-indicator-hot,
body.pss-app main .pss-indicators a.pss-indicator-hot:hover { color: #c62828; font-weight: 500; }
.pss-empty-icon { font-size: 2rem; opacity: .4; }

/* ---- Background page updates (htmx): a thin bar along the top while a request runs ---- */
.pss-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 2000; pointer-events: none;
  opacity: 0; background: linear-gradient(90deg, transparent, var(--pss-toplink-sel), transparent); background-size: 50% 100%;
  background-repeat: no-repeat; transition: opacity .15s; }
html.pss-busy .pss-progress { opacity: 1; animation: pss-progress 1s linear infinite; }
@keyframes pss-progress { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@media (prefers-reduced-motion: reduce) { html.pss-busy .pss-progress { animation: none; background: var(--pss-toplink-sel); } }

/* ---- Filterable drop-downs (Tom Select): keep the small size and required-field colour ---- */
/* Filterable drop-downs of any size get the same slim box. */
.ts-wrapper.form-select .ts-control, .ts-wrapper.form-select-sm .ts-control { min-height: 22px; padding: .1rem 1.6rem .1rem .35rem; font-size: 11px; line-height: 1.4; }
.ts-wrapper.form-select .ts-control > input, .ts-wrapper.form-select-sm .ts-control > input { font-size: 11px; }
.ts-wrapper.form-select, .ts-wrapper.form-select-sm { min-height: 24px; }
/* Tom Select's Bootstrap theme draws the border, arrow and required colour on the wrapper (it keeps
   the form-select-sm class), so the slim .form-select-sm rule above already sizes it. */
.ts-wrapper.form-select.has-items .ts-control, .ts-wrapper.form-select-sm.has-items .ts-control { padding-bottom: .1rem; }
.ts-wrapper.pss-required .ts-control { background-color: var(--pss-required); }
.ts-dropdown { font-size: .875rem; z-index: 1060; }
/* Until Tom Select has enhanced a drop-down, keep its space but don't show the plain version (no flash). */
html.pss-ts select:not(.tomselected):not([data-no-filter]):not([data-lazy-select]) { visibility: hidden; }
/* Drop-downs are only set up when clicked or focused (system rule, dropdowns.js). Until then a multi pick shows a
   stand-in box with its picks as tokens; the real <select> is hidden but still posts. */
select.pss-ts-hidden { display: none !important; }
.pss-ts-stub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: calc(1.5em + .5rem + 2px); padding: 2px 1.6rem 2px 3px;
  cursor: pointer; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");  /* Bootstrap's drop-down arrow (its variable only exists on .form-select), so the box always shows it */ background-repeat: no-repeat; background-position: right .5rem center; background-size: 16px 12px; }
.pss-ts-stub.disabled { background-color: var(--bs-secondary-bg); cursor: default; }
.pss-ts-stub-item { font-family: Arial, Helvetica, sans-serif; font-size: 11px; line-height: 1.3; color: #000; background: var(--pss-nav-bg);
  border: 1px solid #c8c8c6; border-radius: 3px; padding: 0 4px; }
.pss-ts-stub-ph { font-size: 11px; color: #6c757d; }
.ts-dropdown .active { background: var(--pss-nav-bg); color: inherit; }

/* ---- Token selects: every <select multiple> (system standard, site.js enhanceSelects) ----
   Compact tokens with an x, 11px like every list; the list of choices is 11px too. */
.ts-wrapper.multi .ts-control { padding: 2px 1.6rem 2px 3px; gap: 2px; flex-wrap: wrap; align-items: center; }
.ts-wrapper.multi .ts-control > .item {
  font-family: Arial, Helvetica, sans-serif; font-size: 11px; line-height: 1.3; color: #000;
  background: var(--pss-nav-bg); border: 1px solid #c8c8c6; border-radius: 3px; padding: 0 0 0 4px; margin: 0;
}
.ts-wrapper.multi .ts-control > .item .remove { font-size: 11px; padding: 0 4px; margin-left: 3px; border-left: 1px solid #c8c8c6; color: #555; text-decoration: none; }
.ts-wrapper.multi .ts-control > .item .remove:hover { background: #e6e6e4; color: #b00; }
.ts-wrapper.multi .ts-control > input { font-size: 11px; min-width: 4rem; margin: 0 !important; }
.ts-wrapper.multi.disabled .ts-control > .item .remove { display: none; }
.ts-dropdown.pss-ts-multi, .ts-dropdown.pss-ts-multi .option { font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #000; }
.ts-dropdown.pss-ts-multi .option { padding: 1px 6px; }

/* ---- Vertical forms: one field per line, label on the left, box on the right ----
   Each field's wrapper uses display:contents, so its label and control drop straight into the
   two grid columns and line up down the page. Below 576px the label sits above the box. */
/* A form with a panel to its right (legacy rowspan cell beside the fields, e.g. Misc. Adjustment's "Past 10 Transactions"): the panel
   takes the rest of the width and drops under the form on narrow screens. */
/* A form with a side panel (legacy: a rowspan cell beside the first rows, e.g. Misc. Adjustment's Past 10 Transactions): label | box | panel.
   The panel fills the rest of the width beside the first 9 rows; a .pss-side-span box (Notes, legacy colspan 2) runs under it to its right
   edge. Labels and boxes keep their own columns so later rows never land in the panel's column. On a phone / small tablet the panel drops
   below the fields at full width and the box spans the box column. No fixed widths: everything follows the screen. */
.pss-form-v.pss-has-side { grid-template-columns: max-content max-content minmax(0, .85fr); justify-content: start; }   /* the panel takes 85% of the room left, at the left; Notes ends with it */
.pss-has-side > div > :first-child, .pss-has-side > div > div > :first-child { grid-column: 1; }
.pss-has-side > div > :nth-child(2), .pss-has-side > div > div > :nth-child(2) { grid-column: 2; }
.pss-has-side > div > .pss-side-span { grid-column: 2 / -1; }
.pss-form-v.pss-has-side > .pss-form-v-wide { grid-column: 1 / 3; }
.pss-has-side > .pss-form-side { grid-column: 3; grid-row: 1 / span 9; align-self: start; min-width: 0; margin: 0; }
/* Legacy GridView Width=100% inside the side panel: the grid fills the panel's border. */
.pss-form-side > .table-responsive { width: 100% !important; max-width: 100% !important; }
.pss-form-side > .table-responsive > .pss-legacy-grid { width: 100%; }
@media (max-width: 767.98px) {
    .pss-form-v.pss-has-side { grid-template-columns: max-content minmax(0, 1fr); }
    .pss-has-side > .pss-form-side { grid-column: 1 / -1; grid-row: auto; }
}
.pss-form-v { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .2rem .2rem; align-items: center; }
.pss-form-v > div:not(.pss-form-actions):not(.pss-form-section):not(.pss-form-note) { display: contents; }
/* Groups of rows shown only for some customer types: they don't break the grid, and [hidden] wins. */
.pss-form-v > .pss-type-only > div:not(.pss-form-actions):not(.pss-form-section):not(.pss-form-note) { display: contents; }
.pss-form-v [hidden] { display: none !important; }
/* Everywhere: a hidden element stays hidden even with a Bootstrap display class (.d-flex, .d-inline-flex... are !important too and
   came later, so they beat [hidden]); e.g. Bulk Payables' Pay by / Bank Account / Pay Date showed with Auto Pay Bills unticked. */
body [hidden] { display: none !important; }
.pss-form-v .form-label { margin: 0; text-align: right; color: #000; font-size: 11px; justify-self: end; }   /* only the text is clickable, not the whole left cell */
.pss-form-v .form-label::after { content: ":"; }   /* legacy labels end in a colon */
.pss-form-v .form-check, .pss-form-v .pss-form-actions { grid-column: 2; }
/* Boxes keep one width however wide the column is (hints can sit beside them). */
.pss-form-v .form-control, .pss-form-v .form-select, .pss-form-v .ts-wrapper { max-width: 18rem; }
.pss-form-v textarea.form-control { max-width: 36rem; min-width: 0; }
/* Forms stacked on one tab share a fixed label width so their boxes start at the same place. */
.pss-form-v.pss-form-aligned { grid-template-columns: 10rem minmax(0, 1fr); }
/* Section heading with a rule across (legacy "Contact Info ———"), and a separator note. */
.pss-form-section { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; color: #5b84d1 !important; font-size: 12px; margin: .5rem 0 .1rem 4rem; }
.pss-form-section::after { content: ""; flex: 1; border-top: 1px solid silver; }
.pss-form-section.pss-uf-end { margin: .2rem 0 .3rem 4rem; }   /* the line closing the user fields (Views/Shared/_UserFields) */
.pss-form-note { grid-column: 1 / -1; text-align: center; font-size: 12px; color: #000; border-top: 1px solid #a6a6a6; margin: .5rem 6rem 0; padding-top: .4rem; }
.pss-with-hint { display: flex; align-items: center; gap: .4rem; }
.pss-with-hint > .form-control { flex: 0 1 18rem; }
.pss-hint { font-size: 12px; color: #000; white-space: nowrap; }
/* Legacy phone boxes: 3 - 3 - 4, optional "Ext:" on the same row. */
.pss-phone { display: flex; align-items: center; gap: .3rem; }
.pss-phone .pss-ph3 { width: 2.6rem; flex: none; }
.pss-phone .pss-ph4 { width: 3.2rem; flex: none; }
.pss-phone .pss-ph-ext { width: 5rem; flex: none; }
@media (max-width: 575.98px) {
  .pss-form-v, .pss-form-v.pss-form-aligned { grid-template-columns: minmax(0, 1fr); }
  .pss-form-section, .pss-form-note { margin-left: 0; margin-right: 0; }
  .pss-form-v .form-label { text-align: left; justify-self: start; }
  .pss-form-v .form-check, .pss-form-v .pss-form-actions { grid-column: 1; }
}

/* ---- Every page: content in a centered column like legacy (about 1400px) instead of the full
   screen width. The menu bar above still spans the screen. ---- */
body.pss-app main { max-width: 1400px; margin-left: auto; margin-right: auto; }
/* RULE: entry forms (a receivable, ship ticket, PO receipt... any page with an input grid, or marked pss-full) span the whole
   screen width. */
body.pss-app main:has(.pss-grid-input), body.pss-app main.pss-full { max-width: none; }
/* Dashboards: indicators never wrap, so the page may grow past 1400px when a line needs it
   (min-width wins over max-width; the browser scrolls sideways if the screen is narrower). */
body.pss-app main.pss-grow { min-width: min-content; }
.pss-indicators th, .pss-indicators td { white-space: nowrap; }

/* Main dashboard module panels: 1 / 2 / 3 / 4 columns by screen size, each at least as wide as its
   longest indicator line, sharing any extra room equally. */
.pss-panels { display: grid; gap: .5rem; grid-template-columns: minmax(max-content, 1fr); }
@media (min-width: 768px)  { .pss-panels { grid-template-columns: repeat(2, minmax(max-content, 1fr)); } }
@media (min-width: 1200px) { .pss-panels { grid-template-columns: repeat(3, minmax(max-content, 1fr)); } }
@media (min-width: 1400px) { .pss-panels { grid-template-columns: repeat(4, minmax(max-content, 1fr)); } }

/* Module dashboards (Views/Dashboards): legacy's middle row - the overview (at least legacy's 413px and never narrower
   than its longest line), the rule tabs + Performance Indicators taking the rest, and Accounting's cash accounts.
   Narrower screens (tablets) wrap them onto their own lines. */
.pss-db-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pss-db-row > .card { min-width: 0; }
.pss-db-row > .pss-db-overview { flex: 0 0 auto; min-width: min(413px, 100%); }
.pss-db-row > .pss-db-wide { flex: 1 1 520px; }
.pss-db-row > .pss-cash { flex: 0 1 320px; }
.pss-db-tabs-body { min-height: 140px; }
.pss-db-scroll { max-height: 240px; overflow: auto; }
.pss-pi-arrow { font-size: 10px; color: #808080; }
.pss-pi-viewing { font-size: .7rem; }
.pss-trend-green { color: #008000; }
.pss-trend-red { color: #c62828; }
body.pss-app main .pss-rules-name { color: var(--pss-hp-text); }
.pss-rules-svg .pss-rules-bar { fill: var(--pss-topnav-bg); opacity: .75; }
.pss-rules-svg .pss-rules-bar-over { fill: #c62828; opacity: .75; }
.pss-rules-svg .pss-rules-bar-met { fill: #008000; opacity: .75; }

/* ---- User fields (Views/Shared/_UserFields.cshtml) ---- */
.pss-alert-lines { white-space: pre-line; }            /* "The following errors were found:" one per line */

/* Status box on every form (Views/Shared/_Status.cshtml; legacy SetMainStatus.ascx colours). */
.pss-status-box { position: relative; text-align: center; padding: .5rem 2.25rem; margin: 0 auto .5rem; font-size: .95rem; width: fit-content; min-width: 500px; max-width: min(700px, 100%); }   /* RULE: short box, centred - never spans the page */
.pss-status-box .btn-close { position: absolute; top: .5rem; right: .5rem; font-size: .7rem; }
.pss-status-title { font-weight: 700; font-size: 1.1rem; }
.pss-status-box.alert-success { color: #188310; background: #e0f9dc; border-color: #188310; }
.pss-status-box.alert-danger  { color: #d00000; background: #fff2f2; border-color: #ff7777; }
.pss-form-v .form-label.pss-label-top { align-self: start; padding-top: .2rem; }
.pss-uf-list { max-width: 18rem; }
.pss-uf-checklist { max-width: 14rem; max-height: 120px; overflow-y: auto; border: 1px solid #a6a6a6; border-radius: 4px; padding: .15rem .4rem; background: #fff; }
.pss-uf-checklist.pss-required { background-color: var(--pss-required); }

/* ---- Customer Admin (legacy CustomerAdmin.aspx) ---- */
/* Ship-to / billing address list: no wider than a form box; long names wrap. */
.pss-ship-list { max-width: 16rem; width: 100%; }
/* Bill To / Ship To tab: a centered block, the forms on the left. The side column (right) is just wide enough for the list box and
   keeps its content against the forms, so the label and list sit beside them instead of far right. */
.pss-billship { max-width: 52rem; margin: 0 auto; }
@media (min-width: 768px) {
  .pss-billship .pss-side { flex: 0 0 17rem; max-width: 17rem; display: flex; flex-direction: column; align-items: flex-start; }
  .pss-billship .pss-side > form { width: 16rem; }
  .pss-billship .pss-main { flex: 1 1 0; min-width: 0; }
}
/* A real list box (<select size>): no drop-down arrow, black Arial, legacy blue selection. */
select.form-select.pss-listbox[size] { background-image: none; padding: 0; font-size: 11px; color: #000; }
select.pss-listbox[size] option { padding: .1rem .35rem; }
select.pss-listbox[size] option:checked { background: #316ac5 linear-gradient(#316ac5, #316ac5); color: #fff; }
/* The customer list sits in its own white bordered box, like the legacy ListBox. */
.pss-picker { max-height: 70vh; overflow-y: auto; border: 1px solid #a6a6a6; border-radius: 2px; background: #fff; padding: .2rem .25rem; }
/* User 2026-11-25: on a list + form page (setup items...) the list box is at most 350px tall, scrolling inside. */
.pss-side-list .pss-picker { max-height: 350px; }
.pss-picker-count { text-align: center; color: #5b84d1; font-weight: 600; font-size: 12px; margin-top: .35rem; }
body.pss-app main .pss-picker-count a:not(.btn) { color: #5b84d1; margin-left: .25rem; }
.pss-picker li { line-height: 1.5; }
/* The whole row is the link, right to the edge, not just the name. */
.pss-picker li > a { display: block; padding: 0 .25rem; border-radius: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pss-picker li > a:hover, .pss-picker li > a:focus-visible { background: #eef1f4; }
/* List boxes (customer picker, ship-to addresses, contacts): black Arial, like the legacy ListBoxes.
   The extra selectors beat the general content-link colour; a selected row keeps white text. */
/* Every list box is 11px: customers, employees, user levels, ship-to, user-field lists, and any select showing
   several rows (size or multiple). */
.pss-listbox, body.pss-app main .pss-listbox a:not(.btn), .pss-picker, .pss-picker li, .pss-picker a,
select[multiple], select[multiple] option, select[size]:not([size="1"]), select[size]:not([size="1"]) option {
  font-family: Arial, Helvetica, sans-serif; color: #000; font-size: 11px !important;
}
body.pss-app main .pss-listbox .active a:not(.btn) { color: #fff; }

/* A list with a box round it (e.g. ship-to / billing addresses); scrolls if it gets long. */
.pss-bordered-list { border: 1px solid #ced4da; border-radius: .375rem; max-height: 320px; overflow-y: auto; background: #fff; }
.pss-bordered-list .list-group-item { border-left: 0; border-right: 0; }
.pss-bordered-list .list-group-item:first-child { border-top: 0; }
.pss-bordered-list .list-group-item:last-child { border-bottom: 0; }
.pss-tree-dots { letter-spacing: .05em; margin-right: .15rem; }
.pss-picker-selected { background: var(--pss-nav-bg); padding: 0 .25rem; border-radius: .2rem; }

/* ---- Module dashboards (legacy Accounting_DB.aspx ...) ---- */
.pss-reminder { min-width: 140px; }
/* Legacy ShowReminders: blue title with a pointer; hover (or tap / keyboard focus) shows the details pop-up below. */
.pss-reminder-title-wrap { position: relative; display: inline-block; }
.pss-reminder-title { background: none; border: 0; padding: 0; font: inherit; font-size: 12px !important; color: var(--bs-link-color, #0d6efd); cursor: pointer; }
.pss-reminder-title-plain { color: var(--bs-link-color, #0d6efd); font-size: 12px !important; }
.pss-reminder-details { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px; z-index: 1080;
    min-width: 220px; max-width: min(800px, 90vw); padding: .5rem .65rem; text-align: left; font-size: 12px; white-space: normal;
    background: var(--bs-body-bg, #fff); color: var(--bs-body-color, #212529); border: 1px solid #adb5bd; border-radius: .3rem; box-shadow: 0 .25rem .75rem rgba(0,0,0,.18); }
.pss-reminder-title-wrap:hover .pss-reminder-details,
.pss-reminder-title-wrap:focus-within .pss-reminder-details { display: block; }
.pss-reminder-files { margin-top: .35rem; }
.pss-hide-amounts .pss-amount { visibility: hidden; position: relative; }
.pss-hide-amounts .pss-amount::after { content: "$xxx,xxx.xx"; visibility: visible; position: absolute; right: 0; }

/* ---- Top 5 and graphs (legacy Top5.ascx, Top5Chart.ascx, Graphs.ascx) ---- */
.pss-swatch { display: inline-block; width: .65em; height: .65em; border-radius: 2px; margin-right: .35em; vertical-align: baseline; }
.pss-swatch-trend { background: repeating-linear-gradient(90deg, #9aa0a6 0 4px, transparent 4px 7px); height: 2px; vertical-align: middle; }
.pss-top5-list li { line-height: 1.6; }
/* The Top 5 lists centred and spread out across the panel (user, 2026-11-25), never bunched to the left. */
.pss-top5-row { display: flex; flex-wrap: wrap; justify-content: space-evenly; gap: 1.25rem 2.5rem; }
.pss-top5-item { flex: 0 1 300px; max-width: 100%; min-width: 0; }
/* Each graph sits in its own bordered box so neighbouring charts don't run together. */
.pss-graph { border: 1px solid #dee2e6; border-radius: .375rem; padding: .35rem .5rem; background: #fff; }
.pss-graph-svg { width: 100%; height: auto; }
/* The graph under a rule list (Views/Shared/_RuleGraph, legacy RptGraphs: a shadowed table 1350 x 350; the prompt silver, bold, 42px). */
.pss-rule-graph { width: 1350px; max-width: 100%; min-height: 350px; padding: 10px 14px; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.25); text-align: center; }
.pss-rule-graph-prompt { margin: 0; padding-top: 50px; color: silver; font: bold 42px Arial, sans-serif; line-height: 1.25; }
.pss-rule-graph-none { margin: 0; padding-top: 110px; font-size: 14px; }
.pss-rule-graph-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; list-style: none; margin: 0 0 4px; padding: 0; font-size: 11px; }
.pss-rule-graph-key { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.pss-rule-graph-target { background: silver; height: 2px; vertical-align: 3px; }
.pss-rule-graph .pss-graph-svg { max-height: 330px; }
@media (max-width: 575.98px) { .pss-rule-graph { min-height: 0; } .pss-rule-graph-prompt { font-size: 22px; padding: 20px 0; } }
.pss-graph-svg .pss-grid { stroke: #e4e6e9; stroke-dasharray: 2 3; }
.pss-graph-svg .pss-zero { stroke: #adb5bd; }
.pss-graph-svg .pss-axis { font-size: 10px; fill: #6c757d; }
/* THE stats block (_Stats, legacy Stats.ascx): 600px graphs two to a row (legacy table cellpadding 9), the last one alone and centred;
   one column on a phone / tablet (legacy MobileOrPopUp drew them 400 wide). */
.pss-stats { width: fit-content; max-width: min(100%, var(--pss-grid-max)); margin: 0 auto; }
.pss-stats-title { font-size: 14px; font-weight: bold; }
.pss-stats-line { border: 0; border-top: 1px solid silver; opacity: 1; margin: 9px 0; }
.pss-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 600px)); gap: 14px 18px; justify-content: center; }
/* Each graph framed (user 2026-11-26: a nice border round each card), as Confirm Bank Downloads' cards; an empty cell stays invisible. */
.pss-stats-cell { min-width: 0; padding: 9px 10px; border: 2px solid #8c8c8c; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.pss-stats-cell:empty, .pss-stats-cell.pss-stats-none { padding: 0; border: 0; box-shadow: none; }
.pss-stats-wide { grid-column: 1 / -1; justify-self: center; width: min(100%, 600px); }
@media (max-width: 991.98px) {
    .pss-stats-grid { grid-template-columns: minmax(0, 600px); }
}

/* Fold-up card chevron: points up when open, down when folded. */
.pss-collapse-toggle { width: 28px; height: 24px; color: var(--pss-navlink); text-decoration: none; }
.pss-collapse-toggle::before { content: "\25B4"; font-size: 1.1rem; line-height: 1; display: inline-block; }
.pss-collapse-toggle.collapsed::before { content: "\25BE"; }

/* ---- Trackers (legacy Tracker.ascx) ---- */
.pss-tracker-tabs .nav-link { color: var(--pss-navlink); padding: .25rem .6rem; }
.pss-tracker-tabs .nav-link.active { color: var(--pss-navlink-head); font-weight: 600; }
/* Tracker strip layout: one tracker sits centered at a normal tile width; two or more stretch to
   share the whole row equally (a new row starts when tiles would get narrower than 220px). */
.pss-trackers { display: grid; gap: .5rem; }
.pss-trackers-fill { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pss-trackers-one { grid-template-columns: minmax(0, 340px); justify-content: center; }
.pss-tracker { box-shadow: 1px 2px 3px rgba(0, 0, 0, .08); }
.pss-tracker .card-header { background: #fff; }
.pss-tracker-edit { color: #8a8f96; }
body.pss-app main a.pss-tracker-edit { color: #8a8f96; }
/* Profits trackers: "as of" line and the ↻ refresh, which spins while the staging rebuild runs. */
.pss-tracker-asof { font-size: 10px; }
button.pss-reload-btn { background: none; border: 0; padding: 0; line-height: 1; font-size: 14px; cursor: pointer; }
button.pss-reload-btn:hover { color: #000; }
.pss-tracker-reload.htmx-request button.pss-reload-btn { animation: pss-spin 1s linear infinite; cursor: wait; color: #0d6efd; }
@keyframes pss-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pss-tracker-reload.htmx-request button.pss-reload-btn { animation: none; } }
.pss-tracker .card-header { font-size: .8rem; }
.pss-tracker .card-header h3 { font-size: .8rem; }
.pss-tracker-body { min-height: 56px; }
.pss-tracker-chart { position: relative; width: 100%; min-width: 0; height: 56px; }
/* Both chart layers cover the same box (see _Tile.cshtml): stretched line/area, then dots and labels. */
.pss-tracker-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pss-tracker-area { fill: currentColor; opacity: .18; }
.pss-tracker-line { fill: none; stroke: currentColor; stroke-width: 2; }
.pss-tracker-dot { fill: currentColor; }
.pss-tracker-value { font-size: 9px; fill: #333; }
.pss-tracker-period { font-size: 8px; fill: #6c757d; }
.pss-tracker-change { min-width: 40px; }
.pss-tracker-pct { font-size: 12px; font-weight: 600; }
.pss-tracker-arrow { font-size: 16px; line-height: 1; }
.pss-good { color: #2e7d32; }
.pss-bad { color: #c62828; }
.pss-flat { color: #6c757d; }

/* ---- Back to top (legacy master page) ---- */
.pss-scrolltop {
  position: fixed; right: 15px; bottom: 15px; z-index: 1030;
  width: 44px; height: 44px; border-radius: 50%;
  background: #ececeb; box-shadow: 1px 2px 3px silver;
}

/* ---- System alert pop-up (legacy master page RadNotification1, 400 x 120, rounded, shadowed, fading; the legacy pop-up look) ---- */
.pss-sysalert {
  position: fixed; top: 70px; right: 120px; z-index: 1085;
  width: 400px; max-width: calc(100vw - 16px); min-height: 120px;
  background: #ececeb; border: 1px solid var(--pss-nav-bg, silver); border-radius: 8px; box-shadow: 2px 3px 6px rgba(0, 0, 0, .25);
  font-family: Arial, Helvetica, sans-serif; font-size: 12px;
  opacity: 0; transition: opacity .3s;
}
.pss-sysalert.show { opacity: 1; }
.pss-sysalert-title { display: flex; align-items: center; justify-content: space-between; padding: 3px 6px; font-weight: bold; border-bottom: 1px solid silver; }
.pss-sysalert-title .btn-close { width: 8px; height: 8px; padding: 4px; }
.pss-sysalert-body { padding: 12px 8px; text-align: center; max-height: 60vh; overflow: auto; }
@media (max-width: 575.98px) { .pss-sysalert { right: 8px; } }

/* ---- Company Preferences (legacy EditPref.aspx) ---- */
/* Long legacy labels ("Default number of days to send notification before ...") wrap in a fixed column. */
.pss-form-v.pss-form-wide { grid-template-columns: fit-content(22rem) minmax(0, 1fr); }   /* as wide as its labels, up to 22rem, then they wrap */
.pss-form-v.pss-form-wide .form-label { white-space: normal; }
/* Every label/box form sits in the middle of its panel, like legacy's centered tables (system standard: form content
   is centered, never left aligned). The box column is only as wide as its boxes (at least the standard box width:
   --pss-lw on legacy-width forms, else 18rem) and grows for wider content such as grids, so labels + boxes stay
   together in the middle instead of leaving empty space on the right. */
@media (min-width: 576px) {
  .pss-form-v { --pss-box-col: minmax(min(var(--pss-lw, 18rem), 70%), max-content); justify-content: center; grid-template-columns: max-content var(--pss-box-col); }
  .pss-form-v.pss-form-aligned { grid-template-columns: 10rem var(--pss-box-col); }
  .pss-form-v.pss-form-wide { grid-template-columns: fit-content(22rem) var(--pss-box-col); }
}
@media (max-width: 575.98px) {
  .pss-form-v.pss-form-wide { grid-template-columns: minmax(0, 1fr); }   /* phones: label above its box, like other forms */
  .pss-classic-panel { padding: .5rem .4rem; }
  .pss-form-v .form-control, .pss-form-v .form-select, .pss-form-v .ts-wrapper, .pss-form-v textarea.form-control { max-width: 100%; }
}
.pss-pref-logo { max-height: 91px; max-width: 100%; }
.pss-w-state { max-width: 3.5rem !important; }
.pss-w-zip { max-width: 6rem !important; }
/* RULE (user 2026-11-25): a little number box ("Run [  ] time(s)", "Every [  ] day(s)") is short everywhere, forms too (legacy 30-45px), never the form's one box width (60px holds "1200.00"). */
.pss-w-num, .pss-form-v input.form-control.pss-w-num { width: 60px !important; max-width: 100% !important; flex: 0 0 auto; }
.pss-w-money { max-width: 7rem !important; }
.pss-w-time { max-width: 7rem !important; }
.pss-w-month { max-width: 9rem !important; }
.pss-w-day { max-width: 5rem !important; }
.pss-w-sel { max-width: 9rem !important; }
.pss-w-ip { max-width: 9rem; }
.pss-w-comment { max-width: 14rem; }
.pss-w-grid { max-width: 40rem; }
.pss-popup-form { border: 1px solid #c0c0c0; border-radius: 4px; padding: .5rem; margin: .4rem auto; max-width: 30rem; background: #fff; }
/* Required fields: groups in three columns like legacy (one column on phones). */
.pss-reqflds { display: grid; gap: .75rem 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 60rem; margin: 0 auto; }
.pss-reqflds-title { color: cornflowerblue; border-bottom: 1px solid #c0c0c0; margin-bottom: .2rem; font-size: 13px; }
/* THE legacy PasswordStrength text to the right of a password box (forms.js data-password-strength; 12px Arial). */
.pss-pw-strength { margin-left: .4rem; font: 12px Arial, sans-serif; white-space: nowrap; }
/* Customer Administration (PSS Admin): the "Overview..." panel, legacy's label / box tables, the 2-column Options list, "Current...". */
.pss-ca-overview { margin: .3rem .5rem; }
.pss-ca-overview > summary { cursor: pointer; font-weight: 700; width: max-content; }
.pss-ca-overview fieldset, .pss-ca-current { border: 1px solid var(--pss-box-border, silver); padding: .2rem .6rem .4rem; margin: .2rem 0; }
.pss-ca-overview legend, .pss-ca-current legend { float: none; width: auto; padding: 0 .3rem; margin: 0; font-size: 12px; }
.pss-ca-overview td { padding: 1px 4px; }
.pss-ca-table td { padding: 2px 4px; vertical-align: middle; }
.pss-ca-table tr.align-top > td { vertical-align: top; }
.pss-ca-options { display: grid; grid-template-columns: repeat(2, max-content); gap: 1px 1rem; }
@media (max-width: 575.98px) { .pss-ca-options { grid-template-columns: max-content; } }
/* Update Full Feature List (PSS Admin): each page on legacy's #ececeb, its three parts side by side; the heading in legacy green. */
.pss-fl-item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; background: #ececeb; padding: .4rem; margin-bottom: .6rem; }
.pss-fl-heading { color: #229740; }
@media (max-width: 767.98px) { .pss-reqflds { grid-template-columns: minmax(0, 1fr); } }
/* GL beginning balances beside GL defaults; the balances list scrolls (legacy 300px box). */
.pss-gl-columns { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 991.98px) { .pss-gl-columns { grid-template-columns: minmax(0, 1fr); } }
.pss-scroll-box { max-height: 300px; overflow: auto; border: 1px solid #c0c0c0; background: #fff; }
/* Legacy fixed widths (ported pages): text boxes 200px, drop-downs 208px like the .aspx Width= values, so the fields line up.
   Never wider than the column (max-width 100%), so tablets and phones still fit. pss-lw-N = legacy Width="N". */
.pss-legacy-widths { --pss-lw: 208px; }   /* one width for text boxes, drop-downs and dates, so every right edge lines up */
.pss-legacy-widths :where(.form-control) { width: var(--pss-lw); }
.pss-legacy-widths :where(.form-select:not(.w-auto), .ts-wrapper:not(.w-auto)) { width: var(--pss-lw); }
.pss-legacy-widths .form-control, .pss-legacy-widths .form-select, .pss-legacy-widths .ts-wrapper { max-width: 100% !important; }
.pss-legacy-widths .pss-with-hint > .form-control { flex: 0 1 auto; }
.pss-legacy-widths .form-control.pss-w-half { width: calc((var(--pss-lw) - .4rem) / 2); }   /* First | Last: the pair ends where the boxes above do */
.pss-legacy-widths .pss-lw-40 { width: 40px; } .pss-legacy-widths .pss-lw-50 { width: 50px; } .pss-legacy-widths .pss-lw-80 { width: 80px; }
.pss-legacy-widths .pss-lw-180 { width: 180px; } .pss-legacy-widths .pss-lw-206 { width: var(--pss-lw); } .pss-legacy-widths .pss-lw-250 { width: 250px; }
.pss-legacy-widths .pss-lw-300 { width: 300px; } .pss-legacy-widths .pss-lw-400 { width: 400px; } .pss-legacy-widths .pss-lw-500 { width: 500px; }
/* Add / edit beside a drop-down (Views/Shared/Components/ComboLinks): one small pen; hover, tap or focus shows
   "Add New | Edit" just above it (out of the way of the boxes beside it). Then the pop-up frame they open (js/forms.js). Never inside a pop-up (legacy popup=t). */
.pss-combo-links { position: relative; display: inline-block; cursor: pointer; outline: none; }
.pss-quickedit { display: inline-block; padding: 0 .3rem; line-height: 1; font-size: 13px; color: #000; }
.pss-combo-links:hover .pss-quickedit, .pss-combo-links:focus-within .pss-quickedit { opacity: .7; }
.pss-combo-menu { display: none; position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); z-index: 1080;
    padding: 2px 6px; font-size: 11px; white-space: nowrap; color: #6c757d;
    background: var(--bs-body-bg, #fff); border: 1px solid #adb5bd; border-radius: .25rem; box-shadow: 0 .15rem .4rem rgba(0,0,0,.15); }
.pss-combo-links:hover .pss-combo-menu, .pss-combo-links:focus-within .pss-combo-menu { display: block; }
/* Touch devices (phones, tablets: no hover): no pen, "Add New | Edit" shows plainly beside the drop-down. */
@media (hover: none) {
    .pss-combo-links { cursor: auto; }
    .pss-combo-links .pss-quickedit { display: none; }
    .pss-combo-links .pss-combo-menu { display: inline-block; position: static; transform: none; margin-left: .3rem; padding: 0;
        background: none; border: 0; border-radius: 0; box-shadow: none; }
}
.pss-quickadd-frame { display: block; width: 100%; height: min(75vh, 760px); border: 0; }
.pss-framed .pss-combo-links { display: none; }
/* RULE: a list + form page opened in a pop-up (Add New / Edit from a drop-down) shows only the form: the left list column
   (pss-side-list) is hidden and the form column (pss-side-form) takes the full width. */
.pss-framed .pss-side-list { display: none !important; }
.pss-framed .pss-side-form { flex: 0 0 100%; width: 100%; max-width: 100%; }
/* A legacy tab box (TabContainer, e.g. the Data Linking forms): legacy's width (--pss-tab-w, default 818px), shrinking with the screen; never the whole page. */
.pss-tab-box { width: var(--pss-tab-w, 818px); max-width: 100%; }   /* --pss-tab-w: the page's legacy TabContainer width (style on the page) */
/* RULE (user 2026-11-25: "all of the setup items should look like this"): every list + form page (.pss-side-list + .pss-side-form: setup
   items, assets...) is laid out like Misc. Adjustment: from the left edge, the list, a silver line, then the form in one column of legacy's
   1050px (never stretched to the page edge, never centred in the 1400px column). On a phone / small tablet the list sits above the form. */
body.pss-app:not(.pss-framed) main:has(.pss-side-list) { max-width: none; }
@media (min-width: 992px) {
    body.pss-app:not(.pss-framed) .row:has(> .pss-side-list) { flex-wrap: nowrap; }
    body.pss-app:not(.pss-framed) .row:has(> .pss-side-list) > .pss-side-list { flex: 0 0 340px; width: 340px; max-width: 340px; }
    body.pss-app:not(.pss-framed) .row:has(> .pss-side-list) > .pss-side-form { flex: 0 1 auto; width: fit-content; min-width: min(var(--pss-tab-w, 818px), calc(100% - 360px)); max-width: calc(100% - 340px); border-left: 1px solid silver; }
    /* User 2026-11-25: the tabs and the Add / Update / Delete buttons stay on one row; the form column grows past 1050px only as far as
       that row needs (Divisions). */
    @media (min-width: 1400px) {   /* a narrower screen wraps them rather than pushing the page sideways */
        body.pss-app:not(.pss-framed) .pss-side-form .pss-classic-tabs { flex-wrap: nowrap; }
        body.pss-app:not(.pss-framed) .pss-side-form .pss-classic-tabs > li { flex: none; }
    }
}
/* RULE (system wide): a form in a pop-up has only Add (new) or Update (existing): no Delete and no "& New Form". Matched by
   the conventions every form page follows (Delete posts to the Delete action; "& New Form" posts andNew / addAnother /
   op=new), so new pages get it too; anything else that must not show in a pop-up takes class pss-no-popup. */
.pss-framed :is(form[action$="/delete" i], form[action*="/delete?" i], button[formaction$="/delete" i], button[formaction*="/delete?" i],
    button[name="andNew"], button[name="addAnother"], button[name="op"][value="new"], .pss-new-form, .pss-no-popup) { display: none !important; }
/* Long help text: a small "Note" beside the field; the message is its tooltip (js/forms.js). System standard. */
.pss-note { display: inline-block; margin-left: .35rem; font-size: 11px; font-weight: 700; color: cornflowerblue; text-decoration: underline dotted;
    cursor: help; white-space: nowrap; vertical-align: baseline; }
.pss-note:focus-visible { outline: 2px solid cornflowerblue; outline-offset: 1px; border-radius: 2px; }
.tooltip.pss-note-tip { --bs-tooltip-max-width: min(340px, 90vw); --bs-tooltip-font-size: 11px; }
.tooltip.pss-note-tip .tooltip-inner { text-align: left; }
/* Any listing that can be long (divisions, alerts, history, dates...): fixed height, scrolls inside, header stays put. */
.pss-long-list { max-height: 360px; overflow: auto; border: 1px solid #c0c0c0; background: #fff; }
.pss-long-list thead th { position: sticky; top: 0; z-index: 1; background: #fff; box-shadow: inset 0 -1px 0 #c0c0c0; }
.pss-long-list > .table, .pss-long-list > ul { margin-bottom: 0; }
/* The Update Exclusions pop-up (Views/Shared/_Exclusions): legacy CheckBoxList RepeatColumns 2 in a 370px scrolling panel. */
.pss-excl-list { height: 370px; overflow: auto; column-count: 2; column-gap: 1rem; text-align: left; }
.pss-excl-list .form-check { break-inside: avoid; }
.pss-long-list > ul { padding: .25rem .5rem; }
/* A block that is only as wide as its content, centered in its panel (legacy <table align="center">). */
.pss-center-block { display: table; margin-left: auto; margin-right: auto; max-width: 100%; }
.pss-long-list.pss-center-block { display: block; width: fit-content; }
.pss-alias-box { width: 150px; max-width: 100%; display: inline-block; }   /* legacy alias Width="150" */
.pss-begbal { font-size: 12px; }
.pss-begbal thead th { position: sticky; top: 0; background: #fff; font-size: 11px; }

/* ---- User Levels (legacy UserLevelAdmin.aspx) ---- */
.pss-w-wide { max-width: 30rem !important; }
.pss-import .form-select { max-width: 16rem; }
/* Exception to the centered-form rule (user's request): User Levels admin head table (Import + User Level) stays left aligned. */
.pss-level-head td { padding: .2rem .75rem .2rem 0; vertical-align: middle; white-space: nowrap; }
.pss-level-head .form-control, .pss-level-head .form-select { width: 16rem; max-width: 100%; }
@media (max-width: 575.98px) { .pss-level-head td { display: block; white-space: normal; } }
/* Settings in two columns; each program's pages and actions three across under their headings (legacy). */
.pss-level-settings { display: grid; gap: 0 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pss-perm-grid { display: grid; gap: .1rem 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: .4rem; }
.pss-perm-caption { color: cornflowerblue; font-size: 12px; }
@media (max-width: 991.98px) { .pss-level-settings { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) { .pss-perm-grid { grid-template-columns: minmax(0, 1fr); } }

/* Access / Actions sub-tabs inside a program tab. */
.pss-subtabs { margin-top: .1rem; }

/* ---- User level work flows (Views/Setup/UserLevels/_Workflow.cshtml; legacy WorkFlow*.ascx) ---- */
.pss-wf-pick, .pss-wf-pick option, .pss-wf-pick optgroup { max-width: 36rem; font-size: 12px; }
.pss-wf-word { font-family: "Arial Narrow", Arial, sans-serif; color: silver; font-size: 33px; }
.pss-wf-hint { font-size: 18px; color: gray; }
/* Diagram (scaled to 80%: legacy icons were 65px) with the logic errors beside it. */
.pss-wf-body { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 1rem; }
.pss-wf-diagram { overflow-x: auto; padding-top: 50px; flex: 0 1 auto; max-width: 100%; }
.pss-wf-diagram .pss-wf-table { zoom: .9; }
.pss-wf-diagram .pss-wf-table { margin: 0 auto; }
.pss-wf-step { position: relative; display: inline-block; padding: 0; border: 0; background: transparent; cursor: pointer; }
.pss-wf-step.pss-wf-fixed { cursor: not-allowed; }
.pss-wf-step:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }
/* Off: grey with a red X, like the legacy *_disabled.png icons. */
.pss-wf-off img { filter: grayscale(1); opacity: .55; }
.pss-wf-off::after { content: "\2716"; position: absolute; top: -2px; left: 0; color: #e00; font-size: 22px; font-weight: 700; line-height: 1; }
.pss-wf-errors { flex: 0 1 22rem; font-size: 12px; }
.pss-wf-prompt, .pss-wf-errors { max-width: 600px; padding: .6rem .8rem; box-shadow: 1px 2px 6px silver; background: #fff; }
/* Copy-to-other-workflows prompt: tighter rows. */
/* No text in the prompt larger than 11px (heading, intro, table and buttons). */
.pss-wf-prompt, .pss-wf-prompt * { font-size: 11px !important; }
.pss-wf-prompt .table > :not(caption) > * > * { padding: .1rem .35rem; }
.pss-wf-prompt p { margin-bottom: .3rem !important; }
/* The prompt heading folds the box open / closed (chevron) and blinks, like legacy blink_mered. */
.pss-wf-prompt-toggle { display: block; width: 100%; border: 0; background: transparent; padding: 0; color: #d00000; font-weight: 700; text-align: center; }
.pss-wf-prompt-toggle::after { content: " \25B2"; font-size: 9px !important; }
.pss-wf-prompt-toggle.collapsed::after { content: " \25BC"; }
.pss-blink { animation: pss-blink 1s steps(2, start) infinite; }
@keyframes pss-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .pss-blink { animation: none; } }

/* ---- Header user links (legacy master page right-hand links; ViewComponents/UserBarViewComponent) ---- */
.pss-user-toggle, .pss-user-toggle:hover, .pss-user-toggle:focus { color: var(--pss-toplink); text-decoration: none; padding: 0; }
.pss-user-menu { font-size: 12px; min-width: 14rem; }
.pss-user-menu .dropdown-item { font-size: 12px; padding: .2rem .8rem; }
/* Right of the grey sub-bar: Following | New Event / Reminder | Calendar | clock | date. */
.pss-subbar-links { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: 11px; color: var(--pss-hp-text, #006699); }
/* Company colours, as legacy: links in the bar use the High Priority Text Color (on the High Priority Bar Color). */
.pss-subheader a, .pss-subheader .btn-link, .pss-subheader .btn-link:hover { color: var(--pss-hp-text, #006699); }
.pss-subheader .dropdown-menu a { color: #000; }
.pss-subbar-links .btn, .pss-subbar-links a { font-size: 11px; }
.pss-following { min-width: 18rem; max-width: min(26rem, 92vw); max-height: 60vh; overflow-y: auto; font-size: 11px; }
.pss-following-group { font-weight: 700; color: cornflowerblue; border-bottom: 1px solid #ddd; margin: .3rem 0 .15rem; }
.pss-following-item { line-height: 1.6; }
body.pss-app .pss-following a { color: #000; }
.pss-switch { max-width: 34rem; }
/* Colour text boxes show their colour; clicking opens the picker (site.js data-color-for). */
.pss-prefs input[id][class*="form-control"]:is(#TopNavBarBg, #TopLinkColor, #TopLinkColorSel, #HghPriBarColor, #HghPriTxtColor, #ButtonTxtColor, #DefGlColor) { cursor: pointer; }
/* Legacy colour fields: one box inside a cell whose background is the colour (site.js showColor). The native
   picker is kept out of sight and opened by clicking the box. */
.pss-color-cell { position: relative; padding: 2px 4px; max-width: 24rem; }
.pss-color-cell .form-control { max-width: 14rem; }
.pss-color-pick { position: absolute; left: 8px; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; pointer-events: none; }
/* Lists grouped by a heading row (employees by division): bold heading, entries indented under it. */
.pss-picker li.pss-list-group { font-weight: 700; padding: 0 .25rem; color: #000; line-height: 1.3; }
.pss-picker li.pss-list-indent { line-height: 1.3; }
.pss-picker li.pss-list-indent > a { padding-left: 1.1rem; }

/* ---- Update History tab (shared: Views/Shared/_UpdateHistory*.cshtml, legacy TransactionUpdateHistory) ---- */
.pss-history-search { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: flex-end; margin-bottom: .5rem; }
.pss-history-search .form-label { display: block; margin-bottom: 0; font-size: 11px; }
.pss-history-search #hist-emp, .pss-history-search .ts-wrapper { min-width: 12rem; max-width: 16rem; }
.pss-w-date { width: 6.5rem; }
.pss-history-empty { font-size: 1.25rem; font-weight: 700; color: silver; text-align: center; padding: 1.5rem .5rem; }
.pss-history-scroll { max-height: 400px; overflow: auto; }
.pss-history-table { font-size: 11px; font-family: Arial, Helvetica, sans-serif; }
.pss-history-table > :not(caption) > * > * { padding: .15rem .35rem; vertical-align: top; }
.pss-history-table thead th { position: sticky; top: 0; background: var(--pss-nav-bg); text-transform: uppercase; white-space: nowrap; }
.pss-history-more > summary { cursor: pointer; text-decoration: underline; }
.pss-history-data { margin-top: .2rem; border-collapse: collapse; }
.pss-history-data th { text-align: right; font-weight: 600; padding: 0 .4rem 0 0; white-space: nowrap; }
.pss-history-data td { padding: 0; word-break: break-word; }
.pss-history-changes { margin: 0; padding-left: 1rem; }
.pss-history-val { color: blue; }

/* ---- Drop-downs never wrap (system rule): a single pick shows its choice on one line ("..." when longer than the box,
   which keeps its legacy width); the open list (.ts-dropdown.pss-nowrap) is at least the box's width and grows to fit its
   longest entry, inside the screen (js/dropdowns.js fitDropdown). Token boxes (multi) still wrap their tokens. ---- */
.ts-wrapper.single .ts-control > .item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ts-wrapper.single .ts-control { flex-wrap: nowrap; overflow: hidden; }
select.form-select { text-overflow: ellipsis; white-space: nowrap; }
.ts-dropdown.pss-nowrap { width: auto !important; min-width: var(--pss-dd-min, 0); max-width: calc(100vw - 16px); }
.ts-dropdown.pss-nowrap .option { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Grouped drop-downs (<optgroup>, e.g. employees by division): legacy look, a bold "::Division"
   heading and the names indented under it; compact, no divider lines. ---- */
.ts-dropdown .optgroup:before { display: none; }
.ts-dropdown .optgroup-header { font-weight: 700; color: #000; font-size: 11px; padding: 2px .5rem 0; }
.ts-dropdown .optgroup-header::before { content: "::"; }
/* A native list box (select[size]) with groups (OptionsViewModel.ListBox): the heading bold, upright and black like legacy's "::Group". */
select[size] optgroup { font-style: normal; font-weight: 700; color: #000; }
select[size] optgroup > option { font-weight: 400; }
.ts-dropdown .optgroup .option { padding-left: 1.4rem; }

/* Auto-width filter boxes (Tom Select on a .w-auto select) size to the text; keep room for the arrow. */
.ts-wrapper.w-auto { min-width: 6rem; }
/* RULE (user 2026-11-26): EVERY drop-down and list box has a minimum width, so a box sized to a short pick (e.g. "0" in an input
   grid's Project column) or to a list that loads on use still shows its text: drop-downs (the native box, its Tom Select box and the
   stand-in) at least 100px, list boxes / multi picks 150px. Only pss-w-fixed boxes keep their legacy width (e.g. the 50px Sort box).
   A wider box (its entries, an inline width) stays wider. */
select.form-select:not(.pss-w-fixed), .ts-wrapper:not(.pss-w-fixed), .pss-ts-stub:not(.pss-w-fixed) { min-width: 100px; }
select.form-select:is([multiple], [size]):not(.pss-w-fixed), .ts-wrapper.multi:not(.pss-w-fixed) { min-width: 150px; }
.ts-wrapper.w-auto .ts-control { padding-right: 1.8rem !important; }

/* ---- Int. Notes tab (shared: Views/Shared/_InternalNotes.cshtml) ---- */
.pss-notes-add { max-width: 48rem; margin-bottom: .75rem; }
.pss-notes-list li { border-top: 1px solid #e4e6e9; padding: .35rem 0; font-size: 12px; }
.pss-notes-head { font-weight: 700; }
.pss-notes-body { word-break: break-word; }

/* Long drop-downs draw 200 rows at a time (site.js noteMore): the note under them. */
.ts-dropdown .pss-ts-more { font-size: 11px; color: #666; font-style: italic; padding: 3px .5rem; border-top: 1px solid #e4e6e9; }

/* ---- Loading box (legacy UpdateProgress "Loading..." with a spinner) ----
   RULE: on (html.pss-busy, core.js) from the click until the new page has FULLY loaded (swapped, its scripts run, images in,
   drawn), not just until the server answers; shown only past .3s so quick clicks don't flash it. It never blocks clicks or typing. */
.pss-loading { position: fixed; top: 40%; left: 50%; transform: translate(-50%, -50%); z-index: 2001; pointer-events: none;
  display: flex; align-items: center; gap: .6rem; padding: .7rem 1.2rem; border-radius: 6px; font-size: 13px; color: #333;
  background: rgba(255, 255, 255, .96); box-shadow: 0 2px 12px rgba(0, 0, 0, .25); border: 1px solid #d6d6d4;
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s .15s; }
.pss-loading .spinner-border { width: 1.4rem; height: 1.4rem; border-width: .2em; color: var(--pss-nav-bg-dark, #006699); }
html.pss-busy .pss-loading { opacity: 1; visibility: visible; transition: opacity .15s .3s, visibility 0s .3s; }
@media (prefers-reduced-motion: reduce) { .pss-loading .spinner-border { animation-duration: 2s; } }

/* ---- Divisions: PO numbering, a small two-column table (choice | its box) so the boxes line up ---- */
.pss-po-grid { display: grid; grid-template-columns: max-content minmax(0, 16rem); gap: .35rem .75rem; align-items: start; }
.pss-po-grid .form-check { grid-column: auto; margin: 0; padding-top: .15rem; min-height: 0; }
.pss-po-grid .text-muted { font-size: 11px; }
.pss-po-grid .form-control, .pss-po-grid .form-select { max-width: 16rem; }
@media (max-width: 575.98px) { .pss-po-grid { grid-template-columns: minmax(0, 1fr); } }

/* Group entries in drop-downs (system standard; js/dropdowns.js labelHtml): the same G tag as the lists, compact. */
.pss-g-tag { font-size: 9px; padding: 0 .3em; vertical-align: 1px; font-weight: 600; }

/* ---- Hot links in the sub-header beside the red flag (legacy master page breadcrumb; js/header.js) ----
   The High Priority text colour, like the rest of that bar; it takes the free space and scrolls sideways when long. */
.pss-hotlinks { width: 100%; min-width: 0; padding: 2px 12px 3px; border-top: 1px solid rgba(0,0,0,.08); background: var(--pss-hp-bar, #ececeb); font: 11px Arial, Helvetica, sans-serif; color: #006699; }
.pss-hotlinks:empty { display: none; }
.pss-hotlinks-bar { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: 5px; }
.pss-hotlinks-bar > .pss-hotlinks-list { flex: 1 1 auto; }
.pss-hotlinks-list { display: flex; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; white-space: nowrap; min-width: 0; }
.pss-hotlinks-list li + li::before { content: "\203A"; opacity: .6; padding: 0 .4rem; }
.pss-hotlinks-list a, .pss-hotlinks .btn-link, .pss-hotlinks .text-muted, .pss-hotlinks .text-muted a { color: #006699 !important; text-decoration: none; }
.pss-hotlinks-list a[aria-current] { font-weight: 700; }
.pss-hotlinks-list a:hover { text-decoration: none; }
.pss-hotlinks-act { flex: none; margin: 0; }
.pss-hotlinks-act .btn-link { font-size: 11px; }
.pss-hotlinks .dropdown-menu { min-width: 14rem; font-size: 11px; }
.pss-hotlinks .dropdown-menu .form-label { color: #000; }/* Only as many links as fit (js/header.js hides the oldest first); the flag and the links on the right keep their room. */
.pss-subheader > #pssHighPri { flex: none; }
.pss-subheader > .pss-hotlinks { order: 1; margin: 0 -12px -3px; }   /* an old cached layout: still its own row, under the flag row */
.pss-hotlinks-list { overflow: hidden; }
.pss-hotlinks-list li[hidden] { display: none; }
.pss-subheader .pss-subbar-links { flex: none; flex-wrap: nowrap; white-space: nowrap; }

/* ---- Rich text box (shared: Views/Shared/_RichEditor.cshtml, legacy RichEditor.ascx) ---- */
.pss-rich { max-width: 100%; overflow-x: auto; }
.pss-rich .jodit-container { max-width: 100%; font-size: 11px; }
.pss-rich-required .jodit-wysiwyg { background-color: var(--pss-required); }
.pss-rich .jodit-container.pss-missing { outline: 1px solid #d00000; }

/* Notifications (Setup/Notifications): set-up ones green and the chosen view teal, as legacy; 500px subject / name. */
body.pss-app main .pss-listbox a.pss-ntf-set:not(.btn) { color: green; }
.pss-view-on { color: teal; }
.pss-form-v .pss-w-wide { max-width: 500px; width: 100%; }
.pss-fine { font-size: 10px; }

/* Custom Forms (Setup/CustomForms), legacy sizes: the grey template bar, 215px title, 200px colour boxes, the font
   hover menu (each font in itself), the white preview sheet, and greyed titles of items not ticked. */
.pss-cf-top { background: #ececeb; }
.pss-cf-name { font-weight: 700; font-size: large; }
.pss-cf-des { font-size: larger; }
.pss-form-v .pss-cf-w215 { width: 215px; max-width: 100%; }
.pss-cf-w250 { width: 250px; max-width: 100%; }
.pss-cf-color { width: 200px; max-width: 100%; }
/* RULE (user 2026-11-25): in a form the colour box (its colour frame included) lines up with the other boxes at the one width. */
.pss-form-v .pss-cf-color { width: var(--pss-fw); box-sizing: border-box; justify-self: start; }
.pss-whatis { color: cornflowerblue; text-decoration: underline; cursor: help; }
.pss-cf-font { font-size: large; color: #000; text-decoration: underline; }
.pss-cf-fonts { width: 220px; max-height: 400px; overflow-y: auto; }
.pss-cf-fonts .dropdown-item { font-size: large; color: #000; }
.pss-cf-link { color: cornflowerblue; }
.pss-cf-sheet { width: 100%; min-height: 340px; border-collapse: separate; border-radius: 6px; border: 1px solid darkgrey; background: #fff; }
.pss-cf-logo { max-width: 100%; max-height: 120px; }
.pss-cf-rule { margin: 2px 0; border-top: 1px solid currentColor; opacity: 1; }
.pss-cf-rule-note { font-size: 14px; }
.pss-cf-lines td, .pss-cf-lines th { padding: 2px; vertical-align: middle; font-weight: normal; }
.pss-cf-title { width: 100px !important; }
.pss-cf-title.pss-cf-off { background: silver; }

/* Memos: legacy 700px column, "Memos" in 32px Arial Narrow, 300px title / recipients, 400px list, status colours. */
.pss-memos { max-width: 860px; }
.pss-memos-title { font: 32px "Arial Narrow", Arial, sans-serif; margin: 0; }
/* THE legacy page heading: 32px Arial Narrow over a rule (Successful..., Unread Transaction Notes). */
.pss-big-title { font: 32px "Arial Narrow", Arial, sans-serif; margin: 0; }
.pss-form-v .pss-memo-w300, .pss-memo-w300 { width: 300px; max-width: 100%; }
.pss-memo-list { width: auto; min-width: 400px; max-width: 100%; }
.pss-memo-list .pss-memo-link { font-size: 14px; }
.pss-memo-list td { font-size: 13px; }
.pss-memo-read { color: teal; }
.pss-memo-unread { color: red; }
.pss-memo-partial { color: cornflowerblue; }
.pss-memo-detail { background: #ececeb; }
.pss-ven-teal { color: teal; }

/* GL Accounts: the flashing "Search For My Institution..." button (legacy flash-button1), the Plaid window, keyword grid. */
.pss-gl-flash { background: #0066ff; color: #fff; width: 300px; padding: 10px; font: 13px Arial, sans-serif; animation: pss-gl-flash 1s linear infinite; }
.pss-gl-flash:hover, .pss-gl-flash:focus { background: #0052cc; color: #fff; }
@keyframes pss-gl-flash { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pss-gl-flash { animation: none; } }
.pss-gl-plaid { width: 100%; height: 620px; border: 0; display: block; }
.pss-gl-gwlink { font-size: larger; color: cornflowerblue; }
.pss-w-route { max-width: 9rem !important; }
.pss-prewrap { white-space: pre-wrap; }
.pss-kw-grid { max-height: 320px; overflow: auto; }

/* The data-confirm pop-up (js/core.js PSS.confirm): above any pop-up already open; line breaks in the message kept. */
.modal.pss-confirm { z-index: 1065; }
.modal-backdrop.pss-confirm-backdrop { z-index: 1060; }
.pss-confirm-text { white-space: pre-line; }

/* ---- Calendar pop-up (flatpickr, every date box): compact like legacy's DateTimeSelector and the 11px boxes,
   instead of flatpickr's 308px / 14px default. Day squares stay 32x28 so they are still easy to tap on tablets. */
.flatpickr-calendar { width: 226px; font-size: 11px; }
.flatpickr-calendar .flatpickr-days { width: 224px; }
.flatpickr-calendar .dayContainer { width: 224px; min-width: 224px; max-width: 224px; }
.flatpickr-calendar .flatpickr-day { max-width: 32px; height: 28px; line-height: 26px; font-size: 11px; }
.flatpickr-calendar .flatpickr-months .flatpickr-month { height: 28px; }
.flatpickr-calendar .flatpickr-current-month { font-size: 12px; padding-top: 5px; height: 28px; }
.flatpickr-calendar .flatpickr-current-month .numInputWrapper { width: 5.5ch; }
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month, .flatpickr-calendar .flatpickr-months .flatpickr-next-month { padding: 7px; height: 28px; }
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month svg, .flatpickr-calendar .flatpickr-months .flatpickr-next-month svg { width: 11px; height: 11px; }
.flatpickr-calendar .flatpickr-weekdays { height: 22px; }
.flatpickr-calendar span.flatpickr-weekday { font-size: 10px; }

/* Radio / checkbox wrapped in its own label (<label><input class="form-check-input">Text</label>): the box sits on
   the same line as its text, vertically centered, and the two never wrap apart (system standard). */
label:has(> input.form-check-input) { display: inline-flex; align-items: center; white-space: nowrap; vertical-align: middle; }
label:has(> input.form-check-input) > .form-check-input { margin-top: 0; flex-shrink: 0; }

/* Links are never underlined, not even on hover or focus (system standard; overrides Bootstrap and its
   text-decoration-underline helper). Link-style buttons follow the same rule. */
a, a:hover, a:focus, a:visited, .btn-link, .btn-link:hover, .btn-link:focus { text-decoration: none !important; }

/* USER RULE (top priority): every link (a href) and every link button (legacy LinkButton = .btn-link) is 11px, everywhere,
   whatever class or helper (.small, .fs-6, inherit) the page put on it. The body class lifts this above Bootstrap's
   !important utilities. */
body a, body.pss-app a, body.pss-public a, body .btn-link, body.pss-app .btn-link, body.pss-public .btn-link { font-size: 11px !important; }
/* The one exception: the menu items in the top bar (module menus, their lists, the user menu) are 12px. */
body.pss-app .pss-topnav a:not(.navbar-brand), body.pss-app .pss-topnav .btn-link, body.pss-app .pss-topnav .dropdown-item { font-size: 12px !important; }

/* USER RULE (top priority): in every label / box form (.pss-form-v) the boxes are ONE width, so their left and right
   edges line up: text boxes, date boxes, drop-downs and multi-line boxes, whatever width the page wrote on them.
   Kept at their own width only when marked on purpose: pss-w-fixed (a small box with a unit or a From / To pair beside
   it), pss-w-half (First | Last), the small pss-lw-40 / 50 / 60 / 80, the phone parts, check / radio boxes, multi-selects
   (token lists), w-auto, and boxes in grid rows (table cells). Never wider than the column, so phones and tablets still fit.
   A drop-down with a unit beside it ("px") is a unit box: see the next rule. */
.pss-form-v { --pss-fw: 208px; }
/* RULE (user 2026-11-25: "why are the notes field not expanding out like legacy"): a multi-line box (notes, memo) keeps the legacy width its
   view gives it (style width, e.g. 400px), never the one 208px width; never wider than its column. */
.pss-form-v textarea.form-control[style*="width"] { max-width: 100% !important; }
.pss-form-v :is(input.form-control:not([type=checkbox], [type=radio], [type=file], [type=color], [type=hidden]), textarea.form-control:not([style*="width"])):not(.pss-w-fixed, .pss-w-num, .pss-check-no, .pss-w-half, .w-auto, .pss-lw-40, .pss-lw-50, .pss-lw-60, .pss-lw-80, .pss-phone *, td *, th *) {
    width: var(--pss-fw) !important; max-width: 100% !important; flex: 0 1 auto;
}
/* RULE (user 2026-11-25): in a form every box lines up at the one width, drop-downs too, including one alone on its row that the page
   marked w-auto (e.g. Custom Forms' Border Style, which had stretched past 208px). Only a UNIT drop-down (a "px" beside it, or in a
   pss-with-hint group) and a w-auto drop-down sharing its row with other boxes are not: see the next rule. */
.pss-form-v :is(select.form-select:not([multiple]), .ts-wrapper.single):not(.pss-w-fixed, .pss-check-no, .pss-w-half, .pss-lw-40, .pss-lw-50, .pss-lw-60, .pss-lw-80, .pss-phone *, td *, th *, :has(+ .pss-hint), .pss-with-hint > *):is(:not(.w-auto), .pss-form-v > div > *, .pss-form-v > .pss-type-only > div > *) {
    width: var(--pss-fw) !important; max-width: 100% !important; flex: 0 1 auto; justify-self: start;
}
/* RULE (user 2026-11-25): a unit drop-down ("1 px", "12 px") or a w-auto one sharing its row is only as wide as its widest entry (the
   browser sizes a width:auto select so; no wasted space), never wider than the form width and never stretched to its row. */
.pss-form-v :is(select.form-select:not([multiple]):not([size]), .ts-wrapper.single):not(.pss-w-fixed, .pss-lw-40, .pss-lw-50, .pss-lw-60, .pss-lw-80, td *, th *, [data-uf-block] *):is(:has(+ .pss-hint), .pss-with-hint > *, .w-auto:not(.pss-form-v > div > *, .pss-form-v > .pss-type-only > div > *)) {
    max-width: min(var(--pss-fw), 100%) !important; flex: 0 0 auto; justify-self: start;
}
.pss-form-v select.form-select:not([multiple]):not([size]):not(.pss-w-fixed, .pss-lw-40, .pss-lw-50, .pss-lw-60, .pss-lw-80, td *, th *, [data-uf-block] *):is(:has(+ .pss-hint), .pss-with-hint > *, .w-auto:not(.pss-form-v > div > *, .pss-form-v > .pss-type-only > div > *)) {
    width: auto !important;
}
/* RULE (user 2026-11-24): a check number box is short everywhere: 100px on a form (pss-check-no), 75px in a grid
   (GridField.CheckNo); never the form's one box width or an input grid's widened box. */
.pss-form-v input.form-control.pss-check-no, input.form-control.pss-check-no { width: 100px !important; max-width: 100% !important; flex: 0 0 auto; }
/* One with a hint inside ("if voided check is available") is just wide enough to show it. */
input.form-control.pss-check-no[placeholder]:not([placeholder=""]) { width: 150px !important; }

/* Legacy check box list in a bordered, scrolling panel (MultiSelectPanelDef), as wide as the boxes around it. */
.pss-check-panel { width: var(--pss-lw, 18rem); max-width: 100%; max-height: 90px; overflow-y: auto; border: 1px solid #ced4da; border-radius: .25rem; background: #fff; padding: .15rem .4rem; font-size: 12px; }
.pss-check-panel .form-check { margin: 0; min-height: 0; }
/* Recurring schedule (legacy RecurringOptions.ascx): each list is a MultiSelectPanelDef panel (white, inset silver border, rounded,
   fixed size, scrolling, RepeatColumns columns) under "All | None"; Monthly is legacy's inner table (Months: / Days: / On: beside their lists). */
.pss-recur-list { font-size: 11px; }
.pss-recur-panel { display: grid; column-gap: 8px; align-content: start; overflow: auto; background: #fff; border: 1px solid silver; border-radius: 5px; padding: 0 2px; font-size: 11px; }
.pss-recur-panel > label { display: flex; align-items: center; gap: 3px; white-space: nowrap; margin: 0; line-height: 16px; }
.pss-recur-panel .form-check-input { margin: 0; }
.pss-recur-monthly { font-size: 11px; display: grid; grid-template-columns: max-content max-content; gap: 4px 6px; align-items: start; }
.pss-recur-monthly > label .form-check-input, .pss-recur .pss-with-hint .form-check-input { margin-top: 0; vertical-align: middle; }
/* A box turned off by a tick box (forms.js data-disables, legacy BackColor silver), e.g. Check # when Printed Check is ticked. */
body.pss-app .form-control.pss-off { background-color: silver; }
/* Write A Check on a phone: the legacy 900px check keeps its desktop look on wide screens; under 576px the Account /
   Division / Vendor pickers and the check's parts stack, each label beside its box, and the boxes take the full width
   (their legacy pixel widths would overflow the screen). */
@media (max-width: 575.98px) {
    .pss-wc-picks { flex-direction: column; align-items: stretch !important; }
    .pss-wc-pick, .pss-wc-pair { display: flex !important; align-items: center; gap: .25rem; width: 100%; }
    .pss-wc-pick label, .pss-wc-pair label { flex: none; min-width: 4.5rem; margin: 0 !important; text-align: right; }
    .pss-wc-pick select, .pss-wc-pick .ts-wrapper, .pss-wc-pair input { flex: 1 1 auto; width: auto !important; min-width: 0; }
    .pss-wc-pick select, .pss-wc-pick .ts-wrapper { min-width: 100px; }   /* the drop-down minimum (rule above) */
    .pss-wc-picks > .btn { align-self: center; }
    .pss-wc-check > .d-flex { flex-direction: column; align-items: stretch !important; }
    .pss-wc-check .text-end { text-align: left !important; display: flex; flex-direction: column; gap: .25rem; }
    .pss-wc-check fieldset { width: 100% !important; }
    .pss-wc-check .text-nowrap { white-space: normal !important; }
    .pss-wc-payto { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
    .pss-wc-check :is(.pss-wc-payto input, textarea, input[name="Memo"], select[name="RemitTo"], .pss-wc-sign) { width: 100% !important; max-width: 100% !important; }
    .pss-wc-check .text-end > select { width: 100% !important; }
    .pss-wc-check .text-end > br { display: none; }
}

/* User Fields: legacy Field Type radio list, 2 columns filled down (RepeatColumns=2, vertical), 300px. */
.pss-uf-types { display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: .1rem 1rem; width: 300px; max-width: 100%; font-size: 12px; }
@media (max-width: 575.98px) { .pss-uf-types { grid-template-rows: none; grid-auto-flow: row; } }

/* Data Imports (legacy DataImports.aspx): filters in two pairs per row like legacy, sort arrows in the headers. */
.pss-di-filters { width: fit-content; max-width: 100%; }
@media (min-width: 768px) { .pss-di-grid { grid-template-columns: max-content var(--pss-lw) max-content auto; } }
.pss-sort { display: inline-flex; gap: 1px; margin-left: .15rem; vertical-align: middle; }
.pss-sort button { border: 0; background: none; padding: 0 1px; font-size: 8px; line-height: 1; color: #9aa0a6; cursor: pointer; }
.pss-sort button.on, .pss-sort button:hover { color: #c00; }
.pss-sort a, .pss-sort a:hover { line-height: 1; padding: 0; }
.pss-sort img { display: block; }   /* legacy sort_asc / sort_desc (.gif, "_on" for the current sort) */
/* Legacy div_pager (Views/Shared/_GridPager): a rounded silver box around the page images, rows and status. */
.pss-grid-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .65rem; width: fit-content; max-width: 100%;
    border: 1px solid silver; border-radius: 7px; padding: 6px 12px; margin-top: 6px; margin-bottom: 8px !important; font-family: Arial, Helvetica, sans-serif; font-size: 11px; }
.pss-grid-pager img { display: block; }
.pss-sort button:has(img) { padding: 0; }
.pss-sort a.on, .pss-sort a:hover { color: #c00; }
.pss-di-table { border: 1px solid #c0c0c0; border-radius: .25rem; padding: .25rem .5rem .5rem; }
.pss-di-table > legend { float: none; width: auto; padding: 0 .3rem; margin-bottom: .2rem; font-size: 12px; }

/* User fields on every form (Views/Shared/_UserFields): the block joins its form's grid; the box and its pen share
   the right-hand cell. Legacy EditUserField.ascx: a black 17px ✎; CreateUserField.ascx: a plain "new user field..." link. */
[data-uf-block] { display: contents; }
[data-uf-block] > div:not(.pss-form-actions):not(.pss-form-section):not(.pss-form-note):not(.form-check) { display: contents; }
/* The user fields block (Views/Shared/_UserFields) never depends on where a page puts it: inside a form grid it melts into
   that grid's columns; anywhere else it is its own centered form grid with the 208px boxes. */
.pss-form-v .pss-uf-own:not(.pss-uf-cols) { display: contents; }
/* Legacy RepeatColumns (UserFieldsViewModel.Columns > 1): "Title: [box]" pairs side by side, --uf-cols per row, 20px apart
   (legacy's divider cell); the "new user field..." link on its own row. Phones: one per row, as every form. */
[data-uf-block].pss-uf-cols { display: grid; grid-column: 1 / -1; --pss-lw: 175px; width: fit-content; max-width: 100%; margin: 0 auto; text-align: left; }
@media (min-width: 768px) {
    [data-uf-block].pss-uf-cols { grid-template-columns: repeat(var(--uf-cols), max-content max-content); column-gap: .4rem; }
    .pss-uf-cols .form-label { margin-left: 20px; }
    .pss-uf-cols .pss-uf-new { grid-column: 2 / -1; }
    .pss-uf-cols > .form-check { grid-column: span 2; }
}
.pss-uf-cols :where(.form-control, .form-select:not(.w-auto), .ts-wrapper:not(.w-auto)) { width: var(--pss-lw); max-width: 100%; }
/* RULE: the side-by-side block stays its own grid even when a page wraps it in a form grid (.pss-form-v > div would melt it
   into that grid's two columns, stacking the fields: the Create Receivable / Quote bug). */
.pss-form-v > div[data-uf-block].pss-uf-own.pss-uf-cols.pss-form-v { display: grid; }
/* Legacy UserFields.CreateControl sizes when side by side: text 152px, drop-down 160px, multi-line 300 x 70 (never the form's
   one 208px box width, which would push six across off the page). */
[data-uf-block].pss-uf-own.pss-uf-cols input.form-control:not([type=checkbox], [type=radio]) { width: 152px !important; max-width: 100% !important; }
[data-uf-block].pss-uf-own.pss-uf-cols :is(select.form-select:not([multiple]), .ts-wrapper.single, .pss-ts-stub) { width: 160px !important; max-width: 100% !important; }
[data-uf-block].pss-uf-own.pss-uf-cols textarea.form-control { width: 300px !important; max-width: 100% !important; height: 70px; }
[data-uf-block].pss-uf-own:not(.pss-form-v *) { display: grid; --pss-lw: 208px; width: fit-content; max-width: 100%; margin: 0 auto; }
.pss-uf-own:not(.pss-form-v *) :where(.form-control, .form-select:not(.w-auto), .ts-wrapper:not(.w-auto)) { width: var(--pss-lw); max-width: 100%; }
.pss-uf-cell { display: flex; align-items: center; min-width: 0; }
.pss-uf-cell > :first-child { flex: 0 1 auto; min-width: 0; }
.pss-uf-cell:has(> textarea, > .pss-uf-checklist) { align-items: flex-start; }
.pss-uf-pen { color: #000 !important; font-size: 17px; line-height: 1; flex: none; }
.pss-uf-pen:hover, .pss-uf-pen:focus { color: #000 !important; opacity: .7; }
.pss-uf-new { font-size: 12px; }
/* The pop-up window for those links (legacy RadWindow 810 x 700). */
.pss-uf-dialog { max-width: min(810px, 96vw); }
.pss-uf-frame { display: block; width: 100%; height: min(700px, 80vh); border: 0; }

/* ---- Products (legacy ProductsAdmin.aspx) ---- */
.pss-legacy-widths .pss-lw-100 { width: 100px; }
/* Search filters: legacy three label / box pairs per row in a rounded box (one pair per row on narrow screens). */
.pss-prod-filters { width: fit-content; max-width: 100%; border: 1px solid silver; border-radius: 7px; padding: 8px 10px; }   /* legacy cellpadding 4 + cellspacing 4 */
/* RULE: filters breathe like legacy (inner table cellpadding 1 + the default 2px cell spacing, pairs apart): every filter grid and table. */
[role="search"] .pss-form-v { row-gap: 6px; column-gap: 8px; }
@media (min-width: 992px) { [role="search"] .pss-form-v.pss-prod-grid > div > .form-label { padding-left: 14px; } }
/* Legacy two label / box pairs per row (e.g. Budgets / Targets); one pair per row on narrow screens. */
@media (min-width: 992px) { .pss-form-v.pss-filter-2 { grid-template-columns: repeat(2, max-content minmax(var(--pss-lw), max-content)); } }
@media (min-width: 992px) { [role="search"] .pss-form-v.pss-filter-2 > div > .form-label { padding-left: 14px; } }
/* RULE: in a filter every box is the one width, token boxes (several picks) too, so they line up with the boxes above and below. */
[role="search"] :is(select.form-select[multiple], .ts-wrapper.multi, .pss-ts-stub) { width: var(--pss-fw, 208px) !important; max-width: 100% !important; flex: 0 0 auto; }   /* any filter area, with or without the form grid (Balance Sheet, Trial Balance) */
.pss-filter-table { border-collapse: separate; border-spacing: 4px; }
.pss-filter-table td { padding: 1px 2px; }
.pss-filter-table td.text-end { padding-left: 14px; }
@media (min-width: 992px) { .pss-form-v.pss-prod-grid { grid-template-columns: repeat(3, max-content minmax(var(--pss-lw), max-content)); } }
/* RULE: a filter never wraps (its label, boxes, "through" and buttons stay on one line), in every search / filter area. On a narrow
   screen the page scrolls sideways instead (no overflow on the panel: it would cut off the drop-down lists). */
[role="search"] .pss-form-v .flex-wrap { flex-wrap: nowrap !important; }
[role="search"] .pss-form-v > *, [role="search"] .pss-form-v .form-label { white-space: nowrap; }
/* A date pair "[from] through [to]" (wrap the three in .pss-date-range): together exactly one box wide (--pss-lw, 208px), so the
   pair starts and ends where the boxes above and below it do; the two dates share the room left after "through". Buttons and
   notes go after the span, outside it. Works with flatpickr's static wrapper in pop-ups (the div is the flex item). */
.pss-date-range { display: inline-flex; align-items: center; gap: .25rem; width: var(--pss-lw, 208px); max-width: 100%; flex: none; white-space: nowrap; }
.pss-date-range > :not(span) { flex: 1 1 0; min-width: 0; }
.pss-date-range .form-control { width: 100% !important; min-width: 0; padding-left: .35rem; padding-right: .35rem; }
.pss-date-range > span { flex: none; font-size: 11px; }
.pss-prod-grid .ts-wrapper { min-width: 100px; }   /* the drop-down minimum, not 0 */
/* Columns list (legacy LoadRptOptions: 6 per row, 11px). */
.pss-rpt-cols { max-width: 100%; width: fit-content; max-height: 180px; overflow-y: auto; font-size: 11px; }
.pss-rpt-cols-grid { display: grid; grid-template-columns: repeat(6, max-content); gap: 5px 2rem; padding: 2px 4px; }
@media (max-width: 991.98px) { .pss-rpt-cols-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pss-rpt-cols-grid label { display: flex; align-items: center; gap: .25rem; margin: 0; }
.pss-rpt-saved { width: fit-content; max-width: 100%; max-height: 100px; overflow-y: auto; }
.pss-rpt-saved-list { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; }
/* A hover / focus panel beside a link (legacy HoverMenuExtender, e.g. Reset Sorting's Sort Details). */
.pss-hovermenu { position: relative; display: inline-block; }
.pss-hovermenu-panel { display: none; position: absolute; left: 100%; top: 1.25rem; z-index: 1060; min-width: 210px; background: #fff;
  border: 1px solid #c0c0c0; border-radius: .25rem; box-shadow: 0 2px 6px rgba(0,0,0,.15); padding: .4rem .5rem; font-size: 11px; text-align: left; white-space: nowrap; }
.pss-hovermenu:hover .pss-hovermenu-panel, .pss-hovermenu:focus-within .pss-hovermenu-panel { display: block; }
@media (max-width: 767.98px) { .pss-hovermenu-panel { left: auto; right: 0; } }
/* Customer / Sales Rep Linking (legacy CustAndReps.aspx). The grid's hovers sit in a scrolling list, so they are fixed at
   their own place (under the link) and are never cut off by the list's edge; UPPER LEVEL COMM. opens to the left. */
.pss-cr-hover { position: fixed; left: auto; right: auto; top: auto; width: 310px; max-height: 250px; overflow: auto; white-space: normal; }
.pss-cr-hover-left { width: auto; transform: translateX(-100%); white-space: nowrap; }
.pss-cr-expired > td { background-color: #FF989C !important; }
.pss-cr-inc { color: teal; }
.pss-cr-exc { color: red; }
.pss-cr-filters > :not(caption) > * > .pss-cr-ie-i { background-color: #9cd38c; }
.pss-cr-filters > :not(caption) > * > .pss-cr-ie-e { background-color: #F6DFE1; }
.pss-cr-filter { width: 350px; }
.pss-cr-trash { font-size: 20px; line-height: 1; color: silver; }
.pss-cr-members { font-size: 20px; line-height: 1; }
@media (max-width: 575.98px) { .pss-cr-filter { width: 200px; } }
.pss-prod-grid-table td, .pss-prod-grid-table th { white-space: nowrap; }
/* Product linking grids (legacy ProductAndVendor / ProductCat / ProductDivisions / MultiplierValues). */
.pss-link-grid th { white-space: nowrap; vertical-align: bottom; }
.pss-link-codes { width: 250px; }
a.pss-dup, a.pss-dup:visited { color: teal; }
/* Unit / Pricing: legacy two label / box pairs per row. */
@media (min-width: 992px) { .pss-form-v.pss-prod-pricing { grid-template-columns: max-content max-content max-content max-content; column-gap: .75rem; } }
.pss-legacy-widths .pss-lw-60 { width: 60px; }
/* Module main menus (legacy HR.aspx, Accounting.aspx, ...): picture links four to a row, bottom aligned
   (legacy table cellpadding 30 / cellspacing 10), two to a row on a narrow tablet or phone. */
.pss-mm { display: grid; grid-template-columns: repeat(4, max-content); gap: 10px; justify-content: center; align-items: end; margin: 0 auto; }
.pss-mm-tile { padding: 30px; text-align: center; white-space: nowrap; }
.pss-mm-tile img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.pss-mm-name, .pss-mm-name:visited { font-family: "Arial Narrow", Arial, sans-serif; color: var(--pss-hp-text); }
/* The main menus' picture names are 13px: the one exception to the 11px link rule (only on these menu pages). */
body.pss-app .pss-mm a.pss-mm-name { font-size: 13px !important; }
/* Legacy Reports.aspx / FinReports.aspx cards: their names count as main menu picture names (13px). */
body.pss-app .pss-rpt-menu a.pss-rpt-card { font-size: 13px !important; }
@media (max-width: 991.98px) { .pss-mm-tile { padding: 16px; } }
@media (max-width: 767.98px) {
  .pss-mm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pss-mm-tile { padding: 8px 4px; white-space: normal; }
}
/* New Expense Report (legacy ExpReport_New.aspx): the grey rounded panels, the flashing "Add Expense Item" button
   (legacy flash-button1) and the item grid's category headings. */
.pss-er-panel { background: #ececeb; border: 1px solid darkgrey; border-radius: 7px; padding: 5px; }
.pss-er-title { border: 1px solid darkgrey; border-radius: 7px; width: 177px; height: 53px; display: flex; align-items: center; justify-content: center; font-family: Arial, sans-serif; font-size: 16px; font-weight: bold; }
@keyframes pss-flash { 0% { opacity: 1; } 50% { opacity: .3; } 100% { opacity: 1; } }
.pss-flash-button { font-size: 13px; font-family: Arial, sans-serif; padding: 10px; width: 300px; background: #0066ff; color: #fff; border: 1px solid #0052cc; animation: pss-flash 1s linear infinite; }
.pss-flash-button:hover, .pss-flash-button:focus { color: #fff; animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .pss-flash-button { animation: none; } }
.pss-er-items th { background: silver; font-family: Arial, sans-serif; font-size: 10px; color: #757474; font-weight: normal; vertical-align: bottom; text-align: center; }
.pss-er-items tr.pss-er-a > td { background: #ececeb; }
.pss-er-items tr.pss-er-b > td { background: #e2e2e0; }
.pss-er-items tr.pss-er-a:hover > td, .pss-er-items tr.pss-er-b:hover > td { background: #f3f170; }
/* .pss-er-scroll: the shared .pss-scroll-bar (below) keeps it in view. */
/* A hover / tap / keyboard-focus pop-up to the left (legacy HoverMenuExtender PopupPosition=Left), e.g. a notice's message body. */
.pss-hover-pop { position: relative; display: inline-block; }
.pss-hover-pop-body { display: none; position: absolute; right: 100%; top: -25px; z-index: 1080; width: 400px; max-width: 90vw; max-height: 250px; overflow: auto;
    padding: .5rem .65rem; text-align: left; white-space: normal; color: var(--bs-body-color, #212529);
    background: var(--bs-body-bg, #fff); border: 1px solid #adb5bd; border-radius: .3rem; box-shadow: 0 .25rem .75rem rgba(0,0,0,.18); }
.pss-hover-pop:hover .pss-hover-pop-body, .pss-hover-pop:focus-within .pss-hover-pop-body { display: block; }
/* User fields in a grid cell (legacy GetUserFieldsForInput InGrid): each field as a right-aligned "Title:" and its box,
   in a small two-column grid of its own; no heading, "new user field..." link or pens. */
[data-uf-block].pss-uf-grid { display: grid; grid-template-columns: max-content minmax(9rem, max-content); gap: .25rem .4rem; align-items: center; }
.pss-uf-grid .form-label { margin: 0; text-align: right; justify-self: end; white-space: nowrap; color: #000; font-size: 11px; }
.pss-uf-grid .form-label::after { content: ":"; }
.pss-uf-grid .form-label.pss-label-top { align-self: start; padding-top: .2rem; }
.pss-uf-grid .form-check { grid-column: 2; }
.pss-uf-grid .form-control, .pss-uf-grid .form-select, .pss-uf-grid .ts-wrapper { width: 9rem; max-width: 18rem; }
.pss-uf-grid textarea.form-control { width: 12rem; }
/* InGrid with Columns > 1 (e.g. Confirm Bank Downloads, 3 per row): the "Title: [box]" pairs side by side, 20px apart; phones one per row. */
@media (min-width: 768px) {
    [data-uf-block].pss-uf-grid.pss-uf-grid-cols { grid-template-columns: repeat(var(--uf-cols), max-content minmax(9rem, max-content)); }
    .pss-uf-grid-cols .form-label { margin-left: 20px; }
    .pss-uf-grid.pss-uf-grid-cols .form-check { grid-column: span 2; }
}
/* Legacy Width="N" anywhere on a page (pss-lw-N), not only inside .pss-legacy-widths: a box given a legacy width must never
   stretch to its container (e.g. Cust & Reps' Sales Rep drop-down, legacy Width="400", sat outside that container and
   filled the panel). Its drop-down stand-in / Tom Select box takes the same class. Capped at 100% for tablets and phones. */
.pss-lw-40 { width: 40px; } .pss-lw-50 { width: 50px; } .pss-lw-60 { width: 60px; } .pss-lw-80 { width: 80px; } .pss-lw-100 { width: 100px; }
.pss-lw-180 { width: 180px; } .pss-lw-206 { width: var(--pss-lw, 208px); } .pss-lw-250 { width: 250px; } .pss-lw-300 { width: 300px; }
.pss-lw-210 { width: 210px; } .pss-lw-350 { width: 350px; } .pss-lw-400 { width: 400px; } .pss-lw-500 { width: 500px; }
:is(.pss-lw-40, .pss-lw-50, .pss-lw-60, .pss-lw-80, .pss-lw-100, .pss-lw-180, .pss-lw-206, .pss-lw-210, .pss-lw-250, .pss-lw-300, .pss-lw-350, .pss-lw-400, .pss-lw-500) { max-width: 100%; }
.pss-form-v :is(.pss-lw-40, .pss-lw-50, .pss-lw-60, .pss-lw-80, .pss-lw-100, .pss-lw-180, .pss-lw-206, .pss-lw-210, .pss-lw-250, .pss-lw-300, .pss-lw-350, .pss-lw-400, .pss-lw-500) { max-width: 100%; }
/* A legacy GridView (Views/Shared/_LegacyGrid.cshtml; legacy Style.css GridView / HeaderStyle / ItemStyle / AlternateStyle /
   HighLight / FooterStyle): silver header bar in small grey capitals, white and light grey rows, yellow under the pointer,
   bold totals under a silver line. */
.pss-legacy-grid { font-family: Arial, Helvetica, sans-serif; font-size: 11px; }
.pss-legacy-grid { border-collapse: separate; border-spacing: 0 1px; }   /* legacy CellSpacing 1 */
/* Legacy rows: CellPadding, the browser's normal line height (not Bootstrap's 1.5, which made every row ~4px taller) and the
   text in the middle of the row (a td's default; Bootstrap tables put it at the top / bottom). */
.pss-legacy-grid > :not(caption) > * > * { padding: 4px; border: 0; white-space: nowrap; color: #000; line-height: normal; vertical-align: middle; }
/* GridColumn.Wrap (legacy ItemStyle-Width="100%" text): a long description wraps instead of widening the grid. */
.pss-legacy-grid td.pss-cell-wrap { white-space: normal; min-width: 250px; }
.pss-legacy-grid td > .form-check-input, .pss-legacy-grid td > label > .form-check-input { margin-top: 0; vertical-align: middle; }
/* A statement's rule line (legacy <hr size=N color=black> in a GridView cell, e.g. under a total on the Balance Sheet). */
.pss-legacy-grid .pss-grid-rule-line { margin: 2px 0; border: 0; border-top-style: solid; border-top-color: #000; opacity: 1; }
.pss-legacy-grid tbody td { border-bottom: 1px solid #ececeb; }   /* legacy GridLines Horizontal, ItemStyle border-color #ececeb */
/* Legacy HeaderStyle: silver, Arial 10px #757474; legacy never turned off the heading's bold. */
.pss-legacy-grid thead th { background: silver; color: #757474; font-size: 10px; font-weight: bold; }
.pss-legacy-grid tbody tr:nth-child(odd) > td { background: #fff; }
.pss-legacy-grid tbody tr:nth-child(even) > td { background: #f8f7f7; }
/* A row and the line under it (GridRow.Below) share one stripe. */
.pss-legacy-grid tbody tr.pss-row-odd > td { background: #fff; }
.pss-legacy-grid tbody tr.pss-row-even > td { background: #f8f7f7; }
.pss-legacy-grid tbody tr:hover > td { background: #f3f170; }
/* Entry grids (LegacyGrid.Plain) keep their stripes under the pointer; boxes in them wrap on small screens; Small = legacy 10px. */
.pss-legacy-grid.pss-grid-plain tbody tr.pss-row-odd > td { background: #fff; }
.pss-legacy-grid.pss-grid-plain tbody tr.pss-row-even > td { background: #f8f7f7; }
.pss-legacy-grid .pss-grid-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.pss-legacy-grid .pss-grid-fields + .pss-grid-fields { margin-top: 2px; }
/* Boxes follow their column's alignment (legacy ItemStyle-HorizontalAlign centred or right-aligned the controls too). */
.pss-legacy-grid td.text-center > .pss-grid-fields { justify-content: center; }
.pss-legacy-grid td.text-end > .pss-grid-fields { justify-content: flex-end; }
/* RULE: a column legacy marked no-wrap (GridColumn NoWrap) keeps its boxes on one line (e.g. From ... through ... in Set Compare Dates); phones still wrap. */
@media (min-width: 768px) { .pss-legacy-grid td.text-nowrap > .pss-grid-fields { flex-wrap: nowrap; } }
.pss-legacy-grid .pss-grid-field { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.pss-legacy-grid .pss-grid-field-wide { display: block; flex: 1 1 100%; }
/* RULE (user 2026-11-25): a drop-down in a grid / table cell with no width of its own is as wide as its widest entry (max 208px), never
   squeezed down to its arrow (Bootstrap's width: 100% let the table shrink it to nothing). */
:is(td, th) select.form-select:not([multiple]):not([size]):not([style*="width"]) { width: auto; max-width: 208px; flex: 0 0 auto; }
.pss-legacy-grid .pss-grid-field-wide textarea { width: 98%; }
/* RULE: an INPUT grid (Views/Shared/_LegacyGrid adds .pss-grid-input) is as wide as its columns need, never more than
   --pss-grid-max (or the screen), centred. Its boxes are short (LegacyGrid.InputWidth). */
body.pss-app main .pss-grid-input {
    --pss-page-w: min(var(--pss-grid-max), calc(100vw - 3rem));
    width: fit-content; max-width: var(--pss-page-w);
    margin-left: auto !important; margin-right: auto !important;
}
/* Inside a tab container it fills the tab, never past it (like Print Checks' grid). */
body.pss-app main .pss-classic-panel .pss-grid-input { width: fit-content; max-width: 100%; margin-left: auto !important; margin-right: auto !important; }
/* LegacyGrid.FillWidth (legacy GridView Width 98% / 100% in its panel): the grid spans its container, input grids too. */
body.pss-app main .pss-grid-fill, body.pss-app main .pss-classic-panel .pss-grid-input.pss-grid-fill { width: 100% !important; max-width: 100% !important; }
.pss-grid-fill > .pss-legacy-grid { width: 100%; }
/* A legacy Panel GroupingText with a set Width (fieldset.pss-group-panel, e.g. Time Clock's 1250px): the panel keeps its width and an
   input grid inside it stops at the panel (legacy's Width="98%"), never the page width. */
body.pss-app main .pss-group-panel .pss-grid-input { width: 98%; max-width: 98%; margin-left: auto !important; margin-right: auto !important; }
/* A fieldset never shrinks below its content by default: on a phone / tablet the panel stays on screen and its grid scrolls inside it. */
fieldset.pss-group-panel { min-width: 0; }
/* GridCell.Table: legacy's item-template table (caption column right-aligned, box column left) so boxes line up. */
.pss-legacy-grid table.pss-grid-form { border-collapse: separate; border-spacing: 0; margin: 0; background: transparent; }
/* In an input grid (spans the page) the item table spreads across its cell, as legacy's width=100% item table. */
.pss-grid-input .pss-legacy-grid table.pss-grid-form { width: 100%; }
.pss-legacy-grid table.pss-grid-form > tbody > tr > td { padding: 1px 2px; border: 0; background: transparent; box-shadow: none; vertical-align: middle; }
.pss-legacy-grid table.pss-grid-form > tbody > tr > td.pss-grid-cap { text-align: right; white-space: nowrap; padding-left: 6px; }
.pss-legacy-grid table.pss-grid-form .pss-grid-field-wide textarea { width: 99%; }
.pss-legacy-grid.pss-grid-small { font-size: 10px; }
.pss-grid-scroll thead th { position: sticky; top: 0; z-index: 1; }
.pss-legacy-grid.pss-grid-bare thead th { background: #fff; color: inherit; font-size: inherit; font-weight: bold; text-decoration: none; }   /* white, not see-through: the header stays put while the rows scroll under it */
.pss-legacy-grid.pss-grid-bare tbody tr > td { background: transparent; padding: 1px 4px; }
/* RULE: the yellow row under the pointer on every grid, the plain-looking ones too (Balance Sheet, Trial Balance, Critical Alerts). */
.pss-legacy-grid.pss-grid-bare tbody tr:hover > td { background: #f3f170; }
/* A financial statement's % change (Balance Sheet, Profit & Loss: .pss-statement) beside an amount: always drawn, shown only while Show Change is ticked (no postback). */
/* It hangs to the RIGHT of the amount's box, outside it, so the amount never moves and the hierarchy's steps stay as they are; the
   amount columns leave room for it while it shows. */
.pss-cell-box { position: relative; }
.pss-bs-change { position: absolute; left: 100%; top: 0; margin-left: 6px; white-space: nowrap; font-weight: normal; }
.pss-statement:not(.pss-hide-change) .pss-legacy-grid tbody td:not(:first-child), .pss-statement:not(.pss-hide-change) .pss-legacy-grid thead th:not(:first-child) { padding-right: 64px; }
.pss-hide-change .pss-bs-change { display: none; }
/* Ruled (LegacyGrid.Ruled, with Bare): a legacy repeater table (e.g. the Trial Balance): bold 13px headings over a silver line, a group
   heading row above them (GridColumn.Group), rows highlighted on hover (legacy ChangeTRBGColor). */
.pss-legacy-grid.pss-grid-ruled thead th { text-decoration: none; font-size: 13px; border-bottom: 1px solid silver; padding: 4px; }
.pss-legacy-grid.pss-grid-ruled thead tr.pss-grid-group th { border-bottom: 0; }
.pss-legacy-grid.pss-grid-ruled tbody tr > td { padding: 4px; }
.pss-legacy-grid.pss-grid-ruled tbody tr:hover > td { background: #f3f170; }
.pss-legacy-grid tfoot td { font-weight: bold; border-top: 1px solid silver; background: #fff; }
.pss-legacy-grid .pss-grid-cmd { font-size: inherit; color: cornflowerblue; line-height: inherit; }
/* RULE: every link-button in a grid cell (hand-built grids too: Data Linking's View hover menus...) sits like the grid's own commands, so
   every grid's rows are the same height. */
.pss-legacy-grid td .btn-link { padding: 0; font-size: inherit; line-height: inherit; vertical-align: baseline; }
.pss-legacy-grid td .pss-hovermenu { vertical-align: baseline; }
/* Legacy font class "header" (silver, 20px) over a 1px rule: the section titles of a transaction page's tabs. */
.pss-sec-header { color: silver; font-size: 20px; }
.pss-sec-rule { border-top: 1px solid #a6a6a6; margin: 2px 0 6px; opacity: 1; }
/* A legacy CollapsiblePanelExtender section title ("+ Budgets (3)" / "- Budgets (3)", data-pss-collapse-text): the silver header, clickable. */
a.pss-sec-header, a.pss-sec-header:hover, a.pss-sec-header:focus { color: silver; cursor: pointer; }

/* The project page (Views/Organizer/Project, legacy Project_New.aspx). */
.pss-prj { font-family: Arial, Helvetica, sans-serif; }
.pss-prj .btn-link.pss-prj-new { font-size: inherit; color: cornflowerblue; line-height: inherit; vertical-align: baseline; }
.pss-prj-ms-title { font-weight: bold; font-size: 19px; color: cornflowerblue; }
.pss-prj-blue { color: cornflowerblue; }
.pss-prj-small { font-size: 11px; }
.pss-prj-ebr-toggle, .pss-prj-ebr-toggle:hover { color: cornflowerblue; cursor: pointer; }
.pss-prj-ebr-toggle::after { content: none; }   /* legacy "+Employee Hourly Billing" has no colon */
/* THE modern form layout (user 2026-11-27; Project and Task info tabs): .pss-modern-form = two columns of .pss-sec sections, each with a
   light heading (.pss-sec-title: a blue title + silver rule, never a box) over its own .pss-form-v; .pss-sec-wide spans both (user fields,
   the Details editor). One column on narrow screens. */
.pss-modern-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 36px; padding: 4px 14px 10px; text-align: left; }
.pss-modern-form > .pss-sec-wide { grid-column: 1 / -1; }
.pss-sec { min-width: 0; }
.pss-sec > .pss-form-v:not(.pss-uf-cols) { grid-template-columns: 9.5rem minmax(0, 1fr); }
.pss-sec-title { display: flex; align-items: center; gap: .5rem; margin: 10px 0 6px; font-size: 13px; font-weight: 700; color: #5b84d1; }
.pss-sec-title::after { content: ""; flex: 1; border-top: 1px solid silver; }
/* User fields sit centred in their section (user 2026-11-27): the entry block and the view list alike. */
.pss-sec-uf > [data-uf-block], .pss-sec-uf > .pss-form-v { width: fit-content; max-width: 100%; margin-left: auto !important; margin-right: auto !important; }
.pss-prj-view .pss-prj-details { font-weight: normal !important; }
@media (max-width: 767.98px) { .pss-modern-form { grid-template-columns: minmax(0, 1fr); padding: 4px; } }
.pss-prj-access .pss-link-text { color: cornflowerblue; cursor: pointer; }
.pss-prj-access .pss-hover-pop-body { right: auto; left: 100%; top: 20px; width: 210px; max-height: 300px; }   /* legacy PopupPosition=right */
/* Open Invoices' "ss" (Snap Shot): the blue label after the Created dates; its note opens to the right (legacy HoverMenu, Panel2 170 wide). */
.pss-snap-label { color: cornflowerblue; cursor: help; margin: 0; }
.pss-snap-pop .pss-hover-pop-body { right: auto; left: 100%; top: 20px; width: 220px; white-space: normal; font-size: 12px; }
/* Summary: 250 x 125 boxes, three to a row inside 818px (fewer on a narrow screen). */
.pss-prj-summary { display: grid; grid-template-columns: repeat(auto-fill, 254px); justify-content: center; gap: 4px; max-width: 818px; margin: 0 auto; }
.pss-prj-sumbox { border: 1px solid silver; border-radius: 5px; min-height: 129px; padding: 2px; white-space: nowrap; }
.pss-prj-sumhead { background: #ececeb; font-weight: bold; padding: 2px; }
.pss-prj-sumlines td { font-size: 11px; padding: 1px 2px; }
/* Int. Notes: legacy tableshadow2 boxes. */
.pss-record-note { box-shadow: 2px 4px 5px silver; border-radius: 10px; border: 1px solid silver; padding: 8px 10px; background: whitesmoke; margin-bottom: 8px; font-size: 11px; }
/* A note's own rich text (pasted headings, big fonts) stays at the note's size. */
.pss-record-note * { font-size: inherit !important; }
.pss-record-note p { margin-bottom: .25rem; }
/* Legacy uf.NoDataFound(): the red-bordered "No Data Found..." box. */
.pss-nodata { width: 400px; max-width: 100%; border: 1px solid red; border-radius: 7px; background: #F6DFE1; color: red; font-size: 13px; text-align: center; padding: 5px; }

/* ---------- Loan page (legacy Loan_New.aspx) */
.pss-loan { font-family: Arial, Helvetica, sans-serif; }
.pss-loan-blue, .pss-loan .btn-link.pss-loan-blue { color: cornflowerblue; }
/* THE grid "ON | OFF" heading (legacy CheckAllGenRepeater links, CornflowerBlue), Views/Shared/_CheckAllHeader. */
body.pss-app main a.pss-check-link, a.pss-check-link { color: cornflowerblue; }
.pss-loan-teal { color: teal; }
.pss-loan-cmd { line-height: inherit; vertical-align: baseline; }
/* Legacy "IMPORTANT" box: gray 11px Arial, centred. */
.pss-loan-important { font-size: 11px; color: gray; text-align: center; background: #fff; padding: 4px; border: 1px solid gray; }
.pss-loan-important-shadow { border: 0; box-shadow: 2px 4px 5px silver; padding: 8px 4px; }
.pss-loan-fit { width: fit-content; max-width: 100%; }
/* Legacy LoanSummary: gray text 13px, amounts 16px, running balance 11px, Balance 28px. */
.pss-loan-summary { color: gray; white-space: nowrap; }
.pss-loan-summary td { padding: 1px 2px; text-align: right; vertical-align: middle; }
.pss-loan-sum-text { font-size: 13px; }
.pss-loan-sum-val { font-size: 16px; }
.pss-loan-sum-bal { font-size: 11px; }
.pss-loan-sum-total { font-size: 28px; }
/* Legacy LoanAmt with receipts linked: silver and not typed in. */
.pss-loan-fixed, .pss-loan-fixed:focus { background: silver; }
.pss-loan-scroll { max-height: 300px; overflow: auto; }
.pss-loan-plabel { min-width: 45px; text-align: right; }
/* Fixed Assets (legacy FixedAssets.aspx): the IMPORTANT box and Past Entries beside the first boxes (500 wide), the summary box
   (gray 13px lines, Equity 20px), and the asset list locked when coming from a loan. */
.pss-asset-side { width: 500px; max-width: 100%; }
.pss-asset-summary { color: gray; }
.pss-asset-summary td { padding: 1px 4px; }
.pss-asset-sumtxt { font-size: 13px; }
.pss-asset-equity { font-size: 20px; color: gray; }
.pss-asset-locked { pointer-events: none; opacity: .6; }
/* Make Journal Entry (legacy CreateJournalEntry.aspx): Credit / Debit / difference at 18px Arial. */
.pss-je-totals td { font-size: 18px; font-family: Arial, sans-serif; padding: 2px; }
/* Period closeouts: the form's legacy cellpadding 3; the completion page's link cards (legacy 380 wide, white, silver shadow). */
.pss-pc-table td { padding: 3px; }
.pss-pc-card { width: 380px; max-width: 100%; height: 67px; padding: 6px 11px; background: #fff; border: 1px solid silver; border-radius: 5px;
  box-shadow: 1px 1px 4px silver; }
/* Create Receivable (legacy PrintOneTimeInvoice.aspx): the white bar along the top (legacy Panel21, kept in view), the grey
   rounded box (#ececeb, darkgrey border, 7px), the RECEIVABLE title box (177 x 53), the bordered terms table (silver, cell padding 5),
   the small underlined captions (arial size 1), the reps divider (legacy line.jpg 1 x 200) and the totals (rows #ececeb, size 2;
   the Total row #f8f8f8 13px bold). */
/* .pss-rcv-bar: the shared .pss-scroll-bar (below) keeps it in view. */
.pss-rcv-panel { min-width: 0; }
.pss-rcv-box { width: 98%; background: #ececeb; border: 1px solid var(--pss-box-border, darkgrey); border-radius: 7px; padding: 10px; }
.pss-rcv-title { width: 177px; height: 53px; background: #ececeb; border: 1px solid var(--pss-box-border, darkgrey); border-radius: 7px; }
.pss-rcv-addr td { padding: 1px 2px; }
.pss-rcv-terms { border-collapse: collapse; }
.pss-rcv-terms > tbody > tr > td { border: 1px solid silver; padding: 5px; }
.pss-rcv-cap { font-family: Arial, sans-serif; font-size: 10px; color: #000; text-decoration: underline; }
.pss-rcv-tabs { background: #ececeb; }
.pss-rcv-divider { width: 1px; height: 200px; background: silver; }
.pss-rcv-totals { background: #fff; border-collapse: separate; border-spacing: 1px; font-size: 13px; }
.pss-rcv-totals td { background: #ececeb; padding: 3px; }
.pss-rcv-totals tr.pss-rcv-total td { background: #f8f8f8; }
.pss-rcv-totals .pss-rcv-amt { color: #000 !important; }
/* Legacy rounded message boxes: the red !!WARNING!! box (gateway test mode, over receipt) and the green "Successful" box. */
.pss-legacy-warn { max-width: 400px; margin: 0 auto .5rem; padding: .5rem; text-align: center; border: 1px solid red; border-radius: 12px; color: red; font-family: arial; font-size: 13px; }
.pss-legacy-done { padding: .5rem; text-align: center; border: 1px solid #188310; border-radius: 12px; background: #e0f9dc; color: #188310; font-family: arial; font-size: 13px; }
/* Receive Payment: legacy's Receipt Date / Balance table (#330099 headings over #ffffdf cells). */
.pss-rp-dates { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.pss-rp-dates th { background: #330099; color: #fff; font-weight: normal; padding: 2px 4px; white-space: nowrap; }
.pss-rp-dates td { background: #ffffdf; padding: 2px 4px; white-space: nowrap; }
/* Make a Deposit: legacy CollapsiblePanelExtender text ("+ New Deposits" folded, "- New Deposits" open). */
.pss-dep-toggle .pss-dep-open, .pss-dep-toggle.collapsed .pss-dep-shut { display: inline; }
.pss-dep-toggle .pss-dep-shut, .pss-dep-toggle.collapsed .pss-dep-open { display: none; }
.pss-adj-table td { padding: 2px; }
.pss-loan-view > div > div { font-size: 11px; }
.pss-loan-desc { white-space: pre-wrap; max-width: 400px; }
.pss-loan-recur .pss-hover-pop-body { width: 300px; }
@media (max-width: 575.98px) {
  .pss-loan-sum-total { font-size: 20px; }
}

/* Card logos beside the card boxes (legacy IssueCustCredit rowspan 3): on the Card Number row, centred on Card Type .. Exp. */
.pss-form-v .pss-cc-logos { position: relative; min-width: calc(var(--pss-fw) + 2rem + 100px); }
.pss-form-v .pss-cc-logos > img { position: absolute; left: calc(var(--pss-fw) + 2rem); top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) { .pss-form-v .pss-cc-logos { min-width: 0; } .pss-form-v .pss-cc-logos > img { display: none; } }

/* Advanced Filtering (legacy Telerik RadFilter, Views/Shared/_AdvancedFilter): a tree, each group's items indented under it. */
.pss-advfilter { font-size: 11px; text-align: left; }
.pss-af-group { padding: 2px 0; }
.pss-af-items { margin-left: 14px; padding-left: 8px; border-left: 1px dotted silver; display: flex; flex-direction: column; gap: 3px; }
.pss-af-head { margin-bottom: 3px; }

/* Inside a label / box form: a full-width line (a rule, a heading, links), and a group of rows that folds open / closed
   (data-bs-toggle="collapse") whose rows still line up with the rows around it. */
.pss-form-v > .pss-form-v-wide { display: block !important; grid-column: 1 / -1; }
.pss-form-v > .pss-form-v-group > div { display: contents; }
.pss-form-v > .pss-form-v-group.collapse:not(.show) { display: none !important; }

/* Budget / Target form (legacy NewBudget / NewTarget): the form on the left (55%), the history and the filters on the right (45%),
   as legacy's two-column table; on a narrow screen the right column drops under the form. */
.pss-rule-side { flex: 0 1 45%; min-width: 300px; max-width: 420px; }
.pss-rule-side #rfHistGrid { min-height: 100px; }
.pss-rule-side .pss-form-v.pss-rule-filters { justify-content: start; margin-top: .25rem; }

/* Bulk Create Budgets / Targets pop-up (legacy pnl_autogen): the Parameters boxes start at the left of their panel; the totals
   and group tables at the right keep legacy cell padding. */
.pss-form-v.pss-bulk-params { justify-content: start; }
.pss-bulk-totals td { padding: 2px 3px; }

/* Open Payables "Bank Accounts" box (legacy Panel2, 600 wide): the balance, Bills Total and Balance After Payments in 15px. */
.pss-op-bank { width: 600px; max-width: 100%; }
.pss-op-bank-totals td { padding: 2px 4px; }
.pss-op-amt { font-size: 15px !important; white-space: nowrap; }

/* Legacy report pages put the pager and the grid in one centred table (table align="center"): the block is centred, and the
   pager sits at its left, above the grid's left edge (it is not centred). */
.pss-grid-block { width: fit-content; max-width: 100%; margin: 0 auto; }
.pss-grid-block > .pss-grid-pager { margin-left: 0 !important; margin-right: auto !important; }

/* A sticky grid header (every grid scrolls under its header): no hairline gaps between the heading cells. */
.pss-legacy-grid thead th { box-shadow: 1px 0 0 silver, -1px 0 0 silver; }
.pss-legacy-grid.pss-grid-bare thead th { box-shadow: none; }

/* RULE: a grid with text boxes or other input objects has small cell padding, so its rows stay compact. */
.pss-grid-input .pss-legacy-grid > :not(caption) > * > * { padding: 1px 4px; }
.pss-grid-input .pss-legacy-grid .form-control-sm, .pss-grid-input .pss-legacy-grid .form-select-sm { padding-top: 1px; padding-bottom: 1px; min-height: 0; }

/* The pager + grid block around an INPUT grid: sized like any grid block (below); the grid fills the block. */
body.pss-app main .pss-grid-block > .pss-grid-input { width: auto; max-width: 100%; margin-left: 0 !important; margin-right: 0 !important; }

/* A filter box that carries buttons (legacy <td colspan="3">, e.g. Due Before + Set Filters + Clear Filters) spans the rest of its
   row, so the buttons don't widen the column and push the next filter away from the others. */
@media (min-width: 992px) { .pss-form-v.pss-prod-grid .pss-box-span { grid-column: span 3; } }
/* RULE (user 2026-11-24): a filter's buttons (Search / Set Filters / Clear Filters) sit BESIDE the boxes, on the right, never on a row of
   their own: in the filter grid the buttons block takes the next free label + box slot of the same row. */
@media (min-width: 992px) { .pss-form-v.pss-prod-grid > .pss-form-actions { grid-column: auto / span 2; display: flex; align-items: center; gap: .25rem; white-space: nowrap; padding-left: 14px; } }

/* The row of links under a report's filters (Columns | Group By | Saved Reports | Reset Report ...): links and link buttons on ONE
   baseline, all 11px, so the row reads as one line of text like legacy's. */
.pss-links-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem; font-size: 11px; line-height: 1.4; }
.pss-links-row .btn-link { padding: 0; border: 0; line-height: inherit; vertical-align: baseline; }
.pss-links-row form { margin: 0; display: inline; }
/* Advanced Filtering: compact drop-downs and boxes (small padding, 11px), rows close together. */
.pss-advfilter .form-select-sm, .pss-advfilter .form-control-sm { padding-top: 0; padding-bottom: 0; padding-left: 4px; min-height: 0; height: 20px; font-size: 11px; line-height: 18px; }
.pss-advfilter .form-select-sm { padding-right: 20px; background-position: right 4px center; background-size: 10px; }
.pss-advfilter .pss-af-items { gap: 2px; }
.pss-advfilter .pss-af-head { margin-bottom: 2px; }

/* The 14px that separates one filter pair from the next is not wanted before the FIRST pair: pull the filter grid back by it, so
   the filters start at the box's left edge, in line with the links row under them (legacy: both tables start at the same edge). */
@media (min-width: 992px) {
  [role="search"] .pss-form-v.pss-prod-grid, [role="search"] .pss-form-v.pss-filter-2 { margin-left: -14px; }
}

/* A filter that legacy starts on a NEW table row (after the More Filters / user field filters, e.g. Range, Division): its label
   always goes back to the first column, whatever came before it. */
@media (min-width: 992px) { .pss-form-v.pss-prod-grid > .pss-row-start > .form-label { grid-column-start: 1; } }

/* RULE: a report / list grid and its pager are as wide as the grid needs (never stretched to the page), at most --pss-grid-max, centred;
   the pager sits at the grid's left edge. A grid wider than that scrolls sideways inside the block. */
.pss-grid-block { width: fit-content; max-width: min(100%, var(--pss-grid-max)); margin: 0 auto; }
/* An entry grid with a bar of boxes over it and links under it (Spend Cash / Stage Payment bulk: Division, Bank Account ... and
   [Add Line | Reset]): one centred column as wide as the grid, so the boxes and links start at the grid's left edge (user 2026-11-28). */
.pss-grid-col { width: fit-content; max-width: 100%; margin: 0 auto; }
.pss-grid-col > .table-responsive { margin-left: 0 !important; margin-right: 0 !important; }
.pss-grid-block > .table-responsive { width: auto !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

/* An input grid inside a pop-up (or beside other content in one) fills its own box, never the page: e.g. Bulk Create Budgets'
   grid sits beside its Parameters panel, as legacy. */
body.pss-app main .modal .pss-grid-input { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

/* A drop-down list opened upwards (js/dropdowns.js flipDropdown): its shadow and rounding on the top side. */
.ts-dropdown.pss-dd-up { margin-top: 0; border-radius: .25rem .25rem 0 0; box-shadow: 0 -2px 6px rgba(0,0,0,.12); }

/* RULE: a legacy pop-up (legacy CSS .modalPopup: background #ececeb, 1px border in the top bar's colour, rounded 8px) looks the
   same in v3: every server pop-up (Views/Shared/_ServerModal) carries .pss-legacy-popup. */
.modal-content.pss-legacy-popup { background-color: #ececeb; border: 1px solid var(--pss-nav-bg, silver); border-radius: 8px; }
.modal-content.pss-legacy-popup .modal-header { border-bottom-color: silver; }

/* RULE: the bar across the top of a legacy list grid (Views/Shared/_ListTopBar, drawn together with the grid): it spans EXACTLY the
   grid's width, left edge to right edge, and the pager sits flush on the grid (no gap). Show links and the pager left, the links and
   search box right; it wraps only on narrow screens. The block is as wide as the grid (display: table; a 100% grid makes it full
   width), or as wide as the bar when the grid is narrower (the grid then centred under it). The legacy .searchbox: a 300px box
   with the magnifier inside its right end and the silver ↺ clear just past it. */
.pss-list-block { display: table; margin: 0 auto; max-width: 100%; }
.pss-list-block.pss-list-full { display: block; width: 100%; }
.pss-list-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .25rem .75rem; margin: 0; padding-bottom: 2px; }
.pss-list-top .pss-grid-pager { margin-bottom: 0 !important; }
.pss-list-top-right { margin-left: auto; text-align: right; }
.pss-searchbox { display: inline-block; position: relative; margin-right: 26px; }
.pss-searchbox .form-control { width: 300px; max-width: 70vw; padding-right: 24px; }
.pss-searchbox-btn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 0; line-height: 0; }
.pss-searchbox-btn img { width: 18px; height: 18px; }
body .pss-searchbox a.pss-searchbox-clear { position: absolute; right: -25px; top: 50%; transform: translateY(-50%); line-height: 1; color: silver !important; font-size: 22px !important; }

/* Bank Downloads Pending Confirmation (legacy ConfirmBankDownloads.aspx): 500px cards in 1 or 2 columns (legacy DataList RepeatColumns),
   the grey card box (border-radius 7; the checks' square), the section titles (CornflowerBlue size 4), the tab panes, and the bottom bar
   kept at the bottom of the window (legacy AlwaysVisibleControlExtender). */
.pss-cbd-cards { display: grid; grid-template-columns: repeat(var(--pss-cbd-cols, 2), minmax(500px, max-content)); gap: 14px 12px; justify-content: center; align-items: start; }
@media (max-width: 1600px) { .pss-cbd-cards { grid-template-columns: minmax(0, max-content); } }   /* two cards need a wide window (legacy grew past the page) */
/* Each transaction framed (user 2026-11-26: hard to tell where one ends and the next starts): a darker rounded border and a soft shadow. */
.pss-cbd-card { min-width: 0; max-width: 100%; overflow-x: auto; border: 2px solid #8c8c8c; border-radius: 8px; padding: 6px; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.pss-cbd-box { background: #ececeb; border: 1px solid silver; border-radius: 7px; padding: 4px; }
.pss-cbd-box.pss-cbd-box-square { border-radius: 0; }
.pss-cbd-head { border-collapse: separate; border-spacing: 7px; }
.pss-cbd-head td { padding: 0 2px; vertical-align: middle; }
.pss-cbd-amt { font: 18px Arial, sans-serif; }
.pss-rule-title { color: cornflowerblue; font: 18px Arial, sans-serif; white-space: nowrap; }   /* Views/Shared/_TitledRule */
.pss-cbd-count { color: #000; font: 18px Arial, sans-serif; }
.pss-cbd-tabs .nav-link { font-size: 11px; padding: 2px 8px; }
.pss-cbd-panes { background: #ececeb; border: 1px solid #a6a6a6; border-top: 0; padding: 4px; }
/* The open tab joins its grey panel; the others stay outlined on white. */
body.pss-app main .pss-cbd-tabs .nav-link { background: #fff; }
body.pss-app main .pss-cbd-tabs .nav-link.active { background: #ececeb; border-bottom-color: #ececeb; font-weight: 600; }
.pss-cbd-form td { padding: 1px; }
.pss-cbd-bar { position: sticky; bottom: 0; z-index: 5; background: #fff; }
.pss-cbd-big { width: 245px; height: 35px; }

/* Add / Edit Help Files & Category (legacy KB_EditFiles): the category tree. Legacy headers: gray 13px Arial. */
.pss-kb-head { color: gray; font: 13px Arial, sans-serif; }
.pss-kb-node > summary { cursor: pointer; }

/* RULE: on a report page the filters line up with the grid. The page's content is one centred column as wide as its widest part (the
   grid or the filter box, never wider than the page or --pss-grid-max for the grid): "Show Filters...", the filter box, the pager and
   the grid all start at that column's left edge; centred items (Selected Filters, the buttons) centre within it. */
body.pss-app main:has(> .pss-grid-block) { display: grid; grid-template-columns: fit-content(100%); justify-content: center; align-content: start; }
body.pss-app main:has(> .pss-grid-block) > .pss-grid-block { margin-left: 0; margin-right: 0; justify-self: center; }
/* User 2026-11-25 (Customer / Customer Service Rep Linking): a grid narrower than its filter box sits centred under it, not at its left edge. */
/* Each part may shrink to the column (a wide grid then scrolls sideways inside its block instead of widening the page). */
body.pss-app main:has(> .pss-grid-block) > * { min-width: 0; }

/* RULE (user, 2026-11-25): no border with a header title on any page; the page title is already in the top bar. A titled box
   (.card.pss-panel) draws no border or background and its heading is hidden; the buttons in its header (+ New, Update, Delete...)
   stay. Dashboard widgets and the Reminders strip keep their boxes (.pss-keep-box: their titles name the widget). */
body.pss-app main .card.pss-panel:not(.pss-keep-box) { border: 0; background: transparent; box-shadow: none; }
body.pss-app main .card.pss-panel:not(.pss-keep-box) > .card-header { background: transparent; border: 0; padding-left: 0; padding-right: 0; }
body.pss-app main .card.pss-panel:not(.pss-keep-box) > .card-header > :is(h1, h2, h3):first-child { display: none; }
body.pss-app main .card.pss-panel:not(.pss-keep-box) > .card-header:not(:has(> :not(:is(h1, h2, h3)))) { display: none; }
body.pss-app main .card.pss-panel:not(.pss-keep-box) > .card-body { padding-left: 0; padding-right: 0; }

/* RULE (user, 2026-11-25): a form's Add / Update, "& New Form" and Delete sit at the right end of its tab row (_TabActions); "New
   Form" is a link just above the first tab (_NewFormLink). */
.pss-classic-tabs > .pss-tab-actions { display: flex; align-items: center; gap: 4px; padding-bottom: 3px; align-self: flex-end; }
.pss-new-form { margin: 0 0 3px 0; }

/* RULE (list actions): the buttons under a list are one "Select Action..." drop-up (js/lists.js, [data-action-menu]); entries compact like the buttons. */
.pss-action-menu .dropdown-menu { font-size: 11px; min-width: 12rem; max-height: 70vh; overflow-y: auto; }
.pss-action-menu .dropdown-item { padding: .25rem .75rem; }
.pss-action-menu > .dropdown-toggle { min-width: 190px; padding: .45rem 1.5rem; font-size: 12px; }

/* View / Add Contacts (legacy ContactsView DataList: RepeatColumns 3, CellPadding 10; each card a 350 x 130 TabContainer, 18px Arial lines). */
.pss-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, 350px); gap: 20px; justify-content: center; max-width: 1090px; margin: .5rem auto; }
.pss-contact-card { width: 350px; max-width: 100%; text-align: left; }
.pss-contact-card .tab-content { height: 130px; overflow: auto; padding: 6px; }
.pss-contact-big { font-family: Arial, sans-serif; font-size: 18px; line-height: 1.25; }
.pss-contact-photo img { height: 75px; border: 1px dashed silver; }
.pss-contact-misc td { padding: 2px 4px; vertical-align: top; }
.pss-contact-notes { white-space: pre-wrap; }

/* RULE (user 2026-11-26): a processing form's top bar (legacy Panel21: Return, "Scroll to: top | items | bottom", ...: Views/Shared/_ScrollTo)
   stays in view while the page scrolls: sticky just under the sticky header (--pss-header-h, set by header.js), opaque, every item on one
   line, their text on one baseline (links, link buttons and text alike). A jump to an anchor stops below the header and the bar. */
.pss-scroll-bar { position: sticky; top: var(--pss-header-h, 0px); z-index: 1019; background: #fff; display: flex; flex-wrap: wrap; align-items: baseline;
    column-gap: .75rem; row-gap: 2px; padding: 3px 4px; margin-bottom: .25rem; font-size: 11px; line-height: 18px; border-bottom: 1px solid #e4e4e4; }
.pss-scroll-bar > *, .pss-scroll-bar .btn, .pss-scroll-bar a { font-size: 11px; line-height: 18px; vertical-align: baseline; }
.pss-scroll-bar .btn-link { padding: 0 !important; border: 0; display: inline-block; }
.pss-scroll-bar .btn:not(.btn-link) { line-height: 1.2; }
html { scroll-padding-top: calc(var(--pss-header-h, 0px) + 32px); }

/* RULE (user 2026-11-26): box borders stand out. Every bordered box on a page (Bootstrap .border / .border-* group boxes such as Remit To,
   Sold To, Ship To, the order's title box, panels' GroupingText fieldsets, the grey form boxes) uses one darker grey, so it reads against
   the #ececeb form background. Coloured borders (border-danger...) keep their colour. */
:root { --pss-box-border: #8a8a8a; }
body.pss-app main :is(.border, .border-top, .border-bottom, .border-start, .border-end) { --bs-border-color: var(--pss-box-border); }

/* ---- Sticky notes (legacy MasterPage Panel13 / Button15 / Panel9: Views/Includes/UserBar/_StickyNotes, js/header.js) ----
   The notes: a 207px column at the right, 120px down the page (legacy absolute, it scrolls with the page); each note 180 x 140, #ffc,
   Comic Sans 14px, padding 1em, shadow 5px 5px 7px. Folded: the yellow tab (left corners rounded 25px) with the blinking red
   "n Sticky Note(s)..." and the grey arrow. The "Sticky Note" button: fixed 100 x 44 at bottom 45 / right 15, #ececeb, rounded 10px,
   shadowed; its Add Sticky Note panel opens above it (the legacy pop-up look: #ececeb, top-bar colour border). */
.pss-sticky-panel { position: absolute; right: 0; top: 120px; width: 207px; z-index: 1010; padding: 5px; }
.pss-sticky-arrow { font-size: 17px !important; line-height: 1; color: gray !important; }
.pss-sticky-note { display: flex; flex-direction: column; width: 180px; height: 140px; margin: 0 0 10px auto; padding: 1em; overflow: hidden; color: #000;
    background: #ffc; box-shadow: 5px 5px 7px rgba(33, 33, 33, .7); }
.pss-sticky-text { font-family: "Comic Sans MS", "Comic Sans", cursive; font-size: 14px; white-space: pre-wrap; word-break: break-word; overflow: auto; min-height: 0; }
.pss-sticky-items { max-height: 130px; overflow: auto; font-family: "Comic Sans MS", "Comic Sans", cursive; font-size: 10px; }
.pss-sticky-items td { padding: 1px 3px; vertical-align: top; }
.pss-sticky-items a.pss-sticky-report { color: teal !important; }
.pss-sticky-tab { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 5px; background: #ffc; border: 1px solid #ececeb;
    border-radius: 25px 0 0 25px; }
.pss-sticky-count { font-size: 15px; font-weight: 700; color: red; white-space: nowrap; }
.pss-sticky-add { position: fixed; right: 15px; bottom: 45px; z-index: 1035; }
.pss-sticky-btn { width: 100px; height: 44px; padding: 14px 0 0; background: #ececeb; border: 1px solid #ececeb; border-radius: 10px;
    box-shadow: 1px 2px 3px silver; font: 12px Arial, Helvetica, sans-serif; color: #000; text-align: center; cursor: pointer; }
.pss-sticky-add-panel { position: absolute; right: -10px; bottom: calc(100% + 10px); width: 170px; padding: 4px 8px 8px; font-size: 11px;
    background: #ececeb; border: 1px solid var(--pss-nav-bg, silver); border-radius: 8px; }
.pss-sticky-add-panel textarea { width: 150px; height: 100px; margin: 0 auto; resize: both; }
/* Legacy scroll-to-top image sat at bottom 20px / right 120px, clear of the Sticky Note button. */
.pss-scrolltop { right: 120px; bottom: 20px; }

/* File Storage (legacy StartFileStoreFrame's file manager, 98% wide x 600 high): the folder tree left, the open folder right. */
.pss-fs { display: flex; width: 98%; height: 600px; border: 1px solid var(--pss-box-border, #8a8a8a); background: #fff; }
.pss-fs-tree { flex: 0 0 240px; overflow: auto; padding: 6px; border-right: 1px solid var(--pss-box-border, #8a8a8a); background: #f7f7f7; }
.pss-fs-tree a { display: block; white-space: nowrap; padding: 2px 4px; }
.pss-fs-tree .pss-fs-root { color: silver !important; }
.pss-fs-tree .pss-fs-on { background: #e4ecf5; }
.pss-fs-main { flex: 1 1 auto; min-width: 0; overflow: auto; padding: 6px 10px; }
.pss-fs-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.pss-fs-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
/* "Switch to Edit Permissions View" / "Switch to File Upload View" over the file manager, with legacy's silver rule under it. */
.pss-fs-switch { width: 98%; padding-bottom: 4px; margin-bottom: 6px; border-bottom: 1px solid silver; }
/* Edit Permissions view (legacy Panel1: a 650 x 750 table, tree 180 wide, the lists 305 x 100 under each other, centred). */
.pss-fs-perm { width: 650px; max-width: 98%; height: auto; min-height: 500px; }
.pss-fs-perm .pss-fs-tree { flex-basis: 180px; }
.pss-fs-tree .pss-fs-off { color: silver; white-space: nowrap; padding: 2px 4px; cursor: default; }
.pss-fs-path { font-size: 14px; font-weight: bold; min-height: 21px; }
.pss-fs-pick { font-size: 20px; font-weight: bold; text-align: center; margin-top: 3.5rem; }
.pss-fs-perms { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pss-fs-perms .pss-fs-list { width: 305px; max-width: 100%; height: 100px; max-height: none; text-align: left; }
.pss-fs-arrows { display: flex; gap: 24px; margin-top: 8px; }
@media (max-width: 767.98px) {
    .pss-fs { flex-direction: column; height: auto; }
    .pss-fs-tree { flex: none; max-height: 200px; border-right: 0; border-bottom: 1px solid var(--pss-box-border, #8a8a8a); }
}

/* ---- System Search (legacy master page search box + SystemSearch.aspx) ---- */
/* The flag and the search box share the sub-bar's left column. */
.pss-subbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pss-subbar-left > #pssHighPri { flex: none; }
.pss-help { flex: none; display: inline-flex; line-height: 0; }   /* legacy help book (help1.png, 35x26) */
.pss-ss-box { flex-wrap: nowrap; min-width: 0; }
/* Legacy SysWideSearchRange (14px, grey) and bsearch (250 wide, 15px, grey) with the search icon inside its right end (.searchboxbutton). */
body.pss-app .pss-ss-box .pss-ss-range { width: auto; min-width: 100px; max-width: 150px; font-size: 14px; color: gray; padding-top: 0; padding-bottom: 0; height: 24px; }
.pss-ss-input { position: relative; display: inline-block; }
body.pss-app .pss-ss-input .form-control { width: 250px; max-width: 30vw; font-size: 15px; color: gray; height: 24px; padding: 0 26px 0 5px; }
.pss-ss-input .form-control::-webkit-search-cancel-button { display: none; }
.pss-ss-go { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 0; line-height: 0; }
.pss-ss-go img { width: 20px; height: 20px; }
.pss-ss-more img { width: 16px; height: 16px; }
/* Legacy Panel12: 200 wide, 500 high, scrolls; grey 14px choices, the row highlighted on hover. */
body.pss-app .dropdown-menu.pss-ss-specific { width: 200px; max-height: 500px; overflow-y: auto; font-size: 14px; padding: .3rem 0; border: 1px solid silver; }
.pss-ss-specific .pss-ss-specific-title { padding: 0 .6rem .2rem; border-bottom: 1px solid silver; margin-bottom: .2rem; color: #000; }
body.pss-app .pss-ss-specific .dropdown-item { font-size: 14px; color: gray; white-space: nowrap; padding: 1px .6rem; }
body.pss-app .pss-ss-specific .dropdown-item:hover { background: #ffff99; }
/* Results: legacy NoData (33px silver Arial) and each result's "Type: name" (Arial Narrow 16px). */
.pss-ss-nodata { color: silver; font: 33px Arial, sans-serif; }
.pss-legacy-grid .pss-ss-name { font: 16px "Arial Narrow", Arial, sans-serif; }
@media (max-width: 767.98px) {
    body.pss-app .pss-ss-input .form-control { width: 140px; }
    body.pss-app .pss-ss-box .pss-ss-range { max-width: 110px; }
}

/* Legacy modalAutoLogout (Panel3, 550 x 200): the countdown in red Arial Narrow (font size 5), Stay Logged In 250 x 45. */
.pss-idle-body { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; }
.pss-idle-time { color: red; font: 24px "Arial Narrow", Arial, sans-serif; }
body .btn.pss-idle-stay { width: 250px; height: 45px; }

/* ---- PHONES (user 2026-11-26) ----------------------------------------------------------------------------------------------------------
   A phone (narrow, or a phone on its side: a touch screen under 500px high):
   - the top part scrolls away with the page: the header and a form's "Return / Scroll to" bar are not sticky;
   - the sub-header keeps the Search For Anything box only: no date range, nothing from Following to the right;
   - Confirm Bank Downloads: the buttons at the bottom scroll with the page, the cards fit the screen, and each label sits beside its box
     on a wrapping row (boxes never wider than the card). */
@media (max-width: 575.98px), (pointer: coarse) and (max-height: 500px) {
  #pssHeader.sticky-top { position: static; }
  .pss-scroll-bar { position: static; }
  html { scroll-padding-top: 0; }
  .pss-ss-range, .pss-subheader .pss-subbar-links { display: none !important; }
  body.pss-app .pss-ss-input .form-control { width: 250px; max-width: calc(100vw - 100px); }   /* the search box gets the room they left */

  .pss-cbd-bar { position: static; }
  .pss-cbd-cards { grid-template-columns: minmax(0, 1fr); }
  .pss-cbd-box > .d-flex { flex-wrap: wrap; }
  .pss-cbd-head, .pss-cbd-head > tbody, .pss-cbd-form, .pss-cbd-form > tbody { display: block; width: 100% !important; }
  .pss-cbd-head tr, .pss-cbd-form tr { display: flex; flex-wrap: wrap; align-items: center; row-gap: 3px; }
  .pss-cbd-head td, .pss-cbd-form td { flex: 1 1 60%; min-width: 0; white-space: normal; }
  .pss-cbd-head td.text-end, .pss-cbd-form td.text-end { flex: 0 0 38%; }
  .pss-cbd-head td[colspan], .pss-cbd-form td[colspan] { flex-basis: 100%; }
  .pss-cbd-head td.text-end + td[colspan] { flex-basis: 60%; }
  .pss-cbd-head td:empty, .pss-cbd-form td:empty { display: none; }
  .pss-cbd-card input.form-control, .pss-cbd-card select, .pss-cbd-card textarea, .pss-cbd-card .ts-wrapper, .pss-cbd-card .pss-dd { max-width: 100% !important; }
  .pss-cbd-card .pss-userfields, .pss-cbd-card [data-uf-block] { max-width: 100%; }
}
