SBI_KAZAKHSTAN_decision_category = {

	SBI_kzn_dec_protest_over = {

		icon = generic_political_discourse

		allowed = {
			original_tag = SBI
		}

		available = {
			hidden_trigger = {
				OR = {
					KZN = { has_government = neutrality }
					check_variable = { KZN_revolt_stage > 0 }
				}
			}
		}

		activation = { always = no }

		cancel_trigger = {
			hidden_trigger = {
				NOT = { has_country_flag = KZN_revolt_active }
			}
		}

		priority = 1000

		is_good = no

		days_mission_timeout = 365

		fire_only_once = yes


		timeout_effect = {
			SBI = { country_event = SBI.7005 }
		}
	}

	SBI_kzn_dec_monthly_wsr = {

		icon = generic_civil_support

		allowed = {
			original_tag = SBI
		}

		available = {
			OR = {
				custom_trigger_tooltip = {
					tooltip = SBI_kzn_civil_war_has_started_tt
					check_variable = { KZN_revolt_stage > 1 }
				}
				hidden_trigger = {
					NOT = { has_country_flag = KZN_revolt_active }
				}
			}
		}

		activation = {
			always = no
		}

		cancel_trigger = {
			hidden_trigger = {
				NOT = { has_country_flag = KZN_revolt_active }
			}
		}

		priority = 999

		is_good = no

		days_mission_timeout = 30

		days_re_enable = 0

		fire_only_once = no

		complete_effect = {
			remove_mission = SBI_kzn_dec_monthly_wsr
		}

		timeout_effect = {
			WSR_MONTHLY_SUPPORT_EFFECT = yes
			hidden_effect = { activate_mission = SBI_kzn_dec_monthly_wsr }
			if = {
				limit = {
					has_country_flag = KZN_revolt_active
					check_variable = { KZN_revolt_stage < 2 }
				}
				hidden_effect = { activate_mission = SBI_kzn_dec_monthly_wsr }
			}
		}
	}

	SBI_kzn_dec_cut_off_funding_choke = {

		priority = 260

		icon = generic_intelligence_operation
		cost = 125

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 0 }
		}

		fire_only_once = yes

		complete_effect = {

		}

		remove_effect = {
			set_country_flag = KZN_weak_fund_now
			WSR = {
				set_country_flag = KZN_weak_fund_now
				custom_effect_tooltip = SBI_kzn_dec_cut_off_funding_choke_tt
			}
			WRS = {
				set_country_flag = KZN_weak_fund_now
				custom_effect_tooltip = SBI_kzn_dec_cut_off_funding_choke_tt
			}
		}
		days_remove = 60
	}

	SBI_kzn_dec_public_prop_campaign = {

		priority = 250

		icon = eng_propaganda_campaigns
		cost = 35

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 0 }
		}

		fire_only_once = no

		complete_effect = {
			SBI_KZN_improve_rebel_5 = yes
		}

		remove_effect = {
			KZN = {
				add_popularity = {
					ideology = democratic
					popularity = 0.03
				}
			}
			SBI_KZN_improve_escalate_5 = yes
		}

		days_remove = 25

		days_re_enable = 0
	}

	SBI_kzn_dec_safe_haven_policies = {

		priority = 245

		icon = hol_exchange_intelligence_data
		cost = 45

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 0 }
		}

		fire_only_once = no

		complete_effect = {
			SBI_KZN_improve_rebel_5 = yes
		}

		remove_effect = {
			add_stability = -0.03
		}

		days_remove = 45

		days_re_enable = 0
	}

	SBI_kzn_dec_advisors_civil = {

		priority = 240

		icon = hol_draw_up_staff_plans
		cost = 25

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 0 }
		}

		fire_only_once = no

		complete_effect = {

			add_equipment_to_stockpile = {
				type = support_equipment
				amount = -175
			}

			SBI_KZN_improve_rebel_5 = yes
			SBI_KZN_improve_deescalate_5 = yes
		}

		remove_effect = {

		}

		days_remove = 0

		days_re_enable = 45
	}

	SBI_kzn_dec_backchannel_mediation = {

		priority = 240

		icon = SWI_swiss_democratic_tradition_campaign
		cost = 15

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 0 }
		}

		fire_only_once = no

		complete_effect = {
			SBI_KZN_improve_rebel_minus_5 = yes
		}

		remove_effect = {
			SBI_KZN_improve_deescalate_5 = yes
		}

		days_remove = 20

		days_re_enable = 3
	}

	SBI_kzn_dec_public_support_rallies = {

		priority = 240

		icon = SWI_consolidate_council_power
		cost = 5

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 0 }
		}

		fire_only_once = no

		complete_effect = {
			SBI_KZN_improve_rebel_5 = yes
		}

		remove_effect = {
			SBI_KZN_improve_escalate_5 = yes
		}

		days_remove = 20

		days_re_enable = 1
	}

	SBI_kzn_dec_limit_visibility_withdraw = {

		priority = 240

		icon = SWI_expand_covert_operations
		cost = 0

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 0 }
		}

		fire_only_once = no

		complete_effect = {
			SBI_KZN_improve_rebel_minus_5 = yes
		}

		remove_effect = {
			SBI_KZN_improve_deescalate_5 = yes
		}

		days_remove = 30

		days_re_enable = 1
	}

	#2 СТАДИЯ

	SBI_kzn_dec_material_aid_lethal = {

		priority = 349

		icon = generic_industry
		cost = 15

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 1 }
		}

		fire_only_once = no

		complete_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment
				amount = -200
			}
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1500
			}
			SBI_KZN_improve_rebel_10 = yes
		}

		remove_effect = {
			KZN = {
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 200
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 1500
				}
			}
		}

		days_remove = 14

		days_re_enable = 1
	}

	SBI_kzn_dec_material_aid_nonlethal = {

		priority = 350

		icon = SWI_support_humanitarian_efforts
		cost = 25

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 1 }
		}

		fire_only_once = no

		complete_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment
				amount = -225
			}
			SBI_KZN_improve_rebel_5 = yes
		}

		remove_effect = {
		}

		days_remove = 21

		days_re_enable = 0
	}

	SBI_kzn_dec_reinforce_local_militias = {

		priority = 290

		icon = generic_police_action
		cost = 35

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 1 }
		}

		fire_only_once = yes

		complete_effect = {
			SBI_KZN_improve_rebel_10 = yes
		}

		remove_effect = {
			KZN = {
				add_war_support = -0.05
			}
		}

		days_remove = 21

		days_re_enable = 0
	}

	SBI_kzn_dec_infiltrate_regime_forces = {

		priority = 290

		icon = generic_welfare
		cost = 50

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 1 }
		}

		fire_only_once = no

		complete_effect = {
			SBI_KZN_improve_rebel_10 = yes
			KZN = {
				add_timed_idea = {
					idea = KZN_regime_infiltration
					days = 70
				}
			}
		}

		remove_effect = {

		}

		days_remove = 70

		days_re_enable = 0
	}

	SBI_kzn_dec_form_revolutionary_council = {

		priority = 290

		icon = generic_protection
		cost = 40

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 1 }
		}

		fire_only_once = yes

		complete_effect = {
			SBI_KZN_improve_rebel_10 = yes
			KZN = {
				add_ideas = KZN_revolutionary_council
			}
		}

		remove_effect = {

		}

		days_remove = 1
	}

	#3 СТАДИЯ

	SBI_kzn_dec_send_volunteers = {

		priority = 500

		icon = generic_trucks
		cost = 40

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 2 }
		}

		fire_only_once = yes

		complete_effect = {

		}

		remove_effect = {
			add_relation_rule_override = {
				target = KZN
				can_send_volunteers = yes
			}
			add_timed_idea = {
				idea = SBI_volunteer_in_kzn
				days = 90
			}
		}

		days_remove = 7
	}

	SBI_kzn_dec_full_scale_arm_supply = {

		priority = 500

		icon = generic_prepare_civil_war
		cost = 40

		visible = {
			original_tag = SBI
			check_variable = { KZN_revolt_stage = 2 }
		}

		fire_only_once = no

		complete_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment
				amount = -150
			}
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = -1800
			}
		}

		remove_effect = {
			KZN = {
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = 150
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = 1800
				}
			}
		}

		days_remove = 14
		days_re_enable = 0
	}

}