.select {
  padding: 0 20px;
}

.select2-container {
  margin-left: -1px;
}

.select2-container--default .select2-selection--single {
  border-color: #ccc;
  border-radius: 0;
  height: 40px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  color: #666;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
  right: 11px;
}

.select2-container .select2-selection--single .select2-selection__rendered,
.select2-results__option {
  padding-left: 20px;
  padding-right: 40px;
}

.select2-container--open .select2-dropdown {
  left: 1px;
}

.page-content {
  min-height: 90vh;
}

#login-form {
  margin: 20vh auto;
  width: 300px;
  float: none;
  border-right: none;
}

#login-form fieldset {
  margin: 0;
}

#login-form fieldset input:not([type="checkbox"]) {
  width: 100%;
  max-width: 260px;
}

#login-form .button {
  margin-top: 0;
  margin-right: 0;
}

#login-form .icon-loading {
  float: right;
  margin-right: 10px;
  width: 30px;
  height: 30px;
  background: url(/bv/images/loader.gif) no-repeat center center;
}

#search {
  float: none;
  width: 100%;
  max-width: 1190px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  z-index: 100;
  background-color: #eee;
}

#search.on-top {
  position: fixed;
  top: 0;
  max-width: 76vw;
}

#search .search-row {
  margin-bottom: -10px;
}

#search .search-row + .search-row {
  margin-top: 10px;
}

#search .search-row-advanced {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
#search .search-row-advanced.invisible {
  display: none !important;
}

#search .search-row-advanced.hidden {
  display: none;
}

#search .search-row-field {
  display: flex;
}

#search .search-row-field:last-child {
  margin-bottom: 10px;
}

#search .search-row-field-name {
  float: left;
  margin-right: 5px;
  line-height: 40px;
  color: #333;
}

#search .search-expand {
  display: inline-block;
  vertical-align: top;
  padding: 2px 0;
  margin-right: 30px;
}

#search .search-expand-cog {
  display: block;
  width: 32px;
  height: 32px;
  background: url(/bv/images/cog.png) no-repeat 0 0;
  cursor: pointer;
}

#search .search-source-btn {
  width: 100%;
  margin-right: 0;
}

.recent {
  margin: 20px 0;
  color: #777;
  text-align: center;
}

.recent-item {
  display: inline-block;
  vertical-align: middle;
  padding: 6px 10px 9px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
}

.recent-item:hover {
  background-color: #f5f5f5;
}

.results {
  display: flex;
  flex-flow: row wrap;
  min-width: 970px;
  position: relative;
  margin-bottom: 20px;
  padding: 20px 0;
  box-sizing: border-box;
}

.results.loading {
  height: 200px;
  background: url(/bv/images/search.gif) no-repeat center center;
}

.results:empty:not(.loading) {
  display: none;
}

@media (max-width: 1190px) {
  .results {
    left: 0;
  }
}

.results__total {
  flex-basis: 100%;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

.results-loading {
  width: 100%;
  height: 100px;
  background: url(/bv/images/search.gif) no-repeat center center;
}

.results__item {
  flex-grow: 1;
  border: 1px solid #EBEBEB;
  height: 300px;
  margin: 0 5px 10px;
  box-sizing: border-box;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 105% auto;
}

.results__item:last-of-type {
  max-width: 470px;
}

.results__item a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  font-size: 0;
  text-align: center;
  overflow: hidden;
}

.results__item img {
  width: 100%;
  height: 106%;
  object-fit: contain;
}

img.results__item-hiddenimg {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}

.results__item:hover .results__over,
.results__item:active .results__over {
  display: flex;
}

.results__over {
  display: none;
  justify-content: space-between;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 30%);
}

.results__over-title {
  text-align: left;
  font-size: 18px;
  padding: 8px;
  color: white;
  text-shadow: 0 1px 1px #0009;
  max-height: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.results__over-bottom {
  margin: 8px;
}

.photo-buttons {
  float: right;
}

.photo-button {
  display: inline-block;
  vertical-align: middle;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.6);
  background-position: center center;
  background-repeat: no-repeat;
}

.photo-button.disabled {
  opacity: 0.5;
  background-image: url(/bv/images/loader.gif);
}

.photo-button + .photo-button {
  margin-left: 4px;
}

.photo-button:not(.disabled):hover,
.photo-button:not(.disabled):active {
  background-color: rgba(0, 0, 0, 0.8);
}

.photo-button-open {
  background-image: url(/bv/images/icon-search.png);
}

.photo-button-similar {
  background-image: url(/bv/images/icon-gallery.png);
}

.photo-button-download {
  background-image: url(/bv/images/icon-download.png);
}

.photo-button-email {
  background-image: url(/bv/images/icon-email.png);
}

.photo-button-contributor {
  background-image: url(/bv/images/icon-contributor.png);
}



.pagination .onpage-select {
  float: right;
}

.pagination .onpage-select > span {
  float: left;
  margin-right: 8px;
  line-height: 40px;
  color: #333;
}

.pagination .onpage-select select {
  padding: 0 20px;
}

.users-table {
  margin-bottom: 50px;
}

.users-table th,
.users-table td {
  padding: 3px 10px;
}

.users-table td {
  color: #666;
}

.user-quota-input {
  width: 80px;
}

.users-button {
  float: none;
  margin: 0;
}

.popup-email {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 300;
}

.popup-email.popup-loading .popup-email-content {
  width: 60px;
  height: 50px;
  background: white url(/bv/images/loader.gif) no-repeat center center;
  font-size: 0;
}

.popup-email.popup-loading .popup-email-content > * {
  display: none;
}

.popup-email-content {
  border: 1px solid #ccc;
  background-color: white;
  color: #666;
  line-height: 1.2;
  padding: 15px 20px;
  width: 450px;
  margin: 10% auto;
  box-sizing: border-box;
}

.popup-email-content input {
  width: 100%;
  margin: 10px 0 15px;
  box-sizing: border-box;
}

.popup-email-content .button {
  float: none;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}

.popup-email-content .button-cancel {
  box-shadow: none;
  border-color: #ccc;
  background-image: linear-gradient(to bottom, #f9f9f9 0%, #f9f9f9 100%);
  color: #666;
}

.zapsidebar.sidebar {
  top: 0;
  padding-top: 74px;
  box-sizing: border-box;
}

.zapsidebar.sidebar .logopanel {
  position: absolute;
  top: 0 !important;
  height: 74px !important;
  padding: 0 !important;
  background: #181a1d !important;
  z-index: 300;
  font-size: 0;
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
}

.sidebar .logopanel h1 {
  display: block;
  padding-top: 10px;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
}

.sidebar .logopanel h1 a {
  background: url(/store/Front-Office/themes/default/images/logo-zappeur-monochrome.png) no-repeat 50% 0;
  height: 54px;
}

.sidebar .nav-sidebar {
  margin-top: 10px;
}

.sidebar .nav-sidebar > li {
  margin-bottom: 5px;
}

div.topbar {
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

div.topbar .header-right .header-menu .username {
  max-width: 200px;
}

.header-usermenu-link i {
  color: #232323;
  font-size: 20px;
}

.header-usermenu-link a:hover i,
.header-usermenu-link a:active i {
  color: #666;
}

.sidebar .sidebar-inner .sidebar-top.big-img .user-image img {
  width: 130px;
  height: 130px;
  object-fit: cover;
}

.main-content .page-content .breadcrumb li a {
  color: #AAF200;
}

.btn-primary {
  background-color: #AAF200;
}

.btn-primary:hover,
.btn-primary:active {
  background-color: #9ad50d;
}

.sidebar .sidebar-inner .nav-sidebar > li.active > a,
.sidebar .sidebar-inner .nav-sidebar > li.nav-parent.active > a:hover {
  background-color: #AAF200;
}

.sidebar-collapsed div.topbar .header-left .topnav .menutoggle,
.sidebar-collapsed .sidebar .sidebar-inner .nav-sidebar > li.nav-hover.nav-active.active > a,
.sidebar-collapsed .sidebar .sidebar-inner .nav-sidebar > li.nav-hover.active > a span:not(.badge) {
  background: #AAF200 !important;
}

.progress {
  position: relative;
  -webkit-box-shadow: none;
  background: #ebedef;
  box-shadow: none;
  height: 6px;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: visible;
  margin-top: 25px;
  margin-bottom: 15px;
}

.progress .progress-info {
  position: absolute;
  top: -20px;
  width: 100%;
  font-size: 12px;
  padding-bottom: 12px;
}

.progress-info .progress-value {
  opacity: 0;
  float: right;
  -webkit-transition: opacity .6s ease;
  -o-transition: opacity .6s ease;
  transition: opacity .6s ease;
}

progress {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 100%;
  width: 100%;
  text-align: left;
  color: #121212;
  border: none;
  border-radius: 2px;
  -webkit-box-shadow: none;
  box-shadow: none;
  line-height: 2rem;
  float: left;
  overflow: hidden;
  -webkit-transition: width .6s ease;
  -o-transition: width .6s ease;
  transition: width .6s ease;
}

progress::-webkit-progress-bar {
  background-color: white;
}

progress::-webkit-progress-value {
  background-color: #AAF200;
}

progress::-moz-progress-bar {
  background-color: #AAF200;
}

.sidebar-remaining {
  -webkit-transform: translateY(calc(-100% - 45px));
  -moz-transform: translateY(calc(-100% - 45px));
  transform: translateY(calc(-100% - 45px));
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.62);
}

.sidebar-inner.mCS_destroyed + .sidebar-remaining {
  display: none;
}
