Annual report pursuant to Section 13 and 15(d)

Quarterly Summary of Information (Unaudited) - Summary of Unaudited Quarterly Statements of Income Data (Details)

v3.19.3.a.u2
Quarterly Summary of Information (Unaudited) - Summary of Unaudited Quarterly Statements of Income Data (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2019
Sep. 30, 2019
Jun. 30, 2019
Mar. 31, 2019
Dec. 31, 2018
Sep. 30, 2018
Jun. 30, 2018
Mar. 31, 2018
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2017
Selected Quarterly Financial Information [Abstract]                      
Total revenue $ 78,917 $ 91,761 $ 101,063 $ 90,202 $ 86,531 $ 95,291 $ 97,238 $ 79,051 $ 361,943 $ 358,111 $ 249,438
Gross profit 33,922 43,315 50,215 44,409 43,570 48,813 48,470 37,727 171,861 178,580 121,237
Income (loss) before provision (benefit) for income taxes (4,237) 8,753 13,684 6,072 5,823 11,299 13,646 9,687 24,272 40,455 29,656
Provision (benefit) for income taxes (2,862) 1,890 3,524 770 (4,222) (5,133) (964) (1,071) 3,322 (11,390) 8,654
Net income $ (1,375) $ 6,863 $ 10,160 $ 5,302 $ 10,045 $ 16,432 $ 14,610 $ 10,758 $ 20,950 $ 51,845 $ 21,002
Net income (loss) per share attributable to common stockholders:                      
Basic $ (0.06) $ 0.31 $ 0.47 $ 0.24 $ 0.47 $ 0.77 $ 0.69 $ 0.51 $ 0.96 $ 2.44 $ 1.02
Diluted $ (0.06) $ 0.31 $ 0.45 $ 0.24 $ 0.44 $ 0.73 $ 0.65 $ 0.48 $ 0.94 $ 2.30 $ 0.96
Weighted-average number of shares used in calculating net income per share attributable to common stockholders:                      
Basic common shares 21,878,004 21,840,473 21,815,634 21,750,305 21,544,202 21,324,256 21,172,170 21,026,154 21,821,104 21,266,696 20,683,807
Diluted common shares 21,878,004 22,191,688 22,359,679 22,534,885 22,600,038 22,659,052 22,503,749 22,295,213 22,241,064 22,514,513 21,897,988