:root {
	/* couleur sidebar */
	--color-5: #694f61;
	--color-6: #694f61;
	--color-7: #261d1d;
	--color-8: #831717;
	--color-9: #8e2c2c;
	--color-10: #983f3f;
	--color-11: #f2dede;

	--primary-color: #831717;
	--secondary-color: #ffd77f;
	--white-color: #eceef0;
	--black-color: #212536;
	--grey-color: #6c757d;
	--nearly-grey: #ced6de;

	--primary-text: #4f8f70;
	--secondary-text: #e9fff3;
	--white-text-white: #ffffff;
	--black-text-black: #000000;
	--quote-bg-color: #f7f7f7;
	--not-white: #f2f0ef;

	/*
	Rubik principalement utilisé pour :
	le contenu des
	le contenu des tableaux
	les légendes
	 */
	--primary-font-regular: "Roboto", "Source Sans Pro", "Segoe UI", Roboto, Arial,
		sans-serif;
	--primary-font-bold: "Roboto", "Source Sans Pro", "Segoe UI", Roboto, Arial,
		sans-serif;
	/*
	Kanit principalement utilisé pour :
	les titres
	les sous-titres
	les titres des menus
	les titres des tableaux
	 */
	--secondary-font-regular: "OpenSans", "Source Sans Pro", "Segoe UI", Roboto,
		Arial, sans-serif;
	--secondary-font-bold: "Bahnschrift SemiBold", "Source Sans Pro", "Segoe UI",
		Roboto, Arial, sans-serif;
}

/* police des navbar et sidebar */
body {
	font-family: var(--secondary-font-regular) serif;
}

/* police du contenu tu tableau */
body .ui-widget {
	font-family: var(--primary-font-regular) serif !important;
}

body .ui-input-icon-right>i:last-of-type {
	top: 1rem !important;
}

/* ajuster la longueur des lignes de tableau */
td {
	padding-top: 12px;
	padding-bottom: 12px;
}

/* ajuster la largeur des colonnes de tableau */
tr>td {
	width: 1%;
}

.bg-dashboard-2 {
	background-color: var(--color-2);
}

.bg-dashboard-3 {
	background-color: var(--color-3);
}

.bg-dashboard-5 {
	background-color: var(--color-5);
}

.bg-dashboard-8 {
	background-color: var(--color-8);
}

.bg-white-1 {
	color: #fff;
}

.bg-badge {
	color: #fff;
	background-color: var(--color-5);
}

/* TITRES */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--secondary-font-bold) serif;
	margin-top: 5px;
	margin-bottom: 5px;
}

h1,
h2 {
	color: var(--color-8);
}

table,
.table-content {
	font-family: var(--primary-font-regular) serif;
}

caption,
.legend {
	font-family: var(--primary-font-bold), serif;
}

.menu-title {
	font-family: var(--secondary-font-bold), serif;
}

/* -------------------------------------------Dialogue primefaces------------------------------------------------- */
.ui-dialog {
	resize: none !important;
	/* Désactiver le redimensionnement */
}

/* Masquer les poignées de redimensionnement de PrimeFaces */
.ui-dialog .ui-resizable-handle {
	display: none !important;
}

.ui-dialog.ui-resizable .ui-dialog-content {
	box-sizing: inherit !important;
}

@media (max-width: 768px) {
	.ui-dialog {
		width: 90% !important;
		height: auto !important;
		max-height: 60vh;
		overflow-y: auto;
	}
}

@media (min-width: 769px) {
	.ui-dialog {
		max-width: 60% !important;
		/* Largeur maximale de 60% */
		width: auto !important;
		/* Largeur adaptée au contenu */
		height: auto !important;
		max-height: 80vh;
		overflow-y: auto;
	}
}

/* -----------------------------------------------------------Notification dropdown----------------------------------------- */

.dropdown-menu {
	padding: 0.5rem !important;
}

.notification-dropdown {
	width: 400px;
	max-height: 300px;
	overflow-y: auto;
}

