#app.pos-mode{display:block!important;width:100%;height:100dvh;min-width:0!important;overflow:hidden}
.pos-mode>aside,.pos-mode .business-main-header,.pos-mode .aside-foot{display:none!important}
.pos-mode>main{margin:0!important;padding:0!important;width:100%!important;max-width:none!important;height:100vh!important;overflow:hidden!important}
.pos-mode #content{padding:0!important;height:100%;overflow:hidden!important;display:block!important}
.pos-gateway .tenant-print-download,.pos-gateway #wechat-switch-store{display:none!important}
.pos-gateway-card{max-width:720px;margin:40px auto;padding:32px;display:flex;gap:16px;align-items:flex-start;flex-direction:column}
.pos-entry{display:inline-flex;padding:14px 24px;border-radius:8px;background:#2563eb;color:white;text-decoration:none}
#pos-root{height:100%;display:flex;flex-direction:column;background:#eef6ff;color:#172b4d;font-family:system-ui,sans-serif}
#pos-root button:not(.tree-item),.pos-dialog button{min-height:38px;cursor:pointer;border:1px solid #c9d8eb;border-radius:7px;background:white;color:#24466d;padding:8px 12px}
#pos-root button.primary,.pos-dialog button.primary{background:#2563eb;border-color:#2563eb;color:white}
#pos-root button:disabled,.pos-dialog button:disabled{opacity:.45;cursor:not-allowed}
.pos-header{display:flex;gap:20px;align-items:center;padding:12px 20px;background:white;border-bottom:1px solid #dce7f2;min-height:64px}
.pos-header>span{margin-left:auto}.pos-header>div{display:flex;align-items:center;gap:10px}.pos-header a{color:#2563eb;text-decoration:none}
.pos-header [data-pos-branch]{max-width:260px;white-space:normal;overflow-wrap:anywhere}
.pos-body{display:grid;grid-template-columns:170px minmax(260px,1fr) 410px;min-height:0;flex:1}
.pos-categories{display:block!important;width:auto!important;background:#f8fbff;border-right:1px solid #dce7f2;padding:14px 8px;overflow:auto}
.pos-categories .inventory-tree{height:auto;min-height:100%;border-top:0;padding-top:0;overflow:visible}
#pos-root .pos-categories .tree-item{font-family:var(--inventory-category-font);display:block;width:100%;text-align:left;min-height:28px;border-radius:0;white-space:nowrap}
.pos-products{display:flex;flex-direction:column;min-height:0;padding:14px;overflow:hidden}
.pos-search{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:0 0 14px;flex-shrink:0}.pos-search label{flex:0 1 360px;min-width:0;display:flex;flex-direction:column;gap:6px}.pos-search [hidden]{display:none}
#pos-root input,#pos-root select,.pos-dialog input,.pos-dialog select,.pos-dialog textarea{border:1px solid #c6d6e8;border-radius:6px;background:#fff;color:#172b4d;padding:8px;min-height:38px;box-sizing:border-box;font:inherit;max-width:100%}
.pos-product-grid{overflow:auto;flex:1;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;align-content:start;min-height:0}
.pos-product{background:white;border:1px solid #dce7f2;border-radius:12px;padding:8px;min-width:0;display:flex;flex-direction:column;gap:6px}
.pos-product-image{aspect-ratio:1;background:#f1f5f9;border-radius:8px;display:grid;place-items:center;color:#8297b0;overflow:hidden}.pos-product-image img{width:100%;height:100%;object-fit:contain}
.pos-product>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:20px;min-height:40px;font-size:14px}
.pos-product>small{color:#697d97;overflow-wrap:anywhere}.pos-product>div:last-of-type{display:flex;align-items:center;justify-content:space-between}.pos-product b{color:#e44839}
.pos-product button{border-radius:50%!important;min-width:38px;font-size:20px}
.pos-pagination{display:flex;justify-content:center;align-items:center;gap:12px;padding-top:12px;flex-shrink:0}
.pos-cart{display:flex;flex-direction:column;background:#fff;min-height:0;border-left:1px solid #dce7f2;overflow:hidden}
.pos-member,.pos-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;border-bottom:1px solid #e5edf5;flex-shrink:0}.pos-member>span{font-size:13px}
.pos-tools button{padding:6px!important;font-size:12px;min-height:32px!important}
.pos-cart-lines{flex:1;overflow:auto;min-height:60px;padding:8px 12px}
.pos-cart-line{display:flex;align-items:center;gap:6px;padding:10px 0;border-bottom:1px solid #e5edf5}.pos-cart-line>div{flex:1;min-width:0;overflow-wrap:anywhere}.pos-cart-line b{font-size:14px;line-height:20px}.pos-cart-line small{display:block;color:#788ba3}
.pos-cart-line label{display:flex;flex-direction:column;gap:3px;font-size:11px}.pos-cart-line input{width:65px;font-size:13px!important}.pos-cart-line>span{font-size:13px}.pos-cart-line button{padding:6px!important;font-size:12px}
.pos-adjustments{padding:8px 12px;display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:225px;overflow:auto;border-top:1px solid #e5edf5;flex-shrink:0}
.pos-adjustments label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px}.pos-adjustments label:last-child{grid-column:1/-1}
.pos-total{background:#f8fbff;padding:12px;flex-shrink:0;border-top:1px solid #dce7f2}.pos-total [data-summary]>div{display:flex;justify-content:space-between;margin:5px 0;font-size:13px}.pos-total .pos-due{font-size:20px!important;margin:10px 0!important}.pos-due b{color:#e44839}
.pos-total [data-status]{font-size:12px;color:#8b5d17;overflow-wrap:anywhere;max-height:50px;overflow:auto;min-height:16px;margin:6px 0}
.pos-cart-actions{display:flex;flex-wrap:wrap;gap:8px}.pos-cart-actions [data-checkout]{flex:1}
.pos-empty{padding:30px;text-align:center;color:#71859c;grid-column:1/-1}
.pos-dialog{width:min(700px,calc(100vw - 32px));max-height:calc(100dvh - 40px);border:0;border-radius:14px;padding:0;color:#172b4d;box-shadow:0 20px 70px #18395c55;overflow:hidden}
.pos-dialog::backdrop{background:#14253666}.pos-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #dce7f2}.pos-dialog h2{font-size:20px;margin:0}.pos-dialog header button{border:0;font-size:24px;background:white}
.pos-dialog-body{padding:20px;max-height:calc(100dvh - 140px);overflow:auto}.pos-dialog form{display:flex;flex-direction:column;gap:15px}.pos-dialog form label{display:flex;flex-direction:column;gap:7px}.pos-dialog label.pos-check{display:flex;flex-direction:row;align-items:center}.pos-check input{min-height:18px!important}
.pos-dialog [data-error]{color:#c62828;white-space:pre-wrap}.pos-list article,.pos-member-result{padding:12px 0;border-bottom:1px solid #dce7f2;display:flex;gap:10px;align-items:center}.pos-list article>div,.pos-member-result>div{flex:1}.pos-list small,.pos-member-result small{display:block;color:#71859c;margin-top:5px}.pos-member-result span{display:inline-block;margin:5px 12px 0 0}
.pos-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:360px;margin:20px auto 0}.pos-keypad button{min-height:50px;font-size:18px}
.pos-receipt table{width:100%;border-collapse:collapse}.pos-receipt td,.pos-receipt th{border-bottom:1px solid #ddd;padding:4px;line-height:20px;text-align:left}
@media(max-width:1100px){.pos-body{grid-template-columns:130px minmax(220px,1fr) 350px}.pos-header{padding:8px;gap:8px;font-size:13px}.pos-header>div{gap:5px}.pos-product-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}}
@media(max-width:760px){.pos-mode>main{overflow:auto!important;height:auto!important;min-height:100dvh}.pos-mode #content{height:auto!important;overflow:visible!important}.pos-body{grid-template-columns:100px minmax(0,1fr);overflow:visible}.pos-header{flex-wrap:wrap}.pos-header>span{margin-left:0}.pos-header>div{flex-wrap:wrap}.pos-cart{grid-column:1/-1;min-height:430px;border-top:1px solid #dce7f2}.pos-products{height:500px;padding:8px}.pos-product-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}.pos-adjustments{max-height:none}.pos-cart-lines{max-height:300px}}
@media print{body>*{display:none!important}.pos-dialog{display:block!important;position:static!important;max-height:none!important;width:76mm!important;box-shadow:none!important;border:0!important}.pos-dialog>header,.pos-dialog-body>button,.pos-dialog [data-error]{display:none!important}.pos-dialog-body{max-height:none!important;padding:0;overflow:visible}.pos-dialog:has(.pos-receipt){display:block!important}.pos-dialog:not(:has(.pos-receipt)){display:none!important}.pos-receipt{font:12px sans-serif;color:#000}}

#inventory-product-form .pf-sales-options{grid-column:1/-1;display:flex;align-items:flex-start;gap:24px}
#inventory-product-form .pf-sales-options .pf-commission{flex:1;flex-wrap:wrap;min-width:0}
#inventory-product-form .pf-pos{display:flex;align-items:center;gap:8px;flex:none;font-size:13px;line-height:20px}
#inventory-product-form .pf-sales-options .inventory-commission-options{flex-wrap:wrap}
@media(max-width:600px){#inventory-product-form .pf-sales-options{gap:12px;flex-wrap:wrap}}
.inventory-category-form [name="pos_visible"]+small{grid-column:2;line-height:20px;color:#71859c;font-size:12px}
.coupon-form-row[data-cash-value][hidden]{display:none}
.coupon-form-row[data-cash-value] small{white-space:normal;line-height:20px}
.pos-entry-footer .pos-entry-nav{text-decoration:none}.pos-entry-footer{flex-shrink:0;padding:8px 10px;border-top:1px solid #dce7f2}.pos-entry-footer:empty,.pos-gateway .pos-entry-footer{display:none}
