.transfer-workspace .panel + .panel {
  margin-top: 22px;
}
.transfer-workspace .panel:has(.supply-combo-field) {
  overflow: visible;
  position: relative;
}
.transfer-workspace .page-heading .toolbar,
.transfer-workspace .transfer-receive-filters > .toolbar {
  padding: 0;
  border: 0;
}
.transfer-workspace .toolbar {
  flex-wrap: wrap;
}
.transfer-receive-filters {
  padding: 22px 25px;
  display: grid;
  gap: 20px;
}
.transfer-direction {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: #e7ece9;
  min-height: 32px;
  align-items: center;
}
.transfer-direction label {
  display: block;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  font-size: 12px;
}
.transfer-direction label > span {
  display: block;
  padding: 0 8px;
  line-height: 24px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
}
.transfer-direction input:checked + span {
  background: white;
  color: var(--primary);
}
.transfer-direction input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.transfer-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.transfer-workspace .field {
  margin: 0;
  min-width: 0;
}
.transfer-workspace .table-wrap > table {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.transfer-workspace .table-wrap > table > thead > tr > th,
.transfer-workspace .transfer-units > thead > tr > th {
  font-size: calc(1em + 1pt);
}
.transfer-workspace tfoot {
  font-weight: 600;
  background: #f3f6f4;
}
.transfer-workspace .transfer-empty {
  text-align: center;
  padding: 30px;
  color: var(--muted);
}
.transfer-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 40px;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 12px;
}
.transfer-pager {
  display: flex;
  align-items: center;
  gap: 4px;
}
.transfer-pager > button {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.transfer-pager > button[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}
.transfer-pager > button:disabled {
  color: var(--muted);
  opacity: 0.45;
  cursor: default;
}
.transfer-pager > button:not(:disabled):hover {
  color: var(--primary);
  background: var(--wash);
}
.transfer-pager-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.transfer-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.transfer-meta > span,
.transfer-comment > span {
  color: var(--muted);
  font-size: 11px;
}
.transfer-meta strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.transfer-comment {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.transfer-comment p {
  margin-bottom: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.transfer-scanner {
  margin-top: 25px !important;
  max-width: 440px;
}
.transfer-scanner input {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.transfer-feedback {
  margin: 18px 25px;
  padding: 12px 15px;
  border-radius: 8px;
  background: #edf5ef;
  color: var(--green-dark);
  font-size: 13px;
}
.padded .transfer-feedback {
  margin: 18px 0 0;
}
.transfer-feedback.error {
  background: #fff1eb;
  color: #9e5143;
}
.transfer-disclosure-heading {
  width: 48px;
}
.transfer-group-toggle {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  color: var(--green-dark);
  font-size: 18px;
  cursor: pointer;
}
.transfer-group-toggle:hover {
  background: #eef4ef;
}
.transfer-unit-row > td {
  background: #f5f8f6;
  padding: 14px 28px;
}
.transfer-units {
  width: 100%;
  background: white;
}
.transfer-workspace .info-note {
  display: block;
  font-size: 12px;
}
@media (min-width: 1250px) {
  .transfer-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .transfer-meta-grid {
    grid-template-columns: 1fr;
  }
  .transfer-workspace .page-heading .toolbar {
    justify-content: flex-start;
  }
  .transfer-receive-filters {
    padding: 18px;
  }
  .transfer-unit-row > td {
    padding: 12px;
  }
}
.transfer-journal-table tbody > tr[data-action] {
  cursor: pointer;
}
.transfer-journal-table tbody > tr[data-action]:hover {
  background: #f3f7f3;
}
.transfer-workspace .transfer-sort {
  color: inherit;
  font-size: inherit;
  white-space: nowrap;
}
.transfer-number-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: white;
}
.transfer-receive-filters .transfer-number-field {
  border-radius: 8px;
  min-height: 44px;
}
.transfer-number-field input {
  min-width: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.transfer-number-clear {
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.transfer-receive-filters .transfer-number-clear {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  font-size: 20px;
}
.transfer-number-clear:hover {
  background: #f1f5f1;
}
.transfer-comment-tooltip {
  width: min(300px, calc(100vw - 24px));
  position: fixed;
  z-index: 100;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  box-shadow: 0 6px 24px #203e3a25;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.transfer-recipient {
  max-width: 600px;
}
.transfer-workspace [data-transfer-path="comment"] {
  min-height: 95px;
  resize: vertical;
}
.transfer-category-totals {
  white-space: nowrap;
}
.transfer-category-totals tbody th {
  font-weight: 500;
  text-align: left;
}

.transfer-preview-dialog {
  width: min(1100px, calc(100vw - 30px));
  max-height: 92vh;
}
.transfer-print-preview {
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  background: #f3f6f3;
}
.transfer-preview-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  padding: 0;
  border: 0;
}
.transfer-preview-actions:first-child {
  margin-bottom: 18px;
}
.transfer-preview-actions:last-child {
  margin-top: 18px;
}
.transfer-print-preview iframe {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 400px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
}
.transfer-preview-warning,
.transfer-preview-state {
  margin: 14px 0;
  font-size: 12px;
  line-height: 1.6;
}
.transfer-preview-state[role="alert"] {
  color: #9e5143;
}
@media (max-width: 650px) {
  .transfer-print-preview {
    padding: 12px;
  }
}
@media print {
  .transfer-preview-actions,
  .transfer-preview-warning,
  .transfer-preview-state {
    display: none;
  }
}

.transfer-recipient-dialog {
  width: min(760px, calc(100vw - 30px));
}
.transfer-recipient-form .supply-combo-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
}
.transfer-recipient-form .supply-combo-field > label {
  margin: 0;
  white-space: nowrap;
}
.transfer-recipient-form > .toolbar,
.transfer-recipient-error-dialog .toolbar {
  padding: 0;
  border: 0;
  margin-top: 22px;
  justify-content: flex-start;
}
.transfer-recipient-error-dialog {
  width: min(490px, calc(100vw - 30px));
}
@media (max-width: 650px) {
  .transfer-recipient-form .supply-combo-field {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
}

/* Source TransfersJournal: two rows on a twelve-column grid, 16px gutters. */
.transfer-journal-layout {
  display: grid;
  padding: 0;
  gap: 16px;
  margin-bottom: 24px;
}
.transfer-journal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.transfer-journal-main > .transfer-direction,
.transfer-journal-main > .transfer-journal-buttons,
.transfer-journal-extra > .transfer-journal-period,
.transfer-journal-extra > .transfer-journal-select {
  grid-column: span 3;
}
.transfer-journal-main > .transfer-journal-number {
  grid-column: span 9;
}
.transfer-journal-main.has-direction > .transfer-journal-number {
  grid-column: span 6;
}
.transfer-workspace .transfer-journal-buttons {
  justify-content: flex-end;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  min-height: 32px;
  padding: 0;
  border: 0;
}
@media screen and (max-width: 1000px) {
  .transfer-journal-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  }
  .transfer-journal-main > .transfer-direction,
  .transfer-journal-main > .transfer-journal-buttons,
  .transfer-journal-main > .transfer-journal-number,
  .transfer-journal-main.has-direction > .transfer-journal-number,
  .transfer-journal-extra > .transfer-journal-period,
  .transfer-journal-extra > .transfer-journal-select {
    grid-column: auto;
  }
  .transfer-workspace .transfer-journal-buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
.transfer-journal-number,
.transfer-journal-period,
.transfer-journal-select {
  min-width: 0;
}
.transfer-journal-number > .field,
.transfer-journal-period > .field,
.transfer-journal-select > .field {
  width: 100%;
}
.transfer-journal-number .transfer-number-field {
  overflow: hidden;
  min-height: 32px;
  height: 32px;
  border-radius: 4px;
}
.transfer-number-search {
  display: grid;
  place-items: center;
  align-self: stretch;
  flex: 0 0 32px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #f2f5f3;
  color: var(--muted);
  cursor: pointer;
}
.transfer-number-search:hover {
  color: var(--green-dark);
  background: #eaf0ec;
}
.transfer-number-search svg,
.transfer-journal-print svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.transfer-journal-print {
  display: grid;
  place-items: center;
  width: 50px;
  min-width: 50px;
  min-height: 32px;
  height: 32px;
  padding: 5px 16px;
  border-radius: 4px;
}
.transfer-journal-select .supply-combo-toggle {
  display: grid;
  place-items: center;
  align-self: stretch;
  flex: 0 0 30px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.transfer-journal-select .supply-combo-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.transfer-journal-select .supply-combo-toggle:hover {
  color: var(--green-dark);
}

/* Source warehouse outgoing screenshot transfer265: unboxed compact filter rows. */
.transfer-journal-panel {
  position: relative;
  overflow: visible;
}
.transfer-journal-panel .transfer-records > .table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 3px #203c4014;
}
.transfer-journal-panel .range-input,
.transfer-journal-select .supply-combo-input {
  min-height: 32px;
  height: 32px;
  border-radius: 4px;
}
.transfer-journal-panel .transfer-number-field > input,
.transfer-journal-panel .range-input input:not([type="hidden"]),
.transfer-journal-select .supply-combo-input > input {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.transfer-journal-panel .range-input input:not([type="hidden"]) {
  padding: 0 3px;
}
.transfer-journal-panel .range-icon {
  height: 30px;
  padding: 0 8px;
  font-size: 16px;
}
.transfer-journal-panel .transfer-number-clear,
.transfer-journal-select .supply-combo-clear {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  font-size: 16px;
}
.transfer-workspace:has(.transfer-journal-panel)
  .page-heading
  .btn:not(.transfer-journal-print),
.transfer-journal-buttons .btn {
  min-height: 32px;
  height: 32px;
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.transfer-journal-buttons svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.transfer-journal-panel .transfer-journal-table {
  table-layout: fixed;
  white-space: normal;
}
.transfer-journal-panel .transfer-journal-table th {
  padding: 4px 8px;
  background: #eef2ef;
  color: var(--ink);
  line-height: 14px;
}
/* Source ComTable's default mini size, also observed in TEST587. */
.transfer-journal-panel .transfer-journal-table thead tr { height: 44px; }
.transfer-journal-panel .transfer-journal-table :is(tbody, tfoot) tr { height: 36px; }
.transfer-journal-panel .transfer-journal-table td {
  padding: 4px 8px;
  line-height: 14px;
  overflow-wrap: anywhere;
}
.transfer-journal-panel .transfer-journal-table thead th:nth-child(1) {
  width: 92px;
}
.transfer-journal-panel .transfer-journal-table thead th:nth-child(2) {
  /* Ten date characters plus cell padding, including the approved larger font. */
  width: calc(10ch + 16px);
}
.transfer-journal-panel .transfer-journal-table td.transfer-created {
  /* Dates may break before the time, never inside the year like free text. */
  overflow-wrap: normal;
  word-break: normal;
}
.transfer-journal-panel .transfer-journal-table thead th:nth-child(6) {
  width: 120px;
}
.transfer-journal-panel .transfer-journal-table thead th:nth-child(7) {
  width: 68px;
}
.transfer-journal-panel .transfer-journal-table thead th:nth-child(8),
.transfer-journal-panel .transfer-journal-table thead th:nth-child(9) {
  width: 96px;
}
.transfer-journal-panel
  .transfer-journal-table:has(thead th:nth-child(9))
  thead
  th:nth-child(3),
.transfer-journal-panel
  .transfer-journal-table:has(thead th:nth-child(9))
  thead
  th:nth-child(4) {
  width: 130px;
}
.transfer-journal-panel .transfer-journal-table tbody tr:nth-child(even),
.transfer-journal-panel .transfer-journal-table tfoot {
  background: #f0f4f1;
}
.transfer-journal-panel .pill {
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  white-space: normal;
}
.transfer-journal-panel .pill::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.transfer-journal-panel .transfer-status-partial::before {
  background: #db9a2f;
}
.transfer-journal-panel .transfer-status-completed::before {
  background: #2a9c62;
}

/* Fixed identifier/date/status/amount columns must leave readable space for
   origin, recipient and comment. Horizontal scrolling belongs to table-wrap. */
@media screen and (max-width:1000px) {
  .transfer-journal-panel .transfer-journal-table { min-width:900px; }
  .transfer-journal-panel .transfer-journal-table:has(thead th:nth-child(9)) { min-width:1000px; }
}
