/* ══════════════════════════════════════════════════════════════════════
   NIGC · Contexto de encargo (chip header + selector + banner)
   CSS separado. ══════════════════════════════════════════════════════════ */

/* Chip en el header */
.ctx-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2);
  padding: 5px 12px; border-radius: 999px; cursor: pointer; font-size: 12px;
  font-weight: 600; max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s;
}
.ctx-chip:hover { background: rgba(255,255,255,.22); }
.ctx-chip .ctx-ico { font-size: 14px; }
.ctx-chip.firma { background: rgba(245,124,0,.25); border-color: rgba(245,124,0,.5); }

/* Overlay del selector */
.ctx-ov {
  position: fixed; inset: 0; z-index: 10050; background: rgba(7,13,40,.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ctx-box {
  background: #fff; width: 100%; max-width: 640px; max-height: 88vh; overflow: hidden;
  border-radius: 14px; display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0,0,0,.4);
}
.ctx-hd { background: linear-gradient(135deg,#0d1b4b,#1e3a8a); color: #fff; padding: 18px 22px; }
.ctx-hd h2 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.ctx-hd p { margin: 4px 0 0; font-size: .85rem; opacity: .85; }
.ctx-body { padding: 16px 22px; overflow-y: auto; }
.ctx-firma-btn {
  width: 100%; text-align: left; padding: 14px 16px; border: 2px solid #f57c00;
  background: #fff7ed; border-radius: 10px; cursor: pointer; margin-bottom: 16px;
  font-size: .95rem; font-weight: 700; color: #9a3412; display: flex; align-items: center; gap: 10px;
}
.ctx-firma-btn:hover { background: #ffedd5; }
.ctx-emp { margin-bottom: 14px; }
.ctx-emp-h { font-size: .82rem; font-weight: 800; color: #0d1b4b; text-transform: uppercase; margin-bottom: 6px; }
.ctx-enc-btn {
  width: 100%; text-align: left; padding: 11px 14px; border: 1px solid #cbd5e1;
  background: #fff; border-radius: 9px; cursor: pointer; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .9rem;
}
.ctx-enc-btn:hover { border-color: #0d1b4b; background: #f8fafc; }
.ctx-enc-btn .b { font-weight: 700; color: #0d1b4b; }
.ctx-badge { font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-weight: 700; }
.ctx-empty { padding: 24px; text-align: center; color: #94a3b8; }

/* Banner dentro de las páginas de componentes NIGC */
.ctx-banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px;
  margin-bottom: 16px; font-size: .9rem; border-left: 6px solid;
}
.ctx-banner.encargo { background: #eff6ff; border-color: #2563eb; color: #1e3a8a; }
.ctx-banner.firma   { background: #fff7ed; border-color: #f57c00; color: #9a3412; }
.ctx-banner.warn    { background: #fef2f2; border-color: #dc2626; color: #991b1b; }
.ctx-banner .ctx-b-ico { font-size: 20px; }
.ctx-banner b { font-weight: 800; }
.ctx-banner button {
  margin-left: auto; padding: 7px 13px; border: 0; border-radius: 8px; cursor: pointer;
  background: #0d1b4b; color: #fff; font-weight: 700; font-size: .82rem;
}

@media (max-width: 600px) {
  .ctx-chip { max-width: 160px; }
}
