/* ============================================
   Kanban Prospects - Styles personnalisés
   ============================================ */

/* ============================================
   MASQUAGE DES BOARDS
   ============================================ */
.kanban-board.hidden-board {
	display: none !important;
}

/* Bouton de masquage/démasquage - positionné au bord du kanban */
.kanban-toggle-btn {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	background: #282a4c;
	border: 2px solid #3d4070;
	border-left: none;
	border-radius: 0 8px 8px 0;
	padding: 15px 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 1000;
	color: white;
	font-size: 16px;
	box-shadow: 2px 2px 8px rgb(0 0 0 / 20%);
}

.kanban-toggle-btn:hover {
	background: #3d4070;
	border-color: #4a4f8a;
	padding-right: 15px;
	box-shadow: 3px 3px 12px rgb(0 0 0 / 30%);
}

.kanban-toggle-btn i {
	pointer-events: none;
	display: block;
}

.liste_titre {
	color: white !important;
}
/* ============================================
   FILTRES KANBAN - Style moderne type dropdown
   ============================================ */
.kanban-filters-form {
	margin-bottom: 20px;
}

.kanban-filters {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgb(0 0 0 / 6%);
}

/* Style des badges de filtres */
.filter-badge {
	position: relative;
}

.searchfield.filter-badge {
	border-right: 1px solid #e0e0e0;
}

.searchfield.filter-badge:last-of-type {
	border-right: none;
}

.filter-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 12px;
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 400;
	color: #333;
	transition: all 0.2s;
	min-width: 150px;
}

.filter-toggle:hover {
	border-color: rgb(14 124 123);
	box-shadow: 0 0 0 3px rgb(14 124 123 / 10%);
}

.filter-toggle.active {
	border-color: rgb(14 124 123);
	box-shadow: 0 0 0 3px rgb(14 124 123 / 10%);
}

.filter-badge-count {
	background: rgb(14 124 123);
	color: white;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	min-width: 20px;
	text-align: center;
}

.filter-toggle i {
	font-size: 12px;
	transition: transform 0.2s;
	margin-left: auto;
}

.filter-toggle.active i {
	transform: rotate(180deg);
}

/* Dropdown du filtre */
.filter-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
	min-width: 280px;
	max-width: 400px;
	z-index: 1000;
	margin-top: 4px;
	display: none;
	max-height: 400px;
	overflow-y: auto;
}

.filter-dropdown.show {
	display: block;
}

.filter-dropdown-header {
	padding: 12px 16px;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.filter-dropdown-title {
	font-weight: 600;
	font-size: 13px;
	color: #333;
}

.filter-select-all {
	font-size: 12px;
	color: rgb(14 124 123);
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background 0.2s;
}

.filter-select-all:hover {
	background: #e3f2fd;
}

.filter-dropdown-body {
	padding: 8px 0;
}

.filter-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	cursor: pointer;
	transition: background 0.2s;
}

.filter-option:hover {
	background: #f5f5f5;
}

.filter-option input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: rgb(14 124 123);
}

.filter-option label {
	flex: 1;
	cursor: pointer;
	font-size: 13px;
	color: #333;
	margin: 0;
}

/* Input de recherche dans dropdown */
.filter-search-input {
	width: calc(100% - 32px);
	margin: 8px 16px;
	padding: 8px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 13px;
}

.filter-search-input:focus {
	outline: none;
	border-color: rgb(14 124 123);
	box-shadow: 0 0 0 3px rgb(14 124 123 / 10%);
}

/* Champs texte et number classiques */
.kanban-filters .searchfield {
	display: flex;
	flex-direction: column;
	padding: 12px 20px;
	border-right: 1px solid #e0e0e0;
}

.kanban-filters .searchfield:last-of-type {
	border-right: none;
}

.kanban-filters .searchfield label {
	font-weight: 500;
	font-size: 12px;
	color: #666;
	margin-bottom: 6px;
}

.kanban-filters input[type="text"],
.kanban-filters input[type="number"] {
	padding: 8px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 13px;
	transition: all 0.2s ease;
	width: 125px;
}

.kanban-filters input[type="text"]:focus,
.kanban-filters input[type="number"]:focus {
	outline: none;
	border-color: #1976d2;
	box-shadow: 0 0 0 3px rgb(25 118 210 / 10%);
}

/* Boutons d'action */
.kanban-filters-actions {
	display: flex;
	gap: 8px;
	padding: 12px 20px;
	margin-left: auto;
	align-items: center;
}

.kanban-filters button {
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid #e0e0e0;
	font-size: 13px;
	background: white;
	color: #333;
}

.kanban-filters button[name="button_search"] {
	background: rgb(14 124 123);
	color: white;
	border-color: rgb(14 124 123);
}

.kanban-filters button[name="button_search"]:hover {
	background: rgb(14 124 123);
	border-color: rgb(14 124 123);
}

.kanban-filters button[name="button_removefilter"]:hover {
	background: #f5f5f5;
}

/* Badge de filtre actif */
.filter-active-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 8px;
	height: 8px;
	background: rgb(14 124 123);
	border-radius: 50%;
}

/* Responsive */
@media (width <= 1200px) {
	.kanban-filters {
		flex-direction: column;
	}

	.filter-badge,
	.kanban-filters .searchfield {
		border-right: none;
		border-bottom: 1px solid #e0e0e0;
	}

	.filter-badge:last-child,
	.kanban-filters .searchfield:last-of-type {
		border-bottom: none;
	}

	.kanban-filters-actions {
		margin-left: 0;
		border-top: 1px solid #e0e0e0;
		justify-content: stretch;
	}

	.kanban-filters-actions button {
		flex: 1;
	}
}

