﻿@import '../default.less';
@import '../mixins.less';
//DON'T ADD IMPORTS, ABOVE ARE TO MAKE INTELLISENSE WORK

/* @reference "../shared/jquery-ui.css" */
@dsViewerHeight: 614px;
@pageHeaderColor: #e6e6e6;
@pageActionsColor: #f0f0f0;
@slate-blue: #6993a9;
@sky: #c8d7df;
@royal-blue: #1e77bd;
@white-smoke:#f7f7f7;

div.dsbrowser#site-main
{
    padding: 0 0 15px 0;

    div#page-title
    {
        width: 910px;
        margin-bottom: 0px;
        height: 39px;
    }

    div#page-header
    {
        position: relative;
        overflow: hidden;
        background-color: @pageHeaderColor;
        background-image: url(@page-header-background);
        min-height: 60px;
        margin-top: 0;
        height: auto;
    }

    div#page-header-title
    {
        font-family: @title-font;
        font-size: 18pt;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0 112px 20px 45px;
        line-height: 28px;
        vertical-align: middle;
        white-space: nowrap;
        position: relative;
        top: 10px;


        html[dir='rtl'] &
        {
            margin: 0 45px 5px 112px;
        }

        h1
        {
            line-height: 30px;
        }
    }

    a#page-pin
    {
        display: table-cell;
        vertical-align: middle;
        position: absolute;
        left: 15px;
        top: 15px;

        html[dir='rtl'] &
        {
            left: auto;
            right: 15px;
        }
    }

    div#page-header-source, div#bot-page-uploaded-user
    {
        font-family: @text-font;
        font-size: 9.5pt;
        color: #4b4b4b;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 10px 112px 5px 45px;

        html[dir='rtl'] &
        {
            margin: 15px 45px 5px 112px;
        }
    }

    div#bot-view-timeseries-list
    {
        margin: 10px 15px 10px 15px;
    }

    div#page-header-source.light a
    {
        color: #fff;
    }

    div#page-header-source.light span
    {
        color: #fff;
    }

    div#page-header-source a
    {
        color: #4b4b4b;
    }

    #latest-update
    {
        margin: 15px;
        font: 10pt @title-font;
        clear: both;

        .legend
        {
            font-weight: bold;
        }

        .update-notes
        {
            margin: 3px 0;
        }
    }

    div.dataset-list-custom-field
    {
        font: 10pt @title-font;
        margin: 0px 12px;
        padding: 3px;

        div.formatted-field
        {
            display: inline-table;

            p:first-child
            {
                margin-top: 0px;
            }

            p:last-child
            {
                margin-bottom: 0px;
            }
        }
    }

    div#page-themes
    {
        margin: 10px 13px 0 0;
        position: relative;
        top: 2px;
        float: right;

        html[dir='rtl'] &
        {
            margin-left: 11px;
            float: left;
        }

        div.disable-theme-selector
        {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
        }
    }

    body.fullscreen &
    {
        div#page-header
        {
            width: 100%;
        }

        div#page-actions
        {
            width: 100%;
        }
    }

    #premium-helper
    {
        position: absolute;
        z-index: 1;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;

        .popup
        {
            text-align: center;
            width: 420px;
            background-color: #ffffff;
            box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.16);
            position: absolute;
            left: ~"calc(50% - 240px)";
            top: ~"calc(50% - 205px)";
            color: #292929;

            h1
            {
                margin: 30px auto 0;
                width: 312px;
                padding: 0;
                font-size: 18px;
                font-weight: bold;
                line-height: 24px;
                color: @slate-blue;
                text-transform: uppercase;
            }

            p
            {
                font-size: 16px;
                line-height: 24px;
                margin: 19px auto 16px;
            }

            .list-available-feature
            {
                padding: 15px 0;
                margin: 0 auto;
                overflow: hidden;
                width: 360px;
                height: 110px;
                border-top: 1px solid rgba(0,0,0,.16);
                border-bottom: 1px solid rgba(0,0,0,.16);
                display: table;
                border-spacing: 3px;

                .list-row
                {
                    display: table-row;

                    .list-cell
                    {
                        display: table-cell;
                        width: 180px;
                        box-sizing: border-box;
                        .padding-left-right(0, 0);
                        text-align: left;
                        font-size: 14px;
                        line-height: 18px;
                        color: #292929;
                        vertical-align: middle;
                        padding: 5px;

                        html[dir='rtl'] &
                        {
                            .padding-left-right(0, 0);
                            text-align: right;
                        }

                        a
                        {
                            display: block;
                            width: 200px;
                            height: 100%;
                            color: black;
                            outline: none;
                        }

                        a:hover
                        {
                            color: @royal-blue;
                        }

                        span
                        {
                            vertical-align: middle;
                            display: table-cell;

                            &.text
                            {
                                padding-left: 5px;

                                html[dir='rtl'] &
                                {
                                    .padding-left-right(0, 5px);
                                }
                            }
                        }

                        .ico
                        {
                            width: 32px;
                            height: 32px;
                            background-repeat: no-repeat;
                            background-position: center;
                            background-size: contain;

                            &.export
                            {
                                background-image: url('/img/v7/dsviewer/ico-download.svg');
                            }

                            &.follow
                            {
                                background-image: url('/img/v7/dsviewer/ico-follow.svg');
                            }

                            &.browse
                            {
                                background-image: url('/img/v7/dsviewer/ico-history.svg');
                            }

                            &.dashboards
                            {
                                background-image: url('/img/v7/dsviewer/ico-dashboard.svg');
                            }
                        }

                        &:hover
                        {
                            background-color: @white-smoke;
                            cursor: pointer;
                            color: @slate-blue;
                        }
                    }
                }
            }

            .go-premium
            {
                display: inline-block;
                width: auto;
                border-radius: 2px;
                margin: 20px auto 18px auto;
                font-size: 14px;
                font-weight: bold;
                padding: 12px 43px;
                box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24);
                text-decoration: none;
                text-transform: uppercase;

                &.authenticated
                {
                    margin-bottom: 24px;
                }
            }

            .subscriber
            {
                margin: 0 0 16px;
                font-size: 14px;
                line-height: 24px;

                a
                {
                    color: @royal-blue;
                    text-decoration: none;
                }
            }
        }
    }

    div#page-tags
    {
        width: auto;
        .margin-left-right(15px, 150px);

        html[dir=rtl] &
        {
            .margin-left-right(150px, 15px);
        }

        #tag-image
        {
            display: block;
        }

        #page-tags-links a
        {
            font-size: 9.5pt;
        }

        .edit-tags, .cancel-tags, .save-tags
        {
            border-bottom: 1px dashed;
        }
    }
}

