﻿@import '../default.less';
@import '../mixins.less';
//DON'T ADD IMPORTS, ABOVE ARE TO MAKE INTELLISENSE WORK

@soft-green: #d1e9d1;
@charcoal: #353d40;
@slate-blue: #6993a9;
@off-white: #f0f0ec;
@sky: #c8d7df;
@mercury: #e2e2e2;
@alabaster: #f7f7f7;

.with-media#site-holder div.dsbrowser.v3#site-main #kn-social-bar {
    display: none !important;
}

.with-media#site-holder .v3#site-main div#page-header
{
	min-height: 40px;
	overflow: inherit;
	padding-top: 10px;
	margin-top: 0;
	height: auto;

	.cont
	{
		display: inline-block;
		position: absolute;
		right: 0;
		margin-top: -20px;
		z-index: 1;

		html[dir='rtl'] &
		{
			right: auto;
			left: 0;
		}

		div#verification-status
		{
			background-color: @off-white;
			border-radius: 9px;
			border: 1px solid @off-white;
			padding: 1px 13px 1px 0;
			position: static;
			vertical-align: middle;

			html[dir='rtl'] &
			{
				padding: 1px 0 1px 13px;
			}

			#verified-pending-text
			{
				color: @accent-color;
				font: 12px @title-font;

				span:first-child
				{
					display: inline;
				}
			}

			span
			{
				&#verified-text,
				&.not-verified-text
				{
					color: @accent-color;
					font: 12px @title-font;
					padding: 0;
				}

				&.verification-img
				{
					.hires('/img/v7/shared/ico_verify_status_v3');
					width: 18px;
					height: 18px;
				}

				&.verified-img
				{
					width: 18px;
					background-position: 0 0;
				}

				&.not-verified-img
				{
					width: 18px;
					background-position: -18px 0;
				}

				&.verified-pending-img
				{
					width: 18px;
					background-position: -36px 0;
				}
			}
		}

		div.page-views-pins
		{
			font-size: 12px;
			color: @accent-color;
			vertical-align: middle;

			& > span
			{
				vertical-align: middle;

				&#dataset-views
				{
					display: inline-block;
					cursor: pointer;
					.hires('/img/v7/shared/page-toolbar-icons-v3');
					background-position: -18px 0px;
					width: 18px;
					height: 18px;
				}

				&#page-views
				{
					.hires('/img/v7/shared/page-toolbar-icons-v3');
					background-position: 0 0;
					width: 18px;
					height: 18px;
				}

				&#page-pins
				{
					.hires('/img/v7/shared/page-toolbar-icons-v3');
					background-position: -36px 0px;
					width: 18px;
					height: 18px;
				}
			}

			b
			{
				display: inline-block;
				vertical-align: middle;
			}
		}

		#page-sharing
		{
			width: auto;
			height: 18px;
			position: relative;
			bottom: auto;
			.margin-left-right(0, 10px);
			vertical-align: middle;

			html[dir='rtl'] &
			{
				.margin-left-right(10px, 0);
			}

			.sharing-status
			{
				width: 18px;
				height: 18px;
				display: inline-block;
				.hires("/img/v7/shared/icons_share_v3");

				&.public
				{
					background-position: -18px 0;
				}

				&.private
				{
					background-position: -36px 0;
				}

				&.friends
				{
					background-position: -54px 0;
				}
			}

			.arrow
			{
				.hires('/img/v6/menu-arrowdown-blue');
				height: 18px;
				margin: 0;
			}
		}

		#sharing-menu
		{
			top: -3px;
			min-width: 161px;

			html[dir='rtl'] &
			{
				right: auto;
			}

			& > span
			{
				float: right;
				position: relative;
				top: -2px;
				background-color: white;

				html[dir='rtl'] &
				{
					float: left;
				}
			}

			ul
			{
				clear: both;
				line-height: 13px;
				background-color: white;
				min-width: 159px;
				padding: 0 0 5px;

				li
				{
					font-family: @title-font;
					font-size: 13px;
					padding: 5px 7px 10px 0;

					&.active
					{
						.hires('/img/v2/shared/ico_selected-v3', @backgroundSize: 18px 18px);
					}

					&:hover
					{
						background-color: #e5f1fa;
						color: black;
					}

					span
					{
						position: relative;
						top: 3px;
						.hires("/img/v7/shared/icons_share_v3");
						width: 18px;
						height: 18px;
						background-position: 0 0;
						margin: 0 9px;
					}

					&.public span
					{
						background-position: -18px 0px;
						width: 18px;
					}

					&.private span
					{
						background-position: -36px 0px;
						width: 18px;
					}

					&.sh-options span
					{
						background-position: -72px 0px;
					}
				}
			}
		}
	}
}

div.dsbrowser.v3#site-main
{
	div#page-header-title
	{
		margin-left: 30px;
		margin-bottom: 0;

		html[dir='rtl'] &
		{
			margin-right: 30px;
		}

		h1
		{
			font-size: 30px;
			line-height: 38px;
			font-weight: bold;
			color: @charcoal;
		}

		.small
		{
			font-size: 16px;
		}
	}

	.options-menu
	{
		display: none;
		position: absolute;
		right: -10px;
		z-index: 504; // enscroll in history tab
		min-width: 100px;
		background-color: white;
		box-shadow: 1px 5px 7px 1px rgba(0,0,0,0.2);
		border-radius: 4px;
		border-top-right-radius: 0;
		padding: 5px 0;

		html[dir='rtl'] &
		{
			border-top-right-radius: 4px;
			border-top-left-radius: 0;
			right: auto;
			left: -10px;
		}

		&.show
		{
			display: block;
		}

		hr
		{
			margin: 0;
			border-top-color: #D2E5F4;
		}

		a
		{
			display: block;
			line-height: 20px;
			text-decoration: none;
			padding: 5px 25px 5px 20px;
			font: normal 13px @title-font;
			color: #000;
			white-space: nowrap;

			html[dir='rtl'] &
			{
				padding: 5px 20px 5px 25px;
			}

			&:hover
			{
				background: @off-white;
				color: @accent-color;
			}

			&.pro
			{
				display: flex;
				justify-content: space-between;

				&::after
				{
					content: '';
					width: 19px;
					height: 12px;
					display: inline-block;
					background-repeat: no-repeat;
					.hires('/Img/v2/dsbrowser/v3/label-pro');
					margin-top: 2px;
					margin-left: 5px;
					margin-right: -15px;

					html[dir='rtl'] &
					{
						margin-left: -15px;
						margin-right: 5px;
					}
				}
			}

			&.hidden
			{
				display: none;
			}
		}
	}

	#verification-status
	{
		display: inline-block;
	}

	.timeseries-and-actions
	{
		margin-top: 15px;
		padding: 0 17px 0 17px;
		min-height: 77px;

		.timeseries
		{
			display: none;
			float: left;
			.margin-left-right(-15px, 0);
			margin-bottom: 10px;
			white-space: nowrap;
			text-overflow: ellipsis;
			overflow: hidden;
			max-width: 100%;
			font-size: 16px;
			font-family: @title-font;
			color: #8c8c8c;

			html[dir='rtl'] &
			{
				float: right;
				.margin-left-right(0, -15px);
			}

			.reset-selection
			{
				width: 16px;
				height: 16px;
				display: inline-block;
				position: relative;
				left: 5px;
				top: 6px;
				cursor: pointer;
				.hires('/Img/v7/dsviewer/ico-delete');
				padding: 4px;
				background-position: center;
				background-repeat: no-repeat;

				html[dir='rtl'] &
				{
					left: auto;
					right: 5px;
				}

				&.hidden
				{
					visibility: hidden;
				}
			}

			strong
			{
				color: @charcoal;
			}
		}

		.header-actions
		{
			background-color: @off-white;
			clear: both;
			width: 910px;
			padding: 5px 15px 5px 15px;
			.margin-left-right(-17px, 0);
			position: absolute;
			bottom: 0;

			html[dir='rtl'] &
			{
				.margin-left-right(0, -17px);
			}

			.action-bar
			{
				float: right;
				display: inline-block;

				html[dir='rtl'] &
				{
					float: left;
				}

				.save-view-ts
				{
					display: inline-block;
					height: 24px;
					line-height: 24px;
					text-decoration: none;
					color: @accent-color;
					font-size: 14px;
					.margin-left-right(5px, 0);
					vertical-align: middle;
					cursor: pointer;
					justify-content: space-between;
					padding-right: 5px;
					outline: none;

					&::after
					{
						content: '';
						width: 19px;
						height: 12px;
						display: inline-block;
						background-repeat: no-repeat;
						.hires('/Img/v2/dsbrowser/v3/label-pro');
						margin: 2px -5px 0 5px;

						html[dir='rtl'] &
						{
							margin: 2px 5px 0 -5px;
						}
					}

					html[dir='rtl'] &
					{
						.margin-left-right(0, 5px);
					}

					&:hover
					{
						font-weight: bold;
						color: lighten(@accent-color, 10%);
					}
				}
			}

			.all-actions
			{
				display: none;
				height: 28px;
				line-height: 28px;
				float: left; //required for Safari to preserve in one row
				html[dir='rtl'] &
				{
					float: right;
				}

				&.visible
				{
					display: inline-block;
				}

				section
				{
					display: none;
					margin-left: 20px;

					html[dir='rtl'] &
					{
						.margin-left-right(0px, 20px);
					}

					&.api-actions .embed
					{
						display: none;
					}
				}

				span
				{
					display: inline-block;
					font-size: 12px;
					color: #505050;
					height: 28px;
				}

				em
				{
					width: 24px;
					height: 24px;
					vertical-align: middle;
					opacity: 0.5;

					&:hover
					{
						opacity: 1;
					}
				}

				ul
				{
					display: inline;
					list-style: none;
					margin: 0;
					padding: 0;
					position: relative;
					top: -2px;
					margin-left: 8px;

					html[dir='rtl'] &
					{
						.margin-left-right(0px, 8px);
					}

					li
					{
						display: inline;
						.margin-left-right(0, 5px);

						html[dir='rtl'] &
						{
							.margin-left-right(5px, 0);
						}
					}
				}
			}

			#page-pin,
			.share,
			.more-actions
			{
				display: inline-block;
				height: 24px;
				line-height: 24px;
				text-decoration: none;
				color: @accent-color;
				font-size: 14px;
				.margin-left-right(5px, 0);
				vertical-align: middle;
				cursor: pointer;

				html[dir='rtl'] &
				{
					.margin-left-right(0, 5px);
				}
			}

			em
			{
				display: inline-block;
				width: 24px;
				height: 24px;
				vertical-align: top;
			}

			#page-pin
			{
				display: inline-block;
				position: static;
				outline: none;
				height: 28px;
				line-height: 28px;

				html[dir='rtl'] &
				{
					width: auto;
				}

				em
				{
					display: inline-block;
					width: 28px;
					height: 28px;
					.hires('/Img/v7/dsviewer/favorites', 'png?v=1');
					background-size: cover;
					background-position: -28px 0;
				}

				&.active em
				{
					background-position: 0 0;
				}

				em.adding
				{
					background-image: none;
				}

				img
				{
					position: absolute;
				}

				span
				{
					display: inline-block;
					background-image: none;
					width: auto;
					white-space: nowrap;
					//this saves width for the bold font
					&::after
					{
						display: block;
						content: attr(title);
						font-weight: bold;
						height: 0;
						color: transparent;
						overflow: hidden;
						visibility: hidden;
					}
				}
			}

			.share
			{
				em
				{
					.hires("/img/v7/dsviewer/ico-share");
				}

				span
				{
					display: inline-block;
					//this saves width for the bold font
					&::after
					{
						display: block;
						content: attr(title);
						font-weight: bold;
						height: 0;
						color: transparent;
						overflow: hidden;
						visibility: hidden;
					}
				}
			}

			#page-pin:hover,
			.share:hover
			{
				font-weight: bold;
				color: lighten(@accent-color, 10%);
			}

			.more-actions
			{
				display: none;

				&.show
				{
					display: inline-block;
					position: relative;
				}

				&.clicked span:first-child
				{
					display: block;
					position: absolute;
					background: white;
					width: ~"calc(100% + 20px)";
					height: 33px;
					top: -8px;
					right: -10px;
					box-shadow: 1px 2px 7px 1px rgba(0,0,0,0.2);

					&.wide
					{
						box-shadow: 1px 2px 7px 1px rgba(0,0,0,0.2);
					}
				}

				&.clicked span.text,
				&.clicked i
				{
					position: relative;
					z-index: 1;
				}
			}
		}
	}

	.sidebar
	{
		.tab
		{
			display: none;
		}

		.tab-content
		{
			display: none;

			&#metadata
			{
				display: block;
				overflow: visible !important;

				a
				{
					text-decoration: none;
				}
			}
		}
	}

	#dataset-viewer
	{
		top: 0;
		height: 620px;

		.dim-filter-timeseries-count
		{
			display: none;
		}

		#action-bar
		{
			display: none;
		}

		#premium
		{
			margin: 0;
			padding: 0;

			.container
			{
				box-sizing: border-box;
				margin: 0;
				width: 100%;
				height: 100%;
				border: none;

				.dialog
				{
					.close
					{
						display: none;
					}

					h2
					{
						margin-top: -5px;
						font-size: 18px;

						em
						{
							.margin-left-right(0, 10px);

							html[dir='rtl'] &
							{
								.margin-left-right(10px, 0);
							}
						}
					}

					p
					{
						a
						{
							color: @accent-color;
						}
					}

					textarea
					{
						width: 100%;
						display: block;
					}

					#dialog-warning-message
					{
						margin: 15px 0 10px;

						p
						{
							margin: 5px;
						}

						ul
						{
							.padding-left-right(1.5em, 0);

							html[dir='rtl'] &
							{
								.padding-left-right(1.5em, 0);
							}
						}
					}

					.watermarks,
					.insert-gadget-as-image
					{
						margin-bottom: 5px;

						input[type=checkbox]
						{
							.margin-left-right(0, 5px);

							html[dir='rtl'] &
							{
								.margin-left-right(5px, 0);
							}
						}
					}
				}
			}
		}
	}

	.metadata-block.source.wide,
	.data-source-activate-premium.wide,
	.data-source-activate-signup.wide,
	.metadata-block.validate.wide
	{
		display: none;
	}

	.metadata-block.industries
	{
		margin: 15px 0 15px 0;
	}

	.metadata-block.tags
	{
		margin-bottom: 15px;
	}

	.enscroll-track-wrapper
	{
		border-left: 1px solid #eaeaea;
		border-right: 1px solid #eaeaea;
		background-color: #fbfbfb;
		padding: 0 2px !important;
		z-index: 503 !important; // need to override .hierarchy-tracker z-index (502)
		&.no-border
		{
			border: none;
		}
	}

	.track3
	{
		background-color: white;
	}

	.handle3
	{
		border-radius: 3px;
		background-color: #bbb;
	}

	.activate-premium
	{
		text-align: center;
		padding: 10px 0;
		background-color: @off-white;

		.go-premium
		{
			display: block;
			width: 150px;
			font-weight: bold;
			font-size: .9em;
			border-radius: 2px;
			padding: .5em 0;
			margin: 20px auto 10px auto;
			text-decoration: none;
			text-transform: uppercase;

			&.authenticated
			{
				margin-bottom: 20px;
			}
		}

		.subscriber
		{
			margin: 0 0 1em;

			a
			{
				color: @accent-color;
			}
		}
	}

	.gp-enabled#switch-gadget
	{
		margin-top: 0;
		.margin-left-right(0, 0);

		a
		{
			margin-top: 0;
		}

		.column-group,
		.area-group,
		.bar-group
		{
			height: 84px;

			a:first-child
			{
				margin-top: 0;
			}
		}
	}

	#page-tags
	{
		width: auto;
		margin: 0;
		z-index: auto;

		& > img
		{
			display: none;
		}

		#page-tags-links ul
		{
			max-width: inherit;
			padding: 0;
			float: none;
		}

		.page-tags-list
		{
			min-height: 24px;

			.tagit-new
			{
				margin-top: 0 !important;
			}
		}

		.edit-tags
		{
			margin: 0;
			color: @slate-blue;
			font-size: 10pt;
			font-family: @title-font;
		}
	}

	.tagit-choice
	{
		background: #ddd;
	}

	#dataset-warning-message,
	#dataset-verification-message,
	#private-dataset-warning-message
	{
		color: #505050;
		font: 12px @title-font;
		background-color: #ffffd8;
	}

	.displaylist-dimension-actions
	{
		.selected-members-count
		{
			background-color: @accent-color;
			font: 12px @title-font;
			color: white;
			border-radius: 2px;
		}

		.toc
		{
			width: 16px;
			height: 16px;
			.hires('/img/v7/dsviewer/simple-dim-filter-actions-v3', @backgroundSize: 48px 16px);
			background-position: 0 0;
		}


		.select-all
		{
			width: 16px;
			height: 16px;
			.hires('/img/v7/dsviewer/simple-dim-filter-actions-v3', @backgroundSize: 48px 16px);
			background-position: -18px 0;
		}

		.clear
		{
			width: 16px;
			height: 16px;
			.hires('/img/v7/dsviewer/simple-dim-filter-actions-v3', @backgroundSize: 48px 16px);
			background-position: -34px 0;
		}

		.reversed-time
		{
			background-image: url('/img/v7/dsviewer/ico-new-reverse-normal.png');

			&.active
			{
				background-image: url('/img/v7/dsviewer/ico-new-reverse-active.png');
			}
		}
	}

	div.dimension-memberlist-wrapper
	{
		div.filter-textarea
		{
			input[type="text"]::-webkit-input-placeholder,
			input[type="text"]::-moz-placeholder,
			input[type="text"]:-ms-input-placeholder,
			input[type="text"]::placeholder
			{
				font: 12px @title-font;
				color: #a0a0a0;
			}

			.filter-info
			{
				top: 2px;

				i.fa-info-circle
				{
					&::before
					{
						content: none;
					}

					width: 12px;
					height: 12px;
					.hires('/img/v7/dsviewer/memberlist-member');
					background-position: 0 0;
				}
			}
		}

		.metadata-info
		{
			width: 12px;
			height: 12px;
			.hires('/img/v7/dsviewer/memberlist-member');
			background-position: -12px 0;
		}

		.metadata-info-preview
		{
			background-color: #f2f8fc;
		}

		.select-members span, .metadata-info-preview
		{
			color: black;
			font: 12px @title-font;
		}


		.select-members.active.hide-image
		{
			background-color: #f2f8fc;
		}

		.select-members:hover
		{
			background-color: #cce4f4;
		}

		.select-members.hovered
		{
			background-color: #cce4f4;
		}

		.select-members a
		{
			.hires('/img/v7/dsviewer/memberlist-member');
			background-position: -36px 0;

			&.remove-member
			{
				background-position: -24px 0;
			}
		}
	}

	.ui-accordion .ui-accordion-header .ui-icon
	{
		.hires('/img/v6/menu-arrowdown-blue');
		background-position: 0 0;
		background-repeat: no-repeat;
		width: 10px;
		height: 10px;
		display: inline-block;
		margin-right: 5px;
		-moz-transform: rotate(-90deg);
		-ms-transform: rotate(-90deg);
		-o-transform: rotate(-90deg);
		-webkit-transform: rotate(-90deg);
		transform: rotate(-90deg);

		html[dir='rtl'] &
		{
			.margin-left-right(5px, 0);
			-moz-transform: rotate(90deg);
			-ms-transform: rotate(90deg);
			-o-transform: rotate(90deg);
			-webkit-transform: rotate(90deg);
			transform: rotate(90deg);
		}

		&.ui-icon-triangle-1-s
		{
			-moz-transform: none;
			-ms-transform: none;
			-o-transform: none;
			-webkit-transform: none;
			transform: none;
		}
	}
}

.export-icon
{
	width: 24px;
	height: 24px;
	display: inline-block;
	.hires('/img/v2/dsbrowser/v3/ico-tools');

	&.pdf
	{
		background-position: 0 0;
	}

	&.dashboard
	{
		background-position: -24px 0;
	}


	&.sdmx
	{
		background-position: -48px 0;
	}

	&.r
	{
		background-position: -72px 0;
	}

	&.py
	{
		background-position: -96px 0;
	}

	&.pptx
	{
		background-position: -120px 0;
	}

	&.png
	{
		background-position: -144px 0;
	}

	&.xlsx
	{
		background-position: -168px 0;
	}

	&.odata
	{
		background-position: -192px 0;
	}

	&.json
	{
		background-position: -216px 0;
	}

	&.gif
	{
		background-position: -240px 0;
	}

	&.csv
	{
		background-position: -264px 0;
	}

	&.csharp
	{
		background-position: -288px 0;
	}

	&.html
	{
		background-position: -312px 0;
	}
}

.open-in-gp-icon
{
	.hires("/Img/v2/dsbrowser/v3/ico-geoplayground");
	width: 18px;
	height: 18px;
	display: inline-block;
	margin: 8px 3px 0px 4px;
	top: 6px !important;
}

.open-in-gp
{
	outline: none !important;
}