/* Conteneur principal */
#kanban-prospects-container {
	margin: 20px 0;
	padding: 20px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgb(0 0 0 / 6%);
	position: relative;
	overflow-x: auto;
}

#myKanban {
	padding: 10px;
	display: flex;
	gap: 15px;
	position: relative;
	min-width: min-content;
}

/* Colonnes du kanban */
.kanban-board {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
	min-height: 400px;
	transition: all 0.3s ease;
}

.kanban-board:hover {
	box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
}

/* En-têtes des colonnes */
.kanban-board-header {
	padding: 12px 15px;
	border-radius: 8px 8px 0 0;
	font-weight: 600;
	font-size: 14px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 75px;
	background: #34495e;
	box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
}

/* Badge compteur */
.kanban-badge {
	background: rgb(255 255 255 / 30%);
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: bold;
	margin-left: 8px;
	display: inline-block;
}

/* Corps des colonnes */
.kanban-board-body {
	padding: 10px;
	min-height: 350px;
	max-height: 600px;
	overflow-y: auto;
}

/* Scrollbar personnalisée */
.kanban-board-body::-webkit-scrollbar {
	width: 6px;
}

.kanban-board-body::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.kanban-board-body::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 10px;
}

.kanban-board-body::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* Cartes (items) */
.kanban-item {
	background: #fff;
	border: 1px solid #e1e8ed;
	border-left: 4px solid #3498db;
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 10px;
	cursor: move;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
}

.kanban-item:hover {
	box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
	transform: translateY(-2px);
	border-left-width: 6px;
}

.kanban-item.gu-transit {
	opacity: 0.7;
	transform: rotate(3deg);
}

.kanban-item.gu-mirror {
	opacity: 0.9;
	box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
}

/* En-tête de carte */
.kanban-card-header {
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #ecf0f1;
}

.kanban-card-title {
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
	display: block;
	margin-bottom: 4px;
	line-height: 1.4;
	overflow-wrap: break-word;
}

/* Référence de la proposition commerciale (propal) */
.kanban-card-ref {
	font-size: 11px;
	color: #3498db;
	font-family: "Courier New", monospace;
	background: #e8f4fc;
	padding: 2px 6px;
	border-radius: 3px;
	display: inline-block;
	margin-top: 4px;
}

.kanban-card-ref i {
	margin-right: 4px;
	color: #3498db;
}

.kanban-card-code {
	font-size: 11px;
	color: #7f8c8d;
	font-family: "Courier New", monospace;
	background: #ecf0f1;
	padding: 2px 6px;
	border-radius: 3px;
	display: inline-block;
	margin-top: 4px;
}

/* Corps de carte */
.kanban-card-body {
	font-size: 12px;
}

.kanban-card-info {
	color: #7f8c8d;
	margin: 4px 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 2px 0;
}

.kanban-card-info i {
	width: 16px;
	color: #95a5a6;
	font-size: 11px;
}

/* Styles spécifiques par statut */
.kanban-status-st-no .kanban-item {
	border-left-color: #e74c3c;
}

.kanban-status-st-never .kanban-item {
	border-left-color: #95a5a6;
}

.kanban-status-st-todo .kanban-item {
	border-left-color: #3498db;
}

.kanban-status-st-pend .kanban-item {
	border-left-color: #f39c12;
}

.kanban-status-st-done .kanban-item {
	border-left-color: #27ae60;
}

.kanban-status-st-quali .kanban-item {
	border-left-color: #9b59b6;
}

.kanban-status-st-not-int .kanban-item {
	border-left-color: #c0392b;
}

.kanban-status-st-meet .kanban-item {
	border-left-color: #16a085;
}

.kanban-status-st-no-answer .kanban-item {
	border-left-color: #7f8c8d;
}

.kanban-status-st-refusal .kanban-item {
	border-left-color: #d35400;
}

.kanban-status-st-quote .kanban-item {
	border-left-color: #2ecc71;
}

/* Message vide */
.kanban-board-body:empty::after {
	content: "Aucun prospect dans ce statut";
	display: block;
	text-align: center;
	color: #bdc3c7;
	font-style: italic;
	padding: 40px 20px;
}


/* Responsive */
@media (width <= 1400px) {
	.kanban-board {
		min-width: 280px;
		flex-shrink: 0;
	}
}

@media (width <= 768px) {
	#kanban-prospects-container {
		padding: 10px;
		margin: 10px 0;
	}

	.kanban-board {
		min-width: 260px;
	}

	.kanban-board-header {
		font-size: 12px;
		padding: 10px;
	}

	.kanban-card-title {
		font-size: 13px;
	}

	.kanban-card-info {
		font-size: 11px;
	}
}

/* Animation lors du drag */
.gu-mirror {
	position: fixed !important;
	margin: 0 !important;
	z-index: 9999 !important;
	opacity: 0.8;
	cursor: grabbing !important;
}

.gu-hide {
	display: none !important;
}

.gu-unselectable {
	user-select: none !important;
	user-select: none !important;
	user-select: none !important;
	user-select: none !important;
}

.gu-transit {
	opacity: 0.2;
}

/* Amélioration visuelle du drag over */
.kanban-drag-over {
	background: #ecf0f1;
}

/* Loader pour les cartes en cours de mise à jour */
.kanban-item[style*="opacity: 0.5"] {
	position: relative;
}

.kanban-item[style*="opacity: 0.5"]::after {
	content: "⏳";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 24px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: translate(-50%, -50%) rotate(0deg);
	}

	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

/* Amélioration de l'accessibilité */
.kanban-item:focus {
	outline: 2px solid #3498db;
	outline-offset: 2px;
}

.kanban-board-header:focus {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

/* Print styles */
@media print {
	#myKanban {
		display: block !important;
	}

	.kanban-board {
		break-inside: avoid;
		break-inside: avoid;
		margin-bottom: 20px;
	}

	.kanban-item {
		cursor: default;
	}
}

/* =========================================================================
   TOAST DE SUCCÈS
   ========================================================================= */

   /* Toast notifications */
.kanban-toast {
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
    position: fixed;
	bottom: 30px;
	right: 30px;
	background: #27ae60;
	color: white;
	padding: 15px 25px;
	border-radius: 5px;
	box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
	z-index: 10000;
	font-size: 14px;
}

.kanban-toast.show {
	opacity: 1;
	transform: translateY(0);
}

.kanban-toast-success {
	background: #27ae60;
}

.kanban-toast-error {
	background: #e74c3c;
}

.kanban-toast i {
	font-size: 16px;
    margin-right: 8px;
}


/* =========================================================================
   BOUTON NOUVELLE PROPOSITION
   ========================================================================= */

.kanban-nouvelle-proposition-container {
	margin: 20px 0;
	text-align: right;
}

.butAction.Add {
	background: #2d2f55;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.kanban-nouvelle-proposition-container .butAction:hover {
	background: #1f2140;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
}

.kanban-nouvelle-proposition-container .butAction i {
	margin-right: 8px;
}

/* =========================================================================
   MODALE NOUVELLE PROPOSITION
   ========================================================================= */

.modal-nouvelle-proposition {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: -10px;
	width: 100%;
	height: 100%;
	background-color: rgb(0 0 0 / 60%);
	align-items: center;
	justify-content: center;
	overflow-y: auto;
}

.modal-content-nouvelle-proposition {
	background-color: #fff;
	border-radius: 8px;
	width: 95%;
	max-width: 1700px;
    height: 95vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgb(0 0 0 / 30%);
	animation: modalSlideIn 0.3s ease-out;
}

