/* Create / edit recruitment: apply-types editor */

.rp-apply-types-root {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rp-apply-types-root.is-apply-types-on {
  border-color: #c7d2fe;
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.10);
}

.rp-apply-types-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rp-apply-types-head-text {
  flex: 1 1 auto;
  min-width: 0;
}

.rp-apply-types-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.35;
}

.rp-apply-types-title i {
  color: #6366f1;
  font-size: 1.15rem;
}

.rp-apply-types-desc {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.45;
}

.rp-apply-types-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8ecf4;
}

.rp-apply-types-hint {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.rp-apply-types-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rp-apply-type-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rp-apply-type-row:focus-within {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.rp-apply-type-index {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #4338ca;
  background: #eef2ff;
}

.rp-apply-type-fields {
  flex: 1 1 auto;
  min-width: 0;
}

.rp-apply-type-label {
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 0.55rem 0.8rem !important;
  font-size: 0.92rem !important;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc !important;
  box-shadow: none !important;
}

.rp-apply-type-label:focus {
  border-color: #818cf8 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.rp-apply-type-remove {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #e11d48;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.rp-apply-type-remove:hover {
  background: #ffe4e6;
  transform: translateY(-1px);
}

.rp-apply-types-add {
  margin-top: 10px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: 0.4rem 0.95rem !important;
  border: 1px dashed #a5b4fc !important;
  color: #4338ca !important;
  background: #eef2ff !important;
}

.rp-apply-types-add:hover {
  background: #e0e7ff !important;
  border-style: solid !important;
}

/* Filter pills + applicant badge (shared look) */
.rp-apply-type-pill {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
}

.rp-apply-type-pill.is-active {
  background: #6366f1;
  color: #fff;
  border-color: transparent;
}

.applicant-apply-type-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  white-space: nowrap;
}

/* Redesigned Modern Status Pills & Proposed Remuneration Pill */
.applicant-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.4;
}
.applicant-status-pill--pending {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}
.applicant-status-pill--pending::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
  flex-shrink: 0;
}
.applicant-status-pill--approved {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}
.applicant-status-pill--approved::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  flex-shrink: 0;
}
.applicant-status-pill--rejected {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}
.applicant-status-pill--rejected::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  flex-shrink: 0;
}
.applicant-status-pill--other {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}
.applicant-proposed-remun-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.4;
  background: #eef2ff !important;
  color: #4338ca !important;
  border: 1px solid #c7d2fe !important;
  box-shadow: 0 1px 2px rgba(67, 56, 202, 0.08);
}
.applicant-proposed-remun-pill i {
  font-size: 0.82rem;
  color: #6366f1;
}
