/* =====================================================================
   UI v3 — শুধু ডিজাইন/ফ্রন্টএন্ড (ব্যাকএন্ড ও ডাটা-যুক্তি অপরিবর্তিত)
   ১. স্লিম এক-লাইনের হেডার (লোগো | মেনু | টুলস)
   ২. তারিখ + লাইভ সিঙ্ক: কার্ডের উপরে এক লাইনে
   ৩. ক্যালকুলেটর / ফিল্ড অফিসার / ট্রান্সফার পপআপ: দুই কলাম, স্ক্রল ছাড়া
   ৪. দিন বন্ধ করুন পিডিএফ: গরমিলের অঙ্ক, এক পেজ
   ৫. সম্পূর্ণ সাইটে সোলাইমান লিপি ফন্ট
   ===================================================================== */

/* ---------- ৫. ফন্ট: সোলাইমান লিপি (আইকন ও ক্লোজিং ফর্মের Oswald বাদে) ---------- */
:root{--lipi:'SolaimanLipi','SolaimanLipiLocal','Hind Siliguri',sans-serif}
html,body,
body :not(i):not([class*="fa-"]):not(.cb-sheet):not(.cb-sheet *){font-family:var(--lipi) !important}
.num-font,.stat-amount,.cash-hero .amount{font-variant-numeric:tabular-nums}

/* ---------- ১. হেডার: স্লিম, এক লাইন ---------- */
#mainAppWrapper>header#appHeader{background:linear-gradient(112deg,#073b2d 0%,#0b4d39 52%,#12634a 100%);box-shadow:inset 0 -2px 0 var(--gold,#c8962e),0 10px 24px -16px rgba(6,40,31,.7)}
#mainAppWrapper>header#appHeader>div.hdr-bar{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;max-width:1680px;margin:0 auto;padding:0 14px;height:54px;min-height:0;min-width:0}
#appHeader .hdr-logo{flex:0 0 auto;display:flex;align-items:center;background:#fff;border-radius:9px;padding:3px 8px;box-shadow:0 3px 8px rgba(0,0,0,.18)}
#appHeader .hdr-logo .outlet-brand-logo{height:30px !important;max-height:30px !important;width:auto;filter:none}

