/* Listado de ventas para devolución. */
.returns-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  animation: fadeIn 0.3s ease-out;
}

.return-sale-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.return-sale-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.return-sale-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.return-sale-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.return-sale-warranty {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.return-sale-warranty.warranty-active {
  background: hsla(145, 63%, 49%, 0.15);
  color: var(--accent-green);
}

.return-sale-warranty.warranty-expired {
  background: hsla(354, 70%, 54%, 0.15);
  color: var(--accent-red);
}

.return-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.return-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.return-item-details {
  font-size: 0.95rem;
}

.return-item-details .item-name {
  font-weight: 600;
}

.return-item-details .item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}


.scanner-viewport {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.scanner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-corners {
  position: absolute;
  width: 78%;
  height: 48%;
  max-width: 320px;
  max-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: visorPulse 1.8s ease-in-out infinite alternate;
}
