
.warehouse-transfer-items-table {
  min-width: 860px;
  width: 100%;
  table-layout: fixed;
}

.warehouse-transfer-items-table th:nth-child(1),
.warehouse-transfer-items-table td:nth-child(1) {
  width: 44px;
  text-align: center;
}

.warehouse-transfer-items-table th:nth-child(2),
.warehouse-transfer-items-table td:nth-child(2) {
  width: 44px;
  text-align: center;
}

.warehouse-transfer-items-table th:nth-child(3),
.warehouse-transfer-items-table td:nth-child(3) {
  width: 210px;
  min-width: 210px;
}

.warehouse-transfer-items-table th:nth-child(4),
.warehouse-transfer-items-table td:nth-child(4) {
  width: auto;
}

.warehouse-transfer-items-table th:nth-child(5),
.warehouse-transfer-items-table td:nth-child(5),
.warehouse-transfer-items-table th:nth-child(7),
.warehouse-transfer-items-table td:nth-child(7) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  text-align: center;
}

.warehouse-transfer-items-table th:nth-child(8),
.warehouse-transfer-items-table td:nth-child(8) {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  text-align: center;
}

.warehouse-transfer-items-table th:nth-child(6),
.warehouse-transfer-items-table td:nth-child(6) {
  width: 120px;
  text-align: center;
}

.warehouse-transfer-items-table .warehouse-transfer-readonly-qty,
.warehouse-transfer-items-table .warehouse-transfer-readonly-qty input {
  background: #eceff2;
  color: #26323a;
  text-align: center;
}

.warehouse-transfer-items-table .warehouse-transfer-readonly-qty input {
  width: 100%;
  border: 0;
  cursor: default;
  pointer-events: none;
}


.warehouse-transfer-items-table .warehouse-transfer-qty-input {
  background: #fff;
  text-align: center;
}
.warehouse-transfer-items-table tfoot input {
  text-align: center;
}



/* ==========================================================================
   warehouse-transfer — 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) {
  #warehouse-transfer .item-master-panel .grid-wrap {
    border-top: 0;
    max-height: 70vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
  }
  #warehouse-transfer .item-master-panel .grid-wrap > table {
    min-width: 0;
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
  }
  #warehouse-transfer .item-master-panel .grid-wrap > table > thead {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
  }
  #warehouse-transfer .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;
  }
  #warehouse-transfer .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;
  }
  #warehouse-transfer .item-master-panel .grid-wrap > table > tbody > tr > td::before { content: none; }
  #warehouse-transfer .item-master-panel .grid-wrap > table > thead > tr > th:nth-child(3),
  #warehouse-transfer .item-master-panel .grid-wrap > table > tbody > tr > td:nth-child(3):not([colspan]) { display: none; }
  #warehouse-transfer .item-master-panel .grid-wrap > table > thead > tr > th:nth-child(4),
  #warehouse-transfer .item-master-panel .grid-wrap > table > tbody > tr > td:nth-child(4):not([colspan]) { display: none; }
  #warehouse-transfer .item-master-panel .grid-wrap > table > thead > tr > th:nth-child(7),
  #warehouse-transfer .item-master-panel .grid-wrap > table > tbody > tr > td:nth-child(7):not([colspan]) { display: none; }
  /* Keep the short primary identifier on one line */
  #warehouse-transfer .item-master-panel .grid-wrap > table > thead > tr > th:nth-child(2),
  #warehouse-transfer .item-master-panel .grid-wrap > table > tbody > tr > td:nth-child(2) { white-space: nowrap; }
  /* Action / Open control: compact, centered, touch-friendly */
  #warehouse-transfer .item-master-panel .grid-wrap > table .open-cell,
  #warehouse-transfer .item-master-panel .grid-wrap > table .edit-cell,
  #warehouse-transfer .item-master-panel .grid-wrap > table .pd-open-cell,
  #warehouse-transfer .item-master-panel .grid-wrap > table .po-icon-cell {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding: 6px 5px;
  }
  #warehouse-transfer .item-master-panel .grid-wrap > table .open-cell a,
  #warehouse-transfer .item-master-panel .grid-wrap > table .edit-cell button,
  #warehouse-transfer .item-master-panel .grid-wrap > table .pd-open-cell button,
  #warehouse-transfer .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;
  }
  #warehouse-transfer .item-master-panel .grid-wrap > table > tbody > tr > td[colspan] {
    text-align: center;
    color: #6a7785;
    white-space: normal;
  }
}
