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