Subsidiary Guarantors - Schedule of Condensed Consolidating Balance Sheets (Detail) (USD $) | Feb. 28, 2014 | Aug. 31, 2013 | Feb. 28, 2013 | Aug. 31, 2012 |
In Thousands, unless otherwise specified |
Current: | ' | ' | ' | ' |
Cash and cash equivalents | $172,340 | $158,537 | $116,640 | $137,540 |
Accounts receivable, net | 98,039 | 125,196 | ' | ' |
Refundable income taxes | ' | 20,890 | ' | ' |
Inventories, net | 225,568 | 130,966 | ' | ' |
Prepaid expenses and other assets | 30,781 | 42,093 | ' | ' |
Intercompany | ' | ' | ' | ' |
Total current assets | 526,728 | 477,682 | ' | ' |
Property, plant and equipment, net | 299,563 | 289,132 | ' | ' |
Deferred financing costs, net | 4,189 | 4,803 | ' | ' |
Goodwill and other non-amortizable assets | 11,849 | 11,849 | ' | ' |
Amortizable intangible assets, net | 1,004 | 1,057 | ' | ' |
Deferred turnaround costs & other assets | 10,575 | 11,772 | ' | ' |
Investment in subsidiaries | ' | ' | ' | ' |
Total assets | 853,908 | 796,295 | ' | ' |
Current: | ' | ' | ' | ' |
Current installments of long-term debt | 1,705 | 1,592 | ' | ' |
Accounts payable | 51,368 | 54,170 | ' | ' |
Accrued liabilities | 15,288 | 18,715 | ' | ' |
Income taxes payable | 24,904 | 8,587 | ' | ' |
Sales, use and fuel taxes payable | 18,652 | 19,247 | ' | ' |
Deferred income taxes | 365 | 365 | ' | ' |
Amounts due to affiliated companies, net | 81 | 434 | ' | ' |
Intercompany | ' | ' | ' | ' |
Total current liabilities | 112,363 | 103,110 | ' | ' |
Long term debt: less current installments | 238,210 | 237,114 | ' | ' |
Deferred income taxes | 30,740 | 29,193 | ' | ' |
Deferred retirement benefits | 66,555 | 69,675 | ' | ' |
Total liabilities | 447,868 | 439,092 | ' | ' |
Commitment and contingencies | ' | ' | ' | ' |
Stockholder's equity | ' | ' | ' | ' |
Common stock; $.10 par value per share - shares authorized 100; issued and outstanding 100 | ' | ' | ' | ' |
Preferred stock; $1,000 par value share - shares authorized 25,000; issued and outstanding 14,116 | 14,116 | 14,116 | ' | ' |
Additional paid-in capital | 157,251 | 159,844 | ' | ' |
Retained earnings | 242,106 | 190,333 | ' | ' |
Accumulated other comprehensive loss | -7,433 | -7,090 | ' | ' |
Total stockholder's equity | 406,040 | 357,203 | ' | ' |
Total liabilities and stockholder's equity | 853,908 | 796,295 | ' | ' |
United Refining Company [Member] | ' | ' | ' | ' |
Current: | ' | ' | ' | ' |
Cash and cash equivalents | 158,396 | 141,386 | 107,294 | 122,219 |
Accounts receivable, net | 63,229 | 83,800 | ' | ' |
Refundable income taxes | ' | 21,944 | ' | ' |
Inventories, net | 197,016 | 101,891 | ' | ' |
Prepaid expenses and other assets | 25,497 | 37,860 | ' | ' |
Intercompany | 138,062 | 133,159 | ' | ' |
Total current assets | 582,200 | 520,040 | ' | ' |
Property, plant and equipment, net | 185,630 | 179,326 | ' | ' |
Deferred financing costs, net | 4,189 | 4,803 | ' | ' |
Goodwill and other non-amortizable assets | ' | ' | ' | ' |
Amortizable intangible assets, net | ' | ' | ' | ' |
Deferred turnaround costs & other assets | 7,975 | 9,055 | ' | ' |
Investment in subsidiaries | 24,495 | 27,503 | ' | ' |
Total assets | 804,489 | 740,727 | ' | ' |
Current: | ' | ' | ' | ' |
Current installments of long-term debt | 697 | 836 | ' | ' |
Accounts payable | 31,799 | 31,625 | ' | ' |
Accrued liabilities | 9,372 | 12,399 | ' | ' |
Income taxes payable | 26,907 | 8,242 | ' | ' |
Sales, use and fuel taxes payable | 14,763 | 14,933 | ' | ' |
Deferred income taxes | 1,734 | 1,734 | ' | ' |
Amounts due to affiliated companies, net | ' | -169 | ' | ' |
Intercompany | ' | ' | ' | ' |
Total current liabilities | 85,272 | 69,600 | ' | ' |
Long term debt: less current installments | 232,635 | 232,180 | ' | ' |
Deferred income taxes | 16,101 | 14,325 | ' | ' |
Deferred retirement benefits | 64,441 | 67,419 | ' | ' |
Total liabilities | 398,449 | 383,524 | ' | ' |
Commitment and contingencies | ' | ' | ' | ' |
Stockholder's equity | ' | ' | ' | ' |
Common stock; $.10 par value per share - shares authorized 100; issued and outstanding 100 | ' | ' | ' | ' |
Preferred stock; $1,000 par value share - shares authorized 25,000; issued and outstanding 14,116 | 14,116 | 14,116 | ' | ' |
Additional paid-in capital | 157,251 | 159,844 | ' | ' |
Retained earnings | 242,106 | 190,333 | ' | ' |
Accumulated other comprehensive loss | -7,433 | -7,090 | ' | ' |
Total stockholder's equity | 406,040 | 357,203 | ' | ' |
Total liabilities and stockholder's equity | 804,489 | 740,727 | ' | ' |
Guarantors [Member] | ' | ' | ' | ' |
Current: | ' | ' | ' | ' |
Cash and cash equivalents | 13,944 | 17,151 | 9,346 | 15,321 |
Accounts receivable, net | 34,810 | 41,396 | ' | ' |
Refundable income taxes | ' | -1,054 | ' | ' |
Inventories, net | 28,552 | 29,075 | ' | ' |
Prepaid expenses and other assets | 5,284 | 4,233 | ' | ' |
Intercompany | 4,419 | 6,545 | ' | ' |
Total current assets | 87,009 | 97,346 | ' | ' |
Property, plant and equipment, net | 113,933 | 109,806 | ' | ' |
Deferred financing costs, net | ' | ' | ' | ' |
Goodwill and other non-amortizable assets | 11,849 | 11,849 | ' | ' |
Amortizable intangible assets, net | 1,004 | 1,057 | ' | ' |
Deferred turnaround costs & other assets | 2,600 | 2,717 | ' | ' |
Investment in subsidiaries | ' | ' | ' | ' |
Total assets | 216,395 | 222,775 | ' | ' |
Current: | ' | ' | ' | ' |
Current installments of long-term debt | 1,008 | 756 | ' | ' |
Accounts payable | 19,569 | 22,545 | ' | ' |
Accrued liabilities | 5,916 | 6,316 | ' | ' |
Income taxes payable | -2,003 | 345 | ' | ' |
Sales, use and fuel taxes payable | 3,889 | 4,314 | ' | ' |
Deferred income taxes | -1,369 | -1,369 | ' | ' |
Amounts due to affiliated companies, net | 81 | 603 | ' | ' |
Intercompany | 142,481 | 139,704 | ' | ' |
Total current liabilities | 169,572 | 173,214 | ' | ' |
Long term debt: less current installments | 5,575 | 4,934 | ' | ' |
Deferred income taxes | 14,639 | 14,868 | ' | ' |
Deferred retirement benefits | 2,114 | 2,256 | ' | ' |
Total liabilities | 191,900 | 195,272 | ' | ' |
Commitment and contingencies | ' | ' | ' | ' |
Stockholder's equity | ' | ' | ' | ' |
Common stock; $.10 par value per share - shares authorized 100; issued and outstanding 100 | 18 | 18 | ' | ' |
Preferred stock; $1,000 par value share - shares authorized 25,000; issued and outstanding 14,116 | ' | ' | ' | ' |
Additional paid-in capital | 16,626 | 16,626 | ' | ' |
Retained earnings | 9,177 | 12,253 | ' | ' |
Accumulated other comprehensive loss | -1,326 | -1,394 | ' | ' |
Total stockholder's equity | 24,495 | 27,503 | ' | ' |
Total liabilities and stockholder's equity | 216,395 | 222,775 | ' | ' |
Eliminations [Member] | ' | ' | ' | ' |
Current: | ' | ' | ' | ' |
Cash and cash equivalents | ' | ' | ' | ' |
Accounts receivable, net | ' | ' | ' | ' |
Refundable income taxes | ' | ' | ' | ' |
Inventories, net | ' | ' | ' | ' |
Prepaid expenses and other assets | ' | ' | ' | ' |
Intercompany | -142,481 | -139,704 | ' | ' |
Total current assets | -142,481 | -139,704 | ' | ' |
Property, plant and equipment, net | ' | ' | ' | ' |
Deferred financing costs, net | ' | ' | ' | ' |
Goodwill and other non-amortizable assets | ' | ' | ' | ' |
Amortizable intangible assets, net | ' | ' | ' | ' |
Deferred turnaround costs & other assets | ' | ' | ' | ' |
Investment in subsidiaries | -24,495 | -27,503 | ' | ' |
Total assets | -166,976 | -167,207 | ' | ' |
Current: | ' | ' | ' | ' |
Current installments of long-term debt | ' | ' | ' | ' |
Accounts payable | ' | ' | ' | ' |
Accrued liabilities | ' | ' | ' | ' |
Income taxes payable | ' | ' | ' | ' |
Sales, use and fuel taxes payable | ' | ' | ' | ' |
Deferred income taxes | ' | ' | ' | ' |
Amounts due to affiliated companies, net | ' | ' | ' | ' |
Intercompany | -142,481 | -139,704 | ' | ' |
Total current liabilities | -142,481 | -139,704 | ' | ' |
Long term debt: less current installments | ' | ' | ' | ' |
Deferred income taxes | ' | ' | ' | ' |
Deferred retirement benefits | ' | ' | ' | ' |
Total liabilities | -142,481 | -139,704 | ' | ' |
Commitment and contingencies | ' | ' | ' | ' |
Stockholder's equity | ' | ' | ' | ' |
Common stock; $.10 par value per share - shares authorized 100; issued and outstanding 100 | -18 | -18 | ' | ' |
Preferred stock; $1,000 par value share - shares authorized 25,000; issued and outstanding 14,116 | ' | ' | ' | ' |
Additional paid-in capital | -16,626 | -16,626 | ' | ' |
Retained earnings | -9,177 | -12,253 | ' | ' |
Accumulated other comprehensive loss | 1,326 | 1,394 | ' | ' |
Total stockholder's equity | -24,495 | -27,503 | ' | ' |
Total liabilities and stockholder's equity | ($166,976) | ($167,207) | ' | ' |