/* ═══════════════════════════════════════════════════
   AURA · ONBOARDING INTELLIGENCE
   css/components.css — UI Components
   ═══════════════════════════════════════════════════ */

/* ── BUTTONS ────────────────────────────────────── */
.btn-send {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sage);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .18s, transform .1s;
}

.btn-send:hover { 
  background: var(--sage); transform: scale(1.01); 
  background: #2292FD;
}

.btn-icon { display: block; pointer-events: none; }
.btn-mic.recording .btn-icon {
  filter: brightness(0) saturate(100%) invert(35%) sepia(80%) saturate(600%) hue-rotate(310deg);
}

.btn-mic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--mist);
  transition: all .18s;
}

.btn-mic:hover   { border-color: var(--teal); color: var(--teal); }
.btn-mic.active  { background: rgba(255,107,138,.15); border-color: var(--rose); color: var(--rose); }


/* ── LIVE INDICATOR ─────────────────────────────── */
.live-pip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
}

.ldot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 10px var(--blue-bright);
  animation: ldotPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── CANDIDATE CARDS ────────────────────────────── */
.cand-card {
  /* background: var(--ink3); */
  background: #FFFFFF;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 13px 15px;
  cursor: pointer;
  transition: transform .18s, border-color .2s, box-shadow .2s;
  animation: cardIn .35s ease both;
}

.cand-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18,131,239,.55);
}
.cand-card.ready:hover   { border-color: rgba(168,224,99,.55); }
.cand-card.process:hover { border-color: rgba(255,170,68,.55); }
.cand-card.blocked:hover { border-color: rgba(255,107,138,.55); }

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.card-avatar, .modular-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: rgba(37, 99, 235, .15);
  color: #1E3A8A;
  /* box-shadow: 0 4px 12px rgba(18,131,239,.25); */
}

.card-info { flex: 1; min-width: 0; }

