/* chooseSku.css - 现代化 SKU 弹窗样式，源自 1.html/chooseSku.html */
:root {
  --primary-color: #1890ff;
  --primary-hover: #40a9ff;
  --primary-bg: #e6f7ff;
  --success-color: #52c41a;
  --purple-color: #722ed1;
  --text-main: #333333;
  --text-secondary: #666666;
  --border-color: #d9d9d9;
  --bg-color: #e2e8f0;
  --card-bg: #ffffff;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}
.sku-dialog {
  background: var(--card-bg);
  width: 520px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}
.dialog-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}
.dialog-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  flex: 1;
  text-align: center;
}
.close-btn {
  color: #ff4d4f;
  font-size: 18px;
  cursor: pointer;
  font-family: monospace;
}
.dialog-body {
  padding: 24px;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin-right: 10px;
  margin-bottom: 12px;
  user-select: none;
}
.chip:hover {
  border-color: var(--primary-hover);
  color: var(--primary-hover);
}
/* 色卡样式，chip.active.color-x 用于不同分组，chip 边框/背景色用透明度 */
.chip.color-0 { border-color: rgba(255,182,182,0.4); }
.chip.color-1 { border-color: rgba(255,214,165,0.4); }
.chip.color-2 { border-color: rgba(253,255,182,0.4); }
.chip.color-3 { border-color: rgba(202,255,191,0.4); }
.chip.color-4 { border-color: rgba(155,246,255,0.4); }
.chip.color-5 { border-color: rgba(160,196,255,0.4); }
.chip.color-6 { border-color: rgba(189,178,255,0.4); }
.chip.color-7 { border-color: rgba(255,198,255,0.4); }
.chip.color-8 { border-color: rgba(255,165,0,0.4); }
.chip.color-9 { border-color: rgba(224,247,250,0.4); }

.chip.active.color-0 { background: rgba(255,182,182,0.6); border-color: #FFB6B6; color: #333; }
.chip.active.color-1 { background: rgba(255,214,165,0.6); border-color: #FFD6A5; color: #333; }
.chip.active.color-2 { background: rgba(253,255,182,0.6); border-color: #bffff6; color: #333; }
.chip.active.color-3 { background: rgba(202,255,191,0.6); border-color: #CAFFBF; color: #333; }
.chip.active.color-4 { background: rgba(155,246,255,0.6); border-color: #9BF6FF; color: #333; }
.chip.active.color-5 { background: rgba(160,196,255,0.6); border-color: #A0C4FF; color: #333; }
.chip.active.color-6 { background: rgba(189,178,255,0.6); border-color: #BDB2FF; color: #333; }
.chip.active.color-7 { background: rgba(255,198,255,0.6); border-color: #FFC6FF; color: #333; }
.chip.active.color-8 { background: rgba(255,165,0,0.6); border-color: #FFA500; color: #333; }
.chip.active.color-9 { background: rgba(224,247,250,0.6); border-color: #E0F7FA; color: #333; }

/* 竖线色卡 */
.color-indicator.color-0 { background: #FFB6B6; }
.color-indicator.color-1 { background: #FFD6A5; }
.color-indicator.color-2 { background: #bffff6; }
.color-indicator.color-3 { background: #CAFFBF; }
.color-indicator.color-4 { background: #9BF6FF; }
.color-indicator.color-5 { background: #A0C4FF; }
.color-indicator.color-6 { background: #BDB2FF; }
.color-indicator.color-7 { background: #FFC6FF; }
.color-indicator.color-8 { background: #FFA500; }
.color-indicator.color-9 { background: #E0F7FA; }

.group-title-btn.color-0 { border-color: #FFB6B6; }
.group-title-btn.color-1 { border-color: #FFD6A5; }
.group-title-btn.color-2 { border-color: #bffff6; }
.group-title-btn.color-3 { border-color: #CAFFBF; }
.group-title-btn.color-4 { border-color: #9BF6FF; }
.group-title-btn.color-5 { border-color: #A0C4FF; }
.group-title-btn.color-6 { border-color: #BDB2FF; }
.group-title-btn.color-7 { border-color: #FFC6FF; }
.group-title-btn.color-8 { border-color: #FFA500; }
.group-title-btn.color-9 { border-color: #E0F7FA; }

.chip { background: #fff; color: var(--text-secondary); }
.chip.active { color: #333; }

#globalSelectAllBtn {
  background: #fff !important;
  border: 1.5px solid #1890ff !important;
  color: #1890ff !important;
  transition: all 0.2s;
}
#globalSelectAllBtn:hover {
  background: #e6f7ff !important;
  border-color: #40a9ff !important;
  color: #1890ff !important;
}
#globalSelectAllBtn.active {
  background: #1890ff !important;
  border-color: #1890ff !important;
  color: #fff !important;
}

.select-all-wrapper {
  margin-bottom: 24px;
}
.filter-group {
  margin-bottom: 16px;
}
.group-title-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px 6px 12px;
  border-radius: 6px;
  background-color: #f5f7fa;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  transition: all 0.2s;
  border: 1px solid transparent;
  user-select: none;
}
.group-title-btn:hover {
  background-color: var(--primary-bg);
}
.group-title-btn.active {
  background-color: var(--primary-bg);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.color-indicator {
  display: inline-block;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  margin-right: 8px;
}
.indicator-color { background-color: var(--primary-color); }
.indicator-power { background-color: var(--success-color); }
.indicator-voltage { background-color: var(--purple-color); }
.dialog-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
}
.submit-btn {
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(90deg, #13c2c2 0%, #1890ff 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}
.submit-btn:hover { opacity: 0.9; }
.submit-btn:active { transform: translateY(1px); }