.modal-body-nouvelle-proposition {
    border-radius: 0 0 8px 8px;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-header-nouvelle-proposition {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 25px;
	border-bottom: 2px solid #e0e0e0;
	background: linear-gradient(135deg, #2d2f55 0%, #3d4070 100%);
	color: white;
	border-radius: 8px 8px 0 0;
}

.modal-header-nouvelle-proposition h3 {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
}

.close-modal {
	font-size: 32px;
	font-weight: 300;
	color: white;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1;
}

.close-modal:hover {
	color: #ff6b6b;
	transform: rotate(90deg);
}

.modal-body-nouvelle-proposition {
	padding: 0;
	overflow: hidden;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Zone haute fixe (ne scroll pas) */
.modal-fixed-top {
	background: #f8f9fa;
	border-bottom: 2px solid #e0e0e0;
	padding: 5px 20px;
	flex-shrink: 0;
}

/* Ligne pour les onglets + bouton Nouveau prospect */
.modal-top-row {
	margin-bottom: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Layout horizontal : form compact + arrow + détails */
.modal-horizontal-layout {
	display: flex;
	gap: 0;
	align-items: flex-start;
}

/* Onglets compacts (au-dessus du layout horizontal) */
.tabs-nouvelle-proposition-compact {
	display: flex;
	gap: 8px;
	border-bottom: 2px solid #ddd;
	padding-bottom: 5px;
}

.tabs-nouvelle-proposition-compact .tab-button {
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	font-weight: 600;
	color: #666;
	transition: all 0.2s;
    padding: 8px 15px;
    font-size: 12px;
}

.tabs-nouvelle-proposition-compact .tab-button:hover {
	color: #2d2f55;
	background: rgb(45 47 85 / 5%);
}

.tabs-nouvelle-proposition-compact .tab-button.active {
	color: #2d2f55;
	border-bottom-color: #2d2f55;
}

/* Bouton Nouveau prospect (sur la ligne des onglets) */
.btn-nouveau-prospect {
	background: #175251;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.3s ease;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 6px;
}

.btn-nouveau-prospect:hover {
	background: #1f6b6a;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgb(23 82 81 / 30%);
}

.btn-nouveau-prospect i {
	font-size: 12px;
}


.form-section-compact .form-group {
	margin-bottom: 10px;
    position: relative;
}

.form-section-compact .form-group:last-child {
	margin-bottom: 0;
}

.form-section-compact label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #555;
	margin-bottom: 4px;
}

.form-section-compact input,
.form-section-compact select,
.form-section-compact textarea {
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 13px;
}

/* Bouton arrow toggle horizontal */
.btn-toggle-horizontal {
	background: #2d2f55;
	color: white;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	border-radius: 35px;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translate(50%, -50%);
	padding: 10px;
}

.btn-toggle-horizontal:hover {
	background: #3d4070;
}

.btn-toggle-horizontal i {
	font-size: 18px;
	transition: transform 0.3s ease;
}

/* Partie droite : Détails déployables */
.modal-top-right {
    flex: 1;
    background: white;
    padding: 16px 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    overflow-x: auto;
    box-shadow: 0 2px 4px rgb(0 0 0 / 5%);
}

.top-details-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

.detail-group {
	display: flex;
	flex-direction: column;
}

.detail-group label {
	font-size: 11px;
	font-weight: 600;
	color: #555;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.detail-group input,
.detail-group select,
.detail-group textarea {
	font-size: 13px;
	padding: 6px 10px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.detail-group input:focus,
.detail-group select:focus,
.detail-group textarea:focus {
	outline: none;
	border-color: #2d2f55;
	box-shadow: 0 0 0 3px rgb(45 47 85 / 10%);
}

/* Styles obsolètes (btn-nouveau-prospect-mini déplacé vers ligne des onglets) */

.btn-nouveau-prospect-mini:hover {
	background: #0f3938;
	transform: translateY(-1px);
}

/* Zone basse scrollable (formulaire complet) */
.modal-scrollable-content {
	flex: 1;
	overflow: hidden auto;
	padding: 25px;
	background: white;
	max-height: 50vh;
}

/* Onglets compacts (maintenant au-dessus du layout horizontal, déjà définis plus haut) */

/* Anciens onglets full width (deprecated mais gardé pour compatibilité) */
.tabs-nouvelle-proposition {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
	border-bottom: 2px solid #e0e0e0;
}

.tab-button {
	background: transparent;
	border: none;
	padding: 10px 18px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #666;
	transition: all 0.3s ease;
	border-bottom: 3px solid transparent;
	position: relative;
	bottom: -2px;
}


.tab-button:hover {
	color: #2d2f55;
}

.tab-button.active {
	color: #2d2f55;
	border-bottom-color: #2d2f55;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

/* Sections du formulaire */
.form-section {
	background: #f8f9fa;
	padding: 10px 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	border-left: 4px solid #2d2f55;
}

/* Section compacte pour colonne gauche */
.form-section-compact {
	width: 280px;
	min-width: 280px;
	flex-shrink: 0;
	box-shadow: 0 2px 4px rgb(0 0 0 / 5%);
    background: white;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.form-section-compact h4 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #2d2f55;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-section h4 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
	color: #2d2f55;
	display: flex;
	align-items: center;
}

/* Titre de section avec actions (icônes) */
.form-section h4.section-title-with-actions {
	justify-content: space-between;
}

.form-section h4.section-title-with-actions > span {
	display: flex;
	align-items: center;
}

.form-section h4.section-title-with-actions > span::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 18px;
	background: #2d2f55;
	margin-right: 10px;
}

.section-actions {
	display: flex;
	gap: 8px;
}

.section-actions .btn-icon {
	background: #2d2f55;
	color: white;
	border: none;
	border-radius: 6px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.section-actions .btn-icon:hover {
	background: #3d4070;
	transform: scale(1.05);
}

.section-actions .btn-icon i {
	font-size: 14px;
}

/* Barre verticale avant le titre (sauf pour les titres avec actions qui ont leur propre ::before sur le span) */
.form-section h4:not(.section-title-with-actions)::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 18px;
	background: #2d2f55;
	margin-right: 10px;
}

/* Lignes de formulaire */
.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 15px;
	margin-bottom: 15px;
}

.form-row-triple {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 15px;
	margin-bottom: 15px;
}

.form-row-quad {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 15px;
	margin-bottom: 15px;
}

.form-group {
	display: flex;
	flex-direction: column;
}



.form-section-compact .form-group label {
	font-size: 11px;
	font-weight: 600;
	color: #555;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.form-section-compact .form-group input,
.form-section-compact .form-group select {
	font-size: 13px;
	padding: 8px 10px;
}

.form-group label {
	font-weight: 600;
	margin-bottom: 6px;
	color: #333;
	font-size: 13px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
	padding: 6px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 14px;
	transition: all 0.3s ease;
	background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #2d2f55;
	box-shadow: 0 0 0 3px rgb(45 47 85 / 10%);
}

.form-group textarea {
	resize: vertical;
	min-height: 60px;
}

.required {
	color: #e74c3c;
	font-weight: bold;
}

/* Décisionnaire inline */
.form-group-inline {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 10px 0;
}

.form-group-inline label {
	font-weight: 600;
	margin: 0;
}

.form-group-inline input[type="radio"] {
	margin-right: 5px;
}

/* Produits */

.form-group-inline-produit {
	display: flex;
	gap: 10px;
	align-items: flex-end;
}

.form-group-inline-produit input {
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 13px;
}

.input-xsmall {
	width: 70px;
}

.input-small {
	width: 120px;
}

.input-medium {
	flex: 1;
	min-width: 200px;
}

.btn-add-produit {
	background: #2d2f55;
	color: white;
	border: none;
	padding: 10px 15px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.3s ease;
	margin-top: 10px;
}

.btn-add-produit:hover {
	background: #1f2140;
	transform: translateY(-1px);
}

.btn-add-produit i {
	margin-right: 5px;
}

.btn-remove-produit {
	background: #e74c3c;
	color: white;
	border: none;
	padding: 8px 12px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.3s ease;
}

.btn-remove-produit:hover {
	background: #c0392b;
}

/* Footer de la modale */
.modal-footer-nouvelle-proposition {
	padding: 20px 25px;
	border-top: 2px solid #e0e0e0;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	border-radius: 0 0 8px 8px;
}

.button {
	padding: 12px 25px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.butAction.cancel {
	background: #95a5a6;
	color: white;
}

.butAction.cancel:hover {
	background: #7f8c8d;
}

.butAction.save {
	background: #2d2f55;
	color: white;
}

.butAction.save:hover {
	background: #1f2140;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
}

.butAction.save i {
	margin-right: 8px;
}

/* Helper text */
.form-help {
	font-size: 12px;
	color: #666;
	font-style: italic;
	margin-top: 8px;
}

/* Concurrents - Select multiple */
#concurrents {
	width: 100%;
	padding: 8px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 13px;
}

#concurrents option {
	padding: 6px;
}

#concurrents option:checked {
	background: linear-gradient(#2d2f55, #2d2f55);
	color: white;
}

#concurrent-info-container {
	width: 100%;
	max-height: 400px;
	overflow-y: auto;
	padding: 12px;
	background: #f8f9fa;
	border-radius: 6px;
}

.concurrent-card {
	background: white;
	border-left: 4px solid #2d2f55;
	padding: 12px;
	margin-bottom: 12px;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
}

.concurrent-card:last-child {
	margin-bottom: 0;
}

.concurrent-name {
	color: #2d2f55;
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e0e0e0;
}

.concurrent-details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	font-size: 12px;
}

.concurrent-points-forts strong,
.concurrent-points-faibles strong {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
}

.concurrent-points-forts i,
.concurrent-points-faibles i {
	margin-right: 4px;
}

.concurrent-points-forts ul,
.concurrent-points-faibles ul {
	margin: 0;
	padding-left: 20px;
	list-style-type: disc;
}

.concurrent-points-forts li,
.concurrent-points-faibles li {
	margin-bottom: 4px;
	color: #555;
}

/* Responsive */
@media (width <= 1024px) {
	.form-row-triple,
	.form-row-quad {
		grid-template-columns: 1fr 1fr;
	}

	.modal-top-row {
		flex-direction: column;
		gap: 10px;
		align-items: stretch;
	}

	.btn-nouveau-prospect {
		width: 100%;
		justify-content: center;
	}

	.modal-horizontal-layout {
		flex-direction: column;
		gap: 15px;
	}

	.form-section-compact {
		width: 100%;
		min-width: unset;
	}

	.btn-toggle-horizontal {
		width: 100%;
		min-height: 40px;
		height: 40px;
	}

	.btn-toggle-horizontal i {
		transform: rotate(90deg);
	}

	.modal-top-right {
		width: 100%;
		border-left: none;
		border-top: 1px solid #e0e0e0;
	}

	.top-details-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (width <= 768px) {
	.modal-content-nouvelle-proposition {
		width: 95%;
		max-height: 95vh;
	}

	.form-row,
	.form-row-triple,
	.form-row-quad {
		grid-template-columns: 1fr;
	}

	.form-group-inline-produit {
		flex-wrap: wrap;
	}

	.input-medium {
		width: 100%;
	}

	.concurrent-details {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.top-details-grid {
		grid-template-columns: 1fr;
	}

	.form-section-compact {
		width: 100%;
		min-width: unset;
	}

	.modal-top-row {
		flex-direction: column;
		gap: 10px;
	}

	.tabs-nouvelle-proposition-compact {
		width: 100%;
		justify-content: center;
	}

	.btn-nouveau-prospect {
		width: 100%;
		justify-content: center;
	}
}

/* =========================================================================
   AUTOCOMPLETE CLIENT
   ========================================================================= */

.autocomplete-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
	max-height: 300px;
	overflow-y: auto;
	z-index: 1000;
	display: none;
}

.autocomplete-item {
	padding: 10px 15px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.2s ease;
}

.autocomplete-item:hover {
	background: #f8f9fa;
}

.autocomplete-item:last-child {
	border-bottom: none;
}

.autocomplete-item strong {
	color: #2d2f55;
	font-size: 14px;
}

.autocomplete-ville {
	color: #666;
	font-size: 13px;
}

.autocomplete-code {
	color: #999;
	font-size: 12px;
	font-style: italic;
}

.autocomplete-loading,
.autocomplete-no-result,
.autocomplete-error {
	padding: 15px;
	text-align: center;
	color: #666;
	font-size: 13px;
}

.autocomplete-loading i {
	margin-right: 8px;
}

.autocomplete-no-result a {
	color: #175251;
	text-decoration: underline;
	font-weight: 600;
}

.autocomplete-no-result a:hover {
	color: #1f6b6a;
}

.autocomplete-error {
	color: #c0392b;
}

/* =========================================================================
   DROPDOWN AJOUTER LIGNE
   ========================================================================= */

.add-line-dropdown-container {
	position: relative;
	display: inline-block;
	margin-bottom: 15px;
}

.btn-add-line-dropdown {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #175251;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}

.btn-add-line-dropdown:hover {
	background: #1f6b6a;
}

.btn-add-line-dropdown:active {
	transform: scale(0.98);
}

.btn-add-line-dropdown i.fa-caret-down {
	margin-left: 4px;
	font-size: 12px;
}

.add-line-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 5px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	min-width: 220px;
	z-index: 1001;
	overflow: hidden;
}

/* Afficher le bouton "Ajouter" uniquement au survol pour les lignes d'insertion entre lignes */
.insert-line-row .btn-add-line-dropdown {
	opacity: 0;
	transition: opacity 0.15s ease;
	pointer-events: none;
}
.insert-line-row:hover .btn-add-line-dropdown {
	opacity: 1;
	pointer-events: auto;
}

.add-line-dropdown .dropdown-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	cursor: pointer;
	transition: background 0.2s ease;
	font-size: 14px;
	color: #333;
	border-bottom: 1px solid #f0f0f0;
}

.add-line-dropdown .dropdown-item:last-child {
	border-bottom: none;
}

.add-line-dropdown .dropdown-item:hover {
	background: #f8f9fa;
}

.add-line-dropdown .dropdown-item i {
	width: 18px;
	text-align: center;
	color: #175251;
	font-size: 14px;
}

/* Bouton fermer recherche produit */
.btn-close-search {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	margin-left: 10px;
	margin-top: 24px;
}

.btn-close-search:hover {
	background: #fdeaea;
	color: #c0392b;
	border-color: #f5c6cb;
}

.btn-close-search i {
	font-size: 14px;
}

/* Ajustement du conteneur de recherche avec le bouton fermer */
.produit-search-container .form-row {
	display: flex;
	align-items: flex-start;
}

/* =========================================================================
   AUTOCOMPLETE PRODUITS & TABLEAU PRODUITS SÉLECTIONNÉS
   ========================================================================= */

/* Zone de recherche produit */
.produit-search-container {
	margin-bottom: 20px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.produit-search-container .form-group {
	margin-bottom: 0;
}

#search_produit_ref {
	width: 100%;
	padding: 10px 15px;
	font-size: 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#search_produit_ref:focus {
	border-color: #175251;
	box-shadow: 0 0 0 3px rgba(23, 82, 81, 0.1);
	outline: none;
}

/* Autocomplete résultats produits */
#autocomplete-produit-results .autocomplete-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 12px 15px;
}

#autocomplete-produit-results .product-ref {
	font-weight: 600;
	color: #175251;
	min-width: 100px;
	font-family: monospace;
}