/* Media Queries pour rendre le menu responsive */
@media (max-width: 768px) {
	.notification-dropdown {
		min-width: 200px;
		width: 100%;
	}

	.dropdown-item,
	.p\:commandLink {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.float-right {
		float: none !important;
		text-align: right;
		display: block;
	}

	.text-muted.text-sm {
		font-size: 0.9rem;
		display: block;
		width: 100%;
	}
}

/* ------------------------------------------------Custom PanelGrid------------------------------------- */

.panelGrid-label {
	text-align: left;
	vertical-align: middle;
	padding-right: 10px;
	/* Espacement entre le label et le champ */
}

.ui-panelgrid.showcase-text-align-center .ui-grid-responsive .ui-panelgrid-cell {
	text-align: center;
}

.customPanelGrid .ui-panelgrid-content {
	align-items: center;
}

.ui-tabs.ui-tabs-top>.ui-tabs-nav {
	padding: 0.2em 0.2em 0;
}

/*----------------------------- DATATABLE -----------------------------*/

.ui-datatable {
	width: 100%;
	margin-bottom: 1rem;
	color: #040404;
	border-collapse: collapse;
}

/* Style de l'en-tàªte */
.ui-datatable thead th {
	vertical-align: bottom;
	border-bottom: 2px solid #ebedf2;
	padding: 12px;
	text-align: left;
	background-color: #e9ecef;
	font-weight: bold;
}

/* Style des cellules normales */
.ui-datatable tbody td {
	padding: 12px;
	vertical-align: top;
	border-top: 1px solid #ebedf2;
}

.ui-datatable tbody tr {
	background-color: white;
	color: black !important;
	/* Fond blanc par défaut */
}

/* Striped rows */
.ui-datatable tbody tr:nth-of-type(odd) {
	background-color: #f2f2f2;
}

/* Hover effect */
.ui-datatable tbody tr.ui-widget-content:hover {
	color: #212529;
	background-color: #f2f2f2;
}

/* Mode sombre */
.ui-datatable.ui-widget {
	color: #fff;
}

.ui-datatable.ui-widget tbody td {
	border-color: #454d55;
}

.ui-datatable tbody tr.ui-datatable-even {
	background-color: #f8f9fa;
}

.tableau-journal thead th {
	text-align: center !important;
}

/* Option : Centrer aussi le contenu des cellules */
.tableau-journal tbody td {
	text-align: center !important;
}

/* Responsive */
@media (max-width: 768px) {
	.ui-datatable table {
		overflow-wrap: normal;
		width: 100%;
		table-layout: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
		/* Améliorer le défilement sur mobile */
		overflow-x: auto;
		font-size: 10;
	}

	.ui-datatable thead th,
	.ui-datatable tbody td {
		white-space: nowrap;
		/* Empàªche le texte de se casser sur plusieurs lignes */
	}

	/* Masquer les champs de filtrage */
	.ui-datatable .ui-column-filter {
		display: none;
	}
}

/* -----------------------------Autre-------------------------------------- */

.ui-button {
	padding: 0;
}

.inline-elements>* {
	margin-right: 30px;
}

.inline-elements {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.inline-elements>* {
	margin-right: 20px;
	/* Espacement normal */
}

@media (max-width: 768px) {
	.inline-elements>* {
		margin-right: 0;
		/* Supprimer les marges à une taille d'écran réduite */
		margin-bottom: 10px;
		/* Ajouter un espacement par le bas pour les éléments en colonne */
		width: 100%;
		/* Prendre toute la largeur disponible */
	}
}

.input[type="date"] {
	width: 200px;
}

body .bouton-choisir {
	background: var(--primary-color) !important;
	border: 1px solid var(--primary-color) !important;
}

/* -------------------datepicker ---------------------------------- */


.ui-datepicker {
	z-index: 1000000 !important;
	max-width: 500px !important;
	width: auto !important;
}

.ui-datepicker table {
	width: 100% !important;
}

@media (max-width: 768px) {
	.ui-datepicker {
		z-index: 10000 !important;
		width: 100% !important;
		max-width: 320px !important;
		font-size: 14px !important;
	}

	.ui-datepicker .ui-datepicker-header,
	.ui-datepicker .ui-datepicker-calendar {
		width: 100% !important;
	}

	.ui-datepicker .ui-datepicker-calendar td,
	.ui-datepicker .ui-datepicker-calendar th {
		padding: 0px !important;
	}

	.ui-datepicker .ui-datepicker-title {
		font-size: 14px !important;
	}
}


/* Correction générale pour tous les écrans */

/* ------------------------------------growl------------------------------------------------------------ */

/* Ajustement général pour ui-growl */
@media (min-width: 769px) {
	.ui-growl {
		left: 50%;
		/* Positionnement au centre */
		transform: translateX(-50%);
		/* Centrage horizontal */
		max-width: 100%;
		/* Largeur maximale */
		width: auto !important;
		/* Réinitialisation de la largeur */
		display: flex;
		justify-content: center;
		align-items: center;
	}
}

/* Ajustement pour les petits écrans */
@media (max-width: 768px) {
	.ui-growl {
		margin: 0 auto;
		/* Centrage horizontal */
	}
}

/* ---- mes cartes xhtml----------- */
#relvbanque\:dateDebut_panel {
	width: 500px !important;
	z-index: 10000 !important;
}

#relvbanque\:dateFin_panel {
	width: 500px !important;
	z-index: 10000 !important;
}

