/*=== Tabsbar CSS ===*/
.tabsbar {
	.theme-tabsbar();

	height: @theme-tabs-height;
	padding: 0px 5px;
	position: relative;
	z-index: 1000;
	flex-shrink: 0;

	& > .content {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		height: 100%;
		width: 100%;
	}
	
	.item {
		.theme-tabsbar-item();
		
		color: @tabsbar-item-font-color;
		display: inline-block;
		font-size: @tabsbar-item-fontsize;
		line-height: 120%;
		position: relative;
		text-shadow: @tabsbar-item-font-shadow;
		vertical-align: middle;
		
		.cssanimations &.recivedAnim {
			border-radius: 4px;
			
			.animation(highlight 0.5s linear);
		}
		
		&.logo {
			display: none;
			outline: none;
		}
		
		&.emails {
			cursor: default;
			
			&.has_control .helper {
				padding-right: 24px;
			}
			
			.icon {
				display: none;
			}
		}

		.link {
			color: inherit;
			display: inline-block;
			outline: none;
			position: relative;
			text-decoration: none;
			vertical-align: middle;
		}
		
		&:hover {
			.theme-tabsbar-item-hover();
		}
		
		&.current {
			.theme-current();
		}
	
		&.expand a,
		.control {
			z-index: 3003;
		}
		
		.helper {
			font-weight: bold;
			display: block;
			height: 0;
			overflow: hidden;
			position: relative;
			top: -40px;
			visibility: hidden;
		}

		.unseen {
			.theme-unseen-marker();
			
			border-radius: 7px;
			font-size: 6.4pt;
			height: 11px;
			line-height: 12px;
			position: absolute;
			text-align: center;
			text-shadow: none;
			
			&.one {
				right: -10px;
				width: 11px;
			}
			
			&.two {
				right: -15px;
				width: 16px;
			}
			
			&.three {
				width: 21px;
				right: -20px;
			}
		}
	}
	
	.control {
		cursor: pointer;
		display: inline-block;
		height: 16px;
		padding: 0px;
		position: relative;
		vertical-align: middle;
		width: 14px;
	
		.init-icon-font();
		
		&:before {
			content: "\e66d";
			font-size: 18px;
		}
	}
	
	.expand .control:before {
		content: "\e66e";
	}

	.spacer {
		padding: 10px;
		flex-grow: 1;
	}
	
	.mobile,
	.settings,
	.logout {
		font-size: 8pt;
		order: 100;
	}
	
	.logout span {
		cursor: pointer;
	}
	
	.specified-logo {
		outline: none;
		img {
			max-height: @theme-tabs-height - 8px; //item padding
		}
	}
	
	.dropdown_helper {
		min-width: 100%;
	}
		
	.dropdown_arrow {
		display: none;
	}
	
	.dropdown_content {
		background: #ffffff;
		border: 1px solid #cccccc;
		color: #555555;
		display: block;
		margin: -30px 0px 0px -2px;
		min-width: 100%;
		padding: 30px 0px 0px 0px;
		
		.item {
			color: inherit;
			display: block;
			margin: 0px;
			padding: 6px 10px;
			font-weight: normal;
			
			&:hover {
				background: #eeeeee;
			}
		}
	}
}

/* IE9 do not support flex-wrap and flex-direction */
.no-flexwrap
{
	.tabsbar .item {
		margin-top: 24px;
	}	

	.tabsbar .spacer {
		display: none;
	}

	.tabsbar .item.mobile,
	.tabsbar .item.settings,
	.tabsbar .item.logout {
		float: right;
	}
}
