XML 50 R42.htm IDEA: XBRL DOCUMENT
v3.25.2

Revenue Recognition - Schedule of Deferred Commissions (Details) - USD ($) $ in Thousands | May 31, 2025 | Aug. 31, 2024
--- | --- | ---
Prepaid expenses and other current assets |  |
Deferred Commissions [Line item] |  |
Deferred commission | $ 19,303 | $ 18,079
Other assets |  |
Deferred Commissions [Line item] |  |
Deferred commission | $ 83,739 | $ 78,856

X
- Definition Deferred commissions. + References No definition available. + Details
Name: | unf_DeferredCommissionsLineItem
Namespace Prefix: | unf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The carrying amount of deferred costs. + References No definition available. + Details
Name: | us-gaap_DeferredCostsCurrentAndNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_PrepaidExpensesAndOtherCurrentAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=us-gaap_OtherAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |