/**
 * HamlyERP
 * Copyright (c) 2026 Nolwa Private Limited. All rights reserved.
 * Proprietary and confidential. Unauthorised copying, modification or distribution of this file is prohibited.
 */
/* Document form engine (form_engine_v2, P03b). Port of the frozen v3 prototype (docs/redesign/prototype/assets/
   doc-form.css + the form parts of app.css): same df- classes and markup, every colour, size, radius and layer from a
   token (ADDENDUM §12.1), Midnight Black and Warm dark as token overrides (§9.17). Loaded only on v2 pages.
   Everything is scoped under .df-v2 (the page root and the portal for pop-ups), so today's layout is untouched. */

.df-v2 {
  /* scales */
  --fs-2xs: 10px; --fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px; --fs-base: 14px; --fs-lg: 16px; --fs-xl: 18px; --fs-2xl: 22px; --fs-3xl: 24px; --fs-4xl: 28px;
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 10px; --r-xl: 12px; --r-2xl: 14px; --r-3xl: 18px; --r-pill: 999px;
  --z-sticky: 20; --z-savebar: 1040; --z-dropdown: 1060; --z-popover: 1070; --z-modal: 1080; --z-floating: 1120; --z-picker: 1140;
  /* colours (light) */
  --ui-brand: #184d2c; --ui-brand-dark: #192f23; --ui-brand-soft: #eaf2ed; --ui-heading: #192f23; --ui-brand-ink: #184d2c;
  --ui-brand-ring: rgba(27, 122, 80, .18);
  --ui-surface: #fff; --ui-surface-2: #fbfbfc; --ui-hover: #f7faf8; --ui-hl: #f1f4f2; --ui-ro: #f3f4f5; --ui-flash: #e3f3e8;
  --ui-gold: #c9a84c; --ui-gold-dark: #a8873a; --ui-gold-wash: #f7efd8; --ui-gold-ink: #6f5718;
  --ui-ink: #1f2937; --ui-muted: #5b6270; --ui-icon: #9aa1ab;
  --ui-line: #e6e8eb; --ui-line-strong: #c9cfcc; --ui-line-soft: #cfe0d5;
  --ui-bg: #f6f7f8; --ui-shell: #f5f1e8;
  --ui-info: #2f7d4f; --ui-ok: #12692f; --ui-error: #c62828; --ui-error-wash: #fdeceb; --ui-warn-wash: #fff8e1; --ui-warn-ink: #8a5a00;
  --ui-on-brand: #fff; --ui-on-brand-soft: rgba(255, 255, 255, .5); --ui-on-brand-wash: rgba(255, 255, 255, .15); --ui-on-brand-line: rgba(255, 255, 255, .3); --ui-on-gold-wash: rgba(255, 255, 255, .55);
  --ui-primary: #0d2b1a; --ui-primary-hover: #184d2c; --ui-primary-disabled: #0d2b1a;
  --ui-switch-track: #d5dbd8; --ui-switch-knob: #fff;
  --ui-overlay: rgba(13, 43, 26, .35); --ui-overlay-2: rgba(13, 43, 26, .2);
  --ui-shadow-pop: 0 10px 25px rgba(0, 0, 0, .12); --ui-shadow-modal: 0 24px 60px rgba(0, 0, 0, .25); --ui-shadow-bar: 0 -6px 18px rgba(16, 24, 40, .05);
  --ui-shadow-toast: 0 10px 30px rgba(17, 17, 26, .2); --ui-shadow-pick: 0 16px 40px rgba(13, 43, 26, .18); --ui-shadow-knob: 0 1px 3px rgba(15, 23, 42, .3);
  --ui-scroll-thumb: #cdd5d0; --ui-scroll-thumb-hover: #a9b4ae;
  /* sizes */
  --ui-radius: 8px; --ui-radius-card: 14px; --ui-field-h: 32px; --ui-cell-h: 32px; --sb-h: 64px;
  --df-touch-h: 44px; --df-pick-w: 320px; --df-pick-max-h: 320px; --df-edge: 8px;   /* touch target, listbox width / height, screen edge gap */
  --df-font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --df-font-ar: "Inter", "IBM Plex Sans Arabic", "Almarai", "Segoe UI", Tahoma, sans-serif;
  --df-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: var(--df-font); font-size: var(--fs-base); color: var(--ui-ink); line-height: 1.4;
}
/* Midnight Black (default dark style) */
:root[data-theme="dark"] .df-v2 {
  color-scheme: dark;
  --ui-brand-soft: #1b2a21; --ui-brand-ring: rgba(95, 190, 130, .28); --ui-heading: #f2f4f3; --ui-brand-ink: #8fd3a8; --ui-ro: #1f2321;
  --ui-surface: #161817; --ui-surface-2: #1c2420; --ui-hover: #1a201d; --ui-hl: #1f2522; --ui-flash: #1f3b2b;
  --ui-gold-wash: #3a3117; --ui-gold-ink: #e6cc7c; --ui-ink: #e7e9e8; --ui-muted: #9ca8a2; --ui-icon: #7e8a84;
  --ui-line: #191d1b; --ui-line-strong: #303632; --ui-line-soft: #292e2b; --ui-bg: #101110; --ui-shell: #0a0c0b;
  --ui-info: #2f8a55; --ui-ok: #6fd394; --ui-error: #f2766d; --ui-error-wash: #161918; --ui-warn-wash: #3a2f13; --ui-warn-ink: #f1c462;
  --ui-on-brand-soft: rgba(0, 0, 0, .35); --ui-on-brand-wash: var(--ui-on-brand-soft); --ui-on-brand-line: var(--ui-on-brand-soft); --ui-on-gold-wash: rgba(0, 0, 0, .25);
  --ui-primary: #2b7a4b; --ui-primary-hover: #33905a; --ui-primary-disabled: #2a3530;
  --ui-switch-track: #3b4540; --ui-switch-knob: #e7ece9;
  --ui-overlay: rgba(0, 0, 0, .6); --ui-overlay-2: rgba(0, 0, 0, .36);
  --ui-shadow-pop: 0 10px 25px rgba(0, 0, 0, .22); --ui-shadow-modal: 0 24px 60px rgba(0, 0, 0, .45); --ui-shadow-bar: 0 -6px 18px rgba(0, 0, 0, .3);
  --ui-shadow-toast: 0 10px 30px rgba(0, 0, 0, .45); --ui-shadow-pick: 0 16px 40px rgba(0, 0, 0, .45); --ui-shadow-knob: 0 1px 3px rgba(0, 0, 0, .5);
  --ui-scroll-thumb: #303632; --ui-scroll-thumb-hover: #4c4a47;
}
/* Warm dark (superadmin choice) */
:root[data-theme="dark"][data-dark="warm"] .df-v2 {
  --ui-brand-soft: #353b32; --ui-ro: #3b3a37; --ui-heading: #f4f4f2; --ui-surface: #31302e; --ui-surface-2: #2d2c2a; --ui-hover: #383634; --ui-hl: #3b3a37; --ui-flash: #2d3a2f;
  --ui-ink: #eae9e6; --ui-muted: #aba699; --ui-line: #393735; --ui-line-strong: #4c4a47; --ui-line-soft: #41403d;
  --ui-bg: #252422; --ui-shell: #1b1a19; --ui-error-wash: #33322f;
}
:where(.df-v2) *, :where(.df-v2) *::before, :where(.df-v2) *::after { box-sizing: border-box; }
.df-v2:lang(ar), [dir="rtl"] .df-v2 { font-family: var(--df-font-ar); }   /* on the root only: icon fonts (Font Awesome) keep their own family */
:where(.df-v2) :where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(.df-v2) :where(h1, h2, h3, h4) { font-family: inherit; margin: 0; }
/* today's vendor.css (AdminLTE) gives h1-h6 its own font and line height with a real selector, which beat the line above:
   headings take the page's font (the prototype's Inter / Arabic font) and line height (parity check, 13 Oct) */
