:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#192740;background:#f5f7fb;font-size:13px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}a{color:inherit;text-decoration:none}.app{display:flex;min-height:100vh}.sidebar{background:#0e1a30;color:#aebbd1;width:225px;min-width:225px;padding:22px 11px;display:flex;flex-direction:column;position:sticky;height:100vh;top:0;overflow-y:auto}.brand{padding:0 12px 22px;display:flex;align-items:center;gap:10px;color:#fff;font-size:18px;font-weight:850;letter-spacing:-.55px}.brand small{font-size:9px;display:block;font-weight:400;letter-spacing:.25px;color:#b1bed3;margin-top:4px}.logo{width:35px;height:35px;background:linear-gradient(135deg,#168af9,#1142b2);display:grid;place-items:center;border-radius:11px;font-weight:900;letter-spacing:-1px;color:#fff;font-size:15px}.navlabel{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:#657a99;margin:13px 14px 9px;font-weight:750}.navbtn{display:flex;align-items:center;gap:11px;color:#c4cee0;border:0;border-radius:7px;background:none;width:100%;padding:11px 13px;text-align:left;margin:2px 0;font-size:12px}.navbtn:hover{background:#1b2b47;color:white}.navbtn.active{background:linear-gradient(90deg,#326eff,#2552c6);color:#fff;font-weight:750}.navicon{font-size:18px;width:21px;text-align:center;line-height:1}.sidefooter{margin-top:auto;border-top:1px solid #293750;padding:16px 10px;font-size:10px;color:#889cb8}.work{flex:1;min-width:0;padding:23px 25px 45px;max-width:1700px;margin:0 auto}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.pagetitle{font-size:23px;font-weight:820;letter-spacing:-.7px}.sub{color:#8c99ab;font-size:11px;margin-top:5px}.tools{display:flex;align-items:center;gap:12px}.profile{border:1px solid #e4e8ef;border-radius:12px;padding:7px 11px;background:#fff;display:flex;align-items:center;gap:9px;font-size:11px}.avatar{width:29px;height:29px;border-radius:50%;background:#dbe9ff;color:#225bd6;display:grid;place-items:center;font-weight:850}.btn{background:#245ddd;border:1px solid #245ddd;color:white;padding:10px 14px;border-radius:7px;font-size:12px;font-weight:700;white-space:nowrap}.btn:hover{filter:brightness(.95)}.btn.green{background:#06944b;border-color:#06944b}.btn.red{background:#e33e50;border-color:#e33e50}.btn.light{color:#344863;background:white;border-color:#dfe6f0}.btn.tiny{padding:6px 9px;font-size:11px}.btn.full{width:100%}.btn-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.metric{padding:16px 16px 13px;min-width:0;border-radius:9px;border:1px solid #e2e8f2;background:white}.metric.greenish{background:#e5faf1;border-color:#bcebd9}.metric.purplish{background:#eeebff;border-color:#ded7ff}.metric.blueish{background:#e7f0ff;border-color:#d7e5ff}.metric.peach{background:#fff0e6;border-color:#ffe0d2}.metric.rose{background:#ffeaf0;border-color:#fbd8df}.metric .label{color:#35506e;font-weight:650;font-size:11px}.metric .value{font-size:23px;font-weight:850;letter-spacing:-.5px;white-space:nowrap;margin:11px 0 8px}.metric .trend{color:#118b53;font-weight:700;font-size:10px}.grid2{display:grid;grid-template-columns:1.4fr 1fr;gap:14px;margin-top:15px}.panel{background:white;border:1px solid #e2e7f0;border-radius:9px;padding:16px;min-width:0}.paneltitle{font-size:15px;font-weight:800;display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.graph{width:100%;height:200px}.chartlegend{display:flex;gap:15px;color:#8593a7;font-size:11px}.chartlegend i{display:inline-block;width:9px;height:9px;background:#2774e8;margin-right:5px;border-radius:2px}.chartlegend i.purple{background:#9a7cec}.tablewrap{overflow:auto}.table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;white-space:nowrap}.table th{background:#f5f7fb;color:#7d899e;padding:12px 10px;font-size:11px;font-weight:750}.table td{padding:12px 10px;border-bottom:1px solid #edf0f5;color:#33435d}.table tr:last-child td{border-bottom:none}.table tr:hover td{background:#fbfcff}.status{font-size:10px;border-radius:5px;padding:5px 8px;font-weight:750;background:#fff0d8;color:#b57d12}.status.Delivered,.status.Received{background:#dff8e9;color:#128550}.status.Processing,.status.Dispatched{background:#e6efff;color:#2661ce}.status.Cancelled{background:#ffebeb;color:#c52d42}.summarygrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.summary{padding:17px 16px;border:1px solid #e0e7f1;background:#fff;border-radius:9px}.summary .caption{color:#7d8ca2;font-size:11px}.summary strong{display:block;margin-top:11px;font-size:20px;font-weight:850}.summary.warning{background:#ffeaf0}.summary.success{background:#eaf9f0}.layout-ledger{display:grid;grid-template-columns:225px minmax(0,1fr);gap:14px}.accountlist{background:white;border:1px solid #e2e8f2;border-radius:9px;padding:10px;max-height:650px;overflow:auto}.account-item{width:100%;display:flex;gap:9px;text-align:left;background:none;border:0;padding:11px 9px;border-radius:8px;align-items:center;color:#263751}.account-item.active{background:#e9efff}.account-item:hover{background:#f2f6ff}.account-item small{display:block;color:#8493a8;font-size:10px;margin-top:4px}.account-dot{width:29px;height:29px;border-radius:50%;flex-shrink:0;background:#e4ecff;color:#326be0;display:grid;place-items:center}.tabs{display:flex;gap:22px;border-bottom:1px solid #e4eaf1;margin-bottom:16px}.tab{border:0;background:none;border-bottom:3px solid transparent;padding:0 4px 13px;font-weight:750;font-size:12px;color:#8695a8}.tab.on{color:#275de0;border-bottom-color:#275de0}.accountinfo{padding:15px;border:1px solid #e5ebf2;border-radius:9px;margin-bottom:13px}.accountinfo h3{margin:0;font-size:17px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.formfield label{display:block;color:#687993;font-size:11px;font-weight:720;margin:0 0 6px}.field{width:100%;padding:10px 11px;border:1px solid #dce3ef;border-radius:6px;background:white;color:#25364e;min-width:0;outline-color:#5b8afb}.formfield.wide{grid-column:1/-1}.right{text-align:right}.small{font-size:11px}.muted{color:#8492a6}.topactions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px;flex-wrap:wrap}.search{border:1px solid #dce5f0;background:white;border-radius:7px;padding:10px 12px;min-width:180px;max-width:100%;outline-color:#598bff}.pos{display:grid;grid-template-columns:145px minmax(0,1fr) 300px;gap:12px;min-height:650px}.poscats{padding:12px;background:white;border:1px solid #e1e6ef;border-radius:8px}.poscats button{display:flex;width:100%;align-items:center;gap:8px;text-align:left;background:none;border:0;border-radius:6px;color:#4e6077;font-size:11px;padding:11px 8px}.poscats button.active{background:#e8efff;color:#245edd;font-weight:750}.poscenter{background:white;border:1px solid #e1e6ef;border-radius:8px;padding:12px;min-width:0}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.product{border:1px solid #e5eaf2;border-radius:8px;text-align:center;overflow:hidden;cursor:pointer;background:white;transition:box-shadow .15s,transform .15s}.product:hover{box-shadow:0 6px 18px #1b458020;transform:translateY(-1px)}.picon{height:92px;display:grid;place-items:center;font-size:44px;background:linear-gradient(145deg,#f7faff,#eef3fa)}.pname{font-size:11px;color:#23334d;font-weight:750;min-height:31px;margin:9px 5px 4px}.pprice{font-size:12px;font-weight:800;margin-bottom:9px}.pstock{font-size:10px;color:#8290a4;margin-bottom:6px}.cartpane{background:white;border:1px solid #dfe6f0;border-radius:8px;padding:14px;display:flex;flex-direction:column;min-height:560px}.cartrows{flex:1;min-height:115px;max-height:340px;overflow:auto}.cartitem{padding:11px 0;border-bottom:1px solid #ecf1f6}.qty{display:inline-flex;align-items:center;border:1px solid #dfe7f0;border-radius:5px;overflow:hidden}.qty button{border:0;background:#eff3fc;color:#245ddd;padding:5px 10px;font-weight:900}.qty span{padding:0 10px;font-weight:750}.ctotal{font-size:21px;font-weight:870}.rule{border-top:1px solid #e9edf4;margin:12px 0}.checkbox{accent-color:#285ed8}.modalshade{position:fixed;inset:0;background:#15213c8b;z-index:50;display:flex;align-items:center;justify-content:center;padding:15px}.modal{background:#fff;border-radius:12px;padding:23px;width:min(700px,100%);max-height:93vh;overflow:auto;box-shadow:0 25px 70px #0003}.modal h2{margin:0 0 5px;font-size:20px}.toastshow{display:block!important}#toast{display:none;position:fixed;right:22px;bottom:22px;padding:14px 18px;background:#183b65;color:#fff;border-radius:8px;box-shadow:0 9px 28px #0003;z-index:100;max-width:min(420px,calc(100vw - 30px))}.link{border:0;background:none;color:#245ddd;font-weight:700;padding:2px}.settingsgrid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.empty{padding:45px 15px;text-align:center;color:#8190a6}.line{display:flex;justify-content:space-between;align-items:center;gap:12px}.separator{margin:17px 0;border:0;border-top:1px solid #e9edf4}.authbg{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top right,#263c70,#0c172b 55%);padding:20px}.authcard{width:min(410px,100%);background:white;padding:34px;border-radius:16px;box-shadow:0 25px 70px #0004}.authcard h1{font-size:25px;margin:15px 0 5px}.authcard .formfield{margin:16px 0}.mobilemenu{display:none}.invoice{background:white;color:#1e293b;padding:20px}.quick{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.quick button{border:1px solid #e0e7f1;background:#f8faff;padding:17px 9px;border-radius:8px;color:#385a8a;font-weight:700}.reportgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.reportcard{border:1px solid #e4eaf2;border-radius:8px;padding:16px;background:#fff}.reportcard h3{margin:0 0 11px}.filterline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.filterline label{font-size:11px;color:#687990}.notice{padding:12px 14px;border:1px solid #c8dfef;border-radius:8px;background:#eef7ff;color:#35587b;font-size:12px;margin-bottom:15px}
@media(max-width:1250px){.metrics{grid-template-columns:repeat(3,1fr)}.pos{grid-template-columns:115px minmax(0,1fr) 260px}.products{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:194px;min-width:194px}.work{padding:20px 16px}}@media(max-width:900px){.sidebar{width:67px;min-width:67px;padding:12px 6px}.brand span,.navbtn .navtext,.navlabel,.sidefooter{display:none}.brand{padding:7px 8px 22px}.navbtn{justify-content:center}.navicon{font-size:20px}.pos{grid-template-columns:105px 1fr}.cartpane{grid-column:1/-1;min-height:0}.cartrows{max-height:240px}.layout-ledger{grid-template-columns:1fr}.accountlist{display:flex;overflow-x:auto;max-height:none}.account-item{min-width:175px}.grid2{grid-template-columns:1fr}}@media(max-width:600px){.app{display:block}.sidebar{width:100%;height:auto;min-width:0;position:relative;display:block;padding:8px}.brand{padding:5px}.brand span{display:block;font-size:14px}.brand small{display:none}.navitems{display:flex;overflow-x:auto;gap:2px}.navbtn{min-width:46px;padding:9px}.work{padding:15px 10px 32px}.pagetitle{font-size:19px}.toolbar{margin-bottom:16px}.tools{gap:4px}.profile{padding:5px}.profile .profilename{display:none}.metrics{grid-template-columns:repeat(2,1fr);gap:8px}.metric .value{font-size:17px}.summarygrid{grid-template-columns:repeat(2,1fr)}.pos{display:block}.poscats{display:flex;overflow-x:auto;margin-bottom:10px}.poscats button{white-space:nowrap;width:auto}.poscenter{margin-bottom:10px}.products{grid-template-columns:repeat(2,1fr)}.formgrid,.settingsgrid,.reportgrid{grid-template-columns:1fr}.modal{padding:17px}.panel{padding:12px}.account-item{min-width:160px}}
@media print{.sidebar,.toolbar,.no-print,#toast,.btn,.tabs{display:none!important}.work{padding:0!important}.app{display:block}.panel{border:0;padding:0}.table th{background:#e9edf4!important}.accountlist{display:none}.layout-ledger{display:block}body{background:white}.modalshade{position:static;background:white}.modal{box-shadow:none;width:100%;max-height:none}}

/* DaleFlow Pro enhanced product and navigation styling */
.navicon{display:inline-flex;align-items:center;justify-content:center;flex:none}
.navicon svg{width:18px;height:18px}
.unitproduct{padding-bottom:10px;cursor:default;text-align:left}
.unitproduct .picon{height:82px;color:#3972d3;background:linear-gradient(135deg,#f3f7ff,#e7efff)}
.unitproduct .picon svg{width:39px;height:39px;stroke-width:1.35}
.unitproduct .pname,.unitproduct .pstock,.unitproduct .unithelper{margin-left:10px;margin-right:10px}
.unitproduct .unithelper{font-size:10px;color:#45648e;line-height:1.45;background:#f0f5ff;border-radius:5px;padding:7px;margin-top:7px;margin-bottom:9px}
.unitproduct .unitselect{display:block;width:calc(100% - 20px);margin:0 10px;font-size:11px;padding:8px 5px}
.unitproduct .btn{width:calc(100% - 20px)!important;margin:8px 10px 0!important}
.print-heading{margin-bottom:16px;padding-bottom:12px;border-bottom:2px solid #1f4c9d}
.print-heading h2{margin:0 0 8px;color:#19345a}
@media print {
  #app>.app{display:none!important}
  #overlay{display:block!important;position:static!important}
  #overlay .modalshade{position:static!important;display:block!important;padding:0!important;background:white!important}
  #overlay .modal{width:100%!important;max-width:none!important;max-height:none!important;box-shadow:none!important;overflow:visible!important;padding:0!important}
  #overlay .modal>div:not(#loadprint),#overlay .modal>.btn-row{display:none!important}
  #loadprint{display:block!important}
  @page{size:A4;margin:14mm}
}

.logo img{display:block;border-radius:10px}.unitselect{background:#fff}

/* DaleFlow Pro v3: full-width categories, larger invoice composer, precise item modal */
.posadvanced{display:grid;grid-template-columns:minmax(0,1fr) minmax(345px,42%);grid-template-areas:"cats cats" "products cart";gap:13px;min-height:610px;align-items:start}
.posadvanced .poscats{grid-area:cats;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 13px;border:1px solid #e0e7f0;border-radius:11px}
.posadvanced .poscats .section-label{font-size:11px;text-transform:uppercase;font-weight:800;letter-spacing:.04em;color:#6b7e99;margin-right:7px;white-space:nowrap}
.posadvanced .poscats button{display:inline-flex;width:auto;white-space:nowrap;align-items:center;border:1px solid #e1e8f3;background:#fff;color:#4a5e7c;border-radius:19px;padding:9px 16px;font-size:11px;font-weight:750}
.posadvanced .poscats button.active{background:#255fdb;color:#fff;border-color:#255fdb;box-shadow:0 3px 12px #255fdb26}
.posadvanced .poscenter{grid-area:products;padding:16px;border-radius:11px}
.posadvanced .cartpane{grid-area:cart;min-height:605px;border-radius:11px;padding:20px;box-shadow:0 6px 24px #1525430b}
.posadvanced .cartrows{min-height:230px;max-height:480px}
.posadvanced .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.posadvanced .unitproduct{display:block;color:inherit;max-width:100%;width:100%;padding:0 0 14px;border-radius:10px;text-align:left;border:1px solid #e4eaf3}
.posadvanced .unitproduct .picon{height:92px}
.posadvanced .unitproduct .picon svg{width:45px;height:45px}
.posadvanced .unitproduct .unithelper{margin-bottom:7px}
.posadvanced .productrate{margin:8px 10px;color:#1e4ebc;font-weight:850;font-size:12px}
.posadvanced .product-add{display:block;margin:9px 10px 0;padding:9px;background:#e9f0ff;color:#255ad0;font-size:11px;text-align:center;border-radius:6px;font-weight:800}
.posadvanced .unitproduct:hover .product-add{background:#275fdb;color:#fff}
.unit-modal-head,.unit-entry{display:grid;grid-template-columns:minmax(115px,1fr) minmax(85px,135px) minmax(120px,180px);gap:13px;align-items:center}
.unit-modal-head{background:#eff4ff;padding:11px 12px;border-radius:7px;color:#567092;font-size:11px;font-weight:800}
.unit-entry{padding:15px 12px;border-bottom:1px solid #ebeff5}
.invoice-estimate{background:#eef6ff;border:1px solid #d7e6ff;border-radius:9px;padding:14px;margin-top:14px;text-align:right;color:#1c467b}
.record-actions{display:flex;gap:5px;flex-wrap:wrap}
.record-actions .btn{white-space:nowrap}
.invoice-paper{background:#fff;color:#202e41;border:1px solid #dce5f0;border-radius:7px;padding:30px;font-size:12px;line-height:1.6}
.invoice-top{display:flex;justify-content:space-between;gap:20px;align-items:start;border-bottom:3px double #233e67;padding-bottom:18px;margin-bottom:17px}
.invoice-company{font-size:23px;line-height:1.2;font-weight:900;color:#17365c;letter-spacing:-.6px}
.invoice-meta{font-size:11px;color:#54657a;margin-top:8px}
.invoice-heading{text-align:right;display:flex;flex-direction:column;gap:5px;align-items:flex-end}
.invoice-heading strong{font-size:16px;letter-spacing:1.1px;color:#193e72}
.invoice-heading span{padding:3px 10px;background:#e9f1ff;border-radius:4px;font-size:12px;font-weight:800}
.invoice-details{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:12px 13px;margin:13px 0 20px;background:#f5f8fd;border-radius:6px}
.invoice-details>div:last-child{text-align:right}
.invoice-paper .table{font-size:11px;width:100%}
.invoice-paper .table th{background:#19375c!important;color:#fff;padding:9px 10px}
.invoice-paper .table td{padding:10px;border-bottom:1px solid #e0e6ed}
.invoice-sums{display:flex;justify-content:space-between;gap:22px;align-items:start;margin-top:25px}
.invoice-balance{width:47%;border:1px solid #c9d3e1;border-radius:5px;overflow:hidden}
.invoice-balance>div{display:flex;justify-content:space-between;gap:10px;padding:7px 12px;border-bottom:1px solid #ebeff3}
.invoice-balance>div:last-child{border-bottom:0}
.invoice-balance>div.strong{background:#e9f0fa;color:#163e73;font-size:13px;font-weight:850}
.invoice-sign{display:flex;justify-content:space-between;gap:30px;margin-top:68px;color:#536177;font-size:11px}
.invoice-footer{text-align:center;border-top:1px solid #dbe3ed;padding-top:10px;margin-top:23px;color:#8290a3;font-size:10px}
@media(max-width:1120px){.posadvanced{grid-template-columns:minmax(0,1fr) 335px}.posadvanced .products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.posadvanced{grid-template-columns:1fr;grid-template-areas:"cats" "products" "cart"}.posadvanced .cartpane{grid-column:auto;min-height:0}.posadvanced .products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.posadvanced .products{grid-template-columns:repeat(2,minmax(0,1fr))}.posadvanced .poscats{overflow-x:auto;flex-wrap:nowrap}.unit-entry,.unit-modal-head{grid-template-columns:1fr 85px 110px;gap:5px}.unit-entry .field{padding:7px}.invoice-paper{padding:12px}.invoice-company{font-size:18px}.invoice-sums{gap:8px}.invoice-balance{width:49%}.invoice-balance>div{padding:5px;font-size:10px}}
@media print{
 #overlay .modal>div:not(#loadprint):not(#invoiceprint),#overlay .modal>.btn-row{display:none!important}
 #invoiceprint{display:block!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;width:100%!important;color:#000!important;font-size:11pt}
 #invoiceprint .invoice-company{color:#000!important}
 #invoiceprint .invoice-paper .table th,#invoiceprint .table th{background:#e9edf4!important;color:#000!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 #invoiceprint .invoice-details,#invoiceprint .invoice-balance .strong{background:#f0f0f0!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 #invoiceprint .invoice-heading span{background:#eee!important}
 #invoiceprint .invoice-sign{margin-top:55px}
 #invoiceprint tr{break-inside:avoid}
 @page{size:A4;margin:12mm}
}

/* v4 — natural page height, no nested scrollbars; horizontal table access on narrow devices */
.sidebar{height:auto!important;min-height:100vh!important;overflow:visible!important;position:relative!important;top:auto!important}
.cartrows,.accountlist{max-height:none!important;overflow:visible!important}
.posadvanced{min-height:0!important}
.tablewrap{scrollbar-width:none;-ms-overflow-style:none}
.tablewrap::-webkit-scrollbar{display:none}
html,body,.navitems{scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar,body::-webkit-scrollbar,.navitems::-webkit-scrollbar{display:none}
.modal{scrollbar-width:none}.modal::-webkit-scrollbar{display:none}
@media(max-width:900px){.sidebar{min-height:0!important}.accountlist{flex-wrap:wrap!important}}
@media(max-width:600px){.poscats{flex-wrap:wrap!important;overflow:visible!important}.navitems{flex-wrap:wrap!important;overflow:visible!important}}

/* Product master: screenshot-matched, full-page five-section form */
.pd-page{color:#20304c}.pd-header{display:flex;align-items:center;gap:13px;margin-bottom:18px}.pd-header-mark{width:45px;height:45px;display:grid;place-items:center;color:#225dde}.pd-header-mark svg{width:33px;height:33px}.pd-header h2{margin:0;font-size:25px;letter-spacing:-.7px;color:#172541}.pd-header p{margin:3px 0 0;color:#657691;font-size:12px}.pd-back{margin-left:auto}.pd-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:20px}.pd-steps a{background:white;border:1px solid #dce5f1;border-radius:27px;min-height:43px;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:#425471;font-size:11px;font-weight:650}.pd-steps a:first-child{border-color:#2d6bec;background:#edf4ff;color:#2057c3}.pd-steps span{display:grid;place-items:center;width:26px;height:26px;flex:none;background:#e9eef6;border:1px solid #d3ddec;border-radius:50%;font-weight:800}.pd-steps a:first-child span{background:#2363e7;color:white;border-color:#2363e7}.pd-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:17px;align-items:start}.pd-fields{min-width:0}.pd-section{background:#fff;border:1px solid #dce4ef;border-radius:11px;padding:17px 19px;margin-bottom:12px;box-shadow:0 2px 10px #18355c06;scroll-margin-top:15px}.pd-section h3{display:flex;align-items:center;gap:10px;font-size:16px;color:#192b46;margin:0 0 17px}.pd-section h3 svg{color:#2363df;width:22px;height:22px}.pd-grid{display:grid;gap:13px 17px}.pd-grid3{grid-template-columns:repeat(3,minmax(0,1fr))}.pd-grid4{grid-template-columns:repeat(4,minmax(0,1fr))}.pd-section .formfield{min-width:0}.pd-section .formfield label{font-weight:700;font-size:11px;color:#33425b;margin-bottom:6px}.pd-section .field{width:100%;background:#fff;padding:10px 11px;min-width:0}.pd-switchlabel{display:flex!important;gap:9px;align-items:center;margin-top:12px!important;color:#285dc9!important}.pd-switchlabel input{accent-color:#2565e8;width:18px;height:18px}.pd-help{color:#8090a6;font-size:11px;margin:-8px 0 15px}.pd-pack-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(210px,1fr);gap:20px;align-items:center}.pd-packflow{display:flex;align-items:center;gap:9px}.pd-packstep{flex:1;background:linear-gradient(160deg,#e7f1ff,#f5f9ff);min-width:0;border-radius:10px;min-height:92px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}.pd-packstep svg{color:#2364dc;width:27px;height:27px}.pd-packstep strong{color:#1e2d45;font-size:12px}.pd-packstep small{color:#6e8098;font-size:10px}.pd-arrow{font-size:21px;color:#2c62c9}.pd-packinputs{border-left:1px solid #d8e3f4;padding-left:21px;display:grid;gap:12px}.pd-packinputs label{display:flex;align-items:center;gap:8px;font-weight:800;white-space:nowrap;font-size:11px}.pd-packinputs input{width:85px!important;text-align:center}.pd-info{margin-top:15px;background:#eaf3ff;color:#254a83;padding:12px;border-radius:8px;font-size:12px}.pd-info b:last-child{color:#0b46b5}.pd-readonly{background:#f6f8fc;border:1px solid #e1e8f1;border-radius:7px;padding:11px;font-size:11px;color:#667991}.pd-description{height:91px;resize:vertical}.pd-upload{border:1.5px dashed #679cef;color:#3369c3;border-radius:9px;min-height:94px;display:grid;place-items:center;text-align:center;position:relative;overflow:hidden;font-size:11px}.pd-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.pd-upload small{color:#8ba0ba}.pd-footer{background:#fff;padding:16px 4px;display:flex;align-items:center;justify-content:space-between;gap:12px}.pd-footer .btn{padding:11px 16px}.pd-outline{border:1px solid #2c68dc!important;color:#245bca!important}.pd-save{background:#245fdf!important;color:white!important;min-width:145px}.pd-summary{background:white;border:1px solid #dfe5ef;border-radius:11px;overflow:hidden;position:sticky;top:10px;box-shadow:0 4px 16px #162a4b08}.pd-summary-top{background:#0b397e;color:white;padding:18px;display:flex;gap:12px;align-items:center}.pd-summary-top svg{width:31px;height:31px}.pd-summary-top strong{display:block;font-size:16px}.pd-summary-top small{font-size:10px;display:block;color:#c8dbf9}.pd-summary-body{padding:15px}.pd-preview{display:flex;gap:11px;align-items:center;border-bottom:1px solid #e7ecf4;padding-bottom:14px;margin-bottom:10px}.pd-preview-img{background:#f1f6ff;width:79px;height:79px;border:1px solid #dce6f6;border-radius:8px;display:grid;place-items:center;overflow:hidden;flex:none}.pd-preview-img img{width:100%;height:100%;object-fit:contain}.pd-preview-img svg{width:44px;height:44px;color:#5384df}.pd-preview strong{display:block;font-size:15px;line-height:1.3}.pd-preview small{display:block;color:#7586a0;font-size:10px;margin:4px 0}.pd-active-pill{display:inline-block;background:#def7e9;border-radius:5px;padding:4px 7px;color:#138760;font-size:10px;font-weight:750}.pd-summaryline{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid #edf1f6;padding:10px 2px;font-size:11px}.pd-summaryline span{color:#667890}.pd-summaryline b{font-size:11px;text-align:right}.pd-summary h4{font-size:13px;margin:18px 0 10px;color:#1e375b}.pd-breakdown{background:#edf5ff;color:#3c5d88;border-radius:6px;margin:7px 0;padding:11px 9px;display:flex;justify-content:space-between;font-size:11px;gap:6px}.pd-breakdown strong{color:#194aa0}.pd-breakdown.emphasized{background:#dceaff;font-weight:800}.inventory-thumb{width:26px;height:26px;object-fit:cover;vertical-align:middle;border-radius:4px}.pd-fields .field:focus{border-color:#2d69e8;outline:2px solid #ccddff}.pd-page{max-width:1700px}
@media(max-width:1220px){.pd-layout{grid-template-columns:minmax(0,1fr) 260px}.pd-grid4{grid-template-columns:repeat(2,minmax(0,1fr))}.pd-pack-grid{grid-template-columns:1fr}.pd-packinputs{border-left:0;border-top:1px solid #d8e3f4;padding:12px 0 0;grid-template-columns:1fr 1fr}}
@media(max-width:950px){.pd-layout{grid-template-columns:1fr}.pd-summary{position:static;grid-row:1}.pd-steps{display:flex;overflow-x:auto}.pd-steps a{flex:0 0 auto;padding:7px 12px}.pd-grid3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.pd-header h2{font-size:21px}.pd-back{font-size:10px}.pd-section{padding:14px}.pd-grid3,.pd-grid4{grid-template-columns:1fr}.pd-packflow{gap:3px}.pd-packinputs{grid-template-columns:1fr}.pd-packstep{min-height:75px}.pd-packstep strong{font-size:10px}.pd-arrow{font-size:15px}.pd-footer{flex-wrap:wrap}.pd-footer>div{display:flex;gap:5px}.pd-footer .btn{font-size:10px;padding:9px}.pd-save{min-width:0}}

.pd-section#pd-pricing .pd-help{margin:14px 0 0;line-height:1.5}.pos-product-image{width:100%;height:100%;object-fit:contain;padding:6px}

/* Bilal Traders v7 | Professional POS product layout. Desktop = exactly 4 cards per row. */
.posadvanced{grid-template-columns:minmax(0,1fr) minmax(330px,37%);align-items:start}
.posadvanced .poscenter{min-width:0;overflow:visible}
.posadvanced .products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;align-items:stretch}
.posadvanced .unitproduct{min-width:0;min-height:265px;display:flex;flex-direction:column;overflow:hidden;border-radius:12px;box-shadow:0 3px 10px rgba(20,42,78,.055);background:#fff;cursor:pointer;padding-bottom:10px}
.posadvanced .unitproduct .picon{width:100%;min-width:0;height:116px;max-height:116px;overflow:hidden;flex:none;background:linear-gradient(135deg,#f8faff,#edf3ff);display:flex;align-items:center;justify-content:center;padding:7px}
.posadvanced .unitproduct .picon img.pos-product-image{display:block!important;position:static!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;min-width:0!important;box-shadow:none!important}
.posadvanced .unitproduct .pname{font-size:12px;font-weight:750;line-height:1.35;overflow-wrap:anywhere;min-height:32px;margin-top:9px}
.posadvanced .unitproduct .pstock{font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.posadvanced .unitproduct .unithelper{font-size:9px;line-height:1.3;overflow-wrap:anywhere;margin-top:7px;padding:6px}
.posadvanced .unitproduct .productrate{margin-top:auto;font-size:11px;overflow-wrap:anywhere}
.posadvanced .unitproduct .product-add{margin-top:8px;min-height:35px;display:flex;align-items:center;justify-content:center;padding:7px 5px;font-size:10px;line-height:1.2}
.posadvanced .poscats{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain}
.posadvanced .poscats button{flex:none}
@media(max-width:1470px){.posadvanced .products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1160px){.posadvanced{grid-template-columns:minmax(0,1fr) 330px}.posadvanced .products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.posadvanced{grid-template-columns:1fr}.posadvanced .products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:610px){.posadvanced .products{grid-template-columns:repeat(2,minmax(0,1fr))}.posadvanced .unitproduct .picon{height:105px;max-height:105px}}
@media(max-width:370px){.posadvanced .products{grid-template-columns:1fr 1fr;gap:7px}.posadvanced .unitproduct .picon{height:85px;max-height:85px}}

/* Payment recovery v8 */
.recovery-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-bottom:16px}
.recovery-card{padding:17px;border:1px solid #e0e7f3;border-radius:12px;background:#fff;box-shadow:0 2px 9px #0e2c5008;min-width:0}
.recovery-card small{font-size:11px;color:#687995;display:block}.recovery-card strong{font-size:20px;display:block;margin-top:8px;color:#20344f;overflow-wrap:anywhere}.recovery-card .paid-text{color:#0b9969}
.recovery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;flex-wrap:wrap}
.paybadge{font-size:10px;border-radius:6px;padding:5px 9px;font-weight:750;display:inline-block;white-space:nowrap}
.pay-paid{background:#dcf8e8;color:#087d4e}.pay-partial{background:#fff0d5;color:#aa6508}.pay-unpaid{background:#ffe4e4;color:#b62d35}.pay-wait{background:#e8eef8;color:#596a82}
.invoice-pay-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:13px;background:#f2f7ff;border:1px solid #dce8fc;border-radius:9px;margin:12px 0}
.invoice-pay-summary>span{font-size:12px;color:#40536e}.invoice-pay-summary strong{color:#b12f38}
@media(max-width:740px){.recovery-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.recovery-card strong{font-size:16px}.invoice-pay-summary{grid-template-columns:1fr}}

/* v9: unit-wise product cost and selling-rate table */
.unit-price-wrap{overflow-x:auto;margin-top:12px;border:1px solid #dbe5f4;border-radius:12px}
.unit-price-table{width:100%;border-collapse:collapse;min-width:690px;font-size:13px}
.unit-price-table thead{background:#092e69;color:white}
.unit-price-table th,.unit-price-table td{padding:9px 10px;border-bottom:1px solid #e5ebf3;text-align:left;vertical-align:middle}
.unit-price-table tbody th{background:#f4f7fc;color:#112c51;min-width:120px}
.unit-price-table tbody th small{display:block;font-weight:400;color:#687b94}
.unit-price-table .formfield{margin:0}.unit-price-table .formfield label{display:block;font-size:10px;color:#667b95;margin-bottom:4px}
.unit-price-table .formfield input{min-width:100px;width:100%;padding:9px}
.unit-price-table strong{white-space:nowrap;color:#146b45}
@media(max-width:760px){.unit-price-table{min-width:620px}}


/* Bilal Traders v10 — advanced Sales and Sale Return screens */
.sales-filters{display:grid;grid-template-columns:repeat(6,minmax(125px,1fr));gap:11px;align-items:end;padding:15px;border:1px solid #e1e8f3;border-radius:12px;background:#f8faff;margin:0 0 13px}
.sales-filter-field{display:flex;flex-direction:column;gap:5px;font-weight:650;color:#415575;font-size:11px;min-width:0}
.sales-filter-field .field{min-width:0;width:100%;background:#fff}
.sales-filter-field.wide-search{grid-column:span 2}
.sales-bulkbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:12px 0 15px;border-bottom:1px solid #e3eaf3;margin-bottom:12px}
.sales-bulkbar .sales-check{display:flex;align-items:center;gap:6px;color:#27476d;font-size:11px;font-weight:700}
.sales-bulkbar input[type=checkbox],.tablewrap input[type=checkbox]{accent-color:#2463df;width:16px;height:16px}
.sales-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:14px}
.sales-metrics>div{min-width:0;border:1px solid #e1e8f4;background:#fff;border-radius:11px;padding:15px}
.sales-metrics>div small{display:block;font-weight:650;font-size:11px;color:#7385a0;margin-bottom:8px}
.sales-metrics>div strong{font-size:20px;color:#173866;overflow-wrap:anywhere}
.sales-selected-total{background:#e9f0ff;color:#173c78;padding:13px 17px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:14px}
.sr-warning{padding:13px 15px;border-radius:9px;border:1px solid #f5d9a1;background:#fff9eb;color:#7a541b;margin-top:13px;line-height:1.65}
.sr-return-head{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin-bottom:14px}
.sr-return-head label,#saleReturnForm>label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:700;color:#3a5472}
.sr-lines{margin:12px 0 15px}.sr-lines .tablewrap{max-height:42vh;overflow:auto}
.sr-lines input[type=checkbox]{width:17px;height:17px;accent-color:#2463df}
.sr-lines select.field{min-width:125px}
.bulk-invoice-sheet{padding:20px 4px 30px;border-bottom:2px dashed #becbe0;margin-bottom:25px}
.bulk-summary-sheet{padding:18px;background:#f6f9ff;border-radius:8px}
.status.Approved{background:#d7f7e4;color:#187943}.status.Rejected{background:#ffe6e4;color:#ad2b2b}
@media(max-width:1080px){.sales-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.sales-filter-field.wide-search{grid-column:span 2}.sales-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.sales-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-filter-field.wide-search{grid-column:span 2}.sales-bulkbar{align-items:stretch}.sr-return-head{grid-template-columns:1fr}.sales-metrics{grid-template-columns:1fr 1fr}.sales-metrics>div strong{font-size:15px}.sales-selected-total{flex-wrap:wrap}}

.sales-quickfilters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}

/* v11 sales report preview and account shortcuts */
.sales-report-modal{width:min(1300px,98vw)!important;max-height:92vh;overflow:auto;}
.sales-report-paper{background:white;border:1px solid #dce5f0;border-radius:10px;padding:25px;margin:14px 0;font-size:11px;}
.sales-report-paper .sales-report-title{color:#193d79;text-align:center;margin:8px 0 12px;}
.sales-report-paper .report-period{background:#f1f6fe;border-radius:6px;padding:10px 12px;}
.sales-report-paper .tablewrap{overflow-x:auto;}
.sales-report-paper .table{font-size:10px;}
.sales-report-paper .table th,.sales-report-paper .table td{padding:8px 5px;}
.report-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:17px 0;}
.report-summary-grid>div{background:#f3f7ff;border:1px solid #e0e9f8;border-radius:7px;padding:12px;}
.report-summary-grid small{color:#6d7e98;display:block;font-size:10px;margin-bottom:5px;}
.report-summary-grid b{font-size:14px;color:#1c3153;}
.report-grand{display:flex;justify-content:space-between;gap:12px;background:#103d83;color:white;padding:15px;border-radius:7px;font-size:18px;}
.report-footer{text-align:right;margin-top:20px;font-size:10px;color:#8492a8;}
@media(max-width:680px){.report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grand{font-size:14px;}.sales-report-paper{padding:12px;}}
