My understanding of idealism is that it rests on the primacy of the mind and conscience over matter. The Encyclopædia Britannica provides the following "basic" forms of idealism:
The two basic forms of idealism are metaphysical idealism, which asserts the ideality of reality, and epistemological idealism, which holds that in the knowledge process the mind can grasp only the psychic or that its objects are conditioned by their perceptibility. In its metaphysics, idealism is thus directly opposed to materialism—the view that the basic substance of the world is matter and that it is known primarily through and as material forms and processes. In its epistemology, it is opposed to realism, which holds that in human knowledge objects are grasped and seen as they really are in their existence outside and independently of the mind.
This view states that we can only perceive phenomena, and can have no understanding of things in themselves, noumena.
How are these views reconciled with science and the fact that we are able to build accurate models of "reality"? I imagine the epistemological view to be more easily dealt with, but I would be interested in understanding how both views are conciliated with the empirical nature of science and the scientific method.
Do other forms of idealism, such as some forms of panpsychism, take a different view?