body .ui-menu .ui-menu-list .ui-widget-header {
	background: blue;
	padding: 0;
}

/*------ ------*/
/* Container des détails */
.details-container {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Style des items de détail */
.detail-item {
	display: flex;
	align-items: center;
	padding: 10px;
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	flex-wrap: wrap;
}

/* Icône des items de détail */
.detail-item i {
	margin-right: 10px;
	color: #145da0;
	/* Couleur personnalisée pour les icônes */
}

/* Libellé des items */
.detail-label {
	font-weight: bold;
	margin-right: 5px;
	color: #333;
}

/* Valeur des items */
.detail-value {
	color: #555;
	margin-left: auto;
	/* Aligne la valeur à droite */
	font-size: 1em;
}

/* Montant de la transaction */
.transaction-amount {
	font-size: 2em;
	color: #145da0;
	margin: 0;
	text-align: center;
	padding: 5px;
}

/* Divider */
.divider {
	border-top: 1px solid #e6e6e6;
	margin: 15px 0;
}

/* Panel des détails de la transaction */
.transaction-details-panel {
	background: #fff;
	border-radius: 8px;
	padding: 15px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style du panel */
.custom-panel {
	padding: 20px;
	background: #f7f9fc;
	border-radius: 8px;
}

/* Bouton de fermeture (croix) */
.close-button {
	float: right;
	margin-top: -10px;
	margin-right: -10px;
	font-size: 1.2em;
	border: none;
	background: transparent;
	cursor: pointer;
}

/* Style pour les lignes impaires */
.ui-datatable tbody tr:nth-child(odd) {
	background-color: #ffffff;
}

/* Style pour les lignes paires */
.ui-datatable tbody tr:nth-child(even) {
	background-color: #f8f9fa;
}

.content-wrapper {
	background-color: white;
}

.section-title {
	padding: 10px 2rem;
	margin-bottom: 15px;
}

.section-title::after {
	content: "";
	display: block;
	width: 100px;
	height: 3px;
	background-color: grey;
	margin-top: 15px;
}

/*------------------------------------------BLOCK UI-------------------------------------*/
/* Style pour le contenu du blockUI */
.ui-blockui-content {
	background-color: white;
	/* Fond blanc */
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	/* Ombre légà¨re */
	text-align: center;
}

/* Style pour l'overlay du blockUI */
.ui-blockui {
	background-color: rgba(0, 0, 0, 0.7);
	/* Fond semi-transparent */
}

/* Style de base pour le texte */
.blinking-text {
	font-size: 24px;
	font-weight: bold;
	color: #3498db;
	/* Couleur du texte */
	animation: blink 1s infinite;
	/* Animation de clignotement */
}

/* Définition de l'animation de clignotement */
@keyframes blink {
	0% {
		opacity: 1;
	}

	/* Texte visible */
	50% {
		opacity: 0;
	}

	/* Texte invisible */
	100% {
		opacity: 1;
	}

	/* Texte visible */
}

/*------------------------------------------BLOCK UI-------------------------------------*/

/* Style pour le contenu du blockUI */
.ui-blockui-content {
	background-color: white;
	/* Fond blanc */
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	/* Ombre légà¨re */
	text-align: center;
}

/* Style pour l'overlay du blockUI */
.ui-blockui {
	background-color: rgba(0, 0, 0, 0.7);
	/* Fond semi-transparent */
}

/* Style de base pour le texte */
.blinking-text {
	font-size: 24px;
	font-weight: bold;
	/* Couleur du texte */
	color: #3498db;
	/* Animation de clignotement */
	animation: blink 1s infinite;
}

/* Définition de l'animation de clignotement */
@keyframes blink {
	0% {
		opacity: 1;
	}

	/* Texte visible */
	50% {
		opacity: 0;
	}

	/* Texte invisible */
	100% {
		opacity: 1;
	}
}

/********************* Carte bancaire *********************/

/* Styles de base */
.cardBank {
	width: 100%;
	max-width: 390px;
	height: auto;
	min-height: 230px;
	/* Hauteur minimale par défaut */
	border-radius: 15px;
	background: linear-gradient(135deg, #1e1e2f, #2a2a40);
	color: #ffffff;
	font-family: "Arial", sans-serif;
	padding: 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	margin: 0 auto;
}

.cardBank::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(to right,
			rgba(0, 0, 0, 0.8),
			/* Couleur sombre à gauche */
			rgba(0, 0, 0, 0.6),
			/* Nuance intermédiaire */
			rgba(253, 3, 3, 0.4),
			/* Nuance plus claire */
			#831717
			/* Couleur claire à droite */
		);
	transform: rotate(30deg);
	pointer-events: none;
}

.cardBank-content {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.cardBank-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cardBank-logo {
	font-size: 14px;
	/* Taille par défaut */
	font-weight: bold;
	color: rgba(255, 255, 255, 0.8);
	text-transform: uppercase;
}

.cardBank-type-badge {
	font-size: 12px;
	/* Taille par défaut */
	font-weight: bold;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
	padding: 5px 10px;
	border-radius: 15px;
	text-transform: uppercase;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.cardBank-chip {
	position: absolute;
	top: 60px;
	/* Position par défaut */
	left: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	/* Taille par défaut */
	height: 40px;
	/* Taille par défaut */
	border-radius: 5px;
	background-image: linear-gradient(to bottom left, #ffecc7, #d0b978);
	overflow: hidden;
}

.cardBank-chip .chip-line {
	position: absolute;
	width: 100%;
	height: 1px;
	background-color: #333;
}

.cardBank-chip .chip-line:nth-child(1) {
	top: 13px;
}

.cardBank-chip .chip-line:nth-child(2) {
	top: 20px;
}

.cardBank-chip .chip-line:nth-child(3) {
	top: 28px;
}

.cardBank-chip .chip-line:nth-child(4) {
	left: 25px;
	width: 1px;
	height: 50px;
}

.cardBank-chip .chip-main {
	width: 20px;
	height: 25px;
	border: 1px solid #333;
	border-radius: 3px;
	background-image: linear-gradient(to bottom left, #efdbab, #e1cb94);
	z-index: 1;
}

.cardBank-number {
	font-size: 20px;
	letter-spacing: 2px;
	font-family: "Courier New", monospace;
	text-align: center;
	margin-top: 70px;
	/* Espacement par défaut */
}

.cardBank-details {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	opacity: 0.9;
	margin-top: 10px;
}

.cardBank-expiry,
.cardBank-cvv {
	font-weight: bold;
}

.cardBank-name {
	font-size: 16px;
	font-weight: bold;
	letter-spacing: 1px;
	margin-top: 10px;
	text-align: left;
}

.no-spacing .ui-panelgrid-cell {
	padding: 0 !important;
}

.no-spacing .ui-panelgrid-cell>* {
	margin: 0 !important;
}

.customCardbank {
	display: flex;
	flex-direction: column;
	height: 90%;
	margin-top: 10px;

	/* Ajout des bordures */
	border: 1px solid #ddd;
	border-radius: 35px !important;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.customCardTransac {
	border: 1px solid #ddd;
	border-radius: 35px !important;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	margin: 15px;
}

.custom-panel-grid {
	display: flex;
	/* Active Flexbox */
	flex-direction: row;
	/* Organise les colonnes en ligne */
	align-items: flex-start;
	/* Aligne les éléments en haut par défaut */
}

.custom-panel-grid>* {
	flex: 1;
	/* Chaque colonne prend une largeur égale */
	display: flex;
	flex-direction: column;
	/* Organise les éléments en colonne */
}

.custom-panel-grid>*:nth-child(2) {
	justify-content: flex-end;
	/* Aligne les éléments de la deuxième colonne en bas */
}

/* Media Queries pour la r */
@media (max-width: 768px) {
	.customCardbank .customCardTransac {
		border-radius: 10px !important;
		height: 100%;
	}

	.cardBank {
		width: 90%;
		padding: 15px;
		min-height: 200px;
		/* Réduire la hauteur minimale */
	}

	.cardBank-chip {
		top: 50px;
		/* Ajuster la position du chip */
		width: 40px;
		/* Réduire la taille du chip */
		height: 30px;
	}

	.cardBank-chip .chip-line {
		height: 0.8px;
		/* Réduire l'épaisseur des lignes */
	}

	.cardBank-chip .chip-line:nth-child(1) {
		top: 10px;
		/* Ajuster la position des lignes */
	}

	.cardBank-chip .chip-line:nth-child(2) {
		top: 15px;
	}

	.cardBank-chip .chip-line:nth-child(3) {
		top: 20px;
	}

	.cardBank-chip .chip-line:nth-child(4) {
		left: 20px;
		/* Ajuster la position de la ligne verticale */
		height: 40px;
		/* Réduire la longueur de la ligne verticale */
	}

	.cardBank-chip .chip-main {
		width: 15px;
		/* Réduire la taille de la partie centrale */
		height: 20px;
	}

	.cardBank-number {
		font-size: 18px;
		margin-top: 60px;
		/* Réduire l'espacement */
	}

	.cardBank-logo {
		font-size: 12px;
		/* Réduire la taille du nom de la banque */
	}

	.cardBank-type-badge {
		font-size: 10px;
		/* Réduire la taille du type de carte */
		padding: 4px 8px;
		/* Ajuster le padding */
	}

	.cardBank-name {
		font-size: 14px;
		margin-top: 5px;
		/* Réduire l'espacement */
	}

	.cardBank-details {
		font-size: 12px;
		margin-top: 5px;
		/* Réduire l'espacement */
	}
}

@media (max-width: 480px) {
	.cardBank {
		width: 100%;
		padding: 10px;
		min-height: 180px;
		/* Réduire encore la hauteur minimale */
	}

	.cardBank-chip {
		top: 40px;
		/* Ajuster encore la position du chip */
		width: 30px;
		/* Réduire encore la taille du chip */
		height: 20px;
	}

	.cardBank-chip .chip-line {
		height: 0.6px;
		/* Réduire encore l'épaisseur des lignes */
	}

	.cardBank-chip .chip-line:nth-child(1) {
		top: 8px;
		/* Ajuster encore la position des lignes */
	}

	.cardBank-chip .chip-line:nth-child(2) {
		top: 12px;
	}

	.cardBank-chip .chip-line:nth-child(3) {
		top: 16px;
	}

	.cardBank-chip .chip-line:nth-child(4) {
		left: 15px;
		/* Ajuster encore la position de la ligne verticale */
		height: 30px;
		/* Réduire encore la longueur de la ligne verticale */
	}

	.cardBank-chip .chip-main {
		width: 12px;
		/* Réduire encore la taille de la partie centrale */
		height: 15px;
	}

	.cardBank-number {
		font-size: 16px;
		margin-top: 50px;
		/* Réduire encore l'espacement */
	}

	.cardBank-logo {
		font-size: 10px;
		/* Réduire encore la taille du nom de la banque */
	}

	.cardBank-type-badge {
		font-size: 8px;
		/* Réduire encore la taille du type de carte */
		padding: 3px 6px;
		/* Ajuster encore le padding */
	}

	.cardBank-name {
		font-size: 12px;
		margin-top: 5px;
		/* Réduire encore l'espacement */
	}

	.cardBank-details {
		font-size: 10px;
		margin-top: 5px;
		/* Réduire encore l'espacement */
	}
}

/* SHERPA ADMIN */

.nav-header {
	color: var(--secondary-color) !important;
}

.footer-table {
	width: 100%;
	border-collapse: collapse;
}

.label-cell {
	padding: 5px 10px;
	text-align: left;
	font-weight: bold;
	border-bottom: 1px solid #ddd;
}

.value-cell {
	padding: 5px 10px;
	text-align: right;
	border-bottom: 1px solid #ddd;
}

.main-sidebar {
	background-color: #283a5ae6;
}

/* SHERPA ADMIN */

.nav-header {
	color: var(--secondary-color) !important;
}

.footer-table {
	width: 100%;
	border-collapse: collapse;
}

.label-cell {
	padding: 5px 10px;
	text-align: left;
	font-weight: bold;
	border-bottom: 1px solid #ddd;
}

.value-cell {
	padding: 5px 10px;
	text-align: right;
	border-bottom: 1px solid #ddd;
}

.main-sidebar {
	background-color: #283a5ae6;
}

/* SHERPA ADMIN */

.nav-header {
	color: var(--secondary-color) !important;
}

.footer-table {
	width: 100%;
	border-collapse: collapse;
}

.label-cell {
	padding: 5px 10px;
	text-align: left;
	font-weight: bold;
	border-bottom: 1px solid #ddd;
}

.value-cell {
	padding: 5px 10px;
	text-align: right;
	border-bottom: 1px solid #ddd;
}

.main-sidebar {
	background-color: #283a5ae6;
}

/* SHERPA ADMIN */

.nav-header {
	color: var(--secondary-color) !important;
}

.footer-table {
	width: 100%;
	border-collapse: collapse;
}

.label-cell {
	padding: 5px 10px;
	text-align: left;
	font-weight: bold;
	border-bottom: 1px solid #ddd;
}

.value-cell {
	padding: 5px 10px;
	text-align: right;
	border-bottom: 1px solid #ddd;
}

.main-sidebar {
	background-color: #283a5ae6;
}

/************************************************Toggle Switch****************************/
/* Style du fond du toggle (slider) */
.ui-toggleswitch .ui-toggleswitch-slider {
	background-color: white !important;
	/* Couleur de fond fixe */
	border: 2px solid black !important;
}

/* Style du bouton lorsque le toggle est activé */
.ui-toggleswitch-checked .ui-toggleswitch-handler {
	background-color: var(--color-8) !important;
}

/* Style du bouton lorsque le toggle est desactivé */
.ui-toggleswitch-handler {
	background-color: rgb(130, 128, 128) !important;
}

.ui-toggleswitch.ui-toggleswitch-focus .ui-toggleswitch-slider {
	outline: none !important;
	box-shadow: none !important;
}

.ui-button-flat {
	color: black !important;
}

.ui-carousel-indicator.ui-state-highlight .ui-link {
	background-color: var(--color-8) !important;
}

/****************************photo de profil******/
.profile-grid {
	max-width: 500px;
	max-height: 350px;
	text-align: center;
}

@media (max-width: 769px) {
	.profile-grid {
		max-width: 100%;
		max-height: 100%;
	}
}

/*RELAYOUT CLIENT INTERFACE*/
.saving-account-list {
	margin: 60px;
}

#accordeon\:new-custom-saving-btn {
	margin: 20px;
}

#accordeon\:dialogs\:new-custom-saving-modal {
	width: 20% !important;
}

#accordeon\:dialogs\:new-custom-saving-modal_content {
	display: flex;
	flex-direction: column;
	align-items: start;
}

#accordeon\:dialogs\:new-custom-saving-modal_content div {
	display: flex;
	flex-direction: column;
	margin-left: 10%;
}

#accordeon\:dialogs\:new-custom-saving-modal_title {
	margin-left: 10%;
}

#accordeon\:dialogs\:fund-account-modal,
#accordeon\:dialogs\:withdraw-account-modal {
	width: 20% !important;
}

button.sherpa-btn-primary {
	background-color: #283a5a !important;
	border: none !important;
}

button.sherpa-btn-secondary {
	background-color: #8e2c2c !important;
	border: none !important;
}

.table-action-btn-container button {
	margin-left: 2% !important;
}

.swal2-toast {
	margin-top: 20%;
}

/************************************************Toggle Switch****************************/
/* Style du fond du toggle (slider) */
.ui-toggleswitch .ui-toggleswitch-slider {
	background-color: white !important;
	/* Couleur de fond fixe */
	border: 2px solid black !important;
}

/* Style du bouton lorsque le toggle est activé */
.ui-toggleswitch-checked .ui-toggleswitch-handler {
	background-color: var(--color-8) !important;
}

/* Style du bouton lorsque le toggle est desactivé */
.ui-toggleswitch-handler {
	background-color: rgb(130, 128, 128) !important;
}

.ui-toggleswitch.ui-toggleswitch-focus .ui-toggleswitch-slider {
	outline: none !important;
	box-shadow: none !important;
}

.ui-button-flat {
	color: black !important;
}

.ui-carousel-indicator.ui-state-highlight .ui-link {
	background-color: var(--color-8) !important;
}

/* RELAYOUT CLIENT INTERFACES */

/* header */

.main-header ul.ml-auto>li ul {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 110%;
	position: relative;
	right: 30%;
}

.main-header .navbar-nav {
	justify-content: space-between;
}

#form-language-selector\:language-selector {
	border: none;
}

