.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; }
}
.downgrade-organisation-invoice { border: 1px solid #d1dcd7; border-radius: 5px; padding: 12px 16px; }
.downgrade-organisation-invoice > summary { cursor: pointer; font-weight: 600; }
.downgrade-organisation-invoice__content { padding-top: 12px; }
.downgrade-organisation-invoice h4 { margin: 0 0 10px; font-size: 1rem; font-weight: 700; }
.downgrade-organisation-invoice p { margin: 0 0 12px; }
.downgrade-organisation-invoice__checks, .downgrade-organisation-invoice__deadline {
  padding: 18px;
  margin: 20px 0;
  border-radius: 5px;
  border-left: 3px solid #78a4c4;
  background: #f0f7fc;
}
.downgrade-organisation-invoice__checks li { margin-bottom: 8px; }
.downgrade-organisation-invoice__deadline { border-color: #d7a037; background: #fff8e8; }
.downgrade-organisation-invoice aside > p:last-child { margin-bottom: 0; }
.downgrade-organisation-invoice__steps { margin: 12px 0 20px; padding-left: 26px; }
.downgrade-organisation-invoice__steps > li { padding-left: 6px; margin-bottom: 16px; }
.downgrade-organisation-invoice__steps > li::marker { font-weight: 700; }
.downgrade-organisation-invoice__steps p { margin: 6px 0 0; }
.downgrade-organisation-invoice .uk-button-default:not(:disabled) {
  border-color: #1b5545;
  color: #fff;
  background: #1b5545;
  white-space: normal;
  text-transform: none;
}
.downgrade-organisation-invoice .uk-button-default:not(:disabled):hover { background: #143e33; }
.downgrade-organisation-invoice__reassurance { margin-top: 10px !important; font-size: .9rem; color: #53685b; }
.po-invoice-form label.po-invoice-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f0f7fc;
  border-radius: 5px;
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
}
.po-invoice-form .po-invoice-confirmation input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 3px 0 0;
  padding: 0;
}
