html {
	scrollbar-gutter: stable;
	overflow-y: auto;
	overflow-x: hidden;
	/* Prevent page-wide horizontal scrollbar */
}

:root {
	--bg-body: #ffffff;
	/* Pure white background in light mode */
	--bg-panel: #ffffff;
	--bg-sidebar: #ffffff;
	--bg-hover: #f2f2f2;
	--text-main: #050505;
	/* Facebook light text */
	--text-muted: #65676b;
	--border-light: #f0f2f5;
	--border-bold: #ced0d4;
	--accent-color: #076EFF;
	--accent-hover: #0550c0;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] {
	--bg-body: #18191a;
	/* Facebook dark background */
	--bg-panel: #242526;
	/* Facebook dark card */
	--bg-sidebar: #242526;
	--bg-hover: #3a3b3c;
	--text-main: #e4e6eb;
	/* Facebook dark primary text */
	--text-muted: #b0b3b8;
	/* Facebook dark secondary text */
	--border-light: #3e4042;
	--border-bold: #3e4042;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
}

body {
	margin: 0 auto;
	font-family: arial, helvetica, sans-serif;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
		Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	-webkit-font-smoothing: antialiased;
	font-size: 17px;
	max-width: 100vw;
	box-sizing: border-box;

	background-color: var(--bg-body);
	color: var(--text-main);
	transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global Scrollbar Styling (Modern Thin Style) */
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--border-light);
	border-radius: 10px;
	border: 1px solid transparent;
	background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--border-bold);
}

/* Firefox Support */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--border-light) transparent;
}

/* Global box-sizing reset — prevents padding from causing overflow */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Utilities */
.text-truncate {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.flex-truncate {
	min-width: 0;
	flex: 1;
}


button:active {
	transform: scale(1.05);
}

.profil_pic img {
	border-radius: 50%;
}

.header_organiq {
	z-index: 1000;
	border-bottom: 1px solid var(--border-bold);
	position: fixed;
	width: 100%;
	background: var(--bg-panel);
	/* Semi-transparent si on veut garder l'effet de flou : 
	   background: rgba(var(--bg-panel-rgb), 0.8) 
	   Pour l'instant on met opaque ou panel */
	background: color-mix(in srgb, var(--bg-panel) 80%, transparent);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
	padding: 0 16px;
	box-sizing: border-box;
	transition: background-color 0.3s ease;
}

.logo_organiq {
	font-weight: bolder;
	display: flex;
	align-items: center;
}

.logo_organiq img {
	width: 25px;
	height: 25px;
	border-radius: 5px;
}

.brand-name-text {
	font-family: 'Lexend', sans-serif;
	font-weight: 700;
	letter-spacing: -0.03em;
	display: inline-flex;
	align-items: center;
	max-width: 150px;
	overflow: hidden;
	white-space: nowrap;
	opacity: 1;
	transition: none;
}

.header-ready .brand-name-text {
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-name-text.brand-hidden {
	max-width: 0;
	opacity: 0;
	margin-left: -10px;
	/* Compensation du gap */
}


.logo_organiq td:last-child {
	padding-bottom: 8px;
}

@media (max-width: 768px) {
	.header_organiq {
		padding: 0 15px;
		height: 60px;
		gap: 10px;
	}
}

.search_box {
	flex: 0 1 40%;
	margin: 0 20px;
	display: flex;
	align-items: center;
	background: var(--bg-hover);
	border: 1px solid var(--border-bold);
	border-radius: 8px;
	padding: 0 15px;
	height: 38px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: all 0.2s ease;
}

.mobile-search-icon {
	display: none !important;
	/* Hidden on desktop — !important needed to beat .header_icon display:flex */
	cursor: pointer;
}

.search_box:focus-within {
	background: var(--bg-panel);
	border-color: var(--accent-color);
	box-shadow: none;
}

.search_box i {
	font-size: 18px;
	color: #64748b;
	margin-right: 8px;
}

.search_box input {
	flex: 1;
	background: transparent;
	border: none;
	padding: 8px 0;
	font-size: 14px;
	color: var(--text-main);
	outline: none;
}

.search_box input::placeholder {
	color: var(--text-muted);
}

.options_createProjects_profil {
	display: flex;
	align-items: center;
	gap: 16px;
}



.buttons_header {
	display: flex;
	align-items: center;
	gap: 8px;
}

.header_profil_box {
	display: flex;
	align-items: center;
	gap: 15px;
}

.buttons_header button:first-child,
.box_btn_prjcts_prjcts button:first-child,
.box_btn_create_prjcts button:last-child,
.btn-submit {
	background: #4455be;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 4px 8px;
	cursor: pointer;
}

.buttons_header button:last-child,
.box_btn_prjcts_prjcts button:last-child {
	background: transparent !important;
	color: var(--accent-color);
	border: 1px solid var(--accent-color);
	border-radius: 6px;
	padding: 6px 14px;
	cursor: pointer;
	transition: all 0.2s;
}

.buttons_header button:first-child:hover,
.box_btn_prjcts_prjcts button:first-child:hover,
.box_btn_create_prjcts button:last-child:hover,
.btn-submit:hover {
	background: #4c5dcb;
}

.buttons_header button:last-child:hover,
.box_btn_prjcts_prjcts button:last-child:hover {
	background: var(--bg-hover) !important;
}

/* Header Dropdown Stabilisé */
.dropdown {
	position: relative;
	display: inline-block;
}

.buttons_header button.btn-create-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #4455be !important;
	color: white !important;
	border: none !important;
	border-radius: 4px;
	padding: 8px 16px !important;
	cursor: pointer;
	font-weight: 500;
	transition: background 0.2s;
	height: 36px;
	box-sizing: border-box;
}

.buttons_header button.btn-create-header:hover {
	background: #36449d !important;
}

.dropdown-content {
	display: none;
	position: absolute;
	right: 0;
	/* Aligner Ã  droite pour Ã©viter de sortir de l'Ã©cran */
	background-color: var(--bg-panel);
	min-width: 200px;
	box-shadow: var(--shadow-sm);
	z-index: 2000;
	border-radius: 6px;
	margin-top: 8px;
	border: 1px solid var(--border-light);
	overflow: hidden;
	text-align: left;
	animation: fadeInDropdown 0.2s ease;
}

.dropdown-content.show {
	display: block;
}

@keyframes fadeInDropdown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dropdown-content a {
	color: var(--text-main);
	padding: 12px 16px;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	transition: all 0.2s;
	border-bottom: 1px solid var(--border-light);
}

.dropdown-content a:last-child {
	border-bottom: none;
}

.dropdown-content a:hover {
	background-color: var(--bg-hover);
	color: var(--accent-color);
	padding-left: 20px;
}

.dropdown-content a i {
	font-size: 18px;
	color: var(--text-muted);
}

.header_icon {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s;
}

.header_icon:hover {
	background: var(--bg-hover);
}

.header_icon i {
	font-size: 20px;
	color: var(--text-muted);
}

.header_icon a {
	display: flex;
	color: inherit;
	text-decoration: none;
}

.buttons_header button.btn-premium {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.4) !important;
	color: #f59e0b !important;
	border: 1px solid rgba(245, 158, 11, 0.4) !important;
	border-radius: 4px;
	padding: 8px 16px !important;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s;
	height: 36px;
	box-sizing: border-box;
	opacity: 1;
	box-shadow: 0 2px 4px rgba(68, 85, 190, 0.05);
	backdrop-filter: blur(4px);
}

.buttons_header button.btn-premium:hover {
	background: rgba(245, 158, 11, 0.1) !important;
	border-color: #f59e0b !important;
}

.profil_pic img {
	width: 32px;
	height: 32px;
	border: 2px solid #4455be;
	border-radius: 50%;
	cursor: pointer;
}







.header_profil_box table {
	border-collapse: collapse;
}


.header_profil_box td {
	padding-right: 15px;
	border-collapse: collapse;
}


.header_profil_box td:first-child {
	padding-left: 10px;
}

.header_profil_box td:last-child img {
	width: 25px;
	border: 2px solid #4455be;
	border-radius: 50%;


}


.header_profil_box td img {
	width: 18px;
}




/*SIDE MENUS*/

.side_menus {
	padding-top: 60px;
	padding-left: 8px;
	padding-right: 8px;
	padding-bottom: 8px;
	border-right: 1px solid var(--border-light);
	width: 20%;
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	bottom: 0;
	overflow: hidden;
	box-sizing: border-box;
}

.side_menus a {
	text-decoration: none;
	color: inherit;
}

.sidebar-section-title {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: var(--text-muted);
	text-transform: uppercase;
	padding: 16px 12px 6px 12px;
}

.menus_menus_srollBar {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding-right: 4px;
}

.menu {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 500;
	transition: all 0.1s ease;
	color: var(--text-muted);
	margin: 0;
	position: relative;
}

.menu.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 30%;
	height: 40%;
	width: 3px;
	background-color: var(--accent-color);
	border-radius: 0 100px 100px 0;
}

.menu_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	width: 20px;
	color: var(--text-muted);
}

