/* Audit « respect des maquettes » (28/11/2026), lot 6 : la page « Étiquettes QR » au style des cartes de l'application
   (système de design du 8/11, écrans du 13/11). Aspect seulement : mêmes cartes, mêmes boutons, mêmes gestes.
   - une grille aérée : deux colonnes au plus à l'ordinateur, une au téléphone ;
   - la vignette « Pas de photo » plus petite (96 px, 64 px au téléphone) : le texte prend la largeur, le bouton tient sur une ligne ;
   - « Afficher 24 de plus » sous les 24 premières cartes (renderQRView, app.js).
   Tout est sous `@media screen` : l'impression de la liste (metric-click.css) ne change pas, et imprime toutes les cartes. */
@media screen {
  #qr-view .qr-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
  #qr-view .qr-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 16px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface, #fff); box-shadow: 0 1px 2px rgba(16, 42, 67, .04); }
  #qr-view .qr-card.qr-au-dela { display: none; }
  #qr-view .qr-photo { width: 96px; height: 96px; flex: none; border-radius: 12px; background: var(--soft, #eef2f5); }
  #qr-view .qr-no-photo { padding: 6px; font-size: 12px; line-height: 1.25; }
  #qr-view .qr-card-body { display: grid; gap: 2px; min-width: 0; }
  #qr-view .qr-card h3 { margin: 4px 0 4px; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
  #qr-view .qr-card strong { overflow-wrap: anywhere; }
  #qr-view .qr-card small { margin-top: 2px; overflow-wrap: anywhere; }
  #qr-view .qr-card .qr-help { margin-top: 4px; }
  #qr-view .qr-engrave { justify-self: start; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; margin-top: 10px; padding: 0 16px; border-radius: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #qr-view .qr-engrave + .qr-engrave { margin-top: 8px; }
  #qr-view .qr-plus { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 8px 0 4px; text-align: center; }
  #qr-view .qr-plus p { margin: 0; color: var(--muted); font-size: 14px; }
  #qr-view .qr-plus .button { min-height: 48px; padding: 0 24px; border-radius: 12px; }
  /* la recherche, au style de celle de Chantiers (coins de 12 px, bord clair, 44 px) */
  #qr-view .stock-search input { min-height: 44px; border: 1px solid #dbe4ec; border-radius: 12px; padding: 10px 14px; background: var(--surface, #fff); }
}
@media screen and (max-width: 700px) {
  #qr-view .qr-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #qr-view .qr-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; }
  #qr-view .qr-photo { width: 64px; height: 64px; border-radius: 10px; }
  #qr-view .qr-no-photo { font-size: 11px; padding: 4px; }
  #qr-view .qr-engrave { width: 100%; }
  #qr-view .qr-plus .button { width: 100%; }
}
@media print { #qr-view .qr-plus { display: none !important; } }
