/* Purchase requisition, order and goods-receipt Stitch exports, 8 October 2026.
   Screen composition only: source records and authorized actions remain owned by domain modules. */
.tv-stitch-purchasing {padding:24px;background:var(--tv-surface-muted,#f3f7fb);border-radius:12px;color:var(--tv-text,#122c46);}
.tv-stitch-purchasing .workspace-hero {display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px;}
.tv-stitch-purchasing .workspace-hero h2 {font-size:28px;letter-spacing:-.035em;margin:0 0 8px;}
.tv-stitch-purchasing .workspace-hero p {font-size:14px;line-height:1.6;color:var(--tv-text-muted,#4d6178);max-width:85ch;}
.tv-stitch-purchasing .workspace-hero-actions {display:flex;gap:8px;flex-wrap:wrap;}
.tv-stitch-purchasing .tv-route-context {display:flex;gap:8px;flex-wrap:wrap;color:var(--tv-text-muted,#4d6178);font-size:12px;margin-top:12px;}
.tv-stitch-purchasing .workspace-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0;}
.tv-stitch-purchasing .workspace-stat {display:grid;gap:8px;background:var(--tv-surface,#fff);border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;padding:20px;min-width:0;}
.tv-stitch-purchasing .workspace-stat strong {font-size:24px;font-variant-numeric:tabular-nums;}
.tv-stitch-purchasing .workspace-stat :is(span,small) {font-size:12px;color:var(--tv-text-muted,#4d6178);}
.tv-stitch-purchasing .tv-route-main {display:grid;gap:20px;min-width:0;}
.tv-stitch-purchasing .workspace-main {display:grid;gap:20px;min-width:0;}
.tv-stitch-purchasing .route-context-bar {display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
.tv-stitch-purchasing :is(.filter-bar,.filter-row) {display:flex;align-items:end;flex-wrap:wrap;gap:12px;background:var(--tv-surface,#fff);border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;padding:16px;}
.tv-stitch-purchasing :is(.filter-bar,.filter-row) > label {display:grid;gap:8px;flex:1;min-width:140px;}
.tv-stitch-purchasing :is(.filter-bar,.filter-row) > label:first-child {flex:2;}
.tv-stitch-purchasing :is(.filter-bar,.filter-row) :is(input,select) {width:100%;}
.tv-stitch-purchasing .filter-bar > :is(input,select) {width:auto;min-width:150px;flex:1 1 150px;}
.tv-stitch-purchasing .filter-bar > input[type="search"] {flex:3 1 260px;}
.tv-stitch-purchasing .table-card {overflow-x:auto;min-width:0;background:var(--tv-surface,#fff);border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;}
.tv-stitch-purchasing table {min-width:860px;}
.tv-stitch-purchasing td {vertical-align:top;padding:16px;}
.tv-stitch-purchasing td > div {display:grid;gap:6px;}
.tv-stitch-purchasing :is(td small,.helper-copy,.route-context-bar) {color:var(--tv-text-muted,#4d6178);font-size:12px;line-height:1.6;}
.tv-stitch-purchasing tbody tr:hover {background:var(--tv-brand-soft,#e8f3fc);}
.tv-stitch-purchasing .pagination {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px;background:var(--tv-surface,#fff);}
.tv-stitch-purchasing .pagination > div {display:flex;gap:8px;}
.tv-stitch-purchasing-detail {display:grid;gap:20px;background:var(--tv-surface-muted,#f3f7fb);padding:20px;color:var(--tv-text,#122c46);}
.tv-stitch-purchasing-detail .panel {border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;background:var(--tv-surface,#fff);padding:20px;min-width:0;overflow-x:auto;}
.tv-stitch-purchasing-detail h3 {font-size:16px;margin:0 0 16px;}
.tv-stitch-purchasing-detail .health-line {display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid var(--tv-border,#c7d4e2);overflow-wrap:anywhere;}
.tv-stitch-purchasing-detail :is(.drawer-header-actions,.sales-order-command) {display:flex;flex-wrap:wrap;gap:12px;}
.tv-stitch-purchasing-detail .helper-copy {font-size:13px;line-height:1.6;color:var(--tv-text-muted,#4d6178);}
.tv-stitch-purchasing-detail table {min-width:650px;}
.tv-stitch-purchasing .filters {display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:16px;background:var(--tv-surface,#fff);border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;}
.tv-stitch-purchasing .filters > label {display:grid;gap:6px;flex:1 1 160px;min-width:0;}
.tv-stitch-purchasing .ledger-pagination {display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px;}
.tv-stitch-purchasing :is(.ledger-pagination-actions,.supplier-payment-command) {display:flex;gap:8px;flex-wrap:wrap;}
.tv-stitch-purchasing .supplier-payment-panel {border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;background:var(--tv-surface,#fff);padding:20px;margin:16px 0;}
.tv-stitch-purchasing .supplier-payment-info {display:flex;justify-content:space-between;gap:16px;padding:8px 0;overflow-wrap:anywhere;}
.tv-stitch-procurement-inspection {background:var(--tv-surface,#fff);border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;padding:24px;margin-top:24px;min-width:0;}
.tv-stitch-procurement-inspection > header {display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--tv-border,#c7d4e2);padding-bottom:16px;}
.tv-stitch-procurement-inspection h3 {margin:0 0 8px;font-size:18px;}
.tv-stitch-procurement-inspection p {font-size:14px;color:var(--tv-text-muted,#4d6178);line-height:1.6;}
.tv-stitch-procurement-inspection :is(.procurement-sourcing-panel,.supplier-match-panel) {border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;padding:20px;min-width:0;overflow-x:auto;}
.tv-stitch-comparison {grid-column:1/-1;}
.tv-stitch-bid-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:20px;margin-top:20px;}
.tv-stitch-bid {padding:20px;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;display:grid;gap:20px;align-content:start;background:var(--tv-surface,#fff);}
.tv-stitch-bid > span {display:grid;gap:12px;}
.tv-stitch-bid small {color:var(--tv-text-muted,#4d6178);line-height:1.7;font-variant-numeric:tabular-nums;}
.tv-stitch-procurement-inspection .tv-stitch-purchasing-detail {grid-template-columns:repeat(2,minmax(0,1fr));padding:20px 0;background:white;}
.tv-stitch-procurement-inspection .tv-stitch-purchasing-detail > :first-child {grid-column:1/-1;}
.tv-stitch-purchasing .tv-trust-band {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
.tv-stitch-purchasing .tv-trust-band > * {display:flex;flex-direction:column;gap:12px;border:1px solid var(--tv-border,#c7d4e2);border-radius:12px;background:var(--tv-surface,#fff);padding:20px;}
.tv-stitch-purchasing .tv-trust-band strong {font-size:24px;}
.tv-stitch-purchasing .filter-row > :is(input,select) {width:auto;flex:1 1 150px;min-width:0;}
@media(max-width:900px){.tv-stitch-purchasing .tv-trust-band{grid-template-columns:repeat(2,minmax(0,1fr));}.tv-stitch-procurement-inspection .tv-stitch-purchasing-detail{grid-template-columns:1fr;}.tv-stitch-procurement-inspection>header{flex-direction:column;}}
@media(max-width:900px){.tv-stitch-purchasing .workspace-hero{flex-direction:column;}.tv-stitch-purchasing .workspace-stats{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:540px){.tv-stitch-purchasing,.tv-stitch-purchasing-detail{padding:12px;}.tv-stitch-purchasing .workspace-stat{padding:12px;}.tv-stitch-purchasing .pagination{align-items:flex-start;flex-direction:column;}}

/* Purchase Orders screen 206af71391bf48d4a38ee073638c705d.  This route-level
   treatment is intentionally stronger than generic legacy .sales-orders rules;
   the renderer, permissions, values, and actions remain unchanged. */
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] {
  --po-ink:#142b45;--po-muted:#61748b;--po-line:#d6e0eb;--po-paper:#fff;
  display:block;min-width:0;padding:24px;border:0;border-radius:0;
  background:#f4f7fb;color:var(--po-ink);
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] > .tv-route-frame {
  display:grid;gap:18px;max-width:1600px;margin:0 auto;color:var(--po-ink);
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .workspace-hero {
  align-items:center;margin:0;padding:2px 0 4px;border:0;
  border-radius:0;background:transparent;box-shadow:none;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .workspace-hero :is(h1,h2) {
  margin:0 0 6px;color:var(--po-ink);font-size:clamp(24px,2vw,30px);letter-spacing:-.035em;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .workspace-hero p {
  max-width:78ch;margin:0;color:var(--po-muted);font-size:14px;line-height:1.55;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .workspace-stats {
  gap:12px;margin:0;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .workspace-stat {
  min-height:100px;padding:16px 18px;border:1px solid var(--po-line);border-radius:10px;
  background:var(--po-paper);box-shadow:none;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .workspace-stat strong {
  color:var(--po-ink);font-size:22px;font-variant-numeric:tabular-nums;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .workspace-body,
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .workspace-main {
  display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-filters {
  align-items:end;gap:10px;padding:14px;border:1px solid var(--po-line);border-radius:10px;
  background:#fff;box-shadow:none;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-filters > :is(input,select) {
  min-width:min(160px,100%);min-height:42px;flex:1 1 160px;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-filters > input[type="search"] {
  flex:2 1 260px;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-register {
  min-width:0;overflow:auto;border:1px solid var(--po-line);border-radius:10px;
  background:#fff;box-shadow:none;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-register:focus-visible {
  outline:3px solid #1769aa;outline-offset:2px;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-register .data-table {
  width:100%;min-width:1120px;border-collapse:separate;border-spacing:0;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-register th {
  position:sticky;top:0;z-index:1;padding:11px 14px;border-bottom:1px solid var(--po-line);
  background:var(--tv-surface-muted,#f3f7fb);color:var(--tv-text-muted,#4d6178);font-size:11px;letter-spacing:.045em;text-transform:uppercase;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-register td {
  padding:12px 14px;border-bottom:1px solid #e8edf3;background:#fff;color:var(--po-ink);
  vertical-align:middle;white-space:nowrap;font-variant-numeric:tabular-nums;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-register tbody tr:hover td {
  background:#f5f9fd;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-pagination {
  padding:12px 14px;border-top:1px solid var(--po-line);background:#fff;color:var(--po-muted);
}
@media(max-width:900px) {
  .purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] {padding:16px;}
  .purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .workspace-hero {align-items:flex-start;}
  .purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .workspace-stats {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:540px) {
  .purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] {padding:10px;}
  .purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .workspace-hero {padding:2px 0 4px;}
  .purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .workspace-stats {gap:8px;}
  .purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .workspace-stat {min-height:88px;padding:12px;}
  .purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-inline-head {align-items:flex-start;flex-wrap:wrap;padding:14px;}
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-inline-inspection {
  min-width:0;overflow:hidden;border:1px solid var(--po-line,#d6e0eb);border-radius:10px;background:#fff;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-inline-inspection .purchase-order-drawer-body {
  min-width:0;overflow-x:auto;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-inline-head {
  display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--po-line,#d6e0eb);
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-inline-head h2 {
  margin:3px 0;color:var(--po-ink,#142b45);font-size:20px;line-height:1.3;overflow-wrap:anywhere;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-inline-head p {
  margin:0;color:var(--po-muted,#61748b);font-size:13px;
}
.purchase-orders-host[data-stitch-screen="206af71391bf48d4a38ee073638c705d"] .purchase-order-inline-kicker {
  color:var(--po-muted,#61748b);font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
}

/* Supplier bill detail: Stitch 43915, fitted to the existing drawer and its real capabilities. */
.supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] {
  --bill-ink:#142b45;--bill-muted:#5d7188;--bill-line:#d7e1ec;
  display:grid;gap:12px;padding:14px;background:#f6f8fb;color:var(--bill-ink);
}
.supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] > .panel {
  min-width:0;padding:15px;border:1px solid var(--bill-line);border-radius:10px;
  background:#fff;box-shadow:none;overflow-x:auto;
}
.supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] > .panel > h3 {
  margin:0 0 10px;padding-bottom:10px;border-bottom:1px solid #e8edf3;
  color:var(--bill-ink);font-size:13px;letter-spacing:.035em;
}
.supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] .health-line {
  display:grid;grid-template-columns:minmax(110px,.75fr) minmax(0,1.25fr);gap:12px;
  padding:8px 0;border-bottom:1px solid #edf1f5;overflow-wrap:anywhere;
}
.supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] .health-line:last-child {border-bottom:0;}
.supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] .health-line > span {color:var(--bill-muted);}
.supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] .health-line > :last-child {color:var(--bill-ink);text-align:right;}
.supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] .p2p-table-scroll {
  max-width:100%;overflow:auto;border:1px solid #e3eaf1;border-radius:8px;
}
.supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] table {min-width:560px;width:100%;}
.supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] th {
  background:#f0f4f8;color:#465b72;font-size:11px;letter-spacing:.03em;text-transform:uppercase;
}
.supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] td {padding:9px 10px;vertical-align:top;}
.supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] :is(button,a,input,select):focus-visible {outline:3px solid #1769aa;outline-offset:2px;}
@media(max-width:520px) {
  .supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] {padding:9px;gap:9px;}
  .supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] > .panel {padding:12px;}
  .supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] .health-line {grid-template-columns:minmax(0,1fr);gap:3px;}
  .supplier-bill-detail[data-stitch-screen="43915d697f9a43da88822050a2ff7ee8"] .health-line > :last-child {text-align:left;}
}

/* Stitch Payment Runs direction, mapped onto the existing data-backed route.
   No Stitch sample amounts, bank actions, or invented bill readiness is used. */
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] {
  --run-ink:#142b45;--run-muted:#61748b;--run-line:#d4deeb;
  display:grid;gap:18px;max-width:1600px;margin:0 auto;color:var(--run-ink);
}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .workspace-hero {
  align-items:center;padding:22px 24px;border:1px solid var(--run-line);
  border-radius:14px;background:#fff;
}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .workspace-hero h1 {
  margin:0 0 6px;color:var(--run-ink);font-size:clamp(24px,2vw,30px);letter-spacing:-.035em;
}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .workspace-hero p {max-width:80ch;color:var(--run-muted);line-height:1.55;}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .workspace-stats {
  grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;
  border:0;border-radius:0;background:transparent;
}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .workspace-stat {
  gap:8px;min-width:0;min-height:108px;padding:16px 18px;
  border:1px solid var(--run-line);border-radius:12px;background:#fff;
  box-shadow:0 2px 8px rgb(20 43 69 / 5%);
}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .workspace-stat strong {
  color:var(--run-ink);font-size:clamp(18px,1.5vw,23px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .workspace-body,
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .workspace-main {display:grid;gap:16px;min-width:0;}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-register,
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .workspace-main > .panel {
  min-width:0;overflow:hidden;border:1px solid var(--run-line);border-radius:12px;background:#fff;box-shadow:none;
}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-filters {
  align-items:end;gap:10px;padding:14px 16px;border:0;border-bottom:1px solid var(--run-line);border-radius:0;background:#f7f9fc;
}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-filters > label {min-width:min(220px,100%);gap:6px;}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-register table,
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-line-register table {
  width:100%;min-width:900px;border-collapse:separate;border-spacing:0;
}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-register th,
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-line-register th {
  padding:12px 14px;border-bottom:1px solid var(--run-line);background:#f7f9fc;color:#52657c;font-size:11px;letter-spacing:.045em;text-transform:uppercase;
}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-register td,
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-line-register td {
  padding:13px 14px;border-bottom:1px solid #e8edf4;vertical-align:middle;
}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-register tbody tr:last-child td,
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-line-register tbody tr:last-child td {border-bottom:0;}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-register tbody tr:hover,
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-line-register tbody tr:hover {background:#f2f7ff;}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-empty {padding:24px;border:0;border-radius:0;background:#fff;}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-empty h3 {color:var(--run-ink);}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-empty p {max-width:76ch;color:var(--run-muted);line-height:1.6;}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-pick-row {
  display:grid;grid-template-columns:auto minmax(180px,1.4fr) minmax(150px,1fr) minmax(140px,.8fr);
  align-items:center;gap:12px;padding:12px;border:1px solid var(--run-line);border-radius:8px;background:#fff;
}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-pick-row > span {display:grid;gap:4px;min-width:0;}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-pick-row small {color:var(--run-muted);overflow-wrap:anywhere;}
.payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-pick-balance {text-align:right;font-variant-numeric:tabular-nums;}
.payment-runs-server-host .payment-run-drawer .payment-run-detail {gap:12px;}
.payment-runs-server-host .payment-run-drawer .payment-run-detail > .panel {border:1px solid var(--run-line);border-radius:10px;box-shadow:none;}
@media(max-width:900px) {
  .payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .workspace-hero {align-items:flex-start;}
  .payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .workspace-stats {grid-template-columns:repeat(2,minmax(0,1fr));}
  .payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-pick-row {grid-template-columns:auto minmax(0,1fr);}
  .payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-pick-balance,
  .payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .payment-run-pick-row > input[inputmode="decimal"] {grid-column:2;text-align:left;width:100%;}
}
@media(max-width:520px) {
  .payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .workspace-stats {grid-template-columns:minmax(0,1fr);gap:8px;}
  .payment-runs-server-host .tv-route-frame[data-route-id="payment-runs"] .workspace-stat {min-height:0;padding:12px 14px;}
}

/* Exact Stitch compositions for requisitions, RFQ, receipts, credits, matching,
   bills and supplier settlements. */
.tv-stitch-purchasing:is(
  [data-stitch-screen="9dfc78dce32b46ef89dddc23a7b741f9"],
  [data-stitch-route-screen="9dfc78dce32b46ef89dddc23a7b741f9"],
  [data-stitch-screen="0f071c340c9e46e0a67dfba3d1318679"],
  [data-stitch-route-screen="0f071c340c9e46e0a67dfba3d1318679"],
  [data-stitch-screen="1efd48eea8e541738fbe7bf3e6aa845c"],
  [data-stitch-route-screen="1efd48eea8e541738fbe7bf3e6aa845c"],
  [data-stitch-screen="a9d355d2081e44b2bc96021d1bb82b59"],
  [data-stitch-route-screen="a9d355d2081e44b2bc96021d1bb82b59"],
  [data-stitch-screen="c7804a5a474442e3b6a8640d973000e6"],
  [data-stitch-route-screen="c7804a5a474442e3b6a8640d973000e6"],
  [data-stitch-screen="678a6b6967254c55974be6090f7f698b"],
  [data-stitch-route-screen="678a6b6967254c55974be6090f7f698b"],
  [data-stitch-screen="e0336bca7fd74e5183c0e0f2476988af"],
  [data-stitch-route-screen="e0336bca7fd74e5183c0e0f2476988af"]
) > .tv-route-frame {
  display:grid;
  gap:16px;
  max-width:1600px;
  margin-inline:auto;
}
.tv-stitch-purchasing:is(
  [data-stitch-screen="9dfc78dce32b46ef89dddc23a7b741f9"],
  [data-stitch-route-screen="9dfc78dce32b46ef89dddc23a7b741f9"],
  [data-stitch-screen="0f071c340c9e46e0a67dfba3d1318679"],
  [data-stitch-route-screen="0f071c340c9e46e0a67dfba3d1318679"],
  [data-stitch-screen="1efd48eea8e541738fbe7bf3e6aa845c"],
  [data-stitch-route-screen="1efd48eea8e541738fbe7bf3e6aa845c"],
  [data-stitch-screen="a9d355d2081e44b2bc96021d1bb82b59"],
  [data-stitch-route-screen="a9d355d2081e44b2bc96021d1bb82b59"],
  [data-stitch-screen="c7804a5a474442e3b6a8640d973000e6"],
  [data-stitch-route-screen="c7804a5a474442e3b6a8640d973000e6"],
  [data-stitch-screen="678a6b6967254c55974be6090f7f698b"],
  [data-stitch-route-screen="678a6b6967254c55974be6090f7f698b"],
  [data-stitch-screen="e0336bca7fd74e5183c0e0f2476988af"],
  [data-stitch-route-screen="e0336bca7fd74e5183c0e0f2476988af"]
) .workspace-hero {
  padding:18px 20px;
  border:1px solid var(--tv-border,#c7d4e2);
  border-radius:12px;
  background:var(--tv-surface,#fff);
}
.tv-stitch-purchasing:is(
  [data-stitch-screen="9dfc78dce32b46ef89dddc23a7b741f9"],
  [data-stitch-route-screen="9dfc78dce32b46ef89dddc23a7b741f9"],
  [data-stitch-screen="0f071c340c9e46e0a67dfba3d1318679"],
  [data-stitch-route-screen="0f071c340c9e46e0a67dfba3d1318679"],
  [data-stitch-screen="1efd48eea8e541738fbe7bf3e6aa845c"],
  [data-stitch-route-screen="1efd48eea8e541738fbe7bf3e6aa845c"],
  [data-stitch-screen="a9d355d2081e44b2bc96021d1bb82b59"],
  [data-stitch-route-screen="a9d355d2081e44b2bc96021d1bb82b59"],
  [data-stitch-screen="c7804a5a474442e3b6a8640d973000e6"],
  [data-stitch-route-screen="c7804a5a474442e3b6a8640d973000e6"],
  [data-stitch-screen="678a6b6967254c55974be6090f7f698b"],
  [data-stitch-route-screen="678a6b6967254c55974be6090f7f698b"],
  [data-stitch-screen="e0336bca7fd74e5183c0e0f2476988af"],
  [data-stitch-route-screen="e0336bca7fd74e5183c0e0f2476988af"]
) .workspace-stats {gap:12px;margin-block:0;}
@media(max-width:680px) {
  .tv-stitch-purchasing:is(
    [data-stitch-screen="9dfc78dce32b46ef89dddc23a7b741f9"],
    [data-stitch-route-screen="9dfc78dce32b46ef89dddc23a7b741f9"],
    [data-stitch-screen="0f071c340c9e46e0a67dfba3d1318679"],
    [data-stitch-route-screen="0f071c340c9e46e0a67dfba3d1318679"],
    [data-stitch-screen="1efd48eea8e541738fbe7bf3e6aa845c"],
    [data-stitch-route-screen="1efd48eea8e541738fbe7bf3e6aa845c"],
    [data-stitch-screen="a9d355d2081e44b2bc96021d1bb82b59"],
    [data-stitch-route-screen="a9d355d2081e44b2bc96021d1bb82b59"],
    [data-stitch-screen="c7804a5a474442e3b6a8640d973000e6"],
    [data-stitch-route-screen="c7804a5a474442e3b6a8640d973000e6"],
    [data-stitch-screen="678a6b6967254c55974be6090f7f698b"],
    [data-stitch-route-screen="678a6b6967254c55974be6090f7f698b"],
    [data-stitch-screen="e0336bca7fd74e5183c0e0f2476988af"],
    [data-stitch-route-screen="e0336bca7fd74e5183c0e0f2476988af"]
  ) .workspace-hero {padding:14px;}
}
