Segment Information (Details) - USD ($) |
3 Months Ended | 9 Months Ended | |||
|---|---|---|---|---|---|
Apr. 30, 2017 |
Apr. 30, 2016 |
Apr. 30, 2017 |
Apr. 30, 2016 |
Jul. 31, 2016 |
|
| Segment Reporting Information [Line Items] | |||||
| Net sales | $ 127,792,000 | $ 124,187,000 | $ 402,606,000 | $ 258,627,000 | |
| Operating income (loss) | 10,150,000 | (13,397,000) | 22,271,000 | (8,040,000) | |
| Net income (loss) | 4,417,000 | (14,355,000) | 8,513,000 | (10,440,000) | |
| Provision for (benefit from) income taxes | 2,884,000 | (2,510,000) | 4,808,000 | (994,000) | |
| Interest (income) and other expense | 88,000 | (5,000) | 12,000 | (227,000) | |
| Interest expense | 2,761,000 | 3,473,000 | 8,938,000 | 3,621,000 | |
| Amortization of stock-based compensation | 991,000 | 1,041,000 | 2,980,000 | 3,166,000 | |
| Amortization of intangibles | 5,468,000 | 4,776,000 | 17,555,000 | 7,348,000 | |
| Depreciation | 3,532,000 | 3,082,000 | 10,849,000 | 6,078,000 | |
| Settlement of intellectual property litigation | (2,041,000) | 0 | (12,020,000) | 0 | |
| Acquisition plan expenses | 0 | 16,960,000 | 0 | 20,689,000 | |
| Adjusted EBITDA | 18,100,000 | 12,462,000 | 41,635,000 | 29,241,000 | |
| Purchases of property, plant and equipment | 2,076,000 | 1,600,000 | 6,223,000 | 3,063,000 | |
| Long-lived assets acquired in connection with the TCS acquisition | 434,769,000 | 434,769,000 | |||
| Total assets | 863,758,000 | 903,328,000 | 863,758,000 | 903,328,000 | $ 921,196,000 |
| Secured Credit Facility | |||||
| Segment Reporting Information [Line Items] | |||||
| Interest expense related to Credit Facility | 2,641,000 | 2,981,000 | 8,524,000 | 2,981,000 | |
| Corporate, Non-Segment [Member] | |||||
| Segment Reporting Information [Line Items] | |||||
| Net sales | 0 | 0 | 0 | 0 | |
| Operating income (loss) | 204,000 | (25,586,000) | (1,475,000) | (37,477,000) | |
| Net income (loss) | (5,403,000) | (26,426,000) | (14,915,000) | (39,484,000) | |
| Provision for (benefit from) income taxes | 2,857,000 | (2,512,000) | 4,623,000 | (1,088,000) | |
| Interest (income) and other expense | 37,000 | (53,000) | 49,000 | (310,000) | |
| Interest expense | 2,713,000 | 3,405,000 | 8,768,000 | 3,405,000 | |
| Amortization of stock-based compensation | 991,000 | 1,041,000 | 2,980,000 | 3,166,000 | |
| Amortization of intangibles | 0 | 0 | 0 | 0 | |
| Depreciation | 355,000 | 305,000 | 1,153,000 | 321,000 | |
| Settlement of intellectual property litigation | (2,041,000) | (12,020,000) | |||
| Acquisition plan expenses | 16,960,000 | 20,689,000 | |||
| Adjusted EBITDA | (491,000) | (7,280,000) | (9,362,000) | (13,301,000) | |
| Purchases of property, plant and equipment | 4,000 | 339,000 | 81,000 | 354,000 | |
| Long-lived assets acquired in connection with the TCS acquisition | 4,359,000 | 4,359,000 | |||
| Total assets | 59,779,000 | 77,803,000 | 59,779,000 | 77,803,000 | |
| Commercial Solutions Segment | Operating Segments | |||||
| Segment Reporting Information [Line Items] | |||||
| Net sales | 79,409,000 | 71,985,000 | 237,690,000 | 165,657,000 | |
| Operating income (loss) | 8,633,000 | 6,560,000 | 17,595,000 | 14,048,000 | |
| Net income (loss) | 8,506,000 | 6,437,000 | 17,249,000 | 13,635,000 | |
| Provision for (benefit from) income taxes | 27,000 | 2,000 | 185,000 | 94,000 | |
| Interest (income) and other expense | 51,000 | 53,000 | (11,000) | 103,000 | |
| Interest expense | 49,000 | 68,000 | 172,000 | 216,000 | |
| Amortization of stock-based compensation | 0 | 0 | 0 | 0 | |
| Amortization of intangibles | 4,425,000 | 3,622,000 | 13,274,000 | 6,194,000 | |
| Depreciation | 2,425,000 | 2,130,000 | 7,441,000 | 4,568,000 | |
| Settlement of intellectual property litigation | 0 | 0 | |||
| Acquisition plan expenses | 0 | 0 | |||
| Adjusted EBITDA | 15,483,000 | 12,312,000 | 38,310,000 | 24,810,000 | |
| Purchases of property, plant and equipment | 1,893,000 | 1,119,000 | 5,540,000 | 2,067,000 | |
| Long-lived assets acquired in connection with the TCS acquisition | 353,729,000 | 353,729,000 | |||
| Total assets | 619,215,000 | 616,247,000 | 619,215,000 | 616,247,000 | |
| Commercial Solutions Segment | Intersegment Eliminations | |||||
| Segment Reporting Information [Line Items] | |||||
| Intersegment sales | 2,812,000 | 2,198,000 | 9,297,000 | 4,082,000 | |
| Government Solutions Segment | Operating Segments | |||||
| Segment Reporting Information [Line Items] | |||||
| Net sales | 48,383,000 | 52,202,000 | 164,916,000 | 92,970,000 | |
| Operating income (loss) | 1,313,000 | 5,629,000 | 6,151,000 | 15,389,000 | |
| Net income (loss) | 1,314,000 | 5,634,000 | 6,179,000 | 15,409,000 | |
| Provision for (benefit from) income taxes | 0 | 0 | 0 | 0 | |
| Interest (income) and other expense | 0 | (5,000) | (26,000) | (20,000) | |
| Interest expense | (1,000) | 0 | (2,000) | 0 | |
| Amortization of stock-based compensation | 0 | 0 | 0 | 0 | |
| Amortization of intangibles | 1,043,000 | 1,154,000 | 4,281,000 | 1,154,000 | |
| Depreciation | 752,000 | 647,000 | 2,255,000 | 1,189,000 | |
| Settlement of intellectual property litigation | 0 | 0 | |||
| Acquisition plan expenses | 0 | 0 | |||
| Adjusted EBITDA | 3,108,000 | 7,430,000 | 12,687,000 | 17,732,000 | |
| Purchases of property, plant and equipment | 179,000 | 142,000 | 602,000 | 642,000 | |
| Long-lived assets acquired in connection with the TCS acquisition | 76,681,000 | 76,681,000 | |||
| Total assets | $ 184,764,000 | $ 209,278,000 | $ 184,764,000 | $ 209,278,000 | |