@import '../default.less';
@import '../mixins.less';
//DON'T ADD IMPORTS, ABOVE ARE TO MAKE INTELLISENSE WORK

#sys-body
{
	position: relative;

	& > .loader
	{
		background: white url(/img/v4/loader.gif) center no-repeat;
		opacity: .7;
		width: 100%;
		height: 100%;
		position: absolute;
		top: 0;
	}
}

div#indicator-editor
{
	div.form
	{
		div.container
		{
			height: 180px;
			overflow: auto;
		}

		div.tabs
		{
			h3
			{
				margin-top: 0;
				font-size: 1em;
			}
		}
	}
}

#country-group-name
{
	width: 97%;
	display: block;

	& + span
	{
		color: #d40000;
	}
}

h4.atlas-editor-header
{
	color: #444;
	font-size: 1.2em;
}

div#atlas-country, div#facts-dataset
{
	label
	{
		font-weight: normal;
		font-family: @text-font;
		color: black;
	}
}

div#atlas-country
{
	margin-bottom: 1em;

	a.not-set#country-selector
	{
		background-color: #fad1e5;
	}
}

div#facts-dataset
{
	margin-bottom: 1em;
}

.infomessage
{
	padding: 10px;
	font-size: 12px;
	margin-bottom: 10px;
	background-color: #d1e6fa;
	border: 1px solid #9bd4fa;
}

.alert
{
	background-color: #fad1e5;
	border: 1px solid #d8a9c0;
}

.success
{
	background-color: #c7e9c9;
	border-color: #8dc887;
}

div#topic-indicators
{
	margin-top: 30px;

	.nowrap
	{
		white-space: nowrap;

		&.error
		{
			vertical-align: top;

			img
			{
				position: relative;
				top: 5px;
			}
		}
	}

	tr.error
	{
		background-color: pink;
	}

	th.no-padding,
	td.no-padding
	{
		padding-left: 0;
	}
}

/*topics*/
tbody.subtopic
{
	tr
	{
		&[data-index]
		{
			td:first-child
			{
				cursor: pointer;
			}
		}

		&.not-topic
		{
			display: none;
		}
	}

	& > tr[data-index]
	{
		border-left: 2px solid @accent-color;
	}
}

.group
{
	background-color: #e5e4e4;
	border-top: 2px solid #bebebe;
	font-weight: bold;
}

.header
{
	display: block;
	font-weight: bold;
	padding: 3px 6px;
}

select#topic-select
{
	width: 250px;

	& + span
	{
		font-size: 70%;
	}
}

/*facts*/
.fact
{
	border: 1px solid #cecece;
	margin: 2px;
}

.fact-placeholder
{
	height: 1.5em;
	line-height: 1.2em;
}

.notice
{
	padding: 2px 4px;
	font-size: small;
	font-style: italic;
	background-color: #d5d5d5;
}

/*Total width: 660px*/
div.select-holder
{
	float: left;
	display: table-column;
	width: 100%;
	height: 45px;
}

input#title-manual-textfield
{
    width: 558px;
}

a#input-toggle
{
    margin-top: 0;
    position: absolute;
    top: 18px;
    width: 100%;
    width: 56px;
    text-align: center;
}

div#Title
{
	width: 500px;
}

input#Year
{
	height: auto;
	margin-bottom: 15px;
}

/*forms*/
div.form > table
{
	width: 100%;
}

label#dataset-id-label
{
	display: block;
}

div.control-group
{
    clear: both;
    margin-bottom: 10px;

    &.inline-block
    {
        display: inline-block;

        &.keywords
        {
            margin-right: 15px;
            float: right;
        }

        &.dataset-actions
        {
            float: right;
            width: 195px;

            a
            {
                color: @accent-color;
                margin-bottom: .4em;
                display: block;
            }
        }

        &.dataset-id-editor
        {
            overflow: hidden;
        }
    }

    label
    {
        display: block;

        &.inline
        {
            display: inline-block;
        }
    }

    textarea
    {
        margin-bottom: 10px;
    }

    select#Precision, select#topic-column
    {
        width: 35px;
    }

    select#Precision
    {
        font-size: .9em;
    }

    div.field-error
    {
        color: #d40000;
        font-style: italic;
        font-size: 0.8em;
        margin-top: -5px;
        display: none;
    }

    .wide
    {
        width: 97%;
    }

    .short-wide
    {
        width: 420px;
    }

    div.unit-editor
    {
        display: inline-block;
        width: 300px;
        float: left;
    }

    div.desc-editor
    {
        display: inline-block;
        margin-left: 15px;
        width: 580px;
    }

    input#topic-name
    {
        width: 100%;
    }

    textarea#topic-description
    {
        width: 394px;
        height: 70px;
    }
}

/*global*/

p.indicators-selected
{
	button.ui-button
	{
		font-size: small;
		padding: .3em 1em;

		&[disabled]
		{
			background: #bebebe;
			cursor: default;
		}
	}
}

.ui-dialog
{
	.dlg-gadget-customization-tabs
	{
		border-bottom: 1px solid @accent-color;
		width: 100%;
		margin-top: 10px;
		position: relative;

		.dlg-gadget-customization-tabs-nav
		{
			position: absolute;
			top: 0px;
			bottom: 0px;
			right: 0px;
			font-size: 10.5pt;
			font-weight: bold;

			ul
			{
				margin: 0;
				padding: 0;

				li
				{
					display: inline-block;
					height: 100%;
					margin-right: 2px;
					padding: 5px 10px 5px 10px;
					background-color: #e5e4e4;
					cursor: pointer;
					font-size: 12pt;
					font-weight: normal;
					color: red;
					text-decoration: none;

					&.active
					{
						background-color: blue;
						font-weight: bold;
						color: gray;
					}
				}
			}
		}
	}
}

div.topics-holder
{
    height: 220px;
    overflow: auto;

    ul
    {
        list-style-type: none;
        margin: 0;
        padding: 0;

        li
        {
            background-color: #f7f7f7;
            height: 30px;
            box-sizing: border-box;
            padding: 5px;
            margin-bottom: 3px;
        }
    }
}

select#select-subtopic
{
	max-width: 100%;
}

div#lang ul
{
	list-style-type: none;
}

div#title-holder select.chzn-select
{
	width: 100%;
}

button#indicators-update
{
	font-size: .8em;

	& + span
	{
		display: block;
		margin-top: .5em;
		font-size: 70%;
	}
}

a#update-indicators
{
	color: @accent-color;
	font-size: .9em;
	float: right;
}

a#back-to-topics,
a#select-all
{
	display: block;
	color: @accent-color;
	margin-bottom: 1em;
	font-size: .9em;
	max-width: 30%;
}

a#select-all
{
	text-decoration: none;
	border-bottom: 1px dashed @accent-color;
	display: none;
}

#is-topic-regionless
{
	margin: 0 10px 0 0;
	height: auto;
}

.ui-button
{
	margin: 0 5px 0 0;
	
	html[dir='rtl'] &
	{
		margin: 0 0 0 5px;
	}
}