/* 囤货页 */

.stock-alert .chip-alert {
  background: #FFF0D9;
  color: #E8A23D;
  font-weight: 600;
}

.stock-alert .chip-alert-red {
  background: #FFE3E3;
  color: #F0554E;
  font-weight: 600;
}

.stock-card {
  margin-bottom: 12px;
}

.stock-name {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  margin-right: 8px;
}

.stock-meta {
  margin-top: 2px;
}

/* 剩余进度条 */
.stock-bar {
  height: 8px;
  border-radius: 999px;
  background: #F6EEE8;
  overflow: hidden;
  margin: 10px 0 6px;
}

.stock-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8FDCCB, #2BB3A3);
  transition: width 0.25s ease;
}

.stock-bar > span.low {
  background: linear-gradient(90deg, #FFC98A, #E8A23D);
}

.stock-bar > span.overdue {
  background: linear-gradient(90deg, #FFA6A6, #F0554E);
}

.stock-bar > span.empty {
  background: #E5D9D0;
}

.stock-count {
  font-size: 14px;
  color: #4A3F3A;
}

.stock-count b {
  font-size: 17px;
  color: #F76C8A;
}

.stock-warn {
  margin-top: 6px;
  font-size: 12px;
  color: #E8A23D;
  line-height: 1.6;
}

.stock-warn.overdue {
  color: #F0554E;
}

.stock-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  font-size: 12px;
  color: #9C8F88;
}

.stock-ops {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.stock-ops > * {
  flex: 1;
}

.stock-ops .btn-ghost {
  padding: 9px 0;
  font-size: 13px;
}
