import { Env } from "../tools/env";

export function importStyle() {
    if ("node" === Env.mode) return;
    const styleElement = document.createElement("style");
    styleElement.id = "vtable-sheet-sheet-styleSheet", styleElement.textContent = "\n/* Sheet容器样式 */\n.vtable-sheet-container {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  background-color: var(--bg-default);\n  font-family: var(--font-family-sans);\n  color: var(--text-primary);\n  overflow: hidden;\n}\n\n.vtable-sheet-top-container {\n  height: 30px;\n  padding: 0;\n  border: 1px solid #e0e0e0;\n  display: flex;\n  align-items: center; /* 确保子元素垂直居中 */\n}\n\n/* 主内容区域 */\n.vtable-sheet-content {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n  position: relative;\n}\n\n\n/* VTable 容器 */\n.vtable-sheet-table {\n  flex: 1;\n  position: relative;\n  overflow: hidden;\n  background-color: var(--bg-default);\n}\n\n/* 表格加载动画 */\n.vtable-sheet-loading {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background-color: rgba(255, 255, 255, 0.7);\n  z-index: 100;\n}\n\n.vtable-sheet-loading-spinner {\n  width: 40px;\n  height: 40px;\n  border: 3px solid var(--gray-200);\n  border-top-color: var(--primary-color);\n  border-radius: 50%;\n  animation: vtable-sheet-spinner 0.8s linear infinite;\n}\n\n@keyframes vtable-sheet-spinner {\n  to {\n    transform: rotate(360deg);\n  }\n}\n\n/* 状态提示 */\n.vtable-sheet-status {\n  position: absolute;\n  bottom: 8px;\n  right: 8px;\n  padding: 4px 8px;\n  background-color: var(--gray-800);\n  color: var(--white);\n  border-radius: var(--border-radius-sm);\n  font-size: 12px;\n  opacity: 0.8;\n  z-index: 50;\n  transition: opacity 0.2s;\n}\n\n.vtable-sheet-status:hover {\n  opacity: 1;\n}\n\n.vtable-sheet-snackbar-message {\n  position: fixed;\n  bottom: 20px;\n  left: 50%;\n  transform: translateX(-50%);\n  padding: 12px 24px;\n  background-color: #333;\n  color: white;\n  border-radius: 4px;\n  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);\n  opacity: 0;\n  transition: opacity 0.3s ease-in-out;\n  z-index: 1000;\n  white-space: nowrap;\n}\n\n.vtable-sheet-snackbar-message.show {\n  opacity: 1;\n}\n\n/* 选择区域高亮 */\n.vtable-sheet-selection-highlight {\n  position: absolute;\n  border: 2px solid var(--primary-color);\n  background-color: rgba(26, 115, 232, 0.1);\n  pointer-events: none;\n  z-index: 10;\n}\n\n/* 辅助区域 */\n.vtable-sheet-helper-area {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  top: 0;\n  left: 0;\n  pointer-events: none;\n  z-index: 20;\n}\n\n/* 调整尺寸标记 */\n.vtable-sheet-resize-marker {\n  position: absolute;\n  background-color: var(--primary-color);\n  z-index: 25;\n}\n\n.vtable-sheet-resize-marker.horizontal {\n  height: 2px;\n  left: 0;\n  right: 0;\n}\n\n.vtable-sheet-resize-marker.vertical {\n  width: 2px;\n  top: 0;\n  bottom: 0;\n}\n\n.vtable-sheet-error {\n  padding: 16px;\n  color: #d93025;\n  text-align: center;\n}\n\n/* 隐藏底部功能区 */\n.vtable-sheet-footer {\n  display: none;\n}\n\n", 
    document.head.appendChild(styleElement);
}
//# sourceMappingURL=sheet.js.map