Kinetic theory of dense fluids. IV. Entropy balance equation and irreversible thermodynamics