@charset "UTF-8";
#dataForm {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
}
#dataForm label {
  display: block;
  margin-bottom: 5px;
}
#dataForm input[type=text],
#dataForm input[type=number] {
  width: calc(100% - 10px);
  padding: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#dataForm .custom-select {
  position: relative;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
}
#dataForm .custom-select .selected-option {
  display: flex;
  align-items: center;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  background-color: #fff;
}
#dataForm .custom-select .selected-option:hover {
  background-color: #e6e6e6;
}
#dataForm .custom-select .option-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: auto;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  z-index: 10;
}
#dataForm .custom-select .option-list .option-item {
  padding: 5px;
  cursor: pointer;
}
#dataForm .custom-select .option-list .option-item:hover {
  background-color: #e6e6e6;
}
#dataForm button {
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#dataForm button:hover {
  background-color: #0056b3;
}

/* 数组项容器 */
.array-item-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #90EE90; /* 背景色让数组项看起来与普通字段区分开 */
}

.array-item-container label {
  width: 100%;
}

/* 每一行的布局，label、input 和 button 在一行 */
.array-item-row {
  display: flex;
  align-items: center; /* 垂直居中对齐 */
  margin-bottom: 10px; /* 行间距 */
}

/* 每个数组项的输入框 */
.array-item-row input[type=text] {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  margin-right: 10px; /* input 和 button 之间的间距 */
  flex-grow: 1; /* 让输入框占据剩余的空间 */
}

/* 聚焦时的输入框样式 */
.array-item-row input[type=text]:focus {
  outline: none;
  border-color: #4CAF50; /* 焦点时的绿色边框 */
}

/* 删除按钮 */
.array-item-row button[type=button] {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* 删除按钮的悬停效果 */
.array-item-row button[type=button]:hover {
  background-color: #d32f2f;
}

.title-style {
  font-weight: bold;
}

/* 数组项容器 */
.array-item-container {
  display: flex;
  flex-direction: row; /* 水平排列元素 */
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #90EE90; /* 背景色让数组项看起来与普通字段区分开 */
  align-items: center; /* 垂直居中对齐 */
  flex-wrap: wrap; /* 允许换行 */
  gap: 10px; /* 元素之间的间距 */
}

/* 数组项容器 */
.array-item-nestedinput {
  display: flex;
  flex-direction: row; /* 水平排列元素 */
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #ffc; /* 背景色让数组项看起来与普通字段区分开 */
  align-items: center; /* 垂直居中对齐 */
  flex-wrap: wrap; /* 允许换行 */
  gap: 10px; /* 元素之间的间距 */
}

/* 每个数组项的标签 */
.array-item-container label {
  width: 100%; /* 固定宽度，可以根据需要调整 */
}

/* 每个数组项的输入框 */
.array-item-container input[type=text] {
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  margin-right: 10px; /* input 与 button 之间的间距 */
  flex-grow: 1; /* 让输入框占据剩余的空间 */
  box-sizing: border-box; /* 包含内边距和边框在内的宽度计算 */
}

/* 聚焦时的输入框样式 */
.array-item-container input[type=text]:focus {
  outline: none;
  border-color: #4CAF50; /* 焦点时的绿色边框 */
}

/* 删除按钮 */
.array-item-container button[type=button] {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* 删除按钮的悬停效果 */
.array-item-container button[type=button]:hover {
  background-color: #d32f2f;
}

.field-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  white-space: nowrap;
}

.field-row label {
  margin-right: 10px;
  min-width: 100px;
}

.field-row input {
  flex-grow: 1;
  margin-right: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 8px;
  text-align: left;
  border: 1px solid #ddd;
}

.disabled {
  color: gray;
  background-color: #f0f0f0;
}

.sku-filter {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

/**************略缩图样式*************/
.thumbnail-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-height: 200px;
}

.thumbnail-wrapper {
  position: relative;
  border-radius: 4px;
  transition: transform 0.3s ease;
  overflow: visible !important;
}

.sku-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  cursor: crosshair;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid #eee;
}

.disabled .sku-thumbnail {
  pointer-events: none;
}

/* 优化悬停层叠效果 */
.thumbnail-wrapper:hover {
  z-index: 1000;
  position: relative;
}