/* ERP workspace-v5 active operations layer; retained because purchase receiving and reversal are live product flows. */
body[data-workspace="erp"] .w5-receipt-dashboard{display:flex;flex-direction:column;gap:12px;padding:14px 0 0}
body[data-workspace="erp"] .w5-receipt-dashboard__heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid #d8e4ea;border-radius:9px;background:#fff}
body[data-workspace="erp"] .w5-receipt-kicker{font-size:9px;letter-spacing:.14em;font-weight:850;color:#2d728b}
body[data-workspace="erp"] .w5-receipt-dashboard__heading h4{margin:3px 0;font-size:17px;color:#193548}
body[data-workspace="erp"] .w5-receipt-dashboard__heading p{margin:0;color:#718493;font-size:11px}
body[data-workspace="erp"] .w5-receipt-dashboard__scope{padding:5px 8px;border:1px solid #d7e3e8;border-radius:999px;background:#f7fafb;color:#68808e;font-size:9px;white-space:nowrap}
body[data-workspace="erp"] .w5-receipt-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
body[data-workspace="erp"] .w5-receipt-metric{min-width:0;padding:10px 11px;border:1px solid #d9e5e9;border-radius:8px;background:#fff}
body[data-workspace="erp"] .w5-receipt-metric__label{display:block;color:#6d808c;font-size:10px}
body[data-workspace="erp"] .w5-receipt-metric__value{display:block;margin-top:5px;color:#244f66;font-size:21px;font-variant-numeric:tabular-nums}
body[data-workspace="erp"] .w5-receipt-metric__note{display:block;margin-top:3px;color:#8797a2;font-size:9px;line-height:1.5}
body[data-workspace="erp"] .w5-receipt-metric.accent{border-color:#b9dfe2;background:#f4fbfb}
body[data-workspace="erp"] .w5-receipt-metric.accent .w5-receipt-metric__value{color:#167f86}
body[data-workspace="erp"] .w5-receipt-metric.warning{border-color:#ead8a9;background:#fffaf0}
body[data-workspace="erp"] .w5-receipt-metric.warning .w5-receipt-metric__value{color:#956f25}
body[data-workspace="erp"] .w5-receipt-progress{padding:12px 14px;border:1px solid #d9e5e9;border-radius:9px;background:#fff}
body[data-workspace="erp"] .w5-receipt-progress__head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:9px}
body[data-workspace="erp"] .w5-receipt-progress__head strong{font-size:13px;color:#284c5d}.w5-receipt-progress__head small{color:#81909b;font-size:9px}
body[data-workspace="erp"] .w5-receipt-progress__list{display:flex;flex-direction:column;gap:8px}
body[data-workspace="erp"] .w5-receipt-progress__row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,.8fr) auto;gap:9px;align-items:center;padding:9px;border:1px solid #edf1f3;border-radius:7px;background:#f9fbfc}
body[data-workspace="erp"] .w5-receipt-progress__info{display:flex;justify-content:space-between;gap:10px;min-width:0}
body[data-workspace="erp"] .w5-receipt-progress__identity{display:flex;flex-direction:column;min-width:0}.w5-receipt-progress__identity strong{font-size:11px;color:#284b5d}.w5-receipt-progress__identity span{font-size:9px;color:#82939f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-workspace="erp"] .w5-receipt-progress__amount{font-size:10px;color:#54717d;white-space:nowrap}.w5-receipt-progress__track{height:7px;border-radius:99px;background:#e8eef1;overflow:hidden}.w5-receipt-progress__bar{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3d8ca0,#3ba18d)}.w5-receipt-progress__remaining{font-size:9px;color:#70838d;white-space:nowrap}
body[data-workspace="erp"] .w5-receipt-progress__empty,.w5-receipt-progress__more{color:#8999a3;font-size:10px}
body[data-workspace="erp"] .w5-receipt-steps{display:flex;flex-direction:column;gap:9px}
body[data-workspace="erp"] .w5-receipt-step{padding:12px;border:1px solid #d9e5e9;border-radius:9px;background:#fff}
body[data-workspace="erp"] .w5-receipt-step__heading{display:flex;gap:9px;align-items:flex-start;margin-bottom:10px}.w5-receipt-step__number{width:24px;height:24px;display:grid;place-items:center;flex:0 0 24px;border-radius:7px;background:#eaf5f6;color:#187b83;font-size:9px;font-weight:850}.w5-receipt-step__heading strong{display:block;font-size:12px;color:#294d5e}.w5-receipt-step__heading small{display:block;margin-top:2px;color:#81909a;font-size:9px;line-height:1.5}
body[data-workspace="erp"] .w5-receipt-step__fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.w5-receipt-step__fields label{min-width:0}
body[data-workspace="erp"] .w5-receipt-history-tools{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 12px;border:1px solid #d9e5e9;border-radius:9px;background:#f8fbfc}
body[data-workspace="erp"] .w5-receipt-reversal-log{margin-top:10px;border-top:1px solid #e5ecef;padding-top:10px}.w5-receipt-reversal-log table{width:100%;border-collapse:collapse}
body[data-workspace="erp"] .w5-receipt-reverse{padding:5px 8px;border:1px solid #d7c17d;border-radius:7px;background:#fffaf0;color:#806221;font-size:9px}
body[data-workspace="erp"] .receipt-warning{margin-top:8px;padding:9px 11px;border:1px solid #ead7a4;border-radius:8px;background:#fffaf0;color:#765c2a;font-size:10px;line-height:1.6}
body[data-workspace="erp"] .receipt-match-message{margin-top:8px;padding:8px 10px;border-radius:7px;background:#f1f7f8;color:#56727f;font-size:10px}
@media(max-width:1000px){body[data-workspace="erp"] .w5-receipt-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.w5-receipt-progress__row{grid-template-columns:1fr}.w5-receipt-step__fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){body[data-workspace="erp"] .w5-receipt-dashboard__heading{flex-direction:column}.w5-receipt-step__fields{grid-template-columns:1fr}}

/* Legacy receipt DOM aliases retained while the v5 purchase renderer upgrades the visual hierarchy. */
body[data-workspace="erp"] .purchase-receipt-workspace{display:flex;flex-direction:column;gap:12px;padding:14px 0}
body[data-workspace="erp"] .purchase-receipt-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid #d9e5e9;border-radius:9px;background:#fff}
body[data-workspace="erp"] .receipt-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body[data-workspace="erp"] .receipt-warning{padding:9px 11px;border:1px solid #ead7a4;border-radius:8px;background:#fffaf0;color:#765c2a;font-size:10px;line-height:1.6}
body[data-workspace="erp"] .purchase-receipt-history{border:1px solid #d9e5e9;border-radius:9px;background:#fff;overflow:auto}
body[data-workspace="erp"] .receipt-match-message{padding:8px 10px;border:1px solid #c8dfe2;border-radius:7px;background:#f1f8f8;color:#52717b;font-size:10px}
@media(max-width:1000px){body[data-workspace="erp"] .receipt-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){body[data-workspace="erp"] .receipt-form-grid{grid-template-columns:1fr}}
