(a) Application This sanctions rule applies to the rules in the California Rules of Court relating to general civil cases, unlawful detainer cases, probate proceedings, civil proceedings in the appellate division of the superior court, and small claims cases. (b) Sanctions In addition to any other sanctions permitted by law, the court may order a person, after written notice and an opportunity to be heard, to pay reasonable monetary sanctions to the court or an aggrieved person, or both, for failure