.small-vertical-divider {
	border: 1px solid var(--grey-color);
	height: 23px;
}

/* dashboard */

#compte>.top-container>.title-and-bases-actions>h3 {
	color: var(--color-8);
}

.dashboard-card-title {
	color: var(--color-8);
	font-weight: bold;
	font-size: 18px;
	margin-bottom: 5%;
}

.box-shadowed {
	box-shadow: rgba(14, 30, 37, 0.12) 0 2px 4px 0,
		rgba(14, 30, 37, 0.32) 0 2px 16px 0 !important;
}

.dashboard-card-column-flex-box {
	display: flex;
	flex-direction: column;
}

.dashboard-card-row-flex-box {
	display: flex;
	justify-content: space-between;
}

.big-title {
	font-size: 25px;
	letter-spacing: 1px;
	width: 23vh;
}

.small-title {
	font-size: 15px;
}

.dashboard-card {
	display: flex;
	flex-direction: column;
	border-radius: 30px !important;
	margin: 10px;
}

.dashboard-card:nth-child(1) {
	padding: 20px;
}

.dashboard-card:nth-child(2) {
	justify-content: center;
}

.solde-card {
	background-color: var(--not-white);
	padding: 20px;
	border-radius: 10px;
}

.btn-cards-and-operation>div:nth-child(1) {
	padding: 50px;
	border-radius: 50px;
	width: 95%;
	margin: 10px;
}

