@use "colors" as *;
@use "fonts" as *;
@use "@nebular/theme/styles/theming" as *;
@use "@nebular/theme/styles/themes/default" as *;
@use "umbrella-theme" as *;

.nb-theme-umbrella-theme [nbInput] {
	background-color: $white;
	border: solid 1px $cool-grey !important;

	&:hover {
		background-color: $ice-blue-two !important;
	}

	&:focus {
		background-color: $white !important;
	}

	&:disabled {
		background-color: $ice-blue;
		border-radius: 0;
		border: 1px solid #8C8C8C !important;
	}

}

.nb-theme-umbrella-theme [nbInput].status-basic {
	height: 40px;
	background-color: $white;

	&.ng-invalid {
		&:not(.ng-pristine) {
			border-color: red !important;
			background-color: $light-pink-two;

			&::-webkit-input-placeholder {
				color: $cool-grey
			}

			&::-moz-placeholder {
				color: $cool-grey
			}

			&::-ms-input-placeholder {
				color: $cool-grey
			}
		}
	}
}

nb-radio-group {
	display: flex;
	flex-wrap: nowrap;

	&.ng-invalid {
		&:not(.ng-pristine) {
			& label span.outer-circle {
				background-color: $light-pink-two !important;
			}
		}

		& nb-radio label {
			padding-right: 0 !important;
			margin-right: 23px !important;
		}
	}
}

textarea {
	&.ng-invalid {
		&.invalid {
			border-radius: 0 !important;
			border: 1px solid red !important;
			background-color: $light-pink-two !important;
		}
	}
}


nb-radio.status-primary .native-input {

	&:enabled {
		& + .outer-circle {
			background-color: #cccccc !important;
			border-color: #585858 !important;
		}

		&:hover + .outer-circle {
			background-color: $light-grey-green !important;
			border-color: #00662C !important;
			box-shadow: 0 0 2px 5px #E6E6E6 !important;
		}

		&:focus + .outer-circle {
			background-color: #cccccc !important;
			border-color: #585858 !important;
			box-shadow: 0 0 2px 5px #E6E6E6 !important;
		}

		&:checked {
			& + .outer-circle {
				border-color: $dekra-500 !important;
			}

			&:hover + .outer-circle {
				border-color: #60b584 !important;
			}
		}
	}

	&:disabled {
		& + .outer-circle {
			background-color: #e6e6e6 !important;
			border-color: #8c8c8c !important;
		}

		&:checked ~ .inner-circle {
			background-color: #8c8c8c !important;
		}
	}
}

.validation-message {
	@include C1-Caption1-Left9-Danger;
	color: $alert;
	margin-top: 0.5rem;
}

.info-message {
	@include C1-Caption1-Left9-Danger;
	color: $info;
	margin-top: 0.5rem;
}

nb-checkbox {
	.custom-checkbox {
		border-color: #8c8c8c !important;
		border-radius: 0 !important;
	}

	&.status-danger {
		.custom-checkbox {
			border-color: $alert !important;
			border-radius: 0 !important;
		}
	}
}

.nb-theme-umbrella-theme nb-checkbox.status-primary .native-input:disabled + .custom-checkbox nb-icon {
	color: #8C8C8C !important;
}

.label-row {
	margin-bottom: 5px;
}

nb-card textarea {
	max-width: 100% !important;
}

.form-row {
	display: flex;
	flex-wrap: nowrap;
	width: 100%;

	& .form-input {
		width: 100%;

		&:nth-child(2) {
			margin-left: 30px;
		}
	}
}

.ng-select .ng-select-container .ng-value-container .ng-value, .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {
	color: #585858 !important;
}

@media screen and (max-width: 991px) {

	.form-row {
		flex-wrap: wrap;

		& .form-input {

			&:nth-child(2) {
				margin-left: 0;
			}

			&:not(:last-child) {
				margin-bottom: 20px;
			}
		}
	}
}
