All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
Qaza' is considered disliked (Makruh) in Islam. It involves shaving parts of the head (with a razor or blade) and leaving other parts, or shaving scattered areas of the head. This is based on the narration of Ibn Umar (may Allah be pleased with him): "The Messenger of Allah (peace and blessings be upon him) forbade Qaza'." Nafi' was asked: "What is Qaza'?" He said: "It is to shave some of the head of a boy and leave some." [Agreed upon, with the wording from Moslim].
The Shafi'i scholars have interpreted the prohibition in the hadith as indicating dislike (Karaha) rather than prohibition (Tahrim). Shaykh al-Islam Imam Nawawi (may Allah have mercy on him) said: "Qaza' is disliked, which is shaving part of the head, based on the hadith of Ibn Umar (may Allah be pleased with him) in the two Sahihs: "The Messenger of Allah (peace and blessings be upon him) forbade Qaza'." [Al-Majmu' Sharh Al-Muhadhdhab, Vol. 1/P.347].
They justified the prohibition by stating that its appearance distorts the natural creation. Shaykh Al-Islam Imam Nawawi (may Allah have mercy on him) said: "The scholars unanimously agree that Qaza' is disliked if it involves shaving in scattered areas unless it is for medical treatment or similar reasons. It is a disliked (Tanzih) practice... According to our Shafi'i school, it is disliked for both men and women without exception due to the general meaning of the hadith. The scholars stated that the wisdom behind its dislike is that it distorts the natural creation." [Sharh Al-Nawawi 'Ala Muslim, Vol. 14/P.101].
Therefore, cutting hair in a graded manner using scissors or a clipper is not considered Qaza'; rather, it is called trimming and there is no harm in it even if the hair is of varying lengths. Shaving involves complete removal, whereas taking some of the hair while leaving part of it is called cutting. Generally, it is advisable to consider societal norms when cutting hair and to avoid strange styles that are against people's customs or resemble those of immoral people.
Accordingly, the ruling on Qaza'—which involves shaving the hair with a razor or blade—is that it is disliked (Makruh). It is also disliked for a barber to perform it. Observing that most of the haircuts people request do not fall under the ruling of Qaza', graduated cuts using scissors or clippers without removing the hair from the root are not considered Qaza'. A barber can apologize for not performing Qaza' haircuts for customers, and if he does not refuse, he is not sinful but has engaged in a disliked practice. And Allah The Almighty Knows Best.