Stockholders' Equity (Deficit) - Additional Information (Detail) | May 17, 2017USD ($)$ / sharesshares | Apr. 30, 2017USD ($)shares | Apr. 20, 2017 | Mar. 31, 2017USD ($)$ / sharesshares | Jan. 04, 2017USD ($)shares | May 31, 2017USD ($)$ / sharesshares | Apr. 30, 2017shares | Mar. 31, 2017USD ($)$ / sharesshares | Nov. 30, 2016USD ($)$ / sharesshares | Aug. 31, 2016$ / sharesshares | Jun. 30, 2017USD ($)$ / sharesshares | Mar. 31, 2017USD ($)$ / sharesshares | Jun. 30, 2016USD ($) | Jun. 30, 2017USD ($)$ / sharesshares | Jun. 30, 2016USD ($) | May 16, 2017shares | Dec. 31, 2016$ / sharesshares |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Reverse stock split ratio | | | 0.6 | | | | | | | | | | | | | | |
Stockholders' equity, reverse stock split | | | 0.6-for-1.0 | | | | | | | | | | | | | | |
Common stock, shares authorized | | 38,500,000 | | | | 75,000,000 | 38,500,000 | | | | 75,000,000 | | | 75,000,000 | | | 38,500,000 |
Common stock, par value | $ / shares | | | | | | $ 0.001 | | | | | $ 0.001 | | | $ 0.001 | | | $ 0.001 |
Common stock shares issued | | | | | | | | | | | | | | 12,335,265 | | | |
Stock issued during period, shares, exercise of stock options | | | | | | | | | | | | | | 1,580 | | | |
Warrants maturity period | | | | | | | | | | | | | | 4 years | | | |
Issuance of warrants to purchase common stock | $ | | | | | | | | | | | | | | $ 8,658,000 | | | |
Outstanding warrants | | | | | | | | | | | 1,277,157 | | | 1,277,157 | | | |
Share based lump sum payment | $ | | | | | $ 350,000 | | | | | | | | | | | | |
Repurchase of common stock | | | | | 7,500 | | | | | | | | | | | | |
Payment of buyback of common stock | $ | | | | | $ 56,000 | | | | | | | | | $ 56,000 | | | |
Stock-based compensation expense | $ | | | | | | | | | | | $ 1,778,000 | | $ 1,481,000 | $ 1,903,000 | $ 1,522,000 | | |
Expected forfeitures rate | | | | | | | | | | | 10.00% | | | | | | |
Chief Executive Officer [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Common stock shares issued | | | | | | | | | | | | | | 10,121 | | | |
Common stock granted | | | | | | | | | | | 10,121 | | | | | | |
Bridge Loan [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Common stock shares issued | | | | | | | | 90,000 | | | | | | | | | |
Borrowing under line of credit | $ | | | | | | | | $ 2,000,000 | | | | | | | | | |
Shares converted to common stock | | | | | | | | | | | | | | 590,717 | | | |
First Loans [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Issuance of warrants to purchase common stock | $ | | | | | | | | | | | | | | $ 700,000 | | | |
Second Loans [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrants maturity period | | | | | | | | | 4 years | | | | | | | | |
Issuance of warrants to purchase common stock | $ | | | | | | | | | $ 700,000 | | | | | | | | |
Issuance of warrants to purchase common stock | | | | | | | | | 2 | | | | | | | | |
Acacia [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Common stock shares issued | | | | | | | | 120,000 | | | | | | | | | |
Acacia [Member] | Bridge Loan [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Common stock shares issued | | | | | | | | | | | | 180,000 | | | | | |
Borrowing under line of credit | $ | | $ 2,000,000 | | | | | | $ 2,000,000 | | | | $ 4,000,000 | | | | | |
Shares converted to common stock | | | | 590,717 | | | | | | | | | | | | | |
Warrants maturity period | | 10 years | | | | | | | | | | | | | | | |
Acacia [Member] | Convertible Notes Payable [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Shares converted to common stock | 1,523,746 | | | | | | | | | 1,523,746 | | | | 1,523,746 | | | |
Warrants maturity period | | | | | | | | | | 5 years | | | | | | | |
Warrant exercise price | $ / shares | | | | | | | | | | $ 13.6088 | | | | | | | |
Acacia [Member] | First Loans [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrants maturity period | | | | | | | | | | | | | | 4 years | | | |
Issuance of warrants to purchase common stock | $ | | | | | | | | | | | | | | $ 700,000 | | | |
Acacia [Member] | Second Loans [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrants maturity period | | | | | | | | | 4 years | | | | | | | | |
Issuance of warrants to purchase common stock | | | | | | | | | 700,000 | | | | | 1,277,157 | | | |
Outstanding warrants | | | | | | | | | | | 1,277,157 | | | 1,277,157 | | | |
Acacia [Member] | Primary Warrant [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Issuance of stock due to warrants exercise | 2,150,335 | | | 2,150,335 | | | | 2,150,335 | | | 2,150,335 | 2,150,335 | | 2,150,335 | | | |
VLOC, LLC [Member] | Bridge Loan [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Common stock shares issued | | | | | | 90,000 | | | | | | | | | | | |
Borrowing under line of credit | $ | | | | | | $ 4,000,000 | | | | | | | | | | | |
Series B Redeemable Convertible Preferred Stock [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Shares converted to common stock | 2,309,135 | | | | | | | | | | | | | 2,309,135 | | | |
Series A Redeemable Convertible Preferred Stock [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Shares converted to common stock | 2,922,798 | | | | | | | | | | | | | 2,922,798 | | | |
Maximum [Member] | First Loans [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | | | | | | | | | | | $ 13.7323 | | | $ 13.7323 | | | |
Maximum [Member] | Second Loans [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | | | | | | | | | $ 13.7323 | | | | | | | | |
Maximum [Member] | Acacia [Member] | Convertible Notes Payable [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | | | | $ 13.6088 | | | | $ 13.6088 | | | | $ 13.6088 | | | | | |
Maximum [Member] | Acacia [Member] | First Loans [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | | | | | | | | | | | 13.7323 | | | 13.7323 | | | |
Maximum [Member] | Acacia [Member] | Second Loans [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | | | | | | | | | 13.7323 | | | | | | | | |
Maximum [Member] | Acacia [Member] | Primary Warrant [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | | | | 13.7323 | | | | 13.7323 | | | | 13.7323 | | | | | |
Minimum [Member] | First Loans [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | | | | | | | | | | | 8.0833 | | | 8.0833 | | | |
Minimum [Member] | Second Loans [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | | | | | | | | | 8.0833 | | | | | | | | |
Minimum [Member] | Acacia [Member] | First Loans [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | | | | | | | | | | | $ 8.0833 | | | $ 8.0833 | | | |
Minimum [Member] | Acacia [Member] | Second Loans [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | | | | | | | | | $ 8.0833 | | | | | | | | |
Minimum [Member] | Acacia [Member] | Primary Warrant [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | | | | 13.3028 | | | | $ 13.3028 | | | | 13.3028 | | | | | |
Initial Public Offering [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Common stock shares issued | 2,500,000 | | | | | | | | | | | | | 2,500,000 | | | |
Warrants maturity period | 5 years | | | | | | | 5 years | | | | | | | | | |
Warrant exercise price | $ / shares | | | | $ 13.6088 | | | | $ 13.6088 | | | | $ 13.6088 | | | | | |
Outstanding warrants | 809,400 | | | 809,400 | | | | 809,400 | | | | 809,400 | | | | | |
IPO completion date | | | | | | | | May 17, 2017 | | | | | | | | | |
Percentage of warrant exercise | 10.00% | | | | | | | 10.00% | | | | | | | | | |
Initial Public Offering [Member] | Vested Upon Issuance [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant vesting percentage | 50.00% | | | | | | | 50.00% | | | | | | | | | |
Initial Public Offering [Member] | Vest in May 2018 [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant vesting percentage | 50.00% | | | | | | | | | | | | | | | | |
Initial Public Offering [Member] | Convertible Notes Payable [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Outstanding warrants | 154,311 | | | 154,311 | | | | 154,311 | | | | 154,311 | | | | | |
Initial Public Offering [Member] | Amended Primary Warrant [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | | | | $ 13.6088 | | | | $ 13.6088 | | | | $ 13.6088 | | | | | |
Initial Public Offering [Member] | Acacia [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrants maturity period | 5 years | | | | | 5 years | | | | | | | | | | | |
Warrant exercise price | $ / shares | $ 13.6088 | | | | | | | | | | | | | | | | |
Outstanding warrants | 809,400 | | | | | 809,400 | | | | | | | | | | | |
Percentage of warrant exercise | 10.00% | | | | | 10.00% | | | | | | | | | | | |
Initial Public Offering [Member] | Acacia [Member] | Vested Upon Issuance [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant vesting percentage | 50.00% | | | | | | | | | | | | | | | | |
Initial Public Offering [Member] | Acacia [Member] | Amended Primary Warrant [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | | | | $ 13.6088 | | | | $ 13.6088 | | | | $ 13.6088 | | | | | |
Initial Public Offering [Member] | Maximum [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Outstanding warrants | 51,437 | | | 51,437 | | | | 51,437 | | | | 51,437 | | | | | |
Consultants [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Issuance of restricted stock, shares | | | | | | | | | | | | | | 17,333 | | | |
VLOC, LLC [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Outstanding warrants | | | | | | | | | | | 313,446 | | | 313,446 | | | |
VLOC, LLC [Member] | Bridge Loan [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrants maturity period | 10 years | | | | | | | | | | | | | 10 years | | | |
Warrant exercise price | $ / shares | $ 13.6088 | | | | | | | | | | $ 13.6088 | | | $ 13.6088 | | | |
Outstanding warrants | 313,446 | | | | | | | | | | 313,446 | | | 313,446 | | | |
2014 Stock Option/Stock Issuance Plan [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Issuance of restricted stock, shares | | | | | | | | | | | | | | 9,500 | | | |
Stock issued during period, shares, exercise of stock options | | | | | | | | | | | | | | 1,580 | | | |
Common stock reserved for future issuance | | 900,000 | | | | | 900,000 | | | | | | | | | | |
Increase in common stock reserved for future issuance | | 4,450,585 | | | | | 4,450,585 | | | | | | | | | | |
Options Granted | | | | | | | | | | | | | | 3,801,158 | | | |
Options exercise price | $ / shares | | | | | | | | | | | | | | $ 15 | | | |
Options exercise price | $ / shares | | | | | | | | | | | | | | $ 1.93 | | | |
Unrecognized compensation expense related to stock options | $ | | | | | | | | | | | $ 33,114,000 | | | $ 33,114,000 | | | |
2014 Stock Option/Stock Issuance Plan [Member] | Employees And Directors [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Options Granted | | | | | | | | | | | 666,702 | | | | | | |
Options exercise price | $ / shares | | | | | | | | | | | $ 15 | | | | | | |
Vesting period | | | | | | | | | | | 4 years | | | | | | |
2017 Stock Incentive Plan [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Common stock reserved for future issuance | | 2,000,000 | | | | | 2,000,000 | | | | | | | | | | |
Annual shares increase for future issuance by percentage under employee stock purchase plans | | | | | | | 3.00% | | | | | | | | | | |
2017 Stock Incentive Plan [Member] | Maximum [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Increase in common stock reserved for future issuance | | 750,000 | | | | | 750,000 | | | | | | | | | | |
Employee Stock Purchase Plan [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Common stock reserved for future issuance | | 1,000,000 | | | | | 1,000,000 | | | | | | | | | | |
Annual shares increase for future issuance by percentage under employee stock purchase plans | | | | | | | 1.00% | | | | | | | | | | |
Maximum number of shares per employee in each purchase | | | | | | | 1,000 | | | | | | | | | | |
Common stock granted | | | | | | | | | | | | | | 0 | | | |
Employee Stock Purchase Plan [Member] | Maximum [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Increase in common stock reserved for future issuance | | 250,000 | | | | | 250,000 | | | | | | | | | | |
Employee Stock Purchase Plan [Member] | Minimum [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Percentage of purchase price of common stock fair value | | | | | | | 85.00% | | | | | | | | | | |
Note Purchase Agreement [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Common stock shares issued | | | | | | | | 120,000 | | | | | | | | | |
Note Purchase Agreement [Member] | VLOC, LLC [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Common stock shares issued | | | | | | | | 120,000 | | | | | | | | | |
Warrants maturity period | | | | | | | | | | | | 10 years | | | | | |
Note Purchase Agreement [Member] | VLOC, LLC [Member] | Bridge Loan [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Borrowing under line of credit | $ | $ 4,000,000 | | | | | | | | | | | | | | | | |
Shares converted to common stock | 590,717 | | | | | | | | | | | | | | | | |
Issuance of warrants to purchase common stock | $ | $ 1,770,000 | | | | | | | | | | | | | | | | |
Outstanding warrants | 313,446 | | | | | | | | | | | | | | | 240,000 | |
Note Purchase Agreement [Member] | VLOC, LLC [Member] | Acacia [Member] | Bridge Loan [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Borrowing under line of credit | $ | | $ 2,000,000 | | | | $ 4,000,000 | | $ 2,000,000 | | | | | | | | | |
Note Purchase Agreement [Member] | VLOC, LLC [Member] | Maximum [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Warrant exercise price | $ / shares | $ 13.6088 | | | | | | | | | | | | | | | | |
Restricted Stock [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Stock-based compensation expense | $ | | | | | | | | | | | $ 375,000 | | 28,000 | $ 451,000 | 48,000 | | |
Restricted Stock [Member] | 2014 Stock Option/Stock Issuance Plan [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Vesting period | | | | | | | | | | | | | | 4 years | | | |
Restricted stock units granted | | | | | | | | | | | | | | 52,433 | | | |
Unrecognized cost of share-based compensation awards | $ | | | | | | | | | | | 1,088,000 | | | $ 1,088,000 | | | |
Cost of share-based compensation awards, recognition period | | | | | | | | | | | | | | 2 years 8 months 12 days | | | |
Stock Options [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Stock-based compensation expense | $ | | | | | | | | | | | $ 1,278,000 | | $ 1,453,000 | $ 1,327,000 | $ 1,474,000 | | |
Stock Options [Member] | 2014 Stock Option/Stock Issuance Plan [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Vesting period | | | | | | | | | | | | | | 4 years | | | |
Cost of share-based compensation awards, recognition period | | | | | | | | | | | | | | 2 years 3 months 19 days | | | |
Expiration period | | | | | | | | | | | | | | 10 years | | | |
Restricted Stock Units [Member] | 2017 Stock Incentive Plan [Member] | Directors [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Common stock reserved for future issuance | | | | | | | | | | | 1,964,424 | | | 1,964,424 | | | |
Restricted stock units granted | | | | | | | | | | | 35,576 | | | | | | |
Options exercise price | $ / shares | | | | | | | | | | | $ 14.76 | | | | | | |
Time-based Stock Option [Member] | Chad Steelberg and Ryan Steelberg [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Options Granted | | | | | | | | | | | 2,089,638 | | | 2,089,638 | | | |
Options exercise price | $ / shares | | | | | | | | | | | $ 15 | | | | | | |
Vesting period | | | | | | | | 3 years | | | 3 years | | | | | | |
Annual shares increase for future issuance by percentage under employee stock purchase plans | | | | | | | | 5.00% | | | | | | | | | |
Performance- based Stock Option [Member] | Chad Steelberg and Ryan Steelberg [Member] | | | | | | | | | | | | | | | | | |
Class of Stock [Line Items] | | | | | | | | | | | | | | | | | |
Options Granted | | | | | | | | | | | 1,044,818 | | | 1,044,818 | | | |
Options exercise price | $ / shares | | | | | | | | | | | $ 15 | | | | | | |
Vesting period | | | | | | | | 5 years | | | 5 years | | | | | | |
Vesting rights description | | | | | | | | | | | The performance-based stock option would vest upon the earlier of (a) the first date on which the market capitalization of the Company's common stock equals or exceeds $400,000 over five consecutive business days, or (b) five years after the IPO | | | The performance-based stock option would vest upon the earlier of (a) the first date on which the market capitalization of the Company's common stock equals or exceeds $400,000 over five consecutive business days, or (b) five years after the IPO. | | | |
Vesting rights, market capitalization | $ | | | | $ 400,000,000 | | | | $ 400,000,000 | | | $ 400,000,000 | $ 400,000,000 | | $ 400,000,000 | | | |
Vesting rights, consecutive trading days | | | | | | | | 5 days | | | 5 days | | | | | | |
Annual shares increase for future issuance by percentage under employee stock purchase plans | | | | | | | | 2.50% | | | | | | | | | |