/* ════════════════════════════════════════════════════════════════
   ROUND 2026-11-23gu (Boss, 2026-11-26) — PATTI POORI APP SE KHATAM
   Boss: "Neeche wali patti kal Party mein khatam ki thi, aaj phir
   aa gayi — wo patti poori app SE khatam kar do taake screen peeche
   na chupe" + "Darmiyan wali patti bhi khatam" + "New add aur chat
   bot wala button rahe upar bas" (buttons floating rahen, sirf un
   ke peeche wali patti jaye).

   Live parakh (360/411, light+dark) mein do asal pattiyan mili:

   1) NEECHE WALI PATTI = nav.mobile-app-nav (bottom tab bar) ka
      solid background + border-top + upar ki taraf shadow:
        clean-ui.css (<=650px): background:white;
          border-top:1px solid var(--line)
        digikhata-mobile.css (<=899px): background:#fff;
          border-top:1px solid var(--line);
          box-shadow:0 -6px 20px rgba(23,37,51,.07)
        dark: background:#0A1730 (page #0C1B36 se alag shade)
      Home par (page bg #F4F6FB) ye safed patti saaf nazar aati thi
      aur SALES tiles is ke peeche kat-te thay; Party dark mein alag
      navy band ban jata tha. Ab container bilkul transparent hai —
      sirf chaar tab buttons apni jagah floating rahen ge (active
      icon ke peeche wali pill button ka apna hissa hai, barqarar).
      Buttons ke muqable content chhupna: list screens par
      .workspace-scroll ki 150px bottom padding aur main ki 152px
      jagah pehle se hai — aakhri line scroll par buttons se upar
      saaf aati hai (parakh shuda).

   2) DARMIYAN WALI PATTI = table header strips: #records th aur
      .own-ledger th ka halka-grey background (clean-ui.css:
      background:#f8f9fa; dark mein #303942) jo Party list ke
      darmiyan (ACCOUNT | BALANCE wali patti, screen ke ~45% par)
      aur ledger mein (Entries | DEBIT | CREDIT wali patti) poori
      chaudi band banata tha. Background khatam — labels barqarar,
      band gayab. Yehi usool Cash/Invoices/Stock/Expense/Parcels ki
      har #records table par bhi lagu hai (sab aik hi rule use
      karti hain).

   #pageAddDock (New/Add) aur #faqChatButton (Karobar AI chat) pehle
   hi transparent/floating thay — un ko haath nahi lagaya; is file
   ke baad bhi dono content ke upar floating rahen ge (parakh shuda).
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  .mobile-app-nav {
    background: transparent !important;
    border-top: 0 !important;
    box-shadow: none !important;
  }
}
#records th,
.own-ledger th {
  background: transparent !important;
}

/* ════════════════════════════════════════════════════════════════
   ROUND 2026-11-23gx — PATTI PART 2 (Boss, 2026-11-26 19:35):
   "Home button ke peeche wala band khatam kar diya, magar Party,
   Parcel aur tab ke ANDAR wala nahi kiya."
   Live parakh (411x917 asal phone size + 360x800, dark/light,
   computed scan + screenshots) mein do aur asal band mile:

   1) TAB KE ANDAR WALA BAND (dark — Party, Parcels, Cash, Home har
      tab screen par): tab bar ke teen tab <a> hain (transparent),
      lekin Calculator wala asal <button> hai. theme-dk.css ka aam
      dark rule `body[data-theme=dark] button{background:
      var(--dk-card2)}` use poori cell (411 par 94x56, 360 par 82x56)
      mein solid #152C5C block se bhar deta tha — baqi teen tabs ke
      muqable ye aik saaf band/block tha (CDP matched-style saboot:
      jeetne wali rule theme-dk.css:35). Ab nav ke andar ka button
      bhi transparent hai — chaaron tabs aik jese floating.
      Light mein ye pehle hi transparent tha, wahan kuch nahi badla.

   2) PARTY LEDGER KE ANDAR WALI PATTI (dark): ledger (party/bank)
      ka body purane grey rangon par tha — .own-ledger #242B33 aur
      #modalbody #1B2128 (clean-ui.css dark rules) — jabke neeche
      .modal-cancel-bar (khud transparent) ke peeche dialog ka apna
      navy #0C1E42 (theme-dk.css:55) aik saaf strip ki tarah nazar
      ata tha jahan CALCULATOR / BAND KAREIN buttons hain; do rangon
      ki sakht edge hi patti thi (pixel saboot: ledger dark mein
      y~843-915 navy, upar grey). Ab ledger ki dono layers
      transparent hain — poora ledger dialog ke aik hi rang par,
      neeche wali strip gayab. Sticky .own-ledger-header ko dialog
      wala hi rang (#0C1E42) diya hai: band nazar nahi ata aur scroll
      par entries us ke peeche bhi nahi ghumte.
      Light mein sab safed tha — koi band nahi tha, na badla gaya.
   ════════════════════════════════════════════════════════════════ */
body[data-theme="dark"] .mobile-app-nav button {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
body[data-theme="dark"] .own-ledger,
body[data-theme="dark"] dialog#modal.bank-action-page > #modalbody {
  background: transparent !important;
}
body[data-theme="dark"] .own-ledger-header {
  background: #13261B !important;
}

