/* Pharmacie de la caserne */
:root {
  --rouge: #b71c1c;
  --rouge-clair: #fdecea;
  --texte: #1f2328;
  --gris: #6b7280;
  --bord: #e3e5e8;
  --fond: #f5f6f8;
  --carte: #ffffff;
  --vert: #1b7f3b;
  --rail: 84px;
  --haut: 60px;
  --bas: 72px;
  --rayon: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texte);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--rouge); }
[hidden] { display: none !important; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  border: 1px solid var(--bord); background: var(--carte); border-radius: 10px;
  padding: .6em 1.1em; cursor: pointer; text-decoration: none; color: var(--texte);
  font-weight: 600; min-height: 44px;
}
.bouton:hover { border-color: #c9ccd1; }
.bouton.principal { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.bouton.principal:disabled { background: #d9a3a3; border-color: #d9a3a3; cursor: default; }
.bouton.large { width: 100%; }
.bouton.petit { min-height: 34px; padding: .3em .7em; font-size: .9em; }
.bouton.danger { color: var(--rouge); }

.flash { margin: 10px 12px; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.flash-erreur { background: var(--rouge-clair); color: #8a1414; }
.flash-ok { background: #e6f4ea; color: #145c2c; }

.croix {
  display: inline-block; width: 26px; height: 26px; border-radius: 7px; background: var(--rouge);
  position: relative; flex: none;
}
.croix::before, .croix::after { content: ""; position: absolute; background: #fff; border-radius: 1px; }
.croix::before { left: 10px; top: 5px; width: 6px; height: 16px; }
.croix::after { left: 5px; top: 10px; width: 16px; height: 6px; }

/* ---------------- Page publique ---------------- */
.barre-haut {
  position: sticky; top: 0; z-index: 20; height: var(--haut);
  display: flex; align-items: center; gap: 12px; padding: 0 12px;
  background: var(--carte); border-bottom: 1px solid var(--bord);
}
.marque { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.recherche {
  flex: 1; display: flex; align-items: center; gap: 6px; max-width: 420px; margin-left: auto;
  background: var(--fond); border-radius: 10px; padding: 0 10px; height: 40px;
}
.recherche input { border: 0; background: transparent; outline: none; width: 100%; height: 100%; }
.bascule-vue { display: flex; background: var(--fond); border-radius: 10px; padding: 3px; }
.bascule-vue button {
  border: 0; background: transparent; width: 38px; height: 34px; border-radius: 8px; cursor: pointer;
  display: grid; place-items: center;
}
.bascule-vue svg { width: 18px; height: 18px; fill: var(--gris); }
.bascule-vue button.actif { background: var(--carte); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.bascule-vue button.actif svg { fill: var(--rouge); }

.cadre { display: flex; min-height: calc(100vh - var(--haut)); }
.rail {
  position: sticky; top: var(--haut); align-self: flex-start;
  width: var(--rail); flex: none; height: calc(100vh - var(--haut) - var(--bas));
  overflow-y: auto; background: var(--carte); border-right: 1px solid var(--bord);
  padding: 8px 6px; display: flex; flex-direction: column; gap: 4px;
}
.onglet {
  position: relative; border: 0; background: transparent; border-radius: 12px; cursor: pointer;
  padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.onglet .icone { font-size: 26px; line-height: 1; }
.onglet .libelle { font-size: 11px; font-weight: 600; color: var(--gris); text-align: center; line-height: 1.15; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: normal; max-width: 100%; }
.onglet.actif { background: var(--rouge-clair); }
.onglet.actif .libelle { color: var(--rouge); }
.pastille {
  position: absolute; top: 4px; right: 6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--rouge); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}

.zone { flex: 1; min-width: 0; padding: 14px 14px calc(var(--bas) + 20px); }
.categorie h2 { margin: 2px 0 12px; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.categorie.cachee { display: none; }
.zone.en-recherche .categorie h2 { font-size: 1rem; color: var(--gris); margin-top: 10px; }
.vide { color: var(--gris); }

.articles.vue-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.article {
  background: var(--carte); border: 2px solid transparent; border-radius: var(--rayon);
  box-shadow: 0 1px 2px rgba(0,0,0,.06); overflow: hidden; display: flex; flex-direction: column;
}
.article.choisi { border-color: var(--rouge); }
.vignette {
  aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; cursor: pointer;
  border-bottom: 1px solid var(--bord);
}
.vignette img { width: 100%; height: 100%; object-fit: contain; }
.sans-image { font-size: 44px; opacity: .45; }
.infos { padding: 8px 10px 4px; flex: 1; }
.nom { font-weight: 600; font-size: .93rem; line-height: 1.25; }
.detail { color: var(--gris); font-size: .8rem; margin-top: 2px; }
.compteur { display: flex; align-items: center; padding: 8px; gap: 6px; }
.compteur button {
  width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--bord);
  background: var(--fond); font-size: 1.3rem; font-weight: 700; cursor: pointer; line-height: 1;
}
.compteur .plus { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.compteur input {
  flex: 1; min-width: 0; height: 40px; text-align: center; font-weight: 700; font-size: 1.05rem;
  border: 1px solid var(--bord); border-radius: 10px; -moz-appearance: textfield;
}
.compteur input::-webkit-outer-spin-button, .compteur input::-webkit-inner-spin-button { -webkit-appearance: none; }
.article:not(.choisi) .compteur input { color: var(--gris); font-weight: 500; }

.articles.vue-liste { display: flex; flex-direction: column; gap: 8px; }
.vue-liste .article { flex-direction: row; align-items: center; }
.vue-liste .vignette { width: 60px; height: 60px; flex: none; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--bord); }
.vue-liste .sans-image { font-size: 26px; }
.vue-liste .infos { padding: 6px 10px; flex: 1 1 auto; min-width: 0; }
.vue-liste .nom { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.vue-liste .compteur { width: 150px; flex: none; margin-left: auto; }
.vue-liste .compteur input { flex: 0 0 auto; width: 46px; }

.barre-bas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--bas);
  padding: 0 14px env(safe-area-inset-bottom); display: flex; align-items: center; gap: 12px;
  background: var(--carte); border-top: 1px solid var(--bord); box-shadow: 0 -4px 14px rgba(0,0,0,.05);
}
.resume { flex: 1; font-weight: 600; }
.barre-bas .bouton { min-width: 130px; }

.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.recap {
  border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 40px); box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.recap::backdrop { background: rgba(20, 20, 25, .45); }
.recap form { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.recap-entete { display: flex; align-items: center; justify-content: space-between; }
.recap-entete h2 { margin: 0; font-size: 1.2rem; }
.fermer { border: 0; background: var(--fond); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.recap-liste { list-style: none; margin: 0; padding: 0; max-height: 40vh; overflow: auto; border: 1px solid var(--bord); border-radius: 12px; }
.recap-liste li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--bord); }
.recap-liste li strong { white-space: nowrap; flex: none; }
.recap-liste li:last-child { border-bottom: 0; }
.champ { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.champ input, .champ select, .champ textarea {
  font-weight: 400; border: 1px solid var(--bord); border-radius: 10px; padding: 10px 12px; min-height: 44px; background: #fff;
}
.champ small { font-weight: 400; color: var(--gris); }

@media (max-width: 600px) {
  :root { --rail: 72px; }
  .marque { font-size: 0; gap: 0; }
  .barre-haut { gap: 8px; padding: 0 8px; }
  .recherche { margin-left: 0; }
  .zone { padding: 10px 10px calc(var(--bas) + 20px); }
  .articles.vue-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .compteur { padding: 6px; gap: 4px; }
  .compteur button { width: 36px; height: 38px; }
  .vue-liste .article { min-height: 60px; }
  .vue-liste .compteur { width: auto; padding: 6px 6px 6px 0; gap: 4px; }
  .vue-liste .compteur button { width: 34px; height: 36px; }
  .vue-liste .compteur input { width: 38px; height: 36px; }
  .vue-liste .vignette { width: 44px; height: 44px; margin-left: 6px; border: 0; border-radius: 8px; overflow: hidden; }
  .vue-liste .sans-image { font-size: 22px; }
  .vue-liste .infos { padding: 4px 8px; }
  .vue-liste .nom { font-size: .88rem; }
  .onglet .libelle { font-size: 10px; letter-spacing: -.01em; }
  .rail { padding: 8px 3px; }
}

.bloc-intervention {
  border: 2px solid #f0c36d; background: #fff8e6; border-radius: 12px; padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 12px; margin: 0;
}
.bloc-intervention legend { font-weight: 700; padding: 0 6px; }
.recap form { max-height: calc(100vh - 40px); overflow-y: auto; }

.bouton-historique {
  position: relative; flex: none; border: 0; background: var(--fond); width: 40px; height: 40px;
  border-radius: 10px; cursor: pointer; display: grid; place-items: center;
}
.bouton-historique svg { width: 20px; height: 20px; fill: var(--gris); }
.pastille-h {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--texte); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center;
}
.recap-contenu { padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 40px); overflow-y: auto; }
.bon-recent { border: 1px solid var(--bord); border-radius: 12px; padding: 0 12px; }
.bon-recent summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; }
.bon-recent summary::-webkit-details-marker { display: none; }
.bon-recent small { color: var(--gris); }
.bon-recent[open] { padding-bottom: 12px; }
.bon-recent[open] .recap-liste { margin-bottom: 10px; }
.bandeau-edition {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px;
  background: #fff4e0; color: #6b4500; font-weight: 600; font-size: .9rem; border-bottom: 1px solid #f0d9a8;
}
.article.verrouille { opacity: .5; }

/* ---------------- Pages simples ---------------- */
.page-centree { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.boite {
  background: var(--carte); border-radius: 18px; padding: 28px; width: min(440px, 100%);
  box-shadow: 0 4px 24px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 14px;
}
.boite h1 { margin: 0; font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.boite p { margin: 0; color: var(--gris); }
.coche { width: 64px; height: 64px; border-radius: 50%; background: #e6f4ea; color: var(--vert); display: grid; place-items: center; font-size: 34px; margin: 0 auto; }

/* ---------------- Espace pharmacienne ---------------- */
.admin { display: flex; min-height: 100vh; }
.admin-menu {
  width: 230px; flex: none; background: #1f2328; color: #e8eaed; padding: 18px 12px;
  display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh;
}
.admin-menu .marque { color: #fff; margin: 0 8px 18px; }
.admin-menu a {
  color: #c8ccd2; text-decoration: none; padding: 10px 12px; border-radius: 10px; display: flex; gap: 10px; align-items: center;
}
.admin-menu a:hover { background: #2c3138; color: #fff; }
.admin-menu a.actif { background: var(--rouge); color: #fff; }
.admin-menu .bas { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.admin-menu form button { width: 100%; text-align: left; background: transparent; border: 0; color: #c8ccd2; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.admin-menu form button:hover { background: #2c3138; color: #fff; }
.admin-contenu { flex: 1; min-width: 0; padding: 24px 28px 60px; max-width: 1100px; }
.admin-contenu h1 { margin: 0 0 4px; font-size: 1.5rem; }
.sous-titre { color: var(--gris); margin: 0 0 20px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; align-items: center; }
.carte { background: var(--carte); border-radius: var(--rayon); padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.06); margin-bottom: 16px; }
.carte h2 { margin: 0 0 10px; font-size: 1.05rem; display: flex; gap: 8px; align-items: center; }
.chiffres { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.chiffre { background: var(--carte); border-radius: var(--rayon); padding: 14px 18px; min-width: 160px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chiffre b { display: block; font-size: 1.6rem; }
.chiffre span { color: var(--gris); font-size: .9rem; }

table.tableau { width: 100%; border-collapse: collapse; }
.tableau th, .tableau td { padding: 9px 10px; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: middle; }
.tableau th { font-size: .82rem; color: var(--gris); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.tableau td.num, .tableau th.num { text-align: right; }
.tableau td.qte { text-align: right; font-weight: 700; font-size: 1.05rem; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .mini { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #fafafa; border: 1px solid var(--bord); display: grid; place-items: center; font-size: 20px; }
.tableau tr.inactif td { opacity: .5; }
.etiquette { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 99px; background: var(--fond); color: var(--gris); font-weight: 600; }
.etiquette.attente { background: #fff4e0; color: #8a5a00; }
.etiquette.ok { background: #e6f4ea; color: #145c2c; }
.etiquette.erreur { background: var(--rouge-clair); color: #8a1414; }
.ligne-form input[type=email] { border: 1px solid var(--bord); border-radius: 8px; padding: 6px 10px; min-height: 44px; flex: 1; min-width: 220px; }
.ligne-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ligne-form input[type=text] { border: 1px solid var(--bord); border-radius: 8px; padding: 6px 10px; min-height: 38px; }
.ligne-form input.icone-champ { width: 60px; text-align: center; font-size: 1.2rem; }
.formulaire { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.apercu { width: 140px; height: 140px; object-fit: contain; border-radius: 12px; border: 1px solid var(--bord); background: #fafafa; }
.ordre { display: inline-flex; gap: 2px; }
.ordre button { border: 1px solid var(--bord); background: #fff; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; }
.en-ligne { display: inline; }
.menu-mobile { display: none; }
.bibliotheque summary { cursor: pointer; color: var(--rouge); font-weight: 500; margin: 4px 0; }
.grille-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding: 8px 2px; }
.grille-images label { position: relative; cursor: pointer; }
.grille-images input { position: absolute; opacity: 0; }
.grille-images img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fafafa; border: 2px solid var(--bord); border-radius: 10px; display: block; }
.grille-images input:checked + img { border-color: var(--rouge); box-shadow: 0 0 0 2px var(--rouge-clair); }

.barre-mobile, .voile-menu { display: none; }
@media (max-width: 800px) {
  .admin { flex-direction: column; }
  .barre-mobile {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40;
    height: 56px; padding: 0 12px; background: #1f2328; color: #fff;
  }
  .barre-mobile .marque { margin: 0; color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
  .burger { width: 44px; height: 40px; border: 0; border-radius: 10px; background: #2c3138; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
  .burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .admin-menu {
    position: fixed; top: 56px; left: 0; bottom: 0; width: min(280px, 82vw); height: auto; z-index: 50;
    transform: translateX(-100%); transition: transform .2s ease; overflow-y: auto; padding: 12px;
  }
  .admin-menu.ouvert { transform: none; box-shadow: 8px 0 24px rgba(0,0,0,.25); }
  .admin-menu > .marque { display: none; }
  .admin-menu .bas { margin-top: auto; }
  .voile-menu { display: block; position: fixed; inset: 56px 0 0 0; background: rgba(0,0,0,.4); z-index: 45; }
  .voile-menu[hidden] { display: none; }
  body.menu-ouvert { overflow: hidden; }
  .admin-contenu { padding: 18px 14px 50px; }
  .masquer-mobile { display: none; }
  .chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .chiffre { min-width: 0; padding: 10px 12px; }
  .chiffre b { font-size: 1.3rem; }
  .onglets-param { flex-wrap: nowrap; overflow-x: auto; }
  .carte { overflow-x: auto; }
  .admin-contenu .tableau-large { display: none; }
  .admin-contenu .vue-mobile { display: block; }
  .filtres { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filtres label:first-child, .filtres label:nth-child(2), .actions-filtres { grid-column: 1 / -1; }
  .filtres select, .filtres input { max-width: none; width: 100%; }
  .onglets-param a { white-space: nowrap; padding: 9px 10px; }
}


/* Sous-menu Paramètres */
.onglets-param { display: flex; gap: 4px; flex-wrap: wrap; margin: -6px 0 18px; border-bottom: 1px solid var(--bord); }
.onglets-param a { padding: 9px 14px; text-decoration: none; color: var(--gris); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.onglets-param a.actif { color: var(--rouge); border-bottom-color: var(--rouge); }
.admin-menu .bas a.actif { background: var(--rouge); color: #fff; }

/* Tableau de bord */
.filtres { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filtres label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--gris); }
.filtres select, .filtres input { border: 1px solid var(--bord); border-radius: 8px; padding: 6px 8px; min-height: 36px; color: var(--texte); font-weight: 400; max-width: 260px; }
.actions-filtres { display: flex; gap: 6px; }
.tableau-large { padding: 0; overflow: auto; max-height: 70vh; }
.tableau.analyse { width: auto; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.tableau.analyse th, .tableau.analyse td { padding: 6px 8px; background: var(--carte); white-space: nowrap; }
.tableau.analyse thead th { position: sticky; top: 0; z-index: 2; vertical-align: bottom; border-bottom: 2px solid var(--bord); }
.tableau.analyse th.art { height: 200px; width: 38px; min-width: 38px; text-transform: none; letter-spacing: 0; }
.tableau.analyse th.art span { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; max-height: 190px; overflow: hidden; text-overflow: ellipsis; color: var(--texte); font-weight: 600; }
.tableau.analyse .fixe { position: sticky; left: 0; z-index: 1; min-width: 120px; }
.tableau.analyse .fixe2 { position: sticky; left: 136px; z-index: 1; min-width: 140px; border-right: 2px solid var(--bord); }
.tableau.analyse thead .fixe, .tableau.analyse thead .fixe2 { z-index: 3; }
.tableau.analyse td.plein { background: var(--rouge-clair); font-weight: 700; color: #8a1414; }
.tableau.analyse tfoot td { position: sticky; bottom: 0; background: #f8f9fa; border-top: 2px solid var(--bord); }
.tableau.analyse tfoot tr:first-child td { bottom: 33px; }
.tableau.analyse tbody tr:hover td { background: #fafafa; }
.tableau.analyse tbody tr:hover td.plein { background: #fbd9d6; }
.entete-impression { display: none; }
.vue-mobile { display: none; }
.bon-mobile { padding: 12px 14px; margin-bottom: 8px; }
.bon-mobile summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; }
.bon-mobile summary::-webkit-details-marker { display: none; }
.bon-mobile small { color: var(--gris); }

/* Bon de commande : liste dans l'ordre de la pharmacienne, sur deux colonnes */
.liste-bon { columns: 2; column-gap: 28px; padding: 10px 18px; }
.ligne-bon { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 2px;
  border-bottom: 1px solid var(--bord); break-inside: avoid; font-size: .92rem; }
.ligne-bon.vide { color: #9aa0a6; }
.ligne-bon.a-commander { font-weight: 600; }
.ligne-bon.a-commander .qte-ligne { color: var(--rouge); }
.ligne-bon.rappel { background: #fffaf0; }
.qte-ligne { font-weight: 700; min-width: 28px; text-align: right; }
.nom-ligne .etiquette { font-weight: 500; }
@media (max-width: 1000px) { .liste-bon { columns: 1; } }

/* Ordre du bon */
.liste-ordre { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.liste-ordre li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--bord);
  border-radius: 8px; margin-bottom: 4px; background: #fff; break-inside: avoid; cursor: grab; font-size: .9rem; }
.liste-ordre li.glisse { opacity: .4; }
.liste-ordre .poignee { color: #b0b4ba; }
.liste-ordre .rang { color: var(--gris); min-width: 26px; font-size: .8rem; }
.liste-ordre .nom-ordre { flex: 1; }
@media (max-width: 1000px) { .liste-ordre { columns: 1; } }

@media print {
  @page { size: A4; margin: 10mm; }
  .entete-impression { display: block; font-size: 11pt; margin-bottom: 4mm; }
  .chiffres, .sous-titre, .admin-contenu > h1, .admin-contenu > p { display: none !important; }
  .groupes { columns: 2; column-gap: 6mm; }
  .liste-bon { columns: 2 !important; column-gap: 6mm; padding: 0 !important; border: 0 !important; }
  .ligne-bon { font-size: 8.5pt; padding: .55mm .5mm; border-bottom: .5px solid #bbb; }
  .ligne-bon.vide { color: #000; }
  .ligne-bon .etiquette { background: none; padding: 0; color: #555; font-size: 7.5pt; }
  .qte-ligne { color: #000 !important; }
  .groupes .carte.groupe { padding: 0 !important; margin: 0 0 3mm; border: 0 !important; border-radius: 0; display: block; break-inside: auto !important; }
  .groupes .carte.groupe h2 { font-size: 9.5pt; margin: 0 0 1mm; padding-bottom: 1mm; border-bottom: 1.5px solid #000; break-after: avoid; }
  .groupes .tableau { font-size: 8.5pt; }
  .groupes .tableau thead { display: none; }
  .groupes .tableau td { padding: .6mm 1mm; border-bottom: .5px solid #ccc; }
  .groupes .tableau td.qte { font-size: 9pt; width: 12mm; }
  .groupes .tableau tr { break-inside: avoid; }
  .groupes .etiquette { background: none; padding: 0; color: #555; font-size: 7.5pt; }

  .admin-menu, .barre-mobile, .voile-menu, .actions, .pas-imprimer, .flash { display: none !important; }
  .admin-contenu { padding: 0; max-width: none; }
  .carte, .chiffre { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  body { background: #fff; }
}
