@font-face{font-family:Vazirmatn;src:url('assets/Vazirmatn-Bold.woff2') format('woff2');font-display:swap;font-weight:700}
body.counter-mode{background:#e9f0e4;color:#173b30}
.counter-mode .ph{font-size:21px;line-height:1;display:inline-grid;place-items:center;width:22px;height:22px;flex-shrink:0;font-weight:normal}
.counter-page{min-height:100dvh;padding:24px;display:flex;align-items:center;justify-content:center}
.counter-app{--counter:#123e32;--counter-deep:#0a2c24;--counter-muted:#94b7a9;--paper:#fffdf5;width:min(1120px,100%);height:calc(100dvh - 48px);min-height:600px;max-height:1000px;display:flex;flex-direction:column;background:var(--counter-deep);border:7px solid #09251e;border-radius:27px;overflow:hidden;box-shadow:0 20px 35px #153d3029,0 5px 8px #153d3024;isolation:isolate}
.counter-workspace{display:grid;grid-template-columns:56% 44%;direction:ltr;min-height:0;flex:1;background:var(--counter)}
.counter-catalog-pane{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative;color:#f3f8f1;border-inline-end:1px solid #ffffff12;overflow:hidden}
.counter-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 20px 12px;min-height:79px;flex-shrink:0}
.counter-header h1{color:#e8f2e9;font-size:22px;line-height:1.4;font-weight:800;letter-spacing:-.6px}
.counter-subtitle{font-size:10px;color:#8eb3a3;display:block;margin-top:3px}
.counter-header-actions{display:flex;align-items:center;gap:8px}
.pos-icon-button{background:transparent;border:1px solid #ffffff1c;color:#a1c3b2;display:inline-flex;align-items:center;justify-content:center;gap:5px;border-radius:10px;width:37px;height:37px;padding:0;flex-shrink:0}
.pos-icon-button:hover{background:#ffffff0e;color:#fff}.pos-icon-button:focus-visible,.counter-app button:focus-visible{outline:3px solid #ffb42e;outline-offset:2px}
.pos-icon-button .ph{font-size:20px}.mobile-receipt-toggle{display:none}
.counter-more-menu{position:absolute;z-index:10;top:63px;inset-inline-end:17px;background:#f8faf4;border:1px solid #dae4d7;border-radius:12px;padding:7px;box-shadow:0 12px 40px #041e2140;width:230px;display:grid;gap:2px}
.counter-more-menu button{display:flex;align-items:center;gap:10px;text-align:start;color:#244c3e;font-size:12px;border-radius:7px;background:none;padding:10px 12px}.counter-more-menu button:hover{background:#e6f0e4}
.counter-tools{padding:0 20px 12px;flex-shrink:0;display:grid;gap:10px}
.counter-search{position:relative}
.counter-search .ph{position:absolute;inset-inline-start:12px;top:12px;color:#83ac9a;font-size:18px;width:18px;height:18px}
.counter-search input{height:45px;border:1px solid #ffffff20;border-radius:10px;padding:10px 39px 10px 12px;width:100%;background:#ffffff0e;color:#eef8ec;font-size:13px;outline:none}
.counter-search input::placeholder{color:#7fa794}.counter-search input:focus{border-color:#a2c6ad;box-shadow:0 0 0 2px #94b79c15}
.counter-categories{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:1px 0 3px}.counter-categories::-webkit-scrollbar{display:none}
.counter-categories button{background:transparent;border:1px solid #ffffff1b;color:#aacbb9;padding:5px 11px;font-size:11px;border-radius:30px;white-space:nowrap;line-height:1.8}
.counter-categories button.active{background:#e9f4ea;color:#143d30;border-color:#e9f4ea;font-weight:bold}.counter-categories button:hover{border-color:#b6d5bd80}
.counter-customer{display:flex;align-items:center;gap:7px;border-top:1px solid #ffffff0d;padding-top:7px;color:#92b6a4}
.counter-customer>.ph,.counter-customer>span>.ph{font-size:17px}.counter-customer select{min-width:0;flex:1;background:#153e32;border:0;color:#bcd7c6;font-size:11px;outline:none;min-height:28px;cursor:pointer;padding:0 5px}
.counter-customer option{background:#164132;color:white}.counter-customer .pos-icon-button{border:0;width:28px;height:28px}
.counter-products{overflow:auto;min-height:0;padding:0 20px 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-content:start;scrollbar-width:thin;scrollbar-color:#44745d transparent;flex:1}
.counter-product{position:relative;display:flex;flex-direction:column;text-align:start;min-width:0;min-height:155px;background:#fffdf4;color:#19281e;border:2px solid transparent;border-radius:14px;padding:15px 13px 11px;transition:transform .12s,background .12s}
.counter-product:hover{background:#fffef9;transform:translateY(-2px)}.counter-product:active{transform:scale(.98)}.counter-product.selected{border-color:#a4d3b0}.counter-product.unavailable{opacity:.55;transform:none}
.product-card-title{display:flex;align-items:start;gap:4px;justify-content:space-between}.product-card-title h2{font-size:15px;line-height:1.6;font-weight:800;letter-spacing:-.35px;color:#1d2a20}
.product-qty{display:grid;place-items:center;background:#18503b;color:white;min-width:21px;height:21px;border-radius:7px;font-size:10px;line-height:1;flex-shrink:0}
.counter-product>p{font-size:11px;line-height:1.7;color:#657166;margin-top:4px}
.product-price-row{margin-top:auto;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.product-price-row strong{font-size:17px;font-weight:800;letter-spacing:-.5px;line-height:1.5;white-space:nowrap}.product-price-row strong small{font-size:8px;font-weight:normal;margin-inline-start:3px;letter-spacing:0}
.stock-chip{border-radius:5px;padding:2px 6px;font-size:9px;background:#e9ece2;color:#637063;white-space:nowrap;line-height:1.7;display:inline-block}.stock-chip.low{background:#ffebba;color:#8a5f13}
.product-code{display:flex;align-items:center;justify-content:space-between;gap:6px;font:9px/1.6 Vazirmatn,monospace;color:#879180;margin-top:7px;direction:ltr}.product-code>span{font-size:8px}
.counter-no-products{grid-column:1/-1;text-align:center;color:#b4d1bd;padding:50px 10px;font-size:12px}.counter-no-products>.ph{margin-bottom:14px;font-size:30px}.counter-no-products button{margin-top:16px;background:#ffb32c;border-radius:8px;color:#25412d;padding:7px 15px;font-size:11px}
.catalog-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 20px 12px;color:#78a28c;font-size:9px;flex-shrink:0;background:#103a2e}.catalog-foot>span{display:flex;align-items:center;gap:5px}.catalog-foot .ph{font-size:12px;width:12px;height:12px}
.counter-receipt-panel{min-height:0;min-width:0;background:#0e342a;display:flex;flex-direction:column;padding:15px 19px 8px;direction:rtl;position:relative;overflow:hidden}
html[dir=ltr] .counter-receipt-panel{direction:ltr}
.receipt-panel-toolbar{display:flex;align-items:center;gap:8px;color:#7fa28f;font-size:10px;flex-shrink:0;height:29px;margin-bottom:12px}.receipt-panel-toolbar .pos-icon-button{width:28px;height:28px;border:0}.receipt-panel-toolbar .ph{font-size:17px}.receipt-back{display:none}.unit-label{font-size:9px;opacity:.7}
.receipt-paper-track{min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:6px 0 11px;scrollbar-width:thin;scrollbar-color:#52735b transparent;position:relative}
.receipt.thermal-receipt{position:relative;isolation:isolate;flex-shrink:0;color:#20241d;background:#fffdf5;border:0;border-radius:0;padding:22px 18px 17px;margin:0;width:100%;max-width:none;font-family:Vazirmatn,'Courier New',monospace;font-size:12px;line-height:1.8;box-shadow:0 7px 0 #061b14,0 12px 12px #0003,0 -11px 12px -12px #151c1666 inset}
.receipt.thermal-receipt:before{content:'';display:block;position:absolute;inset-inline:0;top:-6px;height:9px;background:url('assets/receipt-edge.png') repeat-x 0 0;background-size:auto 9px;z-index:1}
.thermal-receipt .thermal-head{text-align:center;border-bottom:1px dashed #c4c5b8;padding-bottom:16px;margin-bottom:14px}.thermal-receipt .thermal-head h2{font-size:17px;color:#20241d;font-weight:800;line-height:1.7;letter-spacing:-.4px}.thermal-receipt .thermal-head p{font-size:10px;color:#7d7d70;line-height:1.85;margin:2px 0 0}.thermal-receipt .thermal-separator{margin:0 5px;color:#b6b7ab}
.thermal-receipt .thermal-empty{text-align:center;padding:17px 0 22px;color:#848373;font-size:12px;line-height:2.1}
.thermal-item{margin:0 0 13px;position:relative;transform-origin:top center}.thermal-item:last-child{margin-bottom:2px}.thermal-item-main{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:baseline;font-size:12px;line-height:1.7}.thermal-item-main strong{font-size:11px;font-weight:normal;overflow-wrap:anywhere}.thermal-qty{white-space:nowrap;font-size:11px}.thermal-qty b{font-weight:normal}.thermal-amount{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums;direction:ltr}
.thermal-item-detail{display:flex;justify-content:space-between;align-items:center;padding-inline-start:29px;font-size:9px;color:#8d8a7a;line-height:1.7;min-height:17px}.thermal-item-detail>span{color:#8d8a7a}.thermal-edit{display:flex;gap:4px;opacity:0;transition:opacity .1s}.thermal-item:hover .thermal-edit,.thermal-item:focus-within .thermal-edit{opacity:1}.thermal-edit button{width:20px;height:18px;border:1px solid #dcded2;border-radius:4px;background:#f7f6ed;font-family:Arial;font-size:12px;line-height:1;color:#4a644d}
.thermal-summary{padding-top:12px;margin-top:14px;border-top:1px dashed #bfc1b3;display:grid;gap:4px;font-size:11px}.thermal-summary>div{display:flex;justify-content:space-between;align-items:baseline;gap:7px}.thermal-grand{border-top:1px solid #363b2b;border-bottom:1px solid #363b2b;padding:6px 0;margin:4px 0;font-size:15px}.thermal-grand strong{font-weight:800}.thermal-thanks{text-align:center;white-space:pre-wrap;color:#85816f!important;font-size:10px;margin-top:17px;line-height:1.8;overflow-wrap:anywhere}.thermal-barcode{text-align:center;margin-top:24px}.biller-barcode{width:100%;max-width:210px;height:53px;fill:#20221c;stroke:none}.thermal-receipt .biller-barcode text{fill:#303326}
.paid-mark,.unpaid-mark{position:absolute;border:2px solid #d86671;color:#d86671!important;background:#fffdf5c9;border-radius:7px;font-weight:bold;font-size:20px;padding:0px 12px;bottom:43px;left:50%;white-space:nowrap;transform:translateX(-50%) rotate(-10deg);z-index:2;line-height:1.65;letter-spacing:1px}.unpaid-mark{font-size:12px;border-color:#b69253;color:#a18042!important;bottom:48px;letter-spacing:0}
.counter-checkout{padding:15px 0 0;flex-shrink:0;color:#e9f4e9}.checkout-total{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px;direction:ltr}.checkout-total>span{font-size:10px;color:#92b4a1;max-width:45%;line-height:1.8;direction:rtl}.checkout-total>strong{font-size:30px;font-weight:800;letter-spacing:-1px;line-height:1.5;white-space:nowrap;color:#f2f8ec}.checkout-total>strong>small{font-size:10px;margin-inline-start:5px;font-weight:normal;letter-spacing:0;color:#9bbea7}
html[dir=ltr] .checkout-total>span{direction:ltr}
.payment-buttons,.completed-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;direction:ltr}.payment-buttons button,.completed-actions button{display:flex;align-items:center;justify-content:center;gap:9px;border:0;min-height:48px;border-radius:12px;font-size:13px;font-weight:bold;transition:filter .12s}.payment-buttons .ph,.completed-actions .ph{font-size:20px}.payment-card{background:#ffb12d;color:#352b12}.payment-cash{background:#244c3e;color:#d8eade}.payment-buttons button:hover,.completed-actions button:hover{filter:brightness(1.07)}.payment-buttons button:disabled{opacity:.35}
.checkout-secondary{display:flex;justify-content:center;gap:18px;margin-top:10px}.checkout-secondary button,.void-sale{padding:0;border:0;background:none;color:#92b8a4;font-size:10px;text-decoration:underline;text-underline-offset:3px}.checkout-secondary button:disabled{opacity:.3}.last-receipt-link{display:flex;align-items:center;justify-content:center;min-height:25px;margin-top:7px;color:#678e77;font-size:8px}.last-receipt-link span,.last-receipt-link button{display:flex;align-items:center;justify-content:center;gap:5px;background:transparent;font-size:9px;color:#81a991}.last-receipt-link .ph{font-size:11px;width:11px;height:11px}.last-receipt-link button{color:#d8d9aa;text-decoration:underline;text-underline-offset:3px}
.cash-tender{padding:1px 0 4px}.cash-tender label{font-size:11px;color:#9ab9a6;display:block;margin-bottom:7px}.cash-input-row{display:flex;gap:7px}.cash-input-row input{min-width:0;flex:1;border:1px solid #7e9c75;border-radius:8px;background:#ffffff10;color:white;height:38px;font-size:16px;padding:6px 10px;outline:none;direction:ltr}.cash-input-row button{background:#ffb12d;color:#3d3116;border-radius:8px;min-width:65px;font-size:12px;display:flex;align-items:center;justify-content:center;gap:3px}.cash-input-row .ph{font-size:15px}.cash-quick{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 12px}.cash-quick button{padding:6px 10px;border-radius:9px;background:#264c3e;color:#d3e7d5;font-size:11px}.cash-quick button:first-child{background:#ffb12d;color:#493715}.cash-tender>.void-sale{display:block;margin:auto}
.checkout-success{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 14px;color:#b0dbb7}.checkout-success>.ph{font-size:27px;width:27px;height:27px}.checkout-success strong{font-size:14px;color:#c7e9c7}.checkout-success small{font-size:9px;color:#90b39a;display:block;margin-top:2px}
.counter-bottom-nav{height:66px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:6px 7px;background:#092e25;direction:ltr;border-top:1px solid #ffffff06;flex-shrink:0;position:relative;z-index:3}.counter-bottom-nav button{border-radius:11px;background:transparent;color:#81aa95;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:10px;position:relative;line-height:1.3;padding:6px}.counter-bottom-nav button.active{background:#1a4336;color:#e2f0df}.counter-bottom-nav .ph{font-size:22px}.counter-bottom-nav b{font-family:Vazirmatn;font-size:9px;position:absolute;top:2px;left:calc(50% + 8px);background:#ffb52f;color:#342c14;min-width:17px;height:17px;line-height:17px;border-radius:50%}
.counter-management{overflow:auto;flex:1;min-height:0;padding:0 18px 18px;scrollbar-width:thin;scrollbar-color:#52775c transparent}.counter-management .page-heading{margin:0 0 17px}.counter-management .page-heading>.eyebrow,.counter-management .page-heading .eyebrow{display:none}.counter-management .page-heading h1{font-size:16px;color:#e9f3e4}.counter-management .page-heading p{font-size:10px;color:#95b59e}.counter-management .page-heading .btn{padding:5px 11px;min-height:33px;font-size:10px}.counter-management .panel{border:0;border-radius:12px;color:#244333;background:#fffcf3}.counter-management .panel-head{padding:16px}.counter-management .panel-head h2{font-size:13px}.counter-management .panel-head p{font-size:9px;color:#8c9483}.counter-management .table-tools{padding:0 14px 14px;flex-direction:column;align-items:stretch;gap:12px}.counter-management .tabs{gap:1px}.counter-management .tab{padding:4px 8px;font-size:9px}.counter-management .searchbox{max-width:none}.counter-management .searchbox input{background:#f5f6ed}.counter-management .table th{background:#efeee1;color:#8b927c;font-size:9px;padding:9px 12px}.counter-management .table td{font-size:10px;padding:12px}.counter-management .table .muted{color:#7e8a76}.counter-management .table-footer{padding:11px 14px;font-size:9px}.counter-management .table-footer span:last-child{display:none}.counter-management .table .initial{display:none}.counter-management .panel-head+.table-scroll{overflow:auto}.counter-management .badge{font-size:8px}.counter-management .settings-grid{grid-template-columns:1fr;gap:16px}.counter-management .form-grid{grid-template-columns:1fr}.counter-management .field.full{grid-column:auto}.counter-management .btn.primary{background:#ffb12d;color:#362d17;border-color:transparent;box-shadow:none}.counter-management .btn{font-size:10px}.counter-management .payment-total{background:#21523a;color:#cfe6c9;padding:13px;font-size:11px;flex-wrap:wrap;gap:10px}.counter-management .notice{background:#edf3e6}.counter-management .admin-bar{font-size:10px;background:#e7efdf}.counter-management .panel-body{padding:0 18px 18px}
.stock-top-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}.stock-top-actions>small{color:#9cbea5;font-size:10px}.stock-group{padding:17px 15px 8px;background:#fffdf4;border-radius:12px;margin-bottom:16px;color:#1f3727}.stock-group h2{font-size:14px;font-weight:bold}.stock-group>p{font-size:10px;color:#7c8972;margin:2px 0 10px}.stock-product-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:start;background:none;padding:10px 0;border-bottom:1px solid #edefe5}.stock-product-row:last-child{border:0}.stock-product-row strong{display:block;font-size:12px;color:#2c3b29}.stock-product-row small{display:block;font-size:9px;color:#959e89;margin-top:2px}.stock-product-row:hover strong{color:#3c7651}
.counter-mode .modal-backdrop{background:#031b146b}.counter-mode .modal{border-color:#ffffec;background:#f3f5ec}.counter-mode .modal.large{width:800px}.counter-mode .modal-header{background:#f3f5ec}.counter-mode .receipt-actions{margin-bottom:24px}.counter-mode .modal .receipt.thermal-receipt{max-width:340px;margin:7px auto 0;border-bottom:1px solid #c6c8b8;padding-bottom:20px;box-shadow:0 5px 14px #0f302112}.counter-mode .modal-body{padding-bottom:28px}.counter-mode #toast{background:#fffdf1;color:#1d492f;border:1px solid #b4cbb0;box-shadow:0 7px 25px #041e2b30}.counter-mode .modal-footer .btn.primary{background:#184b36;border-color:#184b36}.counter-mode .modal .field input:focus,.counter-mode .modal .field select:focus{border-color:#739c71}.counter-mode .form-error{background:#f9e7df}
@keyframes receipt-line-in{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@keyframes receipt-feed{from{transform:translateY(20px);opacity:.55}to{transform:translateY(0);opacity:1}}
@keyframes receipt-cut{0%{transform:translateY(0)}35%{transform:translateY(-4px) rotate(.5deg)}65%{transform:translateY(4px) rotate(-.5deg)}100%{transform:none}}
@keyframes receipt-stamp{from{opacity:0;scale:1.4}to{opacity:1;scale:1}}
.thermal-item.new-line{animation:receipt-line-in .24s ease-out}.thermal-receipt.feeding{animation:receipt-feed .65s cubic-bezier(.2,.7,.3,1)}.thermal-receipt.cutting{animation:receipt-cut .55s ease-in-out}.thermal-receipt.feeding .paid-mark{animation:receipt-stamp .23s .5s both}
@media(min-width:1100px){.counter-header{padding:21px 24px 14px}.counter-tools{padding-inline:24px}.counter-products{padding-inline:24px;gap:13px}.counter-product{min-height:170px;padding:17px 16px 12px}.product-card-title h2{font-size:17px}.counter-product>p{font-size:12px}.product-price-row strong{font-size:20px}.stock-chip{font-size:10px}.counter-receipt-panel{padding:17px 27px 9px}.counter-checkout{padding-top:19px}.receipt.thermal-receipt{max-width:370px;align-self:center;padding:26px 24px 20px}.thermal-item-main strong{font-size:12px}.thermal-item-main{gap:9px;font-size:13px}.thermal-item-detail{font-size:10px}.thermal-receipt .thermal-head h2{font-size:19px}.thermal-receipt .thermal-head p{font-size:11px}.thermal-item{margin-bottom:16px}.thermal-grand{font-size:16px}.thermal-summary{font-size:12px}.checkout-total>strong{font-size:36px}.payment-buttons button,.completed-actions button{min-height:52px;font-size:14px}}
@media(max-width:800px) and (min-width:601px){.counter-page{padding:12px}.counter-app{height:calc(100dvh - 24px);border-width:6px;border-radius:24px;min-height:600px}.counter-header{padding:17px 15px 11px;min-height:66px}.counter-header h1{font-size:20px}.counter-subtitle{display:none}.counter-tools{padding:0 15px 10px;gap:8px}.counter-search input{font-size:11px;height:40px}.counter-search .ph{top:10px}.counter-categories button{padding:4px 9px;font-size:10px}.counter-products{padding:0 15px 13px;gap:8px}.counter-product{min-height:139px;padding:12px 10px 9px;border-radius:13px}.product-card-title h2{font-size:13px;line-height:1.6}.counter-product>p{font-size:10px}.product-price-row strong{font-size:15px}.product-price-row strong small{font-size:7px}.product-code{font-size:8px}.product-code>span{display:none}.stock-chip{font-size:8px;padding:2px 5px}.counter-customer select{font-size:10px}.counter-receipt-panel{padding:13px 14px 6px}.receipt-panel-toolbar{margin-bottom:7px;font-size:9px}.receipt-panel-toolbar .unit-label{display:none}.receipt.thermal-receipt{padding:18px 13px 15px}.thermal-receipt .thermal-head h2{font-size:15px}.thermal-receipt .thermal-head p{font-size:9px}.thermal-receipt .thermal-head{margin-bottom:12px;padding-bottom:12px}.thermal-item-main{gap:5px}.thermal-item-main strong{font-size:10px}.thermal-qty{font-size:10px}.thermal-amount{font-size:10px}.thermal-item-detail{font-size:8px;padding-inline-start:22px}.checkout-total>strong{font-size:25px}.checkout-total>strong>small{font-size:8px}.checkout-total>span{font-size:9px;max-width:42%}.payment-buttons button,.completed-actions button{font-size:11px;min-height:43px;gap:5px}.payment-buttons .ph,.completed-actions .ph{font-size:16px}.checkout-secondary{gap:10px}.checkout-secondary button{font-size:9px}.catalog-foot{font-size:8px;padding-inline:15px}.catalog-foot>span:last-child{display:none}.counter-bottom-nav{height:61px}.counter-bottom-nav button{font-size:9px}.counter-management{padding-inline:12px}.thermal-grand{font-size:12px}.thermal-summary{font-size:10px}}
@media(max-width:600px){body.counter-mode{background:#0c3025}.counter-page{padding:0;min-height:100dvh;align-items:stretch}.counter-app{height:100dvh;min-height:500px;max-height:none;width:100%;border:0;border-radius:0;box-shadow:none}.counter-workspace{display:block;position:relative;flex:1;overflow:hidden}.counter-catalog-pane{height:100%;border:0}.counter-header{padding:20px 19px 12px;min-height:79px}.counter-header h1{font-size:23px}.counter-tools{padding-inline:19px}.counter-products{padding-inline:19px;padding-bottom:16px;gap:10px}.counter-product{min-height:156px;padding:15px 12px 11px}.product-card-title h2{font-size:15px}.product-price-row strong{font-size:17px}.product-code{font-size:9px}.counter-receipt-panel{position:absolute;inset:0;z-index:12;padding:14px 22px 15px;display:none;direction:rtl}.counter-receipt-panel.mobile-show{display:flex}.receipt-panel-toolbar{height:35px;font-size:12px;margin-bottom:15px}.receipt-back{display:flex}.receipt.thermal-receipt{max-width:355px;align-self:center;padding:24px 20px 20px}.thermal-receipt .thermal-head h2{font-size:18px}.thermal-receipt .thermal-head p{font-size:11px}.thermal-item-main strong{font-size:12px}.thermal-item-main{gap:9px}.thermal-amount{font-size:12px}.thermal-edit{opacity:1}.thermal-item-detail{font-size:9px}.checkout-total>strong{font-size:32px}.checkout-total>span{font-size:11px}.counter-checkout{padding-top:17px}.payment-buttons button,.completed-actions button{min-height:49px}.mobile-receipt-toggle{display:flex;width:auto;min-width:47px;padding:0 6px}.mobile-receipt-toggle b{font-size:10px;color:#e1eedc}.counter-bottom-nav{height:70px;padding-bottom:max(7px,env(safe-area-inset-bottom));min-height:66px}.counter-bottom-nav button{font-size:10px}.counter-management{padding:0 17px 17px}.counter-management .table th,.counter-management .table td{padding-inline:11px}.counter-mode .modal-backdrop{padding:10px}.counter-mode .modal{max-height:calc(100dvh - 20px)}.counter-mode .modal .receipt.thermal-receipt{padding:20px 15px}.last-receipt-link{font-size:9px}.counter-management .settings-grid{gap:15px}}
.counter-app{--counter:#113930}.counter-workspace{grid-template-columns:57.5% 42.5%}.counter-receipt-panel{background:#0d332a}.counter-mobile-cart{display:none}.receipt-customer-select{background:transparent;min-width:0;max-width:160px;color:#a4c2ab;border:0;outline:none;font:10px Vazirmatn;cursor:pointer}.receipt-customer-select option{background:#153c30;color:#e2f0df}.receipt-live-label{white-space:nowrap}.receipt-panel-toolbar .spacer{min-width:0}.receipt-panel-toolbar{gap:5px}
@media(max-width:800px) and (min-width:601px){.counter-header{min-height:72px}.counter-tools{gap:10px;padding-bottom:13px}.counter-search input{height:46px}.counter-search .ph{top:13px}.counter-categories button{padding-block:5px}.receipt-customer-select{font-size:9px;max-width:110px}.receipt-live-label{display:none}}
@media(max-width:600px){.counter-workspace{display:block}.counter-mobile-cart{display:flex;align-items:center;gap:9px;width:100%;background:#1c503a;color:#d6eacb;min-height:53px;padding:10px 19px;font:10px Vazirmatn;flex-shrink:0;border-top:1px solid #94bb8a28}.counter-mobile-cart>span{display:flex;align-items:center;gap:5px;color:#a3c3a0}.counter-mobile-cart strong{font-size:13px;margin-inline-start:auto;white-space:nowrap}.counter-mobile-cart>b{display:flex;align-items:center;gap:4px;font-size:10px;margin-inline-start:4px;color:#ffd274;white-space:nowrap}.counter-mobile-cart .ph{font-size:17px;width:17px;height:17px}.receipt-open .counter-mobile-cart{display:none}.receipt-customer-select{font-size:11px;max-width:160px}.receipt-live-label{font-size:10px}}
.receipt-paper-track{justify-content:flex-start}.receipt-paper-track>.thermal-receipt{margin-block-start:auto}.thermal-item{margin-bottom:8px}.thermal-item-detail{min-height:14px;line-height:1.4}.biller-barcode{max-width:210px;height:43px}
@media(max-width:800px) and (min-width:601px){.product-card-title h2{font-size:15px;font-weight:700;line-height:1.45}.counter-product>p{font-size:11px}.product-price-row strong{font-size:17px;font-weight:700}.stock-chip{font-size:9px}.product-code{font-size:9px}.counter-receipt-panel .thermal-receipt .thermal-head h2{font-size:17px;font-weight:700}.counter-receipt-panel .thermal-receipt .thermal-head p{font-size:10px}.thermal-item-main strong{font-size:11.5px}.thermal-qty{font-size:11px}.thermal-amount{font-size:12px}.thermal-item-detail{font-size:9px}.thermal-summary{font-size:11px}.thermal-grand{font-size:13px}.payment-buttons button,.completed-actions button{font-size:12px}.counter-bottom-nav button{font-size:10px}}
@media(prefers-reduced-motion:reduce){.thermal-item.new-line,.thermal-receipt.feeding,.thermal-receipt.cutting,.thermal-receipt.feeding .paid-mark{animation:none}.counter-product{transition:none}}
@media print{body.counter-mode{background:white}.counter-mode #print-root{display:block}.counter-mode .receipt.thermal-receipt{width:80mm;max-width:80mm;margin:0 auto;padding:5mm 4mm;box-shadow:none;font-size:11px;color:#111;background:white;overflow:visible}.counter-mode .receipt.thermal-receipt:before,.counter-mode .thermal-edit{display:none}.counter-mode .receipt.thermal-receipt *{color:#111}.counter-mode .receipt.thermal-receipt .paid-mark{color:#111!important;border-color:#111;background:white}.counter-mode .thermal-barcode{break-inside:avoid}.counter-mode .thermal-item{break-inside:avoid}.counter-mode .thermal-receipt .thermal-head h2{font-size:16px}.counter-mode .thermal-item-main strong{font-size:11px}.counter-mode .thermal-item-detail{font-size:9px}.counter-mode .thermal-receipt .biller-barcode{width:100%;height:50px;max-width:60mm}.counter-mode .thermal-summary{font-size:10px}}

.thermal-receipt.export-clean:before{display:none}
@media print{@page{size:auto;margin:3mm}.counter-mode .receipt.thermal-receipt{width:72mm;max-width:72mm;padding:3mm}.counter-mode .receipt-panel-toolbar{display:none}}
/* Keep Arabic/Persian shaping intact in the browser, print and canvas export. */
.receipt.thermal-receipt .thermal-head h2,.receipt.thermal-receipt .paid-mark,.receipt.thermal-receipt .unpaid-mark{letter-spacing:0;word-spacing:normal;font-weight:700}