.card-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.card-role {
  font-size: 11px;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-progress {
  height: 3px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cp-fill { height: 100%; border-radius: 3px; }

.card-footer {
  display: flex;
  align-items: center;
  align-items: flex-end;
  justify-content: space-between;
}

.card-date { font-size: 10px; color: var(--mist); }

.card-meta {
  font-size: 11px;
  color: var(--mist);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-actions {
  margin-top: 10px;
  /* display: flex; */
  gap: 6px;
}
.card-action-btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  color: #F1F5FA;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, border-color .15s ease;
}
.card-action-btn:active { transform: translateY(1px); }

.card-action-btn.btn-teal {
  /* background: linear-gradient(135deg, rgba(9,34,132,.22), rgba(6,23,92,.28)); */
  background: var(--blue-soft);
  border-color: rgba(18,131,239,.45);
}
.card-action-btn.btn-teal:hover {
  background: var(--blue-bright);
  border-color: rgba(18,131,239,.75);
}

.card-action-btn.btn-green {
  background: linear-gradient(135deg, rgba(76,175,80,.22), rgba(56,142,60,.28));
  border-color: rgba(76,175,80,.55);
}
.card-action-btn.btn-green:hover {
  background: linear-gradient(135deg, rgba(76,175,80,.36), rgba(56,142,60,.42));
  border-color: rgba(76,175,80,.8);
}

.card-action-btn.btn-yellow {
  background: linear-gradient(135deg, rgba(255,193,7,.22), rgba(255,160,0,.28));
  border-color: rgba(255,193,7,.55);
  color: #FFE9A8;
}
.card-action-btn.btn-yellow:hover {
  background: linear-gradient(135deg, rgba(255,193,7,.36), rgba(255,160,0,.42));
  border-color: rgba(255,193,7,.8);
}

.card-action-btn.btn-red {
  background: linear-gradient(135deg, rgba(244,67,54,.22), rgba(211,47,47,.28));
  border-color: rgba(244,67,54,.55);
  color: #FFD2CD;
}
.card-action-btn.btn-red:hover {
  background: linear-gradient(135deg, rgba(244,67,54,.36), rgba(211,47,47,.42));
  border-color: rgba(244,67,54,.8);
}

.card-action-btn.btn-rose {
  background: #FF6B8A;
  border-color: #FF6B8A;
  color: #FFFFFF;
}
.card-action-btn.btn-rose:hover {
  background: #D94F6C;
  border-color: #D94F6C;
}

/* ── CHAT BUBBLE ────────────────────────────────── */
.chat-bubble {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 8dvh;
  background: rgba(8,15,44,.94);
  border: 1px solid rgba(18,131,239,.22);
  border-radius: 12px 12px 12px 4px;
  padding: 11px 15px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--snow);
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
  transform: translateY(-10px);
  opacity: 0;
  transition: all .4s var(--ease);
  max-height: 110px;
  overflow-y: auto;
  z-index: 10;
}

.chat-bubble.visible { transform: translateY(0); opacity: 1; }

/* ── SPEAK RINGS ────────────────────────────────── */
.speak-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(37,99,235,.3);
  transform: translate(-50%, -60%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.speak-ring-1 { width: 155px; height: 155px; }
.speak-ring-2 { width: 215px; height: 215px; }
.speak-ring-3 { width: 275px; height: 275px; }

/* ── PILLS / BADGES ─────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .3px;
}

.pill-green  { background: rgba(168,224,99,.12);  color: var(--lime);   border: 1px solid rgba(168,224,99,.25); }
.pill-amber  { background: rgba(255,170,68,.12);   color: var(--amber);  border: 1px solid rgba(255,170,68,.25); }
.pill-rose   { background: rgba(255,107,138,.12);  color: var(--rose);   border: 1px solid rgba(255,107,138,.25); }
.pill-teal   { background: rgba(37,99,235,.12);   color: var(--teal);   border: 1px solid rgba(37,99,235,.25); }
.pill-violet { background: rgba(155,143,245,.12);  color: var(--violet); border: 1px solid rgba(155,143,245,.25); }

/* ── MODAL ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,8,16,.82);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: 640px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: translateY(24px) scale(.97);
  transition: transform .3s var(--ease);
}

.modal-overlay.open .modal { transform: none; }

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
}

.modal-sub { font-size: 11px; color: var(--mist); margin-top: 2px; }

.modal-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--mist);
  font-size: 16px;
  transition: all .18s;
  flex-shrink: 0;
}
.modal-close svg { display: block; }

.modal-close:hover { background: rgba(255,107,138,.12); color: var(--rose); border-color: var(--rose); }

.modal-stats {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.mstat {
  flex: 1;
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
}

.mstat-num {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
}

.mstat-lbl {
  font-size: 10px;
  color: var(--mist);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* ── MODAL INNER COMPONENTS ─────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-box {
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: var(--rs);
  padding: 11px 14px;
}

.detail-label {
  font-size: 10px;
  color: var(--mist);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 5px;
}

.detail-value { font-size: 13px; font-weight: 500; }
.detail-sub   { font-size: 11px; color: var(--mist); margin-top: 2px; }

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 9px;
}

.checklist-wrap { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }

.step-chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sc-done  { background: rgba(168,224,99,.10); color: var(--lime); }
.sc-block { background: rgba(255,107,138,.10); color: var(--rose); }

.progress-bar-wrap { margin-bottom: 16px; }

.pb-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--mist);
  margin-bottom: 5px;
}

.pb-track {
  height: 8px;
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  overflow: hidden;
}

.pb-fill { height: 100%; border-radius: 8px; }

.esc-card {
  background: rgba(255,170,68,.06);
  border: 1px solid rgba(255,170,68,.2);
  border-radius: var(--rs);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.esc-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.esc-person {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.esc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
.esc-name { font-size: 12px; font-weight: 600; }
.esc-role { font-size: 10px; color: var(--mist); }

.alert-box {
  border-radius: var(--rs);
  padding: 10px 13px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.alert-green  { background: rgba(168,224,99,.07); border: 1px solid rgba(168,224,99,.2); color: var(--lime); }
.alert-amber  { background: rgba(255,170,68,.07);  border: 1px solid rgba(255,170,68,.2); color: var(--amber); }
.alert-rose   { background: rgba(255,107,138,.07); border: 1px solid rgba(255,107,138,.2); color: var(--rose); }

.sys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 16px;
}

.sys-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 11px;
}

.sys-name  { color: var(--mist); }
.sys-stat  { font-weight: 600; }
.sys-ok    { color: var(--lime); }
.sys-warn  { color: var(--amber); }
.sys-err   { color: var(--rose); }

.ask-max-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: opacity .18s;
  margin-top: 4px;
}

.ask-max-btn:hover { opacity: .75; }

/* ── FORM MODAL ─────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.fg-full { grid-column: 1 / -1; }

.flabel {
  font-size: 10px;
  font-weight: 600;
  color: var(--mist);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 4px;
  display: block;
}

.ffield {
  width: 100%;
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--snow);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
  resize: none;
}

.ffield:focus { border-color: var(--teal); }
.ffield option { background: var(--ink3); }
select.ffield  { padding-right: 28px; }

.fsection {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin: 14px 0 8px;
  grid-column: 1 / -1;
}

.fcheck {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.fcheck input[type=checkbox] { accent-color: var(--teal); width: 14px; height: 14px; }

.form-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.fbtn-primary {
  flex: 1;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  color: #F1F5FA;
  background: var(--blue-soft);
  border: 1px solid rgba(18, 131, 239, .45);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, border-color .15s ease;
}

.fbtn-primary:hover {
  background: var(--blue-bright);
  border-color: rgba(18, 131, 239, .75);
}

.fbtn-primary:active { transform: translateY(1px); }

.fbtn-cancel {
  padding: 10px 18px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mist);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all .18s;
}

.fbtn-cancel:hover { border-color: var(--rose); color: var(--rose); }

/* ── SCREENING BADGES (status chips on screening cards) ── */
.screening-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .3px;
}
.badge-ok      { background: rgba(168,224,99,.12); color: #A8E063; border: 1px solid rgba(168,224,99,.25); }
.badge-pending { background: rgba(255,170,68,.12);  color: #FFAA44; border: 1px solid rgba(255,170,68,.25); }
.badge-error   { background: rgba(255,107,138,.12); color: #FF6B8A; border: 1px solid rgba(255,107,138,.25); }
.badge-inactive{ background: rgba(255,255,255,.05); color: #8FA3C0; border: 1px solid rgba(255,255,255,.1); }

/* ── HOLD QUEUE ─────────────────────────────────── */
#hold-queue-section {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding: 16px 0 20px;
}

.hq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--rose);
}

.hq-badge {
  background: var(--rose);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.hq-card {
  background: var(--ink3);
  border: 1px solid rgba(255,107,138,.25);
  border-radius: var(--r);
  padding: 13px 15px;
  margin-bottom: 8px;
  animation: cardIn .35s ease both;
}

.hq-overdue { border-color: var(--rose); box-shadow: 0 0 12px rgba(255,107,138,.2); }

.hq-card-top { margin-bottom: 5px; }
.hq-name  { font-weight: 600; font-size: 13px; }
.hq-role  { font-size: 11px; color: var(--mist); }

.hq-reason {
  font-size: 12px;
  color: var(--cloud);
  margin-bottom: 8px;
  line-height: 1.4;
}

.hq-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
}

.hq-escalate { color: var(--amber); }
.hq-sla      { color: var(--mist); }

.hq-actions { display: flex; gap: 8px; }

.hq-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .18s, transform .1s;
}

.hq-btn:hover { opacity: .85; transform: translateY(-1px); }

.hq-continue {
  background: rgba(168,224,99,.10);
  color: var(--lime);
  border: 1px solid rgba(168,224,99,.3);
}

.hq-stop {
  background: rgba(255,107,138,.10);
  color: var(--rose);
  border: 1px solid rgba(255,107,138,.3);
}

.hq-empty {
  font-size: 12px;
  color: var(--mist);
  text-align: center;
  padding: 16px 0;
}
/* ── MODULAR TRANSACTIONAL CARD (Screening) ── */
.cand-card.modular {
  /* background: #151921;  */
  /* Slightly darker for contrast */
  background: #FFFFFF; 
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modular-header {
  display: flex;
  align-items: center;
  gap: 12px;
}


.modular-title-wrap {
  flex: 1;
  min-width: 0;
}

.modular-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modular-role {
  font-size: 11px;
  color: #8FA3C0;
  margin-top: 2px;
}

.modular-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.module-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  /* padding: 14px; */
  transition: all 0.3s ease;
}

.module-section.active {
  background:rgba(55, 55, 55, 0.05);
  border:1px dashed rgba(29, 29, 29, 0.25);border-radius:6px;
  padding: 12px;
}

.module-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px dashed rgba(23, 200, 180, 0.3);
  border-radius: 8px;
  color: #2563EB;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.module-btn:hover {
  background: rgba(23, 200, 180, 0.08);
  border-style: solid;
  border-color: #2563EB;
  transform: translateY(-1px);
}

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-id {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #638fee;
  letter-spacing: 0.5px;
}

