Interim Reddit CEO Ellen Pao Josh Edelson/Bloomberg via Getty Images A San Francisco court judge tentatively ordered Ellen Pao to pay $275,966.63 in court costs to her former employer Kleiner Perkins Caufield & Byers.

That's a number greatly reduced from the initial $973,000 in court fees the venture capital firm was seeking to recover from Pao, of which $865,000 was attributed to expert fees.

In a tentative ruling before tomorrow's hearing, Judge Harold Kahn scaled down the expert testimony costs to $228,646.28. He also found that KPCB's offer of settlement to Pao was made in "good faith", not a "token" offer as she had contested, which leaves Pao with the bill.

"We’re pleased the court has reached a fair result," said Christina Lee, a spokeswoman for KPCB. "This tentative ruling recognizes that our settlement offer was reasonable and made in good faith. It also recognizes the cost rules still apply when a plaintiff refuses a reasonable settlement offer and forces the parties to go through an expensive trial."

Request for comment to Pao's attorney went unreturned.

Pao lost all counts of her case against the venture capital firm on March 27, 2015, when a jury found that her gender was not the motivating reason for her not being promoted to a general or senior partner, or for her termination at the firm.

In a move typical for defendants who prevail in employment lawsuits, KPCB filed in April to recover $973,000 in court fees, but said it would waive its legal costs if Pao gave up her right to appeal.

In May, Pao filed a motion to strike KPCB's costs because she found them "grossly excessive and unreasonable." The nearly $973,000 in court costs includes nearly $865,000 in expert witness fees. She also considered the firm's settlement offer for $964,000 in November 2014 a "bad faith offer". But Pao also offered, according to KPCB, to waive her rights to appeal in exchange for $2.7 million to cover her own costs.

The judge's tentative ruling means that Pao will now have to pay the reduced amount of $275,966.63. The case will be heard in San Francisco on June 18. Additionally, Pao filed a notice to appeal the case on June 1, which is separate from the negotiation of legal costs.