/* MineJobs central enhanced-select contract. */
.minejobs-dashboard-modern select.form-control-chosen,
.minejobs-dashboard-modern select.chosen-select,
.minejobs-dashboard-pro select.form-control-chosen,
.mje-profile-page select.form-control-chosen {
  width: 100%;
  max-width: 100%;
}

.minejobs-dashboard-modern .chosen-container,
.minejobs-dashboard-pro .chosen-container,
.mje-profile-page .chosen-container {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  direction: rtl;
  font-family: inherit;
}

.minejobs-dashboard-modern .chosen-container-single .chosen-single,
.minejobs-dashboard-modern .chosen-container-multi .chosen-choices,
.minejobs-dashboard-pro .chosen-container-single .chosen-single,
.minejobs-dashboard-pro .chosen-container-multi .chosen-choices,
.mje-profile-page .chosen-container-single .chosen-single,
.mje-profile-page .chosen-container-multi .chosen-choices {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d8e4f5 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.minejobs-dashboard-modern .chosen-container-single .chosen-single,
.minejobs-dashboard-pro .chosen-container-single .chosen-single,
.mje-profile-page .chosen-container-single .chosen-single {
  display: flex;
  align-items: center;
  padding: 0 14px !important;
  line-height: 1.7 !important;
}

.minejobs-dashboard-modern .chosen-container-multi .chosen-choices,
.minejobs-dashboard-pro .chosen-container-multi .chosen-choices,
.mje-profile-page .chosen-container-multi .chosen-choices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 7px 10px !important;
  overflow: visible;
}

.minejobs-dashboard-modern .chosen-container-multi .chosen-choices li,
.minejobs-dashboard-pro .chosen-container-multi .chosen-choices li,
.mje-profile-page .chosen-container-multi .chosen-choices li {
  float: none !important;
}

.minejobs-dashboard-modern .chosen-container-multi .chosen-choices li.search-choice,
.minejobs-dashboard-pro .chosen-container-multi .chosen-choices li.search-choice,
.mje-profile-page .chosen-container-multi .chosen-choices li.search-choice {
  margin: 0 !important;
  padding: 7px 30px 7px 12px !important;
  border: 1px solid #cfe1ff !important;
  border-radius: 999px !important;
  background: #eef5ff !important;
  color: #176cff !important;
  box-shadow: none !important;
  font-size: 12px;
  line-height: 1.5;
}

.minejobs-dashboard-modern .chosen-container-multi .chosen-choices li.search-field,
.minejobs-dashboard-pro .chosen-container-multi .chosen-choices li.search-field,
.mje-profile-page .chosen-container-multi .chosen-choices li.search-field {
  flex: 1 1 180px;
  min-width: 140px;
  margin: 0 !important;
}

.minejobs-dashboard-modern .chosen-container-multi .chosen-choices li.search-field input[type="text"],
.minejobs-dashboard-pro .chosen-container-multi .chosen-choices li.search-field input[type="text"],
.mje-profile-page .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
  width: 100% !important;
  min-height: 32px;
  margin: 0 !important;
  padding: 0 5px !important;
  color: #63758e !important;
}

.minejobs-dashboard-modern .chosen-container .chosen-drop,
.minejobs-dashboard-pro .chosen-container .chosen-drop,
.mje-profile-page .chosen-container .chosen-drop {
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  border: 1px solid #d8e4f5 !important;
  border-radius: 16px !important;
  background: #fff;
  box-shadow: 0 18px 38px rgba(17,52,93,.14) !important;
  overflow: hidden;
  z-index: 10020;
}

.minejobs-dashboard-modern .chosen-container .chosen-results,
.minejobs-dashboard-pro .chosen-container .chosen-results,
.mje-profile-page .chosen-container .chosen-results {
  max-height: 300px;
  padding: 8px;
  overflow-y: auto;
}

.minejobs-dashboard-modern .chosen-container .chosen-results li,
.minejobs-dashboard-pro .chosen-container .chosen-results li,
.mje-profile-page .chosen-container .chosen-results li {
  padding: 9px 11px;
  border-radius: 11px;
  line-height: 1.7;
}

.minejobs-dashboard-modern .chosen-container .chosen-results li.highlighted,
.minejobs-dashboard-pro .chosen-container .chosen-results li.highlighted,
.mje-profile-page .chosen-container .chosen-results li.highlighted {
  background: #176cff !important;
  color: #fff !important;
}

.minejobs-dashboard-modern .chosen-container-active .chosen-single,
.minejobs-dashboard-modern .chosen-container-active .chosen-choices,
.minejobs-dashboard-pro .chosen-container-active .chosen-single,
.minejobs-dashboard-pro .chosen-container-active .chosen-choices,
.mje-profile-page .chosen-container-active .chosen-single,
.mje-profile-page .chosen-container-active .chosen-choices {
  border-color: #8fb7ff !important;
  box-shadow: 0 0 0 4px rgba(23,108,255,.08) !important;
}

.minejobs-enhanced-select-fallback {
  display: block !important;
  min-height: 50px;
  padding: 8px 12px;
  border: 1px solid #d8e4f5;
  border-radius: 16px;
  background: #fff;
}

.has-minejobs-enhanced-select,
.has-minejobs-enhanced-select > div {
  overflow: visible !important;
}

/* r220: hide the native control only after Chosen is confirmed ready. */
select[data-minejobs-enhanced-ready="1"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

select.minejobs-enhanced-select-fallback {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  min-height: 50px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
}

.has-minejobs-enhanced-select > .btn-group,
.has-minejobs-enhanced-select .multiselect-native-select > .btn-group {
  display: none !important;
}
