/*
 *  Copyright 2012 Anyware Services
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

/* CSS FOR RESULT SORT */

.results-for {
	font-size: 20px;
	margin: 23px 0px 30px 3px;
}

.results-sort
{
	text-align: right;	
	margin-bottom: 10px;
}

.results-sort span.label
{
	display: inline-block;
	vertical-align: middle;
}

.results-sort ul
{
	display: inline-block;
	padding: 0;
	margin: 0;
	text-align: right;
}

.results-sort ul li
{
	list-style-type: none;
	margin-left: 3px;
	display: inline-block;
    padding: 0 !important;
    vertical-align: middle;
}

.results-sort p 
{
	float: left;
	padding: 0;
	padding-top: 2px;
	margin: 0;
	text-align: right;
}

.results-sort ul li span{ font-weight: bold; }

.results-sort ul li span.current
{
	
	color: #E52518;
}

.results ul
{
	margin-left: 0 !important;
}

.results ul li
{
	list-style-type: none;
	padding: 16px;
	clear: both;
}

.results ul li img
{
	border-style: none !important;
}

.results ul li.even
{
	background-color: #F3F3F3;
}

.results .service-search-validationdate{ font-style: italic; font-size:12px; text-align: right; }

.results-sort ul li .button-wrapper
{
	text-align: center;
	font-weight: bold;
}

.results-sort ul li input.button
{
	border: 0 none !important;
	background: none !important;
	cursor: pointer;
	width: auto;
	padding: 0 !important;
	margin: 0 !important;
}

.search-hits dt
{
	padding: 5px !important;
	overflow: auto;	
}

.search-hits img
{
	border: 0 none;
}
 
.search-hits .resource img, .search-hits .resource a
{
	vertical-align: middle;
}

.search-hits .resource span
{
	font-size: 0.8em;	
	vertical-align: sub;
}

.search-result h2 {
   	font-size: 24px;
    margin: 5px 0;
}
.search-result h3 {
    font-size: 18px;
    margin: 5px 0;
}

form.search {
	padding: 0 !important;
	position:relative; 
}

form.search > div{
	background-color: #4F4D50;
	padding: 10px 50px;
	height:auto;
	position: relative;
	max-width: 800px;
}

form.search > div.command{ background-color: transparent; padding: 5px; }

form.search > div.folded{ height:60px; }
form.search > div.command .simple,
form.search > div.command .detail{ color: #E52518; border-width: 0; background-color: transparent; }

form.search > div.command .simple{ display: none; }

form.search > div:not(.command)::after{
	width: 0;
	height: 0;
	border-color: transparent #4f4d50;
    border-style: solid;
    border-width: 0 0 60px 50px;
	position: absolute;
	content: "";
	right:-50px;
	top:0;
/* 	margin-right:-20px; */
	display: block;
}

form.search > div.folded::after{ border-bottom-width:60px; }
form.search > div.notfolded::after{ border-bottom-width:370px; }

.ametys-cms-service.search form.search .detail .word2,
.ametys-cms-service.search form.search .simple .word2{ font-weight: bold; }

.ametys-cms-service.search form.search > div > .field,
.ametys-cms-service.search form.search > div.folded > .field{ display: inline!important; }
.ametys-cms-service.search form.search > div.folded > .field .field-end,
.ametys-cms-service.search form.search > div.notfolded > .field .field-end{ display: none; }
.ametys-cms-service.search form.search .field .input .text{ width: 100%; }

.ametys-cms-service.search form.search > div > .advanced-search,
.ametys-cms-service.search form.search > div.folded > .advanced-search,
.ametys-cms-service.search form.search > div.folded > fieldset.checkbox-list{ position: absolute; left:-2000px; }
.ametys-cms-service.search form.search > div.notfolded > .advanced-search,
.ametys-cms-service.search form.search > div.notfolded > fieldset.checkbox-list{ position: static; }

.ametys-cms-service.search form.search > div > .advanced-search .advanced-search-title{ 
	display: block; 
	font-size:18px; 
	font-weight:bold; 
	color: #fff;
	margin-bottom:20px;
}

.ametys-cms-service.search form.search > div > .advanced-search .advanced-search-title span:before{ content: "+"; vertical-align: super; margin-right:5px; }


.ametys-cms-service.search form.search .field .label{ color: #ffffff; text-align:left; }


.ametys-cms-service.search form.search > div > .field .label,
.ametys-cms-service.search form.search > div > .field .input{
	display: inline-block;
	width:40%;
	margin-right:20px;
}

.ametys-cms-service.search form.search > div > .field .label{ width: 20%;}

.ametys-cms-service.search form.search .advanced-search .field{
	width:50%;
}

.ametys-cms-service.search form.search .advanced-search .field .label{ display: inline; }

.ametys-cms-service.search form.search .field .input .text, .ametys-cms-service.search form.search .field select{ border-radius: 5px; padding:8px 15px; margin-bottom: 15px; }

.ametys-cms-service.search form.search .button-wrapper{ display: inline; }

.ametys-cms-service.search form.search input[type=submit]{ background-color: #E52518; text-transform: uppercase; margin: 0; }
.ametys-cms-service.search form.search input[type=submit]:hover,
.ametys-cms-service.search form.search input[type=submit]:focus{ color: #E52518; background-color: #ffffff; }

.ametys-cms-service.search form.search span.error {
	margin-left: 170px;
}

.ametys-cms-service.search form.search fieldset.checkbox-list {
	border:none;
	float:right; 
	width:40%;
	margin-left:10%;
}

.ametys-cms-service.search form.search fieldset.checkbox-list .field{ width: 100%; }
.ametys-cms-service.search form.search fieldset.checkbox-list legend {
	border-width:0; 
	color:#fff;
	font-size:14px;
	margin-bottom:5px;
	font-weight:bold;
/*     margin-left: -5px; */
/*     margin-top: 5px; */
/*     position: absolute; */
}

.ametys-cms-service.search form.search fieldset.checkbox-list .field .label{
	margin:0;
}
.ametys-cms-service.search form.search fieldset.checkbox-list .field {
	max-width: 900px;
/* 	width: 40%; */
/*     min-width: 245px; */
    margin-left: auto;
    margin-right: 0;
    margin-bottom: 15px;
}
.ametys-cms-service.search form.search fieldset.checkbox-list .field .input {
	float: left;
	width: 25px;
	min-width: 25px;
	margin-left:20px;
}

.ametys-cms-service.search .button-wrapper{ display: inline; }

.ametys-cms-service.search h2{ display: none; }

.ametys-cms-service.search .relevance{ float: right; }
.ametys-cms-service.search .relevance-percent{ position: absolute; left: -2000px; }
.ametys-cms-service.search .fa-star,
.ametys-cms-service.search .fa-star-o{ color: #E52518; margin-left:5px; }

form.search input.checkbox {
	width: auto;
	margin-left: 120px;
}
@media (max-width: 991px){
	.ametys-cms-service.search form.search > div::after{ display: none; }
}

@media (max-width: 767px){ 
	form.search > div{ padding-left:5px; padding-right:5px; }
	.ametys-cms-service.search form.search fieldset.checkbox-list, 
	.ametys-cms-service.search form.search .advanced-search .field{ width:100%;  margin-right: 5px; }
	.ametys-cms-service.search form.search fieldset.checkbox-list{ float: left; }
	form .captcha button, form input[type="submit"]{ padding-left:5px; padding-right:5px; }
	.ametys-cms-service.search form.search > div > .field .label, 
	.ametys-cms-service.search form.search > div > .field .input{ margin-right:0; }
	.ametys-cms-service.search form.search > div > .field .label{ width:25%; }
	.ametys-cms-service.search form.search > div > .field .input{ width: 50%; margin-right:0; }
	.ametys-cms-service.search form.search .button-wrapper{ width: 10%; display: inline-block; margin-left:5px; }
	.ametys-cms-service.search form.search input[type="submit"]{ text-indent:40px; background: #E42618 url('/skins/Multi-gmm/resources/img/search.png') no-repeat 5px center; }
	.ametys-cms-service.search form.search .folded input[type="submit"]{ width: 40px; }
	.ametys-cms-service.search form.search input[type="submit"]:hover{ background-color: #E42618; color: #ffffff; }
	.ametys-cms-service.search form.search fieldset.checkbox-list{ margin-left: 0; }
}

.no-result {
	padding: 10px 0 10px 10px;
}

.search-hits dd 
{
	margin-left: 0;
	margin-bottom: 10px;
	padding: 0 10px 5px 10px;
}

.search-hits dd span.site 
{
	font-size: 0.9em;
	font-style: italic;
}

.search-hits img.icon, .results img.icon
{
	margin-right: 10px;
	vertical-align: middle;
}

.search div.date 
{
	font-size: 0.9em;
	font-style: italic;
	text-align: right;
}

.ctypes-filter ul.ctypes 
{
	list-style-type: none;
	margin: 0;
	padding: 10px 0;
	text-align: center;
}

.ctypes-filter ul.ctypes li 
{
	display: inline-block;
    padding: 0 !important;
    vertical-align: middle;
    margin: 0 5px;
}

ul.ctypes li span.button-wrapper
{
	height: auto !important;
}

.ctypes-filter ul.ctypes li span 
{
	vertical-align: middle;
}

.results-sort ul li .button,
.ctypes-filter ul.ctypes li .button
{
	margin-bottom: auto !important;
	margin: auto !important;
	vertical-align: middle;
	display: inline-block;
}

.results-sort ul li input,
.ctypes-filter ul.ctypes li input
{
	font-size: inherit !important;
	font-style: inherit !important;
	font-weight: inherit !important;
    margin: 0 !important;
	padding: 0 !important;
	cursor: pointer;
	width: auto !important;
	height: auto !important;
	border: 0 none !important;
	background: none !important;
}

.ctypes-filter ul.ctypes .button
{
	display: inline-block;
	vertical-align: middle;
}

.ctypes-filter p.number 
{
	float: right;
	margin: 0;
}

.ctypes-filter p.number span 
{
	font-size: 1.8em;
}

	.results-sort ul li input,
	.ctypes-filter ul.ctypes li input
	{
		margin: -5px -3px;
	}

/* Faceted search */
.facet {
    margin-bottom: 10px;
}

.facet .facet-label {
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #DDDDDD;
    line-height: 2em;
}

.facet a.reset {
    font-weight: normal;
    float: right;
}
.facet a.reset .left {
    float: left;
    cursor: pointer;
    padding-right: 18px;
    background: url('/skins/Multi-gmm/resources/img/services/list/delete_16.png') right 5px no-repeat;
}

.facet ul.options li.option {
    list-style: none;
    background: none;
    padding: 0;
    line-height: 1.2em;
    font-size: 1em;
}

.facets-criteria {
    margin-bottom: 20px;
    padding: 5px 10px;
    border: 1px solid #DDDDDD;
}

.facets-criteria .facet {
    min-height: 50px;
    padding-top: 5px;
}

#ametys-cms-zone-default .facets-criteria .facet {
	float: left;
    width: 32%;
    margin: 4px;
}

.facets-criteria a.see-all {
	font-style:italic;
}

/* Geocode */
.search.search-map div.map
{
	margin: 20px auto;
	border-width: 1px;
	border-style: solid;
	width: 100%;
}

.search.search-map div.results li.hit.page div.geoloc-info
{
	float: left;
}

.search.search-map div.results li.hit.page div.geoloc-info img.geo-pin
{
	border: none;
	margin: 0 8px 0 0;
	position: relative;
	top: -5px;
}

/* DIRECTORY PLUGIN : Recherche */
.ametys-cms-service.directory form.search > div{ min-height: 300px; }
.ametys-cms-service.directory form.search > div::after{ border-bottom-width: 300px; }
.ametys-cms-service.directory fieldset{ width:100%; }
.ametys-cms-service.directory fieldset .field .input{ width:20px; display: inline-block; }
.ametys-cms-service.directory fieldset .field .label{ display: inline-block; }
.ametys-cms-service.directory fieldset:after{ display: block; content: " "; clear: both; }

.ametys-cms-service.directory form.search > div > .field {
    display: inline-block !important;
    width: 30%;
}

.ametys-cms-service.directory form.search > div > .field{ margin-right: 1%; }
.ametys-cms-service.directory form.search > div > .field .label{ width: 100%; display: block; margin-bottom:0; }
.ametys-cms-service.directory form.search > div > .field .input,
.ametys-cms-service.directory form.search > div > .field .input input{ width: 100%; }
.ametys-cms-service.directory form.search > div > .field select{ width:100%; padding-top: 4px; padding-bottom: 4px; }

.ametys-cms-service.directory form.search > div > .button-wrapper{ display: inline-block; clear:both; width:50%; }

.ametys-cms-service.directory form.search > div > .field select#slct1{ max-width:calc(100% - 35px); display: inline-block; }
.ametys-cms-service.directory form.search > div > .field.affectation{ width: 100%; }

#resAffectation table,
#resAffectation table a:link,
#resAffectation table a:visited{ color: #ffffff; }

.resAffectation{ 
	color: #ffffff;
	position:relative; 
	display: inline-block;
	margin-left:5px; 
}

.resAffectation i{ 
	border: 1px solid #eeeeee;
    border-radius: 2px;
    display: inline-block;
    padding: 6px 0;
    text-align: center;
    width: 30px;
}

.resAffectation #resAffectation table{ 
	position:absolute; 
	left:-2000px; 
}

.resAffectation:hover #resAffectation table,
#resAffectation table{
	left:5px; 
	top:5px; 
	background-color: #F2F2F2; 
	border:1px solid #666666; 
	color: #333333; 
	border-radius: 5px;
}
#resAffectation table td{ padding:10px; }
#resAffectation table td > span{ width: auto!important; white-space: nowrap;}
#resAffectation table br{ display: none; }
#resAffectation table u{ font-weight: bold; text-decoration: none; }
#resAffectation table a:link,
#resAffectation table a:visited{ color: #333333; }

.ametys-cms-service.directory form.search .result-report{ margin: 20px 0; }
.ametys-cms-service.directory .results table{ margin-bottom:20px; }
.ametys-cms-service.directory .results table th{ text-align:left;  }
.ametys-cms-service.directory .results table thead th{ background-color: #4F4D50; color: #ffffff; padding-top:8px; padding-bottom: 8px; }
.ametys-cms-service.directory .results table tbody th,
.ametys-cms-service.directory .results table tbody td{ vertical-align: top; }
.ametys-cms-service.directory .results table tbody .even th,
.ametys-cms-service.directory .results table tbody .even td{ background-color: #F2F2F2; padding-top: 8px; padding-bottom: 8px; }
.ametys-cms-service.directory .results table tbody td a:link:not(.mailto),
.ametys-cms-service.directory .results table tbody td a:visited:not(.mailto){ color: #E52518; }
.ametys-cms-service.directory form.search > .pager{ text-align:right; float:right; }

/* DIRECTORY PLUGIN : Fiche */
.ametys-cms-service.directory dl{ background-color: #4F4D50; color: #ffffff; padding: 20px; }
.ametys-cms-service.directory dl dt, .ametys-cms-service.directory dl dd{ display: inline-block; width:20%; }
.ametys-cms-service.directory dl dd{ width:80%; }
.ametys-cms-service.directory dl a:link,
.ametys-cms-service.directory dl a:visited{ color: #ffffff; }

@media (max-width: 991px){
	.ametys-cms-service.directory form.search > div > .field{ width: 100%; margin-right: 0; }
	.resAffectation:hover #resAffectation table{ left:auto; right:0; }
	.ametys-cms-service.directory form.search > .pager{ float: none; }
}

@media (max-width: 767px){ 
