/* Premium monthly statement preview and PDF layout. */
.statement-view{position:fixed;inset:0;z-index:1200;background:#edf3fb;overflow:auto;-webkit-overflow-scrolling:touch;padding-bottom:env(safe-area-inset-bottom);font-family:"Noto Sans Bengali",Inter,"Hind Siliguri",sans-serif;color:#10213f}.statement-toolbar{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;padding:10px max(12px,calc((100% - 860px)/2));padding-top:max(10px,env(safe-area-inset-top));background:rgba(255,255,255,.97);border-bottom:1px solid #dce5f2;box-shadow:0 5px 20px rgba(25,55,95,.06);backdrop-filter:blur(14px)}.statement-toolbar .toolbar-actions{display:flex;gap:8px;justify-content:flex-end}.statement-toolbar button{height:44px;border:0;border-radius:13px;padding:0 14px;font:800 13px/1 "Noto Sans Bengali",Inter,sans-serif;cursor:pointer;white-space:nowrap}.statement-toolbar button:disabled{opacity:.58}.statement-back{background:#eaf1fc;color:#174078}.statement-save{background:linear-gradient(135deg,#2875f2,#1752bc);color:white;box-shadow:0 7px 18px rgba(35,99,218,.2)}.statement-email{background:#e9f8ef;color:#177641}.statement-stage{width:min(820px,calc(100% - 18px));margin:16px auto 32px}.statement-paper{background:white;box-shadow:0 24px 70px rgba(34,61,98,.15);border-radius:24px;overflow:hidden;font-family:"Noto Sans Bengali",Inter,"Hind Siliguri",sans-serif!important;font-synthesis:none;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased}.statement-paper *{font-family:inherit}.statement-page{background:#fff;min-height:1122px;padding:0;position:relative}.statement-cover-head{position:relative;overflow:hidden;padding:38px 42px 34px;color:#fff;background:linear-gradient(135deg,#0e387f 0%,#1760d1 58%,#0ca6d8 100%)}.statement-cover-head:before,.statement-cover-head:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.08)}.statement-cover-head:before{width:240px;height:240px;right:-78px;top:-95px}.statement-cover-head:after{width:120px;height:120px;right:145px;bottom:-75px}.statement-kicker{font-size:13px;letter-spacing:1.7px;text-transform:uppercase;font-weight:800;opacity:.84}.statement-cover-head h1{font-size:36px;line-height:1.12;margin:10px 0 7px;letter-spacing:-.4px}.statement-cover-head p{margin:0;font-size:16px;opacity:.87}.statement-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:23px}.statement-meta span{padding:9px 12px;border-radius:11px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.17);font-size:12px;font-weight:700}.statement-body{padding:31px 38px 34px}.statement-person{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:20px;border:1px solid #e1e9f4;border-radius:19px;background:linear-gradient(180deg,#fff,#fbfdff)}.statement-avatar{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(145deg,#dfebff,#eef7ff);color:#1761d3;font-weight:900;font-size:19px}.statement-person h2{margin:0;color:#10213f;font-size:25px}.statement-person p{margin:5px 0 0;color:#71819b;font-size:14px}.statement-status{text-align:right;padding:11px 14px;border-radius:13px}.statement-status small{display:block;font-size:11px;font-weight:700;margin-bottom:4px}.statement-status b{font-size:19px}.statement-status.advance{background:#e9f8ef;color:#13763d}.statement-status.due{background:#fff0ef;color:#bd3834}.statement-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:19px 0}.statement-metric{min-height:92px;padding:16px;border:1px solid #e0e8f3;border-radius:16px;background:#f9fbff}.statement-metric small{display:block;color:#7d8aa1;font-size:12px;font-weight:700;margin-bottom:8px}.statement-metric b{font-size:21px;line-height:1.15}.statement-metric.total{background:#edf4ff;border-color:#cbdcff}.statement-metric.balance.advance{background:#ecfaf1;border-color:#ccebd7}.statement-metric.balance.due{background:#fff2f1;border-color:#f4d5d2}.statement-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:27px 0 12px}.statement-section-title h3{margin:0;font-size:20px}.statement-section-title span{color:#7d8aa1;font-size:12px;text-align:right}.statement-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:12px}.statement-breakdown-card{border:1px solid #e1e9f3;border-radius:16px;padding:15px 16px}.statement-breakdown-card div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #edf2f8;font-size:13px}.statement-breakdown-card div:last-child{border-bottom:0}.statement-breakdown-card span{color:#74849d}.statement-footnote{position:absolute;left:38px;right:38px;bottom:26px;display:flex;justify-content:space-between;gap:20px;border-top:1px solid #e6edf5;padding-top:13px;color:#8290a6;font-size:10px}.statement-bazar-page{padding:31px 36px 28px;min-height:1122px}.statement-bazar-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:18px}.statement-bazar-head .title small{display:block;color:#2666cb;font-size:11px;font-weight:900;letter-spacing:1.4px;text-transform:uppercase;margin-bottom:5px}.statement-bazar-head h2{margin:0;font-size:29px}.statement-bazar-head p{margin:5px 0 0;color:#74839a;font-size:13px}.statement-bazar-total{text-align:right;border-radius:15px;padding:12px 15px;background:#edf5ff;color:#124a9d}.statement-bazar-total small{display:block;font-size:10px;margin-bottom:4px}.statement-bazar-total b{font-size:20px}.statement-bazar-grid{display:grid;grid-template-columns:1fr;gap:12px;align-items:start}.statement-bazar-card{border:1px solid #dfe7f1;border-radius:15px;overflow:hidden;background:#fff;box-shadow:0 3px 10px rgba(29,62,105,.035)}.statement-bazar-card-head{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:11px 14px;background:#f2f6fc;border-bottom:1px solid #e5ebf4}.statement-bazar-card-head strong{font-size:14px}.statement-bazar-card-head span{display:block;font-size:11px;color:#74849b;margin-top:3px}.statement-bazar-card-head b{color:#174f9c;font-size:15px}.statement-bazar-lines{padding:5px 14px 7px}.statement-bazar-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:9px 0;border-bottom:1px dashed #e6ecf4}.statement-bazar-line:last-child{border-bottom:0}.statement-bazar-line .item{min-width:0}.statement-bazar-line .item b{font-family:"Noto Sans Bengali",Inter,"Hind Siliguri",sans-serif!important;font-size:14px;line-height:1.55;font-weight:800;word-break:normal;overflow-wrap:anywhere}.statement-bazar-line .item small{display:block;color:#8290a4;font-size:11px;line-height:1.6;margin-top:3px}.statement-bazar-line .amount{font-size:13px;font-weight:900;color:#153d7b;white-space:nowrap}.statement-fresh{padding:10px 11px;margin:4px 0;border-radius:10px;background:#eff9f4}.statement-fresh .item b{color:#176d48}.statement-fresh .item small{color:#527a68}.statement-bazar-footer{margin-top:15px;display:flex;justify-content:space-between;gap:20px;padding-top:12px;border-top:1px solid #e4ebf4;color:#8290a5;font-size:10px}.statement-toast{position:fixed;left:50%;bottom:28px;z-index:1300;transform:translateX(-50%);background:#10213f;color:#fff;border-radius:13px;padding:10px 14px;font-size:12px;font-weight:700;box-shadow:0 10px 28px rgba(0,0,0,.2)}
/* PDF capture mode: force desktop A4 geometry even on iPhone. */
.statement-view.statement-capture{overflow:hidden!important}.statement-view.statement-capture .statement-toolbar{visibility:hidden!important;height:0!important;padding:0!important;border:0!important}.statement-view.statement-capture .statement-stage{width:794px!important;max-width:none!important;margin:0!important}.statement-view.statement-capture .statement-paper{width:794px!important;max-width:none!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}.statement-view.statement-capture .statement-page{width:794px!important;min-height:1122px!important}.statement-view.statement-capture .statement-summary-page{height:1122px!important;overflow:hidden!important}.statement-view.statement-capture .statement-cover-head{padding:34px 40px 30px!important}.statement-view.statement-capture .statement-cover-head h1{font-size:34px!important}.statement-view.statement-capture .statement-body{padding:26px 36px 30px!important}.statement-view.statement-capture .statement-person{grid-template-columns:auto 1fr auto!important;padding:17px!important}.statement-view.statement-capture .statement-status{grid-column:auto!important;text-align:right!important}.statement-view.statement-capture .statement-summary{grid-template-columns:repeat(3,1fr)!important;gap:10px!important;margin:16px 0!important}.statement-view.statement-capture .statement-metric{min-height:82px!important;padding:14px!important}.statement-view.statement-capture .statement-metric b{font-size:20px!important}.statement-view.statement-capture .statement-section-title{margin:20px 0 10px!important}.statement-view.statement-capture .statement-breakdown{grid-template-columns:1fr 1fr!important;gap:10px!important}.statement-view.statement-capture .statement-breakdown-card{padding:11px 14px!important}.statement-view.statement-capture .statement-breakdown-card div{padding:7px 0!important}.statement-view.statement-capture .statement-footnote{position:absolute!important;left:36px!important;right:36px!important;bottom:22px!important;margin:0!important}.statement-view.statement-capture .statement-bazar-page{width:794px!important;min-height:1122px!important;padding:27px 32px 24px!important}.statement-view.statement-capture .statement-bazar-head{margin-bottom:13px!important}.statement-view.statement-capture .statement-bazar-grid{grid-template-columns:1fr!important;gap:8px!important}.statement-view.statement-capture .statement-bazar-card{border-radius:12px!important}.statement-view.statement-capture .statement-bazar-card-head{padding:8px 12px!important}.statement-view.statement-capture .statement-bazar-card-head strong{font-size:13px!important}.statement-view.statement-capture .statement-bazar-card-head span{font-size:10px!important;margin-top:2px!important}.statement-view.statement-capture .statement-bazar-lines{padding:3px 12px 5px!important}.statement-view.statement-capture .statement-bazar-line{padding:6px 0!important}.statement-view.statement-capture .statement-bazar-line .item b{font-size:13px!important;line-height:1.4!important}.statement-view.statement-capture .statement-bazar-line .item small{font-size:10px!important;line-height:1.45!important;margin-top:1px!important}.statement-view.statement-capture .statement-fresh{padding:7px 9px!important;margin:2px 0!important}.statement-view.statement-capture .statement-bazar-footer{margin-top:10px!important;padding-top:8px!important}
@media(max-width:600px){.statement-toolbar{grid-template-columns:auto 1fr}.statement-toolbar .toolbar-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.statement-toolbar button{height:42px}.statement-stage{width:calc(100% - 10px);margin-top:6px}.statement-paper{border-radius:18px}.statement-page{min-height:auto}.statement-cover-head{padding:27px 20px 24px}.statement-cover-head h1{font-size:27px}.statement-body{padding:20px 18px 24px}.statement-person{grid-template-columns:auto 1fr}.statement-status{grid-column:1/-1;text-align:left}.statement-summary{grid-template-columns:1fr 1fr}.statement-metric{min-height:76px}.statement-metric b{font-size:16px}.statement-breakdown{grid-template-columns:1fr}.statement-footnote{position:static;margin-top:25px}.statement-bazar-page{padding:23px 16px}.statement-bazar-grid{grid-template-columns:1fr}.statement-bazar-head h2{font-size:21px}}
@media print{.statement-view{position:static;background:#fff;overflow:visible}.statement-toolbar{display:none!important}.statement-stage{width:100%;margin:0}.statement-paper{box-shadow:none;border-radius:0}.statement-page{width:210mm;min-height:297mm}.statement-bazar-page{width:210mm;min-height:297mm}.statement-bazar-grid{grid-template-columns:1fr}.statement-footnote{position:absolute}@page{size:A4;margin:0}}
.statement-avatar.has-photo{padding:0;overflow:hidden}.statement-avatar.has-photo img{width:100%;height:100%;display:block;object-fit:cover}
