body{margin:0;background:#f3f6fb;color:#172033;font-family:Segoe UI,Arial,sans-serif}
.sales-shell{min-height:100vh}
.sales-sidebar{position:fixed;left:0;top:0;width:260px;height:100vh;overflow-y:auto;background:#0f172a;color:#fff;border-right:1px solid rgba(148,163,184,.16);box-shadow:10px 0 30px rgba(15,23,42,.06);transition:transform .22s ease,box-shadow .22s ease}.sales-sidebar-toggle{position:fixed;left:268px;top:14px;z-index:1050;width:38px;height:38px;border:1px solid #dbe2ea;border-radius:10px;background:#fff;color:#172033;display:grid;place-items:center;box-shadow:0 8px 20px rgba(15,23,42,.12);transition:left .22s ease,background .18s ease,color .18s ease}.sales-sidebar-toggle:hover{background:#2563eb;color:#fff}.sales-sidebar-collapsed .sales-sidebar{transform:translateX(-100%);box-shadow:none}.sales-sidebar-collapsed .sales-content{margin-left:0;padding-left:60px}.sales-sidebar-collapsed .sales-sidebar-toggle{left:14px}
.sales-brand{display:flex;gap:12px;align-items:center;min-height:76px;padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.08)}
.sales-brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#2563eb;font-weight:800;box-shadow:0 10px 20px rgba(37,99,235,.24);overflow:hidden}.sales-brand-mark img{width:100%;height:100%;display:block;object-fit:contain}
.sales-brand-title{font-weight:800;letter-spacing:.01em}
.sales-brand-body{display:flex;flex-direction:column;gap:4px}.sales-brand-user{display:flex;flex-direction:column;gap:2px;font-size:13px;color:#fff;line-height:1.25}.sales-brand-user a{color:#93c5fd;text-decoration:none;font-weight:700;width:max-content}.sales-brand-user a:hover{color:#fff}
.sales-nav{padding:16px 12px 24px}
.sales-nav-title{font-size:12px;color:#7f90aa;text-transform:uppercase;letter-spacing:.08em;margin:8px 8px 10px}
.sales-nav a,.sales-nav summary{display:flex;align-items:center;min-height:38px;padding:9px 12px;margin:3px 0;border-radius:10px;color:#d7deea;text-decoration:none;transition:background-color .18s ease,color .18s ease,transform .18s ease}
.sales-nav summary{cursor:pointer;justify-content:space-between;list-style:none}
.sales-nav summary::-webkit-details-marker{display:none}
.sales-nav summary::after{content:"v";font-size:11px;color:#7f90aa}
.sales-nav-group[open]>summary::after,.sales-nav-subgroup[open]>summary::after{transform:rotate(180deg)}
.sales-nav a:hover,.sales-nav summary:hover{background:#172337;color:#fff}
.sales-nav a.active,.sales-nav summary.active{background:linear-gradient(180deg,#2563eb,#1d4ed8);color:#fff;font-weight:700;box-shadow:0 8px 18px rgba(37,99,235,.22)}
.sales-nav-submenu{padding:5px 0 5px 14px}
.sales-nav-submenu a{min-height:34px;font-size:14px}
.sales-nav-subgroup{margin:3px 0}
.sales-nav-subgroup summary{min-height:32px;padding:8px 10px;font-size:13px;color:#9fb0c9;background:transparent}
.sales-nav-subgroup summary.active{background:#172337;color:#fff}
.sales-nav-submenu-nested{padding-left:12px}
.sales-nav-submenu-nested a{font-size:13px;padding-left:12px}
.sales-content{margin-left:260px;padding:0 16px 24px 8px}
.sales-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;padding:0 2px}
.sales-header h1{font-size:28px;margin:0;color:#132238;letter-spacing:-.01em}
.sales-eyebrow{font-size:12px;text-transform:uppercase;color:#6b7688;font-weight:800;letter-spacing:.08em}
.sales-user-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.sales-user{display:flex;gap:12px;align-items:center;color:#516074}.sales-user-context{display:flex;flex-direction:column;align-items:flex-end;line-height:1.15;font-size:11px;color:#6b7688}.sales-user-context strong{font-size:12px;color:#132238}
.sales-user a{color:#2563eb;text-decoration:none;font-weight:600}
.top-card{background:#fff;border:1px solid #dce3ee;border-radius:12px;padding:22px;box-shadow:0 10px 28px rgba(15,23,42,.04)}
.btn-save{background:#16a34a;color:#fff}
.btn-save:hover{background:#15803d;color:#fff}
.sales-module .form-label{font-weight:600}
/*
Form UI standard:
- Standard form fields use Bootstrap .form-floating plus .erp-floating-field.
- Dense tables, invoice item grids, checkbox/radio/switch controls, file uploads, and compact row editors keep normal labels.
- New Sales ERP forms should use this shared floating/outlined component by default when the control type is suitable.
*/
.erp-floating-field{margin-bottom:1rem}
.erp-floating-field>.form-control,.erp-floating-field>.form-select{min-height:52px;border:1px solid #d7dfec;border-radius:12px;background-color:#fff;color:#172033;box-shadow:none;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}
.erp-floating-field>.form-control{padding:1.45rem .9rem .45rem}
.erp-floating-field>.form-select{padding-top:1.45rem;padding-bottom:.45rem;padding-right:2.6rem;background-position:right .9rem center}
.erp-floating-field>textarea.form-control{min-height:108px;resize:vertical}
.erp-floating-field>label{left:.72rem;width:auto;max-width:calc(100% - 1.44rem);height:auto;padding:0 .36rem;background:#fff;border-radius:999px;color:#607089;font-size:14px;font-weight:600;letter-spacing:0;line-height:1.12;transform:scale(.9) translateY(-.62rem) translateX(.15rem);opacity:1}
.erp-floating-field>label .text-danger{font-weight:800}
.erp-floating-field>.form-control::placeholder{color:transparent}
.erp-floating-field>.form-control:hover,.erp-floating-field>.form-select:hover{border-color:#b9c7da}
.erp-floating-field>.form-control:focus,.erp-floating-field>.form-select:focus{border-color:#2563eb;box-shadow:0 0 0 .14rem rgba(37,99,235,.08)}
.erp-floating-field>.form-control:focus~label,.erp-floating-field>.form-select:focus~label{color:#1d4ed8}
.erp-floating-field>.form-control[readonly],.erp-floating-field>.form-control:disabled,.erp-floating-field>.form-select:disabled{background:#f8fafc;color:#5f6b7d;border-color:#dbe3ee;cursor:not-allowed}
.erp-floating-field>.form-control.is-invalid,.was-validated .erp-floating-field>.form-control:invalid,.erp-floating-field>.form-select.is-invalid,.was-validated .erp-floating-field>.form-select:invalid{border-color:#dc2626}
.erp-floating-field--compact>.form-control,.erp-floating-field--compact>.form-select{min-height:48px}
.erp-floating-field--compact>label{font-size:13px}
.invoice-items-table .erp-floating-field,.configure-fields-table .erp-floating-field{margin-bottom:0}
.sales-stat{min-height:74px;border:1px solid #dce3ee;border-radius:10px;background:#fff;padding:10px 12px;display:flex;flex-direction:column;justify-content:center;gap:5px;box-shadow:0 6px 16px rgba(15,23,42,.035)}
.sales-stat-label{color:#687386;font-size:12px;font-weight:600}
.sales-stat-value{font-size:22px;font-weight:800;color:#172033;line-height:1.05}
.sales-link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.sales-link-tile{display:flex;align-items:center;min-height:44px;padding:10px 12px;border:1px solid #dce3ee;border-radius:10px;background:#fff;text-decoration:none;font-weight:600;color:#172033;transition:border-color .18s ease,color .18s ease,background-color .18s ease,transform .18s ease}
.sales-link-tile:hover{border-color:#2563eb;color:#2563eb;background:#f8fbff;transform:translateY(-1px)}
.sales-module .table-responsive{max-width:100%}
.sales-module table th,.sales-module table td{white-space:nowrap}
.sales-module.production-report,.sales-module.accounting-report{padding:16px}
.sales-module.production-report h2,.sales-module.accounting-report h2{font-size:19px}
.sales-module .production-list-filters{padding:12px!important;margin-bottom:12px!important}
.sales-module .production-list-filters .row{--bs-gutter-y:8px}
.sales-module .production-list-filters .form-label{font-size:12px;margin-bottom:3px}
.sales-module .production-list-filters .form-control,.sales-module .production-list-filters .form-select,.sales-module .production-list-filters .btn{font-size:12px;min-height:32px;padding-top:4px;padding-bottom:4px}
.sales-module .report-compact-table,.sales-module .accounting-table,.sales-module .production-report-table{font-size:11.5px;font-variant-numeric:tabular-nums}
.sales-module .report-compact-table th,.sales-module .report-compact-table td,.sales-module .accounting-table th,.sales-module .accounting-table td,.sales-module .production-report-table th,.sales-module .production-report-table td{padding:5px 7px;line-height:1.25}
.sales-module table tfoot th,.sales-module table tfoot td{font-weight:700;border-top:2px solid #aab4c0;background:#f4f7fb}
.accounting-print-meta{display:none}
.invoice-form form{margin:0}
.invoice-titlebar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #e3e8f2}
.invoice-titlebar h2{margin:0;font-size:20px;line-height:1.25}
.invoice-kicker{font-size:12px;text-transform:uppercase;color:#687386;font-weight:700;margin-bottom:4px}
.invoice-subtitle{color:#687386;font-size:14px;margin-top:4px}
.invoice-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.invoice-header-panel,.invoice-tab-content,.product-form-shell{background:#fff;border:1px solid #dce3ee;border-radius:10px}
.invoice-header-panel{padding:18px 18px 8px;margin-bottom:16px}
.invoice-panel-title{font-size:18px;font-weight:800;text-transform:uppercase;margin-bottom:14px}
.invoice-tabs{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;overflow-y:hidden;padding-bottom:2px;border-bottom:0;margin-bottom:0}
.invoice-tabs .nav-link{white-space:nowrap;border:1px solid transparent;border-radius:10px 10px 0 0;color:#35507a;padding:10px 16px;background:transparent}
.invoice-tabs .nav-link.active{background:#2563eb;color:#fff;border-color:#2563eb}
.invoice-tab-content{padding:18px;border-top-left-radius:0}
.invoice-section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
.invoice-section-head strong{display:block;font-size:16px}
.invoice-section-head span{display:block;color:#687386;font-size:13px}
.invoice-grid-wrap{overflow:auto;border:1px solid #dce3ee;border-radius:10px}
.invoice-items-table{margin-bottom:0;min-width:1700px}
.invoice-items-table thead th{position:sticky;top:0;background:#fff;z-index:1;font-size:12px;text-transform:uppercase;border-bottom:1px solid #dce3ee}
.invoice-items-table th,.invoice-items-table td{vertical-align:middle}
.invoice-items-table .form-control,.invoice-items-table .form-select{min-width:82px}
.invoice-items-table .product-code-select,.invoice-items-table .product-select{min-width:120px}
.invoice-items-table .item-field{min-width:56px}
.invoice-items-table .unit-field{min-width:104px}
.invoice-items-table [name*="[description]"]{min-width:180px}
.invoice-items-table [name*="[remarks]"]{min-width:140px}
.invoice-items-table .qty-field{min-width:74px;text-align:right}
.invoice-items-table .rate-field,.invoice-items-table .discount-field,.invoice-items-table .discount-amount-field{text-align:right}
.invoice-items-table .gross-cell,.invoice-items-table .taxable-cell,.invoice-items-table .cgst-cell,.invoice-items-table .sgst-cell,.invoice-items-table .igst-cell,.invoice-items-table .cess-cell,.invoice-items-table .line-total-cell,.invoice-items-table .stock-cell{text-align:right;font-variant-numeric:tabular-nums}
.line-items-total-row td{font-weight:700;background:#f8fbff;border-top:2px solid #dce3ee}
.production-document{display:flex;flex-direction:column;gap:18px}
.production-document form{margin:0}
.production-panel{background:#fff;border:1px solid #dce3ee;border-radius:8px;padding:18px}
.production-panel--flush{padding:0;overflow:hidden}
.production-panel-title{font-size:16px;font-weight:800;color:#172033;margin:0}
.production-panel-subtitle{font-size:13px;color:#687386;margin-top:3px}
.production-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:14px}
.production-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.production-actions .btn{min-height:40px;font-weight:600}
.production-action-bar{position:sticky;bottom:0;z-index:8;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;margin:0 -18px -18px;background:rgba(255,255,255,.97);border-top:1px solid #dce3ee;box-shadow:0 -8px 22px rgba(15,23,42,.05)}
.production-grid-wrap{overflow:auto;border:1px solid #dce3ee;border-radius:8px}
.production-grid{width:100%;min-width:1050px;margin:0}
.production-grid--compact{min-width:820px}
.production-grid thead th{position:sticky;top:0;z-index:1;padding:11px 12px;background:#f7f9fc;color:#526177;font-size:11px;font-weight:800;text-transform:uppercase;border-bottom:1px solid #dce3ee}
.production-grid tbody td{padding:11px 12px;vertical-align:middle;border-bottom:1px solid #edf1f7}
.production-grid tbody tr:last-child td{border-bottom:0}
.production-grid .form-control,.production-grid .form-select{min-width:96px}
.production-grid .production-product{min-width:190px;white-space:normal}
.production-grid .production-remarks{min-width:170px}
.production-number{font-variant-numeric:tabular-nums;text-align:right}
.production-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.production-meta{display:flex;flex-direction:column;gap:5px;min-width:0}
.production-meta-label{font-size:11px;font-weight:800;text-transform:uppercase;color:#6b7688}
.production-meta-value{font-size:14px;font-weight:700;color:#172033;overflow-wrap:anywhere}
.production-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.production-summary{min-height:92px;border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:14px;display:flex;flex-direction:column;justify-content:space-between}
.production-summary-label{font-size:12px;font-weight:700;color:#687386}
.production-summary-value{font-size:22px;font-weight:800;color:#172033;font-variant-numeric:tabular-nums}
.production-stage-card{border:1px solid #dce3ee;border-radius:8px;background:#fff;overflow:hidden}
.production-stage-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:15px 18px;background:#f8fafc;border-bottom:1px solid #dce3ee}
.production-stage-head h3{font-size:17px;margin:3px 0 0}
.production-stage-body{padding:18px}
.production-status{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}
.production-empty{padding:26px 16px!important;text-align:center;color:#687386!important}
.production-list-filters{border:1px solid #dce3ee;border-radius:8px;padding:16px;background:#f8fafc}
.production-view-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:18px;border-bottom:1px solid #e6ebf3}
.production-view-number{font-size:30px;line-height:1.1;font-weight:800;color:#172033;margin:6px 0 8px}
.production-view-subtitle{color:#5e6a7d;font-size:14px}
.production-note{padding:14px 16px;border:1px solid #dce3ee;border-radius:8px;background:#f8fafc;color:#4d5c71}
.production-print-sheet{max-width:1200px;margin:auto}
.production-report-table{min-width:1450px}
.production-report-table tfoot th{position:sticky;bottom:0;background:#f7f9fc;border-top:2px solid #cfd8e6;font-variant-numeric:tabular-nums}
.production-report .sales-stat{min-height:70px;border-radius:8px}
.production-report .production-list-filters{background:#f7f9fc}
.transaction-multiselect{position:relative;width:100%}
.transaction-multiselect-native{width:100%;min-height:142px}
.transaction-multiselect-enhanced{position:relative;width:100%}
.transaction-multiselect-toggle{height:38px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:36px;background-color:#fff}
.transaction-multiselect-enhanced.is-open .transaction-multiselect-toggle,.transaction-multiselect-toggle:focus{border-color:#86b7fe;box-shadow:0 0 0 .2rem rgba(13,110,253,.14)}
.transaction-multiselect-menu{position:absolute;z-index:1050;top:calc(100% + 6px);left:0;width:max(100%,340px);max-width:min(430px,calc(100vw - 32px));padding:10px;background:#fff;border:1px solid #cfd8e6;border-radius:6px;box-shadow:0 12px 30px rgba(15,23,42,.16)}
.transaction-multiselect-menu[hidden]{display:none!important}
.transaction-multiselect-search{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:#667085}
.transaction-multiselect-search .form-control{min-width:0}
.transaction-multiselect-actions{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6ebf2;margin:0 -2px 6px;padding:0 2px 6px}
.transaction-multiselect-actions .btn{padding:2px 4px;text-decoration:none}
.transaction-multiselect-options{max-height:280px;overflow-y:auto;overscroll-behavior:contain;padding:2px}
.transaction-multiselect-option{display:flex;align-items:flex-start;gap:9px;width:100%;margin:0;padding:8px;border-radius:4px;cursor:pointer;color:#1f2937;line-height:1.3}
.transaction-multiselect-option:hover{background:#f2f6fc}
.transaction-multiselect-option:focus-within{outline:2px solid #86b7fe;outline-offset:-2px;background:#f2f6fc}
.transaction-multiselect-option .form-check-input{flex:0 0 auto;margin-top:2px}
.transaction-multiselect-empty{padding:18px 8px;text-align:center;color:#6b7280;font-size:13px}
.accounting-print-meta{display:none}
.financial-report{padding:18px;border-radius:4px}.financial-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}.financial-heading h2{font-size:22px;margin:0}.financial-heading p{font-size:12px;color:#64748b;margin:2px 0 0}.financial-toolbar{display:flex;flex-wrap:wrap;gap:6px}.financial-meta{display:flex;flex-wrap:wrap;gap:8px 22px;padding:8px 0;border-top:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1;font-size:12px}.financial-meta strong{font-size:14px}.financial-filters{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:12px 0}.financial-filters>div{min-width:150px}.financial-filters>div.form-check{min-width:auto;margin-bottom:5px}.financial-filters label{font-size:12px;margin-bottom:3px}.financial-table{width:100%;border-collapse:collapse;font-size:13px}.financial-table th,.financial-table td{padding:5px 8px;border-bottom:1px solid #dbe2ea}.financial-table thead th{border-top:1px solid #94a3b8;border-bottom:1px solid #94a3b8;background:#f8fafc}.financial-table tfoot th{border-top:2px solid #475569;border-bottom:3px double #475569}.financial-table .amount{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.financial-table td:first-child{padding-left:calc(8px + var(--depth,0)*18px)}.financial-group{font-weight:700}.financial-ledger td:first-child{font-weight:400}.financial-table [data-tree-toggle]{width:18px;height:18px;padding:0;border:0;background:transparent;color:#334155}.financial-table [data-tree-toggle]::before{content:'+'}.financial-table [data-tree-toggle][aria-expanded=true]::before{content:'−'}.financial-ledger [data-tree-toggle]::before{content:''}.financial-table a{color:inherit;text-decoration:none}.financial-table a:hover{text-decoration:underline}.financial-section-title{text-align:center;font-weight:700;padding:7px;border-top:1px solid #64748b;border-bottom:1px solid #64748b;margin-top:12px}.financial-two-sided{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #64748b}.financial-side:first-child{border-right:1px solid #64748b}.financial-side h3{font-size:13px;margin:0;padding:6px 8px;border-bottom:1px solid #cbd5e1}.financial-side-table td:last-child{width:170px}.financial-transfer,.financial-grand-result,.financial-balance-totals,.financial-reconcile{display:flex;justify-content:flex-end;gap:30px;padding:7px 8px;font-weight:700;border-bottom:1px solid #64748b}.financial-balance-totals{justify-content:space-between}.financial-grand-result{border-top:2px solid #334155;border-bottom:3px double #334155}.financial-reconcile.balanced{color:#166534}.financial-reconcile.unbalanced{color:#b91c1c}.financial-note{font-size:12px;color:#64748b;margin:8px 0 0}
@media(max-width:767px){.financial-heading{display:block}.financial-toolbar{margin-top:8px}.financial-two-sided{grid-template-columns:1fr}.financial-side:first-child{border-right:0;border-bottom:1px solid #64748b}.financial-table{min-width:680px}.financial-side-table{min-width:0}}
.production-chart{position:relative;height:320px;min-height:320px}
.production-dashboard-charts .production-panel{height:100%}
.production-print-head{display:flex;justify-content:space-between;gap:18px;padding-bottom:16px;border-bottom:2px solid #172033}
.production-print-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.production-print-meta>div{border:1px solid #dce3ee;border-radius:6px;padding:10px}
.production-print-meta strong{display:block;font-size:10px;text-transform:uppercase;color:#687386;margin-bottom:4px}
.invoice-tab-content .border.rounded.p-3{height:100%}
.product-form-shell{padding:18px}
.product-titlebar{margin-bottom:16px}
.product-tab-content{padding:18px}
.product-form-footer{display:flex;justify-content:flex-end;padding-top:16px;margin-top:8px;border-top:1px solid #e3e8f2}
.price-list-form .table-responsive .form-control,.price-list-form .table-responsive .form-select{min-width:92px}
.price-list-form .table-responsive .price-list-product-select{min-width:220px}
.price-list-form .table-responsive .price-list-product-description{min-width:220px}
.sales-login-page{background:#f5f7fb}
.sales-login{min-height:100vh;display:grid;place-items:center;padding:20px}
.sales-login-card{width:min(420px,100%);background:#fff;border:1px solid #dce3ee;border-radius:10px;padding:26px}
.sales-login-card h1{font-size:28px;margin-bottom:6px}
.customer-master .nav-tabs{overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap}
.customer-master .nav-tabs .nav-link{white-space:nowrap}
.configure-fields-table th,.configure-fields-table td{vertical-align:middle;white-space:nowrap}
.configure-fields-table .form-control,.configure-fields-table .form-select{min-width:120px}
.configure-fields-table .config-order{min-width:78px}

.erp-dashboard{display:block}
.erp-dashboard-shell{display:flex;flex-direction:column;gap:20px}
.erp-page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:6px 2px 8px}
.erp-page-heading-group{display:flex;align-items:center;min-width:0;flex:1 1 auto;gap:11px}
.erp-page-heading-group>div{min-width:0}
.erp-page-heading-group .sales-sidebar-toggle{position:relative;left:auto;top:auto;z-index:1050;flex:0 0 40px;width:40px;height:40px;min-width:40px;box-shadow:0 4px 12px rgba(15,23,42,.10);transition:background .18s ease,color .18s ease,border-color .18s ease}
.sales-sidebar-toggle-embedded.sales-sidebar-collapsed .sales-content{padding-left:8px}
.erp-page-kicker{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6b7688;margin-bottom:6px}
.erp-page-title-wrap{display:flex;flex-direction:column;gap:6px}
.erp-page-title{margin:0;font-size:32px;font-weight:800;color:#132238;letter-spacing:-.02em}
.erp-page-subtitle{margin:0;color:#607089;font-size:15px}
.erp-page-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.erp-segmented-control{display:inline-flex;align-items:center;gap:4px;padding:4px;background:#e9eef6;border:1px solid #d9e1ee;border-radius:12px}
.erp-segmented-control__item{padding:8px 14px;border-radius:10px;color:#4f627d;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}
.erp-segmented-control__item.is-active{background:#fff;color:#1d4ed8;box-shadow:0 4px 12px rgba(15,23,42,.08)}
.erp-filter-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.erp-filter-field{display:flex;flex-direction:column;gap:6px;min-width:200px}
.erp-filter-label{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6b7688}
.erp-filter-control{min-width:200px;border-color:#d7dfec;border-radius:10px}
.erp-action-btn{min-height:42px;padding:9px 16px;font-weight:700;border-radius:10px}
.erp-context-strip{display:flex;flex-wrap:wrap;gap:10px 16px;padding:14px 18px;margin:14px 0 18px;background:#fff;border:1px solid #dce3ee;border-radius:12px;color:#526177;font-size:13px;box-shadow:0 8px 20px rgba(15,23,42,.04)}
.erp-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.erp-kpi-card{display:flex;gap:14px;align-items:center;min-height:122px;padding:18px;background:#fff;border:1px solid #dce3ee;border-radius:14px;box-shadow:0 10px 24px rgba(15,23,42,.05)}
.erp-kpi-card__icon{flex:0 0 52px;width:52px;height:52px;display:grid;place-items:center;border-radius:14px;font-size:21px;line-height:1}
.erp-kpi-card__icon--primary{background:#edf4ff;color:#1d4ed8}
.erp-kpi-card__icon--success{background:#ecfdf3;color:#0f7a38}
.erp-kpi-card__icon--warning{background:#fff7e8;color:#b45309}
.erp-kpi-card__icon--danger{background:#fff1f2;color:#be123c}
.erp-kpi-card__body{min-width:0}
.erp-kpi-card__label{font-size:13px;font-weight:700;color:#64748b;margin-bottom:6px}
.erp-kpi-card__value{font-size:28px;font-weight:800;line-height:1.08;color:#132238;font-variant-numeric:tabular-nums}
.erp-kpi-card__meta{margin-top:7px;color:#64748b;font-size:13px;line-height:1.35}
.erp-dashboard-main-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(280px,1fr);gap:18px;align-items:start}
.erp-dashboard-main-layout>*,.erp-dashboard-primary-row>*,.erp-lower-stack>*{min-width:0}
.erp-dashboard-primary{display:flex;flex-direction:column;gap:18px;min-width:0}
.erp-dashboard-primary-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px;align-items:start}
.erp-dashboard-insights{display:flex;flex-direction:column;gap:16px;min-width:0}
.erp-lower-stack{display:flex;flex-direction:column;gap:18px;min-width:0}
.erp-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#fff;border:1px solid #dce3ee;border-radius:14px;box-shadow:0 10px 26px rgba(15,23,42,.05)}
.erp-section-card{padding:20px}
.erp-card--compact{padding:18px}
.erp-card__header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.erp-card__eyebrow{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6b7688;margin-bottom:4px}
.erp-card__title{margin:0;font-size:18px;font-weight:800;color:#132238}
.erp-card__hint{font-size:12px;color:#64748b}
.erp-inline-link{font-size:13px;font-weight:700;color:#2563eb;text-decoration:none}
.erp-chart-wrap{position:relative;width:100%;height:260px;min-height:260px;max-height:260px}
.erp-chart-wrap--trend{height:260px;min-height:260px;max-height:260px}
.erp-chart-wrap--compact{height:280px;min-height:280px;max-height:280px}
.erp-chart-wrap canvas{display:block!important;width:100%!important;height:100%!important;max-width:100%}
.erp-empty-state{display:grid;place-items:center;min-height:180px;padding:20px;border:1px dashed #d7dfec;border-radius:12px;background:#fbfcfe;color:#64748b;text-align:center}
.erp-table thead th{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#607089;background:#f8fafc;border-bottom:1px solid #dce3ee}
.erp-table th,.erp-table td{padding:13px 14px;border-color:#e7edf5}
.erp-table--compact th,.erp-table--compact td{padding:10px 12px}
.erp-table tbody td{color:#172033}
.erp-table-link{color:#1d4ed8;text-decoration:none;font-weight:700}
.erp-number-cell{font-variant-numeric:tabular-nums}
.erp-status-badge{display:inline-flex;align-items:center;min-height:30px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid transparent}
.erp-status-badge--success{background:#ecfdf3;border-color:#b7ebc9;color:#0f7a38}
.erp-status-badge--warning{background:#fff7e8;border-color:#f6d39c;color:#9a6700}
.erp-status-badge--danger{background:#fff1f2;border-color:#fecdd3;color:#be123c}
.erp-status-badge--neutral{background:#f4f7fb;border-color:#dce3ee;color:#526177}
.erp-progress-list,.erp-mini-metrics,.erp-ranked-list{display:flex;flex-direction:column;gap:14px}
.erp-dashboard-insight{padding:14px 16px;border:1px solid #e6ebf3;border-radius:12px;background:#fbfcfe}
.erp-progress-item__top,.erp-ranked-list__item{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.erp-progress-item__label,.erp-ranked-list__title{font-weight:700;color:#172033}
.erp-progress-item__value,.erp-ranked-list__value,.erp-mini-metric__value{font-variant-numeric:tabular-nums}
.erp-progress-item__value,.erp-ranked-list__value{font-weight:700;color:#132238}
.erp-progress-bar{height:8px;border-radius:999px;background:#e8eef7}
.erp-progress-bar .progress-bar{background:#2563eb;border-radius:999px}
.erp-mini-metric{padding:12px 0;border-bottom:1px solid #edf1f6}
.erp-mini-metric:last-child{padding-bottom:0;border-bottom:0}
.erp-mini-metric__label{display:block;font-size:12px;font-weight:700;color:#64748b;margin-bottom:6px;text-transform:uppercase;letter-spacing:.06em}
.erp-mini-metric__value{font-size:20px;font-weight:800;color:#132238}
.erp-ranked-list__item{padding:12px 0;border-bottom:1px solid #edf1f6}
.erp-ranked-list__item:last-child{padding-bottom:0;border-bottom:0}
.erp-ranked-list__meta{font-size:12px;color:#64748b;margin-top:4px}
.erp-quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.erp-quick-link{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;border:1px solid #dce3ee;border-radius:10px;background:#fbfcff;text-decoration:none;font-weight:700;color:#172033;text-align:center;transition:border-color .18s ease,color .18s ease,background-color .18s ease}
.erp-quick-link:hover{border-color:#2563eb;color:#2563eb;background:#f8fbff}
.erp-product-group-panel{display:grid;grid-template-columns:minmax(220px,.92fr) minmax(0,1fr);gap:18px;align-items:center}
.erp-donut-legend{display:flex;flex-direction:column;gap:10px}
.erp-donut-legend__item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #edf1f6}
.erp-donut-legend__item:last-child{padding-bottom:0;border-bottom:0}
.erp-donut-legend__swatch{width:10px;height:10px;border-radius:999px;display:inline-block}
.erp-donut-legend__swatch--0{background:#2563eb}
.erp-donut-legend__swatch--1{background:#0f766e}
.erp-donut-legend__swatch--2{background:#f59e0b}
.erp-donut-legend__swatch--3{background:#7c3aed}
.erp-donut-legend__swatch--4{background:#dc2626}
.erp-donut-legend__swatch--5{background:#0891b2}
.erp-donut-legend__label{font-size:13px;font-weight:700;color:#172033;min-width:0}
.erp-donut-legend__value{font-size:13px;font-weight:700;color:#132238;font-variant-numeric:tabular-nums}

@media(max-width:1200px){
    .erp-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .erp-dashboard-main-layout{grid-template-columns:1fr}
    .erp-dashboard-primary-row{grid-template-columns:1fr}
    .erp-product-group-panel{grid-template-columns:1fr}
    .erp-quick-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
    .sales-sidebar{position:fixed;width:260px;height:100vh;transform:translateX(-100%);z-index:1040}
    body:not(.sales-sidebar-collapsed) .sales-sidebar{transform:translateX(0)}
    .sales-sidebar-toggle{left:14px}
    .sales-content{margin-left:0;padding:0 16px 16px 60px}
    .sales-header{align-items:flex-start;flex-direction:column}
    .invoice-titlebar,.invoice-section-head{flex-direction:column;align-items:flex-start}
    .invoice-header-panel,.invoice-tab-content,.product-form-shell{padding:14px}
    .invoice-items-table{min-width:1400px}
    .production-meta-grid,.production-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .production-view-header,.production-stage-head,.production-section-head{flex-direction:column;align-items:flex-start}
    .production-actions{justify-content:flex-start}
    .erp-page-header{flex-direction:column;align-items:flex-start}
    .erp-page-actions{width:100%;justify-content:flex-start}
    .sales-sidebar-toggle-embedded .sales-content,.sales-sidebar-toggle-embedded.sales-sidebar-collapsed .sales-content{padding-left:16px}
    .erp-segmented-control{flex-wrap:wrap}
    .erp-dashboard-primary-row{grid-template-columns:1fr}
    .erp-chart-wrap{height:300px;min-height:300px;max-height:300px}
}
@media(max-width:640px){
    .erp-page-header{gap:12px}
    .erp-page-heading-group{width:100%;gap:10px}
    .erp-page-heading-group .sales-sidebar-toggle{flex-basis:44px;width:44px;height:44px;min-width:44px}
    .erp-page-heading-group h2,.erp-page-heading-group .erp-page-title{font-size:24px;line-height:1.2;overflow-wrap:anywhere}
    .erp-page-actions{gap:8px}
    .erp-floating-field>label{max-width:calc(100% - 1rem);left:.5rem}
    .erp-floating-field>.form-control,.erp-floating-field>.form-select{padding-left:.75rem;padding-right:.75rem}
    .production-panel{padding:14px}
    .production-meta-grid,.production-summary-grid,.production-print-meta{grid-template-columns:1fr}
    .production-action-bar{margin:0 -14px -14px;padding:12px 14px}
    .erp-kpi-grid{grid-template-columns:1fr}
    .erp-filter-toolbar{width:100%}
    .erp-filter-field,.erp-filter-control{width:100%;min-width:0}
    .erp-action-btn{width:100%}
    .erp-context-strip{padding:12px 14px}
    .erp-section-card{padding:16px}
    .erp-chart-wrap,.erp-chart-wrap--compact{height:260px;min-height:260px;max-height:260px}
    .erp-quick-links{grid-template-columns:1fr}
    .erp-kpi-card{min-height:0}
    .transaction-multiselect-menu{width:100%;max-width:100%}
}
@media print{
    .sales-sidebar,.sales-sidebar-toggle,.sales-header,.production-no-print,.accounting-no-print{display:none!important}
    .sales-content{margin:0;padding:0}
    .top-card{border:0;box-shadow:none;padding:0}
    .production-print-sheet{max-width:none}
    .production-print-sheet .production-grid{min-width:0;font-size:10px}
    .production-print-sheet .production-grid th,.production-print-sheet .production-grid td{padding:6px;white-space:normal}
    .production-print-sheet .production-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .accounting-print-meta{display:flex!important;flex-direction:column;align-items:flex-start;gap:4px;margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid #888;font-size:11px;line-height:1.35}
    .accounting-print-meta-company{font-size:15px}
    .accounting-print-meta-title{font-size:13px;font-weight:700}
    .financial-report{font-size:10px}.financial-heading p{display:none}.financial-heading h2{font-size:16px}.financial-meta{font-size:10px;gap:4px 16px;margin-bottom:8px}.financial-table{font-size:10px}.financial-table thead{display:table-header-group}.financial-table tr{break-inside:avoid}.financial-two-sided{grid-template-columns:1fr 1fr}
    .sales-module table{width:100%!important;min-width:0!important;font-size:9px!important}
    .sales-module table thead{display:table-header-group}
    .sales-module table tfoot{display:table-footer-group}
    .sales-module table tr{break-inside:avoid}
    .sales-module table th,.sales-module table td{padding:3px 4px!important;white-space:normal!important}
    .sales-module .table-responsive,.sales-module .accounting-table-wrap{overflow:visible!important;max-height:none!important}
}

.erp-insight-dashboard{padding:0 0 18px}.erp-insight-header{position:sticky;top:0;z-index:30;background:rgba(243,246,251,.96);backdrop-filter:blur(8px);border:1px solid #dbe3ef;border-radius:12px;padding:12px 14px;margin-bottom:10px}.erp-insight-filter-toolbar{gap:8px;align-items:end}.erp-insight-context-strip{margin-bottom:12px}.erp-insight-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:12px}.erp-insight-kpi-card{min-height:96px;padding:12px;text-decoration:none;color:inherit}.erp-insight-kpi-card:hover{border-color:#2563eb;box-shadow:0 10px 22px rgba(37,99,235,.10)}.erp-insight-kpi-card .erp-kpi-card__value{font-size:21px}.erp-insight-kpi-delta{display:flex;flex-direction:column;gap:1px;margin-top:5px;font-size:12px}.erp-insight-kpi-delta span{font-weight:800}.erp-insight-kpi-delta small{color:#64748b}.erp-insight-kpi-delta--positive span{color:#15803d}.erp-insight-kpi-delta--negative span{color:#b91c1c}.erp-insight-kpi-delta--neutral span{color:#64748b}.erp-insight-alert-list{display:flex;flex-direction:column;gap:8px}.erp-insight-alert{display:flex;flex-direction:column;gap:2px;padding:9px 10px;border:1px solid #fde68a;border-radius:10px;background:#fffbeb;color:#172033;text-decoration:none}.erp-insight-alert span{font-size:11px;font-weight:800;color:#b45309;text-transform:uppercase}.erp-insight-alert strong{font-size:13px}.erp-insight-alert small{color:#64748b}.erp-insight-alert:hover{border-color:#f59e0b;background:#fff7d6}.erp-insight-grid{gap:12px}.erp-insight-dashboard .erp-section-card{padding:14px}.erp-insight-dashboard .erp-card__header{margin-bottom:10px}.erp-insight-dashboard .erp-table{font-size:12px}.erp-insight-dashboard .erp-mini-metric{padding:9px 0}@media(max-width:1200px){.erp-insight-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:767px){.erp-insight-header{position:static}.erp-insight-kpi-grid{grid-template-columns:1fr}.erp-insight-filter-toolbar{display:grid;grid-template-columns:1fr}.erp-insight-kpi-card .erp-kpi-card__value{font-size:19px}}
.report-action-toolbar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.report-action-icon{width:40px;height:40px;min-width:40px;min-height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7dfeb;border-radius:10px;background:#fff;box-shadow:0 2px 7px rgba(15,23,42,.05);text-decoration:none;line-height:1;transition:color .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.report-action-icon .bi{font-size:17px;line-height:1}
.report-action-toolbar .report-filter-toggle.report-action-icon{width:40px!important;min-width:40px!important;padding:0!important}
.accounting-report .accounting-table thead th,.sales-report-card .report-compact-table thead th{background:#e8f0fb!important;color:#1e3a5f;border-color:#c8d8ec!important;font-weight:700}
.accounting-report .accounting-table thead th a,.sales-report-card .report-compact-table thead th a{color:inherit;text-decoration:none}
.accounting-report .accounting-table thead th a:hover,.sales-report-card .report-compact-table thead th a:hover{color:#0d6efd;text-decoration:underline}
.accounting-table.report-compact-table th.text-end,.accounting-table.report-compact-table td.text-end{text-align:right!important;font-variant-numeric:tabular-nums}
.sales-gst-columns-hidden [data-sales-gst-column]{display:none!important}
.report-action-icon--neutral{color:#475569}.report-action-icon--primary{color:#2563eb}.report-action-icon--success{color:#15803d}.report-action-icon--danger{color:#dc2626}
.report-action-icon:hover,.report-action-icon:focus-visible{background:#f8fafc;border-color:#9aa9bc;box-shadow:0 6px 14px rgba(15,23,42,.11);transform:translateY(-1px)}
.report-action-icon--primary:hover,.report-action-icon--primary:focus-visible{color:#1d4ed8;border-color:#93b4ef;background:#eff6ff}
.report-action-icon--success:hover,.report-action-icon--success:focus-visible{color:#166534;border-color:#86c99a;background:#f0fdf4}
.report-action-icon--danger:hover,.report-action-icon--danger:focus-visible{color:#b91c1c;border-color:#e6a0a0;background:#fef2f2}
.report-action-icon:focus-visible{outline:3px solid rgba(37,99,235,.24);outline-offset:2px}
@media(max-width:767px){.report-action-toolbar{justify-content:flex-start;gap:7px}.report-action-icon{width:40px;height:40px}}

/* Report pages use the toggle at the card edge without a wide empty gutter. */
.sales-report-card{min-height:calc(100vh - 24px);display:flex;flex-direction:column}
.invoice-summary-report{position:relative}
.invoice-summary-report-header{box-sizing:border-box;width:100%;height:1in;min-height:1in;max-width:none;margin:0 auto 4px;padding:0 220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden;overflow-wrap:anywhere}
.invoice-summary-company{font-size:20px;font-weight:700;line-height:1.15}
.invoice-summary-address{display:-webkit-box;max-width:780px;margin:3px auto 0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;white-space:normal;font-size:12px;line-height:1.2}
.invoice-summary-title{margin:5px 0 0;font-size:14px;font-weight:700;line-height:1.15}
.invoice-summary-toolbar{position:absolute;z-index:2;top:12px;right:22px;height:40px;display:flex;align-items:flex-start;justify-content:flex-end}
.invoice-summary-page.sales-sidebar-collapsed .sales-sidebar-toggle{left:22px}
.standard-report-print-meta .accounting-print-meta-company,.standard-report-print-meta .accounting-print-meta-title{display:none!important}
.sales-report-table-wrap{min-height:420px;flex:1 1 auto}
.sales-report-page .sales-content>.top-card{min-height:calc(100vh - 24px)}
.sales-report-page.sales-sidebar-collapsed .sales-content{padding-left:8px}
.sales-report-page .sales-content>.top-card>.d-flex.align-items-start>div:first-child,
.sales-report-page .sales-content>.top-card>.financial-heading>div:first-child,
.sales-report-page .sales-content .erp-page-header>.erp-page-title-wrap:first-child{padding-left:52px}
@media(max-width:991px){.sales-report-page.sales-sidebar-collapsed .sales-content{padding-left:8px}}
@media(max-width:575px){.sales-report-card{min-height:calc(100vh - 16px)}.sales-report-table-wrap{min-height:360px}.sales-report-page .sales-content>.top-card>.d-flex.align-items-start>div:first-child,.sales-report-page .sales-content>.top-card>.financial-heading>div:first-child,.sales-report-page .sales-content .erp-page-header>.erp-page-title-wrap:first-child{padding-left:46px}}
@media(max-width:991px){
    .invoice-summary-report-header{height:1in;min-height:1in;padding:0 8px}
    .invoice-summary-toolbar{position:static;margin:8px 0 12px;justify-content:center}
}

/* Vehicle Service Reports: compact Invoice Wise Summary model */
.vehicle-service-report{font-size:12px;line-height:1.3}
.vehicle-service-report h2{font-size:24px;line-height:1.2}
.vehicle-service-report .text-muted,.vehicle-service-report .form-label{font-size:11px}
.vehicle-service-report .report-compact-table{font-size:11px;line-height:1.25}
.vehicle-service-report .report-compact-table>:not(caption)>*>*{padding:4px 7px}
.vehicle-service-report .report-compact-table thead th,.vehicle-service-report .report-compact-table tfoot th{font-size:11px;white-space:nowrap}
.vehicle-service-report .form-control,.vehicle-service-report .form-select,.vehicle-service-report .btn{font-size:11px}
.vehicle-service-report .form-control,.vehicle-service-report .form-select{min-height:32px;padding-top:4px;padding-bottom:4px}
.vehicle-service-report .sales-stat{padding:8px 10px}
.vehicle-service-report .sales-stat-label{font-size:10px}
.vehicle-service-report .sales-stat-value{font-size:16px}
.vehicle-service-report .badge{font-size:10px}

@media print{
    .invoice-summary-report-header{display:flex!important;height:1in;min-height:1in;max-height:1in;max-width:none;margin:0 auto 6px;padding:0 10mm 6px;border-bottom:1px solid #888;text-align:center;break-inside:avoid}
    .invoice-summary-company{font-size:17px;line-height:1.15}
    .invoice-summary-address{max-width:170mm;margin-top:3px;font-size:10px;line-height:1.2}
    .invoice-summary-title{margin-top:4px;font-size:12px;line-height:1.15}
    .invoice-summary-print-meta{align-items:center!important;text-align:center;border-bottom:0!important;margin-bottom:10px!important;padding-bottom:0!important}
}
