I try to parent an mesh to an armature but it shows up as a ghost child
The reason why its greyed out is because the the parent and the child are not in the same collection. So if you select the greyed out child and press M to and move it to the collection containing the parent object it wont be greyed out anymore.