/* BUILD425 — Approved Inventory Action colors + low-jank POS terminal controls. */

/* Inventory ACTION: compact 2x2, distinct colors, fixed geometry. */
#app #invTable .inventoryActionGrid425{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(72px,1fr)) !important;
  gap:5px !important;
  width:100% !important;
  min-width:154px !important;
  align-items:stretch !important;
}
#app #invTable .inventoryActionGrid425 .invAction425{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  min-width:0 !important;
  width:100% !important;
  height:30px !important;
  min-height:30px !important;
  padding:0 7px !important;
  border:0 !important;
  border-radius:8px !important;
  color:#fff !important;
  font-size:9px !important;
  line-height:1 !important;
  font-weight:900 !important;
  letter-spacing:.02em !important;
  white-space:nowrap !important;
  box-shadow:0 2px 7px rgba(12,31,24,.12) !important;
  text-shadow:none !important;
  transform:none !important;
  transition:opacity .08s linear,box-shadow .08s linear !important;
  touch-action:manipulation;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
  contain:layout paint style;
}
#app #invTable .inventoryActionGrid425 .invAction425 span{
  display:inline-grid !important;
  place-items:center !important;
  width:14px !important;
  height:14px !important;
  flex:0 0 14px !important;
  font-size:13px !important;
  line-height:1 !important;
  color:#fff !important;
}
#app #invTable .inventoryActionGrid425 .invAction425 b{
  font:inherit !important;
  color:inherit !important;
}
#app #invTable .inventoryActionGrid425 .invHistory425{background:#1675e8 !important;}
#app #invTable .inventoryActionGrid425 .invTag425{background:#f0a000 !important;}
#app #invTable .inventoryActionGrid425 .invEdit425{background:#11934d !important;}
#app #invTable .inventoryActionGrid425 .invDelete425{background:#df3137 !important;}
#app #invTable .inventoryActionGrid425 .invAction425:hover:not(:disabled){
  opacity:.92 !important;
  box-shadow:0 3px 9px rgba(12,31,24,.16) !important;
  transform:none !important;
}
#app #invTable .inventoryActionGrid425 .invAction425:active:not(:disabled){
  opacity:.78 !important;
  box-shadow:0 1px 3px rgba(12,31,24,.10) !important;
  transform:none !important;
}
#app #invTable .inventoryActionGrid425 .invAction425:focus-visible{
  outline:2px solid #0c2d21 !important;
  outline-offset:2px !important;
}

/* Desktop action column stays readable without widening the whole table. */
@media (min-width:901px){
  #app #invTable .inventoryStableTable423 th:last-child,
  #app #invTable .inventoryStableTable423 td:last-child{
    width:172px !important;
    min-width:172px !important;
    max-width:172px !important;
  }
}
@media (max-width:900px){
  #app #invTable .inventoryActionGrid425{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    min-width:0 !important;
    gap:7px !important;
  }
  #app #invTable .inventoryActionGrid425 .invAction425{
    height:38px !important;
    min-height:38px !important;
    font-size:10px !important;
  }
}

/* POS terminal — keep all bottom/right controls fast on low-spec PCs. */
#app .posScreen .checkoutActions,
#app .posScreen .checkoutGroup,
#app .posScreen .cartFixedFooter,
#app .posScreen .posScanFooter355,
#app .posScreen .cartSummary,
#app .posScreen .cartTotal{
  transform:translateZ(0);
  backface-visibility:hidden;
  contain:layout paint style;
}
#app .posScreen .checkoutActions{
  scroll-behavior:auto !important;
  overscroll-behavior:contain;
}
#app .posScreen .checkoutActions .posBtn,
#app .posScreen .cartFixedFooter button,
#app .posScreen .posToolbar button,
#app .posScreen .cashKeypad button,
#app .posScreen .tenderButtons button{
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
  transform:none !important;
  filter:none !important;
  animation:none !important;
  transition:background-color .07s linear,border-color .07s linear,opacity .07s linear !important;
  will-change:auto !important;
}
#app .posScreen .checkoutActions .posBtn:hover:not(:disabled),
#app .posScreen .cartFixedFooter button:hover:not(:disabled),
#app .posScreen .posToolbar button:hover:not(:disabled),
#app .posScreen .cashKeypad button:hover:not(:disabled),
#app .posScreen .tenderButtons button:hover:not(:disabled){
  filter:none !important;
  transform:none !important;
  opacity:.94 !important;
  box-shadow:none !important;
}
#app .posScreen .checkoutActions .posBtn:active:not(:disabled),
#app .posScreen .cartFixedFooter button:active:not(:disabled),
#app .posScreen .posToolbar button:active:not(:disabled),
#app .posScreen .cashKeypad button:active:not(:disabled),
#app .posScreen .tenderButtons button:active:not(:disabled){
  transform:none !important;
  filter:none !important;
  opacity:.78 !important;
  box-shadow:none !important;
}
#app .posScreen .checkoutActions .posBtn:focus-visible,
#app .posScreen .cartFixedFooter button:focus-visible{
  outline:2px solid #ffc62e !important;
  outline-offset:-2px !important;
}

/* Prevent text/buttons at the terminal bottom from reflowing during state changes. */
#app .posScreen .checkoutActions .posBtn{
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
#app .posScreen .checkoutActions .posBtn,
#app .posScreen .checkoutActions .posBtn small,
#app .posScreen .cartFixedFooter,
#app .posScreen .cartFixedFooter *{
  font-synthesis:none;
}
#app .posScreen .cartFixedFooter{
  isolation:isolate;
}

@media (prefers-reduced-motion:reduce){
  #app #invTable .inventoryActionGrid425 *,
  #app .posScreen .checkoutActions *,
  #app .posScreen .cartFixedFooter *{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }
}