/* ════════════════════════════════════════════════════════════════
   ROUND 2026-11-23ha — BAND: HOME wala RAKHO, ENTRIES wala KHATAM
   (Boss, 2026-11-26 20:14 + 20:16): "Home wala na khatam karo,
   entries screen wala khatam karo" — "Entries screen saari:
   Party, Cash, Parcel aur bhi."

   1) HOME PAR BAND WAPAS: 23gu mein tab bar ka apna background
      poori app se transparent kar diya gaya tha. Ab SIRF Home
      screen (body[data-page="home"]) par bar ka asal background
      wapas hai, bilkul pehle ki tarah — light: #fff + var(--line)
      border-top + halki shadow (digikhata-mobile.css wali);
      dark: #0A1730 + var(--dk-line) border-top (theme-dk.css
      wali). Baqi tamam screens par bar transparent/floating hi
      rahe ga. Calculator button ka 23gx transparent rule
      barqarar — Home par bhi band aik hi saaf rang ka rahe ga,
      andar alag block nahi bane ga.

   2) ENTRIES SCREEN WALA BAND = sheet (dialog#modal) ke upar ki
      solid navy patti: #modal>.modal-close-bar ka background
      var(--navy) #0B2E63 (clean-ui.css) — Party ledger, Parcel
      detail aur har entries/detail sheet ke upar 52px ki poori
      chaudi navy patti banti thi (saboot: before parakh mein
      light+dark, 360/411 — bar [0,0 W x 52] bg rgb(11,46,99),
      radius 0). Ab bar ka background transparent hai — back
      arrow, "Karobar1" label aur menu button sheet par floating
      rahe ge. Light mein bar ke safed rang (label/back/menu,
      navy par parhne ke liye thay) navy #0B2E63 kar diye hain
      taake safed sheet par saaf parhe jayen; dark mein safed hi
      rahe ge. Entries ka koi text ya hisaab nahi badla.
      Sath: dark mein #modalbody ka purana grey #1B2128 (clean-ui
      dark rule) bhi transparent — 23gx mein ye sirf bank-action
      ledger ke liye tha; ab har sheet dialog ke aik hi navy rang
      (#0C1E42) par hai, taake upar wali jagah aur body ke
      darmiyan do-rangi kinara (band) na bane. Light mein
      #modalbody ka #F6F7F9 barqarar (safed ke itna qareeb ke
      kinara nahi banta; form ke safed khane usi par parhe jate
      hain). Sticky .own-ledger-header pehle hi apni sheet wala
      rang hai (light safed / dark #0C1E42) — band nahi banta,
      scroll par entries peeche nahi jhalakte; na badla gaya.
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  body[data-page="home"] .mobile-app-nav {
    background: #fff !important;
    border-top: 1px solid var(--line) !important;
    box-shadow: 0 -6px 20px rgba(23, 37, 51, .07) !important;
  }
  body[data-theme="dark"][data-page="home"] .mobile-app-nav {
    background: #081009 !important;
    border-top: 1px solid var(--dk-line) !important;
    box-shadow: none !important;
  }
}
#modal > .modal-close-bar {
  background: transparent !important;
}
body:not([data-theme="dark"]) #modal > .modal-close-bar {
  color: #14301F !important;
}
body:not([data-theme="dark"]) #modal .modal-close-bar .kos-back,
body:not([data-theme="dark"]) #modal .modal-close-bar .audit-back {
  color: #14301F !important;
}
body[data-theme="dark"] #modal > #modalbody {
  background: transparent !important;
}

/* ════════════════════════════════════════════════════════════════
   ROUND 2026-11-2026-11-23hf — TAB BAR KA BAND: BUSINESS CARD SCREEN PAR BHI
   (Boss, 2026-11-26 22:21): "Business card wali screen aur Home par
   icons wala band nahi hai — woh kahan gaya?"

   Live parakh (byte-equal mirror, 360/411, light/dark, Roman/Urdu,
   rest + scroll + asal tap navigation + logged-in stub):
   - Nav (nav.mobile-app-nav) dono screens par DOM mein hai,
     display:grid, 64px, chaaron tabs hittable — koi overlay ya
     dialog use nahi dhanpta, koi hide rule lagu nahi hoti.
   - HOME par band mojood hai (23ha wali rule: light #fff + border
     + halki shadow; dark #0A1730) — har surat mein naapa gaya.
   - BUSINESS CARD screen (body[data-page="business"]) par band
     waqai NAHI tha: 23ha mein band sirf Home ke liye wapas aya tha,
     is screen par nav ka container transparent (floating) hi raha —
     halki grey icons safed form par band ke baghair latke nazar
     aate thay. Yahi is report ki code-se-sabit kami thi.

   Fix: Business Card screen ko bhi bilkul Home wala band diya hai
   (wahi settled values, light + dark). Home ki 23ha rule barqarar.
   Baqi tamam screens par container transparent/floating hi rahe
   ga — entries screens ke settled usool mein koi tabdeeli nahi.
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  body[data-page="business"] .mobile-app-nav {
    background: #fff !important;
    border-top: 1px solid var(--line) !important;
    box-shadow: 0 -6px 20px rgba(23, 37, 51, .07) !important;
  }
  body[data-theme="dark"][data-page="business"] .mobile-app-nav {
    background: #081009 !important;
    border-top: 1px solid var(--dk-line) !important;
    box-shadow: none !important;
  }
}

/* ROUND 2026-11-23hj — DOCK/CHAT KE PEECHE WALA BAND (Boss, 2026-11-26
   22:38): "Add button aur chat bot ke peeche wala band kyun nahi
   khatam ho raha — Parcel mein bhi aise hi hai."

   Jad (byte-equal live mirror par naap kar sabit — 360/411,
   light+dark, rest + full scroll): band kisi element ka rang NAHI
   hai, main ki reserved jagah hai. main height:100dvh +
   box-sizing:border-box hai, aur audit-fixes.css ke baad wale
   hisse ("FLOATING Std #14") ne list-workspace pages par main ki
   padding-bottom mobile par calc(152px + safe-area) aur desktop
   par 96px !important laga rakhi hai — ye 23bx ke
   padding-bottom:0 wale faisle ko hara deti hai (specificity
   barabar, audit-fixes file mein ye rule baad mein ata hai;
   CDP matched-styles saboot: computed padding-bottom = 152px).
   Nateeja: .workspace-scroll viewport se 152px pehle ruk jata
   hai (360x800 par bottom 648/800, 411x917 par 765/917), list
   ki row wahan seedhi line par kat-ti hai (Party ki before
   screenshot mein row aadhi kati hui saaf hai), aur neeche ki
   152px khaali patti par sirf dock/chat/nav bethte hain —
   elementFromPoint strip ke darmiyan mein MAIN khud deta hai,
   koi content wahan ja hi nahi sakta. Yahi Boss ki "band" hai.
   Rang page jesa hi (light safed / dark #0C1B36) hai, is liye
   rang mila kar dekhne wali pichli parakhen ise nahi pakar
   sakti theen — masla rang ka nahi, jagah (geometry) ka tha.

   Fix: list-workspace pages par main ki padding-bottom phir 0
   (23bx wali settled surat) — scroll area poori unchai tak,
   viewport ke aakhir tak jata hai; content dock/chat/nav ke
   peeche se guzarta hua dikhta hai. Aakhri row ki hifazat
   pehle hi scroll area ke ANDAR hai (audit-fixes.css:
   .workspace-scroll padding-bottom
   max(var(--list-dock-space,150px),150px) — computed 150px),
   full scroll par aakhri row dock se upar saaf rehti hai
   (parakh shuda). Home aur Business Card ke settled band ko
   haath nahi lagaya (wahan data-list-workspace false hai) —
   POS bhi is se bahir hai. */
body[data-list-workspace="true"] main {
  padding-bottom: 0 !important;
}