.segmented-progress {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}

.prog-seg {
  flex: 1;
  height: 4px;
  background: rgba(113,124,161,0.25);
  border-radius: 2px;
}

.prog-seg.filled {
  background: #748fe5;
}

.module-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.minfo-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.minfo-lbl {
  font-size: 9px;
  text-transform: uppercase;
  color: #5C6F8C;
  letter-spacing: 0.5px;
}

.minfo-val {
  font-size: 11px;
  color: #BDC9D9;
  font-weight: 500;
}

.minfo-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(18,131,239,.10);
  border: 1px solid rgba(18,131,239,.25);
  font: 700 11px/1.4 'Libre Franklin', sans-serif;
  letter-spacing: .02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #638fee;
  text-transform: uppercase;
}

.status-dot-mini {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2563EB;
  box-shadow: 0 0 6px #2563EB;
}

.assignee-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.assignee-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2D3748;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #A0AEC0;
}

/* Compact mode when both are active */
.cand-card.modular.compact .module-section {
  padding: 10px 12px;
}

.cand-card.modular.compact .module-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ffield.disabled {
  background: rgba(255,255,255,.03) !important;
  color: var(--mist) !important;
  cursor: not-allowed !important;
  border-color: rgba(255,255,255,.05) !important;
}


/* ════════════════════════════════════════════════
   RIGHT PANEL — kanban + flow stacking for Ramona
════════════════════════════════════════════════ */
.right-panel-scroll {
  overflow-y: auto !important;
  overflow-x: hidden;
}
.right-panel-scroll .kanban.kanban-with-flow {
  flex: 0 0 auto;
  max-height: 360px;
  overflow-y: hidden;
  border-bottom: 1px solid var(--line);
}

/* ════════════════════════════════════════════════
   RAMONA FLOW PANEL
════════════════════════════════════════════════ */
.rf-panel {
  padding: 22px 26px 28px;
  background: linear-gradient(180deg, rgba(11,18,36,.4), rgba(11,18,36,0));
}

.rf-header { margin-bottom: 18px; }

.rf-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.rf-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--snow);
}

.rf-subtitle {
  font-size: 12px;
  color: var(--mist);
  margin-top: 2px;
}

.rf-progress { min-width: 220px; flex: 1; max-width: 320px; }

.rf-prog-bar {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  overflow: hidden;
}
.rf-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  border-radius: 6px;
  transition: width .35s ease;
}
.rf-prog-label {
  font-size: 11px;
  color: var(--mist);
  margin-top: 6px;
  text-align: right;
}
.rf-prog-label strong { color: var(--blue-bright); }

/* candidate selector chips */
.rf-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 20px;
  background: var(--ink3);
  border: 1px solid var(--line);
  color: var(--cloud);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all .18s;
}
.rf-chip:hover { border-color: var(--blue); color: var(--snow); }
.rf-chip.is-active {
  background: var(--blue-tint);
  border-color: var(--blue);
  color: var(--snow);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.rf-chip-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.rf-chip-name { font-weight: 500; letter-spacing: .1px; }

/* grid of section cards */
.rf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.rf-card {
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform .25s var(--ease), border-color .25s, opacity .35s, max-height .4s ease;
  overflow: hidden;
  min-height: 160px;
}

.rf-card:hover { transform: translateY(-2px); }

.rf-card-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue-tint-2), 0 8px 30px rgba(37,99,235,.12);
}
.rf-card-done {
  background: rgba(79,179,122,.06);
  border-color: rgba(79,179,122,.30);
  opacity: .85;
}
.rf-card-pending { opacity: .72; }

.rf-card.is-completing {
  opacity: 0;
  transform: translateY(8px) scale(.98);
}

.rf-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rf-step-no {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--mist);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}
.rf-card-active .rf-step-no { background: var(--blue-tint); color: var(--blue-bright); }
.rf-card-done   .rf-step-no { background: rgba(79,179,122,.15); color: var(--lime); }

.rf-card-icon {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mist);
}
.rf-card-active .rf-card-icon { color: var(--blue-bright); }
.rf-card-done   .rf-card-icon { color: var(--lime); }

.rf-card-title-wrap { flex: 1; min-width: 0; }
.rf-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--snow);
  letter-spacing: .1px;
}
.rf-card-sub {
  font-size: 11px;
  color: var(--mist);
  margin-top: 2px;
}

.rf-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.rf-badge-done    { background: rgba(79,179,122,.15);  color: var(--lime);          border: 1px solid rgba(79,179,122,.35); }
.rf-badge-active  { background: var(--blue-tint-2);     color: var(--blue-bright);   border: 1px solid var(--blue); }
.rf-badge-pending { background: rgba(255,255,255,.05); color: var(--mist);          border: 1px solid var(--line); }

.rf-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* ── CTA buttons inside the panel ── */
.rf-cta {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform .12s, box-shadow .15s;
}
.rf-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,.35); }
.rf-cta:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }

.rf-cta-ghost {
  background: rgba(255,255,255,.04);
  color: var(--mist);
  border-color: var(--line);
}
.rf-cta-ghost:hover { box-shadow: none; transform: none; }

.rf-hint {
  font-size: 10px;
  color: var(--mist);
  text-align: center;
}

.rf-done-msg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--lime);
  background: rgba(79,179,122,.07);
  border: 1px solid rgba(79,179,122,.25);
  border-radius: 8px;
  padding: 8px 11px;
}

/* ── Time badge (Section 2) ── */
.rf-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 20px;
  align-self: flex-start;
}
.rf-time-cool { background: var(--blue-tint);    color: var(--blue-bright);  border: 1px solid var(--blue-line); }
.rf-time-warm { background: rgba(232,154,51,.10); color: var(--amber);        border: 1px solid rgba(232,154,51,.30); }
.rf-time-hot  { background: rgba(229,85,111,.10); color: var(--rose);         border: 1px solid rgba(229,85,111,.35); }

/* ── Activities sub-cards ── */
.rf-activities {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rf-act-block {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 11px 12px;
}
.rf-act-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.rf-act-block-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--cloud);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.rf-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--blue-bright);
  text-decoration: none;
  background: var(--blue-tint);
  border: 1px solid var(--blue-line);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  transition: all .15s;
}
.rf-ext-link:hover { background: var(--blue-tint-2); border-color: var(--blue); }

.rf-act-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 8px;
  transition: opacity .25s;
}
.rf-act-microrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 4px;
  font-size: 11px;
  color: var(--cloud);
  transition: opacity .25s;
}
.rf-row-done { opacity: .45; }
.rf-row-done .rf-row-name,
.rf-row-done .rf-row-name-sm { text-decoration: line-through; }

.rf-row-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.rf-row-name { flex: 1; font-size: 12px; color: var(--snow); }
.rf-row-name-sm { flex: 1; }

.rf-check {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.rf-check-sm { width: 16px; height: 16px; }
.rf-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.rf-check span {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,.03);
  transition: all .15s;
}
.rf-check input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
}
.rf-check input:checked + span::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── Dropzone (Section 4) ── */
.rf-dropzone {
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .18s;
  background: rgba(255,255,255,.02);
}
.rf-dropzone:hover,
.rf-dropzone.is-over {
  border-color: var(--blue);
  background: var(--blue-tint);
}
.rf-dz-ico { color: var(--blue-bright); margin-bottom: 6px; }
.rf-dz-text { font-size: 12px; font-weight: 600; color: var(--snow); }
.rf-dz-sub  { font-size: 10px; color: var(--mist); margin-top: 2px; }

/* ── Excel zone in deductions modal ── */
.rf-excel-zone {
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all .18s;
  background: rgba(255,255,255,.02);
}
.rf-excel-zone:hover,
.rf-excel-zone.is-over {
  border-color: var(--blue);
  background: var(--blue-tint);
}
.rf-excel-ico { color: var(--blue-bright); margin-bottom: 4px; }
.rf-excel-text { font-size: 12px; font-weight: 600; color: var(--snow); }
.rf-excel-sub  { font-size: 10px; color: var(--mist); margin-top: 2px; }

/* ── Summary block (deductions card) ── */
.rf-summary {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 10px 12px;
}
.rf-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--mist);
  padding: 3px 0;
}
.rf-sum-row strong { color: var(--snow); font-weight: 600; }

/* ── Empty state ── */
.rf-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--mist);
}
.rf-empty-ico { color: var(--lime); margin-bottom: 10px; display: flex; justify-content: center; }
.rf-empty-title { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--snow); margin-bottom: 4px; }
.rf-empty-sub { font-size: 12px; }

/* ── Responsive tweaks for the panel ── */
@media (max-width: 860px) {
  .right-panel-scroll .kanban.kanban-with-flow { max-height: none; }
  .rf-panel { padding: 18px; }
  .rf-grid  { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════
   RAMONA · "Onboarding Tasks" column (combobox + card)
════════════════════════════════════════════════ */
.rt-wrap { display: flex; flex-direction: column; gap: 12px; }

.rt-combo { position: relative; }
.rt-combo-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 4px 4px 11px;
  color: var(--mist);
  transition: border-color .18s;
}
.rt-combo.is-open .rt-combo-input-wrap {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.rt-combo-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--snow);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  padding: 8px 0;
}
.rt-combo-input::placeholder { color: var(--mist); }

