Unaudited Condensed Consolidated Statements of Stockholders' Equity - USD ($) $ in Thousands | Common Stock [Member] | Additional Paid-in Capital [Member] | Retained Earnings [Member] | AOCI Attributable to Parent [Member] | Total |
Balance (in shares) at Dec. 31, 2017 | 42,780,229 | | | | |
Balance at Dec. 31, 2017 | $ 43 | $ 484,934 | $ (74,145) | $ 569 | $ 411,401 |
Issuance of common stock from exercise of stock options (in shares) | 136,690 | | | | |
Issuance of common stock from exercise of stock options | $ 0 | 291 | 0 | 0 | 291 |
Issuance of common stock from restricted stock unit grant, net of shares withheld for tax (in shares) | 102,702 | | | | |
Issuance of common stock from restricted stock unit grant, net of shares withheld for tax | $ 0 | | 0 | 0 | |
Issuance of common stock from restricted stock unit grant, net of shares withheld for tax | | (1,923) | | | (1,923) |
Issuance of common stock from employee stock purchase plan purchases (in shares) | 177,771 | | | | |
Issuance of common stock from employee stock purchase plan purchases | $ 0 | 3,704 | 0 | 0 | 3,704 |
Stock-based compensation expense | 0 | 14,553 | 0 | 0 | 14,553 |
Net income (loss) | 0 | 0 | (22,991) | 0 | (22,991) |
Other comprehensive income, net | $ 0 | 0 | 0 | (275) | (275) |
Balance (in shares) at Mar. 31, 2018 | 43,197,392 | | | | |
Balance at Mar. 31, 2018 | $ 43 | 501,559 | (97,136) | 294 | 404,760 |
Balance (in shares) at Dec. 31, 2017 | 42,780,229 | | | | |
Balance at Dec. 31, 2017 | $ 43 | 484,934 | (74,145) | 569 | $ 411,401 |
Issuance of common stock from employee stock purchase plan purchases (in shares) | | | | | 177,771 |
Net income (loss) | | | | | $ (51,455) |
Balance (in shares) at Jun. 30, 2018 | 43,814,343 | | | | |
Balance at Jun. 30, 2018 | $ 44 | 507,575 | (125,600) | 433 | 382,452 |
Balance (in shares) at Mar. 31, 2018 | 43,197,392 | | | | |
Balance at Mar. 31, 2018 | $ 43 | 501,559 | (97,136) | 294 | 404,760 |
Issuance of common stock from exercise of stock options (in shares) | 21,614 | | | | |
Issuance of common stock from exercise of stock options | $ 0 | 198 | 0 | 0 | 198 |
Issuance of common stock from restricted stock unit grant, net of shares withheld for tax (in shares) | 595,337 | | | | |
Issuance of common stock from restricted stock unit grant, net of shares withheld for tax | $ 1 | | 0 | 0 | |
Issuance of common stock from restricted stock unit grant, net of shares withheld for tax | | (10,398) | | | (10,397) |
Stock-based compensation expense | 0 | 16,216 | 0 | 0 | 16,216 |
Net income (loss) | 0 | 0 | (28,464) | 0 | (28,464) |
Other comprehensive income, net | $ 0 | 0 | 0 | 139 | 139 |
Balance (in shares) at Jun. 30, 2018 | 43,814,343 | | | | |
Balance at Jun. 30, 2018 | $ 44 | 507,575 | (125,600) | 433 | 382,452 |
Balance (in shares) at Dec. 31, 2018 | 44,292,722 | | | | |
Balance at Dec. 31, 2018 | $ 44 | 536,157 | (169,896) | 389 | 366,694 |
Issuance of common stock from exercise of stock options (in shares) | 78,205 | | | | |
Issuance of common stock from exercise of stock options | $ 0 | 646 | 0 | 0 | 646 |
Issuance of common stock from restricted stock unit grant, net of shares withheld for tax (in shares) | 168,227 | | | | |
Issuance of common stock from restricted stock unit grant, net of shares withheld for tax | $ 1 | | 0 | 0 | |
Issuance of common stock from restricted stock unit grant, net of shares withheld for tax | | (4,017) | | | (4,016) |
Issuance of common stock from employee stock purchase plan purchases (in shares) | 121,549 | | | | |
Issuance of common stock from employee stock purchase plan purchases | $ 0 | 3,477 | 0 | 0 | 3,477 |
Stock-based compensation expense | 0 | 18,758 | 0 | 0 | 18,758 |
Net income (loss) | 0 | 0 | (22,745) | 0 | (22,745) |
Other comprehensive income, net | $ 0 | 0 | 0 | 540 | 540 |
Balance (in shares) at Mar. 31, 2019 | 44,660,703 | | | | |
Balance at Mar. 31, 2019 | $ 45 | 555,021 | (192,641) | 929 | 363,354 |
Balance (in shares) at Dec. 31, 2018 | 44,292,722 | | | | |
Balance at Dec. 31, 2018 | $ 44 | 536,157 | (169,896) | 389 | $ 366,694 |
Issuance of common stock from exercise of stock options (in shares) | | | | | 123,522 |
Issuance of common stock from employee stock purchase plan purchases (in shares) | | | | | 121,549 |
Net income (loss) | | | | | $ (43,323) |
Balance (in shares) at Jun. 30, 2019 | 45,401,399 | | | | |
Balance at Jun. 30, 2019 | $ 46 | 555,082 | (213,219) | 1,495 | 343,404 |
Balance (in shares) at Mar. 31, 2019 | 44,660,703 | | | | |
Balance at Mar. 31, 2019 | $ 45 | 555,021 | (192,641) | 929 | 363,354 |
Issuance of common stock from exercise of stock options (in shares) | 45,317 | | | | |
Issuance of common stock from exercise of stock options | $ 0 | 486 | 0 | 0 | 486 |
Issuance of common stock from restricted stock unit grant, net of shares withheld for tax (in shares) | 695,379 | | | | |
Issuance of common stock from restricted stock unit grant, net of shares withheld for tax | $ 1 | | 0 | 0 | |
Issuance of common stock from restricted stock unit grant, net of shares withheld for tax | | (18,386) | | | (18,385) |
Stock-based compensation expense | 0 | 17,961 | 0 | 0 | 17,961 |
Net income (loss) | 0 | 0 | (20,578) | 0 | (20,578) |
Other comprehensive income, net | $ 0 | 0 | 0 | 566 | 566 |
Balance (in shares) at Jun. 30, 2019 | 45,401,399 | | | | |
Balance at Jun. 30, 2019 | $ 46 | $ 555,082 | $ (213,219) | $ 1,495 | $ 343,404 |