/* ════════════════════════════════════════════════════════════════
   ROUND 2026-11-23ho — TAB BAR KA BAND: SIRF TAB BAR KE PEECHE,
   UTNA HI (Boss, 2026-11-26 23:15): "Band khatam ho gaya (Add/chat
   wala) — mgr aik masla: Home, Party, Cash wale se bhi khatam kar
   diya. Sirf un ke peeche to rakho — utna hi."

   Tay shuda surat: neeche wali TAB BAR (Home / Party / Cash /
   Calculator icons) ke peeche us ka apna band rahe — sirf tab bar
   ki apni jagah (nav ka apna box, 64px + safe-area) tak, is se
   zyada aik inch nahi. Add dock aur chat button ke peeche koi
   band NAHI — 23hj wali geometry (main padding-bottom:0, list
   screen ke aakhir tak, content buttons ke peeche se guzarta
   hua) bilkul barqarar, use haath nahi lagaya.

   Before parakh (byte-equal live mirror, 360/411, light+dark,
   Roman/Urdu, computed + screenshots) ki sabit surat:
   - Home: band MOJOOD (light #fff + border-top + shadow; dark
     #0A1730 + border) — 23ha wali rule code mein hai aur naap
     kar mili. Boss ke phone par Home ka band bhi gayab hai —
     code mein is ki koi wajah nahi mili; ye usi per-asset SW
     adoption wali surat taraf ishara hai jis se pehle bhi
     builds phone par der se/purane asset ke sath atke hain.
     Is round ka naya token phone par poora set phir taza
     kare ga; phone parakh final verdict hai.
   - Business Card: band MOJOOD (23hf) — barqarar.
   - Party / Cash: band NAHI tha — 23gu mein container poori
     app par transparent hua tha, us ke baad band sirf Home
     (23ha) aur Business (23hf) ko wapas mila; Party/Cash ko
     kabhi wapas mila hi nahi. Yahi is round ki asal jad hai.
   - Parcels waghera: transparent/floating — Boss ke hukm par
     waisa hi rakha hai.

   Fix: Party aur Cash ko bhi bilkul wahi settled band jo Home
   ka hai (light #fff + var(--line) border-top + halki shadow;
   dark #0A1730 + var(--dk-line) border-top, shadow none) —
   sirf nav ke apne box par; koi jagah reserve nahi hoti, main
   ki padding waisi hi 0 rehti hai. Calculator wala tab nav ke
   ANDAR ka button hai (route change nahi hota) — band nav ka
   apna hai, is liye chaaron tabs ke peeche aik hi band hai;
   Calculator kisi ghair-tab screen se khule to wahan ki
   floating surat Boss ke scope ke mutabiq barqarar hai.
   Aakhri row ki hifazat pehle ki tarah scroll area ke andar
   ki bottom jagah se hai (naapa gaya clearance barqarar).
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  body[data-page="party"] .mobile-app-nav,
  body[data-page="cash"] .mobile-app-nav {
    background: #fff !important;
    border-top: 1px solid var(--line) !important;
    box-shadow: 0 -6px 20px rgba(23, 37, 51, .07) !important;
  }
  body[data-theme="dark"][data-page="party"] .mobile-app-nav,
  body[data-theme="dark"][data-page="cash"] .mobile-app-nav {
    background: #081009 !important;
    border-top: 1px solid var(--dk-line) !important;
    box-shadow: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   ROUND 2026-11-23hr — HOME KI FAZOOL NEECHE SCROLL KHATAM
   (Boss, 2026-11-26 23:32): "Home screen kafi neeche tak scroll
   hoti hai, wo bhi khatam karo."

   Jad — live parakh (360x800 + 411x917 + 1440, light, Roman) mein
   Home ke aakhri asal content (SECTION.simple-home ke aakhir) ke
   baad kul 294px (mobile) / 276px (desktop) khali scroll naapa
   gaya; full scroll par aakhri content tab bar se 230px UPAR ruk
   jata tha — darmiyan ki poori patti khali. Tafseel (saboot ke
   sath, hisaab bilkul milta hai):
     mobile 294 = #app ke andar ki 48 (padding-bottom 30 +
       aakhri hisse ki margin 18) + main padding-bottom 156 +
       body padding-bottom 90
     desktop 276 = andar ki 48 + main 96 + .side-nav-backdrop
       button ki 42 (desktop par ye button flow mein khara 42px
       le raha tha) + body 90
   main wali 156/96 clean-ui.css ki `body.has-page-add-actions
   main` rule se aati hai — dock ke liye rakhi gayi jagah hai,
   lekin Home par #pageAddDock hota hi nahi (workspace-polish.css
   mein display:none hai), phir bhi class lagi honay se jagah
   reserve rehti thi. Body wali 90 workspace-polish.css ki
   `body[data-page=home]` rule hai. Dono aik sath stack ho kar
   fazool scroll banati theen.

   Fix — SIRF Home (body[data-page="home"]) par:
   - main ki padding-bottom 0: dock Home par hai hi nahi, us ki
     reserved jagah khatam.
   - body ki padding-bottom mobile par 48px + safe-area: #app ke
     andar ki 48px ke sath kul tail ~96px banta hai — tab bar
     (64px + safe-area) ke upar aakhri hissa ~32px saaf fasle par
     rukta hai, na chhupta hai na fazool khali jagah rehti hai.
   - desktop par body 28px ki mamooli saans ki jagah; backdrop
     button Home ke flow se bahir (desktop par sidebar hamesha
     khula rehta hai, backdrop ka wahan koi kaam nahi).
   List screens (Party/Cash/Parcels waghera) ko haath nahi —
   un ki surat .workspace-scroll ke andar ki jagah se hai aur
   ye rules sirf data-page="home" par lagti hain.
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  body[data-page="home"] main {
    padding-bottom: 0 !important;
  }
  body[data-page="home"] {
    padding-bottom: calc(48px + env(safe-area-inset-bottom)) !important;
  }
}
@media (min-width: 900px) {
  body[data-page="home"] main {
    padding-bottom: 0 !important;
  }
  body[data-page="home"] {
    padding-bottom: 28px !important;
  }
  body[data-page="home"] .side-nav-backdrop {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   ROUND 2026-11-23ht — PARTY NAME AUR BALANCE BOLD
   (Boss, 2026-11-26 23:43): "Party name aur balance bold kar do."
   Jad live parakh (byte-equal mirror, 360/411/1440, light/dark,
   Roman/Urdu/EN) se sabit: naam <b> aur balance <strong> ka
   computed font-weight har surat mein 400 tha — clean-ui.css ki
   rule (#records .party-list-title b, #records .balance-amount
   strong {font-weight:400!important}) aur templates-final.css ki
   party rule (body[data-page="party"] #records .party-list-title b
   {font-weight:400!important}) dono motai ko zabardasti normal
   rakhte thay.
   Fix: sirf Party page ke #records mein naam aur balance ka
   weight 700 — size (naam 14px, balance 16px mobile / 14px
   desktop), rang (Lena hai / Dena hai ke settled rang
   .balance-amount ki tone classes se hi ate hain) aur layout
   bilkul waisa hi. Ledger ke andar ki surat aur baqi lists
   (Cash/Stock/Bills waghera) ko haath nahi lagaya.
   ════════════════════════════════════════════════════════════════ */
body[data-page="party"] #records .party-list-title b,
body[data-page="party"] #records .party-list-title .link {
  font-weight: 700 !important;
}
body[data-page="party"] #records .balance-amount strong {
  font-weight: 700 !important;
}
/* ════════════════════════════════════════════════════════════════
   ROUND 2026-11-23hu — TAB BAR KA BAND POORI APP MEIN
   (Boss, 2026-11-26 23:42): "Home screen bar poori app mein rahe."

   Hukm: tab bar ke peeche wala band ab sirf Home / Party / Cash /
   Business Card par nahi — POORI APP ki har screen par rahe ga
   jahan tab bar nazar aati hai (Parcels, Inventory, Invoices,
   Staff, Expense, Settings, POS sab par). Is liye page-wise
   alag alag rules (23ha home, 23hf business, 23ho party/cash)
   ki jagah ab AIK hi aam rule hai — koi screen miss hi nahi ho
   sakti, aur kal koi nayi screen bane to band wahan khud aa
   jayega. Boss ke phone par Home par band na anay ki aik wajah
   page-scoped rule bhi ho sakti thi — aam rule se wo rasta bhi
   band ho gaya.

   Surat bilkul wahi settled hai: light #fff + var(--line)
   border-top + halki shadow (digikhata-mobile.css wali);
   dark #0A1730 + var(--dk-line) border-top, shadow none
   (theme-dk.css wali) — sirf nav ke apne box (64px + safe-area)
   tak, koi jagah reserve nahi hoti.

   Jo bilkul nahi badla:
   - Add dock / chat button ke peeche koi band nahi — 23hj wali
     geometry (main padding-bottom:0, list buttons ke peeche se
     guzarti hui) barqarar.
   - List screens ki aakhri row ki hifazat scroll area ke andar
     ki jagah se hi hai — band ki wajah se koi row nahi chhupti.
   - Home ki 23hr wali scroll-trim surat barqarar.
   - 23gu ki transparent wali aam rule is file mein upar reh
     gayi hai — ye aakhri aam rule (barabar specificity, baad
     mein) use hara kar band lagati hai. Page-scoped purani
     rules (home/business/party/cash) bhi reh gayi hain —
     un ki values bilkul yehi hain, koi takrao nahi.
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  .mobile-app-nav {
    background: #fff !important;
    border-top: 1px solid var(--line) !important;
    box-shadow: 0 -6px 20px rgba(23, 37, 51, .07) !important;
  }
  body[data-theme="dark"] .mobile-app-nav {
    background: #081009 !important;
    border-top: 1px solid var(--dk-line) !important;
    box-shadow: none !important;
  }
}

/* ROUND 2026-11-23hv — CHAT BOT AUR NEW BUTTON CENTER ALIGN
   (Boss, 2026-11-26 23:54): "Chat bot aur New wala button center
   align hon, aapas mein upar neeche lag rahe hain."

   Naap (byte-equal live mirror, Party/Cash/Parcels/Stock/Bills/
   Staff/Expense x 360/411 x light/dark x Roman/Urdu, errors 0):
   chat button (#faqChatButton) bottom 78px + height 48px, yani
   us ka center screen ke neeche se 102px par hai. Dock
   (#pageAddDock, height 44px) aam screens par bottom 80px par
   hai — center wahi 102px, bilkul barabar. Sirf PARTY par dock
   ka center chat se 6px UPAR tha (dockCy 692/809, chatCy
   698/815): audit-fixes.css ki purani party rule dock ko
   bottom 86px par rakhti hai. Wo rule us zamane ki hai jab
   chat button bhi 86px par beth-ta tha; baad mein chat aur aam
   dock 78/80 par aa gaye, party wala 86 reh gaya — yehi jad hai.

   Fix: Party par bhi dock ka bottom aam wala 80px kar diya —
   dono ke center ab bottom se 102px par aik hi line mein hain.
   Dono ke size bilkul wese hi (dock 44px, chat 48px), aapas ka
   fasla aur jagah pehle jesi; Party ki main padding (aakhri
   row ki hifazat, 156px) aur baqi koi surat nahi badli — dock
   ka top ab bottom se 124px par hai, hifazat wali jagah se
   phir bhi neeche, aakhri row pehle ki tarah saaf aati hai. */
