.ofs-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.ofs-head h3{margin:0;font-size:16px}.ofs-unknown{color:#8a6a30;font-size:13px;font-weight:400}.ofs-tabs,.ofs-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ofs-tabs .active{background:#e0f3ee;border-color:#5ca99a;color:#176556}.ofs-stock>details>summary{cursor:pointer;font-weight:600;font-size:13px}.ofs-warnings{margin:7px 0;padding:7px 10px;border-radius:7px;background:#fff8e9;color:#8a6a30;font-size:12px}.ofs-warnings summary{cursor:pointer}.ofs-warnings p{margin:5px 0;overflow-wrap:anywhere}.ofs-stock{margin-top:14px;padding-top:12px;border-top:1px solid #dce7ec}.ofs-stock .ofs-actions{gap:5px}.ofs-stock .ofs-actions .btn{font-size:12px}.ofs-balance-formula{font-size:13px;color:#426c67;background:#edf6f3;border-radius:7px;padding:8px 10px;margin:10px 0}.ofs-stock table{font-size:13px}.ofs-stock th,.ofs-stock td{padding:9px 10px;white-space:nowrap}.ofs-stock td small{display:block;margin-top:4px;font-size:11px;color:#73858d;white-space:normal;max-width:210px}.ofs-stock>details{margin-top:10px}.ofs-stock>details>.table-wrap{margin-top:8px}.ofs-confirm{display:flex;gap:8px;align-items:flex-start;margin-top:14px;font-size:13px}.ofs-confirm input{flex:none;margin-top:2px}.ofs-stock .field-hint{font-size:12px;line-height:1.6}@media(max-width:700px){.ofs-head{align-items:flex-start}.ofs-actions{width:100%}.ofs-actions .btn{min-height:32px}.ofs-stock-table{min-width:730px}.ofs-balance-formula{font-size:12px;line-height:1.7}.ofs-tabs .btn{min-height:32px}}

.ofs-bottom-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;padding:.6rem .8rem;border:1px solid #dce7eb;border-radius:.5rem;margin:.6rem 0}.ofs-bottom-row label{display:flex;align-items:center;gap:.3rem}.ofs-bottom-row input{width:8rem;max-width:28vw;padding:.35rem}.ofs-bottom-row input[readonly]{background:#f2f6f7}.ofs-carry-in{font-size:.9rem;color:#506572;margin:.4rem 0}

/* 罐底与损耗（订单总结明细最后一块）：上期罐底转入、本期剩余罐底量、损耗登记三行同一样式。 */
.oss-stock{background:#f5f8f7}.oss-stock .ofs-bottom-row{margin:0;padding:9px 0;border:0;border-top:1px solid #e1e9ed;border-radius:0;font-size:13px;min-width:0}.oss-stock .ofs-bottom-row>strong{font-weight:600}.oss-stock .ofs-bottom-row>span{min-width:0;overflow-wrap:anywhere}.oss-stock .ofs-bottom-row .field-hint{flex-basis:100%;margin:0}.oss-stock .ofs-bottom-row>.ofs-actions{margin-left:auto}.oss-stock .ofs-carry-history{flex-basis:100%;font-size:12px}.oss-stock .ofs-carry-history>summary{cursor:pointer;color:#2b746b}.oss-stock .ofs-carry-history .field-hint{margin:4px 0}.oss-stock .ofs-bottom-row input{width:110px;max-width:none;height:30px;padding:0 8px;border:1px solid #b9cbd4;border-radius:6px;background:#fff;color:#152a3d;font-size:13px;text-align:right;font-variant-numeric:tabular-nums}.oss-stock .ofs-bottom-row input[readonly]{background:#f2f5f7;border-color:#d3dfe5}

/* 整单利润与现金流（订单总结）。类名一律 opc- 前缀，不改全局 .card .tabs .tab .chip .btn .link .badge .num .warn。 */
.opc{container:opc/inline-size;display:flex;flex-direction:column;gap:16px;min-width:0;margin:0 0 10px;padding:18px;border:1px solid #dce7ec;border-radius:14px;background:#fff;color:#152a3d;font-size:14px;line-height:1.5}
.opc [hidden]{display:none!important}
.opc-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.opc .opc-title{margin:0;font-size:16px;line-height:1.4;color:#152a3d}.opc-title small{margin-left:8px;font-size:12px;font-weight:400;color:#4d6170}
.opc-tabs{gap:6px;flex-wrap:nowrap}.opc-tabs .btn{min-height:36px;padding:0 14px;font-size:13px;color:#2a4658;border-color:#d3dfe5}.opc-tabs .btn.active{background:#e0f3ee;border-color:#5ca99a;color:#176556}
.opc-panel{display:flex;flex-direction:column;gap:16px;min-width:0}
.opc-form{display:flex;flex-direction:column;gap:16px;min-width:0;margin:0}
.opc-eq{display:flex;align-items:stretch;gap:24px;padding:12px;border-radius:12px;background:#eef6f2}.opc-eq-cash{background:#edf3f9}
.opc-term{position:relative;display:flex;align-items:stretch;min-width:0;flex:1 1 0}.opc-term-res{flex:0 0 210px}
.opc-op{position:absolute;left:-24px;top:0;bottom:0;width:24px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:500;line-height:1;color:#4d6170}.opc-op0{display:none}
.opc-chip{flex:1;display:flex;flex-direction:column;justify-content:center;gap:1px;padding:8px 14px;border-radius:10px;background:#fff;min-width:0}
.opc-chip>span{font-size:12px;color:#4d6170;white-space:nowrap}.opc-chip>b{font-size:18px;line-height:1.3;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.opc-chip>small{font-size:12px;color:#4d6170}
.opc-chip>b .opc-pend{color:#6b7c88;font-weight:500}
.opc-now{background:#dcefe7}.opc-now>span,.opc-now>b,.opc-now>small{color:#176556}.opc-now>span{font-weight:600}
.opc-res{background:#1a5f50}.opc-res>span,.opc-res>small{color:#cfeee3}.opc-res>b{color:#fff;font-size:20px}
.opc-res.is-wait{background:#e9eef1}.opc-res.is-wait>b{color:#4d6170;font-size:18px;font-weight:600}.opc-res.is-wait>span,.opc-res.is-wait>small{color:#4d6170}
.opc-chip.is-loss{background:#fdecee}.opc-chip.is-loss>span,.opc-chip.is-loss>b,.opc-chip.is-loss>small{color:#b53742}
.opc-note{margin:-6px 0 0;font-size:13px;color:#4d6170;overflow-wrap:anywhere}.opc-note b{color:#152a3d;font-variant-numeric:tabular-nums}
.opc-hint{margin:-8px 0 0;font-size:12px;color:#4d6170;overflow-wrap:anywhere}
.opc-loss{color:#c43b46}.opc-pend{color:#6b7c88}.opc-flag,.opc-x.opc-flag{font-style:normal;color:#c43b46}.opc-alert{font-size:12px;color:#c43b46;text-align:right;overflow-wrap:anywhere}.opc-c-flag>.opc-x{color:#c43b46}.opc-res:not(.is-wait):not(.is-loss) .opc-flag{color:#ffd9dc}
.opc-diff{display:flex;flex-direction:column;margin-top:-6px;border:1px solid #e4ecf0;border-radius:10px;background:#fbfcfd;font-size:13px}.opc-diff>div{display:flex;align-items:baseline;gap:6px 16px;flex-wrap:wrap;padding:9px 14px}.opc-diff>div+div{border-top:1px solid #eef2f4}.opc-diff>div>span{min-width:0;overflow-wrap:anywhere}.opc-diff b{margin-left:auto;font-variant-numeric:tabular-nums}.opc-diff .is-unexplained{color:#c43b46}
.opc-warns{border-radius:8px;background:#fff8e9;color:#7a5a1e;font-size:13px}.opc-warns>summary{display:flex;align-items:center;gap:6px;padding:7px 12px;cursor:pointer;list-style:none}.opc-warns>summary::-webkit-details-marker{display:none}.opc-warns>summary>b{flex:none;font-weight:600}.opc-warns-first{min-width:0;overflow-wrap:anywhere}.opc-warns[open] .opc-warns-first{display:none}.opc-warns[open]>summary>.opc-chev{transform:rotate(90deg)}.opc-warns ul{margin:0;padding:0 12px 9px;list-style:none;display:flex;flex-direction:column;gap:4px}.opc-warns li{overflow-wrap:anywhere}.opc-warns li small{font-size:12px;color:#9a7a3e}
.opc .opc-subtitle{margin:4px 0 -6px;font-size:14px;color:#1d3447}.opc-subtitle small{margin-left:8px;font-size:12px;font-weight:400;color:#4d6170}
.opc-t{display:flex;flex-direction:column;border:1px solid #e4ecf0;border-radius:12px;overflow:hidden;background:#fff}
.opc-r{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(3,minmax(0,1fr));column-gap:16px;row-gap:8px;padding:11px 16px;border-top:1px solid #eef2f4;align-items:center}.opc-r:first-child{border-top:0}
.opc-st .opc-r{grid-template-columns:minmax(0,1.3fr) minmax(0,1.5fr) minmax(0,1fr);row-gap:10px}
.opc-h{background:#f7fafb;color:#4d6170;font-size:12px;font-weight:600;padding:8px 16px}
.opc-sub{padding-top:6px;padding-bottom:6px}
.opc-c{min-width:0;display:flex;flex-direction:column;gap:1px}.opc-num{align-items:flex-end;text-align:right}
.opc-lab{display:flex;align-items:center;gap:8px;min-width:0;font-weight:600;overflow-wrap:anywhere}
button.opc-lab{margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:600;text-align:left;cursor:pointer}button.opc-lab:focus-visible,.opc-link:focus-visible,.opc-warns>summary:focus-visible{outline:2px solid #079b84;outline-offset:2px;border-radius:4px}
.opc-sub .opc-lab{font-weight:400;color:#33495a;font-size:13px;padding-left:16px}.opc-sub2 .opc-lab{color:#4d6170;padding-left:32px}.opc-sub3 .opc-lab{color:#4d6170;padding-left:48px;font-size:12px}.opc-sub3 .opc-v{font-size:12px}.opc-d>.opc-d-due{grid-column:2}.opc-d>.opc-d-done{grid-column:3}.opc-lab>.opc-flag{flex:none;font-size:12px;font-weight:400}.opc-x>.opc-link,.opc-warns li>.opc-link{margin-left:6px;font-size:12px}.opc .opc-lk{color:#007a6c}button.opc-lk:hover{text-decoration:underline}
.opc-chev{width:12px;height:12px;color:#4d6170;flex:none;transition:transform .15s}.opc-tog[aria-expanded="true"]>.opc-chev{transform:rotate(90deg)}
.opc-v{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.opc-sub .opc-v{font-size:13px;font-weight:400}
.opc-x{font-size:12px;color:#4d6170;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-wrap:pretty}.opc-sub>.opc-c:first-child>.opc-x{padding-left:16px}.opc-sub2>.opc-c:first-child>.opc-x{padding-left:32px}
.opc-fi{grid-column:2/4;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.opc-f{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;font-size:13px;color:#33495a;font-variant-numeric:tabular-nums}
.opc-eqamt{display:inline-flex;align-items:center;gap:6px}.opc-in{width:104px;height:30px;min-width:0;margin:0;border:1px solid #b9cbd4;border-radius:6px;padding:0 8px;text-align:right;font:inherit;font-size:13px;color:#152a3d;background:#fff;font-variant-numeric:tabular-nums;box-sizing:border-box}.opc-in.opc-amt{width:132px}.opc-in.opc-calc{width:136px;background:#f2f5f7;border-color:#d3dfe5;font-weight:600;font-size:15px}.opc-in.opc-calc:not([readonly]){background:#fff;border-color:#b9cbd4;font-weight:400;font-size:13px}.opc-in::placeholder{color:#93a4ae}
.opc-fees{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 40px;padding:0 0 2px 16px}
.opc-fee{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;font-size:13px;color:#33495a}.opc-fee>span:first-child{min-width:0;overflow-wrap:anywhere}.opc-fee-v{display:flex;flex-direction:column;align-items:flex-end;font-variant-numeric:tabular-nums}.opc-fee-v small{font-size:12px;color:#4d6170}
.opc-fees-note{grid-column:1/-1;margin:0;padding-left:16px}
.opc-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px 16px}.opc-foot-tight{margin-top:-4px}.opc-foot>.opc-link,.opc-foot>.btn{flex:none;white-space:nowrap}
.opc-stamp{min-width:0;font-size:12px;color:#4d6170;overflow-wrap:anywhere}.opc .opc-link{font-size:13px;font-weight:600;color:#007a6c}
.opc-notice{margin:2px 2px 10px;font-size:13px;color:#73858d}.opc-notice.is-error{color:#c43b46}
@container opc (max-width:980px){.opc-eq{gap:18px}.opc-op{left:-18px;width:18px;font-size:18px}.opc-chip{padding:8px 10px}.opc-chip>b{font-size:16px}.opc-term-res{flex-basis:180px}.opc-res>b{font-size:18px}}
@container opc (max-width:800px){.opc-eq{flex-direction:column;gap:6px;padding:10px}.opc-term{position:static;width:100%;flex:none;align-items:center;gap:6px}.opc-term-res{flex:none}.opc-op{position:static;width:18px;flex:none}.opc-op0{display:block}.opc-chip{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 8px;padding:8px 12px}.opc-chip>small{flex-basis:100%;text-align:right}.opc-res>b{font-size:18px}}
@container opc (max-width:600px){
.opc-r{grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:2px;padding:9px 12px}.opc-sub{padding:7px 12px}
.opc-pt .opc-r,.opc-ct .opc-r{grid-template-areas:'lab key' 'a b' 'fi fi'}
.opc-pt .opc-h,.opc-ct .opc-h{grid-template-areas:'lab key';padding:7px 12px;font-size:11px}
.opc-pt .opc-h>.opc-c:nth-child(2),.opc-pt .opc-h>.opc-c:nth-child(3),.opc-ct .opc-h>.opc-c:nth-child(2),.opc-ct .opc-h>.opc-c:nth-child(3){display:none}
.opc-pt .opc-r>.opc-c:nth-child(1),.opc-ct .opc-r>.opc-c:nth-child(1){grid-area:lab}
.opc-pt .opc-r>.opc-c:nth-child(4),.opc-ct .opc-r>.opc-c:nth-child(4){grid-area:key}
.opc-pt .opc-r>.opc-c:nth-child(2),.opc-ct .opc-r>.opc-c:nth-child(2){grid-area:a;align-items:flex-start;text-align:left}
.opc-pt .opc-r>.opc-c:nth-child(3),.opc-ct .opc-r>.opc-c:nth-child(3){grid-area:b}
.opc-pt .opc-r>.opc-c:nth-child(2) .opc-v,.opc-pt .opc-r>.opc-c:nth-child(3) .opc-v,.opc-ct .opc-r>.opc-c:nth-child(2) .opc-v,.opc-ct .opc-r>.opc-c:nth-child(3) .opc-v{font-size:12px;font-weight:400;color:#4d6170}
.opc-sub>.opc-c:nth-child(2){padding-left:12px}.opc-sub2>.opc-c:nth-child(2){padding-left:24px}.opc-sub .opc-lab,.opc-sub>.opc-c:first-child>.opc-x{padding-left:12px}.opc-sub2 .opc-lab,.opc-sub2>.opc-c:first-child>.opc-x{padding-left:24px}.opc-sub>.opc-c:nth-child(4) .opc-v{font-size:14px}
.opc-pt .opc-r:not(.opc-h)>.opc-c:nth-child(2) .opc-v::before{content:'已发生 '}.opc-pt .opc-r:not(.opc-h)>.opc-c:nth-child(3) .opc-v::before{content:'未发生 '}
.opc-ct .opc-rcv>.opc-c:nth-child(2) .opc-v::before{content:'应收 '}.opc-ct .opc-rcv>.opc-c:nth-child(3) .opc-v::before{content:'已收 '}.opc-ct .opc-pay>.opc-c:nth-child(2) .opc-v::before{content:'应付 '}.opc-ct .opc-pay>.opc-c:nth-child(3) .opc-v::before{content:'已计支出 '}
.opc-ct .opc-d{grid-template-areas:'lab key';column-gap:6px}.opc-ct .opc-d>.opc-c:nth-child(2){grid-area:key;align-items:flex-end;text-align:right;padding-left:0}.opc-sub3 .opc-lab{padding-left:24px;flex-wrap:wrap;gap:0 4px}.opc-ct .opc-d>.opc-c:nth-child(2) .opc-v{font-size:12px;color:#33495a}
.opc-x{font-size:11px}.opc-fi{grid-area:fi;margin-top:6px}
.opc-st .opc-r{grid-template-columns:minmax(0,1fr) auto;row-gap:8px;padding:10px 12px}.opc-st .opc-h{display:none}.opc-st .opc-fx{grid-column:1/-1;order:3}.opc-st .opc-fx:empty{display:none}.opc-fees{order:4;grid-template-columns:minmax(0,1fr);gap:6px;padding:0 0 2px 12px}.opc-fees-note{order:5;padding-left:12px}
}
@media(max-width:640px){.opc{padding:12px;gap:14px}.opc-head{flex-direction:column;align-items:stretch;gap:10px}.opc-tabs{display:grid;grid-template-columns:1fr 1fr}.opc-stamp{flex:1 1 0}}

/* 订单概览顶部四格。 */
.opc-overview{margin:0 0 14px}.opc-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.opc-tile{display:flex;flex-direction:column;gap:2px;min-width:0;padding:10px 12px;border-radius:10px;background:#f0f7f3}.opc-tile>span{font-size:12px;color:#4d6170}.opc-tile>b{font-size:17px;line-height:1.35;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.opc-tile>small{font-size:11px;color:#4d6170;overflow-wrap:anywhere}@media(max-width:700px){.opc-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.opc-tile>b{font-size:16px}}

/* 修改记录弹窗。 */
.opc-history td{white-space:normal;vertical-align:top;overflow-wrap:anywhere}.opc-history td:first-child{white-space:nowrap}.opc-history td b{display:block;font-weight:600}.opc-history td small{display:block;margin-top:2px;color:#4d6170;font-size:12px}@media(max-width:640px){.opc-history thead{display:none}.opc-history,.opc-history tbody,.opc-history tr,.opc-history td{display:block;width:100%}.opc-history tr{padding:10px 0;border-bottom:1px solid #eef2f4}.opc-history td{padding:2px 16px!important;border:0!important}}
