/* Quiet, Apple-inspired process cards. Color identifies a stage within its icon. */
.bpm-figure{
 --bpm-green:var(--vi-oasis,#244a30);--bpm-line:#cbd1ce;--bpm-muted:#6a716e;
 container:workflow / inline-size;margin:18px 0 0;padding:22px;
 border:1px solid #eef0ee;border-radius:22px;background:#f5f6f5;
 color:#252b28;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
 font-size:13px;isolation:isolate;
}
.bpm-caption{margin:0 0 14px}
.bpm-caption h3{margin:0;color:#252b28;font-size:18px;line-height:1.5;font-weight:650;text-wrap:balance}
.bpm-caption p{margin:5px 0 0;font-size:13px;line-height:1.6;color:var(--bpm-muted)}
.bpm-icon{display:block;flex:none;width:18px;height:18px}
.bpm-tone--sales{--bpm-tone:72,116,153;--bpm-ink:#365b79}
.bpm-tone--production{--bpm-tone:83,141,117;--bpm-ink:#3c6655}
.bpm-tone--warehouse{--bpm-tone:70,137,145;--bpm-ink:#34676d}
.bpm-tone--shipping{--bpm-tone:125,117,163;--bpm-ink:#655b83}
.bpm-tone--payment{--bpm-tone:171,129,82;--bpm-ink:#806039}
.bpm-tone--finance{--bpm-tone:73,114,83;--bpm-ink:#35593d}
.bpm-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0 0 18px}
.bpm-legend-item{display:inline-flex;align-items:center;gap:5px;color:#69716c;font-size:11px;line-height:1.6}
.bpm-legend-item i{width:6px;height:6px;border-radius:50%;background:rgba(var(--bpm-tone),.85);flex:none}
.bpm-stock-shortcut{display:flex;align-items:flex-start;gap:9px;padding:11px 13px;margin:0 0 20px;border:1px solid #e6eae7;border-radius:12px;background:#ffffffc9;color:#616b65;font-size:12px;line-height:1.7}
.bpm-stock-shortcut>.bpm-icon{margin-top:1px;width:17px;height:17px;color:#698274}
.bpm-stock-shortcut strong{font-weight:600;color:#3e5145;margin-right:7px}
.bpm-stock-shortcut b{font-weight:600;white-space:nowrap;color:#3e5145}
.bpm-stage-label{display:flex;align-items:center;gap:10px;margin-bottom:10px;color:#69716c;font-size:12px;font-weight:600;line-height:1.6}
.bpm-stage-label:after{content:"";height:1px;background:#e2e6e3;flex:1}
.bpm-pair{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.bpm-pair>li{min-width:0;position:relative;display:flex}
.bpm-pair>li:not(:last-child):after{content:"";position:absolute;left:calc(100% + 2px);top:50%;width:20px;border-top:1px solid var(--bpm-line)}
.bpm-pair>li:not(:last-child):before{content:"";position:absolute;left:calc(100% + 14px);top:calc(50% - 3px);width:6px;height:6px;border-top:1px solid var(--bpm-line);border-right:1px solid var(--bpm-line);transform:rotate(45deg)}
.bpm-node{position:relative;min-width:0;width:100%;padding:16px;background:#fff;border:1px solid #e5e9e6;border-radius:16px;box-shadow:0 2px 3px #24372b03,0 5px 14px #24372b05;text-align:left;display:flex;flex-direction:column;align-items:stretch;color:inherit;font:inherit;line-height:1.6;overflow-wrap:anywhere}
button.bpm-node{cursor:pointer;touch-action:manipulation;transition:transform 140ms ease-out}
button.bpm-node:focus-visible{outline:2px solid var(--bpm-green);outline-offset:3px}
button.bpm-node:active{transform:scale(.99)}
.bpm-node-head{display:flex;align-items:center;gap:10px;min-width:0}
.bpm-symbol{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;color:var(--bpm-ink);background:rgba(var(--bpm-tone),.1)}
.bpm-symbol>.bpm-icon{width:19px;height:19px}
.bpm-heading{display:flex;flex-direction:column;min-width:0;gap:1px}
.bpm-number{color:#68716a;font-size:10px;font-weight:550;font-variant-numeric:tabular-nums;line-height:1.4}
.bpm-node-title{margin:0!important;color:#2b332e;font-size:15px!important;line-height:1.5;font-weight:650!important}
.bpm-node .bpm-description{display:block;margin:12px 0 16px!important;color:#59655d!important;font-size:13px!important;line-height:1.75!important;text-wrap:pretty}
.bpm-node-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}
.bpm-role{display:inline-block;padding:3px 7px;background:#f4f6f4;border-radius:6px;color:#626f66;font-size:11px;line-height:1.6}
.bpm-open{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:50%;background:#f5f7f5;color:#7a8a7e}
.bpm-open>.bpm-icon{width:13px;height:13px}
.bpm-row-bridge{height:26px;position:relative}
.bpm-row-bridge svg,.bpm-fork svg,.bpm-merge svg{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke:var(--bpm-line);stroke-width:1;vector-effect:non-scaling-stroke}
.bpm-row-bridge path,.bpm-fork path,.bpm-merge path{vector-effect:non-scaling-stroke}
.bpm-bridge-tip{stroke:#a5b0a9}
.bpm-fork{position:relative;height:44px;margin:0;padding-top:22px}
.bpm-fork>span{position:absolute;top:2px;left:0;right:0;text-align:center;color:#6a746d;font-size:11px;line-height:1.6}
.bpm-parallel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 24px}
.bpm-parallel-title{display:flex;align-items:center;gap:7px;padding:0 2px;font-size:11px;line-height:1.6;color:#68716a}
.bpm-parallel-title strong{display:flex;align-items:center;gap:5px;color:#4f5c53;font-size:12px;font-weight:600}
.bpm-parallel-title strong:before{content:"";width:5px;height:5px;border-radius:50%;background:rgba(var(--bpm-tone),.75)}
.bpm-merge{height:24px}
.bpm-close{padding:0 8%}
.bpm-close .bpm-node{padding:16px 20px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 18px;align-items:center}
.bpm-close .bpm-description{grid-column:1/-1;margin:1px 0 0!important}
.bpm-close .bpm-node-footer{grid-row:1;grid-column:2;margin:0}
.bpm-close .bpm-open{display:none}
.bpm-return{display:flex;align-items:center;gap:10px;margin-top:14px;padding:12px 2px 4px;color:#68716a;font-size:11px;line-height:1.7}
.bpm-return>.bpm-icon{width:17px;height:17px;color:#6f8775}
.bpm-return strong{display:block;margin-bottom:2px;color:#445a4b;font-size:12px;font-weight:600}
.bpm-review-button{flex:none;display:inline-flex;align-items:center;gap:5px;padding:8px 11px;margin-left:auto;min-height:36px;border:1px solid #e0e6e1;border-radius:10px;background:#fff;color:var(--bpm-green);font-size:11px;cursor:pointer;white-space:nowrap;touch-action:manipulation}
.bpm-review-button .bpm-icon{width:13px;height:13px}
.bpm-review-button:focus-visible{outline:2px solid var(--bpm-green);outline-offset:2px}
.bpm-scope{font-size:10px!important;line-height:1.7!important;color:#68716a!important;margin:12px 0 0!important;padding-top:12px;border-top:1px solid #e3e8e4}
@media(hover:hover) and (pointer:fine){button.bpm-node:hover{border-color:#ced8d0;transform:translateY(-1px)}.bpm-review-button:hover{background:#f5f8f5}}
@container workflow (max-width:639px){
 .bpm-pair{grid-template-columns:1fr;gap:23px}
 .bpm-pair>li:not(:last-child):after{left:50%;top:100%;width:0;height:21px;border-top:0;border-left:1px solid var(--bpm-line)}
 .bpm-pair>li:not(:last-child):before{left:calc(50% - 3px);top:calc(100% + 13px);border-top:0;border-right:1px solid var(--bpm-line);border-bottom:1px solid var(--bpm-line);transform:rotate(45deg)}
 .bpm-row-bridge{height:26px}.bpm-row-bridge svg{display:none}
 .bpm-row-bridge:before,.bpm-row-bridge:after{content:"";position:absolute;left:50%;top:0;height:24px;border-left:1px solid var(--bpm-line)}
 .bpm-row-bridge:after{width:6px;height:6px;top:15px;left:calc(50% - 3px);border-left:0;border-right:1px solid var(--bpm-line);border-bottom:1px solid var(--bpm-line);transform:rotate(45deg)}
 .bpm-fork svg{display:none}.bpm-fork>span{top:11px}
 .bpm-parallel{grid-template-columns:1fr;gap:9px}
 .bpm-parallel-title:nth-child(1){order:0}.bpm-node--shipping{order:1}
 .bpm-parallel-title:nth-child(2){order:2;margin-top:9px}.bpm-node--payment{order:3}
 .bpm-merge svg{display:none}.bpm-merge{position:relative}
 .bpm-merge:before{content:"";position:absolute;left:50%;height:23px;border-left:1px dashed var(--bpm-line)}
 .bpm-close{padding:0}.bpm-close .bpm-node{display:flex;padding:16px}
 .bpm-close .bpm-description{margin:12px 0 16px!important}.bpm-close .bpm-node-footer{margin-top:auto}
 .bpm-return{flex-wrap:wrap;font-size:12px}.bpm-return>span{flex:1;min-width:0}.bpm-review-button{margin-left:27px;min-height:44px;font-size:12px}
}
@media screen and (max-width:560px){.bpm-figure{padding:16px;border-radius:18px}.bpm-caption h3{font-size:16px}.bpm-pair{grid-template-columns:1fr}.bpm-review-button{min-height:44px}}
@media(prefers-reduced-motion:reduce){button.bpm-node{transition:none;transform:none!important}}
@media(prefers-contrast:more){.bpm-node{border-color:#737e76}.bpm-node .bpm-description,.bpm-role,.bpm-number{color:#394a3e!important}.bpm-scope{color:#59635b!important}}
@media print{.bpm-figure{background:#fff;padding:12px;border-color:#ccc;break-inside:avoid}.bpm-node,.bpm-close .bpm-node{box-shadow:none;background:#fff;border-color:#999}.bpm-review-button{display:none}}
