RUS_murmansk_crisis_category = {
	icon = GFX_decision_category_diplo_karelia
	picture = GFX_decision_image_generic_secure_the_front

	allowed = {
		AND = {
			is_central_russian_nation = yes
			is_russian_unifier = yes
			NOT = {
				tag = PRM
			}
		}
	}
	visible = {
		has_global_flag = MURMANSK_CRISIS
		has_country_flag = RUS_regional_stage
		NOT = {
			tag = PRM
		}
	}
}

RUS_reunification_category = {
	icon = GFX_decision_category_diplo_russia
	picture = GFX_decision_image_RUS_reunification

	allowed = {
		OR = {
			is_kazakh_nation = yes
			AND = {
				is_russian_nation = yes
				is_russian_unifier = yes
			}
		}
	}

	visible = {
		if = {
			limit = { is_central_siberian_nation = yes }
			NOT = { has_global_flag = TNO_RUS_central_siberia_collapse }
		}
		if = {
			limit = { is_far_eastern_nation = yes }
			NOT = { has_global_flag = TNO_RUS_far_east_collapse }
		}
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
	}
}


RUS_coring_category = {
	icon = GFX_decision_category_diplo_russia
	picture = GFX_decision_image_generic_political_fighting

	allowed = {
		OR = {
			AND = {
				is_russian_nation = yes
				is_russian_unifier = yes
			}
			AND = {
				is_kazakh_nation = yes
				NOT = {
					tag = NPL
				}
			}
			original_tag = ORE
			original_tag = URL
		}
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		any_owned_state = {
			NOT = {
				is_core_of = ROOT
			}
		}
		if = {
			limit = {
				original_tag = OMO
			}
			OMO_2022_aprilfools_gamerule_active = no
		}
		NOT = { has_country_flag = RUS_Smuta_Enabled }
	}
	on_map_area = {
		target_array = owned_states
		target_trigger = {
			any_owned_state = {
				NOT = { is_core_of = ROOT }
			}
		}
		name = coring_rus_map_category_name
		zoom = 1000
	}
}


russian_raiding_category = {
	icon = GFX_decision_category_generic_border_war
	picture = GFX_decision_image_RUS_raiding

	allowed = {
		OR = {
			is_russian_nation = yes
			is_kazakh_nation = yes
		}
		NOT = {
			original_tag = DRL
			original_tag = URL
			is_moskowien_splits = yes
		}
	}
	visible = {
		OR = {
			AND = {
				has_country_flag = is_AM_warlord
				has_global_flag = AFTER_MIDNIGHT_Collapsed
			}
			AND = {
				has_country_flag = is_warlord
				NOT = { has_global_flag = AFTER_MIDNIGHT_COMMENCED }
			}
		}
		if = {
			limit = {
				OMO_2022_aprilfools_gamerule_active = yes
			}
			NOT = {
				original_tag = OMO
			}
		}
	}
	visible_when_empty = yes
}


WSR_war_category = {
	icon = GFX_decision_category_generic_border_war
	picture = GFX_decision_image_RUS_reunification

	allowed = {
		always = yes
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = WSR_war_decisions
		NOT = {
			has_country_flag = RUS_hide_regional_war_decisions
		}
		has_country_flag = RUS_regional_stage
		NOT = {
			has_country_flag = RUS_superregional_stage
		}
	}
}

WSR_peace_category = {
	icon = GFX_decision_category_generic_foreign_policy
	picture = GFX_decision_image_RUS_reunification

	allowed = {
		always = yes
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = WSR_peace_decisions
		NOT = {
			has_country_flag = RUS_fucked_up_horribly_war_time
		}
		has_country_flag = RUS_regional_stage
		NOT = {
			has_country_flag = RUS_superregional_stage
		}
		NOT = {
			has_war_with = WSB
		}
		WSB = { exists = yes }
	}
}

WSB_war_category = {
	icon = GFX_decision_category_generic_border_war
	picture = GFX_decision_image_RUS_reunification

	allowed = {
		always = yes
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = WSB_war_decisions
		NOT = {
			has_country_flag = RUS_hide_regional_war_decisions
		}
		has_country_flag = RUS_regional_stage
		NOT = {
			has_country_flag = RUS_superregional_stage
		}
	}
}

WSB_peace_category = {
	icon = GFX_decision_category_generic_foreign_policy
	picture = GFX_decision_image_RUS_reunification

	allowed = {
		always = yes
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = WSB_peace_decisions
		NOT = {
			has_country_flag = RUS_fucked_up_horribly_war_time
		}
		has_country_flag = RUS_regional_stage
		NOT = {
			has_country_flag = RUS_superregional_stage
		}
		NOT = {
			has_war_with = WSR
		}
		WSR = { exists = yes }
	}
}

CSB_war_category = {
	icon = GFX_decision_category_generic_border_war
	picture = GFX_decision_image_RUS_reunification

	allowed = {
		always = yes
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = CSB_war_decisions
		NOT = {
			has_country_flag = RUS_hide_regional_war_decisions
		}
		has_country_flag = RUS_regional_stage
		NOT = {
			has_country_flag = RUS_superregional_stage
		}
	}
}

