/* 合同编辑页面样式 */
.edit-container {
  padding: 20rpx;
  background-color: #f5f5f5;
  min-height: 100vh;
}

/* 加载状态 */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100rpx 40rpx;
}

.loading-icon {
  font-size: 60rpx;
  margin-bottom: 20rpx;
}

.loading-text {
  font-size: 28rpx;
  color: #666;
}

/* 错误状态 */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100rpx 40rpx;
}

.error-icon {
  font-size: 60rpx;
  margin-bottom: 20rpx;
}

.error-text {
  font-size: 28rpx;
  color: #ff4d4f;
  margin-bottom: 30rpx;
  text-align: center;
}

.retry-btn {
  background-color: #1890ff;
  color: #fff;
  border: none;
  border-radius: 8rpx;
  padding: 20rpx 40rpx;
  font-size: 28rpx;
}

/* 编辑表单 */
.edit-form {
  background-color: #fff;
  border-radius: 16rpx;
  overflow: hidden;
  margin-bottom: 20rpx;
}

.form-section {
  padding: 30rpx 40rpx;
  border-bottom: 1rpx solid #f0f0f0;
}

.form-section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
  margin-bottom: 30rpx;
}

.form-item {
  display: flex;
  align-items: center;
  padding: 25rpx 0;
  border-bottom: 1rpx solid #f8f8f8;
}

.form-item:last-child {
  border-bottom: none;
}

.form-label {
  font-size: 30rpx;
  color: #333;
  width: 180rpx;
  flex-shrink: 0;
}

.form-input {
  flex: 1;
  font-size: 30rpx;
  color: #333;
  text-align: right;
  height: auto;
  min-height: 30rpx;
  padding: 10rpx 0;
}

.form-input[disabled] {
  color: #999;
  background-color: transparent;
}

.form-textarea {
  flex: 1;
  font-size: 30rpx;
  color: #333;
  min-height: 120rpx;
  padding: 10rpx;
  border: 1rpx solid #d9d9d9;
  border-radius: 8rpx;
  background-color: #fafafa;
}

/* 选择器样式 */
.picker-display {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 30rpx;
  color: #333;
  padding: 10rpx 0;
  min-height: 30rpx;
}

.picker-arrow {
  color: #999;
  font-size: 24rpx;
}

/* 操作按钮 */
.form-actions {
  display: flex;
  gap: 30rpx;
  padding: 40rpx;
  background-color: #fff;
  border-radius: 16rpx;
}

.action-btn {
  flex: 1;
  height: 90rpx;
  border-radius: 16rpx;
  font-size: 34rpx;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.cancel-btn {
  background-color: #fff;
  color: #666;
  border: 1rpx solid #d9d9d9;
}

.cancel-btn:active {
  background-color: #f8f8f8;
}

.save-btn {
  background-color: #1890ff;
  color: #fff;
}

.save-btn[disabled] {
  background-color: #a0cfff;
  color: #fff;
}

.save-btn:active {
  background-color: #40a9ff;
}
