#rdOdtDetailRoot,
.rd-odt-detail-root {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  
  pointer-events: none;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rd-odt-detail-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, .36) !important;
  backdrop-filter: blur(1px);
  pointer-events: auto;
}

.rd-odt-detail-panel {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  bottom: 18px !important;
  width: min(620px, calc(100vw - 36px)) !important;
  overflow: auto !important;
  pointer-events: auto;
  background: #ffffff !important;
  border: 1px solid #cddff1 !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28) !important;
  color: #0f2438 !important;
}

.rd-odt-detail-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%) !important;
  border-bottom: 1px solid #d8e5f2 !important;
}

.rd-odt-detail-kicker {
  margin: 0 0 4px !important;
  color: #1f4f82 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: .35px !important;
  text-transform: uppercase !important;
}

.rd-odt-detail-head h3,
#rdOdtDetailTitle {
  margin: 0 !important;
  color: #0f2438 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
}

.rd-odt-detail-head p,
#rdOdtDetailSub {
  margin: 4px 0 0 !important;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 750 !important;
}

.rd-odt-detail-head-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.rd-odt-detail-head-actions button,
.rd-odt-detail-actions button {
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  border: 1px solid #cddff1 !important;
  background: #eef6ff !important;
  color: #1f4f82 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.rd-odt-detail-head-actions button:hover,
.rd-odt-detail-actions button:hover {
  filter: brightness(.97);
}

#rdOdtDetailClose {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #9f1239 !important;
}

.rd-odt-detail-status {
  margin: 14px 18px 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #d8e5f2 !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.rd-odt-detail-body {
  padding: 14px 18px 18px !important;
}

.rd-odt-detail-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 0 14px !important;
}

.rd-odt-detail-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
}

.rd-odt-detail-card,
.rd-odt-detail-section {
  border: 1px solid #d8e5f2 !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  padding: 12px !important;
  margin: 0 0 12px !important;
}

.rd-odt-detail-card span,
.rd-odt-detail-section h4 {
  display: block !important;
  margin: 0 0 6px !important;
  color: #64748b !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .25px !important;
}

.rd-odt-detail-card b,
.rd-odt-detail-text {
  display: block !important;
  color: #0f2438 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  overflow-wrap: anywhere !important;
}

.rd-odt-detail-section table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 12px !important;
}

.rd-odt-detail-section th,
.rd-odt-detail-section td {
  padding: 8px 7px !important;
  border-bottom: 1px solid #e5edf6 !important;
  text-align: left !important;
  vertical-align: top !important;
}

.rd-odt-detail-section th {
  color: #29415d !important;
  background: #f8fbff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.detalle-overlay,
.detalle-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: rgba(15, 23, 42, .36) !important;
}

.detalle-panel {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  bottom: 18px !important;
  width: min(620px, calc(100vw - 36px)) !important;
  overflow: auto !important;
  z-index: 100000 !important;
  background: #fff !important;
  border: 1px solid #cddff1 !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28) !important;
  padding: 0 !important;
  color: #0f2438 !important;
}

.detalle-btn {
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  border: 1px solid #cddff1 !important;
  background: #eef6ff !important;
  color: #1f4f82 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.detalle-btn.primary {
  background: #1f4f82 !important;
  color: #fff !important;
  border-color: #1f4f82 !important;
}

@media (max-width: 720px) {
  .rd-odt-detail-panel,
  .detalle-panel {
    top: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    width: calc(100vw - 16px) !important;
    border-radius: 14px !important;
  }

  .rd-odt-detail-grid {
    grid-template-columns: 1fr !important;
  }
}

.rd-odt-detail-photos {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) !important;
  gap: 8px !important;
  max-height: 260px !important;
  overflow: auto !important;
  padding: 2px !important;
}

.rd-odt-detail-photo {
  display: block !important;
  width: 100% !important;
  height: 92px !important;
  padding: 3px !important;
  margin: 0 !important;
  border: 1px solid #d8e5f2 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.rd-odt-detail-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: 7px !important;
}

.rd-odt-detail-section img {
  max-width: 100% !important;
}

.rd-odt-detail-photos {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) !important;
  gap: 8px !important;
  max-height: 260px !important;
  overflow: auto !important;
  padding: 2px !important;
}

.rd-odt-detail-photo {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 96px !important;
  padding: 3px !important;
  margin: 0 !important;
  border: 1px solid #d8e5f2 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.rd-odt-detail-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: 7px !important;
}