@media (max-width: 899px) {
  body[data-page="party"] #pageAddDock {
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
  }
}

/* ROUND 2026-11-23hw — SUPPLIER MEIN PURCHASE/PAYMENT KE NUMBER CHHOTE
   (Boss, 2026-11-27 00:10): "Supplier mein purchase payment bohat
   bare hain, chhote karo."

   Naap (byte-equal live mirror, supplier ka khata 'Rana Suppliers',
   360/411/1440 x light/dark x Roman/Urdu): Purchase (credit-cell)
   aur Payment (debit-cell) columns ki raqmein mobile par 15px aur
   DESKTOP par 23px aati theen. Jad workspace-polish.css ki
   clamp(17px,4.5vw,23px)!important wali rule hai — ≤899px par usi
   file ki os-38 DigiKhata block unhen 15px par rok deti hai, lekin
   desktop par 23px khula rehta hai: balance card (24px) ke barabar
   ke qareeb aur baqi tamam raqmon (Party list ka balance desktop
   par 14px, khate ki tafseel wali line 14-15px) se bohat bara.

   Fix: sirf supplier ke khate (.supplier-ledger) ke inhi do
   columns ki raqam har width par 14px — baqi app ki raqmon ke
   sath milti julti, parhne mein saaf. Rang (sabz Purchase /
   laal Payment, dono themes ke settled rang), motai (600),
   jagah aur hisaab bilkul waisa hi; customer/bank ke khate aur
   baqi koi surat nahi badli. */
.own-ledger.supplier-ledger .credit-cell,
.own-ledger.supplier-ledger .debit-cell {
  font-size: 14px !important;
}

/* ── 23hy: SIDEBAR BUTTON KE NEELAY BACKGROUND KI KHATAM ─────
   Boss (2026-11-27): "Sidebar wale 3 dots ka blue bg khatam
   karke wohi blue kar do, aur dark screen mein white."
   Asal control header ka #navMenuButton hai — yahi sidebar
   kholta hai. Pehle (naap, byte-equal live mirror, har width /
   theme): background #0B2E63 bhara hua, nishan safed, 38x38,
   radius 10px (workspace-polish.css ki rule).
   Ab: background bilkul khatam (transparent) — sirf nishan:
   light mein wohi navy #0B2E63 jo pehle background ka tha;
   dark mein MOBILE par (jahan header khud navy gradient hai)
   nishan safed. Desktop dark mein header safed rehta hai —
   wahan nishan navy hi rahe ga taake nazar aye (safed nishan
   safed header par ghayab ho jata). Button ki jagah, size
   (38x38) aur sidebar kholne/band karne ka kaam barqarar. */
main>header>#navMenuButton {
  background: transparent !important;
  color: #0B2E63 !important;
  box-shadow: none !important;
}
@media (max-width: 899px) {
  body[data-theme="dark"] main>header>#navMenuButton {
    color: #fff !important;
  }
}

/* ── 23hz: ENTRY ROWS — DETAILS UPAR, CHIP NEECHE, CHIP/DETAILS KE
   FONTS CHHOTE, CHIP KA RANG DIRECTION SE (Boss, 2026-11-27) ──
   Boss ke alfaaz: "Details upar likhi aaye, selected party neeche,
   fonts selected chhote rakho" + "Details font bhi chhota" +
   "OUT par red aur IN par green chip — sab mein."
   (1) Tarteeb Cash Book ki dk rows mein JS se badli hai
   (theme-dk.js: note pehle, chip baad mein); yahan sirf fonts aur
   rang hain. Chip ka font 12px -> 11px, details (note) 13px ->
   11px — dono ham-ahamg chhote; amounts/time/date bilkul waisay
   hi. Note ke neeche 5px fasla taake chip saaf alag lage.
   (2) Chip ka rang direction se: OUT = halka red pas-manzar +
   gehara red naam/icon/kinara; IN = halka green + gehara green.
   Yehi settled direction rang hain jo entry detail ke chip par
   pehle se hain (audit-fixes.css .ed-chip.in/.out). Bank logo apni
   asal surat mein safed plate par rehta hai — rang sirf chip ke
   pas-manzar, kinare aur naam ka hai.
   (3) Party/Bank/Supplier khate (ledger) ke counterpart chip
   (.party-link-tag) par bhi wohi usool: Debit (Ada) column wali
   entry = red, Credit (Wasool) wali = green; aur khate ki details
   (note) wali line ka font 15px (mobile) / 14px (desktop) -> 12px.
   Cash In/Out wale label pehle se rang-dar hain — na chhuye. */
.dk-chip {
  font-size: 11px;
}
.dk-cash-list .dk-cnote {
  font-size: 11px;
  margin-bottom: 5px;
}
body[data-theme="light"] .dk-chip.out,
body[data-theme="dark"] .dk-chip.out {
  border-color: rgba(191, 52, 52, .55);
  color: #BF3434;
  background: rgba(191, 52, 52, .07);
}
body[data-theme="light"] .dk-chip.in,
body[data-theme="dark"] .dk-chip.in {
  border-color: rgba(20, 125, 74, .55);
  color: #147D4A;
  background: rgba(20, 125, 74, .07);
}
body[data-theme="dark"] .dk-chip.out {
  border-color: rgba(242, 118, 106, .6);
  color: #F2766A;
  background: rgba(242, 118, 106, .12);
}
body[data-theme="dark"] .dk-chip.in {
  border-color: rgba(71, 199, 133, .6);
  color: #47C785;
  background: rgba(71, 199, 133, .12);
}
.own-ledger .ledger-detail-link {
  font-size: 12px;
}
#modal .party-link-tag.out {
  color: #BF3434;
  border-color: rgba(191, 52, 52, .5);
  background: rgba(191, 52, 52, .07);
}
#modal .party-link-tag.in {
  color: #147D4A;
  border-color: rgba(20, 125, 74, .5);
  background: rgba(20, 125, 74, .07);
}
body[data-theme="dark"] #modal .party-link-tag.out {
  color: #F2766A;
  border-color: rgba(242, 118, 106, .55);
  background: rgba(242, 118, 106, .13);
}
body[data-theme="dark"] #modal .party-link-tag.in {
  color: #47C785;
  border-color: rgba(71, 199, 133, .55);
  background: rgba(71, 199, 133, .13);
}