/* মেনু: এক লাইন, কখনো ভাঁজ বা উপরে-নিচে হবে না */
#appHeader .dash-menu{display:none;flex:1 1 auto;min-width:0;align-self:stretch;align-items:stretch;justify-content:center;flex-wrap:nowrap;gap:2px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
#appHeader .dash-menu::-webkit-scrollbar{display:none}
@media (min-width:768px){#appHeader .dash-menu{display:flex}}
#appHeader .menu-btn{position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:7px;min-height:0;height:auto;padding:0 12px;margin:0;border:0;border-bottom:3px solid transparent;border-top:3px solid transparent;border-radius:0;box-shadow:none;background:transparent;color:#e8f3ed;font-size:16px;font-weight:600;line-height:1;white-space:nowrap;transform:none}
#appHeader .menu-btn:hover{background:rgba(255,255,255,.1);border-bottom-color:rgba(255,255,255,.6);transform:none;filter:none;box-shadow:none}
#appHeader .menu-btn:active{background:rgba(255,255,255,.18);transform:none}
#appHeader .menu-btn i{font-size:16px}
#appHeader .menu-btn>span{white-space:nowrap}
#appHeader .menu-badge{top:6px;right:2px;min-width:18px;height:18px;line-height:14px;font-size:11px;border-width:2px}
#appHeader .menu-btn.hidden{display:none !important}
.ml-long{display:none}.ml-short{display:inline}
@media (min-width:1600px){.ml-long{display:inline}.ml-short{display:none}}
/* মাঝারি স্ক্রিনে শুধু আইকন (নামটি hover করলে tooltip), যেন মেনু কখনো একটির উপর আরেকটি না যায় */
@media (max-width:1279px){#appHeader .menu-btn>span:not(.menu-badge){display:none}#appHeader .menu-btn{padding:0 15px}#appHeader .menu-btn i{font-size:18px}}

/* ডান পাশের টুলস */
#appHeader .hdr-tools{flex:0 0 auto;display:flex;align-items:center;gap:6px;margin-left:auto;min-width:0}
#appHeader #employeeSwitcherBox{padding:2px 4px;border-radius:10px;max-width:190px}
#appHeader #employeeSelector{max-width:150px;font-size:14px;height:28px;text-overflow:ellipsis}
#appHeader #employeeSelector option{color:#0f172a}
#appHeader #adminSettingsBtn{padding:0 10px;height:34px;font-size:14px;gap:6px}
#appHeader .hdr-user{display:flex;align-items:center;gap:7px;height:34px;padding:0 10px;border-radius:10px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);white-space:nowrap;min-width:0}
#appHeader .hdr-user>i{font-size:18px}
#appHeader .hu-text{display:flex;flex-direction:column;line-height:1.1;min-width:0}
#appHeader .hu-name{font-size:14px;font-weight:700;color:#fff;max-width:150px;overflow:hidden;text-overflow:ellipsis}
#appHeader .hu-role{font-size:11.5px;color:#a7f3d0;max-width:150px;overflow:hidden;text-overflow:ellipsis}
#appHeader .hdr-logout{display:flex;align-items:center;gap:6px;height:34px;padding:0 11px;border-radius:10px;background:#e11d48;color:#fff;font-size:14px;font-weight:700;white-space:nowrap;box-shadow:0 4px 10px rgba(0,0,0,.18)}
#appHeader .hdr-logout:hover{background:#f43f5e}
@media (max-width:1279px){#appHeader #adminSettingsBtn>span{display:none !important}#appHeader .hl-text{display:none}#appHeader .hdr-logout{padding:0 11px}}
@media (max-width:1099px){#appHeader .hu-role{display:none}#appHeader #employeeSelector{max-width:120px}}
@media (max-width:899px){#appHeader .hu-text{display:none}#appHeader .hdr-user{padding:0 9px}}
@media (max-width:767px){
  #appHeader .hdr-bar{height:50px;padding:0 10px;gap:8px}
  #appHeader .hdr-logo .outlet-brand-logo{height:28px !important;max-height:28px !important}
  #appHeader #employeeSelector{max-width:150px}
  #appHeader #employeeSwitcherBox{max-width:170px}
}

/* ---------- ২. তারিখ + লাইভ সিঙ্ক (কার্ডের উপরে এক লাইনে) ---------- */
.live-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:10px;min-width:0}
#liveBar #masterDateBar{display:flex;flex:0 1 auto;min-width:0;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:8px;margin:0;padding:4px 6px;background:#fff;border:1px solid var(--line,#dce3df);border-top:1px solid var(--line,#dce3df);border-radius:12px;box-shadow:none;backdrop-filter:none;color:var(--ink,#10241d)}
#liveBar .date-left{min-width:0}
#liveBar .date-pick{padding:5px 10px;border:1px solid var(--line,#dce3df);background:#f6f9f7;border-radius:9px;min-width:0}
#liveBar .date-pick:hover{background:#eaf3ee;border-color:var(--green,#0a3a2c)}
#liveBar .date-line,#liveBar .date-day,#liveBar .date-month{color:var(--green,#0a3a2c);font-size:15px;font-weight:800}
#liveBar .date-week{color:#5b6f66;font-size:14px;font-weight:600}
#liveBar .date-cal{color:var(--gold,#c8962e)}
#liveBar .date-caret{color:#7b8d85}
#liveBar .date-time{display:flex;align-items:center;gap:6px;flex:0 0 auto;padding:5px 10px;border-radius:9px;background:var(--green,#0a3a2c);color:var(--gold-soft,#f0c35a);font-size:15px;font-weight:700;box-shadow:none}
#liveBar .date-time i{color:#cfe5db;font-size:13px}
.lb-sync{display:flex;align-items:center;gap:8px;flex:0 1 auto;min-width:0;padding:7px 14px;border-radius:12px;font-size:14.5px;font-weight:700;white-space:nowrap;cursor:pointer;border:1px solid #bfe3cf;background:#e7f6ee;color:#0b6b47}
.lb-sync i{font-size:13px;flex:0 0 auto}
.lb-sync .lb-text{overflow:hidden;text-overflow:ellipsis;min-width:0}
.lb-dot{flex:0 0 auto;width:9px;height:9px;border-radius:50%;background:#10b981;animation:lbPulse 1.6s ease-in-out infinite}
@keyframes lbPulse{0%,100%{opacity:1}50%{opacity:.35}}
.lb-sync[data-state="syncing"]{background:#e8f0fe;color:#1d4ed8;border-color:#bcd0fb}
.lb-sync[data-state="syncing"] .lb-dot{background:#3b82f6}
.lb-sync[data-state="error"]{background:#fdecef;color:#b02a40;border-color:#f5c2cb}
.lb-sync[data-state="error"] .lb-dot{background:#e11d48;animation:none}
@media (max-width:640px){
  #liveBar .date-week,#liveBar .date-caret{display:none}
  #liveBar .date-line,#liveBar .date-day,#liveBar .date-month{font-size:13px}
  #liveBar .date-time{font-size:13px;padding:5px 8px}
  .lb-sync{padding:6px 9px;font-size:12.5px;gap:6px}
  .lb-sync i{display:none}
}
@media (max-width:420px){#liveBar .date-time i{display:none}.lb-sync{font-size:11.5px}}

/* ---------- ৩. ক্যালকুলেটর পপআপ (জমা / উত্তোলন / ভাঙতি / ফিল্ড অফিসার) ---------- */
#calcModal.calc-backdrop{padding:8px}
#calcModal .calc-card{width:min(1140px,98vw);max-width:none;max-height:98vh;max-height:98svh;border-radius:16px !important;
  --row-h:clamp(26px,calc((100vh - 300px)/10),54px);--row-h:clamp(26px,calc((100svh - 300px)/10),54px);
  --fs:clamp(13px,calc(var(--row-h)*.46),20px)}
#calcModal.is-field .calc-card{--row-h:clamp(22px,calc((100vh - 430px)/10),46px);--row-h:clamp(22px,calc((100svh - 430px)/10),46px)}

/* স্লিম হেডার: আইকন + শিরোনাম + বিবরণ এক লাইনে, ডানে ক্লিয়ার/রিসেট ও ক্লোজ */
#calcModal .calc-head{padding:6px 12px !important;gap:10px;min-height:0}
#calcModal .calc-head-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}
#calcModal .calc-head-icon{width:30px;height:30px;border-radius:9px;font-size:15px;flex:0 0 auto}
#calcModal .calc-head h2{margin:0;font-size:17px;font-weight:800;white-space:nowrap}
#calcModal .calc-head p{margin:0;font-size:13px;opacity:.92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.calc-head-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.calc-hbtn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:9px;border:1px solid rgba(255,255,255,.38);background:rgba(255,255,255,.16);color:#fff;font-size:13.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.calc-hbtn:hover{background:rgba(255,255,255,.3)}
#calcModal .calc-x{width:32px;height:32px;font-size:15px}

#calcModal .calc-body{padding:10px 12px;overflow:auto;flex:1 1 auto}
.calc-form{display:grid;gap:8px 14px;align-items:start;
  grid-template-columns:minmax(0,1fr) clamp(230px,27vw,340px);
  grid-template-areas:"meta meta" "change side" "notes side";
  grid-template-rows:auto auto minmax(0,1fr)}
.calc-form.field-mode{grid-template-areas:"meta side" "centers side" "notes side"}

/* লেনদেনের তারিখ | হিসাব নম্বর | গ্রাহকের নাম — এক লাইনে */
.calc-meta{grid-area:meta;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;background:#f6f9f7;border:1px solid var(--line,#dce3df);border-radius:12px;padding:7px 10px}
.calc-form.field-mode .calc-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
.calc-meta>div{min-width:0}
.calc-meta label{display:block;margin:0 0 2px;font-size:12.5px;font-weight:700;color:#475b52;white-space:nowrap}
.calc-meta input{width:100%;height:clamp(30px,4.6vh,40px);height:clamp(30px,4.6svh,40px);padding:0 9px;font-size:14px;font-weight:600;background:#fff;border:1px solid #cdd9d3;border-radius:9px;outline:none}

/* খুচরা ফেরত: এক লাইন */
#calcModal .calc-change-bar{grid-area:change;margin:0;padding:6px 10px;align-items:center;font-size:13.5px;min-width:0}
#calcModal .calc-change-bar>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#calcModal .calc-change-bar small{display:inline;margin-left:6px}
@media (max-height:760px){#calcModal .calc-change-bar small{display:none}}

/* বাম কলাম: নোটের ঘর */
.calc-notes{grid-area:notes;min-width:0}
.calc-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:var(--fs);border:1px solid var(--line,#dce3df);border-radius:12px;overflow:hidden}
.calc-table th{height:32px;padding:0 4px;font-size:clamp(11.5px,1.6vh,14px);font-weight:800;line-height:1.15;text-align:center;background:#f1f5f3;color:#2c4a3e;border-bottom:1px solid #d9e4de}
.calc-table th.th-rec,.calc-table th.th-rec2{background:#e8f6ef;color:#0b6b47}
.calc-table th.th-pay,.calc-table th.th-pay2{background:#fdecef;color:#b02a40}
.calc-table th.th-note{width:16%}
.calc-table th.th-rec,.calc-table th.th-pay{width:28%}
.calc-table th.th-rec2,.calc-table th.th-pay2{width:22%}
.calc-table tbody td{height:var(--row-h);padding:2px 6px;text-align:center;border-bottom:1px solid #edf2ef;vertical-align:middle}
.calc-table .td-note{background:#f6f9f7}
.note-chip{white-space:nowrap;display:inline-block;padding:0 9px;border-radius:7px;background:#e3ebe7;color:#1b3a2e;font-weight:800;font-size:var(--fs);line-height:1.5}
.calc-table .td-rec{background:rgba(13,138,95,.045)}
.calc-table .td-pay{background:rgba(200,49,74,.045)}
.calc-table .td-rec2,.calc-table .td-pay2{text-align:right;font-weight:800;font-size:calc(var(--fs)*.95);white-space:nowrap}
.calc-table .td-rec2{color:#0b6b47}.calc-table .td-pay2{color:#b02a40}
.calc-input-rec,.calc-input-pay{width:100% !important;height:calc(var(--row-h) - 6px);min-height:24px;padding:0 6px !important;text-align:center;font-weight:800;font-size:var(--fs) !important;line-height:1;background:#fff;border-radius:8px;border:1.5px solid;outline:none}
.calc-input-rec{border-color:#8fd3b8}.calc-input-pay{border-color:#f0a3b0}
.calc-table tfoot td{height:calc(var(--row-h)*.95);padding:2px 6px;font-weight:800;border-top:2px solid #b9cfc4}
.calc-table .tf-label{text-align:center;background:#eef3f0;color:#1b3a2e;font-size:calc(var(--fs)*.92)}
.calc-table .tf-rec{background:#d9f0e4;color:#0a5a3b;text-align:center}
.calc-table .tf-pay{background:#fbdce2;color:#9a2438;text-align:center}
.calc-table tfoot td:nth-child(3),.calc-table tfoot td:nth-child(5){text-align:right}

/* ডান কলাম: মোট + সাবমিট */
.calc-side{grid-area:side;display:flex;flex-direction:column;gap:10px;min-width:0}
#calcModal .calc-total{display:block;margin:0;padding:10px 12px;background:#f3f8f5;border:1px solid var(--line,#dce3df);border-radius:14px}
#calcModal .ct-label{font-size:13.5px;font-weight:800;color:#4a5f56}
#calcModal .ct-value{font-size:clamp(1.7rem,5vh,2.7rem);font-size:clamp(1.7rem,5svh,2.7rem);line-height:1.15;word-break:break-all}
#calcModal .ct-sub{font-size:12.5px;min-height:0;line-height:1.35}
#calcModal .calc-submit{width:100%;height:clamp(44px,7vh,60px);height:clamp(44px,7svh,60px);padding:0 14px;font-size:16.5px;border-radius:13px}
.ct-net{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13.5px;color:#2c4a3e}
.ct-net-value{font-weight:800;font-size:1.05rem}
.ct-net-badge{padding:2px 10px;border-radius:999px;font-size:12.5px;font-weight:700;background:#e2e8e5;color:#475b52}
.ct-net-badge.is-in{background:#10b981;color:#fff}.ct-net-badge.is-out{background:#f43f5e;color:#fff}

/* ফিল্ড অফিসার: কেন্দ্রভিত্তিক ইনপুট */
.calc-centers{grid-area:centers;background:#fff8e8;border:1px solid #f0d28a;border-radius:12px;padding:6px 8px;min-width:0}
.fc-head,.fc-row{display:grid;grid-template-columns:.9fr 1.2fr 1.2fr 1.1fr 28px;gap:6px;align-items:center}
.fc-head{padding:0 2px 3px;font-size:12.5px;font-weight:800;color:#6b5a2a}
.fc-rows{display:flex;flex-direction:column;gap:5px;max-height:clamp(70px,17vh,140px);max-height:clamp(70px,17svh,140px);overflow-y:auto;padding:1px}
.fc-row>div{min-width:0}
.fc-row input{width:100%;height:clamp(28px,4.4vh,38px);height:clamp(28px,4.4svh,38px);padding:0 8px;font-size:14px;font-weight:600;background:#fff;border:1px solid #d9c48e;border-radius:8px;outline:none}
.fc-rm{text-align:center}
.fc-remove{color:#e11d48;padding:4px}
.fc-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px}
.fc-add{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:9px;border:1px solid #e3c06a;background:#fff;color:#7b5a14;font-size:13px;font-weight:800;cursor:pointer}
.fc-add:hover{background:#fdf0cc}
.fc-total{font-size:13.5px;font-weight:800;color:#3d3416}.fc-total span{color:#8a5a0b}
.calc-form.field-mode .calc-table{--fs:clamp(13px,calc(var(--row-h)*.5),19px)}

/* ছোট স্ক্রিন (ফোন): এক কলাম — মোট ও সাবমিট উপরে, তারপর নোটের ঘর */
@media (max-width:719px){
  #calcModal.calc-backdrop{padding:0;align-items:flex-end}
  #calcModal .calc-card{width:100vw;border-radius:16px 16px 0 0 !important;
    --row-h:clamp(24px,calc((100vh - 345px)/10),44px);--row-h:clamp(24px,calc((100svh - 345px)/10),44px)}
  #calcModal.is-field .calc-card{--row-h:clamp(22px,calc((100vh - 470px)/10),38px);--row-h:clamp(22px,calc((100svh - 470px)/10),38px)}
  #calcModal .calc-body{padding:8px}
  .calc-form{grid-template-columns:minmax(0,1fr);grid-template-areas:"meta" "side" "change" "notes";grid-template-rows:auto;gap:6px}
  .calc-form.field-mode{grid-template-areas:"meta" "side" "centers" "notes"}
  .calc-meta{gap:6px;padding:6px}
  .calc-meta label{font-size:11.5px}
  .calc-meta input{padding:0 6px;font-size:13px}
  .calc-side{flex-direction:row;align-items:stretch;gap:8px}
  #calcModal .calc-total{flex:1 1 auto;min-width:0;padding:6px 10px}
  #calcModal .ct-value{font-size:1.5rem}
  #calcModal .ct-sub{display:none}
  #calcModal .calc-submit{flex:0 0 42%;width:auto;height:auto;font-size:14.5px;padding:0 8px}
  .ct-net{display:none}
  .calc-head-actions .calc-hbtn span,#calcModal .calc-head p{display:none}
  .calc-hbtn{padding:0 10px}
  .calc-table th{height:28px;font-size:11px}
  .calc-table{--fs:clamp(11px,calc(var(--row-h)*.42),16px) !important}
  .note-chip{padding:0 4px;white-space:nowrap;font-size:var(--fs)}
  .calc-table th.th-note{width:17%}
  .calc-table .td-rec2,.calc-table .td-pay2{font-size:calc(var(--fs)*.9)}
  .calc-table tbody td{padding:1px 3px}
  .fc-head{font-size:11px}
  .fc-head,.fc-row{grid-template-columns:.9fr 1.1fr 1.1fr 1fr 24px;gap:4px}
  .fc-row input{padding:0 5px;font-size:12.5px}
}

/* ---------- ৩খ. ক্যাশ ট্রান্সফার পপআপ ---------- */
#transferModal.tr-backdrop{padding:8px}
.tr-card{display:flex;flex-direction:column;width:min(920px,98vw);max-height:98vh;max-height:98svh;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 30px 70px -20px rgba(0,0,0,.6);
  --tr-row:clamp(26px,calc((100vh - 250px)/10),50px);--tr-row:clamp(26px,calc((100svh - 250px)/10),50px)}
.tr-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px;background:#1e3a8a;color:#fff}
.tr-head-main{display:flex;align-items:center;gap:10px;min-width:0}
.tr-head-main>i{color:var(--gold-soft,#f0c35a);font-size:16px}
.tr-head h3{margin:0;font-size:17px;font-weight:800;white-space:nowrap}
.tr-head-sub{font-size:13px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tr-x{flex:0 0 auto;width:32px;height:32px;border-radius:50%;border:0;background:rgba(255,255,255,.18);color:#fff;font-size:15px;cursor:pointer}
.tr-x:hover{background:rgba(255,255,255,.32)}
.tr-form{display:flex;flex-direction:column;gap:8px;padding:10px 12px;min-height:0;overflow:auto}
.tr-form label{display:block;margin:0 0 2px;font-size:12.5px;font-weight:700;color:#475b52}
.tr-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:#f4f7fc;border:1px solid #dbe4f3;border-radius:12px;padding:7px 10px}
.tr-people>div{min-width:0}
.tr-people select,.tr-fixed,.tr-right input[type="text"]{width:100%;height:clamp(32px,5vh,42px);height:clamp(32px,5svh,42px);padding:0 9px;font-size:14px;font-weight:600;background:#fff;border:1px solid #cdd9d3;border-radius:9px;outline:none}
.tr-fixed{display:flex;align-items:center;font-weight:700}
.tr-hint{margin:2px 0 0;font-size:11.5px;color:#64748b}
@media (max-height:700px){.tr-hint{display:none}}
.tr-cols{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14px;align-items:start}
.tr-sec{margin:0 0 3px !important}
.tr-notes{border:1px solid var(--line,#dce3df);border-radius:12px;overflow:hidden}
.tr-note-row{display:grid;grid-template-columns:72px minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px;height:var(--tr-row);padding:0 8px;border-bottom:1px solid #edf2ef}
.tr-note-row:last-child{border-bottom:0}
.tr-note-lbl{font-weight:800;font-size:clamp(13px,calc(var(--tr-row)*.44),19px);color:#1b3a2e}
.tr-note-row input{width:100%;height:calc(var(--tr-row) - 6px);min-height:24px;padding:0 6px;text-align:center;font-weight:800;font-size:clamp(13px,calc(var(--tr-row)*.46),19px);background:#fff;border:1.5px solid #9db8e6;border-radius:8px;outline:none}
.tr-note-sub{text-align:right;font-weight:800;font-size:clamp(12.5px,calc(var(--tr-row)*.4),17px);color:#475b52;white-space:nowrap}
.tr-right{display:flex;flex-direction:column;gap:10px;min-width:0}
.tr-total{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 12px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;color:#1e3a8a}
.tr-total-label{font-size:13.5px;font-weight:800}
.tr-total-val{font-size:clamp(1.5rem,4.4vh,2.2rem);font-size:clamp(1.5rem,4.4svh,2.2rem);font-weight:900}
.tr-submit{width:100%;height:clamp(42px,6.5vh,56px);height:clamp(42px,6.5svh,56px);padding:0 14px;border:0;border-radius:12px;background:#1d4ed8;color:#fff;font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 10px 18px -12px rgba(0,0,0,.6)}
.tr-submit:hover{background:#1e40af}
@media (max-width:719px){
  #transferModal.tr-backdrop{padding:0;align-items:flex-end}
  .tr-card{width:100vw;border-radius:16px 16px 0 0;--tr-row:clamp(24px,calc((100vh - 330px)/10),42px);--tr-row:clamp(24px,calc((100svh - 330px)/10),42px)}
  .tr-head-sub{display:none}
  .tr-people{gap:6px;padding:6px}
  .tr-cols{grid-template-columns:minmax(0,1fr);gap:8px}
  .tr-right{order:-1;flex-direction:row;flex-wrap:wrap;align-items:stretch;gap:8px}
  .tr-right>.tr-total{flex:1 1 50%}
  .tr-right>.tr-submit{flex:1 1 40%;height:auto}
  .tr-right>div:last-child{flex:1 1 100%}
  .tr-note-row{grid-template-columns:58px minmax(0,1fr) minmax(0,1fr);gap:6px}
}

/* ---------- ৪. দিন বন্ধ করুন: পিডিএফে গরমিলের অঙ্ক (শুধু অঙ্ক), এক পেজ ---------- */
.cb-sheet .cb-chk{margin-top:8px;text-align:center;font-size:13pt;font-weight:700;line-height:1.2;color:#000}
@media print{
  /* বাকি পেজ লুকানো থাকলেও body-র min-height/padding যেন দ্বিতীয় ফাঁকা পেজ না বানায় */
  html:has(body.cb-printing),body.cb-printing{height:auto !important;min-height:0 !important;margin:0 !important;padding:0 !important;display:block !important}
  body.cb-printing #closingModal{height:auto !important;min-height:0 !important;overflow:visible !important}
  body.cb-printing .cb-sheet{break-inside:avoid;page-break-inside:avoid;overflow:hidden}
  body.cb-printing .cb-sheet .cb-chk{font-size:13pt}
}
