/* HF05FU: layout-only fix for partially received PO with three original document fields.
   Intentionally scoped: normal/manual/Import receiving forms remain unchanged. */
.hf05cu-receive-form.hf05cw-receive-form.hf05fu-partial-receive-form .hf05cw-receive-top > .hf05cu-document-card {
  height:auto;
  min-height:98px;
  min-width:0;
  overflow:visible;
  align-self:stretch;
  box-sizing:border-box;
}
.hf05cu-receive-form.hf05cw-receive-form.hf05fu-partial-receive-form .hf05cw-receive-top .hf05cu-document-fields {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.14fr);
  align-items:center;
  gap:8px;
  width:100%;
  height:100%;
  min-width:0;
}
.hf05cu-receive-form.hf05cw-receive-form.hf05fu-partial-receive-form .hf05cw-receive-top .hf05cu-document-fields > label {
  display:block;
  min-width:0;
  max-width:100%;
  margin:0;
}
.hf05cu-receive-form.hf05cw-receive-form.hf05fu-partial-receive-form .hf05cw-receive-top .hf05cu-document-fields > label > span {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:11px;
}
.hf05cu-receive-form.hf05cw-receive-form.hf05fu-partial-receive-form .hf05cw-receive-top .hf05cu-document-fields input {
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  height:42px;
  box-sizing:border-box;
  padding-inline:7px;
  font-size:12px;
}
/* On narrow mobile widths, keep the date inside its document card instead of
   allowing a third input row to overflow over the scanner/workspace. */
@media(max-width:600px) {
  .hf05cu-receive-form.hf05cw-receive-form.hf05fu-partial-receive-form .hf05cw-receive-top > .hf05cu-document-card {
    height:auto;
    min-height:0;
  }
  .hf05cu-receive-form.hf05cw-receive-form.hf05fu-partial-receive-form .hf05cw-receive-top .hf05cu-document-fields {
    grid-template-columns:repeat(2,minmax(0,1fr));
    height:auto;
    row-gap:8px;
  }
  .hf05cu-receive-form.hf05cw-receive-form.hf05fu-partial-receive-form .hf05cw-receive-top .hf05cu-document-fields > label:last-child {
    grid-column:1 / -1;
  }
}