/* ── 23hz: ENTRY FORM — DROPDOWN KI JAGAH PICKER BUTTON ─────────
   Party/Bank select wala button (nayi entry, transfer, edit — teeno
   formon mein aik jesi surat): poori chaurayi, saaf kinara, andar
   icon ya bank ka logo, naam, aur Change. Fehrist wali sheet
   (.party-picker-sheet) purani hi hai; bank ki satar mein logo
   .party-avatar ke andar safed plate par asal surat mein ata hai. */
.kos-dirform .kos-cp-pick {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  background: var(--panel, #fff) !important;
  color: inherit !important;
  border: 1px solid var(--line, #cfdbd3) !important;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 48px;
  cursor: pointer;
  text-align: left;
}
.kos-dirform .kos-cp-pick > span {
  flex: 1;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kos-dirform .kos-cp-pick small {
  color: var(--muted);
  flex: none;
}
.kos-dirform .kos-cp-pick > svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.kos-dirform .kos-cp-pick .dk-chip-logo img {
  height: 18px;
  max-width: 52px;
}
.kos-dirform .kos-field-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}
.party-pick-row .party-avatar.kos-has-logo {
  background: #fff;
  border: 1px solid var(--line, #d8e1dc);
  overflow: hidden;
}
.party-pick-row .party-avatar.kos-has-logo img {
  max-height: 26px;
  max-width: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}
.party-pick-row .party-avatar.kos-has-logo img[hidden] {
  display: none;
}

/* ── 23ia: BILL LINE KA UNIT SELECT ─────────────────────────────
   Bill form mein Quantity ke neeche unit chunne ki chhoti si
   select (Piece / Kilogram / Gram / Litre / Dozen waghera) —
   grid ki tarteeb waisi hi, sirf is select ki saans ki jagah. */
#modal .line-grid .line-unit {
  margin-top: 6px;
  width: 100%;
}

/* ── Tap-picker round (Boss, 2026-11-27) ────────────────────────
   (1) PICKER AB POORI SCREEN HAI: Party/Bank par tap karte hi
   fehrist form ke andar chhote panel ki surat mein NAHI, poori
   screen par khulti hai — heading + search upar bandhe, fehrist
   darmiyan mein scroll. (2) Pick button (.kos-cp-pick) ki surat
   ab tamam forms mein aik jesi (bill, parcel hisaab/payment,
   CPR, cycle) — pehle ye style sirf .kos-dirform tak thi.
   (3) Delete wale animate popup par lafz 'Delete ho gaya'. */
#partyPicker.party-picker-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
}
#partyPicker .picker-heading { flex: 0 0 auto; }
#partyPicker > input[type="search"] { flex: 0 0 auto; }
#partyPickerRows {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
}
#partyPicker > p { flex: 0 0 auto; margin-bottom: 0; }
#partyPicker > .kos-new-party-link { flex: 0 0 auto; }
#modal .kos-cp-pick {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  background: var(--panel, #fff) !important;
  color: inherit !important;
  border: 1px solid var(--line, #cfdbd3) !important;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 48px;
  cursor: pointer;
  text-align: left;
}
#modal .kos-cp-pick > span {
  flex: 1;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#modal .kos-cp-pick small { color: var(--muted); flex: none; }
#modal .kos-cp-pick > svg { width: 20px; height: 20px; flex: none; }
#modal .kos-cp-pick .dk-chip-logo img { height: 18px; max-width: 52px; }
#savedTick.kos-del::after { content: 'Delete ho gaya'; }

/* ═══ DARK-OPTION-C (Boss, 2026-11-28): gehra sabz dark theme.
   Upar wali tabdeeli dark-scoped rules mein hui; yahan sirf wo chrome
   hai jo DONO themes mein navy tha (sidebar vars, cloud button, dock
   ka IN button) — dark mein sabz, light bilkul na-chhua. ═══ */
