XML 118 R89.htm IDEA: XBRL DOCUMENT v3.20.4
FibroGen, Inc. 401(k) Plan - Additional Information (Detail) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Compensation And Retirement Disclosure [Abstract]      
Defined contribution plan, maximum annual contributions per employee, percent 60.00%    
Defined contribution plan, employer matching contributions $ 3.2 $ 3.0 $ 2.9