.explore-gp-form
{
	display: none;
}

div#share-dialog
{
    label
    {
        display: block !important;
        font-size: 14px;
        font-family: @title-font;
        font-weight: bold;
        margin-bottom: 5px;
        line-height: 1.43;
        color: @slate-blue;
        text-transform: uppercase;

        &.share-with-friends
        {
            margin-top: 27px;
        }
    }

    input[type=text]
    {
        background-color: @alabaster;
        border: 1px solid @mercury;
        color: #000;
        font-size: 14px;
        line-height: 18px;
        letter-spacing: 0.17px;
        font-family: @title-font;
        padding: 6px 7px;
        width: 100%;
        box-sizing: border-box;

        &:focus
        {
            outline: 0;
            -webkit-appearance: none;
        }

        &::selection
        {
            background-color: @sky;
        }

        &::-moz-selection
        {
            background-color: @alabaster;
        }
    }

    a
    {
        display: inline-block !important;
        width: 42px;
        height: 42px;
        border-radius: 2px;
        .margin-left-right(0, 10px);
        .hires('/img/v2/social-bar/ico-social-bar', @backgroundSize: 230px 32px);

        html[dir='rtl'] &
        {
            .margin-left-right(10px, 0);
        }

        &.fb
        {
            background-color: #4267B2;
            background-position: -28px center;
        }

        &.tw
        {
            background-color: #1B95E0;
            background-position: 4px center;
        }
    }
}

