/* Owner PO controls only. Composer, shared dashboard, and Finance keep their own styles. */
:is(.owner-purchasing-controls, .owner-purchasing-dialog) {
  --po-ink: #20201e;
  --po-muted: #60645f;
  --po-line: #dedfda;
  --po-canvas: #f5f5f4;
  color: var(--po-ink);
  background: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.5;
}
.owner-purchasing-controls.dashboard-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--po-line);
  border-radius: 20px;
  box-shadow: none;
}
:is(.owner-purchasing-controls, .owner-purchasing-dialog) :is(h2, h3, h4, p) { margin: 0; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) h2 { color: var(--po-ink); font-size: 1.25rem; letter-spacing: -.025em; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) :is(h3, h4) { color: var(--po-ink); font-size: .875rem; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .section-heading { gap: 16px; align-items: flex-start; margin-bottom: 0; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .section-heading > div { min-width: 0; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) :is(.card-subtitle, .owner-card-note) { color: var(--po-muted); font-size: .8125rem; line-height: 1.6; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .card-subtitle { margin-top: 8px; max-width: 60ch; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .owner-po-eyebrow { margin-bottom: 8px; color: var(--po-muted); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .button { min-height: 44px; min-width: 44px; padding: 10px 16px; border-radius: 12px; font: inherit; font-size: .8125rem; font-weight: 700; white-space: normal; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .button-primary { background: #24241f; border-color: #24241f; color: #fff; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .button-ghost { background: #fff; border: 1px solid var(--po-line); color: var(--po-ink); }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .button-danger { background: #fff5f0; border: 1px solid #edd2c5; color: #913c1f; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .button:hover:not(:disabled) { filter: brightness(.96); }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) :is(button, input, select, summary, [tabindex]):focus-visible { outline: 2px solid #24241f; outline-offset: 3px; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) :is(button, input, select):disabled { opacity: .6; cursor: not-allowed; }
.owner-purchasing-controls > .owner-card-note { margin: 16px 0; }
.owner-purchasing-controls .owner-po-list-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.owner-purchasing-controls .owner-po-count { color: var(--po-muted); font-size: .75rem; white-space: nowrap; }
.owner-purchasing-controls .owner-po-table { border: 1px solid var(--po-line); border-radius: 16px; overflow: auto; }
.owner-purchasing-controls .owner-po-table table { width: 100%; min-width: 660px; border-collapse: collapse; }
.owner-purchasing-controls .owner-po-table-caption { padding: 12px 16px; color: var(--po-muted); text-align: left; font-size: .75rem; }
.owner-purchasing-controls .owner-po-table :is(th, td) { padding: 16px; vertical-align: middle; border-bottom: 1px solid var(--po-line); font-size: .8125rem; }
.owner-purchasing-controls .owner-po-table thead th { color: var(--po-muted); background: var(--po-canvas); font-size: .6875rem; font-weight: 700; }
.owner-purchasing-controls .owner-po-table tbody tr:last-child > * { border-bottom: 0; }
.owner-purchasing-controls .owner-po-table th[scope="row"] { color: var(--po-ink); font-weight: 600; }
.owner-purchasing-controls .owner-po-table small { display: block; margin-top: 4px; color: var(--po-muted); font-size: .6875rem; font-weight: 400; }
.owner-purchasing-controls :is(.owner-po-row-action, .owner-po-money) { white-space: nowrap; }
.owner-purchasing-controls .owner-po-money { font-variant-numeric: tabular-nums; font-weight: 600; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .owner-po-status { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 10px; background: #f2eedb; color: #685621; font-size: .6875rem; font-weight: 700; white-space: nowrap; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .owner-po-status.is-partial { background: #e7eef4; color: #345469; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .owner-po-status.is-complete { background: #e5eddf; color: #3b563b; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .owner-po-status.is-cancelled { background: #eeedea; color: #60645f; }
.owner-purchasing-controls .owner-po-empty { display: grid; gap: 8px; padding: 24px; border: 1px dashed var(--po-line); border-radius: 16px; background: var(--po-canvas); }
.owner-purchasing-controls .owner-po-empty p { max-width: 58ch; color: var(--po-muted); font-size: .8125rem; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .owner-po-feedback { color: var(--po-ink); font-size: .8125rem; overflow-wrap: anywhere; }
:is(.owner-purchasing-controls, .owner-purchasing-dialog) .owner-po-feedback:not(:empty) { padding: 12px 16px; border-left: 3px solid #f56a3a; background: #faf5f1; border-radius: 0 10px 10px 0; }
.owner-purchasing-controls .owner-po-feedback:not(:empty) { margin-top: 16px; }
.owner-purchasing-dialog.owner-po-dialog { width: min(100% - 32px, 840px); max-height: min(92dvh, 960px); padding: 0; border: 1px solid var(--po-line); border-radius: 24px; box-shadow: 0 24px 64px #20201e33; }
.owner-purchasing-dialog::backdrop { background: #20201e80; }
.owner-purchasing-dialog .owner-po-form { gap: 24px; padding: 24px; }
.owner-purchasing-dialog .owner-po-supplier { margin-top: 8px; color: var(--po-muted); font-size: .875rem; overflow-wrap: anywhere; }
.owner-purchasing-dialog .owner-po-overview { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; padding: 16px; background: var(--po-canvas); border-radius: 16px; }
.owner-purchasing-dialog .owner-po-overview > span:not(.owner-po-status) { display: grid; gap: 4px; color: var(--po-muted); font-size: .6875rem; }
.owner-purchasing-dialog .owner-po-overview strong { color: var(--po-ink); font-size: .875rem; font-variant-numeric: tabular-nums; }
.owner-purchasing-dialog .owner-po-items { display: grid; gap: 12px; }
.owner-purchasing-dialog .owner-po-summary-lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.owner-purchasing-dialog .owner-po-summary-lines li { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--po-line); border-radius: 16px; }
.owner-purchasing-dialog .owner-po-item-heading { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-size: .8125rem; overflow-wrap: anywhere; }
.owner-purchasing-dialog .owner-po-item-heading span { color: var(--po-muted); }
.owner-purchasing-dialog .owner-po-quantities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.owner-purchasing-dialog .owner-po-quantities span { display: grid; gap: 4px; color: var(--po-muted); font-size: .6875rem; }
.owner-purchasing-dialog .owner-po-quantities strong { color: var(--po-ink); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.owner-purchasing-dialog :is(.owner-po-notice, .owner-po-value-preview) { padding: 16px; border-radius: 16px; background: var(--po-canvas); }
.owner-purchasing-dialog .owner-po-value-preview { display: grid; gap: 8px; border: 1px solid var(--po-line); }
.owner-purchasing-dialog .owner-po-history { padding: 0 16px; border: 1px solid var(--po-line); border-radius: 16px; font-size: .8125rem; }
.owner-purchasing-dialog .owner-po-history summary { min-height: 44px; padding: 12px 0; box-sizing: border-box; cursor: pointer; font-weight: 700; }
.owner-purchasing-dialog .owner-po-history ul { padding-left: 20px; overflow-wrap: anywhere; }
.owner-purchasing-dialog .owner-po-history li + li { margin-top: 8px; }
.owner-purchasing-dialog .owner-po-fields { gap: 16px; }
.owner-purchasing-dialog .owner-po-form label { gap: 8px; color: var(--po-ink); font-size: .8125rem; }
.owner-purchasing-dialog .owner-po-form :is(input, select) { min-height: 44px; padding: 10px 12px; border-color: #a5a8a1; border-radius: 10px; color: var(--po-ink); font: inherit; }
.owner-purchasing-dialog .owner-po-form input[type="checkbox"] { width: 24px; height: 24px; min-height: 24px; accent-color: #24241f; }
.owner-purchasing-dialog .owner-po-form label:has(> input[type="checkbox"]) { grid-template-columns: 24px 1fr; align-items: center; min-height: 44px; }
.owner-purchasing-dialog .owner-po-line { gap: 16px; padding: 16px; border-color: var(--po-line); border-radius: 16px; }
.owner-purchasing-dialog .owner-po-line legend { max-width: 100%; padding: 0 8px; color: var(--po-ink); font-size: .875rem; overflow-wrap: anywhere; }
.owner-purchasing-dialog .owner-po-detail-actions { align-items: center; gap: 8px; }
.owner-purchasing-dialog .owner-po-detail-actions p { flex-basis: 100%; color: var(--po-muted); font-size: .8125rem; }
.owner-purchasing-dialog .owner-po-refresh-actions { padding-top: 16px; border-top: 1px solid var(--po-line); }
.owner-purchasing-dialog .owner-receipt-intro { display: grid; gap: 8px; font-size: .8125rem; }
.owner-purchasing-dialog .owner-receipt-lines { display: grid; gap: 24px; }
.owner-purchasing-dialog .owner-receipt-order-facts { display: grid; gap: 8px; padding: 12px 16px; background: var(--po-canvas); border-radius: 12px; color: var(--po-muted); font-size: .75rem; }
.owner-purchasing-dialog .owner-receipt-order-facts strong { color: var(--po-ink); }
.owner-purchasing-dialog :is(.owner-receipt-quantity-group, .owner-receipt-lots) { display: grid; gap: 12px; }
.owner-purchasing-dialog .owner-receipt-rejection { grid-column: 1 / -1; }
.owner-purchasing-dialog .owner-receipt-lots { padding-top: 16px; border-top: 1px solid var(--po-line); }
.owner-purchasing-dialog .owner-receipt-lot { background: #fafaf8; }
.owner-purchasing-dialog .owner-receipt-submit { justify-self: start; }
@media (max-width: 600px) {
  .owner-purchasing-controls.dashboard-card { padding: 16px; }
  .owner-purchasing-controls .section-heading { flex-direction: column; }
  .owner-purchasing-controls .owner-po-list-actions { width: 100%; justify-content: space-between; }
  .owner-purchasing-dialog.owner-po-dialog { width: calc(100% - 16px); max-height: 94dvh; border-radius: 20px; }
  .owner-purchasing-dialog .owner-po-form { padding: 16px; }
  .owner-purchasing-dialog .owner-po-fields { grid-template-columns: minmax(0, 1fr); }
  .owner-purchasing-dialog .owner-po-quantities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-purchasing-dialog .owner-po-overview { gap: 12px 16px; }
  .owner-purchasing-dialog .owner-po-overview > .owner-po-status { flex-basis: auto; }
  .owner-purchasing-dialog .owner-receipt-submit { width: 100%; }
}

/* D25 only: approved receipt overview and native PO receiving presentation. */
.v2-pw[data-v2-pw-area="receipts"],.owner-purchasing-dialog[data-v2-po-mode="receive"] {font-family:"Plus Jakarta Sans Catalog",sans-serif;color:#222320;}
.v2-pw[data-v2-pw-area="receipts"] :is(h2,h3,h4,strong),.owner-purchasing-dialog[data-v2-po-mode="receive"] :is(h2,h3,h4,legend,strong) {font-family:"Plus Jakarta Sans Catalog",sans-serif;font-weight:700;}
.v2-pw[data-v2-pw-area="receipts"] {gap:16px;}
.v2-pw[data-v2-pw-area="receipts"] .v2-pw-toolbar {gap:12px;}
.v2-pw[data-v2-pw-area="receipts"] .v2-pw-note {margin:0;padding:12px 16px;font-size:14px;}
.v2-pw[data-v2-pw-area="receipts"] .v2-pw-receipt-search input {font:400 16px/1.5 "Plus Jakarta Sans Catalog",sans-serif;background:#fff;}
.v2-pw[data-v2-pw-area="receipts"] :is(.v2-pw-button,.v2-pw-receipt-search label) {font-weight:600;}
.v2-pw[data-v2-pw-area="receipts"] .v2-pw-table caption {font-size:20px;line-height:28px;padding:16px;}
.v2-pw[data-v2-pw-area="receipts"] .v2-pw-table :is(th,td) {padding:12px 16px;font-size:14px;line-height:22px;}
.v2-pw[data-v2-pw-area="receipts"] .v2-pw-table thead th {font-weight:600;color:#6b706c;}
.v2-pw[data-v2-pw-area="receipts"] .v2-pw-table small {font-size:12px;line-height:18px;margin-top:4px;}
.v2-pw[data-v2-pw-area="receipts"] [data-v2-pw-detail] {padding:20px;}
.v2-pw[data-v2-pw-area="receipts"] [data-v2-pw-detail] .v2-pw-columns {grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.v2-pw[data-v2-pw-area="receipts"] .v2-pw-lines>div {gap:12px;padding:8px 0;font-size:14px;}
.v2-pw[data-v2-pw-area="receipts"] .v2-pw-lines dd {font-weight:600;}
.owner-purchasing-dialog.owner-po-dialog[data-v2-po-mode="receive"] {width:min(1060px,calc(100vw - 48px));max-height:calc(100dvh - 48px);border:1px solid #e8e6e1;border-radius:20px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-form {padding:24px;gap:16px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] h2 {font-size:24px;line-height:32px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] :is(h3,legend) {font-size:16px;line-height:24px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] h4 {font-size:14px;line-height:22px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-eyebrow {font-size:12px;letter-spacing:0;text-transform:none;margin-bottom:4px;font-weight:500;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-supplier {margin-top:4px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-overview {padding:12px 16px;gap:12px 24px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-overview>span:not(.owner-po-status) {font-size:12px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-layout {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:24px;align-items:start;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-editor {display:grid;gap:16px;min-width:0;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-intro {font-size:14px;line-height:22px;gap:8px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-card-note {font-size:12px;line-height:20px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-lines {gap:16px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-line {padding:16px;gap:12px;border:1px solid #e8e6e1;border-radius:16px;min-width:0;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-line legend {padding:0 6px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-order-facts {padding:12px;background:#f6f5f2;font-size:12px;gap:8px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] :is(.owner-receipt-order-facts,.owner-receipt-impact-line) dl {margin:0;display:grid;gap:8px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] :is(.owner-receipt-order-facts,.owner-receipt-impact-line) dl>div {display:flex;justify-content:space-between;gap:12px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] :is(.owner-receipt-order-facts,.owner-receipt-impact-line) dt {color:#6b706c;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] :is(.owner-receipt-order-facts,.owner-receipt-impact-line) dd {margin:0;text-align:right;font-weight:600;color:#222320;overflow-wrap:anywhere;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-form label {display:grid;gap:6px;font-size:14px;font-weight:600;line-height:22px;min-width:0;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-form :is(input,select,textarea) {width:100%;min-width:0;min-height:44px;box-sizing:border-box;border:1px solid #d5d8d3;border-radius:10px;color:#222320;background:#fff;padding:10px 12px;font:400 14px/22px "Plus Jakarta Sans Catalog",sans-serif;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-form textarea {resize:vertical;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-form small {color:#6b706c;font-size:12px;font-weight:400;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-input {display:flex;align-items:stretch;min-width:0;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-input:has(>span) {border:1px solid #d5d8d3;border-radius:10px;overflow:hidden;background:#fff;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-input:has(>span)>input {border:0;border-radius:0;flex:1;width:0;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-input>span {display:flex;align-items:center;padding:8px 12px;background:#f6f5f2;color:#6b706c;font-size:12px;font-weight:400;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-select {position:relative;display:block;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-select select {appearance:none;padding-right:40px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-select svg {position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none;width:20px;height:20px;color:#6b706c;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-preview {position:sticky;top:0;gap:16px;background:#fff;padding:20px;min-width:0;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-impact-line {display:grid;gap:12px;padding-bottom:16px;border-bottom:1px solid #e8e6e1;font-size:14px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-preview [data-receipt-preview] {font-size:14px;line-height:22px;background:#f6f5f2;padding:12px;border-radius:12px;overflow-wrap:anywhere;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-warning {font-size:14px;line-height:22px;color:#913c1f;background:#fff0e8;padding:12px;border-radius:10px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] [hidden] {display:none!important;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-submit {justify-self:end;font-size:14px;font-weight:700;}
@media(max-width:760px) {
 .v2-pw[data-v2-pw-area="receipts"] [data-v2-pw-detail] .v2-pw-columns {grid-template-columns:minmax(0,1fr);}
 .v2-pw[data-v2-pw-area="receipts"] .v2-pw-table :is(th,td),.surface-dashboard .v2-pw[data-v2-pw-area="receipts"] .v2-pw-table :is(th,td) {padding:4px 0;}
 .v2-pw[data-v2-pw-area="receipts"] .v2-pw-table caption {padding:0 0 12px;}
 .v2-pw[data-v2-pw-area="receipts"] .v2-pw-receipt-search {gap:8px;}
 .v2-pw[data-v2-pw-area="receipts"] .v2-pw-receipt-search label {flex-basis:100%;}
 .v2-pw[data-v2-pw-area="receipts"] [data-v2-pw-detail] {padding:16px;}
 .owner-purchasing-dialog.owner-po-dialog[data-v2-po-mode="receive"] {width:100%;max-width:100%;height:100dvh;max-height:100dvh;inset:0;margin:0;border-radius:0;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-form {padding:16px;gap:16px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] h2 {font-size:22px;line-height:30px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-layout {grid-template-columns:minmax(0,1fr);gap:16px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-preview {position:static;padding:16px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-form :is(input,select,textarea) {font-size:16px;line-height:24px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-lot .owner-po-fields {grid-template-columns:minmax(0,1fr);}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-line {padding:12px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-input>span {padding:8px;font-size:12px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-submit {width:100%;}
}

/* Allocate native header/body/footer; original actions and live feedback remain in DOM order. */
.owner-purchasing-dialog.owner-po-dialog[data-v2-po-mode="receive"] {height:min(960px,calc(100dvh - 48px));overflow:hidden;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-form {height:100%;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-form>.section-heading {flex:none;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-scroll {display:grid;gap:16px;flex:1;min-height:0;overflow:auto;padding:2px 4px;scroll-padding:12px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-scroll:focus-visible {outline:2px solid #c54118;outline-offset:-2px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-actions {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;flex:none;padding-top:12px;border-top:1px solid #e8e6e1;background:#fff;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-actions .owner-po-feedback {margin:0;max-height:100px;overflow:auto;font-size:12px;line-height:18px;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-feedback:empty {padding:0;border:0;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-actions .owner-po-refresh-actions {margin:0;padding:0;border:0;}
.owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-submit {justify-self:stretch;}
@media(max-width:760px) {
 .owner-purchasing-dialog.owner-po-dialog[data-v2-po-mode="receive"] {height:100dvh;max-height:100dvh;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-actions {grid-template-columns:minmax(0,1fr);gap:8px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-actions .owner-po-refresh-actions {justify-content:stretch;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-actions .owner-po-refresh-actions .button {flex:1;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-actions .owner-po-feedback {max-height:72px;}
}

/* D25 route title uses the same already bundled static face as its receipt content. */
.surface-dashboard:has(.v2-pw[data-v2-pw-area="receipts"]) h1 {font-family:"Plus Jakarta Sans Catalog",sans-serif;font-weight:700;}

/* Measured mobile correction: retain source/actions while compacting repeated vertical spacing. */
@media(max-width:760px) {
 .v2-pw[data-v2-pw-area="receipts"] {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .v2-pw[data-v2-pw-area="receipts"]>* {grid-column:1 / -1;min-width:0;}
 .v2-pw[data-v2-pw-area="receipts"]>[data-v2-pw-receipt-count],.v2-pw[data-v2-pw-area="receipts"]>[data-v2-pw-receipt-results] {grid-column:auto;margin:0;font-size:14px;line-height:22px;}
 .v2-pw[data-v2-pw-area="receipts"]>.v2-pw-toolbar:first-child {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;}
 .v2-pw[data-v2-pw-area="receipts"]>.v2-pw-toolbar:first-child .v2-pw-source {margin:0;font-size:12px;line-height:18px;}
 .v2-pw[data-v2-pw-area="receipts"]>.v2-pw-toolbar:first-child .v2-pw-button {padding:10px 12px;font-size:14px;}
 .v2-pw[data-v2-pw-area="receipts"] .v2-pw-note {padding:10px 12px;font-size:12px;line-height:18px;}
 .v2-pw[data-v2-pw-area="receipts"] .v2-pw-receipt-search {flex-wrap:nowrap;align-items:flex-end;gap:8px;}
 .v2-pw[data-v2-pw-area="receipts"] .v2-pw-receipt-search label {min-width:0;flex:1;flex-basis:0;font-size:14px;line-height:20px;gap:6px;}
 .v2-pw[data-v2-pw-area="receipts"] .v2-pw-receipt-search .v2-pw-button {padding:10px;font-size:14px;flex:none;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-overview {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;align-items:center;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-overview .owner-po-status {white-space:normal;text-align:center;font-size:12px;padding:6px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-overview strong {font-size:14px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-intro {gap:6px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-order-facts {gap:6px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-order-facts dl {gap:6px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-lot .owner-po-fields {grid-template-columns:repeat(2,minmax(0,1fr));}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-lot .owner-po-fields>label:nth-child(-n+2) {grid-column:1 / -1;}
}

/* Measured 390px native-only correction: keep the first 44px quantity field inside the scroll body. */
@media(max-width:760px) {
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-po-form {gap:12px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-scroll {gap:8px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-editor {gap:8px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-quantity-group {gap:8px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-intro {gap:4px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-order-facts {gap:4px;}
 .owner-purchasing-dialog[data-v2-po-mode="receive"] .owner-receipt-order-facts dl {gap:4px;}
}

/* D25: preserve complete source dates and Rupiah totals in desktop receipt history. */
@media(min-width:761px) {
 .v2-pw[data-v2-pw-area="receipts"] .v2-pw-receipt-history td:is([data-label="Tanggal"],[data-label="Nilai stok"]) {white-space:nowrap;overflow-wrap:normal;}
}

/* D25 P2: action words stay intact and receipt row titles remain in ordinary flow. */
.v2-pw[data-v2-pw-area="receipts"] .v2-pw-receipt-history td[data-label="Aksi"] .v2-pw-button {white-space:nowrap;overflow-wrap:normal;word-break:normal;}
.surface-dashboard .v2-pw[data-v2-pw-area="receipts"] .v2-pw-receipt-history tbody th[scope="row"] {position:static;top:auto;z-index:auto;background:transparent;}
