

.inventory-adjustment-items-table .warehouse-transfer-readonly-qty,
.inventory-adjustment-items-table .warehouse-transfer-readonly-qty input {
  background: #eceff2;
  color: #26323a;
  text-align: center;
}

.inventory-adjustment-items-table .warehouse-transfer-readonly-qty input {
  width: 100%;
  border: 0;
  cursor: default;
  pointer-events: none;
}


.inventory-adjustment-items-table {
  min-width: 900px;
  width: 100%;
  table-layout: fixed;
}

.inventory-adjustment-items-table th:nth-child(1),
.inventory-adjustment-items-table td:nth-child(1),
.inventory-adjustment-items-table th:nth-child(2),
.inventory-adjustment-items-table td:nth-child(2) {
  width: 44px;
  text-align: center;
}

.inventory-adjustment-items-table th:nth-child(3),
.inventory-adjustment-items-table td:nth-child(3) {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
}

.inventory-adjustment-items-table th:nth-child(4),
.inventory-adjustment-items-table td:nth-child(4) {
  width: auto;
}

.inventory-adjustment-items-table th:nth-child(5),
.inventory-adjustment-items-table td:nth-child(5),
.inventory-adjustment-items-table th:nth-child(7),
.inventory-adjustment-items-table td:nth-child(7) {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  text-align: center;
}

.inventory-adjustment-items-table th:nth-child(6),
.inventory-adjustment-items-table td:nth-child(6) {
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  text-align: center;
}

.inventory-adjustment-items-table th:nth-child(8),
.inventory-adjustment-items-table td:nth-child(8) {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  text-align: center;
}

.inventory-adjustment-items-table td input {
  width: 100%;
  box-sizing: border-box;
}


.inventory-adjustment-items-table td:nth-child(5),
.inventory-adjustment-items-table td:nth-child(6),
.inventory-adjustment-items-table td:nth-child(7) {
  vertical-align: middle;
  padding-left: 6px;
  padding-right: 6px;
}

.inventory-adjustment-items-table td:nth-child(5) input,
.inventory-adjustment-items-table td:nth-child(6) input,
.inventory-adjustment-items-table td:nth-child(7) input {
  text-align: center;
  margin: 0 auto;
  display: block;
}



#inventoryAdjustmentItemsHead,
#inventoryAdjustmentItemsRows,
#inventoryAdjustmentItemsFoot {
    font-size: 13px;
}


#inventoryAdjustmentItemsHead th:nth-child(5),
#inventoryAdjustmentItemsRows td:nth-child(5),
#inventoryAdjustmentItemsFoot td:nth-child(2) {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    text-align: center !important;
}


#inventoryAdjustmentItemsHead th:nth-child(6),
#inventoryAdjustmentItemsRows td:nth-child(6),
#inventoryAdjustmentItemsFoot td:nth-child(3) {
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    text-align: center !important;
}


#inventoryAdjustmentItemsHead th:nth-child(7),
#inventoryAdjustmentItemsRows td:nth-child(7),
#inventoryAdjustmentItemsFoot td:nth-child(4) {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    text-align: center !important;
}


#inventoryAdjustmentItemsRows td:nth-child(5) input,
#inventoryAdjustmentItemsRows td:nth-child(6) input,
#inventoryAdjustmentItemsRows td:nth-child(7) input,
#inventoryAdjustmentItemsFoot input {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    text-align: center !important;
}


#inventoryAdjustmentItemsHead th:nth-child(1),
#inventoryAdjustmentItemsRows td:nth-child(1) {
    width: 40px !important;
    text-align: center;
}


#inventoryAdjustmentItemsHead th:nth-child(2),
#inventoryAdjustmentItemsRows td:nth-child(2) {
    width: 45px !important;
    text-align: center;
}


#inventoryAdjustmentItemsHead th:nth-child(8),
#inventoryAdjustmentItemsRows td:nth-child(8) {
    width: 40px !important;
    text-align: center;
}



/* ==========================================================================
   inventory-adjustment — compact mobile TABLE (module-scoped, <=640px).
   Shows only the most useful columns on phones; other desktop columns are hidden
   VISUALLY (kept in the DOM, still populated, reachable after Open). Desktop
   table unchanged above 640px. Shared compact-table styling for consistency.
   ========================================================================== */
@media (max-width: 640px) {
  #inventory-adjustment .item-master-panel .grid-wrap {
    border-top: 0;
    max-height: 70vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
  }
  #inventory-adjustment .item-master-panel .grid-wrap > table {
    min-width: 0;
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
  }
  #inventory-adjustment .item-master-panel .grid-wrap > table > thead {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
  }
  #inventory-adjustment .item-master-panel .grid-wrap > table > thead > tr > th {
    background: #eef2f7;
    color: #213247;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 5px;
    white-space: normal;
    text-align: left;
    vertical-align: middle;
  }
  #inventory-adjustment .item-master-panel .grid-wrap > table > tbody > tr > td {
    display: table-cell;
    padding: 8px 5px;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: left;
    vertical-align: middle;
    border: 0;
    border-bottom: 1px solid #e3e8ee;
    max-width: none;
    min-width: 0;
    width: auto;
  }
  #inventory-adjustment .item-master-panel .grid-wrap > table > tbody > tr > td::before { content: none; }
  #inventory-adjustment .item-master-panel .grid-wrap > table > thead > tr > th:nth-child(3),
  #inventory-adjustment .item-master-panel .grid-wrap > table > tbody > tr > td:nth-child(3):not([colspan]) { display: none; }
  #inventory-adjustment .item-master-panel .grid-wrap > table > thead > tr > th:nth-child(6),
  #inventory-adjustment .item-master-panel .grid-wrap > table > tbody > tr > td:nth-child(6):not([colspan]) { display: none; }
  /* Keep the short primary identifier on one line */
  #inventory-adjustment .item-master-panel .grid-wrap > table > thead > tr > th:nth-child(2),
  #inventory-adjustment .item-master-panel .grid-wrap > table > tbody > tr > td:nth-child(2) { white-space: nowrap; }
  /* Action / Open control: compact, centered, touch-friendly */
  #inventory-adjustment .item-master-panel .grid-wrap > table .open-cell,
  #inventory-adjustment .item-master-panel .grid-wrap > table .edit-cell,
  #inventory-adjustment .item-master-panel .grid-wrap > table .pd-open-cell,
  #inventory-adjustment .item-master-panel .grid-wrap > table .po-icon-cell {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding: 6px 5px;
  }
  #inventory-adjustment .item-master-panel .grid-wrap > table .open-cell a,
  #inventory-adjustment .item-master-panel .grid-wrap > table .edit-cell button,
  #inventory-adjustment .item-master-panel .grid-wrap > table .pd-open-cell button,
  #inventory-adjustment .item-master-panel .grid-wrap > table .po-icon-cell a {
    display: inline-block;
    min-width: 36px;
    min-height: 32px;
    line-height: 1.5;
    padding: 3px 6px;
  }
  #inventory-adjustment .item-master-panel .grid-wrap > table > tbody > tr > td[colspan] {
    text-align: center;
    color: #6a7785;
    white-space: normal;
  }
}
