/* MUNSHI MOBILE WAVE — screen re-skin (design_mw), P2. (c) 2026 MunshiAI SMC PVT LTD.
 *
 * The v2.css/pro.css pattern: ALWAYS loaded, EVERY rule scoped under [data-design="mw"] (shell.js
 * stamps it from the design_mw flag), so this file is INERT until a design_mw shop renders — legacy +
 * design_v2/pro shops are byte-identical. Re-skins the EXISTING screen markup (counterScreen JS is
 * untouched except named class/attr hooks); IA-parity by construction. Grep-able: at the group's
 * death-date the LEGACY rules for converted screens are deleted and [data-design="mw"] becomes the only
 * path. Colours/sizes mirror tokens-mw.css (kept literal here so this file stands alone like v2/pro).
 *
 * PR-2 = COUNTER ("Aaj"). Board 1 v38: 4 named elevations (search-first · dark Paisa-haath-mein tile ·
 * green first action tile · work-date→header chip) + a uniform treatment system. Salesman/repair
 * variants share the system (no elevations except search-first). pro-dash is untouched (gated !pro). */

/* ── page + greeting ───────────────────────────────────────────── */
[data-design="mw"] .main { background: #F6F5F0; }
/* PR-I COMPACT TITLE (KhataList.dc): 22px/800 bold title, paragraph FOLDED to one line (the sub-paragraph
 * wrapping to 2 lines was the vertical waste Muj flagged — folded, not hidden, so context survives; IA parity).
 * Shared via .page-head → B01's party screens go compact for free when they use the standard headline. */
/* FACE-2 Delta 7 (type parity): under mw the body is Inter (the app stack is Manrope-first but Manrope is
   NOT shipped → device-dependent body font; boards use Inter). off-flag body untouched. Money figures keep
   'Space Grotesk' via their own .ctr-v/.ctr-pval/.ctr-cval/.num rules. */
[data-design="mw"] body { font-family: Inter, system-ui, -apple-system, sans-serif; }
[data-design="mw"] .page-head h1 { font-size: 22px; font-weight: 800; color: #141F19; letter-spacing: -.02em; line-height: 1.15; }
[data-design="mw"] .page-head p { font-size: 11px; color: #77827A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-top: 2px; }

/* PR-I COMPACT CHIP-BUTTON — the "+ Naya …" actions sit in the controls row (13px, auto-width pill), never a
 * full-width hero block. Shared class `.mw-chip-btn` (B01's salary/loans/borrow/partners adopt it under mw). */
[data-design="mw"] .mw-chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; width: auto; min-width: 0; padding: 0 14px; border-radius: 99px; font: 700 13px/1 Inter, system-ui, sans-serif; background: #FFFFFF; border: 1px solid #E7E6DF; color: #141F19; cursor: pointer; white-space: nowrap; }
[data-design="mw"] .mw-chip-btn.primary, [data-design="mw"] .mw-chip-btn.btn-primary { background: linear-gradient(160deg, #0C8A55, #086B41); color: #fff; border: none; }
[data-design="mw"] .mw-chip-btn:hover { border-color: #0A7A4B; }

/* ── ELEVATION 1: search-first (the JS moves .ctr-search above the strip under design_mw) ── */
[data-design="mw"] .ctr-search { margin: 2px 0 14px; }
[data-design="mw"] .ctr-search input {
  min-height: 44px; background: #FFFFFF; border: 1.5px solid #0A7A4B; border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(10,122,75,.07); padding-left: 42px; font-size: 13.5px; color: #141F19;
}
[data-design="mw"] .ctr-search input::placeholder { color: #9AA49C; }
[data-design="mw"] .ctr-search .ctr-ico { color: #0A7A4B; }
[data-design="mw"] .ctr-search .ctr-scan-ico, [data-design="mw"] .ctr-search .ctr-kbd { color: #77827A; }

/* ── section heads + lens chips ─────────────────────────────────── */
[data-design="mw"] .ctr-group { margin-bottom: 16px; }
[data-design="mw"] .ctr-group-h {
  font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase; font-weight: 800; color: #77827A;
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
[data-design="mw"] .ctr-group-s { font-weight: 600; letter-spacing: 0; text-transform: none; color: #9AA49C; }
[data-design="mw"] .ctr-period { display: inline-flex; gap: 6px; margin-left: auto; }
[data-design="mw"] .ctr-period button {
  min-height: 22px; padding: 0 10px; border-radius: 8px; font: 700 10.5px/1 Inter, system-ui, sans-serif;
  background: #FFFFFF; border: 1px solid #E7E6DF; color: #141F19;
}
[data-design="mw"] .ctr-period button.active, [data-design="mw"] .ctr-period button[aria-pressed="true"] {
  background: #141F19; color: #fff; font-weight: 800; border-color: #141F19;
}
[data-design="mw"] .ctr-figs-eye {
  margin-left: auto; width: 26px; height: 26px; border-radius: 9px; background: #FFFFFF; border: 1px solid #E7E6DF; color: #77827A;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── KPI / dual tiles: white card + 3px LEFT category tick (board 80). colour ONLY on the tick ── */
[data-design="mw"] .ctr-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
[data-design="mw"] .ctr-kpi {
  background: #FFFFFF; border: 1px solid #E7E6DF; border-left: 3px solid #E7E6DF; border-radius: 13px;
  padding: 8px 11px; box-shadow: none; min-width: 0;
}
/* PR-G: dual tiles are HALF-WIDTH now (board 1/v38) — the old `.ctr-kpi-dual{grid-column:span 2}` is
 * DELETED (the design_mw dualKpi branch no longer emits .ctr-kpi-dual; it emits a plain half-width .ctr-kpi
 * with an inline .ctr-pair). */
[data-design="mw"] .ctr-k {
  font-size: 8.5px; letter-spacing: .4px; text-transform: uppercase; font-weight: 800; color: #77827A; margin-bottom: 3px;
}
[data-design="mw"] .ctr-v { font: 800 16px/1.15 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; color: #141F19; }
[data-design="mw"] .ctr-v.pos { color: #0A7A4B; }
[data-design="mw"] .ctr-v.neg { color: #C2410C; }
[data-design="mw"] .ctr-d { font-size: 10.5px; color: #9AA49C; margin-top: 2px; }
/* category ticks */
[data-design="mw"] .ctr-kpi[data-cat="bikri"]   { border-left-color: #0A7A4B; }
[data-design="mw"] .ctr-kpi[data-cat="maal"]    { border-left-color: #3B5BCC; }
[data-design="mw"] .ctr-kpi[data-cat="cash"]    { border-left-color: #0A7A4B; }
[data-design="mw"] .ctr-kpi[data-cat="kharcha"] { border-left-color: #C2410C; }
[data-design="mw"] .ctr-kpi[data-cat="udhaar"]  { border-left-color: #A15C07; }
[data-design="mw"] .ctr-kpi[data-cat="stock"]   { border-left-color: #8A6400; }
[data-design="mw"] .ctr-kpi[data-cat="bank"]    { border-left-color: #3B5BCC; }

/* ── ELEVATION 2: the ONE dark tile — Paisa haath mein (data-cat="money") ── */
[data-design="mw"] .ctr-kpi[data-cat="money"] { background: #141F19; border-color: #141F19; border-left-color: #141F19; }
[data-design="mw"] .ctr-kpi[data-cat="money"] .ctr-k { color: #9FACA3; }
[data-design="mw"] .ctr-kpi[data-cat="money"] .ctr-v { color: #FFFFFF; display: inline-block; border-bottom: 1px solid #2A352E; padding-bottom: 2px; }  /* bahi-khata rule on the number */
[data-design="mw"] .ctr-kpi[data-cat="money"] .ctr-v.neg { color: #FF9068; }
[data-design="mw"] .ctr-kpi[data-cat="money"] .ctr-d { color: #8C988F; }

/* ── PR-G: inline pair (board geometry) — combined label + two values on ONE baseline ──
 * Replaces the old stacked `.ctr-dual*` block (DELETED — the design_mw dualKpi branch no longer emits those
 * classes; this is what it emits now). primary 15px Space-Grotesk, companion 10.5px beside it. */
[data-design="mw"] .ctr-pair { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
[data-design="mw"] .ctr-pval { font: 700 15px/1.15 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; color: #141F19; white-space: nowrap; text-decoration: none; }
[data-design="mw"] .ctr-cval { font: 700 10.5px/1.2 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; color: #77827A; white-space: nowrap; text-decoration: none; }
[data-design="mw"] .ctr-pval.pos { color: #0A7A4B; } [data-design="mw"] .ctr-pval.neg { color: #C2410C; } [data-design="mw"] .ctr-pval.warn { color: #A15C07; }
[data-design="mw"] .ctr-cval.pos { color: #0A7A4B; } [data-design="mw"] .ctr-cval.neg { color: #C2410C; } [data-design="mw"] .ctr-cval.warn { color: #A15C07; }
[data-design="mw"] .ctr-kpi[data-cat="money"] .ctr-pval { color: #FFFFFF; }  /* dark tile keeps a white value */

/* PR-G action tiles — uniform compact height (board = 40px, 3-col grid already from PR-2); the uneven
 * heights came from WRAPPING subtitles → clamp the subtitle to one line so every tile is the same height. */
[data-design="mw"] .ctr-tiles .ctr-tile { min-height: 46px; padding: 6px 7px; justify-content: center; min-width: 0; }
[data-design="mw"] .ctr-tiles .ctr-tile > span:last-child { min-width: 0; display: flex; flex-direction: column; align-items: center; width: 100%; }
[data-design="mw"] .ctr-tiles .ctr-tile > span:last-child > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: 8.5px; opacity: .85; }
/* PR-J A1 — the TITLE (<b>) gets a shrink-to-fit clamp + nowrap ellipsis so a long label (Accessory/Marammat)
 * stays readable in a ~108px third instead of truncating to "ssory". clamp floor keeps it legible; ellipsis
 * only if it STILL overflows after shrinking. (grid fixed to minmax(0,1fr) above — tracks no longer grow.) */
[data-design="mw"] .ctr-tiles .ctr-tile > span:last-child > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: clamp(9px, 2.7vw, 11.5px); line-height: 1.1; }
/* PR-K board-1 — period chips INLINE in the AAJ—HARKAT group header (board 29-36). counter.js moves
 * periodToggleHtml() into .ctr-group-h under mw; it ships inline styles, so override with !important to
 * make it a compact right-aligned board-pill row (no card bg/margin, dark-active). data-period handlers
 * untouched. Custom-date inputs (flex-basis:100%) wrap to their own line when "Custom" is active. */
[data-design="mw"] .ctr-group-h { flex-wrap: wrap; }
[data-design="mw"] .ctr-period-mw { margin-left: auto; }
[data-design="mw"] .ctr-period-mw .ctr-period { margin: 0 !important; padding: 0 !important; background: transparent !important; border: none !important; gap: 4px !important; }
[data-design="mw"] .ctr-period-mw .ctr-period [data-period] { flex: none !important; padding: 0 9px !important; height: 22px !important; border-radius: 8px !important; font-size: 9px !important; font-weight: 800 !important; border: 1px solid #E7E6DF !important; }
[data-design="mw"] .ctr-period-mw .ctr-period [data-period][aria-pressed="true"] { background: #141F19 !important; color: #fff !important; border-color: #141F19 !important; }
[data-design="mw"] .ctr-period-mw .ctr-period [data-period][aria-pressed="false"] { background: #fff !important; color: #141F19 !important; }
/* PR-K board-1 — feed header carries the overdue/old-credit nudge as a compact amber ALERT chip on the
 * right of "ABHI ABHI · N" (board line 65), folded in from the standalone jaiza (suppressed under mw). */
[data-design="mw"] .ctr-sidehead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
[data-design="mw"] .ctr-feed-alert { margin-left: auto; font-size: 9px; font-weight: 800; color: #A15C07; text-decoration: none; white-space: nowrap; }
/* PR-K board-1 — feed rows carry a 3px left-accent by type (board lines 66-67): money-IN green / OUT
 * orange / khata amber / stock blue. The single neutral dot is replaced by the accent under mw. data-cat
 * set in counter.js (mw-gated on the row → off-flag keeps the dot, no accent). */
[data-design="mw"] .ctr-fr { border-left: 3px solid transparent; }
[data-design="mw"] .ctr-fr[data-cat="in"] { border-left-color: #0A7A4B; }
[data-design="mw"] .ctr-fr[data-cat="out"] { border-left-color: #C2410C; }
[data-design="mw"] .ctr-fr[data-cat="khata"] { border-left-color: #A15C07; }
[data-design="mw"] .ctr-fr[data-cat="stock"] { border-left-color: #3B5BCC; }
[data-design="mw"] .ctr-fr .ctr-fdot { display: none; }
/* PR-G: the two floating FABs are on NO board — hidden under mw (ORCH default; Mujaddad keep/kill pending).
 * sparkle = `.asst-fab` (Ask Munshi), yellow/amber = `.sticker-fab` (sticker quick-action, below the sparkle). */
[data-design="mw"] .asst-fab, [data-design="mw"] .sticker-fab { display: none; }

/* ── bank rows (inside a bank tile) ─────────────────────────────── */
[data-design="mw"] .ctr-banklist { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
[data-design="mw"] .ctr-bankrow { display: flex; justify-content: space-between; font-size: 11.5px; }
[data-design="mw"] .ctr-bankrow-n { color: #77827A; display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
[data-design="mw"] .ctr-bankdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
[data-design="mw"] .ctr-bankrow-v { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; font-weight: 700; }

/* ── jaiza nudges ───────────────────────────────────────────────── */
[data-design="mw"] .ctr-jaiza { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
[data-design="mw"] .ctr-jz {
  display: flex; justify-content: space-between; align-items: center; background: #FFF4E3; border: 1px solid #F2D4A0;
  border-radius: 12px; padding: 8px 12px; text-decoration: none;
}
[data-design="mw"] .ctr-jz-l { font-size: 12px; color: #A15C07; font-weight: 600; }
[data-design="mw"] .ctr-jz-v { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; font-weight: 800; color: #A15C07; }

/* ── ELEVATION 4: work-date bar → compact "● 24 Nov" chip. (Shipped IN-PLACE above the tiles, not moved
 *    into the page-head — avoids a page-head restructure + keeps the #ctrDate picker tappable via an
 *    opacity-0 overlay. Named deviation from "header top-right", flagged for Mujaddad.) ── */
[data-design="mw"] .ctr-datebar.mw-datechip {
  display: inline-flex; align-items: center; gap: 8px; width: auto; margin: -2px 0 14px; padding: 5px 12px;
  background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 10px; min-height: 0; box-shadow: none; position: relative;
}
[data-design="mw"] .ctr-datebar.mw-datechip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #0A7A4B; flex: none; }
[data-design="mw"] .ctr-datebar.mw-datechip .ctr-datebar-l { font-size: 10.5px; color: #77827A; font-weight: 600; }
[data-design="mw"] .ctr-datebar.mw-datechip .ctr-datebar-date { font-size: 11.5px; font-weight: 700; color: #141F19 !important; }
[data-design="mw"] .ctr-datebar.mw-datechip .ctr-datebar-sub { display: none; }
[data-design="mw"] .ctr-datebar.mw-datechip input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }  /* tap the chip → native date picker; #ctrDate handler intact */
[data-design="mw"] .ctr-datebar.mw-datechip .btn { position: relative; z-index: 1; }  /* "back to today" stays clickable above the overlay input */
[data-design="mw"] .ctr-datebar.mw-datechip.backdating { border-color: #F2D4A0; background: #FFF4E3; }
[data-design="mw"] .ctr-datebar.mw-datechip.backdating::before { background: #A15C07; }
[data-design="mw"] .ctr-datebar.mw-datechip.backdating .ctr-datebar-date { color: #A15C07 !important; }

/* ── section label + ELEVATION 3: action tiles (grid 3-col, first = green gradient) ── */
[data-design="mw"] .ctr-sec {
  font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase; font-weight: 800; color: #77827A; margin: 16px 0 8px;
}
[data-design="mw"] .ctr-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }  /* minmax(0,…) not 1fr: 1fr's implicit min=auto (content) let long tile labels grow tracks past the 351px container → tiles bled off-screen / text cut at 375px. 0-min forces equal thirds so the inner ellipsis (below) actually triggers. */
[data-design="mw"] .ctr-tile {
  min-height: 40px; border-radius: 12px; background: #FFFFFF; border: 1px solid #E7E6DF; color: #141F19;
  font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 7px 4px;
}
[data-design="mw"] .ctr-tile .ctr-ti { font-size: 11px; }
[data-design="mw"] .ctr-tiles .ctr-tile:first-child {
  background: linear-gradient(160deg, #0C8A55, #086B41); color: #fff; font-weight: 800; border-color: transparent;
  box-shadow: 0 6px 18px rgba(10,122,75,.28);
}
/* subtitle on the green tile = light-on-dark. base.css:3366 `.ctr-tile span span{color:var(--muted)}` (0,1,2)
 * forces a grey subtitle that reads as dim-grey-on-green (Mujaddad); this (0,4,2) beats it. Title <b> already
 * inherits the tile's #fff. */
[data-design="mw"] .ctr-tiles .ctr-tile:first-child > span > span { color: rgba(255,255,255,.78); }

/* ── feed: 3px left category tick, Space Grotesk amounts, ellipsis title ── */
[data-design="mw"] .ctr-sidehead {
  font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase; font-weight: 800; color: #77827A; margin: 16px 0 8px;
}
[data-design="mw"] .ctr-feed { display: flex; flex-direction: column; gap: 6px; }
[data-design="mw"] .ctr-fr {
  display: flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid #E7E6DF;
  border-left: 3px solid #E7E6DF; border-radius: 12px; padding: 9px 12px; text-decoration: none;
}
[data-design="mw"] .ctr-fr .ctr-ft { font-size: 12.5px; font-weight: 700; color: #141F19; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
[data-design="mw"] .ctr-fr .ctr-fm { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; font-weight: 700; flex: none; }
[data-design="mw"] .ctr-fr .ctr-fdot { flex: none; }
[data-design="mw"] .ctr-fr[data-cat="bikri"] { border-left-color: #0A7A4B; } [data-design="mw"] .ctr-fr[data-cat="cash"] { border-left-color: #0A7A4B; }
[data-design="mw"] .ctr-fr[data-cat="kharcha"] { border-left-color: #C2410C; } [data-design="mw"] .ctr-fr[data-cat="udhaar"] { border-left-color: #A15C07; }
[data-design="mw"] .ctr-fr[data-cat="maal"] { border-left-color: #3B5BCC; } [data-design="mw"] .ctr-fr[data-cat="bank"] { border-left-color: #3B5BCC; }

/* ── uniform card treatment for the rest (checklist/onboarding/review/stale-cash/partner): white token card, no elevation ── */
[data-design="mw"] .ctr-datebar:not(.mw-datechip) { background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 13px; }
[data-design="mw"] .ctr-grid { display: block; }   /* phone-first single column; feed stacks under tiles (IA order preserved) */

/* ════════════════════════════════════════════════════════════════════════════
 * PR-3 = SELL / EXCHANGE / BULK (the Bech-hub trade-form family). v38: the live
 * sellForm, re-skinned in the SAME treatment system as PR-2 (no new elevations —
 * these are forms, not a dashboard). Scoped under `.sell-grid` (base.css's shared
 * trade-form grid, present on single-sell, bulk-sell AND exchange — mirrors the
 * v2.css `.sell-grid .card` precedent), so it re-skins ONLY the trade forms and
 * never bleeds onto other screens' generic .card/.field/.section-head. PURE CSS —
 * screens-b.js is untouched; .main bg + .page-head are already handled globally
 * above. IA-parity by construction: no row/field/step moved, added or removed. ── */

/* cards — white token card (base.card shadow/radius overridden) */
[data-design="mw"] .sell-grid .card {
  background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 16px; box-shadow: none;
}
/* step headers "1 · Pick phone" (inline font-size:16px kept — readable step head) */
[data-design="mw"] .sell-grid .section-head h2 { color: #141F19; font-weight: 800; letter-spacing: -.01em; }
[data-design="mw"] .sell-grid .section-head .hint-text { color: #9AA49C; font-size: 10.5px; }

/* search-first field (mirrors .ctr-search) */
[data-design="mw"] .sell-grid .search-bar input {
  min-height: 44px; background: #FFFFFF; border: 1.5px solid #0A7A4B; border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(10,122,75,.07); font-size: 13.5px; color: #141F19;
}
[data-design="mw"] .sell-grid .search-bar input::placeholder { color: #9AA49C; }
[data-design="mw"] .sell-grid .search-bar .btn-ghost { border-radius: 10px; border: 1px solid #E7E6DF; color: #77827A; background: #FFFFFF; }

/* phone-picker rows — white row card + green tick on the selected one */
[data-design="mw"] .sell-grid .dev-list { display: flex; flex-direction: column; gap: 6px; }
[data-design="mw"] .sell-grid .dev-row {
  background: #FFFFFF; border: 1px solid #E7E6DF; border-left: 3px solid #E7E6DF; border-radius: 12px;
  padding: 9px 12px; display: flex; align-items: center; gap: 10px;
}
[data-design="mw"] .sell-grid .dev-row.selected { border-color: #0A7A4B; border-left-color: #0A7A4B; background: #F1F7F3; }
[data-design="mw"] .sell-grid .dev-row .model { font-size: 13px; font-weight: 700; color: #141F19; }
[data-design="mw"] .sell-grid .dev-row .imei { font-size: 11px; color: #77827A; }
[data-design="mw"] .sell-grid .dev-row .num { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; font-weight: 700; color: #141F19; }
[data-design="mw"] .sell-grid .picker-more { font-size: 11px; color: #9AA49C; margin-top: 6px; }

/* phone-summary callout (info) — soft green card, not the default blue */
[data-design="mw"] .sell-grid .callout.info {
  background: #F1F7F3; border: 1px solid #D8E8DF; border-radius: 14px; color: #1C6B46;
}
[data-design="mw"] .sell-grid .callout.info strong { color: #141F19; }

/* form fields — label + input/select treatment (mirror .ctr/kit field language) */
[data-design="mw"] .sell-grid .field label { font-size: 10.5px; font-weight: 700; color: #77827A; letter-spacing: .2px; }
[data-design="mw"] .sell-grid .field input,
[data-design="mw"] .sell-grid .field select {
  min-height: 44px; background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 12px; font-size: 13.5px; color: #141F19;
}
[data-design="mw"] .sell-grid .field input:focus,
[data-design="mw"] .sell-grid .field select:focus {
  border-color: #0A7A4B; box-shadow: 0 0 0 3px rgba(10,122,75,.07); outline: none;
}
[data-design="mw"] .sell-grid .field .hint-text { font-size: 10.5px; color: #9AA49C; }
[data-design="mw"] .sell-grid .num { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }

/* party picker (searchable-select) — mirror the v2 .ss treatment in mw tokens */
[data-design="mw"] .sell-grid .ss-btn { border-radius: 12px; border: 1px solid #E7E6DF; background: #FFFFFF; min-height: 44px; }
[data-design="mw"] .sell-grid .ss-btn:hover { border-color: #0A7A4B; }
[data-design="mw"] .sell-grid .ss:focus-within .ss-btn, [data-design="mw"] .sell-grid .ss-btn:focus-within {
  border-color: #0A7A4B; box-shadow: 0 0 0 3px rgba(10,122,75,.07); outline: none;
}
[data-design="mw"] .sell-grid .ss-pop { border-radius: 14px; border: 1px solid #E7E6DF; }
[data-design="mw"] .sell-grid .ss-opt.sel { background: #F1F7F3; color: #0A7A4B; font-weight: 700; }

/* party chips (walk-in / customer / shop-to-shop / wholesaler) = .chip.pp-kind; active = green pill */
[data-design="mw"] .sell-grid .chip {
  border-radius: 10px; border: 1px solid #E7E6DF; background: #FFFFFF; color: #141F19; font-weight: 700;
}
[data-design="mw"] .sell-grid .chip.active {
  background: #0A7A4B; border-color: #0A7A4B; color: #FFFFFF;
}

/* empty states (before a phone is picked) */
[data-design="mw"] .sell-grid .pick-empty { color: #9AA49C; }
[data-design="mw"] .sell-grid .pick-empty-t { color: #141F19; font-weight: 700; }

/* ════════════════════════════════════════════════════════════════════════════
 * PR-K boards 2+3 — design_mw SELL rebuild (screens-b.js sellScreenMw). Board 3 = bottom-sheet picker;
 * board 2 = chosen-phone band + 2-col money hero + sticky gradient CTA. Same fields/hooks — the sheet
 * shell + styling only; off-flag keeps the legacy 2-card layout. ════════════════════════════════════ */
/* board 3 — PhonePicker bottom SHEET (shown when no phone chosen; closes on pick via rerender) */
[data-design="mw"] .mw-sell-scrim { position: fixed; inset: 0; background: rgba(23,31,27,.45); z-index: 60; }
/* z-61 keeps the sheet BELOW the fixed nav (z-4000) + topbar (z-5000) so both stay visible and tappable
 * over it — the nav is the guaranteed escape (no "pick or be trapped"). padding-bottom clears the nav bar
 * so the list's last rows aren't hidden behind it. */
[data-design="mw"] .mw-sell-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; display: flex; flex-direction: column; max-height: 82vh; background: #F6F5F0; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.25); padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
[data-design="mw"] .mw-sheet-grip { width: 40px; height: 5px; border-radius: 99px; background: #CDD3CE; margin: 12px auto 0; flex: none; }
[data-design="mw"] .mw-sheet-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 20px 0; flex: none; }
[data-design="mw"] .mw-sheet-title { font-size: 19px; font-weight: 800; color: #141F19; letter-spacing: -.2px; }
[data-design="mw"] .mw-sheet-count { font-size: 12px; color: #77827A; font-weight: 600; }
[data-design="mw"] .mw-sell-sheet .mw-sheet-search { margin: 13px 20px 0; flex: none; }
[data-design="mw"] .mw-sheet-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 12px 14px 0; padding: 0 6px 6px; }
[data-design="mw"] .mw-sell-sheet .picker-more { margin: 0 20px; flex: none; }

/* board 2 — chosen-phone band (replaces the legacy .callout under mw; the band is the "badlein" trigger) */
[data-design="mw"] .mw-sell .callout.info { display: none; }
[data-design="mw"] .mw-sell-chosen { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; background: #E9F4EE; border: 1px solid #BFE0CE; border-radius: 13px; padding: 9px 13px; cursor: pointer; }
[data-design="mw"] .mw-sell-chosen-t { font-size: 12.5px; font-weight: 800; color: #085C39; }
[data-design="mw"] .mw-sell-chosen-s { font-size: 9.5px; color: #085C39; margin-top: 2px; }
[data-design="mw"] .mw-sell-chosen-s b { font-family: 'Space Grotesk', Inter, sans-serif; }
[data-design="mw"] .mw-sell-chosen-ch { font-size: 10.5px; color: #0A7A4B; font-weight: 800; flex: none; }

/* board 2 — 2-col MONEY HERO (price | received): bordered cards, big Space-Grotesk value, borderless input */
[data-design="mw"] .mw-sell .field:has(> input[name="price"]),
[data-design="mw"] .mw-sell .field:has(> input[name="received"]) { background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 13px; padding: 8px 12px; }
[data-design="mw"] .mw-sell .field:has(> input[name="price"]) { border: 1.5px solid #0A7A4B; box-shadow: 0 0 0 3px rgba(10,122,75,.07); }
[data-design="mw"] .mw-sell .field:has(> input[name="price"]) > label,
[data-design="mw"] .mw-sell .field:has(> input[name="received"]) > label { font-size: 8.5px; font-weight: 800; }
[data-design="mw"] .mw-sell .field:has(> input[name="price"]) > input,
[data-design="mw"] .mw-sell .field:has(> input[name="received"]) > input { min-height: 0 !important; border: none !important; background: transparent !important; box-shadow: none !important; padding: 2px 0 0 !important; font-family: 'Space Grotesk', Inter, sans-serif; font-size: 19px; font-weight: 700; color: #141F19; }

/* board 2 — sticky gradient CTA footer (the final .field.full holds the commit + quote buttons) */
[data-design="mw"] .mw-sell-formcard form > .field.full:last-child { position: sticky; bottom: 0; margin: 4px -14px 0; padding: 9px 14px calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #FFFFFF 72%, rgba(255,255,255,0)); }
[data-design="mw"] .mw-sell-formcard .btn-commit { height: 54px; border-radius: 16px; font-size: 15px; font-weight: 800; box-shadow: 0 8px 24px rgba(10,122,75,.3); }

/* board 2 — B01 wrappers (escape the base.css:1511 mobile 1-col form-grid so these sit 2-col). */
/* .mw-sell-moneypair = the price | received HERO pair (my :has() hero styling above targets the fields). */
[data-design="mw"] .mw-sell-moneypair { display: flex; gap: 7px; }
[data-design="mw"] .mw-sell-moneypair > .field { flex: 1; margin: 0; }
[data-design="mw"] .mw-sell-moneypair > .field:first-child { flex: 1.2; }   /* price card slightly wider (board line 38) */
/* .mw-sell-prevtiles = MUNAFA (green) | KHATA PREVIEW (amber) tiles (board lines 55-56). Order-independent:
 * green keyed on #profitPreview, amber on #sellKhataCard, so it holds whatever order B01 wrapped them in. */
[data-design="mw"] .mw-sell-prevtiles { display: flex; gap: 7px; align-items: stretch; }
[data-design="mw"] .mw-sell-prevtiles > .field { flex: 1; margin: 0; min-width: 0; }
[data-design="mw"] .mw-sell-prevtiles > #sellKhataCard { flex: 1.3; }
[data-design="mw"] .mw-sell-prevtiles .card { margin: 0 !important; box-shadow: none; border-radius: 13px; padding: 8px 12px !important; }
[data-design="mw"] .mw-sell-prevtiles .field:has(#profitPreview) .card { background: #E9F4EE !important; border: 1px solid #BFE0CE !important; }
[data-design="mw"] .mw-sell-prevtiles #sellKhataCard .card { background: #FBF3E3 !important; border: 1px solid #F2D4A0 !important; }

/* primary commit = the green gradient (same recipe as the first action tile); ghost = white */
[data-design="mw"] .sell-grid .btn-primary, [data-design="mw"] .sell-grid .btn-commit {
  background: linear-gradient(160deg, #0C8A55, #086B41); color: #fff; font-weight: 800; border: none;
  border-radius: 12px; box-shadow: 0 6px 18px rgba(10,122,75,.28);
}
[data-design="mw"] .sell-grid .btn-ghost {
  background: #FFFFFF; border: 1px solid #E7E6DF; color: #141F19; font-weight: 700; border-radius: 12px; box-shadow: none;
}
/* NOTE (named long-tail, not a miss): the profit-preview + live-khata summary cards keep their
 * INLINE semantic wash (profit=brand, udhaar=amber) — a left category tick on them needs a JS
 * data-cat hook + fighting inline bg; deferred to the fast-follow tick pass. The mode toggle
 * (.subnav "One phone / Bulk") is a shared component sibling OUTSIDE .sell-grid → left legacy for
 * now (reachable only with a sell-only JS hook); named for the fast-follow. */

/* ════════════════════════════════════════════════════════════════════════════
 * PR-4 = MONEY SHEETS (openAmountForm · openExpense). The two money-entry modals,
 * re-skinned in the treatment system. Scoped to the two FORM IDS — `#amountForm`
 * (openAmountForm, ui.js) + `#ctrExpForm` (openExpense, counter.js) — NOT bare
 * `.modal`, so ONLY the money sheets change and every other modal (customer form,
 * booking, invoice, choosers…) is byte-identical. Handlers UNTOUCHED (both renderers
 * + their submit/bind code are unchanged — this is pure overlay CSS). All-browser
 * (no `:has()`); works on the legacy build. The modal shell chrome (title / ✕ /
 * sheet container) is left base — it's already a clean white sheet; the form-internal
 * treatment + a money-first amount emphasis is the deliverable. ── */

/* money-first: the amount input is the hero of a money sheet — big Space-Grotesk figure.
 * NOTE: `.field` is REQUIRED in the selector — the amount input sits inside a `.field`, so the
 * generic `#form .field input` rule below ties this on specificity; `.field input[name]` = (1,3,1)
 * beats that rule's (1,2,1) so the hero size/height actually win. (Tester PR-4 specificity catch.) */
[data-design="mw"] #amountForm .field input[name="amount"],
[data-design="mw"] #ctrExpForm .field input[name="amount"] {
  font: 700 22px/1.2 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums;
  min-height: 54px; color: #141F19; letter-spacing: -.01em;
}

/* fields — same language as the sell form (44px white r12, green focus ring) */
[data-design="mw"] #amountForm .field label,
[data-design="mw"] #ctrExpForm .field label { font-size: 10.5px; font-weight: 700; color: #77827A; letter-spacing: .2px; }
[data-design="mw"] #amountForm .field input, [data-design="mw"] #amountForm .field select,
[data-design="mw"] #ctrExpForm .field input, [data-design="mw"] #ctrExpForm .field select {
  min-height: 44px; background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 12px; font-size: 13.5px; color: #141F19;
}
[data-design="mw"] #amountForm .field input:focus, [data-design="mw"] #amountForm .field select:focus,
[data-design="mw"] #ctrExpForm .field input:focus, [data-design="mw"] #ctrExpForm .field select:focus {
  border-color: #0A7A4B; box-shadow: 0 0 0 3px rgba(10,122,75,.07); outline: none;
}
[data-design="mw"] #amountForm .hint-text, [data-design="mw"] #ctrExpForm .hint-text { color: #9AA49C; }

/* chips — "Yeh kya hai?" toggle (.chip.active) + expense categories (.chip.chip-on); active = green pill */
[data-design="mw"] #amountForm .chip, [data-design="mw"] #ctrExpForm .chip {
  border-radius: 10px; border: 1px solid #E7E6DF; background: #FFFFFF; color: #141F19; font-weight: 700;
}
[data-design="mw"] #amountForm .chip.active, [data-design="mw"] #amountForm .chip.chip-on,
[data-design="mw"] #ctrExpForm .chip.active, [data-design="mw"] #ctrExpForm .chip.chip-on {
  background: #0A7A4B; border-color: #0A7A4B; color: #FFFFFF;
}

/* searchable-select (if a category/account uses it) — mw tokens, inert when absent */
[data-design="mw"] #amountForm .ss-btn, [data-design="mw"] #ctrExpForm .ss-btn {
  border-radius: 12px; border: 1px solid #E7E6DF; background: #FFFFFF; min-height: 44px;
}
[data-design="mw"] #amountForm .ss-btn:focus-within, [data-design="mw"] #ctrExpForm .ss-btn:focus-within {
  border-color: #0A7A4B; box-shadow: 0 0 0 3px rgba(10,122,75,.07); outline: none;
}

/* owner "own expense" check-row + the expense-ledger link */
[data-design="mw"] #ctrExpForm .check-row { color: #77827A; font-size: 13px; }
[data-design="mw"] #ctrExpForm .btn-linklike { color: #0A7A4B; font-weight: 700; }

/* actions — primary = green gradient (system), cancel = white ghost */
[data-design="mw"] #amountForm .form-actions .btn-primary, [data-design="mw"] #ctrExpForm .form-actions .btn-primary {
  background: linear-gradient(160deg, #0C8A55, #086B41); color: #fff; font-weight: 800; border: none;
  border-radius: 12px; box-shadow: 0 6px 18px rgba(10,122,75,.28);
}
[data-design="mw"] #amountForm .form-actions .btn-ghost, [data-design="mw"] #ctrExpForm .form-actions .btn-ghost {
  background: #FFFFFF; border: 1px solid #E7E6DF; color: #141F19; font-weight: 700; border-radius: 12px; box-shadow: none;
}
/* NOTE (named scope): modal shell chrome (title <h3> / ✕ .modal-x / .modal-sheet container) left base —
 * siblings OUTSIDE the form, reachable only via :has() (not on the legacy build) or a gated JS marker.
 * Deferred; the base sheet is already clean white + dark title, so no regression. The expense SUCCESS
 * surface ("Aur kharcha / Theek hai") is a separate openModal → its own fast-follow, named not missed. */

/* ════════════════════════════════════════════════════════════════════════════
 * PR-6 = IN-FLOW CONSISTENCY SWEEP — the surfaces reachable in ≤1 TAP from the 4 skinned
 * screens were LEGACY, so a skinned flow mixed old+new and read broken (Muj live-drive catch).
 * A screen-group is DONE only when its one-tap-reachable surfaces are consistent. Skin each to
 * the mw treatment + a NEUTRAL `.modal` base so any not-yet-bespoke surface still reads mw and
 * never visually breaks. All `[data-design="mw"]`-scoped — reaches #ctrFlow + #modal-root (both
 * under <html data-design=mw>). TOKENS-ONLY (no layout/structure changed) → off-flag byte-identical. */

/* counter FLOW overlay = the "Phone chunein" step-1 CANVAS (Sell/Buy/Exchange hosted from the
 * counter render in #ctrFlow, NOT in .main — so .main's mw bg never reached them: the cards were
 * skinned but floated on a legacy canvas). base .ctr-flow-panel = var(--bg); mw = the #F6F5F0 canvas. */
[data-design="mw"] .ctr-flow-panel, [data-design="mw"] .ctr-flow-body { background: #F6F5F0; }
[data-design="mw"] .ctr-flow-bar { background: #FFFFFF; border-bottom: 1px solid #E7E6DF; }
[data-design="mw"] .ctr-flow-back { color: #0A7A4B; background: #EAF4EF; border-radius: 10px; font-weight: 700; }
[data-design="mw"] .ctr-flow-title { color: #141F19; font-weight: 800; }
[data-design="mw"] .ctr-flow-stay { color: #0A7A4B; background: #FFFFFF; border: 1px solid #CFE6DB; border-radius: 999px; font-weight: 700; }  /* "isi page par" chip */

/* "Kya bechna hai?" + cash / reserve / cart-add choosers (.pick) → mw card rows */
[data-design="mw"] .pick { background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 14px; }
[data-design="mw"] .pick:hover:not(:disabled), [data-design="mw"] .pick:focus-visible { border-color: #0A7A4B; background: #F1F7F3; }
[data-design="mw"] .pick-ico { color: #0A7A4B; }
[data-design="mw"] .pick-t { color: #141F19; font-weight: 700; }
[data-design="mw"] .pick-s { color: #77827A; }

/* accessory / gadget pickers (.gs-item rows) + the modal search input */
[data-design="mw"] .modal .input {
  min-height: 44px; background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 12px; font-size: 13.5px; color: #141F19;
}
[data-design="mw"] .modal .input:focus { border-color: #0A7A4B; box-shadow: 0 0 0 3px rgba(10,122,75,.07); outline: none; }
[data-design="mw"] .gs-item { background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 12px; }
[data-design="mw"] .gs-item:hover, [data-design="mw"] .gs-item.active { background: #F1F7F3; border-color: #0A7A4B; }
[data-design="mw"] .gs-title { color: #141F19; font-weight: 700; }
[data-design="mw"] .gs-sub { color: #77827A; }
[data-design="mw"] .gs-money { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }
[data-design="mw"] .gs-money.pos { color: #0A7A4B; }

/* NEUTRAL mw modal base — safety net so a deferred ≤1-tap modal (sale-success / receipt, quotation,
 * confirm dialogs) still reads mw, never half-broken. Fonts/colours/surface only; bespoke skins above
 * override. Also closes PR-4's named-deferred modal TITLE (h3) gap → titles now mw across all modals. */
[data-design="mw"] .modal { background: #FFFFFF; }
[data-design="mw"] .modal h3 { color: #141F19; font-weight: 800; }
[data-design="mw"] .modal .hint-text { color: #9AA49C; }
[data-design="mw"] .modal-x { color: #77827A; }
[data-design="mw"] .modal .btn-primary { background: linear-gradient(160deg, #0C8A55, #086B41); color: #fff; border: none; }
/* PR-J B4 — the UNIFIED money sheet: openAmountForm passes {sheet} under mw so every money action is the
 * board-4/5 bottom sheet (ui.js). base.css:969 bottom-anchors .modal-sheet; this adds the board grab handle
 * + rounded top so it reads as a sheet, not a card. (Numpad entry = declared follow; the hero-amount input
 * + Wasooli/Advance choice chips already come from PR-4 + opts.choice.) */
[data-design="mw"] .modal.modal-sheet { border-radius: 24px 24px 0 0; }
[data-design="mw"] .modal.modal-sheet::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 99px; background: #CDD3CE; margin: -6px auto 12px; }
/* board 4 — the "Yeh kya hai?" Wasooli/Advance toggle (openAmountForm opts.choice = .amt-choice) renders as a
 * full-width SEGMENTED control inside the sheet (board lines 21-22: green-active tabs). data-amt-choice
 * handler untouched. Only inside the sheet (.modal-sheet absent off-mw → off-flag unchanged). */
[data-design="mw"] .modal-sheet .amt-choice { display: flex; gap: 5px; background: #F2F1EB; border-radius: 13px; padding: 4px; }
[data-design="mw"] .modal-sheet .amt-choice .chip { flex: 1; justify-content: center; text-align: center; border: none; background: transparent; border-radius: 11px; font-weight: 700; color: #141F19; min-height: 0; }
[data-design="mw"] .modal-sheet .amt-choice .chip.active { background: #0A7A4B; color: #fff; }
/* board 69 SplitPay — look applied to the CURRENT split model only (Cash+Bank via bank.js
 * splitFieldHtml; cash is DERIVED, bank is the one input, udhaar = implicit remainder). The
 * three-explicit-reconciling-legs MODEL is a behavior change → on Mujaddad's decision list, NOT built.
 * This frames #amtSplitWrap as a board leg-card with Space-Grotesk tabular amounts (green cash /
 * neutral bank). ids are stable (openAmountForm passes id:'amtSplit'); bank.js markup + readSplit
 * untouched; off-flag / non-sheet = byte-identical. */
[data-design="mw"] .modal-sheet #amtSplitWrap { background: #fff; border: 1px solid #E7E6DF; border-radius: 16px; padding: 13px 14px; }
[data-design="mw"] .modal-sheet #amtSplitWrap > label { color: #141F19; font-weight: 800; }
[data-design="mw"] .modal-sheet #amtSplitWrap .hint-text { color: #77827A; font-weight: 600; }
[data-design="mw"] .modal-sheet #amtSplitWrap #amtSplitCash,
[data-design="mw"] .modal-sheet #amtSplitWrap #amtSplitAmt { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; font-size: 19px; font-weight: 700; }
[data-design="mw"] .modal-sheet #amtSplitWrap #amtSplitCash { color: #0A7A4B; }

/* board 70 ReturnPhone (design_mw) — SKIN of the existing return modal (shell.js openReturnModal): the sale
 * summary card + reason chips. Money controls/logic (mode/deduction/refund/method + returnSale) UNTOUCHED;
 * off-flag the card + chips don't render (shell.js gates them) → byte-identical. The richer return MODEL
 * (udhaar-net radio-card · exchange-as-return · phone-halat→repair bucket) = Mujaddad's decision list. */
[data-design="mw"] .mw-ret-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid #E7E6DF; border-radius: 18px; padding: 13px 15px; margin-bottom: 14px; }
[data-design="mw"] .mw-ret-sum .mw-ret-st { font-size: 13.5px; font-weight: 800; color: #141F19; }
[data-design="mw"] .mw-ret-sum .mw-ret-ss { font-size: 11px; color: #77827A; margin-top: 1px; }
[data-design="mw"] .mw-ret-sum .mw-ret-amt { font-size: 15px; font-weight: 700; color: #141F19; font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; flex: none; }
[data-design="mw"] .mw-ret-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
[data-design="mw"] .mw-ret-chip { height: 34px; padding: 0 13px; border-radius: 11px; border: 1px solid #E7E6DF; background: #fff; color: #141F19; font-size: 12px; font-weight: 700; cursor: pointer; }
[data-design="mw"] .mw-ret-chip.active { background: #141F19; color: #fff; border-color: #141F19; font-weight: 800; }

/* board 71 CustomerEdit (design_mw) — SKIN of openCustomerForm (customers.js, edit mode): bottom sheet
 * (grab-handle via .modal-sheet) + avatar header + board caps-labels. Fields + dup-guard + create/update
 * calls UNTOUCHED; off-flag = centred modal, byte-identical. 2nd-phone / inline-dup-merge = Mujaddad's list. */
[data-design="mw"] .mw-custedit-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
[data-design="mw"] .mw-custedit-av { width: 52px; height: 52px; border-radius: 17px; background: #F0F0EA; color: #5A655D; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; flex: none; }
[data-design="mw"] .mw-custedit-t { font-size: 18px; font-weight: 800; color: #141F19; }
[data-design="mw"] .mw-custedit-s { font-size: 11.5px; color: #77827A; margin-top: 1px; font-family: 'Space Grotesk', Inter, sans-serif; }
[data-design="mw"] .mw-custedit .field label { color: #0A7A4B; font-weight: 800; font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase; }

/* board 53 Bank (design_mw) — 2-up account cards for bankSnapshotHtml under .mw-register. B03 owns the
 * register markup + applies these (mw.css class requests route through B02). PRIMARY = dark asal-khata card;
 * SECONDARY = white bordered. Each: icon tile + account name + Space-Grotesk balance + sub. Off-flag unstyled. */
[data-design="mw"] .mw-register .mw-bankcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
[data-design="mw"] .mw-register .mw-bankcard { background: #fff; border: 1px solid #E7E6DF; border-radius: 16px; padding: 13px 14px; display: flex; flex-direction: column; gap: 8px; }
[data-design="mw"] .mw-register .mw-bankcard.primary { background: #141F19; border-color: #141F19; }
[data-design="mw"] .mw-register .mw-bc-ic { width: 34px; height: 34px; border-radius: 11px; background: #E9F4EE; color: #0A7A4B; display: flex; align-items: center; justify-content: center; flex: none; }
[data-design="mw"] .mw-register .mw-bankcard.primary .mw-bc-ic { background: rgba(255,255,255,.12); color: #fff; }
[data-design="mw"] .mw-register .mw-bc-nm { font-size: 12.5px; font-weight: 800; color: #141F19; }
[data-design="mw"] .mw-register .mw-bankcard.primary .mw-bc-nm { color: #fff; }
[data-design="mw"] .mw-register .mw-bc-bal { font-size: 18px; font-weight: 700; color: #141F19; font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }
[data-design="mw"] .mw-register .mw-bankcard.primary .mw-bc-bal { color: #fff; }
[data-design="mw"] .mw-register .mw-bc-sub { font-size: 10px; color: #77827A; font-weight: 600; }
[data-design="mw"] .mw-register .mw-bankcard.primary .mw-bc-sub { color: #9FACA3; }

/* board 38 KeyboardOpen (LAW, design_mw) — on a money/entry SHEET the primary CTA stays PINNED above the
 * on-screen keyboard: the form-actions row is a sticky bottom bar (white, top border + lift shadow), so a
 * phone keyboard never buries "Save" (the M4 sheet-pin pattern). The sheet scrolls under it, keeping the
 * active field reachable. Covers openAmountForm (.form-actions) + openCustomerForm (form-actions under mw).
 * Off-flag / non-sheet modals = untouched (scoped to .modal-sheet). */
[data-design="mw"] .modal-sheet .form-actions { display: flex; gap: 10px; position: sticky; bottom: 0; z-index: 3; margin: 12px -16px calc(-18px - env(safe-area-inset-bottom, 0px)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #FFFFFF; border-top: 1px solid #E7E6DF; box-shadow: 0 -6px 20px rgba(22,37,29,.08); }

/* boards 22/42 Day1 + Day1Acc (design_mw) — the first-run setup checklist (onboarding.js welcomeChecklist,
 * rendered by the counter) re-ARRANGED into the board's "DUKAN TAYYAR" guided STEP-CARDS: each step a
 * bordered rounded card, done = green mark, pending = hollow; the progress bar hidden; the heading as a caps
 * label — "khali nahi, raasta" (a new shop's counter guides the next step instead of showing blank). The
 * checklist ITEMS / hrefs / binding are UNCHANGED (no onboarding.js edit); off-flag = the base checklist.
 * Board-literal number-BADGES + per-step sub-copy + first-step-active-green live in onboarding.js markup
 * (cross-lane) → declared as a B01 follow. The green welcome header is the board-1 counter header already. */
[data-design="mw"] .setup-card { background: transparent; border: 0; box-shadow: none; padding: 0; margin-top: 4px; }
[data-design="mw"] .setup-card .setup-head { margin-bottom: 9px; }
[data-design="mw"] .setup-card .setup-head h2 { font-size: 10.5px; color: #77827A; letter-spacing: .6px; font-weight: 700; text-transform: uppercase; }
[data-design="mw"] .setup-card .setup-bar { display: none; }
[data-design="mw"] .setup-card .setup-count { font-size: 11px; color: #0A7A4B; font-weight: 800; }
[data-design="mw"] .setup-list { display: flex; flex-direction: column; gap: 10px; }
[data-design="mw"] .setup-item { background: #fff; border: 1px solid #E7E6DF; border-radius: 18px; padding: 14px 15px; display: flex; gap: 13px; align-items: center; text-decoration: none; }
[data-design="mw"] .setup-item .setup-check { width: 40px; height: 40px; border-radius: 13px; background: #F0F0EA; display: flex; align-items: center; justify-content: center; flex: none; }
[data-design="mw"] .setup-item.done .setup-check { background: #E9F4EE; }
[data-design="mw"] .setup-item .setup-check svg { width: 20px; height: 20px; color: #CFD6D0; }
[data-design="mw"] .setup-item.done .setup-check svg { color: #0A7A4B; }
[data-design="mw"] .setup-item .setup-label { font-size: 14.5px; font-weight: 800; color: #141F19; flex: 1; }
[data-design="mw"] .setup-item.done .setup-label { color: #77827A; font-weight: 700; }
[data-design="mw"] .setup-item .setup-go { color: #0A7A4B; flex: none; }

/* counter-face reconcile (mw <1024) — the shell TOPBAR collapses to board-1's compact top region instead of
 * stacking a trial row + a full-width search row + an icon row (~170px the board never drew). ONE short row:
 * the search inline (and HIDDEN on own-search screens via body.mw-hide-gsearch — the search==1 law, set by
 * shell.js render), the trial notice as a SLIM CHIP (gap-fill PLACE, never a full row), a compact
 * right-cluster (eye/bell/date/avatar). The screen's own greeting (board-1 counter) is the visual top.
 * Off-flag + desktop (≥1024, the D-wave rail/topbar) untouched. */
@media (max-width: 1023px) {
  /* FACE: kill the dark brand-only mobile header band — base.css:1495 collapses the sidebar to a shop-name
     strip that was rendering as row 1 above the greeting. The shop name lives in the profile-menu head + the
     counter greeting now. Greeting becomes the first row. */
  [data-design="mw"] .sidebar { display: none; }

  [data-design="mw"] .topbar { min-height: 52px; padding: 7px 14px; flex-wrap: nowrap; row-gap: 0; gap: 8px; }
  [data-design="mw"] .topbar .topbar-search { order: 0; flex: 1 1 auto; max-width: none; }
  [data-design="mw"] body.mw-hide-gsearch .topbar-search { display: none; }
  [data-design="mw"] .topbar .trial-banner:not([hidden]) { flex: 0 1 auto; min-width: 0; max-width: 46%; font-size: 10.5px; line-height: 1.2; padding: 5px 10px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  [data-design="mw"] .topbar .acct-date { font-size: 10.5px; padding: 3px 9px; }
  [data-design="mw"] .topbar .figs-eye, [data-design="mw"] .topbar .topbar-bell { flex: none; }

  /* FACE — counter/daybook (board-1): the control cluster (eye + date + bell + avatar + trial chip) FLOATS
     into the greeting's TOP-RIGHT so the GREETING is the first row (no chrome bar above it). Scoped to this
     green-header face → white controls, empty top-right. Other mw screens keep the compact topbar row. */
  [data-design="mw"] body.mw-face-counter .topbar {
    position: fixed; top: 0; right: 0; left: auto; width: auto; min-height: 0;
    background: transparent; border: 0; box-shadow: none; padding: 9px 12px; gap: 7px; z-index: 60;
  }
  [data-design="mw"] body.mw-face-counter .topbar .topbar-spacer,
  [data-design="mw"] body.mw-face-counter .topbar .topbar-search { display: none; }
  /* the counter greeting is on LIGHT paper (#F6F5F0), not a dark band — so the floated controls keep their
     DEFAULT dark/legible styling (no white recolor); only the trial chip is kept compact. */
  [data-design="mw"] body.mw-face-counter .topbar .trial-banner:not([hidden]) { max-width: 34vw; }
  [data-design="mw"] body.mw-face-counter .main { padding-top: 0; }
  /* the greeting reserves room on its right so the floated cluster never sits ON the greeting text. */
  [data-design="mw"] body.mw-face-counter .page-head { padding-right: 116px; }

  /* FACE-2 trial-chip overlap fix (ORCH pre-verified, live-proto green @390px — the chip sat ON the greeting). */
  [data-design="mw"] body.mw-face-counter .topbar { flex-wrap: wrap; justify-content: flex-end; max-width: 248px; row-gap: 4px; }
  [data-design="mw"] body.mw-face-counter .topbar .trial-banner:not([hidden]) { order: 10; }
  [data-design="mw"] body.mw-face-counter:has(.trial-banner:not([hidden])) .ctr-search { margin-top: 44px; }

  /* ───────── FACE-2 board-1 BODY RECUT (ORCH waiver to B01; counter.js owns the template; scoped to the
     counter face + this <1024 media block so desktop ≥1024 D-wave stays untouched) ───────── */
  /* #4 + Delta-7 type parity: card numbers to the BOARD table — AAJ 15 / PAISA 16 / BANK 14, all 700 SG
     tabular (NOT the ~22px rendered before); labels stay board 8.5/800/ls.4 (= base, no override). With the
     numbers at 15-16px the slab is single-height on board padding. */
  [data-design="mw"] body.mw-face-counter .ctr-kpi { padding: 10px 12px; }
  [data-design="mw"] body.mw-face-counter .ctr-v { font-size: 16px; font-weight: 700; line-height: 1.1; }
  [data-design="mw"] body.mw-face-counter .ctr-kpi[data-cat="bank"] .ctr-v { font-size: 14px; }
  [data-design="mw"] body.mw-face-counter .ctr-d { font-size: 10.5px; }
  /* Delta-7: greeting h1 16.5/800 (board), subtitle 10.5; section heads 9.5/800/ls.5; action tiles 11.5/800;
     feed row titles 11.5/700. (app h1 was 22 — the ±2px rule missed it because nobody read the board number.) */
  [data-design="mw"] body.mw-face-counter .page-head h1 { font-size: 16.5px; font-weight: 800; }
  [data-design="mw"] body.mw-face-counter .page-head p { font-size: 10.5px; }
  [data-design="mw"] body.mw-face-counter .ctr-group-h,
  [data-design="mw"] body.mw-face-counter .ctr-sec,
  [data-design="mw"] body.mw-face-counter .ctr-sidehead { font-size: 9.5px; font-weight: 800; letter-spacing: .5px; }
  [data-design="mw"] body.mw-face-counter .ctr-ft { font-size: 11.5px; font-weight: 700; }
  /* #4 BANK one-liner: board "Meezan · BAHL / 7,42,500 1,15,000" — first 2 inline + "+N"/milaan chip, no bullet list. */
  [data-design="mw"] body.mw-face-counter .ctr-bankline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; margin-top: 5px; font-size: 11.5px; }
  [data-design="mw"] body.mw-face-counter .ctr-bankone { display: inline-flex; align-items: center; gap: 5px; color: #77827A; min-width: 0; }
  [data-design="mw"] body.mw-face-counter .ctr-bankone b { color: #141F19; font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }
  [data-design="mw"] body.mw-face-counter .ctr-banksep { color: #C7CEC8; }
  [data-design="mw"] body.mw-face-counter .ctr-bankmore { font-size: 10px; font-weight: 800; color: #3B5BCC; background: #EDF1FB; border-radius: 999px; padding: 1px 7px; }
  /* #3 din-band fold: the "din band karein" chip sits inline (right) on the datebar row (stays above the date overlay). */
  [data-design="mw"] body.mw-face-counter .ctr-datebar-off { margin-left: auto; font-size: 10.5px; font-weight: 700; color: #A15C07; background: #FFF4E3; border: 1px solid #F2D4A0; border-radius: 999px; padding: 2px 10px; position: relative; z-index: 1; cursor: pointer; }
  /* #6 privacy blur chips size to the number line, not fat blobs. */
  [data-design="mw"] body.mw-face-counter .ctr-blur-v { height: 1em; min-width: 52px; vertical-align: -0.1em; }
  /* #2 agent-float mount now sits BELOW the feed; when NO wallet, hide the ".empty" line so the card
     collapses to its one header row (label + "Kholein →") — the board's slim row (float.js markup untouched). */
  [data-design="mw"] body.mw-face-counter #floatCounterMount { margin-top: 14px; }
  [data-design="mw"] body.mw-face-counter #floatCounterMount .card { padding: 11px 14px; }
  [data-design="mw"] body.mw-face-counter #floatCounterMount .empty { display: none; }

  /* board-1 ACTION TILES = text-only buttons: icon + grey sub DROPPED (width-gated here so ≥1024 desktop
     keeps the icon+sub cards — the desktop-pause); bold label, 3-col ~44px, Bechna green (first-child rule).
     Off-flag keeps cards. Gap-fill extras (Jaldi Bikri / Amanat) ride the same grid → same text style. */
  [data-design="mw"] .ctr-tiles .ctr-tile .ctr-ti { display: none; }
  [data-design="mw"] .ctr-tiles .ctr-tile > span:last-child > span { display: none; }
  [data-design="mw"] .ctr-tiles .ctr-tile > span:last-child > b { font-size: 11.5px; font-weight: 800; }  /* Delta-7: board action tiles 11.5/800 (was 13.5) */
  [data-design="mw"] .ctr-tiles .ctr-tile { min-height: 44px; padding: 0 10px; }

  /* board-1 overdue nudge = inline chip in the "ABHI ABHI · N" line (not its own amber row). */
  [data-design="mw"] .ctr-sidehead { flex-wrap: nowrap; }
  [data-design="mw"] .ctr-feed-alert { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* PR-N1 board-15 — SaleDone SUCCESS SHEET (mw, openCartReceipt). The holding modal goes full-screen; the
 * invoice doc is hidden in-DOM (Print still prints it). Buttons reuse the receipt-wa/print/review hooks. */
[data-design="mw"] #modal-root .modal:has(.mw-saledone) { position: fixed; inset: 0; max-width: none; width: 100%; height: 100%; max-height: 100%; border-radius: 0; padding: 0; background: #F6F5F0; overflow-y: auto; }
[data-design="mw"] .modal:has(.mw-saledone) .modal-x { color: #77827A; z-index: 2; }
[data-design="mw"] .mw-saledone { display: flex; flex-direction: column; min-height: 100%; box-sizing: border-box; }
[data-design="mw"] .mw-saledone .sd-top { text-align: center; padding: 52px 20px 0; }
[data-design="mw"] .mw-saledone .sd-tick { width: 84px; height: 84px; border-radius: 50%; background: #E9F4EE; margin: 0 auto; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 14px rgba(10,122,75,.07); }
[data-design="mw"] .mw-saledone .sd-tick svg { width: 56px; height: 56px; background: linear-gradient(160deg, #0C8A55, #086B41); border-radius: 50%; padding: 15px; box-sizing: border-box; box-shadow: 0 8px 20px rgba(10,122,75,.35); }
[data-design="mw"] .mw-saledone .sd-title { font-size: 21px; font-weight: 800; color: #141F19; margin-top: 16px; letter-spacing: -.3px; }
[data-design="mw"] .mw-saledone .sd-amt { font-size: 34px; font-weight: 700; color: #0A7A4B; font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; margin-top: 2px; }
[data-design="mw"] .mw-saledone .sd-card { margin: 22px 20px 0; background: #fff; border: 1px solid #E7E6DF; border-radius: 20px; overflow: hidden; box-shadow: 0 2px 10px rgba(22,37,29,.06); }
[data-design="mw"] .mw-saledone .sd-item { padding: 14px 16px; border-bottom: 1px dashed #E7E6DF; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
[data-design="mw"] .mw-saledone .sd-item-t { font-size: 14px; font-weight: 800; color: #141F19; }
[data-design="mw"] .mw-saledone .sd-item-s { font-size: 11.5px; color: #77827A; margin-top: 1px; }
[data-design="mw"] .mw-saledone .sd-item-p { font-size: 14px; font-weight: 700; color: #141F19; font-family: 'Space Grotesk', Inter, sans-serif; flex: none; }
[data-design="mw"] .mw-saledone .sd-rows { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
[data-design="mw"] .mw-saledone .sd-row { display: flex; justify-content: space-between; gap: 10px; }
[data-design="mw"] .mw-saledone .sd-l { font-size: 12.5px; color: #77827A; font-weight: 600; }
[data-design="mw"] .mw-saledone .sd-v { font-size: 12.5px; color: #141F19; font-weight: 700; text-align: right; min-width: 0; }
[data-design="mw"] .mw-saledone .sd-actions { margin: 18px 20px 0; display: flex; flex-direction: column; gap: 10px; }
[data-design="mw"] .mw-saledone .sd-primary { height: 56px; border-radius: 17px; border: 0; background: linear-gradient(160deg, #0C8A55, #086B41); color: #fff; font-size: 15.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 8px 20px rgba(10,122,75,.3); }
[data-design="mw"] .mw-saledone .sd-sec { display: flex; gap: 10px; }
[data-design="mw"] .mw-saledone .sd-sec .btn { flex: 1; height: 50px; border-radius: 15px; border: 1px solid #E7E6DF; background: #fff; color: #141F19; font-size: 14px; font-weight: 700; }
[data-design="mw"] .mw-saledone .sd-foot { margin-top: auto; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
[data-design="mw"] .mw-saledone .sd-foot .btn { flex: 1; height: 52px; border-radius: 16px; border: 1px solid #E7E6DF; background: #fff; color: #141F19; font-size: 14.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; text-decoration: none; }
[data-design="mw"] .mw-saledone .sd-foot .sd-home { border: 0; background: #141F19; color: #fff; }

/* PR-N board-27 — khareedar pick: the mw trigger (replaces the customer dropdown) + the pick SHEET
 * (opens via openModal{sheet}; the hidden `#{p}Cust` select stays the value-holder). */
[data-design="mw"] .pp-custtrigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #E7E6DF; border-radius: 14px; background: #FFFFFF; font: 600 14px/1 Inter, system-ui, sans-serif; color: #9AA49C; cursor: pointer; }
[data-design="mw"] .pp-custtrigger.picked { color: #141F19; border-color: #0A7A4B; }
[data-design="mw"] .pp-custtrigger .pp-ct-ic { color: #9AA49C; flex: none; }
[data-design="mw"] .mw-custpick .pcs-head { font-size: 18px; font-weight: 800; color: #141F19; margin-bottom: 11px; }
[data-design="mw"] .mw-custpick .pcs-search { margin: 0 0 11px; }
[data-design="mw"] .mw-custpick .pcs-chips { display: flex; gap: 8px; margin-bottom: 12px; }
[data-design="mw"] .mw-custpick .pcs-walkin { height: 38px; padding: 0 15px; border-radius: 12px; background: #141F19; color: #fff; font-size: 12.5px; font-weight: 800; border: 0; }
[data-design="mw"] .mw-custpick .pcs-lbl { font-size: 10.5px; color: #77827A; letter-spacing: .6px; font-weight: 700; margin-bottom: 7px; }
[data-design="mw"] .mw-custpick .pcs-list { max-height: 40vh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid #E7E6DF; border-radius: 16px; }
[data-design="mw"] .mw-custpick .pcs-row { display: flex; gap: 11px; align-items: center; width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid #F2F1EB; background: transparent; text-align: left; cursor: pointer; }
[data-design="mw"] .mw-custpick .pcs-row:last-child { border-bottom: 0; }
[data-design="mw"] .mw-custpick .pcs-av { width: 38px; height: 38px; border-radius: 12px; background: #E9F4EE; color: #0A7A4B; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12.5px; flex: none; }
[data-design="mw"] .mw-custpick .pcs-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
[data-design="mw"] .mw-custpick .pcs-nm { font-size: 13.5px; font-weight: 800; color: #141F19; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-design="mw"] .mw-custpick .pcs-ph { font-size: 11px; color: #77827A; }
[data-design="mw"] .mw-custpick .pcs-amt { text-align: right; flex: none; display: flex; flex-direction: column; }
[data-design="mw"] .mw-custpick .pcs-amt .num { font-size: 12.5px; font-weight: 700; }
[data-design="mw"] .mw-custpick .pcs-aml { font-size: 10px; color: #77827A; font-weight: 600; }
[data-design="mw"] .mw-custpick .pcs-empty { padding: 24px; text-align: center; color: #9AA49C; font-size: 13px; }
[data-design="mw"] .mw-custpick .pcs-naya { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 13px; padding: 14px 15px; border: 1px solid #BFE0CE; border-radius: 18px; background: #E9F4EE; color: #085C39; font-size: 14px; font-weight: 800; cursor: pointer; }
[data-design="mw"] .mw-custpick .pcs-naya-plus { width: 30px; height: 30px; border-radius: 10px; background: #0A7A4B; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; flex: none; }
[data-design="mw"] .mw-custpick .pcs-dup { margin-top: 11px; font-size: 11px; color: #77827A; text-align: center; font-weight: 600; }
[data-design="mw"] .modal .btn-ghost { background: #FFFFFF; border: 1px solid #E7E6DF; color: #141F19; }

/* board-34 SearchResults — the topbar global-search panel (mw), grouped result cards.
 * `.mw-gspanel` is added by search.js only under design_mw; off-flag the panel is the flat
 * `.gs-panel` as before. SAME rows/indices/go() — this is pure presentation. */
[data-design="mw"] .gs-panel.mw-gspanel { background: #F6F5F0; border: 1px solid #E7E6DF; border-radius: 18px; padding: 14px 13px; max-height: 72vh; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 16px 40px rgba(22,37,29,.14); }
[data-design="mw"] .mw-gspanel .mw-gsgroup + .mw-gsgroup { margin-top: 14px; }
[data-design="mw"] .mw-gspanel .mw-gshead { font-size: 10.5px; color: #77827A; letter-spacing: .6px; font-weight: 700; margin-bottom: 7px; }
[data-design="mw"] .mw-gspanel .mw-gscard { background: #fff; border: 1px solid #E7E6DF; border-radius: 16px; overflow: hidden; }
[data-design="mw"] .mw-gspanel .mw-gsrow { display: flex; gap: 11px; align-items: center; width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid #F2F1EB; background: transparent; text-align: left; cursor: pointer; }
[data-design="mw"] .mw-gspanel .mw-gsrow:last-child { border-bottom: 0; }
[data-design="mw"] .mw-gspanel .mw-gsrow.active, [data-design="mw"] .mw-gspanel .mw-gsrow:hover { background: #F7FAF8; }
[data-design="mw"] .mw-gspanel .mw-gsav { width: 38px; height: 38px; border-radius: 12px; background: #E9F4EE; color: #0A7A4B; display: flex; align-items: center; justify-content: center; flex: none; }
[data-design="mw"] .mw-gspanel .mw-gsav-txt { font-weight: 800; font-size: 12.5px; }
[data-design="mw"] .mw-gspanel .mw-gsav svg { width: 18px; height: 18px; }
[data-design="mw"] .mw-gspanel .mw-gsbody { min-width: 0; flex: 1; display: flex; flex-direction: column; }
[data-design="mw"] .mw-gspanel .mw-gstitle { font-size: 13.5px; font-weight: 800; color: #141F19; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-design="mw"] .mw-gspanel .mw-gssub { font-size: 11px; color: #77827A; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-design="mw"] .mw-gspanel .mw-gsmoney { font-size: 12.5px; font-weight: 700; color: #141F19; font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; flex: none; }
[data-design="mw"] .mw-gspanel .mw-gsmoney.pos { color: #0A7A4B; }
[data-design="mw"] .mw-gspanel .gs-mark { background: #DCEFE4; color: #085C39; border-radius: 3px; padding: 0 2px; }
[data-design="mw"] .mw-gspanel .mw-gshelp { margin-top: 14px; background: #E9F4EE; border-radius: 15px; padding: 11px 14px; font-size: 12px; color: #085C39; font-weight: 600; line-height: 1.45; }
[data-design="mw"] .mw-gspanel .mw-gsempty { padding: 28px 18px; text-align: center; color: #141F19; font-size: 14px; font-weight: 800; display: flex; flex-direction: column; gap: 6px; }
[data-design="mw"] .mw-gspanel .mw-gsempty span { font-size: 12px; color: #77827A; font-weight: 600; }

/* ── board 75 ToastCatalog (LAW) — the 4 toast kinds + undo action, restyled to the board palette
 * under mw. toast(msg, kind, {action}) already drives these (ui.js:923); stacking + z-4000-above-overlay
 * already in base (the board's "purana zakham" is already healed). SUCCESS/INFO (+undo) = dark chip +
 * green icon; WARN = amber; BLOCK (error) = red + next-step copy (copy is each caller's). The undo pill
 * overrides the inline outlined-pill style (scoped !important — contained to this one mw element).
 * Off-flag = the base toast palette, byte-identical. ── */
[data-design="mw"] .toast-card { border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-weight: 700; }
[data-design="mw"] .toast-success, [data-design="mw"] .toast-info { background: #141F19; color: #fff; }
[data-design="mw"] .toast-success .toast-ico, [data-design="mw"] .toast-info .toast-ico { color: #34C98A; }
[data-design="mw"] .toast-warn { background: #FFF4E3; border: 1px solid #F2D4A0; color: #A15C07; }
[data-design="mw"] .toast-warn .toast-ico { color: #A15C07; }
[data-design="mw"] .toast-error { background: #FBEDE6; border: 1px solid #F3C9B5; color: #C2410C; }
[data-design="mw"] .toast-error .toast-ico { color: #C2410C; }
[data-design="mw"] .toast-action { background: #34C98A !important; color: #0B2417 !important; border: 0 !important; border-radius: 9px !important; font-weight: 800; }

/* ── board 76 EmptyStates (LAW) — shared empty-state skin under mw: forward-looking muted copy, a bold
 * lead line, and a board-green action button. `.empty` is the shared container; the full "icon + 1
 * sentence + 1 button" markup per screen stays each screen owner's adoption — this ships the shared skin
 * + button so adopters land on the board look. Off-flag = base `.empty`, unchanged. ── */
[data-design="mw"] .empty { color: #77827A; font-size: 13px; line-height: 1.55; }
[data-design="mw"] .empty strong, [data-design="mw"] .empty b { color: #141F19; font-weight: 800; }
[data-design="mw"] .empty .btn { margin-top: 12px; }
[data-design="mw"] .empty .btn-primary { background: linear-gradient(160deg, #0C8A55, #086B41); color: #fff; border: none; border-radius: 12px; font-weight: 800; }

/* ════════════════════════════════════════════════════════════════════════════
 * PR-9 = STOCK (board 10, `.mw-stock`) + MAAL-AAYA/BUY form (boards 6/16/50, `.mw-buy`). Both
 * design_mw-gated wrappers (screens-a.js stockScreen + buyScreen) — shared .khata-stat/.table-wrap/
 * .field/.card never bleed. Buy opens inFlow from counter → rides the PR-6 #ctrFlow chrome. Tokens-only,
 * off-flag byte-identical. Sold-scope sub-view (soldStockView) = declared fast-follow. */

/* STOCK (board 10) */
[data-design="mw"] .mw-stock .section-head h2, [data-design="mw"] .mw-stock .section-head h3 { color: #141F19; font-weight: 800; letter-spacing: -.01em; }
[data-design="mw"] .mw-stock .card { background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 16px; box-shadow: none; }
[data-design="mw"] .mw-stock .khata-band { gap: 8px; }
[data-design="mw"] .mw-stock .khata-stat { background: #FFFFFF; border: 1px solid #E7E6DF; border-left: 3px solid #8A6400; border-radius: 13px; box-shadow: none; }  /* stock band = stock gold tick (board 80) */
[data-design="mw"] .mw-stock .khata-stat-value { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; color: #141F19; }
[data-design="mw"] .mw-stock .khata-stat-label { color: #77827A; font-size: 10.5px; font-weight: 600; }
[data-design="mw"] .mw-stock .khata-stat-sub { color: #9AA49C; font-size: 10.5px; }
[data-design="mw"] .mw-stock .search-bar input { min-height: 44px; background: #FFFFFF; border: 1.5px solid #0A7A4B; border-radius: 14px; box-shadow: 0 0 0 3px rgba(10,122,75,.07); font-size: 13.5px; color: #141F19; }
[data-design="mw"] .mw-stock .chip { border-radius: 10px; border: 1px solid #E7E6DF; background: #FFFFFF; color: #141F19; font-weight: 700; }
[data-design="mw"] .mw-stock .chip.active, [data-design="mw"] .mw-stock .chip.chip-on { background: #0A7A4B; border-color: #0A7A4B; color: #FFFFFF; }
[data-design="mw"] .mw-stock .table-wrap thead th { color: #77827A; font-size: 10px; letter-spacing: .4px; text-transform: uppercase; font-weight: 800; border-bottom: 1px solid #E7E6DF; }
[data-design="mw"] .mw-stock .table-wrap .num { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }
/* PR-J A2 / board-10 — Stock "Alag alag" rows read as a squeezed desktop table @375: base.css:1529 makes
 * td:first-child the card title, but with buy_void ON the first cell is the CHECKBOX → it becomes a
 * full-width title and the phone drops to a label:value row (the "checkbox col" ORCH saw). Under mw: float
 * the checkbox to the row corner, promote the PHONE cell to the board LIST title (name bold 12.5 / IMEI·
 * colour sub 9.5), Ask price right in Space Grotesk, compact card. CSS-only — tr/td structure, the
 * #stockRows tr liveFilter/paginate bind and the .stk-sel bulk hooks are all untouched. */
/* A2 is the MOBILE list-row treatment — scoped <=720px (where base.css:1513 stacks the table). At >720
 * the native table shows (desktop board-98 is the wide table, D4 below). Without this scope the block
 * broke the desktop table (tr→block etc.). */
@media (max-width: 720px) {
  [data-design="mw"] .mw-stock .table-wrap tr { position: relative; padding: 10px 12px; border-radius: 12px; border-color: #E7E6DF; margin-bottom: 6px; }
  [data-design="mw"] .mw-stock .table-wrap .stk-selcell { position: absolute; top: 8px; right: 10px; width: auto; padding: 0; margin: 0; border: none !important; display: block; }
  [data-design="mw"] .mw-stock .table-wrap .stk-selcell::before { display: none; }
  [data-design="mw"] .mw-stock .table-wrap td:first-child:not(.stk-selcell),
  [data-design="mw"] .mw-stock .table-wrap .stk-selcell + td { display: block; text-align: left; padding: 0 70px 8px 0; margin-bottom: 7px; border-bottom: 1px solid #EEEDE6; font-weight: 700; }
  [data-design="mw"] .mw-stock .table-wrap td:first-child:not(.stk-selcell)::before,
  [data-design="mw"] .mw-stock .table-wrap .stk-selcell + td::before { display: none; }
  [data-design="mw"] .mw-stock .table-wrap .model { font-size: 12.5px; font-weight: 700; color: #141F19; }
  [data-design="mw"] .mw-stock .table-wrap .imei { font-size: 9.5px; color: #9AA49C; font-weight: 600; }
  [data-design="mw"] .mw-stock .table-wrap td { padding: 3px 0; font-size: 11px; }
  [data-design="mw"] .mw-stock .table-wrap td::before { font-size: 10px; color: #9AA49C; font-weight: 700; }
}
[data-design="mw"] .mw-stock .btn-primary { background: linear-gradient(160deg, #0C8A55, #086B41); color: #fff; border: none; border-radius: 12px; font-weight: 800; }

/* MAAL-AAYA / BUY form (boards 6/16/50) */
[data-design="mw"] .mw-buy .section-head h2, [data-design="mw"] .mw-buy .fieldset-title { color: #141F19; font-weight: 800; letter-spacing: -.01em; }
[data-design="mw"] .mw-buy .card { background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 16px; box-shadow: none; }
[data-design="mw"] .mw-buy .field label { font-size: 10.5px; font-weight: 700; color: #77827A; letter-spacing: .2px; }
[data-design="mw"] .mw-buy .field input, [data-design="mw"] .mw-buy .field select { min-height: 44px; background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 12px; font-size: 13.5px; color: #141F19; }
[data-design="mw"] .mw-buy .field input:focus, [data-design="mw"] .mw-buy .field select:focus { border-color: #0A7A4B; box-shadow: 0 0 0 3px rgba(10,122,75,.07); outline: none; }
[data-design="mw"] .mw-buy .ss-btn { border-radius: 12px; border: 1px solid #E7E6DF; background: #FFFFFF; min-height: 44px; }
[data-design="mw"] .mw-buy .ss-btn:focus-within { border-color: #0A7A4B; box-shadow: 0 0 0 3px rgba(10,122,75,.07); outline: none; }
[data-design="mw"] .mw-buy .subnav .subnav-tab { border-radius: 10px; color: #77827A; font-weight: 700; }
[data-design="mw"] .mw-buy .subnav .subnav-tab.active { background: #0A7A4B; color: #FFFFFF; }
[data-design="mw"] .mw-buy .chip { border-radius: 10px; border: 1px solid #E7E6DF; background: #FFFFFF; color: #141F19; font-weight: 700; }
[data-design="mw"] .mw-buy .chip.active { background: #0A7A4B; border-color: #0A7A4B; color: #FFFFFF; }
[data-design="mw"] .mw-buy .btn-primary, [data-design="mw"] .mw-buy .btn-commit { background: linear-gradient(160deg, #0C8A55, #086B41); color: #fff; border: none; border-radius: 12px; font-weight: 800; }
[data-design="mw"] .mw-buy .num { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }

/* ════════════════════════════════════════════════════════════════════════════
 * PR-8 = REGISTER re-skin (board 9/100 — 4 tabs + confirm-tap close; ginti STAYS dead). Scoped under
 * `.mw-register` (design_mw-gated wrapper, screens-b.js registerScreen) — shared .khata-stat/.card/.stat-*
 * must not bleed off-register. CSS-ONLY: the confirm-tap close + variance engine is untouched (money-critical).
 * Reuses the treatment system; off-flag byte-identical (wrapper absent). */
[data-design="mw"] .mw-register .section-head h2 { color: #141F19; font-weight: 800; letter-spacing: -.01em; }
[data-design="mw"] .mw-register .card { background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 16px; box-shadow: none; }
/* 4-tab bar — segmented, active = dark pill (matches the counter lens) */
[data-design="mw"] .mw-register .regtab-bar { display: flex; gap: 6px; background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 12px; padding: 4px; }
[data-design="mw"] .mw-register .regtab-btn { min-height: 34px; border-radius: 9px; background: transparent; border: 0; color: #77827A; font-weight: 700; font-size: 12.5px; }
[data-design="mw"] .mw-register .regtab-btn.on { background: #141F19; color: #FFFFFF; font-weight: 800; }
/* Today-tab stat cards (.card .stat-*) */
[data-design="mw"] .mw-register .stat-label { font-size: 10.5px; color: #77827A; font-weight: 600; letter-spacing: .2px; }
[data-design="mw"] .mw-register .stat-value { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; font-size: 20px; color: #141F19; }
[data-design="mw"] .mw-register .stat-value.pos { color: #0A7A4B; }
[data-design="mw"] .mw-register .stat-value.neg { color: #C2410C; }
[data-design="mw"] .mw-register .stat-sub { font-size: 10.5px; color: #9AA49C; }
/* Bank/Hisaab-tab .khata-stat (reuse the PR-7 band treatment) */
[data-design="mw"] .mw-register .khata-stat { background: #FFFFFF; border: 1px solid #E7E6DF; border-left: 3px solid #E7E6DF; border-radius: 13px; box-shadow: none; }
[data-design="mw"] .mw-register .khata-stat.pos { border-left-color: #0A7A4B; }
[data-design="mw"] .mw-register .khata-stat.neg { border-left-color: #C2410C; }
[data-design="mw"] .mw-register .khata-stat.amber { border-left-color: #A15C07; }
[data-design="mw"] .mw-register .khata-stat-value { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; color: #141F19; }
/* close confirm-tap: the big expected number + verdict band read as money (Space-Grotesk); logic untouched */
[data-design="mw"] .mw-register #ccConfirm .num, [data-design="mw"] .mw-register #ccVerdict .num { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }
/* fields + primary/ghost buttons (open/close/cash forms) */
[data-design="mw"] .mw-register .field input, [data-design="mw"] .mw-register .field select { min-height: 44px; background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 12px; font-size: 13.5px; color: #141F19; }
[data-design="mw"] .mw-register .field input:focus, [data-design="mw"] .mw-register .field select:focus { border-color: #0A7A4B; box-shadow: 0 0 0 3px rgba(10,122,75,.07); outline: none; }
[data-design="mw"] .mw-register .btn-primary, [data-design="mw"] .mw-register .btn-commit { background: linear-gradient(160deg, #0C8A55, #086B41); color: #fff; border: none; border-radius: 12px; font-weight: 800; }
[data-design="mw"] .mw-register .num { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }

/* ════════════════════════════════════════════════════════════════════════════
 * PR-7 = KHATA re-skin (boards 7 list + 8 passbook detail). Scoped under `.mw-khata` — a design_mw-GATED
 * wrapper (customers.js customersScreen + customerDetail) — because .khata-band/.khata-stat/.cust-*/
 * .table-wrap/.ledg-row are SHARED with stock+reports+every ledger; the wrapper keeps the re-skin on the
 * khata boards only (no bleed into unbuilt 98/101). ⭐ REUSE: this same `.mw-khata`-style gated wrapper is
 * the pattern for stock (board 98) + reports (board 101) in Batch B. Tokens-only, off-flag byte-identical
 * (wrapper renders only under mw). Treatment system reused (application, not invention). */

/* board 7 — metric band: white card + 3px left tick (lena=green / dena=orange), Space-Grotesk value */
[data-design="mw"] .mw-khata .khata-band { gap: 8px; }
[data-design="mw"] .mw-khata .khata-stat {
  background: #FFFFFF; border: 1px solid #E7E6DF; border-left: 3px solid #E7E6DF; border-radius: 13px; box-shadow: none;
}
[data-design="mw"] .mw-khata .khata-stat.pos { border-left-color: #0A7A4B; }
[data-design="mw"] .mw-khata .khata-stat.neg { border-left-color: #C2410C; }
[data-design="mw"] .mw-khata .khata-stat.amber { border-left-color: #A15C07; }
[data-design="mw"] .mw-khata .khata-stat-label { font-size: 10.5px; color: #77827A; font-weight: 600; }
[data-design="mw"] .mw-khata .khata-stat-value { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; font-size: 20px; color: #141F19; }
[data-design="mw"] .mw-khata .khata-stat.pos .khata-stat-value { color: #0A7A4B; }
[data-design="mw"] .mw-khata .khata-stat.neg .khata-stat-value { color: #C2410C; }
[data-design="mw"] .mw-khata .khata-stat-sub { font-size: 10.5px; color: #9AA49C; }

/* board 7 — search / filter chips / card */
[data-design="mw"] .mw-khata .search-bar input {
  min-height: 44px; background: #FFFFFF; border: 1.5px solid #0A7A4B; border-radius: 14px; box-shadow: 0 0 0 3px rgba(10,122,75,.07); font-size: 13.5px; color: #141F19;
}
[data-design="mw"] .mw-khata .chip { border-radius: 10px; border: 1px solid #E7E6DF; background: #FFFFFF; color: #141F19; font-weight: 700; }
[data-design="mw"] .mw-khata .chip.active { background: #0A7A4B; border-color: #0A7A4B; color: #FFFFFF; }
[data-design="mw"] .mw-khata .card { background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 16px; box-shadow: none; }
[data-design="mw"] .mw-khata .section-head h2 { color: #141F19; font-weight: 800; letter-spacing: -.01em; }

/* board 7 — customer rows */
[data-design="mw"] .mw-khata .cust-row { border-bottom: 1px solid #EFEEE7; }
[data-design="mw"] .mw-khata .cust-row:hover { background: #F6F5F0; }
[data-design="mw"] .mw-khata .cust-row .model { color: #141F19; font-weight: 700; }
[data-design="mw"] .mw-khata .cust-bal, [data-design="mw"] .mw-khata .cust-bal-big { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }
[data-design="mw"] .mw-khata .cust-bal.pos, [data-design="mw"] .mw-khata .cust-bal-big.pos { color: #0A7A4B; }
[data-design="mw"] .mw-khata .cust-bal.neg, [data-design="mw"] .mw-khata .cust-bal-big.neg { color: #C2410C; }

/* board 8 — balance hero */
[data-design="mw"] .mw-khata .cust-hero { background: #FFFFFF; border: 1px solid #E7E6DF; border-left: 4px solid #E7E6DF; border-radius: 16px; }
[data-design="mw"] .mw-khata .cust-hero.pos { border-left-color: #0A7A4B; }
[data-design="mw"] .mw-khata .cust-hero.neg { border-left-color: #C2410C; }
[data-design="mw"] .mw-khata .cust-hero-label { color: #77827A; font-size: 10.5px; font-weight: 600; }
[data-design="mw"] .mw-khata .cust-bal-big { font-size: 28px; color: #141F19; }
[data-design="mw"] .mw-khata .cust-hero-actions .btn-primary { background: linear-gradient(160deg, #0C8A55, #086B41); color: #fff; border: none; border-radius: 12px; font-weight: 800; }
[data-design="mw"] .mw-khata .cust-hero-actions .btn-ghost { background: #FFFFFF; border: 1px solid #E7E6DF; color: #141F19; border-radius: 12px; }

/* board 8 — the PASSBOOK (shared ledger table): bahi-khata rows + bold Total foot. Space-Grotesk amounts;
 * debit/credit keep their semantic red/green (inline on the td); mw aligns surround + the running balance. */
[data-design="mw"] .mw-khata .table-wrap table { font-variant-numeric: tabular-nums; }
[data-design="mw"] .mw-khata .table-wrap thead th { color: #77827A; font-size: 10px; letter-spacing: .4px; text-transform: uppercase; font-weight: 800; border-bottom: 1px solid #E7E6DF; }
[data-design="mw"] .mw-khata .ledg-row td { border-top: 1px solid #F0EFE8; }
[data-design="mw"] .mw-khata .ledg-row .num { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }
[data-design="mw"] .mw-khata .ledg-row .imei { color: #9AA49C; }
[data-design="mw"] .mw-khata .ledger-total td { border-top: 2px solid #141F19 !important; font-family: 'Space Grotesk', Inter, sans-serif; }
/* PR-J B5 / board 8 — keep the passbook a TRUE TABLE at mobile. base.css:1513 stacks every .table-wrap
 * table into per-entry cards ≤720px (the "stacked khata cards" Mujaddad flagged); v38 wants ONE bahi-khata
 * table (Kab | Tafseel | Udhaar | Jama | Balance [| ✎]). Under .mw-khata we undo the stack: table layout,
 * Tafseel nowrap+ellipsis, numbers nowrap, empty debit/credit cells kept (base hides td:empty → would
 * misalign columns). Columns/money/row-order untouched — CSS only. */
[data-design="mw"] .mw-khata .table-wrap { overflow-x: auto; padding: 0; }
[data-design="mw"] .mw-khata .table-wrap table { display: table; width: 100%; table-layout: fixed; border-collapse: collapse; }
[data-design="mw"] .mw-khata .table-wrap thead { display: table-header-group; }
[data-design="mw"] .mw-khata .table-wrap tbody { display: table-row-group; }
[data-design="mw"] .mw-khata .table-wrap tfoot { display: table-footer-group; }
[data-design="mw"] .mw-khata .table-wrap tr { display: table-row; border: none; margin: 0; padding: 0; background: transparent; border-radius: 0; }
[data-design="mw"] .mw-khata .table-wrap td { display: table-cell; border: none; border-top: 1px solid #F0EFE8; padding: 7px 5px; text-align: left; font-size: 11px; vertical-align: top; }
[data-design="mw"] .mw-khata .table-wrap td:empty { display: table-cell; }   /* base hides td:empty — keep the column slot so Udhaar/Jama stay aligned */
[data-design="mw"] .mw-khata .table-wrap td::before { content: none !important; }   /* kill the data-label stacked pseudo-label */
[data-design="mw"] .mw-khata .table-wrap td.t-right, [data-design="mw"] .mw-khata .table-wrap th.t-right { text-align: right; }
[data-design="mw"] .mw-khata .table-wrap td.num { white-space: nowrap; }
[data-design="mw"] .mw-khata .table-wrap th:first-child, [data-design="mw"] .mw-khata .table-wrap td:first-child { width: 13%; white-space: nowrap; }
[data-design="mw"] .mw-khata .table-wrap td.model { width: 32%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* V1 polish (mw fix — flagged; money-DISPLAY only, columns/order/figures unchanged): the passbook true-table
 * above crams its 5-6 columns at phone widths — the Kab date cell (13% ≈ 44px, nowrap "26 Oct · 5:22pm" ≈ 92px)
 * overflowed ~48px into Tafseel and the Balance clipped mid-digit. At ≤430px let the DATE WRAP (no horizontal
 * bleed), ellipsize Tafseel in a slightly tighter column, and shrink the row font so every money column fits
 * (DOM-verified: all cell overflows → 0 except Tafseel's own ellipsis). Wider screens keep the full-size table. */
@media (max-width: 430px) {
  [data-design="mw"] .mw-khata .table-wrap td { padding: 7px 2px; font-size: 10.5px; }
  [data-design="mw"] .mw-khata .table-wrap td.num { font-size: 10.5px; letter-spacing: -.2px; }
  [data-design="mw"] .mw-khata .table-wrap td:first-child { white-space: normal; line-height: 1.2; }
  [data-design="mw"] .mw-khata .table-wrap td.model { width: 24%; }
}

/* ════════════════════════════════════════════════════════════════════════════
 * PR-5 = CANCEL-MARK STRIKE (board 26 one-statement law: a reversal is a struck row, NEVER a delete,
 * NEVER excluded from a total). The reader emits `cancelled` on reversed/voided legs (all 4 surfaces);
 * ledgerTableHtml stamps `.is-cancelled` on the <tr>, the feed already carries `.act-row.is-reverted`.
 * mw-scoped strike (legacy unchanged until flip; the feed keeps its fleet opacity from base.css:3621 +
 * gains line-through under mw). VISUAL ONLY — totals sum the full row set regardless (ledger-table.js:108). */
[data-design="mw"] .ledg-row.is-cancelled { opacity: .6; }
[data-design="mw"] .ledg-row.is-cancelled .model { text-decoration: line-through; }   /* strike the detail text; amounts stay legible (dimmed), still counted */
[data-design="mw"] .act-row.is-reverted .act-title { text-decoration: line-through; }  /* feed: base.css already dims .6 fleet-wide; mw adds the line-through */

/* ════════════════════════════════════════════════════════════════════════════
 * BATCH-C = GLOBAL mw NEUTRAL BASELINE (the "Aur" long-tail). Now that ALL mobile screens are in-scope
 * (no unbuilt-board bleed risk left), the common elements get ONE mw baseline so EVERY routed screen —
 * reports, settings, partners, salary, purana, extra, zakat, marketing, activity, mylogin, scanlog, the
 * intake wizard, soldStockView, etc. — reads mw, never half-broken. The gated wrappers (.mw-khata/-register/
 * -stock/-buy) keep their screen-SPECIFIC elevations ON TOP (they win by specificity). design_pro/legacy/v2
 * untouched (gated on [data-design="mw"], which pro/v2 never set).
 * ⚠ DECLARED: the per-wrapper common-element rules (.card/.field/.search/.chip) are now redundant-but-
 * harmless with this baseline (same tokens, no conflict) — a future cleanup PR could dedupe; left for now
 * (no churn on green code). High-traffic Aur (reports/settings) = this baseline is their "full treatment"
 * minus a bespoke band; low-traffic = neutral base, each declared. */
[data-design="mw"] .card { background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 16px; box-shadow: none; }
[data-design="mw"] .section-head h2, [data-design="mw"] .section-head h3 { color: #141F19; font-weight: 800; letter-spacing: -.01em; }
[data-design="mw"] .field label { font-size: 10.5px; font-weight: 700; color: #77827A; letter-spacing: .2px; }
[data-design="mw"] .field input, [data-design="mw"] .field select { min-height: 44px; background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 12px; font-size: 13.5px; color: #141F19; }
[data-design="mw"] .field input:focus, [data-design="mw"] .field select:focus { border-color: #0A7A4B; box-shadow: 0 0 0 3px rgba(10,122,75,.07); outline: none; }
[data-design="mw"] .search-bar input { min-height: 44px; background: #FFFFFF; border: 1.5px solid #0A7A4B; border-radius: 14px; box-shadow: 0 0 0 3px rgba(10,122,75,.07); color: #141F19; }
[data-design="mw"] .ss-btn { border-radius: 12px; border: 1px solid #E7E6DF; background: #FFFFFF; min-height: 44px; }
[data-design="mw"] .ss-btn:focus-within { border-color: #0A7A4B; box-shadow: 0 0 0 3px rgba(10,122,75,.07); outline: none; }
[data-design="mw"] .chip { border-radius: 10px; border: 1px solid #E7E6DF; background: #FFFFFF; color: #141F19; font-weight: 700; }
[data-design="mw"] .chip.active, [data-design="mw"] .chip.chip-on { background: #0A7A4B; border-color: #0A7A4B; color: #FFFFFF; }
[data-design="mw"] .subnav .subnav-tab.active { background: #141F19; color: #FFFFFF; border-color: #141F19; border-radius: 99px; }  /* PR-I I1 ACTIVE chip = board dark/r99 (this `.subnav .subnav-tab.active` is the specificity winner — the I1 active spec lives HERE, not the lower-specificity rule in the I1 block). */
[data-design="mw"] .btn-primary, [data-design="mw"] .btn-commit { background: linear-gradient(160deg, #0C8A55, #086B41); color: #fff; border: none; border-radius: 12px; font-weight: 800; }
[data-design="mw"] .num { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }
/* .khata-stat NEUTRAL default (reports/bookings/etc.): white card + green tick + Space-Grotesk value.
 * Screen-specific tick colours (khata green/orange, stock gold) are set by the wrappers and WIN on specificity. */
/* PR-I COMPACT dual-tile (KhataList.dc spec — the legacy .khata-stat scale was the gap: the value had no
 * mw font-size so it inherited legacy 23px). Canonical: 10.5 caps label / 18px Space-Grotesk value / r16 /
 * 10×13 pad. Global under mw → whole stat-band family (khata/trade/supplier/stock/reports/register/amanat). */
[data-design="mw"] .khata-band { gap: 8px; }
[data-design="mw"] .khata-stat { background: #FFFFFF; border: 1px solid #E7E6DF; border-left: 3px solid #0A7A4B; border-radius: 16px; box-shadow: none; padding: 10px 13px; min-width: 0; }
[data-design="mw"] .khata-stat.pos { border-left-color: #0A7A4B; }
[data-design="mw"] .khata-stat.neg { border-left-color: #C2410C; }
[data-design="mw"] .khata-stat.amber { border-left-color: #A15C07; }   /* amanat "maal bahar", warnings, etc. tick amber, not the default green */
[data-design="mw"] .khata-stat-label { color: #77827A; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
[data-design="mw"] .khata-stat-value { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; color: #141F19; font-size: 18px; font-weight: 700; }
[data-design="mw"] .khata-stat.neg .khata-stat-value { color: #C2410C; }
[data-design="mw"] .khata-stat.pos .khata-stat-value { color: #0A7A4B; }
[data-design="mw"] .khata-stat-sub { color: #9AA49C; font-size: 10.5px; }

/* PR-I I1 — ONE compact chip row (KhataList.dc): no-wrap horizontal scroll (khataSubnav's 7 chips wrapped
 * into 3 rows at legacy scale). board pills 12px/700, 8×15, r99, active dark #141F19/white. Global under mw
 * (all subnavs → consistent single-line compact). All chips KEPT (IA parity). */
[data-design="mw"] .subnav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; -ms-overflow-style: none; margin-bottom: 14px; padding-bottom: 2px; }
[data-design="mw"] .subnav::-webkit-scrollbar { display: none; }
[data-design="mw"] .subnav-tab { flex: none; white-space: nowrap; font-size: 12px; font-weight: 700; padding: 8px 15px; border-radius: 99px; background: #FFFFFF; border: 1px solid #E7E6DF; color: #141F19; min-height: 0; }
/* ACTIVE chip spec (board dark #141F19 / r99) lives at the `.subnav .subnav-tab.active` rule above — it is the
 * specificity winner, so putting the values here too would be dead weight. See that rule. */

/* PR-I — SORT CONTROL compaction (shared ui.js sortControl, controls row). base.css:2766 flips `.sort-ctl` to
 * flex-wrap:wrap at mobile → the label wraps ABOVE the 36px select = ~79px, shoving the list below the fold.
 * Keep it ONE ~34px line under mw + board-pill look. CSS-only; markup/handlers untouched. The inline-text
 * "Purana pehle ▾" replacement is a deferred ui.js util change (ORCH ruling 2026-11-24). */
[data-design="mw"] .sort-ctl { flex-wrap: nowrap; gap: 6px; }
[data-design="mw"] .sort-ctl .sort-lbl { font-size: 11px; font-weight: 700; color: #77827A; }
[data-design="mw"] .sort-ctl .sort-lbl .ur { display: none; }
[data-design="mw"] .sort-sel { height: 34px; border-radius: 99px; border-color: #E7E6DF; font-size: 12px; font-weight: 700; max-width: 150px; }
[data-design="mw"] .sort-dir { height: 34px; min-width: 34px; border-radius: 99px; border-color: #E7E6DF; }

/* ── PR-I EXPANSION — per-screen compaction (archetypes C/D/E; A/B already global via I1/I2) ──
 * STOCK band already rides I2 (.khata-band/.khata-stat — stock-extras.js). Below: reports period row,
 * intake choice cards, the counter review promo. All design_mw-gated, off-flag byte-identical. */
/* REPORTS period chip row (Aaj/Kal/7din/Is mahina/Apni tareekh) — one scrollable line (was wrapping 2 rows) */
[data-design="mw"] .mw-reports .chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
[data-design="mw"] .mw-reports .chips::-webkit-scrollbar { display: none; }
/* INTAKE 2-col compaction folded into the canonical .intake-tiles rule below (PR-H H1 block) — one source of truth */
/* COUNTER "Review likhein" promo (live owner feature, sits above search = prime space) → compact band */
[data-design="mw"] .review-banner { padding: 10px 12px; border-radius: 14px; }
[data-design="mw"] .review-banner-body { font-size: 12.5px; }
[data-design="mw"] .table-wrap thead th { color: #77827A; font-size: 10px; letter-spacing: .4px; text-transform: uppercase; font-weight: 800; border-bottom: 1px solid #E7E6DF; }
/* routed "source/kind" tiles (intake wizard .src, chooser-style) — mw card rows like .pick */
[data-design="mw"] .pick, [data-design="mw"] .src-tile, [data-design="mw"] [data-src] { border-radius: 14px; border: 1px solid #E7E6DF; background: #FFFFFF; }
[data-design="mw"] [data-src]:hover, [data-design="mw"] .src-tile:hover { border-color: #0A7A4B; background: #F1F7F3; }

/* ── PR-H H2 — PARTY-LEDGER FAMILY (Trade/dukaan, Supplier/wholesaler + every party ledger). Mujaddad's
 * doctrine: customer / wholesaler / shop-to-shop ledgers must look IDENTICAL — so PR-7's khata treatment is
 * generalised to GLOBAL under mw (the `.mw-khata`-scoped copies above remain, harmless, same tokens). Covers
 * the party hero, list rows + the shared passbook on trade/supplier/dealer/partner alike. The `cancelled`
 * strike (PR-5) + merged-statement rows already ride these. */
[data-design="mw"] .cust-hero { background: #FFFFFF; border: 1px solid #E7E6DF; border-left: 4px solid #E7E6DF; border-radius: 16px; }
[data-design="mw"] .cust-hero.pos { border-left-color: #0A7A4B; } [data-design="mw"] .cust-hero.neg { border-left-color: #C2410C; }
[data-design="mw"] .cust-hero-label { color: #77827A; font-size: 10.5px; font-weight: 600; }
[data-design="mw"] .cust-bal-big { font-size: 28px; font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; color: #141F19; }
[data-design="mw"] .cust-bal-big.pos { color: #0A7A4B; } [data-design="mw"] .cust-bal-big.neg { color: #C2410C; }
[data-design="mw"] .cust-hero-actions .btn-primary { background: linear-gradient(160deg, #0C8A55, #086B41); color: #fff; border: none; border-radius: 12px; font-weight: 800; }
[data-design="mw"] .cust-hero-actions .btn-ghost { background: #FFFFFF; border: 1px solid #E7E6DF; color: #141F19; border-radius: 12px; }

/* ───────── FACE board-8 (KhataDetail) — compact hero + TYPE PARITY (extracted from KhataDetail.dc.html;
   do NOT reuse counter's numbers). Shared party-ledger hero (customer/wholesaler/s2s/supplier/partner).
   off-flag untouched. ───────── */
/* number 25/700 SG (was 28); label caps 9.5/800/ls.5 (board "AAP KO LENE HAIN"). */
[data-design="mw"] .mw-khata .cust-bal-big { font-size: 25px; font-weight: 700; }
[data-design="mw"] .mw-khata .cust-hero-label { font-size: 9.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
/* hero top row: big number LEFT, chadha/utra stats RIGHT, in the same card; net line + actions wrap full-width below. */
[data-design="mw"] .mw-khata .cust-hero { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 12px; }
[data-design="mw"] .mw-khata .cust-hero-bal { flex: 1 1 auto; min-width: 0; }
[data-design="mw"] .mw-khata .cust-hero-chips { flex: 0 0 auto; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-top: 2px; text-align: right; }
[data-design="mw"] .mw-khata .cust-hero-chips .mini-chip { flex-direction: row; align-items: baseline; gap: 5px; }
[data-design="mw"] .mw-khata .cust-hero-chips .mini-chip-v { font-size: 11px; font-weight: 700; }
[data-design="mw"] .mw-khata .cust-hero-chips .mini-chip-l { font-size: 10px; color: #77827A; }
[data-design="mw"] .mw-khata .cust-hero-split { flex-basis: 100%; font-size: 11px !important; color: #3B5BCC; }  /* blue net line (board) */
[data-design="mw"] .mw-khata .cust-hero-split .num { color: #3B5BCC; }
/* actions = two COMPACT pill rows (primary pills + the "more" pills), not full-width buttons. */
[data-design="mw"] .mw-khata .cust-hero-actions { flex-basis: 100%; }
[data-design="mw"] .mw-khata .cust-actions-primary .btn { flex: 0 0 auto !important; min-width: 0 !important; font-size: 12px; padding: 7px 15px; border-radius: 999px; }
[data-design="mw"] .mw-khata .cust-actions-more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
[data-design="mw"] .mw-khata .cust-actions-more .btn-sm { font-size: 11px; padding: 6px 12px; border-radius: 999px; }

[data-design="mw"] .cust-row { border-bottom: 1px solid #EFEEE7; }
[data-design="mw"] .cust-row:hover { background: #F6F5F0; }
[data-design="mw"] .cust-row .model { color: #141F19; font-weight: 700; }
[data-design="mw"] .cust-bal { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }
[data-design="mw"] .cust-bal.pos { color: #0A7A4B; } [data-design="mw"] .cust-bal.neg { color: #C2410C; }
/* shared passbook (ledger-table.js) — the bahi-khata rows on EVERY ledger */
[data-design="mw"] .ledg-row td { border-top: 1px solid #F0EFE8; }
[data-design="mw"] .ledg-row .num { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }
[data-design="mw"] .ledg-row .imei { color: #9AA49C; }
[data-design="mw"] .ledger-total td { border-top: 2px solid #141F19 !important; font-family: 'Space Grotesk', Inter, sans-serif; }

/* ════════════════════════════════════════════════════════════════════════════
 * PR-H H1 — REPORTS (board 11 Munafa / REPORT pattern), scoped `.mw-reports` (screens-b.js reportsScreen).
 * mw tabs + statement rhythm + band ticks; CSS-only, money-math untouched. ⚠ NAMED DEVIATION (declared,
 * ORCH follow): v1 keeps its KPI-TILE band — board 11 uses a P&L STATEMENT-card + a dark "bacha" hero; the
 * band→statement markup restructure is a careful follow (money screen), not a silent CSS approximation. */
[data-design="mw"] .mw-reports .settings-tabs { display: flex; gap: 6px; background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 12px; padding: 4px; }
[data-design="mw"] .mw-reports .seg-tab { min-height: 34px; border-radius: 9px; background: transparent; border: 0; color: #77827A; font-weight: 700; font-size: 12.5px; }
[data-design="mw"] .mw-reports .seg-tab.active { background: #141F19; color: #FFFFFF; font-weight: 800; }
[data-design="mw"] .mw-reports .section-head h2, [data-design="mw"] .mw-reports .section-head h3 { color: #141F19; font-weight: 800; letter-spacing: -.01em; }
[data-design="mw"] .mw-reports .khata-stat.pos { border-left-color: #0A7A4B; }
[data-design="mw"] .mw-reports .khata-stat.neg { border-left-color: #C2410C; }
[data-design="mw"] .mw-reports .num { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }
/* board-11 P&L statement (design_mw owner): dark "bacha" hero + bahi-khata rows */
[data-design="mw"] .mw-reports .rep-hero { background: linear-gradient(135deg, #0F5C3A, #0A4A2E); border-radius: 20px; padding: 18px 20px; margin-bottom: 16px; }
[data-design="mw"] .mw-reports .rep-hero-label { font-size: 10.5px; color: #BFE3D0; letter-spacing: .6px; font-weight: 800; text-transform: uppercase; }
[data-design="mw"] .mw-reports .rep-hero-amt { display: block; font: 700 32px/1.1 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; color: #FFFFFF; letter-spacing: -.02em; margin-top: 3px; }
[data-design="mw"] .mw-reports .rep-stmt { padding: 2px 18px; border-radius: 20px; margin-bottom: 16px; }
[data-design="mw"] .mw-reports .rep-stmt-row { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px solid #F2F1EB; }
[data-design="mw"] .mw-reports .rep-stmt-row:last-child { border-bottom: 0; }
[data-design="mw"] .mw-reports .rep-stmt-label { font-size: 13.5px; color: #141F19; font-weight: 700; }
[data-design="mw"] .mw-reports .rep-stmt-label.strong { font-weight: 800; }
[data-design="mw"] .mw-reports .rep-stmt-val { font: 700 15px 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; color: #141F19; white-space: nowrap; }
[data-design="mw"] .mw-reports .rep-stmt-val.pos { color: #0A7A4B; }
[data-design="mw"] .mw-reports .rep-stmt-val.neg { color: #C2410C; }

/* ════════════════════════════════════════════════════════════════════════════
 * PR-H H1 — ACTIVITY LOG (LIST pattern, feed rows w/ category ticks like the counter feed). The `.act-row`
 * feed (activity screen + register activity card) gets a 3px left tick by BUCKET (data-cat added in
 * activity.js, inert off-flag) + mw row treatment + Space-Grotesk amounts. Buckets: paisa=money-green,
 * khata=udhaar-amber, stock=gold. Cancelled rows already strike (PR-5). */
[data-design="mw"] .act-row {
  background: #FFFFFF; border: 1px solid #E7E6DF; border-left: 3px solid #E7E6DF; border-radius: 12px;
  margin-bottom: 6px; padding: 9px 12px;
}
[data-design="mw"] .act-row[data-cat="paisa"] { border-left-color: #0A7A4B; }
[data-design="mw"] .act-row[data-cat="khata"] { border-left-color: #A15C07; }
[data-design="mw"] .act-row[data-cat="stock"] { border-left-color: #3B5BCC; }
[data-design="mw"] .act-title { font-size: 12.5px; font-weight: 700; color: #141F19; }
[data-design="mw"] .act-meta { font-size: 9.5px; color: #9AA49C; }
[data-design="mw"] .act-when { font-size: 9.5px; color: #9AA49C; }
[data-design="mw"] .act-amt { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; font-weight: 700; }
[data-design="mw"] .act-badge { background: #FFF4E3; color: #A15C07; border-radius: 6px; font-size: 9px; font-weight: 800; }

/* ════════════════════════════════════════════════════════════════════════════
 * PR-H H1 — INTAKE WIZARD interior (board 6/16 family / FORM pattern). intake-unique classes → no wrapper
 * (no bleed). Source tiles (`[data-src]`) also ride the BATCH-C baseline; these cover the type/step chrome. */
[data-design="mw"] .intake-step-h { font-size: 14px; font-weight: 800; color: #141F19; letter-spacing: -.01em; }
[data-design="mw"] .intake-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }  /* PR-I: 2-col (4 tall tiles ate a full screen for one question — board-6/16 scale) */
[data-design="mw"] .intake-tile { background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 14px; padding: 11px 12px; }
[data-design="mw"] .intake-tile:hover, [data-design="mw"] .intake-tile:focus-visible { border-color: #0A7A4B; background: #F1F7F3; }
[data-design="mw"] .intake-tile-t { font-size: 14px; font-weight: 700; color: #141F19; }
[data-design="mw"] .intake-tile-s { font-size: 11.5px; color: #77827A; }
[data-design="mw"] .intake-tile-sm { min-height: 44px; font-weight: 700; border-radius: 12px; }
[data-design="mw"] .intake-back { color: #0A7A4B; font-weight: 700; }

/* ════════════════════════════════════════════════════════════════════════════
 * PR-H H1 — SETTINGS (HUB+FORM pattern) + shared segmented tabs. `.seg-tab`/`.settings-tabs` are used ONLY
 * by Reports + Settings (both in-scope) → treated GLOBALLY under mw (no wrapper). Settings' group cards +
 * fields ride the BATCH-C baseline; this gives it the mw tab bar = the HUB+FORM surface. (The .mw-reports
 * seg-tab rules above are now covered by this global too — kept harmless, same tokens.) */
[data-design="mw"] .settings-tabs { display: flex; gap: 6px; background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 12px; padding: 4px; overflow-x: auto; }
[data-design="mw"] .seg-tab { min-height: 34px; border-radius: 9px; background: transparent; border: 0; color: #77827A; font-weight: 700; font-size: 12.5px; white-space: nowrap; padding: 0 10px; }
[data-design="mw"] .seg-tab.active { background: #141F19; color: #FFFFFF; font-weight: 800; }
[data-design="mw"] .set-group-title, [data-design="mw"] .settings-group-h { font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase; font-weight: 800; color: #77827A; }

/* ── 360px ──────────────────────────────────────────────────────── */
@media (max-width: 374px) {
  [data-design="mw"] .ctr-v { font-size: 15px; }
  [data-design="mw"] .ctr-tile .ctr-ti { font-size: 10px; }
  [data-design="mw"] .sell-grid .field input, [data-design="mw"] .sell-grid .field select { font-size: 13px; }
  [data-design="mw"] #amountForm .field input[name="amount"], [data-design="mw"] #ctrExpForm .field input[name="amount"] { font-size: 20px; }
}

/* ════════════════════════════════════════════════════════════════════════════
 * boards 2 SellEntry + 3 PhonePicker (design_mw) — "live form re-skin": the sell form's compact CAPS field
 * labels + Space-Grotesk money inputs, and the picker sheet's dense phone rows (SPEC-SellEntry /
 * SPEC-PhonePicker type tables). COPY (CAPS label text) is mw-gated in screens-b.js; this is the TYPE layer.
 * Scoped to the mw sell form card + the sell/exchange picker sheet → off-flag + desktop untouched. No handlers/money. */
/* board 2 — every sell-form field label (incl. the party-picker title KHAREEDAR + walk-in NAAM/MOBILE/CNIC):
 * compact CAPS, 800, .4px ls, 9px (board 8.5-9; ±1 covers KAISE/WARRANTY 10px). Chips ("Dukan se dukan") untouched. */
[data-design="mw"] .mw-sell-formcard .field label { text-transform: uppercase; font-weight: 800; letter-spacing: .4px; font-size: 9px; }
/* board 2 — the two hero money INPUTS (price + received) = Space Grotesk tabular, board 19px/700. */
[data-design="mw"] .mw-sell-formcard .mw-sell-moneypair input[name="price"],
[data-design="mw"] .mw-sell-formcard .mw-sell-moneypair input[name="received"] { font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; font-size: 19px; font-weight: 700; }
/* board 2 — h1 "Phone bechein" is a SENTENCE header → the fleet global `[data-design=mw] .page-head h1`
 * (16.5/800) stands; NO sell-specific h1 rule (ORCH ruling: one fleet h1, no per-screen specificity bumps.
 * One-word titles use the shared `.mw-title-lg` tag, owned by B03's block). The ‹back app-bar = Muj decision list. */
/* board 3 — the phone-picker sheet rows → board/stock dense-row grammar: model 14/800 · storage·condition
 * 11.5 · price 14/700 Space Grotesk tabular (shared deviceRow; PTA chip unchanged). */
[data-design="mw"] .mw-sell-sheet .dev-row .model { font-size: 14px; font-weight: 800; }
[data-design="mw"] .mw-sell-sheet .dev-row .imei { font-size: 11.5px; }
[data-design="mw"] .mw-sell-sheet .dev-row .num { font-size: 14px; font-weight: 700; font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; }

/* == DESKTOP == PR-D1 CSS slice (board 96 DeskHome frame) — ORCH solo 2026-11-24 night, mw.css
   custody B02-on-hold. DOUBLE-GATED per DESKTOP-BUILD-PLAN rule C: [data-design=mw] scope AND
   min-width:1024px — phone (<1024) and off-flag shops untouched by construction. Pure CSS re-skin
   of EXISTING desktop DOM (nav.sidebar/.topbar/.main + mw counter classes); no DOM, no handlers.
   D1 follows for B02 on resume: AUR-SE rail grouping hook, ctr-side right-rail 2-pane placement,
   desk-keys.js keyboard layer. */
@media (min-width:1024px){
  /* --- rail (board 96: 216px #141F19 · items 13px/600 #9FACA3 pad 10x12 r12 · active #0A7A4B) --- */
  [data-design=mw] .sidebar{width:216px;background:#141F19;padding:18px 12px 14px;border-right:0}
  [data-design=mw] .sidebar .brand{color:#fff;font-weight:700;letter-spacing:1px;font-size:13px;padding:0 10px 14px}
  [data-design=mw] .sidebar .nav-item{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:12px;
    font-size:13px;font-weight:600;color:#9FACA3;background:transparent;margin:0 0 3px}
  [data-design=mw] .sidebar .nav-item:hover{background:rgba(255,255,255,.07);color:#fff}
  [data-design=mw] .sidebar .nav-item.active{background:#0A7A4B;color:#fff;font-weight:700}
  [data-design=mw] .sidebar .nav-item .ur{color:inherit;opacity:.5}
  [data-design=mw] .sidebar .nav-list-hub{border-top:1px solid rgba(255,255,255,.08);margin-top:10px;padding-top:10px}

  /* --- topbar (board 96: 62px white, hairline, search card 40px r12 max 520) --- */
  [data-design=mw] .topbar{background:#fff;border-bottom:1px solid #E7E6DF;min-height:62px}
  [data-design=mw] .topbar input{background:#F6F5F0;border:1px solid #E7E6DF;border-radius:12px;height:40px;max-width:520px}

  /* --- main canvas: board paper + readable measure --- */
  [data-design=mw] .main{background:#F6F5F0}
  [data-design=mw] .main > .page,[data-design=mw] .main > *{max-width:1100px;margin-left:auto;margin-right:auto}

  /* --- counter reflow (named counterparts to the phone collapses, plan rule A) --- */
  [data-design=mw] .ctr-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
  [data-design=mw] .ctr-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}
  [data-design=mw] .ctr-side{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:16px;align-items:start}

  /* --- D-micro-slice (plan rule D): money sheets center as modals at desk, same form IDs --- */
  [data-design=mw] #modal-root .modal-sheet{position:fixed;left:50%;top:50%;right:auto;bottom:auto;
    transform:translate(-50%,-50%);width:min(440px,92vw);max-height:86vh;border-radius:20px}

  /* --- PR-D1 rail LIST (B02 follow): the promoted phone nav — primary TABS then an "AUR SE" group.
     shell.js mountDeskRail hides the grouped .nav-list and injects .mw-rail-list under mw&&>=1024;
     items are .nav-item so ORCH's rail skin + .active above apply. --- */
  [data-design=mw] .sidebar .mw-rail-list{display:flex;flex-direction:column;gap:3px;margin-top:22px}
  [data-design=mw] .sidebar .mw-rail-list .nav-item svg{width:17px;height:17px;flex:none;stroke:currentColor}
  [data-design=mw] .sidebar .mw-rail-list .nav-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  [data-design=mw] .sidebar .mw-rail-label{font-size:8.5px;color:#5A655D;font-weight:800;letter-spacing:1px;text-transform:uppercase;padding:14px 12px 4px}

  /* --- PR-D2 board-97 khata TWO-PANE: list (350) left · detail passbook right. customersScreen composes
     listHtml + customerDetail under mw&&>=1024; both bound. The passbook stays the B5 real table. --- */
  [data-design=mw] .main > .mw-khata-desk{max-width:none}   /* the two-pane uses the full canvas, not the 1100 measure */
  [data-design=mw] .mw-khata-desk{display:grid;grid-template-columns:350px minmax(0,1fr);gap:18px;align-items:start}
  [data-design=mw] .mw-khata-desk > .mw-khata{min-width:0}
  [data-design=mw] .mw-khata-desk .mw-k-detailpane{min-width:0}
  [data-design=mw] .mw-khata-desk .mw-k-detailpane [data-cust-back]{display:none}   /* the list is beside it — no back button needed */
  [data-design=mw] .mw-k-empty{padding:60px 20px;text-align:center;color:#9AA49C;font-size:14px;background:#fff;border:1px solid #E7E6DF;border-radius:16px}

  /* --- PR-D3 board-108 "/" command palette (desk-keys opens #mwSearchPalette under mw&&>=1024). Results
     reuse the .gs-item rows from the topbar global search. --- */
  [data-design=mw] .mw-search-palette{position:fixed;inset:0;z-index:5200;display:flex;align-items:flex-start;justify-content:center;padding-top:90px}
  [data-design=mw] .mw-search-palette .msp-scrim{position:absolute;inset:0;background:rgba(20,31,25,.45)}
  [data-design=mw] .mw-search-palette .msp-card{position:relative;width:640px;max-width:92vw;max-height:72vh;background:#fff;border-radius:20px;box-shadow:0 24px 70px rgba(20,31,25,.4);overflow:hidden;display:flex;flex-direction:column}
  [data-design=mw] .msp-head{display:flex;align-items:center;gap:12px;padding:15px 18px;border-bottom:1px solid #E7E6DF;flex:none}
  [data-design=mw] .msp-head .msp-lead{width:18px;height:18px;color:#0A7A4B;flex:none}
  [data-design=mw] .msp-head #mspInput{flex:1;min-width:0;border:0;outline:none;font:600 16px/1.3 Inter,system-ui,sans-serif;color:#141F19;background:transparent}
  [data-design=mw] .msp-esc{font-size:10px;color:#9AA49C;border:1px solid #E7E6DF;border-radius:5px;padding:2px 7px;flex:none}
  [data-design=mw] .msp-results{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 0}
  [data-design=mw] .msp-results .gs-empty{padding:26px 18px;text-align:center;color:#9AA49C;font-size:13.5px}
  [data-design=mw] .msp-foot{flex:none;padding:9px 18px;border-top:1px solid #E7E6DF;background:#F6F5F0;font-size:10.5px;color:#77827A;font-weight:600}

  /* --- PR-D3 board-106 buy 2-col: §1 phone-details (3-col grid) LEFT | §2 source + §3 cost/payment RIGHT.
     Wrappers emit only at mwBuy && >=1024 (buyScreen) → below 1024 / off-flag they're absent, form byte-
     identical. .mw-buy-desk spans the form-grid, then splits. --- */
  [data-design=mw] .mw-buy-desk{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1.3fr) 330px;gap:16px;align-items:start}
  [data-design=mw] .mw-buy-detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px;align-content:start}
  [data-design=mw] .mw-buy-detail > .field.full,[data-design=mw] .mw-buy-detail > .fieldset-title{grid-column:1 / -1}
  [data-design=mw] .mw-buy-side{display:flex;flex-direction:column;gap:10px;min-width:0}
  [data-design=mw] .mw-buy-side > .fieldset-title{margin-top:2px}

  /* --- PR-D4 board-98 stock: at desktop the "each" view is the NATIVE wide table (the A2 list-row block
     is now <=720 only), so it reads board-98 inside the D1 frame. Tidy the table + the existing bulk bar.
     NOTE: board-98's multi-action bulk bar (Sticker ×N / Bulk invoice / Website on-off / Dusri dukan) is a
     FEATURE beyond the current delete-only #stkDelBar → declared follow, not CSS. --- */
  [data-design=mw] .mw-stock .table-wrap{overflow-x:auto}
  [data-design=mw] .mw-stock .table-wrap table{width:100%;border-collapse:collapse}
  [data-design=mw] .mw-stock .table-wrap thead th{position:sticky;top:0;background:#F6F5F0;z-index:1}
  [data-design=mw] .mw-stock .table-wrap td,[data-design=mw] .mw-stock .table-wrap th{padding:9px 12px}
  [data-design=mw] .mw-stock .table-wrap .imei,[data-design=mw] .mw-stock .table-wrap .num{white-space:nowrap}
  [data-design=mw] .mw-stock #stkDelBar{border-radius:14px;max-width:1100px}

  /* --- PR-D4 board-101 reports: the existing KPI band (auto-fit) + P&L statement + sections reflow
     multi-col in the D1 frame. board-101's day-by-day bar chart / "sab se zyada chala" / "ek amal" nudge
     are NEW visualisations the current reports doesn't have → declared feature follows, not CSS. --- */
  [data-design=mw] .mw-reports .khata-band{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
  [data-design=mw] .mw-reports .table-wrap{max-width:900px}
}

/* ───────── FACE: GLOBAL mw TYPE BASELINE (ORCH priority insert 2026-11-25) ─────────
   The delta-7 h1 fix was scoped to body.mw-face-counter, so every OTHER mw screen kept the 22px h1 while
   its board is ~16.5-17 (Tester: sell h1 live 22 vs SellEntry board 17). Boards cluster: page-title h1
   16.5-17/800, subtitle ~10.5, card section titles ~13-14. Apply the baseline GLOBALLY for mw MOBILE only;
   desktop ≥1024 keeps the mw.css:19 size (D-wave), off-flag untouched, and counter's face values still win
   (body.mw-face-counter is more specific). Per-board exact values (e.g. KhataDetail money hero 25, BuyPhone
   cost 26 — those are NUMBERS not h1) are component-styled / refined per-screen in Tester's sweep. */
@media (max-width: 1023px) {
  [data-design="mw"] .page-head h1 { font-size: 16.5px; font-weight: 800; }
  [data-design="mw"] .page-head p { font-size: 10.5px; }
  [data-design="mw"] .section-head h2 { font-size: 14px; }
  /* board-9 (Register) title-fold: the board keeps a COMPACT "Daily register" + badge + date, then the 4
     tabs — so with the h1 now 16.5 we just tighten the head so the tabs rise ("straight to tabs"). The
     functional date/stale/backdated line (the sub <p>) stays. Register desktop (board-100) is ≥1024, untouched. */
  [data-design="mw"] .mw-register .page-head { margin-bottom: 8px; }
  [data-design="mw"] .mw-register .page-head p { margin-top: 2px; }

  /* board-10 Stock DENSE LIST rows (board: name 14/800 + grey specs + …tail + coloured PTA + age + price
     right 14/700 SG). No columns/checkbox. Tap = existing record (data-trace hooks). */
  [data-design="mw"] .mw-stk-list { background: #fff; border: 1px solid #E7E6DF; border-radius: 18px; overflow: hidden; }
  [data-design="mw"] .mw-stk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #F2F1EB; cursor: pointer; }
  [data-design="mw"] .mw-stk-row:last-child { border-bottom: 0; }
  [data-design="mw"] .mw-stk-row:hover { background: #F6F5F0; }
  [data-design="mw"] .mw-stk-main { min-width: 0; }
  [data-design="mw"] .mw-stk-t { font-size: 14px; font-weight: 800; color: #141F19; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  [data-design="mw"] .mw-stk-spec { font-weight: 500; color: #77827A; }
  [data-design="mw"] .mw-stk-sub { font-size: 11px; color: #77827A; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  [data-design="mw"] .mw-stk-price { font-size: 14px; font-weight: 700; font-family: 'Space Grotesk', Inter, sans-serif; font-variant-numeric: tabular-nums; color: #141F19; flex: none; }

  /* carried band-wrap fix: keep .mw-stock-band1 to ONE row (numbers abbreviated L/k in stock-extras under mw). */
  [data-design="mw"] .mw-stock-band1 { flex-wrap: nowrap; font-size: 11px; gap: 7px; padding: 9px 13px; overflow: hidden; }
  [data-design="mw"] .mw-stock-band1 .num { font-size: 12.5px; }

  /* ⭐ LABEL-CASE FLEET FIX (ORCH): card labels were Title-case (.khata-stat-label 10.5/600 per-scope at
     mw.css:757/850) vs board CAPS. Apply the board card-label treatment GLOBALLY — uppercase 9/800/ls.4
     (equal specificity to the per-scope rules + later source order → wins). Counter's .ctr-k already CAPS. */
  /* specificity-matched to the scoped (0,3,0) rules at mw.css:757/815/850 (they set 10.5/600 and beat a bare
     selector — only the uppercase landed before). Enumerate the scopes so 9/800 wins FLEET-wide + later in source. */
  [data-design="mw"] .khata-stat-label,
  [data-design="mw"] .stat-label,
  [data-design="mw"] .mw-stock .khata-stat-label,
  [data-design="mw"] .mw-khata .khata-stat-label,
  [data-design="mw"] .mw-register .khata-stat-label,
  [data-design="mw"] .mw-register .stat-label { text-transform: uppercase; font-weight: 800; letter-spacing: .4px; font-size: 9px; color: #77827A; }
  /* addendum #2: register opening-cash "fix" = the board's SUB-LINE affordance, not a ghost-button block
     (tap target / data-edit-opening preserved). */
  [data-design="mw"] .mw-register [data-edit-opening] { background: none; border: 0; padding: 0; margin-top: 4px; min-height: 0; height: auto; color: #0A7A4B; font-weight: 700; font-size: 11px; }
}

/* ========================================================================
 * PR-7 board-7 (KhataList) compact re-skin — B03 2026-11-25 (owns mw.css this window; append-only, global
 * scope gated [data-design="mw"] + scoped .mw-khata / shared .mw-title-lg → off-flag + other screens untouched).
 * Tile LABEL size/case already fleet-handled (mw.css:1255); here: title 22, tile amount 18, chips 12/700
 * color-coded, contact-row type, trash hidden, compact sort + Aur overflow.
 * ======================================================================== */
/* (6) TITLE 22 — rides ahead of B02's queued global-16.5: specificity (0,3,1) beats a bare .page-head h1 (0,2,1). */
[data-design="mw"] .page-head.mw-title-lg h1 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
/* (1) tile AMOUNT 20 -> 18 (board). */
[data-design="mw"] .mw-khata .khata-stat-value { font-size: 18px; }
/* (2) filter chips 12/700, Lena green / Dena red when not active (active keeps the filled pill). */
[data-design="mw"] .mw-khata .list-toolbar .chip { font-size: 12px; font-weight: 700; }
[data-design="mw"] .mw-khata .list-toolbar .chip[data-cust-filter="owe"]:not(.active) { color: #0A7A4B; border-color: #BDE5CE; }
[data-design="mw"] .mw-khata .list-toolbar .chip[data-cust-filter="advance"]:not(.active) { color: #C2410C; border-color: #F2C9AE; }
/* (3) contact row — name 14.5/800, amount 14.5/700 (SG family already mw.css:869); trash dropped (also omitted in markup). */
[data-design="mw"] .mw-khata .cust-row .model { font-size: 14.5px; font-weight: 800; }
[data-design="mw"] .mw-khata .cust-bal { font-size: 14.5px; font-weight: 700; }
[data-design="mw"] .mw-khata .cust-row .row-del { display: none; }
/* (4) toolbar — compact sort chip + Aur (⋯) overflow holding Export (declared placement, nothing-lost). */
[data-design="mw"] .mw-khata .list-toolbar .sort-ctl { gap: 4px; }
[data-design="mw"] .mw-khata .list-toolbar .sort-lbl { display: none; }
[data-design="mw"] .mw-khata .list-toolbar .sort-sel { font-size: 12px; font-weight: 600; border: 1px solid #E7E6DF; border-radius: 10px; background: #FFFFFF; color: #141F19; padding: 5px 8px; height: auto; }
[data-design="mw"] .mw-khata .list-toolbar .sort-dir { border: 1px solid #E7E6DF; border-radius: 10px; background: #FFFFFF; color: #141F19; width: 28px; height: 28px; min-height: 0; }
[data-design="mw"] .mw-khata .khata-ov { position: relative; }
[data-design="mw"] .mw-khata .khata-ov > summary { list-style: none; cursor: pointer; }
[data-design="mw"] .mw-khata .khata-ov > summary::-webkit-details-marker { display: none; }
[data-design="mw"] .mw-khata .khata-ov-menu { position: absolute; right: 0; top: 34px; z-index: 20; background: #FFFFFF; border: 1px solid #E7E6DF; border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(22,37,29,.14); white-space: nowrap; }

/* ════════════════════════════════════════════════════════════════════════════
 * board 3 PhonePicker BRAND-FILTER chips + board-2 KAISE?/WARRANTY 9->10 nit (B02, 2026-11-25 window; appended
 * below B03's board-7 block per the custody order). Scoped mw + sell form/sheet → off-flag + desktop untouched. */
/* brand chips: one no-wrap scrollable row between Scan and the dense rows; active = dark pill. The filter
 * composes with #sellSearch in bindPickerSearch (AND brand+text, clear-either-restores). */
[data-design="mw"] .mw-sell-brands { display: flex; gap: 7px; overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 0; margin: 0 0 4px; }
[data-design="mw"] .mw-sell-brands::-webkit-scrollbar { display: none; }
[data-design="mw"] .mw-brand-chip { flex: none; height: 30px; padding: 0 12px; border-radius: 10px; border: 1px solid #E7E6DF; background: #FFFFFF; color: #141F19; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
[data-design="mw"] .mw-brand-chip.active { background: #141F19; color: #FFFFFF; border-color: #141F19; font-weight: 800; }
/* board 2 nit — KAISE? / WARRANTY labels at the board's 10px (the other labels stay 8.5-9). :has targets the
 * two fields with no markup hook, and is more specific than the base `.mw-sell-formcard .field label` rule. */
[data-design="mw"] .mw-sell-formcard .field:has(select[name="method"]) label,
[data-design="mw"] .mw-sell-formcard .field:has(input[name="notes"]) label { font-size: 10px; }
