/* 491 (22-Nov-2026) POS 10.0.44.1 - Add / Edit Product window on tablets (TEA DAY iPad).
   1) The window sits above the side menu and the top bar, so the menu can never cover it.
   2) Form columns can shrink (a long item list no longer pushes the right half off the screen).
   3) Tablet portrait and phones: one column, full screen window, nothing cut. */
/* the page-open animation on .sb-main made a low layer that trapped the window under the top bar and the side menu */
.sb-main:has(div[style*="inset: 0px"][style*="z-index: 100"]){animation:none !important;transform:none !important;opacity:1 !important}
.sb-main div[style*="inset: 0px"][style*="z-index: 100"]{z-index:1200 !important}
div[style*="inset: 0px"][style*="z-index: 100"] > div[style*="max-height: 88vh"]{max-width:calc(100vw - 16px) !important;box-sizing:border-box}
div[style*="max-height: 88vh"] form > div[style*="grid-template-columns: 1fr 1fr"]{grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important}
div[style*="max-height: 88vh"] form > div[style*="grid-template-columns: 1fr 1fr"] > div{min-width:0}
div[style*="max-height: 88vh"] form select,div[style*="max-height: 88vh"] form input,div[style*="max-height: 88vh"] form textarea{max-width:100%;min-width:0;box-sizing:border-box}
div[style*="max-height: 88vh"] form div[style*="display: flex"]{flex-wrap:wrap}
div[style*="max-height: 88vh"] form div[style*="display: flex"] > *{min-width:0}
@media (max-width:1000px){
  div[style*="inset: 0px"][style*="z-index: 100"] > div[style*="max-height: 88vh"]{width:100vw !important;max-width:100vw !important;height:100vh;height:100dvh;max-height:100vh !important;max-height:100dvh !important;border-radius:0 !important}
  div[style*="max-height: 88vh"] form{padding:16px !important}
  div[style*="max-height: 88vh"] form > div[style*="grid-template-columns: 1fr 1fr"]{grid-template-columns:minmax(0,1fr) !important;gap:8px !important}
  div[style*="max-height: 88vh"] form input,div[style*="max-height: 88vh"] form select,div[style*="max-height: 88vh"] form textarea{font-size:16px !important;min-height:44px}
  div[style*="max-height: 88vh"] > div:first-child{position:sticky;top:0;background:#fff;z-index:2}
  div[style*="max-height: 88vh"] > div:first-child button{font-size:26px !important;padding:4px 12px !important}
}
@media (max-width:600px){
  div[style*="max-height: 88vh"] form div[style*="grid-template-columns: repeat(4, 1fr)"]{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}
