@keyframes rv-fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: rv-fadeUp .2s ease;
}
.rv-modal {
  background: #fff;
  border-radius: 16px;
  padding: 26px;
  max-width: 480px;
  width: 92%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.rv-modal-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.rv-modal-titulo {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: #1d4ed8;
}
.rv-close-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
}
.rv-print-modal {
  max-width: 420px;
}
.rv-print-fmt-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.rv-print-fmt-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  line-height: 1.3;
}
.rv-print-fmt-btn span {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
}
.rv-print-fmt-btn:hover {
  background: #eff6ff;
  border-color: #1d4ed8;
  color: #1d4ed8;
  transform: translateY(-2px);
}
.rv-print-fmt-btn:hover span { color: #6366f1; }
.rv-print-fmt-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}
.rv-print-fmt-dian {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}
.rv-print-fmt-dian span { color: #16a34a; }
.rv-print-fmt-dian:hover {
  background: #dcfce7;
  border-color: #16a34a;
  color: #14532d;
  transform: translateY(-2px);
}
.rv-print-fmt-dian:hover span { color: #166534; }

/* ── Historial de impresiones ── */
.rv-print-hist {
  border-top: 1.5px solid #f3f4f6;
  padding-top: 14px;
}
.rv-print-hist-title {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 8px;
}
.rv-print-hist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f9fafb;
  font-size: 12px;
}
.rv-print-hist-fmt {
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.rv-print-hist-usr {
  font-weight: 600;
  color: #374151;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rv-print-hist-ts {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}
.rv-print-hist-empty {
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
  padding: 10px 0;
}
