What can the lawyer and client do if the legal fees in question are unrelated to the legal proceeding heard by the court?
They can each institute a case for estimating and claiming the legal fees according to the standard rules for instituting the case.