/* A light work surface inside the original TORBIT shell. */
body:has(.pos-workspace) #dialog:has(#pos-line-edit){width:min(760px,calc(100vw - 24px))}#dialog:has(#pos-line-edit) .modal-head{padding:16px 22px}#dialog:has(#pos-line-edit) .modal-head h2{font-size:20px}#dialog:has(#pos-line-edit) .modal-body{padding:16px 22px}#pos-line-edit .form-grid{gap:10px 16px}#pos-line-edit .field{gap:5px;font-size:12px!important}#pos-line-edit .field input,#pos-line-edit .field select{padding:9px 11px;font-size:14px}#pos-line-edit .pos-edit-context{padding:10px 13px;gap:4px}#pos-line-edit .pos-edit-context strong{font-size:13px}#pos-line-edit .pos-edit-context small{font-size:11px}#pos-line-edit .pos-edit-preview{padding:10px 14px}#pos-line-edit .pos-edit-preview>div{margin:4px 0}#pos-line-edit .pos-edit-preview .pos-edit-grand{padding-top:8px;margin-top:8px}#pos-line-edit .modal-foot{margin-top:12px;padding-top:12px;position:sticky;bottom:-16px;background:#fff;z-index:2}#pos-line-edit [data-pos-reset-price]{padding:8px;font-size:12px}#pos-line-edit .form-error:empty{display:none}
.pos-workspace .pos-line-actions{display:flex;flex-direction:column;gap:6px}.pos-workspace .pos-line-total{display:block;margin-top:7px;font-size:15px;color:#4b2e59}.pos-adjust-tag{display:block;font-size:10px;line-height:1.5;color:#79529e;margin-top:5px}.pos-adjust-tag s{color:#8b7c95;margin-left:4px}.pos-line-info{min-width:0}.pos-edit-context{padding:16px;border:1px solid #e7daef;border-radius:13px;background:linear-gradient(120deg,#f5effb,#fff);display:grid;gap:7px}.pos-edit-context span{font-size:11px;letter-spacing:.5px}.pos-edit-context small{font-size:12px;line-height:1.5}.pos-edit-preview{background:#faf6fd;border:1px solid #e8dbee;border-radius:13px;padding:16px}.pos-edit-preview>div{display:flex;justify-content:space-between;gap:16px;margin:8px 0;font-size:12px}.pos-edit-preview .pos-edit-grand{border-top:1px solid #e3d4ee;padding-top:14px;margin-top:14px;align-items:center}.pos-edit-preview .pos-edit-grand strong{font-size:25px;letter-spacing:-.7px}body:has(.pos-workspace) #dialog .pos-edit-context,body:has(.pos-workspace) #dialog .pos-edit-preview,body:has(.pos-workspace) #pos-line-edit .field{color:#705b7b}@media(max-width:1200px){.pos-line-actions{grid-column:1/-1;flex-direction:row!important;justify-content:flex-end}.pos-line-actions button{grid-column:auto!important}}
.pos-workspace{--pos-text:#282136;--pos-muted:#74697e;--pos-edge:#e6dfee;background:#f7f5fa;color:var(--pos-text);padding:26px;border:1px solid #e6dfed;border-radius:24px;color-scheme:light}
.pos-workspace h1,.pos-workspace h2,.pos-workspace h3{color:var(--pos-text)}
.pos-hero{padding:0;margin:0 0 24px;gap:14px}.pos-hero h1{font-size:30px;letter-spacing:-1.2px;margin:0 0 5px}.pos-hero .eyebrow{color:#8255ad;font-size:9px;letter-spacing:1.8px;margin:0 0 8px}.pos-hero p:last-child{font-size:12px;color:#81728e}.pos-hero>.btn>span{background:#ede3fa;color:#71429d;font-size:11px;padding:3px 7px;border-radius:6px}
.pos-workspace .pos-panel{background:#fff;border:1px solid #e6dfee;border-radius:16px;box-shadow:0 3px 12px #30213c05;padding:20px;margin-bottom:18px}.pos-workspace h2{font-size:18px}.pos-workspace .btn,.pos-workspace .btn.small{background:#faf7fe;color:#704d8c;border:1px solid #e1d5eb;box-shadow:none;border-radius:10px;min-height:39px;font-size:11px;padding:9px 12px}.pos-workspace .btn:hover,.pos-workspace .btn.small:hover{background:#eee4fa;border-color:#b79bd2}.pos-workspace .btn.primary{background:linear-gradient(115deg,#7341b8,#9364cd);color:white;border-color:#8452bf;box-shadow:0 4px 12px #7341b81b}.pos-workspace .btn:disabled,.pos-workspace .btn.primary:disabled{background:#f0ebf5;color:#93859e;border-color:#e7dfef;opacity:1;box-shadow:none}.pos-workspace button:focus-visible,.pos-workspace a:focus-visible{outline:3px solid #a17acb;outline-offset:3px}.pos-workspace .btn svg{width:17px;height:17px}
.pos-workspace .pos-cash{padding:14px 18px;background:linear-gradient(100deg,#fff,#fbf9fe);border-left:3px solid #a17bcd}.pos-cash-state{font-size:13px!important}.pos-cash-state:before{background:#b28239}.pos-cash-state.is-open:before{background:#329d7c}.pos-cash-meta{font-size:10px;margin-top:8px}.pos-stats{margin-top:12px;padding-top:12px;gap:14px}.pos-stats small{font-size:10px}.pos-stats strong{font-size:18px;color:#493354;margin-top:5px}
.pos-layout{grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:18px}.pos-catalog-head{margin-bottom:18px}.pos-catalog .eyebrow,.pos-sale .eyebrow{color:#9366b5}.pos-search{background:#faf8fc;border-color:#ddd3e7;min-height:50px}.pos-search input{color:#3b2d48!important;font-size:12px}.pos-search input::placeholder{color:#92829c}.pos-search>svg{color:#9471ad}.pos-search:focus-within{border-color:#9b74c1;box-shadow:0 0 0 3px #b495e620}.pos-catalog-toolbar{margin:14px 0}.pos-filters{background:transparent;border:0;padding:0;gap:4px}.pos-filters button{color:#82718d;background:#f7f3fa;border:1px solid transparent;font-size:11px;padding:8px 10px}.pos-filters button[aria-pressed=true]{color:#6d3e9b;background:#eee3fa;border-color:#ddc8f0;box-shadow:none}#pos-result-count{color:#8e7e98;font-size:10px}
.pos-categories{display:flex;gap:6px;overflow:auto;scrollbar-width:thin;padding-bottom:12px}.pos-categories:empty{display:none}.pos-categories button{font:inherit;font-size:10px;white-space:nowrap;color:#85718f;background:#fff;border:1px solid #e6ddec;border-radius:20px;padding:8px 11px;cursor:pointer}.pos-categories button[aria-pressed=true]{border-color:#af8ccc;color:#71439c;background:#f8f2fe}
.pos-products{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;max-height:650px;scrollbar-color:#d7c6e5 #faf7fd}.pos-product-card{position:relative;display:flex;flex-direction:column;min-width:0}.pos-product{flex:1;color:#392c47;background:#fff;border-color:#e8dfed;border-radius:13px;box-shadow:none;font:inherit}.pos-product:enabled:hover{background:#fff;border-color:#a67fc8;box-shadow:0 5px 18px #5b336315;transform:translateY(-2px)}.pos-product.selected{border-color:#9d73c0;box-shadow:0 0 0 1px #b896d433}.pos-product-art{height:126px;background:radial-gradient(ellipse at 50% 30%,#ede0fa,transparent 80%),#f7f3fc;border-color:#eee6f4}.pos-product-art:before,.pos-product-art:after{border-color:#b996d638;box-shadow:none}.pos-product-art>svg{color:#a080bd;filter:none;width:42px;height:42px}.pos-product-art.service{background:#f0f8f6}.pos-product-art.service>svg{color:#7aa397}.pos-product-art.service:before,.pos-product-art.service:after{border-color:#bdded4}.pos-product-initial{color:#ab95bc;font-size:9px}.pos-product-art.has-photo{background:#fff;padding:14px}.pos-product-art.has-photo:before,.pos-product-art.has-photo:after{display:none}.pos-product-art img{width:100%;height:100%;object-fit:contain}.pos-product-quantity{background:#8050ac;color:white;font-size:9px;left:8px;top:8px;max-width:68%;border-radius:6px;padding:4px 7px;box-shadow:none}
.pos-favorite{position:absolute;top:7px;right:7px;width:31px;height:31px;display:grid;place-items:center;border:1px solid #e8dfed;border-radius:50%;background:#ffffffed;color:#b2a0bc;font-size:23px;line-height:1;cursor:pointer}.pos-favorite[aria-pressed=true]{color:#b77a19;border-color:#efdfba;background:#fffaf0}.pos-edit-product{align-self:flex-end;background:none;border:0;color:#90759f;font:inherit;font-size:10px;padding:6px 3px;cursor:pointer}.pos-edit-product:hover{text-decoration:underline}
.pos-product-info{padding:12px;gap:5px}.pos-product-info .pos-product-type{color:#a184b5;font-size:8px}.pos-product-info strong{color:#3b2c49;font-size:13px;min-height:37px;line-height:1.45}.pos-product-code{color:#a18eae!important}.pos-product-info b{color:#382740;font-size:19px;font-weight:800;letter-spacing:-.6px}.pos-product-info>small:last-child{color:#9a89a4;font-size:9px}.pos-product-add{background:#fcfaff;color:#8c60ad;border-color:#eee4f4;padding:9px 12px;font-size:10px}.pos-product-add svg{color:#956caf;border-color:#e5d5f1;background:#f9f3fe;width:21px;height:21px}.pos-product:disabled .pos-product-add{color:#ab97b4}
.pos-workspace .pos-sale{background:#fff;border-color:#decfe9;box-shadow:0 6px 22px #55345d09;padding:0;top:16px}.pos-sale-head{background:linear-gradient(115deg,#fbf8ff,#fff);padding:20px}.pos-sale-icon{background:#f7f0fd;border-color:#eadcf4;color:#a27bbb;width:38px;height:38px}.pos-customer{display:block;margin:16px 18px 0;font-size:10px;color:#867092}.pos-customer select{width:100%;min-width:0;display:block;padding:11px 9px;margin-top:6px;background:#fcfaff;color:#594463;border:1px solid #e4d6ee;border-radius:9px;font:inherit;font-size:12px;min-height:42px}
#pos-cart{padding:0 18px 18px}.pos-cart-empty{padding:27px 4px}.pos-cart-empty>span{background:#faf6fe;border-color:#ecdef6;color:#b594c7;width:52px;height:52px}.pos-cart-empty strong{color:#796184;font-size:13px}.pos-cart-empty p{color:#a28cae;font-size:11px}.pos-cart-line{padding:15px 0;grid-template-columns:minmax(0,1fr) 65px auto;gap:8px}.pos-cart-line input{background:#fcfaff;border-color:#e3d5ec;color:#4b3258}.pos-cart-line strong{color:#5b4366;font-size:12px}.pos-cart-line small,.pos-cart-line label{color:#a28aaf;font-size:9px}.pos-cart-line .btn.small{font-size:9px;min-height:36px;padding:7px}.pos-total{border-color:#decee9}.pos-total p{font-size:11px;color:#8e749c}.pos-total strong{color:#5a3e69;font-size:13px}.pos-total p:last-child{font-size:13px;color:#644575}.pos-total p:last-child strong{color:#4b2e59;font-size:28px}.pos-hold-actions{display:flex;gap:6px;margin-bottom:10px}.pos-hold-actions .btn{font-size:10px;padding:8px}.pos-hold-actions .btn:first-child{flex:1}.pos-sale [data-pos-checkout]{min-height:48px;font-size:13px;padding:12px 16px}.pos-sale-note{color:#a48bb1;font-size:9px}
.pos-empty{background:#fdfbff;border-color:#e4d5ef;padding:40px 18px}.pos-empty h3{color:#664777}.pos-empty p{color:#a08aaf}.pos-empty>svg{color:#b795ce}.pos-history>p{color:#9b82a9}.pos-history table{color:#6d527b}.pos-history th{background:#f9f4fc;color:#9a77ad;border-color:#e7dbef;font-size:10px}.pos-history td{border-color:#eee5f4;font-size:11px;color:#755b81}.pos-history td small{color:#a18cad}.pos-history tr:hover td{background:#fdfaff}.pos-footnote{color:#a08aac;font-size:10px}
/* Only dialogs opened from the POS use the matching light palette. */
.pos-workspace .pos-history th{background:#f6f0fa;color:#77558a;border-color:#e6d8ee}.pos-mobile-cart{display:none}
@media(max-width:760px){.pos-mobile-cart{position:fixed;bottom:12px;left:20px;right:20px;z-index:35;display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-radius:14px;background:linear-gradient(110deg,#7341b8,#9364cd);color:#fff;text-decoration:none;box-shadow:0 5px 20px #22102c44;font-size:12px}.pos-workspace{padding-bottom:68px}.pos-mobile-cart strong{color:#fff!important}.pos-sale{scroll-margin-top:15px}}
.pos-workspace .pos-cash-details{margin-top:8px}.pos-cash-details summary{font-size:11px;color:#766080;cursor:pointer}.pos-workspace small,.pos-workspace .pos-product-info>small:last-child,.pos-workspace .pos-product-code,.pos-workspace .pos-cash-meta,.pos-workspace .pos-sale-note,.pos-workspace .pos-history>p,.pos-workspace .pos-footnote,.pos-workspace .pos-cart-line small,.pos-workspace .pos-cart-line label,.pos-workspace .pos-customer{color:#75657e!important}.pos-workspace .pos-cart-empty p,.pos-workspace .pos-empty p{color:#7a6686}.pos-workspace .pos-product-info strong{color:#352a40}.pos-workspace .pos-product-type{color:#80658f!important}.pos-workspace .pos-filters button,.pos-workspace .pos-categories button{color:#766080}.pos-workspace .pos-search input::placeholder{color:#85758f}.pos-workspace .pos-total p{color:#796087}
body:has(.pos-workspace) #dialog{background:#fff;color:#51365f;border-color:#e8d9f1;color-scheme:light}body:has(.pos-workspace) #dialog .modal-head{background:#faf6fe;border-color:#ede1f5}body:has(.pos-workspace) #dialog h2,body:has(.pos-workspace) #dialog strong{color:#533360}body:has(.pos-workspace) #dialog p,body:has(.pos-workspace) #dialog .field{color:#92749f}body:has(.pos-workspace) #dialog .close{background:#f1e5fa;color:#9874ac}body:has(.pos-workspace) #dialog input,body:has(.pos-workspace) #dialog textarea,body:has(.pos-workspace) #dialog select{background:#fdfaff;color:#5d3c6a;border-color:#e2d0ec}body:has(.pos-workspace) #dialog .notice,body:has(.pos-workspace) #pos-checkout [data-pos-payment-hint]{background:#faf3ff;color:#8e66a0;border:1px solid #edddf7;border-radius:10px;padding:12px}body:has(.pos-workspace) #dialog .btn{background:#f7effc;color:#936aab;border-color:#e6d0f2}body:has(.pos-workspace) #dialog .btn.primary{background:linear-gradient(115deg,#7341b8,#9364cd);color:#fff}body:has(.pos-workspace) #dialog .modal-foot{border-color:#eedeF7}body:has(.pos-workspace) #dialog .form-error{color:#b32d4d}.pos-draft-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid #eddef4}.pos-draft-row p{font-size:12px;margin:5px 0}.pos-draft-row strong{overflow-wrap:anywhere}
@media(max-width:1200px){.pos-workspace{padding:20px}.pos-layout{grid-template-columns:minmax(0,1.2fr) minmax(270px,1fr);gap:14px}.pos-workspace .pos-panel{padding:16px}.pos-workspace .pos-sale{padding:0}.pos-products{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-cart-line{grid-template-columns:minmax(0,1fr) 62px}.pos-cart-line button{grid-column:2}}
@media(max-width:1000px){.pos-layout{grid-template-columns:1fr}.pos-workspace .pos-sale{position:static}.pos-products{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));max-height:560px}.pos-cart-line{grid-template-columns:minmax(0,1fr) 70px auto}.pos-cart-line button{grid-column:auto}}
@media(max-width:600px){.pos-workspace{padding:14px;border-radius:19px;margin:0 -6px}.pos-hero{margin-bottom:18px;align-items:flex-start;gap:8px}.pos-hero h1{font-size:25px}.pos-hero .eyebrow{font-size:8px;letter-spacing:1px}.pos-hero p:last-child{font-size:10px}.pos-hero>.btn{font-size:10px;padding:8px;gap:5px}.pos-hero>.btn svg{display:none}.pos-workspace .pos-panel{padding:13px}.pos-workspace .pos-sale{padding:0}.pos-catalog-head .btn{font-size:10px;padding:8px}.pos-cash .btn{font-size:10px;padding:7px 9px;min-height:36px}.pos-stats{gap:8px}.pos-stats>div+div{padding-left:8px}.pos-stats small{font-size:9px;min-height:28px}.pos-stats strong{font-size:12px}.pos-filters button{font-size:10px;padding:7px}.pos-search input{font-size:11px}.pos-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:530px}.pos-product-art{height:110px}.pos-product-info{padding:10px;gap:4px}.pos-product-info strong{font-size:12px;min-height:35px}.pos-product-info b{font-size:17px}.pos-product-info>small:last-child{font-size:8px}.pos-product-add{padding:9px;font-size:9px}.pos-product-quantity{font-size:8px;max-width:65%}.pos-sale-head{padding:17px}.pos-cart-line{grid-template-columns:minmax(0,1fr) 66px}.pos-cart-line button{grid-column:2}.pos-footnote{font-size:9px}}

/* Customer accounts share one catalog and keep independent carts. */
.pos-accounts{margin:18px 0 22px;border:1px solid #e5d9ee;border-radius:18px;background:linear-gradient(110deg,#fff,#fcf8ff);padding:16px 18px;min-width:0}
.pos-accounts-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.pos-accounts-heading .eyebrow{font-size:9px;letter-spacing:1.5px;color:#75518f}.pos-accounts-heading p{margin:5px 0 0;color:#746080;font-size:12px}.pos-accounts-heading .btn{white-space:nowrap}
.pos-account-tabs{display:flex;gap:9px;overflow-x:auto;padding:3px 2px 9px;scrollbar-width:thin;scrollbar-color:#b9a2cf #f4edf9}
.pos-account-tabs [role=tab]{flex:0 0 210px;min-width:0;max-width:250px;border:1px solid #e4d9ed;border-radius:12px;padding:12px 14px;background:#fff;color:#5c456d;text-align:left;font:inherit;cursor:pointer;transition:background .15s,border-color .15s}
.pos-account-tabs [role=tab]:hover{background:#f9f3ff;border-color:#bba0d4}.pos-account-tabs [role=tab]:focus-visible{outline:3px solid #b995df;outline-offset:1px}
.pos-account-tabs [aria-selected=true]{background:#f2e9fc;border-color:#9b70c6;box-shadow:inset 0 3px #8353b6}.pos-account-name{display:block;font-weight:700;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:8px}.pos-account-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}.pos-account-meta b{font-size:13px;color:#63427d}.pos-account-meta small{font-size:9px;white-space:nowrap}.pos-account-help{font-size:10px;color:#746080;margin:6px 0 0}
@media(max-width:600px){.pos-accounts{padding:12px;margin:12px 0 16px}.pos-accounts-heading p{font-size:11px}.pos-account-tabs [role=tab]{flex-basis:185px}.pos-accounts-heading .btn{font-size:11px;padding:9px}.pos-account-help{line-height:1.5}}
/* Separate account tabs, with an explicit active state and a shared workspace below. */
.pos-accounts{padding:18px 0 0;border:0;border-radius:0;background:transparent;margin-bottom:18px}
.pos-accounts-heading{padding:0 2px;margin-bottom:17px}.pos-accounts-heading .eyebrow{font-size:10px;letter-spacing:1.7px}
.pos-account-tabs{position:relative;gap:12px;align-items:stretch;padding:4px 3px 12px;border-bottom:2px solid #decbea;scroll-snap-type:x proximity}
.pos-account-tabs [role=tab]{position:relative;flex:0 0 218px;max-width:260px;padding:14px 16px 16px;border:1px solid #d9c9e5;border-bottom:4px solid #d9c9e5;border-radius:15px 15px 5px 5px;background:#f3edf8;box-shadow:0 3px 8px #49305708;scroll-snap-align:start}
.pos-account-tabs [role=tab]:hover{background:#fcfaff;border-color:#ad87cd;box-shadow:0 4px 12px #6c409114}
.pos-account-tabs [role=tab][aria-selected=true]{background:#fff;border-color:#9460bb;border-bottom-color:#8147b0;box-shadow:0 4px 14px #6c409123}
.pos-account-tab-label{display:flex;align-items:center;gap:8px;margin-bottom:11px;font-size:10px;color:#8a729b;font-weight:500;letter-spacing:.2px}.pos-account-index{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:#e6dced;color:#856497;font-size:10px;font-weight:700}
.pos-account-tabs [aria-selected=true] .pos-account-tab-label{color:#75409d;font-weight:700}.pos-account-tabs [aria-selected=true] .pos-account-index{background:#8651af;color:#fff}
.pos-account-name{font-size:13px;color:#4d345f;margin-bottom:12px}.pos-account-meta{padding-top:10px;border-top:1px solid #e6dcec}.pos-account-meta b{font-size:15px;font-variant-numeric:tabular-nums}.pos-account-meta small{color:#887297}.pos-account-help{padding:10px 3px 0;line-height:1.6}
@media(max-width:600px){.pos-accounts{padding:8px 0 0}.pos-accounts-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.pos-accounts-heading p{max-width:260px}.pos-account-tabs{gap:10px}.pos-account-tabs [role=tab]{flex-basis:190px;padding:12px 13px}.pos-account-meta b{font-size:14px}}

.pos-account-slot{position:relative;flex:0 0 218px;max-width:260px;min-width:0;display:flex;scroll-snap-align:start}
.pos-account-tabs .pos-account-slot [role=tab]{width:100%;flex:1;max-width:none}
.pos-account-slot .pos-account-tab-label{padding-right:25px}
.pos-account-close{position:absolute;right:5px;top:5px;width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#80618f;font-size:23px;line-height:1;cursor:pointer}
.pos-account-close:hover{background:#fce8ee;color:#aa3155}.pos-account-close:focus-visible{outline:3px solid #a677cd;outline-offset:1px}
@media(max-width:600px){.pos-account-slot{flex-basis:190px}.pos-account-close{width:40px;height:40px;top:2px;right:2px}}