.menu_label {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.menu_actions {
	display: flex;
	align-items: center;
	gap: 4px;
	opacity: 0;
	transition: opacity 0.2s;
}

.menu:hover .menu_actions {
	opacity: 1;
}

.action_btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border-radius: 4px;
	color: var(--text-muted);
	transition: background 0.2s, color 0.2s;
	cursor: pointer;
}

.action_btn:hover {
	background: var(--bg-hover);
	color: var(--accent-color);
}


.menus_menus_srollBar a td:nth-child(2) {
	text-decoration: none;
}




.feedback_box {
	cursor: pointer;
	font-size: 15px;
}

/* Active state: accent-tinted background, text bright */
.menu.active {
	background: color-mix(in srgb, var(--accent-color) 10%, transparent);
	color: var(--accent-color);
	font-weight: 600;
}

.menu.active .menu_icon {
	color: var(--accent-color);
}

.menu:hover {
	background: var(--bg-hover);
	color: var(--text-main);
}

.menu:hover .menu_icon {
	color: var(--text-main);
}

/* Jira-style Dark Mode Sidebar */
html[data-theme="dark"] .menu {
	color: #9FADBC;
}
html[data-theme="dark"] .menu_icon {
	color: #9FADBC;
}
html[data-theme="dark"] .menu:hover {
	background: #282E36;
	color: #B6C2CF;
}
html[data-theme="dark"] .menu:hover .menu_icon {
	color: #B6C2CF;
}
html[data-theme="dark"] .menu.active {
	background: #1C2B41;
	color: #4C9AFF;
}
html[data-theme="dark"] .menu.active .menu_icon {
	color: #4C9AFF;
}



.sidebar_divider {
	height: 1px;
	background-color: var(--border-light);
	margin: 12px 12px 0 12px;
}

.feedback_box {
	text-align: center;
	flex-shrink: 0;
	margin-top: 4px;
	margin-bottom: 8px;
}









/*BIG BOX CONTENT*/

.central_content {
	width: 71.5%;
	padding-right: 45px;
	float: right;
	padding-top: 58px;
	overflow-x: hidden;
}


/* 
   Responsive Table Utility
   Allows long tables (with long numbers) to scroll horizontally 
   without breaking the main page layout.
*/
.table-responsive {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 20px;
}

/* Tabular numbers for better alignment in lists and tables */
.text-tabular {
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}





.title_for_you_prjcts {
	padding: 20px;
	font-size: 20px;
	font-weight: bolder;
	border-bottom: 1px solid var(--border-bold);
}

.title_prjcts_prjcts {
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	/*border-bottom: 1px solid var(--border-bold);*/
}

.box_title_prjcts {
	font-size: 20px;
	font-weight: bolder;
}

.empty_for_you_projects,
.empty_menu_assgn_projects {
	margin: 0 auto;
	width: 40%;
	padding-top: 50px;
	padding-bottom: 80px;
	text-align: center;
}

.empty_for_you_projects button,
.empty_menu_assgn_projects button {
	background: #4455be;
	color: white;
	border: none;
	font-weight: bold;
	border-radius: 4px;
	padding: 10px;
	padding-left: 15px;
	padding-right: 15px;
	cursor: pointer;
}


.home_menu_menu {
	display: flex;
	gap: 10px;
	border-bottom: 1px solid var(--border-bold);
}

.home_menu_menu div {
	padding: 4px;
	/*color: #a0a0a0;*/
	font-size: 15px;
	display: inline-block;
	cursor: pointer;
	transition: ease .2s;
}

.home_menu_menu div:hover {
	transition: ease .2s;
	color: var(--accent-color);
	border-bottom: 2px solid var(--accent-color);
}

.home_menu.active_m {
	color: var(--accent-color);
	border-bottom: 2px solid var(--accent-color);
}









/*PROJECTS PAGE*/




.title_prjcts_prjcts div {
	display: inline-block;
}

.box_btn_prjcts_prjcts {
	float: right;
}

.box_btn_prjcts_prjcts div {
	display: inline-block;
	cursor: pointer;
	padding-left: 8px;
	padding-right: 8px;
	border-radius: 4px;
}

.box_btn_prjcts_prjcts div:hover {
	background: var(--bg-hover);

}

.box_btn_prjcts_prjcts div:last-child:hover {
	background: var(--bg-hover);
}

.box_btn_prjcts_prjcts div img {
	width: 15px;
}


.filter_box_prjcts input,
.filter_box_prjcts select {
	padding: 10px;
	border-radius: 2px;
	border: 1px solid var(--border-bold);
	max-width: 100%;
	background: var(--bg-body);
	color: var(--text-main);
}

