.view-type-selector {
  width: 350px;
  max-height: 600px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1100; // 与 @/utils/floating-layer 一致（添加视图等 CnPopup 内容区）
}

.view-type-selector-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  // background: #fafafa;

  .view-type-selector-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 12px;
    color: #333;

    &::placeholder {
      color: #999;
    }
  }
}

.view-type-selector-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.view-type-selector-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;

  &:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
}

.view-type-selector-section-title {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin-bottom: 12px;
}

.view-type-selector-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.view-type-selector-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #f0f0f0;

  &:hover {
    background-color: #f5f5f5;
    border-color: #1890ff;
  }

  .view-type-selector-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .view-type-selector-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .view-type-selector-item-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
  }

  .view-type-selector-item-description {
    font-size: 12px;
    color: #999;
  }
}

.view-type-selector-name-input {
  padding: 16px;

  .view-type-selector-name-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
  }
}

.view-type-selector-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
}
