﻿/* Űrlapmezők, kapcsolók, legördülők, dátumválasztó. */

.nice-select.open .list {
	margin-top: 0.4rem;
	border: 2px solid var(--primary);
	max-height: 300px;
	overflow: auto;
}

.nice-select {
	border: 2px solid var(--primary) !important;
	color: var(--primary) !important;
}

.form-check-input {
	clear: left;
}

.form-switch.form-switch-sm {
	margin-bottom: 0.5rem;
}

	.form-switch.form-switch-sm .form-check-input {
		height: 1rem;
		width: calc(1rem + 0.75rem);
		border-radius: 2rem !important;
	}

.form-switch.form-switch-md {
	margin-bottom: 1rem;
}

	.form-switch.form-switch-md .form-check-input {
		height: 1.5rem;
		width: calc(2rem + 0.75rem);
		border-radius: 3rem !important;
	}

.form-switch.form-switch-lg {
	margin-bottom: 1.5rem;
}

	.form-switch.form-switch-lg .form-check-input {
		height: 2rem;
		width: calc(3rem + 0.75rem);
		border-radius: 4rem !important;
	}

.form-switch.form-switch-xl {
	margin-bottom: 2rem;
}

	.form-switch.form-switch-xl .form-check-input {
		height: 2.5rem;
		width: calc(4rem + 0.75rem);
		border-radius: 5rem !important;
	}

.form-check-input {
	margin-right: 0.5rem;
}

.form-switch {
	padding-left: 0 !important;
}

.form-check .form-check-input {
	margin-left: 0 !important;
}

label {
	font-size: 0.94rem;
	font-weight: 600;
	line-height: 1.25rem;
	color: var(--font-color);
}

input,
textarea,
.nice-select,
.input-group-text {
	border: 2px solid var(--primary) !important;
	color: black !important;
	border-radius: 0.25rem !important;
}

.form-control:focus,
.form-select:focus {
	box-shadow: none;
}

.form-select {
	background-image: url('../images/select-arrow.svg');
	border: 2px solid var(--primary) !important;
	color: black !important;
	padding-top: 0 !important;
	padding-bottom:0 !important;
}

.error {
	border: 2px solid var(--error-color) !important;
	color: var(--error-color) !important;
	background-color: var(--error-transparent) !important;
}

.toggle-password {
	cursor: pointer;
	background-color: transparent;
	border-left: none !important;
}

.form-check-input:checked {
	background-color: var(--primary);
}

.threestate-na {
	background-color: var(--light-yellow);
	color: var(--font-color);
}

	.threestate-na:hover {
		background-color: var(--light-yellowhover);
	}

.threestate-yes {
	background-color: var(--dark-green);
	color: white;
}

	.threestate-yes:hover {
		background-color: var(--dark-greenhover);
	}

.threestate-no {
	background-color: var(--light-green);
	color: white;
}

	.threestate-no:hover {
		background-color: var(--light-greenhover);
	}

.form-control {
	padding: 1px 6px;
	height: 28px;
}

.form-horizontal .control-label {
	padding-top: 2px;
	margin-top: 2px;
}

.searchBox {
	float: none;
	display: inline-block;
	vertical-align: bottom;
}

.form-control:focus {
	-webkit-box-shadow: 0 0 5px var(--focus-shadow) inset;
	-moz-box-shadow: 0 5px 4px var(--focus-shadow) inset;
	box-shadow: 0 0 5px var(--focus-shadow) inset;
}

.checkbox-search {
	width: 24px;
	height: 24px;
	padding: 10px 10px 10px 10px;
	display: inline-block;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	outline: none !important;
	border: 1px solid var(--focus-shadow);
	-webkit-box-shadow: 0 0 0 var(--focus-shadow) inset;
	-moz-box-shadow: 0 0 0 var(--focus-shadow) inset;
	box-shadow: 0 0 0 var(--focus-shadow) inset;
	background-color: white;
}

	.checkbox-search:focus {
		-webkit-box-shadow: 0 0 5px var(--focus-shadow) inset;
		-moz-box-shadow: 0 5px 4px var(--focus-shadow) inset;
		box-shadow: 0 0 5px var(--focus-shadow) inset;
	}

.bootstrap-datetimepicker-widget.dropdown-menu {
	background-color: var(--white);
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
	color: darkgreen;
}

.readonly {
	pointer-events: none;
	background-color: var(--gray-200);
}

.control-label {
	text-align: left !important;
}

.label-normal {
	font-weight: normal !important;
}

.requiredStar {
	color: red;
	margin-left: 5px;
}

.big-checkbox {
	width: 24px !important;
	height: 24px !important;
}

.required-field::after {
	content: "*";
	color: red;
	margin-left: 4px;
}

/* Naptár ikon a datetimepicker-es mezők jobb oldalán (wwwroot/js/datetimepickerIcon.js teszi rá a .dtp-input osztályt) */
input.dtp-input,
input.form-control.dtp-input,
input.form-control.dtp-input.is-invalid,
input.form-control.dtp-input.is-valid {
	padding-right: 2rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z'/%3E%3Cpath d='M4 7h2v2H4zm3 0h2v2H7zm3 0h2v2h-2zm-6 3h2v2H4zm3 0h2v2H7z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.6rem center;
	background-size: 1rem 1rem;
	cursor: pointer;
}