@media (max-width: 768px) {
	.filter_box_prjcts {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.filter_box_prjcts input,
	.filter_box_prjcts select {
		width: 100%;
	}

	.filter_box_prjcts .prjct_statut {
		margin-top: 5px;
		float: none;
		align-self: flex-start;
	}

	.participant_list_project {
		flex-wrap: wrap;
		margin-top: 10px;
	}
}

.filter_box_prjcts select {
	color: var(--text-muted);
}

.table_prjcts table {
	width: 100%;
	border-collapse: collapse;
	border-radius: 10px;
	border: 1px solid var(--border-bold);
	font-size: 15px;
	color: var(--text-main);
}

.table_prjcts table thead {
	border-radius: 10px;
}


.table_prjcts th,
.table_prjcts td {
	padding: 12px 15px;
	text-align: left;
}

.table_prjcts th {
	background: var(--bg-hover);
	font-weight: bold;
}

.table_prjcts tr {
	border-bottom: 1px solid var(--border-light);
}


.table_prjcts tr:hover {
	background: var(--bg-hover);
}



.project_name {
	display: flex;
	align-items: center;
	gap: 10px;
}

.project_name img {
	background: #379df1;
	border-radius: 2px;
	width: 20px;
}

.project_name a {
	text-decoration: none;
}

.responsible {
	display: flex;
	align-items: center;
	gap: 8px;
}

.responsible img {
	border-radius: 50%;
	border: 2px solid var(--accent-color);
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.prjcts_table_pointilles {
	text-align: center;
}






/*PAGE CREER PROJETS*/

.forms_create_prjcts {
	border: 1px solid var(--border-bold);
	border-bottom: none;
	padding: 20px;

}

.forms_create_prjcts p {
	font-size: 15px;
}

.forms_create_prjcts input,
.forms_create_prjcts textarea,
.forms_create_prjcts select {
	display: block;
	padding: 10px;
	border: 1px solid var(--border-bold);
	border-radius: 2px;
	background: var(--bg-body);
	color: var(--text-main);
}

.forms_create_prjcts input,
.forms_create_prjcts select {
	width: 45%;
}

.forms_create_prjcts textarea {
	width: 98%;
}

.forms_create_prjcts label {
	padding-bottom: 4px;
}


.forms_create_prjcts strong {
	color: #e67e22;
}

.select_etat {
	background: var(--border-bold);
}

.box_btn_create_prjcts {
	border: 1px solid var(--border-bold);
	padding: 20px;
	padding-bottom: 60px;
}

.box_btn_create_prjcts div {
	float: right;
}


.box_btn_create_prjcts button:first-child {
	background: none;
	border: none;
	cursor: pointer;
}




.etat_projet {
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.TO.DO,
.TO_DO {
	background: rgba(107, 114, 128, 0.15);
	color: var(--text-muted);
	border: 1px solid rgba(107, 114, 128, 0.3);
}

.IN.PROGRESS,
.IN_PROGRESS {
	background: rgba(68, 85, 190, 0.15);
	color: var(--accent-color);
	border: 1px solid rgba(68, 85, 190, 0.3);
}

.IN.REVIEW,
.IN_REVIEW {
	background: rgba(234, 179, 8, 0.15);
	color: #fbbf24;
	/* More vibrant yellow for dark mode */
	border: 1px solid rgba(234, 179, 8, 0.3);
}

.DONE,
.TERMINE {
	background: rgba(34, 197, 94, 0.15);
	color: #4ade80;
	/* Brighter green for contrast */
	border: 1px solid rgba(34, 197, 94, 0.3);
}

.ARCHIVED {
	background: rgba(71, 85, 105, 0.15);
	color: var(--text-muted);
	border: 1px solid rgba(71, 85, 105, 0.3);
}

.CRITIQUE,
.CRITICAL {
	background: rgba(239, 68, 68, 0.15);
	color: #f87171;
	/* Softer red for dark mode */
	border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Generic Status Colors */
.status-blue {
	background: rgba(68, 85, 190, 0.15);
	color: var(--accent-color);
	border: 1px solid rgba(68, 85, 190, 0.3);
}

.status-green {
	background: rgba(34, 197, 94, 0.15);
	color: #4ade80;
	border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-orange {
	background: rgba(249, 115, 22, 0.15);
	color: #fb923c;
	border: 1px solid rgba(249, 115, 22, 0.3);
}

.status-gray {
	background: rgba(107, 114, 128, 0.15);
	color: var(--text-muted);
	border: 1px solid rgba(107, 114, 128, 0.3);
}







/*  MESSAGERIE   */



.chat_chat_boxes {
	display: flex;
	flex-direction: row;
	gap: 10px;
	width: 100%;
	height: calc(100vh - 58px);
	/* Fill remaining viewport after header */
}


.list_discussion_chat {
	width: 30%;
	display: flex;
	flex-direction: column;
	height: 100%;
	/* Inherit from parent */
	background: var(--bg-panel);
	overflow: hidden;
}

.inbox_discussion_chat {
	flex: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
	/* Inherit from parent */
}

.search_chat_list {
	width: 90%;
	margin: 10px auto;
	display: flex;
	align-items: center;
	background: var(--bg-hover);
	border: 1px solid var(--border-bold);
	border-radius: 8px;
	padding: 0 12px;
	transition: all 0.2s ease;
}

.search_chat_list:focus-within {
	background: var(--bg-panel);
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(68, 85, 190, 0.1);
}

.search_chat_list i {
	font-size: 18px;
	color: #94a3b8;
	margin-right: 8px;
}

.search_chat_list input {
	flex: 1;
	background: transparent;
	border: none;
	padding: 10px 0;
	font-size: 14px;
	color: var(--text-main);
	outline: none;
}

.search_chat_list input::placeholder {
	color: var(--text-muted);
}

.list_list_chat {
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 4px 8px;
	height: 68vh;
	scrollbar-width: thin;
	scrollbar-color: var(--border-light) transparent;
}

.list_list_chat::-webkit-scrollbar {
	width: 6px;
}

.list_list_chat::-webkit-scrollbar-thumb {
	background: var(--border-light);
	border-radius: 10px;
}




.contact_chat {
	color: var(--text-main);
	font-size: smaller;
	background: transparent;
	padding: 8px 10px;
	cursor: pointer;
	border-radius: 8px;
	position: relative;
	margin: 2px 8px;
	transition: background 0.2s ease, transform 0.1s ease;
}


.contact_chat:hover {
	background: var(--bg-hover);
}

.contact_chat.activeC {
	background: var(--bg-hover);
	position: relative;

}



.contact_chat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 30%;
	height: 40%;
	width: 4px;
	background-color: var(--accent-color);
	border-radius: 0 100px 100px 0;
	opacity: 0;
	transition: all 0.2s ease;
}

.contact_chat.activeC::before,
.contact_chat:hover::before {
	opacity: 1;
}

.contact_chat:hover::before {
	height: 60%;
	top: 20%;
}

.contact_chat img {
	width: 25px;
	height: 25px;
}


.contact_chat.activeC img {
	border: 2px solid var(--accent-color);
}

.contact_chat img {
	border: 2px solid var(--border-bold);
}

.contact_chat td:first-child {
	padding-right: 8px;
	padding-left: 4px;
}



.inbox_head_chat {
	display: block;
	/*position: fixed;*/
	/*width: 49.4%;*/
	background: var(--bg-panel);
	top: 12.5%;
	font-size: smaller;
	/* border: 1px solid var(--border-bold);*/
	border-bottom: none;
	border-radius: 0;
	flex-shrink: 0;
}

.inbox_sender_head_info td:first-child {
	padding-right: 5px;
	padding-left: 10px;
}

.inbox_sender_head_info td:first-child img {
	width: 30px;
	height: 30px;
}

.inbox_head_chat span {
	font-size: smaller;
}

.inbox_sender_head_info,
.head_disc_option {
	display: inline-block;
}

.head_disc_option {
	float: right;
	padding-right: 10px;
	padding-top: 7px;
}

.head_disc_option img {
	width: 18px;
}

.head_disc_option td {
	cursor: pointer;
	padding-left: 20px;
}

.head_disc_option td div {
	cursor: pointer;
	padding: 2px;
	border-radius: 4px;
}

.head_disc_option td div:hover {
	background: var(--bg-hover);

}




.msg_msg_disc_content {
	height: 54vh;
	width: 100%;
	border: 1px solid var(--border-bold);
	border-radius: 0;
	overflow-y: auto;
	flex: 1;
	padding-top: 10px;
	padding-bottom: 20px;
}



.input_send_msg {
	border-top: 1px solid var(--border-bold);
	width: 100%;
	padding: 10px;
	align-items: center;
	background: var(--bg-panel);
}

.input_send_msg input {
	padding: 10px;
	width: 100%;
	/* was 104% — caused horizontal overflow */
	border: none;
	box-sizing: border-box;
	background: var(--bg-body);
	color: var(--text-main);
}

/* Neutralisé — écrasait le flex du nouveau design Discord */
/* .input_send_msg div { display: inline-block; } */




.action_input_write_msg_inbox {
	width: 85%;
	padding-top: 2px;
	padding-left: 4px;
}

.action_btn_send_msg_inbox {
	position: absolute;
	padding-top: 6px;
	padding-left: 8px;
}

.action_btn_send_msg_inbox button {
	border-radius: 4px;
	padding-left: 7px;
	padding-right: 7px;
	border: none;
	padding: 3px;
}

.action_btn_send_msg_inbox button:last-child {
	background: #4455be;
}


/* 
 * STYLES LEGACY BULLES — Neutralisés, remplacés par le style Discord dans inbox_discussion.php
 * Conservés pour ne pas casser d'autres vues potentielles
 * (cf. classes .dc-msg, .dc-msg-own dans le fichier view)
 */

/* --- Styles exclusifs pour les Medias dans les messages --- */
.msg_media_container {
	padding: 4px;
	margin: 10px -15px -15px -15px;
	display: block;
	background: rgba(0, 0, 0, 0.02);
}

.msg_media_img {
	border-radius: 14px;
	width: 100%;
	max-height: 350px;
	object-fit: cover;
	cursor: pointer;
	display: block;
	transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.msg_media_img:hover {
	transform: scale(1.01);
}

.custom-video-wrapper {
	position: relative;
	width: 100%;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: #000;
}

.custom-video-wrapper video {
	display: block;
	width: 100%;
	max-height: 350px;
}

.custom-video-wrapper .play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 2;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-video-wrapper .play-btn i {
	font-size: 28px;
	color: #fff;
	margin-left: 3px;
}

.custom-video-wrapper:hover .play-btn {
	background: rgba(255, 255, 255, 0.4);
	transform: translate(-50%, -50%) scale(1.1);
}

.message-file-doc {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--bg-hover);
	padding: 12px !important;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	margin: 4px 0;
	transition: background 0.2s;
}

.message-file-doc:hover {
	background: var(--border-light);
}

.msg-time {
	font-size: 10px;
	opacity: 0.6;
	margin-top: 4px;
	display: block;
	text-align: right;
}


.box_btn_prjcts_prjcts a {
	text-decoration: none;
	color: #4455be;
	font-size: smaller;
}

.box_btn_prjcts_prjcts a:hover {
	text-decoration: underline;
}


.title_inbox {
	padding: 10px;
	font-weight: bolder;
	font-size: 20px;
}






/*  Authentification */

.auth_header {
	text-align: center;
	padding: 20px;
}

.auth_container {
	max-width: 400px;
	margin: 0 auto;
	padding: 20px;
	border: 1px solid var(--border-bold);
	border-radius: 4px;
	background: var(--bg-panel);
}

.auth_container label {
	display: block;
	margin-bottom: 5px;
}

.auth_container input {
	text-align: center;
	width: 94%;
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid var(--border-bold);
	border-radius: 4px;
	background: var(--bg-body);
	color: var(--text-main);
}

.auth_container button {
	width: 100%;
	padding: 10px;
	border: none;
	border-radius: 4px;
	background: #4455be;
	color: white;
	font-weight: bolder;
	font-size: big;
	cursor: pointer;
}

.auth_container button:hover {
	background: #374b9a;
}

.auth_container a {
	text-decoration: none;
	color: #4455be;
}

.unread-bubble {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-color);
	color: #fff;
	border-radius: 10px;
	padding: 2px 6px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	min-width: 18px;
	height: 18px;
	margin-left: auto;
}

.unread-bubble_message_ib {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #8bbcf193;
	color: #a0a0a0;
	/* Retour au gris discret d'origine */
	border: 1px solid #007bff;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	font-size: 10px;
	font-weight: 700;
	padding: 0;
	line-height: 1;
	flex-shrink: 0;
}

#typing-indicator {
	padding-left: 15px;
	color: #007bff;
	position: absolute;
	top: 87%;
	width: 48%;
	font-style: italic;
	font-size: smaller;
	min-height: 20px;
}


#call-container {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.461);
	justify-content: center;
	align-items: center;
	text-align: center;
	z-index: 1000;
	padding: 10px;
}


.video_exchange_box {
	display: flex;
	width: 97%;
	height: 95vh;
	gap: 20px;
}

.video_exchange_box div {
	width: 50%;
}

.endCall_option {
	width: 25%;
	position: absolute;
	padding: 2px;
	top: 80%;
	left: 8%;
	background: rgba(255, 255, 255, 0.358);
	border: 2px solid #c0c0c0;
	border-radius: 20px;
}

.endCall_option button:last-child {
	background: rgb(241, 86, 86);
	border: 2px solid rgb(253, 8, 8);
	border-radius: 50px;
	border: none;
	padding-left: 50px;
	padding-right: 50px;
	padding: 13px;
}

.endCall_option button {
	background: rgba(255, 255, 255, 0.358);
	border-radius: 50px;
	border: none;
	padding-left: 50px;
	padding-right: 50px;
	padding: 10px;
}

.endCall_option button img {
	width: 20px;
}







.localVideo {
	object-fit: cover;
	background: #d000ff37;
	height: 95vh;
	width: 100%;
	border: 2px solid #007bff;
	border-radius: 8px;

}

.remoteVideo {
	object-fit: cover;
	width: 100%;
	height: 95vh;
	background:
		/*#3c343d*/
		#99d0f423;
	border: 2px solid #81bbf9;
	border-radius: 8px;
}



.name_user_called {
	font-weight: bolder;
	border-top: 1px solid var(--border-bold);
	position: absolute;
	font-size: smaller;
	padding: 8px;
	top: 85%;
	left: 51%;
	color: var(--text-muted);
	text-shadow: 1px 2px 3px black;

}

.name_user_called td:last-child {
	padding-bottom: 8px;
}






.chat_crypting_notice {
	cursor: pointer;
	padding: 1px;
	background: #99d0f423;
	border-radius: 10px;
	margin: 0 auto;
	width: 50%;
	text-align: center;
	align-items: center;
}

.incoming-call {
	border-radius: 18px;
	display: none;
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(55, 64, 233, 0.358);
	border: 2px solid #4a39e7ce;
	padding: 5px;
	padding-left: 25px;
	padding-right: 25px;
	z-index: 1000;
}

.incoming-call button {
	border: none;
	padding: 7px;
	border-radius: 10px;

}

.acceptCall {
	background: green;
	color: white;
}

.incoming-call button:last-child {
	background: red;
	color: white;
}






.participant_list_project {
	float: right;
}


.participant_project {
	cursor: pointer;
	width: 12px;
	padding: none;
}

.participant_project:first-child {
	z-index: 10;
}

.participant_project img {
	width: 20px;
	border: 2px solid #4455be;
}

.prjct_statut {
	padding-top: 5px;
	float: right;
}

.prjct_statut div {
	cursor: pointer;
}

.prjct_statut img {
	width: 15px;
}

.tache_list_categorie {
	overflow-x: auto;
	height: 65vh;
	display: flex;
	flex-direction: row;
	gap: 15px;
	padding-bottom: 16px;
	/* Elegant thin scrollbar — same style as messaging page */
	scrollbar-width: thin;
	scrollbar-color: var(--border-light) transparent;
}

.tache_list_categorie::-webkit-scrollbar {
	height: 6px;
}

.tache_list_categorie::-webkit-scrollbar-track {
	background: transparent;
}

.tache_list_categorie::-webkit-scrollbar-thumb {
	background: var(--border-light);
	border-radius: 10px;
}

.tache_list_categorie::-webkit-scrollbar-thumb:hover {
	background: var(--border-bold);
}

@media (max-width: 1024px) {
	.tache_list_categorie {
		height: auto;
		min-height: 60vh;
	}
}

.tache_list_categorie div {
	display: block;
}

.categorie_tache {
	border-radius: 5px;
	height: 62vh;
	width: 100%;
	background: var(--bg-hover);
}

.title_categorie {
	padding: 10px;
	padding-bottom: 8px;
	font-size: smaller;
}

.list_list_taches {
	padding: 4px;
	display: flex;
	flex-direction: row;
	overflow-y: auto;
	max-height: 47vh;
}

.task_task {
	margin-bottom: 20px;
	background: var(--bg-panel);
	border-left: 4px solid var(--accent-color);
	padding: 5px;
	border-radius: 3px 5px 5px 3px;
	box-shadow: var(--shadow-sm);
	font-size: smaller;
	color: var(--text-muted);
}

.task_task table {
	width: 100%;
}

.task_priority {
	width: 60px;
}



.task_task table td:first-child {
	padding-right: 20px;
	/* Reduced from 100px — was causing overflow on mobile */
}

.task_task table td:nth-child(2) {
	width: 10px;
}

.task_task table td:last-child {
	padding-right: 8px;
	padding-left: 4px;
	width: 20px;
}

.add_task_btn {
	padding: 10px;
	padding-top: 15px;
}

.add_task_btn div {
	margin: 0 auto;
	width: 20px;
}

.add_task_btn img {
	width: 20px;
}








/* Custom Link Styling */
.employee_name a,
.project_name a {
	text-decoration: none;
	color: var(--text-main);
	font-weight: 500;
	transition: color 0.2s;
}

.employee_name a:hover,
.project_name a:hover {
	color: #4455be;
}

.employee_name i,
.project_name i {
	vertical-align: middle;
	margin-right: 8px;
}


/* Alert Styles */
.alert {
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 15px;
	font-size: 14px;
}

.alert-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.alert-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Responsivite  complete*/

/* EMAIL TRUNCATION */
.truncate-email,
.truncate-manager {
	max-width: 120px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 13px;
	color: var(--text-muted);
}

.truncate-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: inline-block;
	vertical-align: middle;
	max-width: 150px;
}


