/* C-doc 3/5 — MUNSHI MOBILE WAVE DESIGN TOKENS (ORCH 2026-11-23, canvas v23)
   Single source. Builders import/copy THIS — never hand-copy hexes from boards.
   Boards are the picture; this file is the law.
   COPIED AS-IS from mobileshop-coord\design-tokens-mobile-wave.css (Mobile Wave P1-B, B02). */

:root {
  /* color — light (default) */
  --m-bg: #F6F5F0;          /* page */
  --m-paper: #FDFDF8;       /* documents: bill/receipt/statement/storefront */
  --m-surface: #FFFFFF;     /* cards */
  --m-ink: #141F19;         /* primary text, black band, dark buttons */
  --m-muted: #77827A;       /* secondary text (>=12px only) */
  --m-faint: #9AA49C;       /* tertiary/disabled text */
  --m-line: #E7E6DF;        /* borders */
  --m-line-soft: #F2F1EB;   /* row dividers */
  --m-green: #0A7A4B;       /* brand / money-in / links */
  --m-green-deep: #085C39;
  --m-green-grad: linear-gradient(160deg, #0C8A55, #086B41); /* primary CTA */
  --m-green-tint: #E9F4EE;  /* green wash bg */
  --m-green-tint-line: #BFE0CE;
  --m-orange: #C2410C;      /* money-out / dena / destructive */
  --m-orange-tint: #FBEDE6; --m-orange-tint-line: #F3C9B5;
  --m-amber: #A15C07;       /* warn / udhaar / due */
  --m-amber-tint: #FFF4E3;  --m-amber-tint-line: #F2D4A0;
  --m-blue: #3B5BCC; --m-blue-tint: #EDF1FB; /* bank + roles/meta */

  /* CATEGORY COLORS (board 80 — Mujaddad 11-23: "different colors for cash in/out/expense/profit")
     Category color goes on ICON CHIP + 3px left tick; AMOUNT color only shows direction. */
  --m-cat-bikri: #0A7A4B;    --m-cat-bikri-tint: #E9F4EE;
  --m-cat-wasooli: #0E7490;  --m-cat-wasooli-tint: #E0F2F7;
  --m-cat-advance: #6D28D9;  --m-cat-advance-tint: #F1EBFB;
  --m-cat-kharcha: #C2410C;  --m-cat-kharcha-tint: #FBEDE6;
  --m-cat-udhaar: #A15C07;   --m-cat-udhaar-tint: #FFF4E3;
  --m-cat-bank: #3B5BCC;     --m-cat-bank-tint: #EDF1FB;
  --m-cat-munafa: #8A6400;   --m-cat-munafa-tint: #F7F0DC;  /* gold — profit/best-day/star */
  /* rules: icon+word always accompany color (color-blind) · max 2 category colors per card · print is mono, color never carries meaning alone */

  /* dark (DarkHome board 25) */
  --m-dark-bg: #101614; --m-dark-surface: #1A211D; --m-dark-line: #273029;
  --m-dark-ink: #F2F5F3; --m-dark-muted: #8C988F;
  --m-dark-green: #34C98A; --m-dark-orange: #FF9068;

  /* type */
  --m-font: Inter, system-ui, sans-serif;           /* ALL text incl buttons */
  --m-font-money: 'Space Grotesk', Inter, sans-serif; /* digits; always with font-variant-numeric: tabular-nums */
  --m-fs-hero: 26px;   /* money hero (21px at 360w, 30-34px gradient headers) */
  --m-fs-title: 18px; --m-fs-body: 13.5px; --m-fs-row-amount: 13.5px;
  --m-fs-meta: 11.5px; --m-fs-label: 10.5px; /* ALL-CAPS labels, ls .6px, w700 */

  /* shape */
  --m-r-card: 18px; --m-r-card-lg: 20px; --m-r-sheet: 26px;
  --m-r-btn-l: 18px; --m-r-btn-m: 13px; --m-r-chip: 11px; --m-r-field: 14px;

  /* buttons (spec7) */
  --m-btn-l: 58px;   /* primary CTA: green-grad, shadow 0 8px 24px rgba(10,122,75,.3) */
  --m-btn-m: 44px;   /* NOTHING interactive below 44px */
  --m-btn-press: scale(.97); /* + darken; disable on FIRST tap + spinner */

  /* spacing & layout */
  --m-gutter: 20px;  /* 16px at 360w */
  --m-gap: 11px; --m-gap-section: 14px;

  /* signature: "bahi-khata rules" — thin ruled line under big money numbers */
  --m-rule: 1px solid var(--m-line);          /* on ink numbers */
  --m-rule-green: 1px solid #DCEFE4;          /* on green numbers */

  /* z-index */
  --m-z-sheet: 1000; --m-z-overlay: 900; --m-z-toast: 4000; /* toast ABOVE everything — old scar */
}

/* BRAND (Mujaddad 11-23): product name on ALL marks = "Munshi AI" — wordmarks, footers,
   "Munshi AI se bana", splash, icon label, prose. Never bare "Munshi".
   Shop public URL = munshiai.pk/<shop-slug> (path, e.g. munshiai.pk/abc-mobiles) — never a subdomain. */

/* mandatory resets */
button { font-family: inherit; }               /* system-font leak fix (v21) */
.m-money { font-family: var(--m-font-money); font-variant-numeric: tabular-nums; }
/* names: 1 line + ellipsis, never wrap. amounts: flex:none, NEVER truncate. */

/* FORMAT LAW (Mujaddad 11-23): lakh grouping EVERYWHERE — 18,74,500.
   ONE formatMoney used by app + print + CSV + WhatsApp + storefront.
   "Rs" prefix ONLY on entry fields + grand totals; bare numbers in lists.
   Negative/out = − prefix + orange; in = + prefix optional + green.
   Zero-balance display: "—" convention stands. PKR never "$". Day names ENGLISH. */
