/* Inforéso UI. Tout est limité à html.iu, posé par inforeui.js sur les pages avec menu. */

/* Poppins, hébergée avec le module (licence OFL : fonts/LICENSE.txt). */
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
}
html.iu body,
html.iu button,
html.iu input,
html.iu select,
html.iu textarea,
html.iu table,
html.iu td,
html.iu th,
html.iu .select2-container,
html.iu .select2-dropdown,
html.iu .ui-widget,
body.bodylogin,
body.bodylogin input,
body.bodylogin a {
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---- Couleurs : clair ---- */
html.iu {
	--iu-w: 276px;
	--iu-top: 56px;
	--iu-bg: #eff2f7;
	--iu-surface: #ffffff;
	--iu-side: #ffffff;
	--iu-ink: #27364f;
	--iu-muted: #7b879b;
	--iu-line: #e3e8f0;
	--iu-pill: #eef1f7;
	--iu-accent: #2f6fdf;
	--iu-shadow: 0 2px 10px rgba(39, 54, 79, .08);

	--colorbackbody: var(--iu-bg);
	--colorbackvmenu1: var(--iu-side);
	--colorbackhmenu1: var(--iu-surface);
	--colortextbackhmenu: var(--iu-ink);
	--colortextbackvmenu: var(--iu-ink);
	--colortext: var(--iu-ink);
	--colortexttitle: var(--iu-ink);
	--colortexttitlenotab: var(--iu-accent);
	--colortextlink: var(--iu-accent);
	--colortexttitlelink: var(--iu-accent);
	--butactionbg: var(--iu-accent);
	--colorbacktabcard1: var(--iu-surface);
	--colorbacktabactive: var(--iu-surface);
	--colorbacktitle1: #f4f6fa;
	--colorbacklineimpair1: var(--iu-surface);
	--colorbacklineimpair2: var(--iu-surface);
	--colorbacklinepair1: var(--iu-surface);
	--colorbacklinepair2: var(--iu-surface);
	--colorbacklinepairhover: #f4f7fc;
	--colorboxiconbg: #f4f6fa;

	/* Eldy suit le mode sombre du système : le choix du module doit l'emporter dans les deux sens. */
	--colorbacklinepairchecked: #e3edfc;
	--colorbackgrey: #eff2f7;
	--colorbackmobilemenu: #ffffff;
	--tooltipbgcolor: #27364f;
	--tooltipfontcolor: #ffffff;
	--inputbackgroundcolor: #ffffff;
	--inputbackgroundcolordisabled: #eef1f5;
	--inputcolordisabled: #6d788a;
	--inputbordercolor: #cfd6e1;
	--oddevencolor: #27364f;
	--colorboxstatsborder: #e3e8f0;
	--dolgraphbg: #ffffff;
	--colortextbacktab: #27364f;
	--refidnocolor: #27364f;
	--tableforfieldcolor: #27364f;
	--amountremaintopaycolor: #b42318;
	--amountpaymentcomplete: #17794d;
	--tablevalidbgcolor: #fff8e1;
	--listetotal: #1d4ed8;
	--colorblack: #000000;
	--colorwhite: #ffffff;
	color-scheme: light;
}

/* ---- Couleurs : sombre ---- */
html.iu.iu-dark {
	--iu-bg: #3a4351;
	--iu-surface: #444e5d;
	--iu-side: #2c3440;
	--iu-ink: #e6eaf1;
	--iu-muted: #aab4c3;
	--iu-line: #566172;
	--iu-pill: #20262f;
	--iu-accent: #6ea8fa;
	--iu-shadow: 0 2px 10px rgba(0, 0, 0, .25);

	--colorbacktitle1: #4b5666;
	--colorbacklinepairhover: #4d5869;
	--colorbacklinepairchecked: #4a5a75;
	--colorboxiconbg: #505b6b;
	--colorbackgrey: #2c3440;
	--colorbackmobilemenu: #2c3440;
	--tooltipbgcolor: #20262f;
	--tooltipfontcolor: #e6eaf1;
	--inputbackgroundcolor: #3a4351;
	--inputbackgroundcolordisabled: #4b5666;
	--inputcolordisabled: #aab4c3;
	--inputbordercolor: #667285;
	--oddevencolor: #e6eaf1;
	--colorboxstatsborder: #566172;
	--dolgraphbg: #444e5d;
	--colortextbacktab: #e6eaf1;
	--refidnocolor: #e6eaf1;
	--tableforfieldcolor: #e6eaf1;
	--amountremaintopaycolor: #ffb1a8;
	--amountpaymentcomplete: #8fe0bd;
	--tablevalidbgcolor: #4c4a37;
	--listetotal: #ffd27a;
	--colorblack: #f1f4f8;
	--colorwhite: #2c3440;
	color-scheme: dark;
}
html.iu body,
html.iu button { color: var(--iu-ink); }

/* ---- Structure ---- */
html.iu body { background: var(--iu-bg) !important; }
html.iu #tmenu_tooltip,
html.iu .side-nav { display: none !important; }

html.iu #id-top {
	position: sticky;
	top: 0;
	z-index: 1005;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	height: var(--iu-top);
	margin-left: var(--iu-w);
	padding: 0 20px 0 12px;
	background: var(--iu-surface);
	border-bottom: 1px solid var(--iu-line);
	box-shadow: none;
	transition: margin-left .2s ease;
}
html.iu #id-container {
	display: block;
	width: auto;
	margin-left: var(--iu-w);
	background: var(--iu-bg);
	transition: margin-left .2s ease;
}
html.iu #id-right {
	display: block;
	width: auto !important;
	padding: 20px 8px 30px;
	background: var(--iu-bg);
}
html.iu.iu-hidden #id-top,
html.iu.iu-hidden #id-container { margin-left: 0; }