.rt-combo-toggle {
  width: 28px; height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--mist);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
  transition: transform .18s, color .18s;
}
.rt-combo.is-open .rt-combo-toggle { transform: rotate(-90deg); color: var(--blue-bright); }

.rt-combo-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 10px;
  list-style: none;
  margin: 0; padding: 4px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.rt-combo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background .15s;
}
.rt-combo-item:hover { background: var(--blue-tint); }
.rt-combo-item.is-selected { background: var(--blue-tint-2); }
.rt-combo-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.rt-combo-text { display: flex; flex-direction: column; min-width: 0; }
.rt-combo-name { font-weight: 600; color: var(--snow); }
.rt-combo-meta { font-size: 11px; color: var(--mist); }

.rt-empty {
  text-align: center;
  padding: 22px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--mist);
}
.rt-empty-ico { color: var(--blue-bright); margin-bottom: 6px; }
.rt-empty-title { font-family: 'Playfair Display', serif; font-size: 14px; color: var(--snow); margin-bottom: 2px; }
.rt-empty-sub { font-size: 11px; }

.rt-card {
  background: var(--ink3);
  border: 1px solid var(--blue-line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 6px 24px rgba(37,99,235,.10);
  animation: cardIn .35s ease both;
}

.rt-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.rt-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.rt-headinfo { flex: 1; min-width: 0; }
.rt-name { font-size: 14px; font-weight: 600; color: var(--snow); }
.rt-role { font-size: 11px; color: var(--mist); margin-top: 2px; }

.rt-clock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 18px;
}
.rt-clock-cool { background: var(--blue-tint);    color: var(--blue-bright); border: 1px solid var(--blue-line); }
.rt-clock-hot  { background: rgba(229,85,111,.12); color: var(--rose);        border: 1px solid rgba(229,85,111,.35); }

.rt-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  padding: 8px 10px;
}
.rt-meta {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: var(--cloud);
}
.rt-meta span { margin-left: 4px; word-break: break-all; }

.rt-creds {
  background: rgba(37,99,235,.06);
  border: 1px solid var(--blue-line);
  border-radius: 10px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rt-creds-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--blue-bright);
  text-transform: uppercase;
}
.rt-required {
  color: var(--rose);
  font-size: 9px;
  letter-spacing: .3px;
  font-weight: 700;
  margin-left: auto;
}
.rt-creds-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  align-items: stretch;
}
.rt-input { padding: 8px 10px; font-size: 12px; }
.rt-creds-saved { font-size: 11px; color: var(--lime); display: flex; align-items: center; gap: 4px; }
.rt-creds-hint  { font-size: 11px; color: var(--mist); }

.rt-cta {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .12s, box-shadow .15s, opacity .15s;
}
.rt-cta:disabled { opacity: .5; cursor: not-allowed; }

.rt-cta-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  width: 100%;
  padding: 10px;
}
.rt-cta-primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37,99,235,.35);
}
.rt-cta-secondary {
  background: rgba(255,255,255,.06);
  color: var(--snow);
  border: 1px solid var(--blue-line);
}
.rt-cta-secondary:hover { background: var(--blue-tint-2); border-color: var(--blue); }

/* ════════════════════════════════════════════════
   RAMONA · Escalated card (no progress, two CTAs)
════════════════════════════════════════════════ */
.cand-card.escalated-ramona {
  cursor: default;
  border-color: rgba(229,85,111,.22);
}
.cand-card.escalated-ramona:hover { transform: none; box-shadow: none; }

.esc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.esc-btn {
  border: 0;
  border-radius: 8px;
  padding: 9px 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform .12s, opacity .15s;
}
.esc-btn:hover { transform: translateY(-1px); }
.esc-btn-continue {
  background: var(--blue-soft);
  border: 1px solid rgba(18,131,239,.45);
  color: #F1F5FA;
}
.esc-btn-continue:hover {
  background: var(--blue-bright);
  border-color: rgba(18,131,239,.75);
}
.esc-btn-stop {
  background: #FF6B8A;
  border: 1px solid #FF6B8A;
  color: #FFFFFF;
}
.esc-btn-stop:hover {
  background: #D94F6C;
  border-color: #D94F6C;
}

/* ════════════════════════════════════════════════
   NOTIFICATIONS BELL
════════════════════════════════════════════════ */
.bell-wrap { position: relative; }

.bell-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
}
.bell-btn:hover { border-color: var(--blue); color: var(--blue-bright); background: var(--blue-tint); }

.bell-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bell-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.65);
  z-index: 1000;
  overflow: hidden;
  animation: cardIn .25s ease both;
}

.bell-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.bell-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--snow);
}
.bell-sub { font-size: 11px; color: var(--mist); margin-top: 2px; }

.bell-list { max-height: 320px; overflow-y: auto; }

.bell-item {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  gap: 8px;
  padding: 10px 12px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.bell-item:hover { background: rgba(255,255,255,.02); }
.bell-item:last-child { border-bottom: 0; }
.bell-item-ico { color: var(--amber); padding-top: 1px; }
.bell-item-title { font-size: 12px; font-weight: 600; color: var(--snow); }
.bell-item-msg   { font-size: 11px; color: var(--mist); margin-top: 2px; line-height: 1.4; }
.bell-item-x {
  width: 22px; height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.bell-item-x:hover { background: rgba(229,85,111,.12); color: var(--rose); }

.bell-empty { padding: 22px 16px; text-align: center; color: var(--mist); font-size: 12px; }

/* ════════════════════════════════════════════════
   RAMONA FLOW · extras (warn box, staged rows, math)
════════════════════════════════════════════════ */
.rf-warn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--amber);
  background: rgba(232,154,51,.08);
  border: 1px solid rgba(232,154,51,.25);
  border-radius: 8px;
  padding: 7px 10px;
}

