/* custom.css - 自定义样式 */

/* 按钮基础样式 */
.btn-xs {
  height: 1.5rem;
  min-height: 1.5rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  font-size: 0.7rem;
  line-height: 1rem;
}

/* 主控制按钮 (-1 和 +1) */
.btn-step-main {
  min-width: 1.8rem;
  width: 1.8rem;
  height: 1.5rem;
  padding: 0;
  font-size: 0.7rem;
  line-height: 1rem;
}

/* 步长按钮 (-5, -10, +5, +10) */
.btn-step-sub {
  min-width: 2.2rem;
  width: 2.2rem;
  height: 1.4rem;
  padding: 0;
  font-size: 0.65rem;
  line-height: 1rem;
  background-color: transparent;
}

/* 按钮组容器 */
.step-buttons {
  display: flex;
  gap: 0.2rem;
  margin-left: 0.5rem;
  flex-wrap: wrap;
}

/* X和Y标签 */
.axis-label {
  width: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 步长标签 */
.step-label {
  width: 1.5rem;
  font-size: 0.65rem;
  color: #6b7280;
  white-space: nowrap;
}

/* 输入框样式 */
.axis-input {
  width: 4rem !important;
  height: 1.5rem !important;
  min-height: 1.5rem !important;
  padding: 0 0.25rem !important;
  font-size: 0.75rem !important;
  text-align: center !important;
}

/* 主控制行 */
.control-main {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

/* 步长控制行 */
.control-sub {
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
}

/* 按钮颜色 */
.btn-outline.btn-primary {
  color: #000;
  border-color: #e5e7eb;
}

.btn-outline.btn-primary:hover {
  background-color: #f3f4f6;
  color: #000;
  border-color: #9ca3af;
}

/* 调整间距 */
.control-group {
  margin-bottom: 1rem;
}

.control-group:last-child {
  margin-bottom: 0;
}