/* =====================================================================
   FÉLIX - INTERFACE DE SUIVI DES DOSSIERS (2026)
   Thème Anthem : css/felix-ui.css (chargée par includes/felix/md-shortcodes.php)
   Recherche multi-critères, activité du jour, fil des étapes, onglets,
   liste des dossiers (Sticky List 1.6.0-md).
   Le site est affiché en mode « quirks » (pas de DOCTYPE) : tailles de police
   des tableaux et des champs définies explicitement.
   ===================================================================== */

.mdf-recherche, .mdf-activite, .mdf-suivi-entete, .mdf-onglets, .sl-moderne,
.et_pb_tabs:has(.sl-moderne), .entry-content:has(> .sl-moderne) > ul.et_pb_tabs_controls {
	--mdf-encre: #22201e;
	--mdf-texte: #3b3734;
	--mdf-gris: #736b64;
	--mdf-gris-clair: #a39a92;
	--mdf-bord: #e4ded7;
	--mdf-bord-fort: #cfc6bd;
	--mdf-fond: #f7f5f2;
	--mdf-fond-2: #efebe6;
	--mdf-surface: #ffffff;
	--mdf-accent: #9f8953;
	--mdf-accent-fonce: #7d6b3f;
	--mdf-accent-doux: #f6f2e9;
	--mdf-accent-texte: #7d6b3f;   /* accent pour les textes : même teinte, plus lisible */
	--mdf-focus: rgba(159, 137, 83, .32);
	--mdf-rayon: 10px;
	--mdf-ombre: 0 1px 2px rgba(34, 32, 30, .06), 0 2px 8px rgba(34, 32, 30, .05);
	box-sizing: border-box;
	color: var(--mdf-texte);
}
.mdf-recherche *, .mdf-activite *, .mdf-suivi-entete *, .mdf-onglets *, .sl-moderne * { box-sizing: border-box; }

/* ---------------------------------------------------------------------
   RECHERCHE MULTI-CRITÈRES
   --------------------------------------------------------------------- */