.dsbrowser div#page-actions
{
	z-index: 3 !important;
	background: @pageActionsColor;
	height: 32px;

	.explore-gp-form
	{
		display: none;
	}

	.options-menu
	{
		.open-in-gp
		{
			display: none;
		}
	}

	a
	{
		&.command, &.open-in-gp
		{
			text-decoration: underline;
			font-size: 13px;
			color: #000;
			outline: none;
			font-weight: normal;
			margin: 0 10px 0 0;
			
			html[dir='rtl'] &
			{
				margin: 0 0 0 10px;
			}
		}
	}

	.more-actions-container
	{
		margin-left: -5px;
		font-size: 13px;

		html[dir='rtl'] &
		{
			margin-right: -5px;
		}

		.options
		{
			font-weight: normal;
			.text
			{
				margin-bottom: 2px;
			}

			.arrow
			{
				background: url(/img/v2/shared/ico_triangular.png) no-repeat right;
				height: 17px;
				width: 15px;
				margin: 0 0 2px 0;
				float: none;
		}

			&.active
			{
				background-color: #f5f5f5;
				box-shadow: 0px -2px 2px -2px rgba(0,0,0,0.2), -2px 0 2px -2px rgba(0,0,0,0.2), 2px 0 2px -2px rgba(0,0,0,0.2);
	}
		}

		.options-menu
		{
			top: 32px;
			background: #f5f5f5;
			padding: 0 0 5px;

			&::before
			{
				display: none;
			}

			.command
			{
				font-size: 13px;
				padding: 5px;
				background: #f5f5f5;
				height: auto;
				font-family: @text-font;

				&:hover
				{
					background: #049be7;
					color: #fff;
				}
			}
		}
	}

	#page-sharing
	{
		width: 30px;
		height: 32px;
		bottom: 3px;
		padding-left: 6px;

		html[dir='rtl'] &
		{
			.padding-left-right(0, 6px);
		}

		span.sharing-status
		{
			width: 16px;
			height: 17px;
			background-image: url('/img/v2/shared/icons_share.png');
			background-position: 64px 0px;

			&.private
			{
				width: 15px;
				background-position: 48px 0px;
	}

			&.friends
			{
				width: 15px;
				background-position: 32px 0px;
			}
		}

		span.arrow
		{
			background-image: url('/img/v2/shared/ico_triangular.png');
			background-position: center;
			background-repeat: no-repeat;
			height: 17px;
			width: 10px;
			margin: 0;
		}
	}

	div#sharing-menu
	{
		top: 5px;
		left: 6px;
		min-width: 161px;

		html[dir='rtl'] &
		{
			right: 6px;
			left: auto;
		}

		ul
		{
			min-width: 159px;
			background: #f5f5f5;
			padding: 0 0 5px;
			line-height: 1.231;

			#site-holder.v7 &
			{
				background: #f7f7f7;
			}

			li
			{
				padding: 7px 7px 7px 0px;
				font-family: @text-font;

				html[dir='rtl'] &
				{
					.padding-left-right(7px, 0);
				}

				&:hover
				{
					background-color: #049be7;
					color: white;
				}

				span
				{
					background-image: url('/img/v2/shared/icons_share.png');
					background-position: 0px 0px;
					width: 16px;
					height: 17px;
					margin: 0 9px;
				}

				&.public span
				{
					background-position: 64px 0px;
					width: 16px;
				}

				&.private span
				{
					background-position: 48px 0px;
					width: 15px;
				}

				&.sh-options span
				{
					background-position: 16px 0px;
				}
			}
		}
	}
	
	.share-div
	{
		display: inline-block;
		width: 24px;
		height: 21px;
		position: relative;
		margin-right: 10px;

		html[dir=rtl] &
		{
			.margin-left-right(10px, 0);
		}

		.share-button
		{
			width: 24px;
			height: 24px;
			background: url(/img/v7/action-bar/ico-share.svg?v=2);
			position: absolute;
			top: 5px;
			margin: 0;
		}
	}
}

