.qr-ticket {
  box-sizing: border-box;
  width: min(100%, 184px);
  margin: 0 auto;
  padding: 0;
  border: 1px solid #cbd5c9;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 14px #233f3010;
}
.qr-face { box-sizing: border-box; display: block; padding: 5px; border-radius: 16px; }
.qr-ticket .qr-face canvas { width: 100%!important; display: block; height: auto!important; margin: 0; }
.qr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e1e7dd;
  padding: 0 5px 0 15px;
}
.qr-toolbar a, .qr-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  color: #184f43;
}
.qr-toolbar a { font: 600 14px/1.3 system-ui, sans-serif; text-decoration: none; }
.qr-toolbar a:hover { text-decoration: underline; }
.qr-toolbar button { min-width: 44px; padding: 0; border: 0; cursor: pointer; background: transparent; }
.qr-toolbar button:hover { background: #edf3ec; }
.qr-ticket :focus-visible { outline: 2px solid #196752; outline-offset: -3px; }

.qr-face img { display: block; width: 100%; height: auto; }
button.qr-face { position: relative; width: 100%; border: 0; background: white; color: #184f43; cursor: zoom-in; }
.qr-expand-icon { position: absolute; bottom: 3px; right: 3px; }
.qr-enlarged { box-sizing: border-box; width: min(90vw, 80vh, 52rem); max-height: 92vh; padding: clamp(12px, 2vw, 26px); border: 0; border-radius: 18px; background: white; color: #184f43; }
.qr-enlarged::backdrop { background: rgb(12 34 29 / 82%); }
.qr-enlarged-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qr-enlarged-heading h2 { margin: 0; color: inherit; font: 650 clamp(1rem, 2.3vw, 1.55rem)/1.25 system-ui, sans-serif; }
.qr-enlarged-heading button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #eef3ee; color: inherit; cursor: pointer; }
.qr-enlarged > svg { display: block; width: 100%; height: auto; max-height: 72vh; }
#dossier-qr { margin-top: 1.25rem; }
#dossier-qr .qr-ticket { margin-inline: 0; }
@media print {
  .qr-ticket .qr-face { display: block; }
  .qr-ticket .qr-toolbar { display: none; }
  .qr-expand-icon { display: none; }
}
