|
Redeemable Convertible Preferred Stock and Stockholders' Equity (Deficit) (Details) (USD $)
In Thousands, except Share data, unless otherwise specified |
12 Months Ended | 0 Months Ended | 0 Months Ended | 0 Months Ended | 0 Months Ended | 0 Months Ended | 0 Months Ended | 0 Months Ended | 0 Months Ended | 0 Months Ended | 0 Months Ended | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Dec. 31, 2013
|
Dec. 31, 2012
|
Aug. 07, 2013
Redeemable convertible preferred stock
|
Dec. 31, 2012
Redeemable convertible preferred stock
|
Dec. 31, 2011
Redeemable convertible preferred stock
|
Dec. 31, 2010
Redeemable convertible preferred stock
|
Aug. 07, 2013
Series A
|
Dec. 31, 2012
Series A
|
Aug. 07, 2013
Series B
|
Dec. 31, 2012
Series B
|
Aug. 07, 2013
Series C
|
Dec. 31, 2012
Series C
|
Aug. 07, 2013
Series D
|
Dec. 31, 2012
Series D
|
Aug. 07, 2013
Series E
|
Dec. 31, 2012
Series E
|
Aug. 07, 2013
Series F
|
Dec. 31, 2012
Series F
|
Aug. 07, 2013
Series G
|
Dec. 31, 2012
Series G
|
Aug. 07, 2013
Series G - 1
|
Dec. 31, 2012
Series G - 1
|
Aug. 07, 2013
Series H
|
Dec. 31, 2012
Series H
|
|
| Redeemable Convertible Preferred Stock | ||||||||||||||||||||||||
| Number of shares converted | 15,293,960 | |||||||||||||||||||||||
| Conversion of shares to common stock | $ 116,313 | $ 116,300 | ||||||||||||||||||||||
| Converted into one share of common stock | 1 | |||||||||||||||||||||||
| Carrying value of redeemable preferred stock | 116,313 | 116,300 | 116,313 | 116,313 | 97,670 | |||||||||||||||||||
| Shares Authorized | 0 | 83,163,408 | 83,163,408 | 8,150,000 | 8,150,000 | 18,124,230 | 18,124,230 | 14,215,791 | 14,215,791 | 7,789,215 | 7,789,215 | 5,045,662 | 5,045,662 | 5,988,024 | 5,988,024 | 8,677,338 | 8,677,338 | 2,073,148 | 2,073,148 | 13,100,000 | 13,100,000 | |||
| Shares Issued | 0 | 15,293,960 | 15,293,960 | 15,293,960 | 15,293,960 | 13,279,319 | 1,567,306 | 1,567,306 | 3,485,425 | 3,485,425 | 2,726,476 | 2,726,476 | 1,497,921 | 1,497,921 | 965,927 | 965,927 | 1,151,542 | 1,151,542 | 1,668,707 | 1,668,707 | 216,015 | 216,015 | 2,014,641 | 2,014,641 |
| Shares Outstanding | 0 | 15,293,960 | 15,293,960 | 1,567,306 | 1,567,306 | 3,485,425 | 3,485,425 | 2,726,476 | 2,726,476 | 1,497,921 | 1,497,921 | 965,927 | 965,927 | 1,151,542 | 1,151,542 | 1,668,707 | 1,668,707 | 216,015 | 216,015 | 2,014,641 | 2,014,641 | |||
| Aggregate Liquidation Preference | $ 0 | $ 118,150 | $ 118,150 | $ 4,075 | $ 4,075 | $ 14,735 | $ 14,735 | $ 15,000 | $ 15,000 | $ 15,890 | $ 15,890 | $ 11,000 | $ 11,000 | $ 20,000 | $ 20,000 | $ 15,450 | $ 15,450 | $ 2,000 | $ 2,000 | $ 20,000 | $ 20,000 | |||
| Dividend rate per share per year (in dollars per share) | $ 0.21 | $ 0.34 | $ 0.44 | $ 0.85 | $ 0.91 | $ 1.39 | $ 0.74 | $ 0.74 | $ 0.79 | |||||||||||||||
| Preferred stock dividend declared (in dollars per share) | $ 0 |