| Employee Benefit Plan - Additional Information (Detail) - Employee Savings Plan - USD ($) | 3 Months Ended | |
|---|---|---|
| Aug. 31, 2018 | Aug. 31, 2017 | |
| Defined Contribution Plan Disclosure [Line Items] | ||
| Qualified non-elective contribution | 3.00% | |
| Qualified non-elective contribution expense | $ 15,800 | $ 10,800 | 
| X | ||||||||||
| 
- Definition Amount of cost for defined contribution plan. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Percentage of employees' gross pay for which the employer contributes a matching contribution to a defined contribution plan. No definition available. 
 | 
| X | ||||||||||
| 
- Details 
 |