@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');
:root{--bg:#f5f7fb;--panel:#fff;--text:#172033;--muted:#7b8498;--line:#e8ecf3;--green:#177c57;--green-dark:#116746;--green-soft:#e8f6ef;--blue:#477be0;--amber:#b7791f;--red:#c74646;--shadow:0 8px 24px rgba(24,39,75,.045)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'Hind Siliguri','Inter',sans-serif;font-size:14px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:flex}.sidebar{width:248px;background:#102b24;color:#d5e7df;padding:24px 15px 16px;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 27px;color:#fff}.brand-mark{width:43px;height:43px;border-radius:13px;background:linear-gradient(135deg,#2db47a,#13774e);display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-family:Inter,sans-serif;letter-spacing:-1px;flex-shrink:0}.brand b,.brand small{display:block}.brand b{font-size:16px}.brand small{font-size:11px;color:#9eb9ae}.sidebar nav{display:grid;gap:5px}.sidebar nav a{display:flex;align-items:center;gap:13px;padding:12px 13px;border-radius:10px;color:#b4c9c0;font-size:14px;transition:.15s}.sidebar nav a:hover,.sidebar nav a.active{background:#1d493a;color:#fff}.sidebar nav a.active{box-shadow:inset 3px 0 #48ce8e}.sidebar-bottom{margin-top:auto;border-top:1px solid #315044;padding:18px 5px 0;display:flex;align-items:center;gap:10px}.admin-avatar{width:34px;height:34px;border-radius:50%;background:#e2f6e9;color:#176a47;display:grid;place-items:center;font-weight:700}.sidebar-bottom b,.sidebar-bottom small{display:block}.sidebar-bottom b{font-size:12px;color:#fff}.sidebar-bottom small{font-size:11px;color:#8eaa9e}.logout{margin-left:auto;font-size:21px}.main-area{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{min-height:104px;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:22px 34px;gap:18px}.eyebrow{font:700 10px Inter,sans-serif;letter-spacing:1.4px;color:#8a96a9}.topbar h1{font-size:25px;line-height:1.3;margin:5px 0 0;font-weight:700}.topbar-right{display:flex;align-items:center;gap:18px}.today{font-size:12px;color:var(--muted)}.content{padding:27px 34px 35px;flex:1;max-width:1600px;width:100%;margin:0 auto}.footer{text-align:center;color:#a0a8b7;font-size:11px;padding:15px;border-top:1px solid var(--line)}.btn{border:1px solid transparent;border-radius:9px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:600;font-size:13px;white-space:nowrap;transition:.15s}.btn.primary{background:var(--green);color:#fff}.btn.primary:hover{background:var(--green-dark)}.btn.secondary{background:#fff;border-color:#dfe5ed;color:#465167}.btn.secondary:hover{border-color:#9caaae;background:#f9fbfa}.btn.ghost{background:#f3f6f8;color:#596477}.btn.small{font-size:11px;padding:6px 9px;border-radius:7px}.btn.large{padding:13px 15px}.btn.full{width:100%}.btn:disabled{opacity:.5;cursor:not-allowed}.muted{color:var(--muted);margin:4px 0}.tiny{font-size:11px}.welcome-row,.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.welcome-row h2,.section-heading h2{font-size:19px;margin:0 0 3px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 32px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:19px;box-shadow:var(--shadow);min-width:0}.stat-icon{width:37px;height:37px;border-radius:11px;display:grid;place-items:center;font-weight:700;font-size:19px;margin-bottom:14px}.stat-icon.green{background:#e6f6ed;color:#1a8b5d}.stat-icon.blue{background:#eaf0ff;color:#477be0}.stat-icon.amber{background:#fff3dc;color:#b7791f}.stat-icon.violet{background:#f0eaff;color:#8255c8}.stat-card>span{display:block;color:#6f7a8e;font-size:12px}.stat-card strong{display:block;font:700 clamp(18px,2vw,25px) Inter,sans-serif;letter-spacing:-.8px;margin:8px 0;overflow-wrap:anywhere}.stat-card small{display:block;color:#8a94a6;font-size:11px}.text-link{color:#187a56;font-weight:600}.text-link:hover{text-decoration:underline}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);min-width:0}.table-panel{overflow:hidden}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{background:#f8fafc;color:#7a8598;text-align:left;font-size:11px;font-weight:600;padding:13px 16px;border-bottom:1px solid var(--line)}td{padding:13px 16px;border-bottom:1px solid #edf0f5;font-size:12px;color:#4a5568}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdfc}td b{color:#202b3d;font-weight:600}.table-sub{display:block;color:#98a0af;font-size:10px;margin-top:3px;white-space:normal}.status{display:inline-flex;border-radius:20px;padding:4px 9px;font-size:10px;font-weight:600}.status.paid{background:#e5f7ec;color:#178151}.status.unpaid{background:#fff0ed;color:#c24a40}.status.partial{background:#fff5df;color:#a76a13}.icon-link{font-size:11px;color:#187a56;font-weight:600}.empty{text-align:center;padding:35px;color:#8b95a6}.two-column{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.5fr);gap:18px;align-items:start}.form-panel{padding:22px}.panel-title{padding:19px 22px;border-bottom:1px solid var(--line)}.form-panel .panel-title{padding:0 0 20px;margin-bottom:20px}.panel-title h2{margin:0;font-size:16px}.panel-title p{font-size:11px}.count-pill{display:inline-flex;vertical-align:middle;background:#e8f6ef;color:#177c57;border-radius:20px;padding:2px 8px;font:600 11px Inter,sans-serif}.stack{display:grid;gap:15px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid h3{font-size:13px;margin:5px 0 0;color:#2c394c}.span-2{grid-column:span 2}label{display:grid;gap:7px;color:#4b5669;font-size:12px;font-weight:600}input,select,textarea{width:100%;border:1px solid #dfe5ed;background:#fff;color:#263246;border-radius:8px;padding:10px 11px;outline:none;min-width:0;font-size:12px;font-weight:400}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:#3b9b75;box-shadow:0 0 0 3px rgba(35,150,100,.1)}.actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.actions form{margin:0}.filter-panel{padding:17px;margin-bottom:18px}.filter-grid{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.filter-grid label{flex:1;min-width:125px}.filter-grid .grow{flex:2}.list-summary{display:flex;justify-content:space-between;gap:10px;color:#7b8498;font-size:12px;margin:0 0 13px}.list-summary b{color:#29354a}.invoice-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}.main-form-column{display:grid;gap:17px}.invoice-layout .form-panel{padding:22px}.invoice-layout .panel-title{display:flex;align-items:center;gap:12px}.invoice-layout .panel-title>div{flex:1}.invoice-layout .panel-title h2{font-size:15px}.step{width:34px;height:34px;border-radius:10px;background:#e7f5ed;color:#177c57;display:grid;place-items:center;font:700 12px Inter,sans-serif;flex-shrink:0}.service-line{display:grid;grid-template-columns:minmax(160px,2fr) 75px minmax(100px,1fr) 92px 28px;gap:10px;align-items:end;padding:13px 0;border-bottom:1px solid #eef1f5}.service-line:first-child{padding-top:0}.service-line:last-child{border-bottom:0}.service-line label{font-size:10px}.line-total{padding-bottom:11px}.line-total small,.line-total b{display:block}.line-total small{font-size:10px;color:#8a95a5}.line-total b{font:600 12px Inter,sans-serif;margin-top:4px}.remove-line{height:34px;width:28px;border:0;border-radius:7px;background:#fff0ed;color:#c24a40;font-size:21px;line-height:1}.summary-panel{padding:20px;position:sticky;top:15px}.summary-head{display:flex;justify-content:space-between;font:700 10px Inter,sans-serif;letter-spacing:.6px;color:#5e6b7e;padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:8px}.live-dot{font:500 10px 'Hind Siliguri';letter-spacing:0;color:#168253}.summary-row{display:flex;justify-content:space-between;gap:8px;padding:12px 0;font-size:12px;color:#7d8798}.summary-row b{font:600 12px Inter,sans-serif;color:#374257}.total-row{border-top:1px dashed #dce3e9;margin-top:5px;padding-top:17px}.total-row strong{font:700 19px Inter,sans-serif;color:#167b53}.due-row{background:#fff8e9;margin:6px -10px 15px;padding:12px 10px;border-radius:8px;color:#946219}.due-row strong{font:700 14px Inter,sans-serif;color:#946219}.summary-note{font-size:10px;line-height:1.6;color:#929bad;margin:15px 0}.summary-panel .btn{margin-top:8px}.settings-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:18px;align-items:start}.info-panel{padding:22px}.info-panel h2{font-size:16px}.info-panel ul{padding-left:20px;color:#657084;font-size:12px;line-height:1.9}.report-range{font-size:12px;color:#798499;margin:0 0 15px}.report-range b{color:#354156}.alert{border:1px solid #dce8e1;background:#eff9f3;color:#256c4a;padding:12px 14px;border-radius:9px;font-size:12px;margin-bottom:15px}.alert.danger{background:#fff0ed;border-color:#ffd5ce;color:#a83930}.alert.warning{background:#fff7e6;border-color:#f6e2ae;color:#91621a}.alert a{text-decoration:underline;font-weight:700}.print-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.invoice-paper{max-width:850px;margin:0 auto;background:#fff;border:1px solid #e6e9ef;box-shadow:0 10px 35px rgba(20,30,50,.07);padding:42px 48px;color:#202938;font-size:12px}.receipt-header{text-align:center;border-bottom:2px solid #197a55;padding-bottom:18px;margin-bottom:22px}.receipt-header h2{font-size:24px;color:#176b49;margin:0 0 5px}.receipt-header p{margin:3px 0;color:#606b7a}.receipt-title{font-size:15px;font-weight:700;letter-spacing:.7px;margin-top:15px}.shop-logo{max-width:85px;max-height:65px;object-fit:contain}.receipt-meta{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-bottom:22px}.receipt-meta span,.receipt-meta b{display:block}.receipt-meta span{font-size:10px;color:#7c8798;margin:8px 0 2px}.receipt-meta b{font-size:12px;color:#253145;font-weight:600;overflow-wrap:anywhere}.receipt-items{white-space:normal;margin-bottom:18px}.receipt-items th{background:#f3f7f5;color:#435548;border-bottom:1px solid #dfe8e2}.receipt-items th,.receipt-items td{padding:12px 10px}.receipt-items td{border-bottom:1px solid #e8edf0}.receipt-items td small{display:block;font-size:10px;color:#7f8a9a;margin-top:3px}.receipt-totals{width:min(310px,100%);margin-left:auto}.receipt-totals>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;color:#667184}.receipt-totals b{font-weight:600;color:#2d3749}.receipt-totals .grand{border-top:1px solid #dfe6e3;margin-top:4px;padding-top:12px;color:#176b49}.receipt-totals .grand strong{font:700 19px Inter,sans-serif;color:#176b49}.receipt-totals .due{background:#fff7e6;border-radius:6px;padding:9px;margin-top:5px;color:#946219}.receipt-totals .due b{color:#946219}.receipt-notes{margin-top:20px;padding:12px;background:#f8fafb;border-radius:6px}.amount-words{text-align:center;margin-top:22px;color:#687588}.signatures{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin-top:55px}.signatures div{border-top:1px solid #aeb8c3;padding-top:8px;text-align:center;font-size:10px;color:#6c7686}.receipt-footer{text-align:center;margin-top:28px;color:#176b49;font-weight:600}.thermal-paper{max-width:360px;padding:20px 16px;font-family:Arial,'Hind Siliguri',sans-serif;font-size:11px}.thermal-paper .receipt-header h2{font-size:18px}.thermal-paper .receipt-title{font-size:12px}.thermal-paper .receipt-meta{grid-template-columns:1fr;gap:6px}.thermal-paper .receipt-meta>div{display:grid;grid-template-columns:100px 1fr;gap:2px 8px}.thermal-paper .receipt-meta span{margin:3px 0}.thermal-paper .receipt-items th,.thermal-paper .receipt-items td{padding:7px 4px;font-size:9px}.thermal-paper .receipt-items th:nth-child(1),.thermal-paper .receipt-items td:nth-child(1){display:none}.thermal-paper .receipt-items th:nth-child(4),.thermal-paper .receipt-items td:nth-child(4){display:none}.thermal-paper .receipt-totals{width:100%}.thermal-paper .signatures{gap:15px;margin-top:35px}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top left,#e1f5e9,transparent 35%),#f5f7fb}.auth-card{width:min(100%,410px);padding:35px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 15px 50px rgba(28,52,42,.1);text-align:center}.auth-card.wide{width:min(100%,650px)}.auth-card>.brand-mark{margin:0 auto 16px}.auth-card h1{font-size:23px;margin:0}.auth-card>.muted{margin:8px 0 24px}.auth-card .stack{text-align:left}.auth-card .tiny{margin-top:18px}.auth-card .form-grid{text-align:left}.auth-card .alert{text-align:left}.auth-card .btn{margin-top:5px}
@media(max-width:1150px){.sidebar{width:215px}.content{padding:24px 22px}.topbar{padding:20px 22px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-layout{grid-template-columns:minmax(0,1fr) 260px}.service-line{grid-template-columns:minmax(130px,2fr) 65px minmax(90px,1fr) 75px 25px;gap:7px}}
@media(max-width:850px){.sidebar{width:70px;padding:18px 8px}.brand{padding:0 5px 24px}.brand>span:last-child,.sidebar nav a span,.sidebar-bottom>div:not(.admin-avatar),.logout{display:none}.brand-mark{width:42px;height:42px}.sidebar nav a{justify-content:center;padding:13px 4px;font-size:19px}.sidebar-bottom{justify-content:center;padding-top:15px}.topbar h1{font-size:21px}.today{display:none}.invoice-layout{grid-template-columns:1fr}.summary-panel{position:static;order:-1}.two-column,.settings-layout{grid-template-columns:1fr}.service-line{grid-template-columns:minmax(0,1fr) 70px 100px 70px 25px}.service-line .service-select{grid-column:span 2}}
@media(max-width:560px){.sidebar{width:54px}.content{padding:18px 12px}.topbar{padding:17px 13px;min-height:82px}.topbar .btn{font-size:0;padding:10px}.topbar .btn:after{content:'+';font-size:18px}.topbar h1{font-size:18px}.eyebrow{font-size:8px}.stats-grid{gap:9px}.stat-card{padding:13px}.stat-card strong{font-size:18px}.stat-icon{width:32px;height:32px;margin-bottom:9px}.welcome-row{align-items:flex-start}.welcome-row h2{font-size:16px}.welcome-row .btn{font-size:11px;padding:9px}.section-heading h2{font-size:16px}.filter-grid{align-items:stretch}.filter-grid label{min-width:calc(50% - 8px)}.filter-grid .btn{flex:1}.list-summary{flex-direction:column}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.form-panel{padding:16px}.invoice-layout .form-panel{padding:15px}.invoice-layout .panel-title{flex-wrap:wrap}.invoice-layout .panel-title>.btn{margin-left:46px}.service-line{grid-template-columns:minmax(0,1fr) 64px 28px;gap:8px}.service-line .service-select{grid-column:span 2}.service-line label:nth-child(3){grid-column:span 2}.line-total{grid-column:1/3;display:flex;align-items:center;gap:8px;padding:0}.line-total b{margin:0}.remove-line{grid-column:3;grid-row:2;align-self:center}.invoice-paper{padding:24px 17px}.receipt-meta{gap:12px}.receipt-items th,.receipt-items td{padding:8px 5px;font-size:10px}.receipt-items td:nth-child(4),.receipt-items th:nth-child(4){display:none}.print-toolbar{align-items:stretch;flex-direction:column}.print-toolbar .actions{justify-content:flex-end}.auth-card{padding:25px 18px}.auth-card .form-grid{grid-template-columns:1fr}.auth-card .span-2{grid-column:span 1}}
@media print{@page{size:A4;margin:12mm}body{background:#fff!important;color:#000!important;font-size:10pt}.sidebar,.topbar,.footer,.no-print{display:none!important}.app-shell,.main-area,.content{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important}.invoice-paper{max-width:none;margin:0;padding:0;border:0;box-shadow:none;font-size:10pt}.receipt-header h2{font-size:20pt}.receipt-items th,.receipt-items td{padding:8px}.thermal-paper{width:100%;max-width:none;padding:0;font-size:9pt}.thermal-paper .receipt-header h2{font-size:15pt}.thermal-paper .receipt-items th,.thermal-paper .receipt-items td{font-size:8pt;padding:5px 2px}.thermal-paper .receipt-meta{grid-template-columns:1fr}.thermal-paper .receipt-meta>div{grid-template-columns:90px 1fr}.thermal-paper .signatures{margin-top:25px}.receipt-header,.receipt-meta,.receipt-items,.receipt-totals,.receipt-notes,.signatures{break-inside:avoid}a{color:inherit;text-decoration:none}}

/* Logo upload and shared brand mark */
.brand-logo-img{max-width:100%;max-height:100%;object-fit:contain;border-radius:10px}.shop-logo{display:block;margin:0 auto 10px;max-width:150px;max-height:90px;object-fit:contain}.logo-upload-box{border:1px dashed #cbded2;background:#fbfefc;border-radius:12px;padding:16px;display:grid;gap:12px}.current-logo{display:flex;align-items:center;gap:12px;color:#607568;font-size:12px}.current-logo img{max-width:140px;max-height:85px;object-fit:contain;background:#fff;border:1px solid #e3ece6;border-radius:8px;padding:8px}.check-label{display:flex;align-items:center;gap:8px}.check-label input{width:auto}
@media print{.shop-logo{max-width:130px;max-height:75px}}

/* Separate compact brand mark and favicon preview from the full business logo */
.sidebar .brand-mark{overflow:hidden;flex:0 0 43px;width:43px;height:43px}
.sidebar .brand-logo-img{display:block;width:100%;height:100%;max-width:43px;max-height:43px;object-fit:contain;padding:3px;background:#fff;border-radius:9px}
.current-logo img{max-width:140px;max-height:85px}

/* Invoice branding: large logo, no duplicate shop-name heading */
.invoice-main-logo{width:min(100%,720px);max-width:720px!important;max-height:175px!important;height:auto;display:block;object-fit:contain;margin:0 auto 14px}
.invoice-shop-address{font-size:12px!important;font-weight:600;color:#263b32!important;line-height:1.7;margin:8px 0 4px!important}
.invoice-shop-phones{font-size:15px!important;font-weight:800;color:#123c2d!important;letter-spacing:.2px;margin:5px 0 10px!important}
.phone-separator{color:#d62828;padding:0 8px}
.receipt-developer{margin-top:20px;padding:10px 8px 0;border-top:1px solid #dce9e1;font-size:10px;color:#53655c;line-height:1.7}
.receipt-whatsapp{display:inline-block;margin-left:12px;color:#087f5b;font-weight:700}
.app-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px 16px;text-align:center;line-height:1.8}
.app-footer a{color:#b9f2d3;text-decoration:none;font-weight:700}
.developer-credit{display:inline-block;margin-top:5px}
@media(max-width:600px){.invoice-main-logo{max-width:100%!important;max-height:110px!important}.invoice-shop-phones{font-size:12px!important}.receipt-developer{font-size:9px}}
@media print{.invoice-main-logo{max-width:100%!important;max-height:145px!important}.receipt-developer{color:#222!important}.receipt-whatsapp{color:#111!important}.receipt-footer{margin-top:18px!important}}

/* Reference-inspired Bengali invoice / memo design */
.invoice-reference{max-width:1180px;padding:22px 22px 0;border:1px solid #d5e7dd;border-radius:8px;overflow:hidden;color:#142b24;background:#fff;font-family:'Hind Siliguri','Noto Sans Bengali',sans-serif;box-shadow:0 8px 30px rgba(8,75,48,.08)}
.invoice-top-grid{display:grid;grid-template-columns:minmax(0,1fr) 274px;gap:22px;align-items:start}
.invoice-brand-area{min-width:0;text-align:center;padding:2px 0 14px}
.invoice-main-logo{display:block;width:100%;max-width:790px;max-height:180px;height:auto;object-fit:contain;margin:0 auto 8px}
.invoice-fallback-brand{font-size:30px;font-weight:800;color:#08744d;margin:20px 0}
.invoice-service-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-radius:999px;overflow:hidden;margin:8px 0 12px;background:#076442;color:#fff;font-weight:700;font-size:12px}
.invoice-service-strip span{padding:9px 5px;border-right:1px solid #ffffff65;white-space:nowrap}.invoice-service-strip span:first-child{background:#ed1026}.invoice-service-strip span:last-child{border-right:0}
.invoice-address-line{font-size:13px;line-height:1.65;font-weight:600;color:#1a2d38;overflow-wrap:anywhere}.invoice-phone-line{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;margin-top:5px;color:#14233d;font-size:20px;font-weight:800}.invoice-phone-line i{height:24px;border-left:3px solid #e91b2b}
.invoice-status-cards{display:grid;gap:9px}.invoice-status-card{padding:12px 15px;border-radius:12px;background:#edf7f2;border:1px solid #e2f0e8;min-width:0}.invoice-status-card.dark{background:linear-gradient(135deg,#087652,#005337);color:white;border-color:#087652}.invoice-status-card span,.invoice-status-card strong{display:block}.invoice-status-card span{font-size:12px;font-weight:700;margin-bottom:3px}.invoice-status-card strong{font-size:14px;overflow-wrap:anywhere}.invoice-status-pill{display:inline-block;font-style:normal;background:#0da95f;color:white;border-radius:999px;padding:3px 12px;font-size:12px}
.invoice-title-band{position:relative;display:flex;justify-content:center;align-items:center;gap:12px;margin:10px 0 14px;padding:8px 12px;color:#fff;background:linear-gradient(100deg,#08754e,#005537);font-size:23px;font-weight:800;border-radius:8px}.invoice-title-band:before{content:"";height:3px;background:#08744d;position:absolute;left:0;right:0;top:50%;z-index:0}.invoice-title-band span,.invoice-title-band{isolation:isolate}.invoice-title-band span{background:#08744d;padding:0 6px}
.invoice-info-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:16px;margin-bottom:14px}.invoice-info-card{border:1px solid #dbe8e1;border-radius:8px;overflow:hidden}.invoice-info-card h3{margin:0;background:linear-gradient(90deg,#e5f5ed,#f2faf6);color:#076541;font-size:16px;padding:10px 14px;font-weight:800}.invoice-info-card dl{display:grid;grid-template-columns:115px minmax(0,1fr);margin:0}.invoice-info-card dt,.invoice-info-card dd{padding:7px 12px;margin:0;border-bottom:1px solid #e6ece9;font-size:12px;overflow-wrap:anywhere}.invoice-info-card dt{color:#737d8e}.invoice-info-card dd{color:#17263a;font-weight:600}.invoice-info-card dt:last-of-type,.invoice-info-card dd:last-of-type{border-bottom:0}
.invoice-reference-items{border:1px solid #dce8e1;border-radius:6px;overflow:hidden;margin:0 0 14px}.invoice-reference-items thead th{background:linear-gradient(100deg,#08764f,#00563a);color:#fff;font-size:13px;font-weight:800;padding:11px 10px;border-right:1px solid #ffffff55;border-bottom:0}.invoice-reference-items thead th:last-child{border-right:0}.invoice-reference-items tbody tr:nth-child(even){background:#f4f6f7}.invoice-reference-items tbody tr:nth-child(odd){background:#fff}.invoice-reference-items td{padding:9px 10px;font-size:12px;color:#1a2639;border-right:1px solid #e0e8e4;border-bottom:1px solid #e0e8e4}.invoice-reference-items td:last-child{border-right:0}.invoice-reference-items tbody tr:last-child td{border-bottom:0}
.invoice-lower-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:16px;align-items:start}.invoice-special-notes{border:1px solid #dbe7e1;border-radius:8px;overflow:hidden;padding:0 14px 12px}.invoice-special-notes h3{margin:0 -14px 8px;padding:10px 14px;background:linear-gradient(90deg,#e8f6ef,#f7fbf9);color:#086542;font-size:17px;font-weight:800}.invoice-special-notes ol{margin:0;padding-left:25px;color:#19283b;font-size:13px;line-height:1.75}.invoice-special-notes li{padding-left:4px}.invoice-customer-note{padding:8px 10px;margin:8px 0;border-left:3px solid #0a8055;background:#f5faf7;border-radius:4px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.invoice-total-panel{border-radius:8px;overflow:hidden;background:linear-gradient(135deg,#e6f5ee,#f4faf7);border:1px solid #d9ece2}.invoice-total-panel>div:not(.invoice-signature){display:flex;justify-content:space-between;gap:12px;padding:8px 12px;border-bottom:1px solid #d5e6dd;font-size:13px;color:#16372b}.invoice-total-panel b{font-weight:800;white-space:nowrap}.invoice-total-panel .invoice-grand-total{background:linear-gradient(100deg,#08754f,#005638);color:#fff;font-size:16px;font-weight:800}.invoice-total-panel .invoice-grand-total strong{font-size:18px;white-space:nowrap}.invoice-signature{display:grid;justify-items:end;gap:3px;margin:18px 12px 12px;padding-top:12px;border-top:1px dashed #738c80;color:#192c24;font-size:12px}.invoice-signature span{font-weight:700}.invoice-signature strong{font-size:11px}
.invoice-print-date{font-size:12px;font-weight:700;color:#172c23;margin:14px 0 12px}.invoice-designed-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 -22px;padding:13px 20px;background:linear-gradient(110deg,#064b35,#087953);color:#fff;font-size:12px}.invoice-designed-footer a{color:#fff;text-decoration:none;font-weight:700}.invoice-designed-footer a:hover{text-decoration:underline}
@media(max-width:850px){.invoice-top-grid{grid-template-columns:1fr}.invoice-status-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-main-logo{max-height:145px}.invoice-info-grid{grid-template-columns:1fr 1fr}.invoice-lower-grid{grid-template-columns:1fr 1fr}.invoice-phone-line{font-size:17px}}
@media(max-width:600px){.invoice-reference{padding:12px 10px 0}.invoice-main-logo{max-height:95px}.invoice-service-strip{grid-template-columns:repeat(2,minmax(0,1fr));border-radius:8px}.invoice-service-strip span{white-space:normal;font-size:10px}.invoice-address-line{font-size:11px}.invoice-phone-line{font-size:14px;gap:9px}.invoice-phone-line i{height:18px}.invoice-status-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.invoice-status-card{padding:9px}.invoice-status-card span{font-size:10px}.invoice-status-card strong{font-size:11px}.invoice-title-band{font-size:18px}.invoice-info-grid{grid-template-columns:1fr;gap:9px}.invoice-info-card dl{grid-template-columns:95px minmax(0,1fr)}.invoice-info-card dt,.invoice-info-card dd{font-size:11px;padding:6px 8px}.invoice-reference-items thead th,.invoice-reference-items td{padding:7px 5px;font-size:9px}.invoice-lower-grid{grid-template-columns:1fr;gap:10px}.invoice-special-notes ol{font-size:12px}.invoice-designed-footer{margin:0 -10px;padding:12px;font-size:10px;justify-content:center;text-align:center}}
@media print{@page{size:A4;margin:7mm}.invoice-reference{max-width:none;width:100%;padding:5mm 5mm 0;border:1px solid #cddfd5;border-radius:0;box-shadow:none;print-color-adjust:exact;-webkit-print-color-adjust:exact}.invoice-top-grid{grid-template-columns:minmax(0,1fr) 235px;gap:12px}.invoice-main-logo{max-height:125px}.invoice-service-strip{font-size:9px}.invoice-service-strip span{padding:6px 3px}.invoice-address-line{font-size:10px}.invoice-phone-line{font-size:15px}.invoice-status-card{padding:8px 10px}.invoice-status-card span{font-size:9px}.invoice-status-card strong{font-size:11px}.invoice-title-band{font-size:17px;margin:6px 0 9px;padding:5px}.invoice-info-grid{gap:9px;margin-bottom:9px}.invoice-info-card h3{font-size:12px;padding:7px 10px}.invoice-info-card dl{grid-template-columns:90px minmax(0,1fr)}.invoice-info-card dt,.invoice-info-card dd{font-size:9px;padding:5px 8px}.invoice-reference-items{margin-bottom:9px}.invoice-reference-items thead th{font-size:10px;padding:7px}.invoice-reference-items td{font-size:9px;padding:6px 7px}.invoice-lower-grid{gap:9px}.invoice-special-notes h3{font-size:13px;padding:7px 10px}.invoice-special-notes ol{font-size:10px;line-height:1.5}.invoice-total-panel>div:not(.invoice-signature){font-size:10px;padding:6px 8px}.invoice-total-panel .invoice-grand-total{font-size:12px}.invoice-total-panel .invoice-grand-total strong{font-size:14px}.invoice-signature{margin:10px 8px 8px;font-size:10px}.invoice-print-date{font-size:10px;margin:8px 0}.invoice-designed-footer{margin:0 -5mm;padding:9px 12px;font-size:9px}.receipt-header,.receipt-meta,.receipt-items,.receipt-totals,.receipt-notes,.signatures,.invoice-info-grid,.invoice-lower-grid{break-inside:avoid}}
@media print{.thermal-paper.invoice-reference{width:78mm;max-width:78mm;padding:3mm 2mm 0;border:0}.thermal-paper .invoice-top-grid{grid-template-columns:1fr}.thermal-paper .invoice-main-logo{max-height:65px}.thermal-paper .invoice-status-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.thermal-paper .invoice-service-strip{display:none}.thermal-paper .invoice-phone-line{font-size:11px}.thermal-paper .invoice-title-band{font-size:12px}.thermal-paper .invoice-info-grid,.thermal-paper .invoice-lower-grid{grid-template-columns:1fr}.thermal-paper .invoice-reference-items th,.thermal-paper .invoice-reference-items td{font-size:8px;padding:4px 2px}.thermal-paper .invoice-designed-footer{font-size:8px}}

/* FINAL BRANDING FIX: show the uploaded full logo instead of repeating the shop name */
.sidebar .brand.brand-logo-only{display:flex;justify-content:center;align-items:center;padding:0 4px 24px;width:100%;max-width:100%;min-width:0;min-height:74px;}
.sidebar .brand.brand-logo-only .brand-mark{width:100%;height:66px;max-width:190px;max-height:66px;flex:0 1 190px;background:transparent;border-radius:0;overflow:hidden;box-shadow:none;padding:0;}
.sidebar .brand.brand-logo-only .brand-logo-img{width:100%;height:100%;max-width:190px;max-height:66px;object-fit:contain;padding:0;background:transparent;border-radius:0;}
/* Ensure reference invoice styling is applied as a complete, self-contained layout */
.invoice-paper.invoice-reference{width:100%;max-width:1180px;margin:0 auto;background:#fff;color:#142b24;border:1px solid #cfe1d7;border-radius:9px;overflow:hidden;padding:20px 20px 0;font-family:'Hind Siliguri','Noto Sans Bengali',sans-serif;box-shadow:0 8px 30px rgba(8,75,48,.08);}
.invoice-reference .invoice-top-grid{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:16px;align-items:start;}
.invoice-reference .invoice-brand-area{min-width:0;text-align:center;padding:0 0 8px;}
.invoice-reference .invoice-main-logo{display:block;width:100%;max-width:790px;max-height:170px;height:auto;object-fit:contain;margin:0 auto 7px;}
.invoice-reference .invoice-service-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-radius:999px;overflow:hidden;margin:7px 0 9px;background:#076442;color:#fff;font-weight:700;font-size:12px;}
.invoice-reference .invoice-service-strip span{padding:8px 4px;border-right:1px solid #ffffff65;white-space:nowrap;}
.invoice-reference .invoice-service-strip span:first-child{background:#ed1026;}
.invoice-reference .invoice-address-line{font-size:12px;line-height:1.6;font-weight:600;color:#1a2d38;overflow-wrap:anywhere;}
.invoice-reference .invoice-phone-line{display:flex;align-items:center;justify-content:center;gap:17px;flex-wrap:wrap;margin-top:4px;color:#14233d;font-size:19px;font-weight:800;}
.invoice-reference .invoice-phone-line i{height:22px;border-left:3px solid #e91b2b;}
.invoice-reference .invoice-status-cards{display:grid;grid-template-columns:1fr;gap:8px;}
.invoice-reference .invoice-status-card{padding:10px 12px;border-radius:11px;background:#edf7f2;border:1px solid #e2f0e8;min-width:0;}
.invoice-reference .invoice-status-card.dark{background:linear-gradient(135deg,#087652,#005337);color:#fff;border-color:#087652;}
.invoice-reference .invoice-status-card span,.invoice-reference .invoice-status-card strong{display:block;overflow-wrap:anywhere;}
.invoice-reference .invoice-status-card span{font-size:11px;font-weight:700;margin-bottom:3px;}
.invoice-reference .invoice-status-card strong{font-size:13px;line-height:1.45;}
.invoice-reference .invoice-title-band{text-align:center;font-size:20px;font-weight:800;color:#fff;background:linear-gradient(100deg,#087652,#005337);border-radius:11px;padding:7px 12px;margin:5px 0 12px;position:relative;}
.invoice-reference .invoice-info-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:14px;margin-bottom:12px;}
.invoice-reference .invoice-info-card{border:1px solid #d9e6df;border-radius:9px;overflow:hidden;min-width:0;}
.invoice-reference .invoice-info-card h3{font-size:14px;margin:0;padding:9px 12px;background:linear-gradient(90deg,#e8f6ef,#f6fbf8);color:#075e3e;}
.invoice-reference .invoice-info-card dl{display:grid;grid-template-columns:100px minmax(0,1fr);margin:0;}
.invoice-reference .invoice-info-card dt,.invoice-reference .invoice-info-card dd{padding:7px 10px;border-top:1px solid #e7eeea;font-size:12px;overflow-wrap:anywhere;margin:0;}
.invoice-reference .invoice-info-card dt{color:#6d7a88;}
.invoice-reference .invoice-info-card dd{font-weight:600;color:#182c24;}
.invoice-reference .invoice-status-pill{display:inline-block;border-radius:999px;background:#0eaa61;color:#fff;padding:3px 10px;font-style:normal;}
.invoice-reference .invoice-reference-items{width:100%;white-space:normal;border-collapse:separate;border-spacing:0;margin:0 0 12px;border:1px solid #dbe5df;border-radius:7px;overflow:hidden;}
.invoice-reference .invoice-reference-items thead th{background:linear-gradient(100deg,#087652,#005337);color:#fff;font-size:12px;padding:9px 10px;border-bottom:0;}
.invoice-reference .invoice-reference-items tbody tr:nth-child(even){background:#f3f6f5;}
.invoice-reference .invoice-reference-items td{font-size:12px;padding:8px 10px;border-bottom:1px solid #e2e9e5;color:#172c24;}
.invoice-reference .invoice-reference-items tbody tr:last-child td{border-bottom:0;}
.invoice-reference .invoice-lower-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:14px;align-items:start;}
.invoice-reference .invoice-special-notes{border:1px solid #d9e6df;border-radius:9px;padding:0 12px 10px;min-width:0;}
.invoice-reference .invoice-special-notes h3{font-size:15px;color:#075e3e;margin:0 -12px 7px;padding:9px 12px;background:linear-gradient(90deg,#e8f6ef,#fff);}
.invoice-reference .invoice-special-notes ol{margin:7px 0 0;padding-left:23px;font-size:12px;line-height:1.65;}
.invoice-reference .invoice-special-notes li{padding-left:3px;}
.invoice-reference .invoice-customer-note{padding:7px 9px;margin:7px 0;border-left:3px solid #0a8055;background:#f5faf7;border-radius:4px;font-size:12px;line-height:1.6;overflow-wrap:anywhere;}
.invoice-reference .invoice-total-panel{border-radius:9px;overflow:hidden;background:linear-gradient(135deg,#e6f5ee,#f4faf7);border:1px solid #d9ece2;}
.invoice-reference .invoice-total-panel>div:not(.invoice-signature){display:flex;justify-content:space-between;gap:10px;padding:8px 11px;border-bottom:1px solid #d5e6dd;font-size:12px;color:#16372b;}
.invoice-reference .invoice-total-panel b{font-weight:800;white-space:nowrap;}
.invoice-reference .invoice-total-panel .invoice-grand-total{background:linear-gradient(100deg,#08754f,#005638);color:#fff;font-size:15px;font-weight:800;}
.invoice-reference .invoice-total-panel .invoice-grand-total strong{font-size:17px;white-space:nowrap;}
.invoice-reference .invoice-signature{display:grid;justify-items:end;gap:3px;margin:12px 10px 10px;padding-top:9px;border-top:1px dashed #738c80;color:#192c24;font-size:11px;}
.invoice-reference .invoice-signature span{font-weight:700;}
.invoice-reference .invoice-signature strong{font-size:10px;}
.invoice-reference .invoice-print-date{font-size:11px;font-weight:700;color:#172c23;margin:10px 0;}
.invoice-reference .invoice-designed-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 -20px;padding:11px 18px;background:linear-gradient(110deg,#064b35,#087953);color:#fff;font-size:11px;}
.invoice-reference .invoice-designed-footer a{color:#fff;text-decoration:none;font-weight:700;}
@media(max-width:850px){.invoice-reference .invoice-top-grid{grid-template-columns:1fr}.invoice-reference .invoice-status-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-reference .invoice-info-grid,.invoice-reference .invoice-lower-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.invoice-reference{padding:12px 10px 0}.invoice-reference .invoice-main-logo{max-height:100px}.invoice-reference .invoice-service-strip{grid-template-columns:repeat(2,minmax(0,1fr));border-radius:8px}.invoice-reference .invoice-service-strip span{white-space:normal;font-size:10px}.invoice-reference .invoice-phone-line{font-size:14px;gap:9px}.invoice-reference .invoice-status-cards,.invoice-reference .invoice-info-grid,.invoice-reference .invoice-lower-grid{grid-template-columns:1fr}.invoice-reference .invoice-reference-items thead th,.invoice-reference .invoice-reference-items td{padding:6px 4px;font-size:9px}.invoice-reference .invoice-designed-footer{margin:0 -10px;padding:10px;font-size:9px;justify-content:center;text-align:center}}
@media print{
 @page{size:A4 portrait;margin:5mm;}
 html,body{background:#fff!important;margin:0!important;padding:0!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;}
 .sidebar,.topbar,.app-footer,.no-print{display:none!important;}
 .app-shell,.main-area,.content{display:block!important;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important;}
 .invoice-paper.invoice-reference{width:100%!important;max-width:none!important;margin:0!important;padding:4mm 4mm 0!important;border:1px solid #cddfd5!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;font-size:9pt!important;break-inside:avoid;}
 .invoice-reference .invoice-top-grid{grid-template-columns:minmax(0,1fr) 205px!important;gap:8px!important;}
 .invoice-reference .invoice-main-logo{max-height:105px!important;max-width:100%!important;margin-bottom:4px!important;}
 .invoice-reference .invoice-service-strip{font-size:8pt!important;margin:4px 0 5px!important;}
 .invoice-reference .invoice-service-strip span{padding:5px 2px!important;}
 .invoice-reference .invoice-address-line{font-size:8pt!important;line-height:1.35!important;}
 .invoice-reference .invoice-phone-line{font-size:13pt!important;gap:10px!important;}
 .invoice-reference .invoice-status-card{padding:6px 8px!important;}
 .invoice-reference .invoice-status-card span{font-size:7.5pt!important;}
 .invoice-reference .invoice-status-card strong{font-size:8.5pt!important;}
 .invoice-reference .invoice-title-band{font-size:13pt!important;margin:3px 0 6px!important;padding:4px!important;}
 .invoice-reference .invoice-info-grid{grid-template-columns:1.25fr 1fr!important;gap:6px!important;margin-bottom:6px!important;}
 .invoice-reference .invoice-info-card h3{font-size:9pt!important;padding:5px 7px!important;}
 .invoice-reference .invoice-info-card dl{grid-template-columns:70px minmax(0,1fr)!important;}
 .invoice-reference .invoice-info-card dt,.invoice-reference .invoice-info-card dd{font-size:7.5pt!important;padding:3px 5px!important;}
 .invoice-reference .invoice-reference-items{margin-bottom:6px!important;}
 .invoice-reference .invoice-reference-items thead th{font-size:8pt!important;padding:5px!important;}
 .invoice-reference .invoice-reference-items td{font-size:8pt!important;padding:4px 5px!important;}
 .invoice-reference .invoice-lower-grid{grid-template-columns:1.2fr 1fr!important;gap:6px!important;}
 .invoice-reference .invoice-special-notes h3{font-size:9pt!important;padding:5px 7px!important;}
 .invoice-reference .invoice-special-notes ol{font-size:7.5pt!important;line-height:1.35!important;margin:4px 0!important;}
 .invoice-reference .invoice-total-panel>div:not(.invoice-signature){font-size:8pt!important;padding:4px 6px!important;}
 .invoice-reference .invoice-total-panel .invoice-grand-total{font-size:9pt!important;}
 .invoice-reference .invoice-total-panel .invoice-grand-total strong{font-size:10pt!important;}
 .invoice-reference .invoice-signature{margin:6px 5px 5px!important;padding-top:5px!important;font-size:7pt!important;}
 .invoice-reference .invoice-print-date{font-size:7.5pt!important;margin:5px 0!important;}
 .invoice-reference .invoice-designed-footer{margin:0 -4mm!important;padding:6px 8px!important;font-size:7pt!important;}
 .invoice-reference .invoice-info-card,.invoice-reference .invoice-lower-grid,.invoice-reference .invoice-reference-items,.invoice-reference .invoice-status-card{break-inside:avoid!important;}
}

/* Final polish: keep the invoice title clear of decorative horizontal rules. */
.invoice-reference .invoice-title-band:before{display:none!important;content:none!important;}
.invoice-reference .invoice-title-band{position:relative;z-index:1;line-height:1.45;min-height:44px;justify-content:center;background:linear-gradient(100deg,#087652,#005337)!important;}
.invoice-reference .invoice-title-band span{position:relative;z-index:2;background:transparent!important;padding:0 4px!important;}
/* Larger public header logo, with no shop-name text beside it. */
@media(min-width:681px){.brand-logo-only{flex-basis:470px!important;width:470px!important;max-width:43%!important}.brand-logo-only .brandmark{height:82px!important;max-width:470px!important}.brand-logo-only .brandmark img{max-width:470px!important;max-height:82px!important}}
@media(max-width:680px){.brand-logo-only{flex-basis:230px!important;width:230px!important;max-width:48%!important;min-width:130px!important}.brand-logo-only .brandmark{height:56px!important;max-width:230px!important}.brand-logo-only .brandmark img{max-width:230px!important;max-height:56px!important}}

/* Invoice header: compact side logos, prominent shop logo, approval banner */
.invoice-reference .invoice-gov-banner{display:flex;align-items:center;justify-content:center;gap:10px;max-width:560px;margin:0 auto 8px;padding:7px 16px;border-radius:999px;background:linear-gradient(100deg,#07583c,#087953);color:#fff;font-size:14px;font-weight:800;line-height:1.35;text-align:center;}
.invoice-reference .invoice-gov-seal{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#f3d24d;color:#d21f2b;border:2px solid #fff;font-size:15px;}
.invoice-reference .invoice-brand-row{display:grid;grid-template-columns:minmax(72px,130px) minmax(0,1fr) minmax(65px,120px);align-items:center;gap:10px;width:100%;}
.invoice-reference .invoice-side-logo{display:block;width:100%;height:115px;object-fit:contain;object-position:center;}
.invoice-reference .invoice-land-help{max-width:130px;max-height:125px;}
.invoice-reference .invoice-smart-land{max-width:120px;max-height:112px;}
.invoice-reference .invoice-main-brand{display:flex;align-items:center;justify-content:center;min-width:0;}
.invoice-reference .invoice-main-logo{width:100%;max-width:740px;max-height:190px;height:auto;object-fit:contain;margin:0 auto 5px;}
@media(max-width:850px){.invoice-reference .invoice-brand-row{grid-template-columns:72px minmax(0,1fr) 68px;gap:5px}.invoice-reference .invoice-side-logo{height:80px}.invoice-reference .invoice-main-logo{max-height:140px}.invoice-reference .invoice-gov-banner{font-size:12px;padding:6px 10px}}
@media(max-width:600px){.invoice-reference .invoice-brand-row{grid-template-columns:48px minmax(0,1fr) 45px;gap:3px}.invoice-reference .invoice-side-logo{height:55px}.invoice-reference .invoice-main-logo{max-height:90px}.invoice-reference .invoice-gov-banner{font-size:10px;gap:5px;margin-bottom:5px}.invoice-reference .invoice-gov-seal{width:20px;height:20px;flex-basis:20px;font-size:11px}}
@media print{.invoice-reference .invoice-gov-banner{font-size:10pt;margin-bottom:4px;padding:4px 10px}.invoice-reference .invoice-brand-row{grid-template-columns:92px minmax(0,1fr) 84px!important;gap:5px!important}.invoice-reference .invoice-side-logo{height:88px!important}.invoice-reference .invoice-land-help{max-width:92px!important;max-height:90px!important}.invoice-reference .invoice-smart-land{max-width:84px!important;max-height:82px!important}.invoice-reference .invoice-main-logo{max-height:145px!important;width:100%!important}}


/* FINAL ADMIN SIDEBAR OVERRIDE — cache-busted build 20261011-0926 */
html body .app-shell > aside.sidebar {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 248px !important;
  min-width: 248px !important;
  max-width: 248px !important;
  height: auto !important;
  min-height: 100vh !important;
  padding: 18px 15px 16px !important;
  margin: 0 !important;
  transform: none !important;
  order: 0 !important;
}
html body .app-shell > aside.sidebar > a.brand.brand-logo-only {
  position: static !important;
  inset: auto !important;
  order: 0 !important;
  display: flex !important;
  flex: 0 0 74px !important;
  align-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  margin: 0 0 18px !important;
  padding: 0 4px !important;
  justify-content: center !important;
  align-items: center !important;
  transform: none !important;
  overflow: hidden !important;
}
html body .app-shell > aside.sidebar > a.brand.brand-logo-only > .brand-mark {
  display: flex !important;
  flex: 0 1 210px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 210px !important;
  height: 66px !important;
  min-height: 0 !important;
  max-height: 66px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
html body .app-shell > aside.sidebar > a.brand.brand-logo-only .brand-logo-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 210px !important;
  max-height: 66px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
html body .app-shell > aside.sidebar > nav {
  position: static !important;
  order: 1 !important;
  display: grid !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 5px !important;
  transform: none !important;
}
html body .app-shell > aside.sidebar > nav > a {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
}
html body .app-shell > aside.sidebar > .sidebar-bottom {
  position: static !important;
  order: 10 !important;
  flex: 0 0 auto !important;
  margin-top: auto !important;
}
@media (max-width: 850px) {
  html body .app-shell > aside.sidebar {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    padding: 18px 8px !important;
  }
  html body .app-shell > aside.sidebar > a.brand.brand-logo-only {
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    flex-basis: 58px !important;
    margin-bottom: 8px !important;
  }
  html body .app-shell > aside.sidebar > nav > a {
    justify-content: center !important;
    padding: 13px 4px !important;
  }
}
@media (max-width: 560px) {
  html body .app-shell > aside.sidebar {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
  }
}


/* Sticky admin header + developer contact banner; scoped to the admin shell. */
html body .app-shell > .main-area > .topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  min-height: 0;
  padding: 16px 34px 13px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 4px 14px rgba(18,43,35,.045);
}
html body .topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-width: 0;
}
html body .developer-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d5e9df;
  border-radius: 8px;
  background: #eff9f3;
  color: #176b49;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
html body .developer-banner strong { color: #105d40; }
html body .developer-contact { white-space: nowrap; }
html body .developer-contact a { color: #087d50; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1150px) {
  html body .app-shell > .main-area > .topbar { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 850px) {
  html body .app-shell > .main-area > .topbar { padding: 12px 14px; gap: 8px; }
  html body .topbar-main { gap: 10px; }
  html body .developer-banner { font-size: 11px; padding: 7px 8px; }
}
@media (max-width: 560px) {
  html body .app-shell > .main-area > .topbar { padding: 10px 10px; }
  html body .topbar-main { align-items: center; }
  html body .topbar-main .topbar-right { gap: 6px; }
  html body .topbar-main .btn { font-size: 0; padding: 10px; }
  html body .topbar-main .btn:after { content: '+'; font-size: 18px; }
  html body .developer-banner { font-size: 10px; }
}


/* FIXED ADMIN SIDEBAR — keep the sidebar stationary during page scrolling. */
@media screen {
  html body .app-shell > aside.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    z-index: 1200 !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    align-self: auto !important;
  }
  html body .app-shell > .main-area {
    margin-left: 248px !important;
    min-width: 0 !important;
    width: calc(100% - 248px) !important;
  }
  html body .app-shell > .main-area > .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1100 !important;
  }
}
@media (max-width: 850px) {
  html body .app-shell > .main-area {
    margin-left: 70px !important;
    width: calc(100% - 70px) !important;
  }
}
@media (max-width: 560px) {
  html body .app-shell > .main-area {
    margin-left: 54px !important;
    width: calc(100% - 54px) !important;
  }
}
@media print {
  html body .app-shell > aside.sidebar,
  html body .app-shell > .main-area > .topbar {
    display: none !important;
  }
  html body .app-shell > .main-area {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }
}
