@font-face {
    font-family: 'rqicon';  /* project id："14077" */
    src: url('//at.alicdn.com/t/font_egugxkglji8s38fr.eot');
    src: url('//at.alicdn.com/t/font_egugxkglji8s38fr.eot?#iefix') format('embedded-opentype'),
    url('//at.alicdn.com/t/font_egugxkglji8s38fr.woff') format('woff'),
    url('//at.alicdn.com/t/font_egugxkglji8s38fr.ttf') format('truetype'),
    url('//at.alicdn.com/t/font_egugxkglji8s38fr.svg#iconfont') format('svg');
}

.rqicon {
    font-family:"rqicon" !important;
    font-style:normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    -moz-osx-font-smoothing: grayscale;
    font-weight:normal;
    background-color:transparent;
    vertical-align: middle;
    & + span {
        vertical-align: middle;
    }
}

header {
    .notifications{
        margin-left: 15px;
    }

    #user-control-list {
        text-align: center;
        margin-top: 10px;
        left: -100px;
    }

    #notif-list {
        max-height: 400px;
        overflow-y: scroll;
        margin: 10px 0;
        border: none;
        background-color: #eee;
        
        > li > a {
          display: block;
          padding: 3px 20px;
          clear: both;
          font-weight: normal;
          line-height: @line-height-base;
          color: @dropdown-link-color;
          white-space: nowrap; // prevent links from randomly breaking onto new lines
        }


        li {
            font-size: 12px;
            width: 250px;
            text-align: center;
            margin-bottom: 5px;
            &:hover {
                background-color: #f5f5f5;
            }
            a {
                white-space: normal;
                overflow: hidden;
                margin: 0;
                padding: 8px 20px;
                color: #000;
                text-overflow: ellipsis;

                img {
                    max-width: 32px;
                    max-height: 32px;
                    float: left;
                }

                .text {
                    margin-left: 40px;
                    display: block;
                    font-size: 12px;
                    text-align: left;
                }
            }

            &.pagelink {
                margin-top: 1em;
                border-top: 1px solid rgba(163, 163, 163, 0.5);

                a {
                    display: block;
                    text-align: center;
                    padding-top: 0.5em;
                    font-weight: 600;
                }
            }

            &.unread {
                .bg-variant(@state-warning-bg);
            }
        }
    }
}
.header {

	.forum-title {
		margin: 0px;
	}

	.forum-logo {
		float: left;
		max-height: 50px;
		width: auto;
	}

	.header-topic-title {
		text-align: right;
		padding: 15px 15px;
		font-size: 18px;
		line-height: 20px;
		text-overflow: ellipsis;
		overflow: hidden;
		white-space: nowrap;
		span {
			text-overflow: ellipsis;
			white-space: nowrap;
			color: @brand-primary;
		}
	}

	.pagination-block {
		margin-right: 10px !important;
        height:50px;
        position: fixed;
        left: 100%;
        top: 100%;
        width: 200px;
        height: 80px;
        margin-left: -300px;
        margin-top: -190px;
        color: #fff !important;
        background: rgba(0, 0, 0, 0.3);
        cursor: move;
        display: inline-block;
        li{
            left: 50%;
            top: 50%;
            margin-left: -66px;
            margin-top: -26px;
        }
        a{
            color:#fff !important
        }

		.progress-container {
			height: 2px;
			position: relative;
			bottom: 10px;
			background: #666;
			width: 90%;
			margin: auto;

			.progress-bar {
				background-color: #eee;
				height: 2px;
			}
		}

		.dropdown-toggle {
			display: inline-block;
			padding-left: 5px;
			padding-right: 5px;
		}

		.open>a {
			background-color: rgba(0, 0, 0, 0)!important;
		}


		.dropdown-menu {
			padding: 10px;
		}

		@media (max-width: 767px) {
			.progress-container {
				display: inline-block;
				position: static;
				bottom: 0px;
				margin-left: 1em;
				width: 100px;
				margin-bottom: 3px;
			}
		}
	}
}


