/* One complete approved sheet per row; no crop, card preview or detail click. */
.validated-reference-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-column: 1 / -1;
  gap: 1.25rem;
  min-width: 0;
  width: 100%;
}

.validated-reference-row {
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  aspect-ratio: 1983 / 793;
  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 7px;
  box-shadow: 0 3px 14px rgba(8,41,90,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  scrollbar-color: #ff5a19 #e7edf4;
}

.validated-reference-row:focus-visible {
  outline: 3px solid #ff5a19;
  outline-offset: -3px;
}

.validated-reference-row img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

/* Sheet 04 has a taller source canvas with generous blank margins.
   Crop only those margins so its content fills the same rectangle as the others. */
.validated-reference-row img[alt^="Référence 04"] {
  object-fit: cover;
  object-position: center;
}

.reference-swipe-hint {
  display: none;
}

.reference-empty {
  margin: 2rem 0;
}

.reference-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .validated-reference-row {
    display: block;
    height: 440px;
    aspect-ratio: auto;
  }

  .validated-reference-row img {
    width: 1100px;
    height: 440px;
  }

  .reference-swipe-hint {
    display: block;
    margin: 0 0 .75rem;
    color: #526486;
    font-size: .85rem;
  }
}