.df-v2 h1, .df-v2 h2, .df-v2 h3, .df-v2 h4 { font-family: inherit; line-height: inherit; }
:where(.df-v2) label { margin: 0; font-weight: inherit; max-width: none; }
:where(.df-v2) table { margin: 0; }
:where(.df-v2) a { color: var(--ui-brand-ink); }
:where(.df-v2) :focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ui-brand-ring); }
.df-v2 .df-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.df-muted { color: var(--ui-muted); }
.df-num { font-variant-numeric: tabular-nums; }
.df-spacer { flex: 1; }
.df-inline-ic { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- Page ---------- */
.df-page { background: var(--ui-shell); padding: 22px 24px 32px; min-height: 100%; }
.df-page.has-sb { padding-bottom: calc(var(--sb-h) + 60px + env(safe-area-inset-bottom)); }

/* ---------- Page head (compact production head, UI-AUDIT-v2) ---------- */
.df-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--ui-radius-card); padding: 14px 20px; }
.df-head h1 { margin: 0; font-size: var(--fs-2xl); line-height: 1.15; color: var(--ui-heading); letter-spacing: -.2px; font-weight: var(--fw-semibold); }
.df-crumb { font-size: var(--fs-sm); color: var(--ui-muted); margin-top: 2px; }
.df-doc-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--ui-brand-soft); color: var(--ui-heading); font-size: var(--fs-xs); font-weight: 600; vertical-align: middle; margin-inline-start: 10px; }
.df-doc-tag.is-gold { background: var(--ui-warn-wash); color: var(--ui-warn-ink); }   /* rule 37 (owner 2 Nov): no gold-on-gold chip - the "gold" tone is the warning status token */

/* ---------- Layout ---------- */
.df-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.df-layout > .df-header-full { grid-column: 1 / -1; margin-bottom: 0; }   /* SAL-UI-01: Customer & invoice spans the full width; items and Summary sit below it */
.df-card { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--ui-radius-card); padding: 18px 20px; margin-bottom: 16px; }
.df-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.df-card-head h2 { margin: 0; font-size: var(--fs-lg); color: var(--ui-heading); font-weight: var(--fw-semibold); }
.df-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 16px; }
.df-col-12 { grid-column: span 12; } .df-col-9 { grid-column: span 9; } .df-col-8 { grid-column: span 8; } .df-col-6 { grid-column: span 6; }
.df-col-4 { grid-column: span 4; } .df-col-3 { grid-column: span 3; }

/* ---------- Fields ---------- */
.df-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; }
.df-label { margin: 0; max-width: none; font-size: var(--fs-md); font-weight: 600; color: var(--ui-ink); display: flex; align-items: center; gap: 6px; }
.df-label .df-req { color: var(--ui-error); }
.df-v2 .df-fix-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--ui-brand-ink); text-decoration: underline; }
.df-v2 .df-fix-link svg { width: 16px; height: 16px; }
/* rule 8: a label with the page kit's "?" tip beside it (the button is not inside the <label>) */
.df-v2 .df-label-line { display: flex; align-items: center; gap: 6px; }
.df-v2 .df-label-line > .df-label { min-width: 0; }
.df-v2 th .df-kit-tip { margin-inline-start: 6px; vertical-align: middle; }
:where(.df-v2) u { text-decoration: none; }
body.df-show-keys :where(.df-v2) .df-label u, body.df-show-keys :where(.df-v2) u[data-key] { text-decoration: underline; text-decoration-color: var(--ui-gold); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.df-input, .df-textarea { width: 100%; min-height: var(--ui-field-h); padding: 9px 12px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-radius); background: var(--ui-surface); outline: none; transition: border-color .12s, box-shadow .12s; box-shadow: none; }
.df-input { padding: calc((var(--ui-field-h) - 22px) / 2) 12px; line-height: 20px; }   /* exactly --ui-field-h tall (32px, 40px on touch), EN and AR */
.df-textarea { min-height: 70px; resize: vertical; }
.df-input, .df-textarea, .df-cell { unicode-bidi: plaintext; }
.df-num, .df-sum-v, .df-amount, .df-res-side { direction: ltr; unicode-bidi: isolate; }
.df-input:focus, .df-textarea:focus { border-color: var(--ui-brand); box-shadow: 0 0 0 3px var(--ui-brand-ring); }
.df-input[readonly] { background: var(--ui-ro); color: var(--ui-muted); border-color: var(--ui-line); }
.df-input::placeholder, .df-cell::placeholder { color: var(--ui-placeholder); }
.df-input.is-invalid, .df-textarea.is-invalid { border-color: var(--ui-error); }
.df-hint { font-size: var(--fs-sm); color: var(--ui-muted); }
.df-hint.is-warn { color: var(--ui-warn-ink); }
.df-hint.is-error, .df-field-error { color: var(--ui-error); font-size: var(--fs-sm); }
.df-icon-input { position: relative; }
.df-icon-input > svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ui-icon); pointer-events: none; }
.df-icon-input > .df-input { padding-inline-start: 36px; }
.df-group { display: flex; gap: 8px; align-items: stretch; }
.df-group > .df-grow { flex: 1; min-width: 0; }
.df-grow { flex: 1; min-width: 0; }

/* ---------- Buttons ---------- */
.df-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ui-field-h); padding: 0 14px; border-radius: var(--r-lg); border: 1px solid var(--ui-line-strong); background: var(--ui-surface); color: var(--ui-ink); cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap; font-size: var(--fs-base); line-height: 20px; }
.df-btn:hover { border-color: var(--ui-brand); color: var(--ui-ink); text-decoration: none; }
.df-btn svg { width: 16px; height: 16px; }
.df-btn-primary, .df-btn-primary:hover { color: var(--ui-on-brand); }
.df-btn-primary { background: var(--ui-primary); border-color: var(--ui-primary); }
.df-btn-primary:hover { background: var(--ui-primary-hover); border-color: var(--ui-primary-hover); }
.df-btn-outline { border-color: var(--ui-brand); color: var(--ui-heading); }
.df-btn-gold { background: var(--ui-gold); border-color: var(--ui-gold); color: var(--ui-brand-dark); }
.df-btn-gold:hover { background: var(--ui-gold-dark); border-color: var(--ui-gold-dark); color: var(--ui-brand-dark); }
.df-btn-ghost { border-color: transparent; background: transparent; }
.df-btn-ghost:hover { background: var(--ui-hl); border-color: transparent; }
.df-btn-sm { min-height: 30px; padding: 4px 10px; font-size: var(--fs-md); border-radius: var(--r-md); }
.df-btn-lg { min-height: 46px; padding: 10px 24px; }
.df-btn-square { width: var(--ui-field-h); min-height: var(--ui-field-h); padding: 0; background: var(--ui-primary); border-color: var(--ui-primary); color: var(--ui-on-brand); flex: none; position: relative; }
.df-btn-square:hover { background: var(--ui-primary-hover); color: var(--ui-on-brand); }
.df-btn-square svg { width: 20px; height: 20px; }
.df-link-btn { background: none; border: 0; padding: 4px 0; color: var(--ui-brand-ink); font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.df-link-btn svg { width: 18px; height: 18px; }
.df-icon-btn { width: 32px; height: 32px; border-radius: var(--r-md); border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--ui-muted); padding: 0; }
.df-icon-btn:hover, .df-icon-btn[aria-expanded="true"] { background: var(--ui-hl); color: var(--ui-heading); }
.df-icon-btn svg { width: 18px; height: 18px; }

/* ---------- Chips ---------- */
.df-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.df-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-lg); border: 1px solid var(--ui-line-strong); background: var(--ui-surface); cursor: pointer; font-weight: 600; font-size: var(--fs-md); color: var(--ui-ink); }
.df-chip .df-kbd-num { font-family: var(--df-mono); font-size: var(--fs-xs); color: var(--ui-muted); border: 1px solid var(--ui-line); border-radius: var(--r-xs); padding: 0 4px; }
.df-chip[aria-checked="true"] { background: var(--ui-info); border-color: var(--ui-info); color: var(--ui-on-brand); }
.df-chip[aria-checked="true"] .df-kbd-num { color: var(--ui-on-brand); border-color: var(--ui-on-brand-soft); }
.df-chip.is-warn[aria-checked="true"] { background: var(--ui-gold); border-color: var(--ui-gold); color: var(--ui-brand-dark); }
.df-chip.is-danger[aria-checked="true"] { background: var(--ui-surface); border-color: var(--ui-error); color: var(--ui-error); }
.df-chip.is-danger[aria-checked="true"] .df-kbd-num { color: var(--ui-error); border-color: var(--ui-error-wash); }
.df-chip.is-warn[aria-checked="true"] .df-kbd-num { color: var(--ui-brand-dark); border-color: rgba(13, 43, 26, .25); }
.df-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; background: var(--ui-bg); color: var(--ui-muted); }
.df-pill.is-green { background: var(--ui-brand-soft); color: var(--ui-heading); }
.df-pill.is-gold { background: var(--ui-warn-wash); color: var(--ui-warn-ink); }   /* rule 37 (owner 2 Nov): no gold-on-gold chip - the "gold" tone is the warning status token */
.df-pill.is-red { background: var(--ui-error-wash); color: var(--ui-error); }
.df-pill svg { width: 12px; height: 12px; }

