body {
  font-family: Arial, sans-serif;
  margin: 20px;
}
.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.file-selector {
  margin-bottom: 20px;
}
.drawing-container {
  border: 1px solid #ccc;
  padding: 15px;
  min-height: 500px;
  background-color: #f8f8f8;
  position: relative;
  width: 100%;
}
svg {
  border: 1px solid #ddd;
  background-color: white;
}
button {
  padding: 8px 15px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: #45a049;
}
.controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.upload-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #ccc;
}
#upload-status {
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.error-message {
  padding: 20px;
  color: red;
}
.loading-message {
  padding: 20px;
}
.waiting-message {
  padding: 20px;
  color: #666;
  text-align: center;
  font-style: italic;
}
.no-entities-message {
  padding: 20px;
}

/* TOLERANCE实体样式 */
.tolerance-group svg {
  display: inline-block;
  vertical-align: middle;
  height: 16px;
  max-width: 100%;
  border: none;
  background: transparent !important;
}

/* 控制SVG符号的额外样式 */
.tolerance-group foreignObject {
  background: transparent !important;
}

.tolerance-group svg path {
  fill: currentColor;
}

/* 确保容器不带背景 */
.tolerance-container {
  background: transparent !important;
  display: inline-flex;
  align-items: center;
}

/* 强制所有子元素透明背景 */
.tolerance-group *,
.tolerance-container *,
foreignObject div {
  background: transparent !important;
}

/* 公差框样式 */
.tolerance-box {
  fill: none !important;
  stroke-width: 1px;
}

.tolerance-element {
  background: transparent !important;
} 