.btn-cards-and-operation>div:nth-child(1)>div:nth-child(2)>table tbody tr {
	border-bottom: 1px dashed var(--black-color);
}

.top-container {
	display: flex;
	/* margin-left: 2vh;
	margin-right: 2vh; */
	flex-direction: column;
}

button.custom-icon-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	padding: 30px;
	margin: 10px;
	border-radius: 30px;
	border: none;
}

button.custom-icon-btn i {
	color: var(--white-color);
	font-size: 25px;
}

button.custom-icon-btn span:nth-child(3) {
	background-color: var(--color-8);
	padding: 5px;
	border-radius: 10px;
}

button.custom-icon-btn span.big-title {
	color: var(--color-8);
	font-weight: bold;
}

.dashboard-transaction-graph {
	width: 95%;
}

.custom-icon-btn-container {
	display: flex;
	align-items: center;
}

/****************************photo de profil******/
.profile-grid {
	max-width: 500px;
	max-height: 350px;
	text-align: center;
}

@media (max-width: 769px) {
	.profile-grid {
		max-width: 100%;
		max-height: 100%;
	}
}

/****************************photo de profil******/
.profile-grid {
	max-width: 500px;
	max-height: 350px;
	text-align: center;
}

@media (max-width: 769px) {
	.profile-grid {
		max-width: 100%;
		max-height: 100%;
	}
}