.breadcrumb {
	li {
		max-width: 100%;
		.text-ellipsis;
	}
}

#reconnect {
	font-size: 14px;
	-webkit-transition: opacity 250ms linear;
	-moz-transition: opacity 250ms linear;
	-ms-transition: opacity 250ms linear;
	-o-transition: opacity 250ms linear;
	transition: opacity 250ms linear;
	-moz-opacity: 0.00;
	opacity: 0.00;
	min-width: 45px;

	&.active {
		-moz-opacity: 1;
		opacity: 1;
	}

	& +div.tooltip .tooltip-inner {
		width: 350px;
	}
}

// .unread-count:after {
// 	content: attr(data-content);
// 	position: relative;
// 	left: -6px;
// 	top: -7px;
// 	font-size: 10px;
// 	text-align: center;
// 	border: 1px solid #890405;
// 	color: #fff;
// 	font-weight: bold;
// 	min-width: 20px;
// 	-webkit-border-radius: 4px;
// 	-moz-border-radius: 4px;
// 	border-radius: 4px;
// 	background: #c91106;
// 	padding: 1px 2px;
// 	font-family: @font-family-sans-serif;
// }


// PoppinL
#header-menu {
    background-color:#fff;
}
header {
	@media (max-width: @screen-xs-max) {
		width:100%;
	}
    position:fixed;
	top:0;
	left:0;
	right:0;
	width:100%;
    padding: 0 10%;
    height:60px;
	z-index:1031;
	margin:0 auto;
    background-color: #020818;
    .logo {
        display:inline-block;
        margin-top:10px;
    }
    nav {
        height:30px;
        margin:15px 0;
        a {
            font-size:14.4px;
            line-height:30px;
			color:#fff;
        }
    }
	ul {
		margin:0;
		padding:0;
	}
    .nav-item {
        position:relative;
        display:inline-block;
        font-size:0;
        margin-left:50px;
        .dropdown-menu-center {
            padding: 20px 10px 0;
            left: 50%;
            margin-left: -110px;
            text-align: center;
        }

        & .new {
            position: absolute;
            top: -3px;
            z-index: 2;
            right: -20px;
            font-size: 20px;
            color: #e55;
            &-mask {
                position: absolute;
                width: 15px;
                height: 7px;
                background-color: #fff;
                top: 6px;
                right: -18px;
            }
        }
        @media (min-width: @screen-lg) and (max-width: @screen-xg){
            margin-left: 40px;
        }
        @media (min-width: @screen-md) and (max-width: @screen-lg){
            margin-left: 30px;
        }
        @media (min-width: @screen-xs-max) and (max-width: @screen-md){
            margin-left: 15px;
        }
    }
	.caret {
        border-left-width:3px;
        border-right-width:3px;
		border-top-color:#69f;
		margin-top:-1px;
	}
	.dropdown-menu a {
		font-size:14px;
	}

    .hot {
        border: 1px solid #fff;
        padding: 0 .7rem;
        border-radius: 5px;
    }
    .active {
        padding-bottom: 18px;
        border-bottom: 3px solid #69f;
        color: #69f;
    }
}

#logged-in-menu {
    margin-right:0;
}

#new_post {
    display:inline-block;
    background:#69f;
    color:#fff;
    margin:10px 0 10px 15px;
    line-height:30px;
    padding:0 25px;
    border-radius:15px;
    font-size:13px;
}

#user_label {
    img {
        width: 30px;
        height: 30px;
        border-radius: 15px;
    }
    span {
        font-size: 14px;
        font-weight: 400;
    }
    &.unread-count:after {
        content: attr(data-content);
        width: 15px;
        height: 15px;
        border-radius: 100%;
        background-color: #e55;
        position: absolute;
        right: -5px;
        bottom: 0;
        font-size: 9px;
        z-index: 11111;
        color: #fff;
        line-height: 15px;
        text-align: center;
        box-shadow: 1px 1px 2px 1px #0f0f0f;
    }
}

