Annual report pursuant to Section 13 and 15(d)

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

v3.20.4
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, 2020
Sep. 30, 2020
Jun. 30, 2020
Mar. 31, 2020
Dec. 31, 2019
Sep. 30, 2019
Jun. 30, 2019
Mar. 31, 2019
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Selected Quarterly Financial Information [Abstract]                      
Total revenue $ 73,978 $ 74,329 $ 71,691 $ 88,489 $ 78,917 $ 91,761 $ 101,063 $ 90,202 $ 308,487 $ 361,943 $ 358,111
Gross profit 34,059 33,006 32,749 38,366 33,922 43,315 50,215 44,409 138,180 171,861 178,580
Income (loss) before provision (benefit) for income taxes (5,205) (1,913) 3,525 (1,687) (4,237) 8,753 13,684 6,072 (5,280) 24,272 40,455
Provision (benefit) for income taxes (84) (214) 945 (98) (2,862) 1,890 3,524 770 549 3,322 (11,390)
Net income (loss) $ (5,121) $ (1,699) $ 2,580 $ (1,589) $ (1,375) $ 6,863 $ 10,160 $ 5,302 $ (5,829) $ 20,950 $ 51,845
Net income (loss) per share attributable to common stockholders:                      
Basic $ (0.23) $ (0.08) $ 0.12 $ (0.07) $ (0.06) $ 0.31 $ 0.47 $ 0.24 $ (0.27) $ 0.96 $ 2.44
Diluted $ (0.23) $ (0.08) $ 0.12 $ (0.07) $ (0.06) $ 0.31 $ 0.45 $ 0.24 $ (0.27) $ 0.94 $ 2.30
Weighted-average number of shares used in calculating net income per share attributable to common stockholders:                      
Basic common shares 22,042,288 21,998,299 21,963,472 21,916,365 21,878,004 21,840,473 21,815,634 21,750,305 21,980,326 21,821,104 21,266,696
Diluted common shares 22,042,288 21,998,299 22,221,356 21,916,365 21,878,004 22,191,688 22,359,679 22,534,885 21,980,326 22,241,064 22,514,513