#outstock-edit {
  background: #f5f7fa;
  padding-top: 1.06rem;
  min-height: calc(100vh - 1.06rem);
  opacity: 0;
  transition: opacity 0.15s ease-out;
}
#outstock-edit.wc-ready {
  opacity: 1;
}

/* 步骤条 */
.outstock-edit__navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  height: 1.06rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #999;
  font-size: 0.28rem;
}

.outstock-edit__navbar > div.active {
  color: #1989fa;
  font-weight: 500;
}

.outstock-edit__navbar > div span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #1989fa;
  color: #fff;
  font-size: 0.22rem;
  margin-right: 0.08rem;
}

.outstock-edit__navbar > div:not(.active) span {
  background: #e0e0e0;
  color: #999;
}

#stepArrow img {
  width: 0.28rem;
}

/* 步骤内容 */
.edit-content {
  display: none;
}

.edit-content.active {
  display: block;
}

/* 表单区域 */
.form-section {
  background: #fff;
  margin: 0.2rem 0.24rem 0;
  padding: 0 0.32rem;
  border-radius: 0.16rem;
  overflow: hidden;
}

/* u-cell 插槽内容样式 */
u-cell input {
  border: none;
  font-size: 0.28rem;
  text-align: right;
  width: 100%;
  display: block;
  outline: none;
  background: transparent;
  color: #333;
}

u-cell input::placeholder {
  color: #c0c4cc;
}

u-cell u-select {
  flex: 1;
  --select-height: 0.64rem;
  --select-text-color: #333;
  --select-placeholder-color: #c0c4cc;
}

u-cell u-select::part(input-wrapper) {
  border: none;
  background: transparent;
  padding-right: 0;
}

u-cell u-select::part(selected-text) {
  text-align: right;
  font-size: 0.28rem;
}

u-cell u-select::part(input) {
  text-align: right;
  font-size: 0.28rem;
}

/* 底部双按钮 */
.btn-group {
  margin: 0.34rem 0.24rem 0;
  display: flex;
  gap: 0.24rem;
}

.btn-group > div {
  flex: 1;
  height: 0.88rem;
  line-height: 0.88rem;
  text-align: center;
  font-size: 0.32rem;
  border-radius: 0.44rem;
  cursor: pointer;
  font-weight: 500;
}

.btn-group > div:active {
  opacity: 0.85;
}

.btn-manual {
  background: #1989fa;
  color: #fff;
}

/* 商品明细 */
.line-section {
  padding: 0.2rem 0.24rem;
}

.line-card {
  background: #fff;
  border-radius: 0.16rem;
  margin-bottom: 0.2rem;
  overflow: hidden;
}

.line-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.24rem 0.32rem;
  border-bottom: 1px solid #f5f5f5;
}

.line-no {
  font-size: 0.28rem;
  color: #1989fa;
  font-weight: 500;
}

.btn-delete-line {
  width: 0.48rem;
  height: 0.48rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d4f;
  font-size: 0.32rem;
  cursor: pointer;
}

.btn-delete-line svg {
  width: 0.36rem;
  height: 0.36rem;
}

.line-form {
  padding: 0 0.32rem;
}

/* 明细行 u-cell 插槽内容 */
.line-form u-cell input,
.line-form u-cell input-number {
  width: 100%;
  border: none;
  font-size: 0.28rem;
  text-align: right;
  color: #333;
  outline: none;
  background: transparent;
}

.line-form u-cell input::placeholder,
.line-form u-cell input-number::part(input)::placeholder {
  color: #c0c4cc;
}

.line-form u-cell input-number::part(input) {
  font-size: inherit;
  text-align: inherit;
  color: inherit;
}

/* 产品名显示（带"选择"链接） */
.product-display {
  flex: 1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.entry-link {
  flex: 0 0 auto;
  font-size: 0.24rem;
  padding: 0.06rem 0;
  cursor: pointer;
  margin-left: 0.16rem;
}

.entry-select {
  color: #1989fa;
  cursor: pointer;
}

.entry-scan {
  color: #1989fa;
  cursor: pointer;
}

.entry-link:active {
  opacity: 0.7;
}

/* 添加行按钮 */
.add-line-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2rem;
  margin-top: -0.1rem;
}

.add-line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  font-size: 0.28rem;
  color: #1989fa;
  cursor: pointer;
}

.add-line-btn .icon {
  width: 0.48rem;
  height: 0.48rem;
  background: #1989fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.32rem;
}

/* 底部操作栏 */
.line-summary {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.2rem 0.32rem;
  background: #fff;
  border-top: 1px solid #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.line-summary .summary-info {
  font-size: 0.24rem;
  color: #666;
}

.line-summary .summary-actions {
  display: flex;
  align-items: center;
  gap: 0.16rem;
}

.line-summary .summary-actions button {
  font-size: 0.24rem;
  border-radius: 0.24rem;
  cursor: pointer;
  padding: 0.12rem 0.32rem;
  border: none;
  min-width: 1.2rem;
  height: 0.56rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.line-summary .summary-actions .btn-staging {
  background: #fff;
  color: #606266;
  border: 1px solid #dcdfe6;
}

.line-summary .summary-actions .btn-submit {
  background: #1989fa;
  color: #fff;
}

/* 空状态 */
.line-empty {
  text-align: center;
  padding: 1rem 0.32rem;
  color: #999;
  font-size: 0.28rem;
}

.line-empty img {
  width: 2rem;
  height: auto;
  margin-bottom: 0.24rem;
}

.btn-manual.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
