.stc-form-field,
.form-group {
	display: block;
	margin-bottom: 20px;
	position: relative;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="search"]),
input.form-control:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="search"]),
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="search"]),
.form-control-cellinput:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="search"]),
select,
textarea,
select.form-control,
textarea.form-control {
	border: none;
	/* background-color: transparent; */
	background-color: var(--color-secondary-pale);
	border-bottom: 2px solid var(--color-primary);
	padding: 5px 7px;
	display: block;
	width: 100%;
	border-radius: 0;
	font-family: var(--text-font);
	font-size: 16px;
	box-shadow: none;
    position: relative;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="search"]),
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="search"]),
.form-control-cell input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="search"]),
select {
	height: 30px;
}

input:not([type="checkbox"]):focus:not([type="radio"]):focus:not([type="submit"]):not([type="button"]):focus,
.form-group input:not([type="checkbox"]):focus:not([type="radio"]):focus:not([type="submit"]):not([type="button"]):focus,
.form-control-cell input:not([type="checkbox"]):focus:not([type="radio"]):focus:not([type="submit"]):not([type="button"]):focus,
select:focus,
textarea:focus,
textarea.form-control:focus {
	outline: 2px solid var(--color-primary);
	border-bottom: none;
}

textarea,
textarea.form-control {
	min-height: 100px;
	background-color: var(--color-secondary-pale);
}

select {
	color: var(--color-primary);
	font-family: var(--text-font);
	font-size: 16px;
}

::placeholder {
	color: var(--color-text-grey);
	opacity: 0.7;
	text-decoration: none;
	font-weight: normal;
}

.stc-form-field  span,
.form-group label,
.form-control-cell .info,
.picklist-cell .info {
	font-weight: normal;
	display: inline-block;
    padding-bottom: 0;
}

.stc-form-field.required:before
/* .form-group label.required:before,
.form-control-cell .info.required:before,
.picklist-cell .info.required:before */ {
	display: inline-block;
	content: "*";
	color: var(--color-red);
 position: absolute;
    left: -8px;
}


.stc-form-field__checkbox {
	display: flex;
	align-items: flex-start;
}

.stc-form-field__checkbox.required > span, .stc-form-field--has-radios-container.required > span {
display: inline-block;
}

.stc-form-field__checkbox.required > span:before, .stc-form-field--has-radios-container.required > span:before {
display: inline-block;
	content: "*";
	color: var(--color-red);
   
}



.stc-form-field__checkbox input {
	margin-right: 5px;
	margin-top: 4px;
}

.input-group .paymentError{
    background-color: var(--color-accent);
    border: 1px solid;
    border-color: var(--color-accent);
    padding: 5px;
    border-radius: 5px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    color: var(--color-primary);
}

.input-append.input-group.datetimepicker span.input-group-addon,
.input-group-addon {
	border: none;
	background-color: transparent;
	box-shadow: none;
}

.input-group{
    width: 100%;
}

.input-group-addon {
	position: absolute;
	right: 10px;
	color: var(--color-primary);
}

.input-group-btn{
    position: absolute;
    right: 0;
    top: 0;
    width: unset;
}

.input-group-btn .btn{
    padding: 5px 7px;
    background: lightblue;
    border-bottom: 2px solid blue;
    height: 30px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom-color: var(--color-primary);
    margin-left: 0px;
    z-index: 3 !important;
}

.msos-input-container{
    padding: 0 !important;
}

.msos-input-container input:focus{
    outline: none;
    border-bottom: 2px solid var(--color-primary) !important;
}

.msos-caret-button{
    background-color: var(--color-secondary-pale) !important;
    border-bottom: 2px solid var(--color-primary) !important;
    height: 30px;
}

.msos-container:not(.msos-disabled),
.msos-container:not(.msos-disabled).msos-active{
    border: 0 !important;
    box-shadow: none !important;
}

.input-group-btn .btn:hover{
    background-color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    color: var(--color-accent);
}

.input-group-btn .btn:focus{
    outline: 2px solid var(--color-primary);
}

.stc-form-field--has-radios {
	display: flex;
	column-gap: 10px;
	flex-wrap: wrap;
}

.stc-form-field--has-radios.stacked {
	flex-direction: column;
	row-gap: 10px;
}

.table-fluid:not(.table-condensed) tbody tr td{
    display: table-cell !important;
    width: unset !important;
    
}

@supports not (aspect-ratio: 1/1) {
	.stc-form-field--has-radios {
		column-gap: 0;
	}

	.stc-form-field--has-radios > * {
		margin-right: 10px;
	}

	.stc-form-field--has-radios.stacked {
		row-gap: 0;
	}

	.stc-form-field--has-radios.stacked > * {
		margin-bottom: 10px;
	}
}

.stc-form-field--has-radios {
	margin-bottom: 20px;
}

.stc-form-field--has-radios label,
.stc-form-field--has-radios span {
	margin-bottom: 0;
}

.stc-custom-select-text {
	padding: 5px;
	border-bottom: 2px solid var(--color-primary);
	display: flex;
	justify-content: space-between;
	cursor: pointer;
}

.stc-custom-select-text:after {
	content: "\f077";
	font-family: "fontAwesome";
	transition: transform 0.2s ease-in-out;
}

.stc-custom-select select {
	height: 200px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	display: none;
}

.stc-custom-select select option {
	padding: 5px;
	cursor: pointer;
}

.stc-custom-select select option:first-of-type {
	background-color: var(--color-border-grey);
	color: var(--color-white);
	cursor: auto;
}

.stc-custom-select select option:checked {
	background-color: var(--color-secondary);
	color: var(--color-white);
}

.stc-custom-select select option:before {
	content: "\f00c";
	font-family: "fontAwesome";
	display: inline-block;
	margin-right: 10px;
	color: transparent;
	border: 1px solid var(--color-primary);
}

.stc-custom-select select option:first-of-type:before {
	border-color: var(--color-white);
}

.stc-custom-select select option:checked:before {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.stc-custom-select.open .stc-custom-select-text:after {
	transform: rotate(180deg);
}

.stc-custom-select.open select {
	display: block;
}

.stc-form-checkbox-field {
	display: flex;
	align-items: flex-start;
}

.stc-form-checkbox-field input {
	flex-shrink: 0;
}

.stc-large-checkbox {
	min-width: 20px;
	width: 50px;
	min-height: 20px;
	height: 30px;
	flex-shrink: 0;
}


.crmEntityFormView .cell {
    padding: 1rem 20px;
    padding-left: 0;
}

.crmEntityFormView fieldset {
    margin-bottom: 1.5rem !important;
}

.crmEntityFormView fieldset legend h3{
    margin-bottom: 0px !important;
}

.crmEntityFormView div.description.below{
    font-size: 13px;
    margin-top: 5px;
}

button.form-close{
    color: white !important;
}

.entity-form h2{
    display: none !important;
}

html[dir=ltr] .crmEntityFormView .tab .tab-column{
    padding-left: 0 !important;
}

@media screen and (max-width: 600px) {
	.stc-large-checkbox {
		width: 30px;
		height: 30px;
	}
}

.stc-form-field input:read-only {
	border: none !important;
	padding: 0 !important;
}


.flexed-label-span  {
    display: flex;
    align-items: flex-start;
}

.flexed-label-span > span:first-child {
    flex-shrink: 0;
    margin-right: 8px;
}

.password-criteria{
    display: none;
    margin-bottom: 15px;
    padding: 15px;
    border-left: 2px solid var(--color-primary);;
    border-radius: 0;
    background-color: var(--color-secondary-pale);
}

@media screen and (max-width: 767px) {
    .form-group .col-sm-4,
    .form-group .col-sm-8{
        padding-left: 0;
        padding-right: 0;
    }
    
    .crmEntityFormView .cell {
        padding: 0;
    }
}

@media screen and (min-width: 767px) {
    .password-criteria{
        max-width: 66.66666667%;
        margin-right: 0;
        margin-left: auto;
    }
    .password-criteria.col-12{
        max-width: unset;
        margin: 0 auto;
    }

}