#autocomplete-produit-results .product-label {
	flex: 1;
	color: #333;
}

#autocomplete-produit-results .product-price {
	color: #27ae60;
	font-weight: 600;
	white-space: nowrap;
}

#autocomplete-produit-results .product-selected-badge {
	color: #27ae60;
	margin-left: 10px;
}

#autocomplete-produit-results .autocomplete-item.disabled {
	background: #f5f5f5;
}

/* Tableau des produits sélectionnés */
.produits-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.produits-table thead {
	background: #175251;
	color: white;
}

.produits-table thead th {
	padding: 12px 10px;
	text-align: left;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.produits-table tbody tr {
	border-bottom: 1px solid #e9ecef;
	transition: background 0.2s ease;
}

.produits-table tbody tr:hover {
	background: #f8f9fa;
}

.produits-table tbody td {
	padding: 10px;
	vertical-align: middle;
}

.produits-table .product-ref-cell {
	font-family: monospace;
	font-weight: 600;
	color: #175251;
}

.produits-table .product-label-cell {
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.produits-table .product-tva-cell {
	text-align: center;
	color: #666;
}

.produits-table .product-total-cell {
	font-weight: 600;
	color: #27ae60;
	text-align: right;
}

/* Inputs dans le tableau */
.produits-table .input-qte,
.produits-table .input-puht {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 13px;
	text-align: right;
}

.produits-table .input-qte:focus,
.produits-table .input-puht:focus {
	border-color: #175251;
	outline: none;
	box-shadow: 0 0 0 2px rgba(23, 82, 81, 0.1);
}

/* Bouton supprimer produit */
.btn-remove-selected-product {
	background: none;
	border: none;
	color: #c0392b;
	cursor: pointer;
	padding: 5px 8px;
	border-radius: 4px;
	transition: background 0.2s ease, color 0.2s ease;
}

.btn-remove-selected-product:hover {
	background: #fdeaea;
	color: #a93226;
}

/* Ligne total */
.produits-table tfoot {
	background: #f8f9fa;
	border-top: 2px solid #175251;
}

.produits-table tfoot td {
	padding: 12px 10px;
}

.produits-total-row td {
	font-size: 14px;
}

#produits-total-global {
	color: #175251;
	font-size: 16px;
}

#produits-total-global-ht,
#produits-total-global-ttc {
	color: #175251;
	font-size: 16px;
}

