/* ═══════════════════════════════════════════════════════════
   RESKYT DASHBOARD · components.css
   Incluye TODAS las clases necesarias para los módulos JS:
   push.js, comercial.js, eeff.js, arr.js, apps.js, dashboard.js
═══════════════════════════════════════════════════════════ */

/* ─── KPI GRID ────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.kpi-card:hover { box-shadow: var(--shadow); }

/* Tarjeta roja (highlight) usada en Dashboard */
.kpi-card.highlight {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.kpi-card.highlight .kpi-label,
.kpi-card.highlight .kpi-sub { color: rgba(255,255,255,.75); }
.kpi-card.highlight .kpi-val { color: white; }

.kpi-icon  { font-size: 22px; margin-bottom: 8px; }
.kpi-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 4px; }
.kpi-val   { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.1; margin-bottom: 4px; }
.kpi-sub   { font-size: 12px; color: var(--text-muted); }
.kpi-delta { font-size: 11px; font-weight: 600; margin-top: 4px; }
.kpi-delta.up   { color: var(--success); }
.kpi-delta.down { color: var(--danger);  }

/* ─── CHARTS GRID ─────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

/* chart-card es usado por push.js, eeff.js, arr.js, comercial.js */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.chart-card canvas { max-height: 260px; }

/* Nombres nuevos (eeff.js, arr.js, dashboard.js) */
.ctitle {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em;
}
.csub { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }

/* Nombres originales (push.js) — alias de ctitle/csub */
.chart-card-title {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em;
}
.chart-card-subtitle { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }

/* ─── TABLAS ──────────────────────────────────────────── */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* Nombre nuevo (eeff.js, arr.js, apps.js) */
.table-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: .05em;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* Nombre original (push.js, comercial.js) — alias de table-head */
.table-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: .05em;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.table-card-header input[type="text"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  width: 220px;
}

/* Nombre nuevo (eeff.js, arr.js) */
.table-wrap { overflow-x: auto; }

/* Nombre original (push.js) — alias de table-wrap */
.table-wrapper { overflow-x: auto; }

table  { width: 100%; border-collapse: collapse; font-size: 13px; }
thead tr { background: #f8fafc; }
th {
  padding: 10px 14px; text-align: left;
  font-weight: 600; font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
/* Nombre nuevo */
th.r, td.r { text-align: right; }
/* Nombre original (push.js) — alias */
th.num, td.num { text-align: right; }

td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; color: var(--text); }
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: none; }

/* Valores positivos/negativos — nombre nuevo */
.vpos { color: var(--success); font-weight: 600; }
.vneg { color: var(--danger);  font-weight: 600; }
.vmut { color: var(--text-muted); }

/* Valores positivos/negativos — nombre original (push.js) */
.val-pos { color: var(--success); font-weight: 600; }
.val-neg { color: var(--danger);  font-weight: 600; }
.val-neu { color: var(--text-muted); }

