/* NS Gestión · Soporte (panel lateral de tickets) */
.nssop-back{position:fixed;inset:0;z-index:100000;background:rgba(15,23,42,.42);backdrop-filter:blur(2px);display:flex;justify-content:flex-end}
.nssop{width:min(520px,100vw);height:100%;background:#fff;display:flex;flex-direction:column;box-shadow:-20px 0 50px -10px rgba(15,23,42,.35);font-family:var(--ds-font,Inter,system-ui,sans-serif);color:#0f172a;animation:nssopIn .18s ease-out}
@keyframes nssopIn{from{transform:translateX(30px);opacity:.4}to{transform:none;opacity:1}}
.nssop-cab{display:flex;align-items:flex-start;gap:12px;padding:20px 22px 14px;background:linear-gradient(150deg,#0a1f4d,#123d8a);color:#fff}
.nssop-cab h3{margin:0!important;font-size:18px!important;font-weight:700;color:#fff!important}.nssop-cab span{display:block;font-size:13px;color:#c7d6f3;margin-top:3px}
.nssop-ico{flex:0 0 40px;width:40px;height:40px;border-radius:11px;background:rgba(255,255,255,.14);display:grid;place-items:center}
.nssop svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nssop-x{margin-left:auto;border:0;background:rgba(255,255,255,.12);color:#fff;width:34px;height:34px;border-radius:9px;font-size:22px;line-height:1;cursor:pointer}
.nssop-tabs{display:flex;gap:4px;padding:10px 16px 0;border-bottom:1px solid #e6eaf0;background:#fff}
.nssop-tabs button{border:0;background:none;padding:10px 12px;font:600 13.5px/1 inherit;color:#64748b;border-bottom:2px solid transparent;cursor:pointer;display:flex;align-items:center;gap:6px}
.nssop-tabs button.on{color:#2457e6;border-bottom-color:#2457e6}
.nssop-tabs b{background:#dc2626;color:#fff;border-radius:999px;font-size:11px;padding:2px 7px}
.nssop-cuerpo{flex:1;overflow-y:auto;padding:18px 22px calc(18px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
.nssop-form{display:flex;flex-direction:column;gap:12px}
.nssop-form label{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:600;color:#334155}
.nssop-form input,.nssop-form select,.nssop-form textarea,.nssop-resp textarea{width:100%;box-sizing:border-box;border:1px solid #d5dce6;border-radius:10px;padding:10px 12px;font:400 14px/1.45 inherit;color:#0f172a;background:#fff}
.nssop-form input:focus,.nssop-form select:focus,.nssop-form textarea:focus,.nssop-resp textarea:focus{outline:none;border-color:#2457e6;box-shadow:0 0 0 4px #eef3ff}
.nssop-fila{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.nssop-quien{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.nssop-quien>div{border:1px solid #e6eaf0;background:#f8fafc;border-radius:10px;padding:10px 12px;min-width:0}
.nssop-quien small{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;font-weight:700}
.nssop-quien strong{display:block;font-size:13.5px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nssop-quien span{display:block;font-size:12px;color:#64748b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nssop-adj{flex-direction:row!important;align-items:center;gap:8px!important;border:1px dashed #c3cdda;border-radius:10px;padding:11px 12px;cursor:pointer;color:#2457e6!important;font-weight:600!important}
.nssop-adj input{display:none}.nssop-adj span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nssop-meta{font-size:12px;color:#94a3b8}.nssop-meta a{color:#2457e6}
.nssop-aviso{background:#fff8eb;border:1px solid #f6dfb5;color:#9a5b00;border-radius:10px;padding:10px 12px;font-size:12.5px}
.nssop-err{background:#fdeeee;color:#b91c1c;border-radius:10px;padding:9px 12px;font-size:13px}
.nssop-pie{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.nssop-pie button{min-height:42px;padding:0 18px;border-radius:10px;font-weight:600;cursor:pointer}
.nssop-listo{text-align:center;padding:30px 10px}.nssop-listo>svg{width:54px;height:54px;color:#16a34a}
.nssop-listo h4{margin:10px 0 4px;font-size:20px}.nssop-listo p{margin:0;color:#64748b}
.nssop-num{display:inline-block;margin:10px 0 12px;padding:10px 22px;border-radius:12px;background:#eef3ff;color:#1d47c4;font:700 26px/1 ui-monospace,Consolas,monospace;letter-spacing:.04em}
.nssop-sub{font-size:13px;margin-bottom:18px!important}.nssop-listo .nssop-pie{justify-content:center}
.nssop-lista{display:flex;flex-direction:column;gap:8px}
.nssop-item{display:block;text-align:left;width:100%;border:1px solid #e6eaf0;background:#fff;border-radius:12px;padding:12px 14px;cursor:pointer;font:inherit;color:inherit}
.nssop-item:hover{border-color:#c9d7fb;background:#fbfcff}.nssop-item.nuevo{border-left:4px solid #2457e6}
.nssop-item-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px}
.nssop-item-top b{font:700 12.5px ui-monospace,Consolas,monospace;color:#475569}
.nssop-item strong{display:block;font-size:14px}.nssop-item small{display:block;color:#64748b;font-size:12px;margin-top:3px}
.nssop-est{display:inline-block;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:700;background:#eef3ff;color:#2457e6}
.nssop-est.pr{background:#fff7e8;color:#b45309}.nssop-est.es{background:#f3e8ff;color:#7e22ce}.nssop-est.ok{background:#eafaf0;color:#15803d}.nssop-est.ce{background:#f1f5f9;color:#475569}
.nssop-volver{border:0;background:none;color:#2457e6;font:600 13px inherit;cursor:pointer;padding:0;margin-bottom:12px}
.nssop-tk-cab{border-bottom:1px solid #e6eaf0;padding-bottom:12px;margin-bottom:12px}
.nssop-tk-cab>div{display:flex;gap:8px;align-items:center}.nssop-tk-cab b{font:700 13px ui-monospace,Consolas,monospace;color:#475569}
.nssop-tk-cab h4{margin:6px 0 4px;font-size:17px}.nssop-tk-cab small{color:#64748b;font-size:12px}
.nssop-hilo{display:flex;flex-direction:column;gap:10px;max-height:46vh;overflow-y:auto;padding:2px}
.nssop-msg{border-radius:12px;padding:10px 12px;max-width:88%;font-size:13.5px;line-height:1.5}
.nssop-msg.usuario{background:#f1f5f9;align-self:flex-end}.nssop-msg.soporte{background:#eef3ff;border:1px solid #d7e2fd;align-self:flex-start}
.nssop-msg-cab{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:4px}.nssop-msg-cab span{color:#94a3b8}
.nssop-sis{align-self:center;font-size:11.5px;color:#94a3b8;background:#f8fafc;border-radius:999px;padding:3px 10px}
.nssop-adj-link{display:inline-flex;align-items:center;gap:5px;margin-top:6px;font-size:12.5px;color:#2457e6}.nssop-adj-link svg{width:15px;height:15px}
.nssop-resp{margin-top:14px;display:flex;flex-direction:column;gap:8px}
.nssop-vacio,.nssop-cargando,.nssop-error{padding:30px 10px;text-align:center;color:#64748b}.nssop-error{color:#b91c1c}
.ns-sop-dot{margin-left:auto;background:#dc2626;color:#fff;border-radius:999px;font-size:10.5px;font-weight:700;padding:1px 7px}
@media(max-width:768px){
  .nssop{width:100vw;border-radius:0}
  .nssop-fila,.nssop-quien{grid-template-columns:1fr}
  .nssop-form input,.nssop-form select,.nssop-form textarea,.nssop-resp textarea{font-size:16px}
  .nssop-pie button{flex:1}
  .nssop-hilo{max-height:none}
}
.nssop-toast{position:fixed;right:20px;bottom:20px;z-index:99999;display:flex;align-items:center;gap:12px;max-width:min(380px,calc(100vw - 32px));padding:14px 16px;border:0;border-radius:14px;background:#0d2f6e;color:#fff;text-align:left;cursor:pointer;box-shadow:0 18px 40px -12px rgba(15,23,42,.5);font:inherit;animation:nssopIn .2s ease-out}
.nssop-toast svg{flex:0 0 22px;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
.nssop-toast span{font-size:13px;color:#dbeafe;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.nssop-toast b{display:block;color:#fff;font-size:14px}
@media(max-width:768px){.nssop-toast{left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));max-width:none}}
.nssop-consultor{margin-top:10px;border:1px solid #c7d2fe;background:#eef2ff;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}.nssop-consultor small{font-size:11px;font-weight:700;color:#4338ca;text-transform:uppercase;letter-spacing:.04em}.nssop-consultor strong{font-size:14px;color:#0f172a}.nssop-consultor a{font-size:13px;color:#2563eb}.nssop-consultor span{font-size:12px;color:#64748b}
