.pos-page{background:#f3f6f3}.pos-header{height:auto;min-height:78px;display:flex;align-items:center;gap:28px;padding:14px 32px;background:#123e32;color:white}.pos-brand{font-size:36px;font-weight:800;color:#d9edb0;text-decoration:none;white-space:nowrap}.pos-brand span{font-size:22px;color:white}.pos-header nav{display:flex;flex-direction:row;gap:8px;flex:1}.pos-header nav a{font-size:14px;color:#d6e3db;padding:12px;border-radius:8px;white-space:nowrap}.pos-header nav a.active{background:#d9edb0;color:#123e32}.pos-main{margin:0;padding:26px 32px;max-width:1700px;margin-inline:auto}.pos-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.pos-heading h1{font-size:30px;margin:6px 0}.pos-heading p{font-size:14px;margin-top:8px}.pos-notice{padding:12px 16px;background:#e8efe4;border:1px solid #d6e2d0;border-radius:8px;font-size:14px;color:#44613e}.pos-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(360px,.85fr);gap:24px;align-items:start;margin-top:20px}.pos-search{display:flex;gap:12px;align-items:center;margin-bottom:18px}.pos-search input{flex:1;padding:14px 16px;border:1px solid #dbe4dc;border-radius:10px;min-width:0;font-size:16px}.shortcut{font-size:12px;color:#718173;border:1px solid #dbe4dc;border-radius:5px;padding:6px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-tile{border:1px solid #dce5da;background:white;border-radius:13px;padding:18px;text-align:left;min-height:145px;color:#244b38;cursor:pointer;position:relative}.product-tile.selected{border:2px solid #235d43;box-shadow:0 0 0 3px #235d4312;padding:17px}.product-code{font-size:14px;font-weight:700;padding:7px 10px;background:#e7efdf;border-radius:7px;display:inline-block;margin-bottom:14px}.product-tile.dark .product-code{background:#294535;color:#e3edda}.product-tile.gold .product-code{background:#f7e9c2;color:#806629}.product-tile.rose .product-code{background:#f7e1d6;color:#935c3a}.product-tile strong{display:block;font-size:18px}.product-tile small{display:block;font-size:14px;color:#748371;margin-top:8px}.entry-panel{padding:22px;background:white;border:1px solid #dce5da;border-radius:12px;margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:20px}.entry-panel h2{margin-top:8px;font-size:22px}.entry-panel p{margin-top:8px;font-size:16px}.entry-panel button{grid-column:1/-1;font-size:18px;min-height:56px}.entry-input input{font-size:28px!important;font-weight:650;width:100%;padding:10px;border:1px solid #cddbcc;border-radius:8px;margin-top:8px;color:#234b35}.entry-input small{font-size:12px;display:block;margin-top:9px;color:#6e7e6c}.shortcut-help{font-size:12px;line-height:1.8;margin:15px 0;color:#758571}.cart-panel{background:white;border:1px solid #dce5da;border-radius:14px;padding:22px;position:sticky;top:16px}.cart-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.cart-heading span{font-size:13px;color:#758571}.cart-panel label{font-size:14px;color:#4b6250;display:block}.cart-panel input,.cart-panel select{width:100%;padding:10px 12px;border:1px solid #dce5da;border-radius:8px;margin-top:6px;font-size:15px}.customer-label{margin-bottom:12px}.cart-lines{min-height:155px;max-height:360px;overflow-y:auto;margin:14px 0}.cart-empty{padding:35px 12px;text-align:center;color:#71816d;font-size:16px}.cart-empty small{display:block;font-size:14px;margin-top:10px}.cart-line{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:15px 0;border-bottom:1px solid #edf1e9}.cart-line strong{font-size:16px}.cart-line small{display:block;font-size:12px;color:#768572;margin-top:5px}.cart-line button{background:#f3f5f0;border:0;border-radius:8px;width:44px;font-size:22px;color:#63745d}.discount-row{display:grid;grid-template-columns:100px 1fr;gap:12px}.totals{border-top:1px solid #e5ecdf;margin-top:20px;padding-top:12px}.totals>div{display:flex;justify-content:space-between;gap:12px;margin:11px 0;font-size:14px}.totals .grand-total{font-size:24px;margin-top:18px;color:#174d33}.cart-actions{display:grid;grid-template-columns:1fr 1.6fr;gap:12px;margin-top:22px}.cart-actions button{min-height:56px;font-size:16px}.cart-foot{font-size:12px;margin-top:14px;line-height:1.7}.pos-error,.dialog-error{background:#fff1ea;border:1px solid #e6c4b2;padding:12px;border-radius:8px;color:#934425;margin:12px 0}.pos-error[hidden]{display:none}#pos-message{margin-top:12px;font-size:14px}.payment-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:20px 0}.payment-grid button{min-height:60px;border:1px solid #dce5da;background:white;border-radius:8px;color:#3b5b43}.payment-grid button.selected{background:#e5efd9;border-color:#235d43}.payment-fields label,#pos-dialog label{display:block;font-size:14px;margin-top:14px}#pos-dialog input,#pos-dialog select{display:block;width:100%;padding:12px;border:1px solid #d9e3d4;border-radius:8px;font-size:16px;margin-top:6px}.payment-total{text-align:center;font-size:36px;font-weight:700;padding:15px;color:#174d33}.pos-dialog-actions{display:flex;gap:12px;margin-top:22px}.pos-dialog-actions button{flex:1;min-height:50px}.held-row{border-top:1px solid #e2e9de;padding:16px 0;display:flex;align-items:center;gap:14px}.held-row>div{flex:1}.held-row small{display:block;font-size:13px;margin-top:6px}.receipt{font:15px/1.8 monospace;white-space:pre-wrap;color:#183f2e}.receipt-warning{background:#f6eed8;padding:10px;font-size:14px;margin-bottom:14px}.receipt textarea{width:100%;min-height:240px}.language-slot{margin-left:auto}.language-picker{min-width:108px;padding:8px;border:1px solid #ccd9c8;border-radius:8px;background:white;color:#214832;font:14px system-ui}.topbar{gap:12px;flex-wrap:wrap;height:auto;min-height:76px}.topbar .language-picker{margin-left:auto}html[lang=zh-Hans] body{font-family:'PingFang SC','Microsoft YaHei',system-ui,sans-serif}html[lang=zh-Hans] .eyebrow{letter-spacing:1px}
@media(max-width:1000px){.pos-header{flex-wrap:wrap;gap:12px;padding:16px 20px}.pos-header nav{order:3;flex-basis:100%;overflow-x:auto}.pos-main{padding:22px 20px}.pos-layout{grid-template-columns:minmax(0,1fr) minmax(330px,.9fr);gap:16px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-tile{padding:14px}.cart-panel{padding:18px}.entry-panel{grid-template-columns:1fr}.entry-panel button{grid-column:auto}}
@media(max-width:700px){.pos-main{padding:18px 14px}.pos-heading h1{font-size:24px}.pos-layout{grid-template-columns:1fr}.pos-header nav{flex-wrap:nowrap}.pos-header nav a{font-size:14px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-tile{min-height:130px}.cart-panel{position:static}.entry-panel{grid-template-columns:1fr 1fr;padding:18px;gap:12px}.entry-panel button{grid-column:1/-1}.payment-grid{grid-template-columns:1fr 1fr}.pos-dialog-actions{flex-wrap:wrap}.pos-heading{align-items:flex-start}.pos-heading>button{flex-shrink:0}.language-slot{margin-left:auto}.pos-header .pos-brand{font-size:28px}.topbar .sample-badge{display:none}}
@media print{body>*{display:none!important}body>#pos-dialog[open]{display:block!important;position:static;width:100%;max-width:none;max-height:none;border:0;padding:0}.dialog-head,#pos-dialog button,#receipt-share{display:none!important}.receipt{font-size:12px}.receipt-warning{border:1px solid black}}
.durian-picture{display:block;width:100%;height:110px;background-image:url('durian-sprite.png');background-repeat:no-repeat;background-size:auto 220px;background-position-y:center;background-color:#f5f8f1;border-radius:10px;margin-bottom:12px}.product-tile{min-height:184px;padding:14px}.product-tile.selected{padding:13px}#pos-grade{display:block;width:100%;margin-top:7px;min-height:48px;font-size:16px}.payment-grid{grid-template-columns:repeat(3,1fr)}.paid-confirm input{width:24px!important;height:24px;min-height:24px!important;display:inline!important;margin-right:8px}.pos-notice{font-size:13px}.gs-header nav{flex:1}.pos-page .gs-header nav{justify-content:flex-end}.pos-page .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:700px){.pos-page .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.durian-picture{height:110px}.entry-panel{grid-template-columns:1fr}.entry-panel button{grid-column:auto}.payment-grid{grid-template-columns:repeat(2,1fr)}}
.pos-page .receipt{font-family:Calibri,Carlito,Arial,sans-serif}
.staff-login{padding:40px 20px;background:radial-gradient(ellipse at top,#e9f1e2,transparent 65%)}.staff-login-brand{border-bottom:1px solid #e5eadf;padding-bottom:24px;margin-bottom:28px}.staff-login-brand img{width:250px;max-width:100%;height:90px;object-fit:contain}.staff-login-card h1{font-size:28px;letter-spacing:-.7px;line-height:1.2;color:#123e32}.staff-login-card p{font-size:15px;line-height:1.65;color:#647368}.staff-login-card .eyebrow{color:#6f7c57;font-size:12px;letter-spacing:1.6px}.staff-login-card .solid-button{width:100%;min-height:50px;margin-top:8px;font-size:16px;border-radius:9px}.staff-login-help{margin-top:24px;padding-top:20px;border-top:1px solid #e5eadf}.staff-login-card input:focus{outline:2px solid #b49b45;outline-offset:2px}
.staff-login{min-height:70vh;display:grid;place-items:center}.staff-login-card{width:min(420px,100%);background:white;border:1px solid #dce5da;border-radius:18px;padding:30px;box-shadow:0 18px 50px #1d503014}.staff-login-card h1{margin:8px 0}.staff-login-card label{display:block;margin:18px 0}.staff-login-card input{display:block;width:100%;padding:13px;border:1px solid #dce5da;border-radius:9px;margin-top:7px;font-size:16px}
.admin-login{min-height:78vh}.admin-login .staff-login-card{max-width:460px}
.pos-toast{position:fixed;right:18px;bottom:18px;z-index:30;max-width:min(420px,calc(100vw - 36px));padding:14px 18px;border-radius:12px;background:#8e2b20;color:#fff;box-shadow:0 12px 30px #152d2040;font-size:15px;line-height:1.45}.pos-toast[hidden]{display:none}#pos-grade option:disabled{color:#9ba59c;background:#f0f3ef}.pos-page .pos-error{display:none!important}
.category-product-image{display:block;width:100%;height:100px;object-fit:contain;background:#fff;margin-bottom:12px;border-radius:8px}.pos-search{flex-wrap:wrap}#product-category{padding:10px;border:1px solid #dbe4dc;border-radius:8px;background:white;max-width:100%}.product-tile{overflow:hidden}

.customer-matches{display:grid;gap:6px;width:100%;padding:8px;border:1px solid #b8c9bb;border-radius:8px;background:var(--surface,#fff);color:var(--text,#233b2b);font-size:14px;max-height:240px;overflow:auto}.customer-matches[hidden]{display:none}.customer-matches button{min-height:48px;text-align:left;padding:10px;border:1px solid #b8c9bb;border-radius:6px;background:#f3f7f2;color:#183522;white-space:normal;overflow-wrap:anywhere}.customer-matches button:focus-visible{outline:3px solid #a98531}

.cart-customer-fields>.customer-matches{grid-column:1 / -1}
