.view-menu-popup {
  position: relative;
  z-index: 1100; // 与 @/utils/floating-layer 一致
  min-width: 200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 4px 0;
}

.view-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 14px;
  color: #333;

  &:hover {
    background-color: #f5f5f5;
  }

  &-icon {
    color: #666;
  }

  &-text {
    flex: 1;
  }

  &-danger {
    color: #ff4d4f;

    .view-menu-item-icon {
      color: #ff4d4f;
    }

    &:hover {
      background-color: #fff1f0;
    }
  }

  &-disabled {
    cursor: not-allowed;
    opacity: 0.5;
    color: #999;

    .view-menu-item-icon {
      color: #999;
    }

    &:hover {
      background-color: transparent;
    }
  }
}

.view-rename-dialog {
  // padding: 16px 0;

  .view-rename-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
  }

  // 覆盖 CnDialog 的 body 最小高度
  .cn-next-dialog-body {
    min-height: 0 !important;

    // 设置 CnInput 宽度为 100%
    .cn-next-input,
    .cn-ui-input {
      width: 100% !important;
    }
  }
}

.view-delete-dialog {
  padding: 16px 0;

  .view-delete-message {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
  }

  .view-delete-tip {
    font-size: 12px;
    color: #999;
  }
}
