@charset "UTF-8";

#list_messages table.noborder tr.liste_titre {
	background: rgb(220, 220, 223) !important;
}

#list_messages table.noborder tr.impair {
	background: rgb(255, 255, 255) !important;
}

#list_messages table.noborder tr.pair {
	background: rgb(250, 250, 250) !important;
}

#mainmenutd_webmail,
#mainmenutd_webmail .tmenucenter {
	min-width: 71px;
}

#list_messages tr.selected {
	background: #d2f5b0 !important;
}

#list_messages input.liste_titre[type=submit] {
	background-color: #FDFDFD !important;
	padding: 2px;
	margin-left: 4px;
}

#list_messages td.link {
	display: none;
}

#list_messages,
#list_messages a {
	color: #000000;
}

#list_messages tr.unread {
	font-weight: bolder;
	color: #000000;
}

#list_messages tr.unread a,
#list_messages tr.unread a {
	font-weight: bold;
	color: #000000;
	text-decoration: none;
}

#list_messages tr a {
	text-decoration: none;

}

#list_messages a:link,
#list_messages a:visited,
#list_messages a:hover,
#list_messages a:active {
	font-weight: normal;
	color: #000000;
}

#list_messages tbody {
	display: block;
	height: 30vh;
	min-height: 100px;
	overflow-Y: scroll;
}

#list_messages tr {
	display: block;
}

#list_messages tbody tr {
	overflow: hidden;
}

#list_messages thead {
	display: block;
	position: relative;
	z-index: 30;
}

#list_messages thead>tr,
#list_messages tbody {
	display: block;
}

/* tbody debajo del thead: evita que los checkboxes tapen el desplegable de estado */
#list_messages tbody {
	position: relative;
	z-index: 1;
}

#list_messages tbody tr:hover {
	cursor: pointer;
	background: #24A9DB !important;
}

#list_messages tbody tr:nth-child(2n+1) {
	/*impair*/
	background: linear-gradient(bottom, rgb(255, 255, 255) 85%, rgb(255, 255, 255) 100%);
	background: -o-linear-gradient(bottom, rgb(255, 255, 255) 85%, rgb(255, 255, 255) 100%);
	background: -moz-linear-gradient(bottom, rgb(255, 255, 255) 85%, rgb(255, 255, 255) 100%);
	background: -webkit-linear-gradient(bottom, rgb(255, 255, 255) 85%, rgb(255, 255, 255) 100%);
	background: -ms-linear-gradient(bottom, rgb(255, 255, 255) 85%, rgb(255, 255, 255) 100%);
	font-family: arial, tahoma, verdana, helvetica;
	border: 0px;
	margin-bottom: 1px;
	color: #202020;
	min-height: 18px;
	/* seems to not be used */
}

#list_messages tbody tr:nth-child(2n) {
	/*pair*/
	background: linear-gradient(bottom, rgb(242, 242, 242) 85%, rgb(248, 248, 248) 100%);
	background: -o-linear-gradient(bottom, rgb(242, 242, 242) 85%, rgb(248, 248, 248) 100%);
	background: -moz-linear-gradient(bottom, rgb(242, 242, 242) 85%, rgb(248, 248, 248) 100%);
	background: -webkit-linear-gradient(bottom, rgb(242, 242, 242) 85%, rgb(248, 248, 248) 100%);
	background: -ms-linear-gradient(bottom, rgb(242, 242, 242) 85%, rgb(248, 248, 248) 100%);
	font-family: arial, tahoma, verdana, helvetica;
	border: 0px;
	margin-bottom: 1px;
	color: #202020;
}

#list_messages tr.liste_titre th,
#list_messages th.liste_titre,
#list_messages tr.liste_titre td,
#list_messages td.liste_titre,
#list_messages form.liste_titre div,
#list_messages div.liste_titre {
	border-bottom: none !important;
}

#list_messages tr.liste_titre_sel th,
#list_messages th.liste_titre_sel,
#list_messages tr.liste_titre_sel td,
#list_messages td.liste_titre_sel,
#list_messages form.liste_titre_sel div {
	text-decoration: none !important;
}

#list_messages tr.liste_titre,
#list_messages tr.liste_titre_sel,
#list_messages form.liste_titre,
#list_messages form.liste_titre_sel,
#list_messages table.dataTable.tr {
	min-height: 30px !important;
	height: auto !important;
}

#list_messages tr.liste_titre_filter {
	overflow: visible;
}

