.po-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; }
.po-workspace { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.po-workspace > div { min-width: 0; }
.po-order-picker { max-width: 31rem; }
.po-header-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.po-item { min-width: 0; margin: 0 0 .8rem; padding: .7rem; border: 1px solid var(--bw-line); border-radius: .55rem; }
.po-item legend { padding: 0 .25rem; font-weight: 700; }
.po-item .bw-grid { margin: .35rem 0; }
.po-item .po-line-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .55rem; }
.bw-panel .po-status:empty { margin: 0; }
.po-subtotal { font-weight: 700; }
.po-screen-report { min-width: 0; }
.po-screen-report .bw-table-wrap { margin-bottom: 1rem; }
.po-screen-report .bw-table { min-width: 31rem; }
.po-screen-report .bw-table :is(th, td):first-child { min-width: 5rem; }
.po-screen-report .bw-table :is(th, td):nth-child(2) { min-width: 9rem; }
.po-mobile-balances, .po-mobile-scroll { display: none; }
.po-notice { padding: .6rem .75rem; background: #edf3ea; border-left: 3px solid #477457; border-radius: .25rem; }
.po-needs-review { background: #fff3dd; border-color: #ad671d; }
.po-history-scroll { max-width: 100%; }
.po-history-scroll .bw-table { min-width: 42rem; }
.po-document { font-family: Inter, sans-serif; color: #171717; }
.po-document .po-doc-brand { font-size: .92em; font-weight: 650; letter-spacing: .01em; }
.po-document .po-doc-title { margin: .35rem 0 .2rem; font-size: 1.25rem; }
.po-document .po-doc-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: .75rem 0; }
.po-document .po-doc-party { min-width: 0; border: 1px solid #b9b9b9; padding: .55rem; overflow-wrap: anywhere; white-space: pre-line; }
.po-document .po-doc-party p { margin: .15rem 0; }
.po-document .po-doc-note { overflow-wrap: anywhere; white-space: pre-line; }
.po-document .po-doc-title, .po-document .po-doc-heading { break-after: avoid; }
.po-document tfoot { display: table-row-group; }

@media (max-width: 760px) {
  .po-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 450px) {
  .po-header-fields { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 600px) {
  .po-desktop-balances { display: none; }
  .po-mobile-scroll { display: block; }
  .po-mobile-balances { display: grid; gap: .6rem; margin: .65rem 0 1rem; padding: 0; list-style: none; }
  .po-mobile-balances li { min-width: 0; padding: .65rem; border: 1px solid var(--bw-line); border-radius: .45rem; overflow-wrap: anywhere; }
  .po-mobile-balances li > p { margin: .2rem 0 .45rem; }
  .po-mobile-balances dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin: 0; }
  .po-mobile-balances dt { color: var(--bw-muted); font-size: .8rem; }
  .po-mobile-balances dd { margin: .1rem 0 0; font-weight: 700; }
}
@media print {
  @page { size: letter portrait; margin: .55in; }
  .po-document .po-doc-title { font-size: 19pt; }
  .po-doc-parties { break-inside: avoid; }
  .po-document .bw-table { margin-block: .11in; }
  .po-document .bw-table tfoot tr { break-inside: avoid; }
}