/* ---------- Party picker ---------- */
.df-party-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: var(--fs-md); margin-top: 2px; }
.df-party-meta .df-due { color: var(--ui-error); font-weight: var(--fw-semibold); }
.df-party-meta .df-due.is-zero { color: var(--ui-brand-ink); }
.df-party-card { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--ui-line-soft); background: var(--ui-surface-2); border-radius: var(--r-lg); min-height: var(--ui-field-h); cursor: pointer; }
.df-party-card .df-party-name { font-weight: var(--fw-semibold); }
.df-party-card .df-x { margin-inline-start: auto; }
/* PARTY-CARD-01: the customer / supplier box's inside and its History panel are in party-card.css (POS and return pages too) */

/* ---------- Type-ahead results ---------- */
.df-results { position: absolute; z-index: var(--z-dropdown); inset-inline-start: 0; top: calc(100% + 4px); min-width: 100%; width: max-content; max-width: min(640px, 92vw); background: var(--ui-surface); border: 1px solid var(--ui-line-strong); border-radius: var(--r-xl); box-shadow: var(--ui-shadow-pop); padding: 6px; max-height: 360px; overflow: auto; }
.df-results[hidden] { display: none; }
.df-res { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 8px 10px; border-radius: var(--r-md); cursor: pointer; }
.df-res[aria-selected="true"] { background: var(--ui-hl); }
.df-res-title { font-weight: 600; }
.df-res-title mark { background: var(--ui-gold-wash); color: inherit; border-radius: var(--r-xs); padding: 0; }
.df-res-sub { font-size: var(--fs-sm); color: var(--ui-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.df-res-side { text-align: end; font-size: var(--fs-sm); white-space: nowrap; }
.df-res-side b { font-size: var(--fs-base); display: block; }
.df-stock-ok { color: var(--ui-brand-ink); font-weight: 600; }
.df-stock-low { color: var(--ui-warn-ink); font-weight: 600; }
.df-stock-out { color: var(--ui-error); font-weight: 600; }
.df-res-create { border-top: 1px dashed var(--ui-line); margin-top: 4px; padding-top: 10px; color: var(--ui-brand-ink); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.df-res-create svg { width: 18px; height: 18px; flex: none; }
.df-res-create .df-kbd { margin-inline-start: auto; }
.df-res-head { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .4px; color: var(--ui-muted); padding: 6px 10px 2px; }
.df-res-empty { padding: 10px; color: var(--ui-muted); font-size: var(--fs-md); }

/* ---------- Item grid ---------- */
.df-lines-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.df-lines { width: 100%; border-collapse: separate; border-spacing: 0; }
.df-v2 .df-lines thead, .df-v2 .df-lines thead tr, .df-v2 .df-lines tbody, .df-v2 .df-lines tr { background: transparent; }
.df-v2 .df-lines thead th { text-align: start; font-size: var(--fs-sm); font-weight: 600; color: var(--ui-muted); padding: 8px 6px; border-bottom: 1px solid var(--ui-line); white-space: nowrap; background: var(--ui-surface-2); }
.df-v2 .df-lines thead th:first-child { border-start-start-radius: var(--r-lg); }
.df-v2 .df-lines thead th:last-child { border-start-end-radius: var(--r-lg); }
.df-lines th.is-num, .df-lines td.is-num { text-align: end; }
.df-v2 .df-lines td { padding: 6px; border-bottom: 1px solid var(--ui-line); vertical-align: top; background: transparent; color: var(--ui-ink); }
.df-lines tr.is-new td { animation: df-flash 1s ease-out; }
@keyframes df-flash { from { background: var(--ui-flash); } to { background: transparent; } }
.df-cell, .df-input, .df-textarea, .df-chip, .df-btn { scroll-margin: 90px 0 150px; }
.df-cell { width: 100%; height: var(--ui-cell-h); border: 1px solid transparent; border-radius: var(--r-md); padding: 6px 8px; background: transparent; outline: none; box-shadow: none; }
.df-lines tr:hover .df-cell:not([readonly]) { border-color: var(--ui-line); }
.df-cell:focus { border-color: var(--ui-brand) !important; background: var(--ui-surface); box-shadow: 0 0 0 3px var(--ui-brand-ring); }
.df-cell.is-num { text-align: end; font-variant-numeric: tabular-nums; }
.df-cell[readonly] { color: var(--ui-ink); }
.df-cell.is-invalid { border-color: var(--ui-error) !important; }
.df-item-cell { position: relative; min-width: 180px; width: 40%; }   /* 180 (was 220): leaves the qty column its room at 1366 (SALE-QTY-01) */
.df-item-sub { font-size: var(--fs-sm); color: var(--ui-muted); padding: 0 8px 2px; display: flex; gap: 10px; flex-wrap: wrap; }
/* PUR-01: the account of a non-stock purchase line, under its name */
.df-ns-account { display: flex; align-items: center; gap: 8px; padding: 0 8px 4px; margin: 0; font-size: var(--fs-sm); font-weight: 500; color: var(--ui-muted); }
.df-ns-account .df-cell { height: 32px; min-width: 0; flex: 1; }
.df-ns-account .df-acct-chip { min-height: var(--df-touch-h); min-width: 0; flex: 1; justify-content: space-between; }   /* V3-PUR-LED: kit chip, touch target */
.df-ns-account .df-acct-chip b, .df-ns-account.is-readonly b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ui-ink); }
/* LINE-POST-01 (owner 8 Nov): "Posts to" is a compact chip in the line's sub row ("5150 ▾"), no row of its own;
   a touch target on touch screens (rule of the kit chips) */
.df-item-sub .df-acct-chip { width: auto; height: auto; min-height: 24px; max-width: 16ch; padding: 0 6px; gap: 2px; font-size: var(--fs-sm); font-weight: 600; color: var(--ui-ink); }
.df-item-sub .df-acct-chip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.df-item-sub .df-acct-chip.is-readonly { display: inline-flex; align-items: center; border: 1px solid var(--ui-line); border-radius: var(--r-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (pointer: coarse) { .df-item-sub .df-acct-chip { min-height: var(--df-touch-h); } }
.df-acct-pop { max-height: var(--df-pick-max-h); overflow-y: auto; }
.df-rowno { color: var(--ui-muted); font-size: var(--fs-sm); padding-top: 14px !important; width: 28px; text-align: center; }
.df-qty-cell { width: 110px; }
/* SALE-QTY-01: a narrow lines table shrinks a column to its header ("Qty" = 33px) when no unit chip widens it; the input then
   had ~5px for text and the qty looked empty. The input keeps room for "1,250.5" (sale, purchase and sales-return lines). */
.df-qty-cell .df-cell { min-width: 72px; }
/* SALE-QTY-01: in the lines table a pill under the item may wrap (beats the nowrap rule below) - the nowrap "Non-inventory item ·
   no stock" pill (216px) held the item column wide and squeezed qty; it stays on one line whenever it fits */
.df-lines .df-item-sub .df-pill { white-space: normal; }
/* LAST-HINT-01: the "Last: 1,250.00 on 05/11/2026" hint under a line's price wraps (beats the nowrap rule below) - on one line
   it widened the price column to 207-235px, the lines table outgrew its frame at 1366 and the Amount column was cut off */
.df-lines .df-last-price { white-space: normal; align-items: flex-start; }
.df-unit-chip { display: inline-block; font-size: var(--fs-xs); font-weight: 600; background: var(--ui-bg); border-radius: var(--r-sm); padding: 1px 6px; margin: 2px 8px 0; color: var(--ui-muted); }
/* HF-UNIT-01: the chip is the line's unit control (line-unit.js): a button that opens the unit list */
button.df-unit-chip { border: 1px solid var(--ui-line); font-family: inherit; line-height: 1.4; cursor: pointer; color: var(--ui-ink); touch-action: manipulation; }
button.df-unit-chip:hover, button.df-unit-chip:focus { border-color: var(--ui-brand); outline: none; }
button.df-unit-chip:focus-visible { box-shadow: 0 0 0 3px var(--ui-brand-ring); }
button.df-unit-chip[disabled] { cursor: default; color: var(--ui-muted); border-color: transparent; }
.df-unit-caret { margin-inline-start: 4px; font-size: 0.85em; color: var(--ui-muted); }
.df-unit-cell .df-unit-chip { margin: 0; }
.df-unit-list { min-width: 160px; max-height: 280px; overflow: auto; }
/* HF-UNIT-01-P3 (U2 2): a 44 px touch target on phones and touch screens (the 44 rule) */
@media (max-width: 640px), (pointer: coarse) {
  button.df-unit-chip { min-height: var(--df-touch-h); padding: 4px 12px; margin-top: 4px; }
  .df-unit-list .df-unit-opt { min-height: var(--df-touch-h); }
}
.df-unit-list .df-unit-opt.is-active { background: var(--ui-hl); outline: 2px solid var(--ui-brand-ring); outline-offset: -2px; }
.df-price-cell { width: 140px; }
.df-last-price { font-size: var(--fs-xs); color: var(--ui-muted); padding: 2px 8px 0; display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.df-last-price svg { width: 12px; height: 12px; }
.df-disc-cell { width: 100px; }
.df-tax-cell { width: 104px; }
.df-tax-chip { height: var(--ui-cell-h); width: 100%; border-radius: var(--r-md); border: 1px solid var(--ui-line); background: var(--ui-surface); font-weight: 600; font-size: var(--fs-md); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; }
.df-tax-chip:hover, .df-tax-chip:focus { border-color: var(--ui-brand); }
.df-tax-chip:focus { box-shadow: 0 0 0 3px var(--ui-brand-ring); }
.df-tax-chip:active { background: var(--ui-brand-soft); }
.df-tax-chip .df-tax-cycle { width: 11px; height: 11px; color: var(--ui-icon); }
.df-tax-chip small { color: var(--ui-muted); font-weight: 500; font-size: var(--fs-xs); }
.df-tax-chip { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; }
.df-tax-chip b { font-weight: var(--fw-semibold); }
.df-stock-loc { color: var(--ui-muted); }
.df-item-sub .df-pill { white-space: nowrap; }
/* W3b 4 Nov (item 1d): the line type chip, tappable (44 px target on touch through its padding box) */
button.df-kind-chip { border: 1px solid var(--ui-line); cursor: pointer; font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; }
button.df-kind-chip:hover { border-color: var(--ui-line-strong); }
button.df-kind-chip:focus-visible { outline: 2px solid var(--ui-focus, var(--ui-brand)); outline-offset: 1px; }
.df-summary [data-chips="pay_status"] { flex-wrap: nowrap; }   /* owner: the payment-status chips stay on one line; method chips wrap */
.df-chip { white-space: nowrap; }
.df-chip, .df-btn, .df-icon-btn { touch-action: manipulation; }
.df-amount { width: 130px; padding-top: 14px !important; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.df-menu-cell { width: 40px; padding-top: 8px !important; }
.df-lines tr.is-blank .df-amount { color: transparent; }
.df-lines tr.is-blank .df-menu-cell > * { visibility: hidden; }
/* D-110 (owner 7 Nov): on the bill and the purchase order, Amount and the row menu stay pinned to the end edge while the
   lines scroll sideways (a business may turn many columns on); LTR and RTL, not on the phone card layout. Physical sides:
   .df-amount is direction ltr, so a logical inset would always mean the right. */
:is(.df-v2[data-doc="purchase"], .df-v2[data-doc="purchase_order"]) .df-page:not([data-cw="phone"]) .df-lines :is(th[data-c="total"], td.df-amount) { position: sticky; right: 44px; z-index: 1; background: var(--ui-surface); box-shadow: inset 1px 0 0 var(--ui-line); }
:is(.df-v2[data-doc="purchase"], .df-v2[data-doc="purchase_order"]) .df-page:not([data-cw="phone"]) .df-lines :is(th[data-c="menu"], td.df-menu-cell) { position: sticky; right: 0; z-index: 1; width: 44px; min-width: 44px; box-sizing: border-box; background: var(--ui-surface); }
:is(.df-v2[data-doc="purchase"], .df-v2[data-doc="purchase_order"]) .df-page:not([data-cw="phone"]) .df-lines thead :is(th[data-c="total"], th[data-c="menu"]) { background: var(--ui-surface-2); }
[dir="rtl"] :is(.df-v2[data-doc="purchase"], .df-v2[data-doc="purchase_order"]) .df-page:not([data-cw="phone"]) .df-lines :is(th[data-c="total"], td.df-amount) { right: auto; left: 44px; box-shadow: inset -1px 0 0 var(--ui-line); }
[dir="rtl"] :is(.df-v2[data-doc="purchase"], .df-v2[data-doc="purchase_order"]) .df-page:not([data-cw="phone"]) .df-lines :is(th[data-c="menu"], td.df-menu-cell) { right: auto; left: 0; }
/* D-110: the cost before / with VAT under Cost while their columns are off */
.df-cost-sub { font-size: var(--fs-xs); color: var(--ui-muted); padding: 2px 8px 0; line-height: 1.35; font-variant-numeric: tabular-nums; }
.df-cost-sub .df-cost-part { display: block; white-space: nowrap; }
/* BILL-WIDTH-01 (U2 OLD-2): the "Save 15% on this product" button in the VAT note under a line's tax chip wraps (beats the
   .df-btn nowrap) - on one line it widened the VAT column from 86 to 201px and pushed the lines table further past its frame */
:is(.df-v2[data-doc="purchase"], .df-v2[data-doc="purchase_order"]) .df-lines .df-vat-note .df-btn { white-space: normal; text-align: start; max-width: 100%; }
/* D-142a (owner, Sat 21): the bill / PO lines do not fit beside the Summary (purchase.js placeSummary sets data-lines-below,
   two / wide pages only): the Summary goes under the lines, as on a narrower page, and the save bar shows the total + VAT */
:is(.df-v2[data-doc="purchase"], .df-v2[data-doc="purchase_order"]) .df-page[data-lines-below] .df-layout { grid-template-columns: minmax(0, 1fr); }
:is(.df-v2[data-doc="purchase"], .df-v2[data-doc="purchase_order"]) .df-page[data-lines-below] .df-summary { position: static; max-height: none; overflow: visible; }
.df-sb-total { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; margin-inline-end: 6px; }
.df-sb-total-l { font-size: var(--fs-md); color: var(--ui-muted); }
.df-sb-total b { font-size: var(--fs-lg); font-weight: var(--fw-semibold); color: var(--ui-ink); }
.df-sb-total-vat { font-size: var(--fs-sm); color: var(--ui-muted); }
/* D-143: on a narrow bar (sm / xs, under 900px) the total + VAT take their own line above the buttons, which keep their room */
.df-sb:is([data-w="sm"], [data-w="xs"]).df-sb-has-total .df-sb-row { flex-wrap: wrap; row-gap: 6px; }
.df-sb:is([data-w="sm"], [data-w="xs"]).df-sb-has-total .df-sb-total { order: -1; flex: 1 0 100%; margin-inline-end: 0; }
.df-lines-foot { display: flex; align-items: center; gap: 16px; padding-top: 12px; flex-wrap: wrap; }
.df-row-panel td { background: var(--ui-surface-2); padding: 12px 14px 14px 42px; }
[dir="rtl"] .df-row-panel td { padding: 12px 42px 14px 14px; }
.df-row-panel .df-grid { gap: 10px 14px; }

/* ---------- Summary ---------- */
.df-summary { position: sticky; top: calc(var(--df-top, 0px) + 14px); max-height: calc(100vh - var(--df-top, 0px) - var(--df-sb-height, 0px) - 28px); max-height: calc(100svh - var(--df-top, 0px) - var(--df-sb-height, 0px) - 28px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.df-summary > .df-card { margin-bottom: 0; }
.df-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: var(--fs-base); }
.df-sum-row .df-sum-v { font-variant-numeric: tabular-nums; font-weight: 600; }
.df-sum-row.is-sub { font-size: var(--fs-md); color: var(--ui-muted); padding: 3px 0; padding-inline-start: 12px; }
.df-sum-total { border-top: 1px solid var(--ui-line); margin-top: 8px; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.df-sum-total .df-sum-l { font-weight: var(--fw-semibold); font-size: var(--fs-lg); }
.df-sum-total .df-sum-v { font-weight: var(--fw-semibold); font-size: var(--fs-3xl); color: var(--ui-heading); font-variant-numeric: tabular-nums; }
.df-sum-foreign { font-size: var(--fs-sm); color: var(--ui-muted); text-align: end; }
.df-sum-block { border-top: 1px solid var(--ui-line); margin-top: 14px; padding-top: 14px; }
.df-sum-balance { display: flex; justify-content: space-between; font-weight: var(--fw-semibold); padding-top: 8px; }
.df-sum-balance.is-due .df-sum-v { color: var(--ui-error); }
.df-pay-extra { display: grid; gap: 10px; margin-top: 12px; }

/* ---------- Keyboard badges ---------- */
.df-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-sm); background: var(--ui-brand-soft); color: var(--ui-heading); border: 1px solid var(--ui-line-soft); font: 600 var(--fs-xs)/1 var(--df-mono); }
.df-kbd-badge { display: none; }
body.df-show-keys .df-kbd-badge { display: inline-flex; }
.df-kbd-float { position: absolute; top: -9px; inset-inline-end: -6px; z-index: 5; box-shadow: var(--ui-shadow-pop); }

/* ---------- Modals ---------- */
.df-overlay { position: fixed; inset: 0; background: var(--ui-overlay); z-index: var(--z-modal); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 20px; overscroll-behavior: contain; }
.df-overlay + .df-overlay { background: var(--ui-overlay-2); }
.df-modal { background: var(--ui-surface); border-radius: var(--r-3xl); width: min(960px, 100%); min-width: 0; max-width: 100%; max-height: calc(100vh - 40px); max-height: calc(100svh - 40px); display: flex; flex-direction: column; box-shadow: var(--ui-shadow-modal); }
.df-modal.is-sm { width: min(560px, 100%); }
.df-modal.is-md { width: min(760px, 100%); }
.df-modal-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ui-line); }
.df-modal-head h3 { margin: 0; font-size: var(--fs-lg); color: var(--ui-heading); min-width: 0; overflow-wrap: anywhere; display: flex; gap: 8px; align-items: center; font-weight: var(--fw-semibold); }
.df-modal-head .df-icon-btn { flex: none; }
.df-modal-body { padding: 16px 20px; overflow: auto; min-height: 0; flex: 1 1 auto; overscroll-behavior: contain; }
.df-modal-foot { flex: none; flex-wrap: wrap; display: flex; gap: 10px; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--ui-line); align-items: center; }

/* ---------- Popover menus ---------- */
.df-popover { position: absolute; z-index: var(--z-popover); background: var(--ui-surface); border: 1px solid var(--ui-line-strong); border-radius: var(--r-xl); box-shadow: var(--ui-shadow-pop); padding: 6px; min-width: 230px; }
.df-menu-item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); border: 0; background: none; cursor: pointer; text-align: start; color: var(--ui-ink); text-decoration: none; }
.df-menu-item svg { width: 16px; height: 16px; color: var(--ui-muted); }
.df-menu-item[aria-selected="true"], .df-menu-item:hover, .df-menu-item:focus-visible { background: var(--ui-hl); color: var(--ui-ink); text-decoration: none; }
.df-menu-item .df-kbd { margin-inline-start: auto; }
.df-menu-sep { height: 1px; background: var(--ui-line); margin: 4px 6px; }
.df-menu-item.is-danger, .df-menu-item.is-danger svg { color: var(--ui-error); }

