forget about raw materials for building. As yousaid, maintenance is deducted iinstantly, meanwhile, refined resources are deducted little by little per turn. Until you get the main idea, I recomend enabling the auto-production. Also, I recomend having more refineries in a rate of 10 refs per 8 mines.