html.iu #id-top .login_block {
	display: flex !important;
	position: static;
	align-items: center;
	margin-left: auto;
	float: none;
	background: none;
	color: var(--iu-ink);
}
html.iu #id-top .login_block_other {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	white-space: nowrap;
}
html.iu #id-top .login_block_user { flex: 0 0 auto; width: auto; }
html.iu #id-top .login_block a,
html.iu #id-top .login_block .atoploginusername,
html.iu #id-top .login_block .fa,
html.iu #id-top .login_block .fas,
html.iu #id-top .login_block .aversion { color: var(--iu-ink) !important; }
html.iu #id-top .login_block .dropdown-menu a { color: var(--colortextlink) !important; }

html.iu .iu-burger,
html.iu .iu-scheme {
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--iu-ink);
	font-size: 16px;
	cursor: pointer;
	box-shadow: none;
}
html.iu .iu-burger:hover,
html.iu .iu-scheme:hover { background: var(--iu-pill); }
html.iu .iu-burger:focus-visible,
html.iu .iu-scheme:focus-visible,
html.iu .iu-plus:focus-visible,
html.iu .iu-link:focus-visible { outline: 2px solid var(--iu-accent); outline-offset: 1px; }

/* ---- Colonne de gauche ---- */
html.iu .iu-sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 1010;
	display: flex;
	flex-direction: column;
	width: var(--iu-w);
	box-sizing: border-box;
	padding: 0 14px 18px;
	overflow-x: hidden;
	overflow-y: auto;
	background: var(--iu-side);
	border-right: 1px solid var(--iu-line);
	color: var(--iu-ink);
	transition: transform .2s ease;
	scrollbar-width: thin;
}
html.iu.iu-hidden .iu-sidebar { transform: translateX(-100%); }