/* ---------- Toasts ---------- */
.df-toasts { position: fixed; bottom: calc(var(--sb-h) + 32px); inset-inline-end: 24px; z-index: var(--z-floating); display: grid; gap: 8px; }
.df-toast { background: var(--ui-surface); border: 1px solid var(--ui-line); border-inline-start: 5px solid var(--ui-brand); border-radius: var(--r-xl); padding: 10px 14px; box-shadow: var(--ui-shadow-toast); display: flex; gap: 12px; align-items: center; min-width: 260px; font-size: var(--fs-md); color: var(--ui-ink); }
.df-toast.is-warn { border-inline-start-color: var(--ui-gold); }
.df-toast.is-error { border-inline-start-color: var(--ui-error); }

/* ---------- Cheat sheet ---------- */
.df-cheat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.df-cheat-group h4 { margin: 14px 0 6px; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .4px; color: var(--ui-muted); }
.df-cheat-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--ui-line); font-size: var(--fs-md); }

/* ---------- Banners ---------- */
.df-banner { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r-xl); background: var(--ui-warn-wash); color: var(--ui-warn-ink); font-size: var(--fs-md); margin-bottom: 14px; }
/* P07 "Try the simpler layout" banner: it sits just before .df-page (which every render replaces), so it takes the
   page's side padding itself; the text shares the icon's line and the buttons wrap under it on a phone */
