.pos-shell{height:100vh;height:100dvh;min-height:450px;display:flex;flex-direction:column;background:#f3f5f7;overflow:hidden;color:#202d3d;font-size:14px}.pos-top{height:48px;flex:0 0 48px;background:#172535;color:white;display:flex;align-items:center;gap:15px;padding:5px 14px}.pos-top button{color:white;background:transparent;padding:6px 9px;min-height:32px;border-radius:6px;font-size:12px}.pos-top .pos-menu-toggle{font-size:21px;padding:1px 6px}.pos-brand{display:flex;align-items:center;gap:7px;font-size:22px;font-weight:760;letter-spacing:-.7px}.pos-brand svg{width:25px}.pos-shop,.pos-user{font-size:11px;color:#c2cedc;white-space:nowrap}.pos-mode{margin-left:auto;display:flex;background:#2b3a4d;border-radius:7px;padding:2px}.pos-mode button[aria-pressed=true]{background:#53677f}.pos-help{border:1px solid #58687c!important}.pos-user{padding-left:10px;border-left:1px solid #526071}.pos-body{flex:1;display:flex;min-height:0;min-width:0}.pos-nav{flex:0 0 56px;background:white;border-right:1px solid #dce3eb;display:flex;flex-direction:column;padding:10px 5px;gap:7px;overflow:hidden}.pos-nav button{display:flex;align-items:center;gap:11px;min-height:43px;padding:9px 11px;background:transparent;color:#617083;white-space:nowrap;border-radius:7px;text-align:left;font-size:13px}.pos-nav button>span{font-size:21px;width:23px;flex-shrink:0;text-align:center}.pos-nav button>b{display:none;font-weight:550}.pos-nav button.active{background:#fff0f1;color:#bb3e4a}.pos-nav button:hover:not(:disabled){background:#edf1f6}.pos-nav>small{margin-top:auto;font-size:9px;text-align:center;color:#8592a1;padding:12px 0}.pos-expanded .pos-nav{flex-basis:175px}.pos-expanded .pos-nav button>b{display:inline}.pos-main{flex:1;min-width:0;min-height:0;display:grid;grid-template-columns:minmax(260px,1fr) minmax(365px,43%)}.pos-catalog{display:flex;flex-direction:column;min-height:0;min-width:0;padding:18px}.pos-catalog-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px}.pos-catalog h2{font-size:19px;margin:0}.pos-catalog-top>span{font-size:11px;color:#617083}.pos-search{font-size:13px;padding:11px;margin:0}.pos-categories{display:flex;flex-wrap:wrap;gap:8px;padding:14px 0;flex-shrink:0}.pos-categories button{background:white;border:1px solid #dce3eb;color:#304255;text-align:left;font-size:12px;padding:10px 12px;border-radius:8px;min-width:105px;display:flex;justify-content:space-between;gap:15px}.pos-categories button.selected{border-color:#b83f4c;background:#fff1f2;color:#a23542}.pos-categories small{color:#6c7c8e}.pos-product-list{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-bottom:10px;overscroll-behavior:contain}.pos-product{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #dce3eb;border-radius:8px;padding:10px 12px;background:white;text-align:left;color:#202d3d;min-height:68px;flex-shrink:0}.pos-product:hover:not(:disabled){border-color:#91a6bc;box-shadow:0 2px 8px #1429430c}.pos-product-icon{background:#edf2e9;color:#657756;width:42px;height:44px;border-radius:6px;display:grid;place-items:center;flex-shrink:0;font-size:24px}.pos-product-name{min-width:0;flex:1}.pos-product-name b{display:block;font-size:13px;font-weight:650;overflow-wrap:anywhere}.pos-product small{font-size:11px;color:#67778b;display:block;font-weight:400}.pos-product>strong{text-align:right;font-size:15px;white-space:nowrap}.pos-catalog-foot{flex-shrink:0;display:flex;align-items:center;gap:9px;font-size:11px;border-top:1px solid #dce3eb;padding-top:10px;flex-wrap:wrap}.pos-catalog-foot .link{font-size:11px;padding:5px 7px}.pos-catalog-foot .badge{padding:4px 8px;font-size:10px}.pos-receipt.cart{height:100%;min-height:0;position:static;display:flex;flex-direction:column;overflow:hidden;background:white;border-left:1px solid #dce3eb;border-radius:0;padding:0}.pos-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:17px 20px}.pos-scroll h2{font-size:18px}.pos-scroll .section-title{margin-bottom:12px}.pos-receipt input,.pos-receipt select{padding:8px 10px;font-size:13px;border-radius:7px}.pos-receipt label{margin:9px 0 4px;font-size:12px}.pos-receipt .customer-new{font-size:12px;margin:8px 0;padding:8px 12px}.pos-receipt .cart-line{padding:12px 0}.pos-receipt .cart-line>strong{font-size:13px}.pos-receipt .cart-line .qty{gap:9px;margin-top:7px}.pos-receipt .footnote{margin:8px 0 0;font-size:11px}.pos-receipt .client-balance{padding:9px 11px;margin-top:8px;font-size:12px}.pos-receipt .notice{padding:10px 12px;font-size:12px;margin:10px 0}.pos-pay{flex-shrink:0;padding:13px 20px 17px;border-top:1px solid #dce3eb;background:white;box-shadow:0 -5px 15px #14294306;z-index:2}.pos-pay .total{margin:0 0 10px;font-size:21px}.pos-pay .primary{min-height:52px;margin:0!important;background:#c8444f;border-radius:8px;box-shadow:0 4px 0 #932e3a,0 7px 13px #932e3a24;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:16px;padding:12px 16px}.pos-pay .primary:hover:not(:disabled){background:#bc3947}.pos-pay .primary:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 #932e3a}.pos-pay .primary:disabled{box-shadow:none}.pos-pay .price-permission{font-size:12px;border:0;padding:2px;margin:0 0 9px;gap:8px}.pos-pay .price-permission input{width:18px;height:18px;flex-basis:18px}.pos-pay>.link{font-size:11px;display:block;margin:7px auto 0;padding:3px}.pos-pause{flex-shrink:0;margin:0!important}.pos-receipt .customer-form{padding:13px;margin:8px 0}.pos-receipt .customer-form .primary{font-size:13px;margin:10px 0 0;min-height:40px}.pos-page{flex:1;min-width:0;overflow:auto;background:white;padding:24px 30px}.pos-page>p{max-width:760px}.pos-plans{flex-shrink:0;background:white;border-bottom:1px solid #dce3eb;display:flex;align-items:center;gap:25px;padding:9px 19px;min-height:74px}.pos-plan-title{font-weight:650;font-size:13px;min-width:130px}.pos-plan-title small{display:block;font-size:10px;color:#617083;font-weight:400}.pos-plan{flex:1;min-width:120px;max-width:380px}.pos-plan>div{display:flex;justify-content:space-between;font-size:11px}.pos-plan strong{color:#14755d}.pos-plan small{font-size:10px;color:#617083;display:block}.pos-plan progress{width:100%;height:6px;border:0;border-radius:6px;accent-color:#14755d;display:block;margin:5px 0;background:#edf1f6}.pos-plan progress::-webkit-progress-bar{border-radius:6px;background:#edf1f6}.pos-plan progress::-webkit-progress-value{border-radius:6px;background:#14755d}.pos-plan-note{font-size:10px;color:#6a7787;margin-left:auto}.pos-touch .pos-product-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));align-content:start;gap:12px}.pos-touch .pos-product{min-height:165px;flex-direction:column;align-items:stretch;padding:13px;gap:8px}.pos-touch .pos-product-icon{height:55px;width:100%;font-size:34px}.pos-touch .pos-product-name b{font-size:14px}.pos-touch .pos-product>strong{text-align:left;font-size:17px}.pos-touch .pos-product>strong small{display:inline;margin-left:6px}.pos-touch .pos-categories button{min-height:55px;font-size:14px}.pos-touch .pos-search{min-height:50px;font-size:15px}.pos-touch .pos-receipt input,.pos-touch .pos-receipt select{min-height:46px;font-size:15px}.pos-touch .qty button{min-width:43px;min-height:42px}.pos-touch .pos-pay .primary{min-height:64px;font-size:18px}.pos-touch .pos-receipt .customer-new{min-height:44px;font-size:14px}.pos-touch .pos-nav button{min-height:51px}.pos-touch .pos-receipt .price-permission input{min-height:22px}.pos-touch .pos-receipt .remove-payment{min-width:28px;min-height:44px}
@media(max-width:1050px){.pos-user{display:none}.pos-shop{font-size:10px}.pos-catalog{padding:13px}.pos-main{grid-template-columns:minmax(230px,1fr) minmax(340px,43%)}.pos-expanded .pos-nav{flex-basis:150px}.pos-scroll{padding:14px}.pos-pay{padding:12px 14px 17px}.pos-plan-note{display:none}.pos-plans{gap:15px;padding:8px 14px}.pos-mode button{font-size:11px}}@media(max-width:780px){.pos-shop,.pos-user{display:none}.pos-top{gap:8px;padding:5px 8px}.pos-brand{font-size:19px}.pos-nav{flex-basis:46px}.pos-expanded .pos-nav{position:absolute;top:48px;bottom:0;width:165px;z-index:10;box-shadow:6px 0 18px #17253530}.pos-main{grid-template-columns:minmax(150px,1fr) minmax(310px,52%)}.pos-catalog-top>span{display:none}.pos-categories{gap:5px}.pos-categories button{font-size:11px;padding:8px;min-width:0}.pos-product{flex-wrap:wrap}.pos-product>strong{margin-left:auto}.pos-touch .pos-product-list{grid-template-columns:1fr}.pos-plan-title{display:none}.pos-plans{min-height:62px}.pos-plan{min-width:0}}@media print{.pos-shell{display:none!important}}@media(prefers-reduced-motion:reduce){.pos-shell *{transition:none!important}}

.pos-shell .pos-receipt.cart:has(#payment-rows){padding:0;position:static;min-height:0;overflow:hidden}

.history-period{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:18px 0}.history-period label{margin:0}.history-period input{display:block}.history-receipt{border:0;background:transparent;text-align:left;flex:1;padding:8px;color:inherit;cursor:pointer}.history-receipt span{display:block;margin-top:5px}.history-receipt:hover{background:#edf2f7}.receipt-detail{background:white;border:1px solid #dbe3ed;border-radius:16px;padding:24px;max-width:700px}.receipt-detail table{width:100%;border-collapse:collapse}.receipt-detail th,.receipt-detail td{text-align:left;padding:12px;border-bottom:1px solid #e1e6ed}.receipt-detail td small{display:block}.receipt-detail header{border-top:1px solid #e1e6ed;margin-top:20px}.receipt-detail h1{font-size:24px}.pos-touch .history-receipt{min-height:72px}

.pos-top .pos-connection{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:124px;padding:4px 8px;border:1px solid #56657a;text-align:left;white-space:nowrap}.pos-connection span{font-size:12px;font-weight:650}.pos-connection small{font-size:9px;color:#c2cedc}.pos-connection.online b{color:#64dfb9}.pos-connection.offline{background:#614323!important;border-color:#e6b070!important}.pos-connection.offline b{color:#ffe0a9}.pos-connection.syncing b{color:#8ccfff}.pos-connection.conflict,.pos-connection.unavailable{background:#722d38!important}.pos-connection-notice{background:#fff1d6;color:#684315;padding:8px 18px;font-size:12px;flex-shrink:0}.pos-connection-notice.error{background:#ffe3e7;color:#792638}@media(max-width:1050px){.pos-top{gap:8px}.pos-help{display:none}.pos-connection small{font-size:8px}.pos-top .pos-connection{min-width:113px}}

.pos-offline-switch{white-space:nowrap;border:1px solid #778494!important;background:#25394d!important;color:#fff!important;padding:7px 10px!important}.pos-offline-switch[aria-pressed="true"]{background:#62481e!important;border-color:#c99c54!important}
.cash-page{max-width:960px;margin:20px auto;min-width:0}.cash-page form{max-width:640px}.cash-record{padding:14px 0;border-bottom:1px solid #d9dfe9}.cash-record p{margin:5px 0}.cash-page textarea{display:block;width:100%;min-height:110px;font:inherit;padding:10px}.cash-page input[type=checkbox]{width:auto}.cash-page .secondary{margin:6px 8px 6px 0}.pos-secondary{min-width:0;flex:1;overflow:auto;padding:12px}

.cash-return-search{margin-top:18px}.cash-return-hit{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #dde2e8}.cash-return-hit p{margin:5px 0;font-size:14px}.cash-return-hit button{flex-shrink:0}.cash-return-source{margin-top:18px;padding:14px;background:#edf4fa;border-radius:10px}.cash-return-source p{margin:6px 0}.cash-return-search input[type=search]{width:100%}@media(max-width:650px){.cash-return-hit{align-items:stretch;flex-direction:column}}

.qty input[data-cart-quantity]{width:7.5rem;min-width:0;margin:0;text-align:center;padding:.45rem}.qty small{white-space:nowrap}.pos-touch .qty input[data-cart-quantity]{min-height:48px;font-size:1.15rem}

/* Fixed app frame: long forms scroll below the persistent connection bar. */
.pos-shell{position:fixed;inset:0;min-height:0}
.pos-top{position:sticky;top:0;z-index:12}
.pos-body{overflow:hidden}
.pos-secondary,.pos-page{min-height:0;overscroll-behavior:contain}
.pos-nav{overflow-y:auto;overscroll-behavior:contain}

.payment-row.currency-payment{grid-template-columns:minmax(90px,1fr) 72px minmax(100px,1fr) 25px;align-items:start}.payment-row.currency-payment small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.payment-row.currency-payment .remove-payment{margin-top:25px}