#site-holder div.dsbrowser.v3#site-main #page-header .cont .page-views-pins // very huge selector
{
	display: inline-block;
	margin-top: 0;
	float: none;
}

.yodatai-visible#yodatai-description
{
	margin: 0 15px;

	.icon
	{
		width: 24px;
		height: 24px;
		.hires("/img/v2/dsbrowser/v3/ico-yodatai");
		position: absolute;
		margin: 0;
		top: -4px;
		left: -10px;
	}

	.promo
	{
		display: none !important;
	}

	.wrapper
	{
		border-bottom: none !important;
		padding: 0 !important;
		margin: 0 !important;

		p
		{
			font-size: 14px;
			color: #777;
		}
	}

	.text
	{
		margin: 15px 0 0 14px;
	}
}

textarea.snippet-text
{
	background-color: @off-white;
	border: 1px solid @accent-color;
	border-radius: 2px;
	font-size: 13px;
	font-family: @title-font;
	padding: 10px 5px;
	box-sizing: border-box;
	resize: none;
}

#export,
#copy-snippet,
#cancel-snippet
{
	border-radius: 2px;
	font-size: 14px;
	margin-top: 10px;
	text-transform: uppercase;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24);
	font-weight: bold;
}

#copy-snippet
{
	display: none;
}

