/* RemoteJOB: estilos login + panel (derivado de referencia de diseño) */
*, *::before, *::after { box-sizing: border-box; }
html.clone-login-root, body.clone-login-body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f0f8ff 50%, #ffffff 100%);
  background-attachment: fixed;
}

@keyframes slideInFromLeft {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes fallAndFade {
  0% { transform: translateY(-50px) translateX(0) rotate(0deg) scale(1); opacity: 0; }
  2% { opacity: 0.6; }
  50% { transform: translateY(50vh) translateX(40px) rotate(180deg) scale(1.1); opacity: 0.6; }
  98% { opacity: 0.4; }
  100% { transform: translateY(calc(100vh + 50px)) translateX(-40px) rotate(360deg) scale(0.7); opacity: 0; }
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  max-width: 100vw;
  max-height: 100vh;
  background: radial-gradient(circle, rgba(219, 234, 254, 0.6) 0%, rgba(191, 219, 254, 0.4) 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}
.particles-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
  min-height: 600px;
}
.music-note {
  position: absolute;
  font-size: 36px;
  color: rgba(219, 234, 254, 1);
  opacity: 0.6;
  animation: fallAndFade 8s linear forwards;
  user-select: none;
  top: -50px;
  line-height: 1;
}
.music-note::before { content: '♪'; display: block; }

.login-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 380px;
  animation: slideInFromLeft 0.5s ease-out;
}
.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  min-height: 450px;
}
.login-logo {
  position: relative;
  display: inline-block;
  width: 100%;
  font-size: 28px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  text-align: center;
}
.login-welcome {
  font-size: 32px;
  font-weight: 700;
  color: rgb(30, 41, 59);
  margin-bottom: 6px;
  text-align: center;
}
.login-subtitle {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 24px;
  text-align: center;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 6px;
}
.form-label .required { color: #dc2626; }
.form-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}
.form-input::placeholder { color: #94a3b8; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  -webkit-appearance: none;
}
.btn-login {
  width: 100%;
  height: auto;
  padding: 10px 16px;
  background: #0066ff;
  color: #ffffff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  transition: background 0.15s;
  margin-top: 4px;
}
.btn-login:hover { background: #0052cc; }
.btn-full { width: 100%; }

@media (max-width: 480px) {
  .login-card { padding: 32px 24px; }
}

/* —— Panel admin (aside + main) —— */
body.dashboard-page {
  margin: 0;
  overflow: auto;
  overflow-x: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  background: #ffffff;
}
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: #ffffff;
  overflow: hidden;
  width: 100%;
}
.sidebar {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  background: rgb(248, 250, 252);
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  box-sizing: border-box;
}
.sidebar-header {
  padding: 20px 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sidebar-logo {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}
.sidebar-logo .logo-accent {
  position: absolute;
  top: -4px;
  left: 0.3em;
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  color: #1e293b;
}
.sidebar-nav {
  flex: 1;
  padding: 8px 1.5rem;
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
}
.nav-section { margin-bottom: 12px; width: 100%; }
.nav-section-title {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0 6px;
  margin: 0;
}
.nav-list { list-style: none; padding: 0; margin: 0; width: 100%; }
.nav-li {
  list-style: none;
  margin: 0 0 2px 0;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  transition: background 0.15s;
}
.nav-li:hover:not(.active) { background: #ddd !important; }
.nav-li.active { background: rgb(219, 234, 254) !important; }
.nav-item {
  display: flex !important;
  align-items: center !important;
  padding: 8px 12px !important;
  color: rgb(30, 41, 59);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  gap: 10px !important;
  min-height: 36px !important;
  width: 100%;
  border-radius: 6px;
}
.nav-li.active .nav-item,
.nav-li.active .nav-icon { color: rgb(29, 78, 216) !important; }
.nav-icon {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  color: #94a3b8;
  font-size: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.nav-text { flex: 1; white-space: nowrap; }

.sidebar-footer {
  padding: 12px 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: rgb(248, 250, 252);
  margin-top: auto;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6366f1;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role { font-size: 10px; color: #94a3b8; text-transform: capitalize; }
.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #94a3b8;
  text-decoration: none;
}
.sidebar-logout:hover { background: #fee2e2; color: #dc2626; }

.dashboard-main {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  width: calc(100% - 240px);
  max-width: calc(100% - 240px);
  background: #ffffff;
}
.dashboard-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.dashboard-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}
.dashboard-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: #ffffff;
}
.panel-intro {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  max-width: 560px;
}

/* —— Admin: ofertas laborales (cabecera estilo campañas + tabla + modal) —— */
.page-admin-ofertas { max-width: 100%; }
.coord-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 16px;
}
.coord-section-header-with-export { align-items: center; }
.coord-section-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.coord-section-header-right { display: flex; align-items: center; gap: 8px; }
.coord-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e0e7ff;
  color: #4338ca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.coord-section-icon .ti { font-size: 18px; }
.coord-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}
.coord-section-count {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
}
.rj-flash {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.rj-flash-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.rj-flash-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.rj-ofertas-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.rj-filter { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.rj-filter-grow { flex: 1; min-width: 200px; }
.rj-filter-label { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
.rj-filter-input {
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
}
.rj-filter-input:focus { outline: none; border-color: #0066ff; box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.12); }
.rj-btn-primary, .rj-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.rj-btn-primary {
  background: #0066ff;
  color: #fff;
}
.rj-btn-primary:hover { background: #0052cc; }
.rj-btn-secondary {
  background: #fff;
  color: #334155;
  border-color: #e2e8f0;
}
.rj-btn-secondary:hover { background: #f8fafc; }
.rj-btn-link {
  font-size: 13px;
  font-weight: 600;
  color: #0066ff;
  text-decoration: none;
  padding: 8px 4px;
}
.rj-btn-link:hover { text-decoration: underline; }

/* Tabla ofertas: estilo campañas admin (cp-table + striped + acciones) */
.page-admin-ofertas .admin-ofertas-table-wrap.cp-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  overflow-x: auto;
  background: #fff;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  min-width: 820px;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table thead tr {
  background: #f8fafc;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table th {
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table th.cp-th-num {
  width: 2rem;
  min-width: 1.75rem;
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table th.rj-th-flag {
  width: 40px;
  min-width: 40px;
  text-align: center;
  vertical-align: middle;
  padding: 4px 4px;
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-td-flag {
  text-align: center;
  vertical-align: middle;
  padding: 4px 4px;
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-country-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 5px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
  background: #f8fafc;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #334155;
  line-height: 1;
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-country-code--empty,
.page-admin-ofertas .admin-ofertas-promo-table .rj-country-code--unknown {
  color: #94a3b8;
  font-weight: 600;
}
.page-admin-ofertas .admin-ofertas-promo-table th.rj-th-flag .rj-country-code-h {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table th.rj-th-metric {
  text-align: right;
}
/* Bloque Gestión: mismo lenguaje visual que filtros / cabeceras (sutil, sin marcos pesados) */
.page-admin-ofertas .admin-ofertas-promo-table.cp-table th.rj-th-group {
  text-align: center;
  background: #e8edf3;
  color: #334155;
  border-bottom: 1px solid #cbd5e1;
  letter-spacing: 0.04em;
  font-weight: 600;
  box-shadow:
    inset 2px 0 0 rgba(0, 102, 255, 0.14),
    inset 0 -1px 0 rgba(0, 102, 255, 0.07);
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table thead tr:nth-child(2) th {
  text-align: right;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding-top: 2px;
  padding-bottom: 3px;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table thead tr:nth-child(2) th.rj-th-gestion {
  text-align: center;
  background: #eef2f6;
  color: #475569;
  border-bottom: 1px solid #cbd5e1;
  font-weight: 600;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table thead tr:nth-child(2) th.rj-th-gestion--start {
  box-shadow: inset 2px 0 0 rgba(0, 102, 255, 0.22);
  padding-left: 6px;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table thead tr:nth-child(2) th.rj-th-gestion--end {
  padding-right: 6px;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table thead tr:nth-child(2) th.rj-th-metric-sub {
  font-weight: 600;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table th.cp-th-actions--icon-col {
  width: 72px;
  min-width: 72px;
  padding: 4px 4px;
  text-align: center;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table td {
  padding: 3px 6px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  color: rgba(30, 41, 59, 0.85);
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-cargo-public-link {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-cargo-public-link:hover {
  color: inherit;
  font-weight: 500;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table tbody tr:nth-child(even) {
  background: #fafbfc;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table tbody tr:nth-child(odd) {
  background: #ffffff;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table tbody tr:hover {
  background: #f4f7ff;
}
.page-admin-ofertas .admin-ofertas-promo-table.cp-table tbody tr:last-child td {
  border-bottom: none;
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-empty-cell {
  padding: 14px 12px !important;
  font-size: 12px;
}
.page-admin-ofertas .admin-ofertas-promo-table .cp-promo-row-num {
  text-align: center;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-td-metric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #334155;
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-td-gestion {
  text-align: center;
  background: rgba(226, 232, 240, 0.45);
  color: #1e293b;
  font-weight: 600;
}
.page-admin-ofertas .admin-ofertas-promo-table tbody tr:nth-child(even) .rj-td-gestion {
  background: rgba(203, 213, 225, 0.35);
}
.page-admin-ofertas .admin-ofertas-promo-table tbody tr:hover .rj-td-gestion {
  background: rgba(191, 219, 254, 0.55);
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-td-gestion--start {
  box-shadow: inset 2px 0 0 rgba(0, 102, 255, 0.2);
  padding-left: 6px;
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-td-gestion--end {
  padding-right: 6px;
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-td-usd {
  color: #0f766e;
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-td-pct {
  font-weight: 600;
  color: #334155;
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-td-gestion .rj-muted {
  color: #94a3b8;
  opacity: 1;
}
.page-admin-ofertas .admin-ofertas-promo-table .rj-td-salario {
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.page-admin-ofertas .admin-ofertas-promo-table .cp-td-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding-left: 2px;
  padding-right: 3px;
}
.page-admin-ofertas .cp-promo-quiz-btn .ti {
  font-size: 15px;
  line-height: 1;
}

/* --- Ofertas: edición JSON + cuestionario (shell compartido) --- */
.page-admin-ofertas .rj-preg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  font-size: 13px;
}
.page-admin-ofertas .rj-preg-crumb {
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.page-admin-ofertas .rj-preg-crumb:hover {
  color: #4f46e5;
}
.page-admin-ofertas .rj-preg-crumb-sep {
  color: #cbd5e1;
  user-select: none;
}
.page-admin-ofertas .rj-preg-flash {
  margin-bottom: 16px;
}
/* Cabecera cuestionario / editar JSON: misma proporción que «Ofertas laborales» */
.page-admin-ofertas .rj-preg-page-header {
  justify-content: flex-start;
}
.page-admin-ofertas .rj-preg-page-header__left {
  align-items: flex-start;
  gap: 8px;
}
.page-admin-ofertas .rj-preg-page-header .coord-section-icon {
  margin-top: 1px;
}
.page-admin-ofertas .rj-preg-page-header__text {
  min-width: 0;
}
.page-admin-ofertas .rj-preg-page-header__text .coord-section-title {
  margin: 0;
}
.page-admin-ofertas .rj-preg-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}
.page-admin-ofertas .rj-preg-intro-card {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}
.page-admin-ofertas .rj-preg-intro-icon {
  flex-shrink: 0;
  font-size: 16px;
  margin-top: 1px;
  color: #94a3b8;
}
.page-admin-ofertas .rj-preg-intro-body strong {
  font-weight: 600;
  color: #475569;
}
.page-admin-ofertas .rj-preg-intro-body code {
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}
.page-admin-ofertas .rj-preg-crumb--current {
  color: #94a3b8;
  cursor: default;
}
.page-admin-ofertas .rj-preg-intro-link {
  color: #475569;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  text-underline-offset: 2px;
}
.page-admin-ofertas .rj-preg-intro-link:hover {
  color: #1e293b;
  text-decoration-color: #94a3b8;
}

/* Cuestionario de preselección */
.page-admin-ofertas.rj-ofertas-preguntas .rj-preguntas-layout {
  max-width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
.page-admin-ofertas.rj-ofertas-preguntas fieldset.rj-preg-card {
  margin: 0;
  min-width: 0;
  border: none;
  padding: 0;
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-card {
  margin: 0 0 5px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-card__head {
  padding: 6px 0;
  background: #fafbfc;
  border-bottom: 1px solid #f1f5f9;
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-card__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-grid {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-field--tipo {
  max-width: 260px;
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 3px;
  letter-spacing: 0.02em;
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-label-hint {
  font-weight: 500;
  color: #94a3b8;
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-select {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  color: #0f172a;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 11px;
  appearance: none;
  padding-right: 30px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-select:hover {
  border-color: #cbd5e1;
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-select:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.12);
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 72px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: #1e293b;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-textarea::placeholder {
  color: #94a3b8;
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-textarea:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.12);
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-textarea--opts {
  font-size: 12px;
  line-height: 1.45;
  min-height: 64px;
  max-height: 180px;
}
.page-admin-ofertas.rj-ofertas-preguntas .rj-preg-actions-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

/* Editar oferta (JSON) — mismo shell */
.page-admin-ofertas.rj-ofertas-edit .rj-admin-offer-layout {
  max-width: 100%;
  margin: 0;
}
.page-admin-ofertas.rj-ofertas-edit .rj-oferta-json-wrap {
  margin-bottom: 8px;
}
.page-admin-ofertas.rj-ofertas-edit .rj-oferta-json-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 420px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #1e293b;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.page-admin-ofertas.rj-ofertas-edit .rj-oferta-json-textarea:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.12);
  background: #fff;
}
.page-admin-ofertas.rj-ofertas-edit .rj-oferta-json-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.page-admin-ofertas.rj-ofertas-edit .rj-oferta-json-actions .rj-btn-secondary {
  text-decoration: none;
}
.page-admin-ofertas.rj-ofertas-edit .rj-preg-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.page-admin-ofertas.rj-ofertas-edit .rj-oferta-json-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
}
.page-admin-ofertas.rj-ofertas-edit .rj-oferta-json-submit .ti {
  font-size: 18px;
}
.page-admin-ofertas .cp-promo-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
  color: #3730a3;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.12);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s, color 0.15s;
  text-decoration: none;
}
.page-admin-ofertas .cp-promo-edit-btn:hover {
  background: linear-gradient(135deg, #c7d2fe 0%, #bfdbfe 100%);
  color: #312e81;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.18);
}
.page-admin-ofertas .cp-promo-edit-btn:active {
  transform: scale(0.98);
}
.page-admin-ofertas .cp-promo-edit-btn.cp-promo-edit-btn--icon,
.page-admin-ofertas .cp-promo-db-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  min-width: 28px;
  min-height: 28px;
  gap: 0;
  border-radius: 6px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #64748b;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
}
.page-admin-ofertas .cp-promo-edit-btn.cp-promo-edit-btn--icon:hover,
.page-admin-ofertas .cp-promo-db-btn:hover {
  background: rgba(91, 124, 255, 0.12);
  color: #5b7cff;
  box-shadow: none;
}
.page-admin-ofertas .cp-promo-edit-btn.cp-promo-edit-btn--icon:active,
.page-admin-ofertas .cp-promo-db-btn:active {
  transform: scale(0.96);
}
.page-admin-ofertas .cp-promo-edit-btn.cp-promo-edit-btn--icon svg {
  width: 14px;
  height: 14px;
  opacity: 1;
}
.page-admin-ofertas .cp-promo-db-btn .ti {
  font-size: 14px;
  line-height: 1;
}
.page-admin-ofertas .cp-promo-db-btn.cp-promo-db-btn--danger {
  color: #b91c1c;
}
.page-admin-ofertas .cp-promo-db-btn.cp-promo-db-btn--danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
.page-admin-ofertas .cp-promo-db-btn.cp-promo-db-btn--hide {
  color: #7c8aa2;
}
.page-admin-ofertas .cp-promo-db-btn.cp-promo-db-btn--hide:hover {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}
.page-admin-ofertas .rj-inline-del-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  align-items: center;
}
.rj-td-num { white-space: nowrap; font-variant-numeric: tabular-nums; color: #64748b; }
.rj-td-long { max-width: 220px; line-height: 1.45; }
.rj-td-lists { max-width: 200px; }
.rj-offer-list {
  margin: 0;
  padding-left: 1.1em;
  max-height: 140px;
  overflow-y: auto;
  line-height: 1.4;
}
.rj-offer-list li { margin: 0 0 4px 0; }
.rj-muted { color: #94a3b8; }
.rj-empty-cell {
  text-align: center;
  color: #64748b;
  padding: 28px 16px !important;
}
.rj-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rj-modal-backdrop[hidden] { display: none !important; }
.rj-modal {
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  padding: 0;
}
.rj-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.rj-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}
.rj-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rj-modal-close:hover { background: #f1f5f9; color: #1e293b; }
.rj-modal form { padding: 16px 20px 20px; }
.rj-modal-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.rj-modal-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}
.rj-modal-textarea {
  width: 100%;
  min-height: 200px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  resize: vertical;
  box-sizing: border-box;
}
.rj-modal-textarea:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.12);
}
.rj-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

/* —— Admin: pipeline postulaciones (tablero condensado) —— */
.page-admin-gestion {
  max-width: 100%;
}
.page-admin-gestion .admin-gestion-page-head {
  margin-bottom: 10px;
}
.page-admin-gestion .admin-gestion-page-head .coord-section-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.admin-gestion-lede {
  margin: 0 0 18px;
  padding: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  max-width: 42rem;
}
.admin-gestion-metric-card {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
}
.admin-gestion-metric-card__head {
  margin-bottom: 8px;
}
.admin-gestion-metric-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}
.admin-gestion-metric-card__hint {
  margin: 3px 0 0;
  font-size: 11px;
  color: #64748b;
}
.admin-gestion-metric-card__chart-wrap {
  position: relative;
  height: 165px;
}
.admin-pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 200px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  overflow-x: auto;
  overflow-y: visible;
}
.admin-pipeline-col {
  flex: 1 1 0;
  min-width: 148px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  background: #fff;
  overflow: visible;
}
.admin-pipeline-col:last-child {
  border-right: none;
}
.admin-pipeline-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #fafbfc;
}
.admin-pipeline-col__title {
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.01em;
}
.admin-pipeline-col__count {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #e2e8f0;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 1.25em;
  text-align: center;
  line-height: 1.35;
}
.admin-pipeline-col__body {
  flex: 1;
  padding: 5px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: visible;
}
.admin-contact-bucket {
  border: 1px solid #e8edf5;
  border-radius: 7px;
  background: #f9fbff;
  overflow: visible;
}
.admin-contact-bucket__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
  border-bottom: 1px solid #e8edf5;
}
.admin-contact-bucket__label {
  font-size: 10px;
  font-weight: 600;
  color: #3b82f6;
}
.admin-contact-bucket__count {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}
.admin-contact-bucket__body {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 16px;
}
.admin-pipeline-col__body--over {
  background: #eff6ff;
  outline: 1px dashed #93c5fd;
  outline-offset: -2px;
}
.admin-pipeline-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px 7px;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.admin-pipeline-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.admin-pipeline-card:active {
  cursor: grabbing;
}
.admin-pipeline-card--dragging {
  opacity: 0.65;
}
.admin-pipeline-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.admin-pipeline-card__meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.admin-pipeline-card__name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}
.admin-pipeline-card__group-badge {
  font-size: 0.85em;
  font-weight: 700;
  color: #64748b;
  margin-left: 0.15em;
  white-space: nowrap;
}
.admin-pipeline-card__name-wrap {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-cargo-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #94a3b8;
  cursor: help;
  flex-shrink: 0;
}
.admin-cargo-tooltip .ti {
  font-size: 14px;
  line-height: 1;
}
.admin-cargo-tooltip__bubble {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  transform: translateY(4px);
  min-width: 150px;
  max-width: 240px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #dbe5f3;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
  z-index: 12;
}
.admin-cargo-tooltip__bubble::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 100%;
  transform: none;
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #dbe5f3 transparent transparent transparent;
}
.admin-cargo-tooltip:hover .admin-cargo-tooltip__bubble,
.admin-cargo-tooltip:focus-within .admin-cargo-tooltip__bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.admin-pipeline-card__age {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-top: 1px;
}
.admin-pipeline-card__hide-btn {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  background: #fff1f2;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.admin-pipeline-card__hide-btn .ti {
  font-size: 12px;
  line-height: 1;
}
.admin-pipeline-card__hide-btn:hover {
  background: #ffe4e6;
  color: #b91c1c;
}