.df-v2 > .df-preset-banner { margin: 22px 24px 0; align-items: center; }
.df-v2 > .df-preset-banner .df-preset-text { flex: 1 1 220px; }
@media (max-width: 900px) { .df-v2 > .df-preset-banner { margin: 16px 16px 0; } }
.df-banner.is-info { background: var(--ui-brand-soft); color: var(--ui-heading); }
.df-banner.is-error { background: var(--ui-error-wash); color: var(--ui-error); }
.df-banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ---------- Switch ---------- */
.df-switch { position: relative; display: inline-flex; width: 40px; height: 22px; flex: none; }
.df-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.df-switch span { position: absolute; inset: 0; background: var(--ui-switch-track); border-radius: var(--r-pill); transition: background .15s; }
.df-switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; background: var(--ui-switch-knob); border-radius: 50%; box-shadow: var(--ui-shadow-knob); transition: inset-inline-start .15s; }
.df-switch input:checked + span { background: var(--ui-brand); }
.df-switch input:checked + span::after { inset-inline-start: 21px; }
.df-switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--ui-brand-ring); }

/* ---------- Sticky save bar (ADDENDUM §3) ---------- */
.df-sb { position: fixed; bottom: 0; inset-inline-start: var(--df-sb-start, 0); inset-inline-end: 0; z-index: var(--z-savebar); background: var(--ui-chrome, var(--ui-surface)); border-top: 1px solid var(--ui-line); box-shadow: none; padding-bottom: env(safe-area-inset-bottom); transition: transform .18s ease; transform: translateZ(0); }
.df-sb-row { display: flex; align-items: center; gap: 10px; padding: 10px 24px; min-height: var(--sb-h); }
.df-sb-status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-md); color: var(--ui-muted); }
.df-sb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ui-line-strong); flex: none; }
.df-sb.is-dirty .df-sb-dot { background: var(--ui-gold); box-shadow: 0 0 0 4px var(--ui-gold-wash); }
.df-sb.is-dirty .df-sb-status { color: var(--ui-warn-ink); font-weight: var(--fw-semibold); }
.df-sb.is-error .df-sb-dot { background: var(--ui-error); box-shadow: 0 0 0 4px var(--ui-error-wash); }
.df-sb.is-error .df-sb-status { color: var(--ui-error); font-weight: var(--fw-semibold); cursor: pointer; }
.df-sb.is-saved .df-sb-dot { background: var(--ui-ok); }
.df-sb.is-saved .df-sb-status { color: var(--ui-ok); font-weight: var(--fw-semibold); }
.df-sb:not(.is-dirty):not(.is-error):not(.is-saving):not(.is-saved):not(.is-ro):not(.is-preview) .df-sb-status { visibility: hidden; }
.df-sb.is-preview .df-sb-status { color: var(--ui-muted); font-weight: 600; }        /* P07: the designer's form preview */
.df-sb.is-preview [data-sb-text] { display: inline-flex; align-items: center; gap: 6px; }
.df-sb [data-sb-discard][hidden], .df-sb [data-sb-act][hidden], .df-sb [data-sb-more][hidden] { display: none; }
/* one disabled look for every save-bar action, all themes: muted surface, muted text, no brand colour */
/* prototype parity (owner, 13 Oct): a disabled save-bar action keeps its own colour, dimmed (prototype app.css:81) */
.df-sb .df-btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.df-sb .df-btn[disabled]:hover { border-color: var(--ui-line-strong); }
.df-sb .df-btn-primary[disabled], .df-sb .df-btn-primary[disabled]:hover { background: var(--ui-primary-disabled); border-color: var(--ui-primary-disabled); }
.df-sb .df-btn-gold[disabled]:hover { background: var(--ui-gold); border-color: var(--ui-gold); }
.df-sb.is-saving .df-btn { pointer-events: none; }
.df-sb-btns { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; }
.df-sb-more { display: none; }
.df-sb-kbd { background: var(--ui-on-brand-wash) !important; color: var(--ui-on-brand) !important; border-color: var(--ui-on-brand-line) !important; }   /* prototype app.css:92 */
.df-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ui-on-brand-soft); border-top-color: var(--ui-on-brand); animation: df-spin .7s linear infinite; display: inline-block; }
@keyframes df-spin { to { transform: rotate(360deg); } }
.df-hintbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding: 6px 24px; background: var(--ui-bg); border-bottom: 1px solid var(--ui-line); font-size: var(--fs-sm); color: var(--ui-muted); }
.df-hintbar .df-hint-x { margin-inline-start: auto; }

