﻿@import '../default.less';
@import '../mixins.less';
//DON'T ADD IMPORTS, ABOVE ARE TO MAKE INTELLISENSE WORK

.btn()
{
	color: white;
	background-color: @accent-color;
	padding: 5px 10px;
	text-decoration: none;
	font: bold 10pt @title-font;
	border-radius: 2px;
	display: inline-block;
}

.location
{
	h2
	{
		margin: 0;
		text-align: center;
		font: bold 16pt @title-font;
		margin-top: -25px;
	}

	h3
	{
		font: bold 11pt @title-font;
		margin: 0 0 5px 0;
	}

	span.schedule
	{
		display: block;
		font: italic 11pt @title-font;
		color: gray;
		margin-bottom: 5px;
		text-align: center;
	}

	.map
	{
		height: 270px;
		width: 100%;

		div.tyles
		{
			width: 100%;
			height: 100%;
		}

		input[type=text]
		{
			display: none;
			margin: 8px 0 0 5px;
			border: 1px solid transparent;
			border-radius: 2px;
			box-sizing: border-box;
			height: 32px;
			outline: none;
			box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
			width: 400px;
			font-size: 9pt;
		}

		div.place-info
		{
			overflow: hidden;

			span
			{
				display: block;
				margin: 5px 0;
			}

			img
			{
				display: block;
				margin-bottom: 10px;
			}

			a
			{
				color: @accent-color;
				font: 10pt @title-font;
				text-decoration: none;
				display: block;
			}
		}
	}

	div.schedule
	{
		margin-bottom: 20px;

		label
		{
			font: bold 11pt @title-font;
			display: block;
			margin-bottom: 2px;
		}

		select
		{
			font-size: 10pt;
			padding: 1px;
			width: 120px;
		}
	}

	div.region
	{
		display: inline-block;
		margin-right: 20px;
		margin-bottom: 20px;

		label
		{
			font: bold 11pt @title-font;
			display: block;
		}

		select
		{
			width: 195px;
		}
	}

	div.market-error, div.location-error, div.location-duplicate
	{
		color: #c13a3f;
		font: bold 10pt @title-font;

		&.location-duplicate
		{
			display: inline;
		}

		a
		{
			color: @accent-color;
			text-decoration: none;
			border-bottom: 1px dotted;
		}
	}

	div.location-error
	{
		margin: 10px 0;
	}

	div.markets
	{
		margin-bottom: 20px;
	}

	div.operations
	{
		textarea.comment
		{
			display: block;
			padding: 10px;
			width: 400px;
			height: 100px;
			border: 1px solid #9bd2fe;
			font: 10.5pt @text-font;
			margin-bottom: 20px;
		}

		a.save, a.edit, a.approve, a.reject
		{
			.btn();
		}

		a.approve
		{
			background-color: #339900;
			.margin-left-right(0, 10px);

			html[dir='rtl'] &
			{
				.margin-left-right(10px, 0);
			}
		}

		a.reject
		{
			background-color: #c13a3f;
		}

		a.delete
		{
			.btn();
			background-color: #c13a3f;
			float: right;
			.margin-left-right(5px, 0);

			html[dir='rtl'] &
			{
				float: left;
				.margin-left-right(0, 5px);
			}
		}

		a.cancel
		{
			font: bold 9.5pt @title-font;
			color: @accent-color;
			text-decoration: none;
			border-bottom: 1px dotted;
			.margin-left-right(10px, 0);

			html[dir='rtl'] &
			{
				.margin-left-right(0, 10px);
			}
		}
	}

	a.add-market
	{
		.btn();
		margin-bottom: 20px;

		i
		{
			.margin-left-right(0, 5px);

			html[dir='rtl'] &
			{
				.margin-left-right(5px, 0);
			}
		}
	}
}

