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

Revenue Recognition - Schedule of Deferred Commissions (Details) - USD ($) $ in Thousands | Mar. 01, 2025 | Aug. 31, 2024
--- | --- | ---
Prepaid expenses and other current assets |  |
Deferred Commissions [Line item] |  |
Deferred commission | $ 18,802 | $ 18,079
Other assets |  |
Deferred Commissions [Line item] |  |
Deferred commission | $ 81,980 | $ 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: |