/* ---------- Date field + calendar ---------- */
.df-date { position: relative; display: flex; }
.df-date .df-input { padding-inline-end: 42px; font-variant-numeric: tabular-nums; }
.df-date-btn { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--ui-muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.df-date-btn:hover { background: var(--ui-hl); color: var(--ui-heading); }
.df-date-btn svg { width: 17px; height: 17px; }
.df-date.is-ro .df-input { background: var(--ui-ro); border-color: var(--ui-line); color: var(--ui-ink); cursor: not-allowed; }   /* read-only: the same muted surface as every locked field */
.df-date-lock { color: var(--ui-warn-ink) !important; display: flex; gap: 5px; align-items: flex-start; line-height: 16px; }
.df-date-lock svg { width: 13px; height: 13px; flex: none; margin-top: 1.5px; }   /* centred on the first text line */
.df-cal { position: absolute; z-index: var(--z-picker); width: 292px; background: var(--ui-surface); border: 1px solid var(--ui-line-strong); border-radius: var(--r-2xl); box-shadow: var(--ui-shadow-pick); padding: 10px; color: var(--ui-ink); }
.df-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.df-cal-head b { font-size: var(--fs-base); color: var(--ui-heading); }
[dir="rtl"] .df-cal-head svg, [dir="rtl"] .df-tax-chip .df-tax-cycle { transform: scaleX(-1); }
.df-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.df-cal-dow { font-size: var(--fs-xs); color: var(--ui-muted); text-align: center; padding: 4px 0; font-weight: 600; }
.df-cal-d { height: 36px; border: 0; border-radius: var(--r-md); background: transparent; cursor: pointer; font-variant-numeric: tabular-nums; font-size: var(--fs-md); color: var(--ui-ink); }
.df-cal-d:hover { background: var(--ui-hl); }
.df-cal-d.is-out { color: var(--ui-icon); }
.df-cal-d.is-today { box-shadow: inset 0 0 0 1px var(--ui-gold); font-weight: var(--fw-semibold); }
.df-cal-d[data-focus] { box-shadow: inset 0 0 0 2px var(--ui-brand); }
.df-cal-d[aria-selected="true"] { background: var(--ui-primary); color: var(--ui-on-brand); font-weight: var(--fw-semibold); }
.df-cal-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--ui-line); margin-top: 8px; padding-top: 6px; font-size: var(--fs-xs); }

/* ---------- Business location in the page head (the one native select, styled list) ---------- */
.df-loc-sel { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.df-loc-sel > svg { position: absolute; width: 15px; height: 15px; pointer-events: none; }
.df-loc-sel > svg.df-loc-pin { inset-inline-start: 10px; color: var(--ui-gold-dark); }
.df-loc-sel > svg.df-loc-caret { inset-inline-end: 10px; width: 12px; height: 12px; color: var(--ui-muted); }
.df-loc-sel select { appearance: none; -webkit-appearance: none; height: 38px; min-width: 200px; max-width: 320px; padding-inline: 32px 30px; border: 1px solid var(--ui-line-strong); border-radius: var(--r-lg); background: var(--ui-surface); font-weight: 600; font-size: var(--fs-md); color: var(--ui-ink); cursor: pointer; }
.df-loc-sel select:hover { border-color: var(--ui-gold); }
.df-loc-sel select:focus { outline: none; border-color: var(--ui-brand); box-shadow: 0 0 0 3px var(--ui-brand-ring); }
.df-loc-sel.is-open select { border-color: var(--ui-gold); box-shadow: 0 0 0 3px var(--ui-gold-wash); }
.df-loc-sel .df-loc-static { height: 38px; display: inline-flex; align-items: center; padding-inline: 32px 12px; border: 1px solid var(--ui-line); border-radius: var(--r-lg); background: var(--ui-bg); font-weight: 600; font-size: var(--fs-md); }
.df-sel-list { position: fixed; z-index: var(--z-picker); max-height: min(360px, 70vh); overflow: auto; background: var(--ui-surface); border: 1px solid var(--ui-gold); border-radius: var(--r-xl); box-shadow: var(--ui-shadow-pick); padding: 6px; display: grid; gap: 2px; }
.df-sel-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: var(--r-md); background: transparent; cursor: pointer; text-align: start; font-size: var(--fs-md); font-weight: 600; color: var(--ui-ink); position: relative; }
.df-sel-ic { width: 26px; height: 26px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--ui-bg); color: var(--ui-muted); flex: none; }
.df-sel-ic svg { width: 14px; height: 14px; }
.df-sel-tx { flex: 1; min-width: 0; }
.df-sel-tag { font-size: var(--fs-xs); font-weight: var(--fw-semibold); padding: 2px 7px; border-radius: var(--r-sm); background: var(--ui-bg); color: var(--ui-muted); white-space: nowrap; }
.df-sel-ck { width: 18px; display: grid; place-items: center; color: var(--ui-gold-dark); flex: none; }
.df-sel-ck svg { width: 16px; height: 16px; stroke-width: 3; }
.df-sel-opt.is-active { background: var(--ui-brand-soft); color: var(--ui-brand-ink); }   /* rule 37 (owner 2 Nov): no gold-on-gold */
.df-sel-opt.is-active .df-sel-ic { background: var(--ui-surface); color: var(--ui-gold-dark); }
.df-sel-opt[aria-selected="true"] { background: var(--ui-gold); color: var(--ui-brand-dark); }
.df-sel-opt[aria-selected="true"] .df-sel-ic, .df-sel-opt[aria-selected="true"] .df-sel-tag { background: var(--ui-on-gold-wash); color: var(--ui-brand-dark); }
.df-sel-opt[aria-selected="true"] .df-sel-ck { color: var(--ui-brand-dark); }
.df-sel-opt[aria-selected="true"].is-active { background: var(--ui-gold-dark); color: var(--ui-on-brand); }
.df-sel-opt[aria-selected="true"].is-active .df-sel-ck, .df-sel-opt[aria-selected="true"].is-active .df-sel-tag { color: var(--ui-on-brand); }

/* ---------- Locked document ---------- */
.df-ro .df-cell, .df-ro .df-input, .df-ro .df-chip, .df-ro .df-tax-chip, .df-ro .df-btn-square { pointer-events: none; }

/* ---------- Scrollbars (thin, no track) ---------- */
.df-v2, .df-v2 * { scrollbar-width: thin; scrollbar-color: var(--ui-scroll-thumb) transparent; }
.df-v2 ::-webkit-scrollbar { width: 10px; height: 8px; background: transparent; }
.df-v2 ::-webkit-scrollbar-thumb { background: var(--ui-scroll-thumb); border-radius: var(--r-pill); border: 2px solid transparent; background-clip: padding-box; }
.df-v2 ::-webkit-scrollbar-thumb:hover { background: var(--ui-scroll-thumb-hover); border: 2px solid transparent; background-clip: padding-box; }
html.df-locked, html.df-locked #scrollable-container { overflow: hidden; }