.mdf-recherche {
	clear: both;
	background: var(--mdf-surface);
	border: 1px solid var(--mdf-bord);
	border-radius: 14px;
	box-shadow: var(--mdf-ombre);
	padding: 18px 20px 20px;
	margin: 0 0 16px;
}
.mdf-recherche-entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mdf-recherche .mdf-recherche-titre {
	margin: 0; padding: 0;
	font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: .02em;
	color: var(--mdf-encre);
	display: flex; align-items: center; gap: 10px;
}
.mdf-loupe {
	width: 16px; height: 16px; border: 2px solid var(--mdf-accent); border-radius: 50%;
	position: relative; display: inline-block; flex: none;
}
.mdf-loupe:after {
	content: ""; position: absolute; width: 2px; height: 7px; background: var(--mdf-accent);
	right: -4px; bottom: -6px; transform: rotate(-45deg); border-radius: 2px;
}
.mdf-recherche-info {
	font-size: 12px; color: var(--mdf-accent-texte); background: var(--mdf-accent-doux);
	border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.mdf-recherche-grille {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px 16px;
}
.mdf-recherche .mdf-groupe { border: 0; margin: 0; padding: 0; min-width: 0; }
.mdf-recherche .mdf-groupe legend {
	padding: 0; margin: 0 0 6px;
	font-size: 11px; line-height: 1.2; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--mdf-gris);
}
.mdf-recherche .mdf-champ {
	display: block; width: 100%; height: 36px; margin: 0 0 6px;
	padding: 0 10px;
	font-size: 13px; line-height: 34px; color: var(--mdf-encre); font-family: inherit;
	background: var(--mdf-fond); border: 1px solid var(--mdf-bord); border-radius: 8px;
	box-shadow: none; -webkit-appearance: none; appearance: none;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.mdf-recherche select.mdf-champ {
	padding-right: 28px; line-height: normal;
	background-image: linear-gradient(45deg, transparent 50%, #736b64 50%), linear-gradient(135deg, #736b64 50%, transparent 50%);
	background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
	background-size: 5px 5px; background-repeat: no-repeat;
}
.mdf-recherche .mdf-champ::placeholder { color: var(--mdf-gris-clair); }
.mdf-recherche .mdf-champ:hover { border-color: var(--mdf-bord-fort); }
.mdf-recherche .mdf-champ:focus { outline: none; background: #fff; border-color: var(--mdf-accent); box-shadow: 0 0 0 3px var(--mdf-focus); }
.mdf-recherche-actions { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.mdf-recherche .mdf-bouton, .sl-moderne .sl-bouton {
	height: 36px; padding: 0 18px; border: 0; border-radius: 8px; cursor: pointer;
	font-size: 13px; font-weight: 600; font-family: inherit; color: #fff; background: var(--mdf-accent);
	transition: background .15s, transform .05s;
}
.mdf-recherche .mdf-bouton:hover { background: var(--mdf-accent-fonce); }
.mdf-recherche .mdf-bouton:active { transform: translateY(1px); }
.mdf-recherche .mdf-bouton:focus-visible, .mdf-recherche .mdf-bouton-lien:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--mdf-focus); }
.mdf-recherche .mdf-bouton-lien {
	background: none; border: 0; padding: 0 4px; cursor: pointer;
	font-size: 13px; font-family: inherit; color: var(--mdf-gris); text-decoration: underline; text-underline-offset: 3px;
}
.mdf-recherche .mdf-bouton-lien:hover { color: var(--mdf-accent-texte); }

/* ---------------------------------------------------------------------
   ACTIVITÉ DU JOUR
   --------------------------------------------------------------------- */
.mdf-activite { clear: both; display: flex; align-items: stretch; gap: 10px; margin: 0 0 22px; }
.mdf-activite form { margin: 0; padding: 0; display: block; }
.mdf-activite-titre button {
	height: 100%; min-height: 58px; padding: 8px 14px; cursor: pointer;
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px;
	background: var(--mdf-encre); color: #fff; border: 0; border-radius: var(--mdf-rayon);
	font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: left;
}
.mdf-activite-titre button span + span { color: #c9bfb4; font-weight: 600; }
.mdf-activite-titre button:hover { background: #3a3633; }
.mdf-activite-tuiles { flex: 1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.mdf-tuile {
	width: 100%; height: 100%; min-height: 58px; padding: 7px 4px; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
	background: var(--mdf-surface); border: 1px solid var(--mdf-bord); border-radius: var(--mdf-rayon);
	font-family: inherit; color: var(--mdf-encre);
	transition: border-color .15s, box-shadow .15s, transform .1s;
}
.mdf-tuile:hover { border-color: var(--mdf-accent); box-shadow: var(--mdf-ombre); transform: translateY(-1px); }
.mdf-tuile:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--mdf-focus); }
.mdf-tuile-nb { font-size: 21px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.mdf-tuile-lib { font-size: 11px; line-height: 1.2; color: var(--mdf-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mdf-tuile.is-zero { background: var(--mdf-fond); }
.mdf-tuile.is-zero .mdf-tuile-nb { color: var(--mdf-gris-clair); font-weight: 600; }

/* ---------------------------------------------------------------------
   TITRE + FIL DES ÉTAPES + ONGLETS
   --------------------------------------------------------------------- */
.mdf-suivi-entete { clear: both; margin: 4px 0 14px; }
.mdf-suivi-entete .mdf-titre {
	margin: 0 0 12px; padding: 0;
	font-size: 28px; line-height: 1.15; font-weight: 700; color: var(--mdf-encre); letter-spacing: .01em;
}
.mdf-pays { font-size: 13px; vertical-align: middle; font-weight: 600; color: #fff; background: var(--mdf-accent); border-radius: 6px; padding: 2px 8px; margin-left: 6px; letter-spacing: .04em; }
.mdf-etapes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mdf-etapes-process, .mdf-etapes-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mdf-etapes-extras { gap: 6px; }
.mdf-etape {
	display: inline-block; padding: 6px 11px; border-radius: 999px;
	font-size: 13px; line-height: 1.2; font-weight: 500; white-space: nowrap;
	color: var(--mdf-texte); text-decoration: none; background: transparent;
	transition: background .15s, color .15s;
}
.mdf-etape:hover { background: var(--mdf-fond-2); color: var(--mdf-encre); text-decoration: none; }
.mdf-etape.is-actif { background: var(--mdf-encre); color: #fff; font-weight: 600; }
.mdf-etape-sep { color: var(--mdf-gris-clair); font-size: 14px; line-height: 1; }
.mdf-etape-extra { border: 1px solid var(--mdf-bord); }
.mdf-etape-extra.is-actif { border-color: var(--mdf-accent); background: var(--mdf-accent); }

.mdf-onglets {
	clear: both; display: flex; gap: 2px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
	border-bottom: 1px solid var(--mdf-bord); margin: 0 0 18px; padding: 0; list-style: none;
	scrollbar-width: thin;
}
.mdf-onglet {
	position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px 11px;
	font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--mdf-gris); text-decoration: none;
	border-radius: 8px 8px 0 0; transition: color .15s, background .15s;
}
.mdf-onglet:hover { color: var(--mdf-encre); background: var(--mdf-fond); text-decoration: none; }
.mdf-onglet.is-actif { color: var(--mdf-encre); }
.mdf-onglet.is-actif:after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--mdf-accent); }
.mdf-onglet-nb { font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: 999px; background: var(--mdf-fond-2); color: var(--mdf-texte); font-variant-numeric: tabular-nums; }
.mdf-onglet.is-actif .mdf-onglet-nb { background: var(--mdf-accent); color: #fff; }
.mdf-onglet-nb.is-zero { color: var(--mdf-gris-clair); }

/* ---------------------------------------------------------------------
   LISTE DES DOSSIERS (Sticky List)
   --------------------------------------------------------------------- */
.sticky-list-wrapper.sl-moderne { clear: both; font-size: 14px; line-height: 1.4; }

/* Résumé */
.sl-moderne .sl-resume { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.sl-moderne .sl-requete { font-size: 13px; color: var(--mdf-gris); margin-bottom: 2px; }
.sl-moderne .sl-compte { font-size: 15px; color: var(--mdf-texte); }
.sl-moderne .sl-total-nb { font-size: 22px; font-weight: 700; color: var(--mdf-encre); font-variant-numeric: tabular-nums; margin-right: 2px; }
.sl-moderne .sl-plage { font-size: 13px; color: var(--mdf-gris); }

/* Barre d'outils */
.sl-moderne .sl-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 12px; }
.sl-moderne .sl-barre-bas { margin: 14px 0 6px; justify-content: flex-end; }
.sl-moderne .sl-filtre { position: relative; flex: 0 1 300px; margin: 0; }
.sl-moderne .sl-filtre-icone { position: absolute; left: 11px; top: 50%; transform: translateY(-52%) rotate(-45deg); font-size: 15px; color: var(--mdf-gris-clair); pointer-events: none; }
.sl-moderne .sl-filtre input.search {
	width: 100%; height: 36px; margin: 0; padding: 0 12px 0 32px !important;
	font-size: 13px; font-family: inherit; color: var(--mdf-encre);
	background: var(--mdf-surface); border: 1px solid var(--mdf-bord); border-radius: 8px; box-shadow: none;
	-webkit-appearance: none; appearance: none;
}
.sl-moderne .sl-filtre input.search:focus { outline: none; border-color: var(--mdf-accent); box-shadow: 0 0 0 3px var(--mdf-focus); }
.sl-moderne .sl-tris { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sl-moderne .sl-tris-titre { font-size: 12px; color: var(--mdf-gris); margin-right: 2px; }
.sl-moderne .sl-puce {
	display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 12px; line-height: 1.2; white-space: nowrap;
	color: var(--mdf-texte); background: var(--mdf-surface); border: 1px solid var(--mdf-bord); text-decoration: none;
	transition: border-color .15s, background .15s, color .15s;
}
.sl-moderne .sl-puce:hover { border-color: var(--mdf-bord-fort); color: var(--mdf-encre); text-decoration: none; }
.sl-moderne .sl-puce.is-actif { background: var(--mdf-encre); border-color: var(--mdf-encre); color: #fff; }
.sl-moderne .sl-puce-reset { border-style: dashed; color: var(--mdf-gris); }

/* Pagination */
.sl-moderne .sl-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 0 auto; padding: 0; }
.sl-moderne .sl-pages { display: flex; align-items: center; gap: 3px; }
.sl-moderne .sl-page {
	min-width: 32px; height: 32px; padding: 0 8px; margin: 0;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 13px; font-family: inherit; font-weight: 500; color: var(--mdf-texte); font-variant-numeric: tabular-nums;
	background: var(--mdf-surface); border: 1px solid var(--mdf-bord); border-radius: 8px; cursor: pointer;
	transition: border-color .15s, background .15s;
}
.sl-moderne button.sl-page:hover { border-color: var(--mdf-accent); color: var(--mdf-accent-texte); }
.sl-moderne button.sl-page:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--mdf-focus); }
.sl-moderne .sl-page.is-courante { background: var(--mdf-encre); border-color: var(--mdf-encre); color: #fff; font-weight: 700; cursor: default; }
.sl-moderne .sl-page-fleche { font-size: 18px; line-height: 1; }
.sl-moderne .sl-page.is-inactif { opacity: .4; cursor: default; }
.sl-moderne .sl-page-ellipse { border-color: transparent; background: none; cursor: default; min-width: 18px; padding: 0 2px; color: var(--mdf-gris-clair); }
.sl-moderne .sl-taille select {
	height: 32px; margin: 0; padding: 0 28px 0 10px;
	font-size: 13px; font-family: inherit; color: var(--mdf-texte);
	background-color: var(--mdf-surface); border: 1px solid var(--mdf-bord); border-radius: 8px; cursor: pointer;
	-webkit-appearance: none; appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #736b64 50%), linear-gradient(135deg, #736b64 50%, transparent 50%);
	background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}

/* Tableau */
.sl-moderne .sl-tableau {
	background: var(--mdf-surface); border: 1px solid var(--mdf-bord); border-radius: 12px;
	box-shadow: var(--mdf-ombre);
}
.sticky-list-wrapper.sl-moderne table.sticky-list {
	width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0;
	font-size: 13px; line-height: 1.4; color: var(--mdf-texte); background: transparent;
}
.sticky-list-wrapper.sl-moderne table.sticky-list thead th {
	position: -webkit-sticky; position: sticky; top: var(--sl-haut, 0px); z-index: 2;
	padding: 11px 10px; text-align: left; vertical-align: bottom;
	font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mdf-gris);
	background: var(--mdf-fond); border: 0; border-bottom: 1px solid var(--mdf-bord); white-space: normal;
}
.sticky-list-wrapper.sl-moderne table.sticky-list thead th:first-child { border-top-left-radius: 12px; }
.sticky-list-wrapper.sl-moderne table.sticky-list thead th:last-child { border-top-right-radius: 12px; }
.sticky-list-wrapper.sl-moderne table.sticky-list thead th.sort { cursor: pointer; user-select: none; }
.sticky-list-wrapper.sl-moderne table.sticky-list thead th.sort:hover { color: var(--mdf-encre); }
.sticky-list-wrapper.sl-moderne table.sticky-list thead th.sort:after { content: "\2195"; margin-left: 5px; font-size: 10px; opacity: .35; }
.sticky-list-wrapper.sl-moderne table.sticky-list thead th.sort.asc:after { content: "\2191"; opacity: .9; color: var(--mdf-accent-texte); }
.sticky-list-wrapper.sl-moderne table.sticky-list thead th.sort.desc:after { content: "\2193"; opacity: .9; color: var(--mdf-accent-texte); }

.sticky-list-wrapper.sl-moderne table.sticky-list tbody td {
	padding: 12px 10px; vertical-align: top; border: 0; border-bottom: 1px solid var(--mdf-bord);
	font-size: 13px; color: var(--mdf-texte); background: transparent;
}
.sticky-list-wrapper.sl-moderne table.sticky-list tbody tr:last-child td { border-bottom: 0; }
.sticky-list-wrapper.sl-moderne table.sticky-list tbody tr { transition: background .12s; }
.sticky-list-wrapper.sl-moderne table.sticky-list tbody tr:nth-child(even) { background: #fcfbfa; }
.sticky-list-wrapper.sl-moderne table.sticky-list tbody tr:hover { background: #f8f3ef; }
/* Noms longs (« CUISINESINTERIEURES », « SELECTION-DEKTON... ») : coupés si la colonne manque de place,
   pour que le tableau tienne dans la colonne Divi */
.sticky-list-wrapper.sl-moderne table.sticky-list tbody td:not(.column-0):not(.column-1):not(.column-2):not(.stickylist-number):not(.stickylist-date):not(.sticky-action) { overflow-wrap: anywhere; }
.sticky-list-wrapper.sl-moderne table.sticky-list tbody td.stickylist-date { white-space: nowrap; }
/* Colonne n° de dossier */
.sticky-list-wrapper.sl-moderne table.sticky-list tbody td.column-0 { font-weight: 700; color: var(--mdf-encre); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sticky-list-wrapper.sl-moderne table.sticky-list:has(th.header-date-de-cration) tbody td.column-1 { white-space: normal; min-width: 80px; color: var(--mdf-gris); font-variant-numeric: tabular-nums; } /* date / heure sur 2 lignes */
/* Montants */
.sticky-list-wrapper.sl-moderne table.sticky-list tbody td.stickylist-number { white-space: nowrap; font-weight: 600; color: var(--mdf-encre); font-variant-numeric: tabular-nums; }

/* Boutons-icônes (tous les pictos d'actions et d'informations conservés) */
.sticky-list-wrapper.sl-moderne table.sticky-list td form { display: inline-block; margin: 0; padding: 0; vertical-align: middle; }
.sticky-list-wrapper.sl-moderne table.sticky-list td a { text-decoration: none; }
/* sticky-list_styles.css impose « display: inline-block !important » aux boutons : les pictos
   restaient collés à gauche de leur cadre. inline-flex !important (sélecteur plus précis) les centre. */
.sticky-list-wrapper.sl-moderne table.sticky-list td button.submit {
	display: inline-flex !important; align-items: center; justify-content: center; vertical-align: middle; text-align: center;
	min-width: 30px; height: 30px; margin: 0 2px 4px 0; padding: 0 5px;
	background: var(--mdf-surface); border: 1px solid var(--mdf-bord); border-radius: 8px; box-shadow: none;
	cursor: pointer; color: var(--mdf-texte); font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1;
	transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
}
.sticky-list-wrapper.sl-moderne table.sticky-list td button.submit:hover { border-color: var(--mdf-accent); background: var(--mdf-accent-doux); transform: translateY(-1px); }
.sticky-list-wrapper.sl-moderne table.sticky-list td button.submit:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--mdf-focus); }
.sticky-list-wrapper.sl-moderne table.sticky-list td button.submit img { display: block; flex: none; max-width: 19px; max-height: 19px; width: auto; height: auto; margin: 0 auto !important; }
/* Drapeau suisse et pictos d'acompte dans les colonnes : discrets, sans cadre */
.sticky-list-wrapper.sl-moderne table.sticky-list td:not(.sticky-action) button.submit { min-width: 0; height: auto; padding: 2px; margin: 4px 4px 0 0; border-color: transparent; background: transparent; }
.sticky-list-wrapper.sl-moderne table.sticky-list td:not(.sticky-action) button.submit:hover { transform: none; background: transparent; }
.sticky-list-wrapper.sl-moderne table.sticky-list td:not(.sticky-action) br + button.submit { margin-top: 6px; }

/* Cellule « statut et actions » */
/* sticky-list_styles.css du plugin aligne cette colonne à droite sans retour à la ligne :
   dans une colonne Divi de 1080 px, le tableau débordait */
.sticky-list-wrapper.sl-moderne table.sticky-list th.sticky-action,
.sticky-list-wrapper.sl-moderne table.sticky-list td.sticky-action { text-align: left; white-space: normal; }
/* l'ancienne règle de gravity-marbres-new.css (padding 5px 25px !important) élargissait aussi la colonne */
.sticky-list-wrapper.sl-moderne table.sticky-list tbody td.sticky-action { padding: 12px 10px !important; }
.sticky-list-wrapper.sl-moderne table.sticky-list thead th.sticky-action { padding: 11px 10px !important; }
.sticky-list-wrapper.sl-moderne table.sticky-list td.sticky-action { min-width: 292px; }
/* colonne V. (version) : que des chiffres */
.sticky-list-wrapper.sl-moderne table.sticky-list th.header-v { padding-left: 4px !important; padding-right: 4px !important; }
.sticky-list-wrapper.sl-moderne table.sticky-list th.header-v,
.sticky-list-wrapper.sl-moderne table.sticky-list:has(th.header-v) td.column-2 { width: 1%; padding-left: 4px !important; padding-right: 4px !important; text-align: center; white-space: nowrap; }
.sticky-list-wrapper.sl-moderne table.sticky-list th.header-v.sort:after { display: none; }
.sticky-list-wrapper.sl-moderne table.sticky-list:has(th.header-demand-par) tbody td.column-3 { min-width: 104px; }
.sl-moderne .sl-cellule { display: flex; flex-direction: column; gap: 7px; }
.sl-moderne .sl-zone-statut { line-height: 1.5; }
.sl-moderne .sl-zone-statut > br:last-child, .sl-moderne .sl-zone-infos > br:first-child { display: none; }
.sl-moderne .sl-zone-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.sl-moderne .sl-zone-actions:empty { display: none; }
.sl-moderne .sl-zone-statut:empty { display: none; }
.sl-moderne .sl-zone-infos { font-size: 12px; line-height: 1.5; color: var(--mdf-gris); }
.sl-moderne .sl-zone-infos button.submit { min-width: 26px !important; height: 26px !important; margin-bottom: 0 !important; vertical-align: middle !important; }
.sl-moderne .sl-zone-infos button.submit img { max-width: 15px !important; max-height: 15px !important; }
.sl-moderne .sl-zone-statut b { color: var(--mdf-encre); font-weight: 600; font-size: 12px; }
.sl-moderne .sl-zone-statut img { vertical-align: middle !important; margin-left: 4px !important; }

/* Bouton lieu de production [MD] / [CBU] */
.sticky-list-wrapper.sl-moderne table.sticky-list td button.sticky-list-prod {
	min-width: 0; height: 22px; padding: 0 6px; margin: 0 0 0 4px; vertical-align: 1px;
	font-size: 10px; letter-spacing: .05em; color: var(--mdf-gris); border-radius: 999px; background: var(--mdf-fond);
}

/* Pastilles d'étape */
.sl-moderne .sl-statut {
	display: inline-block; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
	font-size: 11.5px; font-weight: 600; line-height: 1.45; color: #3d4b5c; background: #eef2f6;
}
.sl-moderne .sl-etape-1 { background: #eef2f6; color: #3d4b5c; }
.sl-moderne .sl-etape-2 { background: #ecebfb; color: #4338a0; }
.sl-moderne .sl-etape-3 { background: #fdf3e1; color: #8a5a00; }
.sl-moderne .sl-etape-4 { background: #e3f4f1; color: #0f6b5c; }
.sl-moderne .sl-etape-5 { background: #e5f3f9; color: #135e7d; }
.sl-moderne .sl-etape-6 { background: #f2ebfa; color: #6b3fa0; }
.sl-moderne .sl-etape-7 { background: #fdeee4; color: #9a4a12; }
.sl-moderne .sl-etape-8 { background: #e8f0fb; color: #1f4f8f; }
.sl-moderne .sl-etape-9 { background: #e7f5e9; color: #23703a; }
.sl-moderne .sl-etape-10 { background: #dff0e3; color: #1b5e2f; }
.sl-moderne .sl-etape-99 { background: #efefef; color: #666; }

/* Ligne en cours d'action (spinner du plugin) */
.sl-moderne td button.submit img[src*="ajax-spinner"] { max-width: 16px; max-height: 16px; }

/* Liste vide */
.sl-moderne .sl-vide {
	text-align: center; padding: 42px 20px; background: var(--mdf-surface);
	border: 1px dashed var(--mdf-bord-fort); border-radius: 12px; color: var(--mdf-gris);
}
.sl-moderne .sl-vide-titre { font-size: 16px; font-weight: 600; color: var(--mdf-encre); margin-bottom: 6px; }
.sl-moderne .sl-vide-requete { font-size: 13px; margin-bottom: 14px; }
.sl-moderne .sl-bouton-lien { font-size: 13px; color: var(--mdf-accent-texte); text-decoration: underline; text-underline-offset: 3px; }


/* ---------------------------------------------------------------------
   INTÉGRATION DIVI
   Les listes sont placées dans des modules Divi « Onglets » (Recherche,
   Activité du jour) ou après une barre d'onglets écrite à la main
   (Historique de l'espace pro). Ces règles ne touchent que les modules
   qui contiennent une liste Félix (:has(.sl-moderne)) : les autres
   onglets Divi du site ne changent pas.
   --------------------------------------------------------------------- */
body .et_pb_tabs:has(.sl-moderne) {
	border: 0 !important; background: transparent !important; margin-bottom: 26px !important;
}
body .et_pb_tabs:has(.sl-moderne) .et_pb_all_tabs { background: transparent !important; }
body .et_pb_tabs:has(.sl-moderne) .et_pb_all_tabs .et_pb_tab {
	padding: 0 !important; background: transparent !important; line-height: 1.5 !important;
}
/* Barre d'onglets : même style que les onglets du suivi de dossier */
body .et_pb_tabs:has(.sl-moderne) .et_pb_tabs_controls,
body .entry-content:has(> .sl-moderne) > ul.et_pb_tabs_controls {
	display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
	height: auto !important; margin: 0 0 14px !important; padding: 0 !important; list-style: none !important;
	background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--mdf-bord) !important;
}
body .et_pb_tabs:has(.sl-moderne) .et_pb_tabs_controls:after,
body .entry-content:has(> .sl-moderne) > ul.et_pb_tabs_controls:after { display: none !important; }
body .et_pb_tabs:has(.sl-moderne) .et_pb_tabs_controls li,
body .entry-content:has(> .sl-moderne) > ul.et_pb_tabs_controls li {
	display: block !important; float: none !important; flex: none; height: auto !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important;
	line-height: 1.3 !important;
}
body .et_pb_tabs:has(.sl-moderne) .et_pb_tabs_controls li a,
body .entry-content:has(> .sl-moderne) > ul.et_pb_tabs_controls li a {
	display: block !important; padding: 10px 14px 11px !important; margin-bottom: 0;
	font-size: 14px !important; font-weight: 600; line-height: 1.3 !important; white-space: nowrap;
	color: var(--mdf-gris) !important; text-decoration: none !important;
	border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
body .et_pb_tabs:has(.sl-moderne) .et_pb_tabs_controls li a:hover,
body .entry-content:has(> .sl-moderne) > ul.et_pb_tabs_controls li a:hover { color: var(--mdf-encre) !important; }
body .et_pb_tabs:has(.sl-moderne) .et_pb_tabs_controls li.et_pb_tab_active a,
body .entry-content:has(> .sl-moderne) > ul.et_pb_tabs_controls li.et_pb_tab_active a {
	color: var(--mdf-encre) !important; border-bottom-color: var(--mdf-accent);
}
/* Module à un seul onglet (Recherche, Activité) : le titre de l'onglet sert de titre de liste */
body .et_pb_tabs:has(.sl-moderne) .et_pb_tabs_controls:has(> li:only-child) li a {
	padding-left: 0 !important; padding-right: 0 !important; font-size: 15px !important; border-bottom-color: transparent;
}

/* Listes vides : une ligne compacte, regroupées après les listes qui ont des résultats */
body .et_pb_column:has(> .et_pb_tabs .sl-moderne) { display: flex; flex-direction: column; }
body .et_pb_column:has(> .et_pb_tabs .sl-moderne) > * { width: 100%; }
body .et_pb_tabs:has(.sl-vide) {
	order: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 14px;
	margin: 0 0 6px !important; padding: 8px 14px !important;
	background: var(--mdf-fond) !important; border: 1px solid var(--mdf-bord) !important; border-radius: 10px;
}
body .et_pb_tabs:has(.sl-vide) .et_pb_tabs_controls { margin: 0 !important; border: 0 !important; overflow: visible; }
body .et_pb_tabs:has(.sl-vide) .et_pb_tabs_controls li a {
	padding: 0 !important; margin: 0; border: 0 !important; font-size: 13px !important; color: var(--mdf-texte) !important;
}
body .et_pb_tabs:has(.sl-vide) .et_pb_all_tabs { flex: 1 1 auto; }
.et_pb_tabs .sl-moderne .sl-vide { padding: 0; border: 0; background: none; text-align: left; }
.et_pb_tabs .sl-moderne .sl-vide-titre { margin: 0; font-size: 13px; font-weight: 400; color: var(--mdf-gris); }
.et_pb_tabs .sl-moderne .sl-vide-titre:before { content: "\2014\00a0"; color: var(--mdf-gris-clair); }
.et_pb_tabs .sl-moderne .sl-vide-requete,
.et_pb_tabs .sl-moderne .sl-vide .sl-bouton-lien { display: none; }
/* Première liste vide : petit intertitre « Aucun dossier » */
body .et_pb_column:has(> .et_pb_tabs .sl-moderne) > .et_pb_tabs:has(.sl-vide) ~ .et_pb_tabs:has(.sl-vide) { margin-top: 0 !important; }

/* Historique de l'espace pro : liens vers les autres historiques */
.entry-content:has(> .sl-moderne) > h6 { margin: 0 0 6px; line-height: 1.7; font-size: 12px; color: var(--mdf-gris, #736b64); }
.entry-content:has(> .sl-moderne) > h6 a { color: #7d6b3f; text-decoration: none; }
.entry-content:has(> .sl-moderne) > h6 span[style*="underline"] { text-decoration: none !important; }
.entry-content:has(> .sl-moderne) > h6 a:hover { text-decoration: underline; }
.entry-content:has(> .sl-moderne) > ul.et_pb_tabs_controls + br,
.entry-content:has(> .sl-moderne) > ul.et_pb_tabs_controls + br + br { display: none; }


/* ---------------------------------------------------------------------
   LISTE DANS UNE COLONNE ÉTROITE (ex. colonne Divi 1/2 : Gestion des promotions)
   La mise en page s'adapte à la largeur de la liste elle-même, pas à celle de l'écran.
   --------------------------------------------------------------------- */
.sticky-list-wrapper.sl-moderne { container-type: inline-size; container-name: sl-liste; }
@container sl-liste (max-width: 760px) {
	.sl-moderne .sl-tableau { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.sticky-list-wrapper.sl-moderne table.sticky-list thead th { position: static; }
	.sticky-list-wrapper.sl-moderne table.sticky-list td.sticky-action { min-width: 0; }
	.sticky-list-wrapper.sl-moderne table.sticky-list thead th,
	.sticky-list-wrapper.sl-moderne table.sticky-list tbody td { padding-left: 8px; padding-right: 8px; }
	.sticky-list-wrapper.sl-moderne table.sticky-list tbody td.sticky-action { padding: 10px 8px !important; }
	.sl-moderne .sl-barre { gap: 8px; }
	.sl-moderne .sl-filtre { flex: 1 1 100%; }
}


/* Portables (colonne Divi de 1024 px) : cellules un peu plus serrées */
@media (max-width: 1366px) {
	.sticky-list-wrapper.sl-moderne table.sticky-list thead th,
	.sticky-list-wrapper.sl-moderne table.sticky-list tbody td { padding-left: 7px; padding-right: 7px; }
	.sticky-list-wrapper.sl-moderne table.sticky-list tbody td.sticky-action { padding: 12px 7px !important; }
}
/* Écrans de portable (colonne Divi plus étroite) : défilement horizontal si besoin */
@media (max-width: 1240px) {
	.sl-moderne .sl-tableau { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.sticky-list-wrapper.sl-moderne table.sticky-list thead th { position: static; }
}

/* ---------------------------------------------------------------------
   ÉCRANS MOYENS
   --------------------------------------------------------------------- */
@media (max-width: 1280px) {
	.mdf-recherche-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mdf-activite-tuiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------------
   SMARTPHONES
   --------------------------------------------------------------------- */
@media (max-width: 760px) {
	.mdf-recherche { padding: 14px; border-radius: 12px; }
	.mdf-recherche-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
	.mdf-recherche .mdf-champ { height: 40px; font-size: 16px; } /* 16px : évite le zoom automatique sur iPhone */
	.mdf-activite { flex-direction: column; }
	.mdf-activite-titre button { min-height: 0; flex-direction: row; gap: 6px; padding: 8px 12px; width: 100%; }
	.mdf-activite-tuiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
	.mdf-tuile { min-height: 50px; }
	.mdf-tuile-nb { font-size: 17px; }
	.mdf-tuile-lib { font-size: 10px; }
	.mdf-suivi-entete .mdf-titre { font-size: 22px; }
	.mdf-etapes-process { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; width: 100%; }
	.mdf-onglet { padding: 9px 12px 10px; font-size: 13px; }

	.sl-moderne .sl-resume { flex-direction: column; align-items: flex-start; }
	.sl-moderne .sl-filtre { flex: 1 1 100%; }
	.sl-moderne .sl-filtre input.search { font-size: 16px; height: 40px; }
	.sl-moderne .sl-pagination { margin: 0; width: 100%; justify-content: space-between; }
	.sl-moderne .sl-tableau { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	/* Comme avant : sur téléphone seules les colonnes Dossier et Actions restent visibles */
	.sticky-list-wrapper.sl-moderne table.sticky-list th.mobile,
	.sticky-list-wrapper.sl-moderne table.sticky-list td.mobile { display: none; }
	.sticky-list-wrapper.sl-moderne table.sticky-list thead th { position: static; }
	.sticky-list-wrapper.sl-moderne table.sticky-list td.sticky-action { min-width: 0; }
	.sticky-list-wrapper.sl-moderne table.sticky-list td.sticky-action button.submit { min-width: 38px; height: 38px; } /* cibles tactiles */
	.sticky-list-wrapper.sl-moderne table.sticky-list td.sticky-action button.sticky-list-prod { min-width: 0; height: 24px; }
	.mdf-recherche-actions { flex-wrap: wrap; }
	.mdf-recherche .mdf-bouton { flex: 1 1 auto; height: 40px; }
}

/* Impression : liste lisible sans les boutons */
@media print {
	.mdf-recherche, .mdf-activite, .mdf-onglets, .mdf-etapes, .sl-moderne .sl-barre, .sl-moderne .sl-zone-actions { display: none !important; }
	.sl-moderne .sl-tableau { box-shadow: none; border: 0; }
	.sticky-list-wrapper.sl-moderne table.sticky-list thead th { position: static; }
}
