/* =====================================================================
   Console d'administration des caisses — feuille de style (aucune ressource externe)
   ===================================================================== */
:root {
  --fond: #f3f1ec; --surface: #fff; --surface-2: #f8f7f4; --bord: #e4e0d7; --bord-fort: #cfc9bd;
  --texte: #1d2320; --texte-2: #5d6661; --encre: #17322a; --encre-2: #21443a;
  --accent: #127a52; --accent-fort: #0c5c3d; --accent-doux: #e3f2ea;
  --danger: #b42318; --danger-doux: #fdecea; --alerte: #a65a06; --alerte-doux: #fff3df; --info: #1f5b8f; --info-doux: #e8f1fa;
  --rayon: 10px; --ombre: 0 1px 2px rgba(20,30,25,.06), 0 6px 20px rgba(20,30,25,.06);
  --police: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 15px;
}

/* THEMES:DEBUT — généré par outils/themes.py (ne pas modifier à la main) */
/* Forêt (vert, actuel) */
:root, [data-theme="foret"] {
  --fond: #f3f1ec;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --bord: #e4e0d7;
  --bord-fort: #cfc9bd;
  --ligne: #efece6;
  --non-lue: #fbfaf6;
  --texte: #1d2320;
  --texte-2: #5d6661;
  --encre: #17322a;
  --encre-2: #21443a;
  --accent: #127a52;
  --accent-fort: #0c5c3d;
  --accent-doux: #e3f2ea;
  --focus: rgba(18,122,82,.32);
  --lueur: #5fd3a0;
  --lat-fond: #17322a;
  --lat-texte: #d7e3dc;
  --lat-texte-2: #87a094;
  --lat-muet: #a9bdb2;
  --lat-survol: rgba(255,255,255,.07);
  --lat-actif: rgba(95,211,160,.14);
  --lat-bord: rgba(255,255,255,.08);
  --lat-texte-actif: #ffffff;
  --vis-fond: #17322a;
  --vis-1: #2c6a52;
  --vis-2: #1f4a3d;
  --vis-titre: #ffffff;
  --vis-texte: #ffffff;
  --vis-texte-2: #bcd0c5;
}
/* SICS Rose */
[data-theme="sics"] {
  --fond: #f9f3f6;
  --surface: #ffffff;
  --surface-2: #fcf7f9;
  --bord: #ecdde4;
  --bord-fort: #d9c0cc;
  --ligne: #f3e6ec;
  --non-lue: #fdf5f9;
  --texte: #2a1820;
  --texte-2: #6f5a65;
  --encre: #5c0f36;
  --encre-2: #8c1d55;
  --accent: #c2185b;
  --accent-fort: #960f44;
  --accent-doux: #fbe3ee;
  --focus: rgba(194,24,91,.32);
  --lueur: #ff8fc4;
  --lat-fond: #5c0f36;
  --lat-texte: #f7dce9;
  --lat-texte-2: #d49ab6;
  --lat-muet: #e2b6ca;
  --lat-survol: rgba(255,255,255,.08);
  --lat-actif: rgba(255,143,196,.18);
  --lat-bord: rgba(255,255,255,.10);
  --lat-texte-actif: #ffffff;
  --vis-fond: #5c0f36;
  --vis-1: #b0246a;
  --vis-2: #7d1449;
  --vis-titre: #ffffff;
  --vis-texte: #ffffff;
  --vis-texte-2: #f1c9dc;
}
/* SICS Rose & blanc */
[data-theme="sics-blanc"] {
  --fond: #f8f4f6;
  --surface: #ffffff;
  --surface-2: #fcf8fa;
  --bord: #ecdde4;
  --bord-fort: #d9c0cc;
  --ligne: #f3e6ec;
  --non-lue: #fdf5f9;
  --texte: #2a1820;
  --texte-2: #6f5a65;
  --encre: #8c1d55;
  --encre-2: #c2185b;
  --accent: #c2185b;
  --accent-fort: #960f44;
  --accent-doux: #fbe3ee;
  --focus: rgba(194,24,91,.30);
  --lueur: #c2185b;
  --lat-fond: #ffffff;
  --lat-texte: #3b2731;
  --lat-texte-2: #a77e92;
  --lat-muet: #9a7d8b;
  --lat-survol: rgba(194,24,91,.06);
  --lat-actif: #fbe3ee;
  --lat-bord: #f0e1e8;
  --lat-texte-actif: #960f44;
  --vis-fond: #c2185b;
  --vis-1: #e5539a;
  --vis-2: #9c1048;
  --vis-titre: #ffffff;
  --vis-texte: #ffffff;
  --vis-texte-2: #fde3ef;
}
/* Océan (bleu) */
[data-theme="ocean"] {
  --fond: #f1f4f8;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --bord: #dde3ec;
  --bord-fort: #c3ccd9;
  --ligne: #e9eef4;
  --non-lue: #f7f9fc;
  --texte: #17202b;
  --texte-2: #566273;
  --encre: #0f2740;
  --encre-2: #1b3a5c;
  --accent: #1d63b8;
  --accent-fort: #154a8c;
  --accent-doux: #e2edfa;
  --focus: rgba(29,99,184,.32);
  --lueur: #6cb4ff;
  --lat-fond: #0f2740;
  --lat-texte: #d6e2f0;
  --lat-texte-2: #7f97b3;
  --lat-muet: #a3b6cc;
  --lat-survol: rgba(255,255,255,.07);
  --lat-actif: rgba(108,180,255,.16);
  --lat-bord: rgba(255,255,255,.08);
  --lat-texte-actif: #ffffff;
  --vis-fond: #0f2740;
  --vis-1: #245a92;
  --vis-2: #16385e;
  --vis-titre: #ffffff;
  --vis-texte: #ffffff;
  --vis-texte-2: #bfd2e8;
}
/* Ardoise (gris et indigo) */
[data-theme="ardoise"] {
  --fond: #f2f2f4;
  --surface: #ffffff;
  --surface-2: #f7f7f9;
  --bord: #e1e2e7;
  --bord-fort: #c8cad2;
  --ligne: #ebecf0;
  --non-lue: #f8f8fb;
  --texte: #1c1e24;
  --texte-2: #5b6070;
  --encre: #23262f;
  --encre-2: #373b48;
  --accent: #4b5bd4;
  --accent-fort: #3644a8;
  --accent-doux: #e8eafb;
  --focus: rgba(75,91,212,.32);
  --lueur: #a5b0ff;
  --lat-fond: #23262f;
  --lat-texte: #dcdee6;
  --lat-texte-2: #8a8fa0;
  --lat-muet: #a9adbb;
  --lat-survol: rgba(255,255,255,.07);
  --lat-actif: rgba(165,176,255,.15);
  --lat-bord: rgba(255,255,255,.08);
  --lat-texte-actif: #ffffff;
  --vis-fond: #23262f;
  --vis-1: #3d4357;
  --vis-2: #2a2d38;
  --vis-titre: #ffffff;
  --vis-texte: #ffffff;
  --vis-texte-2: #c5c8d6;
}
/* Ambre (orange et brun) */
[data-theme="ambre"] {
  --fond: #f6f2ea;
  --surface: #ffffff;
  --surface-2: #faf7f1;
  --bord: #e7dfd0;
  --bord-fort: #d3c6ae;
  --ligne: #efe8dc;
  --non-lue: #fcf9f3;
  --texte: #241c12;
  --texte-2: #6a5d4b;
  --encre: #3b2612;
  --encre-2: #5a3a1c;
  --accent: #b45309;
  --accent-fort: #8a3f06;
  --accent-doux: #fbecd8;
  --focus: rgba(180,83,9,.32);
  --lueur: #f6b24f;
  --lat-fond: #3b2612;
  --lat-texte: #f2e3cf;
  --lat-texte-2: #b59a78;
  --lat-muet: #cdb593;
  --lat-survol: rgba(255,255,255,.07);
  --lat-actif: rgba(246,178,79,.16);
  --lat-bord: rgba(255,255,255,.08);
  --lat-texte-actif: #ffffff;
  --vis-fond: #3b2612;
  --vis-1: #7a4a18;
  --vis-2: #4f2f10;
  --vis-titre: #ffffff;
  --vis-texte: #ffffff;
  --vis-texte-2: #e8d3b6;
}
/* THEMES:FIN */

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--fond); color: var(--texte); font-family: var(--police); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-fort); }
h1, h2, h3 { letter-spacing: -.01em; }
h2 { font-size: 1.08rem; margin: 0 0 14px; }
h3 { font-size: .95rem; margin: 22px 0 8px; color: var(--texte-2); text-transform: uppercase; letter-spacing: .04em; }
button, input, select, textarea { font: inherit; color: inherit; }
code { background: var(--surface-2); border: 1px solid var(--bord); border-radius: 5px; padding: 1px 5px; font-size: .88em; }
[hidden] { display: none !important; }
.muet { color: var(--texte-2); }
.aide { color: var(--texte-2); font-size: .88rem; margin: 4px 0 12px; display: block; }

