/* BUILD416 — Inventory table fit-to-screen + always-visible ACTION column. */
#app #invTable .tableScroll{
  width:100% !important;
  max-width:100% !important;
  overflow-x:hidden !important;
}
#app #invTable table{
  width:100% !important;
  max-width:100% !important;
  table-layout:fixed !important;
  font-size:11px !important;
}
#app #invTable th,
#app #invTable td{
  padding:7px 5px !important;
  min-width:0 !important;
  max-width:none !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  vertical-align:middle !important;
}
#app #invTable th:nth-child(1), #app #invTable td:nth-child(1){width:10% !important;}
#app #invTable th:nth-child(2), #app #invTable td:nth-child(2){width:9% !important;}
#app #invTable th:nth-child(3), #app #invTable td:nth-child(3){width:8% !important;}
#app #invTable th:nth-child(4), #app #invTable td:nth-child(4){width:4% !important;}
#app #invTable th:nth-child(5), #app #invTable td:nth-child(5){width:6.5% !important;}
#app #invTable th:nth-child(6), #app #invTable td:nth-child(6){width:6.5% !important;}
#app #invTable th:nth-child(7), #app #invTable td:nth-child(7){width:7.5% !important;}
#app #invTable th:nth-child(8), #app #invTable td:nth-child(8){width:5% !important;}
#app #invTable th:nth-child(9), #app #invTable td:nth-child(9){width:5.5% !important;}
#app #invTable th:nth-child(10), #app #invTable td:nth-child(10){width:10% !important;}
#app #invTable th:nth-child(11), #app #invTable td:nth-child(11){width:28% !important;}

/* Keep product name readable but bounded so it never pushes ACTION off-screen. */
#app #invTable td:nth-child(1){
  white-space:normal !important;
  line-height:1.2 !important;
  display:table-cell !important;
}
#app #invTable td:nth-child(2),
#app #invTable td:nth-child(3),
#app #invTable td:nth-child(4),
#app #invTable td:nth-child(5),
#app #invTable td:nth-child(6),
#app #invTable td:nth-child(7),
#app #invTable td:nth-child(8),
#app #invTable td:nth-child(9){
  white-space:nowrap !important;
}
#app #invTable td:nth-child(10){
  white-space:normal !important;
  line-height:1.15 !important;
}
#app #invTable .catalogEditTime384{
  display:block !important;
  margin-top:2px !important;
  font-size:9px !important;
  line-height:1.1 !important;
}

/* ACTION is always visible and compact. */
#app #invTable th:nth-child(11),
#app #invTable td:nth-child(11){
  position:sticky !important;
  right:0 !important;
  z-index:3 !important;
  background:#fff !important;
  box-shadow:-7px 0 12px rgba(6,55,38,.07) !important;
  overflow:visible !important;
}
#app #invTable th:nth-child(11){
  z-index:5 !important;
  background:#e4f1e9 !important;
}
#app #invTable .tableActions{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:4px !important;
  width:100% !important;
  min-width:0 !important;
  align-items:stretch !important;
}
#app #invTable .tableActions button{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  min-height:30px !important;
  height:30px !important;
  padding:3px 5px !important;
  font-size:9.5px !important;
  line-height:1 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  border-radius:8px !important;
}
#app #invTable .inventoryRow{
  height:68px !important;
  min-height:68px !important;
  max-height:68px !important;
}

/* Pager stays inside the viewport and never creates horizontal overflow. */
#app .inventoryPager{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  flex-wrap:wrap !important;
}
#app .inventoryPager .actions{
  min-width:0 !important;
  flex-wrap:wrap !important;
}

@media (max-width:1250px) and (min-width:801px){
  #app #invTable table{font-size:10px !important;}
  #app #invTable th,#app #invTable td{padding:6px 3px !important;}
  #app #invTable th:nth-child(1), #app #invTable td:nth-child(1){width:9% !important;}
  #app #invTable th:nth-child(2), #app #invTable td:nth-child(2){width:8% !important;}
  #app #invTable th:nth-child(3), #app #invTable td:nth-child(3){width:7% !important;}
  #app #invTable th:nth-child(4), #app #invTable td:nth-child(4){width:4% !important;}
  #app #invTable th:nth-child(5), #app #invTable td:nth-child(5){width:6% !important;}
  #app #invTable th:nth-child(6), #app #invTable td:nth-child(6){width:6% !important;}
  #app #invTable th:nth-child(7), #app #invTable td:nth-child(7){width:7% !important;}
  #app #invTable th:nth-child(8), #app #invTable td:nth-child(8){width:5% !important;}
  #app #invTable th:nth-child(9), #app #invTable td:nth-child(9){width:5% !important;}
  #app #invTable th:nth-child(10), #app #invTable td:nth-child(10){width:9% !important;}
  #app #invTable th:nth-child(11), #app #invTable td:nth-child(11){width:34% !important;}
  #app #invTable .tableActions button{font-size:9px !important;padding-inline:3px !important;}
}

@media (max-width:800px){
  /* On narrow screens preserve usability: allow the table to scroll, but ACTION stays pinned. */
  #app #invTable .tableScroll{overflow-x:auto !important;}
  #app #invTable table{min-width:980px !important;}
  #app #invTable th:nth-child(11), #app #invTable td:nth-child(11){width:230px !important;min-width:230px !important;}
}