body .ui-chkbox .ui-chkbox-box .ui-chkbox-icon {
	top: 25% !important;
}


/*****************************Additional*********************/
.table-header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	/* Permet de passer à la ligne si l’espace est insuffisant */
	gap: 1rem;
	/* Espace entre les éléments */
	padding: 0.5rem;
	width: 100%;
	box-sizing: border-box;
}

.filter-container {
	min-width: 0;
	/* Important pour empêcher le débordement */
}

.filter-container input {
	width: 100%;
	max-width: 300px;
	/* optionnel */
}

.export-buttons {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.credit-filter-area {
	display: flex;
	flex-wrap: wrap;
	/* Permet le passage à la ligne sur petits écrans */
	gap: 1rem;
	/* Espacement entre les éléments */
	align-items: center;
	/* Alignement vertical */
}

/* Sur petits écrans, les éléments passent à 100% de largeur */
@media (max-width: 768px) {
	.credit-filter-area>div {
		width: 100%;
	}

	/* Ajustement des menus déroulants */
	.credit-filter-area .ui-selectonemenu {
		width: 100% !important;
	}
}


/* Style de base pour le toolbar et ses groupes */
.ui-toolbar .ui-toolbar-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	/* Alignement horizontal par défaut */
	gap: 1rem;
	/* Espacement entre les paires label+champ */
}

