:root{--ink:#17202a;--muted:#6b7280;--line:#e5e7eb;--paper:#fff;--bg:#f5f7f4;--brand:#0c6b58;--brand2:#0a5849;--soft:#e7f3ef;--danger:#b42318;--shadow:0 14px 40px rgba(22,32,42,.08)}
[hidden]{display:none!important}
.report-export-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:8px 0;padding:8px 10px;border:1px solid #d8e6e1;border-radius:10px;background:#f5faf8}.report-export-toolbar>span{margin-right:auto;color:#60736d;font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.report-export-toolbar button{min-height:34px;padding:7px 11px;white-space:nowrap;font-size:11px}.report-view-dialog{width:min(1220px,98vw);max-height:96vh;padding:0;overflow:hidden;background:#dfe5e2}.report-view-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:14px 18px;border-bottom:1px solid #c8d5d0;background:#fff}.report-view-head-actions{display:flex;align-items:center;gap:8px}.report-view-head p,.report-view-head h2{margin:0}.report-view-head p{color:var(--brand);font-size:10px;font-weight:900;letter-spacing:.12em}.report-view-head h2{margin-top:3px;font-size:19px}.report-view-canvas{max-height:calc(96vh - 76px);padding:22px;overflow:auto}.report-a4-sheet{box-sizing:border-box;width:208.28mm;min-height:279.4mm;margin:0 auto;padding:14mm 12mm;background:#fff;color:#172033;box-shadow:0 8px 30px rgba(16,42,39,.18)}.report-a4-sheet.landscape{width:279.4mm;min-height:208.28mm}.report-a4-sheet>header{padding-bottom:8mm;text-align:center}.report-a4-sheet>header h2{margin:0;color:#173e35;font-size:18pt}.report-view-subtitle{margin-top:3mm;color:#52615d;font-size:8pt;line-height:1.5}.report-view-subtitle.structured{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2mm;margin-top:5mm;text-align:left}.report-view-subtitle.structured span{padding:2.3mm 3mm;border:1px solid #c6d8d1;border-radius:2mm;background:#f3f8f6;color:#243d37;font-weight:700}.report-view-subtitle.structured span:nth-child(3){grid-column:span 2}.report-view-subtitle.structured span:last-child{grid-column:span 2}.report-view-table-wrap{overflow:visible}.report-view-table-wrap table{width:100%;min-width:0;font-size:8pt}.report-view-table-wrap th{background:#e2f0eb;color:#173e35}.report-view-table-wrap td,.report-view-table-wrap th{border:1px solid #82978f;padding:5px 6px;vertical-align:top}.report-a4-sheet.landscape .report-view-table-wrap table{font-size:7.5pt}@media(max-width:600px){.report-export-toolbar{display:grid;grid-template-columns:repeat(3,1fr)}.report-export-toolbar>span{grid-column:1/-1}.report-export-toolbar button{width:100%;padding:7px 5px}.report-view-dialog{width:99vw;max-height:97vh}.report-view-head{padding:11px 12px}.report-view-head-actions{width:100%;justify-content:flex-end}.report-view-head h2{font-size:16px}.report-view-canvas{max-height:calc(97vh - 68px);padding:10px}.report-a4-sheet{margin:0}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Segoe UI",Arial,sans-serif}body.workspace-page::after,body.admin-page::after{content:"";position:fixed;inset:0;z-index:4;background:transparent url("branding/royal-agrovet-logo.png") center/420px auto no-repeat;opacity:.035;pointer-events:none} .topbar{display:flex;justify-content:space-between;align-items:center;padding:28px max(24px,calc((100vw - 1200px)/2));background:#102a27;color:#fff}.topbar h1{margin:2px 0 0;font-size:clamp(24px,4vw,38px)}.eyebrow{margin:0;color:#8fd7c6;font-size:12px;letter-spacing:.18em}.shell{max-width:1200px;margin:28px auto;padding:0 20px}.tabs{display:flex;gap:8px;margin-bottom:20px;overflow:auto}.tab,.ghost,.soft,.primary{border:0;border-radius:10px;padding:11px 17px;font:inherit;font-weight:700;cursor:pointer}.tab{background:transparent;color:var(--muted)}.tab.active{background:var(--paper);color:var(--brand);box-shadow:0 4px 16px rgba(0,0,0,.06)}.primary{background:var(--brand);color:white}.primary:hover{background:var(--brand2)}.soft{background:var(--soft);color:var(--brand)}.ghost{background:#f3f4f6;color:var(--ink)}.view{display:none}.view.active{display:block}.grid{display:grid;gap:18px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.compact{gap:12px}.card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--shadow)}.card h2{font-size:20px;margin:0 0 18px}.items-card{margin-top:18px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.section-head h2,.section-head p{margin:0}label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:700;margin-bottom:14px}input,textarea{width:100%;border:1px solid #d6d9dc;border-radius:9px;padding:11px 12px;font:inherit;color:var(--ink);background:#fff}input:focus,textarea:focus{outline:3px solid rgba(12,107,88,.13);border-color:var(--brand)}textarea{resize:vertical}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:650px}th,td{text-align:left;padding:13px 10px;border-bottom:1px solid var(--line)}th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.items-table input{min-width:90px;margin:0}.items-table td:first-child input{min-width:220px}.items-table .size{min-width:110px}.remove{border:0;background:#feeceb;color:var(--danger);border-radius:8px;width:34px;height:34px;cursor:pointer}.totals{margin:22px 0 8px auto;max-width:480px}.totals>label{display:grid;grid-template-columns:1fr 150px;align-items:center}.totals dl{border-top:1px solid var(--line);padding-top:10px}.totals dl div{display:flex;justify-content:space-between;padding:7px 0}.totals dd{margin:0;font-weight:800}.totals .grand{font-size:22px;color:var(--brand);border-top:2px solid var(--ink);margin-top:6px;padding-top:13px}.actions,.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.muted{color:var(--muted);font-size:14px}.report-filter{align-items:end}.report-filter label{margin:0;min-width:150px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}.stats div{background:#f6faf8;border:1px solid #dcebe6;padding:18px;border-radius:14px}.stats span{display:block;color:var(--muted);font-size:13px}.stats strong{display:block;margin-top:7px;font-size:24px}dialog{width:min(850px,94vw);border:0;border-radius:18px;padding:0;box-shadow:0 30px 80px rgba(0,0,0,.28)}dialog::backdrop{background:rgba(10,20,18,.6)}#invoicePreview{padding:35px}.invoice-sheet .invoice-head{display:flex;justify-content:space-between;gap:24px;border-bottom:3px solid var(--brand);padding-bottom:22px}.invoice-sheet h2{font-size:30px;margin:0;color:var(--brand)}.invoice-sheet h3{margin:6px 0}.invoice-meta{text-align:right}.invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:35px;margin:30px 0}.invoice-parties p{white-space:pre-line}.invoice-sheet .invoice-total{margin-left:auto;width:320px}.invoice-sheet .invoice-total div{display:flex;justify-content:space-between;padding:5px}.invoice-sheet .invoice-total .grand{border-top:2px solid;margin-top:5px;padding-top:10px;font-size:19px;font-weight:800}.dialog-actions{padding:18px 25px;background:#f5f5f5;margin:0}#toast{position:fixed;right:24px;bottom:24px;transform:translateY(120px);opacity:0;background:#17202a;color:#fff;padding:13px 18px;border-radius:10px;transition:.25s;z-index:5}#toast.show{transform:none;opacity:1}.empty{text-align:center;color:var(--muted);padding:28px}.link-btn{border:0;background:none;color:var(--brand);font-weight:700;cursor:pointer;padding:4px}
.items-table select{min-width:175px;margin:0}.items-table td:first-child select{min-width:230px}.available-stock{display:inline-block;min-width:72px;padding:7px 9px;border-radius:8px;background:#e7f7ef;color:#087443;text-align:center}.available-stock.stock-empty{background:#f3f4f6;color:#68717a}.available-stock.stock-short{background:#feeceb;color:var(--danger)}
.user-menu{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.user-menu span{font-size:14px;color:#cde5df}.user-menu a{text-decoration:none}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#102a27,#17483f)}.auth-card{width:min(440px,100%);background:#fff;padding:34px;border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.25)}.auth-card h1{margin:6px 0}.eyebrow.dark{color:var(--brand)}.full{width:100%}.alert{padding:12px 14px;margin:15px 0;border-radius:9px;background:#feeceb;color:var(--danger);font-weight:700}.card hr{border:0;border-top:1px solid var(--line);margin:28px 0}.tag-list{display:flex;flex-wrap:wrap;gap:8px}.tag-list span{background:var(--soft);color:var(--brand);border-radius:999px;padding:8px 12px;font-weight:700}.admin-users{margin-top:18px}select{width:100%;border:1px solid #d6d9dc;border-radius:9px;padding:11px 12px;font:inherit;background:#fff}.status{display:inline-block;padding:5px 9px;border-radius:999px;background:#f3f4f6;color:var(--muted);font-size:12px}.status.on{background:#e5f7ef;color:#087443}

.notification-center{position:relative}.notification-bell{position:relative;width:42px;height:42px;border:1px solid rgba(255,255,255,.25);border-radius:12px;background:rgba(255,255,255,.1);color:#fff;font-size:19px;cursor:pointer}.notification-bell:hover{background:rgba(255,255,255,.18)}.notification-bell b{position:absolute;right:-5px;top:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#d94135;color:#fff;font:800 11px/20px "Segoe UI",Arial,sans-serif}.notification-panel{position:absolute;right:0;top:50px;z-index:100;width:min(390px,calc(100vw - 28px));overflow:hidden;border:1px solid #dce6e2;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 24px 70px rgba(0,0,0,.26)}.notification-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid var(--line)}.notification-panel-head div{display:flex;flex-direction:column}.notification-panel-head small{color:var(--muted)}.notification-panel-head button{border:0;background:none;color:var(--brand);font-weight:700;cursor:pointer}.notification-list{max-height:360px;overflow:auto}.notification-item{display:flex;flex-direction:column;gap:4px;padding:13px 16px;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}.notification-item:hover{background:#f6faf8}.notification-item.unread{border-left:4px solid var(--brand);background:#eff9f5}.notification-item span{color:#46534f;font-size:13px;line-height:1.45}.notification-item small{color:var(--muted)}.notification-empty{margin:0;padding:30px 16px;text-align:center;color:var(--muted)}.enable-alerts{width:100%;border:0;border-top:1px solid var(--line);padding:12px;background:#f5faf8;color:var(--brand);font-weight:800;cursor:pointer}.enable-alerts:disabled{color:#527069;cursor:default}.install-app-button{white-space:nowrap}
.subheading{margin:24px 0 10px}.sales-types{margin-top:0}.sale-badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#eef1f4;color:#45515e;font-size:12px;font-weight:800;white-space:nowrap}.sale-badge.cash{background:#e5f7ef;color:#087443}.sale-badge.credit{background:#fff2cc;color:#825b00}.sale-badge.table_cash{background:#e8efff;color:#2456a6}.sale-badge.tour_sales{background:#f4e9ff;color:#7135a6}.sale-badge.mango_bag{background:#fff0dc;color:#9a4d00}
.terms-note{margin:-4px 0 14px;padding:10px 12px;border-left:3px solid #d99a00;background:#fff8df;color:#704f00;font-size:13px;line-height:1.5}.payment-badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#fff2cc;color:#825b00;font-size:12px;font-weight:800}.payment-badge.paid,.payment-badge.money_adjusted{background:#e5f7ef;color:#087443}.dealer-ledger-adjustment{background:#f0f8ff}.dealer-ledger-return,.dealer-ledger-return td{background:#ffe5e5!important;color:#b42318!important}.dealer-ledger-return td{border-top:1px solid #e7908a!important;border-bottom:1px solid #e7908a!important;font-weight:800}.dealer-ledger-return td:nth-child(2) b,.dealer-ledger-return td:nth-child(5),.dealer-ledger-return td:nth-child(6){color:#c00000!important;font-weight:900}.converted-note{display:block;margin-top:5px;color:#825b00;font-size:11px}.link-btn+.link-btn{margin-left:5px}
.delete-challan{color:#a52a1f}
.credit-terms{border-left-color:#4b67c7;background:#eef2ff;color:#30478f}
.ledger-note{margin:0 0 14px;padding:10px 12px;border:1px solid #dce3e8;border-radius:9px;background:#f7f9fa;color:#4b5563;font-size:13px;line-height:1.5}.locked-note{display:block;margin-top:5px;color:#65717d;font-size:11px}
.ledger-note>span{display:flex;align-items:center;gap:9px}.ledger-note>span input[type="checkbox"]{flex:0 0 auto;width:18px;height:18px;margin:0}.ledger-note>small{display:block;margin-top:4px;font-weight:500}
#invoiceNumber{text-transform:uppercase;letter-spacing:.04em}
.invoice-number-availability{display:block;margin-top:2px;padding:6px 8px;border-radius:7px;background:#f1f3f4;color:#65717d;font-size:10px;font-weight:800;line-height:1.35}.invoice-number-availability.checking{background:#eef2ff;color:#30478f}.invoice-number-availability.available{background:#e5f7ef;color:#087443}.invoice-number-availability.used,.invoice-number-availability.invalid{background:#feeceb;color:#a3291f}#invoiceNumber.invoice-number-available{border-color:#2b8b68;background:#f4fff9;box-shadow:0 0 0 3px rgba(43,139,104,.12)}#invoiceNumber.invoice-number-used{border-color:#c45147;background:#fff7f6;box-shadow:0 0 0 3px rgba(196,81,71,.12)}
.book-filter{align-items:end}.book-filter label{margin:0;min-width:145px}.book-stats{margin-top:18px}
.festival-sms-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.festival-sms-card table input[type="checkbox"]{width:18px;height:18px;min-height:0;margin:0}.festival-sms-card th:first-child,.festival-sms-card td:first-child{width:52px;text-align:center}
.payment-dialog{width:min(520px,94vw);padding:28px}.payment-dialog h2{margin-top:0}.payment-dialog .dialog-actions{margin:18px -28px -28px;padding:18px 28px}.payment-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.payment-summary div{padding:12px;border-radius:10px;background:#f5f7f6}.payment-summary span{display:block;color:var(--muted);font-size:11px}.payment-summary strong{display:block;margin-top:5px;font-size:15px}.payment-badge.partial{background:#e8efff;color:#2456a6}
.conversion-banner{display:flex;flex-direction:column;gap:5px;margin:22px 0;padding:13px 15px;border:1px solid #e5c76a;border-radius:10px;background:#fff8df;color:#704f00}.conversion-banner span{font-size:13px;line-height:1.5}.retained-note,.credit-collection-note{display:block;margin-top:4px;color:#30478f;font-size:10px;font-weight:700}
.commission-status{display:inline-block;max-width:180px;padding:5px 8px;border-radius:8px;background:#eef2ff;color:#30478f;font-size:11px;font-weight:700;line-height:1.4}.commission-status.due{background:#feeceb;color:#a3291f}.commission-status.earned{background:#e7f6ed;color:#18733c}.commission-status.not_applicable{background:#f1f3f4;color:#65717d}
.running-outstanding{margin:12px 0;padding:12px 14px;border:1px solid #cbd9f5;border-radius:12px;background:#f4f7ff}.running-outstanding>span{display:block;margin-bottom:8px;color:#30478f;font-size:12px;font-weight:800;text-transform:uppercase}.running-outstanding>div{display:flex;justify-content:space-between;gap:15px;padding:4px 0}.running-outstanding p{margin:7px 0 0;color:#65717d;font-size:11px;line-height:1.45}
.challan-layout{align-items:start}.challan-invoice-picker{max-height:430px;overflow:auto}.challan-check{width:18px;height:18px}.assigned-note{display:block;margin-top:3px;color:#8a5b00;font-size:10px}.challan-sheet{max-width:900px;margin:auto;padding:28px;background:#fff;color:#172033}.challan-title{text-align:center;border-bottom:2px solid #172033;padding-bottom:14px;margin-bottom:18px}.challan-title h2{margin:0 0 5px}.challan-meta{display:flex;justify-content:space-between;gap:20px;margin-bottom:18px}.challan-meta div:last-child{text-align:right}.challan-product-summary-table{width:100%;border:1px solid #172033;border-collapse:collapse}.challan-product-summary-table th,.challan-product-summary-table td{border:1px solid #172033;padding:7px 8px}.challan-product-summary-table th{background:#e4eeeb}.challan-product-summary-table th:nth-child(1),.challan-product-summary-table td:nth-child(1){width:42px;text-align:center}.challan-product-summary-table th:nth-child(2){width:28%}.challan-product-summary-table th:nth-child(3){width:22%}.challan-product-summary-table th:nth-child(4){width:30%}.challan-product-summary-table th:last-child,.challan-product-summary-table td:last-child{text-align:right}.challan-invoice-breakdown{display:block;margin:2px 0;color:#52615d;font-size:11px}.challan-invoice-breakdown b{color:#172033}.challan-summary{margin-left:auto;max-width:360px}.challan-summary div{display:flex;justify-content:space-between;gap:20px;padding:6px 0;border-bottom:1px solid #dce2ea}.challan-signatures{display:flex;justify-content:space-between;gap:50px;margin-top:70px}.challan-signatures span{min-width:180px;padding-top:8px;border-top:1px solid #172033;text-align:center}
.challan-invoice-date-filter{margin:12px 0;padding:12px;border:1px solid #cbded7;border-radius:12px;background:#f7fbf9}.challan-invoice-date-filter legend{padding:0 6px;color:var(--brand);font-weight:800}.challan-date-filter-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px;color:var(--muted);font-size:12px}.challan-invoice-date-options{display:flex;flex-wrap:wrap;gap:8px;max-height:145px;overflow:auto}.challan-date-choice{display:flex;align-items:center;gap:7px;margin:0;padding:8px 10px;border:1px solid #c8d9d3;border-radius:9px;background:#fff;cursor:pointer}.challan-date-choice:has(input:checked){border-color:var(--brand);background:#e6f5f0;color:var(--brand);font-weight:800}.challan-date-choice input{width:18px;height:18px;margin:0}
@page challan{size:8.2in 11in;margin:15mm}
.challan-export-table{display:none!important}.challan-continuation-title{margin:0 0 7px;font-weight:800;text-align:right}.challan-continuation-page{margin-top:18px}
@media print{.challan-sheet{page:challan;box-sizing:border-box;width:178.28mm;max-width:178.28mm;margin:0 auto;padding:0;font-size:8pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}.challan-title{padding-bottom:2mm;margin-bottom:2mm}.challan-title h2{font-size:13pt}.challan-meta{gap:3mm;margin-bottom:2mm;font-size:8pt}.challan-product-summary-table{border:1px solid #000;font-size:7pt;line-height:1.08}.challan-product-summary-table th,.challan-product-summary-table td{border:1px solid #000;padding:.7mm 1mm}.challan-product-summary-table thead{display:table-header-group}.challan-product-summary-table tr{break-inside:avoid;page-break-inside:avoid}.challan-invoice-breakdown{display:inline;margin:0;font-size:6.5pt}.challan-invoice-breakdown+.challan-invoice-breakdown::before{content:' | '}.challan-continuation-page{break-before:page;page-break-before:always;margin:0;padding:0}.challan-continuation-title{margin:0 0 2mm;font-size:8pt}.challan-summary{font-size:8pt}.challan-summary div{padding:1mm 0}.challan-signatures{break-inside:avoid;page-break-inside:avoid;margin-top:14mm;font-size:8pt}}
.admin-setup-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.designation-type{display:block;margin-top:3px;color:#65717d;font-size:10px}.area-hierarchy{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.area-node{padding:16px;border:1px solid #dce3e8;border-radius:12px;background:#f7f9fa}.area-node h3{margin:0 0 12px;color:var(--brand)}.manager-node{margin-top:10px;padding:11px;border-left:3px solid var(--brand);background:#fff}.manager-node strong,.manager-node small{display:block}.manager-node ul{margin:8px 0 0;padding-left:20px;color:#4b5563}.manager-node li,.hierarchy-person-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.manager-node li+li{margin-top:7px}.manager-node li>.master-row-actions,.hierarchy-person-head>.master-row-actions{flex:0 0 auto}.manager-node .master-row-actions button{padding:5px 7px;font-size:10px}.unassigned-node{border-left-color:#d99a00}
.dashboard-tables{margin-top:18px;align-items:start}.area-dashboard-stats{grid-template-columns:repeat(4,1fr)}
.statement-card{margin-top:18px}.statement-stats{grid-template-columns:repeat(5,1fr)}.product-statement-stats{grid-template-columns:repeat(4,1fr)}
.admin-search{min-width:300px;margin:0}.admin-users table{font-size:13px}.admin-users td{vertical-align:top}input[readonly],textarea[readonly],select:disabled{background:#f3f5f4;color:#46515a}
.dealer-code-entry{position:relative;display:flex;width:100%;align-items:stretch}.dealer-code-prefix{display:flex;align-items:center;flex:0 0 auto;border:1px solid #bfd0ca;border-right:0;border-radius:9px 0 0 9px;padding:0 12px;background:#e8f0ed;color:#173e35;font-weight:800;letter-spacing:.02em}.dealer-code-entry input{min-width:0;border-radius:0 9px 9px 0}.dealer-code-entry input:only-child{border-radius:9px}.dealer-code-entry:focus-within .dealer-code-prefix{border-color:#27826e;background:#dfede8;box-shadow:0 0 0 4px rgba(39,130,110,.13)}.dealer-code-entry:focus-within input{box-shadow:0 0 0 4px rgba(39,130,110,.13),inset 0 1px 2px rgba(16,42,39,.03)}.dealer-code-suggestions{position:absolute;left:0;top:calc(100% + 6px);z-index:180;width:100%;min-width:230px;max-height:236px;overflow:auto;border:1px solid #bfd7cf;border-radius:11px;padding:5px;background:#fff;box-shadow:0 12px 28px rgba(16,42,39,.18)}.dealer-code-suggestions[hidden]{display:none!important}.dealer-code-suggestions button{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px;align-items:center;width:100%;min-height:40px;border:0;border-bottom:1px solid #edf2f0;border-radius:7px;padding:7px 9px;background:#fff;color:#30423d;text-align:left;cursor:pointer}.dealer-code-suggestions button:last-child{border-bottom:0}.dealer-code-suggestions button:hover,.dealer-code-suggestions button.active{background:#e8f5f0;color:#075c4b}.dealer-code-suggestions button b{color:#0c6b58;font-size:11px;letter-spacing:.02em}.dealer-code-suggestions button span{overflow:hidden;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.dealer-code-suggestions p{margin:0;padding:12px;color:#6b7b76;font-size:11px;text-align:center}
.stock-product-search{position:relative;display:block;width:100%}.stock-product-suggestions{position:absolute;left:0;top:calc(100% + 5px);z-index:190;width:100%;max-height:210px;overflow:auto;border:1px solid #bfd7cf;border-radius:10px;padding:4px;background:#fff;box-shadow:0 12px 28px rgba(16,42,39,.18)}.stock-product-suggestions[hidden]{display:none!important}.stock-product-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:38px;border:0;border-bottom:1px solid #edf2f0;border-radius:7px;padding:7px 9px;background:#fff;color:#30423d;text-align:left;cursor:pointer}.stock-product-suggestions button:last-child{border-bottom:0}.stock-product-suggestions button:hover,.stock-product-suggestions button.active{background:#e8f5f0;color:#075c4b}.stock-product-suggestions button b{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.stock-product-suggestions button span{flex:0 0 auto;color:#6b7b76;font-size:10px;font-weight:700}.stock-product-suggestions p{margin:0;padding:11px;color:#6b7b76;font-size:11px;text-align:center}
.invoice-image-import-card{margin-bottom:18px}.invoice-image-controls{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:12px;align-items:stretch}.invoice-image-controls label{margin:0}.invoice-image-dropzone{display:grid;gap:4px;min-height:70px;padding:12px 14px;border:2px dashed #9bbcb2!important;border-radius:11px;background:#f5faf8;cursor:pointer;align-content:center;transition:.15s ease}.invoice-image-dropzone span{color:var(--muted);font-size:12px;font-weight:600}.invoice-image-dropzone input{margin-top:5px}.invoice-image-dropzone:hover,.invoice-image-dropzone:focus,.invoice-image-dropzone.dragging{outline:none;border-color:var(--brand)!important;background:#e9f6f1;box-shadow:0 0 0 3px rgba(23,112,90,.12)}.invoice-image-workspace{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);gap:18px;margin-top:18px}.invoice-image-preview{display:grid;place-items:center;min-height:280px;padding:12px;border:1px solid #d6e2de;border-radius:12px;background:#edf3f0}.invoice-image-preview img{display:block;max-width:100%;max-height:520px;object-fit:contain}.invoice-image-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:12px}.invoice-image-summary>div{padding:10px 11px;border:1px solid #dce7e3;border-radius:9px;background:#f7faf8}.invoice-image-summary span{display:block;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}.invoice-image-summary strong{display:block;margin-top:4px;font-size:13px}.invoice-image-issues{margin:0 0 12px;padding:11px 13px;border:1px solid #f0d7a7;border-radius:9px;background:#fff8e8;color:#6d4b06}.invoice-image-issues.ok{border-color:#cce4da;background:#f1faf7;color:#17624f}.invoice-image-issues ul{margin:0;padding-left:19px}.invoice-image-result table{min-width:720px;font-size:12px}.invoice-image-raw{margin-top:12px}.invoice-image-raw summary{cursor:pointer;color:var(--brand);font-weight:800}.invoice-image-raw pre{max-height:220px;overflow:auto;padding:12px;border-radius:9px;background:#102a27;color:#e8f7f2;white-space:pre-wrap;font:12px/1.5 Consolas,monospace}.ocr-review-needed{color:#9a5d00;font-weight:800}.ocr-review-ready{color:#17705a;font-weight:800}.ocr-draft-review-row{background:#fff8e8!important}.ocr-draft-review-row .qty,.ocr-draft-review-row .size{border-color:#d89b2b}
.invoice-image-format{margin-top:10px;padding:9px 12px;border:1px solid #dce7e3;border-radius:9px;background:#f8fbfa}.invoice-image-format summary{cursor:pointer;color:var(--brand);font-weight:800}.invoice-image-format pre{margin:10px 0 6px;padding:11px;border-radius:8px;background:#102a27;color:#e8f7f2;white-space:pre-wrap;font:12px/1.5 Consolas,monospace}.invoice-image-format p{margin:0;color:var(--muted);font-size:12px}
@media(max-width:900px){.invoice-image-workspace{grid-template-columns:1fr}.invoice-image-summary{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.invoice-image-controls{grid-template-columns:1fr}.invoice-image-summary{grid-template-columns:1fr}}
.area-manager-power-grid{display:grid;grid-template-columns:repeat(2,minmax(118px,1fr));gap:6px;min-width:255px}.area-manager-power-grid button{padding:7px 9px;border-radius:8px;font-size:11px;white-space:nowrap}
.dealer-master-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px;padding:13px;border:1px solid #cfe2dc;border-radius:12px;background:#f4faf8}.dealer-master-details[hidden]{display:none}.dealer-master-details div{min-width:0}.dealer-master-details small{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em}.dealer-master-details strong{display:block;margin-top:3px;font-size:13px;overflow-wrap:anywhere}.dealer-master-details .dealer-officer{grid-column:1/-1}.product-admin-grid{margin-top:18px;align-items:start}.category-tree{display:grid;gap:10px}.category-tree article{padding:12px 14px;border:1px solid #dce3e8;border-radius:10px;background:#f7f9fa}.category-tree ul{margin:8px 0 0;padding-left:22px;color:#4b5563}.product-size-tag{display:inline-block;margin:2px 4px 2px 0;padding:3px 7px;border-radius:999px;background:#eef2ff;color:#30478f;font-size:11px;white-space:nowrap}
.stock-stats{grid-template-columns:repeat(6,1fr)}.negative-stock{color:var(--danger)}.stock-admin-grid,.production-admin-grid{margin-top:18px;align-items:start}.stock-entry-table{max-height:480px}.stock-entry-table td{vertical-align:top}.production-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0}.production-stats div{padding:12px}.production-stats strong{font-size:19px}.production-admin-grid .section-head label{min-width:145px;margin:0}.product-movement-stats{grid-template-columns:repeat(6,minmax(0,1fr))}.product-movement-table-wrap table{min-width:1500px}.product-movement-table-wrap td{vertical-align:top}.payment-badge.movement-negative{background:#feeceb;color:#a3291f}.territory-movement-stats{grid-template-columns:repeat(8,minmax(0,1fr))}.movement-report-section{margin-top:24px}.movement-report-section h3{margin:0 0 10px;color:#173e35}.movement-report-section table{min-width:980px}.territory-dealer-movement-wrap table{min-width:1450px}.territory-dealer-movement-wrap td{vertical-align:top}
@media(max-width:1100px){.territory-movement-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.product-movement-stats,.territory-movement-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.product-movement-stats,.territory-movement-stats{grid-template-columns:1fr 1fr}.product-movement-stats div,.territory-movement-stats div{padding:12px}.product-movement-stats strong,.territory-movement-stats strong{font-size:18px}}
.sms-admin-grid{margin-top:18px;align-items:start}.sms-enable{flex-direction:row;align-items:center}.sms-enable input{width:18px;height:18px}.sms-log-table{max-height:480px}.sms-log-table table{min-width:1180px}.sms-message-text{min-width:260px;max-width:420px;white-space:normal;overflow-wrap:anywhere;line-height:1.45}.retry-sms-button{white-space:nowrap}.status.sms-failed{background:#feeceb;color:var(--danger)}
/* Invoice Quantity is entered by typing only; hide native number spinners. */
.qty{-moz-appearance:textfield}.qty::-webkit-inner-spin-button,.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.monthly-statement-grid{margin-top:22px;align-items:start}.monthly-statement-grid h3{margin:0 0 12px}.monthly-statement-grid table{min-width:720px}
.current-dues-card{margin-bottom:18px}.current-dues-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.current-dues-guide div{padding:10px 12px;border:1px solid #d7e4df;border-radius:10px;background:#f7faf9}.current-dues-guide strong,.current-dues-guide span{display:block}.current-dues-guide strong{color:#173f36;font-size:12px}.current-dues-guide span{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4}.current-dues-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:18px;align-items:start;margin-top:18px}.current-dues-table{min-width:1080px}.current-dues-table th{padding:12px 10px;background:#1c273b;color:#fff;font-size:11px;line-height:1.35;letter-spacing:.025em;vertical-align:middle;white-space:normal}.current-dues-table th:first-child{min-width:175px}.current-dues-table td:not(:first-child),.current-dues-table th:not(:first-child){text-align:right}.current-dues-summary{overflow:hidden;border:1px solid #cfd7df;border-radius:12px;background:#fff}.current-dues-summary h3{margin:0;padding:12px 14px;background:#1c273b;color:#fff}.current-dues-summary div{display:flex;justify-content:space-between;gap:12px;padding:10px 14px;border-top:1px solid #e2e7eb}.current-dues-summary span{color:var(--muted)}.current-dues-summary .total{background:#f0f5f4}.current-dues-summary .total span,.current-dues-summary .total strong{color:#142a25;font-weight:900}.current-dues-summary small{display:block;padding:10px 14px;color:var(--muted)}.current-dues-dialog{width:min(1120px,96vw)}.current-dues-sheet{padding:12px}.current-dues-sheet header{text-align:center;margin-bottom:16px}.current-dues-sheet header h2{margin:4px 0}.current-dues-sheet header p{margin:4px 0;color:var(--muted)}
.current-dues-search{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;align-items:end;gap:9px;margin-top:14px;padding:12px;border:1px solid #d7e4df;border-radius:12px;background:#f7faf9}.current-dues-search-field{position:relative;min-width:0}.current-dues-search-field label{margin:0 0 6px}.current-dues-suggestions{position:absolute;z-index:40;top:calc(100% + 5px);left:0;right:0;max-height:260px;overflow-y:auto;border:1px solid #b9d2ca;border-radius:11px;background:#fff;box-shadow:0 12px 28px rgba(20,48,42,.18)}.current-dues-suggestions[hidden]{display:none}.current-dues-suggestions button{display:block;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #e7eeeb;border-radius:0;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.current-dues-suggestions button:last-child{border-bottom:0}.current-dues-suggestions button:hover,.current-dues-suggestions button:focus{background:#edf8f4;outline:0}.current-dues-suggestions strong,.current-dues-suggestions span{display:block}.current-dues-suggestions strong{color:var(--brand);font-size:13px}.current-dues-suggestions span{margin-top:2px;color:var(--muted);font-size:11px}.current-dues-suggestions p{margin:0;padding:12px;color:var(--muted);font-size:12px}.current-dues-officer-link{display:block;width:100%;border:0;padding:0;background:transparent;color:var(--brand);font:inherit;text-align:left;cursor:pointer}.current-dues-officer-link:hover b{text-decoration:underline}.current-dues-officer-details{margin-top:22px;padding-top:18px;border-top:2px solid #d5e4df}.current-dues-officer-card{margin-top:14px;overflow:hidden;border:1px solid #cfddd8;border-radius:14px;background:#fff}.current-dues-officer-card>header{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 16px;padding:14px 16px;background:#edf7f3;text-align:left}.current-dues-officer-card>header h3,.current-dues-officer-card>header p{margin:0}.current-dues-officer-card>header p{grid-column:1;color:var(--muted);font-size:12px}.current-dues-officer-card>header strong{grid-column:2;grid-row:1/3;color:var(--brand)}.current-dues-type-card{padding:14px 15px;border-top:1px solid #d9e5e1}.current-dues-type-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:9px}.current-dues-type-head h4{margin:0;color:#153f37;font-size:17px}.current-dues-type-head span{color:var(--muted);font-size:12px}.current-dues-type-card table{min-width:1050px}.current-dues-type-card td{vertical-align:top}.current-dues-type-card td:nth-last-child(-n+3),.current-dues-type-card th:nth-last-child(-n+3){text-align:right}
.current-dues-code-summary{margin-top:14px;padding:13px;border:1px solid #cfe1db;border-radius:12px;background:#f8fbfa}.current-dues-code-summary>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:9px}.current-dues-code-summary h3,.current-dues-code-summary p{margin:0}.current-dues-code-summary h3{color:#173f36;font-size:16px}.current-dues-code-summary p{color:var(--muted);font-size:11px}.current-dues-code-summary table{min-width:650px}.current-dues-code-summary th:not(:first-child),.current-dues-code-summary td:not(:first-child){text-align:right}.current-dues-code-link{padding:5px 9px;border:1px solid #acd1c5;border-radius:999px;background:#edf8f4;color:var(--brand);font:inherit;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}.current-dues-code-link:hover{border-color:var(--brand);background:var(--brand);color:#fff}.current-dues-code-total td{border-top:2px solid #9dbdb4;background:#eef6f3}
.current-dues-report-total{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 15px;border:2px solid #16806a;border-radius:11px;background:#eaf7f2;color:#153f37}.current-dues-report-total span{font-size:13px;font-weight:800}.current-dues-report-total strong{font-size:22px;line-height:1}
.current-dues-grand-total-row td{border-top:3px double #195f50!important;background:#e2f1ec!important;color:#123d34;font-weight:900}.current-dues-grand-total-row td:last-child{background:#cfe9df!important;font-size:13px}
@media(max-width:700px){.current-dues-guide{grid-template-columns:1fr}.current-dues-search{grid-template-columns:1fr 1fr}.current-dues-search-field{grid-column:1/-1}.current-dues-search button{width:100%}.current-dues-suggestions{max-height:220px}.current-dues-code-summary>div:first-child{align-items:flex-start;flex-direction:column}.current-dues-officer-card>header{grid-template-columns:1fr}.current-dues-officer-card>header p,.current-dues-officer-card>header strong{grid-column:1;grid-row:auto}.current-dues-type-head{align-items:flex-start;flex-direction:column}}
@media print{.current-dues-officer-link{color:inherit}.current-dues-code-link{padding:0;border:0;background:none;color:inherit}.current-dues-search{display:none!important}.current-dues-code-summary{break-inside:avoid}.current-dues-officer-details.print-details{break-before:page}.current-dues-officer-card{break-inside:avoid}.current-dues-type-card table{min-width:0;font-size:8pt}.current-dues-type-card th,.current-dues-type-card td{padding:1.5mm}}
.invoice-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;padding:4px 2px}.invoice-entry-heading h2{margin:3px 0 5px;font-size:28px}.invoice-entry-heading p{margin:0;color:var(--muted)}.invoice-flow{display:flex;overflow:hidden;border:1px solid var(--line);border-radius:999px;background:#fff}.invoice-flow span{padding:9px 14px;color:var(--muted);font-size:12px;font-weight:800}.invoice-flow .active{background:var(--brand);color:#fff}.invoice-entry-grid{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);gap:18px;align-items:start}.invoice-entry-card{height:100%}.entry-card-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}.entry-card-title>span{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:11px;background:var(--soft);color:var(--brand);font-size:12px;font-weight:900}.entry-card-title h2,.entry-card-title p{margin:0}.entry-card-title p{margin-top:3px;color:var(--muted);font-size:12px}.seller-card{position:sticky;top:18px}.transaction-card label{margin-bottom:12px}.invoice-type-rule{margin:3px 0 14px;padding:12px 14px;border-left:4px solid var(--brand);border-radius:8px;background:#edf8f4;color:#23483f;font-size:13px;line-height:1.5}.invoice-submit-note{display:flex;justify-content:space-between;gap:16px;margin-top:18px;padding:12px 14px;border:1px solid #dfe6e3;border-radius:10px;background:#f7faf9;color:var(--muted);font-size:12px}.invoice-submit-note b{color:var(--brand)}
.dealer-sales-limit-signal{display:grid;gap:4px;margin:0 0 13px;padding:11px 13px;border:1px solid #9ccfc0;border-left:5px solid var(--brand);border-radius:9px;background:#edf8f4;color:#16483d}.dealer-sales-limit-signal strong{font-size:12px}.dealer-sales-limit-signal span{font-size:11px;line-height:1.45}.dealer-sales-limit-signal.exceeded{border-color:#e0a044;border-left-color:#b66a00;background:#fff4db;color:#754400}.dealer-sales-limit-signal.exceeded strong{color:#9a4f00}
.user-dealer-create-card{max-width:980px;margin:0 auto}.user-dealer-create-card .success-message{margin:14px 0 0}.user-dealer-create-card .dealer-code-entry{width:100%}@media(max-width:760px){.user-dealer-create-card .actions{display:grid;grid-template-columns:1fr 1fr}.user-dealer-create-card .actions button{width:100%}}
.approval-badge{display:inline-block;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.approval-badge.approved{background:#e5f7ef;color:#087443}.approval-badge.pending{background:#fff2cc;color:#825b00}.approval-badge.held{background:#ede9fe;color:#5b21b6}.approval-badge.cancelled{background:#ffe5e5;color:#a02222}.cancelled-invoice-row{background:#fff7f7;color:#6f5b5b}.cancelled-invoice-row td{opacity:.9}.held-invoice-row{background:#faf8ff}.admin-action-history{margin-top:8px;max-width:260px}.admin-action-history summary{cursor:pointer;color:#4c1d95;font-size:12px;font-weight:800}.admin-action-entry{display:block;margin-top:6px;padding:7px;border-left:3px solid #8b5cf6;border-radius:4px;background:#f5f3ff;color:#34265b;font-size:11px;line-height:1.35}.admin-action-entry b,.admin-action-entry span{display:block}.admin-action-entry time{color:#665b7d}.admin-control-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.admin-status-panel{margin:12px 0;padding:12px;border:1px solid #ddd6fe;border-radius:10px;background:#faf8ff}.admin-status-panel h3{margin:0 0 8px;color:#4c1d95}.admin-status-panel .admin-action-entry{max-width:none}@media print{.admin-status-panel{display:none!important}}
.cancelled-cross-mark{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:7px;border-radius:50%;background:#b42318;color:#fff;font-size:13px;font-weight:900;vertical-align:middle;box-shadow:0 2px 6px rgba(180,35,24,.2)}.cancelled-display-banner strong{display:flex;align-items:center;gap:8px}.cancelled-display-banner strong span{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#b42318;color:#fff;font-size:15px}
.print-blocked-banner{display:flex;flex-direction:column;gap:4px;margin:20px 0;padding:14px 16px;border:1px solid #efc36b;border-radius:11px;background:#fff7e2;color:#7a5200}.print-blocked-banner span{font-size:13px}.dialog-actions button:disabled{cursor:not-allowed;opacity:.55}
.collection-history{margin-top:26px;padding-top:18px;border-top:1px solid var(--line)}.collection-history h3{margin:0 0 12px}.collection-history table{font-size:12px}.collection-history td{vertical-align:top}
.target-budget-filter{grid-template-columns:1.15fr .8fr 1fr 1fr 1fr}.target-budget-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.target-budget-summary div{padding:16px;border:1px solid #dcebe6;border-radius:13px;background:#f6faf8}.target-budget-summary span,.target-budget-summary strong{display:block}.target-budget-summary span{color:var(--muted);font-size:13px}.target-budget-summary strong{margin-top:5px;font-size:22px}.target-entry-table{min-width:560px}.target-entry-table input{min-width:150px}
.target-achievement-stats{grid-template-columns:repeat(4,1fr)}.target-negative{color:var(--danger);font-weight:800}.target-positive{color:var(--brand);font-weight:800}#targetAchievementBody td{white-space:nowrap}
/* Separate Admin and User login portals */
.auth-page{position:relative;overflow:hidden;padding:28px;background:radial-gradient(circle at 12% 18%,rgba(56,203,165,.3),transparent 28%),radial-gradient(circle at 88% 82%,rgba(31,130,111,.35),transparent 30%),linear-gradient(135deg,#061b18 0%,#0b3d34 48%,#071f2d 100%)}
.auth-page::before,.auth-page::after{content:"";position:fixed;pointer-events:none;border:1px solid rgba(255,255,255,.08);border-radius:50%;transform:rotate(-18deg)}.auth-page::before{width:520px;height:520px;left:-210px;bottom:-260px;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.018)}.auth-page::after{width:360px;height:360px;right:-150px;top:-160px;box-shadow:0 0 0 55px rgba(255,255,255,.025)}
.admin-auth-page{background:radial-gradient(circle at 80% 12%,rgba(230,169,67,.25),transparent 28%),radial-gradient(circle at 12% 85%,rgba(91,110,137,.28),transparent 30%),linear-gradient(135deg,#10141c 0%,#202c3a 52%,#171d27 100%)}
.auth-shell{position:relative;z-index:1;width:min(1040px,100%);display:grid;grid-template-columns:1.12fr .88fr;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:28px;background:rgba(255,255,255,.04);box-shadow:0 38px 110px rgba(0,0,0,.42);backdrop-filter:blur(16px)}
.auth-intro{display:flex;flex-direction:column;justify-content:center;padding:58px;color:#fff;background:linear-gradient(145deg,rgba(13,100,83,.82),rgba(5,35,31,.92))}
.admin-auth-page .auth-intro{background:linear-gradient(145deg,rgba(150,98,29,.82),rgba(38,34,30,.94))}
.auth-intro h1{max-width:500px;margin:8px 0 16px;font-size:clamp(32px,5vw,52px);line-height:1.05}
.auth-intro>p:not(.eyebrow){max-width:520px;margin:0 0 30px;color:#d6e8e3;line-height:1.7}
.auth-feature{display:flex;gap:14px;align-items:flex-start;margin-top:18px}
.auth-feature>span{display:grid;place-items:center;flex:0 0 34px;height:34px;border:1px solid rgba(255,255,255,.3);border-radius:9px;color:#9ce0cf;font-size:12px;font-weight:800}
.admin-auth-page .auth-feature>span{color:#f5ca83}
.auth-feature strong,.auth-feature small{display:block}.auth-feature small{margin-top:4px;color:#c3d8d2;line-height:1.45}
.login-brand{display:flex;align-items:center;gap:15px;margin-bottom:28px}.login-brand img,.mobile-login-brand img,.branding-preview img{width:64px;height:64px;object-fit:contain;border-radius:16px;background:#fff;padding:7px;box-shadow:0 12px 30px rgba(0,0,0,.2)}.login-brand strong{display:block;margin-top:4px;font-size:21px;letter-spacing:.01em}.has-brand-logo .login-brand img{width:min(310px,100%);height:100px;padding:11px 15px;border-radius:18px}.has-brand-logo .login-brand>div{display:none}.brand-monogram{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border:1px solid rgba(255,255,255,.45);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.24),rgba(255,255,255,.08));color:#fff;font-size:31px;font-weight:900;box-shadow:0 12px 30px rgba(0,0,0,.18)}.mobile-login-brand{display:none;align-items:center;gap:12px;margin-bottom:25px;color:var(--ink)}.mobile-login-brand img,.mobile-login-brand .brand-monogram{width:50px;height:50px;flex-basis:50px;border-radius:13px}.has-brand-logo .mobile-login-brand img{width:min(240px,100%);height:76px;flex-basis:auto;padding:8px 12px}.has-brand-logo .mobile-login-brand strong{display:none}.mobile-login-brand .brand-monogram{background:var(--brand);font-size:23px}.mobile-login-brand strong{font-size:18px}
.auth-shell .auth-card{width:100%;border-radius:0;padding:48px 42px;box-shadow:none}
.auth-card-head{display:flex;align-items:center;gap:14px;margin-bottom:6px}.auth-card h2{margin:4px 0 0;font-size:30px}
.auth-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--soft);color:var(--brand);font-size:20px;font-weight:900}
.auth-icon.admin{background:#fff2d9;color:#8a5a13}.auth-card form{margin-top:24px}.auth-card input{padding:13px}.auth-card .primary{margin-top:5px;padding:13px}
.auth-switch{display:flex;justify-content:center;gap:7px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line);color:var(--muted);font-size:14px}
.auth-switch a{color:var(--brand);font-weight:800;text-decoration:none}.auth-switch a:hover{text-decoration:underline}
.forgot-link{display:block;margin-top:16px;text-align:center;color:var(--brand);font-size:14px;font-weight:800;text-decoration:none}.forgot-link:hover{text-decoration:underline}
.recovery-card{width:min(480px,100%)}.recovery-card h1{margin:7px 0 10px}.success-message{margin:20px 0;padding:15px;border:1px solid #b8dfd1;border-radius:11px;background:#edf9f5;color:#075f4d;font-weight:700;line-height:1.5}.auth-action-link{display:block;margin-top:20px;text-align:center;text-decoration:none}.recovery-password{min-width:210px}.reset-password-button{white-space:nowrap}.recovery-admin-card table{min-width:920px}
.password-field{position:relative;display:block;width:100%}.password-field input{padding-right:72px}.password-visibility-toggle{position:absolute;top:50%;right:7px;min-width:55px;min-height:34px;transform:translateY(-50%);border:0;border-radius:7px;background:#e7f3ef;color:var(--brand);font:800 12px "Segoe UI",Arial,sans-serif;cursor:pointer}.password-visibility-toggle:hover{background:#d8ece6}.password-visibility-toggle:focus-visible{outline:3px solid rgba(12,107,88,.2);outline-offset:1px}
.admin-recovery-code-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px;padding:16px;border:1px solid #ead8b8;border-radius:13px;background:#fff9ed}.admin-recovery-code-panel p{margin:5px 0 0}.recovery-code-result{display:grid;gap:6px;margin:0 0 22px;padding:18px;border:2px dashed #b57920;border-radius:13px;background:#fffaf0;text-align:center}.recovery-code-result[hidden]{display:none}.recovery-code-result span,.recovery-code-result small{color:var(--muted)}.recovery-code-result strong{font-family:Consolas,monospace;font-size:24px;letter-spacing:.08em;color:#7d4d0c}
.admin-email-form{display:flex;align-items:end;gap:12px;margin-bottom:18px}.admin-email-form label{flex:1;margin:0}.email-admin-grid{margin-top:18px;align-items:start}.email-admin-grid table{min-width:650px}
.login-branding-card{margin-bottom:18px}.branding-admin-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(420px,1.2fr);gap:24px;align-items:center}.branding-preview{display:flex;align-items:center;gap:16px;min-height:145px;padding:24px;border-radius:20px;background:radial-gradient(circle at 90% 10%,rgba(80,218,181,.3),transparent 35%),linear-gradient(140deg,#092d28,#105749);color:#fff;box-shadow:0 16px 36px rgba(8,61,51,.18)}.branding-preview img{flex:0 1 210px;width:210px;height:76px;padding:8px 11px;border-radius:13px}.branding-preview small,.branding-preview strong,.branding-preview p{display:block;margin:0}.branding-preview small{color:#9fe4d2;letter-spacing:.12em}.branding-preview strong{margin-top:5px;font-size:23px}.branding-preview p{margin-top:5px;color:#d5ede7}.branding-preview .brand-monogram{background:rgba(255,255,255,.12)}
@media(max-width:900px){.admin-setup-grid,.branding-admin-layout{grid-template-columns:1fr}}
@media(max-width:760px){.target-budget-filter,.target-budget-summary{grid-template-columns:1fr}}
@media(max-width:760px){.topbar{padding:22px 18px;align-items:flex-start;gap:16px}.topbar .primary{display:none}.user-menu{justify-content:flex-end}.grid.two{grid-template-columns:1fr}.card{padding:18px}.section-head.report-filter,.section-head.book-filter{align-items:stretch;flex-direction:column}.report-filter label,.book-filter label{width:100%}.stats{grid-template-columns:1fr 1fr}.invoice-parties{grid-template-columns:1fr}.invoice-meta{text-align:left}}
@media(max-width:760px){
  .topbar{position:relative}
  .notification-center{position:static}
  .notification-bell{width:44px;height:44px;touch-action:manipulation}
  .notification-panel{position:absolute;left:12px;right:12px;top:calc(100% + 8px);z-index:260;width:auto;max-width:none;max-height:calc(100vh - 120px);max-height:calc(100dvh - 120px);overflow:hidden;border-radius:14px}
  .notification-panel-head{padding:12px 13px}
  .notification-list{max-height:min(55vh,360px);max-height:min(55dvh,360px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .notification-item{padding:12px 13px}
}
@media(max-width:760px){.auth-page{padding:16px}.auth-shell{grid-template-columns:1fr}.auth-intro{display:none}.auth-shell .auth-card{padding:34px 24px}.mobile-login-brand{display:flex}}
@media(max-width:760px){.admin-recovery-code-panel{align-items:stretch;flex-direction:column}.recovery-code-result strong{font-size:18px;overflow-wrap:anywhere}}
@media(max-width:760px){.admin-email-form{align-items:stretch;flex-direction:column}}
@media(max-width:900px){.current-dues-layout{grid-template-columns:1fr}.current-dues-summary{width:100%}}
@media(max-width:900px){.invoice-entry-grid{grid-template-columns:1fr}.seller-card{position:static}.invoice-entry-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.invoice-flow{width:100%}.invoice-flow span{flex:1;padding:8px;text-align:center}.invoice-submit-note{flex-direction:column}}
.invoice-document-title{margin:0 0 8px;color:var(--ink);font-size:20px;letter-spacing:.12em}
.duplicate-product-error{margin:0 0 15px;padding:13px 15px;border:1px solid #e7a49e;border-left:5px solid var(--danger);border-radius:10px;background:#fff0ee;color:#8a2017;font-weight:800}.duplicate-product-error[hidden]{display:none}.items-table tr.duplicate-item-row{background:#fff4f2}.items-table input.duplicate-input{border-color:var(--danger);box-shadow:0 0 0 3px rgba(180,42,31,.12)}
.invoice-value-note{margin:10px 0 0;line-height:1.5}
.approval-queue-summary{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px;margin:0 0 18px;color:var(--brand);font-weight:800}.approval-queue-summary>div{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid #d8e8e3;border-radius:12px;background:#f1faf7}.approval-queue-summary strong{font-size:24px}.approval-queue-card .queue-review-statement{padding:8px 11px}.approval-queue-card .queue-review-statement:disabled{cursor:not-allowed;opacity:.65}
.approval-queue-summary small{max-width:170px;color:#b42318;font-size:11px;line-height:1.25}.approval-queue-invoice-check{accent-color:var(--brand)}
.approval-review-dialog{width:min(1180px,96vw);max-height:94vh;overflow:hidden}.approval-review-content{max-height:calc(94vh - 76px);overflow:auto;padding:25px}.approval-review-dealer,.approval-review-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}.approval-review-dealer>div,.approval-review-summary>div{padding:13px 14px;border:1px solid #d9e6e2;border-radius:11px;background:#f7faf8}.approval-review-dealer span,.approval-review-summary span{display:block;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.approval-review-dealer strong,.approval-review-summary strong{display:block;margin-top:5px;color:var(--ink);font-size:15px}.approval-review-summary>div:nth-child(2),.approval-review-summary>div:nth-child(4){background:#eef8f4}.approval-review-table{max-height:420px}.approval-review-table table{min-width:900px}.approval-review-table td{vertical-align:top}.approval-review-dialog #approveInvoiceFromReview:disabled{cursor:not-allowed;opacity:.6}
.approval-review-closing-breakdown{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin:0 0 14px}.approval-review-closing-breakdown[hidden]{display:none}.approval-review-closing-breakdown>div{padding:11px 13px;border:1px solid #d9e6e2;border-radius:10px;background:#f8faf9}.approval-review-closing-breakdown>div.current-closing{border-color:var(--brand);background:#eaf7f2}.approval-review-closing-breakdown span,.approval-review-closing-breakdown small{display:block}.approval-review-closing-breakdown span{font-size:11px;font-weight:800;text-transform:uppercase}.approval-review-closing-breakdown strong{display:block;margin:4px 0;font-size:20px}.approval-review-closing-breakdown small{color:var(--muted)}.approval-review-current-closing td{background:#eef8f4}
@media(max-width:760px){.approval-review-dealer,.approval-review-summary{grid-template-columns:1fr 1fr}.approval-review-content{padding:17px}}
@media print{#invoiceApprovalReviewDialog{display:none!important}}
.top-menu{position:sticky;top:0;z-index:40;align-items:center;gap:8px;margin:0 -8px 22px;padding:10px 8px;overflow:visible;flex-wrap:wrap;background:rgba(246,248,247,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}.top-menu-group{position:relative;flex:0 0 auto}.menu-group-toggle{display:flex;align-items:center;gap:9px;border:1px solid #d7e3df;border-radius:11px;padding:10px 14px;background:var(--paper);color:var(--ink);font:800 13px "Segoe UI",Arial,sans-serif;cursor:pointer;box-shadow:0 3px 10px rgba(16,42,39,.05)}.menu-group-toggle::after{content:"⌄";color:var(--muted);font-size:15px;line-height:1;transition:transform .18s}.top-menu-group.open .menu-group-toggle::after{transform:rotate(180deg)}.top-menu-group.current-group .menu-group-toggle,.top-menu-group.open .menu-group-toggle{border-color:var(--brand);background:var(--brand);color:#fff}.top-menu-group.current-group .menu-group-toggle::after,.top-menu-group.open .menu-group-toggle::after{color:#fff}.top-menu-popup{display:none;position:absolute;left:0;top:calc(100% + 8px);z-index:50;min-width:210px;padding:7px;border:1px solid #d7e3df;border-radius:13px;background:var(--paper);box-shadow:0 18px 45px rgba(16,42,39,.2)}.top-menu-group.open .top-menu-popup{display:flex;flex-direction:column;gap:4px}.top-menu .tab{width:100%;padding:10px 12px;white-space:nowrap;border-radius:8px;font-size:13px;text-align:left}.top-menu .tab:hover{background:var(--soft);color:var(--brand)}.top-menu .tab.active{background:var(--brand);color:#fff;box-shadow:none}
.workspace-page .shell{max-width:1440px;display:grid;grid-template-columns:230px minmax(0,1fr);gap:16px 24px;align-items:start}.workspace-page .shell>.view{grid-column:2;grid-row:2;min-width:0}.workspace-page .top-menu{grid-column:1;grid-row:1/span 2;position:sticky;top:18px;z-index:40;display:flex;flex-direction:column;align-items:stretch;gap:3px;margin:0;padding:12px 0;overflow:visible;border:1px solid #d9e5e1;border-radius:12px;background:rgba(255,255,255,.98);box-shadow:0 10px 28px rgba(16,42,39,.09);backdrop-filter:blur(10px)}.workspace-page .top-menu::before{content:"MAIN MENU";padding:2px 18px 9px;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.13em}.workspace-page .top-menu-group,.workspace-page .menu-group-toggle{width:100%}.workspace-page .menu-group-toggle{display:grid;grid-template-columns:28px minmax(0,1fr) 16px;gap:9px;align-items:center;min-height:45px;border:0;border-radius:0;padding:9px 16px;background:#fff;box-shadow:none;text-align:left}.workspace-page .menu-group-toggle::before{content:"▦";display:grid;place-items:center;width:26px;height:26px;color:var(--brand);font-size:17px}.workspace-page .top-menu-group[data-menu-icon="overview"] .menu-group-toggle::before{content:"⌂"}.workspace-page .top-menu-group[data-menu-icon="sales"] .menu-group-toggle::before{content:"▣"}.workspace-page .top-menu-group[data-menu-icon="dealer"] .menu-group-toggle::before{content:"♟"}.workspace-page .top-menu-group[data-menu-icon="accounts"] .menu-group-toggle::before{content:"৳"}.workspace-page .top-menu-group[data-menu-icon="operations"] .menu-group-toggle::before{content:"⚙"}.workspace-page .top-menu-group[data-menu-icon="reports"] .menu-group-toggle::before{content:"▥"}.workspace-page .menu-group-toggle::after{content:"›";justify-self:end;font-size:21px;transform:none}.workspace-page .top-menu-group.current-group .menu-group-toggle,.workspace-page .top-menu-group.open .menu-group-toggle,.workspace-page .top-menu-group:hover .menu-group-toggle{background:#eef8f4;color:var(--brand)}.workspace-page .top-menu-group.current-group .menu-group-toggle::after,.workspace-page .top-menu-group.open .menu-group-toggle::after{color:var(--brand)}.workspace-page .top-menu-popup{left:calc(100% + 1px);top:-7px;min-width:235px;border-radius:0 12px 12px 0;border-left:3px solid var(--brand);box-shadow:12px 16px 34px rgba(16,42,39,.18)}.workspace-page .top-menu-group:hover>.top-menu-popup{display:flex;flex-direction:column;gap:4px}.workspace-page .top-menu .tab{border-radius:7px}
.invoice-entry-grid.invoice-entry-single{grid-template-columns:1fr}.invoice-brand-block{display:flex;align-items:flex-start;gap:16px}.invoice-company-logo{width:90px;max-height:72px;object-fit:contain}
.sales-return-layout{align-items:start}.sales-return-entry-card{position:sticky;top:16px}.sales-return-invoice-summary,.sales-return-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 15px}.sales-return-invoice-summary>div,.sales-return-stats>div{padding:11px 12px;border:1px solid #dce8e3;border-radius:10px;background:#f5faf8}.sales-return-invoice-summary span,.sales-return-stats span{display:block;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}.sales-return-invoice-summary strong,.sales-return-stats strong{display:block;margin-top:4px;font-size:14px;overflow-wrap:anywhere}.sales-return-register-card table{min-width:980px}.sales-return-register-card td{vertical-align:top}.sales-return-register-card .assigned-note{color:var(--muted)}
@media(max-width:900px){.sales-return-layout{grid-template-columns:1fr}.sales-return-entry-card{position:static}}
@media(max-width:600px){.sales-return-invoice-summary,.sales-return-stats{grid-template-columns:1fr}}

/* Streamlined invoice entry workspace */
#invoiceView{--invoice-accent:#0c6b58;--invoice-soft:#f1f8f5}
.invoice-image-import-card{padding:0;overflow:hidden;box-shadow:0 7px 22px rgba(16,42,39,.06)}
.invoice-image-toggle{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;cursor:pointer;list-style:none;background:linear-gradient(135deg,#fff,#f1f8f5)}
.invoice-image-toggle::-webkit-details-marker{display:none}.invoice-image-toggle::after{content:'+';display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:9px;background:#e3f1ec;color:var(--brand);font-size:21px;font-weight:500}.invoice-image-import-card[open]>.invoice-image-toggle::after{content:'−'}
.invoice-image-toggle>div{min-width:0;flex:1}.invoice-image-toggle h2,.invoice-image-toggle p{margin:0}.invoice-image-toggle h2{margin:2px 0 3px;font-size:17px}.invoice-image-toggle .status{margin-left:auto}.invoice-image-import-body{padding:18px 20px 20px;border-top:1px solid #dce8e3}
.transaction-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:22px;background:linear-gradient(180deg,#fff,#fbfdfc);border-color:#d7e4df;box-shadow:0 18px 45px rgba(16,42,39,.08)}
.transaction-card>.entry-card-title,.invoice-dealer-section{grid-column:1/-1}.transaction-card>.entry-card-title{margin:0;padding:2px 2px 4px}.transaction-card>.entry-card-title>span,.invoice-step-title>span{background:linear-gradient(145deg,var(--brand),#159175);color:#fff;box-shadow:0 5px 14px rgba(12,107,88,.2)}
.invoice-form-section{min-width:0;padding:17px;border:1px solid #dce8e3;border-radius:15px;background:#fff}.invoice-form-section:focus-within{border-color:#a5c9bc;box-shadow:0 0 0 3px rgba(12,107,88,.06)}
.invoice-section-label{display:flex;align-items:center;gap:10px;margin-bottom:15px;padding-bottom:11px;border-bottom:1px solid #e7eeeb}.invoice-section-label>span{display:grid;place-items:center;flex:0 0 27px;height:27px;border-radius:8px;background:#e5f4ee;color:var(--brand);font-size:12px;font-weight:900}.invoice-section-label h3,.invoice-section-label p{margin:0}.invoice-section-label h3{font-size:16px}.invoice-section-label p{margin-top:2px;color:var(--muted);font-size:11px;line-height:1.35}
.transaction-card>.invoice-wizard-part{grid-column:1/-1;min-width:0}.invoice-dealer-grid{display:grid;grid-template-columns:minmax(170px,.65fr) minmax(230px,1.35fr) minmax(170px,.75fr);gap:12px}.invoice-dealer-grid>label{min-width:0}.invoice-dealer-grid input{width:100%;max-width:100%}#customerPhone{direction:ltr;font-variant-numeric:tabular-nums;font-weight:750;letter-spacing:.035em;text-align:left}#customerAddress{line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap}.invoice-form-section label:last-child{margin-bottom:0}
.invoice-products-card{padding:26px;border-color:#cddfd8;box-shadow:0 20px 50px rgba(16,42,39,.1)}.invoice-product-head{margin-bottom:20px}.invoice-step-title{display:flex;align-items:flex-start;gap:13px}.invoice-step-title>span{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:12px;font-size:13px;font-weight:900}.invoice-step-title h2,.invoice-step-title p{margin:0}.invoice-step-title h2{font-size:24px}.invoice-step-title p{margin-top:4px;font-size:13px}
.keyboard-tip{display:flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid #d6e5df;border-radius:10px;background:#f5faf8;color:#476158;font-size:11px;font-weight:700;white-space:nowrap}.keyboard-tip kbd{padding:3px 7px;border:1px solid #b9c9c3;border-bottom-width:2px;border-radius:5px;background:#fff;color:var(--brand);font:800 11px "Segoe UI",Arial,sans-serif}
.invoice-items-wrap{overflow:auto;max-height:min(64vh,620px);scrollbar-gutter:stable;border:2px solid #cfdfd9;border-radius:15px;background:#fff;scroll-behavior:smooth}.invoice-items-wrap .items-table{min-width:1060px;table-layout:fixed}.invoice-items-wrap .items-table th:nth-child(1){width:27%}.invoice-items-wrap .items-table th:nth-child(2){width:22%}.invoice-items-wrap .items-table th:nth-child(3){width:12%}.invoice-items-wrap .items-table th:nth-child(4){width:10%}.invoice-items-wrap .items-table th:nth-child(5){width:13%}.invoice-items-wrap .items-table th:nth-child(6){width:12%}.invoice-items-wrap .items-table th:nth-child(7){width:4%}.invoice-items-wrap .items-table thead{position:sticky;top:0;z-index:2;background:#153f37}.invoice-items-wrap .items-table th{padding:14px 11px;color:#dff2eb;border-color:#2b554d;font-size:11px}.invoice-items-wrap .items-table td{padding:12px 10px}.invoice-items-wrap .items-table tbody tr{scroll-margin-top:64px;transition:background .15s ease}.invoice-items-wrap .items-table tbody tr:hover{background:#f4faf7}.invoice-items-wrap .items-table select,.invoice-items-wrap .items-table input{min-height:50px;padding:11px 12px;border-color:#c5d6cf;background:#fbfdfc;font-size:15px}.invoice-items-wrap .items-table select:focus,.invoice-items-wrap .items-table input:focus{background:#fff}.invoice-items-wrap .line-total{color:var(--brand);font-size:16px;font-weight:900;white-space:nowrap}.invoice-items-wrap .remove{min-width:42px;min-height:46px;font-size:22px}
.invoice-items-wrap{overflow-x:hidden;overflow-y:auto}.invoice-items-wrap .items-table{min-width:100%}.field-help{display:block;color:var(--muted);font-size:10px;font-weight:600;line-height:1.4}.invoice-items-wrap .items-table input.historical-rate{border-color:#c88720;background:#fff8e8;color:#704700;font-weight:800}.invoice-items-wrap .items-table input.historical-rate:focus{outline-color:rgba(200,135,32,.2);border-color:#a96d10}
.invoice-product-summary{display:grid;grid-template-columns:minmax(210px,1fr) minmax(135px,.55fr) minmax(150px,.65fr) minmax(220px,.85fr);gap:10px;margin:16px 0 0}.invoice-product-summary>div{min-width:0;padding:12px 15px;border:1px solid #d9e6e1;border-radius:12px;background:#f7faf9}.invoice-product-summary-title{display:flex;flex-direction:column;justify-content:center;background:linear-gradient(135deg,#eef8f4,#f8fbfa)!important}.invoice-product-summary-title small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.35}.invoice-product-summary span,.invoice-save-bar>div:first-child span{display:block;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.invoice-product-summary strong{display:block;margin-top:3px;font-size:19px}.invoice-product-summary .invoice-value-summary{background:linear-gradient(135deg,#153f37,#0c6b58);color:#fff;border-color:#153f37}.invoice-product-summary .invoice-value-summary span{color:#bde2d6}.invoice-product-summary .invoice-value-summary strong{font-size:23px}
.invoice-value-note{text-align:right}.invoice-save-bar{position:sticky;bottom:10px;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:13px 15px;border:1px solid #cbded7;border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 12px 32px rgba(16,42,39,.16);backdrop-filter:blur(10px)}.invoice-save-bar>div:first-child strong,.invoice-save-bar>div:first-child small{display:block}.invoice-save-bar>div:first-child strong{margin-top:2px;color:#173c34}.invoice-save-bar>div:first-child small{margin-top:2px;color:var(--muted)}.invoice-save-bar .actions{margin:0}.invoice-save-bar .actions button{min-width:120px}.invoice-save-bar .primary{box-shadow:0 7px 18px rgba(12,107,88,.22)}
@media(max-width:900px){.transaction-card{grid-template-columns:1fr}.transaction-card>.entry-card-title,.invoice-dealer-section{grid-column:auto}.invoice-dealer-grid{grid-template-columns:1fr 1fr}.invoice-dealer-grid label:nth-child(2){grid-column:span 1}}
@media(max-width:760px){.invoice-image-toggle{padding:13px 14px}.invoice-image-toggle h2{font-size:15px}.invoice-image-toggle .muted{display:none}.invoice-image-import-body{padding:13px}.transaction-card,.invoice-products-card{padding:14px}.invoice-form-section{padding:13px}.invoice-dealer-grid{grid-template-columns:1fr}.invoice-product-head{align-items:flex-start}.keyboard-tip{width:100%;justify-content:center}.invoice-product-summary{grid-template-columns:1fr 1fr}.invoice-product-summary-title,.invoice-product-summary .invoice-value-summary{grid-column:1/-1}.invoice-product-summary>div,.invoice-product-summary .invoice-value-summary{min-width:0}.invoice-value-note{text-align:left}.invoice-save-bar{position:static;align-items:stretch;flex-direction:column}.invoice-save-bar .actions{position:static!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}}
@media(max-width:430px){.invoice-product-summary{grid-template-columns:1fr 1fr}.invoice-product-summary-title,.invoice-product-summary .invoice-value-summary{grid-column:1/-1}.invoice-product-summary>div{padding:11px 12px}.invoice-product-summary .invoice-value-summary strong{font-size:21px}}
@media(max-width:980px){.workspace-page .shell{display:block;max-width:1200px}.workspace-page .top-menu{position:sticky;top:0;display:flex;flex-direction:row;align-items:center;gap:8px;margin:0 -8px 22px;padding:10px 8px;overflow:visible;flex-wrap:wrap;border-width:0 0 1px;border-radius:0;background:rgba(246,248,247,.96);box-shadow:none}.workspace-page .top-menu::before{display:none}.workspace-page .top-menu-group,.workspace-page .menu-group-toggle{width:auto}.workspace-page .menu-group-toggle{display:flex;min-height:0;border:1px solid #d7e3df;border-radius:11px;padding:9px 11px}.workspace-page .menu-group-toggle::before{display:none}.workspace-page .menu-group-toggle::after{content:"⌄";font-size:15px}.workspace-page .top-menu-group.open .menu-group-toggle::after{transform:rotate(180deg)}.workspace-page .top-menu-group:hover>.top-menu-popup{display:none}.workspace-page .top-menu-group.open>.top-menu-popup{display:flex}.workspace-page .top-menu-popup{left:0;top:calc(100% + 8px);border-left:1px solid #d7e3df;border-radius:13px}}
@media(max-width:760px){body.workspace-page{overflow-x:hidden}.workspace-page .shell{width:100%;max-width:100%}.workspace-page .shell>.view{width:100%;max-width:100%;min-width:0}.workspace-page .top-menu{top:0;margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}.menu-group-toggle{padding:9px 11px;font-size:12px}.workspace-page .top-menu-popup{position:fixed;left:14px;right:14px;top:78px;min-width:0}.top-menu .tab{padding:11px 12px}}
.audit-history-dialog{width:min(960px,95vw);max-height:86vh;padding:0;background:#f8fbfa}.audit-history-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:20px 22px;border-bottom:1px solid var(--line);background:#fff}.audit-history-head h2,.audit-history-head p{margin:0}.audit-history-head h2{margin-top:3px}.audit-history-dialog .table-wrap{max-height:65vh;padding:0 20px 20px}.audit-history-table{min-width:680px;background:#fff}.audit-history-table small{display:block;margin-top:4px;color:var(--muted)}.audit-history-table td:first-child{white-space:nowrap}.audit-history-table td:nth-child(3){font-weight:700}
.price-revision-dialog{width:min(1180px,96vw);overflow:auto}.price-revision-dialog>.table-wrap{max-height:42vh}.price-revision-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px 20px}.price-revision-summary>div{padding:12px;border:1px solid #dce8e3;border-radius:10px;background:#fff}.price-revision-summary span{display:block;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}.price-revision-summary strong{display:block;margin-top:4px}.price-revision-table{min-width:1050px}.price-current-version{background:#eff9f5}
.price-usage-section{margin:4px 20px 20px;border-top:2px solid #cfe1da;padding-top:18px}.price-usage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}.price-usage-head h3,.price-usage-head p{margin:0}.price-usage-totals{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.price-usage-totals strong,.price-usage-totals span{padding:7px 10px;border-radius:8px;background:#e9f5f1;color:var(--brand);font-size:11px}.price-usage-table{min-width:1080px;background:#fff}.price-usage-table small{display:block;margin-top:3px;color:var(--muted)}
@media print{body>*{display:none!important}dialog:not([open]){display:none!important}dialog[open]{display:block!important;position:static;width:100%;max-width:none;box-shadow:none}dialog::backdrop,.dialog-actions,.collection-history{display:none!important}#invoicePreview,#challanPreview{padding:0}.challan-sheet{max-width:none;padding:0}body.invoice-print-blocked dialog[open]{display:none!important}body.invoice-print-blocked::before{display:block!important;content:"Invoice printing is not permitted until the Invoice is approved.";padding:40px;font:700 20px "Segoe UI",Arial,sans-serif;color:#7a1d14;text-align:center}}
#invoiceDialog{width:min(1040px,96vw)}#invoiceDialog[open]{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);max-height:92vh;margin:0;overflow:auto}.invoice-dialog-close{position:sticky;z-index:25;float:right;top:10px;right:10px;display:grid;place-items:center;width:42px;height:42px;margin:10px 10px -52px 0;border:2px solid #fff;border-radius:50%;background:#b42318;color:#fff;font-size:20px;font-weight:900;line-height:1;cursor:pointer;box-shadow:0 6px 18px rgba(39,19,17,.28)}.invoice-dialog-close:hover{background:#8f1c13;transform:scale(1.04)}.invoice-dialog-close:focus-visible{outline:3px solid rgba(180,35,24,.3);outline-offset:2px}#invoicePreview{background:#eef2f0}.invoice-sheet{min-height:100%;padding:34px;background:#fff;color:#17201e;font-size:13px;line-height:1.45}.invoice-print-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:18px;border-bottom:3px solid #0c6b58}.invoice-print-header .invoice-brand-block{min-width:0}.invoice-print-header .invoice-brand-block h2{margin:0;color:#102a27;font-size:27px;line-height:1.15}.invoice-print-header .invoice-brand-block p{margin:7px 0 0;color:#53615d;font-size:12px;line-height:1.55}.invoice-print-header .invoice-company-logo{flex:0 0 auto;width:94px;height:72px;object-fit:contain}.invoice-title-block{flex:0 0 255px;text-align:right}.invoice-title-block span{display:inline-block;padding:4px 9px;border:1px solid #9eaaa7;border-radius:999px;color:#596662;font-size:9px;font-weight:900;letter-spacing:.14em}.invoice-title-block h1{margin:8px 0 2px;color:#0c6b58;font-size:24px;letter-spacing:.04em}.invoice-title-block strong{font-size:17px}.invoice-status-line{display:flex;justify-content:space-between;gap:16px;padding:10px 12px;border-bottom:1px solid #d7dfdc;background:#f2f7f5;font-size:11px}.invoice-information-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.invoice-information-card{padding:15px 16px;border:1px solid #d9e1de;border-radius:10px}.invoice-information-card>small{display:block;margin-bottom:6px;color:#0c6b58;font-size:9px;font-weight:900;letter-spacing:.12em}.invoice-information-card h3{margin:0 0 8px;color:#17201e;font-size:18px}.invoice-information-card dl{margin:0}.invoice-information-card dl div{display:grid;grid-template-columns:122px minmax(0,1fr);gap:10px;padding:3px 0}.invoice-information-card dt{color:#64706d}.invoice-information-card dd{margin:0;font-weight:700;overflow-wrap:anywhere}.invoice-product-table{width:100%;min-width:0;border:1px solid #cfd9d5;table-layout:fixed}.invoice-product-table th{padding:9px 8px;background:#153f37;color:#fff;border:1px solid #153f37;font-size:10px}.invoice-product-table td{padding:9px 8px;border:1px solid #dce3e0;vertical-align:top}.invoice-product-table th:nth-child(1),.invoice-product-table td:nth-child(1){width:42px;text-align:center}.invoice-product-table th:nth-child(2){width:27%}.invoice-product-table th:nth-child(3){width:22%}.invoice-product-table th:nth-child(4){width:11%}.invoice-product-table th:nth-child(5),.invoice-product-table th:nth-child(6){width:17%}.invoice-product-table .number-cell{text-align:right;white-space:nowrap}.invoice-product-table tbody tr:nth-child(even){background:#f8faf9}.invoice-closing-grid{display:grid;grid-template-columns:minmax(0,1fr) 365px;gap:22px;align-items:start;margin-top:18px}.invoice-note-box{padding:13px 15px;border:1px solid #dce3e0;border-radius:10px;background:#fafcfb}.invoice-note-box h3{margin:0 0 6px;color:#0c6b58;font-size:13px}.invoice-note-box p{margin:5px 0;color:#4f5c58;font-size:11px}.invoice-note-box .invoice-generated-note{margin-top:10px;color:#78827f;font-size:9px}.invoice-sheet .invoice-total{width:auto;margin:0;border:1px solid #cad6d2;border-radius:10px;overflow:hidden}.invoice-sheet .invoice-total div{display:flex;justify-content:space-between;gap:16px;padding:10px 13px;border-bottom:1px solid #e0e6e4}.invoice-sheet .invoice-total div:last-child{border-bottom:0}.invoice-sheet .invoice-total .grand{margin:0;padding:13px;background:#153f37;color:#fff;border:0;font-size:15px}.invoice-approval-record{display:flex;justify-content:space-between;gap:16px;margin-top:17px;padding:9px 12px;border-top:1px solid #ced8d4;border-bottom:1px solid #ced8d4;color:#4a5753;font-size:10px}.invoice-approval-record b{color:#102a27}.invoice-signatures{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-top:54px;text-align:center}.invoice-signatures div>span{display:block;border-top:1px solid #35413e}.invoice-signatures b{display:block;margin-top:6px;font-size:11px}.invoice-signatures small{display:block;margin-top:2px;color:#6c7774;font-size:9px}.collection-history{margin-top:28px}.conversion-banner{break-inside:avoid}
@media print{#invoiceDialog[open]{position:static;inset:auto;transform:none;max-height:none;margin:0;overflow:visible}}
@media(max-width:600px){.invoice-dialog-close{top:6px;right:6px;width:44px;height:44px;margin:6px 6px -50px 0}}
@media print{.invoice-dialog-close{display:none!important}}
@media(max-width:760px){.invoice-sheet{padding:20px}.invoice-print-header,.invoice-status-line{align-items:flex-start;flex-direction:column}.invoice-title-block{flex-basis:auto;text-align:left}.invoice-information-grid,.invoice-closing-grid{grid-template-columns:1fr}.invoice-information-card dl div{grid-template-columns:105px minmax(0,1fr)}.invoice-approval-record{flex-direction:column}.invoice-signatures{gap:18px}}

/* Royal Agrovet branded application interface */
@media screen{
  :root{
    --ink:#17251f;--muted:#64736b;--line:#dbe7df;--paper:#fff;--bg:#f4f8f4;
    --brand:#079447;--brand2:#06743a;--brand-bright:#68c927;--brand-deep:#064d2b;
    --accent:#8d1898;--soft:#eaf7ee;--soft-strong:#dff2e5;
    --danger:#b42318;--shadow:0 12px 34px rgba(18,74,43,.08)
  }
  html{background:var(--bg);scroll-behavior:smooth}
  body{background:
    radial-gradient(circle at 8% 0,rgba(104,201,39,.08),transparent 26rem),
    linear-gradient(180deg,#f7faf7 0,#f2f7f3 100%);color:var(--ink)}
  body.workspace-page,body.admin-page{min-height:100vh}
  .topbar{position:relative;isolation:isolate;min-height:108px;padding:18px max(24px,calc((100vw - 1500px)/2));overflow:visible;background:linear-gradient(112deg,#043d24 0%,#05733b 52%,#079447 100%);border-bottom:4px solid var(--brand-bright);box-shadow:0 9px 28px rgba(4,61,36,.2)}
  .topbar::after{content:"";position:absolute;z-index:-1;right:6%;top:-78px;width:310px;height:210px;border:42px solid rgba(255,255,255,.055);border-radius:52% 48% 62% 38%;transform:rotate(-18deg)}
  .workspace-brand{display:flex;align-items:center;gap:18px;min-width:0}
  .workspace-brand>img{width:168px;height:68px;padding:8px 12px;object-fit:contain;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.16)}
  .workspace-brand>div{min-width:0}
  .workspace-brand .eyebrow{color:#c9f2b2;font-size:11px;font-weight:900;letter-spacing:.15em}
  .workspace-brand h1{margin:3px 0 1px;color:#fff;font-size:clamp(23px,3vw,34px);line-height:1.08}
  .workspace-brand small{color:#d5ebdc;font-size:11px;letter-spacing:.04em}
  .user-menu{justify-content:flex-end}
  .user-menu>span{padding:8px 11px;border:1px solid rgba(255,255,255,.15);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;font-weight:700}
  .topbar :is(.ghost,.soft),.topbar .website-main-menu>summary{min-height:40px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.1);color:#fff;box-shadow:none;backdrop-filter:blur(8px)}
  .topbar :is(.ghost,.soft):hover,.topbar .website-main-menu>summary:hover{background:#fff;color:var(--brand-deep)}
  .notification-bell{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.1)}
  .shell{max-width:1500px;margin:24px auto;padding:0 22px}
  .workspace-page .shell{grid-template-columns:250px minmax(0,1fr);gap:22px 26px}
  .workspace-page .top-menu{top:18px;padding:12px 9px 14px;border:1px solid #cfe2d4;border-radius:18px;background:#fff;box-shadow:0 16px 38px rgba(18,74,43,.1)}
  .workspace-page .top-menu::before{content:"WORKSPACE";margin:0 6px 8px;padding:7px 10px 12px;border-bottom:1px solid #e2ece5;color:var(--brand);font-size:10px}
  .workspace-page .menu-group-toggle{min-height:48px;border-radius:11px;padding:10px 12px;background:transparent;color:#25362d;transition:background .16s,color .16s,transform .16s}
  .workspace-page .menu-group-toggle::before{border-radius:8px;background:var(--soft);color:var(--brand);font-weight:900}
  .workspace-page .top-menu-group.current-group .menu-group-toggle,.workspace-page .top-menu-group.open .menu-group-toggle,.workspace-page .top-menu-group:hover .menu-group-toggle{background:linear-gradient(100deg,var(--brand),#16a451);color:#fff;transform:translateX(2px)}
  .workspace-page .top-menu-group.current-group .menu-group-toggle::before,.workspace-page .top-menu-group.open .menu-group-toggle::before,.workspace-page .top-menu-group:hover .menu-group-toggle::before{background:rgba(255,255,255,.18);color:#fff}
  .workspace-page .top-menu-popup{min-width:250px;padding:9px;border:1px solid #cfe2d4;border-left:4px solid var(--brand-bright);border-radius:0 14px 14px 0;background:#fff;box-shadow:15px 20px 42px rgba(15,68,38,.18)}
  .top-menu .tab{font-weight:750}.top-menu .tab.active{background:linear-gradient(100deg,var(--brand),#16a451);color:#fff}.top-menu .tab:hover{background:var(--soft);color:var(--brand-deep)}
  .card{border:1px solid #d8e6dc;border-radius:18px;background:rgba(255,255,255,.98);box-shadow:var(--shadow)}
  .card:hover{border-color:#cae0d1}
  .card h2,.section-head h2{color:#173f29;letter-spacing:-.015em}
  .eyebrow.dark{color:var(--brand);font-weight:900}
  .section-head{padding-bottom:12px;border-bottom:1px solid #e4ece6}
  .primary{border:1px solid var(--brand);background:linear-gradient(135deg,var(--brand),var(--brand2));box-shadow:0 6px 16px rgba(7,148,71,.17);transition:transform .15s,box-shadow .15s,background .15s}
  .primary:hover{background:linear-gradient(135deg,#0aa54f,var(--brand2));box-shadow:0 9px 20px rgba(7,148,71,.24);transform:translateY(-1px)}
  .soft{border:1px solid #cfe5d5;background:var(--soft);color:var(--brand-deep)}
  .ghost{border:1px solid #e1e8e3;background:#f7f9f7;color:#37483e}
  :is(input,textarea,select){min-height:42px;border-color:#cbdcd0;border-radius:10px;background:#fbfdfb;transition:border-color .15s,box-shadow .15s,background .15s}
  :is(input,textarea,select):hover{border-color:#9fc6aa;background:#fff}
  :is(input,textarea,select):focus{outline:0;border-color:var(--brand);background:#fff;box-shadow:0 0 0 4px rgba(7,148,71,.11)}
  label{color:#2d4436;font-size:12px;font-weight:800}
  .stats{gap:12px}.stats>div{position:relative;overflow:hidden;border:1px solid #d4e6da;border-radius:14px;background:linear-gradient(145deg,#fff,#f0f8f2);box-shadow:0 5px 14px rgba(27,92,51,.04)}
  .stats>div::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(var(--brand-bright),var(--brand))}
  .stats span{color:#64786b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}.stats strong{color:#103f27;font-variant-numeric:tabular-nums}
  .table-wrap{border:1px solid #dbe6de;border-radius:13px;background:#fff}
  table{font-variant-numeric:tabular-nums}thead th{position:sticky;top:0;z-index:1;background:#edf6f0;color:#31533f;border-bottom:1px solid #cbded1;font-size:10px;font-weight:900}tbody tr{transition:background .12s}tbody tr:hover{background:#f2faf4}td,th{border-bottom-color:#e2eae4}.report-total-row,.table-total-row,tfoot tr{background:#e1f2e6!important;color:#123e27!important}
  .report-export-toolbar{border-color:#cfe1d4;background:#f0f8f2}.report-export-toolbar>span{color:#53705e}
  .sale-badge.cash,.payment-badge.paid,.payment-badge.money_adjusted{background:#dff5e6;color:#05733b}.sale-badge.table_cash{background:#e8f0ff;color:#275eaa}.sale-badge.special_cash{background:#f4e5f6;color:var(--accent)}
  .dashboard-report-board{border-color:#cfe3d5;background:linear-gradient(135deg,#fff,#eef8f1)}
  .dashboard-board-icon{background:linear-gradient(145deg,var(--brand),var(--brand-deep));box-shadow:0 7px 16px rgba(7,116,58,.2)}
  .dashboard-board-copy strong,.dashboard-board-arrow,.admin-dashboard-summary strong{color:var(--brand-deep)}
  dialog{border:1px solid #cfe0d4;border-radius:20px}dialog::backdrop{background:rgba(4,40,22,.62);backdrop-filter:blur(3px)}
  #toast{border-left:4px solid var(--brand-bright);background:#102b1d;box-shadow:0 12px 32px rgba(0,0,0,.22)}
  .auth-page{background:radial-gradient(circle at 18% 15%,rgba(104,201,39,.22),transparent 28rem),linear-gradient(135deg,#032d1b,#06743a 58%,#079447)}
  .auth-shell{border-color:rgba(255,255,255,.22);box-shadow:0 38px 110px rgba(1,39,20,.46)}
  .login-brand img,.mobile-login-brand img{background:#fff;border-radius:12px;padding:7px}
  .developer-credit{color:#496057}
}
@media screen and (max-width:1100px){.topbar{align-items:flex-start}.workspace-brand>img{width:140px}.user-menu{max-width:58%}}
@media screen and (max-width:760px){
  .topbar{min-height:auto;padding:12px 14px 14px;border-bottom-width:3px}.workspace-brand{gap:10px}.workspace-brand>img{width:112px;height:50px;padding:6px 8px}.workspace-brand h1{font-size:19px}.workspace-brand small{display:none}.workspace-brand .eyebrow{font-size:8px}.user-menu{max-width:none}.user-menu>span{flex:1 1 100%;padding:5px 8px;font-size:11px}
  .workspace-page .shell{padding:0 10px}.workspace-page .top-menu{margin:0 -2px 16px;padding:8px;border:1px solid #d5e5da;border-radius:13px}.workspace-page .menu-group-toggle{border-radius:9px;background:#fff}.workspace-page .top-menu-popup{top:72px;border-radius:13px;border-left:4px solid var(--brand)}
  .card{padding:15px;border-radius:15px}.section-head{align-items:stretch;flex-direction:column}.section-head>.primary,.section-head>button{width:100%}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}.stats>div{padding:12px}.stats strong{font-size:18px}.table-wrap{border-radius:10px}
}
@page{size:8.2in 11in;margin:1.5in 10mm 1in}
@media print{html,body{width:208.28mm;min-height:279.4mm;background:#fff!important}.invoice-sheet{width:188.28mm;min-height:215.9mm;margin:0;padding:0;font-size:10.5pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}.invoice-print-header{padding-bottom:4mm}.invoice-print-header .invoice-brand-block h2{font-size:20pt}.invoice-title-block{flex-basis:62mm}.invoice-title-block h1{font-size:17pt}.invoice-status-line{padding:2.5mm 3mm}.invoice-information-grid{gap:4mm;margin:4mm 0}.invoice-information-card{padding:3mm 3.5mm}.invoice-information-card h3{font-size:13pt}.invoice-product-table{font-size:9pt}.invoice-product-table thead{display:table-header-group}.invoice-product-table tr,.invoice-information-card,.invoice-closing-grid,.invoice-total,.invoice-approval-record,.invoice-signatures{break-inside:avoid;page-break-inside:avoid}.invoice-product-table th,.invoice-product-table td{padding:2.2mm 2mm}.invoice-closing-grid{grid-template-columns:minmax(0,1fr) 88mm;gap:5mm;margin-top:4mm}.invoice-signatures{margin-top:16mm}.invoice-note-box,.invoice-information-card,.invoice-sheet .invoice-total{border-radius:0}.invoice-title-block span{border-radius:0}.invoice-generated-note{display:block}.collection-history{display:none!important}}

/* Invoice print intentionally excludes Company Name and Logo. */
.invoice-print-header{justify-content:center}
.invoice-title-block{flex:1;text-align:center}
@media print{.invoice-title-block{flex-basis:auto}}

.invoice-status-line{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.invoice-status-line span:nth-child(2){text-align:center}
.invoice-status-line span:last-child{text-align:right}
.invoice-print-generated{white-space:nowrap}
@media(max-width:760px){.invoice-status-line{display:flex}.invoice-status-line span{text-align:left!important}.invoice-print-generated{white-space:normal}}

/* 8.2 x 11-inch paper with an exact 1.5-inch blank space at the top. */
@media print{.invoice-sheet{min-height:215.9mm}}

.invoice-closing-totals-only{grid-template-columns:365px;justify-content:end}
@media print{.invoice-closing-totals-only{grid-template-columns:88mm}}

/* Fit the largest practical number of Product rows on one A4 sheet. */
@media print{
  .invoice-print-header{padding-bottom:2.5mm}
  .invoice-status-line{padding:1.8mm 2.5mm}
  .invoice-information-grid{gap:3mm;margin:3mm 0}
  .invoice-information-card{padding:2mm 2.5mm}
  .invoice-information-card>small{margin-bottom:1mm}
  .invoice-information-card h3{margin-bottom:1mm;font-size:12pt}
  .invoice-information-card dl div{padding:.5mm 0}
  .invoice-product-table{font-size:8.5pt}
  .invoice-product-table th,.invoice-product-table td{padding:1.5mm 1.4mm;line-height:1.15}
  .invoice-closing-grid{margin-top:3mm}
  .invoice-sheet .invoice-total div{padding:2mm 3mm}
  .invoice-sheet .invoice-total .grand{padding:2.5mm 3mm}
  .invoice-signatures{margin-top:10mm}
  .invoice-many-items .invoice-information-card{padding:1.5mm 2mm}
  .invoice-many-items .invoice-information-card h3{font-size:11pt}
  .invoice-many-items .invoice-product-table{font-size:7.5pt}
  .invoice-many-items .invoice-product-table th,.invoice-many-items .invoice-product-table td{padding:1mm 1.1mm}
  .invoice-many-items .invoice-signatures{margin-top:7mm}
  .invoice-continuation-page{break-before:page;page-break-before:always;padding:0;margin:0}
  .invoice-continuation-page .invoice-product-table{margin-top:0}
}

/* Daily Daybook */
.daybook-card{display:grid;gap:18px}
.daybook-filter{align-items:end}
.daybook-filter>div:first-child{flex:1 1 520px}
.daybook-filter label{min-width:190px}
.daybook-stats{grid-template-columns:repeat(5,minmax(140px,1fr))}
.daybook-selected-stats{grid-template-columns:repeat(5,minmax(130px,1fr));margin:0 0 12px}
.daybook-selected-stats>div{background:#f2faf7;border-color:#c8e3d9}
.collection-allocation-editor{margin:12px 0;padding:12px;border:1px solid #c8e3d9;border-radius:14px;background:#f7fbf9}
.collection-allocation-head,.collection-allocation-totals{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.collection-allocation-head small{display:block;color:var(--muted);margin-top:3px}
.collection-allocation-editor .table-wrap{margin-top:10px}
.collection-allocation-editor input{min-width:120px}
.collection-allocation-totals{padding-top:10px}.collection-allocation-totals span{white-space:nowrap}
.collection-allocation-status{margin:10px 0 0;padding:8px 10px;border-radius:9px;background:#fff6df;color:#775300;font-weight:700}.collection-allocation-status.is-complete{background:#e4f6ee;color:#006c52}.collection-allocation-status.has-error{background:#fde9e7;color:#a5241c}
.monthly-officer-achievement-card{margin-bottom:18px}.monthly-officer-achievement-card table{min-width:980px}.monthly-officer-achievement-card :is(td,th):nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums}.monthly-officer-achievement-card :is(td,th):nth-child(1){text-align:center}.monthly-officer-achievement-card .target-achieved-row{background:#e7f7ee}.monthly-officer-achievement-card .monthly-area-total{background:#d9e9f7!important;color:#073d65!important}.monthly-officer-achievement-card .monthly-grand-total{background:#dff1b7!important;color:#244600!important;font-size:1.05em}
.target-achieved-row{background:#e7f7ee}.monthly-area-total{background:#d9e9f7!important;color:#073d65!important}.monthly-grand-total{background:#dff1b7!important;color:#244600!important;font-size:1.05em}
.monthly-target-edit-dialog{width:min(1100px,96vw);max-height:92vh}.monthly-target-edit-dialog form{display:grid;gap:14px}.monthly-target-edit-dialog table{min-width:760px}.monthly-target-edit-dialog input{min-width:140px;text-align:right;font-variant-numeric:tabular-nums}.monthly-target-edit-dialog .table-wrap{max-height:65vh}
@media(max-width:760px){
  .collection-allocation-editor{padding:10px}
  .collection-allocation-head{align-items:stretch;flex-direction:column}
  .collection-allocation-head button{width:100%;min-height:44px}
  #collectionAllocationEditor .table-wrap{overflow:visible;border:0;background:transparent}
  #collectionAllocationEditor table{display:block;width:100%;min-width:0!important}
  #collectionAllocationEditor thead{display:none}
  #collectionAllocationEditor tbody{display:grid;gap:10px}
  #collectionAllocationEditor tbody tr{display:block;overflow:hidden;width:100%;border:1px solid #cfdfd9;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(16,42,39,.05)}
  #collectionAllocationEditor tbody td{display:grid;grid-template-columns:88px minmax(0,1fr);gap:9px;align-items:center;width:100%;padding:9px 10px;border:0;border-bottom:1px solid #edf2ef;text-align:right;white-space:normal}
  #collectionAllocationEditor tbody td:last-child{border-bottom:0}
  #collectionAllocationEditor tbody td::before{content:attr(data-label);color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.05em;text-align:left;text-transform:uppercase}
  #collectionAllocationEditor tbody td.empty{display:block;padding:15px;text-align:center}
  #collectionAllocationEditor tbody td.empty::before{display:none}
  #collectionAllocationEditor input{width:100%;min-width:0;min-height:44px;text-align:right;font-size:16px}
  .collection-allocation-totals{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:10px}
  .collection-allocation-totals span{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:8px;border:1px solid #dce8e3;border-radius:8px;background:#fff;font-size:11px;white-space:normal}
  .collection-allocation-status{font-size:12px;line-height:1.4}
}
@media(max-width:380px){.collection-allocation-totals{grid-template-columns:1fr}}
.daybook-report-section{border:1px solid #d8e5e0;border-radius:16px;background:#fff;padding:16px;min-width:0}
.daybook-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}
.daybook-section-title h3{margin:0 0 4px}
.daybook-section-title p{margin:0;color:var(--muted);font-size:.88rem}
.daybook-section-title>strong{white-space:nowrap;color:#8f2d27;background:#fff1ef;border-radius:999px;padding:7px 11px;font-size:.78rem}
.daybook-operation-grid{align-items:start}
.daybook-operation-grid>.daybook-report-section{height:100%}
.daybook-activity-section{background:#f8fbfa}
#daybookView .table-wrap{max-height:440px;overflow:auto}
#daybookActivityTable td:first-child{white-space:nowrap}

@media(max-width:1000px){
  .daybook-stats{grid-template-columns:repeat(2,minmax(130px,1fr))}
  .daybook-selected-stats{grid-template-columns:repeat(2,minmax(130px,1fr))}
  .daybook-operation-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .daybook-filter{display:grid;grid-template-columns:1fr;align-items:stretch}
  .daybook-filter>div:first-child{flex:0 1 auto}
  .daybook-filter label,.daybook-filter button{width:100%;min-width:0}
  .daybook-filter input{width:100%}
  .daybook-stats{grid-template-columns:1fr 1fr}
  .daybook-selected-stats{grid-template-columns:1fr 1fr}
  .daybook-report-section{padding:12px;border-radius:13px}
  .daybook-section-title{display:block}
  .daybook-section-title>strong{display:inline-block;margin-top:8px}
  #daybookView .table-wrap{max-height:none}
}

.invoice-minimized-bar{position:fixed;right:20px;bottom:20px;z-index:80;display:flex;align-items:center;gap:12px;min-width:300px;padding:12px 14px;border:1px solid #b7c8c2;border-radius:12px;background:#fff;box-shadow:0 14px 40px rgba(14,44,37,.24)}
.invoice-minimized-bar[hidden]{display:none}
.invoice-minimized-bar>span{display:flex;flex:1;align-items:center;gap:4px;color:#183b34}
.invoice-minimized-bar small{color:#687671;font-weight:700}
.invoice-minimized-bar button{padding:8px 11px}
@media(max-width:520px){.invoice-minimized-bar{right:10px;bottom:10px;left:10px;min-width:0}}
@media print{.invoice-minimized-bar{display:none!important}}

/* On a single 8.2 x 11-inch page, the signature line stays above the physical bottom edge. */
@media print{
  .invoice-sheet.invoice-single-page{display:flex;flex-direction:column;height:215.9mm}
  .invoice-single-page .invoice-signatures{margin-top:auto;min-height:21.75mm;align-content:start}
}

.invoice-signatures{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;align-items:start}
.invoice-signatures>div{box-sizing:border-box;padding:0 20px;text-align:center}
@media print{.invoice-signatures>div{padding:0 5mm}}

/* Every Invoice print produces three separately titled copies. */
.invoice-copy-title{margin:0 0 3px;color:#17201e;font-size:13px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.invoice-print-copy{background:#fff}.invoice-print-copy+.invoice-print-copy{margin-top:18px}
.invoice-return-policy{margin:3px 0 0;color:#b42318;font-family:"Nirmala UI","Segoe UI",sans-serif;font-size:12px;font-weight:800;letter-spacing:0}
@media print{.invoice-copy-title{margin-bottom:1mm;font-size:10pt}.invoice-return-policy{margin-top:.7mm;font-size:9pt}.invoice-print-copy+.invoice-print-copy{margin-top:0}.invoice-print-copy{break-after:page;page-break-after:always}.invoice-print-copy.last-copy{break-after:auto;page-break-after:auto}}

.admin-menu-card{position:relative;padding-right:70px}.admin-card-menu{position:absolute;right:18px;top:16px;z-index:30}.admin-card-menu-toggle{display:grid;place-items:center;width:38px;height:38px;border:1px solid #d8e3df;border-radius:10px;background:#f6faf8;color:var(--brand);font:900 24px/1 "Segoe UI",Arial,sans-serif;cursor:pointer}.admin-card-menu-toggle:hover,.admin-card-menu.open .admin-card-menu-toggle{border-color:var(--brand);background:var(--brand);color:#fff}.admin-card-menu-popup{display:none;position:absolute;right:0;top:44px;width:210px;padding:7px;border:1px solid #d7e3df;border-radius:12px;background:#fff;box-shadow:0 18px 45px rgba(16,42,39,.2)}.admin-card-menu.open .admin-card-menu-popup{display:flex;flex-direction:column;gap:3px}.admin-card-menu-popup strong{padding:8px 10px;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-card-menu-popup button{border:0;border-radius:8px;padding:9px 10px;background:transparent;color:var(--ink);font:700 13px "Segoe UI",Arial,sans-serif;text-align:left;cursor:pointer}.admin-card-menu-popup button:hover{background:var(--soft);color:var(--brand)}.admin-menu-card.admin-card-collapsed{min-height:70px;padding-top:22px;padding-bottom:22px}.admin-menu-card.admin-card-collapsed>:not(.admin-card-menu){display:none!important}.admin-menu-card.admin-card-collapsed::before{content:attr(data-section-title);display:block;padding-right:44px;font-size:17px;font-weight:800;color:var(--ink)}
@media(max-width:760px){.admin-menu-card{padding-right:62px}.admin-card-menu{right:14px;top:13px}.admin-card-menu-popup{position:fixed;right:14px;top:72px;width:min(260px,calc(100vw - 28px))}}

/* Eye-comfort form fields: low-glare surfaces with clear, gentle focus states. */
label{color:#263a35;line-height:1.35}input,textarea,select{min-height:44px;border-color:#bfd0ca;background:#f7faf6;color:#1b2c28;box-shadow:inset 0 1px 2px rgba(16,42,39,.035);transition:border-color .18s,background-color .18s,box-shadow .18s}textarea{min-height:76px;line-height:1.55}input::placeholder,textarea::placeholder{color:#788681;opacity:1}input:hover,textarea:hover,select:hover{border-color:#8eaaa1;background:#fbfcf8}input:focus,textarea:focus,select:focus{outline:0;border-color:#27826e;background:#fffef8;box-shadow:0 0 0 4px rgba(39,130,110,.13),inset 0 1px 2px rgba(16,42,39,.03)}input[readonly],textarea[readonly],select[disabled],input[disabled],textarea[disabled]{border-color:#d1ddd9;background:#edf3f0;color:#53645f;box-shadow:none;cursor:not-allowed}input:invalid:not(:placeholder-shown),textarea:invalid:not(:placeholder-shown),select:invalid:focus{border-color:#c46b62}input[type="checkbox"],input[type="radio"]{min-height:0;accent-color:var(--brand)}

/* Compact Admin workspace: dense controls without reducing readability. */
.admin-page .topbar{padding:16px max(18px,calc((100vw - 1480px)/2))}.admin-page .topbar h1{font-size:clamp(21px,2.6vw,29px)}.admin-page .topbar .eyebrow{font-size:10px}.admin-page .user-menu{gap:7px}.admin-page .user-menu>span{font-size:12px}.admin-page .user-menu .soft,.admin-page .user-menu .ghost{padding:8px 11px;font-size:12px}.admin-page .notification-bell{width:36px;height:36px;border-radius:9px;font-size:16px}.admin-page .shell{max-width:1480px;margin:16px auto;padding:0 14px}.admin-page .grid{gap:11px}.admin-page .admin-setup-grid{gap:11px}.admin-page .card{padding:16px;border-radius:12px;box-shadow:0 5px 16px rgba(16,42,39,.055)}.admin-page .card h2{margin-bottom:11px;font-size:17px}.admin-page .section-head{gap:10px;margin-bottom:11px}.admin-page .section-head h2{margin-bottom:0}.admin-page .muted{font-size:12px;line-height:1.4}.admin-page label{gap:4px;margin-bottom:9px;font-size:12px}.admin-page input,.admin-page textarea,.admin-page select{min-height:36px;padding:7px 9px;border-radius:7px;font-size:13px}.admin-page textarea{min-height:58px}.admin-page .tab,.admin-page .ghost,.admin-page .soft,.admin-page .primary{padding:8px 11px;border-radius:8px;font-size:12px}.admin-page .actions,.admin-page .dialog-actions{gap:7px;margin-top:11px}.admin-page .card hr{margin:15px 0}.admin-page .tag-list{gap:5px}.admin-page .tag-list span{padding:5px 8px;font-size:12px}.admin-page .admin-users,.admin-page .login-branding-card,.admin-page .stock-admin-grid,.admin-page .sms-admin-grid,.admin-page .email-admin-grid{margin-top:11px;margin-bottom:11px}.admin-page table{min-width:600px}.admin-page th,.admin-page td{padding:8px 7px}.admin-page th{font-size:10px}.admin-page .admin-users table{font-size:12px}.admin-page .status{padding:4px 7px;font-size:10px}.admin-page .admin-search{min-width:240px}.admin-page .branding-admin-layout{gap:14px}.admin-page .branding-preview{min-height:105px;padding:16px;border-radius:13px}.admin-page .branding-preview strong{font-size:19px}.admin-page .branding-preview img{width:170px;height:62px}.admin-page .area-hierarchy{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:9px}.admin-page .area-node{padding:11px;border-radius:9px}.admin-page .area-node h3{margin-bottom:8px}.admin-page .manager-node{margin-top:7px;padding:8px}.admin-page .target-budget-summary{gap:9px;margin:11px 0}.admin-page .target-budget-summary div{padding:10px;border-radius:9px}.admin-page .target-budget-summary span{font-size:11px}.admin-page .target-budget-summary strong{font-size:17px}.admin-page .target-entry-table input{min-width:115px}.admin-page .admin-menu-card{padding-right:55px}.admin-page .admin-card-menu{right:11px;top:10px}.admin-page .admin-card-menu-toggle{width:32px;height:32px;border-radius:8px;font-size:20px}.admin-page .admin-card-menu-popup{top:37px;width:195px}.admin-page .admin-card-menu-popup button{padding:7px 9px;font-size:12px}.admin-page .admin-menu-card.admin-card-collapsed{min-height:55px;padding-top:16px;padding-bottom:16px}.admin-page .admin-menu-card.admin-card-collapsed::before{font-size:15px}
.officer-qualification-stats{grid-template-columns:repeat(4,minmax(150px,1fr))}.qualification-product-sales{display:grid;gap:3px;min-width:190px}.qualification-product-sales span{font-size:11px;color:#52615d}.qualification-qualified{background:#f2fbf6}.qualification-pending{background:#fffdf7}.officer-qualification-card table{min-width:1080px}.officer-qualification-settings-card .grid.three{align-items:end}.qualified-officer-name-panel{margin:14px 0;padding:14px;border:1px solid #cfe4da;border-radius:12px;background:#f5fbf8}.qualified-officer-name-panel .section-head{margin-bottom:9px}.qualified-officer-name-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px}.qualified-officer-name-list article{display:flex;align-items:center;gap:9px;padding:9px 11px;border:1px solid #d9e9e1;border-radius:9px;background:#fff}.qualified-officer-name-list article>span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--brand);color:#fff;font-weight:800;font-size:11px}.qualified-officer-name-list b,.qualified-officer-name-list small{display:block}.qualified-officer-name-list small{margin-top:2px;color:#66736f;font-size:10px}
.admin-page .admin-entry-form-card.admin-card-collapsed::after{content:"ENTRY FORM · COLLAPSED";display:inline-block;margin-top:4px;padding:2px 7px;border-radius:999px;background:#e7f4ef;color:#35665a;font-size:9px;font-weight:900;letter-spacing:.06em}
@media(max-width:760px){.admin-page .topbar{padding:13px 14px}.admin-page .shell{margin:11px auto;padding:0 10px}.admin-page .card{padding:13px}.admin-page .admin-menu-card{padding-right:52px}.admin-page .admin-search{min-width:0;width:100%}.admin-page .section-head{align-items:stretch;flex-direction:column}.admin-page .section-head>.admin-card-menu{position:absolute}.admin-page .grid.two{gap:8px}}


/* Dedicated Collection Entry and Approval workspace. */
.collection-module-grid{align-items:start}.collection-entry-card,.collection-history-card{grid-column:1/-1;min-width:0;width:100%}.collection-entry-card>form{width:100%}.collection-invoice-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.collection-invoice-summary>div,.collection-queue-summary>div{padding:11px;border:1px solid #dbe7e3;border-radius:10px;background:#f7faf8}.collection-invoice-summary span,.collection-queue-summary span{display:block;margin-bottom:4px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.collection-invoice-summary strong,.collection-queue-summary strong{color:var(--ink);font-size:14px}.collection-queue-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 13px}.collection-history-card table{min-width:1050px}.collection-history-card td small{display:block;margin-top:3px}.collection-archive-search-filters{grid-template-columns:repeat(3,minmax(130px,1fr)) auto}.collection-archive-search-filters button{grid-column:4}
@media(max-width:900px){.collection-module-grid{grid-template-columns:1fr}.collection-invoice-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.collection-invoice-summary,.collection-queue-summary{grid-template-columns:1fr}}
@media(max-width:760px){.collection-archive-search-filters{grid-template-columns:1fr 1fr}.collection-archive-search-filters button{grid-column:1/-1}}

/* Monthly dashboards kept separate for each invoice type. */
.sales-type-dashboard-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0}.sales-type-dashboard-tab{min-height:42px;padding:9px 10px;border:1px solid #cbdad5;border-radius:9px;background:#f5f8f7;color:var(--ink);font-size:12px;font-weight:800;cursor:pointer}.sales-type-dashboard-tab:hover{border-color:var(--primary);background:#eef7f3}.sales-type-dashboard-tab.active{border-color:var(--primary);background:var(--primary);color:#fff;box-shadow:0 5px 14px rgba(16,92,67,.18)}.sales-type-dashboard-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.sales-type-dashboard-card .table-wrap{margin-top:14px}.sales-type-dashboard-card table{min-width:1120px}
@media(max-width:960px){.sales-type-dashboard-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.sales-type-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.sales-type-dashboard-tabs,.sales-type-dashboard-stats{grid-template-columns:1fr}}

/* Cash invoices that still have a balance after the 25-day watch threshold. */
.cash-due-watch{margin:16px 0;padding:14px;border:1px solid #f0c9a4;border-radius:12px;background:#fffaf4}.cash-due-watch[hidden]{display:none}.cash-due-watch .section-head{margin-bottom:10px}.cash-due-watch .eyebrow{color:#9b4a00}.cash-due-watch-summary{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.cash-due-watch-summary span{padding:8px 10px;border:1px solid #efd3b7;border-radius:9px;background:#fff;color:var(--muted);font-size:11px;font-weight:800}.cash-due-watch-summary strong{display:block;margin-top:2px;color:#8d3e00;font-size:14px}.cash-due-watch table{min-width:1080px}.cash-due-watch tbody tr{background:#fffdf9}
@media(max-width:680px){.cash-due-watch-summary{justify-content:flex-start}}

/* Monthly Officer > Dealer > Product sales statement. */
.officer-dealer-product-stats{grid-template-columns:repeat(6,minmax(0,1fr))}.officer-dealer-product-card table{min-width:1040px}.officer-dealer-product-card tbody tr:nth-child(even){background:#f8fbfa}.officer-product-report-section{margin-top:18px;padding-top:14px;border-top:1px solid #dce7e3}.officer-product-report-section h3{margin:0 0 4px}.product-total-section{border-top-color:#b9d8cd}
@media(max-width:1050px){.officer-dealer-product-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.officer-dealer-product-stats{grid-template-columns:1fr}}

/* Admin master record Edit / Delete controls. */
.master-row-actions{display:flex;align-items:center;gap:5px;white-space:nowrap}.master-row-manage{position:relative;display:inline-block;flex:0 0 auto}.master-row-manage>summary{display:inline-flex;align-items:center;justify-content:center;min-height:29px;border:1px solid #cdded8;border-radius:7px;padding:5px 9px;background:#f3f8f6;color:var(--brand);font-size:10px;font-weight:800;cursor:pointer;list-style:none}.master-row-manage>summary::-webkit-details-marker{display:none}.master-row-manage>summary::after{content:'⋮';margin-left:5px;font-size:15px;line-height:.7}.master-row-manage[open]>summary{border-color:var(--brand);background:#e8f4ef}.master-row-manage>.master-row-actions{position:absolute;right:0;top:calc(100% + 4px);z-index:45;padding:6px;border:1px solid #d7e4df;border-radius:9px;background:#fff;box-shadow:0 10px 24px rgba(16,42,39,.16)}.master-row-actions .soft,.master-row-actions .master-delete{padding:5px 8px!important;border-radius:7px;font-size:11px}.master-delete{border:0;background:#feeceb;color:var(--danger);font-weight:800;cursor:pointer}.master-delete:hover{background:#fbd6d3}.master-delete:disabled{opacity:.55;cursor:not-allowed}.tag-list span.master-tag{display:flex;align-items:center;gap:6px;padding:5px 6px 5px 10px}.tag-list span.master-tag>span{padding:0;background:transparent}.tag-list .master-row-manage{margin-left:2px}.category-tree .master-tree-head,.category-tree li{display:flex;align-items:center;justify-content:space-between;gap:10px}.category-tree li+li{margin-top:5px}.category-tree .master-row-manage{flex-shrink:0}.master-edit-dialog{width:min(660px,94vw)}.master-edit-dialog form{padding:22px}.master-edit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.master-edit-head h2,.master-edit-head p{margin:0}.master-edit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.master-edit-fields>label:has(textarea),.master-edit-fields>.ledger-note{grid-column:1/-1}.master-edit-fields>label:has(textarea.single-line-field){grid-column:auto}.master-edit-fields textarea{min-height:110px}.master-edit-fields textarea.single-line-field{min-height:36px;height:36px;resize:none;overflow:hidden}.master-edit-dialog .dialog-actions{margin:16px -22px -22px;padding:14px 22px}.admin-page .master-row-actions .soft{background:var(--soft);color:var(--brand)}
.action-confirmation-dialog{width:min(470px,calc(100vw - 28px));overflow:hidden}.action-confirmation-content{padding:26px 26px 22px;text-align:center}.action-confirmation-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 14px;border-radius:50%;background:#fff0df;color:#9a5200;font-size:29px;font-weight:900}.action-confirmation-dialog[data-action="delete"] .action-confirmation-icon,.action-confirmation-dialog[data-action="cancel"] .action-confirmation-icon{background:#feeceb;color:var(--danger)}.action-confirmation-content h2{margin:5px 0 10px;font-size:23px}.action-confirmation-content>strong{display:block;margin:0 auto 11px;padding:7px 10px;border-radius:8px;background:#f3f6f5;overflow-wrap:anywhere}.action-confirmation-content>p:last-child{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.action-confirmation-actions{display:grid;grid-template-columns:1fr 1fr;padding:14px 20px}.danger-confirm{background:var(--danger)!important;color:#fff}.danger-confirm:hover{background:#8f1c13!important}
@media(max-width:480px){.action-confirmation-content{padding:22px 18px 18px}.action-confirmation-actions{grid-template-columns:1fr;padding:11px 14px}.action-confirmation-actions button{min-height:44px}}

/* Admin side navigation */
.admin-page .shell.admin-side-nav-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:14px;align-items:start;max-width:1600px}.admin-main-content{min-width:0}.admin-side-nav{position:sticky;top:12px;z-index:35;display:flex;flex-direction:column;max-height:calc(100vh - 24px);overflow:hidden;border:1px solid #d6e4df;border-radius:14px;background:#fff;box-shadow:0 10px 30px rgba(16,42,39,.09)}.admin-side-nav-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;border-bottom:1px solid var(--line);background:#102a27;color:#fff}.admin-side-nav-head span,.admin-side-nav-head strong{display:block}.admin-side-nav-head span{color:#91d8c7;font-size:9px;font-weight:900;letter-spacing:.12em}.admin-side-nav-head strong{margin-top:2px;font-size:17px}.admin-side-nav-head button{display:none;border:0;background:transparent;color:#fff;font-size:27px;cursor:pointer}.admin-side-nav-search{margin:0;padding:11px;border-bottom:1px solid var(--line);font-size:10px}.admin-side-nav-search input{min-height:36px;margin-top:5px;padding:7px 9px;font-size:12px}.admin-side-nav-list{display:flex;flex-direction:column;gap:3px;overflow-y:auto;padding:7px}.admin-side-nav-list button{display:grid;grid-template-columns:27px minmax(0,1fr);gap:7px;align-items:center;width:100%;border:0;border-radius:8px;padding:8px;background:transparent;color:#34423e;text-align:left;cursor:pointer}.admin-side-nav-list button:hover{background:#edf7f3;color:var(--brand)}.admin-side-nav-list button.active{background:var(--brand);color:#fff}.admin-side-nav-list button>span{font-size:9px;font-weight:900;opacity:.65}.admin-side-nav-list button>strong{overflow:hidden;font-size:11px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.admin-side-nav-top{border:0;border-top:1px solid var(--line);padding:11px;background:#f4f8f6;color:var(--brand);font-weight:800;cursor:pointer}.admin-side-nav-toggle,.admin-side-nav-backdrop{display:none}.admin-nav-highlight{animation:admin-nav-highlight 1.2s ease}@keyframes admin-nav-highlight{0%,100%{box-shadow:0 5px 16px rgba(16,42,39,.055)}35%{box-shadow:0 0 0 4px rgba(12,107,88,.2),0 12px 30px rgba(16,42,39,.14)}}
@media(max-width:980px){.admin-page .shell.admin-side-nav-layout{display:block}.admin-side-nav-toggle{position:sticky;top:6px;z-index:70;display:flex;align-items:center;gap:8px;width:100%;margin:0 0 10px;border:1px solid #cfe0da;border-radius:10px;padding:10px 12px;background:#fff;color:var(--brand);font:800 13px "Segoe UI",Arial,sans-serif;box-shadow:0 7px 20px rgba(16,42,39,.12)}.admin-side-nav-toggle span{font-size:18px}.admin-side-nav{position:fixed;left:0;top:0;bottom:0;z-index:210;width:min(310px,88vw);max-height:none;border-radius:0 16px 16px 0;transform:translateX(-105%);transition:transform .2s ease}.admin-side-nav.open{transform:translateX(0)}.admin-side-nav-head button{display:block}.admin-side-nav-backdrop{position:fixed;inset:0;z-index:205;border:0;background:rgba(8,22,19,.58)}.admin-side-nav-backdrop.open{display:block}.admin-side-nav-list button{padding:10px 9px}.admin-side-nav-list button>strong{font-size:12px}}
@media(max-width:620px){.master-edit-fields{grid-template-columns:1fr}.master-edit-fields>label,.master-edit-fields>.ledger-note{grid-column:1}.master-row-actions{flex-wrap:wrap}}
@media(max-width:700px){.price-revision-summary{grid-template-columns:1fr 1fr;padding:12px}.price-usage-section{margin:4px 12px 14px}.price-usage-head{display:block}.price-usage-totals{justify-content:flex-start;margin-top:10px}}

/* Mobile report interface */
/* Report section View / Hide controls are available on desktop and mobile. */
.mobile-report-directory{display:none}
.mobile-report-surface .card{position:relative;scroll-margin-top:82px}
.mobile-report-toggle{display:block;position:absolute;z-index:3;right:12px;top:12px;padding:7px 12px;border:1px solid #c8ddd5;border-radius:8px;background:#eef7f3;color:var(--brand);font:800 11px "Segoe UI",Arial,sans-serif;cursor:pointer}
.mobile-report-toggle:hover,.mobile-report-toggle:focus-visible{border-color:var(--brand);background:var(--brand);color:#fff;outline:none}
.mobile-report-surface .card>.section-head:first-child{padding-right:62px}
.mobile-report-surface .mobile-report-collapsed{min-height:62px;padding-top:20px;padding-bottom:20px}
.mobile-report-surface .mobile-report-collapsed::before{content:attr(data-report-title);display:block;padding-right:68px;color:var(--ink);font-size:16px;font-weight:800;line-height:1.35}
.mobile-report-surface .mobile-report-collapsed>:not(.mobile-report-toggle){display:none!important}
.section-view-card{position:relative;scroll-margin-top:82px}
.section-view-toggle{position:absolute;z-index:3;right:12px;top:12px;padding:7px 12px;border:1px solid #c8ddd5;border-radius:8px;background:#eef7f3;color:var(--brand);font:800 11px "Segoe UI",Arial,sans-serif;cursor:pointer}
.section-view-toggle:hover,.section-view-toggle:focus-visible{border-color:var(--brand);background:var(--brand);color:#fff;outline:none}
.section-view-card.section-view-collapsed{min-height:62px;padding-top:20px;padding-bottom:20px}
.section-view-card.section-view-collapsed::before{content:attr(data-section-view-title);display:block;padding-right:68px;color:var(--ink);font-size:16px;font-weight:800;line-height:1.35}
.section-view-card.section-view-collapsed>:not(.section-view-toggle){display:none!important}
@media(max-width:980px){
  .workspace-page .topbar{flex-direction:column;align-items:stretch;padding:14px 16px}.workspace-page .topbar h1{font-size:23px}.workspace-page .user-menu{width:100%;justify-content:space-between;flex-wrap:wrap;gap:8px}.workspace-page .shell{margin-top:10px;padding:0 10px}
  .mobile-report-directory{position:sticky;z-index:18;top:94px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:12px;border:1px solid #cfe2db;border-radius:13px;background:rgba(239,248,244,.97);box-shadow:0 8px 22px rgba(16,42,39,.12);backdrop-filter:blur(10px)}
  .mobile-report-directory>div:first-child{flex:0 0 auto}.mobile-report-directory span,.mobile-report-directory strong{display:block}.mobile-report-directory span{color:var(--brand);font-size:9px;font-weight:900;letter-spacing:.12em}.mobile-report-directory strong{margin-top:2px;font-size:14px}
  .mobile-report-directory-grid{display:flex;gap:6px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 1px}.mobile-report-directory-grid button{flex:0 0 auto;max-width:190px;padding:8px 10px;border:1px solid #c9ddd5;border-radius:8px;background:#fff;color:var(--brand);font:700 11px "Segoe UI",Arial,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;scroll-snap-align:start}.mobile-report-directory-grid button.active{border-color:var(--brand);background:var(--brand);color:#fff;box-shadow:0 4px 10px rgba(12,107,88,.2)}
  .mobile-report-surface .card{position:relative;margin-top:10px;padding:14px;border-radius:13px;scroll-margin-top:82px}.mobile-report-toggle{display:block;position:absolute;z-index:3;right:10px;top:9px;padding:6px 9px;border:1px solid #c8ddd5;border-radius:7px;background:#eef7f3;color:var(--brand);font:800 10px "Segoe UI",Arial,sans-serif}.mobile-report-surface .card>.section-head:first-child{padding-right:48px}
  .section-view-toggle{right:10px;top:9px;padding:6px 9px;font-size:10px}.section-view-card.section-view-collapsed{min-height:54px;padding:16px 58px 14px 14px}.section-view-card.section-view-collapsed::before{padding-right:0;font-size:14px}
  .mobile-report-surface .mobile-report-collapsed{min-height:54px;padding:16px 58px 14px 14px}.mobile-report-surface .mobile-report-collapsed::before{content:attr(data-report-title);display:block;color:var(--ink);font-size:14px;font-weight:800;line-height:1.35}.mobile-report-surface .mobile-report-collapsed>:not(.mobile-report-toggle){display:none!important}
  .mobile-report-surface .section-head,.mobile-report-surface .section-head.report-filter,.mobile-report-surface .section-head.book-filter{align-items:stretch;flex-direction:column;gap:9px}.mobile-report-surface .section-head h2{font-size:18px;line-height:1.25}.mobile-report-surface .report-filter label,.mobile-report-surface .book-filter label{min-width:0;width:100%;margin:0}.mobile-report-surface .report-filter button,.mobile-report-surface .book-filter button{width:100%;min-height:42px}.mobile-report-surface input,.mobile-report-surface select{min-height:42px;font-size:16px}
  .mobile-report-surface .stats{grid-template-columns:1fr 1fr;gap:8px;margin:13px 0}.mobile-report-surface .stats div{min-width:0;padding:11px;border-radius:10px}.mobile-report-surface .stats span{font-size:10px;line-height:1.3}.mobile-report-surface .stats strong{margin-top:4px;font-size:17px;overflow-wrap:anywhere}
  .mobile-report-surface .grid.two,.mobile-report-surface .monthly-statement-grid,.mobile-report-surface .dashboard-tables{grid-template-columns:1fr;gap:10px}
  .mobile-report-surface .table-wrap{overflow:visible;max-height:none}.mobile-report-surface table{display:block;width:100%;min-width:0!important}.mobile-report-surface table thead{display:none}.mobile-report-surface table tbody,.mobile-report-surface table tfoot{display:grid;gap:9px}.mobile-report-surface table tbody tr,.mobile-report-surface table tfoot tr{display:block;width:100%;overflow:hidden;border:1px solid #dbe7e2;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(16,42,39,.04)}.mobile-report-surface table tbody td,.mobile-report-surface table tbody th,.mobile-report-surface table tfoot td,.mobile-report-surface table tfoot th{display:grid;grid-template-columns:minmax(105px,.8fr) minmax(0,1.2fr);gap:10px;align-items:start;width:100%;padding:9px 11px;border:0;border-bottom:1px solid #edf2ef;text-align:right;overflow-wrap:anywhere;white-space:normal!important}.mobile-report-surface table tbody td:last-child,.mobile-report-surface table tbody th:last-child,.mobile-report-surface table tfoot td:last-child,.mobile-report-surface table tfoot th:last-child{border-bottom:0}.mobile-report-surface table tbody td::before,.mobile-report-surface table tbody th::before,.mobile-report-surface table tfoot td::before,.mobile-report-surface table tfoot th::before{content:attr(data-label);color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.04em;text-align:left;text-transform:uppercase}.mobile-report-surface table tbody td>*,.mobile-report-surface table tbody th>*,.mobile-report-surface table tfoot td>*,.mobile-report-surface table tfoot th>*{max-width:100%}.mobile-report-surface table tbody td.empty{display:block;padding:18px;text-align:center}.mobile-report-surface table tbody td.empty::before{display:none}.mobile-report-surface table tbody tr.qualification-qualified{background:#f2fbf6}.mobile-report-surface table tbody tr.report-total-row,.mobile-report-surface table tfoot tr{border:2px solid var(--brand);background:#e6f3ee}.mobile-report-surface table tbody tr.report-total-row th,.mobile-report-surface table tbody tr.report-total-row td,.mobile-report-surface table tfoot th,.mobile-report-surface table tfoot td{color:#073d33;font-weight:900}
  .mobile-report-surface .current-dues-layout{display:flex;flex-direction:column}.mobile-report-surface .current-dues-summary{order:-1;width:100%;margin:0 0 10px}.mobile-report-surface .inline-actions,.mobile-report-surface .mango-overdue-summary,.mobile-report-surface .cash-due-watch-summary{display:grid;grid-template-columns:1fr;gap:7px;width:100%;margin:0}.mobile-report-surface .inline-actions button,.mobile-report-surface .mango-overdue-summary button{width:100%;min-height:42px}.mobile-report-surface .qualified-officer-name-list{grid-template-columns:1fr}.mobile-report-surface .sales-type-dashboard-tabs{grid-template-columns:1fr 1fr}.mobile-report-surface .officer-product-report-section{margin-top:13px;padding-top:11px}
}
@media(max-width:430px){.mobile-report-directory{align-items:stretch;flex-direction:column}.mobile-report-directory-grid{width:100%}.mobile-report-surface .stats{grid-template-columns:1fr}.mobile-report-surface .sales-type-dashboard-tabs{grid-template-columns:1fr}.mobile-report-surface table tbody td,.mobile-report-surface table tbody th,.mobile-report-surface table tfoot td,.mobile-report-surface table tfoot th{grid-template-columns:92px minmax(0,1fr);padding:8px 9px}.workspace-page .user-menu>span{width:100%;font-size:11px}}

.admin-side-nav-settings{display:grid;grid-template-columns:34px minmax(0,1fr) 12px;gap:9px;align-items:center;margin:9px 9px 0;padding:9px 10px;border:1px solid #bcdcd3;border-radius:10px;background:#eaf7f3;color:var(--brand);text-decoration:none}.admin-side-nav-settings:hover,.admin-side-nav-settings:focus-visible{border-color:var(--brand);background:#dff2ec}.admin-side-nav-settings>span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--brand);color:#fff}.admin-side-nav-settings svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.admin-side-nav-settings strong{font-size:12px}.admin-side-nav-settings b{font-size:20px}
@media(max-width:430px){.mobile-report-surface .officer-qualification-card>.section-head .muted{display:none}.mobile-report-surface .officer-qualification-stats{grid-template-columns:1fr 1fr}.mobile-report-surface .officer-qualification-stats div{padding:9px}.mobile-report-surface .officer-qualification-stats span{font-size:9px}.mobile-report-surface .officer-qualification-stats strong{font-size:16px}}
.admin-invoice-type-summary{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:10px}.admin-invoice-type-summary>div{background:#f3faf7}.admin-invoice-list-tools>.actions{flex-wrap:wrap}.admin-invoice-export{align-self:end;min-height:40px}
.admin-invoice-list-table table{min-width:1120px}.admin-invoice-list-table td:nth-child(2){white-space:nowrap}.admin-invoice-list-table td:nth-child(4)>b,.admin-invoice-list-table td:nth-child(4)>small,.admin-invoice-list-table td:nth-child(5)>small{display:block}.admin-invoice-list-table td:nth-child(4)>small,.admin-invoice-list-table td:nth-child(5)>small{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.35}
.admin-collection-list-table table{min-width:1280px}.admin-collection-list-table td:nth-child(1),.admin-collection-list-table td:nth-child(6){white-space:nowrap}.admin-collection-list-table td:nth-child(4)>b,.admin-collection-list-table td:nth-child(4)>small,.admin-collection-list-table td:nth-child(5)>small{display:block}.admin-collection-list-table td:nth-child(4)>small,.admin-collection-list-table td:nth-child(5)>small{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.35}.admin-collection-list-table tfoot th,.admin-collection-list-table tfoot td{border-top:2px solid var(--brand);background:#e6f3ee;color:#073d33;font-weight:900}
.admin-bank-summary{margin:10px 0 14px}.admin-bank-summary h4{margin:0 0 8px;color:var(--brand);font-size:14px}.admin-bank-summary-table table{min-width:760px}.admin-bank-summary-table tbody tr:last-child th{background:#e6f3ee;color:#073d33;font-weight:900}
.admin-invoice-preview-button{min-width:78px;padding:8px 12px;white-space:nowrap}.admin-invoice-preview-dialog{width:min(1180px,96vw);height:min(900px,94vh);padding:0;overflow:hidden;background:#eef2f0}.admin-invoice-preview-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border-bottom:1px solid #d5e2dd;background:#fff}.admin-invoice-preview-head h2,.admin-invoice-preview-head p{margin:0}.admin-invoice-preview-head h2{margin-top:2px;font-size:18px}.admin-invoice-preview-dialog iframe{display:block;width:100%;height:calc(100% - 67px);border:0;background:#eef2f0}
body.embedded-invoice-preview{overflow:hidden;background:#eef2f0}body.embedded-invoice-preview>.topbar,body.embedded-invoice-preview>.shell,body.embedded-invoice-preview>#invoiceMinimized{display:none!important}body.embedded-invoice-preview #invoiceDialog{width:min(1040px,100%);max-width:100%;height:100vh;max-height:100vh;margin:0 auto}body.embedded-invoice-preview #invoiceDialog::backdrop{background:#eef2f0}
@media(max-width:760px){.admin-invoice-preview-dialog{width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0}.admin-invoice-preview-head{padding:10px 12px}.admin-invoice-preview-head h2{font-size:16px}.admin-invoice-preview-dialog iframe{height:calc(100% - 62px)}body.embedded-invoice-preview #invoicePreview{padding:12px;overflow-x:hidden}body.embedded-invoice-preview .invoice-sheet{padding:14px}body.embedded-invoice-preview .invoice-product-table{display:block;width:100%;border:0;table-layout:auto}body.embedded-invoice-preview .invoice-product-table thead{display:none}body.embedded-invoice-preview .invoice-product-table tbody{display:grid;gap:10px}body.embedded-invoice-preview .invoice-product-table tr{display:block;overflow:hidden;border:1px solid #d8e3df;border-radius:10px;background:#fff}body.embedded-invoice-preview .invoice-product-table td{display:grid;grid-template-columns:94px minmax(0,1fr);gap:10px;width:100%!important;padding:8px 10px;border:0;border-bottom:1px solid #edf2ef;text-align:right;white-space:normal!important;overflow-wrap:anywhere}body.embedded-invoice-preview .invoice-product-table td:last-child{border-bottom:0}body.embedded-invoice-preview .invoice-product-table td::before{color:#64706d;font-size:9px;font-weight:900;letter-spacing:.04em;text-align:left;text-transform:uppercase}body.embedded-invoice-preview .invoice-product-table td:nth-child(1)::before{content:'SL'}body.embedded-invoice-preview .invoice-product-table td:nth-child(2)::before{content:'Product Name'}body.embedded-invoice-preview .invoice-product-table td:nth-child(3)::before{content:'Size / Packing'}body.embedded-invoice-preview .invoice-product-table td:nth-child(4)::before{content:'Quantity'}body.embedded-invoice-preview .invoice-product-table td:nth-child(5)::before{content:'Rate'}body.embedded-invoice-preview .invoice-product-table td:nth-child(6)::before{content:'Amount'}body.embedded-invoice-preview .invoice-product-table .number-cell{text-align:right;white-space:normal}}
@media(max-width:900px){.admin-invoice-type-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-invoice-type-summary>div:last-child{grid-column:1/-1}}
@media(max-width:600px){.admin-invoice-list-tools>.actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.admin-invoice-list-tools .admin-search{grid-column:1/-1}.admin-invoice-export{width:100%}}

/* Mobile user data-entry interface */
.mobile-entry-guide{display:none}
@media(max-width:760px){
  .mobile-entry-guide{display:flex;flex-direction:column;gap:2px;margin:0 0 11px;padding:11px 13px;border:1px solid #cce1d9;border-left:4px solid var(--brand);border-radius:10px;background:#eff8f4}.mobile-entry-guide span{color:var(--brand);font-size:9px;font-weight:900;letter-spacing:.12em}.mobile-entry-guide strong{font-size:13px;line-height:1.4}
  .mobile-entry-surface .card{padding:14px;border-radius:13px}.mobile-entry-surface .grid.two,.mobile-entry-surface .grid.compact{grid-template-columns:1fr;gap:0}.mobile-entry-surface label{gap:6px;margin-bottom:12px;font-size:13px}.mobile-entry-surface input,.mobile-entry-surface select,.mobile-entry-surface textarea{min-width:0;min-height:46px;padding:11px 12px;font-size:16px}.mobile-entry-surface textarea{min-height:76px}.mobile-entry-surface button{touch-action:manipulation}.mobile-entry-surface button.primary[type="submit"]{min-height:48px}
  .mobile-entry-surface .section-head{align-items:stretch;flex-direction:column;gap:8px}.mobile-entry-surface .section-head h2{font-size:18px}.mobile-entry-surface .entry-card-title{margin-bottom:14px}.mobile-entry-surface .entry-card-title>span{flex-basis:34px;height:34px}.mobile-entry-surface .entry-card-title h2{font-size:18px}.mobile-entry-surface .dealer-master-details{grid-template-columns:1fr;gap:7px;padding:10px}.mobile-entry-surface .dealer-master-details .dealer-officer{grid-column:1}.mobile-entry-surface .dealer-code-prefix{padding:0 9px}
  #invoiceView .invoice-entry-heading{gap:11px;margin-bottom:12px}#invoiceView .invoice-entry-heading h2{font-size:23px}#invoiceView .invoice-entry-heading p{font-size:12px;line-height:1.45}#invoiceView .invoice-flow{width:100%}#invoiceView .invoice-flow span{flex:1;padding:8px 5px;text-align:center}
  #invoiceView .invoice-image-import-card{margin-bottom:12px}#invoiceView .invoice-image-controls{grid-template-columns:1fr}#invoiceView .invoice-image-controls>button{min-height:48px}#invoiceView .invoice-image-dropzone{min-height:92px}#invoiceView .invoice-image-workspace{grid-template-columns:1fr}#invoiceView .invoice-image-preview{min-height:180px}#invoiceView .invoice-image-summary{grid-template-columns:1fr 1fr}
  #invoiceView .invoice-products-card{padding:16px;border-width:2px}#invoiceView .invoice-product-head{margin-bottom:16px}#invoiceView .invoice-step-title>span{flex-basis:46px;height:46px}#invoiceView .invoice-step-title h2{font-size:22px}#invoiceView .invoice-step-title p{font-size:13px;line-height:1.45}#invoiceView .items-card .table-wrap{overflow:visible;max-height:none;border:0;background:transparent}#invoiceView .items-table{display:block;width:100%;min-width:0;table-layout:auto}#invoiceView .items-table thead{display:none}#invoiceView .items-table tbody{display:grid;gap:15px;counter-reset:invoice-product-row}#invoiceView .items-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:15px;border:2px solid #cfdfd9;border-radius:15px;background:#fff;box-shadow:0 7px 20px rgba(16,42,39,.07)}#invoiceView .items-table tr::before{counter-increment:invoice-product-row;content:'PRODUCT ' counter(invoice-product-row);grid-column:1/-1;padding-bottom:9px;border-bottom:1px solid #dce8e3;color:var(--brand);font-size:11px;font-weight:900;letter-spacing:.08em}#invoiceView .items-table td{display:block;width:100%;min-width:0;padding:0;border:0;text-align:left}#invoiceView .items-table td:nth-child(1),#invoiceView .items-table td:nth-child(2),#invoiceView .items-table td:nth-child(7){grid-column:1/-1}#invoiceView .items-table td::before{content:attr(data-label);display:block;margin-bottom:6px;color:#526a62;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}#invoiceView .items-table select,#invoiceView .items-table input{width:100%;min-width:0!important;min-height:52px;margin:0;padding:12px;font-size:16px}#invoiceView .items-table .product{font-size:17px;font-weight:750}#invoiceView .items-table .available-stock{display:flex;align-items:center;width:100%;min-height:52px;padding:12px;border:1px solid #cce2d9;border-radius:9px;background:#edf8f4;color:#0c6b58;text-align:left}#invoiceView .items-table .line-total{display:flex;align-items:center;min-height:52px;padding:12px;border-radius:9px;background:#e5f4ee;color:var(--brand);font-size:17px;font-weight:900}#invoiceView .items-table .remove{width:100%;height:48px;font-size:22px}#invoiceView .totals{max-width:none;margin-top:14px}#invoiceView .totals .grand{font-size:19px}
  .mobile-entry-surface .actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:sticky;bottom:8px;z-index:12;margin:14px -5px 0;padding:8px;border:1px solid #d4e3de;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(16,42,39,.18);backdrop-filter:blur(8px)}.mobile-entry-surface .actions button{width:100%;min-height:46px;padding:10px}
  #collectionEntryForm>button.primary{position:sticky;bottom:8px;z-index:12;width:100%;box-shadow:0 8px 24px rgba(12,107,88,.25)}.collection-invoice-summary{grid-template-columns:1fr 1fr}.collection-invoice-summary>div{padding:9px}.collection-invoice-summary strong{font-size:13px;overflow-wrap:anywhere}
  #challanView .challan-layout{grid-template-columns:1fr}#challanView .challan-invoice-picker{max-height:none;overflow:visible}#challanView .challan-invoice-picker table{display:block;min-width:0}#challanView .challan-invoice-picker thead{display:none}#challanView .challan-invoice-picker tbody{display:grid;gap:9px}#challanView .challan-invoice-picker tr{display:block;padding:9px;border:1px solid #d7e4df;border-radius:11px;background:#fff}#challanView .challan-invoice-picker td{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;width:100%;padding:7px;border-bottom:1px solid #edf2ef;text-align:right;overflow-wrap:anywhere}#challanView .challan-invoice-picker td:last-child{border-bottom:0}#challanView .challan-invoice-picker td::before{content:attr(data-label);color:var(--muted);font-size:9px;font-weight:900;text-align:left;text-transform:uppercase}#challanView .challan-check{justify-self:end;width:24px;height:24px;min-height:24px}
  .payment-dialog{width:calc(100vw - 20px);max-height:92vh;padding:18px;overflow:auto}.payment-dialog .payment-summary{grid-template-columns:1fr}.payment-dialog .dialog-actions{position:sticky;bottom:-18px;display:grid;grid-template-columns:1fr 1fr;margin:14px -18px -18px;padding:10px 18px}.payment-dialog input,.payment-dialog select{min-height:46px;font-size:16px}
  #invoiceView .items-table .line-total{display:block}
}
@media(max-width:430px){.mobile-entry-surface .actions{grid-template-columns:1fr}.collection-invoice-summary{grid-template-columns:1fr}#invoiceView .invoice-image-summary{grid-template-columns:1fr}#challanView .challan-invoice-picker td{grid-template-columns:78px minmax(0,1fr)}}
@media(max-width:360px){#invoiceView .items-table tr{grid-template-columns:1fr}#invoiceView .items-table td{grid-column:1/-1!important}}

/* Admin navigation submenus */
.admin-side-nav-submenu{margin:3px 0;border:1px solid #d5e4df;border-radius:9px;background:#f7fbf9}
.admin-side-nav-submenu>summary{display:grid;grid-template-columns:27px minmax(0,1fr) 14px;gap:7px;align-items:center;padding:9px 8px;color:var(--brand);cursor:pointer;list-style:none}
.admin-side-nav-submenu>summary::-webkit-details-marker{display:none}
.admin-side-nav-submenu>summary::after{content:'⌄';font-size:15px;font-weight:900;line-height:1;transition:transform .18s ease}
.admin-side-nav-submenu[open]>summary::after{transform:rotate(180deg)}
.admin-side-nav-submenu.active-group>summary{box-shadow:inset 3px 0 0 var(--brand);background:#eaf5f1;color:#075746}
.admin-side-nav-submenu>summary>span{font-size:8px;font-weight:900;letter-spacing:.06em;opacity:.7}
.admin-side-nav-submenu>summary>strong{font-size:11px;line-height:1.3}
.admin-side-nav-submenu-list{display:flex;flex-direction:column;gap:2px;padding:0 5px 5px 13px;border-top:1px solid #e3ece8}
.admin-side-nav-submenu-list button{margin-top:4px;background:#fff}
.admin-side-nav-submenu-list button>span{color:#5b7770}
.admin-side-nav-submenu-list button.active>span{color:inherit}
.admin-dashboard-card{overflow:hidden}.dashboard-report-board{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:14px;align-items:center;width:100%;border:1px solid #cfe2da;border-radius:14px;padding:16px;background:linear-gradient(135deg,#f7fcfa,#e7f5ef);color:var(--ink);text-align:left;cursor:pointer;box-shadow:0 6px 18px rgba(16,42,39,.07);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.dashboard-report-board:hover,.dashboard-report-board:focus-visible,.dashboard-report-board.open{border-color:var(--brand);box-shadow:0 10px 26px rgba(16,42,39,.14);transform:translateY(-1px)}.dashboard-board-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:14px;background:#a52f2f;color:#fff;font-size:18px;font-weight:900}.dashboard-board-copy small,.dashboard-board-copy strong,.dashboard-board-copy em,.dashboard-board-metric small,.dashboard-board-metric em{display:block}.dashboard-board-copy small{color:#85705f;font-size:9px;font-weight:900;letter-spacing:.08em}.dashboard-board-copy strong{margin:3px 0;color:var(--brand);font-size:18px}.dashboard-board-copy em,.dashboard-board-metric em{color:var(--muted);font-size:11px;font-style:normal}.dashboard-board-metric{text-align:right}.dashboard-board-metric b{display:block;color:#a52f2f;font-size:24px}.dashboard-board-metric small{margin:1px 0 4px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}.dashboard-board-arrow{color:var(--brand);font-size:32px;font-weight:300}.dashboard-report-panel{margin-top:14px;border-top:1px solid var(--line);padding-top:15px}.dashboard-report-panel-head h3{margin:2px 0 5px;font-size:18px}.dashboard-report-panel-head .actions{margin:0}.admin-dashboard-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 14px}.admin-dashboard-summary>div{padding:14px;border:1px solid #d8e7e1;border-radius:11px;background:linear-gradient(145deg,#f7fcfa,#edf7f3)}.admin-dashboard-summary span{display:block;margin-bottom:5px;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.admin-dashboard-summary strong{display:block;color:var(--brand);font-size:20px}.cash-due-dashboard-tools{align-items:end}.cash-due-dashboard-tools .ledger-note{margin:0}.cash-due-dashboard-table table{min-width:900px}.cash-due-dashboard-table td small{display:block;margin-top:3px;color:var(--muted)}.cash-due-age{border-color:#f2c18c;background:#fff4e8;color:#9a4c00}.cash-due-amount{color:#a52f2f;white-space:nowrap}.cash-due-breadcrumbs{display:flex;align-items:center;gap:8px;margin:12px 0;padding:10px 12px;overflow-x:auto;border:1px solid #efd3d3;border-radius:10px;background:#fff9f9;white-space:nowrap}.cash-due-breadcrumbs button{border:0;padding:6px 9px;border-radius:7px;background:#f7e3e3;color:#8e2929;font:800 12px "Segoe UI",Arial,sans-serif;cursor:pointer}.cash-due-breadcrumbs button:hover{background:#a52f2f;color:#fff}.cash-due-breadcrumbs b{color:#b88f8f}.cash-due-breadcrumbs span{color:#47524e;font-size:12px;font-weight:800}.cash-due-dashboard-table .soft{white-space:nowrap}@media(max-width:760px){.dashboard-report-board{grid-template-columns:auto minmax(0,1fr) auto;gap:10px;padding:12px}.dashboard-board-icon{width:46px;height:46px;border-radius:11px;font-size:15px}.dashboard-board-copy strong{font-size:15px}.dashboard-board-copy em{display:none}.dashboard-board-metric{grid-column:2;text-align:left}.dashboard-board-metric b,.dashboard-board-metric small{display:inline}.dashboard-board-metric b{font-size:17px}.dashboard-board-metric small{margin-left:5px}.dashboard-board-metric em{margin-top:3px}.dashboard-board-arrow{grid-column:3;grid-row:1/3}.admin-dashboard-summary{grid-template-columns:1fr}.admin-dashboard-summary>div{padding:11px}.admin-dashboard-summary strong{font-size:18px}.cash-due-dashboard-tools{align-items:stretch}.cash-due-breadcrumbs{padding:8px}.cash-due-dashboard-table table{min-width:800px}}
.admin-main-content .card[hidden]{display:none!important}
.product-price-history-panel{margin-top:22px;border-top:2px solid #d7e5e0;padding-top:18px}.product-price-history-panel h3{margin:0;color:var(--brand);font-size:19px}.product-price-history-panel .table-wrap{margin-top:10px}
.admin-page .production-admin-grid{margin-top:11px;margin-bottom:11px}
.mango-overdue-card{margin-bottom:18px}.mango-overdue-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.mango-overdue-summary>span{padding:8px 11px;border:1px solid #efd0a8;border-radius:9px;background:#fff8ed;color:#71430a;font-size:12px}.mango-overdue-summary strong{margin-left:4px}.mango-overdue-card table{min-width:1080px}
.dashboard-board-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.pending-approval-board{border-color:#e8d9ae;background:linear-gradient(135deg,#fffaf1,#f8edcf)}.dashboard-board-icon.approval-icon{background:#9a6500}.pending-approval-board .dashboard-board-metric b{color:#9a6500}.dashboard-report-panel-head .actions a{text-decoration:none}.pending-invoice-approval-table table{min-width:1080px}.pending-invoice-approval-table td small{display:block;margin-top:3px;color:var(--muted)}@media(max-width:1080px){.dashboard-board-grid{grid-template-columns:1fr}}

/* Device-specific Admin section presentation */
.admin-main-content>.grid{grid-template-columns:minmax(0,1fr)!important}.admin-main-content .card[hidden]{display:none!important}.admin-desktop-layout .admin-main-content>.card,.admin-desktop-layout .admin-main-content>.grid>.card{width:100%;min-width:0}.admin-desktop-layout .admin-main-content .table-wrap{max-height:68vh;border:1px solid #e0e9e5;border-radius:10px}.admin-desktop-layout .admin-main-content .table-wrap thead{position:sticky;top:0;z-index:3;background:#f4f8f6}.admin-desktop-layout .admin-main-content .table-wrap th{background:#f4f8f6}.admin-mobile-current{display:flex;min-width:0;flex-direction:column;align-items:flex-start}.admin-mobile-current small{color:#6f827c;font-size:8px;letter-spacing:.08em}.admin-mobile-current strong{max-width:100%;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){
  .admin-mobile-layout .topbar{position:relative;display:block}.admin-mobile-layout .topbar>div:first-child{margin-bottom:10px}.admin-mobile-layout .topbar h1{font-size:20px}.admin-mobile-layout .user-menu{display:grid;grid-template-columns:1fr auto auto;gap:7px}.admin-mobile-layout .user-menu>span{grid-column:1/-1}.admin-mobile-layout .notification-center{justify-self:start}
  .admin-mobile-layout .admin-side-nav-toggle{min-height:54px;padding:8px 12px}.admin-mobile-layout .admin-side-nav-toggle>span:first-child{flex:0 0 auto}.admin-mobile-layout .admin-mobile-current{flex:1}
  .admin-mobile-layout .admin-main-content>.grid,.admin-mobile-layout .admin-main-content .grid.two,.admin-mobile-layout .admin-main-content .grid.three,.admin-mobile-layout .product-price-grid,.admin-mobile-layout .stock-admin-grid,.admin-mobile-layout .production-admin-grid,.admin-mobile-layout .sms-admin-grid,.admin-mobile-layout .email-admin-grid{grid-template-columns:minmax(0,1fr)!important}
  .admin-mobile-layout .admin-main-content>.card,.admin-mobile-layout .admin-main-content>.grid>.card{width:100%;min-width:0;margin:0;padding:14px;border-radius:13px}.admin-mobile-layout .admin-main-content .card h2{font-size:18px}.admin-mobile-layout .admin-main-content form .actions,.admin-mobile-layout .admin-main-content form>button[type="submit"]{width:100%}.admin-mobile-layout .admin-main-content form .actions{display:grid;grid-template-columns:1fr}.admin-mobile-layout .admin-main-content form .actions button,.admin-mobile-layout .admin-main-content form>button[type="submit"]{min-height:44px}
  .admin-mobile-layout .admin-main-content .table-wrap{max-height:none;overflow:visible;border:0}.admin-mobile-layout .admin-main-content .table-wrap table{display:block;width:100%;min-width:0!important}.admin-mobile-layout .admin-main-content .table-wrap thead{display:none}.admin-mobile-layout .admin-main-content .table-wrap tbody{display:grid;gap:10px}.admin-mobile-layout .admin-main-content .table-wrap tbody tr{display:block;overflow:hidden;width:100%;border:1px solid #d9e6e1;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(16,42,39,.05)}.admin-mobile-layout .admin-main-content .table-wrap tbody td{display:grid;grid-template-columns:minmax(95px,.8fr) minmax(0,1.2fr);gap:10px;align-items:start;width:100%;padding:9px 11px;border-bottom:1px solid #edf2ef;text-align:right;overflow-wrap:anywhere;white-space:normal}.admin-mobile-layout .admin-main-content .table-wrap tbody td:last-child{border-bottom:0}.admin-mobile-layout .admin-main-content .table-wrap tbody td::before{content:attr(data-label);color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.04em;text-align:left;text-transform:uppercase}.admin-mobile-layout .admin-main-content .table-wrap tbody td>*{max-width:100%}.admin-mobile-layout .admin-main-content .table-wrap tbody td[colspan]{display:block;padding:18px;text-align:center}.admin-mobile-layout .admin-main-content .table-wrap tbody td[colspan]::before{display:none}.admin-mobile-layout .admin-main-content .table-wrap .master-row-manage{justify-self:end}.admin-mobile-layout .admin-main-content .table-wrap .master-row-actions{right:0}
  .admin-mobile-layout .master-edit-dialog,.admin-mobile-layout .audit-history-dialog{width:calc(100vw - 16px);max-width:none;max-height:calc(100vh - 16px);margin:8px}.admin-mobile-layout .master-edit-dialog form{padding:17px}.admin-mobile-layout .master-edit-dialog .dialog-actions{margin:14px -17px -17px;padding:12px 17px}.admin-mobile-layout .master-edit-head{align-items:flex-start}.admin-mobile-layout .audit-history-dialog .table-wrap{max-height:65vh;overflow:auto}
}
.pending-collection-board{border-color:#c8dbee;background:linear-gradient(135deg,#f7fbff,#e8f2fb)}.dashboard-board-icon.collection-icon{background:#17699b}.pending-collection-board .dashboard-board-metric b{color:#17699b}.pending-collection-approval-table table{min-width:1080px}.pending-collection-approval-table td small{display:block;margin-top:3px;color:var(--muted)}.collection-approval-amount{color:#17699b;white-space:nowrap}
.collection-row-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:210px}.collection-row-actions button{min-height:34px;padding:7px 10px;border-radius:8px;font:800 11px "Segoe UI",Arial,sans-serif;cursor:pointer}.collection-delete-button{border:1px solid #e6b4ae;background:#fff1ef;color:#a52a1f}.collection-delete-button:hover{border-color:#b42318;background:#b42318;color:#fff}.collection-action-locked{color:#7b8582;font-size:11px;font-weight:700;white-space:nowrap}@media(max-width:760px){.collection-row-actions{justify-content:flex-end;min-width:0}.collection-row-actions button{min-height:40px}}
.closing-due-board{border-color:#d9d0eb;background:linear-gradient(135deg,#fcfaff,#f0ebf8)}.dashboard-board-icon.closing-icon{background:#684796;font-size:13px;letter-spacing:.04em}.closing-due-board .dashboard-board-metric b{color:#684796}.closing-due-dashboard-table table{min-width:920px}.closing-due-dashboard-table td small{display:block;margin-top:3px;color:var(--muted)}.closing-due-amount{color:#684796;white-space:nowrap}.closing-due-breadcrumbs{display:flex;align-items:center;gap:8px;margin:12px 0;padding:10px 12px;overflow-x:auto;border:1px solid #ddd4eb;border-radius:10px;background:#faf8fd;white-space:nowrap}.closing-due-breadcrumbs button{border:0;padding:6px 9px;border-radius:7px;background:#e9e1f3;color:#56377f;font:800 12px "Segoe UI",Arial,sans-serif;cursor:pointer}.closing-due-breadcrumbs button:hover{background:#684796;color:#fff}.closing-due-breadcrumbs b{color:#927eac}.closing-due-breadcrumbs span{color:#47524e;font-size:12px;font-weight:800}.closing-due-dashboard-table .soft{white-space:nowrap}@media(max-width:760px){.closing-due-breadcrumbs{margin:10px 0;padding:8px}.closing-due-dashboard-table table{min-width:820px}}
.cash-sales-board{border-color:#a9d8c9;background:linear-gradient(135deg,#f7fffc,#e5f6ef)}.dashboard-board-icon.cash-sales-icon{background:#08745e;font-size:10px;letter-spacing:.03em}.cash-sales-board .dashboard-board-metric b{color:#08745e}.cash-sales-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.cash-sales-status-tabs{display:flex;gap:8px;margin:12px 0;overflow-x:auto}.cash-sales-status-tab{flex:0 0 auto;border:1px solid #bddbd1;border-radius:999px;padding:8px 13px;background:#f4faf7;color:#24584c;font:800 12px "Segoe UI",Arial,sans-serif;cursor:pointer}.cash-sales-status-tab.active{border-color:#08745e;background:#08745e;color:#fff}.cash-sales-breadcrumbs{display:flex;align-items:center;gap:8px;margin:12px 0;padding:10px 12px;overflow-x:auto;border:1px solid #cce2da;border-radius:10px;background:#f5fbf8;white-space:nowrap}.cash-sales-breadcrumbs button{border:0;padding:6px 9px;border-radius:7px;background:#dcefe8;color:#075c4b;font:800 12px "Segoe UI",Arial,sans-serif;cursor:pointer}.cash-sales-breadcrumbs button:hover{background:#08745e;color:#fff}.cash-sales-breadcrumbs b{color:#75a698}.cash-sales-breadcrumbs span{color:#47524e;font-size:12px;font-weight:800}.cash-sales-dashboard-table table{min-width:1040px}.cash-sales-dashboard-table .soft{white-space:nowrap}.cash-sales-outstanding{color:#9a5b00;white-space:nowrap}@media(max-width:760px){.cash-sales-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-sales-breadcrumbs{margin:10px 0;padding:8px}.cash-sales-dashboard-table table{min-width:900px}}
.cash-credit-approval-board{border-color:#efc56f;background:linear-gradient(135deg,#fffdf7,#fff3d9)}.dashboard-board-icon.conversion-icon{background:#a86300;font-size:12px;letter-spacing:-.03em}.cash-credit-approval-board .dashboard-board-metric b{color:#9a5b00}.cash-credit-approval-table table{min-width:1160px}.cash-credit-approval-table td small{display:block;margin-top:3px;color:var(--muted)}.cash-credit-approval-table .primary{white-space:nowrap;padding:8px 11px}
.invoice-sheet .invoice-total .invoice-value-words{align-items:flex-start;background:#f5f8f7;color:#17201e;font-size:10px;line-height:1.4}.invoice-sheet .invoice-total .invoice-value-words span{flex:0 0 auto;color:#53615d;font-weight:700}.invoice-sheet .invoice-total .invoice-value-words b{text-align:right}
.invoice-wizard-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}.invoice-wizard-progress button{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;gap:1px 9px;align-items:center;padding:10px 12px;border:1px solid #d8e2de;border-radius:11px;background:#fff;color:#53615d;text-align:left;cursor:pointer}.invoice-wizard-progress button>span{grid-row:1/3;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e8efec;color:#53615d;font-weight:900}.invoice-wizard-progress button>b{color:#263a36;font-size:12px}.invoice-wizard-progress button>small{font-size:9px}.invoice-wizard-progress button.active{border-color:#0c6b58;background:#edf8f4;box-shadow:0 0 0 2px rgba(12,107,88,.08)}.invoice-wizard-progress button.active>span{background:#0c6b58;color:#fff}.invoice-wizard-progress button.completed{border-color:#b9d8cc;background:#f4faf7}.invoice-wizard-progress button.completed>span{background:#2c8c70;color:#fff}.invoice-wizard-part[hidden]{display:none!important}.invoice-wizard-part.active{animation:invoiceWizardReveal .2s ease-out}.invoice-wizard-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:12px 16px;border-top:1px solid #e1e9e6;background:#f8fbfa}.invoice-wizard-actions>span{margin-right:auto;color:#66736f;font-size:10px}@keyframes invoiceWizardReveal{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.invoice-wizard-progress{grid-template-columns:1fr}.invoice-wizard-progress button{min-height:54px}.invoice-wizard-actions{align-items:stretch;flex-direction:column}.invoice-wizard-actions>span{margin:0}.invoice-wizard-actions button{width:100%}.invoice-save-bar .actions{display:grid;grid-template-columns:1fr}.invoice-save-bar .actions button{width:100%}}
#invoiceWizardDetailsCard[hidden]{display:none!important}

/* Eye-catching Admin navigation icons */
.admin-side-nav-head{justify-content:flex-start;background:linear-gradient(135deg,#102a27 0%,#0c6b58 100%)}
.admin-side-nav-head>div{flex:1}.admin-nav-brand-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border:1px solid rgba(255,255,255,.24);border-radius:11px;background:rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}.admin-nav-brand-icon svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.admin-side-nav-submenu{--nav-accent:#0c6b58;--nav-soft:#e7f6f1;overflow:hidden;border-color:#dce9e4;background:#fff;box-shadow:0 2px 7px rgba(16,42,39,.025);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.admin-side-nav-submenu[data-accent="blue"]{--nav-accent:#2563a9;--nav-soft:#eaf2fd}.admin-side-nav-submenu[data-accent="violet"]{--nav-accent:#7152a5;--nav-soft:#f0ebfa}.admin-side-nav-submenu[data-accent="rose"]{--nav-accent:#b44963;--nav-soft:#fcecf0}.admin-side-nav-submenu[data-accent="amber"]{--nav-accent:#ad6a00;--nav-soft:#fff3d9}.admin-side-nav-submenu[data-accent="cyan"]{--nav-accent:#167b8d;--nav-soft:#e4f6f8}.admin-side-nav-submenu[data-accent="indigo"]{--nav-accent:#4d5eb6;--nav-soft:#eceefa}.admin-side-nav-submenu[data-accent="orange"]{--nav-accent:#b55319;--nav-soft:#fff0e7}.admin-side-nav-submenu[data-accent="pink"]{--nav-accent:#a93f8d;--nav-soft:#faeaf6}
.admin-side-nav-submenu:hover{border-color:color-mix(in srgb,var(--nav-accent) 36%,#dce9e4);box-shadow:0 6px 16px rgba(16,42,39,.08);transform:translateY(-1px)}.admin-side-nav-submenu>summary{grid-template-columns:38px minmax(0,1fr) 16px;gap:9px;min-height:50px;padding:6px 9px 6px 7px;color:#263a36;transition:background .18s ease,color .18s ease}.admin-side-nav-submenu>summary:hover{background:var(--nav-soft);color:var(--nav-accent)}.admin-side-nav-submenu>summary::after{color:var(--nav-accent)}.admin-side-nav-submenu>summary>strong{font-size:11.5px;font-weight:800;letter-spacing:.005em}.admin-nav-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--nav-soft);color:var(--nav-accent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--nav-accent) 14%,transparent);transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease}.admin-nav-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.admin-side-nav-submenu:hover .admin-nav-icon{transform:scale(1.06);box-shadow:0 5px 12px color-mix(in srgb,var(--nav-accent) 22%,transparent)}.admin-side-nav-submenu[open]>summary,.admin-side-nav-submenu.active-group>summary{background:var(--nav-soft);color:var(--nav-accent);box-shadow:inset 3px 0 0 var(--nav-accent)}.admin-side-nav-submenu[open] .admin-nav-icon,.admin-side-nav-submenu.active-group .admin-nav-icon{background:var(--nav-accent);color:#fff;box-shadow:0 5px 13px color-mix(in srgb,var(--nav-accent) 28%,transparent)}
.admin-side-nav-submenu-list{border-top-color:color-mix(in srgb,var(--nav-accent) 13%,#e3ece8);background:linear-gradient(180deg,var(--nav-soft),#fff 24px)}.admin-side-nav-submenu-list button.active{background:var(--nav-accent);color:#fff}.admin-side-nav-submenu-list button:hover{color:var(--nav-accent)}
.admin-mobile-menu-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#0c6b58,#159579);color:#fff;box-shadow:0 5px 13px rgba(12,107,88,.24)}.admin-mobile-menu-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.admin-mobile-menu-arrow{margin-left:auto;color:#0c6b58;font-size:28px;font-weight:300;line-height:1}
@media(prefers-reduced-motion:reduce){.admin-side-nav-submenu,.admin-nav-icon{transition:none}}

/* Invoice Register: keep identity and actions reachable without bottom scrolling */
.invoice-register-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.invoice-register-tools button{white-space:nowrap}.invoice-register-scroll-note{margin:-4px 0 10px;padding:8px 10px;border-left:3px solid var(--brand);border-radius:7px;background:#f2f8f5;color:#49635b;font-size:12px}.history-table-wrap{position:relative;border:1px solid #dce7e3;border-radius:11px;scrollbar-gutter:stable}.invoice-register-table{min-width:1680px}.invoice-register-table td{vertical-align:top}.invoice-register-table th:last-child,.invoice-register-table td:last-child{min-width:150px}.invoice-register-table td:last-child .link-btn{display:block;width:100%;padding:5px 6px;text-align:left}.invoice-register-table td:last-child .admin-action-history{max-width:150px}
@media(min-width:761px){.invoice-register-table thead th{position:sticky;top:0;z-index:3;background:#f3f7f5}.invoice-register-table th:first-child,.invoice-register-table td:first-child{position:sticky;left:0;z-index:4;min-width:94px;background:#fff;box-shadow:7px 0 12px -12px rgba(16,42,39,.8)}.invoice-register-table th:last-child,.invoice-register-table td:last-child{position:sticky;right:0;z-index:4;background:#fff;box-shadow:-7px 0 12px -12px rgba(16,42,39,.8)}.invoice-register-table thead th:first-child,.invoice-register-table thead th:last-child{z-index:6;background:#eaf2ef}.invoice-register-table .cancelled-invoice-row td:first-child,.invoice-register-table .cancelled-invoice-row td:last-child{background:#fff7f7}.invoice-register-table .held-invoice-row td:first-child,.invoice-register-table .held-invoice-row td:last-child{background:#faf8ff}}
.invoice-history-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin:14px 0 4px}.invoice-history-pagination[hidden]{display:none}.invoice-history-pagination span{min-width:120px;text-align:center;font-size:12px;font-weight:800;color:#294b42}.invoice-history-pagination button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:760px){.invoice-register-tools{width:100%;justify-content:stretch}.invoice-register-tools button{flex:1 1 130px}.invoice-register-tools #scrollInvoiceRegisterLeft,.invoice-register-tools #scrollInvoiceRegisterRight,.invoice-register-scroll-note{display:none}.history-table-wrap{border:0}.invoice-register-table{min-width:0}.invoice-register-table td:last-child .link-btn{width:auto;text-align:right}.invoice-register-table td:last-child .admin-action-history{max-width:none}}

/* Shared column navigation for every wide User/Admin table */
.global-table-column-nav{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin:0 0 8px;padding:7px 8px;border:1px solid #d8e6e1;border-radius:10px;background:#f4f9f7}.global-table-column-nav[hidden]{display:none!important}.global-table-column-nav span{margin-right:auto;color:#60736d;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.global-table-column-nav button{padding:8px 11px;white-space:nowrap;font-size:11px}.global-table-navigation{position:relative;scrollbar-gutter:stable;border-radius:10px}.global-table-navigation>table>thead th{position:sticky;top:0;z-index:3;background:#f3f7f5}.global-table-navigation>table>thead th:first-child,.global-table-navigation>table>tbody td:first-child{position:sticky;left:0;z-index:4;background:#fff;box-shadow:7px 0 12px -12px rgba(16,42,39,.8)}.global-table-navigation.global-sticky-action>table>thead th:last-child,.global-table-navigation.global-sticky-action>table>tbody td:last-child{position:sticky;right:0;z-index:4;min-width:125px;background:#fff;box-shadow:-7px 0 12px -12px rgba(16,42,39,.8)}.global-table-navigation>table>thead th:first-child,.global-table-navigation.global-sticky-action>table>thead th:last-child{z-index:6;background:#eaf2ef}.global-table-navigation>table>tbody tr.cancelled-invoice-row td:first-child,.global-table-navigation.global-sticky-action>table>tbody tr.cancelled-invoice-row td:last-child{background:#fff7f7}.global-table-navigation>table>tbody tr.held-invoice-row td:first-child,.global-table-navigation.global-sticky-action>table>tbody tr.held-invoice-row td:last-child{background:#faf8ff}
@media(max-width:760px){.global-table-column-nav{display:none!important}.global-table-navigation>table>thead th:first-child,.global-table-navigation>table>tbody td:first-child,.global-table-navigation.global-sticky-action>table>thead th:last-child,.global-table-navigation.global-sticky-action>table>tbody td:last-child{position:static;min-width:0;box-shadow:none}}

/* Native horizontal scrollbar mirrored above every wide table */
.global-table-top-scroll{position:sticky;top:8px;z-index:24;height:23px;margin:0 0 5px;overflow-x:auto;overflow-y:hidden;border:2px solid #b9d2c9;border-radius:8px;background:#eef5f2;box-shadow:0 5px 15px rgba(16,42,39,.16);scrollbar-color:#0c6b58 #dfeae6}.global-table-top-scroll[hidden]{display:none!important}.global-table-top-scroll-width{height:1px;min-width:100%}.global-table-top-scroll::-webkit-scrollbar{height:17px}.global-table-top-scroll::-webkit-scrollbar-track{border-radius:7px;background:#dfeae6}.global-table-top-scroll::-webkit-scrollbar-thumb{border:3px solid #dfeae6;border-radius:8px;background:#0c6b58}
@media(min-width:761px) and (max-width:980px){.global-table-top-scroll{top:74px}}
@media(max-width:760px){.global-table-top-scroll{display:none!important}}

/* Approval Queue: keep viewing and approval as distinct actions. */
.queue-primary-actions{display:grid;gap:6px;min-width:154px;margin-bottom:7px}.queue-primary-actions .link-btn,.queue-primary-actions .queue-approve-invoice{width:100%;min-height:32px;padding:6px 9px;text-align:left;white-space:nowrap}.queue-primary-actions .queue-view-invoice{background:#eaf5ff;color:#145f91}.queue-primary-actions .queue-view-statement{background:#eef8f4;color:var(--brand)}.queue-primary-actions .queue-approve-invoice{text-align:center}.queue-primary-actions .queue-approve-invoice:disabled{cursor:not-allowed;opacity:.58}.approval-review-dialog .dialog-actions>span{margin-right:auto;font-size:11px;font-weight:800}
@media(max-width:760px){.queue-primary-actions{width:100%;min-width:0}.queue-primary-actions .link-btn,.queue-primary-actions .queue-approve-invoice{min-height:42px;text-align:center}}

/* Global date input/display format: DD-MM-YYYY while the source remains ISO. */
.native-date-source{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important}.formatted-date-input{font-variant-numeric:tabular-nums;letter-spacing:.035em}.formatted-date-input::placeholder{letter-spacing:.02em;color:#81908b}.formatted-date-input:invalid:not(:placeholder-shown){border-color:#c94136;box-shadow:0 0 0 2px rgba(201,65,54,.09)}

/* Searchable Pricing/Stock and consistent desktop table scrollbars. */
.inline-search-label{min-width:220px;margin:0;font-size:10px}.inline-search-label input{min-height:38px;margin-top:4px;padding:8px 10px;font-size:12px}.table-wrap{overflow:auto;scrollbar-color:#0c6b58 #dfeae6;scrollbar-width:auto}.table-wrap::-webkit-scrollbar{width:14px;height:14px}.table-wrap::-webkit-scrollbar-track{border-radius:7px;background:#dfeae6}.table-wrap::-webkit-scrollbar-thumb{border:3px solid #dfeae6;border-radius:8px;background:#0c6b58}.product-price-history-panel .table-wrap,.stock-entry-table{max-height:62vh}
@media(max-width:760px){.inline-search-label{width:100%;min-width:0}.inline-search-label input{min-height:44px;font-size:16px}.product-price-history-panel .table-wrap,.stock-entry-table{max-height:none}}

/* Delivery Challan column order: total before invoice-wise breakdown. */
.challan-product-summary-table th:nth-child(2),.challan-product-summary-table td:nth-child(2){width:20%}.challan-product-summary-table th:nth-child(3),.challan-product-summary-table td:nth-child(3){width:17%}.challan-product-summary-table th:nth-child(4),.challan-product-summary-table td:nth-child(4){width:11%;text-align:right}.challan-product-summary-table th:nth-child(5),.challan-product-summary-table td:nth-child(5){width:12%;text-align:right}.challan-product-summary-table th:nth-child(6),.challan-product-summary-table td:nth-child(6){width:15%;text-align:right}.challan-product-summary-table th:nth-child(7),.challan-product-summary-table td:nth-child(7){width:20%;text-align:left}.challan-weight-note{margin:10px 0 0;padding:9px 11px;border:1px solid #efd399;border-radius:8px;background:#fff8e8;color:#76520b;font-size:11px}#challanDialog{width:min(1120px,96vw);max-width:96vw}.challan-sheet{width:100%;max-width:100%;overflow-x:auto}.challan-sheet .challan-product-summary-table{min-width:0;table-layout:fixed}.challan-product-summary-table th,.challan-product-summary-table td{overflow-wrap:anywhere;word-break:normal}.challan-product-summary-table th{font-size:11px;line-height:1.15}.challan-product-summary-table td{font-size:12px;line-height:1.3}
@media(max-width:900px){.challan-sheet{padding:18px}.challan-product-summary-table th,.challan-product-summary-table td{padding:6px 5px}.challan-product-summary-table th{font-size:9px}.challan-product-summary-table td{font-size:11px}.challan-invoice-breakdown{font-size:9px}.challan-meta{gap:12px;font-size:12px}.challan-summary{max-width:330px}}
@media print{.challan-sheet{overflow:visible}.challan-sheet .challan-product-summary-table{min-width:0;table-layout:fixed}.challan-weight-note{padding:1.5mm 2mm;font-size:7pt}}
@media(max-width:600px){#challanDialog .dialog-actions{display:grid;grid-template-columns:1fr 1fr;padding:12px;gap:8px}#challanDialog .dialog-actions button{width:100%;min-width:0;padding:10px 7px;font-size:11px}#challanDialog .dialog-actions #printChallan{grid-column:1/-1}.challan-sheet{padding:13px}.challan-sheet .challan-product-summary-table{min-width:760px}.challan-meta{align-items:flex-start;flex-direction:column}.challan-meta div:last-child{text-align:left}.challan-summary{width:100%;max-width:none}.challan-signatures{gap:18px}.challan-signatures span{min-width:120px}}
.daybook-grand-total td{border-top:2px solid #0c6b58;background:#e7f3ef;color:#075c4b;font-weight:800}.daybook-grand-total td:first-child{white-space:nowrap}
.daybook-title-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.daybook-invoice-print-dialog{width:min(1120px,96vw);max-width:96vw}.daybook-invoice-print-sheet{padding:24px;background:#fff;color:#17201e}.daybook-invoice-print-sheet header{text-align:center;margin-bottom:18px}.daybook-invoice-print-sheet header h1,.daybook-invoice-print-sheet header h2,.daybook-invoice-print-sheet header p{margin:3px 0}.daybook-invoice-print-sheet header h1{font-size:24px}.daybook-invoice-print-sheet header h2{margin-top:12px;color:#0c6b58;font-size:18px}.daybook-invoice-print-table{width:100%;min-width:0;border-collapse:collapse;font-size:11px}.daybook-invoice-print-table th,.daybook-invoice-print-table td{border:1px solid #798781;padding:7px 8px}.daybook-invoice-print-table th{background:#153f37;color:#fff}.daybook-invoice-print-table td:nth-child(7),.daybook-invoice-print-table th:nth-child(7),.daybook-invoice-print-table td:nth-child(8),.daybook-invoice-print-table th:nth-child(8){text-align:right}@page daybookInvoiceReport{size:11in 8.2in;margin:12mm}@media print{#daybookInvoicePrintDialog[open]{page:daybookInvoiceReport}.daybook-invoice-print-sheet{width:255.4mm;margin:0;padding:0;print-color-adjust:exact;-webkit-print-color-adjust:exact}.daybook-invoice-print-sheet header{margin-bottom:5mm}.daybook-invoice-print-sheet header h1{font-size:16pt}.daybook-invoice-print-sheet header h2{font-size:13pt}.daybook-invoice-print-table{font-size:7.4pt}.daybook-invoice-print-table thead{display:table-header-group}.daybook-invoice-print-table tr{break-inside:avoid;page-break-inside:avoid}.daybook-invoice-print-table th,.daybook-invoice-print-table td{padding:1.7mm 1.3mm}}@media(max-width:600px){.daybook-title-actions{width:100%;justify-content:space-between}.daybook-title-actions button{min-height:42px}.daybook-invoice-print-sheet{padding:14px}.daybook-invoice-print-table-host{overflow-x:auto}.daybook-invoice-print-table{min-width:980px}}
.previous-dues-history{margin-top:28px;padding:16px;border:1px solid #cadcd6;border-radius:12px;background:#f7faf9}.previous-dues-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:11px}.previous-dues-heading h3,.previous-dues-heading p{margin:0}.previous-dues-heading p{margin-top:3px;color:#687872;font-size:11px}.previous-dues-equation{display:grid;grid-template-columns:minmax(135px,1fr) auto minmax(155px,1fr) auto minmax(155px,1fr);align-items:stretch;gap:8px;margin-bottom:12px}.previous-dues-equation>div{display:flex;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid #cfdfda;border-radius:9px;background:#fff}.previous-dues-equation span{color:#60716b;font-size:11px;font-weight:700}.previous-dues-equation b{color:#17202a;white-space:nowrap}.previous-dues-equation .dues-operator{align-self:center;color:#075c4b;font-size:18px;font-weight:900}.previous-dues-equation .total{border-color:#0c6b58;background:#e7f3ef}.previous-dues-equation .total span,.previous-dues-equation .total b{color:#075c4b}.previous-dues-history table{min-width:680px;background:#fff}.previous-dues-history th,.previous-dues-history td{padding:8px 9px;font-size:11px}.previous-dues-history td:nth-last-child(-n+3),.previous-dues-history th:nth-last-child(-n+3){text-align:right}@media(max-width:760px){.previous-dues-equation{grid-template-columns:1fr}.previous-dues-equation .dues-operator{text-align:center;line-height:1}}@media(max-width:600px){.previous-dues-heading{flex-direction:column}}

/* Previous Dues prints for every Invoice Type; Cash also includes live Aging. */
@media print{.previous-dues-history{display:block!important;margin-top:6mm;padding:3mm;border-radius:0;break-before:auto;page-break-before:auto;break-inside:avoid;page-break-inside:avoid;overflow:visible}.invoice-with-previous-dues .previous-dues-history{break-before:page;page-break-before:always;margin-top:0}.previous-dues-history .table-wrap{overflow:visible!important}.previous-dues-history .previous-dues-heading,.previous-dues-history .previous-dues-equation{break-inside:avoid;page-break-inside:avoid}.previous-dues-history table{width:100%;min-width:0;font-size:7.5pt}.previous-dues-history table thead{display:table-header-group}.previous-dues-history table tr{break-inside:avoid;page-break-inside:avoid}.previous-dues-history th,.previous-dues-history td{padding:1.4mm 1.2mm;font-size:7.5pt}.previous-dues-history.previous-dues-dense{padding:2mm}.previous-dues-history.previous-dues-dense .previous-dues-heading{margin-bottom:1.5mm}.previous-dues-history.previous-dues-dense .previous-dues-equation{margin-bottom:1.5mm}.previous-dues-history.previous-dues-dense .previous-dues-equation>div{padding:1.2mm}.previous-dues-history.previous-dues-dense th,.previous-dues-history.previous-dues-dense td{padding:.8mm .7mm;font-size:6.5pt;line-height:1.05}.previous-dues-history.previous-dues-very-dense{padding:1.5mm}.previous-dues-history.previous-dues-very-dense .previous-dues-heading p{display:none}.previous-dues-history.previous-dues-very-dense .previous-dues-equation{margin-bottom:1mm}.previous-dues-history.previous-dues-very-dense .previous-dues-equation>div{padding:.8mm}.previous-dues-history.previous-dues-very-dense th,.previous-dues-history.previous-dues-very-dense td{padding:.45mm .5mm;font-size:5.5pt;line-height:1}.previous-dues-history.previous-dues-ultra-dense{padding:1mm}.previous-dues-history.previous-dues-ultra-dense .previous-dues-heading p{display:none}.previous-dues-history.previous-dues-ultra-dense .previous-dues-equation{margin-bottom:.6mm}.previous-dues-history.previous-dues-ultra-dense .previous-dues-equation>div{padding:.5mm}.previous-dues-history.previous-dues-ultra-dense th,.previous-dues-history.previous-dues-ultra-dense td{padding:.15mm .35mm;font-size:4.5pt;line-height:.95}.invoice-sheet.invoice-single-page.invoice-with-previous-dues{display:block;height:auto;min-height:215.9mm}.invoice-with-previous-dues .invoice-signatures{margin-top:4mm;break-before:avoid;page-break-before:avoid}}
@media print{.previous-dues-history[style] tbody tr{height:var(--history-row-height)!important;max-height:var(--history-row-height)!important}.previous-dues-history[style] tbody td{height:var(--history-row-height)!important;padding:var(--history-cell-padding) .5mm!important;font-size:var(--history-font-size)!important;line-height:1!important;white-space:nowrap;overflow:hidden}.previous-dues-history[style] thead th{padding:.45mm .5mm!important;font-size:max(4.5pt,var(--history-font-size))!important;line-height:1!important}}

/* Invoice + Previous History share the same 8.2 x 11-inch page through 24 Product rows. */
@media print{.invoice-with-previous-dues .previous-dues-history{break-before:auto!important;page-break-before:auto!important;margin-top:1.5mm!important;padding:1mm!important}.invoice-with-previous-dues .previous-dues-heading{margin-bottom:.6mm}.invoice-with-previous-dues .previous-dues-heading p{display:none}.invoice-with-previous-dues .previous-dues-equation{margin-bottom:.6mm}.invoice-with-previous-dues .previous-dues-equation>div{padding:.5mm 1mm}.invoice-with-previous-dues .invoice-signatures{break-before:avoid;page-break-before:avoid}}

/* Saved approver signature sits directly above its existing signature line. */
.invoice-signatures>div{position:relative}.invoice-approver-signature,.invoice-user-signature{position:absolute;left:50%;bottom:100%;display:block;width:105px;height:38px;transform:translateX(-50%);object-fit:contain;object-position:center bottom}
@media print{.invoice-approver-signature,.invoice-user-signature{width:28mm;height:10mm}}

/* Month folders keep the Saved Invoice Register compact and date-organized. */
.invoice-month-archive{margin:14px 0 16px;padding:13px;border:1px solid #d5e3de;border-radius:12px;background:#f7faf9}.invoice-month-archive-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:10px}.invoice-month-archive-head b,.invoice-month-archive-head small{display:block}.invoice-month-archive-head small{margin-top:2px;color:var(--muted);font-size:11px}.invoice-month-archive-head>span{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#e2f1eb;color:#075c4b;font-size:11px;font-weight:800}.invoice-month-folders{display:flex;gap:9px;overflow-x:auto;padding:2px 1px 7px;scrollbar-color:#0c6b58 #dfeae6}.invoice-month-folder{display:grid;grid-template-columns:auto minmax(110px,1fr);grid-template-rows:auto auto;column-gap:8px;min-width:170px;border:1px solid #c8d9d3;border-radius:10px;padding:9px 11px;background:#fff;color:#273b35;text-align:left;cursor:pointer}.invoice-month-folder>span{grid-row:1/3;align-self:center;color:#b48316;font-size:22px}.invoice-month-folder b{font-size:12px}.invoice-month-folder small{margin-top:2px;color:var(--muted);font-size:10px}.invoice-month-folder:hover,.invoice-month-folder.active{border-color:#0c6b58;background:#e8f5f0;color:#075c4b;box-shadow:0 0 0 2px rgba(12,107,88,.09)}.invoice-month-folder.active>span{color:#0c6b58}.invoice-month-folder.all-months>span{color:#52645e}
@media(max-width:760px){.invoice-month-archive{padding:11px}.invoice-month-archive-head{align-items:flex-start;flex-direction:column}.invoice-month-folder{min-width:150px;min-height:58px}}

.invoice-archive-date-filter{display:flex;align-items:end;gap:7px}.invoice-archive-date-filter label{min-width:145px;margin:0;color:#52615d;font-size:10px;font-weight:800}.invoice-archive-date-filter input{min-height:36px;margin-top:3px;padding:7px 9px;font-size:12px}.invoice-archive-date-filter button{min-height:36px;padding:7px 10px;white-space:nowrap}
@media(max-width:760px){.invoice-archive-date-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%}.invoice-archive-date-filter label{min-width:0}.invoice-archive-date-filter input{min-height:44px;font-size:16px}.invoice-archive-date-filter button{min-height:44px}}
.invoice-archive-search-filters{display:grid;grid-template-columns:minmax(125px,1fr) minmax(140px,1fr) 140px minmax(135px,1fr) minmax(135px,1fr) auto;align-items:end;gap:7px;flex:1 1 920px}.invoice-archive-search-filters label{min-width:0;margin:0;color:#52615d;font-size:10px;font-weight:800}.invoice-archive-search-filters input,.invoice-archive-search-filters select{min-height:36px;margin-top:3px;padding:7px 9px;font-size:12px}.invoice-archive-search-filters button{min-height:36px;padding:7px 10px;white-space:nowrap}
@media(max-width:1100px){.invoice-month-archive-head{flex-wrap:wrap}.invoice-archive-search-filters{order:3;flex-basis:100%}}
@media(max-width:760px){.invoice-archive-search-filters{display:grid;grid-template-columns:1fr 1fr;width:100%}.invoice-archive-search-filters button{grid-column:1/-1}.invoice-archive-search-filters input,.invoice-archive-search-filters select,.invoice-archive-search-filters button{min-height:44px;font-size:16px}}
.automatic-report-total-row th,.automatic-report-total-row td{border-top:2px solid #0b6b58!important;background:#e6f3ee!important;color:#073d33!important;font-weight:900!important}.automatic-report-total-row th{text-align:left;letter-spacing:.04em}.automatic-report-total-row td{text-align:right;white-space:nowrap}@media print{.automatic-report-total-row th,.automatic-report-total-row td{background:#e8efec!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}

@media(min-width:761px){.invoice-register-table{min-width:1780px}.invoice-register-table th:nth-child(5),.invoice-register-table td:nth-child(5){min-width:105px;white-space:nowrap}}

/* Fluid computer-screen layout: adapts to laptop, desktop and wide monitors. */
html{max-width:100%;overflow-x:hidden}
body{min-width:0}
img,svg,canvas,video{max-width:100%}
.topbar{padding-left:max(18px,calc((100vw - 1760px)/2));padding-right:max(18px,calc((100vw - 1760px)/2))}
.shell{width:calc(100% - clamp(20px,3vw,48px));max-width:1760px;margin:clamp(14px,2vw,28px) auto;padding:0}
.shell>.view,.card,.grid>*{min-width:0}
.card{padding:clamp(14px,1.45vw,24px)}
.grid.two{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
.stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
.section-head>*{min-width:0}
.section-head h2,.section-head p{overflow-wrap:anywhere}
.actions,.dialog-actions{flex-wrap:wrap}
dialog{max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto}
.table-wrap{width:100%;max-width:100%}

.admin-page .shell.admin-side-nav-layout{width:calc(100% - clamp(20px,2.5vw,42px));max-width:1800px;grid-template-columns:clamp(210px,16vw,250px) minmax(0,1fr)}
.admin-desktop-layout .admin-main-content{width:100%;max-width:100%}
.admin-desktop-layout .admin-main-content .card{overflow:hidden}

@media(min-width:1800px){
  .admin-page .shell.admin-side-nav-layout{grid-template-columns:250px minmax(0,1fr)}
  .dashboard-board-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(min-width:761px) and (max-width:1180px){
  .shell{width:calc(100% - 24px)}
  .topbar{padding-left:16px;padding-right:16px}
  .card{padding:16px}
  .section-head{flex-wrap:wrap}
  .section-head.report-filter,.section-head.book-filter{align-items:stretch}
  .section-head.report-filter label,.section-head.book-filter label{flex:1 1 180px;min-width:0}
  .admin-dashboard-summary{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
  .dashboard-report-board{gap:10px;padding:13px}
  .dashboard-board-copy strong{font-size:16px}
}

@media(min-width:761px) and (max-width:980px){
  .admin-page .shell.admin-side-nav-layout{width:calc(100% - 20px)}
}

/* Dealer Code + Ledger invoice-wise statement. */
.dealer-ledger-filter{align-items:end;flex-wrap:wrap}
.dealer-ledger-filter>div:first-child{flex:1 1 100%;margin-bottom:3px}
.dealer-ledger-filter>label{flex:1 1 155px;min-width:0;margin:0}
.dealer-ledger-filter>label:first-of-type{flex-basis:210px}
.dealer-ledger-filter>button{min-height:42px;white-space:nowrap}

/* Gift Ledger heading stays readable; filters wrap without crushing text or buttons. */
.gift-ledger-card>.report-filter{align-items:end;flex-wrap:wrap}
.gift-ledger-card>.report-filter>div:first-child{flex:1 1 100%;width:100%;margin-bottom:3px}
.gift-ledger-card>.report-filter>label{flex:1 1 150px;min-width:140px;margin:0}
.gift-ledger-card>.report-filter>label:first-of-type{flex-basis:220px}
.gift-ledger-card>.report-filter>button{flex:0 0 auto;min-height:42px;white-space:nowrap}
/* Sales Report has several independent filters. Keep its title on a full row
   so adding Region/Territory can never collapse the heading into one letter. */
.sales-report-card>.report-filter{align-items:end;flex-wrap:wrap}
.sales-report-card>.report-filter>div:first-child{flex:1 1 100%;width:100%;margin-bottom:3px}
.sales-report-card>.report-filter>label{flex:1 1 145px;min-width:135px;margin:0}
.sales-report-card>.report-filter>button{flex:0 0 auto;min-height:44px;white-space:nowrap}
.product-movement-card>.report-filter,.territory-movement-card>.report-filter{align-items:end;flex-wrap:wrap}
.product-movement-card>.report-filter>div:first-child,.territory-movement-card>.report-filter>div:first-child{flex:1 1 100%;width:100%;min-width:0;margin-bottom:3px}
.product-movement-card>.report-filter>label,.territory-movement-card>.report-filter>label{flex:1 1 150px;min-width:135px;margin:0}
.product-movement-card>.report-filter>button,.territory-movement-card>.report-filter>button{flex:0 0 auto;min-height:44px;white-space:nowrap}
.stats .report-stat-button{font:inherit;text-align:left;color:inherit;background:#f6faf8;border:1px solid #dcebe6;border-radius:14px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;cursor:pointer;min-width:0}
.report-stat-button:hover,.report-stat-button:focus-visible{border-color:var(--brand);box-shadow:0 0 0 3px rgba(0,110,88,.1);outline:0}
.report-stat-button small{color:var(--brand);font-weight:700;margin-top:5px}
.report-due-panel{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fbfdfc}
@media(max-width:760px){.sales-report-card>.report-filter>div:first-child,.sales-report-card>.report-filter>label,.sales-report-card>.report-filter>button,.product-movement-card>.report-filter>div:first-child,.product-movement-card>.report-filter>label,.product-movement-card>.report-filter>button,.territory-movement-card>.report-filter>div:first-child,.territory-movement-card>.report-filter>label,.territory-movement-card>.report-filter>button{width:100%;min-width:0}}
.dealer-statement-identity{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;margin:3px 0 14px;padding:11px;border:1px solid #cfe2da;border-radius:11px;background:#f2f8f5}
.dealer-statement-identity[hidden]{display:none!important}
.dealer-statement-identity div{min-width:0;padding:7px 9px;border-radius:8px;background:#fff}
.dealer-statement-identity small,.dealer-statement-identity strong{display:block}
.dealer-statement-identity small{color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.dealer-statement-identity strong{margin-top:3px;overflow-wrap:anywhere;color:var(--brand);font-size:13px}
.dealer-statement-identity .dealer-statement-address{grid-column:span 2}
.workspace-page .top-menu-popup{min-width:270px;max-height:calc(100vh - 36px);overflow-y:auto}
.workspace-page .top-menu-popup>button{width:100%;border:0;border-radius:7px;padding:10px 12px;background:transparent;color:var(--ink);font:700 12px "Segoe UI",Arial,sans-serif;text-align:left;white-space:normal;cursor:pointer}
.workspace-page .top-menu-popup>button:hover,.workspace-page .top-menu-popup>button:focus-visible{background:var(--soft);color:var(--brand);outline:0}
.workspace-page .top-menu-popup>button.active{background:var(--brand);color:#fff}
#statementsView.statement-single-report>.card:not(.statement-menu-selected){display:none!important}
#statementsView.statement-single-report>.mobile-report-directory{display:none!important}
.area-statement-parent{background:#f0f8f5}.area-statement-territory td:first-child{padding-left:28px}.area-statement-territory td:first-child span{font-weight:700;color:var(--brand)}
.report-period-label{margin:12px 0 6px;padding:8px 11px;border-left:4px solid var(--brand);border-radius:6px;background:#eef7f4;color:#173e35;font-size:12px;font-weight:800}.report-period-label+.report-export-toolbar{margin-top:0}
.report-view-zoom{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid #d4e1dc;border-radius:9px;background:#f5faf8}.report-view-zoom button{min-width:32px;min-height:32px;padding:5px 8px}.report-view-zoom-value{min-width:48px;color:#173e35;font-size:11px;font-weight:900;text-align:center}.report-a4-sheet{zoom:var(--report-preview-zoom,1)}
.report-view-dialog .report-view-canvas{height:calc(96vh - 118px);max-height:none;overflow-x:auto;overflow-y:scroll;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#0b745f #dbe7e3;overscroll-behavior:contain}.report-view-dialog .report-view-canvas::-webkit-scrollbar{width:15px;height:15px}.report-view-dialog .report-view-canvas::-webkit-scrollbar-track{background:#dbe7e3;border-left:1px solid #c3d4ce}.report-view-dialog .report-view-canvas::-webkit-scrollbar-thumb{border:3px solid #dbe7e3;border-radius:999px;background:#0b745f}.report-view-dialog .report-view-canvas::-webkit-scrollbar-thumb:hover{background:#075544}.report-horizontal-scrollbar{position:sticky;bottom:0;z-index:4;display:grid;grid-template-columns:26px minmax(0,1fr) 26px;align-items:center;gap:7px;height:42px;padding:4px 12px;border-top:1px solid #bdcec8;background:#f7fbf9;color:#075f4d;font-weight:900;text-align:center}.report-horizontal-scroll-range{width:100%;accent-color:#08745e;cursor:ew-resize}.report-horizontal-scroll-range:disabled{opacity:.4;cursor:not-allowed}.report-view-dialog.report-view-dialog-fallback-open{position:fixed;inset:2vh 1vw;z-index:10000;display:block;margin:auto}
@media print{#reportViewDialog .report-a4-sheet{zoom:1!important;transform:none!important}}
@media print{#reportViewDialog .report-horizontal-scrollbar{display:none!important}}
.dealer-ledger-stats{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}
.dealer-ledger-table table{width:100%;min-width:1180px;table-layout:fixed;border-collapse:collapse}.dealer-ledger-table .ledger-col-date{width:8%}.dealer-ledger-table .ledger-col-name{width:16%}.dealer-ledger-table .ledger-col-invoice{width:8%}.dealer-ledger-table .ledger-col-aging{width:11%}.dealer-ledger-table .ledger-col-money{width:8%}.dealer-ledger-table .ledger-col-payment{width:8%}.dealer-ledger-table .ledger-col-bank{width:22%}.dealer-ledger-table .ledger-col-balance{width:11%}
.dealer-collection-line{display:inline-flex;align-items:center;gap:2px;margin:2px 4px 2px 0;padding:3px 5px;border-radius:5px;background:#f1f7f4;color:#52655f;font-size:10px;white-space:nowrap}.dealer-collection-line time{font:inherit}.dealer-collection-line i{font-style:normal}.dealer-collection-line b{color:var(--brand);font-size:inherit}
.dealer-ledger-opening td{background:#eef5f2;color:#36534b}.dealer-ledger-payment td{background:#fbfdfc}.dealer-ledger-payment td:nth-child(6),.dealer-ledger-payment td:last-child{color:var(--brand)}.dealer-ledger-table tfoot th,.dealer-ledger-table tfoot td{border-top:2px solid var(--brand);background:#e6f3ee;color:#073d33;font-weight:900}
@media(max-width:760px){.dealer-ledger-filter>label,.dealer-ledger-filter>label:first-of-type{flex-basis:100%}.dealer-ledger-filter>button{width:100%;min-height:46px}.dealer-statement-identity{grid-template-columns:1fr 1fr}.dealer-ledger-table table{min-width:0}.dealer-collection-line{white-space:normal}}
@media(max-width:600px){.dealer-statement-identity .dealer-statement-address{grid-column:1/-1}}
@media(max-width:430px){.dealer-statement-identity{grid-template-columns:1fr}.dealer-statement-identity .dealer-statement-address{grid-column:1}}
.report-view-subtitle.structured span.wide{grid-column:span 2}
.report-view-subtitle.structured span.full{grid-column:1/-1}
.report-view-subtitle.structured span:last-child{grid-column:auto}

/* Keep generated Report controls with the table column inside the Current Dues grid. */
.current-dues-layout>.report-export-toolbar{grid-column:1;grid-row:1}
.current-dues-layout>.current-dues-report-total{grid-column:1;grid-row:2}
.current-dues-layout>.global-table-column-nav{grid-column:1;grid-row:3}
.current-dues-layout>.global-table-top-scroll{grid-column:1;grid-row:4}
.current-dues-layout>.table-wrap{grid-column:1;grid-row:5;min-width:0;width:100%}
.current-dues-layout>.current-dues-summary{grid-column:2;grid-row:1/span 5;width:100%}
@media(max-width:900px){.current-dues-layout>.report-export-toolbar,.current-dues-layout>.current-dues-report-total,.current-dues-layout>.global-table-column-nav,.current-dues-layout>.global-table-top-scroll,.current-dues-layout>.table-wrap,.current-dues-layout>.current-dues-summary{grid-column:1;grid-row:auto}}
@media(max-width:980px){.mobile-report-surface .current-dues-layout>.report-export-toolbar{order:1}.mobile-report-surface .current-dues-layout>.current-dues-report-total{order:2}.mobile-report-surface .current-dues-layout>.global-table-column-nav{order:3}.mobile-report-surface .current-dues-layout>.global-table-top-scroll{order:4}.mobile-report-surface .current-dues-layout>.table-wrap{order:5}.mobile-report-surface .current-dues-layout>.current-dues-summary{order:6}}
.officer-qualification-stats{grid-template-columns:repeat(6,minmax(120px,1fr))}
.qualified-officer-name-list article.qualification-pending{border-color:#ead9ad;background:#fffaf0}
.qualified-officer-name-list article .payment-badge{display:inline-block;margin-top:5px;font-size:9px;font-style:normal}
.qualification-shortfall{display:block;margin-top:5px;color:#a05a00;font-size:10px;font-weight:800}
.qualification-pack-breakdown{display:block;margin-top:4px;color:#52615d;font-size:10px;font-weight:700;line-height:1.45;white-space:normal}
.territory-statement-section{margin-top:18px}.territory-statement-section>h3{margin:0 0 9px}.territory-statement-stats{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.product-statement-section{margin-top:18px}.product-statement-section>h3{margin:0 0 9px}.product-statement-stats{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
.officer-product-territory-sheet table{min-width:1420px}.officer-product-territory-sheet thead tr:first-child th:nth-child(4){text-align:center}.officer-product-territory-sheet td:nth-child(n+4),.officer-product-territory-sheet th:nth-child(n+4){text-align:right}.officer-product-territory-sheet thead th{vertical-align:middle}.officer-product-territory-sheet tfoot th{border-top:2px solid var(--brand);background:#e6f3ee;color:#073d33;font-weight:900}
.product-hierarchy-action{white-space:nowrap}.product-hierarchy-action button{font-weight:800}.product-hierarchy-name{font-weight:800;text-align:left;text-decoration:underline;text-underline-offset:3px}.product-hierarchy-step[hidden]{display:none!important}.product-region-inline>td,.product-territory-inline>td,.product-dealer-inline>td,.gift-region-inline>td,.gift-territory-inline>td,.gift-dealer-inline>td{padding:10px!important;background:#f1f8f5!important}.product-inline-panel{padding:12px;border:1px solid #b8d8ce;border-radius:12px;background:#fff}.product-inline-panel h4{margin:0 0 10px;color:var(--brand)}.product-inline-panel table{min-width:720px}.dealer-inline-panel table{min-width:980px}
.territory-dealer-type-heading td{padding:11px 13px!important;background:#e8f4ef!important;color:#123d35;text-align:left!important;border-top:2px solid var(--brand)!important}.territory-dealer-type-heading td::before{display:none!important}.territory-dealer-type-heading span{font-weight:900}.territory-dealer-type-heading strong{margin-left:18px}.territory-dealer-type-heading small{margin-left:10px;color:#65736f}
@media(max-width:600px){.territory-dealer-type-heading strong,.territory-dealer-type-heading small{display:block;margin:4px 0 0}}
@media(max-width:980px){.officer-qualification-stats{grid-template-columns:repeat(3,minmax(130px,1fr))}}
@media(max-width:600px){.officer-qualification-stats{grid-template-columns:1fr 1fr}}

/* Every Report View remains readable on a phone. Tablet/laptop widths keep
   the real paper table so an 8.2/A4 preview never turns into stacked cards. */
@media(max-width:600px){
  .report-view-dialog{width:100vw;max-width:100vw;height:100vh;max-height:100vh;margin:0;border-radius:0}
  .report-view-head{position:sticky;top:0;display:flex;align-items:stretch;flex-direction:column;gap:9px;padding:9px 10px}
  .report-view-head>div:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 8px;width:100%}
  .report-view-head>div:first-child p{grid-column:1;font-size:9px;overflow-wrap:normal;word-break:normal}
  .report-view-head>div:first-child h2{grid-column:1;font-size:17px;line-height:1.15}
  .report-view-head>div:first-child .report-auto-pages{grid-column:2;grid-row:1/span 2;align-self:center;margin:0;white-space:nowrap}
  .report-view-head-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}
  .report-view-zoom{grid-column:1/-1;display:grid;grid-template-columns:36px minmax(44px,1fr) 36px minmax(58px,auto);width:100%;min-width:0}
  .report-view-zoom button,.report-view-zoom output{min-width:0;width:100%}
  .report-orientation-label{display:grid;grid-template-columns:1fr;gap:3px;min-width:0;font-size:9px}
  .report-orientation-label select{width:100%;min-width:0;min-height:40px;padding:7px 8px;font-size:13px}
  .report-view-print,.report-view-close{width:100%;min-width:0;min-height:42px;padding:8px;font-size:12px;white-space:normal}
  .report-view-canvas{height:auto;max-height:calc(100dvh - 248px);padding:8px;overflow-x:hidden;overflow-y:auto}
  .report-a4-sheet,.report-a4-sheet.landscape{width:100%!important;min-height:0!important;margin:0;padding:12px;border-radius:10px;box-shadow:none}
  .report-a4-sheet>header{padding-bottom:12px;text-align:left}
  .report-a4-sheet>header h2{font-size:20px}
  .report-view-subtitle.structured{grid-template-columns:1fr}
  .report-view-subtitle.structured span,.report-view-subtitle.structured span.wide,.report-view-subtitle.structured span.full,.report-view-subtitle.structured span:last-child{grid-column:1}
  .report-view-table-wrap{overflow:visible}
  .report-view-table-wrap table,.report-a4-sheet.landscape .report-view-table-wrap table{display:block;width:100%;min-width:0;font-size:12px}
  .report-view-table-wrap thead{display:none}
  .report-view-table-wrap tbody{display:grid;gap:10px}
  .report-view-table-wrap tbody tr{display:block;overflow:hidden;width:100%;border:1px solid #cadbd5;border-radius:10px;background:#fff}
  .report-view-table-wrap tbody td{display:grid;grid-template-columns:minmax(105px,.85fr) minmax(0,1.15fr);gap:10px;width:100%;padding:8px 10px;border:0;border-bottom:1px solid #e7eeeb;text-align:right;overflow-wrap:anywhere;white-space:normal}
  .report-view-table-wrap tbody td:last-child{border-bottom:0}
  .report-view-table-wrap tbody td::before{content:attr(data-label);color:#60736d;font-size:9px;font-weight:900;letter-spacing:.04em;text-align:left;text-transform:uppercase}
  .report-view-table-wrap tbody tr.report-preview-total-row{border:2px solid #0c6b58;background:#e6f3ee}
  .report-view-table-wrap tbody tr.report-preview-total-row td{background:transparent;color:#073d33;font-weight:900}
}

@media(max-width:760px){
  .admin-side-nav{width:min(340px,92vw)}
  .admin-side-nav-head,.admin-side-nav-settings,.admin-side-nav-search,.admin-side-nav-top{flex:0 0 auto}
  .admin-side-nav-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .admin-side-nav-submenu{overflow:visible}
  .admin-side-nav-submenu>summary{min-height:58px;padding:8px}
  .admin-side-nav-submenu>summary>strong{font-size:14px;line-height:1.4;white-space:normal}
  .admin-side-nav-submenu-list{max-height:min(48vh,380px);overflow-y:auto}
}
.qualification-officer-detail{border:0;padding:0;background:transparent;color:var(--brand);font:800 13px "Segoe UI",Arial,sans-serif;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.qualification-officer-detail:hover{color:var(--brand2)}.officer-qualification-detail-dialog{width:min(1120px,96vw);padding:22px}.officer-qualification-detail-dialog table{min-width:900px}
.daybook-title-actions{flex-wrap:wrap}.daybook-challan-choice{display:flex;align-items:center;gap:6px;min-width:92px;font-size:.76rem}.daybook-challan-choice input{width:18px;height:18px;flex:0 0 auto}
.gift-adjustment-quick-section{margin:18px 0;padding:16px;border:1px solid #b8d8ce;border-radius:12px;background:#f7fbf9}.gift-adjustment-quick-section h3{margin:0 0 6px;color:var(--brand)}.gift-adjustment-quick-section .table-wrap{background:#fff;border-radius:9px}.gift-adjustment-quick-section table{min-width:780px}
.global-fiscal-year-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0;padding:10px 14px;border:1px solid #c5ddd5;border-radius:12px;background:#f2f8f5;color:#123d35}.workspace-page .global-fiscal-year-bar{grid-column:2;grid-row:1;min-width:0}.global-fiscal-year-bar>div:first-child{display:grid;gap:2px}.global-fiscal-year-bar strong{font-size:14px}.global-fiscal-year-bar small{color:#60736d;font-size:11px}.global-fiscal-year-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.global-fiscal-year-bar label{display:flex;align-items:center;gap:7px;margin:0;font-size:11px;font-weight:800}.global-fiscal-year-bar select,.global-fiscal-year-bar input{min-width:130px;margin:0;padding:8px 10px}.global-fiscal-year-bar input:disabled{opacity:.55}
@media(max-width:760px){.global-fiscal-year-bar{align-items:stretch;flex-direction:column}.global-fiscal-year-controls{display:grid;grid-template-columns:1fr}.global-fiscal-year-bar label{justify-content:space-between}.global-fiscal-year-bar select,.global-fiscal-year-bar input{flex:1;min-width:0}}
@media(max-width:980px){.workspace-page .global-fiscal-year-bar{margin-bottom:16px}}
.developer-credit{color:#55706a;font-size:12px;font-weight:700;letter-spacing:.03em;text-align:center}.app-developer-credit{max-width:1440px;margin:8px auto 22px;padding:0 18px}.auth-developer-credit{position:fixed;right:18px;bottom:12px;z-index:2;color:rgba(255,255,255,.76)}@media(max-width:760px){.auth-developer-credit{right:0;bottom:8px;width:100%;font-size:11px;text-align:center}}@media print{.developer-credit{display:none!important}}
.document-copyright{clear:both;margin-top:12px;padding-top:7px;border-top:1px solid #d5dfdc;color:#526762;font-size:10px;font-weight:700;letter-spacing:.02em;text-align:center}.report-a4-sheet .document-copyright{margin-top:14px}.report-orientation-label{display:flex;align-items:center;flex-direction:row;gap:7px;margin:0;color:#52615d;font-size:11px}.report-orientation-label select{width:auto;min-width:112px;padding:8px 9px}.report-auto-pages{display:inline-block;margin-top:5px;padding:3px 8px;border-radius:999px;background:#e4f3ee;color:#07624f;font-size:10px;font-weight:900}.report-a4-sheet[data-fit="compact"] .report-view-table-wrap table{font-size:7pt}.report-a4-sheet[data-fit="compact"] .report-view-table-wrap td,.report-a4-sheet[data-fit="compact"] .report-view-table-wrap th{padding:3.5px 4px}.report-a4-sheet[data-fit="dense"] .report-view-table-wrap table{font-size:6pt;line-height:1.05}.report-a4-sheet[data-fit="dense"] .report-view-table-wrap td,.report-a4-sheet[data-fit="dense"] .report-view-table-wrap th{padding:2px 3px}.report-a4-sheet[data-fit="ultra"] .report-view-table-wrap table{font-size:5pt;line-height:1}.report-a4-sheet[data-fit="ultra"] .report-view-table-wrap td,.report-a4-sheet[data-fit="ultra"] .report-view-table-wrap th{padding:1px 2px}.report-page-break{break-before:page;page-break-before:always}@media print{.document-copyright{display:block!important;margin-top:3mm;padding-top:1.5mm;border-top:.2mm solid #aab8b4;color:#17201e!important;font-size:7pt;font-weight:700;break-inside:avoid;page-break-inside:avoid}.invoice-sheet>.document-copyright{flex:0 0 auto;width:100%;margin-top:1.5mm!important;padding-top:1.2mm!important}.invoice-print-copy .invoice-sheet{box-sizing:border-box}.report-a4-sheet{width:auto!important;min-height:0!important;margin:0!important;padding:0!important;box-shadow:none!important;zoom:var(--report-auto-scale,1)}.report-view-table-wrap thead{display:table-header-group}.report-view-table-wrap tr{break-inside:avoid;page-break-inside:avoid}.report-page-break{break-before:page!important;page-break-before:always!important}}

.dealer-adjustment-layout{align-items:start}.dealer-adjustment-entry-card{position:sticky;top:16px}.dealer-adjustment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 15px}.dealer-adjustment-summary>div{padding:12px;border:1px solid #dce8e3;border-radius:10px;background:#f6faf8}.dealer-adjustment-summary span,.dealer-adjustment-summary strong{display:block}.dealer-adjustment-summary span{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}.dealer-adjustment-summary strong{margin-top:5px;font-size:17px}.dealer-adjustment-history-card table{min-width:980px}.dealer-adjustment-history-card td{vertical-align:top}.dealer-adjustment-history-card td small,.dealer-adjustment-allocation{display:block;margin-top:4px}.dealer-adjustment-allocation{padding:4px 7px;border-left:3px solid #8dbdaf;background:#f5faf8;font-size:11px}.sale-badge.product_gift{background:#fff3d5;color:#725000}.sale-badge.cash,.sale-badge.credit{white-space:nowrap}@media(max-width:900px){.dealer-adjustment-layout{grid-template-columns:1fr}.dealer-adjustment-entry-card{position:static}}@media(max-width:600px){.dealer-adjustment-summary{grid-template-columns:1fr}.dealer-adjustment-history-card table{min-width:820px}}

/* Website management navigation. */
.website-main-menu{position:relative}.website-main-menu summary{list-style:none;padding:9px 12px;border-radius:8px;background:var(--soft);color:var(--brand);font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap}.website-main-menu summary::-webkit-details-marker{display:none}.website-main-menu summary::after{content:' ▾';font-size:9px}.website-main-menu[open] summary{background:var(--brand);color:#fff}.website-main-menu>div{position:absolute;top:calc(100% + 8px);right:0;z-index:100;display:grid;width:220px;padding:8px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 16px 42px rgba(9,54,43,.18)}.website-main-menu>div a{padding:10px 11px;border-radius:7px;color:var(--ink);font-size:12px;font-weight:800}.website-main-menu>div a:hover{background:var(--soft);color:var(--brand)}
.website-settings-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start}.website-settings-layout>form{min-width:0}.website-settings-nav{position:sticky;top:16px;display:grid;gap:6px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 10px 28px rgba(10,65,51,.06)}.website-settings-nav strong{padding:4px 8px 11px;color:var(--brand);font-size:15px}.website-settings-nav a{padding:11px 12px;border-radius:9px;color:#38564e;font-size:12px;font-weight:800}.website-settings-nav a:hover,.website-settings-nav a.active{background:var(--brand);color:#fff}.website-settings-nav .website-products-link{margin-top:7px;border-top:1px solid var(--line);border-radius:0;padding-top:15px;color:var(--brand)}.website-settings-nav .website-products-link:hover{border-radius:9px;color:#fff}.website-settings-sections>.card{scroll-margin-top:18px}@media(max-width:900px){.website-settings-layout{grid-template-columns:1fr}.website-settings-nav{position:sticky;top:0;z-index:10;display:flex;overflow-x:auto;padding:9px;white-space:nowrap}.website-settings-nav strong{display:none}.website-settings-nav a{flex:0 0 auto}.website-settings-nav .website-products-link{margin:0;border-top:0;padding-top:11px}}

/* Monochrome printer protection: keep screen colours, but avoid toner-heavy print shading. */
@media print{
  body.workspace-page::after,body.admin-page::after{display:none!important;content:none!important}
  html,body,.invoice-sheet,.challan-sheet,.daybook-invoice-print-sheet,.report-a4-sheet,.current-dues-sheet{background:#fff!important;color:#000!important;-webkit-print-color-adjust:economy!important;print-color-adjust:economy!important}
  .invoice-sheet *,.challan-sheet *,.daybook-invoice-print-sheet *,.report-a4-sheet *,.current-dues-sheet *{-webkit-print-color-adjust:economy!important;print-color-adjust:economy!important;text-shadow:none!important;box-shadow:none!important}
  .invoice-product-table th,.previous-dues-history th,.challan-product-summary-table th,.daybook-invoice-print-table th,.current-dues-table th,.current-dues-summary h3,.report-a4-sheet table th{background:#f5f5f5!important;color:#000!important;border-color:#777!important}
  .invoice-product-table td,.previous-dues-history td,.challan-product-summary-table td,.daybook-invoice-print-table td,.current-dues-table td,.report-a4-sheet table td{background:#fff!important;color:#000!important}
  .invoice-status-line,.invoice-note-box,.invoice-sheet .invoice-total .grand,.invoice-sheet .invoice-total .invoice-value-words,.previous-dues-equation>div,.challan-weight-note,.automatic-report-total-row th,.automatic-report-total-row td,.dealer-ledger-table tfoot th,.dealer-ledger-table tfoot td,.current-dues-summary .total{background:#f7f7f7!important;color:#000!important}
  .approval-badge,.payment-badge,.cash-due-age,.sale-badge{background:#fff!important;color:#000!important;border:1px solid #888!important}
}

/* Report printing must always use the selected paper table layout. A narrow
   browser print viewport must never activate the phone/card presentation. */
@media print{
  html.report-view-printing-root,html.report-view-printing-root body,body.report-view-printing{box-sizing:border-box!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important}
  #reportViewDialog[open]{display:block!important;position:static!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;border:0!important;background:#fff!important;break-after:avoid!important;page-break-after:avoid!important}
  #reportViewDialog .report-view-head{display:none!important}
  #reportViewDialog .report-view-canvas{display:block!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important;break-after:avoid!important;page-break-after:avoid!important}
  #reportViewDialog .report-a4-sheet,#reportViewDialog .report-a4-sheet.landscape{display:block!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;break-after:avoid!important;page-break-after:avoid!important}
  #reportViewDialog .global-table-column-nav,#reportViewDialog .global-table-top-scroll{display:none!important}
  #reportViewDialog .report-view-table-wrap{display:block!important;width:100%!important;overflow:visible!important}
  #reportViewDialog .report-view-table-wrap table,#reportViewDialog .report-a4-sheet.landscape .report-view-table-wrap table{display:table!important;width:100%!important;min-width:0!important;border-collapse:collapse!important}
  #reportViewDialog .report-view-table-wrap thead{display:table-header-group!important}
  #reportViewDialog .report-view-table-wrap tbody{display:table-row-group!important}
  #reportViewDialog .report-view-table-wrap tfoot{display:table-footer-group!important}
  #reportViewDialog .report-view-table-wrap tr{display:table-row!important;width:auto!important;border:0!important;border-radius:0!important;background:transparent!important;break-inside:avoid;page-break-inside:avoid}
  #reportViewDialog .report-view-table-wrap th,#reportViewDialog .report-view-table-wrap td{display:table-cell!important;width:auto!important;padding:1.2mm 1mm!important;border:.2mm solid #777!important;text-align:left!important;white-space:normal!important;overflow:visible!important}
  #reportViewDialog .report-view-table-wrap td::before{display:none!important;content:none!important}
}
/* Website Product images are managed separately from the operational Product Master. */
.website-product-manager{display:grid;gap:18px}.website-product-manager .website-product-image-input{min-width:220px;padding:8px;background:#fff}.website-product-manager table{min-width:1050px}.website-product-manager td:nth-child(2),.website-product-manager td:nth-child(3){vertical-align:middle}

/* Fluid software workspace: use the available monitor width instead of
   stopping at a fixed 1440px canvas. The sidebar also scales within a safe
   range, while the existing tablet/mobile navigation remains unchanged. */
.workspace-page .shell{
  width:calc(100% - clamp(20px,3vw,56px));
  max-width:none;
  grid-template-columns:clamp(190px,15vw,240px) minmax(0,1fr);
  column-gap:clamp(16px,2vw,32px);
}
.workspace-page .shell>.view,
.workspace-page .global-fiscal-year-bar{width:100%;max-width:none}
.workspace-page .app-developer-credit{max-width:none;width:calc(100% - clamp(20px,3vw,56px))}
@media(max-width:980px){
  .workspace-page .shell{display:block;width:calc(100% - clamp(20px,3vw,40px));max-width:none}
}
@media(max-width:760px){
  .workspace-page .shell{width:100%;max-width:100%}
  .workspace-page .app-developer-credit{width:100%}
}

/* Keep every control inside the fluid workspace. Long text wraps, form
   controls shrink with their grid cell, and wide data tables scroll only
   inside their own card instead of widening the whole page. */
.workspace-page .view,
.workspace-page .view>*,
.workspace-page .card,
.workspace-page form,
.workspace-page fieldset,
.workspace-page .grid>*{
  min-width:0;
  max-width:100%;
}
.workspace-page input,
.workspace-page select,
.workspace-page textarea,
.workspace-page button{
  max-width:100%;
}
.workspace-page h1,
.workspace-page h2,
.workspace-page h3,
.workspace-page p,
.workspace-page label,
.workspace-page td,
.workspace-page th{
  overflow-wrap:anywhere;
}
.workspace-page .table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
}
.workspace-page .section-head,
.workspace-page .actions,
.workspace-page .dialog-actions,
.workspace-page .report-filter{
  flex-wrap:wrap;
}
@media(max-width:1180px){
  .workspace-page .invoice-dealer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workspace-page .invoice-dealer-grid>label:last-child{grid-column:1/-1}
  .workspace-page .grid.two,
  .workspace-page .grid.three,
  .workspace-page .admin-setup-grid,
  .workspace-page .statement-stats,
  .workspace-page .product-statement-stats,
  .workspace-page .area-dashboard-stats{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));
  }
}
@media(max-width:760px){
  .workspace-page .invoice-dealer-grid{grid-template-columns:1fr}
  .workspace-page .invoice-dealer-grid>label:last-child{grid-column:auto}
  .workspace-page .section-head{align-items:stretch;flex-direction:column}
  .workspace-page .section-head>*{width:100%}
  .workspace-page .actions,.workspace-page .dialog-actions{display:grid;grid-template-columns:1fr;width:100%}
  .workspace-page .actions button,.workspace-page .dialog-actions button{width:100%}
}
.dealer-ledger-part-heading th{padding:11px 13px;border-top:2px solid var(--brand);background:#e6f3ee;color:#073d33}.dealer-ledger-part-heading th span,.dealer-ledger-part-heading th b{display:inline-block}.dealer-ledger-part-heading th b{float:right;margin-left:18px}.dealer-ledger-opening td{background:#f7faf9;color:#35564e}@media(max-width:600px){.dealer-ledger-part-heading th b{display:block;float:none;margin:5px 0 0}}
.dealer-ledger-table thead th,.dealer-ledger-table tbody td,.dealer-ledger-table tfoot th,.dealer-ledger-table tfoot td{box-sizing:border-box;padding:10px 9px;vertical-align:middle;line-height:1.25}.dealer-ledger-table th:nth-child(1),.dealer-ledger-table td:nth-child(1){text-align:center;white-space:nowrap}.dealer-ledger-table th:nth-child(2),.dealer-ledger-table td:nth-child(2){text-align:left}.dealer-ledger-table th:nth-child(3),.dealer-ledger-table td:nth-child(3),.dealer-ledger-table th:nth-child(4),.dealer-ledger-table td:nth-child(4){text-align:center;white-space:nowrap}.dealer-ledger-table th:nth-child(5),.dealer-ledger-table td:nth-child(5),.dealer-ledger-table th:nth-child(6),.dealer-ledger-table td:nth-child(6),.dealer-ledger-table th:nth-child(7),.dealer-ledger-table td:nth-child(7),.dealer-ledger-table th:nth-child(9),.dealer-ledger-table td:nth-child(9){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.dealer-ledger-table th:nth-child(8),.dealer-ledger-table td:nth-child(8){text-align:left;overflow-wrap:anywhere}.dealer-ledger-table .dealer-invoice-aging{font-size:.78rem;color:#6d4b00}.dealer-ledger-table tbody tr:not(.dealer-ledger-part-heading) td{border-bottom:1px solid #d9e3df}.dealer-ledger-part-total th,.dealer-ledger-part-total td{border-top:2px solid #8fb9aa;border-bottom:2px solid var(--brand);background:#eff8f4;color:#073d33;font-weight:900}.dealer-ledger-part-total th{text-align:left!important}.dealer-ledger-table tfoot .report-total-row th{text-align:left!important}.dealer-ledger-table .empty{text-align:center!important}
.dealer-ledger-table .ledger-total-gross,.dealer-ledger-table .ledger-total-net,.dealer-ledger-table .ledger-total-payment,.dealer-ledger-table .ledger-total-balance{text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums}.dealer-ledger-table .ledger-total-bank{text-align:left!important}
.dealer-ledger-table .ledger-outstanding-due,.dealer-ledger-part-heading .ledger-outstanding-due,.dealer-ledger-stats .ledger-outstanding-due{color:#b42318!important;background:#fff0ee!important;font-weight:900!important}.dealer-ledger-table .ledger-outstanding-clear,.dealer-ledger-part-heading .ledger-outstanding-clear,.dealer-ledger-stats .ledger-outstanding-clear{color:#067647!important;background:#ecfdf3!important;font-weight:900!important}.dealer-ledger-part-heading b.ledger-outstanding-due,.dealer-ledger-part-heading b.ledger-outstanding-clear{padding:3px 8px;border-radius:6px}
.dealer-ledger-table .gift-adjustment-ledger-explanation{white-space:normal;line-height:1.45;color:#6d4b00;background:#fff8df}.dealer-ledger-table .gift-adjustment-ledger-explanation b{font-weight:750}
.report-view-dialog.dealer-ledger-report .report-view-table-wrap :is(th,td):nth-child(5),.report-view-dialog.dealer-ledger-report .report-view-table-wrap :is(th,td):nth-child(6),.report-view-dialog.dealer-ledger-report .report-view-table-wrap :is(th,td):nth-child(7),.report-view-dialog.dealer-ledger-report .report-view-table-wrap :is(th,td):nth-child(9){text-align:right!important;white-space:nowrap!important;font-variant-numeric:tabular-nums}.report-view-dialog.dealer-ledger-report .report-view-table-wrap :is(th,td):nth-child(8){text-align:left!important}.report-view-dialog.dealer-ledger-report .report-view-table-wrap :is(th,td):nth-child(3),.report-view-dialog.dealer-ledger-report .report-view-table-wrap :is(th,td):nth-child(4){text-align:center!important;white-space:nowrap!important}
.territory-dealer-type-total th,.territory-dealer-type-total td{border-top:2px solid #8fb9aa;border-bottom:2px solid var(--brand);background:#eff8f4;color:#073d33;font-weight:900}.territory-dealer-type-total th{text-align:left}.territory-dealer-type-total td{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.territory-dealer-details-table table{width:100%;min-width:1180px;table-layout:fixed}.territory-dealer-details-table .territory-dealer-code-col{width:8%}.territory-dealer-details-table .territory-dealer-name-col{width:15%}.territory-dealer-details-table .territory-dealer-address-col{width:25%}.territory-dealer-details-table .territory-dealer-type-col{width:8%}.territory-dealer-details-table .territory-dealer-count-col{width:6%}.territory-dealer-details-table .territory-dealer-money-col{width:8%}.territory-dealer-details-table .territory-dealer-outstanding-col{width:8%}.territory-dealer-details-table .territory-dealer-commission-col{width:6%}.territory-dealer-details-table :is(th,td):nth-child(5){text-align:center}.territory-dealer-details-table :is(th,td):nth-child(n+6){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.territory-dealer-details-table .territory-dealer-type-heading td{text-align:left!important}.territory-dealer-details-table .territory-dealer-type-total th{text-align:left!important}.territory-dealer-details-table .territory-dealer-type-total td{text-align:right!important}
.table-select-all{display:inline-flex;align-items:center;flex-direction:row;gap:6px;margin:0;white-space:nowrap;cursor:pointer}.table-select-all input{flex:0 0 auto;width:18px;height:18px;margin:0;accent-color:var(--brand)}.table-select-all span{font-size:10px;font-weight:900;text-transform:uppercase}.table-select-all input:disabled{cursor:not-allowed;opacity:.45}
.global-back-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:38px;border:1px solid rgba(255,255,255,.28);text-decoration:none;white-space:nowrap}.workspace-page #workspaceBack{order:-1}@media(max-width:760px){.global-back-button{min-height:40px;padding:9px 12px}.workspace-page #workspaceBack{justify-self:start}}

/* Closing Due drill-down: headers, rows and automatic totals share the same
   numeric alignment at every hierarchy level. */
.closing-due-dashboard-table table{table-layout:fixed}
.closing-due-dashboard-table th,.closing-due-dashboard-table td{vertical-align:middle}
.closing-due-dashboard-table table[data-closing-level="region"] :is(th,td):nth-child(2),
.closing-due-dashboard-table table[data-closing-level="region"] :is(th,td):nth-child(3),
.closing-due-dashboard-table table[data-closing-level="region"] :is(th,td):nth-child(4),
.closing-due-dashboard-table table[data-closing-level="region"] :is(th,td):nth-child(5),
.closing-due-dashboard-table table[data-closing-level="territory"] :is(th,td):nth-child(3),
.closing-due-dashboard-table table[data-closing-level="territory"] :is(th,td):nth-child(4),
.closing-due-dashboard-table table[data-closing-level="territory"] :is(th,td):nth-child(5),
.closing-due-dashboard-table table[data-closing-level="dealer"] :is(th,td):nth-child(5),
.closing-due-dashboard-table table[data-closing-level="dealer"] :is(th,td):nth-child(6),
.closing-due-dashboard-table table[data-closing-level="invoice"] :is(th,td):nth-child(4),
.closing-due-dashboard-table table[data-closing-level="invoice"] :is(th,td):nth-child(5),
.closing-due-dashboard-table table[data-closing-level="invoice"] :is(th,td):nth-child(6),
.closing-due-dashboard-table table[data-closing-level="invoice"] :is(th,td):nth-child(7){text-align:right}
.closing-due-dashboard-table :is(th,td):last-child{text-align:center}
.closing-due-dashboard-table td:last-child .soft{display:inline-flex;align-items:center;justify-content:center}

/* Consistent alignment for every operational report: descriptive content on
   the left, measurable values on the right, and workflow controls centred. */
table.report-aligned-columns :is(th,td).report-align-text{text-align:left}
table.report-aligned-columns :is(th,td).report-align-number{text-align:right;font-variant-numeric:tabular-nums}
table.report-aligned-columns :is(th,td).report-align-center{text-align:center}
table.report-aligned-columns td.report-align-center :is(button,a,.badge,.sale-badge,.payment-badge,.approval-badge){display:inline-flex;align-items:center;justify-content:center}
@media print{
  #reportViewDialog table.report-aligned-columns :is(th,td).report-align-text{text-align:left!important}
  #reportViewDialog table.report-aligned-columns :is(th,td).report-align-number{text-align:right!important}
  #reportViewDialog table.report-aligned-columns :is(th,td).report-align-center{text-align:center!important}
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* Final phone override: keep Preview controls inside the viewport even when
   Android uses a large accessibility font size. This intentionally lives at
   the end of the stylesheet so desktop paper-control rules cannot override it. */
@media(max-width:600px){
  #reportViewDialog .report-view-head{display:flex;align-items:stretch;flex-direction:column;gap:8px;width:100%;padding:8px 9px}
  #reportViewDialog .report-view-head>div:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 7px;width:100%;min-width:0}
  #reportViewDialog .report-view-head>div:first-child p{grid-column:1;min-width:0;font-size:8px;line-height:1.25;letter-spacing:.05em;overflow-wrap:normal;word-break:normal}
  #reportViewDialog .report-view-head>div:first-child h2{grid-column:1;min-width:0;margin:0;font-size:16px;line-height:1.15;overflow-wrap:normal;word-break:normal}
  #reportViewDialog .report-view-head .report-auto-pages{grid-column:2;grid-row:1/span 2;align-self:center;margin:0;padding:3px 6px;font-size:8px;white-space:nowrap}
  #reportViewDialog .report-view-head-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;min-width:0}
  #reportViewDialog .report-view-zoom{grid-column:1/-1;display:grid;grid-template-columns:34px minmax(42px,1fr) 34px minmax(54px,auto);gap:3px;width:100%;min-width:0}
  #reportViewDialog .report-view-zoom button,#reportViewDialog .report-view-zoom output{min-width:0;width:100%;min-height:36px;padding:5px;font-size:10px}
  #reportViewDialog .report-orientation-label{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;width:100%;min-width:0;margin:0;font-size:8px;line-height:1.2}
  #reportViewDialog .report-orientation-label select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:38px;margin:0;padding:6px 7px;font-size:12px}
  #reportViewDialog .report-view-print,#reportViewDialog .report-view-close{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:40px;padding:7px 5px;font-size:11px;line-height:1.2;white-space:normal}
  #reportViewDialog .report-view-canvas{box-sizing:border-box;width:100%;height:auto;max-height:calc(100dvh - 232px);padding:7px;overflow-x:hidden;overflow-y:auto}
}
/* Credit Closing groups inside Current Dues officer details. */
.current-dues-type-card .current-dues-closing-head th{padding:9px 10px;background:#dcefe9;color:#0b5e4f;text-align:left;border-top:2px solid #0b7562}.current-dues-closing-head span{margin-left:8px;color:#536a64;font-size:11px;font-weight:500}.current-dues-type-card .current-dues-closing-total th,.current-dues-type-card .current-dues-closing-total td{background:#eef7f4;color:#123e36;font-weight:800;border-top:1px solid #77aa9c}.current-dues-type-card .current-dues-closing-total th{text-align:left}.current-dues-type-card .current-dues-closing-total td{text-align:right}
/* Dealer identity shown above a Dealer-filtered Product Statement. */
.statement-identity{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:8px;margin:12px 0;padding:10px;border:1px solid #c9ded7;border-radius:12px;background:#edf7f3}.statement-identity[hidden]{display:none}.statement-identity>div{padding:8px 10px;border-radius:8px;background:#fff}.statement-identity small,.statement-identity strong{display:block}.statement-identity small{color:#64766f;font-size:10px;text-transform:uppercase}.statement-identity strong{margin-top:3px;color:#075f50}.statement-identity-wide{grid-column:span 2}@media(max-width:800px){.statement-identity{grid-template-columns:1fr 1fr}.statement-identity-wide{grid-column:1/-1}}@media(max-width:520px){.statement-identity{grid-template-columns:1fr}.statement-identity-wide{grid-column:auto}}

/* Cash Invoice Dues opens as the requested line-by-line receivable sheet. */
.cash-due-dashboard-table{max-height:78vh!important}.cash-due-dashboard-table table{min-width:1450px}.cash-due-dashboard-table tbody tr:nth-child(odd){background:#e7f0f8}.cash-due-dashboard-table tbody tr:nth-child(even){background:#fff7dc}.cash-due-dashboard-table th{white-space:nowrap}.cash-due-dashboard-table td{vertical-align:middle}.cash-due-detail-mode th,.cash-due-detail-mode td{padding:10px 8px;font-size:12px}.cash-due-detail-mode th:nth-child(1){min-width:110px}.cash-due-detail-mode th:nth-child(2){min-width:90px}.cash-due-detail-mode th:nth-child(3){min-width:190px}.cash-due-detail-mode th:nth-child(4){min-width:260px}.cash-due-detail-mode th:nth-child(5){min-width:75px}.cash-due-detail-mode th:nth-child(6){min-width:105px}.cash-due-detail-mode th:nth-child(7){min-width:90px}.cash-due-detail-mode th:nth-child(8),.cash-due-detail-mode th:nth-child(9),.cash-due-detail-mode th:nth-child(10){min-width:95px}.cash-due-detail-mode th:nth-child(11){min-width:72px}.cash-due-detail-mode th:nth-child(12){min-width:180px}.cash-due-detail-mode th:nth-child(13){min-width:72px}.cash-due-detail-mode td:nth-child(3),.cash-due-detail-mode td:nth-child(4),.cash-due-detail-mode td:nth-child(12){white-space:normal;line-height:1.35}.cash-due-detail-mode td:not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(12)){white-space:nowrap}.cash-due-dashboard-table.global-sticky-action>table>thead th:last-child,.cash-due-dashboard-table.global-sticky-action>table>tbody td:last-child{position:static;right:auto;z-index:auto;min-width:72px;box-shadow:none}.cash-due-dashboard-table.global-sticky-action>table>thead th:last-child{background:#f3f7f5}

/* Separate Cash Invoice Dues filters; stacks cleanly on phones. */
.cash-due-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:8px;width:min(100%,850px)}
.cash-due-filter-grid label{min-width:0}
.cash-due-filter-grid input,.cash-due-filter-grid select{width:100%}
.cash-due-filter-grid .ghost{align-self:end}
.cash-due-dealer-suggestions{z-index:260;min-width:320px;max-height:260px}.cash-due-dealer-suggestions button{display:grid;grid-template-columns:90px minmax(0,1fr)}.cash-due-dealer-suggestions button b,.cash-due-dealer-suggestions button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cash-due-dealer-suggestions button span{text-align:left}
@media(max-width:760px){.cash-due-filter-grid{grid-template-columns:1fr;width:100%}}

/* Let the Admin workspace use the full desktop and keep Cash Due filters readable. */
@media(min-width:981px){
  .admin-page .shell.admin-side-nav-layout{width:calc(100% - 24px);max-width:none;margin-left:12px;margin-right:12px}
  .cash-due-dashboard-tools{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}
  .cash-due-dashboard-tools .ledger-note{width:100%}
  .cash-due-filter-grid{width:100%;grid-template-columns:repeat(3,minmax(180px,1fr))}
}

/* Keep long Dealer and assignment details inside the printable Invoice cards. */
.invoice-information-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.invoice-information-card{min-width:0;overflow:visible}
.invoice-information-card h3{max-width:100%;line-height:1.3;white-space:normal;overflow:visible;overflow-wrap:anywhere;word-break:break-word}
.invoice-information-card dl{min-width:0}
.invoice-information-card dl div{grid-template-columns:minmax(82px,34%) minmax(0,1fr)}
.invoice-information-card dt,.invoice-information-card dd{min-width:0;line-height:1.4;white-space:normal;overflow:visible;overflow-wrap:anywhere;word-break:break-word}
@media print{
  .invoice-sheet{width:186mm;max-width:100%;overflow:visible}
  .invoice-information-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3mm}
  .invoice-information-card{padding:2.5mm;overflow:visible}
  .invoice-information-card dl div{grid-template-columns:27mm minmax(0,1fr);gap:2mm;align-items:start}
  .invoice-information-card h3,.invoice-information-card dt,.invoice-information-card dd{overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}
}

/* Header popovers must stay above report cards and the watermark layer. */
@media screen{
  .topbar{z-index:300;overflow:visible!important}
  .topbar .notification-center{z-index:301}
  .topbar .notification-panel{z-index:302;opacity:1;background:#fff}
}

/* Keep Daybook columns readable instead of squeezing letters vertically. */
@media screen{
  #daybookView .daybook-report-section{min-width:0}
  #daybookView .table-wrap{max-width:100%;overflow:auto}
  #daybookView table{table-layout:auto!important;min-width:1100px!important;width:100%!important}
  #daybookView #daybookInvoiceTable{min-width:1700px!important}
  #daybookView table th{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;width:auto!important;min-width:65px;line-height:1.35}
  #daybookView table td{word-break:normal!important;overflow-wrap:normal!important;white-space:normal!important;min-width:65px;line-height:1.4}
  #daybookView #daybookInvoiceTable :is(th,td):nth-child(4){min-width:110px}
  #daybookView #daybookInvoiceTable :is(th,td):nth-child(5){min-width:180px}
  #daybookView #daybookInvoiceTable :is(th,td):nth-child(6){min-width:230px}
  #daybookView #daybookInvoiceTable :is(th,td):nth-child(7){min-width:125px}
  #daybookView #daybookInvoiceTable :is(th,td):nth-child(n+8){white-space:nowrap!important;min-width:105px}
}

/* Browser printing must escape the scrollable, centred preview dialog. */
@page browser-invoice{size:A4 portrait;margin:38.1mm 9.906mm 25.4mm}
@media print{
  html:has(body.printing-browser-invoice),body.printing-browser-invoice{width:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important}
  body.printing-browser-invoice #invoiceDialog{page:browser-invoice}
  .invoice-print-copy{width:100%;margin:0;padding:0;overflow:visible}
  .invoice-print-copy .invoice-sheet{width:100%!important;max-width:190.188mm;overflow:visible!important;font-family:'Segoe UI',Arial,sans-serif}
  .invoice-print-copy .invoice-sheet.invoice-single-page{display:block!important;box-sizing:border-box!important;height:auto!important;min-height:0!important}
  .invoice-print-copy .invoice-sheet.invoice-single-page.invoice-with-previous-dues{height:auto!important;min-height:0!important}
  .invoice-print-copy .invoice-single-page .invoice-signatures{margin-top:12mm!important;min-height:15mm!important}
  .invoice-print-copy .invoice-sheet>.document-copyright{margin-bottom:0!important}
  .invoice-print-copy .invoice-title-block h1{font-size:16pt}
  .invoice-print-copy .invoice-copy-title{font-size:8pt}
  .invoice-print-copy .invoice-information-card h3{font-size:10pt}
  .invoice-print-copy .invoice-information-card dl{font-size:12pt}
  .invoice-print-copy .invoice-product-table{font-size:9pt}
  .invoice-print-copy .invoice-product-table th{font-size:9pt}
  .invoice-print-copy .invoice-signatures b,.invoice-print-copy .invoice-signatures small{font-size:9pt}
  .invoice-print-copy .invoice-signatures{display:grid!important;flex-shrink:0;visibility:visible!important}
  #invoiceDialog[open]{position:static!important;inset:auto!important;transform:none!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;border:0!important}
  #invoicePreview{overflow:visible!important;max-height:none!important}
  .invoice-dialog-close{display:none!important}
  .invoice-print-copy .invoice-print-header{flex-direction:row}
  .invoice-print-copy .invoice-title-block{text-align:center}
  .invoice-print-copy .invoice-status-line{display:grid;grid-template-columns:1fr auto 1fr}
  .invoice-print-copy .invoice-status-line span:nth-child(2){text-align:center!important}
  .invoice-print-copy .invoice-status-line span:last-child{text-align:right!important}
  .invoice-print-copy .invoice-information-grid{grid-template-columns:1fr 1fr}
  .invoice-print-copy .invoice-information-card dl div{grid-template-columns:29mm minmax(0,1fr);gap:2mm}
  .invoice-print-copy .invoice-information-card dt{white-space:nowrap}
  .invoice-print-copy .invoice-closing-totals-only{grid-template-columns:88mm}
}

