
.receiving-page {
  width: 744px;
  min-height: 1052px;
  margin: 0 auto;
  background: #ffffff;
  color: #000;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  font-family: Arial, Helvetica, sans-serif;
}

.receiving-header {
  display: grid;
  grid-template-columns: 90px 1fr 78px;
  gap: 10px;
  align-items: start;
}

.receiving-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 16px 0 22px;
  font-size: 16px;
}

.receiving-title-main {
  grid-column: 2;
  text-align: center;
}

.receiving-title-po {
  grid-column: 3;
  text-align: right;
  padding-right: 18px;
}

.receiving-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 14px;
  font-size: 14px;
}

.receiving-info-line {
  margin-bottom: 8px;
}

.receiving-center-line {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  column-gap: 22px;
  margin-bottom: 22px;
  font-size: 18px;
  align-items: center;
}

.receiving-company-line {
  text-align: center;
  justify-self: center;
  max-width: 100%;
}

.receiving-prn-line {
  text-align: right;
  justify-self: end;
  white-space: nowrap;
}

.receiving-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 14px;
}

.receiving-table th,
.receiving-table td {
  border: 1px solid #aeb7c4;
  height: 32px;
  padding: 3px;
  white-space: normal;
}

.receiving-table th {
  position: static;
  background: #ffffff;
  color: #000;
  font-weight: 400;
  text-align: center;
}


.receiving-table .qty-col {
  width: 62px;
  text-align: center;
}

.receiving-table .signature-col {
  width: 132px;
  text-align: center;
}

.receiving-table .size-col {
  width: 172px;
}

.receiving-table .remarks-col {
  width: 122px;
}


.receiving-table .size-col .ts-wrapper {
  width: 100%;
}
.receiving-table .size-col .ts-control,
.receiving-table .size-col .ts-control input,
.receiving-table .size-col .ts-dropdown {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}
.receiving-table .size-col .ts-control {
  min-height: 28px;
  border: 1px solid #bdd5df;
  border-radius: 6px;
  padding: 3px 8px;
  background: #ffffff;
  box-shadow: none;
  cursor: text;
}
.receiving-table .size-col .ts-control input {
  min-height: unset;
  border: 0;
  padding: 0;
  background: transparent;
}
.receiving-table .size-col .ts-control .item {
  font-size: inherit;
  font-family: inherit;
  font-weight: 700;
  line-height: inherit;
}
.receiving-table .size-col .ts-dropdown {
  z-index: 9999;
  border: 1px solid #bdd5df;
  border-radius: 6px;
}
.receiving-table .size-col .ts-dropdown .option {
  padding: 4px 8px;
}
.receiving-table .size-col .ts-dropdown .option:hover,
.receiving-table .size-col .ts-dropdown .option.active {
  background: #eaf3f7;
  color: inherit;
}

.receiving-table input,
.receiving-table select {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}


.scan-size-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 4px;
  align-items: center;
}






.scan-size-button {
  border: 1px solid #b9d8e1;
  background: #e7f6f8;
  color: var(--brand);
  border-radius: 6px;
  min-height: 28px;
  font-weight: 700;
  cursor: pointer;
}


.receiving-history-panel {
  width: min(980px, 96vw);
}


.receiving-history-wrap {
  max-height: min(62vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
}

.receiving-history-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}

.receiving-history-table th,
.receiving-history-table td {
  white-space: normal;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.receiving-history-table th:nth-child(1),
.receiving-history-table td:nth-child(1) {
  width: 136px !important;
  min-width: 0 !important;
}

.receiving-history-table th:nth-child(2),
.receiving-history-table td:nth-child(2) {
  width: 46px !important;
  min-width: 0 !important;
  text-align: center;
}

.receiving-history-table th:nth-child(3),
.receiving-history-table td:nth-child(3) {
  width: 120px !important;
  min-width: 0 !important;
}

.receiving-history-table th:nth-child(4),
.receiving-history-table td:nth-child(4) {
  width: 74px !important;
  min-width: 0 !important;
}

.receiving-history-table th:nth-child(6),
.receiving-history-table td:nth-child(6),
.receiving-history-table th:nth-child(7),
.receiving-history-table td:nth-child(7) {
  width: 92px !important;
  min-width: 0 !important;
}

.receiving-history-table .history-action-cell {
  text-align: center;
}

.receiving-history-table .small-button {
  width: 78px;
  min-width: 0;
  padding-left: 6px;
  padding-right: 6px;
  box-sizing: border-box;
  white-space: nowrap;
}

.receiving-history-table th {
  font-size: 12px;
}

.receiving-history-table td {
  font-size: 12px;
}

.receiving-history-empty {
  text-align: center;
  color: #65727a;
  padding: 18px 8px;
}


.nothing-follows {
  margin-top: 338px;
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.receiving-remarks-print {
  margin-top: 18px;
  font-size: 13px;
  white-space: pre-wrap;
}

.signature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  margin-top: 48px;
  font-size: 14px;
}

.signature-line {
  display: inline-block;
  width: 200px;
  border-bottom: 1px solid #000;
  margin-left: 8px;
  vertical-align: bottom;
  min-height: 42px;
  position: relative;
}