/* Conteneur pour chaque paire label + champ */
.ui-toolbar .ui-toolbar-group>* {
	display: flex;
	align-items: center;
	/* Alignement horizontal (desktop) */
	margin-bottom: 0.5rem;
}

/* Responsive : passage en colonne sur mobile */
@media (max-width: 768px) {
	.ui-toolbar .ui-toolbar-group>* {
		flex-direction: column;
		/* Label au-dessus, champ en dessous */
		align-items: flex-start;
		/* Alignement à gauche */
		width: 100%;
		/* Pleine largeur */
	}

	/* Espacement entre label et champ */
	.ui-toolbar .ui-toolbar-group .ui-outputlabel {
		margin-bottom: 0.25rem;
		margin-right: 0;
		/* Réinitialise la marge droite */
	}
}


/* Pour les écrans petits, réduire l'espacement */
@media (max-width: 768px) {
	.ui-toolbar .ui-button {
		margin-right: 0.25rem !important;
	}
}

@media (max-width: 400px) {
	.info-box {
		flex-direction: column;
		min-height: auto;
		padding: 1rem;
		text-align: center;
	}

	.info-box .info-box-content {
		padding: 0.5rem 0;
	}

	.info-box .info-box-icon {
		/* margin-bottom: 0.5rem; */
		font-size: 2.5rem;
	}

	.info-box .info-box-number,
	.info-box .info-box-text {
		font-size: 0.9rem;
		word-wrap: break-word;
	}
}

.admin-graphe {
	display: flex;
	justify-content: space-around;
	gap: 1rem;
	flex-wrap: wrap;
}

/* Responsive : empile les cartes en colonne pour petit écran */
@media (max-width: 768px) {
	.admin-graphe {
		flex-direction: column;
		align-items: center;
	}

	.admin-graphe .card {
		width: 90% !important;
		height: auto !important;
	}
}

/* Conteneur principal en grille */
.card-grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	/* Colonnes adaptatives */
	gap: 15px;
	padding: 10px;
}

