/* RMPT e-POS V9.0 Production: Repair 2.0 device visuals + 10 cash register templates */
:root{--r9-pos-gap:12px}

/* Repair 2.0 device visual: real catalogue image when available, safe device silhouette otherwise. */
.r82-device-row{grid-template-columns:46px minmax(0,1fr) auto;min-height:64px}
.r9-device-visual{width:42px;height:52px;position:relative;display:grid;place-items:center;overflow:hidden;border-radius:10px;background:linear-gradient(145deg,#f7f9fc,#eef3f8);border:1px solid #e1e7ef}
.r9-device-fallback{position:absolute;inset:0;display:grid;place-items:center}
.r9-device-fallback i{width:24px;height:38px;border:2px solid #607087;border-radius:6px;background:#fff;box-shadow:inset 0 -4px 0 #eef2f6}
.r9-device-fallback i:before{content:'';display:block;width:8px;height:2px;border-radius:2px;background:#aab4c1;margin:3px auto}
.r9-device-fallback b{position:absolute;bottom:5px;right:5px;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;background:#173650;color:#fff;font-size:8px}
.r9-device-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;padding:2px}
.r81-option .r81-tag{white-space:nowrap}
.r81-option.mapped .r81-tag{background:#e8f8ee;color:#17643c}
.r81-options{align-items:stretch}

/* Cash register template picker */
.r9pos-template{display:flex!important;align-items:center;gap:7px;margin:0!important;padding:4px 5px 4px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font-size:10px;font-weight:700;white-space:nowrap}
.r9pos-template span{letter-spacing:.03em;text-transform:uppercase}
.r9pos-template select{height:32px;min-height:32px;width:auto;min-width:126px;border:0!important;box-shadow:none!important;padding:0 24px 0 4px;background-color:#fff;font-size:11px;font-weight:650;color:var(--text)}
.r81pos[data-cash-template] .r81pos-bar{margin-bottom:10px}
.r81pos[data-cash-template] .cart-panel,.r81pos[data-cash-template] .r81pos-browse,.r81pos[data-cash-template] #p11ScanZone,.r81pos[data-cash-template] .prod-quick-shell{transition:border-color .12s,box-shadow .12s,background .12s}

/* 1. Basic Lite: quiet, minimal, little visual chrome. */
.r81pos[data-cash-template="basic"] .r81pos-grid{grid-template-columns:minmax(0,1fr) 315px;gap:9px}
.r81pos[data-cash-template="basic"] .prod-quick-shell{display:none}
.r81pos[data-cash-template="basic"] .r81pos-browse{box-shadow:none;background:#fff}
.r81pos[data-cash-template="basic"] .cart-panel{box-shadow:none}
.r81pos[data-cash-template="basic"] .r81pos-scan-hint{display:none}
.r81pos[data-cash-template="basic"] .r81pos-pay-btn{min-height:42px}

/* 2. Compact: maximum information in minimum height. */
.r81pos[data-cash-template="compact"] .r81pos-grid{grid-template-columns:minmax(0,1fr) 330px;gap:8px}
.r81pos[data-cash-template="compact"] .r81pos-scan input{height:38px}
.r81pos[data-cash-template="compact"] .cart-items{max-height:220px}
.r81pos[data-cash-template="compact"] .product-tile{min-height:98px;padding:9px}
.r81pos[data-cash-template="compact"] .prod-quick-shell{padding:9px}
.r81pos[data-cash-template="compact"] .r81pos-pay-btn,.r81pos[data-cash-template="compact"] .r81pos-pay-btn.lead{min-height:40px;font-size:12px}

/* 3. Classic Till: familiar catalogue-left / sale-right till. */
.r81pos[data-cash-template="classic"] .r81pos-grid{grid-template-columns:minmax(0,1fr) 390px;gap:14px}
.r81pos[data-cash-template="classic"] .r81pos-right{top:14px}
.r81pos[data-cash-template="classic"] .cart-panel{border-radius:6px}
.r81pos[data-cash-template="classic"] .r81pos-browse{border-radius:6px}
.r81pos[data-cash-template="classic"] .r81pos-pay-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

/* 4. CellStore Style: dense service-counter layout, scanner + catalogue + strong basket. */
.r81pos[data-cash-template="cellstore"] .r81pos-grid{grid-template-columns:minmax(0,1.22fr) minmax(365px,.78fr);gap:11px}
.r81pos[data-cash-template="cellstore"] .r81pos-bar{padding:9px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}
.r81pos[data-cash-template="cellstore"] .r81pos-scan input{height:43px;background:#fff}
.r81pos[data-cash-template="cellstore"] .r81pos-browse{padding:9px;background:#fff}
.r81pos[data-cash-template="cellstore"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;max-height:48vh}
.r81pos[data-cash-template="cellstore"] .product-tile{min-height:104px;padding:9px;border-radius:7px}
.r81pos[data-cash-template="cellstore"] .cart-panel{border-radius:9px;box-shadow:0 8px 24px #1626420a}
.r81pos[data-cash-template="cellstore"] #cartTotals .grand{font-size:19px}
.r81pos[data-cash-template="cellstore"] .r81pos-pay-btn.lead{min-height:52px}

/* 5. Retail Grid: product browsing is primary. */
.r81pos[data-cash-template="retail"] .r81pos-grid{grid-template-columns:minmax(0,1.4fr) 340px;gap:14px}
.r81pos[data-cash-template="retail"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;max-height:58vh}
.r81pos[data-cash-template="retail"] .product-tile{min-height:125px}
.r81pos[data-cash-template="retail"] .prod-quick-shell{display:none}

/* 6. Scanner First: barcode/search dominates; no clutter until needed. */
.r81pos[data-cash-template="scanner"] .r81pos-bar{grid-template-columns:minmax(0,1fr) auto;padding:12px;border:1px solid #dce5ef;border-radius:12px;background:#fbfdff}
.r81pos[data-cash-template="scanner"] .r81pos-scan input{height:54px;font-size:17px;border-width:2px}
.r81pos[data-cash-template="scanner"] .prod-quick-shell{display:none}
.r81pos[data-cash-template="scanner"] .r81pos-grid{grid-template-columns:minmax(0,1fr) 360px}
.r81pos[data-cash-template="scanner"] #p11ScanZone{min-height:170px}

/* 7. Touch Counter: large touch targets for tablet tills. */
.r81pos[data-cash-template="touch"] .r81pos-grid{grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);gap:16px}
.r81pos[data-cash-template="touch"] .r81pos-scan input{height:56px;font-size:17px}
.r81pos[data-cash-template="touch"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.r81pos[data-cash-template="touch"] .product-tile{min-height:145px;padding:15px}
.r81pos[data-cash-template="touch"] .r81pos-pay-btn,.r81pos[data-cash-template="touch"] .r81pos-pay-btn.lead{min-height:68px;font-size:17px}
.r81pos[data-cash-template="touch"] .cart-actions .btn{min-height:50px}

/* 8. Workshop: compact sale panel leaves room for repair-shop quick products. */
.r81pos[data-cash-template="workshop"] .r81pos-grid{grid-template-columns:minmax(0,1.3fr) 325px;gap:10px}
.r81pos[data-cash-template="workshop"] .prod-quick-shell{display:block}
.r81pos[data-cash-template="workshop"] .prod-quick-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.r81pos[data-cash-template="workshop"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.r81pos[data-cash-template="workshop"] .cart-panel{border-top:3px solid #56718f}

/* 9. Modern Split: balanced clean workspace. */
.r81pos[data-cash-template="modern"] .r81pos-grid{grid-template-columns:minmax(0,1fr) minmax(360px,.72fr);gap:18px}
.r81pos[data-cash-template="modern"] .r81pos-bar{padding:10px 12px;border-radius:14px;background:#f7f9fc}
.r81pos[data-cash-template="modern"] .cart-panel,.r81pos[data-cash-template="modern"] .r81pos-browse{border-radius:14px}
.r81pos[data-cash-template="modern"] .cart-panel{box-shadow:0 12px 34px #1726410c}

/* 10. Premium: most visual hierarchy, still white and professional. */
.r81pos[data-cash-template="premium"] .r81pos-bar{padding:12px;border:1px solid #dbe5f0;border-radius:15px;background:linear-gradient(135deg,#fbfdff,#f4f8fc)}
.r81pos[data-cash-template="premium"] .r81pos-grid{grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr);gap:18px}
.r81pos[data-cash-template="premium"] .r81pos-browse,.r81pos[data-cash-template="premium"] .cart-panel{border-radius:16px;box-shadow:0 14px 38px #17264110}
.r81pos[data-cash-template="premium"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.r81pos[data-cash-template="premium"] .product-tile{border-radius:12px;min-height:126px}
.r81pos[data-cash-template="premium"] #cartTotals .grand{font-size:22px;padding:10px 0}
.r81pos[data-cash-template="premium"] .r81pos-pay-btn.lead{min-height:58px;font-size:16px}

@media(max-width:1180px){
 .r81pos[data-cash-template] .r81pos-grid{grid-template-columns:minmax(0,1fr) 330px}
 .r81pos[data-cash-template="touch"] .r81pos-grid,.r81pos[data-cash-template="premium"] .r81pos-grid{grid-template-columns:minmax(0,1fr) 360px}
 .r81pos[data-cash-template="retail"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .r81pos[data-cash-template="workshop"] .prod-quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:820px){
 .r9pos-template{order:-1;width:100%;justify-content:space-between}
 .r9pos-template select{flex:1;max-width:210px}
 .r81pos[data-cash-template] .r81pos-grid{grid-template-columns:1fr!important}
 .r81pos[data-cash-template] .r81pos-right{position:static;order:-1}
 .r81pos[data-cash-template] .r81pos-browse .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .r81pos[data-cash-template="touch"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
 .r82-device-row{grid-template-columns:38px minmax(0,1fr);min-height:58px}
 .r9-device-visual{width:34px;height:44px;border-radius:8px}
 .r9-device-fallback i{width:20px;height:33px}
 .r81pos[data-cash-template] .r81pos-browse .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .r81pos[data-cash-template="basic"] .r81pos-pay-grid,.r81pos[data-cash-template="compact"] .r81pos-pay-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .r9pos-template span{display:none}
 .r9pos-template select{max-width:none;width:100%}
}

/* ========================================================================
   V9.0.1 DESIGN EDITION — visible, structural cash-register layouts
   ======================================================================== */
.r9pos-template-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.r9pos-layout-btn{min-height:40px;padding:5px 10px;display:grid!important;grid-template-columns:auto auto;grid-template-areas:'ico cap' 'ico name';column-gap:7px;row-gap:0;text-align:left;background:#fff;border:1px solid var(--line);color:var(--text)}
.r9pos-layout-btn .icon{grid-area:ico;width:18px;height:18px;align-self:center;color:var(--blue)}
.r9pos-layout-btn span{grid-area:cap;font-size:9px;line-height:1.1;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}
.r9pos-layout-btn b{grid-area:name;font-size:11.5px;line-height:1.2;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r9pos-layout-overlay[hidden]{display:none!important}
.r9pos-layout-overlay{position:fixed;inset:0;z-index:9999;padding:22px;background:rgba(13,23,38,.46);display:grid;place-items:center;backdrop-filter:blur(3px)}
.r9pos-layout-dialog{width:min(980px,96vw);max-height:min(780px,92dvh);overflow:auto;background:#fff;border:1px solid #dbe3ec;border-radius:18px;box-shadow:0 28px 80px rgba(12,24,40,.25);padding:18px}
.r9pos-layout-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:2px 2px 14px}
.r9pos-layout-head small{display:block;color:var(--blue);font-weight:800;text-transform:uppercase;letter-spacing:.09em;font-size:10px;margin-bottom:3px}
.r9pos-layout-head h2{margin:0;font-size:22px;letter-spacing:-.025em}.r9pos-layout-head p{margin:4px 0 0;color:var(--muted);font-size:12.5px}
.r9pos-layout-head #r9posLayoutClose{width:38px;height:38px;padding:0;font-size:23px;line-height:1}
.r9pos-layout-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.r9pos-layout-card{appearance:none;display:flex;flex-direction:column;gap:5px;min-width:0;padding:9px;border:1px solid #dfe6ee;border-radius:12px;background:#fff;text-align:left;cursor:pointer;color:var(--text);transition:.13s ease}
.r9pos-layout-card:hover{border-color:#9fb3c7;box-shadow:0 8px 22px rgba(16,38,61,.09);transform:translateY(-1px)}
.r9pos-layout-card.selected{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue-soft)}
.r9pos-layout-card b{font-size:12.5px}.r9pos-layout-card small{min-height:29px;font-size:10.5px;line-height:1.35;color:var(--muted)}
.r9pos-layout-card em{font-style:normal;font-size:10px;font-weight:750;color:var(--blue);margin-top:1px}
.r9pos-layout-preview{position:relative;display:grid;gap:3px;width:100%;aspect-ratio:1.55;border-radius:8px;padding:5px;background:#eef3f7;border:1px solid #e1e8ef;overflow:hidden}
.r9pos-layout-preview i{display:block;border-radius:3px;background:#fff;border:1px solid #d5dfe8;min-width:0;min-height:0}
.r9pos-layout-preview:before{content:'';position:absolute;left:5px;right:5px;top:5px;height:7px;border-radius:3px;background:#dce6ef}
.r9pos-layout-preview.pv-basic{grid-template-columns:1fr;grid-template-rows:11px 1fr 24%}.r9pos-layout-preview.pv-basic i:nth-child(4){display:none}
.r9pos-layout-preview.pv-compact{grid-template-columns:1.45fr .65fr;grid-template-rows:11px 1fr}.r9pos-layout-preview.pv-compact i:first-child{grid-column:1/-1}
.r9pos-layout-preview.pv-classic{grid-template-columns:.72fr 1.28fr;grid-template-rows:11px 1fr}.r9pos-layout-preview.pv-classic i:first-child{grid-column:1/-1}
.r9pos-layout-preview.pv-cellstore{grid-template-columns:1.45fr .8fr;grid-template-rows:11px 1fr}.r9pos-layout-preview.pv-cellstore i:first-child{grid-column:1/-1}.r9pos-layout-preview.pv-cellstore i:nth-child(2){background:repeating-linear-gradient(90deg,#fff 0 20%,#edf3f8 20% 23%)}
.r9pos-layout-preview.pv-retail{grid-template-columns:1.7fr .55fr;grid-template-rows:11px 1fr}.r9pos-layout-preview.pv-retail i:first-child{grid-column:1/-1}
.r9pos-layout-preview.pv-scanner{grid-template-columns:1fr .62fr;grid-template-rows:18px 1fr}.r9pos-layout-preview.pv-scanner i:first-child{grid-column:1/-1;background:#fff;border:2px solid #b9c9d7}
.r9pos-layout-preview.pv-touch{grid-template-columns:1.05fr .95fr;grid-template-rows:14px 1fr}.r9pos-layout-preview.pv-touch i:first-child{grid-column:1/-1}.r9pos-layout-preview.pv-touch i{border-radius:6px}
.r9pos-layout-preview.pv-workshop{grid-template-columns:1.35fr .65fr;grid-template-rows:11px 1fr 22%}.r9pos-layout-preview.pv-workshop i:first-child{grid-column:1/-1}.r9pos-layout-preview.pv-workshop i:nth-child(4){grid-column:1/2}
.r9pos-layout-preview.pv-modern{grid-template-columns:1fr .72fr;grid-template-rows:11px 1fr}.r9pos-layout-preview.pv-modern i:first-child{grid-column:1/-1}.r9pos-layout-preview.pv-modern i{border-radius:6px}
.r9pos-layout-preview.pv-premium{grid-template-columns:.78fr 1.22fr;grid-template-rows:11px 1fr}.r9pos-layout-preview.pv-premium i:first-child{grid-column:1/-1;background:#dfeaf3}.r9pos-layout-preview.pv-premium i:nth-child(2){box-shadow:0 4px 8px #9eb2c629}

/* category rail: CellStore-like fast product families */
.r9pos-category-rail{display:none;gap:5px;overflow:auto;padding:0 0 9px;scrollbar-width:thin}
.r9pos-category-rail button{flex:0 0 auto;min-height:31px;padding:0 10px;border:1px solid #dbe4ed;border-radius:7px;background:#f8fafc;color:#47586b;font:inherit;font-size:10.5px;font-weight:700;cursor:pointer}
.r9pos-category-rail button.active{background:#173650;color:#fff;border-color:#173650}
.r81pos[data-cash-template="cellstore"] .r9pos-category-rail,.r81pos[data-cash-template="retail"] .r9pos-category-rail,.r81pos[data-cash-template="premium"] .r9pos-category-rail{display:flex}

/* 1 Basic Lite — single clean flow, basket first, no heavy chrome. */
.r81pos[data-cash-template="basic"] .r81pos-grid{display:flex;flex-direction:column;gap:8px}
.r81pos[data-cash-template="basic"] .r81pos-right{position:static;order:-1}
.r81pos[data-cash-template="basic"] .cart-panel{box-shadow:none;border-radius:8px}
.r81pos[data-cash-template="basic"] .cart-items{max-height:170px}.r81pos[data-cash-template="basic"] .r81pos-browse{display:none}
.r81pos[data-cash-template="basic"] #p11ScanZone{border:0;background:transparent;padding:0}.r81pos[data-cash-template="basic"] .r81pos-scan-hint{display:none}
.r81pos[data-cash-template="basic"] .r81pos-pay-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.r81pos[data-cash-template="basic"] .r81pos-pay-btn,.r81pos[data-cash-template="basic"] .r81pos-pay-btn.lead{min-height:40px;font-size:12px}

/* 2 Compact — two dense columns, small basket. */
.r81pos[data-cash-template="compact"] .r81pos-grid{grid-template-columns:minmax(0,1.55fr) 300px;gap:7px}.r81pos[data-cash-template="compact"] .r81pos-right{position:sticky;top:8px}
.r81pos[data-cash-template="compact"] .r81pos-browse{padding:7px}.r81pos[data-cash-template="compact"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;max-height:52vh}
.r81pos[data-cash-template="compact"] .product-tile{min-height:82px;padding:6px}.r81pos[data-cash-template="compact"] .cart-items{max-height:205px}
.r81pos[data-cash-template="compact"] .r81pos-change{grid-template-columns:1fr;padding:7px}.r81pos[data-cash-template="compact"] .r81pos-change-out{text-align:left}

/* 3 Classic Till — actual classic: basket LEFT, catalogue RIGHT. */
.r81pos[data-cash-template="classic"] .r81pos-grid{grid-template-columns:370px minmax(0,1fr);gap:12px}.r81pos[data-cash-template="classic"] .r81pos-right{grid-column:1;grid-row:1;position:sticky;top:10px}.r81pos[data-cash-template="classic"] .r81pos-left{grid-column:2;grid-row:1}
.r81pos[data-cash-template="classic"] .cart-panel,.r81pos[data-cash-template="classic"] .r81pos-browse{border-radius:5px;box-shadow:none}.r81pos[data-cash-template="classic"] .cart-head{background:#eef2f5}
.r81pos[data-cash-template="classic"] .r81pos-pay-grid{grid-template-columns:1fr 1fr}

/* 4 CellStore Style — product families + tight 4/5-column product wall + strong right basket. */
.r81pos[data-cash-template="cellstore"] .r81pos-grid{grid-template-columns:minmax(0,1.5fr) minmax(360px,.72fr);gap:9px}
.r81pos[data-cash-template="cellstore"] .r81pos-bar{padding:7px 8px;border-radius:8px;background:#f4f7f9;box-shadow:none}.r81pos[data-cash-template="cellstore"] .r81pos-scan input{height:44px;border-radius:6px}
.r81pos[data-cash-template="cellstore"] .r81pos-browse{padding:8px;border-radius:7px}.r81pos[data-cash-template="cellstore"] .r81pos-browse-head{margin-bottom:6px}.r81pos[data-cash-template="cellstore"] .r81pos-browse-head select{display:none}
.r81pos[data-cash-template="cellstore"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-height:57vh}.r81pos[data-cash-template="cellstore"] .product-tile{min-height:96px;padding:7px;border-radius:6px;box-shadow:none}
.r81pos[data-cash-template="cellstore"] .cart-panel{border-radius:7px;box-shadow:none;border-color:#cfdbe5}.r81pos[data-cash-template="cellstore"] .cart-head{background:#173650;color:#fff;border-bottom:0}.r81pos[data-cash-template="cellstore"] .cart-head small{color:#c9d6e2}
.r81pos[data-cash-template="cellstore"] #cartTotals .grand{font-size:21px}.r81pos[data-cash-template="cellstore"] .r81pos-pay-btn.lead{min-height:50px}

/* 5 Retail Grid — products dominate, narrow checkout rail. */
.r81pos[data-cash-template="retail"] .r81pos-grid{grid-template-columns:minmax(0,1.85fr) 300px;gap:10px}.r81pos[data-cash-template="retail"] .r81pos-browse-head select{display:none}
.r81pos[data-cash-template="retail"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;max-height:64vh}.r81pos[data-cash-template="retail"] .product-tile{min-height:116px;padding:9px}.r81pos[data-cash-template="retail"] .prod-quick-shell{display:none}
.r81pos[data-cash-template="retail"] .cart-items{max-height:230px}.r81pos[data-cash-template="retail"] .r81pos-pay-btn.lead{min-height:44px;font-size:13px}

/* 6 Scanner First — search/result workspace, browser hidden by default. */
.r81pos[data-cash-template="scanner"] .r81pos-bar{padding:14px;border-radius:12px;background:#f9fbfd;border:1px solid #cedae5}.r81pos[data-cash-template="scanner"] .r81pos-scan input{height:58px;font-size:18px;border:2px solid #597792;border-radius:9px}
.r81pos[data-cash-template="scanner"] .r81pos-grid{grid-template-columns:minmax(0,1.2fr) 360px;gap:13px}.r81pos[data-cash-template="scanner"] #p11ScanZone{min-height:240px;display:grid;align-content:start}.r81pos[data-cash-template="scanner"] .r81pos-browse,.r81pos[data-cash-template="scanner"] .prod-quick-shell{display:none!important}
.r81pos[data-cash-template="scanner"] .r81pos-idle{min-height:190px;display:grid;place-content:center}

/* 7 Touch Counter — tablet-first, large visible buttons. */
.r81pos[data-cash-template="touch"] .r81pos-grid{grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);gap:14px}.r81pos[data-cash-template="touch"] .r81pos-scan input{height:58px;font-size:18px}.r81pos[data-cash-template="touch"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.r81pos[data-cash-template="touch"] .product-tile{min-height:150px;padding:14px;border-radius:12px}
.r81pos[data-cash-template="touch"] .r81pos-pay-btn,.r81pos[data-cash-template="touch"] .r81pos-pay-btn.lead{min-height:68px;font-size:17px}.r81pos[data-cash-template="touch"] .cart-actions .btn{min-height:52px}

/* 8 Workshop — quick repair/service strip always visible, compact basket. */
.r81pos[data-cash-template="workshop"] .r81pos-grid{grid-template-columns:minmax(0,1.45fr) 310px;gap:9px}.r81pos[data-cash-template="workshop"] .prod-quick-shell{display:block;order:-1;background:#f7f9fb;border-top:3px solid #58738c}.r81pos[data-cash-template="workshop"] .prod-quick-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.r81pos[data-cash-template="workshop"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.r81pos[data-cash-template="workshop"] .cart-items{max-height:220px}

/* 9 Advanced — balanced split with floating panels. */
.r81pos[data-cash-template="modern"] .r81pos-grid{grid-template-columns:minmax(0,1.18fr) minmax(350px,.72fr);gap:16px}.r81pos[data-cash-template="modern"] .r81pos-bar{padding:10px;border:0;border-radius:13px;background:#eef3f7;box-shadow:none}.r81pos[data-cash-template="modern"] .cart-panel,.r81pos[data-cash-template="modern"] .r81pos-browse,.r81pos[data-cash-template="modern"] #p11ScanZone{border-radius:14px;box-shadow:0 10px 28px rgba(19,40,61,.07);border-color:#e4eaf0}
.r81pos[data-cash-template="modern"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}

/* 10 Premium — basket LEFT, catalogue RIGHT, strongest hierarchy. */
.r81pos[data-cash-template="premium"] .r81pos-grid{grid-template-columns:minmax(360px,.74fr) minmax(0,1.35fr);gap:16px}.r81pos[data-cash-template="premium"] .r81pos-right{grid-column:1;grid-row:1;position:sticky;top:10px}.r81pos[data-cash-template="premium"] .r81pos-left{grid-column:2;grid-row:1}
.r81pos[data-cash-template="premium"] .r81pos-bar{padding:11px;border-radius:14px;background:linear-gradient(135deg,#f8fbfd,#eef4f8);border-color:#d2dee8;box-shadow:none}.r81pos[data-cash-template="premium"] .r81pos-browse-head select{display:none}
.r81pos[data-cash-template="premium"] .cart-panel{border-radius:15px;box-shadow:0 16px 40px rgba(14,35,54,.11);border-color:#d5e0e9}.r81pos[data-cash-template="premium"] .cart-head{padding:15px;background:#f4f7f9}.r81pos[data-cash-template="premium"] .r81pos-browse{border-radius:15px;box-shadow:0 10px 30px rgba(14,35,54,.07)}
.r81pos[data-cash-template="premium"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.r81pos[data-cash-template="premium"] .product-tile{min-height:125px;border-radius:10px}.r81pos[data-cash-template="premium"] #cartTotals .grand{font-size:24px}.r81pos[data-cash-template="premium"] .r81pos-pay-btn.lead{min-height:60px;font-size:16px}

@media(max-width:1180px){
 .r9pos-layout-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}
 .r81pos[data-cash-template="cellstore"] .r81pos-browse .catalog-grid,.r81pos[data-cash-template="retail"] .r81pos-browse .catalog-grid,.r81pos[data-cash-template="premium"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .r81pos[data-cash-template="compact"] .r81pos-browse .catalog-grid,.r81pos[data-cash-template="workshop"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:900px){
 .r9pos-layout-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
 .r81pos[data-cash-template] .r81pos-grid{display:flex!important;flex-direction:column!important}.r81pos[data-cash-template] .r81pos-right,.r81pos[data-cash-template] .r81pos-left{position:static!important;order:initial!important;width:100%;grid-column:auto!important;grid-row:auto!important}
 .r81pos[data-cash-template]:not([data-cash-template="retail"]):not([data-cash-template="scanner"]) .r81pos-right{order:-1!important}
 .r81pos[data-cash-template="cellstore"] .r81pos-browse .catalog-grid,.r81pos[data-cash-template="retail"] .r81pos-browse .catalog-grid,.r81pos[data-cash-template="premium"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:620px){
 .r9pos-layout-overlay{padding:8px}.r9pos-layout-dialog{width:100%;max-height:94dvh;border-radius:14px;padding:12px}.r9pos-layout-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.r9pos-layout-card{padding:7px}.r9pos-layout-card small{display:none}.r9pos-layout-card em{font-size:9.5px}
 .r81pos-bar-actions{grid-template-columns:1fr 1fr 1fr}.r9pos-layout-btn{min-height:38px;padding:4px 7px}.r9pos-layout-btn b{font-size:10.5px;max-width:86px}.r9pos-layout-btn span{font-size:8px}
 .r81pos[data-cash-template="cellstore"] .r81pos-browse .catalog-grid,.r81pos[data-cash-template="retail"] .r81pos-browse .catalog-grid,.r81pos[data-cash-template="premium"] .r81pos-browse .catalog-grid,.r81pos[data-cash-template="compact"] .r81pos-browse .catalog-grid,.r81pos[data-cash-template="workshop"] .r81pos-browse .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .r9pos-category-rail{margin-right:-4px}.r81pos[data-cash-template="basic"] .r81pos-pay-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
