/* 缺货 / 可补备（2026-11-22）：缺货 = 警示红线框；可补备 = 青绿色实底 + 卡片左条，出现时闪一次 */
.tag.short { background: transparent; color: var(--urgent); border: 1px solid var(--urgent); font-weight: 700; }
.tag.restock { background: #0F7B6C; color: #fff; border: 1px solid #0F7B6C; font-weight: 700; }
.card.restock::before { background: #0F7B6C; width: 6px; }
.card.restock { box-shadow: 0 0 0 2px #0F7B6C inset, var(--shadow); }
.card.pulse { animation: restock-pulse 1.6s ease-out 1; }
@keyframes restock-pulse {
  0% { box-shadow: 0 0 0 0 rgba(15,123,108,.85), var(--shadow); }
  60% { box-shadow: 0 0 0 14px rgba(15,123,108,0), var(--shadow); }
  100% { box-shadow: 0 0 0 2px #0F7B6C inset, var(--shadow); }
}
.badge-line { display: inline-flex; gap: 6px; vertical-align: 4px; margin-left: 6px; }
.restock-badge, .short-badge { font-size: 13px; font-weight: 700; padding: 3px 9px; letter-spacing: .02em; }
.restock-badge { background: #0F7B6C; color: #fff; }
.short-badge { color: var(--urgent); border: 1.5px solid var(--urgent); }
.restock-badge[hidden], .short-badge[hidden] { display: none; }
.stock-block { margin-bottom: 16px; }
.stock-block h3 { margin: 0 0 8px; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.stock-block td small { display: block; color: var(--dim); font-size: 11px; }
.stock-block td.gap { color: var(--urgent); font-weight: 700; }
.stock-block tr.re td { color: #0F7B6C; font-weight: 700; }
.tv .restock-badge, .tv .short-badge { font-size: 20px; padding: 4px 12px; }
/* 欠货（部分出货还欠）：琥珀实底小标签，和「缺货」红框、「可补备」青绿区分 */
.tag.owed { background: #B7791F; color: #fff; border: 1px solid #B7791F; font-weight: 700; }
.owed-badge { font-size: 13px; font-weight: 700; padding: 3px 9px; background: #B7791F; color: #fff; }
.owed-badge[hidden] { display: none; }
.stock-block td.owe { color: #8A5A12; font-weight: 700; }
.tv .owed-badge { font-size: 20px; padding: 4px 12px; }
.row1 { flex-wrap: wrap; row-gap: 4px; }   /* 欠货+缺货+交期+优先级 放不下时整组换到下一行，不截断 */
.r1meta { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; min-width: 0; }
.stock-wrap { overflow-x: auto; }
.stock-block table { font-size: 12px; }
.stock-block th, .stock-block td { white-space: nowrap; }


.stock-hint { margin: 0 0 8px; padding: 6px 8px; font-size: 11px; color: #5A6E80; background: #F2F5F8;
  border-radius: 4px; line-height: 1.45; }
.stock-block td.inv-cell { white-space: normal; min-width: 8em; }
.stock-block .inv-code, .note td .inv-code { display: block; color: #4A6A8A; font-size: 11px; font-variant-numeric: tabular-nums; }
.stock-block .inv-extra { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
