Business Combinations - Additional Information (Detail) - USD ($) $ in Thousands | Dec. 27, 2016 | Dec. 01, 2016 | May 01, 2016 | Apr. 26, 2016 | Dec. 22, 2015 | Aug. 26, 2015 | Jun. 01, 2015 | Dec. 08, 2014 | Oct. 01, 2014 | Jun. 30, 2017 | Jul. 31, 2016 | May 31, 2017 | May 31, 2016 | May 31, 2015 | May 31, 2019 |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Reverse the remaining contingent consideration accrual to other income | | | | | | | | | | | | $ 18 | | $ (297) | |
Minimum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | | | | | | | | | 5 years | | | |
Maximum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | | | | | | | | | 25 years | | | |
BioLumix, Inc. | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Cash consideration for purchase of business | | | | | | | | | $ 4,514 | | | | | | |
Purchase price allocation for accounts receivable | | | | | | | | | 499 | | | | | | |
Purchase price allocation for other receivable | | | | | | | | | 178 | | | | | | |
Purchase price allocation for inventory | | | | | | | | | 421 | | | | | | |
Purchase price allocation for prepaid assets | | | | | | | | | 48 | | | | | | |
Purchase price allocation for land, property and equipment | | | | | | | | | 159 | | | | | | |
Purchase price allocation for current liabilities | | | | | | | | | 155 | | | | | | |
Purchase price allocation for long-term liabilities | | | | | | | | | 780 | | | | | | |
Purchase price allocation for intangible assets | | | | | | | | | $ 2,090 | | | | | | |
BioLumix, Inc. | Minimum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | | | | | | 5 years | | | | | | |
BioLumix, Inc. | Maximum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | | | | | | 15 years | | | | | | |
Beijing Anapure BioScientific Co., Ltd. | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Cash consideration for purchase of business | | | | | | | | $ 2,040 | | | | | | | |
Purchase price allocation for inventory | | | | | | | | 525 | | | | | | | |
Purchase price allocation for land, property and equipment | | | | | | | | 64 | | | | | | | |
Purchase price allocation for intangible assets | | | | | | | | $ 422 | | | | | | | |
Beijing Anapure BioScientific Co., Ltd. | Minimum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | | | | | 5 years | | | | | | | |
Beijing Anapure BioScientific Co., Ltd. | Maximum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | | | | | 15 years | | | | | | | |
Sterling Test House | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Cash consideration for purchase of business | | | | | | | $ 1,118 | | | | | | | | |
Purchase price allocation for accounts receivable | | | | | | | 43 | | | | | | | | |
Purchase price allocation for inventory | | | | | | | 14 | | | | | | | | |
Purchase price allocation for land, property and equipment | | | | | | | 141 | | | | | | | | |
Purchase price allocation for intangible assets | | | | | | | 345 | | | | | | | | |
Contingent consideration potential payment | | | | | | | 102 | | | | | | | | |
Allocation of purchase price for contingent consideration potential payment | | | | | | | $ 102 | | | | | | | | |
Cash paid for contingent consideration | | | | | | | | | | | $ 70 | | | | |
Sterling Test House | Minimum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | | | | 5 years | | | | | | | | |
Sterling Test House | Maximum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | | | | 15 years | | | | | | | | |
Lab M Holdings | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Cash consideration for purchase of business | | | | | | $ 12,436 | | | | | | | | | |
Purchase price allocation for accounts receivable | | | | | | 975 | | | | | | | | | |
Purchase price allocation for inventory | | | | | | 1,169 | | | | | | | | | |
Purchase price allocation for land, property and equipment | | | | | | 3,337 | | | | | | | | | |
Purchase price allocation for current liabilities | | | | | | 948 | | | | | | | | | |
Purchase price allocation for intangible assets | | | | | | 3,611 | | | | | | | | | |
Purchase price allocation for cash | | | | | | 285 | | | | | | | | | |
Purchase price allocation for other current assets | | | | | | 309 | | | | | | | | | |
Purchase price allocation for deferred tax liability | | | | | | $ 784 | | | | | | | | | |
Lab M Holdings | Minimum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | | | 5 years | | | | | | | | | |
Lab M Holdings | Maximum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | | | 15 years | | | | | | | | | |
Virbac Corporation | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Cash consideration for purchase of business | | | | | $ 3,525 | | | | | | | | | | |
Purchase price allocation for inventory | | | | | 317 | | | | | | | | | | |
Purchase price allocation for land, property and equipment | | | | | 60 | | | | | | | | | | |
Purchase price allocation for current liabilities | | | | | 300 | | | | | | | | | | |
Purchase price allocation for intangible assets | | | | | 1,759 | | | | | | | | | | |
Contingent consideration potential payment | | | | | $ 300 | | | | | | | | | | |
Purchase price allocation for contingent consideration | | | | | | | | | | | | | $ 300 | | |
Virbac Corporation | Minimum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | | 5 years | | | | | | | | | | |
Virbac Corporation | Maximum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | | 15 years | | | | | | | | | | |
Deoxi Biotecnologia Ltd | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Cash consideration for purchase of business | | | | $ 1,549 | | | | | | | | | | | |
Purchase price allocation for accounts receivable | | | | 132 | | | | | | | | | | | |
Purchase price allocation for inventory | | | | 89 | | | | | | | | | | | |
Purchase price allocation for land, property and equipment | | | | 232 | | | | | | | | | | | |
Purchase price allocation for current liabilities | | | | 266 | | | | | | | | | | | |
Purchase price allocation for intangible assets | | | | 350 | | | | | | | | | | | |
Contingent consideration potential payment | | | | 2,552 | | | | | | | | | | | |
Allocation of purchase price for contingent consideration potential payment | | | | 453 | | | | | | | | | | | |
Purchase price allocation for other current assets | | | | 9 | | | | | | | | | | | |
Purchase price allocation for deferred tax liability | | | | $ 184 | | | | | | | | | | | |
Deoxi Biotecnologia Ltd | During fiscal 2017 | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Allocation of purchase price for contingent consideration potential payment | | | | | | | | | | | | | | | $ 60 |
Deoxi Biotecnologia Ltd | Subsequent Event | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Contingent consideration potential payment | | | | | | | | | | $ 393 | | | | | |
Reverse the remaining contingent consideration accrual to other income | | | | | | | | | | $ 14 | | | | | |
Deoxi Biotecnologia Ltd | Minimum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | 5 years | | | | | | | | | | | |
Deoxi Biotecnologia Ltd | Maximum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | | 10 years | | | | | | | | | | | |
Tetradyne LLC | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Cash consideration for purchase of business | | | $ 24,245 | | | | | | | | | | | | |
Purchase price allocation for accounts receivable | | | 1,629 | | | | | | | | | | | | |
Purchase price allocation for inventory | | | 1,964 | | | | | | | | | | | | |
Purchase price allocation for land, property and equipment | | | 1,625 | | | | | | | | | | | | |
Purchase price allocation for current liabilities | | | 987 | | | | | | | | | | | | |
Purchase price allocation for long-term liabilities | | | 660 | | | | | | | | | | | | |
Purchase price allocation for intangible assets | | | 11,950 | | | | | | | | | | | | |
Purchase price allocation for other current assets | | | $ 269 | | | | | | | | | | | | |
Tetradyne LLC | Minimum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | 5 years | | | | | | | | | | | | |
Tetradyne LLC | Maximum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | | 15 years | | | | | | | | | | | | |
Quat-Chem Ltd. | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Cash consideration for purchase of business | | $ 21,606 | | | | | | | | | | | | | |
Purchase price allocation for accounts receivable | | 4,684 | | | | | | | | | | | | | |
Purchase price allocation for inventory | | 1,243 | | | | | | | | | | | | | |
Purchase price allocation for land, property and equipment | | 2,715 | | | | | | | | | | | | | |
Purchase price allocation for intangible assets | | 5,682 | | | | | | | | | | | | | |
Contingent consideration potential payment | | 3,778 | | | | | | | | | | | | | |
Allocation of purchase price for contingent consideration potential payment | | 1,105 | | | | | | | | | | | | | |
Purchase price allocation for non-amortizable intangible assets | | 1,637 | | | | | | | | | | | | | |
Purchase price allocation for accounts payable | | 2,197 | | | | | | | | | | | | | |
Purchase price allocation for deferred tax liability | | 1,133 | | | | | | | | | | | | | |
Purchase price allocation for other current liabilities | | $ 604 | | | | | | | | | | | | | |
Quat-Chem Ltd. | Minimum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | 5 years | | | | | | | | | | | | | |
Quat-Chem Ltd. | Maximum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | | 15 years | | | | | | | | | | | | | |
Rogama Industria e Comercio, Ltda. | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Cash consideration for purchase of business | $ 12,423 | | | | | | | | | | | | | | |
Purchase price allocation for accounts receivable | 1,863 | | | | | | | | | | | | | | |
Purchase price allocation for inventory | 1,026 | | | | | | | | | | | | | | |
Purchase price allocation for land, property and equipment | 1,840 | | | | | | | | | | | | | | |
Purchase price allocation for current liabilities | 2,177 | | | | | | | | | | | | | | |
Purchase price allocation for intangible assets | 3,252 | | | | | | | | | | | | | | |
Contingent consideration potential payment | 2,069 | | | | | | | | | | | | | | |
Allocation of purchase price for contingent consideration potential payment | 430 | | | | | | | | | | | | | | |
Purchase price allocation for deferred tax liability | 1,307 | | | | | | | | | | | | | | |
Purchase price allocation for non-amortizable intangible assets | $ 591 | | | | | | | | | | | | | | |
Rogama Industria e Comercio, Ltda. | Minimum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | 5 years | | | | | | | | | | | | | | |
Rogama Industria e Comercio, Ltda. | Maximum | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Finite lived intangible assets, useful life | 15 years | | | | | | | | | | | | | | |
Trademarks | Virbac Corporation | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Purchase price allocation for non-amortizable intangible assets | | | | | $ 200 | | | | | | | | | | |
Trademarks | Deoxi Biotecnologia Ltd | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Purchase price allocation for non-amortizable intangible assets | | | | $ 193 | | | | | | | | | | | |
Trademarks | Tetradyne LLC | | | | | | | | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | | | | | | | | |
Purchase price allocation for non-amortizable intangible assets | | | $ 2,600 | | | | | | | | | | | | |