/* ═══════════════════════════════════════════
   Compatibilité entre kdCommun/app.css (reset global)
   et les popups/formulaires legacy de Solignat (.boxGlobal)
   ═══════════════════════════════════════════ */

/* Restaure le style natif des inputs dans les popups legacy */
.boxGlobal input[type="text"],
.boxGlobal input[type="number"],
.boxGlobal input[type="date"],
.boxGlobal input[type="time"],
.boxGlobal input[type="email"],
.boxGlobal input[type="tel"],
.boxGlobal input[type="password"],
.boxGlobal textarea,
.boxGlobal select {
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 14px;
	background: #fff;
	color: #1f2937;
	min-height: 32px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.boxGlobal input[type="text"]:focus,
.boxGlobal input[type="number"]:focus,
.boxGlobal input[type="date"]:focus,
.boxGlobal input[type="time"]:focus,
.boxGlobal input[type="email"]:focus,
.boxGlobal input[type="tel"]:focus,
.boxGlobal input[type="password"]:focus,
.boxGlobal textarea:focus,
.boxGlobal select:focus {
	border-color: var(--kdBlue, #3E97FF);
	box-shadow: 0 0 0 3px rgba(62,151,255,0.15);
	outline: none;
}

/* Labels à côté des inputs dans les popups legacy */
.boxGlobal .flexLeft > div:first-child {
	color: #374151;
	font-size: 14px;
}

/* Bouton legacy (défini à l'origine dans KDFAST.css — non chargé) */
.button1Kd {
	height: 38px;
	padding: 0 20px;
	border: none;
	border-radius: 8px;
	background: var(--kdBlue, #3E97FF);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
}

.button1Kd:hover {
	background: #2563eb;
}

/* boxTitre : assure un rendu cohérent si le reset global impacte les espacements */
.boxGlobal .boxTitre {
	padding: 10px 14px;
}

.boxGlobal .boxContenu {
	padding: 18px;
	/* permet aux dropdowns absolute (listeVilles) de sortir du conteneur */
	overflow: visible !important;
	max-height: none !important;
}

/* ═══════════════════════════════════════════
   Popup confirmation (RC_block + blockYesNo)
   ═══════════════════════════════════════════ */
.RC_block {
	position: relative;
	padding: 20px 24px 24px 24px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.15);
	max-width: 500px;
	margin: 60px auto;
}

.RC_block > span:first-child {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: var(--kdBlueD, #002652);
	margin-bottom: 8px;
}

.RC_block .menuForm {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	gap: 6px;
}

.RC_block .menuFormButton {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 10px;
	background: transparent;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	color: #6b7280;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.15s;
}

.RC_block .menuFormButton:hover {
	background: #f3f4f6;
	color: #1f2937;
}

.blockYesNo {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 12px;
}

.blockYesNo > div:first-child {
	width: 100%;
	font-size: 16px;
	text-align: center;
	margin: 12px 0 8px 0;
	color: #374151;
}

.blockYesNo button {
	width: auto !important;
	min-width: 120px;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 24px;
	font-size: 15px !important;
	font-weight: 500;
	border-radius: 8px !important;
	border: 1px solid #d1d5db !important;
	background: #fff;
	color: #1f2937;
	cursor: pointer;
	transition: all 0.15s;
}

.blockYesNo button:hover {
	background: #f3f4f6;
}

.buttonYes {
	border-color: #fecaca !important;
	background: #fee2e2 !important;
	color: #b91c1c !important;
}

.buttonYes:hover {
	background: #dc2626 !important;
	color: #fff !important;
	border-color: #dc2626 !important;
}

/* ═══════════════════════════════════════════
   Dropdown autocomplete CP / Ville (listeVilles)
   ═══════════════════════════════════════════ */
.listeVilles {
	position: absolute !important;
	top: 38px !important;
	left: 200px !important;
	right: 0 !important;
	width: auto !important;
	min-width: 300px !important;
	max-height: 280px !important;
	overflow-y: auto !important;
	background: #fff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 10px !important;
	box-shadow: 0 8px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04) !important;
	padding: 6px !important;
	z-index: 10000 !important;
	display: none;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	gap: 2px !important;
}

.listeVilles div {
	width: auto !important;
	height: auto !important;
	min-height: 32px !important;
	display: flex;
	align-items: center;
	margin: 0 !important;
	padding: 6px 12px !important;
	border: none !important;
	border-radius: 6px !important;
	font-size: 13px !important;
	color: #1f2937 !important;
	cursor: pointer !important;
	transition: background 0.12s, color 0.12s !important;
}

.listeVilles div:hover,
.listeVilles div.active {
	background: #eff6ff !important;
	color: var(--kdBlue, #3E97FF) !important;
	font-weight: 500 !important;
}

.listeVilles div.active {
	background: #dbeafe !important;
	outline: 1px solid var(--kdBlue, #3E97FF) !important;
	outline-offset: -1px;
}

/* Scrollbar discrète */
.listeVilles::-webkit-scrollbar { width: 6px; }
.listeVilles::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.listeVilles::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