/* VIEW TOGGLE */
.toggle-btn.active {
	background: var(--bg-panel) !important;
	color: var(--accent-color) !important;
	box-shadow: var(--shadow-sm);
}

/* ORGANIGRAMME */
.org-chart-view {
	min-height: 400px;
	display: flex;
	justify-content: center;
}

.org-chart-tree ul {
	padding-top: 20px;
	position: relative;
	transition: all 0.5s;
	display: flex;
	justify-content: center;
}

.org-chart-tree li {
	text-align: center;
	list-style-type: none;
	position: relative;
	padding: 20px 5px 0 5px;
	transition: all 0.5s;
	flex-grow: 1;
}

/* Connectors */
.org-chart-tree li::before,
.org-chart-tree li::after {
	content: '';
	position: absolute;
	top: 0;
	right: 50%;
	border-top: 1px solid var(--border-bold);
	width: 50%;
	height: 20px;
}

.org-chart-tree li::after {
	right: auto;
	left: 50%;
	border-left: 1px solid var(--border-bold);
}

/* Remove connectors from single child */
.org-chart-tree li:only-child::after,
.org-chart-tree li:only-child::before {
	display: none;
}

.org-chart-tree li:only-child {
	padding-top: 0;
}

.org-chart-tree li:first-child::before,
.org-chart-tree li:last-child::after {
	border: 0 none;
}

.org-chart-tree li:last-child::before {
	border-right: 1px solid var(--border-bold);
	border-radius: 0 5px 0 0;
}

.org-chart-tree li:first-child::after {
	border-radius: 5px 0 0 0;
}

/* Vertical connector from parent */
.org-chart-tree ul ul::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	border-left: 1px solid var(--border-bold);
	width: 0;
	height: 20px;
}

.org-node {
	border: 1px solid var(--border-bold);
	padding: 10px;
	text-decoration: none;
	color: var(--text-muted);
	font-size: 11px;
	display: inline-block;
	border-radius: 8px;
	transition: all 0.5s;
	background: var(--bg-panel);
	min-width: 140px;
}

.org-node:hover,
.org-node:hover+ul li .org-node {
	background: var(--bg-hover);
	color: var(--accent-color);
	border: 1px solid var(--accent-color);
}

.org-node:hover+ul li::after,
.org-node:hover+ul li::before,
.org-node:hover+ul::before,
.org-node:hover+ul ul::before {
	border-color: #4455be;
}

.node-content {
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
}

.node-content i {
	font-size: 24px;
	color: #4455be;
}

.node-info {
	display: flex;
	flex-direction: column;
}

.node-name {
	font-weight: 600;
	font-size: 13px;
	color: var(--text-main);
}

.node-role {
	font-size: 11px;
	color: var(--text-muted);
}


/* ==========================================
   AUTH PAGES (signin, signup, workspace)
   ========================================== */

body.auth-body {
	background: var(--bg-body);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 20px;
}

.auth-wrapper {
	width: 100%;
	max-width: 500px;
	position: relative;
	/* Anchor for absolute alerts */
	display: flex;
	flex-direction: column;
	animation: fadeInAuth 0.5s ease;
}

.alert-auth {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 0;
	right: 0;
	margin-bottom: 0 !important;
	z-index: 10;
}

@keyframes fadeInAuth {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.auth-card {
	background: var(--bg-panel);
	border: 1px solid var(--border-bold);
	border-radius: 6px;
	padding: 40px 44px;
	width: 100%;
	max-width: 500px;
	box-shadow: var(--shadow-sm);
}

.auth-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 16px;
	color: var(--accent-color);
	margin-bottom: 28px;
}

.auth-logo img {
	width: 22px;
	border-radius: 4px;
}

.auth-card h1 {
	font-size: 19px;
	font-weight: 700;
	color: var(--text-main);
	margin: 0 0 4px;
}

.auth-card .auth-subtitle {
	font-size: 13px;
	color: var(--text-muted);
	margin: 0 0 24px;
}

.auth-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 14px;
}

.auth-field label {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-main);
}

.auth-field input,
.auth-field select,
.auth-field textarea {
	padding: 9px 11px;
	border: 1px solid var(--border-bold);
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	color: var(--text-main);
	background: var(--bg-body);
	outline: none;
	transition: border-color 0.15s;
	width: 100%;
	box-sizing: border-box;
}

.auth-field textarea {
	min-height: 100px;
	resize: vertical;
}

