/*/ Polylog SA @ 2023 /*/

/*/ Label /*/

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

label em {
	display: inline-block;
	line-height: inherit !important;
	font-size: 8px;
	margin-left: 10px;
	color: var(--main);
	}

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

label.input-uploader {
	display: inline-block;
	margin: 0 0 15px;
	}	

label.input-uploader .fwk-linky {
	margin: 0;
	background: var(--gray1);
	}	
		
.fwk-input label span { 
	float: left; 
	margin: -7px 0 -7px -12px; 
	font-size: 14px;
	width: 36px;
	height: 36px;
	border-radius: var(--round1);
	text-align: center;
	line-height: 36px;
	color: var(--white);
	}
	
.fwk-input span.fwk-input-alike-span {
	float: left;
	width: calc(100% - 70px);
	white-space: nowrap; 
	overflow: hidden;
	text-overflow: ellipsis;
	}

.fwk-input span.fwk-input-alike-spanbis {
	width: calc(100% - 30px);
	margin: -1px 0;
	}
	
.fwk-input .fwk-input-alike label .fwk-input-colored span {
	margin: 0; 
	width: 26px;
	height: 22px;
	line-height: 22px;
	}
	
.fwk-input-alike .fwk-tag {
	margin: 1px 7px 1px -3px; 
	background: var(--white);
	}
	
.fwk-input label div {
	font-weight: 400;
	}
	
/*/ Fieldset /*/

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

.fwk-input.input-nomargin {
	margin-top: -5px;
	margin-bottom: 15px;
	}
	
.fwk-input.input-desktopmargin {
	margin-top: 35px;
	}
	
.fwk-input.input-toolbar {
	margin: 5px !important;
	display: inline-block;
	float: right;
	}
	
/*/ 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: none;
	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: 7px 12px;
	min-height: 36px;
	line-height: 22px !important;
	position: relative;
	}

label.fwk-input-alike:has(span.fwk-active) { 
	/* - à conserver - */
	}
	
.fwk-input-alike b {
	font-weight: 400;
	}

.fwk-input-alike i {
	line-height: inherit;
	float: right; 
	margin-left: 5px;
	}
	
.fwk-input-alike.alike-disabled {
	background: var(--orange-light);
	color: var(--fixdark);
	cursor: default;
	}

.fwk-input-alike.alike-disabled span.fwk-active {
	color: var(--orange) !important;
	}
	
.fwk-input-alike.alike-disabled span.fwk-inactive {
	color: var(--white) !important;
	}
	
.input-error {
	background-color: var(--red-light) !important;
	}
		
/*/ Boutons dans un champ de groupe /*/

.fwk-input-linky {
	float: right;
	margin: -4px -9px -4px 13px;
	min-width: 30px;
	height: 30px;
	line-height: 30px;
	font-size: inherit;
	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;
	}

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

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

/*/ 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: 0 auto;
	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 {
	background-color: var(--white);
	}

.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: 36px;
	width: 20px;
	line-height: 36px;
	text-align: center;
	background: var(--gray2);
	}
	
.fwk-input-timely input:first-child {
	width: 50px;
	text-align: center; 
	float: left;
	border-radius: var(--round1) 0 0 var(--round1);
	}
	
.fwk-input-timely input:last-child {
	width: 50px; 
	text-align: center; 
	float: right;
	border-radius: 0 var(--round1) var(--round1) 0;
	}

/*/ Champs /*/

input[type='checkbox'], 
input[type='radio'], 
input[type='file'] { 
	display: none;
	}
	
textarea { 
	min-height: 100px;
	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: 650px; 
	min-height: 650px; 
	margin-top: 15px;
	background: var(--dark1);
	color: var(--white);
	border-color: var(--dark1);
	}
	
input[type='date'] { 
	padding: 0 15px !important;
	line-height: 29px !important;
	height: 36px !important;
	}
	
input[type="date"] {
	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-color: var(--gray2);
	}

::placeholder, .fwk-placeholder {
	color: var(--mid1);
	}

/*/ Signature /*/

.fwk-input-sign {
	background: var(--gray1);
	border-radius: var(--round2);
	padding: 5px;
	}
	
.fwk-input-sign canvas{
	background: var(--white);
	width: 100% !important;
	border-radius: 12px;
	height: auto;
	}
	
.fwk-input-sign textarea {
	display: none;
	}
	
.fwk-input-sign div {
	width: 100%; 
	height: 200px;
	margin: 0;
	display: block;
	-ms-touch-action: none;
	}

/*/ Editeur /*/

.fwk-editor-panel {
	border: 2px solid var(--gray1);
	display: inline-block;
	border-radius: 30px;
	padding: 5px;
	margin-top: 15px;
	}
	
.fwk-editor-panel a {
	display: inline-block;
	width: 30px;
	height: 30px;
	line-height: 30px;
	border-radius: 30px;
	text-align: center;
	background: var(--gray1);
	color: var(--dark1);
	margin: 2px;
	}

.fwk-editor-panel a:hover {
	opacity: 0.7
	}
		
.fwk-editor-content {
	min-height: 200px;
	overflow: hidden;
	white-space: break-spaces;
	overflow-wrap: break-word;
	}
	
.fwk-editor-content b {
	font-weight: bold;
	}
	
.fwk-editor-content i {
	font-style: italic;
	}
	
.fwk-editor-content u {
	color: inherit !important;
	text-decoration: underline;
	}

.fwk-editor-content strike {
	text-decoration: line-through;
	}
		
	