/* ==========================================================================
   Wallet ANT (assets/js/wallet.js), d'après les maquettes de
   sites/prosuite/Wallet/. Même patron que le reste de l'espace : bandeau
   fixe en haut (avec les onglets), colonnes de même hauteur, tableaux qui
   défilent sur leurs données, pastilles colorées.
   ========================================================================== */

:root {
  --wl-or: #c98a06;
  --wl-violet: #6b3fc2; --wl-violet-f: #efe8fd;
  --wl-bleu: #1d5fd1;   --wl-bleu-f: #e4edfd;
  --wl-orange: #a65500; --wl-orange-f: #fff0d9;
  --wl-rouge: #b0122f;  --wl-rouge-f: #fde8ec;
  --wl-vert: #1f7a10;   --wl-vert-f: #e2f5d3;
  --wl-gris: #4a5568;   --wl-gris-f: #edf0f4;
}
:root[data-theme="sombre"] {
  --wl-violet-f: #2c2148; --wl-bleu-f: #172a4d; --wl-orange-f: #3b2a10; --wl-rouge-f: #44141e; --wl-vert-f: #1d4a1f; --wl-gris-f: #263040;
  --wl-violet: #c4a8ff; --wl-bleu: #9cc0ff; --wl-orange: #ffc274; --wl-rouge: #ff9aac; --wl-vert: #b6ee8a; --wl-gris: #c3cedd;
}

/* --- Bandeau et onglets ------------------------------------------------------ */

