/* Till screens — values from the design canvas (Main.dc.html) and ui-layout-rules.md.
   Full screen: stretches to the window, minimum about 1280 × 650; only grids and tab cards scroll. */
:root {
  /* Screen sizes S1-S3 (owner, 2026-11-24): one layout, drawn larger on big screens. */
  --z: 1;
  --accent: #1F5FD1; --accent-dark: #173B7A; --accent-bg: #EEF3FC;
  --bg: #F4F6F9; --surface: #FFFFFF; --head: #F9FAFB;
  --text: #1B1F27; --text-2: #3A4250; --muted: #5B6472; --faint: #8A919C;
  --line: #DDE1E7; --line-2: #EEF0F4; --input: #C4CAD3; --btn-line: #D5D9E0;
  --ok-bg: #E3F2E9; --ok: #11643A; --ok-dot: #1E8A50;
  --warn-bg: #FDF1DC; --warn: #6B3A00; --warn-dot: #B45309;
  --bad-bg: #FBE9E9; --bad: #8A1F1F; --bad-dot: #B42318;
  --info-bg: #EEF3FC; --info: #173B7A;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
button { font-family: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
small { font-size: 12px; color: var(--muted); }

/* ---------- frame ---------- */
.pfs-app { height: 100vh; min-height: 650px; min-width: 1280px; display: flex; flex-direction: column; overflow: hidden; }

/* header */
.pfs-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pfs-header-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pfs-logo { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; flex: 0 0 auto; }
.pfs-header-text { display: flex; flex-direction: column; min-width: 0; }
.pfs-header-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-header-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-header-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.pfs-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #EEF0F4; color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.pfs-pill i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pfs-pill-ok { background: var(--ok-bg); color: var(--ok); } .pfs-pill-ok i { background: var(--ok-dot); }
.pfs-pill-warn { background: var(--warn-bg); color: var(--warn); } .pfs-pill-warn i { background: var(--warn-dot); }
.pfs-pill-bad { background: var(--bad-bg); color: var(--bad); } .pfs-pill-bad i { background: var(--bad-dot); }
.pfs-divider { width: 1px; height: 28px; margin: 0 4px; background: var(--line); }
.pfs-lang { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #EEF0F4; }
/* Language = flag buttons (owner, 2026-11-23): chosen one white with a blue ring, the others faded; name in title / aria-label. */
.pfs-lang button, .pfs-lang a { width: 48px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 0; background: transparent; opacity: .6; cursor: pointer; transition: opacity .12s; }
.pfs-lang button:hover, .pfs-lang a:hover { opacity: 1; }
.pfs-lang button[aria-pressed="true"], .pfs-lang a[aria-pressed="true"] { opacity: 1; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 0 0 2px var(--accent); }
.pfs-lang button:focus-visible, .pfs-lang a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; opacity: 1; }
.pfs-flag { display: block; width: 28px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
/* Sign out = icon button (owner, 2026-11-23): the person-leaving icon; name in title / aria-label. */
.pfs-signout { width: 42px; height: 42px; margin-left: 4px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border, #D5D9E0); background: #fff; color: var(--text-2); }
.pfs-signout:hover { color: #B42318; border-color: #F2B8B5; background: #FDF0EF; }
.pfs-signout:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* menu + content */
.pfs-body { flex: 1 1 0; display: flex; min-height: 0; min-width: 0; overflow: hidden; }
.pfs-menu { flex: 0 0 104px; background: var(--surface); border-right: 1px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.pfs-menu-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 84px; flex: 0 0 auto; overflow: hidden; line-height: 1.2; padding: 6px 4px; border-radius: 10px; text-decoration: none; font-size: 12px; text-align: center; color: var(--text); font-weight: 500; }
.pfs-menu-item:hover { background: #F4F6F9; color: var(--text); }
.pfs-menu-item.active { background: var(--accent-bg); color: var(--accent-dark); font-weight: 600; }
.pfs-menu-gap { flex: 1; }
.pfs-content { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* title bar + message area */
.pfs-titlebar { flex: 0 0 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; background: var(--head); border-bottom: 1px solid var(--line); }
.pfs-titlebar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pfs-title { font-size: 20px; font-weight: 600; white-space: nowrap; }
.pfs-msg { display: flex; align-items: center; gap: 8px; height: 36px; max-width: 60%; padding: 0 8px 0 12px; border-radius: 8px; border: 1px solid; font-size: 14px; font-weight: 500; }
.pfs-msg-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfs-msg-close { width: 20px; height: 20px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 16px; line-height: 1; }
.pfs-msg-info { background: var(--info-bg); color: var(--info); border-color: #9DB8EC; }
.pfs-msg-success { background: var(--ok-bg); color: var(--ok); border-color: #A7D7B8; }
.pfs-msg-warning { background: var(--warn-bg); color: var(--warn); border-color: #E9C46A; }
.pfs-msg-error { background: var(--bad-bg); color: var(--bad); border-color: #E8A3A3; }

/* status bar */
.pfs-statusbar { flex: 0 0 auto; display: flex; justify-content: space-between; gap: 8px; padding: 10px 20px; background: var(--surface); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pfs-statusbar strong { color: var(--text); }

.pfs-problem { margin: 20px; padding: 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); display: flex; flex-direction: column; gap: 6px; }

/* ---------- work area ---------- */
.pfs-work { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; gap: 16px; padding: 16px 20px; overflow: hidden; }
.pfs-main { flex: 1 1 560px; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }

/* search row: search bar + 152 px slot */
.pfs-searchrow { flex: 0 0 52px; display: flex; gap: 8px; }
.pfs-search-wrap { flex: 1; min-width: 0; position: relative; }
.pfs-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 4px 0 14px; background: #fff; border: 2px solid var(--accent); border-radius: 10px; }
.pfs-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; font-family: inherit; background: transparent; color: var(--text); }
.pfs-search-clear { width: 32px; height: 32px; border: 0; border-radius: 6px; background: #EEF0F4; color: var(--text-2); font-size: 16px; }
.pfs-search-sep { width: 1px; height: 28px; background: var(--line); }
.pfs-filters { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 14px; }
.pfs-filters:hover { background: #F4F6F9; }
.pfs-held { flex: 0 0 152px; display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 10px; border: 1px solid var(--btn-line); background: #fff; color: var(--text); font-size: 14px; font-weight: 600; }
.pfs-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #EEF0F4; color: var(--text-2); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.pfs-results { position: absolute; z-index: 5; top: 58px; left: 0; right: 0; background: #fff; border: 1px solid var(--input); border-radius: 10px; box-shadow: 0 8px 24px rgba(27,31,39,.16); overflow: hidden; }
.pfs-result { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) 104px 64px 96px; gap: 12px; align-items: center; min-height: 56px; padding: 8px 16px; border: 0; border-bottom: 1px solid var(--line-2); background: #fff; color: var(--text); text-align: left; }
.pfs-result.hi { background: var(--accent-bg); }
.pfs-result-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pfs-result-name span { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-result-stock { text-align: right; font-size: 13px; font-weight: 500; color: var(--muted); }
.pfs-result-stock.low { color: #8A4B00; font-weight: 600; } .pfs-result-stock.none { color: var(--bad-dot); font-weight: 600; }
.pfs-result-price { text-align: right; font-size: 17px; font-weight: 600; white-space: nowrap; }
.pfs-result-add { justify-self: end; padding: 4px 10px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pfs-result-add.in { background: var(--ok-bg); color: var(--ok); }
.pfs-result-add.off { background: #EEF0F4; color: var(--faint); }
.pfs-results-empty { padding: 18px 16px; font-size: 15px; }
.pfs-results-foot { display: flex; justify-content: space-between; padding: 8px 16px; background: var(--head); border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }

/* grid: pinned 40 px header, 56 px rows, only the grid scrolls */
.pfs-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pfs-grid-head > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-grid-head { position: sticky; top: 0; z-index: 1; background: var(--head); height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; align-items: center; }
.pfs-row { height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line-2); align-items: center; font-size: 14px; }
/* Price before In store, price bigger (owner, 2026-11-29). */
.pfs-cart-cols { display: grid; grid-template-columns: 32px minmax(0,1fr) var(--c-price, 96px) var(--c-instore, 56px) 72px 96px 44px 44px; gap: 8px; }
.r { text-align: right; } .c { text-align: center; display: flex; justify-content: center; }
.pfs-muted { color: var(--muted); }
.pfs-strong { font-size: 15px; font-weight: 600; white-space: nowrap; }
.pfs-cell-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pfs-name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-cell-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-stock { font-size: 13px; font-weight: 500; color: var(--muted); }
.pfs-price-big { font-size: 17px; font-weight: 600; white-space: nowrap; color: var(--text); }
.pfs-stock.low { color: #8A4B00; font-weight: 600; } .pfs-stock.over { color: var(--bad-dot); font-weight: 600; }
.pfs-qty { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 72px; height: 44px; border-radius: 8px; border: 1px solid var(--input); background: #fff; color: var(--text); font-size: 16px; font-weight: 600; }
.pfs-iconbtn { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.pfs-remove { border: 0; background: transparent; color: var(--bad); }
.pfs-empty { padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 14px; color: var(--muted); }
.pfs-empty strong { font-size: 16px; font-weight: 500; color: var(--text); }

/* ---------- right panel (540 px) ---------- */
/* 540 px on wide screens; on a 1366 px screen it narrows to ~490 px so the cart keeps room for product names. */
.pfs-panel { flex: 0 0 clamp(470px, 36vw, 540px); min-width: 0; max-width: clamp(470px, 36vw, 540px); min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.pfs-panel-details { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pfs-tabs { flex: 0 0 52px; margin-bottom: -1px; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; align-items: end; }
.pfs-tab { height: 52px; padding: 0 4px; border-radius: 10px 10px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; border: 1px solid var(--input); background: #F4F6F9; color: var(--text-2); font-weight: 600; }
.pfs-tab span { max-width: 100%; font-size: 11px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-tab[aria-selected="true"] { background: #fff; color: var(--accent-dark); font-weight: 700; box-shadow: inset 0 3px 0 var(--accent); border-bottom: 0; }
.pfs-tabcard { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 14px; background: #fff; border: 1px solid var(--input); border-radius: 0 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.pfs-label { font-size: 12px; color: var(--text-2); }
.pfs-choices { display: grid; gap: 8px; }
.pfs-choices-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.pfs-choices-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.pfs-choice { min-height: 48px; border-radius: 10px; font-size: 15px; font-weight: 600; border: 1px solid var(--btn-line); background: #fff; color: var(--text); }
.pfs-choice[aria-checked="true"] { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent-dark); }

.pfs-panel-bottom { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.pfs-summary { height: 112px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.pfs-sum-row { display: flex; justify-content: space-between; gap: 8px; height: 18px; line-height: 18px; font-size: 13px; color: var(--text-2); }
.pfs-sum-total { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 32px; }
.pfs-sum-total span { font-size: 16px; font-weight: 600; }
.pfs-sum-total strong { font-size: 26px; font-weight: 600; }
.pfs-statusline { height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; background: #F4F6F9; border: 1px solid #E3E6EB; font-size: 13px; font-weight: 500; color: var(--text-2); }
.pfs-statusline i { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pfs-statusline span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-tone-good { color: var(--ok); } .pfs-tone-wait { color: var(--warn); } .pfs-tone-bad { color: var(--bad); }
.pfs-mainaction { height: 64px; }
.pfs-primary { width: 100%; height: 100%; min-height: 56px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-size: 18px; font-weight: 600; }
.pfs-primary:hover { background: #1A52B8; }
.pfs-why { height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px dashed var(--input); background: #F4F6F9; color: var(--faint); font-size: 15px; font-weight: 600; text-align: center; padding: 0 12px; }
.pfs-secondary { height: 48px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.pfs-secondary-btn { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; color: var(--text); font-size: 14px; font-weight: 500; }
.pfs-danger { border-color: #E8C4C4; color: var(--bad); }
.pfs-linkrow { height: 40px; }
.pfs-dashedlink { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; border: 1px dashed var(--input); background: var(--head); color: var(--accent-dark); font-size: 13px; font-weight: 500; text-decoration: none; }

/* ---------- dialogs ---------- */
.pfs-dim { position: fixed; inset: 0; z-index: 25; background: rgba(27,31,39,.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.pfs-dialog { width: 100%; max-width: 560px; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(27,31,39,.24); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pfs-dialog-sm { max-width: 520px; }
.pfs-dialog-head { display: flex; align-items: center; gap: 12px; }
.pfs-dialog-head span { flex: 1; min-width: 0; font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfs-close { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; color: var(--text-2); font-size: 20px; line-height: 1; }
.pfs-qty-pick { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pfs-sq { width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--btn-line); background: #fff; color: var(--text); font-size: 28px; }
.pfs-qty-input { width: 120px; height: 64px; text-align: center; font-size: 32px; font-weight: 600; font-family: inherit; border-radius: 10px; border: 1px solid var(--input); color: var(--text); }
.pfs-qty-input.bad { border: 2px solid var(--bad-dot); }
.pfs-chips { display: flex; gap: 8px; }
.pfs-chips .pfs-choice { flex: 1 1 0; height: 48px; min-height: 0; font-size: 16px; }
.pfs-field-err { font-size: 13px; font-weight: 500; color: var(--bad-dot); }
.pfs-field-warn { font-size: 13px; font-weight: 500; color: #8A4B00; }
.pfs-dialog-actions { display: flex; gap: 8px; }
.pfs-dialog-actions > * { flex: 1 1 0; min-height: 56px; }

/* ---------- payment ---------- */
.pfs-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pfs-input { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--input); border-radius: 8px; font-size: 16px; font-family: inherit; text-align: right; }
.pfs-input.bad { border: 2px solid var(--bad-dot); }
.pfs-input-big { height: 56px; font-size: 22px; font-weight: 600; }
.pfs-mix { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; align-items: end; }
.pfs-mix-single { grid-template-columns: 1fr; }
.pfs-topay { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.pfs-topay strong { font-size: 18px; color: var(--text); }
.pfs-cash-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.pfs-cash-sugg { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.pfs-cash-sugg strong { font-size: 18px; }
.pfs-cash-sugg small { font-weight: 500; }
.pfs-cash-entry { display: grid; grid-template-columns: minmax(0,1fr) 216px; gap: 12px; align-items: start; }
.pfs-cash-result { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #F4F6F9; color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 4px; }
.pfs-cash-result strong { font-size: 18px; }
.pfs-cash-result.ok { background: var(--ok-bg); color: var(--ok); }
.pfs-cash-result.bad { background: #FDF0EF; color: var(--bad-dot); }
.pfs-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pfs-keypad button { height: 48px; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; color: var(--text); font-size: 18px; font-weight: 600; }
.pfs-pay-amount { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.pfs-pay-amount strong { font-size: 28px; color: var(--text); }
.pfs-pay-progress { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; background: var(--info-bg); color: var(--info); }
.pfs-pay-progress div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pfs-pay-progress strong { font-size: 16px; }
.pfs-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #C9D8F5; border-top-color: var(--accent); animation: pfs-spin .9s linear infinite; flex: 0 0 auto; }
@keyframes pfs-spin { to { transform: rotate(360deg); } }
.pfs-pay-ok { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-size: 13px; }
.pfs-pay-ok strong { font-size: 16px; }
.pfs-bigline { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 600; }
.pfs-bigline strong { font-size: 32px; }
.pfs-pay-problem { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; }
.pfs-pay-problem div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; min-width: 0; }
.pfs-pay-problem strong { font-size: 16px; }
.pfs-pay-problem small { color: inherit; opacity: .8; overflow-wrap: anywhere; }
.pfs-pay-problem.red { background: var(--bad-bg); color: #7A1A1A; }
.pfs-pay-problem.amber { background: var(--warn-bg); color: var(--warn); }
.pfs-pay-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; }
.red .pfs-pay-icon { background: var(--bad-dot); } .amber .pfs-pay-icon { background: var(--warn-dot); }
.pfs-col { flex-direction: column; }
.pfs-col > * { flex: 0 0 auto; }

/* ---------- shift screens ---------- */
.pfs-slot { flex: 0 0 152px; height: 52px; }
.pfs-dev-cols { display: grid; grid-template-columns: 190px minmax(0,1fr) 128px 116px; gap: 8px; }
.pfs-close-cols { display: grid; grid-template-columns: minmax(0,1fr) 96px 136px 140px; gap: 8px; }
.pfs-row.sel { background: var(--accent-bg); box-shadow: inset 3px 0 0 var(--accent); }
.pfs-row { cursor: default; }
.pfs-detail { min-width: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-state { display: inline-flex; max-width: 100%; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.25; background: #EEF0F4; color: var(--muted); }
.pfs-state-ok { background: var(--ok-bg); color: var(--ok); }
.pfs-state-warn { background: var(--warn-bg); color: #8A4B00; }
.pfs-state-error { background: #FDF0EF; color: var(--bad-dot); }
.pfs-state-todo { background: var(--accent-bg); color: var(--accent-dark); }
.pfs-state-none { background: #EEF0F4; color: var(--muted); }
.pfs-rowbtns { display: flex; justify-content: flex-end; gap: 6px; }
.pfs-rowbtn { width: 40px; height: 40px; padding: 0; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; color: var(--accent-dark); display: flex; align-items: center; justify-content: center; }
.pfs-select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--input); border-radius: 8px; background: #fff; color: var(--text); font-size: 16px; font-family: inherit; }
.pfs-select.bad { border: 2px solid var(--bad-dot); }
.pfs-req { color: var(--bad-dot); }
.pfs-strong.neg { color: #8A4B00; }
a.pfs-secondary-btn { text-decoration: none; color: var(--text); }
.pfs-tabcard .pfs-field + .pfs-field { margin-top: 4px; }

/* ---------------------------------------------------------------- Sign-in (Login.dc.html) */
.pfs-login { position: relative; min-height: 100vh; box-sizing: border-box; padding: 28px 20px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; background: #F4F6F9; }
.pfs-login-lang { position: absolute; top: 24px; right: 32px; background: #E9ECF1; }
.pfs-login-brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; }
.pfs-login-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.pfs-login-card { width: 100%; max-width: 440px; box-sizing: border-box; padding: 32px; border-radius: 16px; background: #fff; border: 1px solid #DDE1E7; display: flex; flex-direction: column; gap: 16px; }
.pfs-login-card h1 { margin: 0; font-size: 26px; font-weight: 600; }
.pfs-login-form { display: flex; flex-direction: column; gap: 16px; }
.pfs-login-field { display: flex; flex-direction: column; gap: 6px; }
.pfs-login-field label { font-size: 14px; font-weight: 500; color: #3A4250; }
.pfs-login-field input { width: 100%; height: 56px; box-sizing: border-box; padding: 0 14px; border: 2px solid #C4CAD3; border-radius: 10px; background: #fff; color: var(--text); font-size: 17px; font-family: inherit; }
.pfs-login-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,95,209,.18); }
.pfs-login-field input.bad { border-color: #B42318; }
.pfs-login-field input:disabled { background: #F4F6F9; color: #8A93A1; }
.pfs-login-pass { position: relative; }
.pfs-login-pass input { padding-right: 96px; }
.pfs-login-pass button { position: absolute; right: 6px; top: 6px; height: 44px; min-width: 80px; padding: 0 10px; border-radius: 8px; border: 0; background: #EEF0F4; color: #3A4250; font-size: 14px; font-weight: 500; }
.pfs-login-msg { min-height: 20px; font-size: 14px; color: var(--text-2); }
.pfs-login-msg.bad { color: #B42318; font-weight: 500; }
.pfs-login-msg.warn { color: #9A5B00; font-weight: 500; }
.pfs-login-submit { min-height: 60px; border-radius: 12px; border: 0; font-size: 18px; font-weight: 600; background: var(--accent); color: #fff; }
.pfs-login-submit:disabled { background: #C4CAD3; cursor: not-allowed; }
.pfs-login-or { display: flex; align-items: center; gap: 12px; color: #5B6472; font-size: 14px; }
.pfs-login-or span { flex: 1 1 0; height: 1px; background: #DDE1E7; }
.pfs-login-google { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 12px; border: 1px solid #C4CAD3; background: #fff; color: var(--text); font-size: 17px; font-weight: 600; }
.pfs-login-google:hover { background: #F7F8FA; }
.pfs-login-note { font-size: 14px; color: #5B6472; }
@media (max-width: 520px) { .pfs-login-card { padding: 22px; } .pfs-login-lang { right: 12px; top: 12px; } .pfs-login { padding-top: 72px; } }

/* ---------------------------------------------------------------- role home, Choose store, No access */
.pfs-office { flex: 1 1 auto; min-height: 0; overflow: auto; background: #F4F6F9; }
a.pfs-logo { text-decoration: none; }
.pfs-home { max-width: 1040px; margin: 0 auto; padding: 28px 24px 40px; display: flex; flex-direction: column; gap: 16px; }
.pfs-home h1 { margin: 0; font-size: 26px; font-weight: 600; }
.pfs-home-lead { margin: -8px 0 4px; color: var(--text-2); font-size: 15px; }
.pfs-home-group { margin: 8px 0 0; font-size: 16px; font-weight: 600; color: var(--text-2); }
.pfs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pfs-tile { position: relative; min-height: 96px; box-sizing: border-box; padding: 16px 18px; border-radius: 14px; border: 1px solid #DDE1E7; background: #fff; color: var(--text); text-decoration: none; text-align: left; font: inherit; display: flex; flex-direction: column; gap: 6px; }
.pfs-tile strong { font-size: 18px; font-weight: 600; }
.pfs-tile span { font-size: 14px; color: var(--text-2); }
a.pfs-tile:hover, button.pfs-tile:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(31,95,209,.12); }
.pfs-tile-main { min-height: 110px; background: var(--accent); border-color: var(--accent); color: #fff; justify-content: center; }
.pfs-tile-main strong { font-size: 22px; }
.pfs-tile-main span { color: rgba(255,255,255,.88); font-size: 15px; }
a.pfs-tile-main:hover { background: var(--accent-dark); }
.pfs-tile-current { border: 2px solid var(--accent); }
.pfs-tile-soon { background: #FAFBFC; color: #5B6472; }
.pfs-tile-soon em { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #EEF0F4; color: #5B6472; }
.pfs-tile-soon strong { padding-right: 90px; }
.pfs-noaccess { max-width: 520px; margin: 80px auto; padding: 32px; border-radius: 16px; background: #fff; border: 1px solid #DDE1E7; display: flex; flex-direction: column; gap: 12px; }
.pfs-noaccess h1 { margin: 0; font-size: 24px; }
.pfs-noaccess p { margin: 0; color: var(--text-2); }
.pfs-btn-main { align-self: flex-start; min-height: 52px; padding: 0 22px; border-radius: 12px; background: var(--accent); color: #fff !important; font-weight: 600; text-decoration: none; display: flex; align-items: center; }
.pfs-store-switch { font-size: 13px; margin-left: 8px; white-space: nowrap; }
@media (max-width: 700px) { .pfs-home { padding: 18px 14px 28px; } .pfs-tiles { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Sales history */
.pfs-hist-cols { display: grid; grid-template-columns: 72px minmax(110px,1fr) 128px 136px 112px 104px; gap: 8px; }
.pfs-hist-cols.pfs-row { height: 60px; }
.pfs-hist-time { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; font-size: 14px; }
.pfs-hist-time small, .pfs-hist-ref small, .pfs-hist-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-hist-sub { display: block; margin-top: 2px; }
.pfs-hist-ref { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.pfs-hist-ref > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-hist-total { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.pfs-disc-tag { font-style: normal; width: 22px; height: 22px; border-radius: 6px; background: #FDF1DC; color: #8A4B00; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pfs-hist-view { justify-content: center; }
.pfs-viewbtn { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; color: var(--accent-dark); font-size: 13px; font-weight: 600; }
.pfs-filterbtn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--accent-dark); font-size: 14px; font-weight: 500; }
.pfs-filterbtn:hover { background: var(--accent-bg); }
.pfs-filterbtn b { min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.pfs-hist-nosel { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.pfs-hist-pays { display: flex; flex-direction: column; gap: 2px; padding: 4px 2px; }
.pfs-hist-return { padding: 8px 10px; border-radius: 8px; background: #EEF0F4; font-size: 13px; color: var(--text-2); }
.pfs-ro { cursor: default; display: flex; align-items: center; justify-content: center; }
.pfs-ro[aria-checked="false"] { color: #8A93A1; }
.pfs-sum-row strong.neg { color: #8A4B00; }
.pfs-dialog-wide { max-width: 760px; max-height: calc(100vh - 40px); }
.pfs-dialog-grid { max-height: 52vh; }
.pfs-items-cols { display: grid; grid-template-columns: 28px minmax(0,1fr) 96px 56px 104px; gap: 8px; }
.pfs-row-gone { color: var(--muted); background: #FAFBFC; }
.pfs-muted { color: var(--muted); }
.pfs-below { color: #8A4B00; font-weight: 600; }
.pfs-facts { margin: 0; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 16px; padding: 12px 14px; border-radius: 10px; background: #F9FAFB; font-size: 14px; }
.pfs-facts dt { color: var(--muted); }
.pfs-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.pfs-warn-text { color: #8A4B00; }
.pfs-fgroups { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.pfs-fgroup { display: flex; flex-direction: column; gap: 6px; }
.pfs-fgroup > span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pfs-fgroup > span em { font-style: normal; text-transform: none; font-weight: 400; letter-spacing: 0; }
.pfs-fgroup > div { display: flex; flex-wrap: wrap; gap: 6px; }
.pfs-chip { height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; }
.pfs-chip[aria-checked="true"] { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent-dark); }
.pfs-dialog-actions-3 { display: grid; grid-template-columns: 1fr 1fr 2fr; }
.pfs-danger-btn { border-color: #F2B8B5 !important; color: #B42318 !important; }

/* ---------------------------------------------------------------- Return */
.pfs-ret-cols { display: grid; grid-template-columns: 32px minmax(0,1fr) 56px 156px 92px; gap: 8px; }
.pfs-ret-cols.pfs-row { height: 64px; cursor: pointer; }
.pfs-check { width: 26px; height: 26px; border-radius: 6px; border: 2px solid #C4CAD3; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 700; }
.pfs-check.on { border-color: var(--accent); background: var(--accent); }
.pfs-stepper { display: inline-flex; align-items: center; gap: 6px; }
.pfs-stepper button { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; color: var(--accent-dark); font-size: 20px; font-weight: 600; line-height: 1; }
.pfs-stepper button:disabled { color: #B6BCC6; background: #F7F8FA; }
.pfs-stepper strong { min-width: 28px; text-align: center; font-size: 16px; }
.pfs-ro-amt { flex-direction: column; gap: 2px; }
.pfs-ro-amt small { font-size: 12px; font-weight: 600; min-height: 14px; }
.pfs-hint { font-size: 12px; color: var(--muted); }
.pfs-tabcard .pfs-choices + .pfs-label, .pfs-tabcard .pfs-field + .pfs-label { margin-top: 8px; }
a.pfs-linkbtn { display: flex; align-items: center; justify-content: center; text-decoration: none; height: 64px; }
.pfs-input-text { text-align: left; }
.pfs-choices-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .pfs-choices-4 .pfs-choice { font-size: 14px; padding: 0 4px; }
.pfs-choices-4 .pfs-choice { white-space: normal; line-height: 1.15; min-width: 0; overflow-wrap: anywhere; }
.pfs-panel-bottom, .pfs-panel-details { min-width: 0; } .pfs-secondary > * { min-width: 0; }

/* ---------------------------------------------------------------- Stock */
.pfs-stock-cols { display: grid; gap: 8px; }
.pfs-stock-cols.pfs-row { height: 60px; }
.pfs-here { background: #F5F8FE; margin: 0 -4px; padding: 0 6px; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; }
.pfs-grid-head .pfs-here { color: var(--accent-dark); }
.pfs-q0 { color: #B42318; }
.pfs-q1 { color: #8A4B00; }
.pfs-stock-acts { justify-content: flex-end; }
.pfs-badge { min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.pfs-stock-sel { display: flex; flex-direction: column; gap: 2px; padding: 4px 2px 6px; }
.pfs-stock-sel strong { font-size: 16px; }
.pfs-stock-sel small { font-size: 13px; color: var(--muted); }
.pfs-stepper-big button { width: 52px; height: 52px; font-size: 24px; }
/* Quantity typed straight into the grid; the arrows work (owner, 2026-11-30: no popup). */
.pfs-qtybox { display: inline-flex; align-items: stretch; width: 76px; height: 44px; box-sizing: border-box; border: 1px solid var(--input); border-radius: 8px; background: #fff; overflow: hidden; }
.pfs-qtybox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(31,95,209,.2); }
.pfs-qtybox input { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; outline: 0; padding: 0 2px 0 6px; text-align: center; font: inherit; font-size: 16px; font-weight: 600; color: var(--text); background: transparent; }
.pfs-spin { flex: 0 0 24px; display: flex; flex-direction: column; border-left: 1px solid var(--input); }
.pfs-spin button { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: #F7F8FA; color: #3A4250; cursor: pointer; }
.pfs-spin button + button { border-top: 1px solid var(--input); }
.pfs-spin button:hover:not(:disabled) { background: #EEF3FC; color: var(--accent-dark); }
.pfs-spin button:disabled { color: #C4CAD3; cursor: default; }
.pfs-stepper-input { width: 52px; height: 40px; box-sizing: border-box; border: 1px solid var(--input); border-radius: 8px; text-align: center; font: inherit; font-size: 16px; font-weight: 600; color: var(--text); background: #fff; }
.pfs-stepper-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(31,95,209,.2); }
.pfs-stepper-big .pfs-stepper-input { width: 72px; height: 52px; font-size: 20px; }
.pfs-stepper-big strong { min-width: 56px; font-size: 26px; }
.pfs-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.pfs-reqlist { display: flex; flex-direction: column; gap: 10px; max-height: 56vh; overflow-y: auto; }
.pfs-req-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.pfs-req-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pfs-timeline { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pfs-timeline li { display: flex; justify-content: space-between; gap: 8px; }
.pfs-timeline li small { color: var(--muted); }
.pfs-timeline li.next { color: var(--muted); font-style: italic; }
.pfs-ro-amt { display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; padding: 4px 6px; }
.pfs-addbtn { font-size: 22px; font-weight: 600; }
.pfs-login-lead { margin: -6px 0 0; font-size: 15px; color: var(--text-2); line-height: 1.4; }
a.pfs-why-link { color: #8A4B00; text-decoration: none; border-color: #F0C98A; background: #FDF1DC; } .pfs-byhand-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .pfs-byhand-btn { border-color: #F0C98A !important; color: #8A4B00 !important; } a.pfs-pill { text-decoration: none; }

/* ---------------------------------------------------------------- Held sales */
.pfs-held.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.pfs-held.on .pfs-badge { background: #fff; color: var(--accent); }
.pfs-held:disabled { opacity: .55; }
.pfs-held-item { display: grid; grid-template-columns: minmax(0,1fr) auto 120px 44px; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pfs-held-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pfs-held-info strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-held-info small { font-size: 13px; color: var(--muted); }
.pfs-held-total { font-size: 17px; }
.pfs-held-resume { height: 44px; font-size: 15px; }
.pfs-heldnote { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.pfs-tab { position: relative; }
.pfs-tabmark { position: absolute; top: 5px; right: 6px; width: 14px; height: 14px; border-radius: 50%; font-style: normal; font-size: 10px; line-height: 14px; color: #fff; }
.pfs-tabmark-done { background: #1E8A50; }
.pfs-tabmark-done::after { content: "✓"; }
.pfs-tabmark-todo { width: 8px; height: 8px; top: 7px; right: 8px; background: #B42318; }

/* ---------------------------------------------------------------- New delivery */
.pfs-dcart-cols { display: grid; grid-template-columns: 32px minmax(0,1fr) var(--c-instore, 64px) 88px 136px 104px 44px; gap: 8px; }
.pfs-phone { display: flex; align-items: center; gap: 6px; }
.pfs-phone em { font-style: normal; color: var(--muted); font-size: 15px; }
.pfs-phone input { flex: 1; min-width: 0; }
.pfs-addr3 { display: grid; grid-template-columns: minmax(0,2fr) repeat(3, minmax(0,1fr)); gap: 8px; }
.pfs-addr3 .pfs-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-datechoice { padding: 0 6px; }
.pfs-datechoice input { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; text-align: center; }
.pfs-timebtn { display: flex; justify-content: space-between; align-items: center; text-align: left; cursor: pointer; }
.pfs-timepick { display: flex; flex-direction: column; gap: 14px; } .pfs-timepick > div { display: flex; align-items: center; justify-content: space-between; } .pfs-timepick .pfs-label { width: 60px; }
.pfs-timerow { display: flex; align-items: center; gap: 6px; }
.pfs-note { height: 120px; padding: 10px 12px; resize: none; text-align: left; }
.pfs-filedrop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; border: 2px dashed var(--btn-line); border-radius: 10px; background: #F9FAFB; color: var(--accent-dark); font-weight: 600; cursor: pointer; }
.pfs-filedrop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pfs-filedrop small { font-weight: 400; color: var(--muted); }
.pfs-filedrop.off { opacity: .5; cursor: default; }
.pfs-fileitem { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #EEF0F4; }
.pfs-fileext { width: 44px; height: 44px; border-radius: 8px; background: #EEF0F4; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-2); }

/* ---------- New delivery, board 3b ---------- */
/* step tabs: selected 52 px white, others 46 px grey; required solid, optional dashed; error red; done ✓ */
.pfs-steptab:not([aria-selected="true"]) { height: 46px; background: #E6E9EE; }
.pfs-steptab.opt { border-style: dashed; }
.pfs-steptab.err:not([aria-selected="true"]) { border-color: #E8A9A3; background: #FDF0EF; color: #B42318; }
.pfs-steptab.err[aria-selected="true"] { color: #B42318; box-shadow: inset 0 3px 0 #B42318; }
.pfs-steptab .pfs-tabmark-done { width: 16px; height: 16px; line-height: 16px; top: 4px; right: 4px; }
.pfs-tabdot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pfs-input-sm { height: 40px; font-size: 15px; }
.pfs-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pfs-label-row em { font-style: normal; font-size: 12px; color: var(--muted); }
.pfs-gap { margin-top: 8px; }
.pfs-grow { flex: 1 1 auto; }
.pfs-sources { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 6px; }
.pfs-source { height: 56px; padding: 0 2px; border-radius: 10px; border: 1px solid var(--btn-line); background: #fff; color: var(--text-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; }
.pfs-source span { font-size: 11px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-source[aria-checked="true"] { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent-dark); }
.pfs-source.bad { border-color: #E8A9A3; }
.pfs-prefixbox { display: flex; height: 40px; border: 1px solid var(--input); border-radius: 8px; overflow: hidden; background: #fff; }
.pfs-prefixbox span { flex: 0 0 auto; display: flex; align-items: center; padding: 0 10px; background: var(--head); border-right: 1px solid var(--input); color: var(--text-2); font-size: 15px; }
.pfs-prefixbox input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0 10px; font-size: 15px; font-family: inherit; outline: none; background: transparent; }
.pfs-prefixbox.pfs-suffix input { text-align: right; }
.pfs-prefixbox.pfs-suffix span { border-right: 0; border-left: 1px solid var(--input); }
.pfs-prefixbox:focus-within { border-color: var(--accent); }
.pfs-prefixbox.bad { border: 2px solid var(--bad-dot); }
.pfs-custcard { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid #A6D8BC; background: #EAF7EF; }
.pfs-custcard strong { color: #14663A; font-size: 14px; }
.pfs-custcard small { font-size: 12px; color: var(--text-2); }
.pfs-custavatar { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #1E8A50; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.pfs-saved { align-items: center; }
.pfs-saved .pfs-chip { height: 40px; }
.pfs-chip[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent-dark); }
.pfs-courgrid { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; align-items: start; }
.pfs-bigchoice { min-height: 64px; }
.pfs-ro-amt small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.pfs-tabcard .pfs-filedrop { min-height: 52px; }
.pfs-smallbtn { height: 36px; padding: 0 10px; font-size: 13px; }
.pfs-fileitem { grid-template-columns: 44px minmax(0,1fr) auto; }
.pfs-nextbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.pfs-nextbtn small { font-size: 12px; font-weight: 500; opacity: .85; }
.pfs-holdpanel { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 8px; align-items: center; }
.pfs-holdpanel label { display: none; }
.pfs-holdbtns { display: flex; gap: 6px; height: 40px; }
.pfs-holdbtns .pfs-holdgo { min-height: 0; height: 40px; font-size: 14px; padding: 0 12px; white-space: nowrap; }
.pfs-holdbtns .pfs-secondary-btn { height: 40px; }
.pfs-timepick2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pfs-timebox { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pfs-timecols { display: flex; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--input); border-radius: 10px; }
.pfs-timecols.bad { border: 2px solid var(--bad-dot); }
.pfs-timecol { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pfs-timecol button { width: 64px; height: 48px; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; font-size: 16px; color: var(--text-2); }
.pfs-timecol input { width: 72px; height: 56px; text-align: center; font-size: 26px; font-weight: 600; border: 1px solid var(--input); border-radius: 8px; font-family: inherit; }
.pfs-timecols b { font-size: 24px; }
.pfs-errslot { min-height: 18px; text-align: center; }
.pfs-miss { color: #8A4B00 !important; }
.pfs-instrlist { display: flex; flex-direction: column; gap: 4px; }
.pfs-instr { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 10px; border: 1px solid var(--btn-line); border-radius: 10px; font-size: 15px; cursor: pointer; }
.pfs-instr input { width: 20px; height: 20px; }
.pfs-addinstr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.pfs-addinstr .pfs-secondary-btn { height: 40px; }
.pfs-smalllink { font-size: 12px; color: var(--accent); text-decoration: none; }
.pfs-nextbtn small { color: rgba(255,255,255,.85); opacity: 1; }
.pfs-source { height: 48px; gap: 2px; }
.pfs-custcard { padding: 5px 10px; }
.pfs-custcard .pfs-hist-ref { min-width: 0; }
.pfs-custcard small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pfs-custavatar { flex-basis: 28px; height: 28px; font-size: 13px; }
.pfs-addr3 .pfs-field { margin-top: 0 !important; }
.pfs-label-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.pfs-label-row > em, .pfs-label-row > a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.pfs-saved { gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.pfs-saved .pfs-chip { height: 32px; padding: 0 10px; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pfs-tabcard:has(.pfs-saved) { gap: 4px; }
.pfs-tabcard:has(.pfs-sources) { gap: 4px; padding-top: 8px; padding-bottom: 8px; }
.pfs-sources .pfs-source { height: 44px; }
.pfs-custcard { padding: 3px 8px; gap: 8px; }
.pfs-custcard .pfs-hist-ref { flex-direction: row; align-items: baseline; gap: 6px; display: flex; overflow: hidden; }
.pfs-custcard strong { white-space: nowrap; font-size: 13px; }
.pfs-custavatar { flex-basis: 24px; height: 24px; font-size: 12px; }

/* ---------- New sale, board 3: discount, filters, held, hold note, methods ---------- */
.pfs-dialog-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pfs-dialog-titles small { font-size: 14px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-dcbox { display: flex; align-items: center; height: 56px; border: 1px solid var(--input); border-radius: 8px; overflow: hidden; }
.pfs-dcbox.bad { border: 2px solid var(--bad-dot); }
.pfs-dcbox input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 12px; font-size: 24px; font-weight: 600; font-family: inherit; }
.pfs-dcbox span { padding: 0 14px; font-size: 20px; color: var(--muted); }
.pfs-chip44 { height: 44px !important; font-size: 14px !important; }
.pfs-dcrows { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: var(--head); border: 1px solid #EEF0F4; }
.pfs-dcrows div { display: flex; justify-content: space-between; height: 24px; align-items: center; font-size: 14px; color: var(--text-2); }
.pfs-dcrows .pfs-dcnew { font-weight: 600; color: var(--text); }
.pfs-dcrows .pfs-dcnew.below { color: #8A4B00; }
.pfs-dcwarn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #FDF1DC; border: 1px solid #F0C98A; color: #8A4B00; font-size: 14px; font-weight: 600; }
.pfs-dcactions { display: flex; gap: 10px; }
.pfs-dcactions .pfs-secondary-btn { flex: 0 0 auto; min-height: 56px; padding: 0 16px; }
.pfs-dcactions .pfs-primary { flex: 1 1 0; min-height: 56px; }
.pfs-primary-amber { background: #B54708 !important; }
.pfs-dialog-filters { max-width: 680px; }
.pfs-fhint { font-size: 13px; font-weight: 400; }
.pfs-fgroups { display: flex; flex-direction: column; gap: 14px; }
.pfs-fgroup { display: flex; flex-direction: column; gap: 6px; }
.pfs-fgtitle { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pfs-fopts { display: flex; flex-wrap: wrap; gap: 6px; }
.pfs-fopt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; border: 1px solid var(--btn-line); background: #fff; color: var(--text); }
.pfs-fopt i { width: 18px; height: 18px; box-sizing: border-box; border-radius: 4px; border: 2px solid #9AA1AD; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; }
.pfs-fopt[aria-checked="true"] { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent-dark); }
.pfs-fopt[aria-checked="true"] i { background: var(--accent); border: 0; }
.pfs-factions { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 8px; }
.pfs-factions button { min-height: 56px; }
.pfs-filters.on { background: var(--accent-bg); color: var(--accent-dark); }
.pfs-fcount { min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pfs-fclear { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--accent-bg); color: var(--accent-dark); font-size: 20px; }
.pfs-badge0 { background: #EEF0F4 !important; color: var(--muted) !important; }
.pfs-held .pfs-badge { background: #B4461B; color: #fff; }
.pfs-held-until { font-size: 12px; font-weight: 500; color: #11643A; }
.pfs-held-until.soon { color: #8A4B00; }
.pfs-held-until.gone { color: var(--muted); }
.pfs-held-item { grid-template-columns: minmax(0,1fr) auto auto auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.pfs-release { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid #E8C4C4; background: #fff; color: #8A1F1F; font-size: 13px; font-weight: 500; }
.pfs-holdpanel2 { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: var(--accent-bg); }
.pfs-holdpanel2 label { font-size: 13px; color: var(--accent-dark); font-weight: 500; }
.pfs-holdpanel2 input { height: 44px; padding: 0 12px; border: 1px solid var(--input); border-radius: 8px; font-size: 15px; font-family: inherit; }
.pfs-holdpanel2 .pfs-holdrow { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.pfs-holdpanel2 .pfs-holdrow button { min-height: 48px; height: 48px; font-size: 14px; }
.pfs-holdpanel2 .pfs-holdgo2 { border: 0; border-radius: 8px; background: var(--accent-dark); color: #fff; font-weight: 600; }
.pfs-secondary:has(.pfs-holdpanel2) { height: auto; display: block; }
.pfs-panel-bottom:has(.pfs-holdpanel2) .pfs-linkrow { display: none; }
.pfs-method { height: 56px; padding: 4px 8px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--btn-line); background: #fff; color: var(--text); font-weight: 500; }
.pfs-method span { font-size: 12px; line-height: 1; }
.pfs-method[aria-checked="true"] { font-weight: 600; border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent-dark); }
.pfs-ncopt { min-height: 44px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; color: var(--text); }
.pfs-ncopt b { font-size: 14px; font-weight: 600; } .pfs-ncopt small { font-size: 12px; }
.pfs-ncopt[aria-checked="true"] { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent-dark); }
.pfs-disctag { display: block; font-size: 12px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.pfs-disctag.below { color: #B42318; }
.pfs-iconbtn.on { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent-dark); }
.pfs-iconbtn.below { border: 2px solid #B42318; background: #FDECEC; color: #8A1F1F; }
.pfs-sumcell { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.pfs-dialog-head .pfs-fhint { font-size: 13px; font-weight: 400; white-space: nowrap; }
.pfs-dialog-head .pfs-topay { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); }
.pfs-dialog-head .pfs-topay + .pfs-close { margin-left: 12px; }
.pfs-pay-ok { position: relative; padding-left: 64px !important; min-height: 64px; justify-content: center; }
.pfs-pay-ok::before { content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #11643A; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.pfs-bigline-amber { background: #FDF1DC; color: #6B3A00; border-radius: 12px; padding: 14px 16px; }
.pfs-sum-row.pfs-good strong { color: #11643A; }
.pfs-sum-row.pfs-wait strong { color: #8A4B00; }
.pfs-sum-row.pfs-wait { font-weight: 600; }
.pfs-tab { padding: 0 2px; }
.pfs-dtrack { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; align-items: start; }
.pfs-dtrack .pfs-field + .pfs-field { margin-top: 0 !important; }
.pfs-testbtn { height: 40px; min-width: 84px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; color: var(--accent-dark); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.pfs-testbtn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-bg); }
.pfs-testbtn:disabled { color: var(--muted); }
.pfs-spinner-sm { width: 14px !important; height: 14px !important; border-width: 2px !important; }

/* ---------- Sales history, board 6 ---------- */
.pfs-hist-cols { grid-template-columns: 60px minmax(88px,1fr) 128px 112px 112px 104px; }
.pfs-hist-cols.pfs-row { height: 56px; }
.pfs-hist-total .pfs-iconbtn { width: 40px; height: 40px; flex: 0 0 40px; }
.pfs-disc-gap { flex: 0 0 40px; }
.pfs-rowbtn-dlv { border-color: #F0C9A8; background: #FFF6EE; color: #8A3B12; }
.pfs-state-bad { background: #FBE4E4; color: #8A1F1F; }
/* Read-only like the edit view: chosen option blue, the others pale grey (ui-layout-rules › Read-only views) */
.pfs-ro[aria-checked="false"] { background: #F7F8FA; border: 1px solid #E3E6EB; color: #9AA1AD; }
.pfs-ro[aria-checked="true"] { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent-dark); }
.pfs-method.pfs-ro, .pfs-source.pfs-ro { cursor: default; }
.pfs-rofield { height: 40px; box-sizing: border-box; display: flex; align-items: center; gap: 4px; padding: 0 12px; border: 1px solid #E3E6EB; border-radius: 8px; background: #F7F8FA; color: var(--text); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pfs-rofield-num { justify-content: flex-end; font-weight: 600; }
.pfs-rofield-note { height: auto; min-height: 64px; align-items: flex-start; padding-top: 10px; white-space: normal; }
.pfs-linknote { display: flex; align-items: center; justify-content: center; height: 40px; font-size: 12px; color: var(--muted); }
.pfs-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pfs-timeline li { display: flex; gap: 12px; align-items: flex-start; min-height: 40px; font-size: 14px; }
.pfs-timeline li > span { display: flex; flex-direction: column; gap: 2px; }
.pfs-timeline li small { font-size: 12px; color: var(--muted); }
.pfs-timeline i { flex: 0 0 12px; height: 12px; margin-top: 4px; border-radius: 50%; box-sizing: border-box; }
.pfs-tl-done i { background: #1E8A50; }
.pfs-tl-now i { background: #fff; border: 3px solid var(--accent); }
.pfs-tl-now > span > span { font-weight: 600; }
.pfs-tl-bad i { background: #B42318; }
.pfs-tl-bad > span > span { color: #8A1F1F; font-weight: 600; }
.pfs-tl-next i { background: #fff; border: 2px solid #C4CAD3; }
.pfs-tl-next > span > span { color: var(--muted); }
.pfs-dsgrid { border: 1px solid #EEF0F4; border-radius: 10px; overflow: hidden; }
.pfs-dscols { display: grid; grid-template-columns: minmax(0,1fr) 96px 140px 140px; gap: 8px; align-items: center; min-height: 48px; padding: 4px 12px; border-bottom: 1px solid #EEF0F4; font-size: 14px; }
.pfs-dscols.bad { background: #FFFAF0; }
.pfs-dshead { min-height: 36px; background: var(--head); font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pfs-dstotal { text-align: right; font-size: 14px; font-weight: 600; }
.pfs-good-text { color: #11643A; }
.pfs-accent-text { color: var(--accent-dark); font-weight: 600; }
.pfs-dim-dark { background: rgba(27,31,39,.6); }
.pfs-dialog-viewer { max-width: 760px; }
.pfs-viewer { position: relative; height: 520px; max-height: calc(100vh - 220px); border-radius: 12px; background: #1B1F27; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pfs-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pfs-viewer embed { width: 100%; height: 100%; background: #fff; }
.pfs-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--text); font-size: 22px; }
.pfs-viewer-nav.prev { left: 12px; } .pfs-viewer-nav.next { right: 12px; }
.pfs-timeline li { justify-content: flex-start; text-align: left; }
.pfs-timeline li > span { flex: 1; align-items: flex-start; }

/* ---------- Deliver a paid sale, board 3c ---------- */
.pfs-searchslot { flex: 0 0 auto; height: 52px; }
.pfs-qty-ro { min-width: 28px; text-align: center; font-size: 15px; font-weight: 600; }
.pfs-goodspaid { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 8px; align-items: center; }
.pfs-goodspaid-label { display: flex; flex-direction: column; font-size: 12px; color: #3A4250; line-height: 1.3; }
.pfs-goodspaid-label strong { font-weight: 600; color: #11643A; }
.pfs-method.pfs-method-sm { height: 44px; min-height: 44px; flex-direction: row; gap: 6px; font-size: 13px; }
.pfs-freenote { padding: 10px 12px; border-radius: 10px; background: #E3F2E9; color: #11643A; font-size: 14px; font-weight: 600; }
.pfs-span2 { grid-column: 1 / -1; }
/* Courier popup (decision 54): one row per courier, current one disabled */
.pfs-courlist { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.pfs-courrow { min-height: 56px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--btn-line); background: #fff; color: var(--text); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; font-family: inherit; }
.pfs-courrow strong { font-size: 15px; font-weight: 600; }
.pfs-courrow small { font-size: 13px; color: var(--muted); }
.pfs-courrow[aria-checked="true"] { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent-dark); }
.pfs-courrow:disabled { background: #F7F8FA; border-color: #E3E6EB; color: #9AA1AD; cursor: default; }
.pfs-courrow:disabled small { color: #9AA1AD; }
.pfs-strong { font-weight: 600; }
.pfs-half { max-width: 50%; }
.pfs-dialog-actions-12 { display: grid; grid-template-columns: 1fr 2fr; }
.pfs-dialog-actions-12 > * { min-height: 64px; }
.pfs-courfield { display: flex; gap: 8px; min-width: 0; }
.pfs-courfield .pfs-rofield { flex: 1 1 auto; min-width: 0; }
.pfs-rofield { height: 44px; box-sizing: border-box; display: flex; align-items: center; padding: 0 12px; border: 1px solid #E3E6EB; border-radius: 8px; background: #F7F8FA; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-rofield.pfs-warn { color: #8A4B00; font-weight: 600; }
.pfs-courbtn { flex: 0 0 auto; height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid #9DB8EC; background: #F5F8FE; color: var(--accent-dark); font-size: 14px; font-weight: 600; font-family: inherit; }
.pfs-hist-by { min-width: 0; font-size: 14px; color: #3A4250; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-choices-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pfs-choices-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pfs-choices-4 .pfs-choice, .pfs-choices-5 .pfs-choice { min-height: 44px; font-size: 14px; padding: 0 4px; }
.pfs-movebtn { border-color: #F0C9A8; color: #8A3B12; font-weight: 600; }
.pfs-primary-danger { background: #B42318 !important; }
.pfs-dialog-ds { max-width: 640px; }
.pfs-struck { text-decoration: line-through; }
.pfs-ellipsis { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Stock (board 6b) */
.pfs-stock-acts { display: flex; gap: 6px; justify-content: center; }
.pfs-addbtn { min-height: 40px; height: 40px; padding: 0 10px; font-weight: 600; color: var(--accent-dark); }
.pfs-move-cols { display: grid; grid-template-columns: 112px minmax(0,1fr) 120px 64px 76px; gap: 8px; align-items: center; }
.pfs-move-cols.pfs-row { height: 44px; }
.pfs-kv { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px 16px; margin: 0; font-size: 15px; }
.pfs-kv dt { color: var(--muted); }
.pfs-kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.pfs-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #EEF0F4; color: #3A4250; font-size: 13px; font-weight: 600; }
.pfs-pill-warn { background: #FDF1DC; color: #8A4B00; }
.pfs-bad-text { color: #B42318; }
.pfs-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.pfs-menu-badged { position: relative; }
.pfs-menu-badge { position: absolute; top: 6px; right: 14px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: #C4561A; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
/* Requests (board 6c) */
.pfs-req-cols { display: grid; grid-template-columns: 56px 72px minmax(0,1fr) 112px 112px 44px 132px; gap: 8px; align-items: center; }
.pfs-req-cols.pfs-row { height: 60px; }
.pfs-dirmark { width: 64px; height: 40px; padding: 0; border-radius: 8px; font-size: 12px; font-weight: 700; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; }
.pfs-dirmark.out { background: #FBE4D6; color: #8A3B12; border: 1px solid #F0C9A8; }
.pfs-dirmark.in { background: #E6EEFB; color: #173B7A; border: 1px solid #C9D8F5; }
.pfs-herename { color: var(--accent-dark); font-weight: 600; }
.pfs-actbtn { min-height: 40px; padding: 0 14px; border-radius: 8px; border: 0; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; font-family: inherit; }
.pfs-actbtn:disabled { opacity: .6; }
.pfs-reqtl li.done { color: var(--text); }
.pfs-reqtl li.next { color: var(--muted); }
.pfs-recv-cols { display: grid; grid-template-columns: minmax(0,1fr) 64px 152px; gap: 8px; align-items: center; }
.pfs-recv-cols.pfs-row { height: 56px; }
.pfs-recv-cols.ok { background: #F3FAF5; }
.pfs-search-sm { height: 48px; }
.pfs-floatwrap { position: relative; }
.pfs-float { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: #fff; border: 1px solid var(--btn-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(27,31,39,.16); max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; }
.pfs-floatrow { min-height: 52px; padding: 6px 12px; border: 0; border-bottom: 1px solid #EEF0F4; background: #fff; text-align: left; display: flex; flex-direction: column; gap: 2px; font-family: inherit; }
.pfs-floatrow:hover { background: var(--accent-bg); }
.pfs-floatrow small { color: var(--muted); font-size: 12px; }
.pfs-nowrap { white-space: nowrap; padding-right: 10px; font-size: 13px; }
.pfs-stock-acts .pfs-addbtn { font-size: 14px; width: auto; min-width: 0; }
.pfs-req-cols { grid-template-columns: 52px 68px minmax(0,1fr) 92px 92px 36px 120px; }
.pfs-req-cols .pfs-state { white-space: normal; line-height: 1.25; }
/* Every tab takes one of the 7 places on every screen (owner, 2026-11-23); a long label wraps to two lines. */
.pfs-tab span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: center; overflow-wrap: anywhere; }
.pfs-stock-acts .pfs-addbtn { white-space: nowrap; }
.pfs-tab { padding: 0 2px; } .pfs-tab span { letter-spacing: -0.2px; }
.pfs-tab span { font-size: 10.5px; overflow-wrap: normal; }
.pfs-tab[aria-selected="true"] span { font-weight: 600; }
.pfs-tab span { font-size: 10px; letter-spacing: -0.3px; }
/* Thin line under Home in the till menu (owner, 2026-11-23). */
.pfs-menu-line { flex: 0 0 auto; height: 1px; margin: 2px 8px; background: var(--border, #DDE1E7); }
/* Stock › Description (canvas, owner 2026-11-23): property list + one row of chips. */
.pfs-desc { margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 12px; }
.pfs-desc dt, .pfs-desc dd { min-height: 32px; display: flex; align-items: center; border-bottom: 1px solid #EEF0F4; margin: 0; }
.pfs-desc dt { font-size: 13px; color: var(--text-2); }
.pfs-desc dd { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.pfs-desc-chips { display: flex; flex-wrap: nowrap; gap: 8px; padding-top: 4px; }
.pfs-dchip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; box-sizing: border-box; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; background: #F7F8FA; color: var(--text); border: 1px solid #DDE1E7; }
.pfs-dchip.warn { background: #FDF1DC; color: #8A4B00; border-color: #F0D29A; }
/* Home pages (home rules H1–H6, owner 2026-11-23): title bar with scope chips, Needs action · numbers · one list. */
.pfs-office { display: flex; flex-direction: column; }
.pfs-home2 { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pfs-home2 > .pfs-titlebar { flex: 0 0 64px; }
.pfs-scope { display: flex; gap: 6px; }
.pfs-scope button { height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; white-space: nowrap; border: 1px solid #D5D9E0; background: #fff; color: var(--text); cursor: pointer; }
.pfs-scope button[aria-checked="true"] { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent-dark); font-weight: 600; }
.pfs-home-band { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 0; }
.pfs-home-list { flex: 1 1 0; min-height: 0; padding-bottom: 16px; }
.pfs-home-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pfs-home-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pfs-home-card { min-height: 72px; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; text-decoration: none; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--text); border: 1px solid #DDE1E7; }
.pfs-home-card .pfs-home-icon { flex: 0 0 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.pfs-home-cardtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pfs-home-cardtext strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-home-cardtext small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-home-count { flex: 0 0 auto; font-size: 28px; font-weight: 700; }
.pfs-home-card.orange { border-color: #F0C9A8; box-shadow: inset 4px 0 0 #B4461B; } .pfs-home-card.orange .pfs-home-icon { background: #FFF1E8; color: #B4461B; } .pfs-home-card.orange .pfs-home-count { color: #B4461B; }
.pfs-home-card.amber { border-color: #E9B871; box-shadow: inset 4px 0 0 #8A4B00; } .pfs-home-card.amber .pfs-home-icon { background: #FDF1DC; color: #8A4B00; } .pfs-home-card.amber .pfs-home-count { color: #8A4B00; }
.pfs-home-card.red { border-color: #F2B8B5; box-shadow: inset 4px 0 0 #B42318; } .pfs-home-card.red .pfs-home-icon { background: #FDF0EF; color: #B42318; } .pfs-home-card.red .pfs-home-count { color: #B42318; }
.pfs-home-card.zero { background: #F9FAFB; border-color: #E3E6EB; color: #8A919C; } .pfs-home-card.zero .pfs-home-icon { background: #EEF0F4; color: #9AA1AD; } .pfs-home-card.zero .pfs-home-count { color: #C4CAD3; } .pfs-home-card.zero small { color: #9AA1AD; }
.pfs-home-tile { height: 92px; box-sizing: border-box; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid #DDE1E7; text-decoration: none; color: var(--text); display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.pfs-home-tile span { font-size: 13px; color: var(--muted); }
.pfs-home-tile strong { font-size: 26px; font-weight: 600; white-space: nowrap; }
.pfs-home-tile small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-home-listhead { display: flex; align-items: center; justify-content: space-between; }
.pfs-home-listhead a { font-size: 13px; font-weight: 500; }
.pfs-home-cols { display: grid; grid-template-columns: 120px 100px minmax(0, 1fr) 160px 160px 150px; gap: 8px; align-items: center; padding: 0 16px; }
.pfs-home-rowlink { height: 56px; border-bottom: 1px solid #EEF0F4; text-decoration: none; color: var(--text); font-size: 14px; }
.pfs-home-rowlink:hover { background: #F5F8FE; }
.pfs-dpill { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #EEF0F4; color: #3A4250; white-space: nowrap; }
.pfs-dpill.info { background: #EEF3FC; color: #173B7A; } .pfs-dpill.way { background: #FFF1E8; color: #8A3B12; } .pfs-dpill.ok { background: #E3F2E9; color: #11643A; }
.pfs-dpill.warn { background: #FDF1DC; color: #8A4B00; } .pfs-dpill.bad { background: #FDF0EF; color: #B42318; }
.pfs-grid-empty { padding: 24px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- reconnect banner (App.razor; Blazor adds components-reconnect-* classes) ---------- */
/* full-screen and see-through: clicks wait until the screen is back, so nothing is lost on a dead connection */
.pfs-reconnect { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(244,246,249,.45); justify-content: center; align-items: flex-start; padding-top: 12px; }
.pfs-reconnect-pill { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-dot); font-size: 14px; font-weight: 500; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.pfs-reconnect.components-reconnect-show, .pfs-reconnect.components-reconnect-retrying, .pfs-reconnect.components-reconnect-failed { display: flex; }
.pfs-reconnect-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn-dot); animation: pfs-pulse 1s ease-in-out infinite; }
@keyframes pfs-pulse { 50% { opacity: .3; } }

/* ---------- screen sizes (owner, 2026-11-24; canvas Rules · 0c) ----------
   S1 below 1680 × 1000: 100 %. S2 from 1680 × 1000: 125 %. S3 from 2400 × 1300: 150 %.
   The whole page is zoomed, so the layout stays the same and lays out like a 1536 × 864-960 or 1707 × 960 screen.
   Heights that use the window height divide by the zoom, so the page still fits exactly. */
@media (min-width: 1680px) and (min-height: 1000px) { :root { --z: 1.25; } }
@media (min-width: 2400px) and (min-height: 1300px) { :root { --z: 1.5; } }
html { zoom: var(--z); }
.pfs-app { height: calc(100vh / var(--z)); }
.pfs-login { min-height: calc(100vh / var(--z)); }
.pfs-dialog-wide { max-height: calc(100vh / var(--z) - 40px); }
.pfs-viewer { max-height: calc(100vh / var(--z) - 220px); }
/* S4: ultra-wide screens stop at 2200 px and are centred. */
.pfs-app { max-width: 2200px; margin: 0 auto; }
/* S5: number columns grow when the grid has room, so their headings are not cut (Armenian is the longest). */
.pfs-grid { container-type: inline-size; --c-place: 92px; --c-total: 64px; --c-instore: 56px; }
@container (min-width: 800px) {
  .pfs-stock-cols { --c-place: 100px; --c-total: 84px; }
  .pfs-cart-cols, .pfs-dcart-cols { --c-instore: 100px; --c-price: 112px; }
  .pfs-hist-cols { column-gap: 20px; }
}

/* ---------- keyboard shortcuts (canvas Rules · 0d) ---------- */
.pfs-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 4px; border: 1px solid #C4CAD3; border-bottom-width: 2px; background: #fff; color: #5B6472; font: 600 10px/1 Inter, system-ui, sans-serif; flex: 0 0 auto; }
.pfs-keys-off .pfs-kbd:not(.pfs-kbd-show), .pfs-keys-off .pfs-mainaction .pfs-primary::after { display: none; }
.pfs-menu-item { position: relative; }
.pfs-kbd-menu { position: absolute; left: 4px; top: 4px; }
.pfs-kbd-search { margin-left: auto; }
.pfs-search .pfs-kbd-search + .pfs-search-sep { margin-left: 0; }
.pfs-mainaction .pfs-primary { position: relative; }
.pfs-mainaction .pfs-primary::after { content: "F9"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); min-width: 26px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 5px; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.14); color: #fff; font: 600 11px/18px Inter, system-ui, sans-serif; text-align: center; }
.pfs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.pfs-row[data-row]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pfs-row-del { background: var(--bad-bg) !important; }
.pfs-keys-dlg { max-width: 640px; }
.pfs-keys-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.pfs-keys-group h3 { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pfs-keys-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; font-size: 14px; }
.pfs-keys-row .pfs-kbd { min-width: 28px; height: 22px; font-size: 11px; padding: 0 6px; }
.pfs-keys-switch { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--bg); cursor: pointer; }
.pfs-keys-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pfs-switch { position: relative; width: 48px; height: 28px; border-radius: 14px; background: #C4CAD3; flex: 0 0 auto; transition: background .15s; }
.pfs-switch i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.pfs-keys-switch input:checked + .pfs-switch { background: var(--accent); }
.pfs-keys-switch input:checked + .pfs-switch i { left: 23px; }
.pfs-keys-switch input:focus-visible + .pfs-switch { outline: 2px solid var(--accent); outline-offset: 2px; }
.pfs-keys-switch-text { display: flex; flex-direction: column; gap: 2px; }
.pfs-keys-switch-text b { font-size: 15px; font-weight: 500; }
.pfs-keys-switch-text small { font-size: 12px; color: var(--muted); }

/* Choose dates popup (canvas 6d): two months, a day or a range; above the Filters popup. */
.pfs-dim-top { z-index: 30; }
.pfs-dp { max-width: 680px; }
.pfs-dp-sel { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-dark); }
.pfs-dp-sel span { font-size: 13px; }
.pfs-dp-sel strong { font-size: 17px; }
.pfs-dp-sel small { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.pfs-dp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pfs-dp-mhead { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; text-align: center; font-weight: 600; margin-bottom: 6px; }
.pfs-dp-nav { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; font-size: 20px; color: var(--text); }
.pfs-dp-nav:disabled { opacity: .35; cursor: not-allowed; }
.pfs-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pfs-dp-wd { font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0; }
.pfs-dp-day { height: 40px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; color: var(--text); font-family: inherit; }
.pfs-dp-day:hover:not(:disabled) { background: #EEF0F4; }
.pfs-dp-day:disabled { color: #C4CAD3; cursor: not-allowed; }
.pfs-dp-today { box-shadow: inset 0 0 0 1px var(--accent); }
.pfs-dp-in { background: var(--accent-bg); color: var(--accent-dark); border-radius: 0; }
.pfs-dp-end, .pfs-dp-end:hover:not(:disabled) { background: var(--accent); color: #fff; font-weight: 600; }

/* New delivery · international phone (owner, 2026-11-25): country button with a CSS flag; the list is its own popup. */
.pfs-phonebox .pfs-ccbtn { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; padding: 0 8px; border: 0; border-right: 1px solid var(--input); background: var(--head); color: var(--text-2); font-size: 14px; font-family: inherit; }
.pfs-phonebox .pfs-ccbtn span { background: none; border: 0; padding: 0; }
.pfs-phonebox .pfs-ccbtn .pfs-flag { border-right: 0; }
.pfs-flag { flex: 0 0 auto; display: inline-block; width: 24px; height: 16px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(27,31,39,.18); }
.pfs-ccdlg { max-width: 420px; }
.pfs-cclist { max-height: 420px; overflow-y: auto; border: 1px solid #EEF0F4; border-radius: 10px; }
.pfs-cclist button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 0; border-bottom: 1px solid #EEF0F4; background: #fff; font-size: 14px; font-family: inherit; color: var(--text); text-align: left; }
.pfs-cclist button[aria-selected="true"] { background: var(--accent-bg); color: var(--accent-dark); font-weight: 600; }
.pfs-cclist b { flex: 0 0 26px; font-size: 11px; color: var(--muted); }
.pfs-cclist span:not(.pfs-flag) { flex: 1; }
.pfs-cclist em { font-style: normal; color: var(--muted); }

/* New delivery · To courier: Cash · Non-cash · Mixed, compact (44 px) so the Payment tab does not scroll. */
.pfs-cpay .pfs-choice { min-height: 42px; height: 42px; padding: 2px 6px; font-size: 14px; }
.pfs-cpay .pfs-choice small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pfs-cpmixed { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; align-items: center; }
.pfs-cpmixed .pfs-cpcash { height: 42px; border: 2px solid var(--accent); }
.pfs-cpmixed .pfs-cpcash input { text-align: right; font-weight: 600; }
.pfs-paykind .pfs-bigchoice { min-height: 44px; height: 44px; padding: 2px 6px; }

/* New sale · excise marks on a cart line (owner, 2026-11-25) */
.pfs-emark { color: var(--ok, #11643A); font-weight: 600; }
.pfs-emark-miss { color: #8A4B00; }

/* A4 documents (owner, 2026-11-26): invoice / delivery order / transfer document, printed through the browser. */
.pfs-a4-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 210mm; margin: 12px auto; padding: 0 4mm; font-size: 15px; }
.pfs-a4-bar .pfs-primary { min-height: 44px; padding: 0 24px; }
.pfs-a4 { box-sizing: border-box; width: 210mm; min-height: 297mm; margin: 0 auto 24px; padding: 16mm 14mm; background: #fff; color: #000; font-size: 11pt; box-shadow: 0 1px 6px rgba(0,0,0,.15); }
.pfs-a4 header { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 12px; }
.pfs-a4 header div { display: flex; flex-direction: column; gap: 2px; }
.pfs-a4 header strong { font-size: 14pt; }
.pfs-a4-title { text-align: right; }
.pfs-a4-title h1 { margin: 0; font-size: 16pt; }
.pfs-a4-kv { display: grid; grid-template-columns: 38mm 1fr; gap: 4px 12px; margin: 0 0 12px; }
.pfs-a4-kv dt { color: #444; }
.pfs-a4-kv dd { margin: 0; }
.pfs-a4 table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.pfs-a4 th, .pfs-a4 td { border: 1px solid #000; padding: 4px 6px; text-align: left; vertical-align: top; }
.pfs-a4 th { background: #eee; font-weight: 600; }
.pfs-a4 .n { text-align: right; white-space: nowrap; }
.pfs-a4-totals { display: grid; grid-template-columns: 1fr 40mm; gap: 3px 12px; width: 90mm; margin: 0 0 0 auto; }
.pfs-a4-totals dd { margin: 0; text-align: right; }
.pfs-a4-totals .b { font-weight: 700; font-size: 12pt; }
.pfs-a4 footer { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24mm; }
.pfs-a4 footer.pfs-a4-sign3 { grid-template-columns: 1fr 1fr 1fr; }
.pfs-a4 footer div { display: flex; flex-direction: column; gap: 14mm; }
.pfs-a4 footer i { border-bottom: 1px solid #000; }
.pfs-a4-note { margin-top: 10mm; font-size: 9pt; color: #444; }
.pfs-printrow { display: flex; gap: 8px; }
.pfs-printrow > * { flex: 1 1 0; }
@media print {
  @page { size: A4 portrait; margin: 0; }
  html { zoom: 1 !important; }
  body { background: #fff !important; }
  .pfs-a4-bar, #components-reconnect-modal, #blazor-error-ui { display: none !important; }
  .pfs-a4 { box-shadow: none; margin: 0; }
}
.pfs-printlist { display: flex; flex-direction: column; gap: 8px; }
.pfs-printlist > * { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 8px 12px; border: 1px solid var(--btn-line); border-radius: 10px; background: #fff; color: var(--text); text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.pfs-printlist > *:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-bg); }
.pfs-printlist strong { font-size: 15px; }
.pfs-printlist small { font-size: 12px; color: var(--muted); }
.pfs-a4-bar .pfs-primary { width: auto; flex: 0 0 auto; }
/* ---------- Cash desk (owner, 2026-11-29) ---------- */
.pfs-cd-cols { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 200px) 140px; gap: 12px; align-items: center; }
.pfs-grid-body { flex: 1 1 auto; overflow: auto; }
.pfs-cd-day { padding: 10px 16px 6px; background: var(--head); border-bottom: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pfs-cd-name { display: flex; flex-direction: column; min-width: 0; }
.pfs-cd-name strong, .pfs-cd-name small, .pfs-cd-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfs-cd-name strong { font-weight: 500; }
.pfs-cd-grey { color: var(--faint); }
.pfs-cd-grey .pfs-strong { color: var(--faint); font-weight: 500; }
.pfs-cd-fresh { background: var(--ok-bg); }
.pfs-strong.neg { color: var(--bad); }
.pfs-cd-foot { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--head); font-weight: 600; }
.pfs-cd-foot strong { font-size: 20px; }
.pfs-devtiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pfs-devtiles button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 64px; padding: 8px 2px; border: 1px solid var(--btn-line); border-radius: 10px; background: var(--surface); color: var(--text-2); font-size: 12px; }
.pfs-devtiles button[aria-checked="true"] { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent-dark); font-weight: 600; }
.pfs-devicon { position: relative; display: inline-flex; }
.pfs-devdot { position: absolute; right: -3px; top: -2px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--surface); background: var(--faint); }
.pfs-devdot-ok { background: var(--ok-dot); } .pfs-devdot-error { background: var(--bad-dot); } .pfs-devdot-checking { background: var(--warn-dot); }
.pfs-devresult { display: flex; align-items: center; gap: 10px; }
.pfs-devcheck { flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid var(--btn-line); border-radius: 10px; background: var(--surface); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; }
.pfs-devcheck:hover { background: var(--accent-bg); }
.pfs-devres { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pfs-devres i { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; background: var(--line-2); color: var(--muted); }
.pfs-devres span { display: flex; flex-direction: column; min-width: 0; }
.pfs-devres small { overflow: hidden; text-overflow: ellipsis; }
.pfs-devres-ok i { background: var(--ok-bg); color: var(--ok); } .pfs-devres-error i { background: var(--bad-bg); color: var(--bad); } .pfs-devres-checking i { background: var(--warn-bg); color: var(--warn); }
.pfs-switchrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.pfs-switchrow > span { display: flex; flex-direction: column; gap: 2px; }
.pfs-switch { flex: 0 0 auto; width: 48px; height: 28px; border: 0; border-radius: 999px; background: var(--input); position: relative; }
.pfs-switch i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.pfs-switch[aria-checked="true"] { background: var(--accent); }
.pfs-switch[aria-checked="true"] i { left: 23px; }
.pfs-pickamt { display: flex; gap: 8px; }
.pfs-pickamt .pfs-input { flex: 1 1 auto; }
.pfs-pickamt .pfs-secondary-btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 900px) { .pfs-cd-cols { grid-template-columns: 52px minmax(0, 1fr) 110px; } .pfs-cd-who { display: none; } }
.pfs-cd-grid { display: flex; flex-direction: column; overflow: hidden; }
.pfs-cd-grid .pfs-grid-head { flex: 0 0 auto; }
.pfs-devswitch { margin-left: auto; }
.pfs-devres { flex: 1 1 auto; }
/* Status dot on a tab icon (Shift › Devices): not clipped by the tab label rule ".pfs-tab span". */
.pfs-tab .pfs-devicon { display: inline-flex; overflow: visible; max-width: none; -webkit-line-clamp: unset; line-height: 0; }
/* F1 hint at the right end of the status bar (Rules · 0d, K9): never hidden by the keycap switch. */
.pfs-statusbar { align-items: center; }
.pfs-f1hint { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 13px; }
.pfs-f1hint:hover { background: var(--accent-bg); color: var(--accent-dark); }
/* Non-cash choices with the full name under the short one (Card · C2C · iDram, owner 2026-11-29). */
.pfs-ncopt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1.15; }
.pfs-ncopt small { font-size: 11px; font-weight: 400; }
/* C2C: the company card on New sale, one compact line. */
.pfs-c2c { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px 0 10px; box-sizing: border-box; margin-top: 8px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.pfs-c2c-no { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-c2c-bank { flex: 0 1 auto; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-c2c-copy { flex: 0 0 auto; width: 32px; height: 32px; padding: 0; border-radius: 6px; border: 1px solid var(--btn-line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
/* 1366 × 768 (smallest scale): with C2C chosen the card line must fit the Payment tab without a scroll bar. */
@media (max-height: 800px) {
  span.pfs-label.pfs-c2c-tight { display: none; }
  .pfs-c2c-tight .pfs-method { height: 44px; gap: 2px; }
  .pfs-c2c-tight .pfs-method svg { width: 20px; height: 20px; }
  .pfs-c2c-tight ~ .pfs-mix .pfs-ncopt { min-height: 38px; }
  .pfs-c2c-tight ~ .pfs-c2c { margin-top: 2px; height: 36px; }
}
/* Canvas 3e: the cart is open in another tab — the screen behind the popup is greyed. */
.pfs-elsewhere .pfs-main, .pfs-elsewhere .pfs-panel { opacity: .5; pointer-events: none; }
/* Canvas 3e: a cart or order form is waiting (blue dot on the menu button). */
.pfs-menu-dot { position: absolute; top: 8px; right: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff; }
#ewTitle { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
/* New delivery › Note (owner, 2026-11-29): the note box takes the height that is left, so the tab never scrolls (1366 × 768 too). */
.pfs-field.pfs-grow { display: flex; flex-direction: column; min-height: 0; }
.pfs-field.pfs-grow > .pfs-note { flex: 1 1 auto; height: auto; min-height: 48px; max-height: 160px; }
/* New delivery › Address: Region · City or village · Street on one line (owner, 2026-11-30). */
.pfs-addrrow { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,.9fr) minmax(0,1.4fr); gap: 8px; align-items: start; }
.pfs-addrrow .pfs-label-row > label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfs-addrrow .pfs-linkbtn { flex: 0 0 auto; border: 0; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--accent); cursor: pointer; white-space: nowrap; }
.pfs-addrrow .pfs-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-timebtn.bad { border-color: var(--danger, #B42318); }
.pfs-placelist { max-height: min(420px, 55vh); }
.pfs-placegroup { position: sticky; top: 0; z-index: 1; padding: 6px 12px; background: #F4F6F9; border-bottom: 1px solid #EEF0F4; font-size: 12px; font-weight: 700; color: #3A4250; }
.pfs-placelist button small { font-weight: 400; }
.pfs-placenone { padding: 16px 12px; font-size: 14px; color: var(--muted); }
/* New delivery › Note: the instructions button shows the note text on one line. */
.pfs-instrbtn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cart line Description · Details, opened under the line (owner, 2026-11-30; New sale and New delivery). */
.pfs-cell-open { cursor: pointer; }
.pfs-name-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.pfs-name-row .pfs-name { min-width: 0; }
.pfs-chev { flex: 0 0 auto; color: var(--muted); }
.pfs-row.pfs-row-open { background: #EEF3FC; box-shadow: inset 3px 0 0 var(--accent); border-bottom: 1px dashed #C9D6F0; }
.pfs-lineinfo { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: #fff; border-bottom: 1px solid var(--input); box-shadow: inset 3px 0 0 var(--accent); }
.pfs-lineinfo-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; color: #3A4250; font-size: 16px; line-height: 1; cursor: pointer; }
.pfs-lineinfo-desc { padding: 10px 14px 12px 56px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pfs-lineinfo-det { padding: 10px 44px 12px 14px; border-left: 1px solid #EEF0F4; background: #F9FAFB; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pfs-lineinfo-cap { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pfs-lineinfo-brand { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dark); }
.pfs-lineinfo-name { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.pfs-lineinfo-sub { font-size: 13px; color: #3A4250; }
.pfs-lineinfo-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.pfs-lineinfo-pd { padding: 1px 8px; border-radius: 999px; background: #E3F2E9; color: #11643A; font-size: 12px; font-weight: 600; }
.pfs-lineinfo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pfs-lineinfo-chips span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #F4F6F9; border: 1px solid #DDE1E7; font-size: 12px; font-weight: 500; color: var(--text); }
.pfs-lineinfo-chips span.warn { background: #FDF1DC; color: #8A4B00; border-color: #F0D29A; }
.pfs-lineinfo-det dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; align-items: baseline; }
.pfs-lineinfo-det dt { color: var(--muted); white-space: nowrap; }
.pfs-lineinfo-det dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--text); font-weight: 500; }
.pfs-lineinfo-code { display: block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pfs-lineinfo-det dd.ok { color: #11643A; font-weight: 600; }
.pfs-lineinfo-det dd.low { color: #8A4B00; font-weight: 600; }
.pfs-lineinfo-det dd.bad { color: #B42318; font-weight: 600; }
.pfs-lineinfo-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pfs-lineinfo-acts button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--btn-line); background: #fff; color: var(--accent-dark); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.pfs-lineinfo-acts button.warn { border-color: #E9B871; background: #FDF1DC; color: #6B3A00; }
.pfs-lineinfo-keys { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.pfs-lineinfo-keys kbd { padding: 0 5px; border: 1px solid var(--input); border-bottom-width: 2px; border-radius: 4px; background: #fff; font-family: inherit; font-size: 11px; }

/* Manager screens (owner, 2026-12-01): header store choice "Manager · {store} ⌄", Show store / Open the till of popups. */
.pfs-viewbtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; height: 24px; margin-left: -6px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: #173B7A; font: 600 13px/1 inherit; font-family: inherit; white-space: nowrap; cursor: pointer; }
.pfs-viewbtn:hover { background: #EEF3FC; }
.pfs-dialog-pick { max-width: 440px; gap: 10px; }
.pfs-pick-list { display: flex; flex-direction: column; gap: 8px; }
.pfs-pick { min-height: 64px; padding: 0 16px; border-radius: 10px; border: 1px solid #D5D9E0; background: #fff; color: var(--text); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; font: inherit; cursor: pointer; }
.pfs-pick strong { font-size: 16px; font-weight: 600; }
.pfs-pick span { font-size: 13px; font-weight: 500; color: #5B6472; }
.pfs-pick[aria-checked="true"] { border: 2px solid var(--accent); background: #EEF3FC; color: #173B7A; }
.pfs-pick:hover { border-color: var(--accent); }
.pfs-content > .pfs-home { width: 100%; box-sizing: border-box; overflow: auto; flex: 1 1 auto; min-height: 0; }
.pfs-content { background: #F4F6F9; }
/* Needs action cards: label and sub wrap onto two lines (owner, 2026-12-01). */
.pfs-home-cardtext strong, .pfs-home-cardtext small { white-space: normal; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Stock › Discount (owner, 2026-12-01): the sale's discount popup + Period and Stores. */
.pfs-pd-dlg { max-height: calc(100% - 24px); overflow-y: auto; gap: 12px; }
.pfs-pd-sec { display: flex; flex-direction: column; gap: 6px; }
.pfs-pd-sec:first-of-type { padding-top: 10px; border-top: 1px solid #EEF0F4; }
.pfs-pd-head { font-size: 12px; font-weight: 600; color: #5B6472; text-transform: uppercase; letter-spacing: .04em; }
.pfs-pd-dates { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.pfs-pd-dates label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.pfs-pd-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.pfs-pd-quick button { min-height: 40px; padding: 0 10px; border-radius: 8px; font: 600 13px/1 inherit; font-family: inherit; border: 1px solid #D5D9E0; background: #fff; color: #173B7A; cursor: pointer; }
.pfs-pd-quick button[aria-pressed="true"] { border: 2px solid var(--accent); background: #EEF3FC; }
.pfs-pd-stores { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.pfs-pd-stores .pfs-choice { min-height: 48px; font-size: 14px; padding: 0 6px; overflow-wrap: anywhere; line-height: 1.15; }
.pfs-pd-stores.bad .pfs-choice { border: 2px solid var(--bad-dot); }
.pfs-pd-dlg .pfs-choice:disabled { cursor: default; opacity: 1; }
/* Stock row: the discount button is green with its badge while a discount is on. */
.pfs-rowbtn-dc { position: relative; }
.pfs-rowbtn-dc.on { border-color: #8CCBA6; background: #E3F2E9; color: #11643A; }
.pfs-rowbtn-dc b { position: absolute; top: -7px; right: -8px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: #11643A; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; }
/* Couriers (owner, 2026-12-01; canvas Couriers.dc.html). */
.pfs-cour-cols { display: grid; grid-template-columns: minmax(0,1fr) 100px 96px 96px 96px 80px 44px; gap: 8px; align-items: center; }
.pfs-editbtn { width: 40px; height: 40px; padding: 0; border-radius: 8px; border: 1px solid #D5D9E0; background: #fff; color: #3A4250; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pfs-editbtn:hover { background: #EEF3FC; border-color: #9DB8EC; color: #173B7A; }
.pfs-cour-cash { font-weight: 600; color: #8A4B00; }
.pfs-cashbtn { height: 40px; min-width: 48px; padding: 0 8px; border-radius: 8px; border: 1px solid #D5D9E0; background: #fff; color: #5B6472; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; }
.pfs-cashbtn.on { border-color: #E9B871; background: #FDF1DC; color: #8A4B00; }
.pfs-two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.pfs-tabcard .pfs-two { margin-top: 8px; }
.pfs-tabcard .pfs-choices + .pfs-label, .pfs-tabcard .pfs-two + .pfs-label, .pfs-tabcard .pfs-field-err + .pfs-label { margin-top: 8px; }
.pfs-bad-group .pfs-choice { border: 2px solid var(--bad-dot); }
/* Take cash */
.pfs-take-dlg { max-width: 780px; max-height: calc(100vh / var(--z) - 40px); gap: 12px; }
.pfs-take-grid { flex: 0 1 auto; min-height: 0; max-height: 420px; display: flex; flex-direction: column; }
.pfs-take-body { overflow-y: auto; min-height: 0; }
.pfs-take-cols { display: grid; grid-template-columns: 40px 64px minmax(0,1fr) 190px 100px 104px; gap: 8px; align-items: center; }
.pfs-take-cols.on { background: #F5F8FE; }
.pfs-take-res { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pfs-tick { width: 28px; height: 28px; border-radius: 6px; border: 2px solid #9AA1AD; background: #fff; color: #fff; font: 700 16px/1 inherit; font-family: inherit; cursor: pointer; padding: 0; }
.pfs-tick[aria-checked="true"] { border: 0; background: var(--accent); }
.pfs-goodsback { height: 36px; padding: 0 10px; border-radius: 8px; border: 0; background: #8A1F1F; color: #fff; font: 600 13px/1 inherit; font-family: inherit; white-space: nowrap; cursor: pointer; }
.pfs-take-pay { width: 96px; text-align: right; }
.pfs-take-foot { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; align-items: start; }
.pfs-take-sum { display: flex; flex-direction: column; }
.pfs-take-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.pfs-take-actions > * { min-height: 56px; height: 56px; }
/* Documents (owner, 2026-12-01; canvas Purchase, InventoryCount, StockOut, StockReports). */
.pfs-pu-cols { display: grid; grid-template-columns: 32px minmax(0,1fr) 80px 112px 120px 44px; gap: 8px; align-items: center; }
.pfs-ic-cols { display: grid; grid-template-columns: minmax(0,1fr) 80px 92px 96px 128px; gap: 8px; align-items: center; }
.pfs-so-cols { display: grid; grid-template-columns: 32px minmax(0,1fr) 64px 84px 120px 44px; gap: 8px; align-items: center; }
.pfs-rep-cols { display: grid; grid-template-columns: minmax(0,1fr) 72px 112px 112px 128px; gap: 8px; align-items: center; }
.pfs-rep-grid { display: flex; flex-direction: column; }
.pfs-rep-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.pfs-rep-total { flex: 0 0 auto; height: 52px; padding: 0 16px; border-top: 1px solid var(--line); background: var(--head); font-size: 15px; font-weight: 600; }
.pfs-qtyin { width: 72px; text-align: right; font-weight: 600; }
.pfs-costin { width: 104px; text-align: right; font-weight: 600; }
.pfs-rowdel { color: #8A1F1F; border-color: #E8C4C4; font-size: 18px; }
.pfs-attach { position: relative; height: 48px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; color: var(--accent-dark); font-weight: 600; }
.pfs-attach input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pfs-filerow { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: 8px; padding: 6px 10px; border: 1px solid #EEF0F4; border-radius: 8px; font-size: 14px; }
.pfs-kvrow { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; min-height: 32px; font-size: 14px; border-bottom: 1px solid #EEF0F4; }
.pfs-kvrow-3 { grid-template-columns: 84px minmax(0,1fr) auto; }
.pfs-kvrow > span:last-child:not(:first-child) { text-align: right; }
.pfs-rep-prod { margin-bottom: 6px; }
.pfs-note { height: 72px; padding: 8px 12px; resize: none; margin-top: 8px; }
.pfs-mt8 { margin-top: 8px; }
.pfs-choices-44 .pfs-choice { min-height: 44px; font-size: 14px; padding: 0 6px; line-height: 1.15; }
.pfs-primary-orange { background: #B4461B !important; border-color: #B4461B !important; }
.pfs-docresult { grid-template-columns: minmax(0,1fr) 104px 64px 72px; }
.pfs-tabcard > .pfs-label:first-child { margin-top: 0; }
@media print { .pfs-header, .pfs-menu, .pfs-statusbar, .pfs-panel, .pfs-searchrow, .pfs-titlebar { display: none !important; } .pfs-app { height: auto !important; } .pfs-grid, .pfs-rep-body { overflow: visible !important; } }
.pfs-two > .pfs-field { margin-top: 0 !important; }
.pfs-tabcard .pfs-choices-44 { gap: 6px; }
.pfs-groups5 .pfs-choice { font-size: 13px; overflow-wrap: anywhere; line-height: 1.1; }
.pfs-stock-acts { gap: 6px; }
/* Manager screens on short windows (1366 × 768): panel tab cards fit without scrolling (rule S7). */
@media (max-height: 800px) {
  .pfs-tabcard .pfs-choices-44 { gap: 4px; }
  .pfs-tabcard:has(.pfs-choices-44), .pfs-tabcard:has(.pfs-two) { gap: 4px; padding-top: 8px; padding-bottom: 8px; }
  .pfs-tabcard .pfs-choices-44 .pfs-choice { min-height: 36px; height: 36px; font-size: 13px; }
  .pfs-tabcard .pfs-groups5 .pfs-choice { height: auto; min-height: 36px; }
  .pfs-tabcard .pfs-choices-44 + .pfs-label, .pfs-tabcard .pfs-two + .pfs-label, .pfs-tabcard .pfs-choices + .pfs-two { margin-top: 4px; }
  .pfs-tabcard .pfs-two .pfs-label { line-height: 14px; }
}
/* Manager screens: tabs a little wider (Armenian names fit) and grid headings may take two lines. */
.pfs-office-app .pfs-tabs { grid-template-columns: repeat(5, minmax(0,1fr)); }
.pfs-grid-head > span, .pfs-office-app .pfs-grid-head > * { white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.pfs-office-app .pfs-grid-head > .r { text-align: right; }
.pfs-docresults { max-height: min(440px, calc(100vh / var(--z, 1) - 300px)); overflow-y: auto; }
/* Manager home (owner, 2026-12-01): 6 action cards in 3 columns, 2 shift cards. */
.pfs-home-row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pfs-home-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pfs-home-card.good { border-color: #8CCBA6; box-shadow: inset 4px 0 0 #11643A; } .pfs-home-card.good .pfs-home-icon { background: #E3F2E9; color: #11643A; }
.pfs-home-card.plain .pfs-home-icon { background: #EEF0F4; color: #3A4250; }
.pfs-home-card .pfs-dpill { flex: 0 0 auto; }
.pfs-kvrow-2 { grid-template-columns: minmax(0,1fr) auto; }
/* Store screens: "{brand} · {store} ⌄" opens Show store for people with several stores (owner, 2026-12-01). */
.pfs-storebtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-left: -6px; padding: 2px 6px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.pfs-storebtn:hover { background: #EEF3FC; color: #173B7A; }
.pfs-courgrid .pfs-timebtn { min-width: 0; }
.pfs-courgrid .pfs-timebtn > span { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.pfs-courgrid .pfs-hint { line-height: 1.25; }
.pfs-courgrid .pfs-dtrack.pfs-gap { margin-top: 2px; }
.pfs-courgrid .pfs-hint { display: block; margin-top: 2px; font-size: 11.5px; }
@media (max-height: 820px) {
  .pfs-courgrid .pfs-field { gap: 2px; }
  .pfs-courgrid .pfs-timebtn, .pfs-courgrid .pfs-prefixbox, .pfs-courgrid .pfs-input-sm { height: 36px; min-height: 36px; }
}

/* Couriers (owner, 2026-12-03): + New courier sits in the 152 px slot next to the search bar; Deactivate · Cancel · Save in the Courier popup. */
.pfs-slotbtn { flex: 0 0 auto; min-width: 152px; height: 52px; padding: 0 16px; white-space: nowrap; font-size: 15px; font-weight: 600; border-radius: 12px; }
.pfs-dialog-actions-112 { display: grid; grid-template-columns: 1fr 1fr 2fr; }
.pfs-dialog-actions-112 > * { min-height: 64px; }
.pfs-label-plain { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: #3A4250; }
/* Manager › Cashiers (owner, 2026-12-03). */
.pfs-kas-cols { display: grid; grid-template-columns: minmax(0,1fr) 128px 112px 108px 72px 44px; gap: 8px; align-items: center; }
.pfs-ksh-cols { display: grid; grid-template-columns: 72px minmax(0,1fr) 128px 112px; gap: 8px; align-items: center; }
.pfs-diff-short { color: #B42318; font-weight: 600; }
.pfs-diff-over { color: #8A4B00; font-weight: 600; }
.pfs-kas-login { padding: 0 12px; height: 44px; border-radius: 8px; background: #F9FAFB; border: 1px solid #E3E6EB; }
.pfs-secondary > :only-child { grid-column: 1 / -1; }
.pfs-tabcard:has(.pfs-kvrow-tight) { gap: 4px; }
.pfs-kvrow-tight { min-height: 0; height: 28px; }
.pfs-input.pfs-input-text { text-align: left; }
/* Rule 6 (owner, 2026-12-04): filters on the column headers. */
.pfs-grid-head > .pfs-colf, .pfs-office-app .pfs-grid-head > .pfs-colf { display: inline-flex; align-items: center; gap: 4px; justify-self: start; max-width: 100%; min-height: 32px; max-height: 38px; margin-left: -8px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; overflow: hidden; -webkit-line-clamp: unset; }
.pfs-grid-head > .pfs-colf.r { justify-self: end; margin-left: 0; margin-right: -8px; }
.pfs-grid-head > .pfs-colf.c { justify-self: center; margin: 0; }
.pfs-colf:hover { background: #EEF0F4; }
.pfs-colf.on { background: #EEF3FC; color: #173B7A; }
.pfs-colf-label { min-width: 0; white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; text-align: inherit; }
.pfs-colf.r .pfs-colf-label { text-align: right; }
.pfs-colf-v { flex: 0 0 auto; color: #9AA1AD; font-size: 11px; }
.pfs-colf > b { flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0; }
.pfs-colf-dim { position: fixed; inset: 0; z-index: 60; background: rgba(27,31,39,.12); }
.pfs-colf-pop { position: fixed; z-index: 61; width: 320px; max-height: calc(100vh - 24px); box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #fff; border: 1px solid #C4CAD3; border-radius: 12px; box-shadow: 0 12px 32px rgba(27,31,39,.22); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--text); outline: none; }
.pfs-colf-head { display: flex; align-items: center; gap: 8px; }
.pfs-colf-head > span { flex: 1; font-size: 16px; font-weight: 600; }
.pfs-colf-head .pfs-close { width: 36px; height: 36px; }
.pfs-colf-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.pfs-colf-group { display: flex; flex-direction: column; }
.pfs-colf-group.off { opacity: .45; }
.pfs-colf-gt { padding: 2px 4px 4px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pfs-colf-gt em { font-style: normal; font-weight: 400; text-transform: none; }
.pfs-colf-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.pfs-colf-opt:hover:not(:disabled) { background: #F4F6F9; }
.pfs-colf-opt > i { flex: 0 0 18px; height: 18px; box-sizing: border-box; border: 2px solid #9AA1AD; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.pfs-colf-opt.one > i { border-radius: 50%; }
.pfs-colf-opt[aria-checked="true"] { background: #EEF3FC; color: #173B7A; font-weight: 600; }
.pfs-colf-opt[aria-checked="true"] > i { border: 0; background: var(--accent); }
.pfs-colf-opt[aria-checked="true"] > i::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 700; }
.pfs-colf-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.pfs-colf-foot > button { min-height: 48px; }
/* Search bar: "N filters ×" while anything is on (replaces the Filters button). */
.pfs-fchip { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 4px 0 10px; border: 0; border-radius: 8px; background: #EEF3FC; color: #173B7A; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.pfs-fchip > i { width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 16px; }
.pfs-fchip:hover > i { background: #DCE6F8; }
.pfs-colf-foot > button { white-space: normal; line-height: 1.2; font-size: 14px; padding: 4px 8px; }
/* Stock: other stores keep their own spelling so long names fit two lines at 1366. */
.pfs-grid-head > .pfs-sh-store { text-transform: none; letter-spacing: 0; font-size: 12px; }
/* Shift › Devices › Printer… (owner, 2026-12-04): this PC's printers, Automatic first, virtual ones greyed. */
.pfs-prnlist { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; }
.pfs-prnopt { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 16px; border: 0; border-bottom: 1px solid #EEF0F4; background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pfs-prnopt:last-child { border-bottom: 0; }
.pfs-prnopt > i { flex: 0 0 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 2px solid #9AA1AD; }
.pfs-prnopt > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pfs-prnopt strong { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.pfs-prnopt small { font-size: 12px; color: var(--muted); }
.pfs-prnopt[aria-checked="true"] { background: #EEF3FC; color: #173B7A; }
.pfs-prnopt[aria-checked="true"] strong { font-weight: 600; }
.pfs-prnopt[aria-checked="true"] > i { border: 6px solid var(--accent); }
.pfs-prnopt:disabled { opacity: .45; cursor: default; }
/* Cashiers and Couriers: the day's activity under each person (owner, 2026-12-05; canvas Cashiers / Couriers boards).
   A person's row opens and closes with a click; an activity row selects that one item for the right panel. */
.pfs-day-cols { display: grid; grid-template-columns: 96px minmax(0,1fr) 96px 128px; gap: 8px; align-items: center; }
.pfs-prow { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 16px 0 8px; background: #F9FAFB; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.pfs-prow.sel { background: var(--accent-bg); box-shadow: inset 3px 0 0 var(--accent); }
.pfs-prow.none { color: var(--muted); }
.pfs-prow > .tg { flex: 0 0 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: #3A4250; font-size: 14px; cursor: pointer; }
.pfs-prow > .tg[hidden] { display: block; visibility: hidden; }
.pfs-prow > .who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pfs-prow > .who strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-prow > .who small, .pfs-arow small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-prow > .tot { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.pfs-prow > .tot strong { font-size: 15px; font-weight: 600; white-space: nowrap; }
.pfs-prow > .tot small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pfs-prow > .st { flex: 0 0 auto; min-width: 84px; display: flex; justify-content: flex-end; }
.pfs-arow { height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 14px; }
.pfs-arow.sel { background: var(--accent-bg); box-shadow: inset 3px 0 0 var(--accent); }
.pfs-arow > .t { padding-left: 40px; color: #3A4250; white-space: nowrap; display: flex; flex-direction: column; line-height: 1.2; }
/* With several days chosen the date sits above the time (owner, 2026-12-06: "01.09 20:50" ran into the activity text). */
.pfs-arow > .t > small { font-size: 12px; color: var(--muted); }
.pfs-arow > .w { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pfs-arow > .w > span { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-arow > .n { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.pfs-arow > .a { text-align: right; font-weight: 600; white-space: nowrap; }
.pfs-arow > .a.neg { font-weight: 400; color: #8A1F1F; }
.pfs-t-ok { color: #11643A !important; } .pfs-t-run { color: #173B7A !important; } .pfs-t-warn { color: #8A4B00 !important; } .pfs-t-bad { color: #B42318 !important; }
.pfs-ptot-warn { font-weight: 600; color: #8A4B00 !important; } .pfs-ptot-bad { font-weight: 600; color: #B42318 !important; }
.pfs-kvrow .neg { color: #8A1F1F; font-weight: 400; }
/* Shift › Devices › printer field (owner, 2026-12-06): in the 80 mm / A4 result row — ✓ state · name · Automatic · ⌄. */
.pfs-prnfield { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 8px; border: 1px solid #C4CAD3; border-radius: 8px; background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pfs-prnfield > i { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; background: #EEF0F4; color: var(--muted); }
.pfs-prnfield.pfs-devres-ok > i { background: var(--ok-bg); color: var(--ok); } .pfs-prnfield.pfs-devres-error > i { background: var(--bad-bg); color: var(--bad); }
.pfs-prnfield.pfs-devres-error > strong { color: var(--bad); font-weight: 500; }
.pfs-prnfield > svg { flex: 0 0 auto; color: #3A4250; }
.pfs-prnfield > strong { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-prnfield:hover { border-color: var(--accent); }
.pfs-prntag { flex: 0 0 auto; height: 24px; padding: 0 8px; border-radius: 999px; background: #EEF0F4; color: #5B6472; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }

/* Users (owner, 2026-12-06; canvas AdminUsers.dc.html) */
.pfs-user-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) 148px 124px; gap: 8px; align-items: center; }
.pfs-grid-head.pfs-user-cols > .pfs-colf.r { justify-self: end; }
.pfs-urow { min-height: 60px; padding: 6px 16px; border-bottom: 1px solid #EEF0F4; background: #fff; cursor: pointer; font-size: 14px; }
.pfs-urow.sel { background: var(--accent-bg); box-shadow: inset 3px 0 0 var(--accent); }
.pfs-urow.off { color: var(--muted); }
.pfs-urow > .who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pfs-urow > .who strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-urow > .who small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfs-urow > .roles { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pfs-urow > .roles .rl { min-width: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.pfs-urow > .roles small { min-width: 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.pfs-urow > .ways { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.pfs-urow > .st { display: flex; justify-content: flex-end; }
.pfs-rolepill { flex: 0 0 auto; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #EEF0F4; color: #3A4250; }
.pfs-rolepill.r-storemanager { background: #EEF3FC; color: #173B7A; } .pfs-rolepill.r-warehousemanager { background: #E6F4F1; color: #0B5D4B; }
.pfs-rolepill.r-accountant { background: #E3F2E9; color: #11643A; } .pfs-rolepill.r-owner { background: #FDF1DC; color: #6B3A00; } .pfs-rolepill.r-admin { background: #EDE8FB; color: #4A2F9E; }
.pfs-waytag { display: inline-flex; align-items: center; height: 22px; box-sizing: border-box; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: #fff; color: #3A4250; border: 1px solid #C4CAD3; }
.pfs-waytag.g { color: #173B7A; border-color: #9DB8EC; }
.pfs-sum-total.pfs-sum-total-text { min-width: 0; }
.pfs-sum-total.pfs-sum-total-text strong { font-size: 18px; min-width: 0; }
.pfs-sum-total.pfs-sum-total-text span { flex: 0 1 auto; }
.pfs-input-ro { display: flex; align-items: center; background: #F9FAFB; border-color: #E3E6EB; font-weight: 600; }
.pfs-choice.pfs-choice-kept { opacity: .6; cursor: default; }
.pfs-user-dlg { max-width: 680px; gap: 12px; }
.pfs-dialog-actions-48 > * { min-height: 48px; }
.pfs-user-dlg { max-width: 760px; }
.pfs-user-row3 { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: start; }
.pfs-user-dlg .pfs-take-foot { gap: 16px; }