/* ---------- Responsive: phone ≤ 640 · tablet ≤ 900 · laptop ≤ 1280 ---------- */
/* phone layout of the page's content (stacked line cards), by the page's width */
.df-page[data-cw="phone"] .df-col-9, .df-page[data-cw="phone"] .df-col-8, .df-page[data-cw="phone"] .df-col-6, .df-page[data-cw="phone"] .df-col-4, .df-page[data-cw="phone"] .df-col-3 { grid-column: span 12; }
.df-page[data-cw="phone"] .df-page { padding: 12px 12px 32px; }
.df-page[data-cw="phone"] .df-head { padding: 12px 14px; margin-bottom: 12px; border-radius: var(--r-xl); }
.df-page[data-cw="phone"] .df-head h1 { font-size: var(--fs-xl); }
.df-page[data-cw="phone"] .df-head .df-doc-tag { display: none; }
.df-page[data-cw="phone"] .df-head .df-loc-sel { order: 5; width: 100%; }
.df-page[data-cw="phone"] .df-head .df-loc-sel select { max-width: none; width: 100%; }
.df-page[data-cw="phone"] .df-card { padding: 14px; }
.df-page[data-cw="phone"] .df-party-card { flex-wrap: wrap; }
.df-page[data-cw="phone"] .df-party-card .df-pill { display: none; }
.df-page[data-cw="phone"] .df-group > .df-btn-square { align-self: flex-start; }
.df-page[data-cw="phone"] .df-lines thead { display: none; }
.df-page[data-cw="phone"] .df-lines, .df-page[data-cw="phone"] .df-lines tbody, .df-page[data-cw="phone"] .df-lines tr, .df-page[data-cw="phone"] .df-lines td { display: block; width: 100%; }
.df-page[data-cw="phone"] .df-lines tr.df-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; border: 1px solid var(--ui-line); border-radius: var(--r-xl); padding: 8px; margin-bottom: 10px; position: relative; }
.df-page[data-cw="phone"] .df-lines td { border: 0; padding: 0; width: auto !important; }
/* a card never grows wider than the screen: cells and their inputs shrink (the grid spilled out on the left in Arabic) */
.df-page[data-cw="phone"] .df-lines td, .df-page[data-cw="phone"] .df-lines td .df-cell { min-width: 0; max-width: 100%; }
.df-page[data-cw="phone"] .df-lines td.df-rowno { display: none; }
.df-page[data-cw="phone"] .df-lines td.df-item-cell { grid-column: 1 / -1; min-width: 0; padding-inline-end: 34px; }
.df-page[data-cw="phone"] .df-lines td.df-menu-cell { position: absolute; top: 6px; inset-inline-end: 6px; width: auto; }
.df-page[data-cw="phone"] .df-lines td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-xs); color: var(--ui-muted); padding: 0 8px; }
/* rule 8 on a phone: the lines' <thead> is hidden, so the line discount's "?" shows on the first card, beside its label
   (lane C's note, 12 Oct); on wider screens it stays in the column header */
.df-v2 .df-tip-card { display: none; }
.df-page[data-cw="phone"] .df-lines td.df-disc-cell { position: relative; }
.df-page[data-cw="phone"] .df-tip-card { display: block; position: absolute; top: 0; inset-inline-end: 8px; }
.df-page[data-cw="phone"] .df-tip-card .df-kit-tip { width: 18px; height: 18px; }
.df-page[data-cw="phone"] td.df-disc-cell:has(.df-tip-card)::before { padding-inline-end: 32px; }   /* the label never runs under the "?" (Arabic) */
.df-page[data-cw="phone"] .df-lines td.df-amount { grid-column: 1 / -1; text-align: end; padding-top: 4px !important; }
.df-page[data-cw="phone"] .df-row-panel td { padding: 10px !important; }
/* save bar on phone widths (the bar's own width) */
.df-sb[data-w="xs"] .df-sb-row { padding: 8px 12px; gap: 8px; }
.df-sb[data-w="xs"] .df-sb-status { position: absolute; bottom: 100%; inset-inline: 0; background: var(--ui-surface); border-top: 1px solid var(--ui-line); padding: 6px 12px; }
.df-sb[data-w="xs"]:not(.is-dirty):not(.is-error):not(.is-saving):not(.is-saved):not(.is-preview) .df-sb-status { display: none; }
.df-sb[data-w="xs"] [data-sb-secondary] { display: none; }
.df-sb[data-w="xs"] .df-sb-more { display: inline-grid; }
.df-sb[data-w="xs"] [data-sb-primary] { flex: 1; }
.df-sb[data-w="xs"] .df-sb-btns { flex: 1; }
.df-sb[data-w="xs"] .df-kbd { display: none; }
body.df-kb-open .df-sb[data-w="xs"] { transform: translateY(110%); }
/* layout by the page's own width (runtime watchPageWidth: data-cw), so a collapsed sidebar gives the form its room */
.df-page[data-cw="two"] .df-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.df-page:is([data-cw="one"], [data-cw="mid"], [data-cw="phone"]) .df-layout { grid-template-columns: minmax(0, 1fr); }
.df-page:is([data-cw="one"], [data-cw="mid"], [data-cw="phone"]) .df-summary { position: static; max-height: none; overflow: visible; }
/* SAL-UI-01 (owner 29 Oct): on a laptop-width screen (>=1280) Add Sale keeps the Summary beside the items even when the sidebar leaves the form under 1080 px */
@media (min-width: 1280px) {
  .df-v2[data-doc="final_sale"] .df-page[data-cw="one"] .df-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .df-v2[data-doc="final_sale"] .df-page[data-cw="one"] .df-summary { position: sticky; max-height: calc(100vh - var(--df-top, 0px) - var(--df-sb-height, 0px) - 28px); overflow-y: auto; }
}
.df-page[data-cw="mid"] :is(.df-col-4, .df-col-3) { grid-column: span 6; }
@media (max-width: 900px) {
  .df-page { padding: 16px 16px 32px; }
  .df-cheat-grid { grid-template-columns: 1fr; }
  .df-hintbar { display: none; }
}
@media (max-width: 640px) {
  .df-v2 { --sb-h: 58px; }
  /* modals as bottom sheets */
  .df-overlay { align-items: end; padding: 0; }
  .df-modal { width: 100% !important; border-radius: var(--r-3xl) var(--r-3xl) 0 0; max-height: 92vh; max-height: 92svh; }
  .df-modal-head { padding: 12px 14px 12px 16px; }
  .df-modal-head .df-kbd { display: none; }
  .df-modal-body { padding: 14px 16px; }
  .df-modal-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .df-modal-foot > .df-btn { flex: 1 1 auto; }
  .df-modal .df-hint, .df-modal .df-kbd { display: none; }
  .df-toasts { bottom: calc(var(--sb-h) + 46px); inset-inline: 12px; }
  .df-cal { position: fixed; left: 0 !important; right: 0 !important; top: auto !important; bottom: 0; width: 100%; border-radius: var(--r-3xl) var(--r-3xl) 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); }
  .df-cal-d { height: 44px; font-size: var(--fs-lg); }
  .df-sel-list { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0; min-width: 0 !important; border-radius: var(--r-3xl) var(--r-3xl) 0 0; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); border-width: 1px 0 0; }
  .df-sel-opt { min-height: 50px; font-size: var(--fs-lg); }
  /* W3b 4 Nov (item 1f): the item list is a full-width sheet under the cell (placeGridResults), 44 px rows */
  .df-lines .df-results { border-radius: 0 0 var(--r-xl) var(--r-xl); border-width: 1px 0; }
  .df-lines .df-res { min-height: 44px; align-items: center; }
  .df-lines .df-res-create { min-height: 44px; align-items: center; }
}
@media (hover: none) and (pointer: coarse) { button.df-kind-chip { min-height: 32px; padding: 4px 12px; } }
@media (hover: none) and (pointer: coarse) {
  .df-v2 input:not([type="checkbox"]):not([type="radio"]), .df-v2 select, .df-v2 textarea { font-size: max(16px, 1em); }
}
@media print { .df-sb, .df-head .df-loc-sel { display: none; } }

