// 组件管理对话框样式
.component-management {
  max-height: 70vh;
  overflow-y: auto;
}

.management-tips {
  margin-bottom: 16px;
}

.operation-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.config-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  padding: 12px;
  background-color: #f5f7fa;
  border-radius: 6px;
}

.summary-item {
  display: flex;
  align-items: center;

  .label {
    font-size: 13px;
    color: #606266;
    margin-right: 4px;
  }

  .value {
    font-size: 14px;
    font-weight: 600;

    &.enabled {
      color: #67c23a;
    }

    &.disabled {
      color: #f56c6c;
    }
  }
}

.batch-actions-section {
  margin-bottom: 16px;

  .batch-actions {
    display: flex;
    gap: 8px;
  }
}

.section-title {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 12px;
  color: #303133;
  display: flex;
  align-items: center;
  gap: 6px;
}

.component-count {
  font-size: 12px;
  color: #909399;
  font-weight: normal;
}

.configurable-components-section {
  margin-bottom: 24px;
}

.component-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #f0f2f5;
  color: #606266;
}

.component-icon-small {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: #f0f2f5;
  color: #606266;
}

.component-info {
  .component-name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-weight: 500;
    flex-wrap: wrap;
  }

  .component-description {
    color: #606266;
    font-size: 12px;
    line-height: 1.4;
  }
}

.component-info-compact {
  .component-name-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    font-weight: 500;
    font-size: 13px;
    flex-wrap: wrap;
  }

  .component-description-compact {
    color: #606266;
    font-size: 11px;
    line-height: 1.3;
  }
}

.system-tag {
  margin-left: 4px;
}

.category-tag {
  margin-left: 4px;
}

.system-tip {
  color: #909399;
  font-size: 11px;
  font-style: italic;
  display: block;
  margin-top: 2px;
}

.no-permission {
  color: #909399;
  font-size: 12px;
}

.system-enabled-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  color: #e6a23c;
  font-size: 10px;
  gap: 2px;
}

.sort-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sort-actions-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.sort-actions-system {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #e6a23c;
  flex-direction: column;
}

.sort-actions-system-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e6a23c;
}

.sort-actions-disabled {
  display: flex;
  justify-content: center;
  color: #c0c4cc;
}

.sort-actions-disabled-compact {
  display: flex;
  justify-content: center;
  color: #c0c4cc;
}

.order-number {
  font-size: 12px;
  color: #909399;
  margin-left: 4px;
  min-width: 20px;
  text-align: center;
}

.system-order-tip {
  font-size: 10px;
  color: #909399;
}

// 布局预览样式
.layout-preview {
  margin-top: 24px;
  border-top: 1px solid #ebeef5;
  padding-top: 16px;
}

.preview-title {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 12px;
  color: #303133;
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-container {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  background-color: #f5f7fa;
  padding: 12px;
  min-height: 120px;
}

.preview-header {
  background-color: #e0f2fe;
  color: #0284c7;
  padding: 8px;
  text-align: center;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 10px;
}

.preview-body {
  display: flex;
  gap: 10px;
  min-height: 50px;
  margin-bottom: 10px;
}

.preview-left {
  width: 66.666%;
  background-color: #dbeafe;
  color: #2563eb;
  padding: 8px;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-right {
  width: 33.333%;
  background-color: #dbeafe;
  color: #2563eb;
  padding: 8px;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-dynamic {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 40px;
}

.preview-component {
  background-color: #d1fae5;
  color: #047857;
  padding: 8px 12px;
  text-align: center;
  border-radius: 4px;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
}

.preview-third {
  width: calc(33.333% - 7px);
}

.preview-half {
  width: calc(50% - 5px);
}

.preview-two-thirds {
  width: calc(66.666% - 3px);
}

.preview-full {
  width: 100%;
}

.preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 60px;
  color: #909399;
  font-size: 13px;
  gap: 8px;
}

.import-content {
  padding: 0 16px;
}

// 通用工具类
.mb-4 {
  margin-bottom: 16px;
}

.ml-1 {
  margin-left: 4px;
}

.mr-1 {
  margin-right: 4px;
}
