/* Overlay y Contenedor */
.rm-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); z-index: 9999;
}

.rm-container {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; width: 1150px; max-width: 95vw; height: 95vh;
  border-radius: 12px; display: flex; flex-direction: column;
  z-index: 10000; box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
}

/* Header */
.rm-header-wrapper {
  background: #fff; border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.rm-header-top {
  padding: 24px 24px 10px 24px;
  display: flex; justify-content: space-between; align-items: flex-start;
}

.rm-title { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); margin: 0; }
.rm-subtitle { font-size: 0.875rem; color: #6b7280; margin: 4px 0 0 0; }

.rm-meta-row { display: flex; align-items: center; gap: 15px; margin-top: 8px; }
.rm-badges-group { display: flex; gap: 8px; }

.rm-badge { font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; }
.badge-yellow { background: #fef3c7; color: #b45309; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }

.rm-close-btn { background: none; border: none; cursor: pointer; color: #6b7280; }
.rm-close-btn:hover { color: #374151; }

/* Tabs */
.rm-tabs-container {
  padding: 0 24px; display: flex; gap: 4px; overflow-x: auto;
}

.rm-tab {
  padding: 12px 16px; font-size: 0.875rem; font-weight: 600;
  border-bottom: 2px solid transparent; text-decoration: none;
  color: #6b7280; display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}

.rm-tab:hover { color: #100e35; border-color: #e5e7eb; }
.rm-tab.active {
  border-color: #100e35; color: #100e35; background: #fff1f2; /* Pink-50 */
}

.rm-status-dot { font-size: 0.75rem; padding: 2px 6px; border-radius: 10px; }
.dot-green { background: #dcfce7; color: #15803d; }
.dot-red { background: #fee2e2; color: #b91c1c; }
.dot-yellow { background: #fef3c7; color: #b45309; }

.rm-tab-conf { font-size: 0.75rem; font-weight: 800; }

/* Body y Scroll */
.rm-body { padding: 24px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 24px; }

/* Confidence Banner */
.rm-confidence-banner { border: 2px solid; border-radius: 8px; padding: 16px; }
.banner-green { background: #f0fdf4; border-color: #bbf7d0; }
.banner-yellow { background: #fffbeb; border-color: #fde68a; }
.banner-red { background: #fef2f2; border-color: #fecaca; }

.rm-banner-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.rm-banner-left { display: flex; align-items: center; gap: 8px; }
.rm-conf-title { font-size: 1.125rem; font-weight: 700; }

.rm-conf-pill { font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.pill-green { background: #dcfce7; color: #166534; }
.pill-yellow { background: #fef3c7; color: #92400e; }
.pill-red { background: #fee2e2; color: #991b1b; }

.rm-progress-bg { width: 100%; height: 12px; background: #e5e7eb; border-radius: 6px; overflow: hidden; }
.rm-progress-fill { height: 100%; border-radius: 6px; }
.bg-green { background: #22c55e; }
.bg-yellow { background: #eab308; }
.bg-red { background: #ef4444; }

/* Utility Colors */
.text-green { color: #16a34a; }
.text-yellow { color: #ca8a04; }
.text-red { color: #dc2626; }
.text-purple { color: #9333ea; }
.text-blue { color: #2563eb; }
.text-blue-dark { color: #1e40af; }
.text-primary { color: #100e35; }
.text-gray { color: #9ca3b8; }

/* Grid Layout */
.rm-grid {
  display: flex;
  gap: 24px;
}
.rm-column-left, .rm-column-right {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}
.rm-column-left .rm-card,
.rm-column-right .rm-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media(max-width: 1024px) { .rm-grid { grid-template-columns: 1fr; } }

/* Cards */
.rm-card { border: 1px solid var(--gray-color); border-radius: 8px; padding: 16px; }
.rm-card-title { font-size: 1rem; font-weight: 700; color: #100e35; margin: 0 0 12px 0; display: flex; align-items: center; gap: 8px; }

/* Preview Box */
.rm-preview-box {
  background: #f3f4f6; border: 2px dashed #d1d5db; border-radius: 8px;
  aspect-ratio: 3/4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin-bottom: 16px; padding: 20px; text-align: center;
}
.rm-preview-type { font-size: 1.125rem; font-weight: 600; color: #4b5563; margin: 10px 0 0; }
.rm-preview-user { font-size: 0.875rem; color: #9ca3b8; margin: 5px 0 15px; }
.rm-link-btn { background: none; border: none; color: #100e35; font-weight: 600; font-size: 0.875rem; cursor: pointer; }
.rm-link-btn:hover { color: #d84b74; }

.rm-nav-buttons { display: flex; justify-content: space-between; }
.rm-nav-btn { background: none; border: none; font-weight: 600; color: #100e35; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.rm-nav-btn:disabled { color: #9ca3b8; cursor: not-allowed; }

/* Data List */
.rm-data-list { display: flex; flex-direction: column; gap: 12px; }
.rm-data-row { padding: 12px; border-radius: 6px; }
.rm-data-row label { display: block; font-size: 0.75rem; font-weight: 700; margin-bottom: 4px; }
.rm-data-row p { font-size: 0.875rem; font-weight: 600; margin: 0; color: #1f2937; }

.purple-bg { background: #faf5ff; border: 1px solid #f3e8ff; }
.gray-bg { background: #f9fafb; }
.blue-bg { background: #eff6ff; border: 1px solid #dbeafe; }
.red-bg { background: #fef2f2; border: 1px solid #fee2e2; }
.green-bg { background: #f0fdf4; border: 1px solid #dcfce7; }

.rm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rm-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.rm-grid-3 label { font-size: 0.75rem; font-weight: 700; color: #9ca3b8; }
.rm-grid-3 p { font-size: 0.875rem; font-weight: 600; color: #1f2937; margin: 0; }

/* Checklist */
.rm-checklist { display: flex; flex-direction: column; gap: 8px; }
.rm-check-item { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: #374151; padding: 8px; border-radius: 4px; cursor: pointer; }
.rm-check-item:hover { background: #fff; }

/* Reject Form */
.rm-reject-box { background: #fef2f2; border: 2px solid #fecaca; border-radius: 8px; padding: 16px; }
.rm-reject-box textarea { width: 100%; border: 1px solid #fca5a5; border-radius: 6px; padding: 8px; margin-top: 8px; font-family: inherit; }
.rm-reject-box textarea:focus { outline: none; border-color: #ef4444; ring: 2px red; }

/* Footer */
.rm-footer {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--gray-color);
  display: flex; justify-content: space-between; align-items: center;
}
.rm-footer-left { display: flex; align-items: center; gap: 12px; }
.rm-pending-text { font-size: 0.875rem; color: #6b7280; }
.flex-row { display: flex; gap: 12px; }

/* Buttons */
.btn-gray { background: #e5e7eb; color: #374151; padding: 12px 24px; border-radius: 6px; font-size: 1rem; font-weight: 600; border: none; cursor: pointer; }
.btn-gray:hover { background: #d1d5db; }

.btn-green { background: #16a34a; color: white; padding: 12px 32px; border-radius: 6px; font-size: 1rem; font-weight: 600; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.btn-green:hover { background: #15803d; }

.btn-red-outline { background: white; border: 1px solid #dc2626; color: #dc2626; padding: 11px 24px; font-size: 1rem; border-radius: 6px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.btn-red-outline:hover { background: #fef2f2; }

.btn-red-solid { background: #dc2626; color: white; padding: 12px 32px; border-radius: 6px; font-weight: 600; border: none; cursor: pointer; }
.btn-red-solid:disabled { background: #9ca3b8; cursor: not-allowed; }

/* Icons size helpers */
.icon-sm { width: 20px; height: 20px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 96px; height: 96px; }
.font-mono { font-family: monospace; }

#review-modal, #review-modal * {
  font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
}

#review-modal i.fas, #review-modal i.fa, #review-modal i.far, #review-modal i.fab {
  font-family: 'Font Awesome 5 Free' !important;
  font-weight: 900 !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}