/* Presentation shared by every host of LenzieOfficeReview. */
.invoice-office {text-wrap:pretty;}
.invoice-office .profile-import-result:has([data-source-feedback]:empty) {display:none;}
.invoice-office [data-invoice-office-error] {color:#8b2020;margin-top:1rem}
.invoice-office__top,.invoice-office__brand {display:flex;align-items:center;justify-content:flex-end;gap:12px;}
.invoice-office__top {margin-bottom:12px;}
.invoice-office__brand img {max-width:160px;max-height:52px;object-fit:contain;}
.invoice-office__requirements {margin:0;padding-top:2px;font-family:var(--work-body-font);}
.invoice-office__requirements h3 {margin:0 0 4px;color:var(--ink);font:550 var(--text-body)/1.4 var(--ui-font);}
.invoice-office__requirements p {margin:0 0 12px;max-inline-size:52ch;text-wrap:balance;}
#invoice-office-identity-requirement {letter-spacing:-.015em;}
.invoice-office__requirements p:last-child {margin-bottom:0;}
@container project-editor (width < 480px) {
  .invoice-office__requirements {max-width:32rem;}
}
.invoice-office .project-dialog__field > span {text-wrap:balance;}
@container project-editor (width > 390px) {
  .invoice-office .project-dialog__field > .invoice-routing-error {grid-column:2;}
}
@media(max-width:680px) {
  .invoice-office__brand img {max-width:100px;max-height:36px;}
}

/* The office form uses the diary frame with a stationary action pair and bottom note. */
.main-shell:has(#invoice-office-form) {
  --utility-margin-inline: var(--work-gutter-end);
  --utility-margin-bottom: var(--work-inset-bottom);
}
#invoice-office-form :is(.project-review__section-title,.project-dialog__section-toggle) {
  font: 550 18px/1.3 var(--system-font);
}
#invoice-office-form .project-dialog__field :is(span,input) {
  font: 400 var(--text-body)/1.45 var(--work-body-font);
}

#invoice-office-other .text-action-chip {width:auto;justify-self:start;}
@container project-editor (min-width:721px) {
  .invoice-office .project-dialog-mount > #invoice-office-form {
    grid-template-areas:"sections actions" "note actions";
    grid-template-rows:minmax(0,1fr) auto;
    row-gap:16px;
  }
  #invoice-office-form .invoice-office__side {display:contents;}
  #invoice-office-form .invoice-office__requirements {grid-area:note;align-self:end;}
  #invoice-office-form .invoice-office__requirements h3,
  #invoice-office-form .invoice-office__requirements p {display:inline;margin:0;}
  #invoice-office-form .invoice-office__requirements h3:nth-of-type(2) {margin-inline-start:1em;}
}

.main-shell:has(#invoice-office-form) > .page-header {padding-inline:var(--utility-margin-inline);}
.invoice-office .invoice-office__topics {--review-column-offset:32px;--review-section-gap:18px;}
.invoice-office .invoice-office__topics > .project-dialog__section:last-child {border-block-end:0;}
.invoice-office .office-contact-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-block-start:48px;
  padding-block-end:24px;
}
#invoice-office-other .office-contact-actions > .text-action-chip {flex:0 0 128px;white-space:nowrap;}
.invoice-office .utility-actions__pair > [data-component] {--action-side:var(--utility-action-size);}
.invoice-office .utility-actions__pair > [data-component="C04"] {order:-1;}

.office-extra-contact {position:relative;}
.office-extra-contact .project-dialog__field input {padding-inline-end:42px;}
.office-extra-contact > [data-component="C18"] {position:absolute;inset-inline-end:0;inset-block-end:3px;}
#invoice-office-other [data-remove-bank] {justify-self:end;}

.main-shell:has(#invoice-office-form) .page-header h1 {font:var(--workspace-page-title);inline-size:fit-content;}

[data-office-extra-rows] {display:contents;}