/* ------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 8px;
       border: 1px solid var(--bord); background: var(--surface); font-weight: 600; cursor: pointer; text-decoration: none; color: var(--texte);
       white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); border-color: var(--bord-fort); }
.btn:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn.principal { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.principal:hover { background: var(--accent-fort); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-doux { color: var(--danger); }
.btn.danger-doux:hover { background: var(--danger-doux); }
.btn.petit { min-height: 30px; padding: 0 10px; font-size: .85rem; }
.btn.large { width: 100%; min-height: 46px; font-size: 1rem; }
.btn.icone { width: 38px; padding: 0; }
.lien { background: none; border: 0; color: var(--accent-fort); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; font-size: .92rem; }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.actions.collant { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--fond) 45%); padding: 14px 0 8px; margin-top: 0; z-index: 2; pointer-events: none; }
.actions.collant > * { pointer-events: auto; box-shadow: var(--ombre); }
.en-ligne { display: inline; }
.actions-ligne { display: flex; gap: 6px; justify-content: flex-end; }

/* ------------------------------------------------------------ formulaires */
.formulaire .champ, .champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.champ > span:first-child { font-weight: 600; font-size: .9rem; }
.champ input, .champ select, .filtre input, .filtre select, .journal-cellule input, .petit-champ, .cellule-prix, .grille-journaux select, .ligne-form input, .ligne-form select {
  height: 40px; border: 1px solid var(--bord); border-radius: 8px; padding: 0 12px; background: var(--surface-2); width: 100%; min-width: 0; }