/* Message aucun produit */
.no-produits-message {
	text-align: center;
	padding: 30px;
	color: #999;
	font-style: italic;
	background: #fafafa;
	border-radius: 8px;
	border: 2px dashed #ddd;
	margin-top: 15px;
}

/* =========================================================================
   STYLES GROUPES DE PRODUITS
   ========================================================================= */

/* Autocomplete groupes */
#autocomplete-groupe-results .autocomplete-item.group-item {
	display: flex;
	align-items: center;
	gap: 12px;
}

#autocomplete-groupe-results .group-icon {
	color: #175251;
	font-size: 16px;
	width: 24px;
	text-align: center;
}

#autocomplete-groupe-results .group-name {
	flex: 1;
	font-weight: 600;
	color: #333;
}

#autocomplete-groupe-results .group-count {
	color: #666;
	font-size: 12px;
	background: #e9ecef;
	padding: 3px 8px;
	border-radius: 12px;
}

/* Ligne header du groupe */
.group-header-row {
	background: linear-gradient(135deg, #f0f7f7 0%, #e8f4f4 100%);
	border-left: 4px solid #175251;
}

.group-header-row td {
	font-weight: 600;
}

.group-icon-cell {
	color: #175251;
	font-size: 16px;
	text-align: center;
	width: 40px;
}

.group-name-cell {
	color: #175251;
	font-size: 14px;
}

.group-info-cell {
	color: #666;
	font-style: italic;
	font-size: 12px;
	text-align: center;
}

.group-total-cell {
	font-weight: 700 !important;
	color: #175251 !important;
}

.input-qte-group {
	background: #fff;
	border: 2px solid #175251 !important;
	font-weight: 600;
}

/* Lignes des produits du groupe (indentées) */
.group-product-row {
	background: #fafbfc;
}

.group-product-row td {
	padding-top: 6px !important;
	padding-bottom: 6px !important;
	font-size: 12px;
	color: #666;
}

.group-product-ref {
	padding-left: 30px !important;
	color: #888 !important;
	font-size: 11px !important;
}

.group-product-label {
	color: #555 !important;
	font-style: italic;
}

.group-product-qte,
.group-product-puht {
	text-align: right;
	color: #888;
}

.group-product-total {
	color: #27ae60 !important;
	font-weight: 500;
}

/* Séparation visuelle après un groupe */
.group-product-row:last-of-type {
	border-bottom: 2px solid #e0e0e0;
}

/* =========================================================================
   STYLES BOUTONS DE DÉPLACEMENT (MONTER/DESCENDRE)
   ========================================================================= */

.line-move-cell {
	width: 50px;
	text-align: center;
	padding: 5px !important;
}

.move-buttons {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.btn-move-up,
.btn-move-down {
	background: #f5f5f5;
	border: 1px solid #ddd;
	color: #666;
	cursor: pointer;
	padding: 3px 6px;
	border-radius: 3px;
	transition: all 0.2s ease;
	font-size: 10px;
}

.btn-move-up:hover:not(:disabled),
.btn-move-down:hover:not(:disabled) {
	background: #175251;
	color: #fff;
	border-color: #175251;
}

.btn-move-up:disabled,
.btn-move-down:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* Bouton supprimer ligne (renommé) */
.btn-remove-line {
	background: none;
	border: none;
	color: #c0392b;
	cursor: pointer;
	padding: 5px 8px;
	border-radius: 4px;
	transition: background 0.2s ease, color 0.2s ease;
}

.btn-remove-line:hover {
	background: #fdeaea;
	color: #a93226;
}

/* =========================================================================
   STYLES LIGNES DE TEXTE
   ========================================================================= */

#text-line-container {
	background: #fefefe;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px;
}

#text-line-container label {
	color: #175251;
	font-weight: 600;
	margin-bottom: 8px;
	display: block;
}