.rf-staged {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rf-staged-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.03);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
}
.rf-staged-name {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cloud);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rf-staged-x {
  width: 18px; height: 18px;
  border: 0;
  border-radius: 5px;
  background: rgba(255,255,255,.04);
  color: var(--mist);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rf-staged-x:hover { background: rgba(229,85,111,.15); color: var(--rose); }

.rf-math {
  background: rgba(37,99,235,.07);
  border: 1px solid var(--blue-line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rf-math-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mist);
}
.rf-math-row strong { color: var(--snow); font-weight: 600; }
.rf-math-net {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--blue-line);
  font-size: 13px;
}
.rf-math-net strong { color: var(--blue-bright); }

.fbtn-primary[disabled] { opacity: .45; cursor: not-allowed; }
.fbtn-primary-armed { box-shadow: 0 6px 18px rgba(37,99,235,.30); }

/* Parsed benefits list inside the deductions modal */
.rf-benefits-list {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rf-benefits-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--cloud);
  padding: 3px 0;
}
.rf-benefits-row strong { color: var(--snow); font-weight: 600; }
.rf-benefits-row em     { color: var(--mist); font-style: normal; font-size: 11px; }
.rf-benefits-total {
  border-top: 1px dashed var(--blue-line);
  padding-top: 6px;
  margin-top: 4px;
  color: var(--blue-bright);
}
.rf-benefits-total strong { color: var(--blue-bright); }

/* "+" button next to a kanban column header (used by Tamara's Excel import) */
.kh-add {
  width: 24px; height: 24px;
  border-radius: 7px;
  border: 1px solid var(--blue-line);
  background: var(--blue-tint);
  color: var(--blue-bright);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .1s, border-color .15s;
}
.kh-add:hover { background: var(--blue-tint-2); border-color: var(--blue); transform: translateY(-1px); }
.kh-add:active { transform: translateY(0); }

/* numeric inputs: hide spinners on Firefox/Chrome since we already show the live total */
.rf-num::-webkit-outer-spin-button,
.rf-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rf-num { -moz-appearance: textfield; }

.msg-input {
  resize: none;            /* Evita que el usuario lo estire manualmente */
  overflow-y: hidden;      /* Oculta la barra de scroll mientras crece */
  /* min-height: 44px;        */
  max-height: 200px;       /* El límite máximo antes de mostrar scroll */
  transition: height 0.1s ease; /* Opcional: hace el crecimiento suave */
  line-height: 1.4;
  padding: 10px;           /* Ajusta según tu diseño */
  box-sizing: border-box;
}

/* ════════════════════════════════════════════════
   RAMONA · SPA TAB BAR (Screening / Onboarding Tasks)
════════════════════════════════════════════════ */
.ramona-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--cloud);
  flex-shrink: 0;
}

.ramona-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px 9px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--mist);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}

.ramona-tab:hover {
  color: #1e2d4e;
  background: rgba(18, 131, 239, .05);
}

.ramona-tab.is-active {
  color: var(--blue-bright);
  border-bottom-color: var(--blue-bright);
  background: rgba(18, 131, 239, .07);
}

.ramona-tab svg {
  flex-shrink: 0;
  opacity: .75;
}

.ramona-tab.is-active svg { opacity: 1; }

.ramona-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(18, 131, 239, .15);
  color: var(--blue-bright);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.ramona-tab-badge-alert {
  background: rgba(229, 85, 111, .15);
  color: var(--rose);
}

/* RAMONA · ESCALATION REASON BADGES */
.esc-reason {
  margin: 8px 0 6px;
}
.esc-reason-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--mist);
  margin-bottom: 5px;
}
.esc-reason-manual {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--mist);
}
.esc-reason-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.esc-rb {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
}
.esc-rb-error {
  color: #FF6B8A;
  background: rgba(229, 85, 111, .12);
  border: 1px solid rgba(229, 85, 111, .3);
}
.esc-rb-warn {
  color: #FAC740;
  background: rgba(250, 199, 64, .12);
  border: 1px solid rgba(250, 199, 64, .3);
}

/* SCREENING MODALS · info banner — same look as .ffield.am-ok */
.modal-info-note {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #F4FBF7;
  border: 1px solid #1FAE7A;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: #0F1B4C;
  font-size: 12px;
  line-height: 1.6;
}

/* TAMARA · RAMONA CLEARED FOOTER */
.ramona-cleared-footer {
  border-top: 1px solid rgba(168, 224, 99, .25);
  padding-top: 12px;
}
.ramona-cleared-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #A8E063;
  margin-bottom: 8px;
}
.ramona-cleared-label .ic {
  display: inline-flex;
  vertical-align: -2px;
  color: currentColor;
}

/* ══════════════════════════════════════════════════════
   RAMONA · NEW HIRES TAB  (ramonaNewHires.js)
   ══════════════════════════════════════════════════════ */