.champ input:focus, .champ select:focus, .filtre input:focus, .filtre select:focus, .petit-champ:focus, .cellule-prix:focus, .grille-journaux select:focus, .ligne-form input:focus { border-color: var(--accent); background: var(--surface); outline: none; }
.champ input[readonly] { color: var(--texte-2); }
.mdp { display: flex; gap: 6px; align-items: center; position: relative; }
.mdp input { flex: 1; padding-right: 44px; }
.oeil { position: absolute; left: auto; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--texte-2); }
.mdp input + .oeil { margin-left: -44px; position: relative; }
.oeil svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.oeil.visible { color: var(--accent); }
.case { display: flex; align-items: center; gap: 8px; margin: 8px 0; cursor: pointer; }
.case input { width: 18px; height: 18px; accent-color: var(--accent); }
.groupe { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 8px 14px 10px; margin: 0 0 14px; }
.groupe legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }
.force { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: -6px 0 10px; }
.force span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }
.regles { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .85rem; color: var(--texte-2); }
.regles li::before { content: "○ "; }
.regles li.ok { color: var(--accent); }
.regles li.ok::before { content: "✓ "; }
.code-mfa { font-size: 1.8rem !important; letter-spacing: .5em; text-align: center; height: 56px !important; font-variant-numeric: tabular-nums; }
.choix-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.radio-carte { display: flex; gap: 10px; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 12px; cursor: pointer; }
.radio-carte:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); }
.radio-carte input { accent-color: var(--accent); margin-top: 3px; }
.radio-carte small { display: block; color: var(--texte-2); font-size: .82rem; margin-top: 2px; }
.bloc-mdp { margin-top: 10px; }

/* ------------------------------------------------------------ connexion */
.page-connexion { background: var(--surface); }
.connexion { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 1fr); }
.connexion-visuel { position: relative; overflow: hidden; color: var(--vis-texte); padding: 44px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(1200px 600px at 110% 110%, var(--vis-1) 0%, transparent 60%), radial-gradient(800px 500px at -10% -10%, var(--vis-2) 0%, transparent 60%), var(--vis-fond); }
.connexion-visuel::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; }
.marque { display: flex; align-items: center; gap: 10px; }
.marque .logo { color: var(--lueur); font-size: 1.4rem; }
.marque strong { display: block; letter-spacing: .04em; }
.marque small { display: block; color: var(--lat-muet); font-size: .78rem; }
.marque.grande .logo { font-size: 2rem; }
.marque.grande strong { font-size: 1.3rem; }
.visuel-texte { position: relative; z-index: 1; max-width: 460px; }
.visuel-texte h2 { font-size: 2.4rem; line-height: 1.12; margin: 0 0 14px; color: var(--vis-titre); letter-spacing: -.02em; }
.visuel-texte p { color: var(--vis-texte-2); font-size: 1.05rem; line-height: 1.5; margin: 0; }
.visuel-tickets { position: relative; z-index: 1; display: flex; gap: 16px; }
.mini-ticket { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 16px 18px; min-width: 170px; backdrop-filter: blur(4px); }
.mini-ticket.decale { transform: translateY(18px); }
.mini-ticket span { display: block; font-size: .78rem; color: var(--vis-texte-2); }
.mini-ticket strong { display: block; font-size: 1.6rem; color: var(--vis-titre); font-variant-numeric: tabular-nums; margin-top: 4px; }
.mini-ticket small { color: var(--vis-texte-2); }
.connexion-form { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; background: var(--fond); }
.carte-connexion { width: min(400px, 100%); background: var(--surface); border-radius: 18px; box-shadow: var(--ombre); padding: 34px 32px; }
.carte-connexion h1 { margin: 0 0 4px; font-size: 1.6rem; }
.carte-connexion .formulaire { margin-top: 18px; }
.liens { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pied-connexion { color: var(--texte-2); font-size: .8rem; margin-top: 18px; }
.alerte { border-radius: var(--rayon); padding: 10px 14px; margin-bottom: 14px; font-size: .92rem; }
.alerte.erreur { background: var(--danger-doux); color: var(--danger); }
.alerte.info { background: var(--info-doux); color: var(--info); }
.alerte.succes { background: var(--accent-doux); color: var(--accent-fort); }
.alerte.alerte { background: var(--alerte-doux); color: var(--alerte); }

/* ------------------------------------------------------------ structure */
.lateral { position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--lat-fond); color: var(--lat-texte); border-right: 1px solid var(--lat-bord); display: flex; flex-direction: column; z-index: 20; }
.lateral .marque { padding: 18px 18px 14px; border-bottom: 1px solid var(--lat-bord); }
.menu { padding: 8px 10px 20px; overflow-y: auto; flex: 1; }
.menu-groupe { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lat-texte-2); margin: 16px 10px 6px; }
.menu-lien { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--lat-texte); text-decoration: none; font-weight: 500; }
.menu-lien svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: .85; }
.menu-lien:hover { background: var(--lat-survol); color: var(--lat-texte-actif); }
.menu-lien.actif { background: var(--lat-actif); color: var(--lat-texte-actif); box-shadow: inset 3px 0 0 var(--lueur); }
.page-principale { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; }
.entete { display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: var(--surface); border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 10; }
.entete h1 { font-size: 1.25rem; margin: 0; }
.entete-droite { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.menu-mobile { display: none; }
.compte { position: relative; }
.compte summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px; border-radius: 10px; }
.compte summary::-webkit-details-marker { display: none; }
.compte summary:hover { background: var(--surface-2); }
.compte-nom { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.compte-nom small { display: block; color: var(--texte-2); font-weight: 400; font-size: .78rem; }
.compte-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; box-shadow: var(--ombre); min-width: 200px; padding: 6px; z-index: 30; }
.compte-menu a, .compte-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 7px; border: 0; background: none; text-decoration: none; color: var(--texte); cursor: pointer; }
.compte-menu a:hover, .compte-menu button:hover { background: var(--surface-2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--encre-2); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .82rem; object-fit: cover; flex: none; }
.avatar.grand { width: 72px; height: 72px; font-size: 1.4rem; }
.contenu { padding: 22px 28px 40px; max-width: 1500px; width: 100%; }
.flash { border-radius: var(--rayon); padding: 12px 16px; margin-bottom: 16px; font-weight: 500; }
.flash.succes { background: var(--accent-doux); color: var(--accent-fort); }
.flash.erreur { background: var(--danger-doux); color: var(--danger); }
.flash.info { background: var(--info-doux); color: var(--info); }
.flash.alerte { background: var(--alerte-doux); color: var(--alerte); }

