@import '../includes/fonts/roboto';

@font-face {
    font-family: 'the_sans_regular';
    src: url('fonts/thesans_b5_plain-webfont.eot'), url('fonts/thesans_b5_plain-webfont.woff2') format('woff2'), url('fonts/thesans_b5_plain-webfont.woff') format('woff'), url('fonts/thesans_b5_plain-webfont.ttf') format('truetype');
}

@font-face {
  font-family: 'the_sans_bold';
  src: url('fonts/thesans_b8_extrabold-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/thesans_b8_extrabold-webfont.woff2') format('woff2'), url('fonts/thesans_b8_extrabold-webfont.woff') format('woff'), url('fonts/thesans_b8_extrabold-webfont.ttf') format('truetype'), url('fonts/thesans_b8_extrabold-webfont.svg#thesansregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
    font-family: 'the_sans_light';
    src: url('fonts/thesans_light_plain-webfont.eot'), url('fonts/thesans_light_plain-webfont.woff2') format('woff2'), url('fonts/thesans_light_plain-webfont.woff') format('woff'), url('fonts/thesans_light_plain-webfont.ttf') format('truetype');
}

%cancel-button {
	@extend %cancel-button;
	background: #DBDBDB;
	color: #333;
	&:hover {
		background: #D1D1D1;
		color: #555;
	}
	@media screen and ($max-mobile-viewport) {
		margin-right: 0.5em;
	}
}

#content div#sidebar {
	order: 2;
	div.cell {
		margin-left: 20px;
		margin-right: 0;
	}
	div.cell.dashboard-title {
		margin-top: 0;
		h3 {
			margin-top: 0;
			text-align: center;
		}
	}
}

div#header-wrapper {
	border-top: 27px solid $ternary-color;
	.metropole-link {
		position: absolute;
		top: -30px;
		padding: 1ex 1em 0.3ex 0;
		@media screen and ($max-mobile-viewport) {
			display: none;
		}
	}
}

div#toplinks {
	border: 0;
	box-shadow: none;
	top: -30px;
	background: transparent;
}

#logo {
	color: black;
	padding-top: 10px;
	font-family: the_sans_regular, Arial, Helvetica, sans-serif;
	font-weight: 900;
	font-size: 2.286rem;
}

#logo > a {
	color: inherit;
	text-transform: uppercase;
	font-weight: 900;
}

div#nav > ul {
	font-family: "the_sans_regular";
	border: 2px solid #DBDBDB;
	border-width: 2px 0;
	> li a {
		font-size: 1.286rem;
		font-weight: normal;
		line-height: 2.2em;
	}
}

div#nav > ul a {
	outline: none;
}

div#nav > ul > li > a > span {
	padding-right: 2em;
	border-right: 2px solid #DBDBDB;
}

div#nav > ul > li:first-child > a > span {
	padding-left: 0;
	border: 0;
}

div#nav > ul > li:last-child > a > span {
	border: 0;
}


div#nav > ul > li:first-child span {
	display: none;
}

div#nav > ul > li:first-child a {
	padding-left: 0;
	padding-right: 0;
	background: $secondary-color;
}

div#nav > ul > li:first-child a::before {
	content: "\f015";
	font-family: FontAwesome;
	color: white;
	display: inline-block;
	width: 3em;
	text-align: center;
}

#content div.cell.menu-dashboard,
#content div.cell.dashboard-menu {
	background: $ternary-color;
	padding-top: 3%;

	ul li {
		position: relative;
		margin-left: 5%;
		margin-right: 5%;
		width: 39%;
		transition: background 200ms ease;

		@each $dashboard_class, $dashboard_image in $dashboard_items {
			&.menu-#{$dashboard_class}:hover a { background-image: url(img/#{$dashboard_image}-selected.png); }
		}

		a {
			background-position: center 20px;
			text-align: center;
			padding-right: 0;
			font-weight: normal;
			span {
				width: auto;
				color: $primary-color;
			}
		}

		&::before {
			content: "";
			border-radius: 30px;
			background: $primary-color;
			transition: background 200ms ease;
			display: block;
			width: 50px;
			height: 50px;
			position: absolute;
			left: 30px;
			top: 13px;
		}

		&.selected,&:hover {
			background: $secondary-color;
			&::before {
				background: white;
			}
			a {
				opacity: 1;
				span {
					color: white;
				}
			}
		}
	}
}

/* booking calendar */
div.bookingcalendar table td.available {
	background: #00c500;
}

/* w.c.s. forms */

.form-content--title,
div#rub_service h2 {
	background: #F5F5F5;
	font-family: the_sans_bold, Arial, Helvetica, sans-serif;
	text-align: left;
	color: black;
	font-size: 150%;
	border-bottom: 2px solid #d4d4d4;
}

div#rub_service {
	border: 1px solid #ddd;
}

div#footer {
	padding-top: 30px;
	color: #dbdbdb;
	display: flex;
	justify-content: space-between;
	@media screen and ($max-mobile-viewport) {
		flex-direction: column;
	}
	h3 {
		text-transform: uppercase;
		font-family: 'the_sans_bold';
		border-top: 2px solid #818a8f;
		border-bottom: 2px solid #818a8f;
		font-size: 1.429rem;
		font-weight: 500;
		line-height: 1.1;
		padding: 10px 0;
		margin-bottom: 30px;
		color: #fff;
	}
	h4 {
		font-family: 'the_sans_light', Arial, Helvetica, sans-serif;
		font-size: 1.286rem;
		font-weight: bold;
		margin: 25px 0 10.5px 0;
		line-height: 1.1;
	}
	div.mairie-orleans, div.orleans-metropole {
		box-sizing: content-box;
		width: 49%;
		padding: 0 5px;
		@media screen and ($max-mobile-viewport) {
		    width: auto;
		}
	}
	div.address {
		float: right;
		width: 50%;
		p:first-child::before, p:last-child::before {
			margin-right: 5px;
			font-family: FontAwesome;
		}
		p:first-child::before {
			content: "\f041";
		}
		p:last-child::before {
			content: "\f095";
		}
	}
	ul {
		margin-top: 0;
		margin-bottom: 10.5px;
		padding-left: 0;
		li {
		list-style-type: none;
			&::before {
				padding-right: 5px;
				color: #f7efe2;
				font-family: FontAwesome;
				content: "\f00c";
			}
		}
	}
}

label {
	font-weight: bold;
}

td.invoice-subject, th.invoice-subject, div#item h4.label {
	display: none;
}

div.buttons {
	div.submit-button {
		float: right;
	}
	div.cancel-button {
		float: left;
	}
	button {
		@media screen and ($max-mobile-viewport) {
			margin-right: 0.5em;
		}
	}
}

.widget {
	.content {
		max-width: 100%;
		padding: .33em 0;
		transition: background 0.3s linear;
		&.with-padding {
			display: inline-block;
			padding: .33em;
		}
	}
	&[class*=grid-] .content.with-padding {
		display: block;
	}
	&.widget-with-error .content {
		background-color: $notification_error_color;
	}
}