.rd-odt-detail-body .fotos,
.rd-odt-detail-body .fotos-grid,
.rd-odt-detail-body .foto-grid,
.rd-odt-detail-body .photo-grid,
.rd-odt-detail-body [class*="foto"],
.rd-odt-detail-body [class*="photo"],
.detalle-panel .fotos,
.detalle-panel .fotos-grid,
.detalle-panel .foto-grid,
.detalle-panel .photo-grid,
.detalle-panel [class*="foto"],
.detalle-panel [class*="photo"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) !important;
  gap: 8px !important;
  max-height: 260px !important;
  overflow: auto !important;
}

.rd-odt-detail-body button:has(img),
.rd-odt-detail-body a:has(img),
.detalle-panel button:has(img),
.detalle-panel a:has(img) {
  display: block !important;
  width: 100% !important;
  height: 96px !important;
  padding: 3px !important;
  margin: 0 !important;
  border: 1px solid #d8e5f2 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.rd-odt-detail-body img,
.rd-odt-detail-section img,
.detalle-panel img {
  display: block !important;
  width: 100% !important;
  height: 96px !important;
  max-width: 100% !important;
  max-height: 96px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}

.rd-odt-detail-photos {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)) !important;
  gap: 8px !important;
  max-height: 220px !important;
  overflow: auto !important;
  padding: 2px !important;
}

.rd-odt-detail-photo {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 88px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #d8e5f2 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.rd-odt-detail-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: 9px !important;
}

.rd-photo-viewer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
}

.rd-photo-viewer.open {
  display: flex !important;
}

.rd-photo-viewer-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, .78) !important;
}

.rd-photo-viewer-panel {
  position: relative !important;
  width: min(920px, calc(100vw - 36px)) !important;
  height: min(720px, calc(100vh - 36px)) !important;
  background: #f8fafc !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .45) !important;
  border: 1px solid #d8e5f2 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.rd-photo-viewer-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid #d8e5f2 !important;
  background: #ffffff !important;
}

.rd-photo-viewer-title {
  font-weight: 900 !important;
  color: #0f172a !important;
  font-size: 13px !important;
}

.rd-photo-viewer-actions {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
}

.rd-photo-viewer-actions button,
.rd-photo-viewer-actions a {
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  padding: 7px 9px !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.rd-photo-viewer-body {
  position: relative !important;
  flex: 1 !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0f172a !important;
  padding: 10px !important;
}

.rd-photo-viewer-img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  background: #111827 !important;
}

.rd-photo-viewer-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 38px !important;
  height: 46px !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  background: rgba(15,23,42,.72) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.rd-photo-viewer-prev {
  left: 12px !important;
}

.rd-photo-viewer-next {
  right: 12px !important;
}

.rd-photo-viewer-counter {
  padding: 8px 12px !important;
  border-top: 1px solid #d8e5f2 !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.rd-odt-detail-photos {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
  gap: 10px !important;
  max-height: 260px !important;
  overflow: auto !important;
  padding: 2px !important;
}

.rd-odt-detail-photo {
  display: block !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 14px !important;
  padding: 6px !important;
  background: #ffffff !important;
  text-decoration: none !important;
  color: inherit !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.rd-odt-detail-photo img {
  display: block !important;
  width: 100% !important;
  height: 120px !important;
  max-width: 100% !important;
  max-height: 120px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  background: #f1f5f9 !important;
}

.rd-photo-viewer {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(2, 6, 23, .92) !important;
  z-index: 100000 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
}

.rd-photo-viewer.open {
  display: flex !important;
}

.rd-photo-stage {
  position: relative !important;
  width: min(1100px, 96vw) !important;
  height: min(90vh, 900px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.rd-photo-stage img {
  display: block !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  background: #111827 !important;
  border-radius: 16px !important;
}

.rd-photo-close,
.rd-photo-prev,
.rd-photo-next {
  position: absolute !important;
  border: none !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, .78) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.35) !important;
  font-weight: 900 !important;
}

.rd-photo-close {
  top: 14px !important;
  right: 14px !important;
  width: 46px !important;
  height: 46px !important;
  font-size: 26px !important;
}

.rd-photo-prev,
.rd-photo-next {
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 54px !important;
  height: 54px !important;
  font-size: 34px !important;
}

.rd-photo-prev {
  left: 14px !important;
}

.rd-photo-next {
  right: 14px !important;
}

.rd-photo-count {
  position: absolute !important;
  bottom: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(15, 23, 42, .78) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  max-width: min(720px, 80vw) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.rd-photo-info {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  max-width: min(520px, 70vw) !important;
  background: rgba(15, 23, 42, .82) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.32) !important;
}
