/* views/oportunidades.css — Kanban del pipeline */

.kanban {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 14px 20px;
  min-height: calc(100vh - 260px)
}

.kcol {
  flex: 0 0 260px;
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px;
  transition: background 100ms;
  border: 1px solid var(--bd)
}

.kcol:last-child {
  margin-right: 14px
}

.kcol.over {
  background: var(--gl);
  border-color: var(--green)
}

.kcol.terminado {
  background: #f1f5f9
}

.kcol.k-aprobado {
  background: var(--gl);
  border-color: var(--green)
}

.kcol.k-perdido {
  background: #fef2f2;
  border-color: #fecaca
}

.kcol.k-pausa {
  background: #fffbeb;
  border-color: #fde68a
}

.kcol.k-noviable {
  background: #f5f5f4;
  border-color: #d6d3d1
}

.kcol-head {
  font-weight: 600;
  font-size: 11px;
  padding: 6px 8px 8px;
  display: flex;
  justify-content: space-between;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em
}

.kcol-head .cnt {
  color: var(--tm);
  font-weight: 500
}

.kcard {
  background: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-left: 3px solid var(--tm);
  cursor: grab;
  box-shadow: var(--sh);
  font-size: 12px;
  position: relative
}

.kcard:hover {
  box-shadow: var(--shm)
}

.kcard.drag {
  opacity: .5
}

.kcard .ko-name {
  font-weight: 600;
  color: var(--text);
  line-height: 1.3
}

.kcard .ko-cli {
  color: var(--ts);
  font-size: 11px;
  margin-top: 3px
}

.kcard .ko-meta {
  display: flex;
  align-items: center;
  margin-top: 8px;
  font-size: 10px;
  color: var(--tm);
  flex-wrap: wrap;
  gap: 5px
}

.kcard .ko-resp {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.kcard .ko-right {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0
}

.region-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: #E8F5E9;
  color: #2E7D32;
  margin-right: 4px;
  vertical-align: middle
}

.region-badge.int {
  background: #E3F2FD;
  color: #1565C0
}

.kcard .stale {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #f59e0b;
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 700
}

.kcard .ko-prob {
  background: var(--green);
  color: var(--text);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600
}

.ko-prob.prob-low {
  background: #fee2e2;
  color: #991b1b
}

.ko-prob.prob-ok {
  background: #fef3c7;
  color: #92400e
}

.ko-prob.prob-med {
  background: #d1fae5;
  color: #065f46
}

.ko-prob.prob-high {
  background: var(--green);
  color: #1b5e20
}

.kcol[data-phase="atraccion"] .kcol-head {
  border-top: 3px solid #60a5fa
}

.kcol[data-phase="formulacion"] .kcol-head {
  border-top: 3px solid #f59e0b
}

.kcol[data-phase="seguimiento"] .kcol-head {
  border-top: 3px solid var(--gd)
}

.kcol[data-phase="terminal"] .kcol-head {
  border-top: 3px solid #94a3b8
}

.kcol[data-phase="post_atraccion"] .kcol-head {
  border-top: 3px solid #7c3aed
}

.kcol.intl-only {
  background: linear-gradient(180deg, #eff6ff, #f8fafc);
  border-color: #bfdbfe
}

.kcol.intl-only .kcol-head::after {
  content: '';
  margin-left: 4px;
  font-size: 10px
}

.pipe-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 10px;
  font-weight: 700;
  cursor: default;
  margin-left: 6px;
  position: relative
}

.pipe-info:hover .pipe-info-tip {
  display: block
}

.pipe-info-tip {
  display: none;
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: normal;
  width: 280px;
  z-index: 400;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0
}
