/*------- Forms-elements -------*/

.form-control {
	display: block;
	width: 100%;
	padding: 0.375rem 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.3;
	color: $color;
	background-color: $white;
	background-clip: padding-box;
	border: 1px solid #ecebf1;
	transition: none;
	border-radius: 5px;
	&:disabled::placeholder{
		opacity: .5;
		}
  }
  .form-control::placeholder {
	  color:#b3bdca;
  }
  .select2-container .select2-selection--single .select2-selection__rrightered {
	padding-inline-start: 20px !important;
	padding-inline-end: 20px;
  }
  
  .select2-container--default {
	.select2-selection--single {
	  background-color: $white;
	  border: 1px solid $border !important;
	  border-radius: 4px;
	}
  
	&.select2-container--focus .select2-selection--multiple {
	  color: #495057;
	  background-color: $white;
	  border-color: #4eceb2;
	  outline: 0;
	  box-shadow: none;
	}
  
	.select2-selection--multiple {
	  background-color: white;
	  border: 1px solid $border !important;
	  border-radius: 4px;
	  cursor: text;
	}
  
	.select2-search--dropdown .select2-search__field {
	  border: 1px solid $border !important;
	  border-radius: 4px;
	  outline: 0;
	}
  
	.select2-selection--multiple .select2-selection__choice {
	  background-color: #f0f0f2 !important;
	  border: 1px solid #ebeef4 !important;
	  outline: 0;
	}
  }
  
  .form-control {
	outline: 0;
  }
  
  .select2-container--default .select2-selection--single {
	outline: 0;
  
	&:focus {
	  outline: 0;
	}
  }
  
  @media screen and (prefers-reduced-motion: reduce) {
	.form-control {
	  transition: none;
	}
  }
  
  .form-control {
	&::-ms-expand {
	  background-color: transparent;
	  border: 0;
	}
  
	&:focus {
	  color: $color;
	  background-color: $white;
	  outline: 0;
	  box-shadow: none;
	}
  
	&::-webkit-input-placeholder, &::-moz-placeholder, &:-ms-input-placeholder, &::-ms-input-placeholder {
	  color: #b3bdca;
	  opacity: 1;
	}
  }
  
  .search-input {
	&::-webkit-input-placeholder, &::-moz-placeholder, &:-ms-input-placeholder, &::-ms-input-placeholder {
	  color: #b3bdca;
	  opacity: 1;
	}
  }
  
  input {
	&::-webkit-input-placeholder, &::-moz-placeholder, &:-ms-input-placeholder, &::-ms-input-placeholder {
	  color: #b3bdca;
	  opacity: 1;
	}
  }
  
  .form-control {
	opacity: 1;
  
	&:disabled {
	  background-color: #e9e9eb;
	  opacity: 1;
	}

	&[readonly] {
		background-color: #f3f3f7;
		opacity: 1;
	}
  }
  
  select.form-control:not([size]):not([multiple]) {
	height: 2.375rem;
  }
  
  .select2-container .select2-selection--single {
	height: 2.375rem !important;
  }
  
  .select2-container--default .select2-selection--single {
	.select2-selection__rrightered {
	  color: #444;
	  line-height: 35px !important;
	}
  
	.select2-selection__arrow {
	  height: 2.3rem !important;
	}
  }
  
  select.form-control:focus::-ms-value {
	color: #495057;
	background-color: $white;
  }
  
  .form-control-file, .form-control-range {
	display: block;
	width: 100%;
  }
  
  .col-form-label {
	padding-block-start: calc(0.375rem + 1px);
	padding-block-end: calc(0.375rem + 1px);
	margin-block-end: 0;
	font-size: inherit;
	line-height: 1.6;
  }
  
  .col-form-label-lg {
	padding-block-start: calc(0.5rem + 1px);
	padding-block-end: calc(0.5rem + 1px);
	font-size: 1.125rem;
	line-height: 1.44444444;
  }
  
  .col-form-label-sm {
	padding-block-start: calc(0.25rem + 1px);
	padding-block-end: calc(0.25rem + 1px);
	font-size: 0.875rem;
	line-height: 1.14285714;
  }
  
  .form-control-sm {
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	line-height: 1.14285714;
	border-radius: 3px;
  }
  
  .input-group-sm > {
	.form-control {
	  padding: 0.25rem 0.5rem;
	  font-size: 0.875rem;
	  line-height: 1.14285714;
	  border-radius: 3px;
	}
  }
  
  select.form-control-sm:not([size]):not([multiple]) {
	height: calc(1.8125rem + 2px);
  }
  
  .input-group-sm > {
	select.form-control:not([size]):not([multiple]) {
	  height: calc(1.8125rem + 2px);
	}
  }
  
  .form-control-lg {
	padding: 0.5rem 1rem;
	font-size: 1.125rem;
	line-height: 1.44444444;
	border-radius: 3px;
  }
  
  .input-group-lg > {
	.form-control {
	  padding: 0.5rem 1rem;
	  font-size: 1.125rem;
	  line-height: 1.44444444;
	  border-radius: 3px;
	}
  }
  
  select.form-control-lg:not([size]):not([multiple]) {
	height: calc(2.6875rem + 2px);
  }
  
  .input-group-lg > {
	select.form-control:not([size]):not([multiple]) {
	  height: calc(2.6875rem + 2px);
	}
  }
  
  .form-group {
	margin-block-end: 1rem;
  }
  
  .form-text {
	display: block;
	margin-block-start: 0.25rem;
  }
  
  .form-row {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	margin-inline-end: -5px;
	margin-inline-start: -5px;
  
	> {
	  .col, [class*="col-"] {
		padding-inline-end: 5px;
		padding-inline-start: 5px;
	  }
	}
  }
  
  .form-check {
	position: relative;
	display: block;
	padding-inline-start: 1.25rem;
  }
  
  .custom-control-input {
	position: absolute;
	margin-block-start: 0.3rem;
	margin-inline-start: -1.25rem;
  
	&:disabled ~ .custom-control-label {
	  color: #505662;
	}
  }
  
  .custom-control-label {
	margin-block-end: 0;
  }
  
  .valid-feedback {
	display: none;
	width: 100%;
	margin-block-start: 0.25rem;
	font-size: 87.5%;
	color: #2dce89;
  }
  
  .valid-tooltip {
	position: absolute;
	inset-block-start: 100%;
	z-index: 5;
	display: none;
	max-width: 100%;
	padding: .5rem;
	margin-block-start: .1rem;
	font-size: .875rem;
	line-height: 1;
	color: $white;
	background-color: rgba(94, 186, 0, 0.8);
	border-radius: .2rem;
  }
  
  .was-validated .form-control:valid, .form-control.is-valid, .was-validated .custom-select:valid, .custom-select.is-valid {
	border-color: #198754;
  }
  
  .was-validated .form-control:valid:focus, .form-control.is-valid:focus, .was-validated .custom-select:valid:focus, .custom-select.is-valid:focus {
	border-color: #2dce89;
	box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.25);
  }
  
  .was-validated .form-control:valid ~ {
	.valid-feedback, .valid-tooltip {
	  display: block;
	}
  }
  
  .form-control.is-valid ~ {
	.valid-feedback, .valid-tooltip {
	  display: block;
	}
  }
  
  .was-validated .custom-select:valid ~ {
	.valid-feedback, .valid-tooltip {
	  display: block;
	}
  }
  
  .custom-select.is-valid ~ {
	.valid-feedback, .valid-tooltip {
	  display: block;
	}
  }
  
  .was-validated .custom-control-input:valid ~ .custom-control-label, .custom-control-input.is-valid ~ .custom-control-label {
	color: #2dce89;
  }
  
  .was-validated .custom-control-input:valid ~ {
	.valid-feedback, .valid-tooltip {
	  display: block;
	}
  }
  
  .custom-control-input.is-valid ~ {
	.valid-feedback, .valid-tooltip {
	  display: block;
	}
  }
  
  .was-validated .custom-control-input:valid ~ .custom-control-label, .custom-control-input.is-valid ~ .custom-control-label {
	color: #2dce89;
  }
  
  .was-validated .custom-control-input:valid ~ .custom-control-label::before, .custom-control-input.is-valid ~ .custom-control-label::before {
	background-color: #9eff3b;
  }
  
  .was-validated .custom-control-input:valid ~ {
	.valid-feedback, .valid-tooltip {
	  display: block;
	}
  }
  
  .custom-control-input.is-valid ~ {
	.valid-feedback, .valid-tooltip {
	  display: block;
	}
  }
  
  .was-validated .custom-control-input:valid:checked ~ .custom-control-label::before, .custom-control-input.is-valid:checked ~ .custom-control-label::before {
	background-color: #78ed00;
  }
  
  .was-validated .custom-control-input:valid:focus ~ .custom-control-label::before, .custom-control-input.is-valid:focus ~ .custom-control-label::before {
	box-shadow: 0 0 0 1px #f0f0f2, 0 0 0 2px rgba(94, 186, 0, 0.25);
  }
  
  .invalid-feedback {
	display: none;
	width: 100%;
	margin-block-start: 0.25rem;
	font-size: 87.5%;
	color: #dc0441;
  }
  
  .invalid-tooltip {
	position: absolute;
	inset-block-start: 100%;
	z-index: 5;
	display: none;
	max-width: 100%;
	padding: .5rem;
	margin-block-start: .1rem;
	font-size: .875rem;
	line-height: 1;
	color: $white;
	background-color: rgba(205, 32, 31, 0.8);
	border-radius: .2rem;
  }
  
  .was-validated .form-control:invalid, .form-control.is-invalid, .was-validated .custom-select:invalid, .custom-select.is-invalid {
	border-color: #e04e5c;
  }
  
  .was-validated .form-control:invalid:focus, .form-control.is-invalid:focus, .was-validated .custom-select:invalid:focus, .custom-select.is-invalid:focus {
	border-color: #dc0441;
	box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.25);
  }
  
  .was-validated .form-control:invalid ~ {
	.invalid-feedback, .invalid-tooltip {
	  display: block;
	}
  }
  
  .form-control.is-invalid ~ {
	.invalid-feedback, .invalid-tooltip {
	  display: block;
	}
  }
  
  .was-validated .custom-select:invalid ~ {
	.invalid-feedback, .invalid-tooltip {
	  display: block;
	}
  }
  
  .custom-select.is-invalid ~ {
	.invalid-feedback, .invalid-tooltip {
	  display: block;
	}
  }
  
  .was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.is-invalid ~ .custom-control-label {
	color: #dc0441;
  }
  
  .was-validated .custom-control-input:invalid ~ {
	.invalid-feedback, .invalid-tooltip {
	  display: block;
	}
  }
  
  .custom-control-input.is-invalid ~ {
	.invalid-feedback, .invalid-tooltip {
	  display: block;
	}
  }
  
  .was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.is-invalid ~ .custom-control-label {
	color: #dc0441;
  }
  
  .was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.is-invalid ~ .custom-control-label::before {
	background-color: #ec8080;
  }
  
  .was-validated .custom-control-input:invalid ~ {
	.invalid-feedback, .invalid-tooltip {
	  display: block;
	}
  }
  
  .custom-control-input.is-invalid ~ {
	.invalid-feedback, .invalid-tooltip {
	  display: block;
	}
  }
  
  .was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.is-invalid:checked ~ .custom-control-label::before {
	background-color: #e23e3d;
  }
  
  .was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.is-invalid:focus ~ .custom-control-label::before {
	box-shadow: 0 0 0 1px #f0f0f2, 0 0 0 2px rgba(205, 32, 31, 0.25);
  }
  
  .form-inline {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-flow: row wrap;
	flex-flow: row wrap;
	-ms-flex-align: center;
	align-items: center;
  
	.form-check {
	  width: 100%;
	}
  }
  
  @media (min-width: 576px) {
	.form-inline {
	  label {
		display: -ms-flexbox;
		display: flex;
		-ms-flex-align: center;
		align-items: center;
		-ms-flex-pack: center;
		justify-content: center;
		margin-block-end: 0;
	  }
  
	  .form-group {
		display: -ms-flexbox;
		display: flex;
		-ms-flex: 0 0 auto;
		flex: 0 0 auto;
		-ms-flex-flow: row wrap;
		flex-flow: row wrap;
		-ms-flex-align: center;
		align-items: center;
		margin-block-end: 0;
	  }
  
	  .form-control {
		display: inline-block;
		width: auto;
		vertical-align: middle;
	  }
  
	  .input-group, .custom-select {
		width: auto;
	  }
  
	  .form-check {
		display: -ms-flexbox;
		display: flex;
		-ms-flex-align: center;
		align-items: center;
		-ms-flex-pack: center;
		justify-content: center;
		width: auto;
		padding-inline-start: 0;
	  }
  
	  .custom-control-input {
		position: relative;
		margin-block-start: 0;
		margin-inline-end: 0.25rem;
		margin-inline-start: 0;
	  }
  
	  .custom-control {
		-ms-flex-align: center;
		align-items: center;
		-ms-flex-pack: center;
		justify-content: center;
	  }
  
	  .custom-control-label {
		margin-block-end: 0;
	  }
	}
  }
  
  .select2-container--focus {
	outline: 1px auto $border;
  }
  
  .ms-choice {
	outline: 0;
  
	&:focus {
	  outline: 0;
	}
  }
  
  .select2-lg {
	.select2-container .select2-selection--single {
	  height: 2.875rem !important;
	}
  
	.select2-container--default .select2-selection--single .select2-selection__rrightered {
	  line-height: 32px !important;
	}
  }
  
  .select2-sm {
	.select2-container .select2-selection--single {
	  height: 1.775rem !important;
	}
  
	.select2-container--default .select2-selection--single {
	  .select2-selection__rrightered {
		line-height: 27px !important;
	  }
  
	  .select2-selection__arrow b {
		inset-block-start: 35% !important;
		inset-inline-start: 60%;
	  }
	}
  }
  
  select.form-control {
	&.select-lg {
	  height: 46px !important;
	  padding: 10px 16px !important;
	  font-size: 17px !important;
	  line-height: 1.3333333 !important;
	  border-radius: 4px !important;
	}
  
	&.select-sm {
	  height: 30px !important;
	  padding: 0px 10px 1px 10px !important;
	  line-height: 1 !important;
	  border-radius: 4px !important;
	}
  }
  
  input {
	&[type=date].form-control:focus, &[type=datetime-local].form-control:focus, &[type=month].form-control:focus, &[type=time].form-control:focus, &[type=date].form-control:hover, &[type=datetime-local].form-control:hover, &[type=month].form-control:hover, &[type=time].form-control:hover {
	  -webkit-appearance: none;
	  -moz-appearance: none;
	  appearance: none;
	  outline: 0;
	  box-shadow: none;
	}
  }

  .form-check-input {
	&:checked {
		background-color: $primary;
		border-color: $primary;
	}
	&:focus {
		box-shadow: none;
	}
 }
  /*------- Forms-elements End-------*/