.market
{
	div
	{
		margin: 10px 0;

		&.property
		{
			display: inline-block;
			vertical-align: top;
			.margin-left-right(0, 30px);

			html[dir='rtl'] &
			{
				.margin-left-right(30px, 0);
			}
		}
	}

	span.title
	{
		padding: 5px 2px;
		font: bold 11pt @title-font;
		min-width: 300px;
		display: inline-block;
		border: 2px solid #A4C6FD;
		outline-style: none;
		border-radius: 2px;
		height: 20px;
	}

	label
	{
		display: block;
		color: @accent-color;
		font: bold 9.5pt @title-font;
		margin-bottom: 3px;
		cursor: default;
	}

	label[for]
	{
		cursor: pointer;
	}

	select
	{
		font: 10.5pt @title-font;
		padding: 5px;
		width: 140px;
	}

	a.add
	{
		.btn();
		margin: 0;
	}

	a.action
	{
		font: bold 9.5pt @title-font;
		color: @accent-color;
		text-decoration: none;
		border-bottom: 1px dotted;
		.margin-left-right(0, 10px);

		html[dir='rtl'] &
		{
			.margin-left-right(10px, 0);
		}

		&.delete
		{
			color: #c13a3f;
		}
	}

	a.cancel
	{
		.margin-left-right(10px, 0);

		html[dir='rtl'] &
		{
			.margin-left-right(0, 10px);
		}
	}

	div.topics
	{
		div.topic
		{
			width: 260px;
			display: inline-block;
			vertical-align: top;
			margin: 10px 0 0 0;
			.margin-left-right(0, 20px);

			html[dir='rtl'] &
			{
				.margin-left-right(20px, 0);
			}

			label
			{
				display: inline-block;
				margin-bottom: 0;
				color: black;
				width: 235px;
				text-overflow: ellipsis;
				white-space: nowrap;
				overflow: hidden;
				.margin-left-right(5px, 0);

				html[dir='rtl'] &
				{
					.margin-left-right(0, 5px);
				}
			}

			ul
			{
				list-style: none;
				margin: 5px 0 0 0;
				.padding-left-right(15px, 0);

				html[dir='rtl'] &
				{
					.padding-left-right(0, 15px);
				}

				label
				{
					font: 9.5pt @text-font;
					width: 215px;
				}

				li
				{
					padding: 2px;
				}
			}
		}
	}

	div.market-error
	{
		margin: 0 0 0 15px;
		display: inline-block;
	}

	&.card
	{
		margin: 20px 0 0 0;
		display: inline-block;
		width: 200px;
		vertical-align: top;
		border: 2px solid #eaeaea;
		height: 150px;
		.margin-left-right(0, 30px);

		html[dir='rtl'] &
		{
			.margin-left-right(30px, 0);
		}

		&:nth-child(4n+4)
		{
			margin-right: 0;

			html[dir='rtl'] &
			{
				margin-left: 0;
			}
		}

		h2
		{
			display: block;
			text-align: left;
			font: bold 11pt @title-font;
			margin: 0;
			padding: 5px 10px;
			color: #fff;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
			cursor: pointer;
		}

		div.type
		{
			font: bold 9.5pt @title-font;
			color: gray;
		}

		div.indicators
		{
			font: 9.5pt @text-font;
			height: 65px;
			margin-bottom: 0;
			word-break: break-all;
		}

		div
		{
			margin: 5px 10px;
		}
	}
}

.locations
{
	margin-top: 30px;
	font-size: 10pt;

	div.filter
	{
		display: inline-block;
		max-width: 200px;
		margin-bottom: 20px;
		.margin-left-right(0, 25px);

		html[dir='rtl'] &
		{
			.margin-left-right(25px, 0);
		}

		label
		{
			font: bold 10.5pt @title-font;
			display: block;
			margin-bottom: 2px;
		}
	}

	table
	{
		width: 100%;

		th, td
		{
			padding: 5px;
		}

		th
		{
			font: bold 10pt @title-font;
			color: @accent-color;
			text-align: left;

			html[dir='rtl'] &
			{
				text-align: right;
			}
		}

		td
		{
			font: 9.5pt @title-font;
			border-top: 1px solid #eaeaea;

			a
			{
				color: @accent-color;

				&.verify
				{
					font: bold 10pt @title-font;
				}
			}

			&.not-verified
			{
				color: red;
				font-weight: bold;
			}

			&.verified
			{
				color: #339900;
				font-weight: bold;
			}
		}
	}
}

div#page-actions
{
	display: none;
}


div.indicators-missed
{
	div
	{
		font: 9.5pt @text-font;
		margin: 10px 0;

		&.indicator
		{
			margin: 2px 0;
		}
	}
}