div#dataset-action-bar
{
	span#verify-shareoptions-seperator
	{
		margin-right:10px;

		html[dir='rtl'] &
		{
			.margin-left-right(10px, 0);
		}
	}

	html[dir='rtl'] &
	{
		margin-right: 0px !important;
	}
}

html[dir='rtl'] div#download-dialog label span
{
	direction: ltr;
	unicode-bidi: embed;
}

div#title
{
	padding-left: 15px;
	padding-top: 10px;
	display: none;

	html[dir='rtl'] &
	{
		.padding-left-right(0, 15px);
	}
}

.ui-accordion-content.dataset-content
{
	height: 354px;
	margin: 0;
	padding: 0;
}


div#login-warning-message
{
	float: right;
	margin-right: 15px;
	color: #1a3c58;
	font-size: 12px;

	html[dir='rtl'] &
	{
		float: left;
	}
}

div.metadata-block.source
{
	.fa-exclamation
	{
		color: #d10500;
	}

	.fa-check
	{
		color: #60bb00;
	}
}

div#verification-status, div#extendedcounttables-status
{
	display:inline;
	font-family : @text-font;
	font-size : 8pt;
	position: relative;
	bottom: 3px;

	div#verified-pending-text
	{
		color: #D26400;
		line-height: 9px;

		span:first-child
		{
			display: block;
		}
	}

	.verification-text
	{
		vertical-align: middle;
		display: inline-block;
		padding-left: 5px;
		width: auto;
	}

	span 
	{
		&#verified-text
		{
			color: #0a5000;
			font-weight: bold;
		}

		&.not-verified-text
		{
			color: #5a4646;
		}

		&.verification-img
		{
			display: inline-block;
			height: 7px;
			background-image: url('/img/v2/dsbrowser/ico_verify_status.png');
			vertical-align: middle;
		}

		&.verified-img
		{
			width: 8px;
			background-position: 0px 0px;
		}

		&.not-verified-img
		{
			width: 7px;
			background-position: 15px 0px;
		}

		&.verified-pending-img
		{
			width: 7px;
			background-position: 7px 0px;
		}

		&.verification-separator
		{
			display:inline-block;
			width:2px;
			height:100%;
			margin-right:15px;

			html[dir='rtl'] &
			{
				.margin-left-right(15px, 0);
			}
		}

		&#verified-separator
		{
			background-color: #7da078;
		}

		&.not-verified-separator
		{
			background-color: #a59b9b;
		}

		&#verified-pending-separator
		{
			background-color: #e1aa78;
		}
	}
}

