/* 仅作用于订单收款区，沿用 ERP 黄色主题。 */
.erp-payment-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.erp-payment-card{text-align:left;background:var(--surface,#fff);border:1px solid var(--line);border-radius:var(--radius);padding:14px 18px;color:var(--ink);cursor:pointer;position:relative}
.erp-payment-card.focus{background:var(--qj-soft);border-color:var(--qj-line)}
.erp-payment-card.selected,.erp-payment-card:hover{border-color:#e9c636}
.erp-payment-card.selected:after{content:'';position:absolute;left:18px;right:18px;bottom:0;height:3px;background:var(--qj)}
.erp-payment-label{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--ink-2)}
.erp-payment-label>span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--qj);color:var(--ink);font-size:15px}
.erp-payment-label>span.warn{background:var(--warn-soft);color:var(--warn)}.erp-payment-label>span.ok{background:var(--ok-soft);color:var(--ok)}.erp-payment-label>span.review{background:#f0eaf7;color:#79548d}
.erp-payment-value{font-size:28px;font-weight:700;line-height:1.4;margin:6px 0 5px;letter-spacing:-.4px}
.erp-payment-value small{font-size:12px;font-weight:400;color:var(--ink-3);margin-left:6px}.erp-payment-sub{display:flex;justify-content:space-between;font-size:12px;color:var(--ink-3);gap:6px}.erp-payment-sub b{font-weight:500;white-space:nowrap}
.erp-collection-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:13px 16px;border-bottom:1px solid var(--line)}.erp-collection-filters>span{font-size:12px;color:var(--ink-3);margin-right:5px}
.erp-collection-filters button{border:1px solid transparent;background:transparent;border-radius:6px;padding:6px 10px;font-size:12.5px;color:var(--ink-2);cursor:pointer;white-space:nowrap}.erp-collection-filters button.on{background:var(--qj);border-color:#e9c636;font-weight:600;color:var(--ink)}.erp-collection-filters button:hover{border-color:var(--line-strong)}.erp-collection-filters em{font-size:11px;font-style:normal;background:var(--surface-2,#f4f5f3);padding:1px 5px;border-radius:10px;color:var(--ink-2)}.erp-collection-filters .on em{background:rgba(255,255,255,.5)}.erp-collection-filters .pending-filter{margin-left:auto}
.erp-collection-caption{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px 16px;font-size:12px;color:var(--ink-3);background:var(--surface-2,#f7f8f6);border-bottom:1px solid var(--line)}.erp-collection-caption label{margin-left:auto;display:flex;gap:5px;align-items:center;cursor:pointer}.erp-collection-caption input{accent-color:var(--qj)}.erp-collection-caption a{cursor:pointer;color:var(--warn)}.erp-collection-caption small{font-size:11px}
.erp-order-table{table-layout:auto;min-width:1230px}.erp-order-table th{white-space:nowrap}.erp-order-table th.erp-collection-heading{background:#faf7e9}.erp-order-table td.erp-order-id{min-width:85px}.erp-order-id>div{margin-bottom:10px;font-weight:550}.erp-order-table td.erp-order-customer{min-width:160px}.erp-order-date{font-size:11px;margin-bottom:5px}.erp-order-table .erp-order-amounts{min-width:135px;vertical-align:middle}.erp-order-amounts>div{display:flex;justify-content:space-between;gap:12px;margin:6px 0;white-space:nowrap}.erp-order-amounts span{font-size:11px;color:var(--ink-3)}.erp-order-amounts b{font-size:13px;font-weight:550}.erp-collected-ink{color:var(--ok)}.erp-order-table td.erp-order-collection{min-width:175px}
.erp-order-table tr.erp-collection-row-unpaid td,.erp-order-table tr.erp-collection-row-partial td{background:#fffcf5}.erp-order-table tr.erp-collection-row-unpaid td:first-child{box-shadow:inset 3px 0 #c14331}.erp-order-table tr.erp-collection-row-partial td:first-child{box-shadow:inset 3px 0 #c99939}.erp-order-table tr.erp-collection-row-over td{background:#fcfaff}.erp-order-table tr.erp-collection-row-over td:first-child{box-shadow:inset 3px 0 #9178a6}
.erp-order-table .opbtns{min-width:250px}.erp-collection-status{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;font-size:11.5px;white-space:nowrap;border-radius:20px;line-height:1.4}.erp-collection-status i{width:5px;height:5px;background:currentColor;border-radius:50%}.erp-collection-status.unpaid{background:var(--bad-soft,#f9e8e5);color:var(--bad)}.erp-collection-status.partial{background:var(--warn-soft);color:var(--warn)}.erp-collection-status.paid{background:var(--ok-soft);color:var(--ok)}.erp-collection-status.over{background:#f0eaf7;color:#79548d}.erp-collection-status.neutral{background:var(--surface-2,#f4f5f3);color:var(--ink-3)}
.erp-collection-difference{display:flex;align-items:baseline;gap:6px;margin:7px 0 5px;color:#ae7624;white-space:nowrap}.erp-collection-difference.unpaid{color:var(--bad)}.erp-collection-difference small{font-size:11px}.erp-collection-difference strong{font-size:20px;font-weight:700;letter-spacing:-.3px}.erp-review-ink{color:#79548d}
.erp-collection-track{height:3px;background:var(--line);border-radius:4px;max-width:120px;overflow:hidden;margin-top:6px}.erp-collection-track span{display:block;background:#d2af49;height:100%}.erp-collection-quiet,.erp-collection-note{margin-top:7px;font-size:11px;color:var(--ink-3);line-height:1.5}.erp-collection-quiet b{font-weight:500}.erp-collection-pending{font-size:10.5px;color:var(--warn);margin-top:6px;line-height:1.5;max-width:190px}.erp-collection-detail{padding:12px 14px;background:var(--surface-2,#f7f8f6);border-radius:8px}.erp-collection-detail .erp-collection-difference strong{font-size:26px}.erp-collection-detail .erp-collection-pending{max-width:none;font-size:12px}.erp-collection-state.compact{display:inline-flex}
@media(max-width:1400px){.erp-payment-card{padding:12px 14px}.erp-payment-sub{font-size:11px}.erp-payment-sub b:not(.erp-review-ink){display:none}.erp-collection-caption small{display:none}.erp-order-table{min-width:1170px}.erp-order-table td.erp-order-customer{min-width:140px}.erp-order-table .opbtns{min-width:210px}}
@media(max-width:900px){.erp-payment-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-collection-filters .pending-filter{margin-left:0}}
