Equity (Details) (USD $) | 3 Months Ended | 6 Months Ended |
Jun. 30, 2014 | Jun. 30, 2013 | Jun. 30, 2014 | Jun. 30, 2013 |
Plan |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ' | | ' | ' | | ' |
Number of share-based compensation plans | ' | | ' | 3 | | ' |
Outstanding assumed options (in shares) | 375,000 | | ' | 375,000 | | ' |
Additional shares authorized by Board of Directors (in shares) | ' | | ' | 4,000,000 | | ' |
Shares authorized (in shares) | 26,500,000 | | ' | 26,500,000 | | ' |
Total unrecognized compensation expense | $17,138,013 | | ' | $17,138,013 | | ' |
Number of shares [Roll forward] | ' | | ' | ' | | ' |
Outstanding, beginning of period (in shares) | ' | | ' | 15,375,960 | | ' |
Granted (in shares) | ' | | ' | 2,475,069 | | ' |
Exercised (in shares) | ' | | ' | -613,659 | | ' |
Unvested options forfeited (in shares) | ' | | ' | -190,001 | | ' |
Vested options expired (in shares) | ' | | ' | -15,166 | | ' |
Outstanding, end of period (in shares) | 17,032,203 | | ' | 17,032,203 | | ' |
Vested at end of period (in shares) | 8,960,380 | | ' | 8,960,380 | | ' |
Exercisable options, vested and expected to vest (in shares) | 16,671,617 | [1] | ' | 16,671,617 | [1] | ' |
Weighted-Average Exercise Price [Roll forward] | ' | | ' | ' | | ' |
Outstanding, weighted average exercise price, beginning of period (in dollars per share) | ' | | ' | $2.46 | | ' |
Granted, weighted average exercise price (in dollars per share) | ' | | ' | $7.09 | | ' |
Exercised, weighted average exercise price (in dollars per share) | ' | | ' | $1.44 | | ' |
Unvested options forfeited weighted-average exercise price (in dollars per share) | ' | | ' | $3.61 | | ' |
Vested options expired weighted-average exercise price (in dollars per share) | ' | | ' | $1.28 | | ' |
Outstanding, weighted average exercise price, end of period (in dollars per share) | $3.15 | | ' | $3.15 | | ' |
Vested at end of period weighted average exercise price (in dollars per share) | $1.74 | | ' | $1.74 | | ' |
Vested and expected to vest, weighted average exercise price (in dollars per share) | $3.10 | [1] | ' | $3.10 | [1] | ' |
Stock options, additional disclosures [Abstract] | ' | | ' | ' | | ' |
Vested at end of period weighted average remaining contractual term | ' | | ' | '6 years 8 months 12 days | | ' |
Vested and expected to vest, weighted average remaining contractual term | ' | | ' | '7 years 7 months 6 days | [1] | ' |
Outstanding intrinsic value | 67,561,731 | | ' | 67,561,731 | | ' |
Vested at end of period aggregate intrinsic value | 47,919,278 | | ' | 47,919,278 | | ' |
Vested and expected to vest, aggregate intrinsic value | 67,059,685 | [1] | ' | 67,059,685 | [1] | ' |
Exercised options, intrinsic value | ' | | ' | 3,303,706 | | ' |
Number of outstanding options (in shares) | 17,032,203 | | ' | 17,032,203 | | ' |
Outstanding Options, weighted average remaining contractual term | ' | | ' | '7 years 7 months 6 days | | ' |
Outstanding Options, weighted average exercise price (in dollars per share) | $3.15 | | ' | $3.15 | | ' |
Number of exercisable options (in shares) | 8,960,380 | | ' | 8,960,380 | | ' |
Exercisable Options, weighted average exercise price (in dollars per share) | $1.74 | | ' | $1.74 | | ' |
Fair value options valuation assumptions [Abstract] | ' | | ' | ' | | ' |
Expected volatility Minimum | ' | | ' | 63.80% | | 62.15% |
Expected volatility Maximum | ' | | ' | 64.50% | | 64.70% |
Expected dividend yield | ' | | ' | 0.00% | | 0.00% |
Risk-free interest rate Minimum | ' | | ' | 1.69% | | 0.85% |
Risk-free interest rate Maximum | ' | | ' | 1.96% | | 1.13% |
Share-based Compensation [Abstract] | ' | | ' | ' | | ' |
Share-based compensation expense | 2,766,352 | | 1,502,447 | 5,138,716 | | 2,487,239 |
Weighted-average grant date fair value for options granted during the period (in dollars per share) | ' | | ' | $4.12 | | ' |
Warrants, term | ' | | ' | '5 years | | ' |
Warrants | ' | | ' | ' | | ' |
Warrants, Number of Warrants [Roll Forward] | ' | | ' | ' | | ' |
Warrants outstanding, beginning of period (in shares) | ' | | ' | 1,284,816 | | ' |
Warrants exercised (in shares) | ' | | ' | -1,017,000 | | ' |
Warrants outstanding, end of period (in shares) | 267,816 | | ' | 267,816 | | ' |
Warrants, Weighted-Average Exercise Price per Warrant [Roll Forward] | ' | | ' | ' | | ' |
Warrants outstanding, beginning of period (in dollars per share) | ' | | ' | 0.9 | | ' |
Warrants exercised (in dollars per share) | ' | | ' | 0.76 | | ' |
Warrants outstanding, end of period (in dollars per share) | 1.44 | | ' | 1.44 | | ' |
Cost of Products Sold | ' | | ' | ' | | ' |
Share-based Compensation [Abstract] | ' | | ' | ' | | ' |
Share-based compensation expense | 74,750 | | 72,669 | 172,265 | | 122,831 |
Research and Development | ' | | ' | ' | | ' |
Share-based Compensation [Abstract] | ' | | ' | ' | | ' |
Share-based compensation expense | 162,965 | | 122,789 | 322,651 | | 198,767 |
Selling, General and Administrative | ' | | ' | ' | | ' |
Share-based Compensation [Abstract] | ' | | ' | ' | | ' |
Share-based compensation expense | 2,528,637 | | 1,306,989 | 4,643,800 | | 2,165,641 |
$0.50 - $0.76 | ' | | ' | ' | | ' |
Stock options, additional disclosures [Abstract] | ' | | ' | ' | | ' |
Exercise Price Range, lower range limit (in dollars per share) | ' | | ' | $0.50 | | ' |
Exercise Price Range, upper range limit (in dollars per share) | ' | | ' | $0.76 | | ' |
Number of outstanding options (in shares) | 1,066,435 | | ' | 1,066,435 | | ' |
Outstanding Options, weighted average remaining contractual term | ' | | ' | '4 years | | ' |
Outstanding Options, weighted average exercise price (in dollars per share) | $0.67 | | ' | $0.67 | | ' |
Number of exercisable options (in shares) | 1,066,435 | | ' | 1,066,435 | | ' |
Exercisable Options, weighted average exercise price (in dollars per share) | $0.67 | | ' | $0.67 | | ' |
$0.87 - $1.35 | ' | | ' | ' | | ' |
Stock options, additional disclosures [Abstract] | ' | | ' | ' | | ' |
Exercise Price Range, lower range limit (in dollars per share) | ' | | ' | $0.87 | | ' |
Exercise Price Range, upper range limit (in dollars per share) | ' | | ' | $1.35 | | ' |
Number of outstanding options (in shares) | 6,242,178 | | ' | 6,242,178 | | ' |
Outstanding Options, weighted average remaining contractual term | ' | | ' | '7 years 2 months 12 days | | ' |
Outstanding Options, weighted average exercise price (in dollars per share) | $1.20 | | ' | $1.20 | | ' |
Number of exercisable options (in shares) | 4,946,983 | | ' | 4,946,983 | | ' |
Exercisable Options, weighted average exercise price (in dollars per share) | $1.19 | | ' | $1.19 | | ' |
$1.40 - $2.29 | ' | | ' | ' | | ' |
Stock options, additional disclosures [Abstract] | ' | | ' | ' | | ' |
Exercise Price Range, lower range limit (in dollars per share) | ' | | ' | $1.40 | | ' |
Exercise Price Range, upper range limit (in dollars per share) | ' | | ' | $2.29 | | ' |
Number of outstanding options (in shares) | 1,558,368 | | ' | 1,558,368 | | ' |
Outstanding Options, weighted average remaining contractual term | ' | | ' | '5 years 7 months 6 days | | ' |
Outstanding Options, weighted average exercise price (in dollars per share) | $1.64 | | ' | $1.64 | | ' |
Number of exercisable options (in shares) | 1,393,366 | | ' | 1,393,366 | | ' |
Exercisable Options, weighted average exercise price (in dollars per share) | $1.65 | | ' | $1.65 | | ' |
$2.35 - $3.75 | ' | | ' | ' | | ' |
Stock options, additional disclosures [Abstract] | ' | | ' | ' | | ' |
Exercise Price Range, lower range limit (in dollars per share) | ' | | ' | $2.35 | | ' |
Exercise Price Range, upper range limit (in dollars per share) | ' | | ' | $3.75 | | ' |
Number of outstanding options (in shares) | 1,878,152 | | ' | 1,878,152 | | ' |
Outstanding Options, weighted average remaining contractual term | ' | | ' | '8 years 2 months 12 days | | ' |
Outstanding Options, weighted average exercise price (in dollars per share) | $2.77 | | ' | $2.77 | | ' |
Number of exercisable options (in shares) | 555,132 | | ' | 555,132 | | ' |
Exercisable Options, weighted average exercise price (in dollars per share) | $2.79 | | ' | $2.79 | | ' |
$3.95 - $5.99 | ' | | ' | ' | | ' |
Stock options, additional disclosures [Abstract] | ' | | ' | ' | | ' |
Exercise Price Range, lower range limit (in dollars per share) | ' | | ' | $3.95 | | ' |
Exercise Price Range, upper range limit (in dollars per share) | ' | | ' | $5.99 | | ' |
Number of outstanding options (in shares) | 3,471,401 | | ' | 3,471,401 | | ' |
Outstanding Options, weighted average remaining contractual term | ' | | ' | '8 years 10 months 24 days | | ' |
Outstanding Options, weighted average exercise price (in dollars per share) | $5.14 | | ' | $5.14 | | ' |
Number of exercisable options (in shares) | 899,135 | | ' | 899,135 | | ' |
Exercisable Options, weighted average exercise price (in dollars per share) | $4.99 | | ' | $4.99 | | ' |
$6.02 - $8.34 | ' | | ' | ' | | ' |
Stock options, additional disclosures [Abstract] | ' | | ' | ' | | ' |
Exercise Price Range, lower range limit (in dollars per share) | ' | | ' | $6.02 | | ' |
Exercise Price Range, upper range limit (in dollars per share) | ' | | ' | $8.34 | | ' |
Number of outstanding options (in shares) | 2,815,669 | | ' | 2,815,669 | | ' |
Outstanding Options, weighted average remaining contractual term | ' | | ' | '9 years 1 month 6 days | | ' |
Outstanding Options, weighted average exercise price (in dollars per share) | $7.09 | | ' | $7.09 | | ' |
Number of exercisable options (in shares) | 99,329 | | ' | 99,329 | | ' |
Exercisable Options, weighted average exercise price (in dollars per share) | $6.60 | | ' | $6.60 | | ' |
Stock Options | ' | | ' | ' | | ' |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ' | | ' | ' | | ' |
Expenses expected to be recognized over a weighted-average period | ' | | ' | '2 years 2 months 12 days | | ' |
Restricted Stock Awards | ' | | ' | ' | | ' |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ' | | ' | ' | | ' |
Expenses expected to be recognized over a weighted-average period | ' | | ' | '2 years 4 months 24 days | | ' |
Total unrecognized stock-based compensation related to time-based, nonvested restricted stock | $4,907,735 | | ' | $4,907,735 | | ' |
Number of Shares | ' | | ' | ' | | ' |
Beginning Balance | ' | | ' | 576,550 | | ' |
Granted | ' | | ' | 489,864 | | ' |
Vested | ' | | ' | -108,330 | | ' |
Forfeited | ' | | ' | 0 | | ' |
Ending Balance | 958,084 | | ' | 958,084 | | ' |
Weighted- Average Grant Date Fair Value | ' | | ' | ' | | ' |
Beginning Balance (in dollars per share) | ' | | ' | $5.53 | | ' |
Granted (in dollars per share) | ' | | ' | $7.16 | | ' |
Vested (in dollars per share) | ' | | ' | $5.42 | | ' |
Forfeited (in dollars per share) | ' | | ' | $0 | | ' |
Beginning Balance (in dollars per share) | $6.37 | | ' | $6.37 | | ' |
Minimum | ' | | ' | ' | | ' |
Fair value options valuation assumptions [Abstract] | ' | | ' | ' | | ' |
Expected life (in years) | ' | | ' | '5 years | | '5 years 6 months |
Maximum | ' | | ' | ' | | ' |
Fair value options valuation assumptions [Abstract] | ' | | ' | ' | | ' |
Expected life (in years) | ' | | ' | '6 years | | '6 years |
|
[1] | Includes forfeiture adjusted unvested shares. |