#list_messages tr.liste_titre_filter [data-campo='date'] {
	height: 34px;
	overflow: visible !important;
	vertical-align: middle;
	padding-top: 0;
	white-space: nowrap;
	width: 160px;
}

#list_messages tr.liste_titre_filter [data-campo='date'] .divfordateinput {
	display: inline-flex !important;
	align-items: center;
	gap: 2px;
	margin: 0 6px 0 0 !important;
}

#list_messages tr.liste_titre_filter [data-campo='date'] .divfordateinput:last-child {
	margin-right: 0 !important;
}

#list_messages tr.liste_titre_filter [data-campo='date'] .divfordateinput input {
	width: 58px !important;
}

#list_messages tr.liste_titre_filter [data-campo='date'] .ui-datepicker-trigger,
#list_messages tr.liste_titre_filter [data-campo='date'] .datecallink,
#list_messages tr.liste_titre_filter [data-campo='date'] .dpInvisibleButtons {
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
	vertical-align: middle !important;
}

#list_messages tr.liste_titre_filter [data-campo='date'] br,
#list_messages thead [data-campo='date'] br {
	display: none !important;
}

#list_messages [data-campo='status'] select {
	background-repeat: no-repeat;
	background-position: 2px;
	width: 35px;
	padding-left: 10px;
}

#list_messages [data-campo='read'] select {
	background-repeat: no-repeat;
	background-position: 2px;
	width: 100px;
	padding-left: 10px;
}

#list_messages [data-campo='status'] option,
#list_messages [data-campo='read'] option {
	padding-left: 0px;
	background-repeat: no-repeat;
	background-position: 2px;
	width: 80px;
}

/*thead*/
#list_messages thead th,
#list_messages thead td {
	text-align: center;
}

#list_messages thead td {
	margin-top: 3px;
	margin-bottom: 3px;
}

#list_messages table {
	min-width: 720px;
}

/*tamaño campos*/
#list_messages [data-campo] {
	overflow: hidden;
	display: inline-block;
	/*white-space: nowrap*/
}

#list_messages [data-campo='date'] {
	width: 160px;
}

#list_messages [data-campo='attachments'] {
	width: 70px;
}

#list_messages thead [data-campo='sender'],
#list_messages thead [data-campo='to'],
#list_messages thead [data-campo='topic'] {
	width: calc((100% - 515px)/3);
	padding-left: 6px;
	padding-right: 6px;
}

#list_messages thead td[data-campo='sender'],
#list_messages thead td[data-campo='to'],
#list_messages thead td[data-campo='topic'] {
	text-align: left;
}

#list_messages tbody [data-campo='sender'],
#list_messages tbody [data-campo='to'],
#list_messages tbody [data-campo='topic'] {
	width: calc((100% - 505px)/3);
	padding-left: 6px;
	padding-right: 6px;
	white-space: nowrap;
}

#list_messages thead [data-campo='attachments'],
#list_messages tr.liste_titre [data-campo='attachments'],
#list_messages tr.liste_titre_filter [data-campo='attachments'] {
	text-align: center !important;
	vertical-align: middle !important;
	white-space: nowrap;
}

#list_messages .attachment-filter-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

#list_messages .attachment-filter-label input[type='checkbox'] {
	margin: 0;
}

#list_messages [data-campo='sender'] input,
#list_messages [data-campo='to'] input,
#list_messages [data-campo='topic'] input {
	width: 90%;
}

#list_messages [data-campo='status'] {
	width: 65px;
	text-align: center;
}

#list_messages [data-campo='delete'] {
	width: 80px;
	text-align: center;
}

/* Give enough room for Search + Clear buttons in normal filters row */
#list_messages tr.liste_titre_filter [data-campo='delete'] {
	width: 92px !important;
	min-width: 92px !important;
	max-width: 92px !important;
	white-space: nowrap;
	overflow: visible !important;
}

#list_messages tr.liste_titre_filter [data-campo='delete'] input[type='image'] {
	display: inline-block;
	vertical-align: middle;
	margin: 0 2px;
}

#list_messages thead [data-campo='read'] {
	width: 65px;
	padding-left: 6px;
	padding-right: 6px;
	text-align: center;
}

#list_messages tbody [data-campo='read'] {
	width: 65px;
	padding-left: 6px;
	padding-right: 6px;
	white-space: nowrap;
	text-align: center;
}

/*MESSAGE*/
#iframe_body {
	background-color: #ffffff;
	border: 1px solid #999999;
	overflow-Y: auto;
}

