@import '../default.less';
@import '../mixins.less';
//DON'T ADD IMPORTS, ABOVE ARE TO MAKE INTELLISENSE WORK

.naked-list()
{
	list-style-type: none;
	padding: 0;
	margin-top: 0;
}

@grey-font: #8c8c8c;
@white-smoke: #f7f7f7;
@gainsboro: #e2e2e2;

div#site-holder.v7
{
	background-color: #f5f5f5;

	div#atlas
	{
		ul.indicator-column,
		ul.two-column
		{
			h3
			{
				font-size: 18px;
				text-transform: uppercase;
				font-weight: bold;
				color: #353d40;
			}

			a
			{
				color: #6993a9;
				text-decoration: none;
				font-size: 14px;
				font-family: @title-font;
			}
		}

		ul.two-column h3
		{
			text-transform: none;
		}

		ul li
		{
			background: none;
			.padding-left-right(0, 0);

			html[dir='rtl'] &
			{
				.padding-left-right(0, 0);
			}
		}

		.topic-tabs
		{
			li
			{
				font-size: 18px;
				display: inline-block;
				text-transform: uppercase;
				.margin-left-right(0, 20px);

				html[dir='rtl'] &
				{
					.margin-left-right(20px, 0);
				}
			}
		}
	}
}

body.fullscreen #site-holder div#site-main
{
	width: 940px;
}

div.atlas-index-container
{
	overflow: hidden;
}

div#atlas-header ul
{
	.naked-list;

	html[dir='rtl'] &
	{
		float: right;
	}
}

div#g20-countries
{
	&:after
	{
		clear: both;
		content: "";
		display: block;
	}

	ul li.g-country
	{
		width: 92px;
		height: 78px;
		margin: 0 21px 10px 0;
		float: left;
		text-align: center;

		html[dir='rtl'] &
		{
			margin: 0 0px 10px 21px;
			float: right;
		}

		a
		{
			display: inline-block;
			width: 100%;
			text-decoration: none;
			color: @grey-font;
			font-size: 9pt;

			&:hover
			{
				color: @accent-color;

				img, div.topic-img
				{
					border-color: @accent-color;
					box-shadow: 0 0 5px 1px @accent-color;
					opacity: 1;
				}
			}

			img, div.topic-img
			{
				display: block;
				width: 90px;
				height: 60px;
				border: 1px solid #f0f0f0;
				box-shadow: 0 0 5px 1px #f0f0f0;
				opacity: 0.8;
			}

			span
			{
				display: inline-block;
				white-space: nowrap;
				text-overflow: ellipsis;
				overflow: hidden;
				width: 90px;
			}

			p
			{
				margin-top: 4px;
			}

			div.topic-img
			{
				background: url("/img/v2/atlas/topics.png");

				&.crime
				{
					background-position: -90px 0;
				}

				&.defense
				{
					background-position: -180px 0;
				}

				&.demographics 
				{
					background-position: -270px 0;
				}

				&.economy
				{
					background-position: -360px 0;
				}

				&.education
				{
					background-position: -450px 0;
				}

				&.energy
				{
					background-position: -540px 0;
				}

				&.environment
				{
					background-position: -630px 0;
				}

				&.food
				{
					background-position: -720px 0;
				}

				&.health
				{
					background-position: -810px 0;
				}

				&.landuse
				{
					background-position: -900px 0;
				}

				&.poverty
				{
					background-position: -990px 0;
				}

				&.rankings
				{
					background-position: -1080px 0;
				}

				&.research
				{
					background-position: -1170px 0;
				}

				&.telecommunication
				{
					background-position: -1260px 0;
				}

				&.tourism
				{
					background-position: -1350px 0;
				}

				&.trade
				{
					background-position: -1440px 0;
				}

				&.transportation
				{
					background-position: -1530px 0;
				}

				&.water
				{
					background-position: -1620px 0;
				}
			}
		}
	}

	ul.sprites 
	{
		li.g-country
		{
			a 
			{
				div.pic
				{
					position: relative;
					width: 90px;
					height: 60px;
				}
				span
				{
					display: block;
					width: 90px;
					height: 60px;
					-moz-box-shadow: 0 0 5px 1px #f0f0f0;
					-webkit-box-shadow: 0 0 5px 1px #f0f0f0;
					box-shadow: 0 0 5px 1px #f0f0f0;
					.hires('/img/v2/atlas/top20');
					background-repeat: no-repeat;
					border: 1px solid #f0f0f0;
					opacity: .8;

					&.group
					{
						background-size: 90px 60px;

						&.highres
						{
							display: none;
							@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2ppx), only screen and (min-device-pixel-ratio: 2)
							{
								display: block;
								position: absolute;
								top: 0;
								left: 0;
							}
						}
					}

					&.ar { background-position: 0px }
					&.au { background-position: -91px }
					&.br { background-position: -182px }
					&.ca { background-position: -273px }
					&.cn { background-position: -364px }
					&.de { background-position: -455px }
					&.es { background-position: -546px }
					&.fr { background-position: -637px }
					&.gb { background-position: -728px }
					&.id { background-position: -819px }
					&.in { background-position: -910px }
					&.it { background-position: -1001px }
					&.jp { background-position: -1092px }
					&.kr { background-position: -1183px }
					&.mx { background-position: -1274px }
					&.ru { background-position: -1365px }
					&.wd { background-position: -1456px }
					&.us { background-position: -1547px }
					&.za { background-position: -1638px }
				}

				&:hover
				{
					span
					{
						border-color: @accent-color;
						-moz-box-shadow: 0 0 5px 1px @accent-color;
						-webkit-box-shadow: 0 0 5px 1px @accent-color;
						box-shadow: 0 0 5px 1px @accent-color;
						opacity: 1;
					}
				}
			}
		}
	}

	&.sources ul li.g-country a
	{
		span
		{
			border: none;
			box-shadow: none;
			display: block;
			width: 90px;
			height: 60px;
			.hires('//cdn.knoema.com/sources/sprites/sources');
			background-repeat: no-repeat;

			&.afdb { background-position:; }
			&.bp { background-position: -91px; }
			&.eia { background-position: -182px; }
			&.eurostat { background-position: -273px; }
			&.fao { background-position: -364px; }
			&.imf { background-position: -455px; }
			&.itf { background-position: -546px; }
			&.itu { background-position: -637px; }
			&.laborsta { background-position: -728px; }
			&.oecd { background-position: -819px; }
			&.uis { background-position: -910px; }
			&.unctad { background-position: -1001px; }
			&.undesa { background-position: -1092px; }
			&.unep { background-position: -1183px; }
			&.unsd { background-position: -1274px; }
			&.wb { background-position: -1365px; }
			&.wef { background-position: -1456px; }
			&.who { background-position: -1547px; }
			&.wsa { background-position: -1638px; }
			&.wto { background-position: -1729px; }
			&.wttc { background-position: -1820px; }
		}

		p
		{
			margin-top: 4px;
		}

		&:hover span
		{
			border: none;
			box-shadow: none;
		}
	}
}

