/* OROX Smart POS V5 — final premium reference, implemented as scoped components.
 * Uses only live tenant-authorized product images, prices, balances and payments.
 * Base V4 styles are retained for rollback; this layer is loaded after them. */
#moduleView:has(.pos-workspace-v2[data-pos-premium-v5="ready"]) {
  --pos-v5-bg:#061328;--pos-v5-panel:#091c36;--pos-v5-tile:#0c2545;
  --pos-v5-stroke:#254968;--pos-v5-blue:#2979ff;--pos-v5-cyan:#26d6ed;
  --pos-v5-green:#23b79c;--pos-v5-gold:#c9a66b;--pos-v5-white:#f7f9fc;
}
#moduleView:has(.pos-workspace-v2[data-pos-premium-v5="ready"]) .hero{
  background:linear-gradient(120deg,#061329,#091f3c 70%,#07162d);
  border-color:#2a4a6d;border-radius:15px;
  box-shadow:0 4px 24px #0004;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] {
  --bg:#061328;--card:#091c36;--text:#f7f9fc;--muted:#abc3df;
  --line:#254968;--blue:#2979ff;--green:#23b79c;
  --surface-1:#0d2b4d;--surface-soft:#102847;
  background:linear-gradient(165deg,#081d38,#061328 70%);
  border-color:#2e5a80;border-radius:17px;padding:10px;
  box-shadow:0 0 0 1px #2671b21a,0 14px 34px #02081238;
  font:inherit;color:var(--text);
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] :is(.pos-v5-toolbar,.pos-shift-details,.pos-layout>.section-card) {
  border:1px solid #295171;background:var(--pos-v5-panel,#091c36);
  box-shadow:inset 0 1px 0 #ffffff0c,0 8px 24px #02091c32;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-toolbar {
  display:flex;align-items:center;justify-content:space-between;gap:9px;
  min-height:43px;padding:6px 12px;margin-bottom:8px;border-radius:12px;
  background:linear-gradient(105deg,#0c2546,#0b1c35);
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-terminal {
  display:flex;flex-wrap:wrap;align-items:center;gap:7px;
  min-width:0;padding:0;margin:0;background:transparent;border:0;color:#f7f9fc;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-terminal b{
  font-size:12px;color:#f7f9fc;font-weight:850;overflow-wrap:anywhere;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-terminal span{
  color:#afc8e2;font-size:10px;overflow-wrap:anywhere;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-network {
  display:inline-flex;gap:7px;align-items:center;flex:none;max-width:55%;
  padding:7px 11px;border:1px solid #137e79;border-radius:999px;
  background:#0a343a;color:#63efce;font-weight:750;font-size:11px;
  overflow-wrap:anywhere;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-network::before{
  content:"";width:7px;height:7px;flex:none;border-radius:50%;
  background:#35e3b1;box-shadow:0 0 7px #35e3b1a0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-network[data-connection="offline"]{
  color:#ffb9b9;background:#3a202c;border-color:#b44b56;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-network[data-connection="offline"]::before{
  background:#ff777e;box-shadow:none;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-network[data-connection="blocked"]{
  color:#ffdfad;background:#342d24;border-color:#8e6b38;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-network[data-connection="blocked"]::before{
  background:#e9b85c;box-shadow:none;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-network[data-connection="recovery"]{
  color:#cce4ff;background:#182e45;border-color:#4c749c;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-network[data-connection="recovery"]::before{
  background:#9cc7f0;box-shadow:none;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-shift-details{
  margin:0 0 9px;border-radius:12px;overflow:hidden;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-shift-head {
  min-height:33px;padding:6px 12px;
  font-weight:750;font-size:11px;color:#e7f4ff;
  background:linear-gradient(90deg,#0b2645,#0a1e37);
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v4-shift-cash{
  font-size:12px;font-weight:850;color:#52e4cf;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-shift-strip {
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;padding:8px;border-top:1px solid #244569;background:#081c34;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-shift-strip>div{
  display:flex;align-items:center;justify-content:center;min-height:56px;
  padding:7px 9px;border:1px solid #2a5478;border-radius:10px;
  background:linear-gradient(135deg,#0c2b4e,#0c233f);
  min-width:0;overflow-wrap:anywhere;gap:7px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-shift-strip small{
  font-size:10px;color:#b0c9e6;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-shift-strip b{
  font-size:12px;color:#f7f9fc;line-height:1.35;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-shift-strip>div:nth-child(4) b{
  color:#42d9e4;font-size:13px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-add-notice{
  border-radius:9px;margin-bottom:8px;color:#b5cde6;
  background:#08213c;font-size:10px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-layout{
  display:grid;direction:ltr;grid-template-columns:minmax(0,1fr) clamp(322px,28%,376px);
  gap:11px;align-items:start;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-layout>.section-card{
  position:relative;min-width:0;max-width:100%;
  border-radius:15px;overflow:hidden;direction:rtl;
}
html:lang(en) #moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-layout>.section-card{direction:ltr}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-panel-title{
  min-height:40px;border-bottom:1px solid #23466c;
  background:linear-gradient(105deg,#102a4d,#0a203e);
  padding:8px 12px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-panel-title h3 {
  font-size:13px;line-height:1.5;font-weight:900;color:#fff;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-panel-title .badge{
  background:#0a3557;border:1px solid #236b8c;color:#6ad6ef;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v4-catalog {
  container:pos-catalog / inline-size;
  min-width:0;background:linear-gradient(180deg,#0a203d,#081a31);
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters {
  display:grid;direction:rtl;grid-template-columns:auto minmax(0,1fr) minmax(110px,160px) auto;
  align-items:center;column-gap:8px;row-gap:7px;
  padding:10px;border:0;border-radius:0;
  border-bottom:1px solid #244566;
  background:transparent;box-shadow:none;min-width:0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters [data-pos-camera]{
  grid-column:1;grid-row:1;display:inline-flex;align-items:center;justify-content:center;
  gap:7px;min-height:46px;padding:8px 14px;
  border:1px solid #2b9af8;border-radius:10px;white-space:nowrap;
  background:linear-gradient(125deg,#207dff,#0864e6);
  box-shadow:0 3px 15px #006bff36,inset 0 1px 0 #ffffff35;
  color:#fff;font-size:12px;font-weight:850;cursor:pointer;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters [data-pos-camera]:hover{
  background:linear-gradient(125deg,#3998ff,#116cea);border-color:#4bd1ff;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters [data-pos-camera] svg{
  flex:none;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters #posSearch{
  grid-column:2;grid-row:1;min-width:0;
  width:100%;min-height:46px;height:46px;
  border:1px solid #397ab5;border-radius:10px;
  color:#fff;background:linear-gradient(90deg,#0a2241,#0c2b4e);
  font-size:14px;font-weight:650;padding-inline:13px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters #posSearch:focus{
  border-color:#39c8ed;box-shadow:0 0 0 2px #26b9df33;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters #posCategory{
  grid-column:3;grid-row:1;width:100%;min-width:0;min-height:46px;height:46px;
  border-radius:10px;background:#0c2949;color:#eef8ff;
  border:1px solid #315774;font-size:12px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters .pos-available-filter{
  grid-column:4;grid-row:1;font-size:11px;white-space:nowrap;color:#b5cde6;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v4-categories{
  display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;
  gap:7px;padding:9px 10px 7px;margin:0;
  background:#081c36;max-width:100%;scrollbar-width:thin;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v4-category{
  display:inline-flex;align-items:center;justify-content:center;
  padding:7px 12px;min-height:37px;
  border-radius:9px;border:1px solid #2a4b6e;
  background:linear-gradient(145deg,#0b2a4b,#0c1e38);
  font-size:11px;color:#e6f2ff;font-weight:800;
  box-shadow:inset 0 1px 0 #ffffff0b;transition:border-color .15s,background .15s;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v4-category:hover{
  border-color:#4a9ad9;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v4-category.is-active{
  border-color:#52b9ff;background:linear-gradient(125deg,#2a88ff,#0a65e8);
  color:#fff;box-shadow:0 4px 12px #096bdf45,inset 0 1px 0 #ffffff38;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-catalog-shortcuts{
  display:flex;gap:7px;flex-wrap:wrap;padding:4px 10px 8px;
  border-bottom:1px solid #18395d;background:#081c36;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-catalog-shortcuts .btn{
  padding:5px 12px;min-height:32px;border-radius:8px;
  background:#0d2b50;border:1px solid #2b5578;color:#e9f6ff;
  font-size:11px;font-weight:750;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-products {
  display:grid;gap:9px;padding:11px;min-width:0;
  max-height:clamp(350px,62dvh,720px);overflow-y:auto;overflow-x:hidden;
  overscroll-behavior:contain;scrollbar-width:thin;align-content:start;
}
@container pos-catalog (min-width:0px){
  #moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-products{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@container pos-catalog (min-width:480px){
  #moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-products{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@container pos-catalog (min-width:625px){
  #moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-products{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@container pos-catalog (min-width:785px){
  #moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-products{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}
@container pos-catalog (min-width:945px){
  #moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-products{
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
}
/* A real tile with two independent controls: original add + original favorite. */
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile{
  position:relative;display:flex;min-width:0;
  border:1px solid #2c597c;border-radius:12px;
  background:linear-gradient(165deg,#0d294b 0%,#0a1c35 72%,#08172d);
  box-shadow:inset 0 1px 0 #ffffff13,0 4px 9px #020a183b;
  transition:border-color .14s,box-shadow .14s;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile:hover,
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile:focus-within{
  border-color:#43a7ed;box-shadow:0 0 0 1px #2b99e87a,0 8px 19px #010c1f6b;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile>.pos-product{
  position:relative;display:flex;flex-direction:column;align-items:stretch;
  gap:5px;min-width:0;width:100%;height:100%;
  padding:8px 7px 7px;min-height:218px;
  border:0!important;border-radius:11px;background:transparent!important;
  box-shadow:none!important;color:#f7f9fc;text-align:center;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile>.pos-product:hover{
  transform:none!important;box-shadow:none!important;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-media{
  display:grid;place-items:center;flex:none;
  width:100%;height:clamp(82px,10cqi,124px);
  border:0;border-radius:8px;overflow:hidden;
  background:radial-gradient(ellipse at 50% 45%,#20497595,#0e2b4b85 61%,#0b2341);
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-media img {
  width:100%;height:100%;max-width:100%;max-height:100%;
  object-fit:contain;filter:drop-shadow(0 4px 5px #0007);
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-name{
  font-size:12px;font-weight:850;line-height:1.35;min-height:2.7em;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;color:#f7f9fc;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-subtitle {
  font-size:10px;color:#adc7df;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  min-height:1.3em;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-stock{
  position:absolute;top:7px;inset-inline-start:7px;z-index:2;
  padding:3px 6px;min-height:0;border-radius:6px;
  color:#5af6e5;border:1px solid #178e8f;background:#06343d;
  font-size:10px;font-weight:850;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-stock.is-out{
  color:#ffc0c0;border-color:#b44f56;background:#341f2e;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-footer{
  display:flex!important;flex-direction:column;gap:7px;margin-top:auto;
  width:100%;align-items:stretch;border:0;padding:0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-price{
  font-size:16px;font-weight:900;color:#35e3e9;line-height:1.3;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-add{
  width:100%;height:35px;min-height:35px;flex:0 0 35px;display:flex;
  gap:5px;align-items:center;justify-content:center;
  border-radius:7px;color:white;background:linear-gradient(125deg,#1675f8,#0764e0);
  border:1px solid #258dec;box-shadow:inset 0 1px 0 #ffffff35;
  font-size:13px;font-weight:900;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-favorite{
  position:absolute;top:8px;left:8px;z-index:5;
  width:27px;height:27px;min-width:27px;min-height:27px;
  display:grid;place-items:center;padding:3px;
  background:#0a2845;border:1px solid #315574;border-radius:8px;
  color:#e5bb6c;cursor:pointer;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-favorite svg{pointer-events:none}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-favorite[aria-pressed="true"]{
  color:#ffe19e;background:#4b381d;border-color:#bf965a;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-favorite[aria-pressed="true"] svg{
  fill:#e3bc72;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile.is-unavailable{
  opacity:.7;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-sale{
  position:static;display:flex;flex-direction:column;align-self:start;
  overflow:visible;max-height:none;height:auto;background:#0a1d38;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-sale .pos-panel-title{
  border-bottom:1px solid #294763;
  border-top:2px solid #c9a66b;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-sale .pos-header-total {
  display:none;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart{
  display:grid;gap:0;min-width:0;
  max-height:clamp(190px,40dvh,435px);
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  padding:0 8px;scrollbar-width:thin;background:#081b33;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;
  grid-template-areas:"item qty actions" "item total total" "price price discount";
  column-gap:8px;row-gap:5px;
  padding:10px 3px;border:0;border-bottom:1px solid #294966;
  background:transparent;min-width:0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-item{
  grid-area:item;grid-column:auto;grid-row:auto;
  display:grid;grid-template-columns:43px minmax(0,1fr);
  gap:3px 7px;min-width:0;text-align:start;align-items:center;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-thumb{
  width:43px;height:43px;border:1px solid #34577a;border-radius:8px;
  background:#123454;object-fit:contain;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-item>b{
  font-size:11px;line-height:1.4;font-weight:850;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-item>small{
  font-size:9px;color:#a9c2dd;overflow-wrap:anywhere;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-field{
  display:flex;flex-direction:column;gap:2px;min-width:0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-field:nth-child(2){
  grid-area:qty;min-width:88px;align-self:center;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-field:nth-child(3){
  grid-area:price;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-field:nth-child(4){
  grid-area:discount;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-field>span{
  font-size:9px;color:#aec7e2;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-field input{
  min-width:0;width:100%;height:34px;padding:5px 4px;
  color:#f4fbff;background:#0c2a4a;border:1px solid #315470;border-radius:7px;
  font-size:11px;line-height:1.2;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-field input:disabled{
  opacity:.78;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-quantity-control{
  display:flex;gap:2px;align-items:center;min-width:0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-quantity-control button{
  min-width:30px;min-height:35px;border-radius:7px;
  background:#0b3c75;color:#fff;border:1px solid #2164a4;
  font-size:15px;font-weight:900;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-quantity-control input{
  min-width:34px;width:42px;flex:1;font-size:12px;font-weight:800;text-align:center;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-row-actions{
  grid-area:actions;grid-column:auto;grid-row:auto;
  display:flex;gap:3px;justify-content:flex-end;align-items:center;flex-wrap:wrap;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-row-actions .btn{
  min-height:32px;min-width:30px;width:auto;padding:3px;
  background:#0c2746;border-color:#244b6e;color:#eac47d;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-row-actions .red{
  color:#ff757d;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-line-total{
  grid-area:total;grid-column:auto;grid-row:auto;
  justify-self:end;align-self:center;
  font-size:12px;font-weight:900;color:#42e6ec;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-totals{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;padding:11px;margin:0;border:0;border-top:1px solid #264968;
  background:linear-gradient(150deg,#091f3b,#08172d);
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-totals>div:not(.pos-cart-grand) {
  display:flex;flex-direction:column;gap:3px;align-items:stretch;
  font-size:10px;color:#abc3de;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-totals>div b{
  color:#f2faff;font-size:11px;font-weight:800;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-grand{
  grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;
  padding:10px 0 3px;margin-top:3px;border-top:1px solid #28557b;
  color:#f7f9fc;font-size:13px;font-weight:850;gap:6px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-grand strong{
  font-size:24px;color:#2de0e9;font-weight:950;text-shadow:0 0 11px #00a9c847;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v4-payment-details {
  border:1px solid #2d5779;border-radius:10px;margin:7px 8px 3px;
  background:#0c2846;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v4-payment-details>summary{
  min-height:39px;padding:7px 11px;font-size:11px;font-weight:800;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v4-payment-method{
  color:#65e4e8;font-size:10px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-checkout{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
  padding:10px;background:#071d36;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-methods {
  display:flex;flex-wrap:wrap;gap:6px;margin:6px 8px 2px;min-width:0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-methods[hidden]{
  display:none!important;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-method{
  flex:1 1 65px;min-height:37px;min-width:0;padding:6px;
  border:1px solid #2e5277;border-radius:9px;
  background:#0d2a4b;color:#d9eafa;font-size:11px;font-weight:850;
  cursor:pointer;transition:background .15s,border-color .15s;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-method.is-active{
  background:linear-gradient(115deg,#1356ac,#0e75d7);
  border-color:#39b5ff;color:#fff;box-shadow:0 0 0 1px #26b9df31;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-fast-actions{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;
  padding:8px;margin:0;min-width:0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-fast-actions .btn{
  min-height:36px;padding:5px 6px;background:#102d4e;
  border:1px solid #315576;border-radius:9px;
  color:#dcecff;font-weight:700;font-size:10px;white-space:normal;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-fast-actions [data-pos-sell]{
  order:-1;grid-column:1/-1;min-height:53px;font-size:16px;
  font-weight:900;color:#fff;background:linear-gradient(120deg,#1985ff,#0469ec);
  border:1px solid #30b3ff;border-radius:10px;
  box-shadow:0 5px 15px #035dd94c,inset 0 1px 0 #ffffff47;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-fast-actions [data-pos-sell]:disabled{
  opacity:.55;box-shadow:none;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-secondary-tools,
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-control-details{
  background:linear-gradient(135deg,#0a2341,#0a1b34);
  border:1px solid #2d5275;border-radius:13px;margin-top:10px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-control-details{
  border-top:2px solid #c9a66b;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] [hidden]{
  display:none!important;
}
@media (min-width:900px) {
  #moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-layout{
    display:grid!important;flex-direction:initial!important;
    grid-template-columns:minmax(0,1fr) clamp(322px,28%,376px)!important;
  }
}
@media (min-width:700px) and (max-width:899px) {
  #moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-layout{
    display:flex!important;flex-direction:column-reverse!important;gap:9px;
  }
  #moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-layout>.section-card{
    width:100%;max-width:100%;
  }
  #moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart{
    max-height:270px;
  }
  #moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-shift-strip{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:699px){
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"]{
    padding:5px;padding-bottom:calc(82px + env(safe-area-inset-bottom))!important;
    border-radius:10px;min-width:0;max-width:100%;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-toolbar{
    min-height:38px;gap:5px;padding:6px 8px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-terminal{
    display:flex;flex-direction:column;align-items:flex-start;gap:0;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-terminal b{font-size:11px}
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-terminal span{font-size:9px}
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-network{
    font-size:9px;max-width:48%;padding:6px 7px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-shift-head {
    padding:6px 8px;min-height:34px;font-size:10px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-shift-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-shift-strip>div{
    min-height:51px;padding:6px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-layout{
    display:flex!important;flex-direction:column!important;gap:8px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-layout>.pos-sale{
    order:0;width:100%;min-width:0;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-layout>.pos-v4-catalog{
    order:1;width:100%;min-width:0;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-sale .pos-panel-title{
    min-height:39px;padding:7px 10px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart{
    max-height:clamp(140px,27dvh,242px);
    overflow-y:auto;overflow-x:hidden;padding:0 5px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-row{
    grid-template-columns:minmax(0,1fr) auto auto;
    grid-template-areas:"item qty actions" "item total total" "price price discount";
    padding:7px 3px;gap:4px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-item{
    grid-template-columns:32px minmax(0,1fr);gap:3px 5px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-thumb{
    width:32px;height:32px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-item>b{
    font-size:10px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-field:nth-child(2){
    min-width:82px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-quantity-control button{
    min-width:29px;min-height:40px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-row input{
    min-height:40px;height:40px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-row-actions .btn{
    min-width:31px;min-height:40px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-grand strong{
    font-size:23px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-fast-actions [data-pos-sell]{
    min-height:49px;font-size:14px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters{
    grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:8px;
    direction:rtl;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters #posSearch{
    grid-column:1!important;grid-row:1;width:100%;min-width:0;
    font-size:16px;min-height:44px;height:44px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters [data-pos-camera]{
    grid-column:2!important;grid-row:1;min-height:44px;height:44px;
    min-width:0;padding:5px 8px;font-size:10px;gap:4px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters [data-pos-camera] svg{
    width:17px;height:17px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters #posCategory{
    grid-column:1!important;grid-row:2;min-height:36px;height:36px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters .pos-available-filter{
    grid-column:2!important;grid-row:2;justify-self:end;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-products{
    max-height:none;overflow:visible;gap:7px;padding:8px;
  }
  /* Keep V5 tiles; use the catalog's actual width, not the device width. */
  @container pos-catalog (min-width:318px) {
    #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-products{
      grid-template-columns:repeat(3,minmax(0,1fr));
    }
  }
  @container pos-catalog (min-width:445px) {
    #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-products{
      grid-template-columns:repeat(4,minmax(0,1fr));
    }
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile>.pos-product{
    min-height:202px;padding:7px 6px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-media{
    height:clamp(79px,22vw,113px);
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-name{
    font-size:11px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-add{
    height:36px;min-height:36px;flex:0 0 36px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] > .pos-mobile-paybar.is-visible{
    display:flex!important;position:fixed;bottom:0;left:0;right:0;z-index:45;
    align-items:center;justify-content:space-between;gap:10px;
    padding:9px 12px max(9px,env(safe-area-inset-bottom));
    border-top:2px solid #c9a66b;background:linear-gradient(110deg,#0a2547,#06172e);
    box-shadow:0 -5px 24px #000a;color:#f7f9fc;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] > .pos-mobile-paybar.is-visible [data-pos-sell]{
    min-height:44px;background:linear-gradient(120deg,#248aff,#0769ed);
    border:1px solid #319aff;border-radius:9px;color:#fff;
  }
}
@media(max-width:359px){
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters{
    grid-template-columns:minmax(0,1fr) auto;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-filters [data-pos-camera] span{
    font-size:9px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-row{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"item actions" "qty total" "price discount";
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-item{grid-column:1;grid-row:1}
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-row-actions{grid-column:2;grid-row:1}
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-field:nth-child(2){grid-column:1;grid-row:2}
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-line-total{grid-column:2;grid-row:2}
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-field:nth-child(3){grid-column:1;grid-row:3}
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-field:nth-child(4){grid-column:2;grid-row:3}
}
@media(prefers-reduced-motion:reduce) {
  #moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] :is(.pos-v5-product-tile,.pos-v4-category,.pos-v5-method) {transition:none}
}


/* POS V5 cart refinement: actual two-line rows, no six-column input grid.
   Applies only to rows restructured from the original permission-scoped controls. */
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile>.pos-product{
  min-height:190px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-footer{
  flex-direction:row!important;justify-content:space-between;align-items:center;
  gap:5px;min-width:0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-price{
  flex:1;min-width:0;text-align:start;font-size:15px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-add{
  display:grid;place-items:center;width:26px;height:26px;min-width:26px;min-height:26px;
  flex:0 0 26px;padding:0;border-radius:8px;
  color:#eaf5ff;background:#16446e;border:1px solid #326c98;
  box-shadow:none;font-size:16px;font-weight:800;line-height:1;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-add::before{
  display:none!important;content:none!important;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile:hover .pos-product-add,
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile:focus-within .pos-product-add{
  background:#2979ff;border-color:#58c8f7;color:#fff;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-row.pos-v6-cart-line{
  display:flex!important;flex-direction:column;gap:7px;grid-template:none!important;
  min-width:0;padding:10px 6px;align-items:stretch;
  border:0;border-bottom:1px solid #244765;border-radius:0;
  background:transparent;box-shadow:none;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-row.pos-v6-cart-line.is-last-added{
  border-radius:8px;background:#0d2e50;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-main{
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:center;column-gap:7px;min-width:0;width:100%;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-line .pos-cart-item{
  grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;
  display:grid;grid-template-columns:39px minmax(0,1fr);column-gap:7px;
  row-gap:2px;align-items:center;min-width:0;max-width:100%;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-line .pos-cart-thumb{
  grid-column:1;grid-row:1/span 2;width:39px;height:39px;max-width:39px;
  border-radius:8px;background:#103250;object-fit:contain;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-line .pos-cart-item>b{
  grid-column:2;grid-row:1;min-width:0;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  font-size:11px;line-height:1.3;overflow:hidden;overflow-wrap:anywhere;
  color:#f7f9fc;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-line .pos-cart-item>small{
  grid-column:2;grid-row:2;display:block;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:9px;color:#9fb9d6;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-end{
  display:flex;align-items:center;justify-content:flex-end;
  gap:5px;min-width:0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-line .pos-line-total{
  grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;
  min-width:0;margin:0;align-self:center;justify-self:auto;
  font-size:12px;font-weight:900;line-height:1.3;
  color:#3be6e9;text-align:end;overflow-wrap:anywhere;white-space:normal;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-line .pos-cart-row-actions{
  grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;
  display:flex;align-items:center;flex-wrap:nowrap;gap:3px;min-width:0;
  align-self:center;justify-content:flex-end;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-line .pos-cart-row-actions .btn{
  min-width:31px;min-height:34px;height:34px;padding:3px 5px;
  border:1px solid #31516f;border-radius:8px;background:#102b49;
  color:#d3bd8b;font-weight:800;font-size:14px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-line .pos-cart-row-actions [data-pos-remove]{
  color:#ff8b98;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-controls{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:6px;min-width:0;width:100%;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-line .pos-cart-field{
  grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;
  display:flex;flex-direction:column;min-width:0;gap:3px;margin:0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-controls>.pos-cart-field{
  flex:0 1 131px;max-width:145px;min-width:113px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-line .pos-cart-field>span{
  font-size:9px;line-height:1.1;font-weight:600;color:#afc7e3;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-controls .pos-quantity-control{
  display:flex;align-items:center;gap:2px;direction:ltr;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-controls .pos-quantity-control button{
  min-width:31px;min-height:36px;width:31px;height:36px;
  padding:0;border:1px solid #286b9f;background:#104577;
  border-radius:8px;font-size:16px;color:#f5faff;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-controls .pos-quantity-control input{
  width:100%;min-width:39px;max-width:60px;min-height:36px;height:36px;
  padding:5px 1px;border:1px solid #34658d;border-radius:7px;
  background:#0b2a4c;color:#fff;text-align:center;font-size:12px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-unit{
  display:flex;flex:1 1 80px;min-width:0;flex-direction:column;
  align-items:flex-start;justify-content:center;gap:4px;
  font-size:10px;line-height:1.25;color:#c9dbeb;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-unit-price{
  overflow-wrap:anywhere;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-discount{
  color:#62e4c2;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-edit{
  flex:0 0 auto;min-width:0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-edit>summary{
  list-style:none;display:flex;align-items:center;justify-content:center;
  min-width:43px;min-height:36px;padding:5px 7px;
  border:1px solid #345c82;border-radius:8px;background:#102c4c;
  color:#aaddf2;font-size:10px;font-weight:800;cursor:pointer;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-edit>summary::-webkit-details-marker{
  display:none;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-edit[open]{
  flex-basis:100%;width:100%;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-edit[open]>summary{
  justify-content:flex-start;border-color:#4aa6df;background:#103a60;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-edit-fields{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;padding:8px 0 0;min-width:0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-edit-fields>.pos-cart-field:only-child{
  grid-column:1/-1;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-edit-fields input{
  width:100%;min-height:38px;height:38px;border-radius:8px;
  background:#0c2a4b;border:1px solid #356187;color:#fff;
  font-size:12px;text-align:center;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-serial{
  display:flex;flex-direction:column;gap:5px;min-width:0;
  margin-top:1px;padding:7px;border:1px solid #244d6d;
  border-radius:8px;background:#082640;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-serial>small{
  font-size:10px;line-height:1.3;color:#b7d2e8;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-serial .pos-serial-selected{
  display:flex;flex-wrap:wrap;gap:4px;min-width:0;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-serial .pos-serial-selected>span{
  display:inline-flex;gap:5px;align-items:center;min-width:0;
  border:1px solid #24647a;border-radius:6px;padding:2px 5px;
  color:#d5eef5;background:#0b3448;font-size:10px;overflow-wrap:anywhere;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-serial .pos-serial-selected button{
  border:0;background:transparent;color:#ff9ca0;cursor:pointer;
  min-width:25px;min-height:30px;
}
#moduleView .pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-serial [data-pos-serial-input]{
  width:100%;min-width:0;min-height:39px;height:39px;
  padding:6px 9px;border:1px solid #2b5d7a;border-radius:7px;
  color:#f3faff;background:#0a2744;text-align:start;
  font-size:12px;
}
@media(max-width:699px){
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile>.pos-product{
    min-height:184px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v5-product-tile .pos-product-add{
    width:26px;min-width:26px;height:26px;min-height:26px;flex:0 0 26px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart{
    max-height:clamp(160px,29dvh,270px);
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-cart-row.pos-v6-cart-line{
    padding:8px 4px;gap:6px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-main{
    gap:5px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-line .pos-cart-thumb{
    width:36px;max-width:36px;height:36px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-line .pos-cart-item{
    grid-template-columns:36px minmax(0,1fr);gap:3px 5px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-controls .pos-quantity-control button,
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-controls .pos-quantity-control input{
    min-height:40px;height:40px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-edit>summary{
    min-height:40px;
  }
}
@media(max-width:359px){
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-end{
    gap:3px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-line .pos-line-total{
    font-size:11px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-controls{
    gap:4px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-v6-cart-unit{
    flex-basis:66px;font-size:9px;
  }
}

/* Mobile POS sizing only: stable checkout bar, no palette or workflow changes. */
@media (max-width:699px) {
  /* Remove layout reservation ahead of the cart; preserve cart/catalog order. */
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-add-notice {
    margin-bottom:4px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-layout {
    margin:0;padding:0;min-height:0;height:auto;align-content:flex-start;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-layout>.pos-sale {
    margin:0;min-height:0;height:auto;top:auto;
  }
  /* Keep the original action for the POS controller, but show one visible CTA. */
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-fast-actions [data-pos-sell] {
    display:none!important;
  }
  /* Always visible, independent of IntersectionObserver scroll visibility. */
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] > .pos-mobile-paybar,
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] > .pos-mobile-paybar.is-visible {
    display:flex!important;position:fixed;bottom:0;left:0;right:0;z-index:45;
    box-sizing:border-box;align-items:center;justify-content:space-between;
    gap:8px;direction:ltr;
    padding:8px max(10px,env(safe-area-inset-right))
      max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
    border-top:2px solid #c9a66b;
    background:linear-gradient(110deg,#0a2547,#06172e);
    box-shadow:0 -5px 24px #000a;color:#f7f9fc;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] > .pos-mobile-paybar>div {
    flex:1 1 auto;min-width:0;direction:rtl;
  }
  html:lang(en) #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] > .pos-mobile-paybar>div {
    direction:ltr;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] > .pos-mobile-paybar [data-pos-sell] {
    flex:0 1 auto;min-width:clamp(142px,45vw,205px);max-width:56vw;
    min-height:48px;direction:rtl;
  }
  #moduleView:has(.pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"]) .pos-primary-tools {
    gap:6px;align-items:stretch;
  }
  #moduleView:has(.pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"]) .pos-primary-tools .btn {
    min-height:42px;height:auto;padding:6px 9px;line-height:1.35;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-tool-grid {
    gap:7px;
  }
  #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-tool-grid .btn {
    min-height:42px;padding:7px 8px;
  }
  /* The existing AI launcher stays on the left but no longer covers the bar. */
  body:has(#moduleView:not(.hidden) .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"]) .orox-ai-launch {
    bottom:calc(88px + env(safe-area-inset-bottom));
  }
}

/* The V5 mobile catalog uses its actual container width, including 320px phones.
   Cart-first layout, checkout and desktop grid remain unchanged. */
@media screen and (max-width:699px){
  @container pos-catalog (min-width:270px){
    #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-products{
      grid-template-columns:repeat(3,minmax(0,1fr));
    }
  }
  @container pos-catalog (min-width:370px){
    #moduleView .pos-mobile-view.pos-workspace-v2[data-pos-premium-v5="ready"] .pos-products{
      grid-template-columns:repeat(4,minmax(0,1fr));
    }
  }
}