/* Midnight / Warm: outlined secondary actions, as the prototype's dark.css draws them */
:root[data-theme="dark"] .df-v2 .df-btn-square { background: transparent; border-color: #4f9d6d; color: #f2f4f3; }
/* WCAG AA (lane C's axe gate, 11 Oct 2026): white on the dark --ui-info (#2f8a55) is 4.3:1; a checked chip uses a deeper
   green in dark (5.9:1) so its label passes, in both dark styles */
:root[data-theme="dark"] .df-v2 .df-chip[aria-checked="true"]:not(.is-warn):not(.is-danger) { background: #2a7148; border-color: #2a7148; }
:root[data-theme="dark"] .df-v2 .df-btn-square:hover { background: rgba(79, 157, 109, .14); }
:root[data-theme="dark"] .df-v2 .df-sb .df-btn-gold { background: transparent; border-color: var(--ui-gold); color: #f2f4f3; }
:root[data-theme="dark"] .df-v2 .df-sb .df-btn-gold:hover { background: rgba(201, 168, 76, .12); }
/* the blank row's search field may run over its own empty cells, so the placeholder is never cut (tablet / desktop) */
.df-page:not([data-cw="phone"]) .df-lines tr.is-blank td.df-item-cell { overflow: visible; height: calc(var(--ui-cell-h) + 8px); }
.df-page:not([data-cw="phone"]) .df-lines tr.is-blank td.df-item-cell > input[data-col="item"] { position: absolute; top: 4px; inset-inline-start: 0; z-index: 1; width: max(100%, 340px); }

/* VAT rule: a line without a rate, or a 0% / exempt rate without its ZATCA reason */
.df-v2 .df-tax-chip.is-choose { border-style: dashed; color: var(--ui-warn-ink); background: var(--ui-warn-wash); }
.df-v2 .df-tax-chip.is-invalid { border-color: var(--ui-error); box-shadow: 0 0 0 3px var(--ui-error-wash); }
.df-v2 .df-vat-note { padding: 2px 4px 0; white-space: normal; font-size: var(--fs-xs); }
.df-v2 .df-vat-note a { color: inherit; text-decoration: underline; }

/* Save & share panel */
.df-v2 .df-share-sub { margin: 0 0 12px; }
.df-v2 .df-share-native { width: 100%; margin-bottom: 14px; }
.df-v2 .df-share-row { display: grid; gap: 6px; margin-bottom: 14px; }
.df-v2 .df-share-row .df-group { display: flex; gap: 8px; }
.df-v2 .df-share-note { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; }
.df-v2 .df-share-note svg { width: 14px; height: 14px; }
.df-v2 .df-share-row .df-share-link { overflow-wrap: anywhere; }
/* HF-SALE-01: Save & print prints through this frame on the same page (runtime.js printThenGo); the user never sees it */
.df-v2 .df-print-frame { position: fixed; inset-block-start: 0; inset-inline-start: 0; inline-size: 0; block-size: 0; border: 0; opacity: 0; pointer-events: none; }

/* focus and validation jumps land below the sticky top bar and above the save bar */
.df-v2 :is(input, select, textarea, button, a, [tabindex], .df-card, .df-field, tr, .df-banner) { scroll-margin-top: calc(var(--df-top, 0px) + 16px); scroll-margin-bottom: calc(var(--df-sb-height, 0px) + 16px); }
/* Details: groups without a heading keep the gap a heading gave them */
.df-v2 #df-footer .df-grid + .df-grid { margin-top: 18px; }
/* save bar: the status stays on one line; laptops (to 1599px) get compact buttons so all five actions fit */
.df-v2 .df-sb-status { white-space: nowrap; }
/* save bar tiers by the bar's own width (runtime placeBar: data-w): lg compact, md chips move to the tooltip,
   sm the less-used actions move into More, xs the phone bar */
.df-v2 .df-sb:is([data-w="lg"], [data-w="md"], [data-w="sm"]) .df-sb-row { gap: 8px; padding-inline: 16px; }
.df-v2 .df-sb:is([data-w="lg"], [data-w="md"], [data-w="sm"]) .df-sb-btns { gap: 8px; }
.df-v2 .df-sb:is([data-w="lg"], [data-w="md"], [data-w="sm"]) .df-btn-lg { padding: 10px 14px; gap: 6px; }
.df-v2 .df-sb:is([data-w="lg"], [data-w="md"], [data-w="sm"]) .df-kbd { padding: 0 4px; font-size: var(--fs-2xs); }
.df-v2 .df-sb[data-w="sm"] [data-sb-secondary]:not([data-sb-keep="2"]) { display: none; }
.df-v2 .df-sb[data-w="sm"] .df-sb-more { display: inline-grid; }
.df-v2 .df-sb:is([data-w="md"], [data-w="sm"]) [data-sb-secondary] .df-kbd { display: none; }      /* still in the tooltip and the shortcut sheet */
/* the compact laptop tier makes room for the sale page's five actions; a bar without secondary actions (no More button:
   the settings and kit form bars - Cancel, Discard, Save) has room and keeps the prototype's spacing (app.css:70, 92;
   doc-form.css:156, 294) */
.df-v2 .df-sb:is([data-w="lg"], [data-w="md"]):not(:has(.df-sb-more)) .df-sb-row { gap: 10px; padding-inline: 24px; }
.df-v2 .df-sb:is([data-w="lg"], [data-w="md"]):not(:has(.df-sb-more)) .df-sb-btns { gap: 10px; }
.df-v2 .df-sb:is([data-w="lg"], [data-w="md"]):not(:has(.df-sb-more)) .df-btn-lg { padding: 10px 24px; gap: 8px; }
.df-v2 .df-sb:is([data-w="lg"], [data-w="md"]):not(:has(.df-sb-more)) .df-kbd { padding: 0 5px; font-size: var(--fs-xs); }
/* phone save bar: compact buttons; Save takes the remaining width and can shrink, so nothing runs off the edge */
.df-v2 .df-sb[data-w="xs"] .df-btn-lg { padding: 10px 12px; min-height: 46px; }   /* the prototype's 46 px (doc-form.css:156); only the side padding is compact */
.df-v2 .df-sb[data-w="xs"] .df-sb-row { gap: 6px; }
.df-v2 .df-sb[data-w="xs"] .df-sb-btns { min-width: 0; gap: 6px; }
/* owner rule 1 (11 Oct 2026): the main action is always readable - it never shrinks below its label. On a phone,
   Cancel and Discard give way instead (icons, with their names in title / aria-label); a long status ellipsizes */
.df-v2 .df-sb [data-sb-primary] { flex: 1 0 auto; }
.df-v2 .df-sb[data-w="xs"] .df-sb-btns { flex: 1 0 auto; }          /* never narrower than its buttons (it shared the room with the spacer) */
.df-v2 .df-sb [data-sb-primary] > span:not(.df-kbd) { white-space: nowrap; }
.df-v2 .df-sb .df-sb-ic { display: none; }
/* prototype parity (owner, 13 Oct): the phone keeps the words Cancel / Discard (no icon-only buttons) */
.df-v2 .df-sb[data-w="xs"] [data-sb-cancel], .df-v2 .df-sb[data-w="xs"] [data-sb-discard] { padding-inline: 10px; min-width: 44px; justify-content: center; }
.df-v2 .df-sb .df-sb-status { min-width: 0; overflow: hidden; flex: 0 1 auto; }
.df-v2 .df-sb [data-sb-text] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Arabic screen font (rule 35, owner 2 Nov 2026): IBM Plex Sans Arabic, self-hosted WOFF2 400 / 500 / 600 (SIL OFL 1.1,
   public/fonts/IBMPlexSansArabic/OFL.txt), Arabic letters only: Latin text and digits stay Inter (first in --df-font-ar).
   One face per exact weight 100-900 like Inter and Almarai in app-v2.css: 100-400 Regular, 500 Medium, 600-900 SemiBold.
   Prints and PDFs keep Almarai (the @media print block below; mPDF templates never read this file). */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/IBMPlexSansArabic/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 100; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/IBMPlexSansArabic/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/IBMPlexSansArabic/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/IBMPlexSansArabic/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/IBMPlexSansArabic/IBMPlexSansArabic-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/IBMPlexSansArabic/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/IBMPlexSansArabic/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/IBMPlexSansArabic/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/IBMPlexSansArabic/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
/* doubled selectors: beat tokens.css (.df-v2, :root.df-app), which loads after this file and keeps token blocks only (KIT-TOK-005) */
@media print { .df-v2.df-v2, :root.df-app.df-app { --df-font-ar: "Almarai", "Segoe UI", Tahoma, sans-serif; } }
