<style>
	.header-menu .nav-item {
		display: flex;
	}

	.header-submenu .nav-item {
		display: flex;
	}

	.header-menu .nav-item a.nav-link {
		text-decoration: underline;
		padding-right: 5px;
		font-weight: 600;
		font-size: 18px;
	}

	.header-menu .nav-item:first-child a.nav-link {
		padding-left: 0;
	}

	.header-menu .nav-item a.active {
		text-decoration: none;
		color: black;
	}

	.header-submenu .nav-item a.nav-link {
		text-decoration: underline;
	}

	.header-submenu .nav-item:first-child a.nav-link {
		padding-left: 0;
	}

	.header-submenu .nav-item a.active {
		text-decoration: none;
		color: black;
	}

	.header-menu a.help-icon {
		color: #802731;
	}

	.header-submenu a.help-icon {
		color: #802731;
	}

	.header-submenu .nav-item {
		display: flex;
		align-items: center;
	}

	.header-menu .nav-item {
		display: flex;
		align-items: center;
	}

	.header-submenu .nav-item a.nav-link {
		padding-right: 5px;
	}
</style>
<div class="header-menu">
	<ul class="nav">
		<li class="nav-item">
			<a class="nav-link <?php echo esc_attr('shelf_planner_retail_insights' == sanitize_text_field(empty($_GET['page']) ? '' : $_GET['page']) ? 'active' : ''); ?>" aria-current="page" href="<?php echo esc_url(admin_url('admin.php?page=shelf_planner_retail_insights')); ?>"><?php echo esc_html(__('Store Performance', 'inventory-management-woocommerce')); ?></a>
			<a href="#" data-pt-title="<?php echo esc_attr(__('Store Performance Help', 'inventory-management-woocommerce')); ?>" data-pt-trigger="click" data-pt-gravity="bottom" data-pt-scheme="red" data-pt-size="tiny" class="help-icon protip"><i class="fas fa-question-circle"></i></a>
		</li>
		<li class="nav-item">
			<a class="nav-link <?php echo esc_attr('shelf_planner' == sanitize_text_field(empty($_GET['page']) ? '' : $_GET['page']) ? 'active' : ''); ?>" aria-current="page" href="<?php echo esc_url(admin_url('admin.php?page=shelf_planner')); ?>"><?php echo esc_html(__('Stock Analyses', 'inventory-management-woocommerce')); ?></a>
			<a href="#" data-pt-title="<?php echo esc_attr(__('Stock Analyses Help', 'inventory-management-woocommerce')); ?>" data-pt-trigger="click" data-pt-gravity="bottom" data-pt-scheme="red" data-pt-size="tiny" class="help-icon protip"><i class="fas fa-question-circle"></i></a>
		</li>
		<li class="nav-item">
			<a class="nav-link 
			<?php 
			echo esc_attr(in_array(sanitize_text_field(empty($_GET['page']) ? '' : $_GET['page']), array(
									'shelf_planner_purchase_orders',
									'shelf_planner_po_create_po',
									'shelf_planner_po_orders'
								)) ? 'active' : ''); 
			?>
								" aria-current="page" href="<?php echo esc_url(admin_url('admin.php?page=shelf_planner_po_orders')); ?>"><?php echo esc_html(__('Purchase Orders', 'inventory-management-woocommerce')); ?></a>
			<a href="#" data-pt-title="<?php echo esc_attr(__('Purchase Orders Help', 'inventory-management-woocommerce')); ?>" data-pt-trigger="click" data-pt-gravity="bottom" data-pt-scheme="red" data-pt-size="tiny" class="help-icon protip"><i class="fas fa-question-circle"></i></a>
		</li>
		<li class="nav-item">
			<a class="nav-link <?php echo esc_attr('shelf_planner_suppliers' == sanitize_text_field(empty($_GET['page']) ? '' : $_GET['page']) ? 'active' : ''); ?>" aria-current="page" href="<?php echo esc_url(admin_url('admin.php?page=shelf_planner_suppliers')); ?>"><?php echo esc_html(__('Suppliers', 'inventory-management-woocommerce')); ?></a>
			<a href="#" data-pt-title="<?php echo esc_attr(__('Suppliers Help', 'inventory-management-woocommerce')); ?>" data-pt-trigger="click" data-pt-gravity="bottom" data-pt-scheme="red" data-pt-size="tiny" class="help-icon protip"><i class="fas fa-question-circle"></i></a>
		</li>
		<li class="nav-item">
			<a class="nav-link <?php echo esc_attr('shelf_planner_warehouses' == sanitize_text_field(empty($_GET['page']) ? '' : $_GET['page']) ? 'active' : ''); ?>" aria-current="page" href="<?php echo esc_url(admin_url('admin.php?page=shelf_planner_warehouses')); ?>"><?php echo esc_html(__('Warehouses', 'inventory-management-woocommerce')); ?></a>
			<a href="#" data-pt-title="<?php echo esc_attr(__('Warehouses Help', 'inventory-management-woocommerce')); ?>" data-pt-trigger="click" data-pt-gravity="bottom" data-pt-scheme="red" data-pt-size="tiny" class="help-icon protip"><i class="fas fa-question-circle"></i></a>
		</li>
		<li class="nav-item">
			<a class="nav-link <?php echo esc_attr('shelf_planner_product_management' == sanitize_text_field(empty($_GET['page']) ? '' : $_GET['page']) ? 'active' : ''); ?>" aria-current="page" href="<?php echo esc_url(admin_url('admin.php?page=shelf_planner_product_management')); ?>"><?php echo esc_html(__('Product Management', 'inventory-management-woocommerce')); ?></a>
			<a href="#" data-pt-title="<?php echo esc_attr(__('Product Management Help', 'inventory-management-woocommerce')); ?>" data-pt-trigger="click" data-pt-gravity="bottom" data-pt-scheme="red" data-pt-size="tiny" class="help-icon protip"><i class="fas fa-question-circle"></i></a>
		</li>
		<li class="nav-item">
			<a class="nav-link <?php echo esc_attr('shelf_planner_backorder' == sanitize_text_field(empty($_GET['page']) ? '' : $_GET['page']) ? 'active' : ''); ?>" aria-current="page" href="<?php echo esc_html(admin_url('admin.php?page=shelf_planner_backorder')); ?>"><?php echo esc_html(__('Backorder', 'inventory-management-woocommerce')); ?></a>
			<a href="#" data-pt-title="<?php echo esc_attr(__('Backorder Help', 'inventory-management-woocommerce')); ?>" data-pt-trigger="click" data-pt-gravity="bottom" data-pt-scheme="red" data-pt-size="tiny" class="help-icon protip"><i class="fas fa-question-circle"></i></a>
		</li>
		<li class="nav-item">
			<a class="nav-link 
			<?php 
			echo esc_attr(in_array(sanitize_text_field(empty($_GET['page']) ? '' : $_GET['page']), array(
									'shelf_planner_settings_forecast',
									'shelf_planner_settings_po',
									'shelf_planner_settings_product',
									'shelf_planner_settings_store',
									'shelf_planner_settings_category_mapping',
								)) ? 'active' : ''); 
			?>
								" aria-current="page" href="<?php echo esc_url(admin_url('admin.php?page=shelf_planner_settings_forecast')); ?>"><?php echo esc_html(__('Settings', 'inventory-management-woocommerce')); ?></a>
			<a href="#" data-pt-title="<?php echo esc_attr(__('Settings Help', 'inventory-management-woocommerce')); ?>" data-pt-trigger="click" data-pt-gravity="bottom" data-pt-scheme="red" data-pt-size="tiny" class="help-icon protip"><i class="fas fa-question-circle"></i></a>
		</li>
		<li class="nav-item">
			<a class="nav-link <?php echo esc_attr('sp_integrations' == sanitize_text_field(empty($_GET['page']) ? '' : $_GET['page']) ? 'active' : ''); ?>" aria-current="page" href="<?php echo esc_url(admin_url('admin.php?page=sp_integrations')); ?>"><?php echo esc_html(__('Integrations', 'inventory-management-woocommerce')); ?></a>
			<a href="#" data-pt-title="<?php echo esc_attr(__('Integrations Help', 'inventory-management-woocommerce')); ?>" data-pt-trigger="click" data-pt-gravity="bottom" data-pt-scheme="red" data-pt-size="tiny" class="help-icon protip"><i class="fas fa-question-circle"></i></a>
		</li>
	</ul>
</div>
