:root { --navy:#10234f; --blue:#2d62e8; --ink:#14213d; --muted:#667085; --line:#e6eaf2; --surface:#f7f9fd; }
body[data-agent="sales"] { --navy:#0b5350; --blue:#0b9e8d; --ink:#123d3b; --surface:#f2fbf9; }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; min-height:100dvh; overflow:hidden; background:linear-gradient(145deg,#f9fbff 0%,#eff4ff 100%); color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,textarea { font:inherit; }
button { cursor:pointer; }
.app-shell { width:100%; height:100dvh; min-height:100vh; margin:0; display:grid; grid-template-columns:270px minmax(0,1fr); overflow:hidden; background:#fff; }
.sidebar { min-height:0; height:100%; padding:23px 14px 15px; display:flex; flex-direction:column; overflow:hidden; background:#f8faff; border-right:1px solid var(--line); }
.chat-panel { position:relative; height:100dvh; min-height:100vh; display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.topbar { min-height:76px; padding:13px 28px; display:flex; align-items:center; gap:16px; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:10px; color:var(--navy); text-decoration:none; font-weight:720; letter-spacing:-.02em; font-size:19px; }
.brand small { display:block; color:var(--muted); font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.brand-mark { width:58px; height:58px; display:grid; place-items:center; border-radius:15px; background:var(--navy); color:#fff; font-family:Georgia,serif; font-size:25px; }.brand > .brand-mark { object-fit:cover; border:1px solid var(--line); background:#fff; }
.agent-picker { display:grid; gap:3px; margin:22px 0 0; padding:5px; border:1px solid var(--line); border-radius:10px; background:#fff; }.agent-option { display:flex; align-items:center; gap:8px; border:0; border-radius:6px; padding:7px 8px; background:transparent; color:#66748c; text-align:left; font-size:11px; font-weight:650; }.agent-option:hover,.agent-option.active { background:var(--surface); color:var(--navy); }.agent-avatar { width:30px; height:30px; flex:0 0 30px; border-radius:9px; object-fit:cover; }
.topbar .eyebrow { margin:0 0 3px; font-size:9px; }.topbar h2 { margin:0; color:var(--navy); font-size:16px; letter-spacing:-.02em; }
.topbar-actions { margin-left:auto; display:flex; align-items:center; gap:14px; }.status { color:#61708e; font-size:13px; font-weight:600; }
.status span { display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; background:#22a06b; }
.logout { border:0; background:transparent; color:#66748c; font-size:12px; font-weight:650; }.logout:hover { color:#ba1a1a; text-decoration:underline; }.logout { margin-top:8px; padding:0; font-size:10px; }
.new-chat { width:100%; margin:28px 0 18px; padding:10px 12px; border:0; border-radius:9px; background:var(--navy); color:#fff; text-align:left; font-size:13px; font-weight:700; }.new-chat:hover { background:#1b3a80; } body[data-agent="sales"] .new-chat:hover { background:#074440; }
.search { display:flex; align-items:center; gap:7px; padding:0 9px; border:1px solid var(--line); border-radius:8px; background:#fff; color:#8290a7; }.search input { min-width:0; width:100%; padding:9px 0; border:0; outline:0; background:transparent; color:var(--ink); font-size:12px; }
.sidebar-label { margin:23px 8px 8px; color:#8a96aa; font-size:9px; font-weight:800; letter-spacing:.1em; }.session-list { min-height:0; flex:1 1 auto; display:grid; align-content:start; gap:2px; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }.session-row { position:relative; min-width:0; }.session-item { width:100%; display:flex; align-items:center; gap:7px; border:0; border-radius:7px; background:transparent; color:#50607a; padding:9px 36px 9px 10px; text-align:left; font-size:12px; }.session-title { min-width:0; flex:1 1 auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.session-chip { flex:0 0 auto; border-radius:999px; padding:3px 6px; background:#e3ebff; color:#254a93; font-size:9px; font-weight:800; line-height:1; letter-spacing:.02em; }.session-chip.sales { background:#d9f3ed; color:#076b60; }.session-item:hover,.session-item.active { background:#eaf0ff; color:var(--navy); font-weight:650; }.session-delete { position:absolute; top:50%; right:5px; width:26px; height:26px; padding:0; transform:translateY(-50%); border:0; border-radius:6px; background:transparent; color:#71809a; font-size:18px; line-height:1; opacity:0; }.session-row:hover .session-delete,.session-delete:focus-visible { opacity:1; }.session-delete:hover { background:#feecee; color:#ba1a1a; }.sidebar-footer { flex:0 0 auto; margin-top:0; padding:15px 7px 0; border-top:1px solid var(--line); color:#8090a8; font-size:10px; line-height:1.4; }.privacy-dot { display:inline-block; width:6px; height:6px; margin-right:4px; border-radius:50%; background:#22a06b; }
.conversation { min-height:0; overflow:auto; padding:28px clamp(28px,5vw,76px); }
.conversation-navigation { position:absolute; z-index:2; right:28px; bottom:112px; display:grid; gap:7px; }.conversation-navigation button { width:36px; height:36px; border:1px solid #cdd8ed; border-radius:10px; background:#fff; color:var(--navy); box-shadow:0 5px 14px rgba(16,35,79,.12); font-size:19px; font-weight:750; line-height:1; }.conversation-navigation button:hover:not(:disabled) { border-color:var(--blue); color:var(--blue); }.conversation-navigation button:disabled { cursor:default; opacity:.36; }
.welcome { width:100%; margin:0 auto; padding:8px 0 28px; text-align:left; border-bottom:1px solid var(--line); }
.eyebrow { margin:0 0 15px; color:var(--blue); font-size:11px; font-weight:800; letter-spacing:.13em; }
h1 { margin:0; color:var(--navy); font-size:clamp(22px,2.1vw,30px); letter-spacing:-.035em; line-height:1.15; }
.message { max-width:980px; margin:26px auto 20px; display:flex; gap:12px; align-items:flex-start; }
.message .avatar { flex:0 0 34px; width:34px; height:34px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#fff; }.message .avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.message.user { justify-content:flex-end; }
.message.user .bubble { background:#edf3ff; color:var(--navy); }
.bubble { max-width:min(760px,calc(100vw - 120px)); padding:12px 15px; border-radius:4px 14px 14px; background:var(--surface); color:#263751; font-size:15px; line-height:1.55; white-space:pre-wrap; }
.message.assistant .bubble { width:min(840px,calc(100vw - 120px)); padding:20px 22px; border:1px solid #e2e9f6; border-radius:8px 16px 16px; background:#fbfcff; box-shadow:0 7px 20px rgba(16,35,79,.045); white-space:normal; }.report-heading { margin:26px 0 10px; color:var(--navy); font-weight:800; letter-spacing:-.02em; }.report-heading:first-child { margin-top:0; }.report-heading.level-1 { font-size:20px; }.report-heading.level-2 { padding-top:18px; border-top:1px solid var(--line); font-size:16px; }.report-heading.level-3 { font-size:15px; color:#254a93; }.report-separator { height:1px; margin:20px 0; background:var(--line); }.report-paragraph { margin:0 0 12px; }.report-list { margin:4px 0 16px; padding-left:21px; }.report-list.ordered { padding-left:25px; }.report-list li { margin:8px 0; padding-left:3px; }.rich-message strong { color:var(--navy); }.rich-message em { color:#40516c; }.rich-message code { padding:2px 5px; border-radius:4px; background:#edf2fb; color:#254a93; font:12px ui-monospace,SFMono-Regular,Consolas,monospace; }.rich-message a { color:#2458d3; overflow-wrap:anywhere; }.report-note { margin:14px 0; padding:12px 14px; border-left:3px solid var(--blue); border-radius:0 8px 8px 0; background:#f0f5ff; color:#40516c; }.report-table-wrap { max-width:100%; margin:16px 0 20px; overflow-x:auto; border:1px solid #dbe5f5; border-radius:10px; background:#fff; }.report-table { width:100%; min-width:620px; border-collapse:collapse; font-size:14px; line-height:1.45; }.report-table th,.report-table td { padding:11px 12px; text-align:left; vertical-align:top; border-bottom:1px solid #e6edf8; }.report-table th { color:var(--navy); font-weight:800; background:#eff4fc; }.report-table tbody tr:last-child td { border-bottom:0; }.report-code-block { margin:14px 0; padding:13px; overflow:auto; border-radius:8px; background:#12233f; color:#edf4ff; font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; }.report-code-block code { padding:0; background:transparent; color:inherit; font:inherit; }
.user .bubble { border-radius:14px 4px 14px 14px; }
.composer { padding:16px 28px 20px; border-top:1px solid var(--line); background:#fff; }
.composer:focus-within { box-shadow:0 -8px 25px rgba(16,35,79,.04); }
textarea { display:block; width:100%; max-height:140px; resize:none; border:1px solid #cdd8ed; border-radius:12px; outline:0; padding:13px 54px 13px 15px; color:var(--ink); line-height:1.4; }
textarea:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(45,98,232,.12); }
.composer { position:relative; }
.send { position:absolute; right:38px; top:26px; width:34px; height:34px; border:0; border-radius:9px; background:var(--blue); color:#fff; font-size:21px; line-height:1; }
.send:hover { background:#204dc4; }
.composer p { margin:8px 2px 0; color:#8a96aa; font-size:11px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.login-screen { position:fixed; isolation:isolate; z-index:5; inset:0; display:grid; place-items:center; padding:24px; background:linear-gradient(rgba(4,15,34,.52),rgba(4,15,34,.52)),url('assets/iot-projects-login-background.jpg') center/cover no-repeat; }.login-screen[hidden] { display:none; }.login-shell { display:grid; justify-items:center; gap:15px; }.login-card { width:min(100%,410px); padding:42px 38px 34px; border:1px solid rgba(255,255,255,.65); border-radius:20px; background:rgba(255,255,255,.95); box-shadow:0 25px 70px rgba(0,9,28,.4); text-align:center; backdrop-filter:blur(10px); }.login-logo { display:block; width:78px; height:auto; margin:0 auto 27px; }.login-eyebrow { margin:0 0 9px; color:#315eac; font-size:10px; font-weight:800; letter-spacing:.16em; }.login-card h1 { margin:0 0 8px; font-size:23px; font-weight:650; letter-spacing:-.025em; }.login-card p:not(.login-eyebrow):not(.login-error) { margin:0; color:var(--muted); font-size:13px; line-height:1.55; }.login-card input { width:100%; margin:25px 0 11px; border:1px solid #cdd8ed; border-radius:10px; padding:13px; outline:0; background:rgba(255,255,255,.9); }.login-card input:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(45,98,232,.12); }.login-card button { width:100%; border:0; border-radius:10px; padding:13px; background:var(--navy); color:#fff; font-weight:750; box-shadow:0 8px 18px rgba(16,35,79,.18); }.login-card button:hover { background:#1b3a80; }.login-error { min-height:18px; margin:10px 0 0; color:#ba1a1a; font-size:12px; }.login-credit { color:rgba(255,255,255,.78); font-size:11px; text-decoration:none; }.login-credit:hover,.login-credit:focus-visible { color:#fff; text-decoration:underline; }
.agent-choice { display:flex; align-items:center; gap:2px; }.agent-option { min-width:0; flex:1; }.agent-info,.topbar-info { display:grid; place-items:center; border:0; border-radius:7px; background:transparent; color:#71809a; font-weight:700; }.agent-info { width:28px; height:28px; flex:0 0 28px; font-size:15px; }.topbar-info { width:30px; height:30px; font-size:18px; }.agent-info:hover,.topbar-info:hover { background:#eaf0ff; color:var(--blue); }.guide-backdrop { position:fixed; z-index:9; inset:0; border:0; background:rgba(7,19,43,.28); }.agent-guide { position:fixed; z-index:10; inset:0 0 0 auto; width:min(420px,100vw); overflow:auto; background:#fff; box-shadow:-18px 0 50px rgba(7,19,43,.18); }.agent-guide-header { min-height:100px; padding:24px 28px 20px; display:flex; align-items:flex-start; gap:14px; border-bottom:1px solid var(--line); }.agent-guide-header .eyebrow { margin-bottom:5px; font-size:9px; }.agent-guide[data-agent="marketing"] .agent-guide-header .eyebrow { color:#2d62e8; }.agent-guide[data-agent="sales"] .agent-guide-header .eyebrow { color:#0b8b7c; }.agent-guide-header h2 { margin:0; color:var(--navy); font-size:22px; letter-spacing:-.03em; }.guide-close { width:34px; height:34px; margin-left:auto; flex:0 0 34px; border:0; border-radius:9px; background:#f2f5fb; color:#50607a; font-size:24px; line-height:1; }.guide-close:hover { background:#eaf0ff; color:var(--navy); }.agent-guide-content { padding:26px 28px 34px; }.guide-summary { margin:0 0 27px; color:#52627a; font-size:15px; line-height:1.55; }.guide-section + .guide-section { margin-top:30px; }.guide-section h3 { margin:0 0 11px; color:#8290a7; font-size:10px; letter-spacing:.12em; text-transform:uppercase; }.guide-item,.guide-manual { padding:15px 0; border-top:1px solid var(--line); }.guide-item { display:flex; gap:14px; }.guide-item > div,.guide-manual > div { min-width:0; flex:1; }.guide-item h4,.guide-manual h4 { margin:0 0 5px; color:var(--navy); font-size:14px; }.guide-item p,.guide-manual p { margin:0; color:#66748c; font-size:13px; line-height:1.5; }.guide-item span { flex:0 0 auto; align-self:flex-start; padding:5px 7px; border-radius:999px; background:#f0e8ff; color:#6b3fb0; font-size:10px; font-weight:800; white-space:nowrap; }.guide-manual { display:flex; gap:14px; }.guide-manual-chip { flex:0 0 auto; align-self:flex-start; padding:5px 7px; border-radius:999px; background:#e7f0ff; color:#2458d3; font-size:10px; font-weight:800; white-space:nowrap; }.guide-manual:last-child,.guide-item:last-child { border-bottom:1px solid var(--line); }
@media (max-width:700px) { body { overflow:auto; }.app-shell { height:auto; min-height:100dvh; overflow:visible; grid-template-columns:1fr; }.sidebar { min-height:0; height:auto; padding:12px 18px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; overflow:visible; }.agent-picker { display:none; }.new-chat { width:auto; margin:0; }.search,.sidebar-label,.session-list,.sidebar-footer { display:none; }.topbar,.conversation,.composer { padding-left:18px; padding-right:18px; } .topbar { min-height:68px; } .status { display:none; } .send { right:28px; } .conversation-navigation { right:18px; bottom:106px; } .welcome { margin-top:0; } .agent-guide-header,.agent-guide-content { padding-left:20px; padding-right:20px; } }

/* ============================================================ */
/* DIRECTORIO DE LEADS Y SELECTOR DE VISTAS (NEXO PIPELINE)     */
/* ============================================================ */

.topbar { justify-content: space-between; gap: 18px; }
.topbar-title-wrap { min-width: 0; flex: 0 1 auto; }
.view-switch { display: inline-flex; gap: 4px; padding: 4px; background: #eef2f9; border-radius: 10px; border: 1px solid #dde5f2; }
.view-tab { border: 0; background: transparent; padding: 7px 15px; border-radius: 7px; font-size: 12px; font-weight: 650; color: #586985; transition: all .15s ease; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.view-tab:hover { color: var(--navy); }
.view-tab.active { background: #fff; color: var(--navy); font-weight: 750; box-shadow: 0 2px 7px rgba(16, 35, 79, .09); }
.tab-badge { display: inline-block; background: #e0ecff; color: #1a4ab9; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; margin-left: 3px; }

/* Panel Directorio */
.chat-panel.leads-mode { display: flex; flex-direction: column; }
.chat-panel.leads-mode .conversation,
.chat-panel.leads-mode .conversation-navigation,
.chat-panel.leads-mode .composer { display: none !important; }

.leads-panel { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: #f8fbff; }
.leads-top-banner { flex: 0 0 auto; padding: 18px 28px 16px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: #fff; }
.leads-top-banner h2 { margin: 2px 0 0; font-size: 20px; color: var(--navy); letter-spacing: -.02em; }
.leads-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.btn-export-csv { border: 1px solid #c8d8ee; background: #f4f8fe; color: #1c407e; font-size: 12px; font-weight: 700; padding: 9px 15px; border-radius: 8px; cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.btn-export-csv:hover { background: #e5f0fe; border-color: var(--blue); color: #0d2c67; }

/* Métricas rápidas (Segmentos limpios y minimalistas) */
.leads-metrics-bar {
  display: flex;
  gap: 6px;
  padding: 12px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  align-items: center;
}
.metric-card {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all .15s ease;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}
.metric-card .metric-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.metric-dot.dot-pending { background: #eab308; }
.metric-dot.dot-contacted { background: #3b82f6; }
.metric-dot.dot-interested { background: #16a34a; }
.metric-dot.dot-dismissed { background: #94a3b8; }

.metric-card .metric-label {
  font-weight: 500;
}
.metric-card .metric-num {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  transition: all .15s ease;
}

/* Colores suaves individuales por estado (Pastel elegante) */
/* 1. Todos */
.metric-card[data-filter-status="all"]:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}
.metric-card[data-filter-status="all"].active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}
.metric-card[data-filter-status="all"].active .metric-num {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* 2. Pendientes - Amarillo suave */
.metric-card[data-filter-status="pending"] {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}
.metric-card[data-filter-status="pending"] .metric-num {
  background: #fef08a;
  color: #854d0e;
}
.metric-card[data-filter-status="pending"]:hover {
  background: #fef9c3;
  border-color: #fde047;
}
.metric-card[data-filter-status="pending"].active {
  background: #fef08a;
  border-color: #eab308;
  color: #713f12;
  box-shadow: 0 1px 3px rgba(234, 179, 8, .2);
}
.metric-card[data-filter-status="pending"].active .metric-num {
  background: #eab308;
  color: #ffffff;
}

/* 3. Contactados - Azul suave */
.metric-card[data-filter-status="contacted"] {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.metric-card[data-filter-status="contacted"] .metric-num {
  background: #dbeafe;
  color: #1e40af;
}
.metric-card[data-filter-status="contacted"]:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}
.metric-card[data-filter-status="contacted"].active {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e3a8a;
  box-shadow: 0 1px 3px rgba(59, 130, 246, .2);
}
.metric-card[data-filter-status="contacted"].active .metric-num {
  background: #3b82f6;
  color: #ffffff;
}

/* 4. Interesados - Verde suave */
.metric-card[data-filter-status="interested"] {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.metric-card[data-filter-status="interested"] .metric-num {
  background: #dcfce7;
  color: #166534;
}
.metric-card[data-filter-status="interested"]:hover {
  background: #dcfce7;
  border-color: #86efac;
}
.metric-card[data-filter-status="interested"].active {
  background: #dcfce7;
  border-color: #22c55e;
  color: #14532d;
  box-shadow: 0 1px 3px rgba(34, 197, 94, .2);
}
.metric-card[data-filter-status="interested"].active .metric-num {
  background: #16a34a;
  color: #ffffff;
}

/* 5. No interesa - Gris suave */
.metric-card[data-filter-status="dismissed"] {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}
.metric-card[data-filter-status="dismissed"] .metric-num {
  background: #f1f5f9;
  color: #475569;
}
.metric-card[data-filter-status="dismissed"]:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.metric-card[data-filter-status="dismissed"].active {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #334155;
  box-shadow: 0 1px 3px rgba(100, 116, 139, .15);
}
.metric-card[data-filter-status="dismissed"].active .metric-num {
  background: #64748b;
  color: #ffffff;
}

/* Toolbar de búsqueda y filtros */
.leads-toolbar {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  padding: 10px 28px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
  flex-wrap: wrap;
}
.leads-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
  flex: 1 1 240px;
  height: 36px;
  transition: border-color .15s ease;
}
.leads-search-box:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .1);
}
.search-glyph {
  color: #94a3b8;
  font-size: 14px;
}
.leads-search-box input {
  border: 0;
  outline: 0;
  font-size: 13px;
  color: #0f172a;
  width: 100%;
  background: transparent;
}
.leads-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}
.filter-select-wrap select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  background: #ffffff;
  font-size: 12px;
  color: #334155;
  outline: 0;
  cursor: pointer;
  transition: border-color .15s ease;
}
.filter-select-wrap select:focus,
.filter-select-wrap select:hover {
  border-color: #94a3b8;
}

/* Tabla de Leads (Elegante, sin estridencias) */
.leads-table-wrap {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0 28px 24px;
  min-height: 0;
}
.leads-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .03);
}
.leads-table thead tr:first-child th:first-child {
  border-top-left-radius: 8px;
}
.leads-table thead tr:first-child th:last-child {
  border-top-right-radius: 8px;
}
.leads-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}
.leads-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}
.leads-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.leads-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  color: #334155;
}
.leads-table tr:last-child td {
  border-bottom: 0;
}
tr.lead-table-row {
  cursor: pointer;
  transition: background .12s ease;
}
tr.lead-table-row:hover td {
  background: #f8fafc !important;
}
tr.lead-table-row.active-lead-row td {
  background: #f1f5f9 !important;
}
tr.lead-table-row.active-lead-row {
  box-shadow: inset 3px 0 0 #0f172a;
}

/* Columna 1: Empresa */
.col-company {
  min-width: 260px;
}
.company-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.company-primary-name {
  font-size: 13.5px;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.35;
}

/* Etiquetas de Sector (Paleta diferenciada de los estados: Púrpura, Rosa, Turquesa, Terracota) */
.sector-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: .01em;
}
.sector-tag.sector-transport {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}
.sector-tag.sector-security {
  background: #fdf2f8;
  color: #9d174d;
  border: 1px solid #fbcfe8;
}
.sector-tag.sector-water {
  background: #ccfbf1;
  color: #0f766e;
  border: 1px solid #99f6e4;
}
.sector-tag.sector-industry {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.sector-tag.sector-default {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.company-batch-pill {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.company-sub-line {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.35;
}
.company-links-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 11.5px;
}
.lead-text-link {
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
  transition: color .15s ease;
}
.lead-text-link:hover {
  text-decoration: underline;
  color: #0369a1;
}
.lead-meta-text {
  color: #64748b;
  font-size: 11px;
}
.link-sep {
  color: #cbd5e1;
  font-size: 11px;
}

/* Columna 2: Oportunidad IoT */
.col-opportunity {
  max-width: 440px;
}
.opp-summary-text {
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
}
.opp-trigger-bold {
  color: #0f172a;
  font-weight: 600;
}
.opp-solution-note {
  margin-top: 4px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}
.opp-solution-label {
  font-weight: 600;
  color: #475569;
}

/* Columna 3: Decisor Objetivo */
.col-decisor {
  min-width: 190px;
}
.decisor-person-name {
  font-size: 13px;
  color: #0f172a;
  line-height: 1.3;
}
.decisor-person-role {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
}
.decisor-primary-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}
.decisor-search-link {
  display: inline-block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  color: #0a66c2;
  text-decoration: none;
}
.decisor-search-link:hover {
  text-decoration: underline;
  color: #004182;
}
.decisor-secondary-text {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Decisor no encontrado (Fallback visual explícito) */
.decisor-unresolved-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 550;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .01em;
  user-select: none;
}
.decisor-unresolved-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  display: inline-block;
  flex-shrink: 0;
}
.text-unresolved {
  color: #94a3b8 !important;
  font-style: italic;
  font-weight: 500 !important;
}

/* Columna 4: Estado */
.col-status {
  text-align: right;
  white-space: nowrap;
}
.status-cell-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lead-status-select {
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
  outline: 0;
  transition: all .15s ease;
}
.lead-status-select:hover,
.lead-status-select:focus {
  filter: brightness(0.97);
}

/* Colores suaves para los selects de Estado (Tabla y Drawer) */
.lead-status-select.status-pending {
  background-color: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}
.lead-status-select.status-pending:hover,
.lead-status-select.status-pending:focus {
  border-color: #fde047;
  background-color: #fef9c3;
}

.lead-status-select.status-contacted {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.lead-status-select.status-contacted:hover,
.lead-status-select.status-contacted:focus {
  border-color: #93c5fd;
  background-color: #dbeafe;
}

.lead-status-select.status-interested {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.lead-status-select.status-interested:hover,
.lead-status-select.status-interested:focus {
  border-color: #86efac;
  background-color: #dcfce7;
}

.lead-status-select.status-dismissed {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}
.lead-status-select.status-dismissed:hover,
.lead-status-select.status-dismissed:focus {
  border-color: #cbd5e1;
  background-color: #f1f5f9;
}
.row-open-arrow {
  font-size: 19px;
  color: #94a3b8;
  line-height: 1;
  user-select: none;
  transition: transform .15s ease, color .15s ease;
}
tr.lead-table-row:hover .row-open-arrow {
  color: #0f172a;
  transform: translateX(2px);
}

/* Modal de Importar Lote */
.import-modal-backdrop { position: fixed; inset: 0; background: rgba(8, 20, 44, .45); z-index: 20; display: grid; place-items: center; padding: 20px; }
.import-modal-card { width: min(650px, 100%); background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(8, 20, 44, .25); padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.import-modal-header { display: flex; justify-content: space-between; align-items: flex-start; }
.import-modal-header h3 { margin: 2px 0 0; font-size: 18px; color: var(--navy); }
.import-modal-close { width: 30px; height: 30px; border: 0; background: #edf2f9; border-radius: 6px; font-size: 20px; cursor: pointer; line-height: 1; }
.import-modal-close:hover { background: #e0e9f6; }
.import-modal-help { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.import-modal-card textarea { width: 100%; border: 1px solid #c9d8ee; border-radius: 8px; padding: 12px; font-family: inherit; font-size: 12px; color: var(--ink); line-height: 1.45; resize: vertical; outline: 0; }
.import-modal-card textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.import-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.btn-cancel { border: 1px solid #d0dbe9; background: #fff; color: #586985; font-size: 12px; font-weight: 650; padding: 8px 16px; border-radius: 7px; cursor: pointer; }
.btn-cancel:hover { background: #f2f5fa; }
.btn-confirm-import { border: 0; background: #0f172a; color: #fff; font-size: 12px; font-weight: 700; padding: 8px 18px; border-radius: 7px; cursor: pointer; }
.btn-confirm-import:hover { background: #1e293b; }

.leads-empty-state { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px; background: #fff; border-radius: 8px; border: 1px dashed #cbd5e1; margin-top: 14px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ */
/* PANEL LATERAL / DRAWER DEL LEAD (POPUP A LA DERECHA)          */
/* ------------------------------------------------------------ */
.lead-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .32);
  z-index: 1050;
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  border: 0;
  cursor: pointer;
}
.lead-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lead-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 500px;
  max-width: 95vw;
  background: #ffffff;
  z-index: 1060;
  box-shadow: -6px 0 28px rgba(15, 23, 42, .18);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.lead-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  padding: 18px 22px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.drawer-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.drawer-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.drawer-title-row h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}
.drawer-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* Píldoras de Score sobrias */
.score-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.score-pill.score-hot {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.score-pill.score-warm {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.score-pill.score-qualified {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.drawer-cif-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 750;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 2px 7px;
  border-radius: 5px;
}
.drawer-close-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all .15s ease;
  flex-shrink: 0;
}
.drawer-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.drawer-content {
  padding: 18px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.drawer-quick-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.drawer-link-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s ease;
}
.drawer-link-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.drawer-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.drawer-card-header {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}
.drawer-card-header .card-icon {
  font-size: 16px;
  line-height: 1.2;
}
.drawer-card-header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.drawer-card-desc {
  margin: 2px 0 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

/* CARGOS DECISORES Y CONTACTOS */
.decisor-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 9px;
  transition: all .15s ease;
}
.decisor-box:last-child {
  margin-bottom: 0;
}
.decisor-box:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.decisor-role-header {
  flex: 1;
  min-width: 0;
}
.decisor-level-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #64748b;
  margin-bottom: 3px;
}
.decisor-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.35;
}
.person-full-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  display: block;
}
.decisor-sub-role {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
  font-weight: 400;
}
.decisor-contact-field {
  margin: 6px 0 8px;
}
.decisor-field-label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: #475569;
  margin-bottom: 4px;
}
.decisor-input-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 9px;
  height: 33px;
  transition: all .15s ease;
}
.decisor-input-wrap:focus-within {
  border-color: #0a66c2;
  box-shadow: 0 0 0 2px rgba(10, 102, 194, .12);
}
.decisor-input-icon {
  font-size: 13px;
  color: #64748b;
  flex-shrink: 0;
}
.decisor-name-input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  width: 100%;
}
.decisor-name-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.decisor-role-subline {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: #334155;
  margin-top: 4px;
  margin-bottom: 10px;
}
.decisor-role-label {
  font-size: 10.5px;
  font-weight: 650;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.decisor-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.btn-decisor-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 650;
  color: #0a66c2;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all .15s ease;
  line-height: 1;
}
.btn-decisor-linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
  box-shadow: 0 1px 4px rgba(10, 102, 194, .25);
}
.btn-decisor-linkedin svg {
  flex-shrink: 0;
}

/* Enlaces a LinkedIn en la tabla (Columna 3) */
.decisor-table-link {
  color: #0f172a;
  text-decoration: none;
  transition: color .15s ease;
  word-break: break-word;
}
.decisor-table-link:hover {
  color: #0a66c2;
  text-decoration: underline;
}
.decisor-table-secondary-link {
  color: #64748b;
  text-decoration: none;
  transition: color .15s ease;
  word-break: break-word;
}
.decisor-table-secondary-link:hover {
  color: #0a66c2;
  text-decoration: underline;
}

/* ENCAJE COMERCIAL (Limpio, sin rayas gruesas) */
.fit-points-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fit-point-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.fit-point-icon {
  font-size: 15px;
  line-height: 1.2;
  flex-shrink: 0;
}
.fit-point-label {
  display: block;
  font-size: 10px;
  font-weight: 750;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.fit-point-text {
  margin: 0;
  font-size: 12px;
  color: #1e293b;
  line-height: 1.45;
}

/* PITCH BOX */
.drawer-pitch-box {
  font-size: 12px;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.btn-copy-pitch-large {
  font-size: 11.5px;
  font-weight: 650;
  color: #ffffff;
  background: #0f172a;
  border: 0;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-copy-pitch-large:hover {
  background: #1e293b;
}
.btn-copy-pitch-large.copied {
  background: #16a34a !important;
}

.drawer-status-controls select {
  width: 100%;
  font-size: 12.5px;
  font-weight: 650;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  outline: 0;
  transition: all .15s ease;
}

/* Badge de Estado en el Header del Drawer lateral */
.drawer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}
.drawer-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.drawer-status-badge.status-pending {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}
.drawer-status-badge.status-pending .status-dot { background: #eab308; }

.drawer-status-badge.status-contacted {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.drawer-status-badge.status-contacted .status-dot { background: #3b82f6; }

.drawer-status-badge.status-interested {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.drawer-status-badge.status-interested .status-dot { background: #16a34a; }

.drawer-status-badge.status-dismissed {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}
.drawer-status-badge.status-dismissed .status-dot { background: #94a3b8; }

/* Modo tabla en panel principal (desactiva chat-form y navigation) */
.chat-panel.table-mode .conversation,
.chat-panel.table-mode .conversation-navigation,
.chat-panel.table-mode .composer {
  display: none !important;
}

/* ============================================================ */
/* ACCIONES DE PROSPECCIÓN & ENVIAR MENSAJE (DRAWER & POP-UP)   */
/* ============================================================ */
.drawer-action-box {
  margin-top: 6px;
  margin-bottom: 4px;
}
.btn-drawer-send-message {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  border: 0;
  border-radius: 9px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-drawer-send-message:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .38);
  transform: translateY(-1.5px);
}
.btn-drawer-send-message:active {
  transform: translateY(0);
}
.btn-drawer-send-message .btn-msg-icon {
  font-size: 16px;
}

.drawer-pitch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-drawer-send-message-pitch {
  font-size: 11px;
  font-weight: 750;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-drawer-send-message-pitch:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

/* Pop-up Central: Mensaje enviado a la empresa y a la persona */
.message-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.message-popup-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.message-popup-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 65px rgba(15, 23, 42, .26), 0 0 0 1px rgba(15, 23, 42, .06);
  max-width: 480px;
  width: 100%;
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(0.92) translateY(12px);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.message-popup-backdrop.is-open .message-popup-card {
  transform: scale(1) translateY(0);
}

.message-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all .15s ease;
}
.message-popup-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.message-popup-icon-wrap {
  margin-bottom: 14px;
}
.message-popup-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(22, 163, 74, .24);
}

.message-popup-title {
  margin: 0 0 16px;
  font-size: 18.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.message-popup-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  width: 100%;
  margin-bottom: 22px;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.message-popup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}
.popup-label {
  color: #64748b;
  font-weight: 650;
  white-space: nowrap;
}
.popup-value {
  color: #1e293b;
  font-weight: 750;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.popup-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-size: 11.5px;
  font-weight: 750;
}

.message-popup-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}
.btn-message-popup-close {
  background: #16a34a;
  color: #ffffff;
  font-weight: 750;
  font-size: 13.5px;
  border: 0;
  padding: 10px 28px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(22, 163, 74, .28);
  transition: all .15s ease;
}
.btn-message-popup-close:hover {
  background: #15803d;
  box-shadow: 0 4px 14px rgba(22, 163, 74, .38);
  transform: translateY(-1px);
}
