.pos-page{max-width:1540px;margin:0 auto;padding:24px 28px 60px;color:#14213d}
.pos-page button,.pos-page input,.pos-page select,.pos-page textarea{font:inherit}
.pos-header{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}
.pos-back{display:inline-flex;align-items:center;gap:5px;color:#2451be;font-size:12px;font-weight:700;text-decoration:none}
.pos-back .app-icon,.pos-header-actions .app-icon{width:15px;height:15px}
.pos-header h1{margin:7px 0 2px;font-size:27px}.pos-header p{margin:0;color:#66758c;font-size:13px}
.pos-header-actions{display:flex;gap:8px;flex-wrap:wrap}
.pos-header-actions a,.pos-header-actions button,.pos-next{display:inline-flex;align-items:center;gap:6px;padding:9px 12px;border:1px solid #cdd8e8;border-radius:5px;background:#fff;color:#244269;font-size:12px;font-weight:700;text-decoration:none;cursor:pointer}
.pos-error,.pos-notice{padding:11px 13px;margin:0 0 14px;border-left:3px solid #d3373e;background:#fff0f0;color:#982d32;font-size:13px}
.pos-notice{border-color:#159960;background:#ecfaf2;color:#157046}
.pos-mode{display:inline-grid;grid-template-columns:1fr 1fr;gap:3px;margin-bottom:16px;padding:3px;border:1px solid #d4deeb;border-radius:6px;background:#edf2f9}
.pos-mode button{min-width:180px;padding:8px 13px;border:0;border-radius:4px;background:transparent;color:#40526f;text-align:left;font-size:14px;font-weight:750;cursor:pointer}
.pos-mode button.active{background:#174fe2;color:#fff;box-shadow:0 1px 5px #1b3c8730}.pos-mode small{display:block;margin-top:2px;font-size:10px;font-weight:500;white-space:nowrap}
.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,365px);gap:20px;align-items:start}
.pos-catalog{min-width:0}.pos-search{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding:0 11px;border:1px solid #cdd8e8;border-radius:5px;background:#fff}
.pos-search .app-icon{width:17px;height:17px;color:#55708f}.pos-search input{flex:1;min-width:0;height:43px;border:0;outline:0;background:transparent;color:#14213d;font-size:13px}.pos-search span{white-space:nowrap;color:#6a7b94;font-size:11px}
.pos-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));gap:12px}
.pos-product{display:flex;flex-direction:column;min-width:0;padding:0;border:1px solid #d6e0ed;border-radius:6px;background:#fff;text-align:left;overflow:hidden;cursor:pointer;transition:transform .14s,border-color .14s,box-shadow .14s}
.pos-product:hover{transform:translateY(-2px);border-color:#4d76e5;box-shadow:0 7px 18px #1f428525}.pos-product-photo{display:grid;place-items:center;width:100%;aspect-ratio:1;background:#f0f3f8}.pos-product-photo img{display:block;width:100%;height:100%;object-fit:contain}
.pos-product-text{display:flex;flex-direction:column;gap:3px;min-height:90px;padding:10px}.pos-product-text strong{color:#172847;font-size:12px;line-height:1.3;overflow-wrap:anywhere}.pos-product-text small{color:#657791;font-size:10px}.pos-product-text b{margin-top:auto;color:#174fe2;font-size:12px}
.pos-empty{padding:35px 15px;border:1px dashed #cbd8e9;border-radius:5px;color:#64758e;text-align:center;font-size:13px}
.pos-checkout{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto;padding:16px;border:1px solid #d5dfec;border-radius:6px;background:#fff;box-shadow:0 3px 12px #14264712}
.pos-checkout h2{display:flex;align-items:center;gap:7px;margin:0 0 12px;font-size:17px}.pos-checkout h2 .app-icon{width:19px;height:19px;color:#174fe2}.pos-checkout h2 span{margin-left:auto;color:#6b7990;font-size:12px}.pos-cart-empty{margin:0;padding:20px 8px;border-block:1px solid #e3e9f2;color:#6a7d96;text-align:center;font-size:12px}
.pos-cart-lines{border-block:1px solid #e3e9f2}.pos-cart-line{display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #e9edf3}.pos-cart-line:last-child{border-bottom:0}.pos-cart-line strong,.pos-cart-line small{display:block}.pos-cart-line strong{font-size:12px}.pos-cart-line small{margin-top:2px;color:#6b7b91;font-size:10px}.pos-line-actions{display:flex;align-items:center;gap:5px}.pos-line-actions button{display:grid;place-items:center;width:26px;height:26px;border:1px solid #cdd9ea;border-radius:4px;background:#fff;color:#154fcb;cursor:pointer}.pos-line-actions .app-icon{width:13px;height:13px}.pos-line-actions span{min-width:18px;text-align:center;font-size:12px;font-weight:700}
.pos-cart-line .pos-shortage{color:#a26700;font-weight:700}
.pos-cart-line{align-items:center}.pos-cart-photo{flex:none;width:52px;height:52px;object-fit:contain;border:1px solid #e0e7f0;border-radius:4px;background:#f4f6fa}.pos-cart-description{flex:1;min-width:0}.pos-cart-description strong{overflow-wrap:anywhere}.pos-line-actions{flex:none}
.pos-fields h3{margin:14px 0 8px;padding-top:11px;border-top:1px solid #e2e9f2;font-size:12px;text-transform:uppercase;color:#4b5d76}.pos-fields label{display:block;margin:8px 0;color:#334966;font-size:11px;font-weight:700}.pos-fields label span{color:#7a8799;font-weight:400}.pos-fields label strong{color:#bd363a;font-size:10px}.pos-fields input:not([type=checkbox]),.pos-fields select,.pos-fields textarea{display:block;width:100%;min-height:35px;margin-top:4px;padding:6px 8px;border:1px solid #c9d5e5;border-radius:4px;background:#fff;color:#172847;font-size:12px;box-sizing:border-box}.pos-fields textarea{resize:vertical}.pos-fields .pos-check{display:flex;align-items:center;gap:7px;font-size:12px}.pos-check input{width:15px;height:15px;accent-color:#174fe2}
.pos-total{display:grid;grid-template-columns:1fr auto;gap:6px;padding:12px 0;margin-top:12px;border-top:1px solid #dce5f0;font-size:12px}.pos-total span{color:#65758d}.pos-total strong{text-align:right}.pos-total b{padding-top:6px;border-top:1px solid #dce5f0;font-size:15px;color:#173cba}.pos-total b:last-child{text-align:right}
.pos-confirm,.pos-picker-add{width:100%;min-height:42px;border:1px solid #174fe2;border-radius:4px;background:#174fe2;color:#fff;font-size:13px;font-weight:800;cursor:pointer}.pos-confirm:disabled{opacity:.45;cursor:default}
.pos-overlay{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:14px;background:#0c183a99}.pos-picker{width:min(620px,100%);max-height:90vh;overflow:auto;border-radius:7px;background:#fff;box-shadow:0 20px 50px #07172f50}.pos-picker header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px 18px;border-bottom:1px solid #dce4ef}.pos-picker h2{margin:0;font-size:18px}.pos-picker header button{display:grid;place-items:center;width:32px;height:32px;border:1px solid #cbd8e8;border-radius:4px;background:#fff;cursor:pointer}.pos-picker header .app-icon{width:16px;height:16px}.pos-picker-body{display:grid;grid-template-columns:190px 1fr;gap:18px;padding:18px}.pos-picker-body>img{width:100%;aspect-ratio:1;object-fit:contain;background:#f1f4f8}.pos-picker-body h3{margin:0 0 7px;font-size:12px}.pos-picker-body h3:not(:first-child){margin-top:15px}.pos-choices{display:flex;flex-wrap:wrap;gap:5px}.pos-choices button{min-width:42px;min-height:32px;padding:5px 8px;border:1px solid #cbd7e9;border-radius:4px;background:#fff;color:#263d5e;font-size:11px;cursor:pointer}.pos-choices button.selected{border-color:#174fe2;background:#eaf0ff;color:#123faf;font-weight:800}.pos-picker-body p{font-size:12px}.pos-picker-body p span{color:#65758d}.pos-picker-body label{display:block;font-size:11px}.pos-picker-body label input{display:block;width:85px;height:34px;margin:4px 0 12px;padding:5px;border:1px solid #cbd7e9;border-radius:4px}.pos-picker-add{max-width:220px}
.pos-result{display:grid;gap:14px;max-width:800px;padding:20px;border:1px solid #d4dfec;border-radius:6px;background:#fff}.pos-result>div:first-child span{color:#174fe2;font-size:10px;font-weight:800}.pos-result h2{margin:4px 0;font-size:23px}.pos-result p{margin:0;font-size:13px;color:#576982}.pos-paid-banner{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:13px;border-left:4px solid #12965b;background:#e9f8ef;color:#126b44;font-size:14px}.pos-paid-banner .app-icon{width:22px;height:22px}.pos-paid-banner button{margin-left:auto;padding:8px 12px;border:1px solid #12965b;border-radius:4px;background:#12965b;color:#fff;font-weight:750;cursor:pointer}.pos-result .pos-awaiting{padding:11px;background:#fff7e2;color:#805b15}.pos-link{display:flex;align-items:end;gap:7px;flex-wrap:wrap}.pos-link label{flex:1 1 300px;font-size:11px}.pos-link input{display:block;width:100%;height:36px;margin-top:5px;padding:6px;border:1px solid #cad7e7;border-radius:4px}.pos-link button,.pos-link a,.pos-result>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:7px 11px;border:1px solid #cbd7e8;border-radius:4px;background:#fff;color:#1d4386;text-decoration:none;font-size:12px;font-weight:750;cursor:pointer}.pos-link a{border-color:#168b5d;background:#168b5d;color:#fff}.pos-link img{width:16px;height:16px;filter:brightness(0) invert(1)}.pos-link .app-icon{width:14px;height:14px}.pos-result>.pos-next{justify-self:start}
.pos-result-items{display:grid;gap:0;border-block:1px solid #e0e7f0}.pos-result-item{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #edf1f6}.pos-result-item:last-child{border-bottom:0}.pos-result-item img{flex:none;width:58px;height:58px;object-fit:contain;border:1px solid #e0e7f0;border-radius:4px;background:#f4f6fa}.pos-result-item div{flex:1;min-width:0}.pos-result-item strong,.pos-result-item span{display:block}.pos-result-item strong{font-size:13px;overflow-wrap:anywhere}.pos-result-item span{margin-top:3px;color:#65758d;font-size:11px}.pos-result-item b{font-size:12px;white-space:nowrap}.pos-result>.pos-next{justify-self:stretch;min-height:56px;border-color:#174fe2;background:#174fe2;color:#fff;font-size:16px;font-weight:800}.pos-next .app-icon{width:19px;height:19px}
@media(max-width:920px){.pos-layout{grid-template-columns:1fr}.pos-checkout{position:static;max-height:none}.pos-header{align-items:start;flex-direction:column}}
@media(max-width:580px){.pos-page{padding:17px 12px 48px}.pos-header h1{font-size:23px}.pos-mode{display:grid;width:100%}.pos-mode button{min-width:0}.pos-mode small{white-space:normal}.pos-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pos-product-text{padding:8px}.pos-picker-body{grid-template-columns:1fr}.pos-picker-body>img{max-width:160px;aspect-ratio:1}.pos-picker-add{max-width:none}}