/* ------------------------------------------------------------ cartes, KPI */
.carte { background: var(--surface); border-radius: 14px; box-shadow: var(--ombre); padding: 18px 20px; margin-bottom: 18px; min-width: 0; }
.carte.sans-marge { padding: 0; overflow-x: auto; }
.carte.etroite { max-width: 820px; }
.carte.accent { border: 2px solid var(--accent); }
.grille-kpi { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border-radius: 14px; box-shadow: var(--ombre); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi-lib { color: var(--texte-2); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi-val { white-space: nowrap; font-size: clamp(1.35rem, 1.6vw, 1.75rem); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi-val small { font-size: .85rem; color: var(--texte-2); font-weight: 500; }
.kpi-sous { color: var(--texte-2); font-size: .84rem; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grille-2 > .large-2 { grid-column: 1 / -1; }
.grille-2 .grille-2 { gap: 0 14px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; align-items: end; }
.grille-fiche { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
.alertes { border-left: 4px solid var(--alerte); }
.alerte-ligne { display: block; padding: 6px 0; color: var(--alerte); text-decoration: none; }
.alerte-ligne:hover { text-decoration: underline; }
.histo rect { fill: var(--accent); opacity: .85; }
.histo rect:hover { opacity: 1; }
.histo text { font-size: 10px; fill: var(--texte-2); }
.histo .axe { stroke: var(--bord); }
.barres { display: flex; flex-direction: column; gap: 8px; }
.barre { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.barre-piste { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.barre-piste span { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.barre-val { font-variant-numeric: tabular-nums; font-weight: 600; }
.info-ligne { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--ligne); }
.info-ligne:last-child { border-bottom: 0; }
.info-ligne span { color: var(--texte-2); }
.info-ligne strong { text-align: right; font-weight: 600; }
.chrono { list-style: none; margin: 0; padding: 0; }
.chrono li { padding: 6px 0; border-bottom: 1px dashed var(--bord); }
.chrono time { color: var(--texte-2); font-size: .85rem; margin-right: 6px; }
.vide { text-align: center; color: var(--texte-2); padding: 48px 20px; }
.vide.petit { padding: 18px; }
.vide-icone { font-size: 2.6rem; }

/* ------------------------------------------------------------ tableaux */
.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tableau th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-2); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--bord); background: var(--surface-2); white-space: nowrap; }
.carte:not(.sans-marge) .tableau th { background: none; padding: 8px 6px; }
.tableau td { padding: 10px 12px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.carte:not(.sans-marge) .tableau td { padding: 8px 6px; }
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau .d { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau .c { text-align: center; }
.tableau tfoot td { font-weight: 700; border-top: 2px solid var(--bord); }
.tableau.cliquable tbody tr { cursor: pointer; }
.tableau.cliquable tbody tr:hover { background: var(--surface-2); }
.tableau td a { text-decoration: none; font-weight: 600; }
.tableau .message { max-width: 460px; color: var(--texte-2); font-size: .86rem; }
.neg { color: var(--danger); font-weight: 700; }
.pos { color: var(--accent); font-weight: 700; }
.personne { display: flex; align-items: center; gap: 10px; }
.personne small { display: block; color: var(--texte-2); font-size: .8rem; }
.ligne-module td { background: var(--surface-2); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-2); }
.coche { color: var(--accent); font-weight: 800; }
.droits select { height: 34px; border: 1px solid var(--bord); border-radius: 7px; background: var(--surface-2); padding: 0 8px; }
.droits select.modifie { border-color: var(--alerte); background: var(--alerte-doux); font-weight: 600; }
.matrice th small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--texte-2); }
.matrice input { width: 18px; height: 18px; accent-color: var(--accent); }
.matrice td:first-child { min-width: 280px; }
.defilement { overflow-x: auto; }
.defilement.haut { max-height: 560px; overflow-y: auto; }
.grille-journaux input { width: 80px; height: 32px; text-transform: uppercase; }
.journal-cellule { margin: 0; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--surface-2); color: var(--texte-2); white-space: nowrap; }
.badge.ok { background: var(--accent-doux); color: var(--accent-fort); }
.badge.erreur { background: var(--danger-doux); color: var(--danger); }
.badge.alerte { background: var(--alerte-doux); color: var(--alerte); }

/* ------------------------------------------------------------ filtres, onglets, pagination */
.filtres { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; background: var(--surface); padding: 12px 14px; border-radius: 14px; box-shadow: var(--ombre); }
.filtre { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--texte-2); min-width: 140px; }
.filtre.large { flex: 1; min-width: 260px; }
.filtre.case-filtre { min-width: 0; justify-content: flex-end; color: var(--texte); font-size: .9rem; }
.filtre input, .filtre select { height: 38px; font-weight: 400; color: var(--texte); }
.barre-liste { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; }
.pagination { display: flex; justify-content: space-between; align-items: center; color: var(--texte-2); font-size: .9rem; margin: -6px 0 18px; }
.pagination .pages { display: flex; gap: 8px; }
.onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--bord); margin-bottom: 16px; overflow-x: auto; }
.onglets a { padding: 10px 14px; text-decoration: none; color: var(--texte-2); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.onglets a.actif { color: var(--accent-fort); border-bottom-color: var(--accent); }
.jeton { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.jeton code { font-size: 1rem; padding: 6px 10px; background: var(--surface); }

/* ------------------------------------------------------------ fiches */
.entete-fiche { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.entete-fiche h2 { margin: 0 0 6px; font-size: 1.3rem; }
.entete-fiche .actions { margin: 0 0 0 auto; }
.etat-compte { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.photo-bloc { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.photo-bloc label.btn { cursor: pointer; }
.roles-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.role-carte { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 12px 14px; }
.role-carte p { margin: 6px 0; color: var(--texte-2); font-size: .86rem; }
.creer summary { list-style: none; }
.creer summary::-webkit-details-marker { display: none; }
.creer[open] summary { margin-bottom: 14px; }
.ligne-form { display: flex; gap: 10px; align-items: flex-end; }
.ligne-form .champ { flex: 1; margin: 0; }

/* ------------------------------------------------------------ tableau de bord : filtres et graphiques */
.multi { position: relative; }
.multi > summary { list-style: none; height: 38px; min-width: 190px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px;
  border: 1px solid var(--bord); border-radius: 8px; background: var(--surface-2); color: var(--texte); font-weight: 400; cursor: pointer; white-space: nowrap; }
.multi > summary::-webkit-details-marker { display: none; }
.multi > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--texte-2); border-bottom: 2px solid var(--texte-2); transform: rotate(45deg) translateY(-2px); }
.multi[open] > summary { border-color: var(--accent); background: var(--surface); }
.multi-panneau { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 260px; max-height: 320px; overflow: auto; background: var(--surface);
  border: 1px solid var(--bord); border-radius: 10px; box-shadow: 0 10px 30px rgba(20,30,25,.16); padding: 8px 12px; color: var(--texte); font-weight: 400; }
.multi-panneau .case { margin: 6px 0; font-size: .92rem; }
.multi-actions { display: flex; gap: 14px; padding: 2px 0 8px; margin-bottom: 4px; border-bottom: 1px solid var(--bord); }
.lien { background: none; border: 0; padding: 0; color: var(--accent-fort); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.periode-resume { margin: -4px 0 14px; color: var(--texte-2); font-size: .9rem; }
.periode-resume strong { color: var(--texte); }
.var { display: inline-block; font-weight: 700; font-size: .8rem; padding: 1px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.var.hausse { background: var(--accent-doux); color: var(--accent-fort); }
.var.baisse { background: var(--danger-doux); color: var(--danger); }
.var.neutre { background: var(--surface-2); color: var(--texte-2); }
.var-lib { font-size: .8rem; }
.kpi-alerte { box-shadow: inset 4px 0 0 var(--alerte), var(--ombre); }
.histo .prec { fill: var(--bord-fort); opacity: .7; }
.histo .grille { stroke: var(--bord); stroke-dasharray: 3 4; }
.histo text.max { font-size: 10px; fill: var(--texte-2); }
.legende { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--texte-2); margin: -6px 0 6px; }
.pastille { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); display: inline-block; }
.pastille.prec { background: var(--bord-fort); margin-left: 10px; }
.carte h2 small { font-weight: 500; font-size: .78rem; margin-left: 6px; }
.barre-lib { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre-lib small, .barre-val small { display: block; color: var(--texte-2); font-size: .76rem; font-weight: 400; }
.barre-val { text-align: right; }

/* ------------------------------------------------------------ notifications : cloche et liste */
.cloche { position: relative; }
.cloche-btn { position: relative; border-color: transparent; background: transparent; }
.cloche-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--texte); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cloche-nb { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff;
  font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); font-variant-numeric: tabular-nums; }
.cloche-panneau { position: absolute; right: 0; top: calc(100% + 8px); width: min(400px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--bord);
  border-radius: 12px; box-shadow: 0 14px 40px rgba(20,30,25,.18); z-index: 40; overflow: hidden; }
.cloche-tete, .cloche-pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; }
.cloche-tete { border-bottom: 1px solid var(--bord); }
.cloche-pied { border-top: 1px solid var(--bord); background: var(--surface-2); font-size: .88rem; flex-wrap: wrap; }
.cloche-pied a { font-weight: 600; }
.cloche-liste { max-height: min(60vh, 460px); overflow-y: auto; }
.cloche-vide { padding: 28px 16px; text-align: center; color: var(--texte-2); }
.cloche-item, .notif { display: flex; gap: 10px; padding: 11px 14px; text-decoration: none; color: var(--texte); border-bottom: 1px solid var(--ligne); align-items: flex-start; }
.cloche-item:hover { background: var(--surface-2); }
.cloche-item strong, .notif strong { display: block; font-size: .9rem; }
.cloche-item span span, .notif-corps span { display: block; color: var(--texte-2); font-size: .84rem; margin-top: 2px; overflow-wrap: anywhere; }
.cloche-item small, .notif-corps small { display: block; color: var(--texte-2); font-size: .76rem; margin-top: 3px; }
.notif-pastille { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: var(--info); }
.succes .notif-pastille { background: var(--accent); }
.alerte .notif-pastille { background: var(--alerte); }
.erreur .notif-pastille { background: var(--danger); }
.lue .notif-pastille { background: transparent; box-shadow: inset 0 0 0 1.5px var(--bord-fort); }
.non-lue { background: var(--non-lue); }
.lue strong { font-weight: 600; color: var(--texte-2); }
.notif-liste { list-style: none; margin: 0; padding: 0; }
.notif { align-items: center; }
.notif-corps { flex: 1; text-decoration: none; color: inherit; min-width: 0; }
.notif-corps:hover strong { color: var(--accent-fort); }
.pastille-nb { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); font-size: .75rem; text-align: center; }
.onglets a.actif .pastille-nb { background: var(--accent-doux); }
.tableau tr.inactif td { opacity: .55; }
.tableau tr.inactif td:has(> .btn), .tableau tr.inactif td:has(> input[type=checkbox]) { opacity: 1; }
.matrice .sans-droit { display: block; font-size: .65rem; color: var(--texte-2); }
.compte-menu button[data-installer] { font: inherit; }