#text_line_content {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	resize: vertical;
	min-height: 60px;
	font-size: 14px;
}

#text_line_content:focus {
	border-color: #175251;
	outline: none;
	box-shadow: 0 0 0 3px rgba(23, 82, 81, 0.1);
}

.text-line-actions {
	display: flex;
	gap: 10px;
	align-items: flex-end;
	margin-top: 10px;
}

/* Ligne de texte dans le tableau */
.text-line-row {
	background: #fffdf5;
	border-left: 4px solid #f39c12;
}

.text-line-content {
	padding: 12px 15px !important;
	color: #555;
	font-style: italic;
}

.text-line-icon {
	color: #f39c12;
	margin-right: 10px;
}

.text-line-text {
	white-space: pre-wrap;
	word-break: break-word;
}

/* =========================================================================
   STYLES SOUS-TOTAUX
   ========================================================================= */

#subtotal-container {
	background: #f8f9fa;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px;
}

#subtotal-container label {
	color: #175251;
	font-weight: 600;
	margin-bottom: 8px;
	display: block;
}

#subtotal_label {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}

#subtotal_label:focus {
	border-color: #175251;
	outline: none;
	box-shadow: 0 0 0 3px rgba(23, 82, 81, 0.1);
}

.subtotal-items-list {
	max-height: 200px;
	overflow-y: auto;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	padding: 10px;
	margin-top: 8px;
}

.subtotal-items-list .no-items-message {
	color: #999;
	font-style: italic;
	text-align: center;
	padding: 15px;
}

.subtotal-checkbox-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	transition: background 0.2s ease;
}

.subtotal-checkbox-item:last-child {
	border-bottom: none;
}

.subtotal-checkbox-item:hover {
	background: #f5f5f5;
}

.subtotal-checkbox-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #175251;
}

.subtotal-checkbox-item .item-label {
	flex: 1;
}

.subtotal-checkbox-item .item-ref {
	color: #888;
	font-size: 12px;
	font-weight: 600;
}

.subtotal-checkbox-item .item-name {
	color: #333;
	margin-left: 8px;
}

.subtotal-checkbox-item .item-total {
	font-weight: 600;
	color: #175251;
}

.subtotal-actions {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

/* Ligne sous-total dans le tableau */
.subtotal-line-row {
	background: linear-gradient(135deg, #e8f0fe 0%, #dbe7fd 100%);
	border-left: 4px solid #3498db;
	border-top: 2px solid #ccc;
	border-bottom: 2px solid #ccc;
}

.subtotal-line-row td {
	padding: 12px 10px !important;
}

.subtotal-label-cell {
	color: #2c3e50;
	font-size: 14px;
}

.subtotal-icon {
	color: #3498db;
	margin-right: 10px;
}

.subtotal-count {
	color: #666;
	font-size: 12px;
	margin-left: 10px;
	font-weight: normal;
}

.subtotal-amount {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #2980b9 !important;
}

/* Responsive */
@media (max-width: 768px) {
	.produits-table {
		font-size: 12px;
	}

	.produits-table thead th,
	.produits-table tbody td {
		padding: 8px 5px;
	}

	.produits-table .product-label-cell {
		max-width: 120px;
	}

	#autocomplete-produit-results .autocomplete-item {
		flex-wrap: wrap;
	}

	#autocomplete-produit-results .product-ref {
		min-width: auto;
	}

	.group-product-ref {
		padding-left: 15px !important;
	}

	.line-move-cell {
		width: 35px;
	}

	.move-buttons {
		flex-direction: row;
	}

	.btn-move-up,
	.btn-move-down {
		padding: 2px 4px;
		font-size: 9px;
	}

	.text-line-actions,
	.subtotal-actions {
		flex-direction: column;
	}
}

/* ============================================
   MODALE DETAIL PROPOSITION - Styles spécifiques
   ============================================ */

/* Champs en lecture seule */
.readonly-field {
	background-color: #f8f9fa !important;
	border-color: #e9ecef !important;
	color: #495057 !important;
	cursor: default !important;
}