/* Style des cartes */
.stats-card {
	background-color: #3d4d6a !important;
	color: white !important;
	border-radius: 8px;
	padding: 15px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Titre de la carte */
.card-title {
	text-decoration: underline;
	font-weight: bold;
	font-size: 1.1em;
	display: block;
	margin-bottom: 10px;
}

/* Contenu de la carte */
.card-content {
	margin-bottom: 10px;
}

/* Barre de progression */
.progress-bar-custom {
	width: 100%;
	margin: 5px 0;
}

/* Texte d'écart */
.ecart-text {
	font-size: 0.9em;
	opacity: 0.9;
}

/* Responsive : 2 colonnes sur tablettes */
@media (max-width: 1024px) {
	.card-grid-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 600px) {
	.card-grid-container {
		grid-template-columns: 1fr;
	}
}

.card-container-rh {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	width: 100%;
	margin-top: 10px;
}

.card-little {
	padding: 30px;
	border-radius: 30px;
	box-sizing: border-box;
	/* Ajout de transitions pour fluidité */
	transition: flex-basis 0.3s ease;
}

/* Grands écrans - valeurs par défaut */
.card-wide {
	flex: 1 1 calc(65% - 20px);
	min-width: 0;
	/* Important pour flexbox */
}

.card-narrow {
	flex: 1 1 calc(35% - 20px);
	min-width: 0;
}

/* Mobile - seulement sous 768px */
@media (max-width: 768px) {
	.card-container-rh>.card-little {
		flex-basis: 100% !important;
		min-width: 100%;
		/* Force le passage à 100% */
	}

	/* Réinitialisation spécifique au retour desktop */
	@media (min-width: 769px) {
		.card-wide {
			flex-basis: calc(65% - 20px) !important;
		}

		.card-narrow {
			flex-basis: calc(35% - 20px) !important;
		}
	}
}

.progress-container {
	display: flex;
	flex-direction: column;
	gap: 2px;
	/* Espacement entre le titre et la barre */
	width: 100%;
}

.progress-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	/* Espace entre la barre et le chiffre */
}

.progress-bar-custom {
	width: 95% !important;
	/* Force la largeur à 70% */
}

/* Conteneur principal */
.dashboard-buttons-container {
	display: flex;
	flex-wrap: wrap;
	/* Permet le retour à la ligne */
	gap: 30px;
	margin-top: 20px;
}

/* Style des boutons */
.custom-icon-btn {
	flex: 1;
	/* Tous les boutons prennent largeur égale */
	min-width: 200px;
	/* Largeur minimale avant passage en colonne */
	padding: 20px;
	border-radius: 15px;
	text-align: center;
	background: white;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive - empilement vertical */
@media (max-width: 768px) {
	.dashboard-buttons-container {
		flex-direction: column;
		gap: 15px;
	}

	.custom-icon-btn {
		width: 100%;
	}
}

.document-container {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 10px;
}

.document-preview {
	flex: 0 0 auto;
}

.document-actions {
	flex: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cardPret {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 5px;
	background: #f9f9f9;
}

/* Toolbar specifique */
.responsive-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 1rem;
	background: #f8f9fa;
	border-radius: 6px;
	margin-bottom: 1rem;
}

/* Groupes du toolbar */
.toolbar-group-left,
.toolbar-group-right {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Conteneur des champs de date */
.toolbar-date-container {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Groupe label + datepicker */
.date-field-group {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 180px;
}

/* Labels des dates */
.date-label {
	font-weight: 500;
	color: #495057;
	font-size: 0.875rem;
	margin-bottom: 0.25rem;
}

/* Datepickers responsives */
/* .responsive-datepicker {
	width: 100% !important;
	max-width: 180px;
}

.responsive-datepicker .ui-datepicker {
	width: 100% !important;
}

.responsive-datepicker .ui-inputfield {
	width: 100% !important;
	min-width: 150px;
} */

/* Bouton de validation */
.validate-btn {
	min-width: 100px;
	align-self: flex-end;
	margin-bottom: 5px !important;
}

/* Responsive pour tablettes */
@media (max-width: 1024px) {
	.responsive-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.toolbar-group-left,
	.toolbar-group-right {
		justify-content: center;
	}

	.toolbar-date-container {
		justify-content: center;
		width: 100%;
	}

	.date-field-group {
		min-width: 160px;
	}
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
	.responsive-toolbar {
		padding: 0.75rem;
		gap: 0.75rem;
	}

	.toolbar-date-container {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.date-field-group {
		min-width: 100%;
		max-width: 100%;
	}


	.validate-btn {
		align-self: stretch;
		margin-top: 0.5rem;
	}

	.toolbar-group-left,
	.toolbar-group-right {
		justify-content: stretch;
	}
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
	.responsive-toolbar {
		padding: 0.5rem;
	}

	.date-field-group {
		margin-bottom: 0.5rem;
	}

}


/* Assure que les inputs ne débordent pas */

/* Styles pour les boutons d'exportation */
.toolbar-group-right .ui-button {
	white-space: nowrap;
}

@media (max-width: 768px) {
	.toolbar-group-right {
		justify-content: center !important;
	}

	.toolbar-group-right .ui-button {
		min-width: 120px;
	}

	.ui-widget-header .ui-inputfield {
		width: 100%;
	}
}