*{box-sizing:border-box}html,body,#root{height:100%;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,Helvetica Neue,Arial,sans-serif;background:#f3f6f4;color:#1f2d3d;-webkit-font-smoothing:antialiased}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#c9d3cd;border-radius:4px}::-webkit-scrollbar-track{background:transparent}.stat-card{border-radius:12px;border:1px solid #eef2f0;box-shadow:0 2px 12px #1f2d3d0a}.pos-root{height:100%;display:flex;background:#eef2f0}.pos-left{flex:1;display:flex;flex-direction:column;min-width:0;padding:12px;gap:12px}.pos-search-box{display:flex;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:12px 14px;box-shadow:0 2px 12px #1f2d3d0d}.pos-cats{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.pos-cat{flex:none;padding:8px 16px;border-radius:999px;background:#fff;cursor:pointer;border:1px solid #e3eae6;font-size:14px;white-space:nowrap;transition:all .15s}.pos-cat:hover{border-color:#00b96b;color:#00b96b}.pos-cat.active{background:#00b96b;border-color:#00b96b;color:#fff;font-weight:600}.pos-grid{flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px;align-content:start;padding-right:4px}.pos-goods{background:#fff;border-radius:12px;padding:12px 10px;cursor:pointer;border:1px solid #e8eeeb;transition:all .12s;position:relative;-webkit-user-select:none;user-select:none}.pos-goods:hover{border-color:#00b96b;transform:translateY(-2px);box-shadow:0 6px 18px #00b96b24}.pos-goods.disabled{opacity:.5;cursor:not-allowed}.pos-goods-name{font-size:15px;font-weight:600;line-height:1.3;height:39px;overflow:hidden}.pos-goods-price{color:#f5222d;font-size:17px;font-weight:700;margin-top:6px}.pos-goods-meta{color:#8b9a92;font-size:12px;margin-top:2px;display:flex;justify-content:space-between}.pos-stock-tag{position:absolute;top:8px;right:8px;font-size:11px;padding:1px 6px;border-radius:6px;background:#f6ffed;color:#389e0d}.pos-stock-tag.low{background:#fff1f0;color:#cf1322}.pos-right{width:400px;background:#fff;display:flex;flex-direction:column;border-left:1px solid #e8eeeb}.pos-scale{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#f8faf9;border-bottom:1px solid #eef2f0}.pos-scale .head{display:flex;flex-direction:column;gap:2px;font-size:12px;color:#6b7a72;min-width:66px}.pos-scale .dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#d9d9d9;vertical-align:middle;margin-right:4px}.pos-scale .dot.ok{background:#52c41a;box-shadow:0 0 0 3px #52c41a26}.pos-scale .dot.off{background:#ff4d4f}.pos-scale .err{color:#cf1322}.pos-scale .unstable{color:#fa8c16}.pos-scale .weight{flex:1;text-align:right;font-variant-numeric:tabular-nums}.pos-scale .weight b{font-size:26px;color:#00b96b;line-height:1}.pos-scale .weight.stale b,.pos-scale .weight.stale span{color:#bfbfbf}.pos-scale .weight span{font-size:13px;color:#8b9a92;margin-left:4px}.pos-cart-list{flex:1;overflow-y:auto;padding:8px 12px}.pos-cart-item{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px dashed #eef2f0}.pos-cart-item.selected{background:#f6ffed;margin:0 -8px;padding-left:8px;padding-right:8px;border-radius:8px}.pos-cart-name{flex:1;min-width:0}.pos-cart-name b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pos-cart-name span{color:#9aa8a1;font-size:12px}.pos-summary{border-top:1px solid #eef2f0;padding:12px 16px;background:#fafcfb}.pos-summary-row{display:flex;justify-content:space-between;font-size:13px;color:#6b7a72;margin-bottom:6px}.pos-total{display:flex;justify-content:space-between;align-items:baseline;margin:6px 0 12px}.pos-total b{font-size:30px;color:#f5222d}.pos-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pos-actions .ant-btn{height:46px;font-size:15px;border-radius:10px}.pos-actions .btn-pay{grid-column:span 2;height:56px!important;font-size:19px!important;font-weight:700}.pay-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.pay-item{border:1px solid #e3eae6;border-radius:10px;padding:12px;cursor:pointer;text-align:center;transition:all .15s}.pay-item:hover{border-color:#00b96b}.pay-item.active{border-color:#00b96b;background:#f6ffed;box-shadow:0 0 0 2px #00b96b1f}.pay-item .amount{font-size:18px;font-weight:700;margin-top:4px}.num-keyboard{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.num-keyboard button{height:48px;font-size:18px;border-radius:10px;border:1px solid #e3eae6;background:#fff;cursor:pointer}.num-keyboard button:hover{border-color:#00b96b;color:#00b96b}.num-keyboard button.primary{background:#00b96b;color:#fff;border-color:#00b96b}.receipt{width:260px;margin:0 auto;background:#fff;padding:16px;font-family:Courier New,monospace;font-size:12px;color:#222;line-height:1.6}.receipt h3{text-align:center;margin:0 0 4px;font-size:16px}.receipt .center{text-align:center}.receipt .line{border-top:1px dashed #999;margin:8px 0}.receipt table{width:100%;border-collapse:collapse}.receipt td{padding:1px 0}.receipt .r{text-align:right}@media print{body *{visibility:hidden}#receipt-print,#receipt-print *{visibility:visible}#receipt-print{position:absolute;left:0;top:0}}
