SEGMENTS - Schedule of Segment Revenues, Operating Costs and Balance Sheet Items (Details) - USD ($) $ in Thousands |
3 Months Ended |
9 Months Ended |
|
May 31, 2026 |
May 31, 2025 |
May 31, 2026 |
May 31, 2025 |
Aug. 31, 2025 |
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
$ 1,481,793
|
$ 1,317,289
|
$ 4,360,050
|
$ 3,939,119
|
|
| Cost of goods sold |
1,219,574
|
1,087,637
|
3,588,373
|
3,256,662
|
|
| Warehouse club and other operations |
144,302
|
125,745
|
415,581
|
367,832
|
|
| General and administrative |
52,276
|
47,677
|
152,108
|
134,865
|
|
| Operating income (loss) |
65,641
|
56,230
|
203,988
|
179,760
|
|
| Interest income |
3,259
|
2,486
|
9,840
|
7,441
|
|
| Interest expense |
(3,850)
|
(2,762)
|
(12,229)
|
(7,995)
|
|
| Provision for income taxes |
(15,446)
|
(13,917)
|
(48,572)
|
(43,797)
|
|
| Other segment items |
(9,913)
|
(6,879)
|
(24,079)
|
(19,063)
|
|
| Net income (loss) |
39,691
|
35,158
|
128,948
|
116,346
|
|
| Depreciation and amortization |
(24,778)
|
(22,757)
|
(73,027)
|
(65,386)
|
|
| Long-lived assets (other than deferred tax assets) |
1,367,672
|
1,163,658
|
1,367,672
|
1,163,658
|
$ 1,210,230
|
| Goodwill |
43,293
|
43,231
|
43,293
|
43,231
|
43,238
|
| Investment in unconsolidated affiliates |
|
6,870
|
|
6,870
|
6,889
|
| Total assets |
2,519,203
|
2,144,440
|
2,519,203
|
2,144,440
|
2,269,157
|
| Capital expenditures, net |
56,315
|
36,871
|
148,126
|
97,915
|
|
| United States Operations |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
1,453
|
990
|
3,564
|
14,595
|
|
| Central American Operations |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
885,952
|
801,341
|
2,613,810
|
2,385,508
|
|
| Caribbean Operations |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
385,969
|
360,989
|
1,147,794
|
1,086,237
|
|
| Colombia Operations |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
208,419
|
153,969
|
594,882
|
452,779
|
|
| Operating Segments | United States Operations |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
537,086
|
490,621
|
1,642,878
|
1,512,356
|
|
| Cost of goods sold |
590
|
956
|
1,080
|
13,770
|
|
| Warehouse club and other operations |
0
|
0
|
0
|
0
|
|
| General and administrative |
51,393
|
47,029
|
150,345
|
132,548
|
|
| Operating income (loss) |
(3,670)
|
(5,341)
|
1,016
|
(8,328)
|
|
| Interest income |
310
|
313
|
1,251
|
969
|
|
| Interest expense |
(453)
|
(267)
|
(1,308)
|
(801)
|
|
| Provision for income taxes |
(5,102)
|
(5,594)
|
(20,321)
|
(16,712)
|
|
| Other segment items |
730
|
(1,333)
|
572
|
(605)
|
|
| Net income (loss) |
(7,685)
|
(12,002)
|
(17,783)
|
(24,461)
|
|
| Depreciation and amortization |
(2,070)
|
(2,070)
|
(6,016)
|
(5,676)
|
|
| Long-lived assets (other than deferred tax assets) |
103,465
|
71,548
|
103,465
|
71,548
|
90,663
|
| Goodwill |
8,981
|
8,981
|
8,981
|
8,981
|
8,981
|
| Investment in unconsolidated affiliates |
|
0
|
|
0
|
0
|
| Total assets |
284,312
|
237,412
|
284,312
|
237,412
|
300,177
|
| Capital expenditures, net |
5,810
|
3,236
|
11,095
|
5,868
|
|
| Operating Segments | Central American Operations |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
894,583
|
809,496
|
2,638,565
|
2,410,684
|
|
| Cost of goods sold |
728,859
|
659,892
|
2,149,793
|
1,966,652
|
|
| Warehouse club and other operations |
80,656
|
72,505
|
235,149
|
211,852
|
|
| General and administrative |
434
|
635
|
920
|
2,007
|
|
| Operating income (loss) |
62,587
|
53,696
|
178,147
|
162,965
|
|
| Interest income |
1,874
|
1,606
|
5,093
|
4,803
|
|
| Interest expense |
(808)
|
(895)
|
(2,894)
|
(2,092)
|
|
| Provision for income taxes |
(9,540)
|
(6,217)
|
(22,293)
|
(20,878)
|
|
| Other segment items |
(1,680)
|
(345)
|
(9,288)
|
(5,605)
|
|
| Net income (loss) |
53,171
|
49,058
|
151,497
|
142,040
|
|
| Depreciation and amortization |
(12,469)
|
(11,514)
|
(36,868)
|
(33,570)
|
|
| Long-lived assets (other than deferred tax assets) |
700,126
|
652,921
|
700,126
|
652,921
|
659,756
|
| Goodwill |
24,288
|
24,240
|
24,288
|
24,240
|
24,254
|
| Investment in unconsolidated affiliates |
|
6,870
|
|
6,870
|
6,889
|
| Total assets |
1,303,186
|
1,133,625
|
1,303,186
|
1,133,625
|
1,147,392
|
| Capital expenditures, net |
26,437
|
18,750
|
63,998
|
54,766
|
|
| Operating Segments | Caribbean Operations |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
388,585
|
363,171
|
1,155,143
|
1,091,901
|
|
| Cost of goods sold |
315,535
|
297,521
|
941,105
|
893,374
|
|
| Warehouse club and other operations |
39,289
|
36,007
|
112,819
|
105,686
|
|
| General and administrative |
429
|
(33)
|
746
|
164
|
|
| Operating income (loss) |
24,446
|
21,353
|
70,208
|
68,306
|
|
| Interest income |
967
|
510
|
3,238
|
1,514
|
|
| Interest expense |
(1,231)
|
(321)
|
(3,993)
|
(1,238)
|
|
| Provision for income taxes |
(620)
|
(1,459)
|
(3,609)
|
(4,961)
|
|
| Other segment items |
(8,938)
|
(4,573)
|
(15,450)
|
(11,039)
|
|
| Net income (loss) |
14,130
|
14,997
|
49,034
|
51,233
|
|
| Depreciation and amortization |
(6,489)
|
(5,936)
|
(18,985)
|
(16,507)
|
|
| Long-lived assets (other than deferred tax assets) |
342,914
|
242,471
|
342,914
|
242,471
|
262,543
|
| Goodwill |
10,024
|
10,010
|
10,024
|
10,010
|
10,003
|
| Investment in unconsolidated affiliates |
|
0
|
|
0
|
0
|
| Total assets |
601,181
|
493,315
|
601,181
|
493,315
|
534,654
|
| Capital expenditures, net |
20,268
|
13,534
|
63,707
|
30,466
|
|
| Operating Segments | Colombia Operations |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
210,610
|
155,775
|
602,642
|
457,424
|
|
| Cost of goods sold |
174,590
|
129,268
|
496,395
|
382,866
|
|
| Warehouse club and other operations |
24,357
|
17,233
|
67,613
|
50,294
|
|
| General and administrative |
20
|
46
|
97
|
146
|
|
| Operating income (loss) |
6,869
|
7,452
|
25,570
|
19,156
|
|
| Interest income |
108
|
57
|
258
|
155
|
|
| Interest expense |
(1,358)
|
(1,279)
|
(4,034)
|
(3,864)
|
|
| Provision for income taxes |
(184)
|
(647)
|
(2,349)
|
(1,246)
|
|
| Other segment items |
(25)
|
(628)
|
87
|
(1,814)
|
|
| Net income (loss) |
4,571
|
4,031
|
17,064
|
9,875
|
|
| Depreciation and amortization |
(3,750)
|
(3,237)
|
(11,158)
|
(9,633)
|
|
| Long-lived assets (other than deferred tax assets) |
221,167
|
196,718
|
221,167
|
196,718
|
197,268
|
| Goodwill |
0
|
0
|
0
|
0
|
0
|
| Investment in unconsolidated affiliates |
|
0
|
|
0
|
0
|
| Total assets |
330,524
|
280,088
|
330,524
|
280,088
|
286,934
|
| Capital expenditures, net |
3,800
|
1,351
|
9,326
|
6,815
|
|
| Reconciling Items |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Cost of goods sold |
0
|
0
|
0
|
0
|
|
| Warehouse club and other operations |
0
|
0
|
0
|
0
|
|
| General and administrative |
0
|
0
|
0
|
0
|
|
| Operating income (loss) |
(24,591)
|
(20,930)
|
(70,953)
|
(62,339)
|
|
| Interest income |
0
|
0
|
0
|
0
|
|
| Interest expense |
0
|
0
|
0
|
0
|
|
| Provision for income taxes |
0
|
0
|
0
|
0
|
|
| Other segment items |
0
|
0
|
0
|
0
|
|
| Net income (loss) |
(24,496)
|
(20,926)
|
(70,864)
|
(62,341)
|
|
| Depreciation and amortization |
0
|
0
|
0
|
0
|
|
| Long-lived assets (other than deferred tax assets) |
0
|
0
|
0
|
0
|
0
|
| Goodwill |
0
|
0
|
0
|
0
|
0
|
| Investment in unconsolidated affiliates |
|
0
|
|
0
|
0
|
| Total assets |
0
|
0
|
0
|
0
|
$ 0
|
| Capital expenditures, net |
0
|
0
|
0
|
0
|
|
| Corporate And Eliminations |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
(549,071)
|
(501,774)
|
(1,679,178)
|
(1,533,246)
|
|
| Intersegment revenues |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
(549,071)
|
(501,774)
|
(1,679,178)
|
(1,533,246)
|
|
| Cost of goods sold |
(524,480)
|
(480,844)
|
(1,608,225)
|
(1,470,907)
|
|
| General and administrative |
0
|
0
|
0
|
0
|
|
| Interest income |
(2,093)
|
(3,397)
|
(8,060)
|
(10,039)
|
|
| Interest expense |
2,188
|
3,401
|
8,149
|
10,037
|
|
| Intersegment revenues | United States Operations |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
535,633
|
489,631
|
1,639,314
|
1,497,761
|
|
| Cost of goods sold |
511,279
|
469,307
|
1,569,202
|
1,436,557
|
|
| General and administrative |
(22,506)
|
(21,330)
|
(78,765)
|
(62,191)
|
|
| Interest income |
1,014
|
1,437
|
3,666
|
4,560
|
|
| Interest expense |
(514)
|
(1,217)
|
(2,659)
|
(3,544)
|
|
| Intersegment revenues | Central American Operations |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
8,631
|
8,155
|
24,755
|
25,176
|
|
| Cost of goods sold |
8,459
|
8,004
|
24,178
|
24,617
|
|
| General and administrative |
13,588
|
14,764
|
50,378
|
42,591
|
|
| Interest income |
1,079
|
1,857
|
4,392
|
5,175
|
|
| Interest expense |
(341)
|
(644)
|
(1,660)
|
(2,328)
|
|
| Intersegment revenues | Caribbean Operations |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
2,616
|
2,182
|
7,349
|
5,664
|
|
| Cost of goods sold |
2,594
|
1,764
|
7,240
|
5,199
|
|
| General and administrative |
6,292
|
6,559
|
23,025
|
19,172
|
|
| Interest income |
0
|
103
|
2
|
304
|
|
| Interest expense |
(494)
|
(616)
|
(1,362)
|
(1,653)
|
|
| Intersegment revenues | Colombia Operations |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
2,191
|
1,806
|
7,760
|
4,645
|
|
| Cost of goods sold |
2,148
|
1,769
|
7,605
|
4,534
|
|
| General and administrative |
2,626
|
7
|
5,362
|
428
|
|
| Interest income |
0
|
0
|
0
|
0
|
|
| Interest expense |
(839)
|
(924)
|
(2,468)
|
(2,512)
|
|
| Segment Reporting, Reconciling Item, Corporate Nonsegment |
|
|
|
|
|
| Segment Reporting Information [Line Items] |
|
|
|
|
|
| Total revenues |
$ 0
|
$ 0
|
$ 0
|
$ 0
|
|