XML 102 R88.htm IDEA: XBRL DOCUMENT
v3.23.1

Long Term Debts (Details) - Schedule of maturity dates - USD ($) $ in Thousands |  | 12 Months Ended
--- | --- | ---
Jan. 01, 2021 | Dec. 31, 2022 | Dec. 31, 2021
Schedule Of Maturity Dates [Abstract] |  |  |
First year (Current maturities) | $ 10,202 | $ 18,218 | $ 12,301
Second year | 6,572 | 10,043 | 10,891
Third year | 6,484 | 9,818 | 4,462
Fourth year | 148 | 5,000 | 4,203
Fifth year and thereafter | 148 | 5,551 | 599
Total | $ 23,554 | $ 48,630 | $ 32,456

X
- Definition Fifth year and thereafter. + References No definition available. + Details
Name: | mgic_FifthYearAndThereafter
Namespace Prefix: | mgic_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition First year (Current maturities). + References No definition available. + Details
Name: | mgic_FirstYearCurrentMaturities
Namespace Prefix: | mgic_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Fourth year. + References No definition available. + Details
Name: | mgic_FourthYear
Namespace Prefix: | mgic_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Total. + References No definition available. + Details
Name: | mgic_LongTermDebtMaturitiesYear
Namespace Prefix: | mgic_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | mgic_LongTermDebtsDetailsScheduleofmaturitydatesLineItems
Namespace Prefix: | mgic_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Second year. + References No definition available. + Details
Name: | mgic_SecondYear
Namespace Prefix: | mgic_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Third year (in Shares). + References No definition available. + Details
Name: | mgic_ThirdYearinShares
Namespace Prefix: | mgic_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration