@font-face {
    font-family: "Bold";
    src: url('../fonts/FreightSansProBold-Regular.otf');
}

@font-face {
    font-family: "Regular";
    src: url('../fonts/OpenSans-Light.ttf');
}

@font-face {
    font-family: "Icons";
    src: url('../fonts/heydings_icons.ttf');
}


html, body {
	margin:0;
	padding:0;
	font-family: 'Regular', sans-serif;
	color:#333333;
	background:rgba(0, 0, 0, .05);
	font-size:14px;
}

textarea:focus, input:focus { outline: none; }

#down-for-maintenance {
	margin:0 auto;
	padding:20px;
	max-width:1200px;
	text-align:center;
}
table#table-down-for-maintenance {
	margin:20px auto;
	max-width:500px;
	width:100%;
	border:1px solid rgba(0, 0, 0, .2);
}

.message-error, .message-confirmation, .message-help {
	margin:10px auto;
	padding:10px;
	max-width:1200px;
	font-size:14px;
	background:#CF5F5F;
	color:#FFFFFF;
	text-align:left;
}
.message-confirmation {
	background:#92BF4D;
}
.message-help {
	margin:0 auto 20px;
	max-width:100%;
	background:#fffa6f;
	color:#666;
}
.message-error a, .message-error a:visited, .message-confirmation a, .message-confirmation a:visited {
	color:#FFFFFF !important;
	text-decoration:underline;
	font-weight:bold;
}

h1, h2, h3, h4 {
	position:relative;
	text-align:center;
	font-family:'Bold', sans-serif;
	font-weight:normal;
	color:#172f7b;
	font-style:italic;
	letter-spacing:2px;
}
h1 {
	margin:0 0 20px;
	padding:0;
	font-size:30px;
	text-align:center;
	font-weight:bold;
}
h2 {
	margin:0 0 20px;
	padding:20px 10px 30px;
	font-size:24px;
	text-align:center;
	font-weight:bold;
}

.bold { font-weight:bold; }

.clear { clear:both; }

a img { border:none; }

a {
	color:#172f7b;
	text-decoration:underline;
}

a:hover {
	color:#0097db;
	text-decoration:underline;
}


input[type="text"], input[type="password"], input[type="button"], select {
	margin:0;
	border:none;
	box-shadow:3px 3px 3px rgba(0, 0, 0, .1) inset;
	background:#f1f1f1;
	padding:10px;
	box-sizing:border-box;
	border-radius:5px;
	font-size:18px;
}


header {
	position:fixed;
	top:0;
	left:0;
	width:100%;
	box-sizing:border-box;
	margin:0 auto;
	padding:20px;
	background:#ffffff;
	box-shadow:0 0 10px rgba(0, 0, 0, .1);
	z-index:1000;
	text-align:left;
}

header a img {
	max-width:50%;
}

a#header-link-settings, #header-link-logout {
	float:right;
	display:inline-block;
	margin:0 0 0 20px;
	width:40px;
	height:40px;
	background:url('../images/header-link-settings.png') no-repeat left;
}
#header-link-logout { background:url('../images/header-link-logout.png') no-repeat left;}
a#header-link-settings:hover, #header-link-logout:hover { background-position:right; }


#header-loading-bar {
	display:none;
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:10px;
	background:url('../images/header-loading-bar.gif') repeat-x #57ae45;
	box-shadow:0 0 10px rgba(0, 0, 0, .5);
	z-index:1001;
}

#wrapper {
	max-width: 2000px;
	margin: 0 auto;
	padding:110px 20px 0;
}

.main-content {
	margin:0;
	padding:0;
}


#block-login {
	max-width:500px;
	margin:30px auto;
	padding:10px;
	background:#ffffff;
	box-shadow:0 0 10px rgba(0, 0, 0, .1);
	text-align:center;
}
#block-login h3 {
	margin:0 auto 10px;
	padding:0;
	font-size:30px;
	color:#172f7b;
}
#block-login input {
	margin:0 auto 10px;
	width:100%;
	padding:10px;
	box-sizing:border-box;
	text-align:center;
}
#block-login input[type="button"] {
	margin:10px 0 0;
	background:#0097db;
	border:none;
	color:#ffffff;
	font-family: 'Bold';
	cursor:pointer;
	letter-spacing:1px;
	font-size:22px;
}
#block-login input[type="button"]:hover { background:#172f7b; }
#block-login-loading {
	display:none;
}
span#login-loading, span#import-loading, span#table-users-loading {
	display:block;
	margin:20px auto;
	height:10px;
	max-width:350px;
	border:1px solid #459833;
	box-shadow:0 0 10px rgba(0, 0, 0, .1);
	border-radius:4px;
	background:url('../images/header-loading-bar.gif') repeat-x #57ae45;
}

#block-shortcuts {
	list-style:none;
	text-align:center;
}
#block-shortcuts li {
	display:inline-block;
	margin:10px;
	width:200px;
	height:200px;
	border-radius:4px;
	background:#ffffff;
	box-shadow:0 0 10px rgba(0, 0, 0, .1);
	padding:0;
}
#block-shortcuts li a {
	display:block;
	box-sizing:border-box;
	padding:150px 10px 0;
	height:200px;
	text-align:center;
	font-family: 'Bold';
	font-weight:normal;
	text-decoration:none;
	letter-spacing:1px;
	font-size:22px;
	background-repeat:no-repeat;
	background-position:left 50px top 20px;
}
#block-shortcuts li a:hover { background-position:left -150px top 20px; }
#block-shortcuts li a[href*="reglages"] { background-image:url('../images/block-index-shortcut-settings.png'); }
#block-shortcuts li a[href*="catalogue"] { background-image:url('../images/block-index-shortcut-products.png'); }


#sidebar {
	position:relative;
	float:left;
	margin:0 10px 0 0;
	padding:0;
	box-sizing:border-box;
	width:350px;
	border-radius:7px;
	overflow:hidden;
	background:#ffffff;
	box-shadow:0 0 10px rgba(0, 0, 0, .1);
}
#sidebar-button-filters { display:none; }
#sidebar h3, .products-items h3 {
	margin:0;
	padding:10px 15px;
	font-family:'Bold';
	font-size:20px;
	background:linear-gradient(0deg, rgba(23,47,123,1) 0%, rgba(0,151,219,1) 100%);
	color:#ffffff;
	text-align:left;
	text-shadow:3px 3px 0 rgba(0, 0, 0, .1);
}
.sidebar-block-filters {
	padding:10px 10px 30px;
}
#sidebar-block-filters-size {
	font-size:20px;
	font-family:'Bold';
	text-align:center;
}
select#search-load, select#search-speed, select#search-score-gaz, select#search-score-rain {
	width:calc(50% - 2px);
}
input#search-keywords { width:100%; }

select#search-season, select#search-sort-order { width:100%; }

a#button-select-all, a#button-unselect-all {
	display:inline-block;
	padding:5px 5px 5px 26px;
	border-radius:4px;
	background:url('../images/label-checkbox.png') no-repeat left 6px top 6px #f2f2f2;
	background-size:16px auto;
	border:1px solid #f2f2f2;
	color:#333333;
	text-decoration:none;
	font-size:12px;
	opacity:.7;
	filter:grayscale(1);
}
a#button-unselect-all { background-position:left 6px top -21px;}
a#button-select-all:hover, a#button-unselect-all:hover,
a#button-select-all.active, a#button-unselect-all.active {
	border-color:#a9a9a9;
	filter:grayscale(0);
	opacity:1;
}

a#products-search-submit {
	position:fixed;
	width:350px;
	left:20px;
	bottom:0;
	display:block;
	box-sizing:border-box;
	font-size:20px;
	font-family:'Bold';
	text-align:center;
	padding:20px;
	color:#ffffff;
	text-transform:uppercase;
	font-style:italic;
	text-decoration:none;
	border:1px solid #57ae45;
	background:#57ae45;
	box-shadow:0 0 10px rgba(0, 0, 0, .1);
}
a#products-search-submit:hover {
	background:#ffffff;
	color:#57ae45;
}


footer {
	clear:both;
	margin:0;
	padding:20px;
	text-align:center;
	font-size:14px;
}

span#back-to-top {
	position:fixed;
	right:20px;
	bottom:20px;
	padding:10px 20px 10px 30px;
	font-size:14px;
	font-weight:bold;
	text-transform:uppercase;
	color:#ffffff;
	border-radius:5px;
	box-shadow:0 0 10px rgba(0, 0, 0, .1);
	background:url('../images/button-back-to-top.png') no-repeat left 10px bottom 12px #0097db;
	cursor:pointer;
	z-index:100;
}


#products-listing {
	margin:0;
	padding:0 0 0 380px;
}
.products-items {
	margin:0 0 20px;
	padding:0;
	/* background:url('../images/products-items-bg.png') no-repeat left bottom #ffffff; */
	background: #ffffff;
	box-shadow:0 0 10px rgba(0, 0, 0, .1);
	border-radius:7px;
	overflow:hidden;
	transition:all .3s;
}
.product-item-sub-block {
	float:left;
	width:33.33%;
	padding:10px;
	box-sizing:border-box;
	text-align:center;
}
.products-items .product-item-sub-block:first-of-type { padding-left:70px; }
.products-items .product-item-sub-block:last-of-type::after {
	content:'';
	display:block;
	clear:both;
}
.products-items:hover {
	-webkit-transform: scale(1.03);
	-ms-transform: scale(1.03);
	transform: scale(1.03);
	transition:all .3s;
}
.products-items p {
	margin:0;
	padding:0 0 10px;
	box-sizing:border-box;
}
.products-items h3 {
	box-shadow:0 0 10px rgba(0, 0, 0, .2);
	background:#0097db;
	font-size:20px;
}
.products-items-sizes {
	font-size:30px;
	color:#172f7b;
	font-family:'Bold';
	font-style:italic;
}
.products-items-scores {
	padding:0 0 20px;
}
.products-scores-gaz, .products-scores-rain, .products-scores-noise {
	display:inline-block;
	width:57px;
	height:25px;
	margin:0 20px 0 0;
	padding:0 8px 0 30px;
	box-sizing:border-box;
	text-align:center;
	color:#ffffff;
	font-size:20px;
	font-family:'Bold';
	background:url('../images/sprite-score-gaz.png') no-repeat top left;
}
.products-scores-gaz { background:url('../images/sprite-score-gaz.png') no-repeat top left; }
.products-scores-rain { background:url('../images/sprite-score-rain.png') no-repeat top left; }
.products-scores-noise { background:url('../images/sprite-score-noise.png') no-repeat top left; }


span[class^="products-scores-"].class-a { background-position:0 0; }
span[class^="products-scores-"].class-b { background-position:0 -25px; }
span[class^="products-scores-"].class-c { background-position:0 -75px; color:black; }
span[class^="products-scores-"].class-d { background-position:0 -100px; }
span[class^="products-scores-"].class-e { background-position:0 -125px; }
span[class^="products-scores-"].class-f { background-position:0 -125px; }

.products-items-price {
	display:block;
	padding-bottom:0;
	font-size:30px;
	font-family:'Regular';
	font-weight:bold;
	color:#000000;
	text-align:center;
}
.products-items-price small {
	display:block;
	font-size:14px;
	font-weight:normal;
}
.products-items-price-reduction small {
	display:block;
	color:#333333;
	font-size:12px;
	font-weight:normal;
}
.products-items-price-reduction {
	font-size:20px;
	font-weight:bold;
	color:#0097db;
}
.products-items-comment { font-weight:bold; }

.products-items-APO_LIBCAT { font-weight:bolder; color:#459833; }


.products-items-reference {
	display:block;
	font-size:12px;
	font-weight:normal;
	color:#666666;
	text-align:center;
}
.products-items-order {
	text-align:center;
}
.products-items-stock {
	display:block;
	padding:0;
	font-weight:bold;
	color:#000000;
}
.products-items-stock-booked {
	display:block;
	margin:0 auto 10px;
	padding:0;
	font-weight:bold;
	font-size:16px;
	color:#da0000;
}
.products-items-date-stock, .products-items-store {
	display:block;
}
a[href^="javascript:bookProduct("] {
	margin:0 auto 10px;
	display:inline-block;
	background:#57ae45;
	border:1px solid #57ae45;
	padding:10px 20px;
	color:#ffffff;
	text-decoration:none;
	border-radius:5px;
	font-size:20px;
	font-family:'Bold';
}
.products-items-order a:hover {
	color:#57ae45;
	background:#ffffff;
}

#products-listing-loading, #products-listing-no-results, #products-listing-start {
	display:none;
	margin:0 auto 20px;
	padding:20px;
	background:#ffffff;
	box-shadow:0 0 10px rgba(0, 0, 0, .2);
	text-align:center;
	border-radius:5px;
	max-width:500px;
}
#products-listing-loading h3, #products-listing-no-results h3, #products-listing-start h3 {
	font-size:20px;
	color:#cccccc;
	text-align:center;
}
#products-listing-start { display:block; }


.products-items-prices-rivals {
	display:none;
	float:none;
	clear:both;
	margin:0 0 0 10px;
	padding:0 0 10px 0;
	overflow-y:auto;
	white-space:nowrap;
	scrollbar-width:thin;
}
.products-items-prices-rivals ul {
	margin:0;
	padding:0;
	list-style:none;
}
.products-items-prices-rivals ul li {
	display:inline-block;
	margin:0 10px 0 0;
	padding:0;
	width:150px;
	box-shadow:0 0 10px rgba(0, 0, 0, .1);
	border:1px solid rgba(0, 0, 0, .1);
	border-radius:4px;
	vertical-align:top;
	text-align:center;
}
.products-items-prices-rivals ul li span.title {
	display:block;
	height:35px;
	background-image:url('../images/stores-logo.png');
	background-repeat:no-repeat;
	background-size:80px auto;
}
.products-items-prices-rivals ul li span.price {
	display:block;
	margin:0 0 10px;
	padding:0;
	font-family: 'Bold';
	font-weight: normal;
	font-style: italic;
	font-size: 16px;
	text-align:center;
}
.products-items-prices-rivals ul li span.percent {
	display:inline-block;
	width:calc(50% - 5px);
	font-size:14px;
	font-weight:bold;
	text-align:center;
}
.products-items-prices-rivals ul li span.euro {
	display:inline-block;
	width:calc(50% - 5px);
	font-size:14px;
	font-weight:bold;
	text-align:center;
}
.products-items-prices-rivals ul li[data-store-name="norauto"] span.title { background-position:top 6px center; }
.products-items-prices-rivals ul li[data-store-name="feuvert"] span.title { background-position:top -57px center; }
.products-items-prices-rivals ul li[data-store-name="123pneu"] span.title { background-position:top -121px center; }
.products-items-prices-rivals ul li[data-store-name="google"] span.title { background-position:top -186px center; }


.products-items-prices-rivals ul li.price-less { color:green; }
.products-items-prices-rivals ul li.price-more { color:red; }

#overlay.active {
	position:fixed;
	width:100%;
	height:100%;
	background:rgba(0, 0, 0, .5);
	z-index:9999;
}

#popup-book-product {
	position:fixed;
	right:-100%;
	top:0;
	width:400px;
	height:100%;
	z-index:10000;
	background:#ffffff;
	opacity:0;
	overflow-y:auto;
	transition:all .5;
}
#popup-book-product.active {
	right:0;
	opacity:1;
	box-shadow:0 0 10px rgba(0, 0, 0, .3);
	transition:all .5;
}
#popup-book-product h3 {
	margin:0 0 20px;
	padding:10px;
	background:#172f7b;
	color:#ffffff;
	font-size:20px;
}
#popup-book-product p, #popup-book-subtotal-wrapper {
	margin:0;
	padding:0 20px 20px;
	text-align:center;
	font-size:16px;
}
#popup-book-product p:last-of-type {
	text-align:center;
	font-size:14px;
	color:#666666;
}
#popup-book-product-total-price {
	display:block;
	text-align:center;
	font-family:'Bold';
	font-size:20px;
	color:#000;
}
#popup-book-product ul {
	list-style:none;
	margin:0;
	padding:0;
	text-align:center;
}
#popup-book-product ul li {
	display:inline-block;
	margin:10px;
	padding:0;
	width:calc(50% - 30px);
	box-sizing:border-box;
	border:2px solid #172f7b;
	border-radius:100px;
}
#popup-book-product ul li label {
	display:block;
	padding:20px;
	text-align:center;
	font-family:'Bold';
	font-size:40px;
	color:#172f7b;
	cursor:pointer;
}
#popup-book-product ul li:hover, #popup-book-product ul li.active {
	color:#ffffff;
	background:#0097db;
	border-color:#0097db;
	box-shadow:0 0 10px rgba(0, 0, 0, .2);
}
#popup-book-product ul li:hover label, #popup-book-product ul li.active label {
	color:#ffffff;
}
#popup-book-product ul li input { display:none; }
p#popup-book-product-designation, p#popup-book-product-dimensions {
	font-family:'Bold';
	font-size:30px;
	color:#000000;
}
p#popup-book-product-dimensions {
	font-family:'Bold';
	font-size:20px;
	color:#333333;
}
p#popup-book-product-price {
	font-size:30px;
	font-weight:bold;
}

a#button-confirm-book-product, a#button-confirm-update-user {
	display:block;
	margin:20px 0;
	padding:10px;
	background:#57ae45;
	border:1px solid #57ae45;
	text-align:center;
	font-family:'Bold';
	font-style:italic;
	font-size:30px;
	color:#ffffff;
	text-decoration:none;
}
a#button-confirm-book-product:hover, a#button-confirm-update-user:hover {
	background:#ffffff;
	color:#57ae45;
}

#popup-book-product-table-bookings {
	width:100%;
	text-align:center;
	border-collapse:collapse;
}
#popup-book-product-table-bookings tr:first-of-type td { padding:0; }
#popup-book-product-table-bookings tr:first-of-type h3 { margin:0; }
#popup-book-product-table-bookings th, #popup-book-product-table-bookings td {
	padding:10px;
	text-align:center;
}
#popup-book-product-table-bookings th {
	background:#172f7b;
	font-family:'Bold';
	color:#ffffff;
	font-weight:normal;
}
#popup-book-product-table-bookings tr:nth-child(even) { background:rgba(0, 0, 0, .05); }
#popup-book-product-table-bookings .table-no-results, #popup-book-product-table-bookings .table-loading {
	text-align:center;
	padding:20px;
}

#add-edit-user-form {
	padding:20px;
	text-align:right;
}
#add-edit-user-form input, #add-edit-user-form select {
	width:50%;
}



#message-error-must-be-logged {
	max-width:500px;
	margin:20px auto;
	padding:20px;
	background:#ffffff;
	box-shadow:0 0 20px rgba(0, 0, 0, .2);
	text-align:center;
}



input[name="search-manufacturer-keywords"] { width:100%; }

select[name="search-width"], select[name="search-height"], select[name="search-diameter"] {
	width:calc(33.33% - 6px);
}
label.label-checkbox, label[class^="search-"] {
	display:inline-block;
	margin:7px 5px 0 0;
	padding:10px 10px 10px 30px;
	border-radius:4px;
	background:url('../images/label-radio.png') no-repeat left 8px top 12px #f2f2f2;
	border:1px solid #f2f2f2;
	font-size:16px;
	cursor:pointer;
}
label.label-checkbox:hover, label[class^="search-"]:hover {	
	border:1px solid #a9a9a9;
}
label.label-checkbox.active, label[class^="search-"].active {
	background-position:left 8px top -33px;
}
label.label-checkbox input, label[class^="search-"] input { display:none; }



#block-settings-tabs {
	list-style:none;
	margin:0;
	padding:0;
	text-align:center;
}
#block-settings-tabs li {
	display:inline-block;
	margin:0 5px 0 0;
	padding:20px 30px;
	background:#ffffff;
	font-size:18px;
	font-weight:bold;
	cursor:pointer;
	opacity:.5;
}
#block-settings-tabs li.active { opacity:1; }


div.tabs {
	display:none;
	margin:0 auto;
	padding:10px;
	max-width:800px;
	background:#ffffff;
	text-align:center;
}
div.tabs.active { display:block; }

div.tabs h2 {
	margin:0 0 10px;
	padding:10px;
	background:#172f7b;
	color:#ffffff;
}
div.tabs h3 {
	margin:10px 0;
	padding:10px;
	background:rgba(0, 0, 0, .05);
	color:#172f7b;
}

.block-settings-values {
	padding:10px;
}
.block-settings-values:nth-child(odd) { background:rgba(0, 0, 0, .05); }

.block-settings-values p {
	margin:0;
	padding:0;
	text-align:center;
	color:#666666;
	font-size:12px;
}
span.block-settings-label, input.block-settings-fields {
	display:inline-block;
	padding:10px;
	box-sizing:border-box;
	text-align:right;
	color:#172f7b;
	font-weight:bold;
	width:calc(50% - 3px);
}
input[type="text"].block-settings-fields {
	border:none;
	border-bottom:1px solid #e6e6e6;
	background:none;
	border-radius:0;
	box-shadow:none;
	text-align:left;
}
input[type="text"].block-settings-fields:focus {
	border-color:#172f7b;
}

.block-settings-submit {
	display:inline-block;
	margin:10px 0 0 auto;
	padding:10px;
	background:#172f7b;
	color:#ffffff;
	font-family:'Regular';
	font-size:18px;
	font-weight:bold;
	font-style:italic;
	text-decoration:none;
}
.block-settings-submit:hover {
	background:#0097db;
	text-decoration:none;
	color:#ffffff;
}

#table-users-list {
	width:100%;
	border-collapse:collapse;
	border:#666666;
	text-align:center;
}
#table-users-list th {
	padding:10px;
	background:#f3f3f3;
	color:#666666;
	font-weight:bold;
	text-align:center;
}
#table-users-list td { padding:10px; }


#table-users-list tr th { white-space:nowrap; }
th span[data-sort-order] {
	display:inline-block;
	width:15px;
	height:20px;
	vertical-align:sub;
	cursor:pointer;
}
th span[data-sort-order*="asc"] { background:url('../images/table-sort-order-asc.png') no-repeat center; }
th span[data-sort-order*="desc"] { background:url('../images/table-sort-order-desc.png') no-repeat center; }


#table-users-list .current-user { font-weight:bold; }

[class^="users-ranks-labels-"] {
	display:inline-block;
	padding:10px;
	border-radius:4px;
}
.users-ranks-labels-admin { background:#e59100; color:#ffffff; }
.users-ranks-labels-user { background:#a1a1a1; color:#ffffff; }


#block-add-edit-user {
	position:fixed;
	right:-100%;
	top:0;
	width:400px;
	height:100%;
	z-index:10000;
	background:#ffffff;
	opacity:0;
	transition:all .5;
}
#block-add-edit-user.active {
	right:0;
	opacity:1;
	transition:all .5;
}
img[src*="user-delete"] { 
	opacity:.3;
	filter: grayscale(100);
}
img[src*="user-delete"]:hover { 
	opacity:1;
	filter: grayscale(0);
}