/* ------------------------------------------------------------ application installée (iPhone : encoche et barre d'accueil) */
@media (display-mode: standalone) {
  .entete { padding-top: max(10px, env(safe-area-inset-top)); }
  .lateral { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .contenu { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------ petits écrans */
@media (max-width: 1100px) {
  .grille-fiche, .grille-2 { grid-template-columns: 1fr; }
  .grille-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .connexion { grid-template-columns: 1fr; }
  .connexion-visuel { padding: 24px; min-height: auto; }
  .visuel-texte h2 { font-size: 1.6rem; }
  .visuel-tickets { display: none; }
  .lateral { transform: translateX(-100%); transition: transform .2s; }
  .lateral.ouvert { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .page-principale { margin-left: 0; }
  .menu-mobile { display: inline-flex; }
  .entete { padding: 10px 16px; }
  .contenu { padding: 16px; }
  .compte-nom { display: none; }
  .entete h1 { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  /* Tableaux larges : défilement horizontal dans leur carte plutôt que la page entière */
  .carte > .tableau, .carte.sans-marge > .tableau { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .carte > .tableau th, .carte > .tableau td { white-space: nowrap; }
  .filtres { gap: 8px; }
  .filtre { min-width: calc(50% - 8px); flex: 1; }
  .filtres .btn { flex: 1; }
  .multi > summary { min-width: 0; }
  .barre-liste { flex-wrap: wrap; gap: 8px; }
  .cloche-panneau { position: fixed; top: 58px; right: 12px; left: 12px; width: auto; }
  .choix-type, .regles { grid-template-columns: 1fr; }
  .barre { grid-template-columns: 100px 1fr auto; }
}

/* ------------------------------------------------------------ choix du thème (profil) */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 4px 0 14px; }
.theme-choix { display: flex; flex-direction: column; gap: 8px; cursor: pointer; padding: 8px; border: 2px solid var(--bord); border-radius: 12px; background: var(--surface); }
.theme-choix:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
.theme-choix input { position: absolute; opacity: 0; pointer-events: none; }
.theme-choix:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.theme-apercu { display: grid; grid-template-columns: 30% 1fr; height: 74px; border-radius: 8px; overflow: hidden; border: 1px solid var(--bord); }
.ta-barre { background: var(--lat-fond); border-right: 1px solid var(--lat-bord); position: relative; }
.ta-barre::after { content: ""; position: absolute; left: 6px; right: 6px; top: 14px; height: 7px; border-radius: 4px; background: var(--lat-actif); box-shadow: inset 2px 0 0 var(--lueur); }
.ta-corps { background: var(--fond); padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.ta-corps b { display: block; height: 14px; border-radius: 4px; background: var(--surface); border: 1px solid var(--bord); }
.ta-corps em { display: block; width: 46%; height: 12px; border-radius: 4px; background: var(--accent); }
.theme-nom { font-size: .85rem; font-weight: 600; text-align: center; }

/* ------------------------------------------------------------ enrôlement d'un appareil mobile */
.enrolement { border-left: 4px solid var(--accent); }
.enrolement-corps { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.enrolement-qr svg { width: 220px; height: 220px; display: block; background: #fff; border-radius: 10px; border: 1px solid var(--bord); }
.etapes { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; }
.code-enrolement { font-size: 1.15rem; letter-spacing: .06em; font-weight: 700; }
@media (max-width: 700px) { .enrolement-corps { grid-template-columns: 1fr; justify-items: center; } }

/* ---------------------------------------------------------------- appareils mobiles : supervision, réglages */
.point { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--bord-fort); }
.point.ok { background: var(--accent); } .point.alerte { background: var(--alerte); } .point.erreur { background: var(--danger); }
.nowrap { white-space: nowrap; }
.erreur-texte { color: var(--danger); }
.champ.large { grid-column: 1 / -1; }
.champ textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--bord-fort); border-radius: 8px; background: var(--surface); color: var(--texte); resize: vertical; }
.actions-pile { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.actions-pile form, .actions-pile .btn { width: 100%; }

/* ------------------------------------------------------------ Gestion commerciale Sage : menu déroulant */
.menu-deroulant > summary { list-style: none; cursor: pointer; user-select: none; }
.menu-deroulant > summary::-webkit-details-marker { display: none; }
.menu-deroulant > summary > span:nth-of-type(1) { flex: 1; }
.menu-deroulant .chevron { font-size: 1.1rem; line-height: 1; opacity: .6; transition: transform .15s ease; }
.menu-deroulant[open] .chevron { transform: rotate(90deg); }
.menu-deroulant > summary.parent-actif { color: var(--lat-texte-actif); }
.sous-menu { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 8px; padding-left: 30px; position: relative; }
.sous-menu::before { content: ''; position: absolute; left: 19px; top: 4px; bottom: 4px; width: 1px; background: var(--lat-bord, var(--lat-survol)); }
.sous-lien { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 7px; color: var(--lat-texte); text-decoration: none; font-size: .88rem; }
.sous-lien:hover { background: var(--lat-survol); color: var(--lat-texte-actif); }
.sous-lien.actif { background: var(--lat-actif); color: var(--lat-texte-actif); font-weight: 600; box-shadow: inset 3px 0 0 var(--lueur); }
.menu-nb { background: var(--alerte); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 700; padding: 1px 7px; margin-left: auto; }

/* ------------------------------------------------------------ Gestion commerciale Sage : pages */
.entete-page { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.entete-page .aide { margin: 4px 0 0; max-width: 860px; }
.entete-page .actions { margin: 0 0 0 auto; }
.actions form { margin: 0; }
.fil { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-2); font-weight: 700; }
.champ .valeur { padding: 9px 0 4px; font-weight: 500; }
.actions.gauche { justify-content: flex-start; }
.petit-champ { width: 110px; min-height: 34px !important; padding: 4px 8px !important; text-align: right; }
.large-champ { width: 190px; text-align: left; }
.cellule-prix { width: 104px; min-height: 34px !important; padding: 4px 8px !important; text-align: right; }
.cellule-prix.modifie, .petit-champ.modifie { border-color: var(--accent); background: var(--accent-doux); font-weight: 700; }
.grille-prix th, .grille-prix td { white-space: nowrap; }
.barre-enregistrer { position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; background: var(--surface);
  border: 1px solid var(--bord); border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.08); padding: 10px 16px; margin: 0 0 16px; }
.barre-enregistrer > span { align-self: center; font-weight: 600; color: var(--texte-2); }
.barre-enregistrer .champ { flex: 1; min-width: 220px; margin: 0; }
.barre-enregistrer .actions { margin: 0; }
.carte.repliable > summary { list-style: none; cursor: pointer; }
.carte.repliable > summary::-webkit-details-marker { display: none; }
.carte.repliable > summary h2 { display: inline; margin: 0; }
.carte.repliable > summary::before { content: '+'; display: inline-block; width: 22px; color: var(--accent); font-weight: 800; }
.carte.repliable[open] > summary::before { content: '−'; }
.carte.repliable[open] > summary { margin-bottom: 12px; }
.cellule-ko { background: var(--danger-doux); }
.cellule-ko small { display: block; margin-top: 3px; }
.fiche-creation { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 0 0 4px; }
.fiche-creation dt { color: var(--texte-2); }
.fiche-creation dd { margin: 0; font-weight: 600; }
.tableau.demande td.avant { color: var(--texte-2); }
details.refus { position: relative; }
details.refus > summary { list-style: none; }
details.refus > summary::-webkit-details-marker { display: none; }
details.refus[open] form { position: absolute; right: 0; top: 46px; z-index: 20; width: 360px; display: flex; gap: 8px; background: var(--surface); box-shadow: var(--ombre); border: 1px solid var(--bord); border-radius: 12px; padding: 12px; }
details.refus[open] form input { flex: 1; }
.liste-erreurs { max-height: 320px; overflow: auto; font-size: .88rem; margin: 0; }
.grille-journaux select { min-width: 150px; }
@media (max-width: 760px) { details.refus[open] form { position: static; width: auto; } .entete-page .actions { margin-left: 0; } }
.tableau th.tri a { color: inherit; text-decoration: none; white-space: nowrap; }
.tableau th.tri a:hover { color: var(--accent); }
.tableau th.trie a { color: var(--accent); }
.tableau th.tri .fleche { font-size: .7rem; }

/* Articles en caisse par site */
.barre-selection { padding: 10px 12px; border-bottom: 1px solid var(--bord); margin: 0; flex-wrap: wrap; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.barre-selection .sep { width: 1px; align-self: stretch; background: var(--bord); margin: 0 4px; }
textarea.large { width: 100%; box-sizing: border-box; font-family: inherit; }

/* Codes-barres et étiquettes */
.grille-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 14px; }
.cases-ligne { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; }
.lignes-etq td { padding: 4px 6px; } .lignes-etq input.large { width: 100%; text-align: left; }
.form-etiquettes > .actions { margin: 4px 0 22px; } .lignes-etq input.num { width: 80px; text-align: right; }
.code-scan { width: 100%; max-width: 240px; font-family: ui-monospace, monospace; }
.ok-texte { color: var(--ok, #2e7d32); }
.lignes-etq .etq-code { min-width: 150px; font-size: .9rem; } .lignes-etq .etq-code code { font-size: .88rem; }
.etq-controle a { font-weight: 600; } .etq-liste-etat { margin-top: 6px; }
.titre-carte { padding: 14px 16px 6px; margin: 0; font-size: 1rem; }
/* Balances */
.grille-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.cartes-modes .carte { margin: 0; } .cartes-modes h2 { font-size: 1rem; }
dl.def { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; } dl.def dt { font-weight: 600; } dl.def dd { margin: 0; }

/* ---- Choix d'un article par nom ou référence (modèles de découpe) ---- */
.choix-article { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 260px; }
.choix-article input { width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--bord-fort); border-radius: 8px; background: var(--surface); color: var(--texte); font: inherit; text-align: left; }
.choix-article input:focus { border-color: var(--accent); outline: none; }
.choix-article .ca-nom { font-size: .82rem; color: var(--texte-2); min-height: 1em; padding-left: 2px; }
.choix-article .ca-nom.ok { color: var(--texte); font-weight: 600; }
.choix-article .ca-nom.ko { color: var(--erreur, #b3261e); }
.ca-liste { position: absolute; z-index: 30; top: 40px; left: 0; right: 0; max-height: 300px; overflow-y: auto; background: var(--surface); border: 1px solid var(--bord-fort); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 4px; }
.ca-liste button { display: flex; width: 100%; gap: 10px; align-items: baseline; text-align: left; border: 0; background: none; padding: 7px 9px; border-radius: 6px; font: inherit; color: var(--texte); cursor: pointer; }
.ca-liste button .ref { font-weight: 700; min-width: 80px; }
.ca-liste button small { margin-left: auto; color: var(--texte-2); white-space: nowrap; }
.ca-liste button.actif, .ca-liste button:hover { background: var(--accent-doux); }
.ca-liste .vide { padding: 8px 10px; color: var(--texte-2); font-size: .85rem; }
.form-decoupe .tableau td { vertical-align: top; }
.form-decoupe .champ-large { width: 100%; min-width: 180px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--bord-fort); border-radius: 8px; background: var(--surface); color: var(--texte); font: inherit; }
.form-decoupe .champ-type { min-width: 230px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--bord-fort); border-radius: 8px; background: var(--surface); color: var(--texte); font: inherit; }
.form-decoupe .champ-pct { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.form-decoupe .champ-pct input { width: 80px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--bord-fort); border-radius: 8px; background: var(--surface); color: var(--texte); font: inherit; text-align: right; }
.form-decoupe .grille-champs .choix-article { min-width: 0; }
.form-decoupe tr.dechet .choix-article input { opacity: .55; }
.alerte-texte { color: var(--alerte, #a35f00); font-weight: 600; }

/* Images des articles (mise à jour 015) */
.col-vignette { width: 52px; padding-right: 0 !important; }
.vignette-article { width: 40px; height: 40px; object-fit: contain; background: #fff; border: 1px solid var(--bord, #e5e0e2); border-radius: 6px; display: block; }
.vignette-article.masquee { opacity: .35; }
.image-article { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.image-article img { width: 160px; height: 160px; object-fit: contain; background: #fff; border: 1px solid var(--bord, #e5e0e2); border-radius: 10px; }
.image-article .aide { margin: 0; }
.vignettes-import { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.vignettes-import a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .78rem; text-decoration: none; color: inherit; }
.vignettes-import img { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--bord, #e5e0e2); border-radius: 8px; }