div#verification-reject-dialog
{
	display: none;

	div
	{
		border-top: 1px solid #aaa;
		padding: 8px 0;

		label
		{
			float: left;
		}

		label#verification-warning-reason
		{
			color : red;
			display:none;
		}

		textarea
		{
			resize: none;
			float: left;
			width: 430px;
			height: 70px;
			margin: 8px 0px;
		}
	}
}

div#submit-verification-confirmation
{
	display: none;
}

#report-update-dialog, #report-update-completed-dialog
{
	margin-bottom: 1em;
	display: none;

	label
	{
		display: block;
		font-weight: bold;
		margin-top: 1em;
	}

	input
	{
		padding: 5px;
	}

	.error
	{
		color: red;
		margin-top: .5em;
	}
}

// index1.css

div#gadget-title
{
	height: 20px;
	max-width: 850px;
	margin: 10px 0 0 10px;
	font-family: Trebuchet MS;
	font-weight: normal;
	font-size: 12pt;
	position: relative;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	float: left;

	html[dir='rtl'] &
	{
		float: right;
		margin: 10px 10px 0 0px;

		span
		{
			direction: ltr;
			unicode-bidi: embed;
		}
	}
}

div#dataset-viewer
{
	position: relative;
	width: 100%;
	top: 10px;
	bottom: 0;
	height: @dsViewerHeight;
	border-bottom: 1px solid #e5e4e4;
	border-top: 1px solid #e5e4e4;

	.views-list
	{
		height: 580px;
	}
}

.natural-search-result-item
{
	margin: 5px 0 5px 10px;
	font-size: 9pt;

	html[dir='rtl'] &
	{
		margin: 5px 10px 5px 0px;
	}
}

#natural-query
{
	position: absolute;
	top: 370px;
	left: 55px;

	#query
	{
		width: 370px;
		float: left;
		font-size: 9pt;
		margin: 0 15px 0 0;
		padding: 0 0 0 5px;
		height: 24px;
		border: 1px solid #aaa;
		box-sizing: border-box;

		html[dir='rtl'] &
		{
			float: right;
			margin: 0 0 0 15px;
			padding: 0 5px 0 0;
		}
	}

	.button-wrapper
	{
		float: right;

		span#send
		{
			font-size: 9pt;
			box-sizing: border-box;
			height: 24px;
		}
	}
}

#alt-results-container
{
	display: none;
	height: 420px;
    margin-top: 105px;
	overflow-y: auto;
}

#metadata
{
	margin: 30px 15px 0 15px;
	font: 10pt @title-font;

	.col1
	{
		float: left;
		min-width: 330px;
		margin-right: 10px;
		word-wrap: break-word;

		html[dir=rtl] &
		{
			float: right;
			.margin-left-right(10px, 0);
		}
	}

	.col2
	{
		float: left;
		max-width: 570px;
		word-wrap: break-word;

		html[dir=rtl] &
		{
			float: right;
		}
	}

	.metadata-block
	{
		margin: 0 auto 15px;
		
		h4
		{
			margin: 0 auto;
		}

		a
		{
			color: @slate-blue;
		}

		&.description
		{
			margin: 10px auto;
			overflow-y: auto;

			p
			{
				margin: 0px;
			}
		}

		&.dataset-frequency,
		&.publication-date,
		&.dataset-versions,
		&.date-range
		{
			max-width: 330px;
		}

		&.dataset-versions
		{
			margin-top: 15px;

			p
			{
				margin: 0;
			}

			.versions
			{
				font-weight: bold;
			}
		} 

		&.uploaded-by
		{
			display: none;
		}
	}

	div[class$=-date]
	{
		margin: 0;
		min-height: 0;

		h4
		{
			display: inline-block;
			margin-right: 10px;

			html[dir=rtl] &
			{
				.margin-left-right(10px, 0);
			}
		}
	}
}