.readonly-field:focus {
	outline: none !important;
	box-shadow: none !important;
	border-color: #e9ecef !important;
}

/* Badges de statut */
.badge {
	display: inline-block;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 4px;
	text-transform: uppercase;
}

.badge-warning {
	background-color: #f39c12;
	color: #fff;
}

.badge-info {
	background-color: #3498db;
	color: #fff;
}

.badge-success {
	background-color: #27ae60;
	color: #fff;
}

.badge-danger {
	background-color: #e74c3c;
	color: #fff;
}

.badge-primary {
	background-color: #9b59b6;
	color: #fff;
}

.badge-secondary {
	background-color: #95a5a6;
	color: #fff;
}

/* Tableau des produits dans la modale détail */
#detail-produits-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
}

#detail-produits-table th,
#detail-produits-table td {
	padding: 10px 8px;
	border-bottom: 1px solid #e0e0e0;
}

#detail-produits-table th {
	background-color: #f8f9fa;
	font-weight: 600;
	text-align: left;
	font-size: 12px;
	color: #666;
}

#detail-produits-table tbody tr:hover {
	background-color: #f8f9fa;
}

#detail-produits-table tfoot .produits-total-row td {
	padding: 8px;
	border-top: 2px solid #e0e0e0;
	border-bottom: none;
}

/* Lien externe dans la modale */
#detail-link-societe,
#detail-link-propal {
	text-decoration: none;
}

#detail-link-societe:hover,
#detail-link-propal:hover {
	opacity: 0.9;
}

/* Animation de chargement */
#detail-proposition-loading {
	color: #666;
}

#detail-proposition-loading i {
	color: #3498db;
}

/* ============================================
   STYLE CARTE KANBAN - NOM CHANTIER
   ============================================ */

.kanban-card-chantier {
	color: #2980b9 !important;
	font-weight: 500;
	font-style: italic;
}

#id-top {
	background-color: #2d2f55;
	display:flex;
	align-items: center;
	justify-content: center;
}

.mainmenuaspan {
 color: white;
}
#mainmenua_products::after, #mainmenua_billing::after {
 color: white;
}

.mainmenu::before {
 color: white;
}

li.tmenusel {
 background: rgb(14 124 123);
 opacity: 1;
}

li.tmenusel:hover, li.tmenu:hover {
 background: rgba(14,124,123,0.7);
 opacity: 1;
}
.info-box-icon, .info-box-weather .info-box-icon {
 background :#2d2f55 !important;
}

.pagination li span {
 padding: 0 !important;
}
 agination .selectlimit {
 margin-right: 0 !important;
}

.topmenuimage .fa-bars {
 display:none;
}

.tabunactive {
 background-color: #2d2f55;

}

.tabsElem a.tab {
 color: white !important; 
}

.tabactive, a.tab#active, .tabunactive:hover {
 background-color: #0e7c7b!important;
 border:none!important;
}

.menuhider .tmenucenter {
 text-align: end !important;
}

.menuhider .tmenucenter .mainmenu::before {
 font-size:2em;
}

.topmenuimage::before {
 padding-right : 5px;
}

.div-table-responsive table tbody .liste_titre_filter, th a {
 color: white !important;
}

div.tabsAction {
 position: relative;
}


/* Fix pour le menu dropdown - assurer que le texte est visible */
.dropdown-menu {
 color: #000 !important;
}

.dropdown-menu a {
 color: #000 !important;
 text-decoration: none;
}

.dropdown-menu a:hover {
 color: #333 !important;
 background-color: #f5f5f5 !important;
}

/* Fix pour les sections du menu user */
.dropdown-menu > .user-body,
.dropdown-menu > .user-footer,
.dropdown-body {
 color: #000 !important;
}

.dropdown-menu > .user-header {
 color: #000 !important;
}

/* S'assurer que tous les liens dans le dropdown sont visibles */
.open .dropdown-menu a {
 color: #000 !important;
}

.open .dropdown-menu a:hover {
 background-color: rgba(0, 0, 0, 0.05) !important;
 color: #000 !important;
}

/* Fix spécifique pour les icônes et textes */
.dropdown-menu .fa,
.dropdown-menu .fas {
 color: #666 !important;
}

/* Media query pour tablette */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
 .dropdown-menu {
 color: #000 !important;
 background-color: #fff !important;
 }
 
 .dropdown-menu * {
 color: #000 !important;
 }
}

/* Forcer affichage du bouton menuhider */
.menuhider,
li.menuhider,
li.menuhider > .tmenucenter,
li.menuhider .tmenuimage,
li.menuhider .tmenulabel {
 display: block !important;
 visibility: visible !important;
 opacity: 1 !important;
}

/* Positionner le li pour placer la flèche */
li.menuhider { position: relative !important; }

/* Icône flèche collée à droite du li.menuhider */
li.menuhider::after {
 content: "◀";
 position: absolute;
 right: 2px !important; /* ajuster (0..6px) si besoin */
 top: 50% !important;
 transform: translateY(-50%) !important;
 font-size: 14px !important;
 color: #666 !important;
 background: rgba(0,0,0,0.04) !important;
 padding: 3px 6px !important;
 border-radius: 3px !important;
 cursor: pointer !important;
 z-index: 9999 !important;
 pointer-events: none !important; /* laisse le clic se propager au li (handler d'origine) */
}

/* Variante : flèche orientée différemment quand le corps a la classe sidebar-collapse */
body.sidebar-collapse li.menuhider::after {
 content: "▶" !important;
}
