A system of folded membranes, channels, and flattened sacs in the cytoplasm of eukaryotic cells, involved in the synthesis, storage, and transport of various substances necessary to cell function. As the point of attachment for ribosomes, it is especially associated with protein synthesis.