#yodatai-description
{
	display: none;
	font-size: 14px;
	margin: 0;

	.wrapper
	{
		padding: 15px;
		border-bottom: 1px solid #e5e4e4;
	}

	&.yodatai-visible
	{
		display: block;
	}
}

.with-media#site-holder
{
	div.dsbrowser#site-main div#page-themes
	{
		margin: 13px 0 0 15px;
		position: static;
		float: left;

		html[dir=rtl] &
		{
			margin: 13px 15px 0 0;
			float: right;
		}

		.theme-picker-label
		{
			float: left;

			html[dir=rtl] &
			{
				float: right;
			}
		}

		.disable-theme-selector
		{
			position: relative;
			width: 20px;
			height: 20px;
			float: left;
			left: -20px;

			html[dir=rtl] &
			{
				float: right;
				left: initial;
				right: -20px;
			}
		}
	}

	#site-main
	{
		#page-header
		{
			width: 100%;
			background-color: white;

			body.fullscreen & // do not override portals color scheme
			{
				background-color: @pageHeaderColor;
			}

			.page-views-pins
			{
				float: right;
				margin-top: -30px;
				.margin-left-right(0, 15px);
				font-size: .9em;

				span#page-views
				{
					display: inline-block;
					width: 16.5px;
					height: 15px;
					background-image: url('/img/v2/page/page-toolbar-icons.png');
					background-position: 0px 0px;
				}

				span#page-pins
				{
					display: inline-block;
					width: 16px;
					height: 15px;
					background-image: url('/img/v2/page/page-toolbar-icons.png?v=2');
					background-position: 82px 0px;
				}

				html[dir=rtl] &
				{
					float: left;
					.margin-left-right(15px, 0);
				}
			}
		}

		#page-actions
		{
			width: 100%;
			padding: 5px 0;
			background: #F0F9FE;

			body.fullscreen & // do not override portals color scheme
			{
				background-color: @pageActionsColor;
			}

			#dataset-action-bar
			{
				#embed, .open-in-gp
				{
					.margin-left-right(20px, 0);
					font-size: 13px;
					html[dir=rtl] &
					{
						.margin-left-right(0, 20px);
					}
				}

				.explore-gp-form
				{
					display: none;
				}

				#page-sharing
				{
					bottom: 4px;
					padding-left: 9px;
					.margin-left-right(0, 10px);

					html[dir=rtl] &
					{
						.padding-left-right(0, 9px);
						.margin-left-right(10px, 0);
					}
				}

				.more-actions-container
				{
					margin-left: 15px;
					html[dir='rtl'] &
					{
						.margin-left-right(0,15px);
					}
				}

				span.separator
				{
					display: none;
				}

				.export
				{
					display: inline-block;
				}

				.export,
				.save-view
				{
					cursor: pointer;
					text-decoration: underline;
					.margin-left-right(20px, 0);

					&.disabled
					{
						color: #999;
						text-decoration: none;
						cursor: default;
					}

					em
					{
						display: none;
					}

					html[dir=rtl] &
					{
						.margin-left-right(0, 20px);
					}
				}

				.options-menu
				{
					.open-in-gp
					{
						display: none;
					}
				}

				.share-div
				{
					margin: 0;
			}

		}
		}

		#gadget-title
		{
			float: left;
			min-width: 740px;
			max-width: 740px;
			height: 26px;
			
			span
			{
				vertical-align: middle;
			}

			html[dir=rtl] &
			{
				float: right;
			}
		}
	}

	div#verification-status span
	{
		&#verified-text
		{
			color: #328c32;
			font-weight: bold;
			font-family: @title-font;
		}

		&#verified-separator
		{
			display: none;
		}
	}

	#site-footer-copyright
	{
		position: relative;
		clear: both;
	}

	div#dataset-warning-message,
	div#dataset-verification-message,
	div#private-dataset-warning-message
	{
		margin: 8px 15px;
	}

	div#verification-status
	{
		.margin-left-right(0, 20px);

		html[dir=rtl] &
		{
			.margin-left-right(20px, 0);
		}
	}

	@media all and (min-width: 1440px)
	{
		#site-header .wrapper
		{
			margin: 0;
			padding: 0 30px;
			width: auto;
			min-width: 940px;
		}

		#site-main
		{
			width: 100%;
			-moz-box-sizing: border-box;
			-webkit-box-sizing: border-box;
			box-sizing: border-box;

			&.top-margin
			{
				margin-top: 0;
				border-top: 1px solid #eee;
			}

			#dataset-viewer
			{
				width: 100%;
				float: left;
				position: static;
				.margin-left-right(0, -300px);

				#explore-dataset
				{
					width: auto;
					border-right: 1px solid #e5e4e4;
					.margin-left-right(0, 300px);

					html[dir=rtl] &
					{
						border-right: 0;
						border-left: 1px solid #e5e4e4;
						.margin-left-right(300px, 0);
					}
				}

				html[dir=rtl] &
				{
					float: right;
					.margin-left-right(-300px, 0);
				}
			}

			@marginPadding: 10px;
			@metadataWidth: 290px;

			#metadata
			{
				float: right;
				height: 605px;
				width: @metadataWidth;
				margin: 0;
				overflow: hidden;
				padding-top: @marginPadding;
				.padding-left-right(@marginPadding, 0);

				&.yodatai-visible
				{
					margin-top: -@dsViewerHeight - 2;
				}

				.col1, .col2
				{
					min-width: @metadataWidth - @marginPadding;
					width: @metadataWidth - @marginPadding;
					word-wrap: break-word;
				}

				.col2
				{
					margin-top: @marginPadding;
				}

				html[dir=rtl] &
				{
					float: left;
					.padding-left-right(0, @marginPadding);
				}

				.description
				{
					margin-top: 0;
					margin-bottom: 0;
					max-height: 230px;
					overflow: hidden;
					overflow-y: auto;
					.padding-left-right(0, 15px);

					html[dir=rtl] &
					{
						.padding-left-right(15px, 0);
					}
				}
			}

			#yodatai-description
			{
				width: ~"calc(100% - 300px)"; //@marginPadding + @metadataWidth
				box-sizing: border-box;

				&.yodatai-visible
				{
					display: inline-block;
				}

				.wrapper
				{
					margin-right: -@marginPadding - @metadataWidth;
					border-bottom: 1px solid #e5e4e4;

					html[dir=rtl] &
					{
						.margin-left-right(-300px, 0);
					}
				}
			}
		}

		.site-language.flags ul
		{
			right: 0;

			html[dir=rtl] &
			{
				left: 0;
				right: auto;
			}
		}

		.user-info-dlg
		{
			width: 200px;
			right: 15px;

			html[dir=rtl] &
			{
				right: auto;
				left: 15px;
			}
		}

		div#page-tags
		{
			width: auto;
			.margin-left-right(15px, 150px);
			
			html[dir=rtl] &
			{
				.margin-left-right(150px, 15px);
			}

			#tag-image 
			{
				display: block;
		}
		}

		div#page-tags-links ul
		{
			max-width: 1200px;
		}

		#natural-query
		{
			position: relative;
			top: 300px;
			left: auto;
			text-align: center;

			#query
			{
				width: 370px;
				margin-right: 15px;
				float: none;

				html[dir='rtl'] &
				{
					float: none;
				}
			}

			.button-wrapper
			{
				float: none;
				display: inline;

				span#send
				{
					padding: 5px 10px;
				}
			}
		}
	}
}

@media all and (min-width: 1440px)
{
	.premium-popup div.premium-overlay.source
	{
		width: 100%;
		left: 0 !important;
		right: 0;
	}
}

