XML 64 R51.htm IDEA: XBRL DOCUMENT
v3.22.1

Significant Accounting Policies (Details) - Schedule of trade receivables net of an allowance - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020
Schedule of trade receivables net of an allowance [Abstract] |  |
Trade receivables | $ 122,046 | $ 95,953
Allowance for credit losses | 5,071 | 3,967
Total trade receivables | $ 116,975 | $ 91,986

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

X
- Definition Amount of allowance for credit loss on accounts receivable, classified as current. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 4 -URI https://asc.fasb.org/extlink&oid=123577603&loc=d3e5074-111524 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 20 -Section 45 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=124255206&loc=SL82895884-210446 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(4)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, before valuation allowance, of accounts receivable held for sale. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 45 -Paragraph 2 -URI https://asc.fasb.org/extlink&oid=124259787&loc=d3e4428-111522 + Details
Name: | us-gaap_TradeReceivablesHeldForSaleAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of increase (decrease) in trade receivables held-for-sale, after allowance for bad debt, that are not part of a disposal group. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 45 -Paragraph 2 -URI https://asc.fasb.org/extlink&oid=124259787&loc=d3e4428-111522 + Details
Name: | us-gaap_TradeReceivablesHeldForSaleReconciliationToCashFlowPeriodIncreaseDecrease
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration