/*/ Polylog SA @ 2023 /*/

/*/ Label /*/

label {
	display: block;
	margin: 0;
	padding: 0 0 8px;
	cursor: pointer;
	font-weight: 400;
	font-size: inherit;
	line-height: 22px;
}

label em {
	display: inline-block;
	line-height: inherit;
	margin-left: 10px;
	color: var(--red);
}

label.input-listdynamic {
	font-size: 9px;
	padding: 0 0 2px 12px;
}

label.input-listdynamic em {
	font-size: inherit !important;
	margin-left: 5px !important;
	display: inline-block !important;
}

label.input-large {
	text-align: center;
}

label.input-uploader {
	display: inline-block;
}

label.input-uploader .fwk-linky {
	margin: 0;
	background: var(--gray1);
}

.fwk-input label span {
	float: left;
	margin: -7px 0 -7px -12px;
	font-size: 18px; /* avant 16 */
	width: 40px;
	height: 40px;
	border-radius: var(--round1);
	text-align: center;
	line-height: 38px;
	color: var(--white);
}

.fwk-input span.fwk-input-alike-span {
	float: left;
	width: calc(100% - 78px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fwk-input span.fwk-input-alike-spanbis {
	display: block;
	margin: 0 0 10px;
	min-height: 20px;
}

.fwk-input .fwk-input-alike label.fwk-input-colored {
	padding: 0;
}

.fwk-input .fwk-input-alike label.fwk-input-colored span {
	margin: -7px -3px -7px 0;
	width: 32px;
	height: 38px;
	line-height: 38px;
	font-size: 18px;
}

.fwk-input-alike .fwk-tag {
	margin: 1px 7px 1px -3px;
	background: var(--white);
}

.fwk-input label div {
	font-weight: 400;
}

/*/ Case à cocher dans un champ label /*/

.fwk-input-innertoggle {
	float: right;
	border-radius: var(--round1);
}

.fwk-input-innertoggle div span {
	line-height: inherit !important;
	font-size: 16px;
	margin: 0;
	height: auto;
}

/*/ Fieldset /*/

.fwk-input {
	position: relative;
	margin: 0 0 10px;
}

.fwk-input-size-25 {
	float: left;
	width: calc(25% - 10px) !important;
	margin-right: 10px;
}

.fwk-input-size-50 {
	float: left;
	width: calc(50% - 20px) !important;
	margin-right: 10px;
	margin-left: 10px;
}

.fwk-input-size-33 {
	float: left;
	width: calc(33% - 20px) !important;
	margin-right: 10px;
	margin-left: 10px;
}

.fwk-input-size-100 {
	width: calc(100% - 20px) !important;
	margin-right: 10px;
	margin-left: 10px;
}

.fwk-table .fwk-input {
	margin: 0;
}

.fwk-table .fwk-input span.fwk-inactive {
	color: var(--gray1) !important;
}

.fwk-input.input-nomargin {
	margin-top: 0;
	margin-bottom: 10px;
}

.fwk-input.input-desktopmargin {
	margin-top: 30px;
}

.fwk-input.input-toolbar {
	margin: 5px !important;
	display: inline-block;
	float: left;
}

.fwk-input.input-toolbar .fwk-input-alike {
	border-color: transparent !important;
	background: var(--white);
}

.fwk-input.input-toolbar .fwk-input-alike span.fwk-inactive {
	color: var(--gray1) !important;
}

/*/ Champ /*/

.fwk-input input,
.fwk-table input,
.fwk-input select,
.fwk-table select,
.fwk-input-alike,
label.fwk-input-alike,
textarea {
	background: var(--gray1);
	border: 1.5px solid transparent;
	border-radius: var(--round1);
	color: var(--dark1);
	font-size: inherit;
	font-weight: 400;
	font-family: inherit;
	-webkit-appearance: none;
	-moz-appearance:none;
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 15px;
	min-height: 44px;
	line-height: 25px !important;
	position: relative;
}

label.fwk-input-alike:has(span.fwk-active) {
	/* - à conserver - */
}

.fwk-input-alike.alike-square {
	width: 80px;
	height: 80px;
	line-height: 80px !important;
	text-align: center;
	font-size: 24px;
	color: var(--main);
	padding: 0;
}

.fwk-input-alike.alike-autofill {
	background: none;
}

.fwk-input-alike.alike-square.alike-inwall {
	float: left;
	margin-right: 15px;
	margin-bottom: 15px;
}

.fwk-input-alike b {
	font-weight: 400;
}

.fwk-input-alike i {
	line-height: inherit;
	float: left;
	margin-right: 10px;
}

.fwk-input-alike.alike-disabled {
	background: var(--mid1-light);
	border-color: transparent;
	color: var(--fixdark);
	cursor: not-allowed;
}

.fwk-input-alike.alike-disabled .fa-pen-slash {
	color: var(--mid1);
}

.fwk-input-alike.alike-disabled span.fwk-active {
	color: var(--mid1) !important;
}

.fwk-input-alike.alike-disabled span.fwk-inactive {
	color: var(--white) !important;
}

.input-error {
	background: var(--red-light) !important;
	color: var(--fixdark) !important;
}

/*/ Boutons dans un champ de groupe /*/

.fwk-input-linky {
	float: right;
	margin: -5px -12px -5px 15px;
	min-width: 35px;
	height: 35px;
	line-height: 35px;
	font-size: 13px;
	border-radius: var(--round1);
	text-align: center;
	color: var(--fixlight);
	background-color: var(--main);
	background-position: center;
	background-size: cover;
	position: relative;
	z-index: 5;
}

.fwk-input-linky.scol-transparent {
	color: transparent;
}

.fwk-input-linky.input-linky-unit {
	margin: 35px 5px -5px 15px;
	font-size: 11px;
	background-color: var(--white);
	border: 4px solid var(--white);
	line-height: 27px;
	color: var(--dark1);
	position: absolute;
	top: 0;
	right: 0;
}

/*/ Zone de clic principal dans un champ de groupe /*/

.fwk-input-alike-click {
	position: absolute;
	z-index: 0;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.fwk-input-alike:hover:has(.fwk-input-alike-click),
input:hover,
select:hover,
textarea:hover {
	background: var(--gray2);
}

select {
	cursor: pointer;
}

/*/ Grand champ (pour un code par exemple) /*/

.fwk-input.input-large {
	text-align: center;
}

.fwk-input.input-large label {
	display: none;
}

.fwk-input.input-large input {
	margin: 15px auto 0;
	min-height: 60px;
	padding: 20px;
	text-align: center;
	max-width: 250px;
	font-size: 16px;
}

/*/ Champs dans les tableaux /*/

.fwk-table .fwk-input-alike,
.fwk-table input,
.fwk-table select,
.fwk-table .fwk-linky.linky-uploader {
	background-color: var(--white);
}

.fwk-table .fwk-linky.linky-uploader {
	margin: 5px 10px 5px 0;
}

.fwk-table .fwk-input-alike .fwk-linky {
	/*box-shadow: 2px 2px 20px 4px var(--white);*/
}

.fwk-table .fwk-input-linky {
	/*box-shadow: 0 0 0 4px var(--white);*/
}

/*/ Champ de sélection d'heure ou de date /*/

.fwk-input-timely {
	float: left;
	position: relative;
}

.fwk-input-timely-coma {
	float: left;
	height: 40px;
	width: 20px;
	line-height: 40px;
	text-align: center;
	background: var(--white);
}

.fwk-input-timely input:first-child {
	width: calc(50% - 10px);
	text-align: center;
	float: left;
	border-radius: var(--round1) var(--round3) var(--round3) var(--round1);
}

.fwk-input-timely input:last-child {
	width: calc(50% - 10px);
	text-align: center;
	float: right;
	border-radius: var(--round3) var(--round1) var(--round1) var(--round3);
}

/*/ Champs /*/

input[type='checkbox'],
input[type='radio'],
input[type='file'] {
	display: none;
}

textarea {
	min-height: 114px;
	max-height: 342px;
	min-width: 100%;
	max-width: 100%;
	resize: both;
	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;
	border-radius: var(--round2);
}

textarea.fwk-editor-code {
	font-family: 'Monaco';
	height: 700px;
	min-height: 700px;
	margin-top: 15px;
	background: var(--dark1);
	color: var(--white);
	border-color: var(--dark1);
}

input[type='date'] {
	padding: 0 15px !important;
	line-height: 33px !important;
	height: 40px !important;
	position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: auto;
	height: auto;
	color: transparent;
	background: transparent;
	cursor: pointer !important;
}

input[type="date"]::-webkit-inner-spin-button {
	z-index: 1;
}

input[type="date"]::-webkit-clear-button {
	z-index: 1;
}

input:focus,
select:focus,
textarea:focus:not(.fwk-editor-code) {
	background: var(--gray2);
}

::placeholder,
.fwk-placeholder,
::-webkit-input-placeholder {
	color: var(--mid1);
	line-height: inherit;
}

.input-error::placeholder, .input-error .fwk-placeholder,
.input-error::-webkit-input-placeholder {
	color: var(--red);
}

/*/ Signature /*/

.fwk-input-sign {
	background: var(--gray1);
	border-radius: var(--round2);
	padding: 3px;
}

.fwk-input-sign canvas {
	display: block;
	background: var(--fixlight);
	width: 100% !important;
	border-radius: 17px;
	height: auto;
	touch-action: none;
}

.fwk-input-sign textarea {
	display: none;
}

.fwk-input-sign div {
	width: 100%;
	height: 200px;
	margin: 0;
	display: block;
	-ms-touch-action: none;
	touch-action: none;
}

/*/ Curseur /*/

input[type=range] {
	-webkit-appearance: none;
	width: 250px !important;
	height: 10px !important;
	background: var(--white) !important;
	border-radius: 5px;
	outline: none;
	transition: background 0.3s ease-in-out;
}

input[type=range]::-webkit-slider-thumb {
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	background: var(--main);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.3s ease;
}

input[type=range]::-moz-range-thumb {
	box-shadow: none !important;
	width: 20px;
	height: 20px;
	background: var(--gray2);
	border-radius: 50%;
	cursor: pointer;
	border: none;
}

input[type=range]:hover {
	background: #ccc;
}

/*/ Clavier numérique /*/

.fwk-input-trackpin {
	text-align: center;
	margin-top: 40px;
}

.fwk-input-trackpin-code {
	line-height: 70px;
	font-size: 70px;
	letter-spacing: 5px;
	height: 70px;
	margin: 0 auto 70px;
	width: 270px;
	color: var(--gray2);
	border-radius: var(--round1);
}

.fwk-input-trackpin-num {
	display: inline-block;
	margin: 15px;
	height: 70px;
	width: 70px;
	line-height: 70px;
	font-size: 28px;
	text-align: center;
	border-radius: var(--round1);
	background: var(--gray2);
	user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.fwk-input-trackpin-num[fwk-input-pin-num="e"] {
	opacity: 0;
}