.navbar-header {
    a .rqicon{
        font-size: 24px;
    }
    .navbar-mobile-handler{
        display: none;
    }
    a {
		@media (max-width: @screen-xs-max) {
			font-size: 16px;
			margin-right: 10px;
		}

        position: relative;
        display: inline-block;
        color: #000;
        text-align: center;
        padding: 8px 20px 5px;
        border-bottom: solid 3px #fff;
		&:first-child {
			margin-left: 0px;
		}

		&:last-child {
			margin-right: 0px;
		}

        i {
            margin-right:10px;
        }
        &:hover {
            color:#69f;
        }

    }

    a:before{
        content: "";
        position: relative;
        display: inline-block;
        color: #000;
        border-right: solid 1px #ccc;
        height: 20px;
        top: 5px;
        right: 21px;
    }

    a:first-of-type:before{
        display: none;
    }

	.actived {
		color: #69f;
        border-bottom: solid 3px #69f;
	}
}

@media (max-width: @screen-xs-max) {
    .navbar-header{
		.menu-mobile{
			font-size: 24px;
		    top: 6px;
		    right: 14px;
		    position: absolute;
		}
        a{
            display: none;
            text-align: left;
            height: 35px !important;
            &:before{
                display: none;
            }
        }

        a.actived{
            display: inline-block;
            border-bottom: none;
			margin-top: 5px;
        }

        .navbar-mobile-handler{
            display: inline-block;
            font-size: 16px;
            color: #000;
            line-height: 15px;
            padding: 0 20px 0 10px;
            border-right: solid 1px #000;
            margin: 8px 0;
			vertical-align: bottom;
        }
    }

    .navbar-header.actived{
        a{
            display: block !important;
            margin-left: 62px;
        }

        #new_post_mobile{
            display: none !important;
        }

        .navbar-mobile-handler{
			border-bottom: solid 1px #000;
			border-right: none;
		    display: block;
		    margin-right: 25px;
			padding: 9px 10px;
        }
    }
}

.navbar-header-flag {
	@media (max-width: @screen-xs-max) {
        display: none;
	}

	@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
		margin-left: 6px;
	}

    position: relative;
    width: 100%;
    border-bottom: solid 3px #69f;
    bottom: -16px;
    display: none;
}

.login-in-menu-header {
	display: none;
}

header #logo {
	background-size: contain;
	display: inline-block;

	@media (max-width: @screen-sm-max) {
		height: 32px;
		width: 32px;
		margin-top: 14px;
		background-image: url(//static.ricequant.com/assets/img/mobile-logo.18cdebe1d2930355.png);
	}

	@media (min-width: @screen-sm-min) {
		height: 40px;
		width: 150px;
		margin-top: 10px;
		background-image: url(https://cdn.ricequant.com/assets/img/logo-white.44f5033da6c93ac8.png);

	}
}

#new_post_mobile {
	@media (max-width: @screen-xs-max) {
		display: inline-block;;
	    background: #69f;
	    color: #fff;
	    margin: 10px 0 20px;
	    line-height: 30px;
	    padding: 0 11px;
	    font-size: 13px;
	    height: 30px;
	}

	@media (min-width: @screen-sm-min) {
		display: none;
	}
}

#logged-out-menu {
    line-height: 32px;
    li {
        display: inline-block;
        padding: 0 30px;
        margin: 0 10px;
        .border-radius(3px);
        cursor: pointer;
        a:hover {
            color: #fff;
        }
        &:first-of-type {
            background-color: #5584ff;
        }
        &:last-of-type {
            background-color: transparent;
            border: 1px solid hsla(0,0%,100%,.3);
            &:hover {
                background-color: hsla(0,0%,100%,.4);
            }
        }
    }
}
