/* =========================================================
   Códigos QR de producto (admin/qr.php y producto.php)
   ========================================================= */

/* ---------- Bloque en la página pública del producto ---------- */
.aoh-qr-share{
  display:flex; gap:18px; align-items:center; margin-top:26px; padding:16px;
  border:1px solid var(--aoh-line); background:var(--aoh-black-soft, #0f0f0f);
}
.aoh-qr-share .aoh-qr{ width:112px; flex:0 0 112px; background:#fff; padding:4px; line-height:0; }
.aoh-qr-share strong{ display:block; font-size:0.95rem; margin-bottom:4px; }
.aoh-qr-share p{ margin:0 0 10px; font-size:0.82rem; color:var(--aoh-gray); }
.aoh-qr-share button{
  background:none; border:1px solid rgba(244,241,232,0.25); color:var(--aoh-ivory);
  padding:8px 12px; font-size:0.78rem; font-weight:700; cursor:pointer; font-family:inherit;
}
.aoh-qr-share button:hover{ border-color:var(--aoh-gold); color:var(--aoh-gold-bright); }

/* ---------- Página del admin ---------- */
.aoh-qr-tools{ display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; margin-bottom:16px; }
.aoh-qr-tools label{ display:block; font-size:0.75rem; font-weight:700; color:var(--aoh-gray); margin-bottom:5px; }
.aoh-qr-tools input[type=text]{
  min-width:min(100%, 340px); background:var(--aoh-black-soft); border:1px solid rgba(244,241,232,0.2);
  color:var(--aoh-ivory); padding:10px 12px; font-family:inherit; font-size:0.88rem;
}
.aoh-qr-tools input[type=text]:focus{ outline:none; border-color:var(--aoh-gold); }
.aoh-qr-check{ display:flex; align-items:center; gap:7px; font-size:0.84rem; color:var(--aoh-ivory); padding-bottom:10px; cursor:pointer; }
.aoh-qr-warn{
  border:1px solid #e8a84a; color:#e8a84a; padding:12px 14px; margin-bottom:16px; font-size:0.86rem; line-height:1.5;
}
.aoh-qr-warn code{ background:#222; padding:1px 6px; }

.aoh-qrl-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:14px; }
.aoh-qrl{ background:#fff; color:#111; padding:14px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; }
.aoh-qrl .aoh-qr{ width:100%; max-width:170px; line-height:0; }
.aoh-qrl .aoh-qr svg{ width:100%; height:auto; display:block; }
.aoh-qrl__name{ font-weight:800; font-size:0.9rem; line-height:1.25; }
.aoh-qrl__team{ font-size:0.74rem; color:#666; }
.aoh-qrl__price{ font-weight:800; font-size:1rem; }
.aoh-qrl__hint{ font-size:0.68rem; color:#555; }
.aoh-qr-hide-price .aoh-qrl__price{ display:none; }
.aoh-qrl__actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; font-size:0.78rem; margin-top:2px; }
.aoh-qrl__actions a, .aoh-qrl__actions button{
  background:none; border:0; padding:0; color:#7a5d00; font-weight:700; cursor:pointer; font-family:inherit; font-size:inherit; text-decoration:underline;
}
.aoh-qrl--solo{ max-width:340px; padding:22px; }
.aoh-qrl--solo .aoh-qr{ max-width:280px; }
.aoh-qrl--solo .aoh-qrl__name{ font-size:1.1rem; }

/* ---------- Impresión: solo las etiquetas, en papel blanco ---------- */
@media print{
  body, .aoh-admin-body{ background:#fff !important; color:#000 !important; }
  .aoh-admin-sidebar, .aoh-admin-topbar, .aoh-qr-tools, .aoh-qr-warn, .aoh-qrl__actions, .aoh-admin-flash, .aoh-qr-noprint{ display:none !important; }
  .aoh-admin-main, .aoh-admin-content{ padding:0 !important; margin:0 !important; }
  .aoh-qrl-grid{ grid-template-columns:repeat(3, 1fr); gap:0; }
  .aoh-qrl{ border:1px dashed #999; break-inside:avoid; padding:10mm 6mm; }
  .aoh-qrl .aoh-qr{ max-width:42mm; }
  .aoh-qrl--solo{ max-width:none; }
}