#cancel-snippet
{
	color: @accent-color;
	background-color: transparent;
	border: none;
	text-transform: none;
	font-weight: normal;
	box-shadow: none;

	&:hover
	{
		background-color: transparent;
	}
}

#selection-too-huge
{
	position: relative;
	height: 100%;

	.wrapper
	{
		position: absolute;
		width: 380px;
		left: ~"calc(-190px + 50%)";
		top: 150px;

		.bg
		{
			width: 250px;
			height: 150px;
			margin-bottom: 40px;
			.margin-left-right(65px, 0);
			.hires("/img/v2/dsbrowser/v3/ico-huge-selection");

			html[dir='rtl'] &
			{
				.margin-left-right(0, 65px);
			}
		}

		h2
		{
			text-align: center;
			font-size: 22px !important;
			font-weight: normal !important;
		}

		p
		{
			text-align: center;
			margin-left: 0 !important;
			margin-right: 0 !important;
			font-size: 14px !important;
		}
	}
}

@media all and (min-width: 1440px)
{
	.with-media#site-holder div.dsbrowser.v3#site-main
	{
		.timeseries-and-actions
		{
			padding: 0 15px 0 17px;
			min-height: 38px;

			html[dir='rtl'] &
			{
				padding: 0 17px 0 15px;
			}
		}

		.yodatai-visible#yodatai-description
		{
			.icon
			{
				top: 10px;
			}
		}

		.timeseries
		{
			margin-bottom: 10px;
			max-width: ~'calc(100% - 350px)';
		}

		.header-actions
		{
			float: right;
			clear: none;
			background-color: transparent;
			width: auto;
			padding: 0;
			padding-bottom: 10px;
			position: relative;
			.margin-left-right(-15px, 0);

			html[dir='rtl'] &
			{
				.margin-left-right(0, -15px);
			}

			html[dir='rtl'] &
			{
				float: left;
			}

			.all-actions.visible
			{
				display: none;
			}

			#page-pin,
			.share,
			.more-actions
			{
				.margin-left-right(20px, 0);

				html[dir='rtl'] &
				{
					.margin-left-right(0, 20px);
				}
			}

			.save-view-ts, .save-view, .open-in-gp
			{
				display: none;
			}
		}

		.sidebar
		{
			width: 300px;
			position: absolute;
			right: 0;
			overflow: hidden;
			box-sizing: border-box;
			.padding-left-right(10px, 0);

			html[dir='rtl'] &
			{
				left: 0;
				right: auto;
				.padding-left-right(0, 10px);
			}

			&.yodatai-visible
			{
				position: absolute;
				width: 300px;
				right: 0;

				html[dir='rtl'] &
				{
					left: 0;
					right: initial;
				}
			}

			.tabs-container
			{
				text-align: center;
				margin-top: 10px;
				margin-bottom: 5px;
				.margin-left-right(0, 10px);

				html[dir='rtl'] &
				{
					.margin-left-right(10px, 0);
				}

				.tab
				{
					&:first-child
					{
						border-bottom-left-radius: 2px;
						border-top-left-radius: 2px;

						html[dir='rtl'] &
						{
							border-bottom-right-radius: 2px;
							border-top-right-radius: 2px;
						}
					}

					&:last-child
					{
						border-bottom-right-radius: 2px;
						border-top-right-radius: 2px;
						border-right-width: 1px;

						html[dir='rtl'] &
						{
							border-bottom-left-radius: 2px;
							border-top-left-radius: 2px;
							border-left-width: 1px;
							border-right-width: 0px;
						}
					}
				}
			}

			.tab
			{
				display: inline-block;
				width: 90px;
				padding: 5px 0;
				color: @charcoal;
				background-color: white;
				font-size: 14px;
				font-weight: bold;
				text-align: center;
				text-decoration: none;
				text-transform: uppercase;
				outline: none;
				border: 1px solid @sky;
				border-right-width: 0px;

				&.active
				{
					background-color: @accent-color;
					color: white;
				}
			}

			.tab-content
			{
				display: none;
				width: 282px;
				padding-top: 0;

				&.active
				{
					display: block;
				}

				h3
				{
					font-size: 12px;
					margin-top: 0;
					margin-bottom: 0;
				}

				ul
				{
					list-style-type: none;
					padding: 0;
					margin: 8px 0 23px 0;
					font-size: 12px;
					color: #a0a0a0;

					li:first-child
					{
						margin-top: -10px;

						&.tagit-choice
						{
							margin-top: 2px;
						}
					}

					li.pro::after
					{
						content: '';
						width: 19px;
						height: 12px;
						display: inline-block;
						background-repeat: no-repeat;
						.hires('/Img/v2/dsbrowser/v3/label-pro');
						margin-bottom: -2px;
						margin-left: 5px;
						margin-right: 5px;
					}

					a
					{
						text-decoration: none;
						color: @slate-blue;
						font-size: 10pt;
						font-family: @title-font;
						outline: none;

						&:hover, &:focus, &:active
						{
							outline: none;
						}

						em
						{
							position: relative;
							top: 8px;
						}
					}
				}

				&.history
				{
					.dataset-list
					{
						height: ~"calc(100% - 50px)";
						width: 270px;
						overflow: hidden;
						margin: 0;
						padding-top: 25px;
					}

					.dataset-list-item
					{
						margin-bottom: 15px;

						&.current
						{
							background-color: #f0f9fe;
						}
					}

					.bullet
					{
						display: inline-block;
						width: 16px;
						height: 16px;
						.hires("/img/v2/dsbrowser/v3/ico-publication");
					}

					.item
					{
						float: right;
						width: 245px;

						html[dir='rtl'] &
						{
							float: left;
						}

						span
						{
							display: block;
							color: #a0a0a0;
							margin-top: 3px;

							&.pub-date
							{
								font-weight: bold;
								color: black;
								margin: 0 0 3px;
							}
						}

						a
						{
							font-size: 14px;
						}
					}

					.data-source-activate-premium,
					.data-source-activate-signup
					{
						margin-top: 10px;
						.margin-left-right(0, 0);

						em
						{
							.margin-left-right(0, 17px);

							html[dir='rtl'] &
							{
								.margin-left-right(17px, 0);
							}
						}

						span
						{
							font-size: 13px;
						}

						.activate
						{
							font-size: 12px;
						}
					}
				}

				&#metadata
				{
					width: 290px !important;
					margin: 0;
					padding: 0;
					overflow: hidden !important;
					box-sizing: border-box;
					padding-right: 10px !important;

					html[dir='rtl'] &
					{
						padding-left: 10px !important;
						padding-right: 0 !important;
					}
				}
			}

			.dialog
			{
				position: absolute;
				top: 1px;
				bottom: 0;
				right: 0;
				z-index: 1;
				padding-top: 10px;
				.padding-left-right(0, 10px);
				width: 280px;
				background-color: white;

				html[dir='rtl'] &
				{
					left: 0;
					right: initial;
					.padding-left-right(10px, 0);
				}

				h2
				{
					font-size: 18px;
					margin: 0;
					display: inline-block;

					em
					{
						float: left;
						margin-top: -2px;
						.margin-left-right(0, 5px);

						html[dir='rtl'] &
						{
							.margin-left-right(5, 0);
						}
					}
				}

				span.close
				{
					display: block;
					width: 16px;
					height: 16px;
					background: url(/css/jquery/images/ui-icons_222222_256x240.png) -96px -128px;
					cursor: pointer;
					float: right;
				}

				.watermarks
				{
					margin-top: 10px;
				}

				.insert-gadget-as-image
				{
					margin-top: 5px;
				}

				#dialog-warning-message
				{
					width: 280px;
					margin: 10px 0;
				}

				input[type=checkbox]
				{
					float: left;

					html[dir='rtl'] &
					{
						float: right;
					}
				}

				label
				{
					font-size: 14px;
					float: left;
					width: 250px;
					margin-top: -2px;
					.margin-left-right(10px, 0);

					html[dir='rtl'] &
					{
						float: right;
						.margin-left-right(0, 10px);
					}
				}

				.first
				{
					.margin-left-right(0, 0);

					html[dir='rtl'] &
					{
						.margin-left-right(0, 0);
					}
				}

				.python,
				.r,
				.csharp,
				.html,
				.json
				{
					p
					{
						width: 280px;
						font-size: 14px;

						a
						{
							color: @accent-color;
						}
					}
				}

				textarea
				{
					width: 280px;
				}
			}
		}

		.metadata-block.dataset-versions
		{
			display: none;
		}

		.metadata-block.source,
		.data-source-activate-premium,
		.data-source-activate-signup,
		.metadata-block.validate
		{
			&.narrow
			{
				display: none;
			}

			&.wide
			{
				display: block;
			}
		}

		#metadata .description
		{
			overflow: hidden;
			max-height: initial !important;
			float: left;

			p
			{
				word-wrap: break-word;
			}
		}

		.activate-premium
		{
			margin: 10px 0;
			font-size: 13px;
			padding: 10px 5px;

			.go-premium
			{
				font-size: 13px;
			}
		}
		/*.metadata-block.tags h4
		{
			margin-top: 0;
		}*/
		#page-tags-links ul
		{
			margin-top: 0;
			margin-bottom: 0;

			li
			{
				color: black;
			}
		}
	}
}

html[dir='rtl'] div#explore-dataset div.content div#switch-gadget
{
	.margin-left-right(0, 5px);
}