div#atlas
{

    .highcharts-container
    {
        position: relative !important;
    }

    &.new ul.indicator-column:first-child
    {
        margin-right: 4em;

        html[dir='rtl'] &
        {
            .margin-left-right(4em, 0);
        }
    }

    ul
    {
        .naked-list;
    }

    h2
    {
        margin-bottom: 0;
        font-family: @title-font;
        font-weight: normal;
        font-size: 16pt;
        margin-top: 20px;

        span
        {
            direction: ltr;
            unicode-bidi: embed;
        }

        &.topic-title
        {
            margin-top: 0;
            margin-bottom: .5em;
            font-size: 22pt;
            font-weight: normal;
        }
    }

    h3
    {
        margin: 0;
        font-weight: normal;
        font-family: @title-font;
        font-size: 130%;

        span
        {
            direction: ltr;
            unicode-bidi: embed;
        }
    }

    h4
    {
        margin: 0;
        font-size: 1.4em;
    }

    h5
    {
        margin: 0;
        font-size: 1.1em;
    }

    a:hover
    {
        text-decoration: none;
    }

    .footnote-added a:hover
    {
        text-decoration: underline;
    }

    div.atlas-tab-content
    {
        display: none;
        overflow: hidden;

        html[dir='rtl'] &
        {
            overflow: visible;
        }

        &.active
        {
            display: block;

            .loading img
            {
                top: 250px !important;
            }
        }

        ul.two-column > li
        {
            padding: 0;
            background: none;
            margin-bottom: 1em;
            font-size: larger;
        }

        &.profiles, &.sources, &.datasets, &.topics, &.project
        {
            border-bottom: 1px dotted #ccc;
            padding-left: 30px;
            margin-left: -30px;

            html[dir='rtl'] &
            {
                padding-left: 0;
                margin-left: 0;
                padding-right: 30px;
                margin-right: -30px;
            }

            div.container
            {
                min-height: 500px;
                overflow: auto;
                padding-left: .5em;

                html[dir='rtl'] &
                {
                    .padding-left-right(0, .5em);
                }

                &.dsbrowser2
                {
                    position: static;

                    li.letter
                    {
                        padding-top: 5px;
                    }

                    img
                    {
                        top: 1em;
                    }

                    div.dataset-result-item
                    {
                        margin-top: -7px;

                        html[dir='rtl'] &
                        {
                            text-align: right;
                        }

                        div.result-title-with-arrow
                        {
                            padding-left: 2em;
                            width: 96%;

                            a.dataset-result-title
                            {
                                width: 560px;
                            }

                            span.dataset-result-arrow
                            {
                                display: inline-block;
                                background-image: url('/img/v2/dsbrowser/arrows-datasets.png');
                                width: 9px;
                                height: 9px;
                                min-width: 0;
                                top: 12px;
                                left: 10px;
                                position: absolute;
                                cursor: pointer;
                            }

                            a.dataset-pin
                            {
                                position: absolute;
                                right: 10px;
                                top: 9px;
                                display: none;

                                &.pinned
                                {
                                    span
                                    {
                                        background: url('/img/v2/dsbrowser/pin-unpin.png') 0 0;
                                        height: 16px;
                                    }
                                }

                                &.unpinned
                                {
                                    span
                                    {
                                        background: url('/img/v2/dsbrowser/pin-unpin.png') 0 15px;
                                        height: 15px;
                                    }
                                }

                                span
                                {
                                    width: 17px;
                                    display: inline-block;
                                }

                                html[dir='rtl'] &
                                {
                                    right: auto;
                                    left: -30px;
                                }
                            }

                            &.active
                            {
                                span.dataset-result-arrow
                                {
                                    background-position: 0px -18px;
                                }

                                a.dataset-pin
                                {
                                    display: inline-block;
                                }

                                span
                                {
                                    background-color: white;
                                }
                            }

                            &:hover
                            {
                                a.dataset-pin
                                {
                                    display: inline-block;
                                }

                                span
                                {
                                    background-color: #919c9f;
                                }
                            }

                            html[dir='rtl'] &
                            {
                                //padding-left: 0;
                                padding-right: 2em;

                                &:after
                                {
                                    content: "";
                                    display: block;
                                    clear: both;
                                }

                                span.dataset-result-arrow
                                {
                                    left: auto;
                                    right: 10px;
                                }
                            }
                        }

                        div.dataset-result-preview
                        {
                            div
                            {
                                display: block;

                                &.owner
                                {
                                    display: none;
                                }

                                span
                                {
                                    float: none;
                                    color: #1a3c58;
                                }
                            }

                            a.select-dataset
                            {
                                padding-left: 12px;
                            }

                            div.description
                            {
                                font-weight: normal;
                            }
                        }
                    }

                    a
                    {
                        position: static;
                        display: inline-block;
                        padding-left: 0;
                        text-indent: 0;
                        font-weight: normal;

                        &:hover
                        {
                            text-decoration: none;
                        }
                    }
                }

                ul li
                {
                    &.letter
                    {
                        overflow: hidden;
                    }

                    span
                    {
                        float: left;
                        font-weight: bold;
                        color: @grey-font;
                        position: relative;
                        z-index: 1;
                        background: white;
                        min-width: 1em;

                        html[dir='rtl'] &
                        {
                            float: right;

                            &:before
                            {
                                content: " ";
                                margin-left: 5px;
                            }
                        }

                        &.count
                        {
                            float: none;
                        }
                    }

                    ul
                    {
                        margin-left: 2.5em;
                        padding-top: 1px;
                        list-style-position: outside;

                        html[dir='rtl'] &
                        {
                            margin-right: 2.5em;
                        }

                        li
                        {
                            font-weight: bold;
                            font-size: .9em;
                            margin-bottom: .5em;

                            img
                            {
                                float: left;
                                position: relative;
                                left: -2.5em;
                                top: .5em;
                            }

                            a
                            {
                                text-decoration: none;

                                &:hover
                                {
                                    text-decoration: underline;
                                }
                            }

                            html[dir='rtl'] &
                            {
                                &:after
                                {
                                    clear: both;
                                    content: "";
                                    display: block;
                                }

                                img
                                {
                                    right: -2.5em;
                                    float: right;
                                }

                                a
                                {
                                    float: right;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    div#letters
    {
        background-color: whiteSmoke;
        padding: 5px 0 5px 10px;
        font-size: 9pt;

        html[dir='rtl'] &
        {
            padding: 5px 10px 5px 0px;
        }

        a
        {
            border-bottom: 1px dotted @accent-color;
            text-decoration: none;
            color: @accent-color;
            display: inline-block;
            margin-right: .2em;
        }
    }

    div.filter-textarea,
    div.search-filter-textarea
    {
        margin: .5em 0;
        white-space: nowrap;
        padding-right: 2px;
        height: 25px;

        html[dir='rtl'] &
        {
            padding-left: 2px;
            padding-right: 0;
        }

        input[type="text"]
        {
            width: 100%;
            margin-top: 6px;
            box-sizing: border-box;
            height: 30px;
            background-color: @white-smoke;
            border: 1px solid @gainsboro;
            padding: 0 5px;

            html[dir='rtl'] &
            {
                float: right;
            }
        }
    }

    #hash-commodities
    {
        width: 920px;

        html[dir='rtl'] &
        {
            margin-right: -10px;
            float: right;
        }

        ul.indicator-column:first-child
        {
            .margin-left-right(0, 0);
        }
    }

    .region-overview
    {
        #hash-commodities
        {
            width: 680px;
        }
    }

    ul.indicator-column
    {
        float: left;
        width: 300px;
        font-family: @text-font;

        html[dir='rtl'] &
        {
            float: right;
        }

        & > li
        {
            margin-bottom: 30px;
        }

        h3
        {
            display: inline;
            color: #464646;
            font-size: 105%;
        }

        a
        {
            color: @accent-color;
            text-decoration: underline;
            font-size: 90%;

            &:hover
            {
                text-decoration: none;
            }
        }

        ul
        {
            html[dir='rtl'] &
            {
                padding-right: 5px;
            }

            li
            {
                background: url(/img/v2/dsbrowser/gray-point.png) no-repeat 5px center;
                padding-left: 15px;
                line-height: 150%;

                html[dir='rtl'] &
                {
                    background-position: right;
                    .padding-left-right(0, 15px);
                    direction: ltr;
                    text-align: right;
                }
            }
        }
    }

    ul.two-column
    {
        font-family: @text-font;
        font-size: smaller;
        float: left;
        width: 300px;

        html[dir='rtl'] &
        {
            float: right;
        }

        h3
        {
            display: inline;
            color: #464646;
            font-size: 105%;
        }

        li
        {
            background: url(/img/v2/dsbrowser/gray-point.png) no-repeat 5px center;
            padding-left: 15px;
            line-height: 150%;

            html[dir='rtl'] &
            {
                .padding-left-right(0, 15px);
                background-position: right;
            }
        }

        a
        {
            color: @accent-color;
            text-decoration: underline;
            font-size: 90%;

            &:hover
            {
                text-decoration: none;
            }
        }
    }

    li.commodity-tile
    {
        margin: 0 10px 10px 0;
        float: left;

        html[dir='rtl'] &
        {
            float: right;
        }

        a
        {
            display: inline-block;
            width: 134px;
            height: 86px;
            background: #f0f0f0;
            font-family: @title-font;
            font-size: 18px;
            padding: 10px 20px 20px 20px;
            text-decoration: none;
            color: Black;
            position: relative;
            overflow: hidden;

            &:hover
            {
                background: @accent-color;
                color: white;
            }

            span
            {
                background: url(/img/v2/atlas/icons_commodities.png) no-repeat;
                width: 67px;
                height: 35px;
                display: inline-block;
                position: absolute;
                top: 60px;
                left: 88px;

                html[dir='rtl'] &
                {
                    right: 88px;
                }
            }
        }
    }

    & + div#page-comments
    {
        clear: both;
    }

    p.no-data
    {
        min-height: 600px;
    }

    table.knoema-table.collection-project a
    {
        color: @accent-color;

        &:visited, &:hover
        {
            color: @accent-color;
        }
    }
}

p.atlas-banner
{
	min-height: 45px;
	margin-top: 0;
	padding-top: 1em;
	font: 1.1em @title-font;
	font-weight: bold;
	border: 1px dotted @accent-color;
	text-align: center;

	a.button
	{
		margin-left: 1em;
		background-color: @accent-color;
		color: white;
		padding: 4px 12px;
		text-decoration: none;
		display: inline-block;
		font-weight: normal;
		font-size: smaller;
	}
}

div#atlas-tab-content div#home-box
{
	clear: left;
	padding: 0;
	margin-left: 5px;
	padding-left: -5px;

	html[dir='rtl'] &
	{
		clear: right;
	}

	div.grid-view
	{
		margin-top: 5px;
	}
}

div#indicator-preview-host
{
	width: 100%;
	min-height: 400px;
}

div#site-footer-links
{
	clear: left;
}

div#search-atlas-region div#atlas
{
	margin: 0 !important;
}

div#search-atlas-indicator div#atlas
{
	margin: 0 !important;
	overflow: hidden;
}

div#site-main
{
	div.install-button-wrapper
	{
		display: inline-block;
		float: right;

		html[dir='rtl'] &
		{
			float: left;
		}
	}
}

html div#site-holder div#site-main div#atlas-header
{
	margin-left: 0 !important;
	margin-right: 0 !important;
}

div.new#atlas div.atlas-tab-content div.container
{
	max-height: none;
}