.header {
	.notification-list,
	.chats-list {
		overflow-x: hidden;
		overflow-y: auto;
		max-height: 250px;
		width: 400px;
	}
}

.header,
.slideout-menu {
	.notification-list {
		padding: 0;

		li {
			text-align: left;
			list-style-type: none;
			clear: both;
			padding: 10px;
			.zebra;

			&.no-notifs,
			&.loading-text {
				text-align: center;
				padding: 20px 0;
			}

			&.loading-text {
				text-align: center;
			}

			a {
				white-space: normal;
				margin: 0;
				.text-ellipsis;

				.text {
					margin: 0 40px;
					display: block;
					min-height: 32px;
					.text-ellipsis;
				}
			}

			&.unread {
				.bg-variant(@state-warning-bg);

				.mark-read:after {
					content: "\f111";
				}

				.mark-read:hover:after {
					content: "\f10c";
				}
			}

			.mark-read {
				color: @text-muted;

				&:after {
					font-family: "FontAwesome";
					content: "\f10c";
					padding: 0 0 0 10px;
					position: relative;
					top: 1px;
				}

				&:hover {
					color: @gray-dark;
					.pointer;

					&:after {
						content: "\f111";
					}
				}
			}
		}
	}
}

.header {
	.navbar-toggle {
		.notification-icon {
			position: absolute;
			left: -13px;
			top: 14px;

			&:before {
				display: none;
			}
		}
	}

	#user_dropdown {
		padding: 10px;

		img,
		.user-icon {
			box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
			border: 0px none;
			.user-icon-style(30px, 17px, 50%);
		}
	}

	.forum-logo {
		margin: 0 !important;
		padding: 0;

		& img {
			height: @navbar-height;
			padding: 5px 0;
		}
	}

	.header-topic-title {
		font-size: @font-size-h4;
		text-align: right;
		padding: 15px 15px;
		line-height: 20px;
		.text-ellipsis;

		span {
			color: @brand-primary;
			.text-ellipsis;
		}
	}

	.pagination-block {
		margin-right: 10px !important;
		margin-left: 10px !important;
		pointer-events: none;
		.opacity(0);
		.transition(opacity 0.2s ease-in);

		&.ready {
			pointer-events: inherit;
			.opacity(1);
		}

		a {
			padding-left: 2px;
			padding-right: 2px;
			.inline-block;
		}

		.progress-container {
			background-color: @gray-lighter;
			height: 2px;
			position: absolute;
			bottom: 8px;
			left: 8px;
			width: 90%;
			margin: auto;

			.progress-bar {
				background-color: @gray-dark;
				height: 2px;
			}
		}

		.dropdown-toggle {
			padding: 0 5px 0 5px;
			.inline-block;
		}

		.open > a {
			background-color: rgba(0, 0, 0, 0) !important;
		}

		.dropdown-menu {
			padding: 10px;
		}

		@media (max-width: @screen-xs-max) {
			.progress-container {
				position: static;
				bottom: 0px;
				width: 100px;
				margin-left: 1em;
				margin-bottom: 3px;
				.inline-block;
			}
		}
	}

	.notif-dropdown-link {
		border-top: 1px solid rgba(163, 163, 163, 0.5);
		padding: 0 5px 0 5px;

		a {
			display: block;
			text-align: center;
			padding: 0.5em 0;
			font-weight: 600;
		}
	}

	[component="user/logout"] .btn {
		color: #cb2431;

		&:hover {
			background-color: #cb2431;
			color: #fff;
		}
	}
}

.breadcrumb {
	font-size: @font-size-base;
	font-weight: bold;
	margin-bottom: 15px;
	padding: 0;
	.opacity(0.8);

	li {
		max-width: 100%;
		.text-ellipsis;
	}

	.fa {
		margin-left: 5px;
		color: @breadcrumb-active-color;
	}

	@media (max-width: @screen-sm-max) {
		li {
			display: none;
		}

		li:nth-last-child(2),
		li:nth-last-child(1),
		li:last-child {
			.inline-block;
		}

		li:nth-last-child(2):before {
			display: none;
		}
	}
}

#reconnect {
	font-size: @font-size-base;
	.opacity(0);
	.transition(opacity 0.2s linear);

	&.active {
		.opacity(1);
	}

	& + div.tooltip .tooltip-inner {
		width: 350px;
	}
}

.unread-count:after {
	background-color: @brand-danger;
	font-family: @font-family-sans-serif;
	position: absolute;
	left: 23px;
	top: 10px;
	font-weight: bold;
	font-size: 9px;
	color: #fff;
	text-align: center;
	padding: 1px 0 0;
	min-width: 16px;
	min-height: 15px;
	line-height: 15px;
	border-radius: 50%;
	box-shadow: 0 1px 7px rgba(250, 26, 44, 0.29);
}

.unread-count[data-content]:not([data-content=""]):not([data-content="0"]):after {
	content: attr(data-content);
}

.slideout-menu .unread-count:after {
	position: relative;
	left: -6px;
	top: -7px;
}

body.skin-default .header {
	.notification-list {
		li a {
			color: inherit;
		}
	}
}

label.dropdown-toggle {
	margin: 0;
	.pointer;
}

#user-control-list-check:checked + #user-control-list {
	display: block;
}

#user-control-list #user-status .status {
	margin-right: 10px;
}

.navbar-default .navbar-nav {
	> li > label {
		color: @navbar-default-link-color;

		&:hover,
		&:focus {
			color: @navbar-default-link-hover-color;
			background-color: @navbar-default-link-hover-bg;
		}
	}

	> .active > label {
		&,
		&:hover,
		&:focus {
			color: @navbar-default-link-active-color;
			background-color: @navbar-default-link-active-bg;
		}
	}

	> .disabled > label {
		&,
		&:hover,
		&:focus {
			color: @navbar-default-link-disabled-color;
			background-color: @navbar-default-link-disabled-bg;
		}
	}

	> .open > label {
		&,
		&:hover,
		&:focus {
			background-color: @navbar-default-link-active-bg;
			color: @navbar-default-link-active-color;
		}
	}
}

.dropdown-menu > li > form {
	> button,
	> .btn-link {
		text-align: left;
		width: 100%;
		background-color: none;
		border: none;
		display: block;
		padding: 3px 20px;
		font-weight: normal;
		line-height: @line-height-base;
		color: @dropdown-link-color;
		white-space: nowrap; // prevent links from randomly breaking onto new lines
		.clear;

		&:hover,
		&:focus {
			text-decoration: none;
			color: @dropdown-link-hover-color;
			background-color: @dropdown-link-hover-bg;
		}
	}
}

.notif-action-buttons {
	padding: 10px 10px 0;
	margin-top: 5px;
	border-top: 1px solid @gray-lighter;

	a {
		font-size: 11px;
		width: ~"calc(50% - 2px)";
		background-color: @gray-light;
		color: #fff;
		text-align: center;
		padding: 7px 14px;
		font-weight: bold;
		.inline-block;
		.border-radius(@border-radius-base);
		.transition(background 0.1s linear);
		.text-ellipsis();

		&:hover {
			background-color: @gray;
		}
	}
}