#message_head {
	background-color: #f0f2f5;
	/* Gris un poco más fuerte para marcar la zona */
	border-bottom: 1px solid #e2e8f0;
	padding: 15px;
	margin: -12px -12px 15px -12px;
	/* Estética de bloque completo dentro del contenedor */
	border-radius: 10px 10px 0 0;
}

#message_head .message-info-label {
	width: 110px;
	text-align: right;
	margin-right: 8px;
	font-weight: 700;
	color: #1a202c;
	font-size: 1.15em;
	display: inline-block;
}

#message_head .message-info-label::AFTER {
	content: ":";
}

#message_head .message-info-value {
	min-height: 18px;
	white-space: pre-line;
	font-size: 1.1em;
	color: #1a202c;
	display: inline-block;
}

#message_head .message-info-subject {
	color: #245ec1 !important;
	font-weight: 700;
}

#message {
	position: relative;
	padding: 5px;
	background-image: -webkit-linear-gradient(bottom, rgba(234, 234, 234, 0.5) 25%, rgba(210, 210, 210, 0.5) 100%);
	border: 1px solid #B0B0B0;
}

#attachments div {
	margin-right: 5px;
}

.clearfix:before,
.clearfix:after {
	content: " ";
	/* 1 */
	display: table;
	/* 2 */
}

.clearfix:after {
	clear: both;
}

/*buttons actions*/
#actions {
	margin-bottom: 5px;
	text-align: right;
	margin-top: 8px;
}

#actions a:hover {
	text-decoration: none;
}

/*show in icon webmail in menu, number of unread emails*/
#unread_emails {
	background-color: #000000;
	color: #FFFFFF;
	border-radius: 18px;
	border-style: solid;
	text-align: center;
	z-index: 1;

	-webkit-box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.75);
	-moz-box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.75);
	box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.75);

	-webkit-transition: height 0.8s, width 0.8s, font-size 0.8s, border-width 0.8s, margin-left 0.8s, margin-top 0.8s, line-height 0.8s;
	-moz-transition: height 0.8s, width 0.8s, font-size 0.8s, border-width 0.8s, margin-left 0.8s, margin-top 0.8s, line-height 0.8s;
	transition: height 0.8s, width 0.8s, font-size 0.8s, border-width 0.8s, margin-left 0.8s, margin-top 0.8s, line-height 0.8s;
}

#unread_emails.unread_emails {
	width: 18px;
	height: 18px;
	line-height: 18px;
	font-size: 11px;
	border-width: 2px;
	margin-left: 46px;
	margin-top: -37px;
	z-index: 10;
	position: absolute;
}

#unread_emails.read_emails {
	width: 0px;
	height: 0px;
	font-size: 0px;
	border-width: 0px;
	line-height: 0px;
	margin-left: 54px;
	margin-top: -29px;
	z-index: 10;
	position: absolute;
}

/*show in menu, icon webmail, show number of new emails*/
#new_emails.new_emails {
	width: 12px;
	height: 12px;
	font-size: 11px;
	left: 60px;
	top: 3px;
	z-index: 20;
	position: absolute;

}

#new_emails.no_new_emails {
	width: 0px;
	height: 0px;
	font-size: 0px;
	left: 51px;
	top: 12px;
	z-index: 20;
	position: absolute;
}

#new_emails {
	position: absolute;
	background-color: #E60000;
	color: #FFFFFF;
	border-radius: 10px;
	line-height: 11px;
	text-align: center;
	z-index: 2;

	-webkit-box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.75);
	-moz-box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.75);
	box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.75);

	-webkit-transition: height 0.8s, width 0.8s, font-size 0.8s, left 0.8s, top 0.8s;
	-moz-transition: height 0.8s, width 0.8s, font-size 0.8s, left 0.8s, top 0.8s;
	transition: height 0.8s, width 0.8s, font-size 0.8s, left 0.8s, top 0.8s;
}

/*in left menu show in input the number of unread emails*/
#unread_inbox {
	display: none;
	float: right;
	margin-right: 11px;
	line-height: 14px;
	font-size: 10px;
}

#unread_inbox:before {
	content: '(';
}

#unread_inbox:after {
	content: ')';
}

/* Mobile */

@media only screen and (max-height: 768px) {}

#inbox div.tabsAction {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 0 2px;
}

#inbox div.tabsAction button {
	min-width: 9.5rem;
	width: auto;
	border-radius: 8px;
}

/* Modern inbox refresh (only inbox area, side menu untouched) */
#inbox {
	background: #f5f7fb;
	border: 1px solid #d8e0ef;
	border-radius: 12px;
	padding: 10px;
	overflow-x: hidden;
}

/* Keep webmail layout from expanding page width on dropdown overlays */
body.mainmenu-webmail,
body.mainmenu-webmail #id-container,
body.mainmenu-webmail #id-right,
body.mainmenu-webmail #inbox {
	overflow-x: hidden !important;
}

#inbox #list_messages {
	background: #ffffff;
	border: 1px solid #dfe6f3;
	border-radius: 10px;
	padding: 8px;
	box-shadow: 0 1px 4px rgba(17, 24, 39, 0.06);
}

#inbox #list_messages table {
	min-width: 820px;
}

#inbox #list_messages thead tr.liste_titre,
#inbox #list_messages thead tr.liste_titre_filter {
	background: #eaf3ff !important;
	border-bottom: none !important;
}

#inbox #list_messages thead th,
#inbox #list_messages thead td {
	color: #000000;
	font-weight: 700;
	font-size: 1.15em;
}

#inbox #list_messages thead {
	position: relative;
	z-index: 30;
}

#inbox #list_messages tbody {
	height: 33vh;
	min-height: 180px;
	overflow-y: auto;
	scrollbar-color: #b7c4dd #f2f5fb;
	scrollbar-width: thin;
	position: relative;
	z-index: 1;
}

#inbox #list_messages tbody tr {
	border-bottom: 1px solid #edf1f8;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

#inbox #list_messages tbody tr:nth-child(2n+1),
#inbox #list_messages tbody tr:nth-child(2n) {
	background: #ffffff;
}

#inbox #list_messages tbody tr:hover {
	background: #edf4ff !important;
}

#inbox #list_messages tr.selected {
	background: #d9e9ff !important;
	box-shadow: inset 3px 0 0 #3a7ad9;
}

#inbox #list_messages tr.unread {
	font-weight: 700;
	color: #0f1b2d;
}

#inbox #list_messages tr.unread td[data-campo="topic"] {
	color: #0b4aa3;
}

#inbox #list_messages a:link,
#inbox #list_messages a:visited,
#inbox #list_messages a:hover,
#inbox #list_messages a:active {
	color: #1f2f47;
}

#inbox #list_messages input.flat,
#inbox #list_messages select.flat,
#inbox #list_messages [data-campo='date'] input {
	border: 1px solid #bdc1c6 !important;
	background: #ffffff !important;
	box-sizing: border-box;
	/* Blanco puro para resaltar sobre el gris */
	border-radius: 8px;
	height: 32px;
	padding: 5px 10px;
	transition: all 0.2s ease-in-out;
}

/*
 * Fila "Filtros avanzados" / filtros estándar: inputs del mismo perfil que las fechas.
 * En V20 y temas con box-sizing content-box, height+padding inflaba solo los textos (Remitente/Asunto/...).
 */
#inbox #list_messages tr.liste_titre_filter td.liste_titre {
	vertical-align: middle;
	padding-top: 4px;
	padding-bottom: 4px;
}

#inbox #list_messages tr.liste_titre_filter input.flat:not([type="image"]):not([type="checkbox"]),
#inbox #list_messages tr.liste_titre_filter select.flat {
	box-sizing: border-box !important;
	height: 26px !important;
	min-height: 0;
	padding: 2px 8px !important;
	line-height: 1.2;
	border-radius: 4px;
	font-size: 0.95em;
	vertical-align: middle;
}

#inbox #list_messages tr.liste_titre_filter [data-campo='date'] input.flat,
#inbox #list_messages tr.liste_titre_filter [data-campo='date'] input.maxwidthdate,
#inbox #list_messages tr.liste_titre_filter [data-campo='date'] input.maxwidthonsmartphone {
	height: 26px !important;
	padding: 2px 4px !important;
	box-sizing: border-box !important;
	line-height: 1.2;
	vertical-align: middle;
}

#inbox #list_messages tr.liste_titre_filter [data-campo='date'] {
	height: auto;
	min-height: 0;
	padding-top: 0;
	padding-bottom: 0;
}

#inbox #list_messages [data-campo='status'] select.flat {
	background-repeat: no-repeat !important;
	background-size: 14px 14px;
	background-position: 6px center;
	padding-left: 24px;
	width: 42px;
}

/* Avoid clipping status dropdown inside fixed columns */
#inbox #list_messages thead [data-campo='status'],
#inbox #list_messages tr.liste_titre [data-campo='status'] {
	overflow: visible !important;
	position: relative;
}

#list_messages thead [data-campo='date'],
#list_messages tr.liste_titre [data-campo='date'] {
	overflow: visible !important;
}

#list_messages thead [data-campo='date'] .divfordateinput {
	display: block;
	margin-bottom: 2px;
}

#inbox #list_messages input.flat:focus,
#inbox #list_messages select.flat:focus,
#inbox #list_messages input.flat:focus-visible,
#inbox #list_messages select.flat:focus-visible {
	outline: none !important;
	border-color: #1e293b !important;
	/* Gris Antracita Profundo: El look más elegante y minimalista */
	background-color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1) !important;
	/* Resplandor sutil en gris */
}

#inbox #list_messages td[data-campo="date"],
#inbox #list_messages td[data-campo="attachments"],
#inbox #list_messages td[data-campo="status"],
#inbox #list_messages td[data-campo="read"],
#inbox #list_messages td[data-campo="delete"] {
	text-align: center;
}

#inbox #message {
	margin-top: 10px;
	background: #ffffff;
	border: 1px solid #dfe6f3;
	border-radius: 10px;
	padding: 12px;
	box-shadow: 0 1px 4px rgba(17, 24, 39, 0.06);
	/* Espacio al hacer scrollIntoView si hay barra superior fija del tema */
	scroll-margin-top: 1rem;
	scroll-margin-bottom: 1rem;
}

#inbox #message #iframe_body {
	scroll-margin-top: 0.5rem;
	scroll-margin-bottom: 1rem;
}

#inbox #message #actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

#inbox #message #actions a.butAction,
#inbox #message #actions a.butActionDelete {
	border-radius: 8px;
}

/* Archive Folders Sidebar */
#archive-dashboard {
	display: grid;
	grid-template-columns: minmax(260px, 360px) minmax(320px, 1fr);
	gap: 14px;
	align-items: stretch;
	margin: 8px 0 12px;
	/* Sin scroll en el panel completo (ni vertical inferior ni horizontal) */
	overflow-x: hidden;
	overflow-y: visible;
}

#archive-folders-sidebar,
#archive-messages-container {
	background: #ffffff;
	border: 1px solid #dfe6f3;
	border-radius: 10px;
	padding: 8px 10px;
	box-shadow: 0 1px 4px rgba(17, 24, 39, 0.06);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

#archive-messages-container {
	overflow-x: hidden;
	overflow-y: visible;
}

/* La tabla envoltorio ocupa el ancho de la columna para que #inbox pueda centrarse dentro */
#archive-messages-container > table {
	width: 100%;
}

/* Solo en archivados: ancho acotado a la columna del grid (no afecta bandeja, borradores, etc.) */
#archive-messages-container #inbox {
	overflow-x: hidden;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

#archive-messages-container #list_messages {
	overflow-x: hidden;
}

/*
 * Vista archivo: único scroll vertical en la lista de mensajes (tbody).
 */
#archive-messages-container #inbox #list_messages tbody {
	height: auto !important;
	min-height: 120px !important;
	max-height: min(42vh, calc(100vh - 380px)) !important;
	overflow-x: hidden;
	overflow-y: auto !important;
	scrollbar-color: #b7c4dd #f2f5fb;
	scrollbar-width: thin;
}

.archive-folders-list-wrapper {
	flex-grow: 1;
	max-height: 450px;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 8px 10px;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

#archive-messages-container .tabsAction {
	margin-bottom: 0 !important;
}

/* --- Panel lateral archivados (diseño moderno) --- */
.archive-sidebar-modern {
	padding: 0 !important;
	overflow: hidden;
}

.archive-sidebar-head {
	padding: 14px 14px 10px;
	border-bottom: 1px solid #e8edf2;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.archive-sidebar-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 8px;
	letter-spacing: -0.01em;
}

.archive-sidebar-title .fa-archive {
	color: #1976d2;
	font-size: 15px;
}

.archive-mailbox-field {
	padding: 12px 14px;
	border-bottom: 1px solid #eef2f7;
}

.archive-field-label {
	display: block;
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.archive-select-shell {
	position: relative;
	display: block;
}

.archive-select-shell select,
.archive-mailbox-select,
.archive-parent-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	margin: 0;
	padding: 9px 36px 9px 12px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: #334155;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	box-sizing: border-box;
}

.archive-select-shell select:hover,
.archive-mailbox-select:hover,
.archive-parent-select:hover {
	border-color: #cbd5e1;
	background: #fff;
}

.archive-select-shell select:focus,
.archive-mailbox-select:focus,
.archive-parent-select:focus {
	outline: none;
	border-color: #1976d2;
	box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
	background: #fff;
}

.archive-select-chevron {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	font-size: 11px;
	color: #94a3b8;
}

.archive-select-shell-sm select {
	padding: 7px 32px 7px 10px;
	font-size: 12px;
}

.archive-folder-row,
.archive-folder-row-wrap {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	margin-bottom: 2px;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.archive-folder-row-wrap {
	padding-right: 4px;
}

.archive-folder-row-wrap:hover .archive-folder-delete {
	opacity: 1;
}

.archive-folder-row-wrap.is-active,
.archive-folder-row.is-active {
	background: #e8f0fe;
	box-shadow: inset 3px 0 0 #1976d2;
}

.archive-folder-row-wrap.is-active .archive-folder-name,
.archive-folder-row.is-active .archive-folder-name {
	color: #1565c0;
	font-weight: 600;
}

.archive-folder-row-wrap.is-active .archive-folder-icon,
.archive-folder-row.is-active .archive-folder-icon {
	color: #1976d2;
}

.archive-folder-row {
	flex: 1;
	min-width: 0;
	padding: 9px 8px;
	gap: 10px;
}

.archive-folder-row:hover {
	background: #f1f5f9;
	text-decoration: none;
}

.archive-folder-row-wrap-sub {
	margin-left: 12px;
	padding-left: 8px;
	border-left: 2px solid #e2e8f0;
}

.archive-folder-row-sub .archive-folder-icon {
	font-size: 12px;
}

.archive-folder-icon {
	flex-shrink: 0;
	width: 20px;
	text-align: center;
	color: #94a3b8;
	font-size: 14px;
}

.archive-folder-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	color: #334155;
}

.archive-folder-count {
	flex-shrink: 0;
	min-width: 22px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	color: #64748b;
	background: #f1f5f9;
	border-radius: 999px;
}

.archive-folder-row-wrap.is-active .archive-folder-count,
.archive-folder-row.is-active .archive-folder-count {
	background: #dbeafe;
	color: #1d4ed8;
}

.archive-folder-delete {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 6px;
	color: #94a3b8;
	opacity: 0;
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
	text-decoration: none;
}

.archive-folder-delete:hover {
	background: #fee2e2;
	color: #dc2626;
	opacity: 1 !important;
}

.archive-sidebar-footer {
	padding: 12px 14px 14px;
	border-top: 1px solid #e8edf2;
	background: #fafbfc;
}

.archive-create-label {
	margin-bottom: 8px !important;
}

.archive-create-form {
	margin: 0;
}

.archive-create-form .archive-select-shell {
	margin-bottom: 8px;
}

.archive-create-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.archive-text-input {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 9px 12px;
	font-size: 13px;
	color: #334155;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.archive-text-input:focus {
	outline: none;
	border-color: #1976d2;
	box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
}

.archive-text-input::placeholder {
	color: #94a3b8;
}

.archive-btn-add {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: #1976d2;
	color: #fff;
	font-size: 15px;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(25, 118, 210, 0.25);
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.archive-btn-add:hover {
	background: #1565c0;
	box-shadow: 0 2px 8px rgba(25, 118, 210, 0.35);
}

.archive-btn-add:active {
	transform: scale(0.97);
}

/* Drag & drop sobre carpetas archivados */
.archive-folder-dragover,
.archive-folder-row-wrap.archive-folder-dragover,
.archive-folder-row.archive-folder-dragover {
	background: #e8f5e9 !important;
	box-shadow: inset 0 0 0 2px #43a047 !important;
}

.archive-folder-item.archive-folder-dragover,
.archive-folder-item.archive-folder-dragover:hover {
	background: #e8f5e9 !important;
	box-shadow: inset 0 0 0 2px #43a047 !important;
}

#archive-folder-summary {
	background: #ffffff;
	border: 1px solid #dfe6f3;
	border-radius: 10px;
	padding: 6px 8px;
	box-shadow: 0 1px 4px rgba(17, 24, 39, 0.06);
}

.archive-summary-title {
	font-size: 13px;
	font-weight: 700;
	color: #1f2f47;
	margin-bottom: 4px;
}

.archive-summary-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
}

.archive-summary-metric {
	background: #f4f7fd;
	border: 1px solid #e3eaf7;
	border-radius: 6px;
	padding: 4px;
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 4px;
	justify-content: center;
}

.archive-summary-value {
	font-size: 13px;
	font-weight: 700;
	color: #163462;
}

.archive-summary-label {
	font-size: 10px;
	color: #576983;
	margin-top: 0;
}

.archive-summary-activity {
	margin-top: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.archive-summary-activity-label {
	font-size: 11px;
	color: #4a5b75;
	margin-bottom: 0;
}

.archive-activity-bar {
	display: flex;
	height: 6px;
	border-radius: 8px;
	overflow: hidden;
	background: #edf1f8;
	flex: 1;
}

.archive-activity-read {
	background: #4caf50;
}

.archive-activity-unread {
	background: #ff9800;
}

.archive-summary-activity-legend {
	font-size: 10px;
	color: #63758f;
	margin-top: 0;
}

.archive-summary-meta {
	margin-top: 4px;
	font-size: 11px;
	color: #576983;
}

.archive-summary-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.archive-summary-actions .butAction,
.archive-summary-actions .butActionDelete {
	margin: 0;
}

@media only screen and (max-width: 980px) {
	#archive-dashboard {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------------
   SEPARADORES DE MENÚ IZQUIERDO (Estilo Gestión)
------------------------------------------------------------------------- */
a.vmenu[href*="inbox.php"]:not([href*="action"]):not([href*="viewarchived"]):not([href*="viewdeleteds"]):not([href*="draft"]):not([href*="schedule"]):not([href*="viewspam"]):not([href*="viewoutbox"]),
a.vmenu[href*="viewoutbox=1"],
a.vmenu[href*="mailbox_config.php"],
a.vmenu[href*="contact/list.php"]
{
    border-top: 1px solid #888 !important;
    margin-top: 18px !important;
    padding-top: 12px !important;
    display: block !important;
}

/* Submenu in sidebar */
.archive-submenu {
	list-style: none;
	margin: 0;
}

.archive-submenu li {
	padding: 3px 0;
}

.archive-submenu li a {
	font-size: 12px;
	color: #555;
}

.archive-submenu li a:hover {
	color: #007bff;
}

.archive-toggle {
	font-size: 10px;
	vertical-align: middle;
}

.adv-filters-title {
	font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
	font-weight: 700;
	font-size: 2.2rem;
	color: #1a202c;
	letter-spacing: -0.02em;
	padding-bottom: 10px;
	border-bottom: 3px solid #ebedf2;
	position: relative;
}

.adv-filters-title-text {
	font-size: 1.3em !important;
	color: #1a202c !important;
	font-weight: 600;
	text-transform: capitalize;
}

.adv-filters-title:after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #26a69a 0%, #4db6ac 100%);
}

.fa-statut6,
.fa-statut8,
.fa-statut4,
.fa-statut5 {
	display: inline-block !important;
	width: 12px !important;
	height: 12px !important;
	border-radius: 50% !important;
	margin-right: 8px !important;
	box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
	vertical-align: middle !important;
}

/* No leído - Rojo */
.fa-statut6 {
	background-color: #64748b;
}

/* Leído - Blanco/Gris */
.fa-statut8 {
	background-color: #ef4444;
}

/* Respondido - Verde */
.fa-statut4 {
	background-color: #10b981;
}

#webmail_mail_status option[value="0"],
#list_messages select.webmail-mail-status-filter option[value="0"] {
	color: #64748b;
}

#webmail_mail_status option[value="1"],
#list_messages select.webmail-mail-status-filter option[value="1"] {
	color: #ef4444;
}

#webmail_mail_status option[value="2"],
#list_messages select.webmail-mail-status-filter option[value="2"] {
	color: #10b981;
}

.select2-results__option[aria-selected] {
	display: flex;
	align-items: center;
}

.select2-container.webmail-status-dropdown{
	width: 44px !important;	
	left: auto;
}

.webmail-status-dropdown .select2-dropdown{
	width: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;
	overflow-x: hidden !important;
}

.webmail-status-dropdown .select2-results__option{
	text-align: center;
	padding-left: 0 !important;
	padding-right: 0 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: clip !important;
	font-size: inherit !important;
}

