.qualification-invoice-preview > [data-po-preview-open] {
  min-width: min(100%, 350px);
  max-width: 100%;
}
.qualification-invoice-preview > [data-po-preview-open][aria-expanded="true"] {
  background: #e4f0e9;
  border: 1px solid #7ba58b;
  color: #234638;
  font-weight: 600;
}
.qualification-invoice-preview > [data-po-preview-open]:focus-visible {
  outline: 3px solid #8bb6a1;
  outline-offset: 2px;
}
.po-preview-panel {
  max-width: 860px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #cbd9d1;
  border-radius: 8px;
  background: #fff;
}
.po-preview-panel > p:first-child {
  margin: 0 0 24px;
  padding: 12px 16px;
  background: #f0f6f3;
  border-radius: 5px;
  font-size: 14px;
}
.po-invoice-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  min-width: 0;
  max-width: 860px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #243e34;
}
.po-invoice-form > *, .po-address-fields > [data-po-lookup] {
  grid-column: 1 / -1;
  min-width: 0;
}
.po-invoice-form > .po-field-contact, .po-invoice-form > .po-field-email {
  grid-column: auto;
}
.po-invoice-form legend {
  margin-bottom: 22px;
  font-size: 21px;
  font-weight: 700;
}
.po-invoice-form label, .po-address-fields label {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.po-invoice-form input:not([type="hidden"]), .po-invoice-form textarea, .po-invoice-form select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 7px 0 0;
  padding: 10px 12px;
  border: 1px solid #b8c9bf;
  border-radius: 5px;
  background: #fff;
  color: #243e34;
  font: inherit;
  font-weight: 400;
}
.po-invoice-form textarea { min-height: 110px; resize: vertical; }
.po-invoice-form :is(input, textarea, select, button):focus-visible {
  outline: 3px solid #8bb6a1;
  outline-offset: 2px;
}
.po-invoice-form button {
  width: auto;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #b8c9bf;
  border-radius: 5px;
  background: #f0f6f3;
  color: #194e3d;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.po-invoice-form > button:last-child {
  justify-self: start;
  background: #194e3d;
  color: #fff;
  border-color: #194e3d;
}
.po-invoice-form button:disabled { opacity: .5; cursor: not-allowed; }
.po-address-fields {
  display: grid;
  grid-template-columns: minmax(130px, 200px) minmax(0, 1fr);
  gap: 14px 24px;
}
.po-address-fields > label:first-child { order: 1; }
.po-address-fields > label:last-child { order: 2; }
.po-address-fields > [data-po-lookup] { order: 3; }
.po-address-fields [data-po-lookup] > button { margin: 0 8px 8px 0; }
.po-invoice-form p { margin: 0; }
.po-invoice-form [data-po-address-status], .po-invoice-form [data-po-upload-status] {
  margin-top: 10px;
  color: #536c5e;
  font-size: 14px;
}
.po-invoice-form [data-po-address-status]:empty { display: none; }
.po-invoice-form [data-po-upload] { padding-top: 18px; border-top: 1px solid #dbe5df; }
.po-invoice-form [data-po-upload] > p:first-child { margin-bottom: 10px; font-weight: 600; }
.po-invoice-form .po-payment-terms { padding: 16px; border-radius: 5px; background: #f0f6f3; line-height: 1.6; }
.po-invoice-form [hidden] { display: none !important; }
@media (max-width: 600px) {
  .po-preview-panel { padding: 18px; }
  .po-invoice-form, .po-address-fields { grid-template-columns: minmax(0, 1fr); }
  .po-invoice-form > .po-field-contact, .po-invoice-form > .po-field-email { grid-column: 1 / -1; }
}
