XML 97 R86.htm IDEA: XBRL DOCUMENT v3.22.2
RELATED PARTY TRANSACTIONS (Details)
1 Months Ended 3 Months Ended 6 Months Ended 12 Months Ended
Jul. 31, 2021
Jun. 30, 2022
USD ($)
Jun. 30, 2021
USD ($)
Jun. 30, 2022
USD ($)
Jun. 30, 2021
USD ($)
Dec. 31, 2022
USD ($)
Apr. 30, 2022
USD ($)
facility
Apr. 30, 2022
SAR (ر.س)
facility
Feb. 28, 2022
USD ($)
Feb. 28, 2022
SAR (ر.س)
Feb. 27, 2022
USD ($)
Feb. 27, 2022
SAR (ر.س)
Dec. 31, 2021
USD ($)
Related Party Transaction [Line Items]                          
Right-of-use assets   $ 198,207,000   $ 198,207,000                 $ 161,974,000
Operating lease, liability   234,178,000   234,178,000                 $ 196,379,000
SIDF                          
Related Party Transaction [Line Items]                          
Principal Amount   1,400,000,000   1,400,000,000             $ 1,400,000,000 ر.س 5,190,000,000  
Klein                          
Related Party Transaction [Line Items]                          
Common stock, ownership percentage, more than                         5.00%
Affiliated Entity                          
Related Party Transaction [Line Items]                          
Related party transaction, internship duration 6 months                        
Affiliated Entity | MISA                          
Related Party Transaction [Line Items]                          
Payments from related parties   0   0                  
Affiliated Entity | Public Investment Fund Internship Agreement                          
Related Party Transaction [Line Items]                          
Related party transaction, expenses from transactions   700,000   700,000                  
Affiliated Entity | SIDF Loan Agreement | SIDF                          
Related Party Transaction [Line Items]                          
Principal Amount                 $ 1,400,000,000 ر.س 5,190,000,000      
Affiliated Entity | GIB Facility Agreement | GIB Facility Agreement | Line of Credit                          
Related Party Transaction [Line Items]                          
Number of facilities | facility             2 2          
Maximum borrowing capacity             $ 266,500,000 ر.س 1,000,000,000          
Affiliated Entity | Forecast | Public Investment Fund Internship Agreement                          
Related Party Transaction [Line Items]                          
Related party transaction, amount of transaction           $ 1,000,000              
Klein                          
Related Party Transaction [Line Items]                          
Related party transaction, amount of transaction   300,000 $ 0 600,000 $ 0                
KAEC                          
Related Party Transaction [Line Items]                          
Lease initial term (in years)                 25 years 25 years      
Right-of-use assets   5,000,000   5,000,000                  
Operating lease, liability   $ 5,200,000   $ 5,200,000