body .select2-container--open.webmail-status-dropdown{
	width: 44px !important;
}

/* Select2 v3 fallback (Dolibarr legacy) */
body .select2-drop.webmail-status-dropdown {
	width: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;
	overflow-x: hidden !important;
}

body .select2-drop.webmail-status-dropdown .select2-result-label {
	padding-left: 4px !important;
	padding-right: 4px !important;
	text-align: center !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	font-size: inherit !important;
}

/* Native compact status filter (replaces select2 for this field) */
#inbox #list_messages select.webmail-status-native,
#list_messages select.webmail-status-native {
	width: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;
	padding-left: 6px !important;
	padding-right: 6px !important;
	text-align: left !important;
	text-overflow: clip !important;
}

#inbox #list_messages select.webmail-status-native.webmail-status-compact,
#list_messages select.webmail-status-native.webmail-status-compact {
	text-align: center !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	font-size: 14px !important;
	line-height: 1 !important;
}

#inbox #list_messages select.webmail-status-native option,
#list_messages select.webmail-status-native option {
	font-size: inherit !important;
	text-align: left !important;
	padding-left: 8px !important;
}

#inbox #list_messages select.webmail-status-native option[value="-1"],
#list_messages select.webmail-status-native option[value="-1"] {
	display: none !important;
}

/* Custom status picker (replaces native select UI) */
#inbox #list_messages select.webmail-status-source,
#list_messages select.webmail-status-source {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.wm-status-picker {
	position: relative;
	display: inline-block;
	width: 44px;
	overflow: visible;
	z-index: 40;
	opacity: 1 !important;
}

/* Por encima del tbody (checkboxes), por debajo del menú superior de Dolibarr (~100+) */
.wm-status-picker.is-open {
	z-index: 50;
}

.wm-status-button {
	width: 44px;
	height: 30px;
	border: 1px solid #8f8f8f;
	border-radius: 8px;
	background: #f4f5f7;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wm-status-button .wm-dot {
	font-size: 14px;
	line-height: 1;
}

.wm-status-button[data-status="read"] .wm-dot { color: #64748b; }
.wm-status-button[data-status="unread"] .wm-dot { color: #ef4444; }
.wm-status-button[data-status="replied"] .wm-dot { color: #10b981; }

.wm-status-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 51;
	min-width: 132px;
	background: #ffffff !important;
	background-color: #ffffff !important;
	border: 1px solid #cfd4dc;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 4px 0;
	display: none;
	overflow: hidden;
	opacity: 1 !important;
	filter: none !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	mix-blend-mode: normal !important;
	isolation: isolate !important;
}

.wm-status-picker.is-open .wm-status-menu {
	display: block;
}

.wm-status-item {
	width: 100%;
	border: 0;
	background: #ffffff !important;
	text-align: left;
	padding: 5px 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px !important;
	opacity: 1 !important;
	filter: none !important;
}

.wm-status-item .wm-label {
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.2;
	color: #1f2937;
	opacity: 1 !important;
	filter: none !important;
}

.wm-status-item .wm-dot {
	opacity: 1 !important;
	font-size: 15px !important;
	filter: none !important;
}

/* Desplegable de estado: sin z-index extremo (evita solapar el menú superior del backoffice) */
#list_messages tr.liste_titre_filter [data-campo='status'],
#list_messages thead [data-campo='status'],
#inbox #list_messages tr.liste_titre_filter [data-campo='status'],
#inbox #list_messages thead [data-campo='status'] {
	overflow: visible !important;
	position: relative;
}

.wm-status-item[data-status="read"] .wm-dot,
.wm-status-item[data-status="read"] .wm-label { color: #64748b; }
.wm-status-item[data-status="unread"] .wm-dot,
.wm-status-item[data-status="unread"] .wm-label { color: #ef4444; }
.wm-status-item[data-status="replied"] .wm-dot,
.wm-status-item[data-status="replied"] .wm-label { color: #10b981; }

.wm-status-item:hover,
.wm-status-item.is-active {
	background: #0b5ed7 !important;
}

.wm-status-item:hover .wm-label,
.wm-status-item.is-active .wm-label,
.wm-status-item:hover .wm-dot,
.wm-status-item.is-active .wm-dot {
	color: #fff !important;
}

/* Color para la opción 'Todos' */
[data-status="all"] .wm-dot { 
    color: #0071fb; /* Gris clarito */
}
.wm-status-item[data-status="all"] .wm-label {
    color: #0071fb;
}