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

/* Navbar */
.sendorder-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;
}

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

.sendorder-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;
}

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

#stepArrow img {
  width: 0.28rem;
}

/* Form */
.form-section {
  background: #fff;
  margin: 0.2rem 0.24rem 0;
  border-radius: 0.16rem;
  overflow: hidden;
}

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

/* 底部双按钮 */
.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;
}

u-cell > div {
  flex: 1;
}

u-cell input,
u-cell input-number {
  width: 100%;
  color: #333;
  text-align: end;
  border: none;
  outline: none;
  display: block;
  font-size: 0.28rem;
}

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

/* Step content */
.edit-content {
  display: none;
}

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

/* Line cards */
.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;
}

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

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

/* Add line button */
.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;
}

/* Bottom bar */
.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-info .count {
  margin-bottom: 0.04rem;
}

.line-summary .summary-info .total {
  color: #ff4d4f;
  font-size: 0.28rem;
  font-weight: 500;
}

.line-summary .summary-info .total .amount {
  font-size: 0.32rem;
}

.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;
}

/* Locked inventory warning */
.line-form .text-danger {
  color: #ff4d4f;
}

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

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