CSB_peace_category = {
	icon = GFX_decision_category_generic_foreign_policy
	picture = GFX_decision_image_RUS_reunification

	allowed = {
		always = yes
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = CSB_peace_decisions
		NOT = {
			has_country_flag = RUS_fucked_up_horribly_war_time
		}
		has_country_flag = RUS_regional_stage
		NOT = {
			has_country_flag = RUS_superregional_stage
		}
		NOT = {
			has_war_with = FST
		}
		FST = { exists = yes }
	}
}

FST_war_category = {
	icon = GFX_decision_category_generic_border_war
	picture = GFX_decision_image_RUS_reunification

	allowed = {
		always = yes
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = FST_war_decisions
		NOT = {
			has_country_flag = RUS_hide_regional_war_decisions
		}
		has_country_flag = RUS_regional_stage
		NOT = {
			has_country_flag = RUS_superregional_stage
		}
	}
}

FST_peace_category = {
	icon = GFX_decision_category_generic_foreign_policy
	picture = GFX_decision_image_RUS_reunification

	allowed = {
		always = yes
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = FST_peace_decisions
		NOT = {
			has_country_flag = RUS_fucked_up_horribly_war_time
		}
		has_country_flag = RUS_regional_stage
		NOT = {
			has_country_flag = RUS_superregional_stage
		}
		NOT = {
			has_war_with = CSB
		}
		CSB = { exists = yes }
	}
}

RWS_war_category = {
	icon = GFX_decision_category_generic_border_war
	picture = GFX_decision_image_RUS_reunification

	allowed = {
		always = yes
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = RWS_war_decisions
		NOT = {
			has_country_flag = RUS_hide_superregional_war_decisions
		}
		has_country_flag = RUS_superregional_stage
	}
}

RWS_peace_category = {
	icon = GFX_decision_category_generic_foreign_policy
	picture = GFX_decision_image_RUS_reunification

	allowed = {
		always = yes
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = RWS_peace_decisions
		has_country_flag = RUS_superregional_stage
		NOT = {
			has_country_flag = RUS_hide_superregional_peace_decisions
		}
		NOT = {
			has_war_with = SIB
		}
		SIB = { exists = yes }
	}
}

SIB_war_category = {
	icon = GFX_decision_category_generic_border_war
	picture = GFX_decision_image_RUS_reunification

	allowed = {
		always = yes
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = SIB_war_decisions
		NOT = {
			has_country_flag = RUS_hide_superregional_war_decisions
		}
		has_country_flag = RUS_superregional_stage
	}
}

SIB_peace_category = {
	icon = GFX_decision_category_generic_foreign_policy
	picture = GFX_decision_image_RUS_reunification

	allowed = {
		always = yes
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = SIB_peace_decisions
		has_country_flag = RUS_superregional_stage
		NOT = {
			has_country_flag = RUS_hide_superregional_peace_decisions
		}
		NOT = {
			has_war_with = RWS
		}
		RWS = { exists = yes }
	}
}

RUS_lenin_enbalmed_category = {
	icon = GFX_decision_category_generic_communism
	#picture =

	allowed = {
		is_russian_nation = yes
	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = RUS_HAS_LENIN_BODY
	}
}

RUS_nuke_development_category = {
	icon = GFX_decision_category_generic_nuclear
	picture = GFX_decision_image_ITA_progetta_alfa

	allowed = {
		is_russian_nation = yes

	}
	visible = {
		NOT = {
			has_global_flag = AFTER_MIDNIGHT_COMMENCED
		}
		has_country_flag = RUS_superregional_stage
		has_country_flag = RUS_started_nukes
	}
}

RUS_after_midnight_category = {
	icon = GFX_AM_Television
	scripted_gui = TNO_AM_epilogue_GUI
	priority = { base = 100 }

	allowed = {
		OR = {
			is_russian_nation = yes
			is_kazakh_nation = yes
		}
	}
	visible = {
		has_global_flag = AFTER_MIDNIGHT_Collapsed
	}
}

RUS_AM_coring_category = {
	allowed = {
		OR = {
			is_russian_nation = yes
			is_kazakh_nation = yes
		}
	}

	visible = {
		has_global_flag = AFTER_MIDNIGHT_COMMENCED
		check_variable = { global.AM_sandbox_mode = 1 }
		any_owned_state = {
			NOT = {
				is_core_of = ROOT
			}
		}
	}

	on_map_area = {
		target_array = owned_states
		target_trigger = {
			any_owned_state = {
				NOT = { is_core_of = ROOT }
			}
		}
		name = coring_rus_map_am_category_name
		zoom = 1000
	}
}

far_east_naval_category = {
	icon = GFX_decision_category_generic_battleship
	picture = GFX_decision_image_generic_ship_hull
	visible_when_empty = yes
	allowed = {
		is_russian_nation = yes
	}
	visible = {
		has_country_flag = far_east_deccat_enable
	}
}

far_east_sakha_category = {
	icon = GFX_decision_category_generic_prospect_for_resources
	picture = GFX_decision_image_generic_mine
	visible_when_empty = no
	allowed = {
		is_russian_nation = yes
	}
	visible = {
		has_country_flag = far_east_sakha_enable
	}
}