Generalized sufficiency criteria in continuous-time programming with application to a class of variational-type inequalities