.auth-field input.otp-input {
	letter-spacing: 5px;
	font-weight: bold;
	text-align: center;
	font-size: 18px;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
	border-color: var(--accent-color);
}

.auth-field input::placeholder,
.auth-field textarea::placeholder {
	color: var(--text-muted);
}

.auth-submit {
	width: 100%;
	padding: 10px;
	margin-top: 6px;
	background: var(--accent-color);
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s;
}

.auth-submit:hover {
	background: var(--accent-hover);
}

.auth-submit:active {
	transform: scale(1.01);
}

.auth-footer-link {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 18px;
	text-align: center;
}

.auth-footer-link a,
.auth-card a {
	color: var(--accent-color);
	text-decoration: none;
	font-weight: 500;
}

.auth-footer-link a:hover,
.auth-card a:hover {
	text-decoration: underline;
}

.auth-alert {
	padding: 10px 13px;
	border-radius: 4px;
	font-size: 13px;
	margin-bottom: 16px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.auth-alert i {
	font-size: 16px;
	flex-shrink: 0;
	margin-top: 1px;
}

.auth-alert.success {
	background: rgba(22, 163, 74, 0.1);
	color: #22c55e;
	border: 1px solid rgba(22, 163, 74, 0.2);
}

.auth-alert.error {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
	border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-alert.warning {
	background: rgba(245, 158, 11, 0.1);
	color: #f59e0b;
	border: 1px solid rgba(245, 158, 11, 0.2);
}

.auth-divider {
	border: none;
	border-top: 1px solid var(--border-light);
	margin: 18px 0;
}

.auth-logo span {
	color: var(--text-main);
	font-weight: 700;
}


/* ==========================================
   GLOBAL FORM ELEMENTS
   ========================================== */

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 7px;
	font-weight: 500;
	color: var(--text-main);
	font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border-bold);
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	background: var(--bg-body);
	color: var(--text-main);
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #4455be;
	box-shadow: 0 0 0 3px rgba(68, 85, 190, 0.08);
}

.form-group small,
.field-hint {
	display: block;
	margin-top: 5px;
	color: var(--text-muted);
	font-size: 12px;
}

.form-row {
	display: flex;
	gap: 20px;
}

.form-row .half {
	flex: 1;
}

.form-section {
	margin-bottom: 32px;
}

.section-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-main);
	margin-bottom: 18px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	gap: 8px;
}

.section-title i {
	color: #4455be;
	font-size: 18px;
}

.project-actions-footer {
	margin-top: 36px;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 18px;
	border-top: 1px solid var(--border-light);
}

.btn-submit {
	background: #4455be;
	color: white;
	border: none;
	padding: 9px 18px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	font-family: inherit;
	transition: background 0.15s;
}

.btn-submit:hover {
	background: #3644a0;
}

.btn-cancel {
	background: var(--bg-panel);
	border: 1px solid var(--border-bold);
	color: var(--text-main);
	padding: 9px 18px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	font-size: 14px;
	font-family: inherit;
	transition: background 0.15s, border-color 0.15s;
}

.btn-cancel:hover {
	background: var(--bg-hover);
	border-color: var(--accent-color);
}


/* ==========================================
   AUTH — INLINE VALIDATION STATES
   ========================================== */

/* Input border feedback */
.auth-field input.input-ok,
.auth-field select.input-ok {
	border-color: #22c55e;
}

.auth-field input.input-warn,
.auth-field select.input-warn {
	border-color: #f59e0b;
}

.auth-field input.input-err,
.auth-field select.input-err {
	border-color: #ef4444;
}

/* Hint text under fields */
.auth-field-hint {
	display: block;
	font-size: 11.5px;
	margin-top: 4px;
	min-height: 16px;
	color: #999;
}

.auth-field-hint.hint-ok {
	color: #16a34a;
}

.auth-field-hint.hint-warn {
	color: #b45309;
}

.auth-field-hint.hint-err {
	color: #dc2626;
}

/* Password strength bar */
.pwd-strength-bar {
	height: 3px;
	background: var(--border-light);
	border-radius: 3px;
	margin-top: 6px;
	overflow: hidden;
}

.pwd-strength-bar>div {
	height: 100%;
	width: 0;
	border-radius: 3px;
	transition: width 0.3s, background 0.3s;
}

/* Structured in-card alert (icon + title + body) */
.auth-inline-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 4px;
	font-size: 13px;
	margin-bottom: 18px;
	border-left: 3px solid;
}

.auth-inline-alert i {
	font-size: 18px;
	flex-shrink: 0;
	margin-top: 1px;
}

.auth-inline-alert div strong {
	display: block;
	font-weight: 600;
	margin-bottom: 2px;
}

.auth-inline-alert div p {
	margin: 0;
	font-size: 12.5px;
	opacity: 0.85;
}

.auth-inline-alert.error {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
	border-color: #ef4444;
}

.auth-inline-alert.warning {
	background: rgba(245, 158, 11, 0.1);
	color: #f59e0b;
	border-color: #f59e0b;
}

.auth-inline-alert.success {
	background: rgba(34, 197, 94, 0.1);
	color: #22c55e;
	border-color: #22c55e;
}

/* Password visibility toggle and input wrapping */
.pwd-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	/* Ensure it spans the full width of the auth-field */
}

.pwd-input-wrapper input {
	padding-right: 40px !important;
	/* Make room for the eye icon */
}

.pwd-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	/* More subtle color matching search placeholder */
	cursor: pointer;
	font-size: 18px;
	transition: color 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.pwd-toggle:hover {
	color: #4455be;
}

/* Checkbox field styling */
.auth-checkbox-field {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 20px;
	cursor: pointer;
}

.auth-checkbox-field input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	cursor: pointer;
	accent-color: #4455be;
}

.auth-checkbox-field label {
	font-size: 13px;
	line-height: 1.4;
	color: var(--text-main);
	cursor: pointer;
	user-select: none;
}

.auth-checkbox-field label a {
	color: #4455be;
	text-decoration: none;
	font-weight: 500;
}

.auth-checkbox-field label a:hover {
	text-decoration: underline;
}

/* Legal Pages Styles */
.legal-container {
	padding-right: 0;
	text-align: justify;
	margin: 20px 0;
	border-top: 1px solid var(--border-light);
	border-bottom: 1px solid var(--border-light);
	padding-top: 20px;
	padding-bottom: 20px;
}

.legal-section {
	margin-bottom: 24px;
}

.legal-section h3 {
	font-size: 16px;
	color: var(--text-main);
	margin-bottom: 10px;
	font-weight: 600;
}

.legal-section p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-muted);
	margin-bottom: 12px;
}

.legal-footer {
	margin-top: 24px;
	display: flex;
	justify-content: center;
	gap: 15px;
}

.btn-secondary-outline {
	padding: 10px 20px;
	border: 1px solid var(--border-bold);
	background: var(--bg-body);
	color: var(--text-main);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s;
}

.btn-secondary-outline:hover {
	background: var(--bg-hover);
	border-color: var(--text-muted);
	color: var(--text-main);
}

.btn-primary {
	background: #4455be;
	color: white;
	border: none;
	border-radius: 6px;
	padding: 12px 24px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
	background: #36449d;
	box-shadow: 0 4px 6px rgba(68, 85, 190, 0.15);
	transform: translateY(-1px);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-premium {
	background: rgba(249, 115, 22, 0.04) !important;
	color: #f97316 !important;
	border: 1px solid rgba(249, 115, 22, 0.3) !important;
	padding: 6px 14px !important;
	border-radius: 8px !important;
	font-weight: 500 !important;
	font-size: 13px !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
}

.btn-premium:hover {
	background: rgba(249, 115, 22, 0.1) !important;
	border-color: #f97316 !important;
	transform: translateY(-1px) !important;
}

.btn-premium i {
	color: #f97316 !important;
}

.btn-ghost-danger {
	padding: 8px 16px;
	background: transparent;
	color: #dc2626;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-ghost-danger:hover {
	background: #fee2e2;
	color: #991b1b;
}

/* ===== Global Alerts (Flash Messages) ===== */
.alert {
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	position: relative;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.alert-close {
	margin-left: auto;
	cursor: pointer;
	font-size: 20px;
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.alert-close:hover {
	opacity: 1;
}

.alert-success {
	background-color: rgba(16, 185, 129, 0.1);
	color: #10b981;
	border: 1px solid #10b981;
}

.alert-error {
	background-color: rgba(239, 68, 68, 0.1);
	color: #ef4444;
	border: 1px solid #ef4444;
}

.alert-warning {
	background-color: rgba(245, 158, 11, 0.1);
	color: #f59e0b;
	border: 1px solid #f59e0b;
}

.alert i {
	font-size: 20px;
}

/* ===== Mobile Responsiveness ===== */

.mobile-toggle-btn {
	display: none;
	background: transparent;
	border: none;
	font-size: 24px;
	color: var(--accent-color);
	cursor: pointer;
	padding: 4px;
	margin-right: 10px;
	align-items: center;
	justify-content: center;
}

.sidebar_mobile_branding {
	display: none;
}

@media (max-width: 1024px) {
	.mobile-toggle-btn {
		display: flex;
	}

	.side_menus {
		width: 280px !important;
		padding-top: 0 !important;
		left: 0;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		z-index: 2001;
		background: var(--bg-panel);
		box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
	}

	.side_menus.open {
		transform: translateX(0);
	}

	.sidebar_mobile_branding {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 10px;
		padding: 0 15px;
		height: 60px;
		border-bottom: 1px solid var(--border-bold);
		width: 100%;
		box-sizing: border-box;
	}

	.sidebar_mobile_branding img {
		width: 25px;
		height: 25px;
		border-radius: 5px;
	}

	.sidebar_mobile_branding span {
		font-weight: 700;
		font-size: 16px;
		color: var(--text-main);
		letter-spacing: -0.5px;
	}

	.side_menus .menu {
		padding-left: 18px !important;
	}

	.central_content {
		width: 100% !important;
		padding-left: 20px !important;
		padding-right: 20px !important;
		float: none !important;
		box-sizing: border-box;
	}

	/* Adjustments for page headers on mobile */
	.title_prjcts_prjcts {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 12px !important;
		padding: 15px 0 !important;
	}

	.box_btn_prjcts_prjcts {
		width: 100% !important;
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 8px !important;
		justify-content: flex-start !important;
	}

	/* Overlay when sidebar is open */
	.sidebar-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 2000;
	}

	.sidebar-overlay.active {
		display: block;
	}
}

@media (max-width: 768px) {

	/* Hide desktop search bar on mobile */
	.search_box {
		display: none !important;
	}

	/* Show mobile search icon next to notification bell */
	.mobile-search-icon {
		display: flex !important;
	}

	/* Header icons: comfortable spacing on mobile */
	.header_profil_box {
		gap: 6px !important;
	}

	.options_createProjects_profil {
		gap: 6px !important;
	}

	/* Show only icon for create and premium buttons */
	.btn-create-header .btn-text,
	.btn-premium .btn-text {
		display: none !important;
	}

	.btn-create-header {
		padding: 7px 10px !important;
	}

	.btn-premium {
		padding: 7px 10px !important;
		display: inline-flex !important;
		align-items: center !important;
	}

	.btn-premium i {
		margin-right: 0 !important;
	}
}

@media (max-width: 600px) {

	.logo_organiq span {
		display: none;
		/* Masquage du texte Organiq sur mobile très étroit */
	}


	.header_profil_box>.header_icon:nth-child(2) {
		display: none !important;
		/* Masquer l'aide (?) sur mobile uniquement */
	}

	.logo_organiq {
		gap: 6px !important;
	}

	/* Utility for responsive tables */
	.table-responsive {
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		margin-bottom: 1rem;
	}

	.table-responsive::-webkit-scrollbar {
		height: 5px;
	}

	.list_for_you_prjcts table {
		min-width: 500px;
		/* Assurer que le tableau ne s'écrase pas trop */
	}

	/* Profile Mobile Adjustments */
	.profile-header {
		flex-direction: column !important;
		align-items: center;
		text-align: center;
		padding: 20px !important;
	}

	.profile-meta {
		justify-content: center;
	}

	.profile-grid {
		grid-template-columns: 1fr !important;
	}

	.profile-header div:last-child {
		margin-left: 0 !important;
		margin-top: 10px;
	}
}

/* Bloquer le scroll global uniquement sur la page messagerie */
body.page-message {
	overflow: hidden !important;
}

/* ===== Messagerie - Styles de base ===== */
.chat_chat_boxes {
	display: flex;
	gap: 10px;
}

/* Largeur fixe pour la colonne de liste de discussions */
.list_discussion_chat {
	width: 300px;
	flex-shrink: 0;
}

/* La zone de discussion prend le reste de l'espace */
.discussion_area {
	flex: 1;
	min-width: 0;
	height: 100%;
}

/* La liste des discussions occupe toute la hauteur disponible */
.list_discussion_chat {
	height: 100%;
	/* Inherit from .chat_chat_boxes */
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

/* ===== Messagerie - Responsive Mobile ===== */
@media (max-width: 1024px) {

	/* Sur la page messagerie, le central_content prend toute la largeur (sidebar en overlay) */
	body.page-message .central_content {
		padding-top: 56px !important;
		padding-right: 10px !important;
		padding-left: 10px !important;
	}

	.chat_chat_boxes {
		gap: 0;
	}

	/* Quand une discussion est active : cacher la liste */
	.chat_chat_boxes.has-active-chat .list_discussion_chat {
		display: none !important;
	}

	/* Quand aucune discussion active : cacher la zone de discussion */
	.chat_chat_boxes:not(.has-active-chat) .discussion_area {
		display: none !important;
	}

	.list_discussion_chat {
		width: 100% !important;
	}

	.discussion_area {
		width: 100% !important;
	}
}

@media (max-width: 768px) {

	/* More aggressive stacking */
	.header_organiq {
		padding: 0 10px;
	}

	.logo_organiq img {
		width: 22px;
		height: 22px;
	}

	.header_profil_box td:first-child {
		display: none;
		/* Hide 'Welcome Name' in header on small mobile */
	}

	/* Fix: Center auth card on small mobile screens */
	.auth-card {
		padding: 30px 24px !important;
		max-width: 90% !important;
		margin: 20px auto !important;
	}

	/* Fix: Optimize legal pages (privacy/terms) for mobile */
	.legal-container {
		text-align: left !important;
		padding: 15px 5px !important;
	}

	.legal-footer {
		flex-direction: column !important;
		gap: 10px !important;
	}

	.legal-footer a,
	.legal-footer button {
		width: 100% !important;
		text-align: center;
	}
}

/* Notion-style empty states */
.notion-empty {
	text-align: center;
	padding: 60px 20px;
	background: var(--bg-hover);
	border-radius: 12px;
	border: 2px dashed var(--border-bold);
	margin: 20px 0;
}

.notion-empty i {
	font-size: 40px;
	color: var(--text-muted);
	margin-bottom: 12px;
	display: block;
}

.notion-empty p {
	color: var(--text-muted);
	font-size: 14px;
}

.release-card {
	border-left: 4px solid #4455be !important;
}

/* Global Responsive Table Container */
.table-responsive {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 1rem;
}

/* Note: individual tables define their own min-width if needed */
@media (max-width: 600px) {
	.list_for_you_prjcts table {
		min-width: 400px;
		/* Only for the Récents/Assignés list, not Favoris */
	}
}

/* Home Menu Scroll for mobile */
@media (max-width: 768px) {
	.home_menu_menu {
		overflow-x: auto !important;
		white-space: nowrap !important;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding-bottom: 5px !important;
	}

	.home_menu_menu::-webkit-scrollbar {
		display: none;
	}

	.home_menu {
		flex-shrink: 0 !important;
	}
}

/* Organigramme: matches table border, radius, and respects parent right-padding */
.org-chart-view {
	display: none;
	/* Shown by JS */
	overflow-x: auto;
	padding: 20px;
	background: var(--bg-panel);
	border: 1px solid var(--border-bold);
	border-radius: 10px;
	margin-top: 15px;
	margin-bottom: 25px;
	-webkit-overflow-scrolling: touch;
}

.org-chart-tree {
	min-width: max-content;
	display: inline-block;
}

/* Project Template Categories — horizontal scroll on mobile */
.model-categories {
	display: flex;
	gap: 10px;
	margin-top: 15px;
	overflow-x: auto;
	padding-bottom: 8px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.model-categories::-webkit-scrollbar {
	display: none;
}

.model-categories .cat-btn {
	flex-shrink: 0;
}

/* Help Page Styles */
.help-page-container {
	padding: 60px 40px !important;
	max-width: 1100px;
	margin: 0 auto;
}

.help-header {
	text-align: center;
	margin-bottom: 50px;
}

.help-title {
	font-size: 32px;
	color: var(--text-main);
	font-weight: 800;
	margin-bottom: 12px;
}

.help-subtitle {
	color: var(--text-muted);
	font-size: 16px;
	max-width: 600px;
	width: 100%;
	margin: 0 auto 30px;
	box-sizing: border-box;
}

.help-search-container {
	position: relative;
	max-width: 500px;
	margin: 0 auto;
	width: 100%;
}

.help-search-container i {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	font-size: 20px;
}

.help-search-input {
	width: 100%;
	padding: 14px 14px 14px 45px;
	border-radius: 12px;
	border: 1px solid var(--border-bold);
	background: var(--bg-panel);
	color: var(--text-main);
	font-size: 15px;
	transition: all 0.2s;
	box-shadow: var(--shadow-sm);
	box-sizing: border-box;
	/* ESSENTIAL: Ensures width: 100% includes padding */
}

.help-search-input:focus {
	outline: none;
	border-color: #4455be;
	box-shadow: 0 0 0 3px rgba(68, 85, 190, 0.1);
}

.help-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 25px;
	margin-bottom: 60px;
}

.help-card {
	background: var(--bg-panel);
	padding: 30px;
	border-radius: 16px;
	border: 1px solid var(--border-light);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.help-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
	border-color: #e2e8f0;
}

.card-icon {
	width: 54px;
	height: 54px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	margin-bottom: 20px;
}

.help-card.primary .card-icon {
	background: #eef2ff;
	color: #4455be;
}

.help-card.warning .card-icon {
	background: #fff7ed;
	color: #ea580c;
}

.help-card.success .card-icon {
	background: #f0fdf4;
	color: #16a34a;
}

.help-card h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: 12px;
}

.help-card p {
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px;
	flex-grow: 1;
}

.card-link {
	color: #4455be;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 5px;
}

.card-link:hover {
	text-decoration: underline;
}

.faq-container {
	padding: 40px 0;
	margin-bottom: 50px;
}

.faq-header {
	margin-bottom: 30px;
}

.faq-header h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: 8px;
}

.faq-header p {
	color: var(--text-muted);
	font-size: 14px;
}

.faq-item {
	border-bottom: 1px solid var(--border-light);
	padding: 5px 0;
}

.faq-item:last-child {
	border-bottom: none;
}

.faq-item summary {
	padding: 20px;
	font-weight: 600;
	color: var(--text-main);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.2s;
	border-radius: 8px;
	gap: 15px;
	/* Ensure space between text and icon */
}

.faq-item summary i {
	flex-shrink: 0;
	/* Don't squash the icon */
}

.faq-item summary:hover {
	background: var(--bg-hover);
}

.faq-item summary i {
	color: var(--text-muted);
	transition: transform 0.3s;
}

.faq-item[open] summary i {
	transform: rotate(180deg);
}

.faq-content {
	padding: 0 20px 20px;
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.7;
}

.contact-banner {
	background: #4455be;
	border-radius: 16px;
	padding: 30px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: white;
}

.contact-info h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 4px;
}

.contact-info p {
	opacity: 0.9;
	font-size: 15px;
}

.contact-banner .btn-primary {
	background: white;
	color: #4455be;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 500;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
}

.contact-banner .btn-primary:hover {
	background: #f8f9ff;
	transform: scale(1.02);
}

@media (max-width: 1024px) {
	.help-page-container {
		padding: 40px 20px !important;
	}

	.help-search-container {
		max-width: 100%;
		padding: 0;
		/* Removed padding — box-sizing handles it now */
	}

	.help-title {
		font-size: 26px;
	}
}

@media (max-width: 768px) {
	.contact-banner {
		flex-direction: column;
		text-align: center;
		gap: 20px;
	}

	.help-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.help-search-input {
		font-size: 13px !important;
		padding: 12px 12px 12px 40px !important;
	}

	.help-page-container {
		padding: 30px 15px !important;
	}

	.faq-container {
		padding: 20px 15px !important;
	}
}

/* Unified Modal System Styles */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 2000;
	display: none;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.modal-overlay.open {
	display: flex;
}

.modal-content {
	background: var(--bg-panel);
	color: var(--text-main);
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	border: 1px solid var(--border-light);
	padding: 24px;
	max-height: 90vh;
	overflow-y: auto;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border-light);
	padding-bottom: 12px;
}

.modal-header h2,
.modal-header h3 {
	margin: 0;
	color: var(--text-main);
	font-size: 1.25rem;
	font-weight: 700;
}

.close-modal,
.close-btn {
	background: var(--bg-hover);
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--text-muted);
	font-size: 20px;
	transition: all 0.2s;
}

.close-modal:hover,
.close-btn:hover {
	background: var(--border-light);
	color: var(--text-main);
}

.modal-footer {
	margin-top: 24px;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	border-top: 1px solid var(--border-light);
	padding-top: 20px;
}

/* Logistics Module Shared Styles */
.logi-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.logi-table th {
	background: var(--bg-body);
	padding: 12px 14px;
	text-align: left;
	font-weight: 600;
	color: var(--text-muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	border-bottom: 1px solid var(--border-light);
}

.logi-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--border-light);
	color: var(--text-main);
	vertical-align: middle;
}

.logi-table tr:last-child td {
	border-bottom: none;
}

.logi-table tr:hover td {
	background: var(--bg-hover);
}

/* ===================================================
   MOBILE RESPONSIVENESS — Consolidated Patch
   Fixes all layout, table, and form issues on mobile
   =================================================== */

/* Utility class: always available, no media query needed */
.table-responsive {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* === Tablets & small desktops (1024px and below) === */
@media (max-width: 1024px) {

	/* Central content: full width, no float */
	.central_content {
		width: 100% !important;
		padding-right: 20px !important;
		padding-left: 20px !important;
		float: none !important;
		box-sizing: border-box !important;
	}
}

/* === Mobile (768px and below) === */
@media (max-width: 768px) {

	/* --- Layout --- */
	.central_content {
		padding-right: 12px !important;
		padding-left: 12px !important;
	}

	/* --- Page headers: stack title and button --- */
	.title_prjcts_prjcts {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 12px !important;
		padding: 15px 0 !important;
	}

	.box_btn_prjcts_prjcts {
		width: 100% !important;
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 8px !important;
	}

	.box_btn_prjcts_prjcts button,
	.box_btn_prjcts_prjcts a {
		flex: 1 !important;
		min-width: 140px !important;
		justify-content: center !important;
		text-align: center !important;
	}

	/* --- Forms: stack all rows --- */
	.form-row {
		flex-direction: column !important;
		gap: 12px !important;
	}

	.form-row>* {
		width: 100% !important;
		flex: none !important;
	}

	/* --- Tables: force min-width so .table-responsive triggers scroll --- */
	.compta-table,
	.logi-table,
	.grid-lignes {
		min-width: 560px;
	}

	/* --- Logistics dashboard navigation: horizontal scroll strip --- */
	.logi-nav-container {
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		padding-bottom: 8px;
		-webkit-overflow-scrolling: touch;
	}

	.logi-nav-container::-webkit-scrollbar {
		height: 4px;
	}

	.logi-nav-link {
		flex-shrink: 0 !important;
		white-space: nowrap !important;
	}

	/* --- Totaux box in accounting forms: stack --- */
	.totaux-box {
		flex-direction: column !important;
		gap: 10px !important;
		align-items: flex-start !important;
	}

	/* --- Saisie & cards: reduce padding --- */
	.saisie-box {
		padding: 14px !important;
	}

	/* --- Article creation form grids: 1 column --- */
	.form-row3 {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}

	/* ============================================================
       CRITICAL FIX: parent panels have overflow:hidden which
       clips the horizontal scroll of .table-responsive children.
       Override on mobile so tables can scroll properly.
    ============================================================ */

	/* Logistics dashboard & article panels */
	.logi-panel,
	.history-panel {
		overflow: visible !important;
		/* Re-apply border-radius via outline trick */
	}

	/* Accounting panels that wrap tables */
	.saisie-box,
	.compta-section,
	.balance-wrap {
		overflow: visible !important;
	}


	/* Logistics article header: stack icon + content vertically */
	.article-header-card {
		flex-direction: column !important;
		align-items: flex-start !important;
	}

	/* Logistics article meta grid: 2 columns on mobile */
	.article-meta-grid {
		grid-template-columns: 1fr 1fr !important;
	}

	/* Logistics article movement form: stack fields */
	.mvt-form-row {
		flex-direction: column !important;
		align-items: stretch !important;
	}

	.mvt-form-group {
		width: 100% !important;
	}

	.mvt-form-group input,
	.mvt-form-group select {
		width: 100% !important;
		min-width: unset !important;
	}
}

/* Authentication Logo Styling */
.auth-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 30px;
}

.auth-logo img {
	width: 40px;
	height: 40px;
}

.auth-logo span {
	font-family: 'Lexend', sans-serif;
	font-weight: 800;
	font-size: 28px;
	letter-spacing: -0.03em;
	color: var(--text-main);
}

/* Extracted from src/View/home/home_menu_assgn.php */
.home_menu_assgn {
	margin-bottom: 60px;
}

.home_menu_menu .home_menu:hover {
	color: #4455be !important;
}

.list_for_you_prjcts tr:hover {
	background-color: var(--bg-hover) !important;
}

.status-pill-mini {
	font-size: 10px;
	padding: 2px 10px;
	border-radius: 20px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	display: inline-block;
}

.status-todo {
	background: rgba(148, 163, 184, 0.15);
	color: #94a3b8;
	border: 1px solid rgba(148, 163, 184, 0.2);
}

.status-progress {
	background: rgba(59, 130, 246, 0.15);
	color: #60a5fa;
	border: 1px solid rgba(96, 165, 250, 0.2);
}

.status-review {
	background: rgba(245, 158, 11, 0.15);
	color: #fbbf24;
	border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-done {
	background: rgba(34, 197, 94, 0.15);
	color: #4ade80;
	border: 1px solid rgba(74, 222, 128, 0.2);
}

/* Premium Checklist Styles */
.checklist-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}

.checklist-item:hover {
	background: var(--bg-hover);
	border-color: var(--border-light);
}

.checklist-checkbox {
	width: 18px;
	height: 18px;
	border-radius: 5px;
	border: 2px solid var(--border-bold);
	display: flex;
	align-items: center;
	justify-content: center;
	color: transparent;
	transition: all 0.2s;
	flex-shrink: 0;
}

.checklist-item.done .checklist-checkbox {
	background: var(--accent-color);
	border-color: var(--accent-color);
	color: white;
}

.checklist-item.done span {
	text-decoration: line-through;
	color: var(--text-muted);
}