.bandeau.wl-bandeau { display: block; min-height: 0; margin-bottom: 14px; padding: 20px 28px 0; gap: 0; }
.wl-bandeau-pieces { position: absolute; right: -40px; top: -6px; height: 112%; max-width: 52%; object-fit: contain; object-position: right center; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(80, 60, 0, 0.22)); }
.wl-bandeau-haut { position: relative; display: flex; align-items: center; gap: 20px; max-width: 760px; }
.wl-embleme { flex: none; width: 84px; height: 84px; filter: drop-shadow(0 8px 14px rgba(120, 80, 0, 0.3)); }
.wl-bandeau-texte h1 { margin: 0 0 4px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.1; }
.wl-bandeau-texte p { margin: 0 0 10px; color: #3d4e36; max-width: 500px; }
.wl-bandeau-infos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wl-bandeau-infos .pastille { padding: 4px 12px; font-size: 0.8rem; }
.wl-demo { background: #fff3c4 !important; color: #7a5200 !important; }
.wl-choix { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); color: var(--vert-fonce); }
.wl-choix select { border: 0; background: transparent; font: inherit; font-weight: 700; color: #14210f; max-width: 240px; padding: 3px 4px; }

.wl-onglets { position: relative; display: flex; gap: 4px; margin-top: 16px; padding: 5px 5px 0; border-radius: 12px 12px 0 0; background: rgba(255, 255, 255, 0.88); max-width: 1080px; }
.wl-onglets a { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 10px 12px; border-radius: 9px 9px 0 0; color: #4b5a45; font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.wl-onglets a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-onglets a:hover { color: #14210f; background: rgba(76, 184, 26, 0.1); }
.wl-onglets a[aria-selected="true"] { color: #fff; background: linear-gradient(90deg, #3fa31d, #58c624); }
:root[data-theme="sombre"] .wl-onglets { background: rgba(18, 38, 26, 0.9); }
:root[data-theme="sombre"] .wl-onglets a { color: var(--doux); }

/* --- Grilles ---------------------------------------------------------------- */

.grille.wl-grille { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.grille.wl-grille--md { grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.4fr); }
.grille.wl-grille--une { grid-template-columns: minmax(0, 1fr); }
.wl-grille .carte { padding: 18px 20px; }

.wl-tete { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.wl-tete > div { min-width: 0; flex: 1; }
.wl-tete h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.wl-tete p { margin: 2px 0 0; color: var(--doux); font-size: 0.85rem; line-height: 1.35; }
.wl-tete-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--vert-fonce); background: var(--pastille); }
.wl-tete-outil, .wl-tete > .wl-statut { margin-left: auto; flex: none; }
.wl-sous { margin: 16px 0 8px; font-size: 0.85rem; font-weight: 700; color: var(--doux); text-transform: uppercase; letter-spacing: 0.04em; }
.wl-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.wl-note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: var(--doux); font-size: 0.82rem; }
.wl-note svg { flex: none; color: var(--vert-fonce); margin-top: 1px; }
.wl-vide { padding: 28px 12px !important; text-align: center; color: var(--doux); }
.btn.wl-petit { padding: 5px 11px; font-size: 0.8rem; }
.wl-lien { border: 0; background: none; padding: 0; color: var(--vert-fonce); font-weight: 600; font-size: 0.78rem; text-decoration: underline; cursor: pointer; }
.wl-plus { color: #2f8a12; }
.wl-moins { color: var(--rouge); }
:root[data-theme="sombre"] .wl-plus { color: #9ee86b; }

/* --- Pastilles --------------------------------------------------------------- */

.wl-pas, .wl-statut { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.wl-statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wl-pas--violet, .wl-statut--violet { color: var(--wl-violet); background: var(--wl-violet-f); }
.wl-pas--vert, .wl-statut--vert { color: var(--wl-vert); background: var(--wl-vert-f); }
.wl-pas--bleu, .wl-statut--bleu { color: var(--wl-bleu); background: var(--wl-bleu-f); }
.wl-pas--orange, .wl-statut--orange { color: var(--wl-orange); background: var(--wl-orange-f); }
.wl-pas--rouge, .wl-statut--rouge { color: var(--wl-rouge); background: var(--wl-rouge-f); }
.wl-pas--gris, .wl-statut--gris { color: var(--wl-gris); background: var(--wl-gris-f); }

.wl-cat { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; }
.wl-cat--calcul { color: var(--wl-vert); background: var(--wl-vert-f); }
.wl-cat--documents { color: var(--wl-violet); background: var(--wl-violet-f); }
.wl-cat--creation { color: #c0266d; background: #fde7f1; }
.wl-cat--recherche { color: var(--wl-bleu); background: var(--wl-bleu-f); }
.wl-cat--agents { color: var(--wl-orange); background: var(--wl-orange-f); }

/* --- Solde -------------------------------------------------------------------- */

.wl-solde-corps { display: flex; align-items: center; gap: 18px; }
.wl-solde-piece { width: 92px; height: 92px; flex: none; filter: drop-shadow(0 8px 12px rgba(120, 80, 0, 0.25)); }
.wl-solde-montant { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--doux); }
.wl-solde-montant b { font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--texte); letter-spacing: -0.01em; }
.wl-solde-eur { margin: 2px 0 0; color: var(--doux); font-size: 0.86rem; }
.wl-solde-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.wl-solde-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.wl-mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.wl-mini-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wl-mini-kpis > div { min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--neutre); }
.wl-mini-kpis span { display: block; font-size: 0.74rem; color: var(--doux); }
.wl-mini-kpis b { display: block; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-mini-kpis small { display: block; font-size: 0.74rem; color: var(--doux); }

/* --- Listes et tableaux --------------------------------------------------------- */

.carte.wl-liste-carte { display: flex; flex-direction: column; min-height: 0; overflow: hidden !important; }
.wl-liste-carte > .wl-tete, .wl-liste-carte > .wl-outils { flex: none; }
.wl-defile { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; margin: 0 -20px -18px; padding: 0 20px 12px; }
.wl-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.wl-cherche { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; max-width: 380px; padding: 8px 12px; border: 1px solid var(--champ-bord); border-radius: 10px; background: var(--champ); color: var(--doux); }
.wl-cherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--texte); }
.wl-outils select, .wl-champ select, .wl-champ input, .wl-lignes input, .wl-lignes select { padding: 8px 10px; border: 1px solid var(--champ-bord); border-radius: 10px; background: var(--champ); font: inherit; color: var(--texte); min-width: 0; }
.wl-outils > select { flex: 0 1 220px; }
.wl-compte { margin-left: auto; font-size: 0.8rem; color: var(--doux); white-space: nowrap; }
table.wl-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.86rem; table-layout: auto; }
.wl-table thead th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; text-align: left; font-weight: 600; color: var(--doux); background: var(--carte); border-bottom: 1px solid var(--bord); white-space: nowrap; }
.wl-table td { padding: 9px 10px; border-bottom: 1px solid var(--bord); vertical-align: middle; }
.wl-table tbody tr[data-wl] { cursor: pointer; }
.wl-table tbody tr:hover td { background: var(--champ-lecture); }
.wl-table small { display: block; color: var(--doux); font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; }
.wl-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl-date { white-space: nowrap; color: var(--doux); font-variant-numeric: tabular-nums; }
.wl-desc { min-width: 180px; }
.wl-bloc { font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; color: var(--doux); }
tr.wl-annule td { opacity: 0.62; }
tr.wl-annule .wl-desc { text-decoration: line-through; }
.wl-fin { margin: 0; padding: 12px; text-align: center; font-size: 0.8rem; color: var(--doux); }
tr.wl-neuf td { animation: wl-neuf 1.6s ease-out; }
@keyframes wl-neuf { from { background: #e2f5d3; } to { background: transparent; } }

.wl-filtres { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-filtre { padding: 5px 12px; border: 1px solid var(--bord); border-radius: 999px; background: var(--carte); font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--doux); }
.wl-filtre[aria-pressed="true"] { border-color: transparent; color: #fff; background: var(--foret); }
.wl-filtre--violet[aria-pressed="true"] { background: var(--wl-violet); }
.wl-filtre--vert[aria-pressed="true"] { background: #2f8a12; }
.wl-filtre--bleu[aria-pressed="true"] { background: var(--wl-bleu); }
.wl-filtre--orange[aria-pressed="true"] { background: #c06a00; }
.wl-filtre--rouge[aria-pressed="true"] { background: var(--wl-rouge); }
.wl-filtre--gris[aria-pressed="true"] { background: var(--wl-gris); }

/* --- Utilisation, services les plus utilisés --------------------------------------- */

.wl-util { display: flex; align-items: center; gap: 22px; }
.wl-donut { width: 150px; height: 150px; flex: none; }
.wl-donut-pct { font-size: 22px; font-weight: 800; fill: var(--texte); }
.wl-donut-lib { font-size: 11px; fill: var(--doux); }
.wl-legende { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wl-legende li { display: flex; align-items: center; gap: 10px; }
.wl-legende i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.wl-legende span { flex: 1; color: var(--doux); }
.wl-legende b { font-variant-numeric: tabular-nums; }
.wl-top { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wl-top li { display: flex; align-items: center; gap: 10px; }
.wl-top li > span:nth-child(2) { flex: 1; min-width: 0; font-size: 0.86rem; }
.wl-top li > span:nth-child(2) i { display: block; height: 5px; margin-top: 5px; border-radius: 3px; background: linear-gradient(90deg, #4cb81a, #b4f21a); }
.wl-top b { font-size: 0.84rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --- Accès IA ------------------------------------------------------------------- */

.wl-ia-liste { margin: 0; padding: 0; list-style: none; }
.wl-ia-liste li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--bord); }
.wl-ia-liste li > div { flex: 1; min-width: 0; }
.wl-ia-liste b { display: block; font-size: 0.88rem; }
.wl-ia-liste li > div > span { display: block; font-size: 0.8rem; color: var(--doux); }
.wl-ia-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--neutre); color: var(--vert-fonce); }
.wl-jauge { display: block; height: 6px; margin: 6px 0 4px; border-radius: 3px; background: var(--neutre); overflow: hidden; }
.wl-jauge i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #4cb81a, #f59e0b); }
.wl-bascule { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; cursor: pointer; }
.wl-bascule input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.wl-bascule i { position: absolute; inset: 0; border-radius: 999px; background: #c9d3c2; transition: background 0.15s; pointer-events: none; }
.wl-bascule i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.wl-bascule input:checked + i { background: #3fa31d; }
.wl-bascule input:checked + i::after { transform: translateX(20px); }
.wl-bascule input:focus-visible + i { outline: 3px solid var(--vert); outline-offset: 2px; }

/* --- Cours ------------------------------------------------------------------------ */

.wl-cours-chiffres { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.wl-cours-prix { display: block; font-size: 2rem; font-weight: 800; line-height: 1.05; }
.wl-cours-chiffres > div > span { font-weight: 700; font-size: 0.86rem; }
.wl-cours-chiffres dl { display: flex; gap: 18px; margin: 0; }
.wl-cours-chiffres dt { font-size: 0.74rem; color: var(--doux); }
.wl-cours-chiffres dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.wl-periodes { display: flex; gap: 6px; margin: 14px 0 8px; }
.wl-periodes button { padding: 5px 12px; border: 1px solid var(--bord); border-radius: 8px; background: var(--carte); font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--doux); }
.wl-periodes button[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(90deg, #3fa31d, #58c624); }
.wl-graphe { display: block; width: 100%; height: auto; }
.wl-g-grille { stroke: var(--bord); stroke-dasharray: 3 4; }
.wl-g-txt { font-size: 11px; fill: var(--doux); }

/* --- Onglets intérieurs d'une colonne ---------------------------------------------- */

.wl-ong-int.onglets { flex: none; }

/* --- Achat --------------------------------------------------------------------------- */

.wl-etape { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; font-size: 0.98rem; }
.wl-etape:first-of-type { margin-top: 4px; }
.wl-etape i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 0.82rem; color: #fff; background: linear-gradient(180deg, #5cc71f, #3da315); }
.wl-packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.wl-pack { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 16px 6px 12px; border: 1.5px solid var(--bord); border-radius: 12px; background: var(--carte); font: inherit; color: var(--texte); }
.wl-pack b { font-size: 0.95rem; white-space: nowrap; }
.wl-pack span { font-size: 0.8rem; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wl-pack em { position: absolute; top: -9px; padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: 0.7rem; font-weight: 700; color: #fff; background: #3fa31d; }
.wl-pack[aria-pressed="true"] { border-color: #3fa31d; background: var(--pastille); box-shadow: 0 0 0 3px rgba(76, 184, 26, 0.16); }
.wl-pack--autre svg { color: var(--vert-fonce); }
.wl-pack--autre b { font-size: 0.85rem; white-space: normal; text-align: center; }
.wl-champ { display: grid; gap: 5px; margin: 0 0 10px; }
.wl-champ > span { font-size: 0.8rem; font-weight: 600; color: var(--doux); }
.wl-recap { display: grid; gap: 0; margin: 0; padding: 4px 14px; border-radius: 12px; background: var(--neutre); }
.wl-recap > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--bord); }
.wl-recap > div:last-child { border-bottom: 0; }
.wl-recap dt { color: var(--doux); font-size: 0.86rem; }
.wl-recap dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wl-recap dd small { color: var(--doux); font-weight: 500; }
.wl-recap-total dt { color: var(--texte) !important; font-weight: 700; }
.wl-recap-total dd { font-size: 1.15rem; font-weight: 800; }
.wl-methodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wl-methode { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1.5px solid var(--bord); border-radius: 12px; background: var(--carte); font: inherit; font-weight: 600; color: var(--texte); }
.wl-methode[aria-pressed="true"] { border-color: #3fa31d; background: var(--pastille); }
.wl-methode span { flex: 1; text-align: left; }
.wl-visa { font-style: normal; font-weight: 900; font-size: 0.82rem; color: #1a1f71; letter-spacing: 0.02em; }
.wl-mc { position: relative; width: 26px; height: 16px; }
.wl-mc::before, .wl-mc::after { content: ""; position: absolute; top: 0; width: 16px; height: 16px; border-radius: 50%; }
.wl-mc::before { left: 0; background: #eb001b; }
.wl-mc::after { right: 0; background: #f79e1b; mix-blend-mode: multiply; }
.btn.wl-acheter { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; padding: 14px; font-size: 1rem; }
.wl-info-corps { display: flex; align-items: center; gap: 16px; }
.wl-info-piece { width: 96px; height: 96px; flex: none; }
.wl-info-corps .wl-recap { flex: 1; min-width: 0; }

/* --- Services, membres, estimation --------------------------------------------------- */

.wl-svc { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wl-svc b { display: block; }
.wl-svc b .wl-pas { margin-left: 4px; font-size: 0.68rem; padding: 1px 8px; vertical-align: 1px; }
.wl-membres { margin: 0; padding: 0; list-style: none; }
.wl-membres li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--bord); }
.wl-membres li > div { flex: 1; min-width: 0; }
.wl-membres b { display: block; font-size: 0.9rem; }
.wl-membres li > div > span { font-size: 0.78rem; color: var(--doux); }
.wl-membre-plafond { font-weight: 700; font-size: 0.86rem; white-space: nowrap; }
.wl-av { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; font-weight: 700; font-size: 0.82rem; color: var(--vert-fonce); background: var(--pastille); }
.wl-av--grand { width: 52px; height: 52px; font-size: 1.2rem; }
.wl-estime { display: flex; align-items: center; gap: 16px; margin-top: 8px; padding: 16px; border-radius: 14px; background: linear-gradient(100deg, #fff8e1, #fdecb5); }
.wl-estime-piece { width: 70px; height: 70px; flex: none; }
.wl-estime span { display: block; font-size: 0.8rem; color: #7a5200; }
.wl-estime b { display: block; font-size: 1.6rem; color: #14210f; }
.wl-estime small { color: #7a5200; }

/* --- Clients ------------------------------------------------------------------------------ */

.wl-clients { margin: 0; padding: 0; list-style: none; }
.wl-clients li button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--texte); text-align: left; }
.wl-clients li button > span:nth-child(2) { flex: 1; min-width: 0; }
.wl-clients li button b { display: block; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-clients li button small { color: var(--doux); font-size: 0.78rem; }
.wl-clients li button:hover { background: var(--champ-lecture); }
.wl-clients li button[aria-pressed="true"] { background: var(--pastille); }
.wl-barres { display: block; width: 100%; height: 110px; }
.wl-barre { fill: #9bd96e; }
.wl-barre-auj { fill: #2f8a12; }

/* --- Reçu (fenêtre) ---------------------------------------------------------------------- */

.wl-modale-fond { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, 0.42); animation: wl-f 0.12s ease-out; }
.wl-modale { width: min(540px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; border-radius: 18px; background: var(--carte); color: var(--texte); box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32); animation: wl-b 0.14s ease-out; }
@keyframes wl-f { from { opacity: 0; } }
@keyframes wl-b { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.wl-recu-tete { display: flex; align-items: center; gap: 14px; }
.wl-recu-tete > div { flex: 1; min-width: 0; }
.wl-recu-tete small { color: var(--doux); font-size: 0.76rem; }
.wl-recu-tete h2 { margin: 2px 0 0; font-size: 1.05rem; }
.wl-recu-piece { width: 54px; height: 54px; flex: none; }
.wl-fermer { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 10px; background: var(--neutre); color: var(--texte); }
.wl-recu-montant { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 16px 0 12px; font-size: 1.7rem; font-weight: 800; }
.wl-recu-montant small { font-size: 0.9rem; font-weight: 600; color: var(--doux); }
.wl-recu-montant .wl-statut { font-size: 0.74rem; }
.wl-just { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; border-left: 4px solid var(--wl-rouge); background: var(--wl-rouge-f); }
.wl-just b { font-size: 0.82rem; }
.wl-just p { margin: 4px 0 0; font-size: 0.88rem; }
.wl-verif { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; color: var(--wl-vert); background: var(--wl-vert-f); font-weight: 600; font-size: 0.86rem; animation: wl-b 0.2s ease-out; }
.wl-verif[hidden] { display: none; }

/* --- Bouton occupé ---------------------------------------------------------------------- */

.btn.wl-occupe { opacity: 0.85; cursor: progress; }
.wl-tourne { width: 16px; height: 16px; flex: none; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wl-tourne 0.7s linear infinite; }
@keyframes wl-tourne { to { transform: rotate(360deg); } }
.btn .wl-tourne + span { margin-left: 6px; }
.btn.wl-arme { background: linear-gradient(180deg, #e04a1f, #b8320e) !important; animation: wl-arme 0.9s ease-in-out infinite alternate; }
@keyframes wl-arme { to { box-shadow: 0 0 0 5px rgba(224, 74, 31, 0.18); } }
.wl-actions .btn, .wl-batch .btn { display: inline-flex; align-items: center; gap: 8px; }

/* --- Batch -------------------------------------------------------------------------------- */

.wl-etapes { display: flex; gap: 0; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: e; }
.wl-etapes li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--doux); text-align: center; }
.wl-etapes li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--bord); z-index: 0; }
.wl-etapes li:first-child::before { display: none; }
.wl-etapes li.fait::before, .wl-etapes li.actif::before { background: #3fa31d; }
.wl-etapes i { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; color: var(--doux); background: var(--neutre); border: 2px solid var(--carte); }
.wl-etapes li.actif { color: var(--texte); }
.wl-etapes li.actif i, .wl-etapes li.fait i { color: #fff; background: #3fa31d; }
.wl-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wl-type { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border: 1.5px solid var(--bord); border-radius: 12px; background: var(--carte); font: inherit; color: var(--texte); text-align: left; }
.wl-type svg { grid-row: span 2; color: var(--vert-fonce); }
.wl-type b { font-size: 0.92rem; }
.wl-type span { font-size: 0.8rem; color: var(--doux); }
.wl-type[aria-pressed="true"] { border-color: #3fa31d; background: var(--pastille); }
.wl-lignes { margin-bottom: 10px; }
.wl-lignes input, .wl-lignes select { width: 100%; padding: 6px 8px; }
.wl-lignes .wl-num input { width: 96px; text-align: right; }
.wl-icone-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--doux); }
.wl-icone-btn:hover { color: var(--rouge); background: var(--wl-rouge-f); }
.wl-depot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; padding: 16px; border: 2px dashed var(--champ-bord); border-radius: 12px; color: var(--doux); font-size: 0.86rem; cursor: pointer; text-align: center; }
.wl-depot--survol { border-color: #3fa31d; background: var(--pastille); color: var(--pastille-texte); }

/* --- Paramètres ---------------------------------------------------------------------------- */

.wl-case { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; cursor: pointer; }
.wl-case input { width: 18px; height: 18px; accent-color: #3fa31d; }
.wl-preuve code { font-size: 0.76rem; }

/* --- Écran de bureau : les colonnes défilent en elles-mêmes ------------------------------------- */

@media (min-width: 1000px) and (min-height: 620px) {
  .zone--grille > .wl-grille > .colonne > .wl-liste-carte:last-child { overflow: hidden !important; }
  .zone--grille > .wl-grille--une > .wl-liste-carte { height: 100%; }
}

/* --- Écrans étroits ---------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .wl-onglets a:not([aria-selected="true"]) span { display: none; }
  .wl-onglets a:not([aria-selected="true"]) { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; }
  .wl-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .grille.wl-grille, .grille.wl-grille--md { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 999px), (max-height: 619px) {
  .wl-defile { max-height: 60vh; }
}
@media (max-width: 900px) {
  .bandeau.wl-bandeau { padding: 18px 16px 0; }
  .wl-bandeau-pieces { display: none; }
  .wl-embleme { width: 60px; height: 60px; }
}
@media (max-width: 640px) {
  .wl-util { flex-direction: column; }
  .wl-mini-kpis, .wl-mini-kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-types, .wl-methodes { grid-template-columns: minmax(0, 1fr); }
  .wl-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-onglets a { padding-left: 8px; padding-right: 8px; }
  .wl-info-piece { display: none; }
}
