/* Tablet cashier: keep product identity readable and payment reachable. */
@media screen and (min-width:701px) and (max-width:1499px){
 #app>.app-shell:has(.pos-content):has(#posBarcodeInput){max-width:none}
 #app>.app-shell:has(#posBarcodeInput)>.content.pos-content:has(.cafe-catalog){
  display:grid!important;grid-template-columns:minmax(0,3fr) minmax(320px,2fr)!important;
  align-items:start;gap:18px!important;padding:18px 20px 24px!important;
 }
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cafe-catalog{container-type:inline-size;border-radius:20px;box-shadow:0 6px 24px #183b5908}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cafe-catalog .cafe-catalog-heading{gap:10px;margin:10px 0 16px}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cafe-catalog .cafe-catalog-heading h3{font-size:20px;line-height:1.3}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cafe-catalog #cafeMenuSearch{min-height:46px;border-radius:12px;font-size:16px}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cafe-catalog .cafe-categories{gap:8px;padding:12px 0 16px}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cafe-catalog .cafe-filter{min-height:42px;padding:9px 14px;font-size:13px}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cafe-catalog>#cafeCatalog{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content .cafe-menu-card{padding:8px!important;border-radius:16px;gap:8px!important}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content .cafe-menu-card strong{font-size:14px!important;line-height:1.4!important;min-height:2.8em;-webkit-line-clamp:2}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content .cafe-menu-photo{border-radius:10px}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cafe-catalog>button{min-height:44px;border-radius:12px;font-weight:650}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart{
  top:94px!important;height:calc(100dvh - 190px)!important;max-height:calc(100dvh - 190px)!important;
  min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;
  padding:16px!important;border-radius:20px;scrollbar-gutter:auto;
 }
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart>b{font-size:19px;padding:0 0 12px;margin:0;border-bottom:1px solid var(--border,#e1eaf3)}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart>.pos-order-scroll{
  flex:1 1 auto!important;min-height:90px!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:0 4px 0 0;scrollbar-gutter:stable;overscroll-behavior:contain;
 }
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .cart-item{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,auto)!important;
  gap:10px 12px!important;padding:16px 0!important;align-items:start;
 }
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .cart-main{grid-column:1/-1!important;grid-row:1;gap:12px!important;min-width:0}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .cart-product-photo{flex:0 0 44px;width:44px;height:44px;border-radius:12px}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .cart-description{min-width:0;flex:1}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .cart-description>b{font-size:15px!important;line-height:1.45;word-break:normal;overflow-wrap:anywhere}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .cart-description .label{font-size:12px;line-height:1.5;margin-top:4px}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .qty-control{
  grid-column:1!important;grid-row:2;display:flex;justify-content:flex-start!important;align-items:center;
  flex-wrap:wrap;gap:8px!important;min-width:0;max-width:100%;
 }
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .qty-btn{width:44px;height:44px;min-width:44px;min-height:44px;padding:6px;border-radius:12px;font-size:20px}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .qty-value{min-width:24px;text-align:center;font-size:15px}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .cart-sale-unit{flex:0 1 94px;max-width:94px!important;min-width:0;min-height:44px;margin:0;padding:8px;font-size:13px;border-radius:12px}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .cart-price{
  grid-column:2!important;grid-row:2;display:grid!important;justify-items:end;align-content:start;
  gap:6px;min-width:0!important;text-align:right;border:0;padding:0;
 }
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .cart-price>b{font-size:16px;line-height:1.4;white-space:nowrap}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .cart-price>button{min-height:36px!important;margin:0!important;padding:6px 9px!important;font-size:12px!important;border-radius:9px}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .cart-remove{color:#b42318;background:#fff3f2}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart>.pos-checkout-fixed{
  flex:0 1 auto!important;min-height:0!important;max-height:55%!important;
  overflow-y:auto!important;overscroll-behavior:contain;margin-top:0;padding-top:12px!important;
  border-top:1px solid var(--border,#e1eaf3);background:var(--card,#fff);
 }
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .pos-checkout-fixed>.checkout{margin-top:0!important}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .pos-paybar{
  position:sticky!important;bottom:0!important;left:auto!important;transform:none!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(100px,.8fr);align-items:center;gap:12px;
  width:100%!important;padding:12px 0 0!important;margin-top:8px;background:var(--card,#fff)!important;
  box-shadow:0 -10px 18px var(--card,#fff);z-index:6;box-sizing:border-box;
 }
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .pos-dock-summary{display:grid;gap:3px;min-width:0}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .pos-dock-summary span{font-size:12px;color:var(--muted,#62778b)}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .pos-dock-summary strong{font-size:21px;color:var(--blue,#1268ce);line-height:1.3;overflow-wrap:anywhere}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart .pos-paybar #co{min-height:50px;margin:0!important;font-size:16px;border-radius:13px}
 @container (max-width:580px){
  #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cafe-catalog>#cafeCatalog{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 }
 @container (max-width:400px){
  #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cafe-catalog>#cafeCatalog{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 }
}
@media screen and (min-width:701px) and (max-width:899px){
 #app>.app-shell:has(#posBarcodeInput)>.content.pos-content:has(.cafe-catalog){grid-template-columns:minmax(0,1fr) minmax(300px,.9fr)!important;padding:14px!important;gap:14px!important}
 #app>.app-shell:has(#posBarcodeInput)>.pos-content>.cart{top:94px!important;height:calc(100dvh - 190px)!important;max-height:calc(100dvh - 190px)!important}
}