/* Main Task Finish Style */
.task-finished #modalTaskTitle,
.task-finished #modalTaskDesc,
.task-finished .modal-section p {
	text-decoration: line-through;
	opacity: 0.6;
}

.main-check-wrapper {
	width: 24px;
	height: 24px;
	border: 2px solid var(--accent-color);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: transparent;
	transition: all 0.2s;
}

.main-check-wrapper.checked {
	background: var(--accent-color);
	color: white;
}

/* List quick actions */
.list-check-wrapper {
	width: 18px;
	height: 18px;
	border: 2px solid #cbd5e1;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: transparent;
	transition: all 0.2s;
}

.list-check-wrapper:hover {
	border-color: var(--accent-color);
}

.list-check-wrapper.checked {
	background: var(--accent-color);
	border-color: var(--accent-color);
	color: white;
}

.row-finished td {
	opacity: 0.5;
}

.row-finished td div {
	text-decoration: line-through;
}

/* Modal Styling */
.organiq-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(4px);
	align-items: center;
	justify-content: center;
}

.organiq-modal.active {
	display: flex;
}

/* Modal adjustments for Home Page assigned tasks */
.organiq-modal .modal-content {
	width: 90%;
	max-width: 500px;
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-section {
	margin-bottom: 16px;
}

.modal-section label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	color: var(--text-muted);
	font-weight: 700;
	margin-bottom: 4px;
	letter-spacing: 0.05em;
}

.modal-section p {
	margin: 0;
	font-size: 14px;
	color: var(--text-main);
	line-height: 1.5;
}

.modal-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--border-light);
}

/* Deadline Badges (Minimalist Organiq Style) */
.badge-deadline {
	font-size: 10px;
	font-weight: 600;
	padding: 1px 6px;
	border-radius: 12px;
	/* Pill shape */
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.badge-deadline.soon {
	background: rgba(249, 115, 22, 0.15);
	color: #fb923c;
}

.badge-deadline.urgent-pulse {
	background: rgba(239, 68, 68, 0.15);
	color: #f87171;
	animation: pulse-mini 2s infinite;
}

.badge-deadline.overdue {
	background: rgba(239, 68, 68, 0.2);
	color: #f87171;
	font-weight: 700;
}

.badge-deadline.none {
	background: var(--bg-hover);
	color: var(--text-muted);
}

@keyframes pulse-mini {
	0% {
		opacity: 1;
	}

	50% {
		opacity: 0.6;
	}

	100% {
		opacity: 1;
	}
}

/* Extracted from src/View/home/for_you_prjcts.php */
.prjct_card_home:hover {
	transform: translateY(-4px);
	background-color: var(--bg-hover) !important;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	border-color: #4455be66;
}

/* Extracted from layout.php (block 0) */
.mobile-optimization-banner {
	display: none;
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background: linear-gradient(135deg, #4455be 0%, #3544a0 100%);
	color: white;
	padding: 16px 20px;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(68, 85, 190, 0.3);
	z-index: 10001;
	align-items: center;
	gap: 15px;
	animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-optimization-banner i.icon {
	font-size: 24px;
	background: rgba(255, 255, 255, 0.2);
	padding: 8px;
	border-radius: 12px;
	flex-shrink: 0;
}

.mobile-optimization-banner .text {
	flex: 1;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.mobile-optimization-banner button.close-btn {
	background: none;
	border: none;
	color: white;
	opacity: 0.8;
	font-size: 22px;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

@keyframes slideUp {
	from {
		transform: translateY(150%);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@media (min-width: 769px) {
	.mobile-optimization-banner {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.mobile-optimization-banner.visible {
		display: flex !important;
	}
}

/* Extracted from layout.php (block 1) */
.incoming-call-toast {
	position: fixed;
	top: 65px;
	right: 20px;
	width: 300px;
	background: var(--bg-panel);
	backdrop-filter: blur(15px);
	padding: 15px;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	z-index: 10000;
	display: none;
	border: 1px solid var(--border-bold);
	animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
	from {
		transform: translateX(120%);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.call-toast-content {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 15px;
}

.caller-avatar-wrapper {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--bg-hover);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.caller-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.caller-avatar-initials {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #4455be 0%, #3544a0 100%);
	color: white;
	font-size: 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.caller-info h4 {
	margin: 0;
	font-size: 14px;
	color: var(--text-main);
	font-weight: 600;
}

.caller-info p {
	margin: 1px 0 0;
	font-size: 11px;
	color: var(--text-muted);
}

.call-toast-actions {
	display: flex;
	gap: 8px;
}

.toast-btn {
	flex: 1;
	padding: 8px;
	border: none;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.btn-accept {
	background: #4455be;
	color: white;
}

.btn-accept:hover {
	background: #3544a0;
	transform: translateY(-1px);
}

.btn-decline {
	background: var(--bg-hover);
	color: #ef4444;
	border: 1px solid var(--border-light);
}

.btn-decline:hover {
	background: rgba(239, 68, 68, 0.1);
}

/* Extracted from layout.php (block 2) */
.command-hub-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(8px);
	z-index: 9999;
	display: flex;
	justify-content: center;
	padding-top: 10vh;
	animation: fadeIn 0.2s ease;
}

.command-hub-modal {
	width: 100%;
	max-width: 650px;
	background: var(--bg-panel);
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: 80vh;
	border: 1px solid var(--border-light);
	animation: slideDown 0.3s ease;
}

.command-hub-search {
	display: flex;
	align-items: center;
	padding: 20px 28px;
	gap: 18px;
	border-bottom: 1px solid var(--border-light);
}

.command-hub-search i {
	font-size: 26px;
	color: var(--accent-color);
}

.command-hub-search input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 19px;
	background: transparent;
	color: var(--text-main);
	font-weight: 400;
}

.hub-shortcut-hint {
	font-size: 10px;
	color: var(--text-muted);
	text-transform: uppercase;
	padding: 4px 8px;
	background: var(--bg-hover);
	border-radius: 4px;
}

.hub-results-container {
	overflow-y: auto;
	flex: 1;
}

.hub-empty-state {
	padding: 60px 40px;
	text-align: center;
	color: var(--text-muted);
}

.hub-empty-state i {
	font-size: 48px;
	margin-bottom: 15px;
	opacity: 0.5;
}

.hub-hints {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 20px;
	font-size: 12px;
}

.hub-hints span {
	background: var(--bg-hover);
	padding: 4px 10px;
	border-radius: 6px;
	color: var(--text-muted);
}

.command-hub-footer {
	padding: 12px 24px;
	background: var(--bg-panel);
	border-top: 1px solid var(--border-light);
	display: flex;
	gap: 20px;
}

.footer-hint {
	font-size: 11px;
	color: var(--text-muted);
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes slideDown {
	from {
		transform: translateY(-20px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Extracted from layout.php (block 3) */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10002;
	backdrop-filter: blur(4px);
}

.modal-overlay.open {
	display: flex;
}

.modal-content {
	background: var(--bg-panel);
	border: 1px solid var(--border-light);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	border-radius: 12px;
	animation: modalScale 0.2s ease-out;
}

@keyframes modalScale {
	from {
		transform: scale(0.95);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* =========================================================
   SKELETON LOADING SYSTEM (Organiq Premium)
   ========================================================= */
.skeleton {
	position: relative;
	overflow: hidden;
	background-color: var(--bg-hover);
	border-radius: 6px;
}

.skeleton::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg,
			transparent,
			rgba(255, 255, 255, 0.08),
			transparent);
	animation: shimmer 1.6s infinite;
}

html[data-theme="dark"] .skeleton::after {
	background: linear-gradient(90deg,
			transparent,
			rgba(255, 255, 255, 0.04),
			transparent);
}

@keyframes shimmer {
	100% {
		transform: translateX(100%);
	}
}

.skeleton-text {
	height: 12px;
	margin-bottom: 10px;
	width: 100%;
}

.skeleton-title {
	height: 18px;
	margin-bottom: 12px;
	width: 60%;
}

.skeleton-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

.skeleton-card {
	height: 200px;
	border-radius: 20px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.skeleton-rect {
	height: 40px;
	width: 100%;
}

/* Table Skeletons */
.table-skeleton-row td {
	padding: 15px !important;
}

.skeleton-line {
	height: 12px;
	background: var(--bg-hover);
	border-radius: 4px;
	width: 100%;
	position: relative;
	overflow: hidden;
}

.skeleton-line::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
	animation: shimmer 1.5s infinite;
}

[data-theme="light"] .skeleton-line::after {
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.skeleton-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Actions Dropdown Menu styling */
.dropdown-actions-menu button:hover,
.dropdown-actions-menu a:hover {
	background-color: var(--bg-hover) !important;
}
@keyframes dropdownFadeIn {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

.dropdown-actions-trigger {
	background: var(--bg-panel) !important;
	color: var(--text-main) !important;
	border: 1px solid var(--border-light) !important;
	transition: background 0.2s, border-color 0.2s;
}
.dropdown-actions-trigger:hover {
	background: var(--bg-hover) !important;
	border-color: var(--border-light) !important;
}
.dropdown-actions-trigger i {
	color: var(--text-main) !important;
}