.nh-list { display: flex; flex-direction: column; gap: 0; padding: 0 0 8px; }
.nh-list-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #6B7280; padding: 10px 12px 8px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.nh-list-count {
  margin-left: auto; background: rgba(37,99,235,.2); color: #60A5FA;
  border-radius: 10px; padding: 1px 7px; font-size: 10px; font-weight: 700;
}
.nh-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.04); transition: background .15s;
}
.nh-card:hover { background: rgba(255,255,255,.04); }
.nh-card.is-selected { background: rgba(37,99,235,.12); border-left: 3px solid #3B82F6; }
.nh-card-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.nh-card-info { flex: 1; min-width: 0; }
.nh-card-name { font-size: 13px; font-weight: 600; color: #F1F5F9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nh-card-role { font-size: 10px; color: #94A3B8; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nh-card-meta { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #64748B; margin-top: 2px; }
.nh-status { display: inline-flex; align-items: center; font-size: 11px; font-weight: 500; letter-spacing: .02em; border-radius: 999px; padding: 3px 8px; flex-shrink: 0; white-space: nowrap; }
.nh-status-pending { background: #FFF8E7; border: 1px solid rgba(245,158,11,.45); color: #B45309; }
.nh-status-ready   { background: #EFF6FF; border: 1px solid rgba(37,99,235,.35);  color: #1D4ED8; }
.nh-status-done    { background: #E7F7EE; border: 1px solid #B8E5C7;              color: #1B8350; }

/* Freshservice ticket badge on New Hires cards */
.nh-fs-badge { display: inline-flex; align-items: center; font-size: 10px; font-weight: 600; letter-spacing: .02em; border-radius: 4px; padding: 2px 6px; flex-shrink: 0; }
.nh-fs-badge.fs-open    { background: rgba(37,99,235,.12);   border: 1px solid rgba(37,99,235,.3);  color: #60A5FA; }
.nh-fs-badge.fs-pending { background: rgba(245,158,11,.12);  border: 1px solid rgba(245,158,11,.3); color: #FCD34D; }
.nh-fs-badge.fs-closed  { background: rgba(34,197,94,.12);   border: 1px solid rgba(34,197,94,.3);  color: #86EFAC; }
.nh-fs-badge .fs-link   { color: inherit; text-decoration: none; }
.nh-fs-badge .fs-link:hover { text-decoration: underline; }

/* Modal info grid (2-col) */
.nh-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 16px;
}
.nh-info-item {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px; padding: 10px 12px;
}
.nh-info-label { font-size: 10px; color: #64748B; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.nh-info-val   { font-size: 12px; color: #0b1a29; font-weight: 500; margin-top: 3px; word-break: break-all; }


.nh-detail { display: flex; flex-direction: column; gap: 16px; padding: 20px 18px; }
.nh-detail-header { display: flex; align-items: center; gap: 14px; }
.nh-detail-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.nh-detail-name { font-size: 16px; font-weight: 700; color: #F1F5F9; }
.nh-detail-role { font-size: 12px; color: #94A3B8; margin-top: 2px; }
.nh-detail-meta { display: flex; flex-direction: column; gap: 6px; }
.nh-meta-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #CBD5E1; }
.nh-meta-row strong { color: #F1F5F9; }
.nh-creds-section {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 14px;
}
.nh-section-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #64748B; margin-bottom: 10px;
}
.nh-creds-saved { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #22C55E; }
.nh-creds-saved strong { color: #64748B; }
.nh-link-btn {
  background: none; border: none; color: #60A5FA; font-size: 11px;
  cursor: pointer; padding: 0 0 0 6px; text-decoration: underline;
}
.nh-input { width: 100%; margin-bottom: 8px; font-size: 12px; }
.nh-creds-actions { display: flex; gap: 8px; margin-top: 4px; }
.nh-btn-save-creds {
  display: flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,.2); border: 1px solid rgba(37,99,235,.4);
  color: #93C5FD; border-radius: 7px; padding: 6px 14px;
  font-size: 11px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.nh-btn-save-creds:hover { background: rgba(37,99,235,.35); }
.nh-actions { display: flex; gap: 8px; margin-top: 16px; }
.nh-btn-action {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 8px; padding: 8px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background .15s; border: none;
}
.nh-btn-preview { background: rgba(20,184,166,.15); color: #2DD4BF; border: 1px solid rgba(20,184,166,.3); }
.nh-btn-preview:hover:not([disabled]) { background: rgba(20,184,166,.28); }
.nh-btn-send    { background: rgba(37,99,235,.2);   color: #93C5FD; border: 1px solid rgba(37,99,235,.4); }
.nh-btn-send:hover:not([disabled])    { background: rgba(37,99,235,.35); }
.nh-btn-disabled { opacity: .4; cursor: not-allowed; }
.nh-btn-payroll-add {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25);
  color: #FCD34D; border-radius: 8px; padding: 8px 12px;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s;
  margin-top: 12px;
}
.nh-btn-payroll-add:hover:not([disabled]) { background: rgba(245,158,11,.22); }
.nh-letter-preview {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 16px 18px;
  font-size: 13px; line-height: 1.7; color: #465f7e;
  white-space: pre-wrap; font-family: inherit; max-height: 340px; overflow-y: auto;
}

/* ══════════════════════════════════════════════════════
   RAMONA · PAYROLL REPORT TAB  (ramonaPayroll.js)
   ══════════════════════════════════════════════════════ */

.pr-panel { display: flex; flex-direction: column; gap: 0; padding-bottom: 20px; }
.pr-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; background: #0F1B4C; z-index: 2;
}
.pr-panel-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #F1F5F9;
}
.pr-export-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.3);
  color: #4ADE80; border-radius: 7px; padding: 6px 14px;
  font-size: 11px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.pr-export-btn:hover { background: rgba(34,197,94,.28); }
.pr-sections { display: flex; flex-direction: column; }
.pr-section { border-bottom: 1px solid rgba(255,255,255,.06); }
.pr-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 6px;
}
.pr-section-label {
  font-size: 10px; font-weight: 800; letter-spacing: .07em;
  color: #64748B; text-transform: uppercase;
}
.pr-add-btn {
  background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.25);
  color: #93C5FD; border-radius: 6px; padding: 3px 10px;
  font-size: 11px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.pr-add-btn:hover { background: rgba(37,99,235,.28); }
.pr-table { padding: 0 8px 6px; }
.pr-header-row, .pr-row { display: flex; align-items: center; padding: 4px 4px 4px 4px; }
.pr-header-row { border-bottom: 1px solid rgba(255,255,255,.06); }
.pr-row { border-bottom: 1px solid rgba(255,255,255,.03); transition: background .12s; }
.pr-row:hover { background: rgba(255,255,255,.03); }
.pr-cell { font-size: 11px; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-header-row .pr-cell { font-size: 9px; font-weight: 700; letter-spacing: .04em; color: #64748B; text-transform: uppercase; }
.pr-cell-name   { flex: 2; min-width: 0; color: #828282; }
.pr-cell-date   { flex: 1; color: #94A3B8; }
.pr-cell-amount { flex: 1; color: #161616; font-weight: 600; text-align: right; }
.pr-cell-notes  { flex: 2; min-width: 0; color: #64748B; }
.pr-amount-neg  { color: #F87171; }
.pr-row-del {
  background: none; border: none; color: #475569; cursor: pointer;
  padding: 2px; border-radius: 4px; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: color .15s, background .15s;
}
.pr-row-del:hover { color: #F87171; background: rgba(248,113,113,.12); }
.pr-empty-row { padding: 8px 8px 4px; font-size: 11px; color: #475569; font-style: italic; }

/* ════════════════════════════════════════════════════
   INTAKE NOTIFICATIONS — floating bubble (Tamara only)
   Listens to WS events from the Amber auto-sync flow.
   ════════════════════════════════════════════════════ */

.intake-bubble {
  position: fixed;
  bottom: 24px;
  right:  24px;
  z-index: 150;
  font-family: 'Libre Franklin', sans-serif;
}

/* Restore the semantics of the [hidden] attribute inside this component.
   Without this, the explicit `display: flex` rules below win over the UA
   default `display: none` for [hidden], so the panel renders open from the
   start and the badge never disappears. */
.intake-bubble [hidden] { display: none !important; }

.intake-bubble .ib-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(18, 131, 239, .45);
  background: var(--blue-soft);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(9, 34, 132, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.intake-bubble .ib-btn:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(9, 34, 132, .42);
}

.intake-bubble.is-open .ib-btn {
  transform: scale(.95);
}

.intake-bubble .ib-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #E5556F;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.intake-bubble .ib-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 340px;
  max-height: 460px;
  background: #ffffff;
  border: 1px solid rgba(9, 34, 132, .35);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(9, 34, 132, .25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ibPanelIn .18s ease;
}

@keyframes ibPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intake-bubble .ib-head {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(9, 34, 132, .25);
  background: var(--blue-deep);
}

.intake-bubble .ib-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #F1F5FA;
}

.intake-bubble .ib-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
  scrollbar-width: thin;
}

.intake-bubble .ib-list::-webkit-scrollbar { width: 6px; }
.intake-bubble .ib-list::-webkit-scrollbar-thumb {
  background: rgba(18, 131, 239, .35);
  border-radius: 3px;
}

.intake-bubble .ib-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 12px;
  color: #8A93AC;
}

.intake-bubble .ib-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 32px 10px 16px;
  border-bottom: 1px solid rgba(9, 34, 132, .12);
  transition: background .12s ease;
}

.intake-bubble .ib-item:last-child {
  border-bottom: none;
}

.intake-bubble .ib-item-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: #8A93AC;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
  padding: 0;
}

.intake-bubble .ib-item-del:hover {
  background: rgba(229, 85, 111, .12);
  color: #C0394F;
}

.intake-bubble .ib-item-clickable {
  cursor: pointer;
}

.intake-bubble .ib-item-clickable:hover {
  background: rgba(18, 131, 239, .08);
}

.intake-bubble .ib-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  color: #ffffff;
  margin-top: 1px;
}

.intake-bubble .ib-item-auto_synced_with_req .ib-item-icon { background: #4ADE80; }
.intake-bubble .ib-item-auto_synced_no_req   .ib-item-icon { background: #FFAA44; }
.intake-bubble .ib-item-sync_failed          .ib-item-icon { background: #E5556F; }
.intake-bubble .ib-item-duplicate_email      .ib-item-icon,
.intake-bubble .ib-item-duplicate_msgid      .ib-item-icon { background: #8A93AC; }

.intake-bubble .ib-item-body {
  flex: 1;
  min-width: 0;
}

.intake-bubble .ib-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intake-bubble .ib-item-detail {
  font-size: 11px;
  color: #4A5266;
  line-height: 1.35;
  word-break: break-word;
}

.intake-bubble .ib-item-ts {
  font-size: 10px;
  color: #8A93AC;
  margin-top: 3px;
  letter-spacing: .02em;
}

.intake-bubble .ib-foot {
  padding: 8px 12px;
  border-top: 1px solid rgba(9, 34, 132, .18);
  background: #F6F8FB;
  display: flex;
  justify-content: flex-end;
}

.intake-bubble .ib-clear {
  background: none;
  border: 1px solid rgba(229, 85, 111, .45);
  color: #C0394F;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.intake-bubble .ib-clear:hover {
  background: rgba(229, 85, 111, .12);
  color: #A02B3F;
}

/* ── Badges on Ready-for-UKG cards (auto-sync outcome) ── */

.am-validation-badge.am-validation-error {
  background: rgba(229, 85, 111, .12);
  color: #FFB0C0;
  border: 1px solid rgba(229, 85, 111, .45);
}

.am-validation-badge.am-validation-noreq {
  background: rgba(255, 170, 68, .12);
  color: #FFC97A;
  border: 1px solid rgba(255, 170, 68, .45);
}