html.iu .iu-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	height: var(--iu-top);
	padding: 0 8px;
	color: var(--iu-ink);
	text-decoration: none;
}
html.iu .iu-brand-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: #f4736a;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}
html.iu .iu-brand-name {
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

html.iu .iu-user {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 auto;
	padding: 18px 8px 16px;
	color: var(--iu-ink);
	text-align: center;
	text-decoration: none;
}
html.iu .iu-user-photo {
	width: 72px;
	height: 72px;
	margin-bottom: 10px;
	padding: 3px;
	border: 2px solid var(--iu-line);
	border-radius: 50%;
	background: var(--iu-side);
	object-fit: cover;
}
html.iu .iu-user-name { font-size: 14px; font-weight: 600; }
html.iu .iu-user-role { margin-top: 2px; color: var(--iu-muted); font-size: 11.5px; }

html.iu .iu-search { flex: 0 0 auto; margin: 0 2px 12px; }
html.iu .iu-search .blockvmenusearch { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html.iu .iu-search .select2-container { width: 100% !important; }

/* ---- Entrées du menu ---- */
html.iu .iu-item { margin-bottom: 2px; }
html.iu .iu-row {
	display: flex;
	align-items: center;
	min-height: 42px;
	border-radius: 21px;
	transition: background .12s ease;
}
html.iu .iu-row:hover { background: var(--iu-pill); }
html.iu .iu-item.is-active > .iu-row { background: var(--iu-pill); }
html.iu .iu-link {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 42px;
	padding: 0 4px 0 14px;
	border-radius: 21px;
	color: var(--iu-ink) !important;
	font-size: 13.5px;
	text-decoration: none !important;
}
html.iu .iu-item.is-active .iu-link { color: var(--iu-accent) !important; font-weight: 600; }
html.iu .iu-item.is-disabled .iu-link { opacity: .5; }
html.iu .iu-picto {
	flex: 0 0 22px;
	width: 22px;
	margin-right: 10px;
	padding: 0 !important;
	color: inherit !important;
	font-size: 14px;
	text-align: center;
}
html.iu .iu-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Le « + », dessiné en CSS pour se transformer en « - » à l'ouverture. */
html.iu .iu-plus {
	position: relative;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	margin-right: 3px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	box-shadow: none;
	cursor: pointer;
}
html.iu .iu-plus::before,
html.iu .iu-plus::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 2px;
	margin: -1px 0 0 -5.5px;
	border-radius: 1px;
	background: var(--iu-muted);
	transition: transform .15s ease;
}
html.iu .iu-plus::after { transform: rotate(90deg); }
html.iu .iu-item.is-open .iu-plus::after { transform: rotate(0deg); }
html.iu .iu-plus:hover::before,
html.iu .iu-plus:hover::after { background: var(--iu-accent); }

/* ---- Sous-menu : le menu gauche d'origine de Dolibarr ---- */
html.iu .iu-sub { display: none; padding: 6px 0 8px 18px; }
html.iu .iu-item.is-open > .iu-sub { display: flow-root; }
html.iu .iu-sub .vmenu {
	display: block !important;
	position: static;
	float: none !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	background: none;
	box-shadow: none;
}
html.iu .iu-sub .blockvmenu,
html.iu .iu-sub .blockvmenuend,
html.iu .iu-sub .blockvmenubookmarks {
	float: none !important;
	width: auto !important;
	min-width: 0 !important;
	margin: 0 0 4px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
}
html.iu .iu-sub .menu_titre,
html.iu .iu-sub .menu_contenu,
html.iu .iu-sub .menu_top,
html.iu .iu-sub .menu_end {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
}
html.iu .iu-sub .menu_contenu br { display: none; }
html.iu .iu-sub a.vmenu,
html.iu .iu-sub a.vsmenu { margin: 0 !important; line-height: 1.35; }
html.iu .iu-sub a.vmenu,
html.iu .iu-sub a.vsmenu,
html.iu .iu-sub .vmenu a {
	display: block;
	overflow: hidden;
	padding: 5px 8px;
	border-radius: 8px;
	color: var(--iu-ink) !important;
	font-size: 12.5px;
	font-weight: 400;
	white-space: normal;
	text-decoration: none !important;
}
html.iu .iu-sub a.vmenu { font-weight: 600; }
html.iu .iu-sub a.vsmenu { color: var(--iu-muted) !important; }
/* Dolibarr indente les sous-niveaux avec des espaces : le lien doit rester sur leur ligne. */
html.iu .iu-sub .menu_contenu { white-space: nowrap; }
html.iu .iu-sub a.vsmenu {
	display: inline-block;
	box-sizing: border-box;
	max-width: calc(100% - 26px);
	vertical-align: top;
}
html.iu .iu-sub a:hover { background: var(--iu-pill); color: var(--iu-accent) !important; }
html.iu .iu-sub .fa,
html.iu .iu-sub .fas,
html.iu .iu-sub .pictofixedwidth { color: inherit !important; }

/* ---- Cartes du tableau de bord ---- */
html.iu .info-box {
	overflow: hidden;
	border: 0;
	border-radius: 14px;
	background: var(--iu-surface);
	box-shadow: var(--iu-shadow);
}
html.iu .info-box-icon {
	border-radius: 14px;
	background: var(--colorboxiconbg);
}
html.iu .info-box-icon > i,
html.iu .info-box-icon > i::before { color: #fff !important; }
html.iu .info-box-weather .info-box-icon { background: var(--colorboxiconbg); }
html.iu .info-box-weather .info-box-icon > i,
html.iu .info-box-weather .info-box-icon > i::before { color: #d5352b !important; }
html.iu.iu-dark .info-box-weather .info-box-icon > i,
html.iu.iu-dark .info-box-weather .info-box-icon > i::before { color: #ff8d80 !important; }
html.iu .bg-infobox-action { background: #6074e4 !important; }
html.iu .bg-infobox-propal { background: #2bb58a !important; }
html.iu .bg-infobox-commande { background: #ffa94d !important; }
html.iu .bg-infobox-facture { background: #27aebf !important; }
html.iu .bg-infobox-order_supplier,
html.iu .bg-infobox-supplier_proposal { background: #ffa94d !important; }
html.iu .bg-infobox-invoice_supplier { background: #f0527f !important; }
html.iu .bg-infobox-bank_account { background: #8d6bd8 !important; }
html.iu .bg-infobox-project,
html.iu .bg-infobox-contrat,
html.iu .bg-infobox-ticket,
html.iu .bg-infobox-adherent { background: #4e94ee !important; }
html.iu .info-box-createlink span { color: #fff !important; }
html.iu .info-box-title {
	color: var(--iu-muted) !important;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
}
html.iu .info-box-number,
html.iu .info-box-line,
html.iu .info-box-line a,
html.iu .info-box-line-text { color: var(--iu-ink) !important; }
html.iu .info-box-number { font-weight: 600; opacity: 1; }
html.iu .info-box-line .opacitymedium { opacity: .75; }

/* ---- Blocs et tableaux ---- */
html.iu div.tabBar,
html.iu .div-table-responsive,
html.iu .div-table-responsive-no-min,
html.iu table.noborder,
html.iu table.liste,
html.iu div.box {
	border-color: var(--iu-line);
	background: var(--iu-surface);
}
html.iu.iu-dark table.noborder tr,
html.iu.iu-dark table.liste tr,
html.iu.iu-dark table.noborder td,
html.iu.iu-dark table.liste td { border-color: var(--iu-line); color: var(--iu-ink); }
html.iu.iu-dark tr.liste_titre,
html.iu.iu-dark tr.liste_titre td,
html.iu.iu-dark tr.liste_titre th,
html.iu.iu-dark .liste_titre a { color: var(--iu-ink) !important; }
html.iu.iu-dark input,
html.iu.iu-dark textarea,
html.iu.iu-dark select,
html.iu.iu-dark .select2-container .select2-selection,
html.iu.iu-dark .select2-dropdown {
	border-color: var(--inputbordercolor);
	background: var(--inputbackgroundcolor);
	color: var(--iu-ink);
}
html.iu.iu-dark .select2-selection__rendered,
html.iu.iu-dark .select2-selection__placeholder { color: var(--iu-muted) !important; }
html.iu.iu-dark .dropdown-menu { background: var(--iu-surface); color: var(--iu-ink); }
html.iu.iu-dark .opacitymedium { opacity: .8; }

/* ---- Agenda et module Équipe : couleurs fixées en dur à l'origine ---- */
html.iu.iu-dark td.cal_current_month { background: var(--iu-surface) !important; }
html.iu.iu-dark td.cal_other_month,
html.iu.iu-dark td.cal_past { background: var(--iu-bg) !important; }
html.iu.iu-dark a.dayevent-aday { color: var(--iu-ink) !important; }
html.iu.iu-dark td.cal_past a.dayevent-aday,
html.iu.iu-dark td.cal_other_month a.dayevent-aday { color: var(--iu-muted) !important; }
html.iu.iu-dark table.equipe-agenda th,
html.iu.iu-dark table.equipe-agenda td,
html.iu.iu-dark .equipe-checkcol,
html.iu.iu-dark .equipe-phone select {
	background: var(--iu-surface);
	color: var(--iu-ink);
}
html.iu.iu-dark table.equipe-agenda th.equipe-today { background: #55587a; }
html.iu.iu-dark .equipe-type,
html.iu.iu-dark .equipe-state { background: var(--iu-pill); color: var(--iu-ink); }
html.iu.iu-dark .equipe-wait { color: var(--iu-muted); }

/* ---- Petits écrans : la colonne passe par-dessus le contenu ---- */
html.iu .iu-backdrop { display: none; }
@media (max-width: 767px) {
	html.iu #id-top,
	html.iu #id-container { margin-left: 0; }
	html.iu #id-top .aversion { display: none; }
	html.iu .iu-sidebar { transform: translateX(-100%); }
	html.iu.iu-open .iu-sidebar { transform: none; }
	html.iu.iu-open .iu-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1009;
		background: rgba(0, 0, 0, .4);
	}
}

/* ---- Version 1.1 : colonne, en-tête et boutons réglables séparément ---- */
html.iu {
	--iu-page-ink: #27364f;
	--iu-top-ink: #27364f;
	--iu-bg: #f0f2f7;
	--iu-side-ink: #27364f;
	--iu-side-muted: #7b879b;
	--iu-side-line: #e3e8f0;
	--iu-side-pill: #eef1f7;
	--iu-side-accent: #2f6fdf;
	--iu-accent: #2f6fdf;
	--butactionbg: var(--iu-btn, #3f51b5);
	--colortextlink: #1f2d7a;
	--colortexttitlelink: #1f2d7a;
	/* Libellés obligatoires : Eldy les passe en clair quand Windows est en sombre. */
	--fieldrequiredcolor: #000000;
	--amountremaintopaybackcolor: none;
	--infoboxmoduleenabledbgcolor: linear-gradient(0.4turn, #ffffff, #ffffff, #ffffff, #e4efe8);
}
html.iu.iu-dark {
	--fieldrequiredcolor: #f1f4f8;
	--infoboxmoduleenabledbgcolor: linear-gradient(0.4turn, #444e5d, #444e5d, #444e5d, #3c5a4c);
	--iu-page-ink: #e6eaf1;
	--iu-top-ink: #e6eaf1;
	--iu-bg: #3a4351;
	--iu-accent: #6ea8fa;
	--colortextlink: #8fbcff;
	--colortexttitlelink: #8fbcff;
}
html.iu.iu-side-light {
	--iu-side: #ffffff;
	--iu-side-ink: #27364f;
	--iu-side-muted: #7b879b;
	--iu-side-line: #e3e8f0;
	--iu-side-pill: #eef1f7;
	--iu-side-accent: #2f6fdf;
}
html.iu.iu-side-dark {
	--iu-side: #2f3846;
	--iu-side-ink: #eef1f6;
	--iu-side-muted: #aab4c3;
	--iu-side-line: #434d5c;
	--iu-side-pill: #20262f;
	--iu-side-accent: #6ea8fa;
}
html.iu .iu-sidebar {
	--iu-ink: var(--iu-side-ink);
	--iu-muted: var(--iu-side-muted);
	--iu-line: var(--iu-side-line);
	--iu-pill: var(--iu-side-pill);
	--iu-accent: var(--iu-side-accent);
	border-right: 0;
	box-shadow: 0 0 18px rgba(39, 54, 79, .08);
}
html.iu #id-top {
	--iu-ink: var(--iu-top-ink);
	--iu-pill: rgba(127, 127, 127, .18);
	background: var(--iu-top-bg, var(--iu-bg));
	border-bottom: 0;
}
html.iu #id-top .dropdown-menu { --iu-ink: var(--iu-page-ink); }

/* Sous-menu : page en cours */
html.iu .iu-sub a.is-current { color: var(--iu-accent) !important; font-weight: 600; }
html.iu .iu-sub a.is-current::before { content: "\2022"; margin-right: 6px; }

/* Cartes : bloc plein à gauche, grand arrondi de ce côté */
html.iu .info-box { border-radius: 22px 6px 6px 22px; box-shadow: 0 1px 6px rgba(39, 54, 79, .06); }
html.iu .info-box-icon { border-radius: 0; filter: none; opacity: 1; }
html.iu .info-box-weather .info-box-icon { background: #f7f8fb !important; }
html.iu.iu-dark .info-box-weather .info-box-icon { background: #f4f5f8 !important; }
html.iu.iu-dark .info-box-weather .info-box-icon > i,
html.iu.iu-dark .info-box-weather .info-box-icon > i::before { color: #d5352b !important; }
html.iu.iu-dark .info-box { background: transparent; border: 1px solid var(--iu-line); box-shadow: none; }
html.iu .bg-infobox-action,
html.iu .bg-infobox-bank_account { background: #f7654f !important; }
html.iu .bg-infobox-propal,
html.iu .bg-infobox-supplier_proposal { background: #2ec8dc !important; }
html.iu .bg-infobox-commande { background: #ffad4f !important; }
html.iu .bg-infobox-facture,
html.iu .bg-infobox-invoice_supplier,
html.iu .bg-infobox-expensereport { background: #f9608a !important; }
html.iu .bg-infobox-order_supplier,
html.iu .bg-infobox-contrat { background: #4caf50 !important; }
html.iu .bg-infobox-project,
html.iu .bg-infobox-ticket,
html.iu .bg-infobox-adherent { background: #6a7de8 !important; }
html.iu .bg-infobox-holiday { background: #f7654f !important; }
html.iu .info-box-title { color: var(--iu-page-ink) !important; }

/* Champs soulignés et boutons pleins */
html.iu .fiche input[type="text"]:not(.flat-box),
html.iu .fiche input[type="number"],
html.iu .fiche input[type="email"],
html.iu .fiche .select2-container--default .select2-selection--single {
	border-width: 0 0 1px !important;
	border-radius: 0 !important;
	background: transparent !important;
}
html.iu .butAction,
html.iu .button:not(.smallpaddingimp):not(.reposition),
html.iu input.button {
	border-radius: 4px;
	box-shadow: 0 3px 8px rgba(39, 54, 79, .22);
	text-transform: uppercase;
}

/* Boutons flottants et panneau de réglages */
html.iu .iu-float {
	position: fixed;
	right: 16px;
	z-index: 1020;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--iu-btn, #3f51b5);
	color: #fff !important;
	font-size: 15px;
	box-shadow: 0 4px 12px rgba(39, 54, 79, .3);
	cursor: pointer;
}
html.iu .iu-float-scroll { bottom: 70px; }
html.iu .iu-float-gear { bottom: 18px; }
html.iu .iu-panel {
	display: none;
	position: fixed;
	right: 70px;
	bottom: 18px;
	z-index: 1020;
	width: 280px;
	box-sizing: border-box;
	padding: 16px 18px;
	border-radius: 10px;
	background: var(--iu-surface);
	color: var(--iu-page-ink);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}
html.iu .iu-panel.is-open { display: block; }
html.iu .iu-panel h4 {
	margin: 12px 0 6px;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--iu-line);
	font-size: 12px;
	font-weight: 600;
}
html.iu .iu-panel h4:first-child { margin-top: 0; }
html.iu .iu-choice {
	margin-right: 6px;
	padding: 3px 16px;
	border: 1px solid var(--iu-line);
	border-radius: 14px;
	background: var(--iu-surface);
	color: var(--iu-page-ink);
	font-size: 12px;
	cursor: pointer;
	box-shadow: none;
}
html.iu .iu-choice.is-on { background: #808791; color: #fff; }
html.iu .iu-swatch {
	width: 26px;
	height: 26px;
	margin: 0 5px 5px 0;
	padding: 0;
	border: 1px solid var(--iu-line);
	border-radius: 4px;
	cursor: pointer;
	box-shadow: none;
}
html.iu .iu-swatch.is-on { outline: 2px solid var(--iu-page-ink); outline-offset: 1px; }

/* ---- Page de connexion (sans script : le module ne s'y charge qu'en CSS) ---- */
body.bodylogin { color: #fff; }
body.bodylogin .login_center {
	background: linear-gradient(135deg, #cfe0fb 0%, #b9f3f6 45%, #e6d3fb 75%, #ffc2fb 100%) !important;
}
body.bodylogin .login_table_title,
body.bodylogin a.login_table_title { color: #fff !important; text-shadow: none; }
body.bodylogin form#login {
	max-width: 400px;
	margin: 0 auto;
	padding: 28px 34px 34px;
	border-radius: 28px;
	background: linear-gradient(180deg, #7579ff 0%, #b224ef 100%);
	box-shadow: 0 18px 50px rgba(90, 50, 170, .3);
}
body.bodylogin .login_table {
	margin: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
}
body.bodylogin #img_logo { filter: brightness(0) invert(1); }
body.bodylogin .fa-user,
body.bodylogin .fa-key { display: none !important; }
body.bodylogin form#login input#username,
body.bodylogin form#login input#password {
	width: 100% !important;
	padding-left: 12px !important;
	border-width: 0 0 2px !important;
	border-color: rgba(255, 255, 255, .35) !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #fff !important;
	box-shadow: none !important;
}
body.bodylogin form#login input::placeholder { color: rgba(255, 255, 255, .7); }
body.bodylogin form#login input[type="submit"] {
	padding: 12px 34px !important;
	border: 0 !important;
	border-radius: 30px !important;
	background: #ffab00 !important;
	color: #fff !important;
	text-transform: none;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
body.bodylogin form#login a { color: #fff !important; }

/* Poppins est plus large qu'Arial : on resserre les textes les plus contraints. */
html.iu .iu-link { font-size: 13px; }
html.iu .iu-item.is-active .iu-link { font-weight: 500; }
html.iu .info-box-line,
html.iu .info-box-line-text,
html.iu .info-box-line a { font-size: 12px; }
html.iu .info-box-line-text { width: auto !important; max-width: 150px !important; }

/* ---- Version 1.3 : sous-menu net, sans icônes, lignes régulières ---- */
html.iu .iu-sub { padding: 4px 0 10px 8px; }
html.iu .iu-sub .blockvmenu,
html.iu .iu-sub .blockvmenuend,
html.iu .iu-sub .blockvmenubookmarks { margin: 0 !important; }
html.iu .iu-sub .menu_contenu {
	padding-left: calc(var(--iu-level, 0) * 14px + 12px) !important;
	white-space: normal;
}
html.iu .iu-sub .menu_titre { padding-left: 2px !important; }
html.iu .iu-sub .blockvmenu + .blockvmenu { margin-top: 6px !important; }
html.iu .iu-sub a.vmenu,
html.iu .iu-sub a.vsmenu,
html.iu .iu-sub .vmenu a {
	display: block;
	max-width: none;
	margin: 0 !important;
	padding: 6px 10px;
	border-radius: 8px;
	color: var(--iu-ink) !important;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
}
html.iu .iu-sub a.vmenu { font-weight: 500; }
html.iu .iu-sub a.vmenu i,
html.iu .iu-sub a.vmenu .fa,
html.iu .iu-sub a.vmenu .fas,
html.iu .iu-sub a.vmenu .pictofixedwidth,
html.iu .iu-sub a.vmenu img { display: none !important; }
html.iu .iu-sub a:hover { background: var(--iu-pill); color: var(--iu-accent) !important; }
html.iu .iu-sub a.is-current { color: var(--iu-accent) !important; font-weight: 500; }
html.iu .iu-sub a.is-current::before { margin-right: 7px; font-weight: 700; }

/* Colonne : barre de défilement discrète */
html.iu .iu-sidebar { scrollbar-width: thin; scrollbar-color: transparent transparent; }
html.iu .iu-sidebar:hover { scrollbar-color: var(--iu-side-line) transparent; }
html.iu .iu-sidebar::-webkit-scrollbar { width: 6px; }
html.iu .iu-sidebar::-webkit-scrollbar-thumb { border-radius: 3px; background: transparent; }
html.iu .iu-sidebar:hover::-webkit-scrollbar-thumb { background: var(--iu-side-line); }
html.iu .iu-user-photo { width: 84px; height: 84px; }
html.iu .iu-link { font-size: 13.5px; }
html.iu .iu-row, html.iu .iu-link { min-height: 44px; }

/* Recherche dans la barre du haut */
html.iu #id-top .iu-search { flex: 0 1 280px; width: 280px; margin: 0 12px; }
html.iu #id-top .iu-search .blockvmenusearch { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html.iu #id-top .iu-search .select2-container { width: 100% !important; }
html.iu #id-top .iu-search .select2-selection {
	display: block;
	box-sizing: border-box;
	width: 100% !important;
	border-radius: 8px !important;
	background: var(--iu-surface) !important;
}
html.iu #id-top .iu-search .select2-selection__arrow { right: 6px !important; }
html.iu #id-top .select2-selection__placeholder { color: #6d788a !important; }

/* Lisibilité du contenu */
html.iu .fiche { font-size: 13.5px; }
html.iu .opacitymedium { opacity: .88; }
html.iu .tabs a.tab .badge,
html.iu .tabs .badge.marginleftonlyshort { background: #5b6880 !important; color: #ffffff !important; }
html.iu .badge-status1, html.iu .badge-status3 { color: #1f2937 !important; }
html.iu div.tabBar { border: 0; border-radius: 8px; box-shadow: 0 1px 6px rgba(39, 54, 79, .06); }
html.iu.iu-dark .amount,
html.iu.iu-dark span.amount { color: var(--iu-ink) !important; }
html.iu.iu-dark .badgeneutral { background: #5b6880 !important; color: #ffffff !important; }
html.iu.iu-dark .urllink,
html.iu.iu-dark .urllink input { background: var(--iu-surface) !important; color: var(--iu-ink) !important; }
html.iu.iu-dark .opacitymedium { opacity: .92; }

@media (max-width: 767px) {
	html.iu #id-top .iu-search { display: none; }
}

/* ---- Version 1.4 : une seule police, textes plus grands et plus contrastés ---- */
html.iu body *:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fa-solid):not([class^="fa-"]) {
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
html.iu {
	--iu-w: 292px;
	--iu-page-ink: #1f2d45;
	--iu-top-ink: #1f2d45;
	--iu-ink: #1f2d45;
	--iu-muted: #56637a;
	--iu-accent: #1d5fd1;
	--iu-side-ink: #1f2d45;
	--iu-side-muted: #56637a;
	--iu-side-accent: #1d5fd1;
	--colortext: #1f2d45;
	--colortexttitle: #1f2d45;
	--colortexttitlenotab: #1f2d45;
}
html.iu.iu-side-light { --iu-side-ink: #1f2d45; --iu-side-muted: #56637a; --iu-side-accent: #1d5fd1; }
html.iu.iu-dark {
	--iu-page-ink: #f1f4f8;
	--iu-top-ink: #f1f4f8;
	--iu-ink: #f1f4f8;
	--iu-muted: #c6cfdb;
	--iu-accent: #8fbcff;
	--colortext: #f1f4f8;
	--colortexttitle: #f1f4f8;
	--colortexttitlenotab: #f1f4f8;
}
html.iu.iu-side-dark { --iu-side-ink: #f1f4f8; --iu-side-muted: #c6cfdb; --iu-side-accent: #8fbcff; }

/* Menu de gauche */
html.iu .iu-sidebar { padding: 0 12px 20px; }
html.iu .iu-brand-tile { background: #d94f45; }
html.iu .iu-brand-name { font-size: 16px; }
html.iu .iu-user { padding: 14px 8px 18px; }
html.iu .iu-user-name { font-size: 15px; }
html.iu .iu-user-role { margin-top: 3px; color: var(--iu-muted); font-size: 12.5px; }
html.iu .iu-item { margin-bottom: 4px; }
html.iu .iu-row,
html.iu .iu-link { min-height: 46px; }
html.iu .iu-row,
html.iu .iu-link { border-radius: 23px; }
html.iu .iu-link { padding-left: 16px; font-size: 14.5px; font-weight: 400; }
html.iu .iu-item.is-active .iu-link { font-weight: 600; }
html.iu .iu-picto { flex: 0 0 24px; width: 24px; margin-right: 12px; font-size: 16px; }
html.iu .iu-plus::before,
html.iu .iu-plus::after { background: var(--iu-ink); }
html.iu .iu-sub { padding: 8px 0 12px 14px; }
html.iu .iu-sub .menu_contenu { padding-left: calc(var(--iu-level, 0) * 14px) !important; }
html.iu .iu-sub .menu_titre { padding-left: 0 !important; }
html.iu .iu-sub a.vmenu,
html.iu .iu-sub a.vsmenu,
html.iu .iu-sub .vmenu a {
	padding: 7px 12px;
	font-size: 14px;
	line-height: 1.4;
}
html.iu .iu-sub a.vmenu { font-weight: 500; }
html.iu .iu-sub .blockvmenu + .blockvmenu { margin-top: 10px !important; }

/* Contenu : 14 px, jamais moins de 12 px */
html.iu .fiche,
html.iu .fiche td,
html.iu .fiche th,
html.iu .fiche input,
html.iu .fiche select,
html.iu .fiche textarea,
html.iu .fiche .select2-selection__rendered,
html.iu .tabs a.tab { font-size: 14px; }
html.iu .fiche .small,
html.iu .fiche small,
html.iu .fiche .badge,
html.iu .info-box-line,
html.iu .info-box-line-text,
html.iu .info-box-line a { font-size: 12.5px; }
html.iu .info-box-title { font-size: 12px; }
html.iu .fiche .titre,
html.iu .fiche .titre .inline-block { font-size: 17px; font-weight: 500; color: var(--iu-page-ink) !important; }
html.iu table.noborder tr.oddeven td,
html.iu table.liste tr.oddeven td,
html.iu table.tableforfield td { padding-top: 9px; padding-bottom: 9px; }
html.iu tr.liste_titre th,
html.iu tr.liste_titre td { color: var(--iu-page-ink) !important; font-weight: 600; }
html.iu .tabs a.tab { color: var(--iu-page-ink) !important; }
html.iu .tabs .tabactive { color: var(--iu-accent) !important; font-weight: 600; }

/* Plus de texte délavé : une couleur lisible plutôt qu'une transparence */
html.iu .opacitymedium,
html.iu .opacitylow,
html.iu .opacityhigh { opacity: 1; color: var(--iu-muted); }
html.iu .fas.opacitymedium,
html.iu .fa.opacitymedium { opacity: .75; }
html.iu #id-top .select2-selection__placeholder { color: #56637a !important; opacity: 1 !important; }
html.iu #id-top .select2-selection { opacity: 1 !important; }
html.iu .badge-status4 { background: #17794d !important; color: #ffffff !important; }
html.iu .butActionDelete,
html.iu .butActionDelete .textbutton { color: #ffffff !important; }
html.iu .butActionDelete { background: #c0392b !important; }

/* Dernières retouches : libellé actif entier, titres de cartes nets, sombre lisible */
html.iu .iu-item.is-active .iu-link { font-weight: 500; }
html.iu .iu-plus { flex: 0 0 30px; width: 30px; height: 30px; margin-right: 6px; }
html.iu .iu-label { letter-spacing: -.01em; }
html.iu .info-box-title { opacity: 1 !important; }
html.iu.iu-dark { --colortextlink: #a9ccff; --colortexttitlelink: #a9ccff; }
html.iu.iu-dark #id-top .select2-selection__placeholder { color: #c6cfdb !important; }
html.iu.iu-dark .fiche .select2-selection__rendered { opacity: 1; color: var(--iu-page-ink); }

/* Infobulles : texte clair sur fond sombre, quels que soient les styles du contenu */
html.iu .ui-tooltip,
html.iu .mytooltip {
	border: 0 !important;
	background: #1f2d45 !important;
	color: #ffffff !important;
	font-size: 13px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25) !important;
}
html.iu .ui-tooltip *:not(.badge):not(.badge *),
html.iu .mytooltip *:not(.badge):not(.badge *) {
	opacity: 1 !important;
	color: #ffffff !important;
}

/* Les fenêtres de confirmation passent au-dessus du menu, sinon il masque leur côté gauche.
   Eldy (Dolibarr 23) force 1005 avec une règle de six classes : la nôtre doit être plus précise,
   sinon la fenêtre passe sous le voile et reste grisée. */
html.iu .ui-widget-overlay { z-index: 1025 !important; }
html.iu body div.ui-dialog.ui-front.ui-widget.ui-widget-content.ui-corner-all,
html.iu .ui-dialog { z-index: 1030 !important; }
html.iu .select2-container--open { z-index: 1035 !important; }
html.iu .ui-datepicker { z-index: 1035 !important; }

/* Boutons flottants plus discrets */
html.iu .iu-float { width: 38px; height: 38px; right: 14px; font-size: 13px; }
html.iu .iu-float-scroll { bottom: 60px; }
html.iu .iu-float-gear { bottom: 14px; }

/* ---- Version 1.5 : sous-menu allégé ---- */
html.iu .iu-sub { padding: 4px 0 8px 10px; }
html.iu .iu-sub a.vmenu,
html.iu .iu-sub a.vsmenu,
html.iu .iu-sub .vmenu a { padding: 6px 10px; font-size: 14.5px; line-height: 1.4; }
/* Même taille que le menu principal ; les titres de groupe ressortent par la graisse. */
html.iu .iu-sub .menu_titre a.vmenu { font-weight: 600; }
html.iu .iu-sub .menu_contenu { padding-left: calc(var(--iu-level, 0) * 12px + 6px) !important; }
html.iu .iu-sub .blockvmenu + .blockvmenu { margin-top: 2px !important; }
/* Titre de groupe : libellé et flèche sur une ligne */
html.iu .iu-sub .iu-group > .menu_titre { display: flex; align-items: center; }
html.iu .iu-sub .iu-group > .menu_titre > a { flex: 1 1 auto; min-width: 0; }
html.iu .iu-group-toggle {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: none;
	color: var(--iu-muted);
	font-size: 11px;
	cursor: pointer;
	box-shadow: none;
}
html.iu .iu-group-toggle:hover { background: var(--iu-pill); color: var(--iu-accent); }
html.iu .iu-group-toggle:focus-visible { outline: 2px solid var(--iu-accent); outline-offset: 1px; }
html.iu .iu-group-toggle .fas { transition: transform .15s ease; }
html.iu .iu-group.is-collapsed .iu-group-toggle .fas { transform: rotate(-90deg); }
html.iu .iu-group.is-collapsed > .menu_contenu,
html.iu .iu-group.is-collapsed > .menu_top,
html.iu .iu-group.is-collapsed > .menu_end { display: none !important; }
html.iu .iu-sub .menu_contenu.iu-deep { display: none !important; }

@media print {
	html.iu .iu-sidebar,
	html.iu #id-top,
	html.iu .iu-backdrop { display: none !important; }
	html.iu #id-container { margin-left: 0; }
}