body[data-theme="dark"]{--nl-navy:#14301F;--nl-navy2:#0D2015;--nl-navy3:#1E4530}
@media (min-width:651px){
  body[data-theme="dark"] aside{color:#DDF0E3}
  body[data-theme="dark"] aside nav a:not(.active){color:#F0F7F1}
  body[data-theme="dark"] aside nav label{color:#C4DFCE}
  body[data-theme="dark"] aside .brand .brand-name i,
  body[data-theme="dark"] aside .brand-name i{color:#DDF0E3}
  body[data-theme="dark"] aside .business small{color:#DDF0E3}
  body[data-theme="dark"] aside .foot{color:#DDF0E3}
  body[data-theme="dark"] aside #sideSession button{color:#F0F7F1}
  body[data-theme="dark"] aside #sideSession .side-cloud{color:#DDF0E3}
}
body[data-theme="dark"] #cloudButton{background:linear-gradient(120deg,#1E4530,#14301F)!important;border-color:#14301F!important}
body[data-theme="dark"] #pageAddDock button.green{background:#245239!important;border-color:#245239!important;color:#fff!important}
/* DARK-OPTION-C (2): JS se bane / unscoped navy hisse — dark mein sabz */
body[data-theme="dark"] .kos-cpr-btn{background:#245239!important;border-color:#245239!important}
body[data-theme="dark"] .parcel-invoice-actions .kos-act.kos-pp-pay{background:#245239}
body[data-theme="dark"] .modal-save{background:#245239!important;border-color:#245239!important}
body[data-theme="dark"] .home-cash-card .home-cash-io{color:#C4DFCE}
body[data-theme="dark"] .ai-head{background:#14301F}
body[data-theme="dark"] .aiMsg.me{background:#245239}
body[data-theme="dark"] .setting-row button[role="switch"][aria-checked="false"]>span{background:#3A6650!important}
body[data-theme="dark"] #faqChatButton{color:#0D2015}
/* DARK-OPTION-C (3) — ADD-BUTTON-GLOW-FIX (Boss, 2026-11-28 17:31:
   'add button k peeche orange arha kuj'): newlook.css ke orange
   box-shadow dark mein button ke peeche orange halo banate thay —
   #faqChatButton par rgba(255,122,0,.35)!important, dock ke
   .page-add-action par rgba(255,122,0,.38) (Party par ADD CUSTOMER
   dark mein sabz hai magar us ke konon ke peeche orange saaf
   dikhta tha), aur .modal-save par rgba(255,122,0,.35). Dark mein
   teeno ka saya ab neutral kala hai jo gehre sabz pas-manzar mein
   ghul jata hai; buttons ke apne rang bilkul na-badle, light
   theme bilkul na-chhua. */
body[data-theme="dark"] #faqChatButton{box-shadow:0 3px 10px rgba(0,0,0,.45)!important}
body[data-theme="dark"] #pageAddDock .page-add-action{box-shadow:0 4px 14px rgba(0,0,0,.45)!important}
body[data-theme="dark"] .modal-save{box-shadow:0 3px 10px rgba(0,0,0,.45)!important}
/* DARK-OPTION-C (4) — UI-PASS izafa (Boss, 2026-11-28 21:10: 'Dark mode
   me New Party or New Invoice wale bhi green kar diye, wo orange hi
   rakho'): dark mein dock ke primary New/Add buttons (.page-add-action)
   sabz #245239 ho gaye thay — ab wapas ORANGE (#FF7A00 = light wala
   --nl-orange), aik hi usool se tamam aisi jagah (Add party, Create
   new invoice, New order, Add items, Add staff waghera). Sirf in
   buttons ka apna rang badla hai; dark C ki baqi palette aur in ka
   neutral saya (glow-fix) waisa hi. Cash ke IN (sabz) / OUT (surkh)
   page-add-action ke sath .green/.red bhi rakhte hain — wo disha wale
   rang hain, is rule se wazeh tor par bahir rakhe gaye hain. */
body[data-theme="dark"] #pageAddDock .page-add-action:not(.red):not(.green){background:#FF7A00!important;border-color:#FF7A00!important;color:#fff!important}

/* ══ ICON-BARE (Boss, 2026-11-29 18:07): 'pori app me icons ke peeche
   wale buttons khatam kro — jaha icons he waha just icon rhe.'
   Runtime inventory (computed styles, 14 screens × light/dark) mein
   dabba-daar mile: .kos-iconbtn (ledger Edit), .biz-icon-btn (business
   chooser Edit/Delete — sirf border), .kos-act[data-calculator-toggle]
   (modal Calculator), .pos-add (POS add), .kos-car-arrow (Card/Document
   Studio carousel), #faqChatButton aur #calcShortcut (floating gol).
   In sab ka background/border/shadow KHATAM — sirf icon. Tap area
   ≥44px waisa hi (invisible). Icon ke apne rang barqarar; jahan icon
   dabbe ke rang par jeeta tha (safed chevron, navy glyph) wahan icon
   ko theme ke mutabiq saaf rang diya. Text wale buttons, toggles,
   inputs, .pos-stepper, .pos-product-photo (photo tile) NAHI chhuye.
   Pehle se bare: .kos-icoonly, .kos-ico-btn, header icons, ⋮ summary,
   bare ✕, pw-eye — un par koi tabdeeli nahi. ══ */
.kos-iconbtn{background:transparent!important;border:0!important;box-shadow:none!important}
.biz-icon-btn{background:transparent!important;border:0!important;box-shadow:none!important}
.kos-act[data-calculator-toggle]{background:transparent!important;border:0!important;box-shadow:none!important}
.pos-add{background:transparent!important;border:0!important;box-shadow:none!important}
.kos-car-arrow,.studio-carousel .kos-car-arrow,.card-controls .kos-car-arrow{background:transparent!important;border:0!important;box-shadow:none!important;color:#0B2E63!important;min-width:44px;min-height:44px!important}
body[data-theme="dark"] .kos-car-arrow,body[data-theme="dark"] .studio-carousel .kos-car-arrow,body[data-theme="dark"] .card-controls .kos-car-arrow{background:transparent!important;border:0!important;box-shadow:none!important;color:#F0F7F1!important}
/* CHATBOT-ORANGE-RESTORE (Boss, 2026-11-30 00:57): chat bot button ka
   ORANGE gol background WAPAS — pehle jesa. ICON-BARE ki upar wali do
   satren (#faqChatButton transparent) Boss ke naye hukum par khatam;
   asal surat 23it (commit 1922d620) ki files se parakh kar lagayi:
   background #FF7A00 (workspace-polish.css base), light saya
   rgba(255,122,0,.35) (newlook.css), light icon #071F49 (base),
   dark icon #0D2015 + dark saya rgba(0,0,0,.45) (isi file ke
   DARK-OPTION-C rules, upar maujood). Size/jagah (56px, bottom 88px)
   audit-fixes.css ki settled surat — na-badli. (#calcShortcut ka
   orange bhi baad mein Boss ke hukum 2026-11-30 16:53 par wapas
   aaya — neeche CALC-ORANGE-RESTORE dekho.) */
#faqChatButton{background:#FF7A00!important;border:0!important;box-shadow:0 3px 10px rgba(255,122,0,.35)!important;color:#071F49!important}
body[data-theme="dark"] #faqChatButton{background:#FF7A00!important;border:0!important;box-shadow:0 3px 10px rgba(0,0,0,.45)!important;color:#0D2015!important}
/* CALC-ORANGE-RESTORE (Boss, 2026-11-30 16:53): calculator wale floating
   button (#calcShortcut) ke peeche bhi ORANGE gol background WAPAS —
   bilkul chat bot wali surat (#FF7A00 gol dayra, wahi saya). ICON-BARE
   ki transparent satren Boss ke is hukum par khatam; glyph ka rang
   audit-fixes.css ki settled surat hi (light #0B2E63 / dark #14301F).
   Size/jagah (56px gol, chat bot ke sath wala cluster) na-badli. */
#calcShortcut{background:#FF7A00!important;border:0!important;box-shadow:0 3px 10px rgba(255,122,0,.35)!important;color:#0B2E63!important}
body[data-theme="dark"] #calcShortcut{background:#FF7A00!important;border:0!important;box-shadow:0 3px 10px rgba(0,0,0,.45)!important;color:#14301F!important}

/* ══ CLOSE-SAVE-ORDER + DELETE-BUTTON-RED (Boss, 2026-11-30 00:58) ══
   (1) Jahan modal footer bar (.modal-cancel-bar) mein Close (.page-close)
   aur Save (.modal-save) SATH hain: tarteeb Close pehle, Save baad mein
   (DOM mein Save pehle ata tha — flex order se seedha kiya; calculator
   icon order 0 par sab se pehle rehta hai). RTL mein screen isi
   tarteeb ki mirror hogi, Cancel/Delete wale settled usool ki tarah.
   (2) Dono AIK jese: Save ki settled text-only surat (bare bold text)
   hi Close par bhi — Close ka safed dabba/border khatam, size/weight
   Save ke barabar (15px / 700). Save ka rang NAHI chhua (light BLUE
   #0B5ED7, dark GREEN #4CC38A — audit-fixes.css ki settled rules).
   Close akela ho (ledger, entry details) to us ki surat waisi hi —
   ye rules sirf jora maujood honay par lagti hain (:has).
   (3) DELETE-BUTTON-RED: Entry Details ki DELETE ENTRY bare text thi
   jabke usi sheet mein dusre buttons button-surat mein hain — ab ye
   App ki apni settled laal-button recipe (audit-fixes.css .ed-delbtn:
   #FDECEC + #F3B7B3 border + #C62828) mein WAPAS hai, templates-final
   ki text-surat par ye block (load order mein baad + zyada
   specificity) jeet-ta hai. Rang professional hai: wazeh laal, bhara
   chillata nahi; dark mein wahi recipe naram laal (#F2766A) ke sath.
   Cancel+Delete wale confirm joron ko bilkul NAHI chhua. ══ */
#modal>.modal-cancel-bar:has(> .modal-save:not([hidden])):has(> .page-close:not([hidden]))>.page-close{order:1}
#modal>.modal-cancel-bar:has(> .modal-save:not([hidden])):has(> .page-close:not([hidden]))>.modal-save{order:2}
#modal>.modal-cancel-bar:has(> .modal-save:not([hidden])):has(> .page-close:not([hidden]))>.page-close{
  background:transparent!important;background-image:none!important;border:none!important;box-shadow:none!important;border-radius:0!important;
  font-size:15px!important;font-weight:700!important;
}
#modal>.modal-cancel-bar:has(> .modal-save:not([hidden])):has(> .page-close:not([hidden]))>.modal-save{font-size:15px!important}
#modalbody .ed-view .ed-delbtn{
  display:flex!important;width:100%!important;min-height:52px!important;height:auto!important;
  align-items:center!important;justify-content:center!important;gap:9px!important;
  background:#FDECEC!important;border:1px solid #F3B7B3!important;border-radius:12px!important;box-shadow:none!important;
  color:#C62828!important;font-size:15px!important;font-weight:700!important;letter-spacing:.03em!important;
  padding:12px 16px!important;margin-top:12px!important;cursor:pointer;
}
#modalbody .ed-view .ed-delbtn svg{display:block!important;width:20px!important;height:20px!important}
body[data-theme="dark"] #modalbody .ed-view .ed-delbtn{
  background:rgba(242,118,106,.12)!important;border-color:rgba(242,118,106,.45)!important;color:#F2766A!important;
}

/* ══ BUTTONS SWEEP — PHASE B (2026-11-30): B-1 tap targets 44px + B-3 unified focus ══
   B-1: audit ki min-height 30/32/34/36/38 wali list mein se jo rules ASAL
   interactive tap targets hain (button/link/select/menu/chip jo dabta hai)
   un ka tap area 44px. Sirf min-height (aur gol icon buttons par min-width)
   badla hai — rang, font, padding ki settled surat, rows ki density aur
   headings ki aik-line tarteeb bilkul nahi chhui.
   CHHORE HUWE (decorative / input-ki-andruni surat / inline link):
   .kos-dp-zoom (range slider ki apni surat), amount inputs (#edAmount,
   #entryAmount/#entryExpression — field ki andruni height, container bara
   hai), .calc-screen strong (display text), #app>.heading (container),
   .parcel-summary-cell .parcel-tracking-link / .parcel-whatsapp (table
   cell ke andar inline text links — row density settled), .own-ledger
   .ledger-detail-link (poori ledger row hi tap target hai, row >44px).
   CALC-OVERLAP-FIX (Boss, 2026-11-30): calculator keypads MUSTASNA hain —
   #quickCalc ki grid rows 36px pakki hain (audit-fixes.css 23gf/23gl),
   44px min-height se har key apni row se 4px bahir nikal kar agli row
   par overlap karti thi (Boss ke phone par zahir). Keypad apni classic
   surat par hai: popup keys 34px, shared-calc keys 32px. */
.audit-back{min-height:44px!important}
#modalbody:has(> .plan-options) .plan-toggle button{min-height:44px!important;height:44px!important}
#modalbody:has(> .plan-options) .plan-buy{min-height:44px!important}
#modalbody:has(> .plan-options) .plan-pv-chip{min-height:44px!important}
#modalbody:has(> .plan-options) .plan-pv-reset{min-height:44px!important}
html[data-lang="ur"] #modalbody:has(> .plan-options) .plan-pv-chip{min-height:44px!important}
#loginGate .gate-tab{min-height:44px!important}
.kos-update-banner .kos-ub-btn{min-height:44px!important}
#modal .kos-additem{min-height:44px!important}
#completeForm button[onclick="addCustomBillItem()"]{min-height:44px!important}
.attachments #recordBtn{min-height:44px!important}
/* CALC-OVERLAP-FIX (2026-11-30): calculator keypad buttons sweep se
   mustasna — #quickCalc .calc-keys button / .quick-calc .calc-keys
   button / .shared-calc-keys button par 44px NAHI lagega (wajah upar
   wale comment mein). Un ki min-height calculator.css / style.css ki
   apni classic values (34px / 32px) hi rahengi. */
#quickCalc .apply-calculation,#quickCalc .calculator-cancel,.apply-calculation{min-height:44px!important}
#toggleTopTools{width:44px!important;min-width:44px!important;min-height:44px!important}
.account-totals>button{min-height:44px!important}
#cloudButton{min-height:44px!important}
#modal .attached button{min-height:44px!important}
.compact-entry .entry-keypad button{min-height:44px!important}
.compact-range .range-days button,.calendar-popover .range-days button{min-height:44px!important}
.form-size-toggle{min-height:44px!important}
.calendar-presets button{min-height:44px!important}
.calendar-popover .range-actions button{min-height:44px!important}
.modal-cancel-bar .modal-save{min-height:44px!important}
.calc-pane-header>button{min-width:44px!important;min-height:44px!important}
#app .toolbar.kos-parcel-toolbar select{min-height:44px!important}
#app .toolbar.kos-parcel-toolbar>button:not(.kos-icoonly):not(.kos-conn-head){min-height:44px!important}
.ppp-remove{min-height:44px!important}
.report-action-row>button{min-height:44px!important}
main>header>#navMenuButton{min-width:44px!important;min-height:44px!important}
.header-business-picker{min-height:44px!important}
#app .heading button,#app .heading>.btn{min-height:44px!important}
#app .toolbar button,#app .toolbar select{min-height:44px!important}
.thermal-actions button,.entry-detail-actions button,.detail-share-actions button,.parcel-invoice-actions button{min-height:44px!important}
.document-output select{min-height:44px!important}
#modal #modalbody .kos-datetime .clock12 select,#modal .clock12 select{min-height:44px!important}

/* B-3: unified :focus-visible — aik hi ring (3px, maujooda orange;
   dark mein maujooda halka orange #FF9E00 jo style.css ki settled
   dark focus surat hai). Pehle ye sirf ~6 files mein mukhtalif
   size/offset ke sath tha; ab har bari interactive jagah par aik jesa. */
:is(button,a,select,input,textarea,summary,[role="button"],[tabindex]):focus-visible{outline:3px solid #FF7A00;outline-offset:2px}
body[data-theme="dark"] :is(button,a,select,input,textarea,summary,[role="button"],[tabindex]):focus-visible{outline-color:#FF9E00}

/* DARK-OUTLINE-KHATAM (Boss, 2026-11-30: 'Dark mode me outline arhi wo b
   khtam kro'): B-3 ka orange ring (#FF9E00) dark mein har field/button par
   focus ya tap ke baad ubhar ata tha — Business details ke input par 3px
   solid orange naap kar sabit. Dark mein focus wali outline MUKAMMAL
   khatam (tap par bhi, focus par bhi); sath newlook ka input focus
   box-shadow ring bhi dark mein band. Light mode bilkul na-badla.
   Design ke nishan (selected design ka orange outline, kos-req-miss ka
   laal validation outline) focus-based nahi — wo barqarar hain. */
body[data-theme="dark"] :is(button,a,select,input,textarea,summary,[role="button"],[tabindex],.tap-row,.compact-parcel,[data-parcel-index]):focus,
body[data-theme="dark"] :is(button,a,select,input,textarea,summary,[role="button"],[tabindex],.tap-row,.compact-parcel,[data-parcel-index]):focus-visible{outline:none!important}
body[data-theme="dark"] :is(input,select,textarea):focus{box-shadow:none!important}
/* polish-final ki focus wali orange sarhad (border-color #FF7A00 !important)
   bhi dark mein khatam — focus par field ki sarhad apne aam gehare rang
   (var(--line) = #2C4F3B) par hi rehti hai; naap: pehle rgb(255,122,0),
   ab unfocused ke barabar. */
body[data-theme="dark"] :is(input,select,textarea):focus{border-color:var(--line)!important}

/* ══ MORE-DESIGNS + CHOOSE-PHOTO SURAT (Boss, 2026-11-30) ══
   Card Studio ka 'More designs' dropdown (details.card-gallery): band
   dabba surat — saaf 48px summary row, apna chevron (khulne par ulta),
   andar grid ki padding. Function/options bilkul wahi. */
.card-gallery{border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff);overflow:hidden;margin:0 0 18px}
.card-gallery summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:12px 16px;font-weight:700;font-size:14px;cursor:pointer;list-style:none;border-bottom:0}
.card-gallery summary::-webkit-details-marker{display:none}
.card-gallery summary::after{content:"";flex:none;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .18s ease;opacity:.65}
.card-gallery[open ] summary{border-bottom:1px solid var(--line)}
.card-gallery[open ] summary::after{transform:rotate(225deg) translate(-2px,-2px)}
.card-gallery #cardGalleryGrid{padding:12px}
body[data-theme="dark"] .card-gallery{background:#13261B}
/* Stock item form ka 'Choose photo' panel: halki sarhad, dashed photo
   box, badge centre, Choose photo / Camera buttons pakke 44px. */
.photo-panel{border:1px solid var(--line)}
.item-photo{border:1.5px dashed #B9C8E4}
body[data-theme="dark"] .item-photo{border-color:#3A6650}
.camera-badge{display:flex;align-items:center;justify-content:center;line-height:1}
.photo-panel .inline-actions .btn,.photo-panel .inline-actions button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:10px}
.photo-placeholder small{margin-top:6px}
/* QA izafa: POS stage steps asal tap targets hain (padding se 40px bantay
   thay, koi min-height rule nahi tha) — 44px, surat waisi hi. */
.pos-steps button{min-height:44px!important}

/* ═══ 23iy CALC-SHEET (Boss, 2026-11-30: 'calculator bill ko dhak deta
   hai') — floating calculator ab screen ke NEECHE sheet ki surat mein
   khulta hai: upar wala hissa (bill ke items/total) nazar ata rehta
   hai. Keys ki surat/size calc-fix wali hi (popup keys 34px, gap 4px —
   calculator.css) — sirf pane ki jagah/shape badli hai. Sheet ki
   kul height ~380px rehti hai (800px screen ka aadhe se kam hissa),
   is liye upar ka hissa hamesha khula rehta hai. ═══ */
#quickCalc{left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:100%!important;max-height:72dvh!important;overflow-y:auto!important;border-radius:18px 18px 0 0!important;border-left:0!important;border-right:0!important;border-bottom:0!important;padding-bottom:calc(9px + env(safe-area-inset-bottom))!important;box-shadow:0 -12px 40px rgba(0,0,0,.28)!important}
/* 23iz CALC-DESKTOP-SIDE (Boss, 2026-11-30 16:52 — CORRECTION: pehle
   kaha gaya center theek hai, asal baat ye hai ke desktop par CENTER
   mein ana hi masla hai): desktop/tablet (≥768px) par calculator
   CENTER mein NAHI — DAYEIN taraf dock/panel ki surat mein khulta
   hai, taake beech wala bill/content nazar ata rahe aur calculation
   verify ho sake. Mobile (<768px) par upar wali neeche-sheet surat
   bilkul waisi hi. Keys ki surat/size na-badli. */
@media(min-width:768px){
 #quickCalc{left:auto!important;right:16px!important;transform:none;width:360px!important;max-width:calc(100vw - 32px)!important;bottom:16px!important;border:1px solid #DEDEDA!important;border-radius:18px!important}
}

/* ═══ 23iy REMOVE-WATERMARK (Boss, 2026-11-30) — Document Studio ke
   invoice view mein action controls ke neeche saaf button; tap par
   Plans screen (kosRemoveWatermark → showPlans). Surat doosre saaf
   options jesi: halki dashed sarhad sirf is button ki pehchan hai. ═══ */
.kos-remove-wm{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:10px 0 2px;padding:8px 12px;background:transparent;border:1px dashed var(--line,#D7E0F0);border-radius:12px;color:var(--ink,#16233C);font:inherit;font-weight:700;cursor:pointer}

/* ═══ 23jc DESKTOP-FAB-ALIGN (Boss, 2026-11-30 17:59): Home ke do
   floating buttons — chat (#faqChatButton) aur calculator
   (#calcShortcut) — DESKTOP par aik hi level/alignment mein hon.
   Pehle ki surat (naap, 1440): chat bottom:80/right:16, calculator
   bottom:20/right:20 — aik hi column mein upar-neeche, level alag.
   Ab dono bottom:80 par aik hi line mein: chat dayein kinare par
   (right:16) aur calculator us ke sath saaf 12px fasle par
   (right:76 = 16 + 48 + 12). Dono ki surat (orange gol, 48px)
   bilkul na-badli — sirf jagah barabar ki hai. Wazahat (Boss):
   masla SIRF desktop ka hai — ye rules sirf min-width:900px ke
   andar hain; phone/tablet (≤899px) ki surat bilkul na-badli
   (wahan calculator shortcut hidden hi rehta hai, chat apni
   settled jagah par). POS workspace ka apna neeche wala bar hai —
   wahan calculator ki jagah (bottom:148) bhi na-badli, is liye
   :not(:has(.pos-workspace)) ki shart. RTL mein jora bayein taraf
   mirror ho jata hai. ═══ */
@media (min-width:900px){
  body:not(:has(.pos-workspace)) #faqChatButton{bottom:80px!important;right:16px!important;left:auto!important}
  body:not(:has(.pos-workspace)) #calcShortcut{bottom:80px!important;right:76px!important;left:auto!important}
  html[dir="rtl"] body:not(:has(.pos-workspace)) #faqChatButton{left:16px!important;right:auto!important}
  html[dir="rtl"] body:not(:has(.pos-workspace)) #calcShortcut{left:76px!important;right:auto!important}
}

/* ═══ 23jh REMOVE-TEXT-RED (Boss ki correction, 2026-11-30 21:46:
   'No chota KRna just button text red'): 23jg ki do tabdeeliyan
   WAPAS — (1) button-surat wale Remove buttons ki compact surat
   (size chota) khatam, sizes 23jf wali purani surat par hain;
   (2) fingerprint gate par se 'Remove fingerprint' button hatana
   khatam — button gate par wapas hai (migration-privacy.js 23jf
   surat par restore) aur Settings wala duplicate Remove
   (fpRemoveFromSettings / .fp-set-remove) bhi khatam, function
   aik hi jagah — gate par, jesa pehle tha. In buttons ke liye
   is block mein SIRF text ka rang hai: text settled Delete jesa
   LAL BOLD (#C62828 / dark #F2766A — .kos-del wala hi rang jo
   pehle se lal hai). Size, padding, jagah — kuch na-badla. ═══ */
#cardLogoRemove, #cardPhotoRemove,
.bill-line .line-top button,
.photo-panel .inline-actions button,
.fp-remove{color:#C62828!important;font-weight:700!important}
body[data-theme="dark"] #cardLogoRemove,
body[data-theme="dark"] #cardPhotoRemove,
body[data-theme="dark"] .bill-line .line-top button,
body[data-theme="dark"] .photo-panel .inline-actions button,
body[data-theme="dark"] .fp-remove{color:#F2766A!important}
/* ═══ 23jh PASTE & BOOK REMOVE — ISTISNA (Boss ki wazahat,
   2026-11-30 21:49: 'Size b chotaa' + 21:50: 'Icon hata do'):
   Paste & Book review wale Remove par TEEN cheezein — size BHI
   chota (23jg wali compact surat: 248x64 phaila hua se ~97x40,
   icon-sweep ke flex phailao ka khatma), text LAL BOLD, aur
   icon-sweep ka trash icon KHATAM — sirf red text rahe. Sirf
   yehi aik button baqiyon se mukhtalif hai. ═══ */
.kos-po-rowhead .link.negative{flex:0 0 auto!important;width:auto!important;min-height:40px!important;padding:6px 12px!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:6px!important;color:#C62828!important;font-weight:700!important}
.kos-po-rowhead .link.negative>svg{display:none!important}
body[data-theme="dark"] .kos-po-rowhead .link.negative{color:#F2766A!important}
/* ═══ 23jn PLAN PILL — RED BUTTON KHATAM (Boss, 2026-11-30 23:16:
   'Plan imoji ka red button or hatao or imoji k Sath plan likho'):
   header ki plan pill (.header-parcel-pro) ke gird jo rang-daar
   button surat thi (light mein peach #FFF1E0 bg + #FFCF99 border —
   audit-fixes.css; dark mein translucent dabba — clean-ui.css) wo
   KHATAM: ab koi bg/border/shadow nahi, sirf emoji + 'Plan' text
   header ke apne rang mein, wahi jagah, wahi tap (showPlans).
   Border ki motai (1px) barqarar rakhi hai taake layout aik pixel
   na hile — sirf rang transparent hai. ═══ */
.header-parcel-pro{background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:inherit!important}
