/* CosmoGest — boutons « Retour » : pages secondaires + fenêtres (fiche produit, reçu, détail lot…) */

/* --- Fenêtres : barre « Retour » collée en haut, toujours visible même quand le contenu défile --- */
dialog{padding-top:0}
.dbar{position:sticky;top:0;z-index:6;display:flex;align-items:center;margin:0 -20px 12px;padding:10px 14px;background:var(--card);border-bottom:1px solid var(--line)}
.dbar .dbk,.hb{background:var(--pl);color:var(--ink);box-shadow:none;font-weight:600}
.dbar .dbk{height:40px;padding:0 16px 0 8px;gap:2px;font-size:15px}
.dbar svg,.hb svg,.pback svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* --- Téléphone : flèche « retour » dans la barre du haut --- */
.hb{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;margin-left:-6px;border-radius:12px}

/* --- Ordinateur : lien « Retour » en haut de la page (la barre du haut n'existe pas) --- */
.pback{display:none;align-items:center;gap:2px;margin:0 0 10px -6px;padding:6px 12px 6px 6px;border-radius:10px;color:var(--p);font-weight:600;text-decoration:none}
.pback:hover{background:var(--pl)}
@media(min-width:761px){.pback{display:inline-flex}}

@media print{.dbar,.hb,.pback{display:none!important}}

/* Téléphone : la fiche produit occupe vraiment tout l'écran (elle laissait une bande sur le côté) */
@media(max-width:760px){dialog.bf.tr3{width:100%;max-width:100%}}
