:root { --bg:#f2f7fd; --card:#ffffff; --ink:#22303f; --muted:#64748b; --pri:#2f6fb7; --pri-soft:#e3eefb; --acc:#2f9e6e; --acc-soft:#e6f6ee; --line:#d9e4f0; --err:#c0392b; --ok:#2f9e6e; color-scheme: light; }
* { box-sizing:border-box; }
body { margin:0; font:15px/1.45 system-ui, "Segoe UI", sans-serif; background:var(--bg); color:var(--ink); }
.top { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 16px; background:var(--pri); color:#fff; flex-wrap:wrap; }
.brand { font-weight:800; letter-spacing:.5px; font-size:18px; }
.tag { font-size:11px; opacity:.85; }
.who { font-size:13px; display:flex; gap:8px; align-items:center; }
.who button { background:rgba(255,255,255,.15); color:#fff; border:0; }
main { max-width:1100px; margin:0 auto; padding:16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px; margin-bottom:14px; }
.narrow { max-width:380px; margin:40px auto; }
.hidden { display:none !important; }
h2, h3 { margin:0 0 10px; }
label { display:block; margin:8px 0; font-size:13px; color:var(--muted); }
input, select, textarea { width:100%; padding:8px; border:1px solid var(--line); border-radius:6px; font:inherit; background:var(--card); color:var(--ink); margin-top:3px; }
button { padding:8px 14px; border:1px solid var(--line); border-radius:6px; background:var(--card); color:var(--ink); cursor:pointer; font:inherit; }
button.pri { background:var(--pri); color:#fff; border-color:var(--pri); }
.row { display:flex; gap:10px; align-items:center; margin-top:10px; flex-wrap:wrap; }
.err { color:var(--err); margin-top:8px; }
.msg { font-size:13px; }
.msg.ok { color:var(--ok); } .msg.bad { color:var(--err); }
.muted { color:var(--muted); font-size:13px; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.tabs button.on { background:var(--pri); color:#fff; border-color:var(--pri); }
.grid4 { display:grid; grid-template-columns:repeat(4, 1fr); gap:0 12px; }
.span2 { grid-column:span 2; } .span4 { grid-column:span 4; }
table { width:100%; border-collapse:collapse; margin:8px 0; font-size:13px; }
th, td { border-bottom:1px solid var(--line); padding:5px; text-align:left; }
.lines input { margin:0; padding:5px; }
.lines td:nth-child(1) { min-width:180px; }
.tot { text-align:right; font-weight:600; margin:6px 0; }
.st { padding:2px 8px; border-radius:10px; font-size:12px; background:#eef; color:#334; }
.st.posted, .st.done { background:#e3f6e8; color:#1e6b34; } .st.rejected { background:#fde8e6; color:#9b2a1e; } .st.approved { background:#e6effd; color:#1f4fa8; }
.tok { font-family:monospace; word-break:break-all; background:#fff7d6; color:#333; padding:8px; border-radius:6px; }
.scroll { overflow-x:auto; }
#printArea { display:none; }
@media (max-width:700px) { .grid4 { grid-template-columns:1fr 1fr; } .span4 { grid-column:span 2; } }
@media print {
  body { background:#fff; color:#000; }
  .top, main { display:none !important; }
  #printArea { display:block; padding:10px; font-size:12px; }
  #printArea table th, #printArea table td { border:1px solid #999; }
  .pbill h2 { text-align:center; margin:0; } .pbill .c { text-align:center; } .pbill .r { text-align:right; }
}
.btnlike { display:inline-block; padding:8px 14px; border:1px solid var(--line); border-radius:6px; background:var(--card); cursor:pointer; margin:0; font-size:15px; color:var(--ink); }
.st.draft { background:#fff3cd; color:#7a5b00; }
#sEditTag:empty { display:none; }
.notice { border-left: 5px solid #e0a100; background: #fffbea; color: #333; }
/* ---- Tally "Classic" Tax Invoice ---- */
@media print { @page { size: A4; margin: 10mm; } }
.tinv { font: 11px/1.35 Arial, sans-serif; color: #000; max-width: 190mm; margin: 0 auto; }
.tinv .tt { text-align: center; font-weight: bold; font-size: 15px; margin-bottom: 3px; }
.tinv table.tb { width: 100%; border-collapse: collapse; margin: 0; }
.tinv table.tb td, .tinv table.tb th { border: 1px solid #000; padding: 3px 5px; vertical-align: top; }
.tinv table.tb + table.tb { margin-top: -1px; }
.tinv .w50 { width: 50%; }
.tinv .seller { display: flex; gap: 8px; align-items: flex-start; }
.tinv .seller img { width: 62px; height: 62px; object-fit: contain; }
.tinv .big { font-size: 14px; }
.tinv .lbl { font-size: 10px; }
.tinv .it th { font-weight: bold; text-align: center; font-size: 10.5px; }
.tinv .it td { border-top: 0; border-bottom: 0; }
.tinv .it tr.fill td { height: 70px; }
.tinv .it tr.tot td { border-top: 1px solid #000; border-bottom: 1px solid #000; }
.tinv .it thead + tbody tr:last-child td { border-bottom: 1px solid #000; }
.tinv .it .desc { width: 38%; }
.tinv .r { text-align: right; } .tinv .c { text-align: center; }
.tinv .sign { text-align: right; margin-top: 8px; }
.tinv .foot { margin-top: 4px; font-size: 10px; }
.bulkbar { margin: 0 0 8px; padding: 6px 10px; border: 1px dashed var(--line); border-radius: 8px; }
.bulkprev { border-left: 4px solid var(--pri); }
tr.bad td { background: #fde8e6; color: #333; }
.err { color: var(--err); }
/* ---- Tally jaisa voucher ---- */
.vch { border:1px solid var(--line); border-radius:8px; padding:0 12px 10px; }
.vhead { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:0 -12px 8px; padding:8px 12px; background:var(--pri); color:#fff; border-radius:8px 8px 0 0; }
.vhead .vtype { font-weight:800; font-size:17px; letter-spacing:.5px; }
.vhead label { color:#fff; display:flex; align-items:center; gap:6px; margin:0; font-size:13px; }
.vhead input { width:auto; margin:0; padding:5px 8px; }
.vhead .vno { margin-left:auto; } .vhead .vno input { width:130px; font-weight:700; }
.nochk { font-size:12px; min-width:18px; } .nochk.ok { color:#bff5c9; } .nochk.bad { color:#ffd2cc; font-weight:700; }
.vgrid { display:grid; grid-template-columns:repeat(4, 1fr); gap:0 12px; }
.vgrid .span3 { grid-column:span 3; } .vgrid .span2 { grid-column:span 2; } .vgrid .span4 { grid-column:span 4; }
.inl { display:flex; gap:6px; align-items:stretch; } .inl input { flex:1; } .inl button { margin-top:3px; padding:4px 10px; }
.pinfo { font-size:12.5px; color:var(--muted); background:var(--bg); border-radius:6px; padding:5px 9px; margin:2px 0 4px; min-height:24px; }
.pinfo b { color:var(--ink); } .pinfo .warn { color:var(--err); }
.vmore { margin:4px 0 6px; } .vmore summary { cursor:pointer; color:var(--pri); font-size:13px; }
.lines th { background:var(--bg); font-size:12px; white-space:nowrap; }
.lines th.r, .lines td.r, .lines .amt { text-align:right; }
.row.tight { margin-top:2px; }
.vfoot { display:flex; gap:16px; align-items:flex-start; flex-wrap:wrap; margin-top:8px; }
.vch-ch { flex:1 1 340px; } .vch-ch table { margin:4px 0; }
.vtot { flex:0 0 300px; width:300px; margin:0; } .vtot td { padding:3px 6px; } .vtot td:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.vtot tr.g td { font-weight:800; font-size:15px; border-top:2px solid var(--ink); }
/* ---- master popup ---- */
.dlg { border:0; border-radius:12px; padding:0; width:min(980px, 96vw); max-height:92vh; background:var(--card); color:var(--ink); box-shadow:0 10px 40px rgba(0,0,0,.35); }
.dlg::backdrop { background:rgba(10,15,30,.45); }
.dlg .dh { display:flex; align-items:center; gap:8px; padding:10px 14px; background:var(--pri); color:#fff; position:sticky; top:0; z-index:2; }
.dlg .dh b { font-size:16px; margin-right:auto; } .dlg .dh button { background:rgba(255,255,255,.15); color:#fff; border:0; }
.dlg .dh button.on { background:#fff; color:var(--pri); font-weight:700; }
.dlg .db { padding:12px 14px; overflow:auto; max-height:calc(92vh - 52px); }
.mgrid { display:grid; grid-template-columns:repeat(4, 1fr); gap:0 12px; }
.mgrid .span2 { grid-column:span 2; } .mgrid .span4 { grid-column:span 4; }
.mgrid h4 { grid-column:span 4; margin:10px 0 0; font-size:13px; color:var(--pri); border-bottom:1px solid var(--line); padding-bottom:3px; }
.mlist { max-height:52vh; overflow:auto; border:1px solid var(--line); border-radius:6px; }
.mlist table { margin:0; } .mlist th { position:sticky; top:0; background:var(--bg); }
.mlist tr:hover td { background:var(--bg); }
.tag2 { font-size:11px; padding:1px 6px; border-radius:8px; background:#fff3cd; color:#7a5b00; }
.errs { color:var(--err); font-size:13px; margin:6px 0; padding-left:18px; }
.ask { text-align:center; padding:10px 0; } .ask .big { font-size:17px; font-weight:700; margin-bottom:10px; }
.ask button { min-width:110px; margin:4px; }
.gst-st { font-size:11px; padding:1px 6px; border-radius:8px; background:#e6effd; color:#1f4fa8; white-space:nowrap; }
@media (max-width:700px) { .vgrid, .mgrid { grid-template-columns:1fr 1fr; } .vgrid .span3, .vgrid .span4, .mgrid .span4, .mgrid h4 { grid-column:span 2; } .vtot { flex:1 1 100%; width:100%; } }
.toastm { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:#1e8e3e; color:#fff; padding:9px 16px; border-radius:8px; z-index:9999; box-shadow:0 4px 14px rgba(0,0,0,.25); }
.lines input.r, .lines input.q { min-width:78px; } .lines input.u { min-width:56px; } .lines input.hsn { min-width:72px; } .lines input.g, .lines input.d { min-width:56px; }
/* ---- halka do-rang (aasmani neela + halka hara) — hamesha light ---- */
body { background: linear-gradient(180deg, #eaf3fd 0%, #f6faf8 100%) fixed; }
.top { background: linear-gradient(90deg, #dcebfb 0%, #e3f5ec 100%); color: var(--ink); border-bottom: 1px solid var(--line); }
.brand { color: var(--pri); }
.tag { color: #3d7a5f; opacity: 1; }
.who { color: var(--ink); }
.who button { background: #ffffff; color: var(--pri); border: 1px solid var(--line); }
.card { box-shadow: 0 1px 3px rgba(47, 111, 183, .06); }
#cHead { background: linear-gradient(90deg, #ffffff 0%, var(--acc-soft) 100%); }
.tabs button { background: #ffffff; color: var(--ink); }
.tabs button.on { background: var(--pri-soft); color: var(--pri); border-color: #b9d3f2; font-weight: 700; }
button.pri { background: var(--pri); border-color: var(--pri); color: #fff; }
button.pri:hover { background: #285f9e; }
.vch { background: #fbfdff; }
.vhead { background: linear-gradient(90deg, var(--pri-soft) 0%, var(--acc-soft) 100%); color: var(--ink); border-bottom: 1px solid var(--line); }
.vhead .vtype { color: var(--pri); }
.vhead label { color: var(--ink); }
.nochk.ok { color: var(--acc); } .nochk.bad { color: var(--err); }
.lines th { background: var(--pri-soft); color: #2a4a6e; }
.vtot tr.g td { color: var(--pri); border-top-color: var(--pri); }
.pinfo { background: var(--acc-soft); }
.dlg .dh { background: linear-gradient(90deg, var(--pri-soft) 0%, var(--acc-soft) 100%); color: var(--ink); border-bottom: 1px solid var(--line); }
.dlg .dh b { color: var(--pri); }
.dlg .dh button { background: #ffffff; color: var(--ink); border: 1px solid var(--line); }
.dlg .dh button.on { background: var(--pri); color: #fff; border-color: var(--pri); }
.mgrid h4 { color: var(--acc); }
.mlist th { background: var(--pri-soft); }
.gst-st { background: var(--acc-soft); color: #23704f; }
.bulkbar { background: #f7fbff; }
.st.posted, .st.done { background: var(--acc-soft); }
/* ---- har hisse ka apna rang ---- */
:root {
  --c-sale:#2f6fb7; --c-sale-s:#e3eefb;          /* neela  — Sale */
  --c-pur:#c76a12;  --c-pur-s:#fdf0e1;           /* narangi — Purchase */
  --c-up:#2f9e6e;   --c-up-s:#e4f6ec;            /* hara   — File bhejein */
  --c-req:#7a4cc2;  --c-req-s:#efe8fb;           /* baingani — Request */
  --c-list:#15808a; --c-list-s:#e0f4f5;          /* firozi — Meri Entries */
  --c-mandi:#b0436e; --c-mandi-s:#fbe7ef;        /* gulabi — Mandi / format sheet */
  --c-item:#b8860b; --c-item-s:#fdf5dc;          /* sunehra — Item Master */
  --c-exp:#c0485a;  --c-exp-s:#fde8eb;           /* laal-gulabi — Kharcha */
}
/* tabs */
.tabs button { border-width:1px 1px 3px; }
.tabs button[data-t="sale"]     { border-bottom-color:var(--c-sale); }
.tabs button[data-t="purchase"] { border-bottom-color:var(--c-pur); }
.tabs button[data-t="upload"]   { border-bottom-color:var(--c-up); }
.tabs button[data-t="request"]  { border-bottom-color:var(--c-req); }
.tabs button[data-t="list"]     { border-bottom-color:var(--c-list); }
.tabs button[data-t^="m:"]      { border-bottom-color:var(--c-mandi); }
.tabs button[data-t="sale"].on     { background:var(--c-sale-s); color:var(--c-sale); border-color:var(--c-sale); }
.tabs button[data-t="purchase"].on { background:var(--c-pur-s); color:var(--c-pur); border-color:var(--c-pur); }
.tabs button[data-t="upload"].on   { background:var(--c-up-s); color:var(--c-up); border-color:var(--c-up); }
.tabs button[data-t="request"].on  { background:var(--c-req-s); color:var(--c-req); border-color:var(--c-req); }
.tabs button[data-t="list"].on     { background:var(--c-list-s); color:var(--c-list); border-color:var(--c-list); }
.tabs button[data-t^="m:"].on      { background:var(--c-mandi-s); color:var(--c-mandi); border-color:var(--c-mandi); }
/* har tab ka card — upar rangin patti */
.tab { border-top:4px solid var(--line); }
#t-sale { border-top-color:var(--c-sale); }
#t-purchase { border-top-color:var(--c-pur); background:linear-gradient(180deg, #fffaf4 0, #fff 140px); }
#t-upload { border-top-color:var(--c-up); background:linear-gradient(180deg, #f5fcf8 0, #fff 140px); }
#t-request { border-top-color:var(--c-req); background:linear-gradient(180deg, #faf7ff 0, #fff 140px); }
#t-list { border-top-color:var(--c-list); background:linear-gradient(180deg, #f3fbfb 0, #fff 140px); }
#t-mandi { border-top-color:var(--c-mandi); background:linear-gradient(180deg, #fff6f9 0, #fff 140px); }
#t-upload h3 { color:var(--c-up); } #t-request h3 { color:var(--c-req); } #t-list h3 { color:var(--c-list); } #t-mandi h3 { color:var(--c-mandi); }
#t-sale h3 { color:var(--c-sale); } #t-purchase h3 { color:var(--c-pur); }
/* Sale voucher = neela, Purchase voucher = narangi */
#t-sale .vhead { background:linear-gradient(90deg, var(--c-sale-s), #f1f7ff); }
#t-sale .vhead .vtype { color:var(--c-sale); }
#t-sale .vch { border-color:#c5daf3; }
#t-sale .lines th { background:var(--c-sale-s); color:#24507f; }
#t-purchase .vhead { background:linear-gradient(90deg, var(--c-pur-s), #fff8ef); }
#t-purchase .vhead .vtype { color:var(--c-pur); }
#t-purchase .vch { border-color:#f1d2ad; background:#fffdfa; }
#t-purchase .lines th { background:var(--c-pur-s); color:#8a4a0e; }
#t-purchase .vtot tr.g td { color:var(--c-pur); border-top-color:var(--c-pur); }
#t-purchase .pinfo { background:var(--c-pur-s); }
#t-purchase button.pri { background:var(--c-pur); border-color:var(--c-pur); }
#t-upload button.pri { background:var(--c-up); border-color:var(--c-up); }
#t-request button.pri { background:var(--c-req); border-color:var(--c-req); }
#t-mandi button.pri { background:var(--c-mandi); border-color:var(--c-mandi); }
/* freight / charges = laal-gulabi, total box = halka */
.vch-ch table.chg th { background:var(--c-exp-s); color:#8e2f3d; }
.vch-ch > b { color:var(--c-exp); }
.vtot { background:#fbfdff; border:1px solid var(--line); border-radius:8px; }
/* upar ke master buttons — har ek ka apna rang */
#cHead button { border-width:1px 1px 3px; font-weight:600; }
#cHead button[onclick*="openMasters('ledger')"]  { color:var(--c-sale); border-color:#c5daf3; border-bottom-color:var(--c-sale); background:var(--c-sale-s); }
#cHead button[onclick*="openMasters('item')"]    { color:#8a6508; border-color:#ecdca8; border-bottom-color:var(--c-item); background:var(--c-item-s); }
#cHead button[onclick*="Direct Expenses"]        { color:var(--c-exp); border-color:#f2c4cb; border-bottom-color:var(--c-exp); background:var(--c-exp-s); }
#cHead button[onclick*="openMasters('gst')"]     { color:var(--c-list); border-color:#b8e2e5; border-bottom-color:var(--c-list); background:var(--c-list-s); }
/* voucher ke andar ke chhote buttons */
button[onclick*="openMasters('item')"]:not(#cHead button) { background:var(--c-item-s); color:#8a6508; border-color:#ecdca8; }
button[onclick*="Direct Expenses"]:not(#cHead button) { background:var(--c-exp-s); color:var(--c-exp); border-color:#f2c4cb; }
button[onclick^="addLine"], button[onclick^="addCharge"] { background:#f4f8fd; color:var(--pri); border-style:dashed; }
/* Bulk Excel patti */
.bulkbar { background:linear-gradient(90deg, #f3f9f5, #f7fbff); border-color:#cfe3d7; }
.bulkbar a button, .bulkbar .btnlike { background:#ffffff; color:var(--c-up); border-color:#cfe3d7; }
/* bills list — status ke rang */
.st { font-weight:600; }
.st.pending { background:#fff4d6; color:#8a6400; }
.st.approved { background:var(--c-sale-s); color:var(--c-sale); }
.st.posted, .st.done { background:var(--c-up-s); color:#1f7a50; }
.st.rejected { background:#fde8e6; color:#a83226; }
.st.draft { background:#eef1f5; color:#55606e; }
#sList table tr:nth-child(even) td, #pList table tr:nth-child(even) td, #lSubs table tr:nth-child(even) td { background:#f8fbfe; }
#sList th, #pList th, #lSubs th, #lReqs th { background:var(--pri-soft); color:#2a4a6e; }
#pList th { background:var(--c-pur-s); color:#8a4a0e; }
/* master popup — har tab apne rang me */
.dlg .dh button.on { background:var(--pri); }
.mgrid h4:nth-of-type(6n+1) { color:var(--c-sale); }
.mgrid h4:nth-of-type(6n+2) { color:var(--c-up); }
.mgrid h4:nth-of-type(6n+3) { color:var(--c-pur); }
.mgrid h4:nth-of-type(6n+4) { color:var(--c-req); }
.mgrid h4:nth-of-type(6n+5) { color:var(--c-list); }
.mgrid h4:nth-of-type(6n+6) { color:var(--c-exp); }
/* suchna (notice) */
.notice { border-left-color:#e0a100; background:#fffaeb; }
/* ---- 📘 मार्गदर्शन ---- */
:root { --c-guide:#6d4bb5; --c-guide-s:#f0eafb; --c-red:#d0453c; --c-red-s:#fdecea; --c-purple:#7a4cc2; --c-purple-s:#efe8fb; --c-green:#2f9e6e; --c-green-s:#e4f6ec; }
.tabs button[data-t="guide"] { border-bottom-color:var(--c-guide); }
.tabs button[data-t="guide"].on { background:var(--c-guide-s); color:var(--c-guide); border-color:var(--c-guide); }
#t-guide { border-top-color:var(--c-guide); background:linear-gradient(180deg, #faf7ff 0, #fff 160px); font-size:15.5px; line-height:1.7; }
#t-guide h3 { color:var(--c-guide); }
.gnav { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 12px; }
.gnav a { text-decoration:none; padding:5px 11px; border-radius:16px; font-size:13.5px; font-weight:600; border:1px solid transparent; }
.gnav a:nth-child(5n+1) { background:var(--c-red-s); color:var(--c-red); border-color:#f5c6c2; }
.gnav a:nth-child(5n+2) { background:var(--c-purple-s); color:var(--c-purple); border-color:#d9c9f3; }
.gnav a:nth-child(5n+3) { background:var(--c-green-s); color:var(--c-green); border-color:#bfe5d1; }
.gnav a:nth-child(5n+4) { background:var(--c-sale-s); color:var(--c-sale); border-color:#c5daf3; }
.gnav a:nth-child(5n+5) { background:var(--c-pur-s); color:var(--c-pur); border-color:#f1d2ad; }
.gsec { border:1px solid var(--line); border-left:5px solid var(--c-guide); border-radius:8px; padding:4px 14px; margin:8px 0; background:#fff; }
.gsec summary { cursor:pointer; font-weight:700; padding:6px 0; font-size:16px; }
.gsec[open] summary { margin-bottom:4px; border-bottom:1px dashed var(--line); }
.gsec:nth-of-type(5n+1) { border-left-color:var(--c-red); }   .gsec:nth-of-type(5n+1) summary { color:var(--c-red); }
.gsec:nth-of-type(5n+2) { border-left-color:var(--c-purple); } .gsec:nth-of-type(5n+2) summary { color:var(--c-purple); }
.gsec:nth-of-type(5n+3) { border-left-color:var(--c-green); }  .gsec:nth-of-type(5n+3) summary { color:var(--c-green); }
.gsec:nth-of-type(5n+4) { border-left-color:var(--c-sale); }   .gsec:nth-of-type(5n+4) summary { color:var(--c-sale); }
.gsec:nth-of-type(5n+5) { border-left-color:var(--c-pur); }    .gsec:nth-of-type(5n+5) summary { color:var(--c-pur); }
.gsec li { margin:3px 0; }
/* ---- laal / baingani / hara — kaam ke hisaab se ---- */
button[onclick="saveSale()"], button[onclick="savePurchase()"] { background:var(--c-green) !important; border-color:var(--c-green) !important; color:#fff !important; font-weight:700; }
button[onclick="saveSale(true)"], button[onclick="savePurchase(true)"], button[onclick^="msSave(true)"] { background:var(--c-purple-s); color:var(--c-purple); border-color:#d9c9f3; font-weight:600; }
button[onclick="saleReset()"], button[onclick="purReset()"] { background:var(--c-red-s); color:var(--c-red); border-color:#f5c6c2; }
button[title="Mitao"], button[title="Hatao"], button[title="hatao"], button[title="Line hatao"] { color:var(--c-red); border-color:#f5c6c2; background:#fff; }
button[title="Badlo"] { color:var(--c-purple); border-color:#d9c9f3; background:#fff; }
button[title="Print / PDF"] { color:var(--c-green); border-color:#bfe5d1; background:#fff; }
.who button[onclick="logout()"] { color:var(--c-red); border-color:#f5c6c2; }
.who button[onclick="changePw()"] { color:var(--c-purple); border-color:#d9c9f3; }
.msg.ok { color:var(--c-green); font-weight:600; } .msg.bad, .err, .errs { color:var(--c-red); }
.nochk.bad { color:var(--c-red); }
.tag2 { background:var(--c-purple-s); color:var(--c-purple); }
#cHead b { color:var(--c-purple); }
.vtot tr.g td { font-size:16px; }
#t-sale .vtot tr.g td { color:var(--c-green); border-top-color:var(--c-green); }
.ask button.pri { background:var(--c-green); border-color:var(--c-green); }
#gNo { color:var(--c-red); border-color:#f5c6c2; }
/* ---- firm ka naam + tagline ---- */
.brandbox { display:flex; align-items:center; gap:12px; }
.logo { width:48px; height:48px; border-radius:14px; flex:0 0 48px; display:flex; align-items:center; justify-content:center;
  font:800 17px/1 Georgia, "Times New Roman", serif; letter-spacing:-.5px; color:#fff;
  background:linear-gradient(135deg, #2f6fb7 0%, #7a4cc2 55%, #2f9e6e 100%); box-shadow:0 3px 10px rgba(122, 76, 194, .28); }
.logo span { color:#ffe7a3; }
.brand { font:700 22px/1.15 Georgia, "Times New Roman", serif; letter-spacing:.4px; text-transform:none;
  background:linear-gradient(90deg, #2f6fb7 0%, #7a4cc2 50%, #d0453c 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.brand b { font-weight:800; }
.tag { font:italic 500 12.5px/1.4 system-ui, "Segoe UI", sans-serif; color:#3d7a5f; letter-spacing:.2px; text-transform:none; margin-top:2px; }
.tag .sep { color:#c76a12; font-style:normal; margin:0 4px; }
.pills { display:flex; gap:5px; margin-top:5px; flex-wrap:wrap; }
.pills span { font:700 10.5px/1 system-ui, "Segoe UI", sans-serif; letter-spacing:.6px; text-transform:uppercase; padding:4px 8px; border-radius:10px; }
.pills .p1 { background:#e3eefb; color:#2f6fb7; } .pills .p2 { background:#e4f6ec; color:#2f9e6e; }
.pills .p3 { background:#efe8fb; color:#7a4cc2; } .pills .p4 { background:#fdecea; color:#d0453c; }
@media (max-width:600px) { .brand { font-size:18px; } .logo { width:40px; height:40px; flex-basis:40px; font-size:14px; } .tag { font-size:11.5px; } }
/* ---- logo (static/logo.svg) ---- */
img.logo { width:52px; height:52px; flex:0 0 52px; border-radius:14px; background:none; box-shadow:0 3px 12px rgba(122, 76, 194, .28); display:block; }
.authlogo { display:block; width:86px; height:86px; margin:4px auto 6px; border-radius:22px; box-shadow:0 6px 18px rgba(122, 76, 194, .3); }
.authname { text-align:center; font:700 18px/1.2 Georgia, "Times New Roman", serif; margin-bottom:10px;
  background:linear-gradient(90deg, #2f6fb7, #7a4cc2, #d0453c); -webkit-background-clip:text; background-clip:text; color:transparent; }
#auth h2 { text-align:center; color:var(--c-purple); }
@media (max-width:600px) { img.logo { width:42px; height:42px; flex-basis:42px; } }
/* ---- halka-sa gehra (poora dark nahi) ---- */
:root { --line:#c9d6e5; --muted:#5b6b7d; --ink:#1e2a38; }
body { background:linear-gradient(180deg, #d9e4f1 0%, #dde9e3 100%) fixed; }
.top { background:linear-gradient(90deg, #c3d6ee 0%, #c9e3d5 100%); border-bottom:1px solid #b3c7de; box-shadow:0 2px 8px rgba(30, 60, 100, .10); }
.card { background:#fbfcfe; border-color:var(--line); box-shadow:0 2px 6px rgba(30, 60, 100, .08); }
#cHead { background:linear-gradient(90deg, #f6f9fd 0%, #e2f1e8 100%); }
.tabs button { background:#eef3f9; }
.vch, .gsec, .vtot, .mlist { background:#ffffff; }
input, select, textarea { background:#ffffff; border-color:#c3d1e1; }
.lines th { filter:saturate(1.15) brightness(.97); }
.bulkbar { background:linear-gradient(90deg, #e9f4ee, #edf3fa); }
.dlg { background:#f7f9fc; }
.dlg::backdrop { background:rgba(20, 35, 60, .5); }
#auth.card { background:#ffffff; }
/* ---- aur thoda gehra ---- */
:root { --line:#b7c7da; --muted:#4f5f72; }
body { background:linear-gradient(180deg, #c3d3e6 0%, #c8dccf 100%) fixed; }
.top { background:linear-gradient(90deg, #a9c3e3 0%, #b1d6c2 100%); border-bottom-color:#97b2d1; box-shadow:0 2px 10px rgba(20, 45, 80, .16); }
.card { background:#f6f9fc; box-shadow:0 2px 8px rgba(20, 45, 80, .12); }
#cHead { background:linear-gradient(90deg, #eef3f9 0%, #d5ebdd 100%); }
.tabs button { background:#e3ebf4; }
.tabs button.on { box-shadow:0 2px 6px rgba(20, 45, 80, .15); }
.bulkbar { background:linear-gradient(90deg, #dcefe4, #e2ebf6); }
.pinfo { filter:brightness(.97); }
.dlg { background:#f1f5fa; }
/* ---- peela + laal ---- */
:root { --c-yel:#e0a100; --c-yel-s:#fff4cc; --c-yel-d:#8a6400; }
.top { border-bottom:0; position:relative; }
.top::after { content:""; position:absolute; left:0; right:0; bottom:0; height:4px; background:linear-gradient(90deg, #d0453c 0%, #f0a500 35%, #ffd84d 55%, #f0a500 75%, #d0453c 100%); }
.pills span { box-shadow:0 1px 2px rgba(0,0,0,.08); }
.pills .p2 { background:#fff1c2; color:#8a6400; }                    /* GST — peela */
.pills .p4 { background:#fbd9d5; color:#b8322a; }                    /* TDS — laal */
#cHead { border-left:5px solid var(--c-red); }
#cHead b { color:#b8322a; }
.vhead .vno input { background:var(--c-yel-s); border-color:#efd27a; color:#6e4f00; }   /* bill no. peela */
.vhead .vdt input { background:#fff; }
.vtot { border-color:#efd27a; }
.vtot tr.g td { background:var(--c-yel-s); }
.vtot tr:first-child td { border-top:0; }
#t-sale .pinfo { background:var(--c-yel-s); border:1px solid #f1dc9a; }
.vch-ch { background:#fff7f6; border:1px dashed #f2c4cb; border-radius:8px; padding:6px 8px; }
.vch-ch > b { color:var(--c-red); }
h3 { position:relative; }
#t-sale > h3, #t-purchase > h3, #t-list h3 { padding-bottom:4px; border-bottom:3px solid; border-image:linear-gradient(90deg, #f0a500, #d0453c, transparent) 1; display:inline-block; }
.tabs button[data-t^="m:"].on { background:var(--c-yel-s); color:var(--c-yel-d); border-color:var(--c-yel); }
.tabs button[data-t^="m:"] { border-bottom-color:var(--c-yel); }
.tabs button[data-t="request"] { border-bottom-color:var(--c-red); }
.tabs button[data-t="request"].on { background:var(--c-red-s); color:var(--c-red); border-color:var(--c-red); }
#t-request { border-top-color:var(--c-red); background:linear-gradient(180deg, #fff5f4 0, #fff 140px); }
#t-request h3 { color:var(--c-red); } #t-request button.pri { background:var(--c-red); border-color:var(--c-red); }
.gst-st { background:var(--c-yel-s); color:var(--c-yel-d); }
.st.pending { background:var(--c-yel-s); color:var(--c-yel-d); border:1px solid #efd27a; }
.st.rejected { background:#fbd9d5; color:#b8322a; border:1px solid #f2b8b1; }
.notice { border-left-color:var(--c-red); background:linear-gradient(90deg, #fff4cc, #fffaf0); }
.dlg .dh { border-bottom:3px solid; border-image:linear-gradient(90deg, #d0453c, #f0a500, #ffd84d) 1; }
.mgrid h4:nth-of-type(6n+2) { color:#b8860b; }
.authlogo { box-shadow:0 0 0 4px #fff4cc, 0 6px 18px rgba(208, 69, 60, .25); }
/* ---- aur gehra (teesra step) ---- */
:root { --line:#a9bbd0; --muted:#45556a; }
body { background:linear-gradient(180deg, #a7bcd6 0%, #adc9b7 100%) fixed; }
.top { background:linear-gradient(90deg, #8eaed6 0%, #96c4aa 100%); box-shadow:0 3px 12px rgba(15, 35, 65, .22); }
.tag { color:#1f5a40; } .who { color:#13243a; }
.card { background:#eef3f8; box-shadow:0 3px 10px rgba(15, 35, 65, .16); }
#cHead { background:linear-gradient(90deg, #e6edf5 0%, #c9e3d2 100%); }
.tabs button { background:#d5e0ed; border-color:#a9bbd0; }
.vch { background:#fbfcfe; }
.bulkbar { background:linear-gradient(90deg, #cfe7d9, #d6e2f1); border-color:#a9c8b6; }
.lines th { filter:saturate(1.25) brightness(.93); }
.gsec { background:#fbfcfe; }
.dlg { background:#e9eff6; }
/* ---- 📱 Mobile / 🖥 Desktop ---- */
.vmchooser { text-align:center; margin:6px 0 10px; }
.vmbtns { display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-top:5px; }
.vmbtns button { border-radius:18px; padding:6px 12px; font-size:13.5px; background:#fff; }
.vmbtns button.on { background:var(--c-purple); color:#fff; border-color:var(--c-purple); }
#vmSwitch { background:#fff; border:1px solid var(--line); }
input:focus, select:focus, textarea:focus { outline:2px solid #f0a500; outline-offset:0; border-color:#f0a500; background:#fffdf3; }

/* desktop: chaudi screen, chhote-saaf khaane */
body.mode-desktop main { max-width:1280px; }
body.mode-desktop .lines input { padding:4px 6px; }
body.mode-desktop .vgrid, body.mode-desktop .mgrid { gap:0 14px; }

/* mobile: bade button, ek-do column, tab sarakne wale, Save neeche chipka */
body.mode-mobile { font-size:16px; }
body.mode-mobile main { padding:8px; }
body.mode-mobile input, body.mode-mobile select, body.mode-mobile textarea { font-size:16px; min-height:42px; }   /* zoom na ho */
body.mode-mobile button, body.mode-mobile .btnlike { min-height:42px; padding:9px 14px; }
body.mode-mobile .top { padding:8px 10px; }
body.mode-mobile .brand { font-size:17px; } body.mode-mobile .tag { display:none; }
body.mode-mobile img.logo { width:40px; height:40px; flex-basis:40px; }
body.mode-mobile .tabs { flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px; }
body.mode-mobile .tabs button { flex:0 0 auto; }
body.mode-mobile #cHead .row { gap:6px; }
body.mode-mobile #cHead button { flex:1 1 45%; font-size:13.5px; }
body.mode-mobile .vgrid, body.mode-mobile .mgrid, body.mode-mobile .grid4 { grid-template-columns:1fr 1fr; }
body.mode-mobile .vgrid .span3, body.mode-mobile .vgrid .span4, body.mode-mobile .vgrid .span2,
body.mode-mobile .mgrid .span4, body.mode-mobile .mgrid .span2, body.mode-mobile .mgrid h4 { grid-column:span 2; }
body.mode-mobile .vhead { gap:8px; } body.mode-mobile .vhead .vno { margin-left:0; } body.mode-mobile .vhead label { width:100%; justify-content:space-between; }
body.mode-mobile .vhead .vno input, body.mode-mobile .vhead input { width:60%; }
body.mode-mobile .lines { font-size:14px; } body.mode-mobile .lines input { min-width:84px; }
body.mode-mobile .lines td:nth-child(1) input { min-width:170px; }
body.mode-mobile .vfoot { flex-direction:column; } body.mode-mobile .vtot { width:100%; flex:1 1 auto; }
body.mode-mobile .vch > .row:last-child { position:sticky; bottom:0; z-index:5; background:#eef3f8; margin:8px -12px -10px; padding:8px 12px;
  border-top:1px solid var(--line); box-shadow:0 -3px 10px rgba(15, 35, 65, .12); }
body.mode-mobile .vch > .row:last-child button { flex:1 1 30%; }
body.mode-mobile .dlg { width:100vw; max-height:100vh; border-radius:0; margin:0; }
body.mode-mobile .dlg .dh { flex-wrap:wrap; } body.mode-mobile .dlg .dh b { width:100%; }
body.mode-mobile .gnav a { font-size:14.5px; padding:7px 12px; }
/* ---- halka-sa gehra (beech ka) ---- */
body { background:linear-gradient(180deg, #b8cae0 0%, #bdd5c5 100%) fixed; }
.top { background:linear-gradient(90deg, #a2bde0 0%, #a9cfb9 100%); }
.card { background:#f2f6fa; }
.tabs button { background:#dde6f1; }
.chgbtn { background:var(--c-exp-s); color:var(--c-exp); border-color:#f2c4cb; font-weight:600; } select.cl { min-width:200px; }

/* e-Invoice header (bill par) */
.tinv table.einvh td { vertical-align:middle; font-size:10.5px; }
.tinv .einvh .irn { word-break:break-all; font-family:Consolas, monospace; font-size:9.5px; }
.tinv .einvh td.qr { width:34mm; text-align:center; } .tinv .einvh td.qr svg { width:30mm; height:30mm; }
.tinv .einvh .qrl { font-size:9px; margin-bottom:2px; }

/* purane bill — band dibbe me, zaroorat par kholein */
details.oldbills { margin-top:16px; border:1px solid var(--line); border-radius:8px; background:#fff; padding:2px 12px; }
details.oldbills > summary { cursor:pointer; font-weight:700; color:var(--c-list); padding:8px 0; }
details.oldbills[open] > summary { border-bottom:1px dashed var(--line); margin-bottom:6px; }
#t-purchase details.oldbills > summary { color:var(--c-pur); }
.vhead .vsup { margin-left:0; } .vhead .vsup input { width:140px; }

/* =============== 🏠 Main Menu =============== */
#cHead .row > button { display:none; }                 /* master buttons ab Main Menu ke andar */
.home { padding:18px; }
.home .hh { margin:0 0 12px; color:var(--c-purple); font:700 20px/1.2 Georgia, "Times New Roman", serif; }
.tiles { display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }
.tile { display:flex; flex-direction:column; align-items:flex-start; gap:4px; text-align:left; padding:18px 16px; min-height:118px;
  border-radius:14px; border:1px solid transparent; border-bottom-width:4px; cursor:pointer; transition:transform .08s, box-shadow .12s; }
.tile:hover { transform:translateY(-2px); box-shadow:0 8px 18px rgba(15, 35, 65, .16); }
.tile .ti { font-size:30px; line-height:1; } .tile b { font-size:17px; } .tile small { font-size:12.5px; opacity:.85; }
.m-blue   { background:linear-gradient(135deg, #e3eefb, #d2e3f8); color:#24507f; border-color:#c5daf3; border-bottom-color:#2f6fb7; }
.m-green  { background:linear-gradient(135deg, #e4f6ec, #d3efe0); color:#1f6b4a; border-color:#bfe5d1; border-bottom-color:#2f9e6e; }
.m-teal   { background:linear-gradient(135deg, #e0f4f5, #cdeced); color:#11666e; border-color:#b8e2e5; border-bottom-color:#15808a; }
.m-purple { background:linear-gradient(135deg, #efe8fb, #e2d6f7); color:#5b3a9a; border-color:#d9c9f3; border-bottom-color:#7a4cc2; }
.m-orange { background:linear-gradient(135deg, #fdf0e1, #fbe2c6); color:#8a4a0e; border-color:#f1d2ad; border-bottom-color:#c76a12; }
.m-red    { background:linear-gradient(135deg, #fdecea, #fad7d3); color:#9e2f27; border-color:#f5c6c2; border-bottom-color:#d0453c; }
.m-gold   { background:linear-gradient(135deg, #fff4cc, #fde9a6); color:#7a5a00; border-color:#efd27a; border-bottom-color:#e0a100; }
.m-gray   { background:linear-gradient(135deg, #f1f4f8, #e3e8ef); color:#3f4a58; border-color:#d3dbe5; border-bottom-color:#7a8796; }
.crumb { display:flex; align-items:center; gap:8px; margin:0 0 10px; }
.crumb:empty { display:none; }
.crumb button { background:#fff; color:var(--c-purple); border-color:#d9c9f3; font-weight:700; }
.crumb b { color:var(--ink); }
/* kaun sa hissa dikhe */
body.view-home #tabs, body.view-home .tab, body.view-sub #tabs, body.view-sub .tab, body.view-guide #tabs { display:none !important; }
body.view-voucher #home, body.view-guide #home { display:none; }
body.view-guide .tab:not(#t-guide) { display:none !important; }
body.view-guide #t-guide { display:block !important; }
body.view-voucher #t-guide { display:none !important; }
body.mode-mobile .tiles { grid-template-columns:1fr 1fr; gap:10px; }
body.mode-mobile .tile { min-height:104px; padding:14px 12px; } body.mode-mobile .tile small { display:none; }
@media (max-width:760px) { .tiles { grid-template-columns:1fr 1fr; } }

/* 🚛 transporter + E-Way khaane */
.trbox, .ewbbox { display:grid; grid-template-columns:repeat(4, 1fr); gap:0 12px; padding:4px 10px; border-radius:8px; margin:4px 0; }
.trbox { background:#f3f8ff; border:1px dashed #c5daf3; }
.ewbbox { background:#e8f6f7; border:1px solid #b8e2e5; }
.ewbbox .span4 { grid-column:span 4; }
.ewbq select { font-weight:700; color:#11666e; }
body.mode-mobile .trbox, body.mode-mobile .ewbbox { grid-template-columns:1fr 1fr; }
body.mode-mobile .ewbbox .span4 { grid-column:span 2; }

/* Net ₹ (GST sahit) */
.lines th.nth { background:var(--c-yel-s) !important; color:var(--c-yel-d) !important; }
.lines th.nth small { font-weight:600; font-size:10.5px; }
.lines input.nt, .lines input.cnt { background:#fffbea; border-color:#efd27a; font-weight:600; min-width:96px; }

/* 📤 Data Sent — Main Menu se apne aap khulta hai */
body.view-upload #tabs, body.view-upload #home { display:none !important; }
body.view-upload .tab:not(#t-upload) { display:none !important; }
body.view-upload #t-upload { display:block !important; }
body.view-voucher #t-upload { display:none !important; }
.tile b { line-height:1.25; }

/* 📚 My Saved Bills */
.m-pink { background:linear-gradient(135deg, #fde7f1, #f9d2e4); color:#8e2a5c; border-color:#f3c0d8; border-bottom-color:#c2407e; }
body.view-bills #tabs, body.view-bills #home { display:none !important; }
body.view-bills .tab:not(#t-bills) { display:none !important; }
body.view-bills #t-bills { display:block !important; }
body.view-voucher #t-bills { display:none !important; }
#t-bills { border-top-color:#c2407e; } #t-bills h3 { color:#a3366b; }
.sbk { display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; margin:6px 0 10px; }
.sbk > div { border-radius:10px; padding:10px 12px; display:flex; flex-direction:column; gap:2px; }
.sbk small { font-size:12px; opacity:.85; } .sbk b { font-size:22px; } .sbk span { font-size:13px; font-weight:600; }
.sbk .k1 { background:var(--c-sale-s); color:var(--c-sale); } .sbk .k2 { background:var(--c-pur-s); color:var(--c-pur); }
.sbk .k3 { background:var(--c-yel-s); color:var(--c-yel-d); } .sbk .k4 { background:var(--c-green-s); color:#1f7a50; }
.sbf input, .sbf select { width:auto; margin:0; }
.sbt th { background:#f6e3ee; color:#7a2650; position:sticky; top:0; }
.sbt tr:nth-child(even) td { background:#fbf6f9; }
.kd { font-size:12px; font-weight:700; padding:2px 7px; border-radius:8px; background:#eef1f5; color:#3f4a58; }
.kd.sale { background:var(--c-sale-s); color:var(--c-sale); } .kd.purchase { background:var(--c-pur-s); color:var(--c-pur); }
.kd.mandi { background:var(--c-mandi-s); color:var(--c-mandi); } .kd.upload { background:var(--c-up-s); color:var(--c-up); }
body.mode-mobile .sbk { grid-template-columns:1fr 1fr; }

/* 📦 stock */
.lines td .stk { font-size:11px; font-weight:600; margin-top:2px; }
.lines td .stk.ok { color:#1f7a50; } .lines td .stk.zero { color:#8a6400; }
.lines td .stk.neg { color:#fff; background:var(--c-red); border-radius:6px; padding:1px 6px; display:inline-block; animation:stkblink 1.2s ease-in-out 2; }
@keyframes stkblink { 50% { opacity:.4; } }
/* My Saved Bills — category button */
.sbcats { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 10px; }
.sbc { border-radius:20px; padding:7px 14px; font-weight:700; border:1px solid var(--line); background:#fff; }
.sbc b { margin-left:4px; padding:1px 8px; border-radius:10px; background:rgba(0,0,0,.07); }
.sbc.c-all.on { background:#a3366b; color:#fff; border-color:#a3366b; }
.sbc.c-sale { color:var(--c-sale); border-color:#c5daf3; } .sbc.c-sale.on { background:var(--c-sale); color:#fff; }
.sbc.c-purchase { color:var(--c-pur); border-color:#f1d2ad; } .sbc.c-purchase.on { background:var(--c-pur); color:#fff; }
.sbc.c-mandi { color:var(--c-mandi); border-color:#f3c0d4; } .sbc.c-mandi.on { background:var(--c-mandi); color:#fff; }
.sbc.c-upload { color:var(--c-up); border-color:#bfe5d1; } .sbc.c-upload.on { background:var(--c-up); color:#fff; }
.sbc.on b { background:rgba(255,255,255,.25); }
select.autoled { background:#eefaf3; border-color:#7cc8a1; }

/* 📲 App install */
#appBtnLogin { display:block; width:100%; margin-top:12px; background:linear-gradient(90deg, #2f9e6e, #2f6fb7); color:#fff; border:0; font-weight:700; padding:10px; }
#appBtnTop { background:#2f9e6e !important; color:#fff !important; border-color:#2f9e6e !important; font-weight:700; }
#appBtnLogin.hidden, #appBtnTop.hidden { display:none !important; }

/* 🔴 Credit Note · 🟣 Debit Note · 📒 Journal · 🏦 Bank */
.tabs button[data-t="cn"] { border-bottom-color:var(--c-red); } .tabs button[data-t="cn"].on { background:var(--c-red-s); color:var(--c-red); border-color:var(--c-red); }
.tabs button[data-t="dn"] { border-bottom-color:var(--c-purple); } .tabs button[data-t="dn"].on { background:var(--c-purple-s); color:var(--c-purple); border-color:var(--c-purple); }
.tabs button[data-t="jv"] { border-bottom-color:#b8860b; } .tabs button[data-t="jv"].on { background:#fdf5dc; color:#7a5a00; border-color:#b8860b; }
.tabs button[data-t="bk"] { border-bottom-color:var(--c-list); } .tabs button[data-t="bk"].on { background:var(--c-list-s); color:var(--c-list); border-color:var(--c-list); }
#t-cn { border-top-color:var(--c-red); } #t-dn { border-top-color:var(--c-purple); } #t-jv { border-top-color:#b8860b; } #t-bk { border-top-color:var(--c-list); }
.vch-cn .vhead { background:linear-gradient(90deg, #fdecea, #fff5f4); } .vch-cn .vhead .vtype { color:var(--c-red); }
.vch-dn .vhead { background:linear-gradient(90deg, #efe8fb, #f8f4ff); } .vch-dn .vhead .vtype { color:var(--c-purple); }
.vch-jv .vhead { background:linear-gradient(90deg, #fdf5dc, #fffbea); } .vch-jv .vhead .vtype { color:#8a6400; }
.vch-bk .vhead { background:linear-gradient(90deg, #e0f4f5, #f0fbfb); } .vch-bk .vhead .vtype { color:var(--c-list); }
.jvtot { margin-left:auto; font-size:14px; } .jvtot .bad { color:var(--c-red); font-weight:700; } .jvtot .ok { color:#1f7a50; font-weight:700; }
#jvLines input.jd, #jvLines input.jc { min-width:120px; text-align:right; }
.sbc.c-credit_note { color:var(--c-red); border-color:#f5c6c2; } .sbc.c-credit_note.on { background:var(--c-red); color:#fff; }
.sbc.c-debit_note { color:var(--c-purple); border-color:#d9c9f3; } .sbc.c-debit_note.on { background:var(--c-purple); color:#fff; }
.sbc.c-journal { color:#8a6400; border-color:#efd27a; } .sbc.c-journal.on { background:#b8860b; color:#fff; }
.sbc.c-bank { color:var(--c-list); border-color:#b8e2e5; } .sbc.c-bank.on { background:var(--c-list); color:#fff; }
.kd.credit_note { background:var(--c-red-s); color:var(--c-red); } .kd.debit_note { background:var(--c-purple-s); color:var(--c-purple); }
.kd.journal { background:#fdf5dc; color:#8a6400; } .kd.bank { background:var(--c-list-s); color:var(--c-list); }

/* WhatsApp link se aaye to install ki patti */
.installtip { position:sticky; top:0; z-index:50; display:flex; align-items:center; gap:10px; padding:10px 14px;
  background:linear-gradient(90deg, #2f9e6e, #2f6fb7); color:#fff; box-shadow:0 3px 12px rgba(15, 35, 65, .25); }
.installtip img { width:40px; height:40px; border-radius:10px; }
.installtip div { flex:1; line-height:1.25; } .installtip small { opacity:.9; }
.installtip button { background:#fff; color:#2f6fb7; border:0; font-weight:800; }
.installtip button.x { background:transparent; color:#fff; }

/* 📜 Login par bhumika link */
.authalt { display:block; width:100%; margin-top:10px; padding:10px; background:none; border:1px solid #cbd5e1; border-radius:10px; color:#1e3a5f; font-weight:600; cursor:pointer; }
.authintro { display:block; text-align:center; margin-top:14px; padding:9px 10px; border-radius:10px; background:#fff6dc; border:1px solid #ecd9a8; color:#7a4a00; font-weight:700; text-decoration:none; }
.authintro:hover { background:#ffefc2; }

/* 💰 Receipt · 💸 Payment · 🔁 Contra */
.bkquick { display:flex; flex-wrap:wrap; gap:6px; align-items:flex-end; padding:6px 0; }
.bkquick button { padding:6px 10px; font-size:13px; border-radius:16px; background:#eef4fb; border:1px solid var(--line); }
.bklines { width:100%; border-collapse:collapse; margin-top:8px; }
.bklines th { text-align:left; font-size:12.5px; padding:4px 6px; background:#e6eef8; }
.bklines td { padding:3px 4px; } .bklines input { width:100%; margin:0; }
.bklines input.ba { text-align:right; font-weight:700; }
#t-bk .vch[data-vt="Receipt"] .vhead { background:linear-gradient(90deg, #2f9e6e, #23825a); }
#t-bk .vch[data-vt="Payment"] .vhead { background:linear-gradient(90deg, #d0453c, #b8322a); }
#t-bk .vch[data-vt="Contra"] .vhead { background:linear-gradient(90deg, #7a4cc2, #5b3a9a); }
#tabs button[data-vt="Receipt"].on { background:#2f9e6e; color:#fff; }
#tabs button[data-vt="Payment"].on { background:#d0453c; color:#fff; }
#tabs button[data-vt="Contra"].on { background:#7a4cc2; color:#fff; }
@media (max-width:700px) { .bklines th:nth-child(3), .bklines td:nth-child(3) { display:none; } }

/* 📊 Report */
body.view-report #tabs, body.view-report #home { display:none !important; }
body.view-report .tab:not(#t-report) { display:none !important; }
body.view-report #t-report { display:block !important; }
.rphead { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 14px; justify-content:space-between; }
.rphead h2 { margin:0; } .rphead h2 small { font-size:14px; color:var(--muted, #5a6b7d); font-weight:600; }
.rpbar { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; margin:10px 0 6px; }
.rpbar label { margin:0; } .rpbar select { width:auto; }
.seg { display:inline-flex; border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.seg button { border:0; border-radius:0; background:#fff; padding:8px 14px; font-weight:700; }
.seg button.on { background:var(--pri); color:#fff; }
.rptabs .sbc.on { background:var(--pri); color:#fff; }
.rpwrap { overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--line); border-radius:10px; }
.rptab { width:100%; border-collapse:collapse; font-size:13.5px; background:#fff; }
.rptab th { background:#dfe9f6; padding:7px 8px; text-align:right; white-space:nowrap; position:sticky; top:0; }
.rptab th:first-child { text-align:left; }
.rptab td { padding:6px 8px; border-top:1px solid #e3eaf3; white-space:nowrap; }
.rptab td.n { text-align:right; font-variant-numeric:tabular-nums; } .rptab td.l { text-align:left; white-space:normal; min-width:90px; }
.rptab tbody tr:nth-child(even) { background:#f7fafd; }
.rptab tr.tot td, .rptab tfoot td { background:#fff6dc; font-weight:800; border-top:2px solid #e0a100; }
.rptab tr.clk { cursor:pointer; } .rptab tr.clk:hover { background:#eaf3ff; }
.rptab tr.vrow > td { background:#f3f7fc; padding:6px 6px 10px 18px; }
.rptab .bad { color:#c0392b; }
.vtab { font-size:12.5px; } .vtab th { background:#e9eef6; }
.rpcards { display:flex; flex-wrap:wrap; gap:10px; margin:6px 0 10px; }
.rpc { display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-width:170px; padding:10px 14px; border-radius:12px; border:1px solid var(--line); background:#fff; text-align:left; border-left:6px solid; cursor:default; }
button.rpc { cursor:pointer; } .rpc.on { box-shadow:0 0 0 3px rgba(47, 111, 183, .35); }
.rpc small { font-size:12px; color:#4f5f72; font-weight:700; } .rpc b { font-size:17px; } .rpc span { font-size:12px; color:#4f5f72; }
.rpc.c-g { border-left-color:#2f9e6e; } .rpc.c-r { border-left-color:#d0453c; } .rpc.c-b { border-left-color:#2f6fb7; }
.rph { margin:12px 0 6px; font-size:16px; color:#24507f; } .rph small { color:#4f5f72; font-weight:600; font-size:13px; }
.rpnote { margin-top:12px; font-size:12.5px; }
@media print { body.view-report header, body.view-report #crumb, body.view-report .rpbar, body.view-report .rptabs { display:none !important; } .rpwrap { overflow:visible; } }

.rpact { display:inline-flex; flex-wrap:wrap; gap:6px; margin-left:auto; }
.rpact button.wa { background:#25d366; color:#fff; border-color:#1fb457; }
.rpprint { display:none; }
@media print {
  body.view-report .rpact, body.view-report .rphead button { display:none !important; }
  body.view-report .rptab th { position:static; }
  body.view-report .rpprint { display:block; font-weight:800; font-size:15px; margin:4px 0 8px; }
}

/* 🖼 logo · 💬 WhatsApp */
.logoprev { display:flex; align-items:center; justify-content:center; min-height:120px; border:2px dashed var(--line); border-radius:12px; margin:8px 0; background:#fff; }
.logoprev img { max-width:220px; max-height:160px; }
button.wa { background:#25d366; color:#fff; border-color:#1fb457; }
#t-bk .vch[data-vt] .vhead .vtype { color:#fff !important; -webkit-text-fill-color:#fff; background:none; text-shadow:0 1px 2px rgba(0,0,0,.25); }
.vhead .st:empty { display:none; }
.bkquick { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; }
.bkquick button { width:auto !important; flex:0 0 auto; white-space:nowrap; margin:0; }

/* 💳 Fee / Renewal */
body.view-fee #tabs, body.view-fee #home { display:none !important; }
body.view-fee .tab:not(#t-fee) { display:none !important; }
body.view-fee #t-fee { display:block !important; }
.feest { border-radius:12px; padding:12px 14px; margin:8px 0; border:1px solid; border-left-width:6px; }
.feest.ok { background:#e8f7ee; border-color:#2f9e6e; color:#1f5a40; }
.feest.warn { background:#fff6dc; border-color:#e0a100; color:#6b4a00; }
.feest.bad { background:#fdecea; border-color:#d0453c; color:#8e2a23; }
.feest.clk { cursor:pointer; }
.feebox { display:grid; grid-template-columns:1.4fr 1fr; gap:18px; align-items:start; }
.feeplans { display:flex; flex-wrap:wrap; gap:8px; }
.feeplans button { display:flex; flex-direction:column; align-items:flex-start; padding:10px 14px; border-radius:12px; border:2px solid var(--line); background:#fff; min-width:110px; }
.feeplans button span { font-size:15px; color:#1f6b4a; font-weight:800; }
.feeplans button.on { border-color:#2f9e6e; background:#e8f7ee; }
a.btn.feepay { display:inline-block; text-decoration:none; background:linear-gradient(90deg, #2f9e6e, #2f6fb7); color:#fff; padding:13px 18px; border-radius:12px; font-weight:800; font-size:17px; margin:4px 0; }
a.btn.wa { display:inline-block; text-decoration:none; background:#25d366; color:#fff; padding:8px 14px; border-radius:8px; font-weight:700; }
.feeqr { text-align:center; background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px; }
.feeqr svg { width:220px; height:220px; } .feeqr img { max-width:240px; margin-top:8px; }
@media (max-width:700px) { .feebox { grid-template-columns:1fr; } }

.rpupd { background:#eef6ff; border:1px solid #c5dbf3; border-radius:10px; padding:7px 12px; margin:6px 0; font-size:14px; }
.rpupd small { color:#4f5f72; margin-left:6px; }
@media print { .rpupd small { display:none; } }

/* 📜 ledger detail */
.ledsw { margin:4px 0 8px; } .detbar { gap:8px; align-items:flex-end; margin:4px 0 8px; }
.detbar label { margin:0; } .detbar input[type=date] { width:auto; }

/* 👀 Demo */
#demoBar { position:sticky; top:0; z-index:50; background:linear-gradient(90deg, #e0a100, #d0453c); color:#fff; text-align:center; padding:7px 10px; font-size:14px; }
#demoBar a { color:#fff; background:rgba(0,0,0,.18); padding:3px 10px; border-radius:12px; margin-left:8px; text-decoration:none; font-weight:700; white-space:nowrap; }

/* 🖨 Purane sale bill — ek saath print, har bill naye panne par */
.pgbrk { break-after:page; page-break-after:always; height:0; }
.rbcard .seg { margin:8px 0; }
.rbcard .rpbar label { display:inline-flex; gap:6px; align-items:center; }
.rbcard .seg.rbsrc button.on { background:#1f6f43; color:#fff; }

/* 🔑 Master — OTP & Suraksha (phone par) */
.msec { border-left:5px solid #d97757; }
.msecstat { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.msecstat span { background:#f3f6fb; border:1px solid #dde5f0; border-radius:10px; padding:6px 10px; font-size:13px; }
.msal { border:1px solid #e6d3c8; border-radius:12px; padding:10px 12px; margin:10px 0; background:#fff8f3; display:flex; flex-direction:column; gap:8px; }
.msal.new-device { background:#fffaf0; border-color:#efd9a8; }
.msotp { font:700 34px/1.1 Consolas, monospace; letter-spacing:6px; color:#1f2a44; text-align:center; background:#fff; border:2px dashed #d97757; border-radius:10px; padding:8px; }
.msal button.danger { background:#fdecec; color:#b3261e; border-color:#f3b8b4; }
.msec input[type=checkbox] { width:auto; height:auto; transform:scale(1.3); margin-right:6px; }
.msec label { display:inline-flex; align-items:center; gap:6px; flex-direction:row; }

/* 📊 Report — menu (upar se neeche) + Date / Month / Year / Party-wise */
.rpmenu { display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.rpmi { display:flex; align-items:center; gap:14px; width:100%; text-align:left; padding:14px 16px; border-radius:14px; border:1px solid #d6e0ee;
  background:linear-gradient(180deg,#ffffff,#f3f7fc); box-shadow:0 2px 6px rgba(20,40,80,.06); cursor:pointer; font:inherit; color:inherit; }
.rpmi:hover { border-color:#7fa6dc; background:#eef5ff; }
.rpmi .i { font-size:26px; width:40px; text-align:center; }
.rpmi .t { flex:1; display:flex; flex-direction:column; gap:2px; }
.rpmi .t b { font-size:16px; } .rpmi .t small { color:#5f6f86; font-size:12.5px; }
.rpmi .go { font-size:26px; color:#9fb2cc; }
.rpmodes { display:flex; flex-wrap:wrap; margin:10px 0 6px; }
.rpmodes button:disabled { opacity:.45; cursor:not-allowed; }
.rpback { margin-right:8px; }
.rphead { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
@media print { .rpback, .rpmodes, .rpmenu, .rphead button { display:none !important; } }

/* 🖨 do saaf print mode: bill (sirf #printArea) / report (sirf report) */
@media print {
  body.print-bills > *:not(#printArea) { display:none !important; }
  body.print-bills #printArea { display:block !important; padding:0; }
  body.print-report #printArea { display:none !important; }
  body.print-report .top, body.print-report #demoBar, body.print-report #crumb, body.print-report #notices, body.print-report #cHead { display:none !important; }
  body.print-report main { display:block !important; }
}
@media print { body.print-bills, body.print-report { background:#fff !important; } }

/* SAS logo — Print Invoice (SAS) */
.sasico { width:30px; height:30px; border-radius:8px; vertical-align:middle; box-shadow:0 1px 3px rgba(0,0,0,.2); }
.rphead h2 .sasico { width:26px; height:26px; margin-right:4px; }

/* 🧾 Tally Classic Tax Invoice */
.tinv.classic { background:#fff; padding:6px; }
.tinv.classic .hd .hc { width:25%; height:30px; }
.tinv.classic .hd .tod { height:44px; }
.tinv.classic .hd .sel { height:auto; }
.tinv.classic .seller img { width:70px; height:70px; object-fit:contain; }
.tinv.classic .pn { font-size:12px; }
.tinv.classic .it th.sl { width:26px; }
.tinv.classic .nob { border-bottom:0; }
.tinv.classic .seal { vertical-align:bottom; height:62px; font-size:10px; }
.tinv.classic .sign { text-align:right; vertical-align:top; }
.tinv.classic .juris { margin-top:4px; font-size:10px; font-weight:bold; }

/* 📊 Report menu — Main Menu jaise tile; andar ke tarike / buttons bhi bade aur rangin */
.rptiles { margin-top:12px; }
.rptiles .tile .ti .sasico { width:34px; height:34px; }
.rpmodes button { padding:9px 14px; font-weight:700; }
.rpmodes button.on { background:linear-gradient(135deg, #2f6fb7, #24507f); color:#fff; }
.rpact button { padding:8px 12px; font-weight:600; border-radius:10px; border-bottom:3px solid #c5d3e6; }
.rpact button.wa { border-bottom-color:#178f45; }

/* 📱 Mobile: Report ke Date / Month / Year / Party-wise option aur buttons barabar khano me */
@media (max-width: 640px) {
  .seg.rpmodes { display:grid; grid-template-columns:1fr 1fr; gap:6px; width:100%; border:0; overflow:visible; border-radius:0; }
  .seg.rpmodes button { border:1px solid var(--line); border-radius:10px; padding:11px 6px; font-size:14px; text-align:center; white-space:nowrap; background:#fff; }
  .seg.rpmodes button.on { border-color:#24507f; background:linear-gradient(135deg, #2f6fb7, #24507f); color:#fff; }
  .seg.rpmodes button:disabled { background:#f3f5f8; }
  .rpact { display:grid; grid-template-columns:repeat(3, 1fr); gap:6px; width:100%; margin-left:0; }
  .rpact button { width:100%; padding:9px 4px; font-size:13.5px; white-space:nowrap; }
  .rpbar { gap:8px; }
  .rpbar > label, .rbcard .rpbar label { flex:1 1 100%; display:flex; justify-content:space-between; align-items:center; gap:8px; }
  .rpbar > label input, .rpbar > label select, .rbcard .rpbar label input { flex:1; min-width:0; max-width:65%; }
  .detbar { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
  .detbar label { display:flex; flex-direction:column; margin:0; }
  .detbar label input { width:100%; min-width:0; }
  .detbar button { width:100%; }
}

.msal.edited, .msal.deleted { background:#fdecec; border-color:#e8b4b4; }

/* 💬 Sonu ji Se Pucho */
.tile.m-sonu { background:linear-gradient(135deg, #f59e0b, #ea580c); color:#fff; }
body.view-sonu #tabs, body.view-sonu #home { display:none !important; }
body.view-sonu .tab:not(#t-sonu) { display:none !important; }
body.view-sonu #t-sonu { display:flex !important; }
#t-sonu { flex-direction:column; padding:0; overflow:hidden; height:calc(100vh - 150px); min-height:420px; }
.sjhead { display:flex; gap:10px; align-items:center; padding:10px 14px; color:#fff; background:linear-gradient(135deg, #f59e0b 0%, #ea580c 60%, #c2410c 100%); }
.sjhead img { width:40px; height:40px; border-radius:10px; background:#fff; padding:2px; }
.sjhead b { display:block; font-size:18px; } .sjhead small { opacity:.92; font-size:12px; }
.sjlog { flex:1; overflow-y:auto; padding:12px; background:#f4f1ec; display:flex; flex-direction:column; gap:8px; }
.sjm { max-width:92%; padding:9px 12px; border-radius:14px; line-height:1.4; font-size:14.5px; box-shadow:0 1px 2px rgba(0,0,0,.08); }
.sjm.bot { background:#fff; align-self:flex-start; border-top-left-radius:4px; }
.sjm.me { background:#dcf8c6; align-self:flex-end; border-top-right-radius:4px; white-space:pre-wrap; }
.sjin { display:flex; gap:8px; padding:8px; background:#fff; border-top:1px solid var(--line, #dde3ea); }
.sjin input { flex:1; border-radius:22px; padding:11px 16px; font-size:15px; }
.sjsend { border-radius:50%; width:46px; height:46px; padding:0; font-size:18px; background:#ea580c; color:#fff; border:0; }
.sjco { display:flex; gap:12px; align-items:flex-start; }
.sjco img { width:64px; height:64px; object-fit:contain; border-radius:10px; border:1px solid #eee; background:#fff; }
.sjcon { font-size:17px; font-weight:800; color:#24507f; margin-bottom:4px; }
.sjco table td { padding:1px 8px 1px 0; vertical-align:top; font-size:13.5px; } .sjco table td:first-child { color:#667; white-space:nowrap; }
.sjbtns { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:6px; margin-top:8px; }
.sjb { display:flex; gap:6px; align-items:center; justify-content:flex-start; padding:9px 10px; border-radius:12px; font-weight:700; color:#fff; border:0; text-align:left; font-size:13.5px; }
.sjb span { font-size:18px; } .sjb .sasico { width:22px; height:22px; }
.sjb.m-green { background:#2e9e5b; } .sjb.m-orange { background:#e67e22; } .sjb.m-gold { background:#c99a06; } .sjb.m-blue { background:#2f6fb7; }
.sjb.m-purple { background:#7a4cc2; } .sjb.m-teal { background:#14928a; } .sjb.m-pink { background:#d0458a; } .sjb.m-red { background:#c0392b; }
.sjchips { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.sjchips button { border-radius:18px; padding:6px 12px; font-size:13px; background:#fff7ed; border:1px solid #fdba74; color:#9a3412; font-weight:600; }
.sjt { border-collapse:collapse; margin:6px 0; width:100%; font-size:13.5px; }
.sjt td, .sjt th { padding:4px 6px; border-bottom:1px solid #eee; text-align:left; } .sjt th { color:#667; font-weight:600; font-size:12px; }
.sjt .r { text-align:right; white-space:nowrap; } .sjt tr.tot td { border-top:2px solid #ccc; font-weight:700; }
.sjact { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.sjact button { padding:8px 12px; border-radius:10px; font-weight:600; }
.sjul { margin:6px 0 0 18px; padding:0; }
.sjfab { position:fixed; right:16px; bottom:18px; z-index:50; display:flex; align-items:center; gap:8px; padding:8px 14px 8px 8px; border-radius:30px; border:0;
  color:#fff; font-weight:800; background:linear-gradient(135deg, #f59e0b, #ea580c); box-shadow:0 6px 18px rgba(234,88,12,.45); }
.sjfab img { width:32px; height:32px; border-radius:50%; background:#fff; padding:2px; }
body.view-sonu .sjfab { display:none; }
@media (max-width:600px) { #t-sonu { height:calc(100vh - 120px); } .sjfab span { display:none; } .sjfab { padding:8px; } .sjm { max-width:97%; } }
@media print { .sjfab { display:none !important; } }
.sjm.bot { width:min(100%, 520px); max-width:none; }
.sjbtns { grid-template-columns:1fr 1fr; }
.sjco > div { min-width:0; flex:1; } .sjco table { width:100%; table-layout:fixed; } .sjco table td:first-child { width:38%; }
.sjco table td { overflow-wrap:anywhere; }
@media (max-width:600px) { .sjco img { width:46px; height:46px; } .sjco table td { font-size:12.5px; } .sjb { font-size:12.5px; padding:8px; } }
@media (max-width:600px) { .sjt { font-size:12px; } .sjt td, .sjt th { padding:3px 4px; } .sjt .r { white-space:normal; } }
/* 🎤 Sonu ji — bol kar poochhna */
.sjmic { border-radius:50%; width:46px; height:46px; padding:0; font-size:20px; background:#fff7ed; border:2px solid #fdba74; flex:none; }
.sjmic.on { background:#dc2626; border-color:#dc2626; color:#fff; animation:sjpulse 1.1s infinite; }
@keyframes sjpulse { 0% { box-shadow:0 0 0 0 rgba(220,38,38,.55); } 70% { box-shadow:0 0 0 12px rgba(220,38,38,0); } 100% { box-shadow:0 0 0 0 rgba(220,38,38,0); } }
.sjspk { margin-left:auto; border-radius:50%; width:40px; height:40px; padding:0; font-size:18px; background:rgba(255,255,255,.9); border:0; }

/* 🏢 Meri company ka pata */
.adgrid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:8px 0; }
.adgrid label { display:flex; flex-direction:column; gap:3px; font-size:13px; }
.adgrid .span2 { grid-column:1 / -1; }
.adgrid textarea { resize:vertical; }
@media (max-width:600px) { .adgrid { grid-template-columns:1fr; } }

/* 📲 Mobile Master — login / suchna / App updation */
.mmtabs { display:flex; gap:6px; flex-wrap:wrap; margin:6px 0 10px; }
.mmtabs button { flex:1; min-width:110px; padding:10px 8px; border-radius:10px; font-weight:700; }
.mmtabs button.on { background:linear-gradient(135deg, #2f6fb7, #24507f); color:#fff; border-color:#24507f; }
.mmbody label { display:flex; flex-direction:column; gap:3px; margin:6px 0; font-size:13.5px; }
.mmbody textarea { width:100%; }
.mmq { width:100%; margin:4px 0 8px; padding:10px 12px; border-radius:10px; }
.mmrow { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:9px 4px; border-bottom:1px solid #eef1f5; }
.mmrow.sel { justify-content:flex-start; flex-direction:row !important; }
.mmrow button { white-space:nowrap; }
.mmtag { font-size:11px; background:#e7f6ec; color:#1d7a43; border-radius:8px; padding:1px 6px; }
.mmwho { gap:10px; flex-wrap:wrap; } .mmwho label { flex-direction:row !important; align-items:center; gap:6px; }
.mmbtn { gap:8px; flex-wrap:wrap; } .mmbtn button { flex:1; padding:11px; font-weight:700; }
button.wa { background:#25d366; color:#fff; border-color:#1fb457; }
.mmq2 { margin-top:10px; padding:10px; border:1px solid #bfe8cc; background:#f2fbf5; border-radius:10px; }
#mmList, #mmPick { max-height:55vh; overflow:auto; }

/* 🖨 Bill print / PDF — browser apna upar-neeche (portal ka naam / link) na chhaape: bill ka page bina haashiye, haashiya bill ke andar */
@media print {
  @page invoice { size: A4; margin: 0; }
  body.print-bills #printArea { page: invoice; }
  body.print-bills #printArea .tinv, body.print-bills #printArea .pbill { padding: 10mm; box-sizing: border-box; }
}
.saledone { display:flex; flex-direction:column; gap:6px; padding:10px; border:1px solid #bfe8cc; background:#f2fbf5; border-radius:12px; color:var(--ink, #222); }
.saledone .row { gap:6px; flex-wrap:wrap; }
.saledone button { padding:10px 14px; font-weight:700; }

.mmtabs.sub button { min-width:90px; padding:8px; }
.mfbtns { display:flex; gap:4px; } .mfbtns button { padding:8px 10px; }

.mmq2 code { word-break:break-all; font-size:12px; }

.mcthread { max-height:60vh; overflow-y:auto; display:flex; flex-direction:column; gap:6px; padding:8px; background:#efeae2; border-radius:10px; margin-top:8px; }
.mcb { max-width:85%; padding:6px 9px; border-radius:9px; font-size:14px; line-height:1.35; box-shadow:0 1px 1px rgba(0,0,0,.08); word-wrap:break-word; }
.mcb.in { align-self:flex-start; background:#fff; } .mcb.out { align-self:flex-end; background:#d9fdd3; }
.mcb small { display:block; text-align:right; color:#667; font-size:11px; margin-top:2px; }
.mcone { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mmrow.clk { cursor:pointer; }

.mclink { margin-top:8px; padding:8px; border:1px dashed #9ab; border-radius:8px; font-size:14px; }
.mclink select { flex:1; min-width:0; }

/* 🖨 A4 bill — har browser / phone (Android, iPhone, computer) par ek jaisa: panna 210 × 297mm, haashiya 8mm bill ke andar */
@media print {
  body.print-bills { margin:0 !important; padding:0 !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  body.print-bills #printArea .tinv, body.print-bills #printArea .pbill { width:auto; max-width:none; margin:0; padding:8mm; box-sizing:border-box;
    -webkit-box-decoration-break:clone; box-decoration-break:clone; }
  body.print-bills #printArea tr, body.print-bills #printArea .sign, body.print-bills #printArea .foot, body.print-bills #printArea .juris { break-inside:avoid; page-break-inside:avoid; }
  body.print-bills #printArea thead { display:table-header-group; }
}
.pdfbox .tinv, .pdfbox .pbill { max-width:none; margin:0; }

/* =============== 🔐 Uchanti Hisab — alag rang-roop: gehra hara-neela + sona =============== */
.tile.m-uch { background:linear-gradient(135deg,#0b3d3a,#123a6b); color:#ffe9a8; border-color:#c9a227; }
.tile.m-uch small { color:#e8d9a8; }
body.view-uch #tabs, body.view-uch #home { display:none !important; }
body.view-uch .tab:not(#t-uch) { display:none !important; }
body.view-uch #t-uch { display:block !important; }
body.view-uch .sjfab, body.uch-only .sjfab { display:none !important; }
body.uch-on { background:linear-gradient(160deg,#06201f 0%,#0b2f4a 55%,#1a1640 100%) fixed !important; }
body.uch-on .top, body.uch-on #crumb { filter:saturate(.6) brightness(.95); }
.uch { --ug:#c9a227; --ug2:#ffe08a; --ub:#0b3d3a; --ub2:#123a6b; --ut:#f4f1e6; --uc:#0f2a33; color:var(--ut); font-size:15px; }
.uch .muted, .uch small { color:#b9c6c4; }
.uch input, .uch select { background:#0d2230; color:#fff; border:1px solid #2f5866; border-radius:8px; padding:8px; }
.uch input:focus, .uch select:focus { outline:2px solid var(--ug); }
.uch button { background:#173b4a; color:#f4f1e6; border:1px solid #2f5866; border-radius:8px; padding:7px 11px; cursor:pointer; }
.uch button.pri, .uch .uchbig { background:linear-gradient(90deg,#c9a227,#e6c14d); color:#1b1606; border-color:#c9a227; font-weight:800; }
.uch button.wa { background:#1f9d55; border-color:#1f9d55; color:#fff; }
.uch button.danger { background:#a3312a; border-color:#a3312a; color:#fff; }
.uch .uchghost { background:none; border:1px dashed #4a7480; }
.uchlock { max-width:440px; margin:20px auto; padding:26px 20px; border-radius:22px; text-align:center; display:flex; flex-direction:column; gap:10px;
  background:linear-gradient(160deg,#0b3d3a,#123a6b 60%,#241b52); border:1px solid #c9a227; box-shadow:0 10px 40px rgba(0,0,0,.45); }
.uchlogo { font-size:54px; filter:drop-shadow(0 4px 10px rgba(201,162,39,.5)); }
.uchlock h2 { margin:0; color:var(--ug2); letter-spacing:.5px; }
.uchsub, .uchnote { margin:0; color:#d7e2df; }
.uchbig { padding:13px !important; font-size:17px; }
.uchforgot { text-align:left; color:#cbd7d5; font-size:13px; }
.uchdemo { background:#3b2f0a; border:1px solid #c9a227; border-radius:10px; padding:8px; color:#ffe9a8; }
.uchbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:10px 12px; border-radius:14px; margin-bottom:10px;
  background:linear-gradient(90deg,#0b3d3a,#123a6b,#241b52); border:1px solid #c9a227; }
.uchbar b { color:var(--ug2); font-size:17px; } .uchbar .uchsp { flex:1; }
.uchro { background:#5b1d1d; border-radius:8px; padding:2px 8px; font-size:12px; }
.uchbody { display:flex; flex-direction:column; gap:10px; }
.uchfee { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:space-between; padding:10px 12px; border-radius:12px; }
.uchfee.on { background:#0f3b2a; border:1px solid #2f9e6e; } .uchfee.off { background:#4a1414; border:1px solid #d0453c; }
.uchfee .warn { color:#ffd166; }
.uchask { background:#3b2f0a; border:1px solid #c9a227; border-radius:12px; padding:10px; color:#ffe9a8; text-align:center; }
.uchaskcard .uchask { color:#5b4500; background:#fff7d6; }
.uchotp { font:900 34px/1.1 Consolas, monospace; letter-spacing:8px; color:#ffe08a; margin:6px 0; }
.uchaskcard .uchotp { color:#7a5b00; }
.uchkpi { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:8px; }
.uchkpi div { background:rgba(255,255,255,.06); border:1px solid #2f5866; border-radius:12px; padding:10px; }
.uchkpi b { display:block; font-size:18px; color:var(--ug2); }
.uchtiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; }
.uchtile { display:flex !important; flex-direction:column; align-items:flex-start; gap:3px; padding:16px 14px !important; border-radius:16px !important; text-align:left;
  min-height:104px; border:1px solid rgba(201,162,39,.5) !important; box-shadow:0 6px 18px rgba(0,0,0,.3); }
.uchtile span { font-size:28px; } .uchtile b { font-size:16px; color:#fff; } .uchtile small { color:#e6ddc4; }
.uchtile.t1 { background:linear-gradient(135deg,#0f5148,#0b3d3a) !important; } .uchtile.t2 { background:linear-gradient(135deg,#1b4f8a,#123a6b) !important; }
.uchtile.t3 { background:linear-gradient(135deg,#4b2f86,#2b1f5a) !important; } .uchtile.t4 { background:linear-gradient(135deg,#7a5b0c,#4d3a06) !important; }
.uchtile.t5 { background:linear-gradient(135deg,#6b2323,#3d1212) !important; } .uchtile.t6 { background:linear-gradient(135deg,#0e6b5c,#1b4f8a) !important; }
.uchtile.t7 { background:linear-gradient(135deg,#4a3f3f,#2b2424) !important; }
.uchtiles.small .uchtile { min-height:70px; }
.uchtabs { display:flex; gap:6px; flex-wrap:wrap; }
.uchtabs button.on, .uch .seg button.on { background:linear-gradient(90deg,#c9a227,#e6c14d); color:#1b1606; border-color:#c9a227; font-weight:700; }
.uch .seg { display:inline-flex; gap:2px; }
.uchtools { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.uchtools label { display:flex; align-items:center; gap:4px; }
.uchq { flex:1; min-width:150px; }
.uchform { background:rgba(255,255,255,.05); border:1px solid #c9a227; border-radius:14px; padding:12px; display:flex; flex-direction:column; gap:8px; }
.uchform h3 { margin:0; color:var(--ug2); }
.uchform label { display:flex; flex-direction:column; gap:3px; font-size:13px; color:#cfdcda; }
.uchgrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:8px; }
.uchgrid .span2 { grid-column:span 2; } .uchgrid .span3 { grid-column:1 / -1; }
@media (max-width:520px) { .uchgrid .span2 { grid-column:1 / -1; } }
.uchsum { align-items:end; } .uchtotal { font-size:19px; color:var(--ug2); padding:8px; }
.uchlbl { width:130px; }
.uchchk { flex-direction:row !important; align-items:center; gap:8px !important; }
.uch .scroll { overflow-x:auto; }
.uchtab { width:100%; border-collapse:collapse; background:rgba(0,0,0,.18); border-radius:10px; overflow:hidden; }
.uchtab th { background:#0b3d3a; color:var(--ug2); text-align:left; padding:7px; font-size:13px; position:sticky; top:0; }
.uchtab td { border-top:1px solid #23475a; padding:6px 7px; vertical-align:top; }
.uchtab .r { text-align:right; } .uchtab .nw { white-space:nowrap; } .uchtab .nw button { padding:4px 7px; }
.uchtab tr.tot td { background:#3b2f0a; color:#ffe9a8; font-weight:700; }
.uchtab tr.clk { cursor:pointer; } .uchtab tr.clk:hover td { background:rgba(201,162,39,.12); }
.uchlines input { width:100%; min-width:70px; } .uchlines td:nth-child(2) input { min-width:150px; }
.uchtag { background:#2f9e6e; color:#fff; border-radius:6px; padding:0 5px; }
.uchlog, .uchfeat { background:rgba(255,255,255,.04); border:1px solid #2f5866; border-radius:12px; padding:8px 10px; text-align:left; font-size:13px; }
.uchlog summary, .uchfeat summary { cursor:pointer; color:var(--ug2); }
.uchfg { display:grid; gap:6px; margin-top:6px; } .uchfg b { display:block; color:#ffe9a8; }
.uchsafe { margin-top:8px; background:#0f3b2a; border-radius:10px; padding:8px; } .uchsafe ul { margin:4px 0 0 18px; padding:0; }
.uchchat { display:flex; flex-direction:column; gap:8px; }
.uchchathead { color:var(--ug2); font-size:17px; }
.uchlogc { height:52vh; overflow-y:auto; display:flex; flex-direction:column; gap:6px; padding:8px; background:rgba(0,0,0,.25); border-radius:12px; }
.ucm { max-width:85%; padding:8px 10px; border-radius:12px; line-height:1.4; }
.ucm.b { align-self:flex-start; background:#123a6b; } .ucm.u { align-self:flex-end; background:#5a470f; }
.ucm button { margin-top:4px; }
.uchquick { display:flex; gap:6px; flex-wrap:wrap; } .uchquick button { font-size:13px; }
.uchin { display:flex; gap:6px; } .uchin input { flex:1; font-size:16px; } .uchin button { background:linear-gradient(90deg,#c9a227,#e6c14d); color:#1b1606; font-weight:800; }
#mMob .uch { margin-top:6px; }
.uchp .uinfo { width:100%; margin:6px 0; } .uchp .uinfo th { text-align:left; width:70px; }
.uchp table { width:100%; border-collapse:collapse; } .uchp td, .uchp th { border:1px solid #999; padding:3px 5px; } .uchp .r { text-align:right; } .uchp h3 { margin:6px 0; }
@media print { body.uch-on { background:#fff !important; } }
body.view-uch #notices, body.view-uch #cHead, body.view-uch #uchAskB { display:none !important; }
body.uch-on #crumb { filter:none; } body.uch-on #crumb b, body.uch-on #crumb span { color:#ffe08a; }
.uchotpbox { display:flex; flex-direction:column; gap:6px; background:rgba(255,255,255,.06); border:1px dashed #c9a227; border-radius:10px; padding:8px; text-align:left; }
.uchmic { font-size:20px; padding:6px 12px !important; } .uchmic.on { background:#a3312a !important; animation:uchpulse 1s infinite; }
@keyframes uchpulse { 50% { box-shadow:0 0 0 8px rgba(208,69,60,.25); } }
.uchspk { float:right; font-size:18px; padding:4px 10px !important; }

/* 👁 View — A4 panne jaisa */
.docview { display:none; position:fixed; inset:0; z-index:2000; background:#4b5058; flex-direction:column; }
.docview.on { display:flex; }
body.dv-on { overflow:hidden; }
.dvbar { display:flex; align-items:center; gap:6px; flex-wrap:wrap; padding:8px 10px; background:#1f2a37; color:#fff; box-shadow:0 2px 8px rgba(0,0,0,.4); }
.dvbar b { font-size:15px; } .dvbar .dvsp { flex:1; }
.dvbar button { padding:8px 12px; border-radius:8px; border:1px solid #3b4a5c; background:#2d3b4c; color:#fff; font-weight:700; }
.dvbar button.wa { background:#25d366; border-color:#1fb457; }
.dvwrap { flex:1; overflow:auto; padding:14px 8px 40px; }
.dvpage { background:#fff; color:#000; width:210mm; max-width:100%; min-height:297mm; margin:0 auto; padding:8mm; box-sizing:border-box;
  box-shadow:0 4px 18px rgba(0,0,0,.45); overflow-x:auto; }
.dvpage .tinv { max-width:none; margin:0; }
.dvgap { height:14px; background:#4b5058; margin:8mm -8mm; }
.dvrep h2 { margin:0; text-align:center; } .dvrep h3 { margin:4px 0; text-align:center; } .dvrep h4 { margin:8px 0 4px; }
.dvtab { width:100%; border-collapse:collapse; margin:8px 0; font-size:12px; }
.dvtab th { background:#2f6fb7; color:#fff; padding:4px 6px; text-align:left; } .dvtab td { border:1px solid #c8d2de; padding:3px 6px; }
.dvtab .r { text-align:right; } .dvtab tr.tot td { background:#fff6dc; font-weight:700; } .dvtab tr.sub td { font-size:11px; color:#445; background:#f6f9fc; }
@media print { .docview { display:none !important; } }
.uch .uchok { color:#7ee2a8; font-weight:700; } .uch .warn { color:#ffd166; font-weight:700; }
.uchtab tr.on td { background:rgba(201,162,39,.18); }
.uchdetrow > td { padding:0 !important; }
.uchdetbox { margin:4px 0 8px 14px; padding:8px 10px; border-left:3px solid #c9a227; background:rgba(0,0,0,.28); border-radius:0 10px 10px 0; display:flex; flex-direction:column; gap:6px; }
.uchdet { width:100%; border-collapse:collapse; font-size:13px; } .uchdet th { color:#ffe08a; text-align:left; border-bottom:1px solid #2f5866; padding:3px 5px; }
.uchdet td { padding:3px 5px; border-bottom:1px dashed #23475a; } .uchdet .r { text-align:right; } .uchdet tr.tot td { color:#ffe9a8; font-weight:700; }
.uchlines select.ulg { min-width:110px; }
.rptab tr.clk { cursor:pointer; } .rptab tr.clk.on td { background:#fff6dc; }
.rpdetrow > td { padding:0 !important; background:#f7f9fc; }
.rpdet { margin:4px 0 8px 12px; padding:8px 10px; border-left:3px solid #2f6fb7; display:flex; flex-direction:column; gap:6px; font-size:13px; }
.rpdt { width:100%; border-collapse:collapse; } .rpdt th { background:#e7eef8; text-align:left; padding:3px 6px; } .rpdt td { border-bottom:1px solid #e1e7ef; padding:3px 6px; }
.rpdt .r { text-align:right; }
.uchtab tr.hd td { background:#0b3d3a; color:#ffe08a; font-weight:800; letter-spacing:.3px; }
.uchqrow { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.uchqrow button { padding:4px 9px !important; font-size:13px; }
.uchquick { position:fixed; inset:0; z-index:2100; background:rgba(0,0,0,.55); display:flex; align-items:flex-start; justify-content:center; padding:60px 12px; }
.uchquick > .uchform { width:min(560px,100%); background:linear-gradient(160deg,#0b3d3a,#123a6b); box-shadow:0 10px 40px rgba(0,0,0,.5); }
.uchqmenu { display:grid; grid-template-columns:1fr 1fr; gap:8px; } .uchqmenu button { padding:14px !important; font-size:15px; }
tr.kcur > td { outline:2px solid #e0a100; outline-offset:-2px; background:rgba(224,161,0,.16) !important; }
.tile.kcur, .uchtile.kcur { outline:3px solid #e0a100 !important; outline-offset:2px; }
tr.kcur > td, .mmrow.kcur { outline:2px solid #e0a100; outline-offset:-2px; background:rgba(224,161,0,.16) !important; }
.kcur button:focus, .kcur a:focus { outline:3px solid #e0a100; outline-offset:1px; }
/* 📅 F2 tareekh khidki */
#f2box { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: none; align-items: flex-start; justify-content: center; z-index: 9999; padding: 12vh 16px 0; }
#f2box.on { display: flex; }
#f2box .f2in { background: #fff; color: #222; border-radius: 12px; padding: 16px; width: 100%; max-width: 440px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
#f2box .f2row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
#f2box .f2row label { flex: 1; min-width: 150px; display: flex; flex-direction: column; font-size: 13px; gap: 4px; }
#f2box .f2row input { padding: 8px; font-size: 15px; }
#f2box .f2q { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#f2box .f2q button { padding: 6px 10px; border-radius: 8px; border: 1px solid #ccc; background: #f6f6f6; cursor: pointer; }
#f2box .f2q button.pri { background: #1565c0; color: #fff; border-color: #1565c0; }
#f2box .f2q button:focus { outline: 3px solid #ffb300; }


/* ====== Professional look: ek hi rang-tantra, safed card, kam sajawat ====== */
:root { --bg:#f3f5f8; --card:#ffffff; --ink:#1c2a3a; --muted:#5d6b7c; --pri:#1f4e8c; --pri-soft:#e9f0f9; --acc:#1e7f5c; --acc-soft:#e7f4ee; --line:#dde3ea; }
body, body.mode-mobile { background:var(--bg) !important; color:var(--ink); font-family:"Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
header.top { background:#fff !important; border-bottom:1px solid var(--line) !important; box-shadow:none !important; padding:10px 20px; }
header.top::after { display:none !important; }
.brand { font:600 19px/1.2 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif !important; letter-spacing:0 !important; color:#14365f !important; background:none !important; -webkit-text-fill-color:#14365f !important; }
.brand b { font-weight:600 !important; color:inherit !important; -webkit-text-fill-color:inherit !important; }
.tag { color:var(--muted) !important; font-style:normal !important; font-size:12px !important; opacity:1 !important; }
.tag .sep { color:#a9b4c1 !important; }
.pills { display:none !important; }
.logo { box-shadow:none !important; border-radius:8px !important; width:44px !important; height:44px !important; flex-basis:44px !important; }
.who button { background:#fff !important; color:var(--ink) !important; border:1px solid var(--line) !important; box-shadow:none !important; border-radius:6px !important; }
main { max-width:1180px; }
.card { background:#fff !important; border:1px solid var(--line) !important; border-top:1px solid var(--line) !important; border-radius:8px !important; box-shadow:0 1px 2px rgba(20,40,70,.05) !important; }
.authname { background:none !important; -webkit-text-fill-color:#14365f !important; color:#14365f !important; font:600 17px/1.3 "Segoe UI", system-ui, sans-serif !important; }
.authlogo { box-shadow:none !important; border:0 !important; }
#auth h2, h2, h3, .hh { color:#14365f !important; font-family:inherit !important; font-weight:600 !important; background:none !important; -webkit-text-fill-color:#14365f !important; }
.hh { font-size:20px !important; }
button { border-radius:6px !important; box-shadow:none !important; font-weight:500; }
button.pri, .btn.pri, button.primary { background:var(--pri) !important; border-color:var(--pri) !important; color:#fff !important; background-image:none !important; }
button.pri:hover, button.primary:hover { background:#173e72 !important; }
input, select, textarea { border-radius:6px !important; border-color:#ccd4de !important; box-shadow:none !important; }
input:focus, select:focus, textarea:focus { outline:2px solid rgba(31,78,140,.22); border-color:var(--pri) !important; }
#crumb { gap:8px; } #crumb button { background:#fff !important; color:var(--ink) !important; border:1px solid var(--line) !important; font-weight:500 !important; padding:6px 12px !important; }
#crumb b { color:var(--ink) !important; font-weight:600; }
/* Main Menu */
.tiles { gap:12px !important; }
.tile, .tile.m-blue, .tile.m-green, .tile.m-teal, .tile.m-purple, .tile.m-orange, .tile.m-red, .tile.m-gold, .tile.m-gray, .tile.m-pink, .tile.m-uch, .tile.m-sonu {
  background:#fff !important; color:var(--ink) !important; border:1px solid var(--line) !important; border-radius:8px !important; box-shadow:none !important; padding:16px !important; min-height:104px !important; gap:3px !important; transform:none !important; }
.tile:hover { border-color:var(--pri) !important; background:#fafcff !important; box-shadow:0 2px 8px rgba(20,50,90,.08) !important; }
.tile b { font-size:15px !important; font-weight:600 !important; color:#14365f !important; -webkit-text-fill-color:#14365f !important; }
.tile small { font-size:12.5px !important; color:var(--muted) !important; opacity:1 !important; -webkit-text-fill-color:var(--muted) !important; line-height:1.35; }
.tile .ti { width:34px; height:34px; border-radius:7px; background:var(--pri-soft); color:var(--pri); display:flex; align-items:center; justify-content:center; font-size:18px !important; margin-bottom:8px; filter:none !important; }
.svgi { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; display:block; }
/* Voucher tab */
#tabs button { background:#fff !important; color:var(--ink) !important; border:1px solid var(--line) !important; border-bottom:1px solid var(--line) !important; font-weight:500 !important; }
#tabs button.on, #tabs button[data-vt].on { background:var(--pri) !important; color:#fff !important; border-color:var(--pri) !important; }
.tab { border-top:1px solid var(--line) !important; }
.vch { border-color:var(--line) !important; border-radius:8px !important; }
.vhead { background:#f7f9fb !important; border-bottom:1px solid var(--line) !important; color:var(--ink) !important; }
.vhead .vtype { color:#14365f !important; font-weight:600 !important; }
.vhead .vno input { background:#fff !important; border-color:#ccd4de !important; color:var(--ink) !important; font-weight:600; }
/* Table */
table th, .lines th, .mlist th, .rptab th, .sbt th { background:#f3f5f8 !important; color:#3a4757 !important; font-weight:600 !important; -webkit-text-fill-color:#3a4757 !important; }
.sbt td { background:#fff !important; }
.sbt tr:hover td { background:#f8fafc !important; }
.sbt button, .rptab td button, table td > button { filter:grayscale(1); opacity:.92; }
.sbt button.wa, table td > button.wa { filter:none; background:#fff !important; color:#128c4b !important; border-color:#b9e0ca !important; }
/* Dialog */
.dlg { border-radius:10px !important; }
.dlg .dh { background:#fff !important; border-bottom:1px solid var(--line) !important; color:var(--ink) !important; }
.dlg .dh::after { display:none !important; }
.dlg .dh b { color:#14365f !important; font-weight:600 !important; -webkit-text-fill-color:#14365f !important; }
.dlg .dh button { background:#fff !important; color:var(--ink) !important; border:1px solid var(--line) !important; }
.dlg .dh button.on { background:var(--pri) !important; color:#fff !important; border-color:var(--pri) !important; }
.dlg .db { background:#fff !important; }
/* Sonu Ji button */
#sjFab, .sjfab { background:var(--pri) !important; background-image:none !important; box-shadow:0 2px 10px rgba(20,50,90,.25) !important; }
@media print { header.top, #crumb { background:none !important; } }
.bulkbar { background:#f7f9fb !important; background-image:none !important; border:1px solid var(--line) !important; border-radius:8px !important; }
.bulkbar button, .bulkbar .btnlike, .bulkbar a button { color:var(--ink) !important; background:#fff !important; border:1px solid var(--line) !important; font-weight:500 !important; }
#cHead b { color:#14365f !important; font-weight:600; }
.who button, .sbt button:not(.wa), #mBody .row button:not(.pri) { filter:grayscale(1); }
.sbt button, .rptab td button, table td > button { opacity:1; }
.sbt button.wa, table td > button.wa { background:#1e9e5a !important; border-color:#1e9e5a !important; color:#fff !important; filter:none; }
.sbk > div { background:#fff !important; color:var(--ink) !important; border:1px solid var(--line) !important; border-radius:8px !important; }
.sbk small { color:var(--muted) !important; opacity:1; } .sbk b { color:#14365f !important; font-weight:600; font-size:20px; } .sbk span { color:var(--muted) !important; font-weight:500; }
.uch h2, .uch h3, .uch h4 { color:inherit !important; -webkit-text-fill-color:currentColor !important; }
.tab > h3::after, h3.rph::after, .card > h3::after { display:none !important; }
.sjhead { background:#fff !important; background-image:none !important; color:var(--ink) !important; border-bottom:1px solid var(--line) !important; }
.sjhead b { color:#14365f !important; -webkit-text-fill-color:#14365f !important; } .sjhead small { color:var(--muted) !important; opacity:1 !important; }
.sjlog { background:#f7f9fb !important; }
.sjb { background:#fff !important; background-image:none !important; color:var(--ink) !important; border:1px solid var(--line) !important; }
.sjb span { color:var(--pri); }
.sjchips button { background:#fff !important; color:#14365f !important; border:1px solid var(--line) !important; }
#sjSend, .sjsend { background:var(--pri) !important; }
.uch .uchsave button.pri { background:var(--pri) !important; }

/* ====== Thoda gehra look: navy header, madhyam grey background, gehre card aur table ====== */
:root { --bg:#cfd8e3; --ink:#16232f; --muted:#46566a; --line:#b7c3d1; --pri:#17406f; --pri-soft:#d6e2f0; }
body, body.mode-mobile { background:#cfd8e3 !important; }
header.top { background:#12305a !important; border-bottom:1px solid #0c2343 !important; }
.brand, .brand b { color:#fff !important; -webkit-text-fill-color:#fff !important; }
.tag { color:#c3d1e3 !important; } .tag .sep { color:#7f97b6 !important; }
.who { color:#fff; }
.who button { background:#1d4476 !important; color:#fff !important; border-color:#34598c !important; filter:none; }
.who button:hover { background:#27548d !important; }
.card { background:#f4f6f9 !important; border-color:#b7c3d1 !important; box-shadow:0 1px 3px rgba(15,35,65,.14) !important; }
.tile, .tile.m-blue, .tile.m-green, .tile.m-teal, .tile.m-purple, .tile.m-orange, .tile.m-red, .tile.m-gold, .tile.m-gray, .tile.m-pink, .tile.m-uch, .tile.m-sonu { background:#e6ebf2 !important; border-color:#b7c3d1 !important; }
.tile:hover { background:#dbe4ef !important; border-color:#17406f !important; }
.tile .ti { background:#17406f; color:#fff; }
.tile small { color:#46566a !important; -webkit-text-fill-color:#46566a !important; }
#crumb button { background:#f4f6f9 !important; border-color:#b0bdcc !important; }
#tabs button { background:#e6ebf2 !important; border-color:#b0bdcc !important; }
#tabs button.on, #tabs button[data-vt].on { background:#17406f !important; color:#fff !important; border-color:#17406f !important; }
.vhead, .bulkbar { background:#dfe6ee !important; border-color:#b7c3d1 !important; }
.vch { background:#f4f6f9; border-color:#b7c3d1 !important; }
input, select, textarea { background-color:#fff !important; border-color:#aebbca !important; }
table th, .lines th, .mlist th, .rptab th, .sbt th { background:#d9e1ea !important; color:#16232f !important; -webkit-text-fill-color:#16232f !important; }
.sbt td { background:#f4f6f9 !important; } .sbt tr:hover td { background:#e6ebf2 !important; }
th, td { border-bottom-color:#c5cfdb; }
.sbk > div { background:#e6ebf2 !important; border-color:#b7c3d1 !important; }
.dlg .dh { background:#12305a !important; border-bottom-color:#0c2343 !important; }
.dlg .dh b { color:#fff !important; -webkit-text-fill-color:#fff !important; }
.dlg .dh button { background:#1d4476 !important; color:#fff !important; border-color:#34598c !important; }
.dlg .dh button.on { background:#fff !important; color:#12305a !important; border-color:#fff !important; }
.dlg .db { background:#f4f6f9 !important; }
.sjhead { background:#12305a !important; border-bottom-color:#0c2343 !important; }
.sjhead b { color:#fff !important; -webkit-text-fill-color:#fff !important; } .sjhead small { color:#c3d1e3 !important; }
.sjlog { background:#dfe6ee !important; }
.sjb, .sjchips button { background:#f4f6f9 !important; border-color:#b0bdcc !important; }
@media print { body { background:#fff !important; } header.top { background:none !important; } .card, .tile { background:#fff !important; } }
.sbcats button.on, .sbcats .on { background:#17406f !important; color:#fff !important; border-color:#17406f !important; }

/* App & Security (Master login): saaf settings panel */
.msec { border-left:1px solid var(--line) !important; }
.msec h2 { font-size:18px !important; }
.msecstat { display:grid !important; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:10px !important; margin:14px 0 !important; }
.msecstat span { background:#f7f9fb !important; border:1px solid var(--line) !important; border-radius:8px !important; padding:10px 12px !important; font-size:12.5px !important; color:var(--muted); display:flex; flex-direction:column; gap:3px; }
.msecstat span b { font-size:20px; font-weight:600; color:#14365f; }
.msec .row { padding-top:10px; border-top:1px solid var(--line); }
.msec input[type=checkbox] { transform:none !important; }
.msal { background:#fff !important; border:1px solid var(--line) !important; border-left:3px solid #1f4e8c !important; border-radius:8px !important; padding:12px !important; margin-top:10px; }
.msal.edited, .msal.deleted { border-left-color:#b3261e !important; }
.msotp { font:600 22px/1.2 "Segoe UI", system-ui, sans-serif !important; letter-spacing:3px; color:#14365f !important; background:#f3f5f8 !important; border-radius:6px; display:inline-block; padding:4px 12px; margin-top:8px; }
.mmob .mmtabs, .mmtabs { display:flex; flex-wrap:wrap; gap:6px; border-bottom:1px solid var(--line); padding-bottom:8px; }
.mmtabs button { background:#fff !important; color:var(--ink) !important; border:1px solid var(--line) !important; font-weight:500; }
.mmtabs button.on { background:var(--pri) !important; color:#fff !important; border-color:var(--pri) !important; }

/* Subscription signal */
.subchip { display:flex; align-items:center; gap:8px; padding:5px 11px; border-radius:9px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.28); color:#fff; font-size:12px; line-height:1.25; }
.subchip b { display:block; font-weight:700; white-space:nowrap; }
.subchip small { display:block; font-size:11px; opacity:.9; white-space:nowrap; }
.subdot { width:11px; height:11px; border-radius:50%; flex:none; }
.subchip.on .subdot { background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.3); }
.subchip.off .subdot { background:#ef4444; box-shadow:0 0 0 3px rgba(239,68,68,.32); }
.subchip button { display:block; margin:3px 0 0; padding:3px 9px !important; min-height:0 !important; font-size:11px !important; font-weight:700; border-radius:6px; border:0 !important; background:#dc2626 !important; background-image:none !important; color:#fff !important; cursor:pointer; box-shadow:none !important; }
.cplogo { display:flex; align-items:center; gap:12px; margin:6px 0 10px; }
.cplogo .logoprev { min-width:90px; min-height:50px; display:flex; align-items:center; justify-content:center; }
.cplogo .logoprev img { max-height:70px; max-width:160px; }
@media (max-width:600px) { #who { flex-wrap:wrap; } .subchip { order:-1; width:100%; padding:5px 10px; } .subchip button { display:inline-block; margin:0 0 0 8px; } .subchip.off b { display:inline; } }

/* Reports: actions after the report */
.rpactbar { position:sticky; bottom:0; z-index:6; display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; padding:10px; background:#fff; border:1px solid #d5dbe2; border-radius:10px; box-shadow:0 -2px 8px rgba(15,23,42,.08); }
.rpactbar button { flex:1 1 auto; min-width:70px; }
.outpick { margin:10px 0 8px; font-size:17px; }
.outpick small { font-size:12.5px; font-weight:500; color:#475569; }
@media (max-width:600px) { .rpactbar { display:grid; grid-template-columns:repeat(6, 1fr); gap:4px; padding:5px; margin-top:8px; } .rpactbar button { min-width:0; padding:8px 1px !important; font-size:11px !important; letter-spacing:-.2px; } body.view-report .sjfab { display:none; } #t-report .rptab td.l { min-width:120px; } }
.btnword { margin-left:5px; font-size:12px; font-weight:600; white-space:nowrap; }

/* Master login: share buttons */
.mshare { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.mshare b { margin-right:6px; }
@media (max-width:600px) { .mshare button { flex:1 1 100%; } }

/* Multi Sale Bill Print: Bill No, Party Name, Date Range, Multi Party */
.mbmodes { display:grid; grid-template-columns:repeat(4, 1fr); gap:6px; margin-bottom:12px; }
.mbmodes button { width:100%; }
.mbfields { flex-wrap:wrap; align-items:flex-end; gap:10px; }
.mbfields .mbgrow { flex:1 1 260px; } .mbfields .mbgrow input { width:100%; }
.mbgo { margin:12px 0 8px; min-width:160px; }
.mbparties { flex:1 1 100%; border:1px solid var(--line); border-radius:10px; padding:10px; }
.mbphead { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:8px; } .mbphead input { flex:1 1 180px; }
#mbPlist { max-height:42vh; overflow:auto; display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:2px 12px; }
.mbp { display:flex; align-items:center; gap:8px; padding:7px 4px; font-weight:400; cursor:pointer; } .mbp input { width:auto; margin:0; }
@media (max-width:560px) { .mbmodes { grid-template-columns:1fr 1fr; } .mbfields label { flex:1 1 100%; } .mbfields input { width:100%; } .mbfields .mbp input { width:22px; height:22px; flex:0 0 auto; } .mbgo { width:100%; } }
#mbPlist .mbp { justify-content:flex-start; flex-direction:row; text-align:left; margin:0; }
#mbPlist .mbp input[type="checkbox"] { width:20px !important; height:20px !important; min-width:20px; min-height:20px; flex:0 0 20px; padding:0; margin:0; }

/* Settings: Allow Access */
.acch { margin:14px 0 6px; padding-bottom:4px; border-bottom:1px solid var(--line); }
.accrep { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:0 12px; }
.accitem { display:flex; align-items:center; gap:8px; padding:7px 2px; margin:0; justify-content:flex-start; color:var(--ink); }
.accitem input[type="checkbox"] { width:20px !important; height:20px !important; min-width:20px; flex:0 0 20px; margin:0; padding:0; }

/* Login page: About Sandesh Accounting Services */
.authabout { margin-top:14px; padding-top:10px; border-top:1px solid var(--line); text-align:left; }
.authabout summary { cursor:pointer; font-weight:700; color:var(--pri, #16396b); padding:4px 0; }
.authabout .abgrid { display:grid; gap:10px; margin-top:8px; }
.authabout h3 { margin:0 0 2px; font-size:14px; } .authabout p { margin:0; font-size:13.5px; line-height:1.5; color:var(--ink, #222); }
.wabar { position:fixed; left:50%; top:10px; transform:translateX(-50%); z-index:9999; width:max-content; max-width:calc(100vw - 24px); box-sizing:border-box; display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:10px 12px; background:#fff; color:#12305a; border:1px solid #c7d1dd; border-radius:10px; box-shadow:0 8px 24px rgba(13,37,71,.22); font-size:14px; }
.wabar .btn { text-decoration:none; padding:7px 12px; border-radius:7px; } @media print { .wabar { display:none !important; } }
.wadlg { position:fixed; inset:0; z-index:9998; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(13,37,71,.45); } .wadlgb { width:100%; max-width:380px; box-sizing:border-box; background:#fff; color:#12305a; border-radius:12px; padding:18px; display:flex; flex-direction:column; gap:10px; } .wadlgb input { width:100%; box-sizing:border-box; } .wadlgb .msg:empty { display:none; } @media print { .wadlg { display:none !important; } }

/* Mandi vouchers */
.mandi-only, .bgc { display: none; }
body.is-mandi .mandi-only { display: inline-block; }
body.is-mandi .bgc { display: table-cell; }
.bgc input { width: 76px; }
.apsum { margin-left: auto; min-width: 260px; }
.apshort { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: #fff7e6; border: 1px solid #f0c36d; }
.append { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.append div { border: 1px solid #d9e2ec; border-radius: 8px; padding: 6px 10px; background: #f8fafc; }
.append small { display: block; color: #64748b; }
.tinv .chsg { display: flex; justify-content: space-between; margin-top: 34px; }

/* Mandi challan screen */
#t-ch .vhead, #t-ap .vhead { background:linear-gradient(90deg, #dff3ea, #f2fbf7); }
#t-ch .vhead .vtype, #t-ap .vhead .vtype { color:#0f6b4f; }
#t-ch .vch, #t-ap .vch { border-color:#b9dfcf; background:#fff; }
.chvch { padding-bottom:14px; }
.chcards { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.chcard { border:1px solid #dbe5ee; border-radius:8px; padding:10px 12px; margin:0 0 12px; background:#fbfdfe; min-width:0; }
.chcard h4 { margin:0 0 8px; padding-bottom:6px; border-bottom:1px solid #dbe5ee; color:#0f6b4f; font-size:14px; }
.chcard .chg2 { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.chcard .chg2 .span2 { grid-column:span 2; }
.chitems { width:100%; }
.chitems input.bg, .chitems input.wt { text-align:right; min-width:90px; }
.chitems .zero { color:#94a3b8; }
.chitems tfoot td { border-top:2px solid #0f6b4f; background:#f2fbf7; padding:7px 5px; }
.chsum { width:100%; margin-bottom:10px; }
.chact { align-items:center; flex-wrap:wrap; }
.chact .muted { flex:1 1 280px; font-size:12px; }
.mddone { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 12px; padding:10px 12px; border:1px solid #86d0b0; border-radius:8px; background:#e8f8f1; color:#0b5c43; }
.mddone .dvsp { flex:1 1 auto; }
@media (max-width:760px) { .chcards { grid-template-columns:minmax(0, 1fr); gap:0; } }
.chitems input.nt, #apLines input.nt, #apLines input.r, #apLines input.bg, #apLines input.wt { text-align:right; }
#apLines input.nt { min-width:110px; font-weight:700; }
.apbank { display:block; margin-top:4px; font-size:12px; color:#0f6b4f; } .apbank input { width:180px; margin:2px 0 0; }
#apCh2 input[readonly] { background:#eef6f2; font-weight:700; }
/* Ankada Patti Register */
.aprt th, .aprt td { white-space:nowrap; font-size:12px; }
.aprt th.aprc { background:#dff3ea; text-align:center; }
.aprt th.aprb { background:#fde9d2; text-align:center; }
.aprop td { background:#fff7e6; font-weight:700; }
.aprtot td { background:#f2fbf7; font-weight:700; border-top:2px solid #0f6b4f; }
.aprpend td { background:#fff5f5; }
.aprp { margin:14px 0; }
.aprp h3 { margin:0 0 6px; color:#0f6b4f; }
.vhead .vno .sm { padding:3px 8px; font-size:12px; }
@media print { body.print-report .aprt th, body.print-report .aprt td { font-size:8px; padding:2px 3px; white-space:normal; } body.print-report .aprp { break-inside:avoid; } }
.approfit { color:#0f7a4f; } .aploss { color:#c62828; }
.appl { margin-top:6px; padding-top:6px; border-top:1px dashed #e0b35a; }
.chapx { background:#fffdf5; border-color:#f0dca8; }
.chapx h4 { color:#8a6100; border-color:#f0dca8; } .chapx .chg2 { max-width:520px; } .chapx p { margin:4px 0 0; font-size:12px; }
.aprow { cursor:pointer; } .aprow:hover td, .aprow:focus td { background:#e8f3ff; outline:none; }
.aprd { width:100%; margin-bottom:10px; font-size:12px; } .aprsep { height:24px; }
.apsumw { margin-left:auto; min-width:260px; } .apsumw .apsum { width:100%; margin-left:0; }
.aprsrc { margin-top:6px; font-size:12px; }
.aprob { margin-top:6px; padding:8px; border:1px solid #f0dca8; border-radius:8px; background:#fffdf5; font-weight:400; }
.aprob input { width:120px; display:inline-block; margin:0 4px; } .aprob select { width:auto; display:inline-block; margin:0 4px; }
@media print { .aprbtn { display:none !important; } }
.mdunitw { margin:0 0 8px; } .mdunit { display:inline-flex; align-items:center; gap:10px; flex-wrap:wrap; padding:5px 10px; border:1px solid #b9dfcf; border-radius:8px; background:#f2fbf7; font-size:13px; } .mdunit .mdu { display:inline-flex; align-items:center; gap:4px; margin:0; font-weight:600; } .mdunit input { width:auto; margin:0; } .mdunit input:disabled + * { opacity:.5; }
#tabs button.pa-hide { display:none !important; }
.pabar { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; padding:8px; border:1px solid #b9dfcf; border-radius:10px; background:#f2fbf7; } .pabar.hidden { display:none; } .pabar button { font-weight:700; } .pabar button.on { background:#0f6b4f; color:#fff; border-color:#0f6b4f; }
#t-apr .vch { margin-bottom:10px; padding-bottom:0; } #t-apr .vhead { margin-bottom:0; background:linear-gradient(90deg, #dff3ea, #f2fbf7); } #t-apr .vhead .vtype { color:#0f6b4f; }
.mdlbar { margin:6px 0 10px; align-items:flex-end; flex-wrap:wrap; }
.mdprint { background:#fff; color:#000; font:12px/1.4 Arial, sans-serif; padding:8px; } .mdprint h2 { margin:0; font-size:16px; text-align:center; color:#000; } .mdprint h3 { margin:2px 0; font-size:13px; text-align:center; color:#000; } .mdprint p { margin:0 0 8px; text-align:center; }
.mdpt { width:100%; border-collapse:collapse; } .mdpt th, .mdpt td { border:1px solid #000; padding:3px 5px; font-size:11px; text-align:left; } .mdpt .r { text-align:right; } .mdpt th { background:#e5edf3; } .mdpt tfoot td { font-weight:700; background:#f3f6f8; }
.mdwide .aprt th, .mdwide .aprt td { font-size:10px; padding:2px 3px; white-space:nowrap; } .mdwide .rpwrap { overflow:visible; }
.aphint { display:block; margin-top:2px; font-size:11px; color:#0f6b4f; }
.mdbulk { margin:0 0 12px; padding:10px 12px; border:1px solid #86d0b0; border-radius:8px; background:#f2fbf7; } .mdbulk .err { color:#c62828; margin:6px 0; }
.krgrid { grid-template-columns:repeat(5, minmax(0, 1fr)); } @media (max-width:760px) { .krgrid { grid-template-columns:repeat(2, minmax(0, 1fr)); } } .vhead .vno2 input { font-weight:700; }
#tabs.tabs-grouped { display:flex; flex-wrap:wrap; gap:10px 18px; align-items:flex-start; overflow:visible; }
.tabgrp { min-width:0; }
.tabgrp-h { margin:0 0 6px; padding-bottom:3px; border-bottom:2px solid #17406f; color:#17406f; font-weight:800; font-size:13px; }
.tabgrp-b { display:flex; flex-wrap:wrap; gap:6px; }
body:not(.view-voucher) #tabs.tabs-grouped { display:none; }
/* Kreta Purchi: poori screen me dikhe */
.krvch { padding-bottom:6px; } .krvch .vhead { margin-bottom:6px; padding:5px 12px; }
.krvch .chcard { padding:5px 10px 6px; margin-bottom:6px; } .krvch .chcard h4 { margin:0 0 3px; padding-bottom:2px; font-size:12.5px; } .krvch .chcards { gap:8px; }
.krvch label { font-size:12px; margin-bottom:2px; } .krvch input, .krvch select { padding:3px 7px; min-height:30px; height:30px; margin-top:1px; font-size:13px; }
.krvch input[type=file] { height:auto; padding:2px 4px; } .krvch .vgrid { gap:0 8px; } .krvch .aphint { margin-top:0; font-size:10px; line-height:1.2; min-height:12px; }
.krvch .chact { margin-top:2px; gap:6px; } .krvch .chact button, .krvch .chact .btnlike { padding:5px 10px; font-size:13px; }
.krgrid.krgoods { grid-template-columns:minmax(0, 2.4fr) repeat(5, minmax(0, 1fr)); }
@media (max-width:760px) { .krgrid.krgoods { grid-template-columns:repeat(2, minmax(0, 1fr)); } .krgrid.krgoods label:first-child { grid-column:span 2; } }
.krtop { grid-template-columns:minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1.4fr); }
.krbk { grid-column:1; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0 8px; }
#tabs.tabs-grouped { flex-wrap:nowrap; gap:12px; overflow-x:auto; } #tabs.tabs-grouped button { padding:3px 8px; font-size:12px; white-space:nowrap; min-height:0; } .tabgrp-b { flex-wrap:nowrap; gap:3px; } .tabgrp { flex:0 0 auto; } .tabgrp-h { margin-bottom:3px; font-size:11.5px; }
@media (max-width:760px) { .krtop { grid-template-columns:repeat(2, minmax(0, 1fr)); } .krtop label:first-child { grid-column:span 2; } .krbk { grid-column:span 2; } #tabs.tabs-grouped { flex-wrap:wrap; overflow:visible; } .tabgrp-b { flex-wrap:wrap; } }
.krtop { grid-template-columns:minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr); } .krtop label.hidden { display:none; }
@media (max-width:760px) { .krtop { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.mdsign { display:flex; justify-content:space-between; margin-top:42px; font-size:12px; }
#t-mds .rpmodes { margin:8px 0; } #t-mds .vch { margin-bottom:8px; padding-bottom:0; } #t-mds .vhead { margin-bottom:0; background:linear-gradient(90deg, #dff3ea, #f2fbf7); } #t-mds .vhead .vtype { color:#0f6b4f; }
.krf6 .tt small { font-weight:400; font-size:11px; }
.krf6g { grid-template-columns:minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); }
.krf6p { grid-template-columns:repeat(6, minmax(0, 1fr)); } .krf6p label.hidden { display:none; }
.krvch input[readonly] { background:#eef2f6; font-weight:700; }
@media (max-width:760px) { .krf6g, .krf6p { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
#tabs.tabs-grouped .tabgrp:first-child { margin-left:auto; } #tabs.tabs-grouped .tabgrp:last-child { margin-right:auto; }
.tabgrp-h { text-align:center; } .tabgrp-b { justify-content:center; }
@media (max-width:760px) { #tabs.tabs-grouped .tabgrp { flex:1 1 100%; min-width:0; margin:0; } }
.aprsum { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.25fr); gap:14px; align-items:start; }
.aprbox h4 { margin:0 0 6px; color:#17406f; font-size:14px; } .aprbox .aprd { margin-bottom:0; } .aprbox small { display:block; font-weight:400; }
.aprd .aprsub td { font-weight:700; border-top:1px solid #17406f; } .aprd .aprnet td { font-weight:800; font-size:13px; border-top:2px solid #17406f; background:#eef2f6; }
.aprdh { margin:18px 0 8px; padding-top:10px; border-top:2px solid #17406f; color:#17406f; font-weight:800; font-size:14px; }
@media (max-width:760px) { .aprsum { grid-template-columns:minmax(0, 1fr); } }
.aprbox .aprd td.r, .aprbox .aprd th.r { text-align:right; }
.aprsum { grid-template-columns:minmax(0, 1fr); gap:24px; } .aprbox .aprd td, .aprbox .aprd th { white-space:normal; } .aprbox .aprd td.r, .aprbox .aprd th.r { white-space:nowrap; }
.aprdh { margin:0 0 10px; padding:0 0 6px; border-top:0; border-bottom:2px solid #17406f; }
#docView .dvpage + .dvpage { margin-top:18px; }
.coprof { display:none; }
body.view-home .coprof { display:flex; gap:16px; align-items:flex-start; margin-top:10px; padding-top:10px; border-top:1px solid #c9d6e4; }
body.view-home #cHead { border-bottom:3px solid #17406f; }
.cologo { width:64px; height:64px; object-fit:contain; flex:0 0 auto; background:#fff; border-radius:6px; }
.codet { flex:1 1 auto; min-width:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:6px 18px; }
.codet > div, .coyr > div { display:flex; flex-direction:column; min-width:0; } .codet span, .coyr span { font-size:11.5px; color:#5b6b7d; } .codet b, .coyr b { font-size:13.5px; overflow-wrap:anywhere; }
.codet > div:first-child { grid-column:1 / -1; }
.coyr { flex:0 0 auto; display:flex; flex-direction:column; gap:6px; padding:8px 12px; border-left:3px solid #17406f; background:#fff; border-radius:6px; text-align:right; } .coyr > div { align-items:flex-end; }
@media (max-width:760px) { body.view-home .coprof { flex-direction:column; } .coyr { flex-direction:row; justify-content:space-between; width:100%; box-sizing:border-box; text-align:left; } .coyr > div { align-items:flex-start; } .codet { grid-template-columns:minmax(0, 1fr); } }
/* Home: profile aur poora menu ek hi screen me — chhote button */
body.view-home #cHead, body.view-sub #cHead { padding:10px 16px; } body.view-home .coprof { margin-top:6px; padding-top:6px; } .codet { gap:4px 18px; } .coyr { padding:6px 12px; gap:4px; }
#home.home { padding:12px 14px; } #home .hh { margin:0 0 8px; font-size:18px; }
#home .tiles { grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:8px !important; }
#home .tile { display:grid !important; grid-template-columns:auto minmax(0, 1fr); column-gap:10px; row-gap:1px; align-items:center; min-height:0 !important; padding:9px 11px !important; }
#home .tile .ti { grid-row:span 2; width:30px; height:30px; margin:0 !important; font-size:16px !important; } #home .tile .ti .sasico { width:18px; height:18px; }
#home .tile b { font-size:14px !important; } #home .tile small { font-size:11.5px !important; line-height:1.25; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
@media (max-width:760px) {
  body.view-home #cHead { padding:8px 10px; } .codet { grid-template-columns:repeat(2, minmax(0, 1fr)) !important; gap:3px 10px; } .codet span, .coyr span { font-size:10.5px; } .codet b, .coyr b { font-size:12px; } .coyr { padding:5px 8px; }
  #home.home { padding:8px; } #home .hh { font-size:16px; margin-bottom:6px; }
  #home .tiles { grid-template-columns:repeat(3, minmax(0, 1fr)) !important; gap:6px !important; }
  #home .tile { grid-template-columns:minmax(0, 1fr); justify-items:center; text-align:center; padding:8px 4px !important; row-gap:4px; }
  #home .tile .ti { grid-row:auto; width:28px; height:28px; } #home .tile b { font-size:11.5px !important; line-height:1.2; } #home .tile small { display:none !important; }
}
@media (max-width:760px) { #home .tile { height:74px; box-sizing:border-box; align-content:center; } #home .tile b { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; } }
/* ===== Ek jaisa naap: har screen par button, khaana aur font (computer / laptop / mobile) ===== */
:root { --ui-btn:34px; --ui-btn-s:30px; --ui-in:36px; --ui-in-t:32px; --ui-f:14px; --ui-f-s:13px; }
body.mode-mobile { --ui-btn:42px; --ui-btn-s:36px; --ui-in:42px; --ui-in-t:40px; --ui-f:15px; --ui-f-s:14px; }
#client button:not(.tile), #client .btnlike, #client a.btn, dialog button, dialog .btnlike, dialog a.btn {
  min-height:var(--ui-btn) !important; height:auto; padding:5px 14px !important; font-size:var(--ui-f) !important; line-height:1.2 !important; border-radius:7px; box-sizing:border-box; }
#client button.sm, #client .btnlike.sm, #client td button, #client .vhead button, #client .sbt button, dialog button.sm, dialog td button {
  min-height:var(--ui-btn-s) !important; padding:4px 10px !important; font-size:var(--ui-f-s) !important; }
#client #tabs button { min-height:28px !important; padding:4px 8px !important; font-size:12.5px !important; border-radius:6px; }
body.mode-mobile #client #tabs button { padding:6px 10px !important; font-size:13px !important; }
#client input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]), #client select, dialog input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), dialog select {
  height:var(--ui-in); min-height:var(--ui-in); padding:5px 10px; font-size:var(--ui-f); box-sizing:border-box; }
#client table input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), #client table select, dialog table input:not([type=checkbox]):not([type=radio]), dialog table select {
  height:var(--ui-in-t); min-height:var(--ui-in-t); padding:4px 8px; font-size:var(--ui-f-s); }
body.mode-mobile #client input:not([type=checkbox]):not([type=radio]), body.mode-mobile #client select, body.mode-mobile dialog input, body.mode-mobile dialog select, body.mode-mobile #client textarea { font-size:16px !important; }
#client textarea, dialog textarea { font-size:var(--ui-f); padding:6px 10px; box-sizing:border-box; }
#crumb button { min-height:var(--ui-btn) !important; }
/* ===== Main Menu ke niche: About ===== */
.habout { margin-top:16px; padding:14px 16px; border-top:3px solid #17406f; background:#fff; border-radius:8px; }
.habh { display:flex; gap:12px; align-items:center; margin-bottom:10px; } .habh img { width:40px; height:40px; } .habh b { display:block; font-size:16px; color:#14365f; } .habh span { font-size:12.5px; color:#5b6b7d; }
.habg { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px 20px; }
.habg h3 { margin:0 0 4px; font-size:13.5px; color:#17406f; text-transform:none; } .habg p { margin:0; font-size:12.5px; line-height:1.5; color:#334; } .habg a { color:#17406f; font-weight:600; }
@media (max-width:1000px) { .habg { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:760px) { .habout { margin-top:10px; padding:10px 12px; } .habg { grid-template-columns:minmax(0, 1fr); gap:8px; } }
body.view-sub .habout { display:none; }
@media (max-width:1200px) { #tabs.tabs-grouped { flex-wrap:wrap !important; overflow:visible !important; } #tabs.tabs-grouped .tabgrp-b { flex-wrap:wrap; } }
@media (min-width:761px) and (max-width:1200px) { #tabs.tabs-grouped { justify-content:center; } #tabs.tabs-grouped .tabgrp:first-child, #tabs.tabs-grouped .tabgrp:last-child { margin-left:0; margin-right:0; } }
/* Voucher: har title padhne layak, khali suchna-patti na dikhe, Request baaki voucher jaisi */
#client #t-bk .vch[data-vt] .vhead .vtype { color:#14365f !important; -webkit-text-fill-color:#14365f !important; text-shadow:none; }
#client .vch .info:empty, #client .vch .hint:empty, #client .vch .msg:empty { display:none; }
.vch-req .vhead .muted { margin-left:10px; font-size:13px; } .vch-req .vreq { padding:12px 14px; } #t-request > h3 { margin:16px 0 8px; font-size:15px; color:#14365f; }
#client .vch .row.chact, #client .vch > .row:last-child { gap:8px; }
/* About: ab sirf ek patli line, upar ke card jitni chaudai */
.habline { display:none; }
body.view-home .habline { display:flex; flex-wrap:wrap; align-items:center; gap:4px 0; margin:12px 0 0; padding:8px 16px; background:#fff; border:1px solid #d5dee9; border-top:3px solid #17406f; border-radius:8px; font-size:12.5px; color:#46566a; }
.habline img { width:20px; height:20px; margin-right:8px; } .habline b { color:#14365f; font-size:13px; margin-right:4px; }
.habline span::before { content:'·'; margin:0 8px; color:#9aa8b8; } .habline a { color:#17406f; font-weight:600; text-decoration:none; }
@media (max-width:760px) { body.view-home .habline { padding:6px 10px; font-size:11.5px; } .habline span::before { margin:0 5px; } }
@media (max-width:760px) { .habline .habm { display:none; } }
.habline em { font-style:normal; font-weight:700; color:#17406f; margin-right:12px; padding-right:12px; border-right:1px solid #d5dee9; }
/* ===== Voucher ke khaane kaam ke hisab se: No. / Date chhote, Item chauda, Qty / Rate / Amount barabar ===== */
:root { --ui-in:32px; --ui-in-t:30px; } body.mode-mobile { --ui-in:40px; --ui-in-t:38px; }
#client .vch input[type=date] { width:150px !important; max-width:100%; }
#client .vhead .vno input, #client .vhead .vno2 input { width:110px !important; }
#client .vhead input[type=date] { width:150px !important; }
/* mobile: header me naam upar, khaana niche — ek line me No. aur Date */
body.mode-mobile #client .vhead { gap:8px 14px; align-items:center; }
body.mode-mobile #client .vhead .vtype { width:100%; }
body.mode-mobile #client .vhead label { width:auto !important; flex-direction:row; align-items:center !important; justify-content:flex-start !important; gap:6px; font-size:13px; margin:0 !important; }
body.mode-mobile #client .vhead label input { width:110px !important; } body.mode-mobile #client .vhead label input[type=date] { width:150px !important; }
/* item lines: Item baaki jagah le, number wale khaane tay chaudai */
#client table.lines input.it, #client table.lines select.it { min-width:220px; }
#client table.lines input.q, #client table.lines input.r, #client table.lines input.bg, #client table.lines input.wt { width:100px; min-width:0 !important; }
#client table.lines input.hsn { width:84px; min-width:0 !important; } #client table.lines input.u { width:64px; min-width:0 !important; }
#client table.lines input.d, #client table.lines input.g { width:72px; min-width:0 !important; }
#client table.lines input.nt, #client table.lines input.cnt { width:112px; min-width:0 !important; }
#client table.lines.chg select, #client table.lines.chg input:not(.cnt) { min-width:0; }
body.mode-mobile #client table.lines input.it, body.mode-mobile #client table.lines select.it { min-width:150px; }
body.mode-mobile #client table.lines input.q, body.mode-mobile #client table.lines input.r, body.mode-mobile #client table.lines input.bg, body.mode-mobile #client table.lines input.wt { width:84px; }
body.mode-mobile #client table.lines input.hsn { width:72px; } body.mode-mobile #client table.lines input.u, body.mode-mobile #client table.lines input.d, body.mode-mobile #client table.lines input.g { width:60px; }
body.mode-mobile #client table.lines input.nt, body.mode-mobile #client table.lines input.cnt { width:96px; }
/* mobile: Freight / Charges ka dabba screen se bahar na jaye */
#client .vch-ch { max-width:100%; box-sizing:border-box; overflow-x:auto; }
/* mobile: Kreta ka niche wala button-patta sirf Save wali line ka, Excel / Slip wale saath na chipkein */
body.mode-mobile #t-mandi .vch > .row.chact { position:static; margin:8px 0 0; padding:0; background:none; box-shadow:none; }
body:not(.mode-mobile) #client table.lines tr > :first-child { width:40%; } body:not(.mode-mobile) #client table.lines tr > :first-child > input, body:not(.mode-mobile) #client table.lines tr > :first-child > select { width:100%; }
body.mode-mobile #client .vhead .vno input, body.mode-mobile #client .vhead .vno2 input { width:84px !important; }
/* Patti Account ki patti sirf Voucher Entry me — Main Menu / Report par nahi */
body:not(.view-voucher) #paBar { display:none !important; }
/* ===== Home: poori screen (chaudai aur unchai) ===== */
body.view-home:not(.mode-mobile) main { max-width:none; padding:16px 24px 48px; }
body.view-home:not(.mode-mobile) #client:not(.hidden) { display:flex; flex-direction:column; min-height:calc(100vh - 130px); }
body.view-home:not(.mode-mobile) #home { flex:1 1 auto; display:flex; flex-direction:column; }
body.view-home:not(.mode-mobile) #home .tiles { flex:1 1 auto; grid-auto-rows:1fr; }
body.view-home:not(.mode-mobile) #home .tile { min-height:84px !important; } body.view-home:not(.mode-mobile) #home .tile b { font-size:15px !important; }
/* ===== Home: sabse niche chalti patti (reel jaisi) ===== */
.hticker { display:none; }
body.view-home .hticker { display:block; position:fixed; left:0; right:0; bottom:0; z-index:40; height:30px; overflow:hidden; background:#17406f; color:#fff; font-size:13px; line-height:30px; white-space:nowrap; }
.htrack { display:inline-flex; animation:htick 45s linear infinite; } .htrack span { padding-right:60px; } .hticker:hover .htrack { animation-play-state:paused; }
.hticker b { color:#ffd76a; margin-right:10px; } .hticker i { font-style:normal; font-weight:700; margin-right:8px; padding-left:10px; border-left:1px solid rgba(255,255,255,.4); } .hticker em { font-style:normal; color:#ffd76a; margin-left:20px; }
@keyframes htick { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .htrack { animation-duration:120s; } }
body.view-home .sjfab { bottom:42px; } body.view-home.mode-mobile main { padding-bottom:40px; }
@media print { .hticker { display:none !important; } }
@media (min-width:1100px) { body.view-home:not(.mode-mobile) #home .tiles { grid-template-columns:repeat(5, minmax(0, 1fr)) !important; } }
body.view-home:not(.mode-mobile) #home .tile { align-content:center; padding:14px 16px !important; column-gap:14px; } body.view-home:not(.mode-mobile) #home .tile .ti { width:40px; height:40px; font-size:20px !important; } body.view-home:not(.mode-mobile) #home .tile .ti .sasico { width:22px; height:22px; } body.view-home:not(.mode-mobile) #home .tile small { -webkit-line-clamp:2; font-size:12.5px !important; }
.hticker i { color:#9fd3ff; } .hticker em { margin:0 18px; }
/* mobile header: Mobile View, naam, Share App, chaabi aur Logout ek hi line me */
@media (max-width:760px) { body.mode-mobile #who { flex-wrap:wrap; gap:6px; } body.mode-mobile #who button { min-height:36px !important; padding:6px 9px !important; font-size:13px !important; white-space:nowrap; } body.mode-mobile #who > span { display:none; } }
u.ak { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
/* ❗ Save fail: galat khana (failAt) */
.fbad { outline:2px solid var(--c-red, #dc2626) !important; outline-offset:1px; background:#fff5f5 !important; }
/* B7 / B9: screen reader ka h1 (dikhta nahi) · ticker tap se ruke, "kam animation" setting par chale hi nahi */
.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.hticker { cursor:pointer; } .hticker.paused .htrack, .hticker:focus-within .htrack { animation-play-state:paused; }
@media (prefers-reduced-motion: reduce) { .htrack { animation:none; } }
/* Ankada Register: upar ka hisab — Patti Received · Patti Pending · Balance */
.aprsbw { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.aprsb { flex: 1 1 250px; max-width: 360px; background: #f7f9fc; border: 1px solid #dfe5ee; border-radius: 10px; padding: 8px 12px; }
.aprsb h4 { margin: 0 0 6px; font-size: 14px; color: #1f3a5f; text-decoration: underline; text-underline-offset: 4px; }
.aprsb table { width: 100%; border-collapse: collapse; font-size: 13px; }
.aprsb td { padding: 3px 0; }
.aprsb td.r { text-align: right; font-weight: 600; white-space: nowrap; }
.aprsb tr.aprsbt td { border-top: 1px solid #c9d3e0; font-weight: 700; padding-top: 5px; }
@media print { .aprsb { break-inside: avoid; } }
/* GST Return: Tally jaisi Returns ki list + daayein key patti */
.grmenu { max-width: 560px; margin: 12px auto; display: flex; flex-direction: column; gap: 5px; }
.grmenu h3 { margin: 0 0 8px; text-align: center; color: #1f3a5f; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; }
.grmi { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: left; background: #fff; border: 1px solid #dfe5ee; border-radius: 8px; padding: 10px 14px; cursor: pointer; font: inherit; }
.grmi b { color: #1f3a5f; min-width: 110px; }
.grmi span { color: #5b6b7c; font-size: 12.5px; }
.grmi:hover, .grmi:focus { background: #1f3a5f; border-color: #1f3a5f; outline: none; }
.grmi:hover b, .grmi:focus b, .grmi:hover span, .grmi:focus span { color: #fff; }
.grpside { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.grpside button { display: flex; gap: 8px; align-items: baseline; background: #eef3f8; border: 1px solid #d5dee8; border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 13px; color: #1f3a5f; cursor: pointer; }
.grpside button b { color: #0f6e63; }
.grpinfo { font-size: 12px; color: #5b6b7c; padding: 4px 6px; }
@media (min-width: 900px) {
  .grpside { position: fixed; right: 12px; top: 140px; width: 170px; flex-direction: column; flex-wrap: nowrap; background: #eef3f8; border: 1px solid #d5dee8; border-radius: 10px; padding: 8px 6px; z-index: 5; }
  .grpside button { border: 0; background: transparent; }
  .grpside button:hover { background: #dce8f3; }
  .grpside button b { min-width: 30px; }
  .grpside ~ #rpBody, .grpside ~ .rpactbar, .grpside ~ .rpnote, .grpside ~ .rpupd { margin-right: 190px; }
  .grpbar { display: none !important; }
  .grpbar.on { display: flex !important; position: fixed; top: 140px; right: 196px; z-index: 6; background: #fff; border: 1px solid #c9d3e0; border-radius: 10px; padding: 10px 12px; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
}
@media print { .grpside, .grpbar { display: none !important; } .grpside ~ #rpBody { margin-right: 0 !important; } }
.pvday{font-size:12px;color:#0f6e63;margin-left:6px;white-space:nowrap}.pvskip{font-size:12px;color:#5b6b7c;display:inline-flex;gap:4px;align-items:center;margin-left:8px}
/* 🔎 Ctrl+F Find */
.findbox { position: fixed; inset: 0; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; background: rgba(15,30,50,.28); z-index: 99999; }
.findbox.on { display: flex; }
.fdin { background: #fff; width: min(620px, 94vw); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.28); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.fdhd small { color: #5b6b7c; margin-left: 6px; }
.fdin input { font-size: 16px; padding: 9px 11px; border: 1px solid #c9d3e0; border-radius: 8px; }
.fdl { max-height: 55vh; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.fdi { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
.fdi.on, .fdi:hover { background: #1f3a5f; color: #fff; }
.fdi small { color: #8a99ab; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.fdi.on small { color: #cfe0f1; }
.fdk { font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: #0f6e63; min-width: 46px; }
.fdi.on .fdk { color: #bfe9e2; }
.fdn { color: #5b6b7c; padding: 8px 10px; }
.fdflash { outline: 3px solid #f5a524 !important; outline-offset: 2px; transition: outline-color .3s; }
/* Ledger: Tally jaisi list (↑ ↓ Enter) aur daayein key patti — desktop par mode / tareekh ki patti chhupi (F2 / F5 se) */
.rptab tr.rpsel > td { background: #1f3a5f !important; color: #fff; }
.rptab tr.rpsel small { color: #cfe0f1 !important; }
@media (min-width: 900px) { .grpside ~ .rpmodes, .grpside ~ #rpBody .detbar, .grpside ~ .rpbar:empty { display: none !important; } }
/* ⚙ F12 Configuration (har report) */
.gcfgbox { position: fixed; inset: 0; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; background: rgba(15,30,50,.28); z-index: 99990; }
.gcfgbox.on { display: flex; }
.gcfgin { background: #fff; border-radius: 12px; padding: 14px 16px; width: min(560px, 94vw); max-height: 76vh; overflow: auto; box-shadow: 0 16px 40px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 8px; }
.gcfgrid { display: flex; flex-direction: column; gap: 6px; }
.gcfgrid label { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.gcfgrid select { min-width: 190px; }
table.stripe tbody tr:nth-child(even) > td { background: #f3f7fb; }
