#outstock-list {
  background: #f5f7fa;
  min-height: 100vh;
}

/* Navbar */
.outstock-list__navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 0.24rem 0.32rem;
  background: #fff;
  z-index: 10;
}

.outstock-list__navbar .search-content {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border-radius: 0.44rem;
  padding: 0.22rem 0.28rem;
  margin-right: 0.24rem;
}

.outstock-list__navbar .search-content img {
  width: 0.32rem;
  height: 0.32rem;
  margin-right: 0.16rem;
  flex-shrink: 0;
}

.outstock-list__navbar .search-content > label {
  flex: 1;
  height: 0.34rem;
  font-size: 0.24rem;
}

.outstock-list__navbar .search-content input {
  border: none;
  background: transparent;
  font-size: 0.26rem;
  width: 100%;
  outline: none;
  color: #303133;
}

.outstock-list__navbar .search-content input::placeholder {
  color: #c0c4cc;
}

.outstock-list__navbar .search-icon-group {
  display: flex;
  align-items: center;
}

.outstock-list__navbar .search-icon-group img {
  width: 0.44rem;
  height: 0.44rem;
  margin-left: 0.24rem;
}

/* Main */
.outstock-list__main {
  padding-top: 1.2rem;
  padding-bottom: 0.4rem;
}

.outstock-list__main li {
  margin: 0.2rem 0.3rem;
  background: #fff;
  border-radius: 0.2rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.outstock-list__main .item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.24rem 0.3rem;
  border-bottom: 1px solid #f0f2f5;
}

.outstock-list__main .item-code {
  font-size: 0.3rem;
  font-weight: 600;
  color: #303133;
}

.outstock-list__main .item-status {
  font-size: 0.22rem;
  padding: 0.06rem 0.16rem;
  border-radius: 0.2rem;
  background: #e6f7ff;
  color: #0079fd;
}

.outstock-list__main .item-status.status-B {
  background: #e6f7ff;
  color: #0079fd;
}

.outstock-list__main .item-status.status-C {
  background: #f0f9eb;
  color: #67c23a;
}

.outstock-list__main .item-status.status-O,
.outstock-list__main .item-status.status-P {
  background: #f4f4f5;
  color: #909399;
}

.outstock-list__main .item-status.status-Q {
  background: #fef0f0;
  color: #f56c6c;
}

.outstock-list__main .item-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 0.32rem;
  padding: 0.24rem 0.32rem;
}

.outstock-list__main .cell-label {
  font-size: 0.22rem;
  color: #909399;
  margin-bottom: 0.06rem;
}

.outstock-list__main .cell-value {
  font-size: 0.26rem;
  color: #303133;
  word-break: break-all;
}

.outstock-list__main .item-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.16rem 0.32rem;
  border-top: 1px solid #f0f2f5;
  background: #fff;
  gap: 0.24rem;
}

.outstock-list__main .item-actions span {
  font-size: 0.24rem;
  padding: 0.1rem 0.28rem;
  border-radius: 0.08rem;
  cursor: pointer;
}

.outstock-list__main .btn-check {
  background: #e6f7ff;
  color: #0079fd;
}

.btn-edit {
  background: #0079fd;
  color: #fff;
}

.outstock-list__main .btn-delete {
  background: #fef0f0;
  color: #f56c6c;
}

/* Total values */
.outstock-list__total {
  padding: 0.24rem 0.32rem;
  margin: 0 0.3rem;
  color: rgba(0, 0, 0, 0.85);
  font-size: 0.24rem;
}

.outstock-list__total span {
  margin-right: 0.2rem;
}

.list-loading {
  text-align: center;
  padding: 0.8rem 0.32rem;
  color: #909399;
  font-size: 0.26rem;
}

.list-loading .loading-spin {
  width: 0.48rem;
  height: 0.48rem;
  margin: 0 auto 0.16rem;
  border: 2px solid #e4e7ed;
  border-top-color: #0079fd;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.list-empty {
  text-align: center;
  padding: 1.2rem 0.32rem;
  color: #909399;
  font-size: 0.26rem;
}

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

/* Add Button */
.add-btn {
  position: fixed;
  right: 0.24rem;
  bottom: 0.36rem;
}

.add-btn img {
  display: block;
  width: 1.52rem;
  height: 1.52rem;
}
