Symmetry-resolved entanglement in critical non-Hermitian systems