XML 12 R1.htm IDEA: XBRL DOCUMENT v3.21.2
Document and Entity Information - shares
6 Months Ended
Jun. 30, 2021
Jul. 14, 2021
Cover [Abstract]    
Document Type 10-Q  
Document Quarterly Report true  
Document Transition Report false  
Document Period End Date Jun. 30, 2021  
Entity File Number 001-09463  
Entity Registrant Name RLI Corp  
Entity Incorporation, State or Country Code DE  
Entity Tax Identification Number 37-0889946  
Entity Address, Address Line One 9025 North Lindbergh Drive  
Entity Address, City or Town Peoria  
Entity Address, State or Province IL  
Entity Address, Postal Zip Code 61615  
City Area Code 309  
Local Phone Number 692-1000  
Title of 12(b) Security Common Stock $0.01 par value  
Trading Symbol RLI  
Security Exchange Name NYSE  
Entity Current Reporting Status Yes  
Entity Interactive Data Current Yes  
Entity Filer Category Large Accelerated Filer  
Entity Small Business false  
Entity Emerging Growth Company false  
Entity Shell Company false  
Entity Common Stock, Shares Outstanding   45,225,943
Current Fiscal Year End Date --12-31  
Document Fiscal Year Focus 2021  
Document Fiscal Period Focus Q2  
Entity Central Index Key 0000084246  
Amendment Flag false