/* ─── BADGES ──────────────────────────────────────────── */
.badge       { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
/* Nombres nuevos */
.bg          { background: #dcfce7; color: #15803d; }
.br          { background: #fee2e2; color: #b91c1c; }
.by          { background: #fef9c3; color: #a16207; }
.bb          { background: #dbeafe; color: #1d4ed8; }
.bgr         { background: #f3f4f6; color: #6b7280; }
/* Nombres originales (push.js, comercial.js) */
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-gray   { background: #f3f4f6; color: #6b7280; }

/* ─── PERÍODO (push.js) ───────────────────────────────── */
.period-filter {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.period-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--brand);
}
.period-input {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font-size: 13px;
  color: var(--text); outline: none;
}
.period-btn {
  padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-muted); transition: all .15s;
}
.period-btn.active { background: var(--brand); color: white; border-color: var(--brand); }
.period-count { font-size: 12px; color: var(--text-muted); margin-left: 4px; }

/* ─── DELTA BADGE (comercial.js) ──────────────────────── */
.delta-badge {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 20px; font-size: 11px; font-weight: 600; gap: 2px;
}
.delta-badge.up   { background: #dcfce7; color: #15803d; }
.delta-badge.down { background: #fee2e2; color: #b91c1c; }
.delta-badge.flat { background: #f3f4f6; color: #6b7280; }


/* ═══════════════════════════════════════════════════════════
   CHURN — Estilos
═══════════════════════════════════════════════════════════ */

.churn-wrap {
  padding: 0 0 40px 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Header */
.churn-header {
  padding-bottom: 4px;
  border-bottom: 2px solid var(--border, #e2e8f0);
}
.churn-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin: 0 0 4px 0;
}
.churn-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  margin: 0;
}

/* Filtros */
.churn-filters {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-card, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 16px 20px;
}
.churn-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.churn-filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted, #64748b);
}
.churn-filter-right {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.churn-select {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg-card, #fff);
  font-size: 0.85rem;
  color: var(--text, #0f172a);
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
  min-width: 110px;
}
.churn-select:focus { border-color: #6366f1; }

/* Pills de tipo */
.churn-tipo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.churn-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border, #e2e8f0);
  background: var(--bg-card, #fff);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.churn-pill:hover {
  border-color: #6366f1;
  color: #6366f1;
}
.churn-pill.active {
  background: var(--pill-color, #6366f1);
  border-color: var(--pill-color, #6366f1);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
}

/* KPI Cards */
.churn-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .churn-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .churn-kpi-grid { grid-template-columns: 1fr; } }

.churn-kpi-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-top: 3px solid var(--kpi-accent, #6366f1);
  border-radius: 12px;
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow .2s;
}
.churn-kpi-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.07); }

.churn-kpi-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted, #64748b);
}
.churn-kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.1;
  margin: 4px 0 2px;
}
.churn-kpi-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.churn-kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

/* Badges de churn (distintos de .badge global) */
.churn-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.churn-badge.good { background: #dcfce7; color: #15803d; }
.churn-badge.warn { background: #fef9c3; color: #92400e; }
.churn-badge.bad  { background: #fee2e2; color: #b91c1c; }

/* Body: gráfico + tabla */
.churn-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) { .churn-body { grid-template-columns: 1fr; } }

/* Cards contenedoras */
.churn-chart-card,
.churn-table-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.churn-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: var(--bg-card, #f8fafc);
}
.churn-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text, #0f172a);
}
.churn-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

/* Gráfico */
.churn-chart-wrap {
  padding: 16px 12px;
  height: 320px;
}

/* Tabla */
.churn-table-wrap {
  overflow-x: auto;
  max-height: 420px;
  overflow-y: auto;
}
.churn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.81rem;
}
.churn-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Fila de grupos */
.th-group-row { }
.th-group {
  padding: 5px 6px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-align: center;
  border-bottom: none;
}
.th-group-period  { background: #1e293b; }
.th-group-movimiento { background: #0f3460; color: #bae6fd; border-left: 2px solid #1e40af; border-right: 2px solid #1e40af; }
.th-group-churn   { background: #312e81; color: #e0e7ff; border-left: 2px solid #4338ca; }

/* Fila de columnas */
.churn-table th {
  padding: 8px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  text-align: center;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}
.th-period  { background: #1e293b; color: #cbd5e1; text-align: left; padding-left: 12px; }
.th-neutral { background: #334155; color: #94a3b8; }
.th-altas   { background: #064e3b; color: #a7f3d0; border-left: 2px solid #1e40af; }
.th-bajas   { background: #7f1d1d; color: #fecaca; }
.th-trasp   { background: #1e3a5f; color: #bae6fd; border-right: 2px solid #1e40af; }
.th-churn   { background: #312e81; color: #e0e7ff; border-left: 2px solid #4338ca; }

/* Celdas */
.churn-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
  text-align: center;
  font-size: 0.82rem;
}
.churn-row:nth-child(even) { background: #f8fafc; }
.churn-row:nth-child(odd)  { background: #fff; }
.churn-row:hover { background: #eef2ff; }

.td-period  { font-weight: 600; color: var(--text, #0f172a); text-align: left; padding-left: 12px; border-left: 3px solid #e2e8f0; }
.td-neutral { color: #475569; }
.td-altas   { color: #15803d; font-weight: 600; border-left: 2px solid #dbeafe; }
.td-bajas   { color: #b91c1c; font-weight: 600; }
.td-trasp   { color: #0369a1; font-weight: 500; border-right: 2px solid #dbeafe; }
.td-churn   { font-weight: 700; border-left: 2px solid #e0e7ff; }

/* Columna avg churn con fondo tenue */
.churn-avgcol { background: rgba(99,102,241,0.06); }

/* Semáforo churn */
.churn-good { color: #15803d; }
.churn-warn { color: #b45309; }
.churn-bad  { color: #b91c1c; }

/* Fila Total anual */
.churn-row-total { background: #1e293b !important; }
.td-total { color: #e2e8f0 !important; font-weight: 700 !important; }
.churn-highlight { color: #fbbf24 !important; font-size: 0.88rem; }

/* KPI badge wrap */
.churn-kpi-badge-wrap { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* Delta vs año anterior */
.churn-delta-up   { font-size: 0.72rem; font-weight: 700; color: #b91c1c; background: #fee2e2; padding: 1px 6px; border-radius: 8px; }
.churn-delta-down { font-size: 0.72rem; font-weight: 700; color: #15803d; background: #dcfce7; padding: 1px 6px; border-radius: 8px; }
.churn-delta-flat { font-size: 0.72rem; font-weight: 600; color: #64748b; background: #f1f5f9; padding: 1px 6px; border-radius: 8px; }

/* Card contenedora (comparativa) */
.churn-section-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ── CUADRO COMPARATIVO ── */
.churn-comp-scroll { overflow-x: auto; }
.churn-comp-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 700px; }
.churn-comp-table thead tr { background: #0f172a; }

.comp-th-year {
  padding: 11px 16px; text-align: left; font-size: 0.68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: #94a3b8;
  width: 80px; border-right: 2px solid #1e293b;
}
.comp-th-total {
  padding: 11px 12px; text-align: center; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: #a5b4fc;
  background: #1e1b4b; border-right: 1px solid #312e81; border-left: 1px solid #312e81;
}
.comp-th-prod {
  padding: 11px 12px; text-align: center; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: #e2e8f0;
  border-right: 1px solid #1e293b; white-space: nowrap;
}
.comp-row { border-bottom: 1px solid #f1f5f9; }
.comp-row:last-child { border-bottom: none; }
.comp-row:hover td { filter: brightness(0.96); }

.comp-td-year {
  padding: 10px 16px; font-weight: 700; font-size: 0.88rem;
  color: var(--text, #0f172a); border-right: 2px solid #e2e8f0;
  background: #f8fafc; white-space: nowrap;
}
.comp-td-val { padding: 8px 12px; text-align: center; border-right: 1px solid #f1f5f9; vertical-align: middle; }

/* Heatmap */
.heat-low  { background: #f0fdf4; }
.heat-mid  { background: #fefce8; }
.heat-high { background: #fef2f2; }

.comp-val   { font-size: 0.88rem; font-weight: 700; color: #0f172a; }
.comp-delta { font-size: 0.7rem; margin-top: 2px; }
.comp-base  { color: #94a3b8; font-style: italic; }

/* ── ROOT CAUSE ── */
.rc-loading { padding: 40px; text-align: center; color: var(--text-muted, #64748b); font-size: 0.9rem; }
.rc-filters { flex-wrap: wrap; gap: 12px; }
.rc-total-badge { background: #1e293b; color: #e2e8f0; font-weight: 700; font-size: 1rem; padding: 6px 16px; border-radius: 8px; }

/* Grid de categorías */
.rc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 4px;
}

/* Tarjeta de categoría */
.rc-category-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.rc-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #1e293b;
  color: #e2e8f0;
}
.rc-cat-num { display: none; }
.rc-cat-desc { font-size: 0.85rem; font-weight: 600; flex: 1; }
.rc-cat-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s;
}
.rc-cat-count:hover { background: rgba(255,255,255,0.22); }

/* Sub-categorías */
.rc-subcats { padding: 8px 0; }

.rc-subcat {
  padding: 8px 16px;
  cursor: default;
  position: relative;
  transition: background .15s;
}
.rc-subcat:hover { background: #f8fafc; }

.rc-subcat-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.rc-subcat-code {
  font-size: 0.68rem;
  font-weight: 800;
  color: #6366f1;
  background: #eef2ff;
  padding: 1px 7px;
  border-radius: 10px;
  white-space: nowrap;
}
.rc-subcat-desc { font-size: 0.8rem; color: var(--text, #0f172a); flex: 1; }

/* Botón contador clicable */
.rc-count-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6366f1;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.rc-count-btn:hover { background: #6366f1; color: #fff; border-color: #6366f1; }

.rc-subcat-pct { font-size: 0.75rem; color: #64748b; width: 36px; text-align: right; }

/* Barra de progreso */
.rc-bar-bg { height: 5px; background: #f1f5f9; border-radius: 4px; overflow: hidden; margin-top: 2px; }
.rc-bar-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 4px; transition: width .4s ease; }

/* ── MODAL DE APPS ── */
.rc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.rc-modal-overlay.hidden { display: none !important; }

.rc-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
}
.rc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #1e293b;
  flex-shrink: 0;
}
.rc-modal-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
}
.rc-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.rc-modal-close:hover { color: #fff; background: #334155; }

.rc-modal-body {
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rc-modal-app {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rc-modal-app:last-child { border-bottom: none; }
.rc-modal-app-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}
.rc-modal-app-comment {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}
.rc-modal-app-motivo2 {
  font-size: 0.72rem;
  color: #6366f1;
  font-style: italic;
  margin-top: 2px;
}

/* ── BUSCADOR DE APP (RootCause) ── */
.rc-search-wrap {
  margin-bottom: 4px;
}
.rc-search-inner {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card, #fff);
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color .2s;
}
.rc-search-inner:focus-within { border-color: #6366f1; }
.rc-search-icon { font-size: 1rem; color: #94a3b8; flex-shrink: 0; }
.rc-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 10px;
  font-size: 0.9rem;
  color: var(--text, #0f172a);
}
.rc-search-input::placeholder { color: #94a3b8; }
.rc-search-clear {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.rc-search-clear:hover { background: #f1f5f9; color: #475569; }

/* Resultados */
.rc-search-empty {
  padding: 16px 20px;
  color: #64748b;
  font-size: 0.85rem;
}
.rc-search-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-left: 4px solid #6366f1;
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.rc-search-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border, #e2e8f0);
  gap: 12px;
  flex-wrap: wrap;
}
.rc-search-app-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.rc-search-badges { display: flex; gap: 6px; align-items: center; }
.rc-badge-product {
  font-size: 0.72rem;
  font-weight: 600;
  background: #eef2ff;
  color: #4338ca;
  padding: 2px 8px;
  border-radius: 10px;
}
.rc-badge-canal {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.rc-badge-canal.direct  { background: #dcfce7; color: #15803d; }
.rc-badge-canal.partner { background: #dbeafe; color: #1d4ed8; }

.rc-search-card-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rc-search-row {
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
  align-items: baseline;
}
.rc-search-label {
  font-weight: 600;
  color: #64748b;
  min-width: 110px;
  flex-shrink: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rc-search-causa {
  font-weight: 600;
  color: #6366f1;
}
.rc-search-comment {
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 4px;
  align-items: flex-start;
}
.rc-search-comment span:last-child {
  color: #475569;
  line-height: 1.5;
  font-style: italic;
}
