/* ════════ Cotizaciones NEXIA (cotnexia.js + ofertasnx.js) ════════
   Generado el 2-oct-2026 a partir del CSS de Cotizaciones Artium (styles.css «pipe», las reglas .nx-* de
   ds.css y ofertas.css) con los prefijos .nx-* / .nf-*, más la capa de marca Nexia al final.
   .ca-modal / .ca-modal-sm se conservan a propósito: la capa de diseño (ds.css/ds.js) y app.js los tratan así. */
/* ════════ Cotizaciones Artium — pipe por columnas (cotartium.js) ════════ */
.panel.nx-host { background: transparent; box-shadow: none; overflow: visible; }
.nx-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.nx-seg { display: inline-flex; background: #e9edf3; border-radius: 10px; padding: 3px; gap: 2px; }
.nx-seg button { border: none; background: none; border-radius: 8px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; color: #4a5a70; cursor: pointer; }
.nx-seg button span { font-weight: 500; color: #8391a5; margin-left: 4px; }
.nx-seg button.on { background: #fff; color: var(--azul); box-shadow: 0 1px 3px rgba(20,40,70,.12); }
.nx-seg button.on span { color: var(--azul2); }

.nx-agenda { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.nx-ag-tit { font-size: 12px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
.content:has(.nx-host) .estado { display: none; }
.nx-mas { font-size: 12px; color: var(--gris); }
.nx-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; background: #eef1f5; color: #4a5a70; border: none; font-family: inherit; }
.nx-chip.ambar { background: #fff3dc; color: #8a5300; }
.nx-chip.rojo { background: #fde8e8; color: #b42318; }
.nx-chip.apagado { background: #f3f4f6; color: #9aa3b0; }
button.nx-ag { cursor: pointer; padding: 4px 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
button.nx-ag:hover { filter: brightness(.96); }

.nx-tabs { display: none; }
.nx-tablero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.nx-col { background: #eef1f5; border-radius: 12px; padding: 10px 8px 8px; min-width: 0; min-height: 180px; transition: background .12s, box-shadow .12s; }
.nx-col.sobre { background: #e1ebf7; box-shadow: inset 0 0 0 2px var(--azul2); }
.nx-col-h { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 14px; color: var(--azul); }
.nx-n { margin-left: auto; font-size: 12px; font-weight: 600; color: #6b7a8f; background: #fff; border-radius: 10px; padding: 1px 8px; }
.nx-dot, .nx-est::before { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: #8a94a3; }
[data-e="Abierta"].nx-dot, .nx-est[data-e="Abierta"]::before { background: #2E6DA4; }
[data-e="Creada"].nx-dot, .nx-est[data-e="Creada"]::before { background: #D68910; }
[data-e="Enviada"].nx-dot, .nx-est[data-e="Enviada"]::before { background: #7c4dca; }
[data-e="Ganada"].nx-dot, .nx-est[data-e="Ganada"]::before { background: #2E7D32; }
[data-e="Perdida"].nx-dot, .nx-est[data-e="Perdida"]::before { background: #b0b7c3; }
/* «Otro» = un estado de YetiForce que no es columna del tablero (botón «Otros estados»). */
[data-e="Otro"].nx-dot, .nx-est[data-e="Otro"]::before { background: #0f7f8c; }
/* Obligatorio porque lo exige el CRM (las celdas con * de YetiForce). */
.nx-req { color: #C62828; font-weight: 700; margin-left: 2px; cursor: help; }
.nx-sync[disabled] { opacity: .6; cursor: progress; }
.nx-estados-m h3 { margin: 6px 0 4px; }
.nx-crm.aviso { background: #fff8e6; border: 1px solid #f0d9a0; border-radius: 8px; padding: 8px 10px; }
.nx-crm.aviso > span { color: #B06B00; font-weight: 700; }
.nx-ayuda { font-size: 12px; color: #8391a5; padding: 2px 6px 8px; }
.nx-lista { display: flex; flex-direction: column; gap: 8px; }
.nx-vacia { font-size: 12.5px; color: #98a3b3; text-align: center; padding: 18px 8px; border: 1.5px dashed #d5dbe4; border-radius: 10px; }

.nx-card { background: #fff; border: 1px solid #e2e6ed; border-radius: 10px; padding: 10px 11px; cursor: pointer; transition: box-shadow .12s, transform .12s, border-color .12s; outline: none; }
.nx-card:hover, .nx-card:focus-visible { border-color: #c5cfdd; box-shadow: 0 4px 12px rgba(20,40,70,.08); }
.nx-card:focus-visible { box-shadow: 0 0 0 3px rgba(46,109,164,.25); }
.nx-card[draggable="true"] { cursor: grab; }
.nx-card.arrastrando { opacity: .45; transform: rotate(1deg); }
.nx-card.tmp { opacity: .6; cursor: default; }
.nx-ent { font-weight: 700; font-size: 14px; color: #1d2b3c; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-tit { font-size: 13px; color: #5b6b80; margin-top: 3px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.nx-pie { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font-size: 12px; color: #8391a5; }
.nx-cat { font-weight: 600; color: #6b7a8f; }
.nx-card.cerrada { padding: 8px 10px; }
.nx-card.cerrada .nx-ent { font-size: 13px; font-weight: 600; -webkit-line-clamp: 1; }
.nx-det { font-size: 12px; color: #6b7a8f; margin-top: 2px; }
.nx-det.gan { color: var(--ok); font-weight: 600; }
.nx-pie-tablero { text-align: center; margin-top: 12px; }
.nx-spin { border-color: var(--azul2); border-top-color: transparent; width: 11px; height: 11px; }

/* Ficha: cabecera fija de sentido, 3 pasos, «qué sigue» y pestañas */
.modal-card.ca-modal { width: min(720px, 94vw); padding: 22px 24px 0; }
.modal-card.ca-modal-sm { width: min(560px, 94vw); }
/* PC/tablet: la ficha de la oportunidad ocupa el 90 % de la pantalla (Juan, 2-oct-2026). Alto fijo
   para que no salte al cambiar de pestaña. En celular (≤600px) manda la regla de pantalla completa. */
@media (min-width: 601px) {
  .modal-card.ca-modal { width: 90vw; max-width: 90vw; height: 90vh; max-height: 90vh; }
}
.oculto { display: none !important; }
.btn.grande { min-height: 46px; padding: 12px 20px; font-size: 15px; }

.nx-fh { display: flex; align-items: flex-start; gap: 12px; padding-right: 26px; }
.nx-fh-txt { flex: 1; min-width: 0; }
.nx-fh-tit { font-size: 20px; margin: 0 !important; color: #1d2b3c !important; line-height: 1.25; overflow-wrap: anywhere; }
.nx-fh-sub { font-size: 14px; color: #5b6b80; margin-top: 2px; overflow-wrap: anywhere; }
.nx-fh-meta { font-size: 12.5px; color: #8391a5; margin-top: 3px; }
.nx-est { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 12px; font-weight: 700; color: #3b4a5e; background: #eef1f5; border-radius: 20px; padding: 4px 11px 4px 9px; }
.nx-est::before { content: ""; }
.nx-cierre { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.nx-cierre.gan { background: #e6f4ea; color: #1e6b2a; }
.nx-cierre.per { background: #f1f2f5; color: #4a5566; }
.nx-nota { font-weight: 400; font-size: 13px; margin-top: 4px; white-space: pre-line; }

/* Los tres pasos: dónde va la cotización y a dónde se puede mover (un clic) */
.nx-pasos { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 14px 0 0; padding: 0; }
.nx-pasos li { min-width: 0; }
.nx-pasos button { width: 100%; min-width: 0; display: flex; align-items: center; gap: 8px; border: 1px solid #e1e6ee; background: #fff; border-radius: 10px; padding: 9px 10px; font: inherit; text-align: left; cursor: pointer; transition: .12s; }
.nx-pasos button:disabled { cursor: default; }
.nx-pasos .pend button:hover:not(:disabled) { border-color: var(--azul2); background: #f5f9fd; }
.nx-paso-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #eef1f5; color: #6b7a8f; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.nx-paso-t { min-width: 0; display: flex; flex-direction: column; }
.nx-paso-t b { font-size: 13px; color: #33415a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-paso-t small { font-size: 11.5px; color: #98a3b3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-pasos .hecho button { background: #f4f9f5; border-color: #cfe4d4; }
.nx-pasos .hecho .nx-paso-n { background: var(--ok); color: #fff; }
.nx-pasos .actual button { border-color: var(--azul2); box-shadow: inset 0 0 0 1px var(--azul2); }
.nx-pasos .actual .nx-paso-n { background: var(--azul2); color: #fff; }

/* Qué hay que hacer ahora: un titular, una explicación y UN botón principal */
.nx-sigue { margin-top: 12px; border: 1px solid #dbe6f2; background: #f5f9fd; border-radius: 12px; padding: 13px 14px; }
.nx-sigue-txt b { font-size: 15px; color: #1d2b3c; }
.nx-sigue-txt p { font-size: 13px; color: #5b6b80; margin-top: 3px; line-height: 1.45; }
.nx-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.nx-acciones .btn { min-height: 40px; }
.nx-cerrar-fila { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 11px; padding-top: 10px; border-top: 1px solid #e3ebf4; }
.nx-cerrar-fila.suave > span { font-size: 12.5px; color: #8391a5; }
.nx-cerrar-fila .btn.link { padding: 2px 4px; }

/* Pestañas de la ficha (los tres paneles viven en el DOM: cambiar de pestaña no borra nada) */
.nx-nav { display: flex; gap: 2px; margin: 16px 0 12px; border-bottom: 1px solid var(--borde); overflow-x: auto; scrollbar-width: none; }
.nx-nav button { flex: none; border: none; background: none; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600; color: #6b7a8f; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.nx-nav button:hover { color: var(--azul); }
.nx-nav button.on { color: var(--azul); border-bottom-color: var(--azul2); }
.nx-nav button span { font-size: 11.5px; background: #eef1f5; border-radius: 9px; padding: 1px 6px; color: #6b7a8f; }
.nx-panel { display: flex; flex-direction: column; gap: 12px; }
.nx-sec { border: 1px solid #e6e9ef; border-radius: 12px; padding: 12px 14px; min-width: 0; }
.nx-sec h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #8391a5; margin-bottom: 8px; }

/* Cliente: se ve de un golpe si está o no en el CRM y qué implica */
.nx-cliente { margin-bottom: 12px; }
.nx-cli-vacio { width: 100%; border: 1.5px dashed #c8d3e0; background: #fbfcfe; border-radius: 10px; padding: 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--azul2); cursor: pointer; }
.nx-cli-vacio:hover { border-color: var(--azul2); background: #f3f8fd; }
.nx-cli-fila { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #e1e6ee; border-radius: 10px; padding: 11px 12px; }
.nx-cli-fila.ok { border-color: #cfe4d4; background: #f5faf6; }
.nx-cli-fila.aviso { border-color: #f0dcb4; background: #fffaf0; }
.nx-cli-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: #8a94a3; }
.nx-cli-fila.ok .nx-cli-ic { background: var(--ok); }
.nx-cli-fila.aviso .nx-cli-ic { background: #D68910; }
.nx-cli-txt { flex: 1; min-width: 0; }
.nx-cli-txt b { display: block; font-size: 14.5px; color: #1d2b3c; overflow-wrap: anywhere; }
.nx-cli-txt small { display: block; font-size: 12.5px; color: #5b6b80; margin-top: 2px; line-height: 1.4; }
.nx-cli-fila .btn { flex: none; }
.nx-crm { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #5b6b80; margin-top: 10px; line-height: 1.45; }
.nx-crm > span { flex: none; }
.nx-crm.ok > span { color: var(--ok); font-weight: 700; }

/* Campos */
.nx-f { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; min-width: 0; flex: 1; }
.nx-f > span, .nx-f-etq { font-size: 12.5px; font-weight: 600; color: #4a5a70; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nx-f-etq { margin-bottom: 6px; }
.nx-f small { font-weight: 400; color: #98a3b3; }
.nx-f input, .nx-f select, .nx-f textarea { width: 100%; min-width: 0; border: 1px solid #d9dfe7; border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 14px; color: #1d2b3c; background: #fff; }
.nx-f input:focus, .nx-f select:focus, .nx-f textarea:focus { outline: none; border-color: var(--azul2); box-shadow: 0 0 0 3px rgba(46,109,164,.15); }
.nx-f input:disabled, .nx-f select:disabled, .nx-f textarea:disabled { background: #f6f7f9; color: #5b6b80; }
.nx-f textarea { resize: vertical; line-height: 1.45; }
.nx-par { display: flex; gap: 10px; }
.nx-par .nx-f.hora { flex: 0 0 118px; }
.nx-mini { font-size: 12.5px; color: #8391a5; margin: 0 0 8px; line-height: 1.45; }
.nx-archivo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.nx-archivo .btn.link:first-child { font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.nx-terminos { display: flex; flex-direction: column; gap: 4px; }
.nx-terminos a { font-size: 13px; color: var(--azul2); text-decoration: none; overflow-wrap: anywhere; }
.nx-terminos a:hover { text-decoration: underline; }
.nx-contacto-rapido { display: flex; gap: 8px; }
.nx-contacto-rapido:empty { display: none; }
.nx-contacto-rapido .btn { text-decoration: none; margin-bottom: 8px; }

/* Elegir el cliente (pantalla propia) */
.nx-buscador { padding-bottom: 16px; }
.nx-res { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 10px; }
.nx-res-it { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 1px solid #e4e8ef; border-radius: 10px; background: #fff; padding: 10px 12px; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.nx-res-it:hover { border-color: var(--azul2); background: #f5f9fd; }
.nx-res-it b { font-size: 14px; color: #1d2b3c; overflow-wrap: anywhere; }
.nx-res-it small { font-size: 12px; color: #8391a5; overflow-wrap: anywhere; }
.nx-res-crear { width: 100%; border: 1.5px dashed #c8d3e0; border-radius: 10px; background: #fbfcfe; padding: 11px 12px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--azul2); cursor: pointer; text-align: left; }
.nx-res-crear:hover { border-color: var(--azul2); background: #f3f8fd; }
.nx-alta { border-top: 1px solid var(--borde); margin-top: 8px; padding-top: 14px; }
.nx-alta h4 { font-size: 14.5px; color: var(--azul); margin-bottom: 2px; }
.nx-fallo { border: 1px solid #f3c9c9; background: #fdf3f3; border-radius: 10px; padding: 11px 12px; margin: 10px 0; font-size: 13px; color: #6b2b2b; line-height: 1.45; }
.nx-fallo p { margin-top: 6px; }
.nx-fallo-b { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.nx-fallo details, .nx-aviso details { margin-top: 8px; }
.nx-fallo summary, .nx-aviso summary { cursor: pointer; font-size: 12px; color: #8a5a5a; }
.nx-fallo small, .nx-aviso small { overflow-wrap: anywhere; }
.nx-err-txt { color: var(--bad); font-size: 13px; margin-top: 6px; }
.nx-diag { margin-top: 10px; font-size: 12.5px; color: #4a5a70; }
.nx-diag ul { margin: 6px 0 4px 18px; }
.nx-diag li.mal { color: var(--bad); font-weight: 600; }
.nx-aviso { margin-top: 10px; padding: 9px 11px; border-radius: 8px; background: #fff3dc; color: #7a4a00; font-size: 12.5px; line-height: 1.45; }
.nx-aviso.suave { background: #f3f5f8; color: #5b6b80; }

/* Asistente de «Nueva cotización» (una pregunta a la vez) */
.nx-wizard { display: flex; gap: 6px; margin: 12px 0 2px; }
.nx-wizard button { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 8px; background: #eef1f5; padding: 8px 6px; font: inherit; font-size: 12.5px; font-weight: 600; color: #8391a5; cursor: default; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nx-wizard button span { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #d7dde6; color: #fff; font-size: 11px; display: grid; place-items: center; }
.nx-wizard button.on { background: #e3f0fb; color: var(--azul); }
.nx-wizard button.on span { background: var(--azul2); }
.nx-wizard button.hecho { color: #4a5a70; cursor: pointer; }
.nx-wizard button.hecho span { background: var(--ok); }
.nx-wizard-p { font-size: 15.5px; font-weight: 600; color: #1d2b3c; margin: 14px 0 10px; }
.nx-resumen { border: 1px solid var(--borde); border-radius: 10px; background: #fafbfd; padding: 11px 12px; margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.nx-resumen b { font-size: 14.5px; color: #1d2b3c; overflow-wrap: anywhere; }
.nx-resumen span { font-size: 12.5px; color: #5b6b80; }

/* Historial */
.nx-hist-l { list-style: none; margin: 0; padding: 0; }
.nx-hist-l li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid #f1f3f6; font-size: 13px; color: #33415a; }
.nx-hist-l li:first-child { border-top: none; }
.nx-hist-l li small { color: #98a3b3; font-size: 11.5px; }
.nx-hi { flex: 0 0 22px; height: 22px; border-radius: 50%; background: #eef1f5; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #5b6b80; }
.nx-borrar { text-align: right; padding: 4px 0 18px; }
.btn.link.peligro { color: var(--bad); font-weight: 500; font-size: 13px; }

/* Barra de guardar (pegada abajo, solo cuando hay cambios) */
.nx-guardar { position: sticky; bottom: 0; display: none; align-items: center; justify-content: flex-end; gap: 8px; background: #fff; border-top: 1px solid #e6e9ef; margin: 0 -24px; padding: 10px 24px; }
.nx-guardar.on { display: flex; }
.nx-guardar span { margin-right: auto; font-size: 13px; color: #8a5300; font-weight: 600; }
.nx-correo, .nx-cierre-m, .nx-nueva-m { padding-bottom: 20px; }
.nx-volver { padding: 0 0 8px; }
.nx-plantillas, .nx-motivos { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.nx-plantillas button, .nx-motivos button { border: 1px solid #dfe4eb; background: #fff; border-radius: 20px; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 600; color: #4a5a70; cursor: pointer; }
.nx-plantillas button.on, .nx-motivos button.on { background: #e3f0fb; border-color: var(--azul2); color: var(--azul); }
.nx-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 6px 0; cursor: pointer; }
.nx-check input { width: 18px; height: 18px; accent-color: var(--azul2); }
.nx-check.off { color: #98a3b3; cursor: default; }
.nx-err { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 4px; }
.nx-pie-modal { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.nx-seg-form { margin-bottom: 12px; }
.modal-card.ca-modal-sm .nx-guardar { display: none !important; }
/* Portátil angosto: las 5 columnas no caben → scroll horizontal del tablero */

/* Celular / tablet: una columna a la vez con pestañas; ficha a pantalla completa y toques grandes */
@media (max-width: 900px) {
  .nx-tabs { display: flex; gap: 4px; overflow-x: auto; position: sticky; top: 52px; z-index: 3; background: var(--bg); padding: 6px 0 8px; scrollbar-width: none; }
  .nx-tab { flex: 1 0 auto; border: 1px solid #dfe4eb; background: #fff; border-radius: 20px; padding: 9px 12px; font: inherit; font-size: 13.5px; font-weight: 600; color: #4a5a70; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
  .nx-tab span { font-size: 12px; color: #8391a5; font-weight: 600; }
  .nx-tab.on { background: var(--azul); border-color: var(--azul); color: #fff; }
  .nx-tab.on span { color: #cfe0f3; }
  .nx-tablero { display: block; }
  .nx-col { display: none; background: none; padding: 0; min-height: 0; }
  .nx-col.activa { display: block; }
  .nx-col-h { display: none; }
  .nx-ayuda { padding: 0 2px 8px; }
  .nx-card { padding: 13px 14px; }
  .nx-ent { font-size: 15.5px; }
  .nx-tit { font-size: 14px; }
  .nx-chip { font-size: 12.5px; padding: 3px 9px; }
  .nx-nueva { position: fixed; right: 16px; bottom: 18px; z-index: 30; border-radius: 28px; padding: 14px 20px; font-size: 15px; box-shadow: 0 8px 20px rgba(27,58,92,.35); }
  .nx-barra { margin-bottom: 8px; }
  .nx-seg { width: 100%; }
  .nx-seg button { flex: 1; padding: 9px 6px; }
  .nx-agenda { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nx-agenda > * { flex: none; }
  .nx-ag-tit { white-space: nowrap; }
  button.nx-ag { max-width: none; }
  .nx-lista { padding-bottom: 80px; }
}
@media (max-width: 600px) {
  .modal-card.ca-modal, .modal-card.ca-modal-sm { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; padding: 18px 16px 0; }
  .nx-guardar { margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .nx-fh-tit { font-size: 18.5px; }
  /* Los pasos siguen en fila pero sin la línea de ayuda: apilados se comían media pantalla
     y lo importante («qué hay que hacer ahora») quedaba por debajo del pliegue. */
  .nx-pasos { gap: 4px; }
  .nx-pasos button { padding: 10px 8px; gap: 6px; justify-content: center; }
  .nx-paso-t b { font-size: 12.5px; }
  .nx-paso-t small { display: none; }
  .nx-nav { position: sticky; top: 0; z-index: 2; background: #fff; margin: 14px -16px 12px; padding: 0 16px; }
  .nx-nav button { flex: 1; padding: 11px 6px; font-size: 14px; }
  .nx-par { flex-wrap: wrap; }
  .nx-par .nx-f { flex: 1 1 140px; }
  .nx-par .nx-f.hora { flex: 0 0 132px; }
  .nx-f input, .nx-f select, .nx-f textarea { font-size: 16px; padding: 11px 12px; } /* 16px: iOS no hace zoom */
  .nx-acciones .btn { flex: 1 1 auto; min-height: 46px; font-size: 15px; }
  .nx-cerrar-fila .btn { flex: 1; min-height: 44px; }
  .nx-cli-fila { flex-wrap: wrap; }
  .nx-cli-fila .btn { flex: 1 0 100%; min-height: 44px; margin-top: 6px; }
  .nx-plantillas button, .nx-motivos button { padding: 10px 14px; font-size: 14px; }
  .nx-pie-modal { position: sticky; bottom: 0; background: #fff; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); margin-top: 10px; }
  .nx-pie-modal .btn { flex: 1; min-height: 46px; }
  .nx-wizard button { font-size: 0; gap: 0; padding: 10px 4px; }   /* en el celular, solo los números */
  .nx-wizard button span { font-size: 12px; }
}

/* Ganadas / perdidas: fuera del pipe, se abren con botones de la barra */
.nx-barra-der { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nx-btn-cerr { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dfe4eb; background: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; color: #4a5a70; cursor: pointer; }
.nx-btn-cerr:hover { border-color: #c5cfdd; }
.nx-btn-cerr.on { border-color: var(--azul); box-shadow: inset 0 0 0 1px var(--azul); color: var(--azul); }
.nx-btn-cerr .nx-n { margin-left: 0; background: #eef1f5; }
.nx-cerradas { background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 14px 16px 18px; }
.nx-cerr-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.nx-cerr-h .btn.link { padding: 0; }
.nx-cerr-h h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--azul); }
.nx-cerr-res { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: #5b6b80; font-weight: 600; }
.nx-cerr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.nx-cerr-grid .nx-vacia { grid-column: 1 / -1; }
.nx-cerr-grid .nx-card.cerrada { padding: 11px 12px; }
.nx-cerr-grid .nx-card.cerrada .nx-ent { font-size: 14px; font-weight: 700; -webkit-line-clamp: 2; }
.nx-cerr-grid .nx-det { font-size: 13px; margin-top: 6px; }
.nx-soltar { display: none; }
.nx-tablero.arrastrando-on .nx-soltar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: max-content; max-width: min(94vw, 940px); position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; pointer-events: none; }
.nx-zona { pointer-events: auto; display: flex; align-items: center; gap: 8px; min-width: 176px; justify-content: center; padding: 14px 18px; border-radius: 14px; background: #fff; border: 2px dashed #c5cfdd; font-size: 14px; font-weight: 700; color: #4a5a70; box-shadow: 0 10px 28px rgba(20,40,70,.18); transition: .12s; }
.nx-zona[data-estado="Creada"].sobre { border-color: #D68910; background: #fdf3e3; color: #8a5a06; }
.nx-zona[data-estado="Enviada"].sobre { border-color: #7c4dca; background: #f1ebfb; color: #563091; }
.nx-zona[data-estado="Ganada"].sobre { border-color: var(--ok); background: #e6f4ea; color: #1e6b2a; }
.nx-zona[data-estado="Perdida"].sobre { border-color: #8a94a3; background: #f1f2f5; }
/* Donde la tarjeta ya está: se ve apagada y no acepta el soltar. */
.nx-zona.actual { opacity: .38; border-style: solid; box-shadow: none; }
@media (max-width: 900px) {
  .nx-barra-der { width: 100%; }
  .nx-btn-cerr { flex: 1; justify-content: center; padding: 11px 12px; font-size: 14px; }
  .nx-cerr-res { margin-left: 0; width: 100%; }
  .nx-cerr-grid { grid-template-columns: 1fr; }
}

/* ── Aprobación del cliente (correo con botón → firma con OTP en Jurídica) ── */
.nx-aprob { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid #dfe5ec;
  border-left: 4px solid #8a94a3; border-radius: 12px; padding: 14px; margin: 0 0 12px; }
.nx-aprob.espera { border-left-color: #D68910; background: #fffdf7; }
.nx-aprob.ok { border-left-color: #2E7D32; background: #f6fbf7; }
.nx-aprob-txt b { display: block; font-size: 15px; margin-bottom: 4px; }
.nx-aprob-txt p { margin: 0; font-size: 13.5px; color: #55657a; line-height: 1.5; }
.nx-aprob .nx-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
/* Sello en la tarjeta del tablero */
.nx-sello { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px;
  padding: 2px 9px; margin: 2px 0 0; background: #fdf3e3; color: #8a5a06; }
.nx-sello.ok { background: #e6f4ea; color: #1e6b2a; }

/* ── Rediseño 2-oct-2026 (Juan: «el UI está muy complejo») ─────────────────────────────────────
   Ficha = Cotización (1 ofertas → 2 PDF → 3 enviar) · Cliente · Historial; lo del CRM plegado. */
.nx-qcs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.nx-qc { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; border: 1px solid #dfe4eb; background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: #33415a; text-decoration: none; cursor: pointer; }
.nx-qc:hover { border-color: var(--azul2); color: var(--azul); }
.nx-qc-n { font-size: 12.5px; color: #5b6b80; margin-right: 2px; overflow-wrap: anywhere; }
.nx-k { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--azul); color: #fff; font-size: 11px; letter-spacing: 0; margin-right: 7px; vertical-align: 1px; }
.nx-sigue.aviso { border-color: #f0d9a0; background: #fffaf0; }
.nx-acciones.primero { margin-top: 0; margin-bottom: 12px; }
.nx-envio { font-size: 13.5px; color: #4a5a70; margin: 0 0 10px; line-height: 1.45; }
.nx-pdf-fila { display: flex; align-items: center; gap: 10px; border: 1px solid #e1e6ee; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fbfcfe; }
.nx-pdf-fila .ic { font-size: 20px; flex: none; }
.nx-pdf-fila .txt { flex: 1; min-width: 0; }
.nx-pdf-fila b { display: block; font-size: 14px; color: #1d2b3c; overflow-wrap: anywhere; }
.nx-pdf-fila small { font-size: 12px; color: #8391a5; }
.nx-pdf-fila .btn { flex: none; }
.btn.link.nx-alt { padding: 6px 0 0; font-size: 13px; }
.nx-crm-det > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; min-width: 0; }
.nx-crm-det > summary::-webkit-details-marker { display: none; }
.nx-crm-det > summary > span { flex: none; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #8391a5; font-weight: 700; }
.nx-crm-det > summary > small { flex: 1; min-width: 0; font-size: 13px; color: #4a5a70; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-crm-det > summary::after { content: '▾'; flex: none; color: #8391a5; transition: transform .15s; }
.nx-crm-det[open] > summary { margin-bottom: 12px; }
.nx-crm-det[open] > summary::after { transform: rotate(180deg); }
/* Tablero: qué le falta a cada tarjeta, con el valor de la cotización */
.nx-next { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #33415a; background: #f4f6f9; border-radius: 7px; padding: 5px 8px; }
.nx-next span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-next b { flex: none; font-variant-numeric: tabular-nums; color: var(--azul); }
.nx-next.av { background: #fff3dc; color: #8a5300; }
.nx-sync { min-width: 40px; font-size: 16px; padding-left: 10px; padding-right: 10px; }
/* PC: la ficha al 90 % aprovecha el ancho — dos columnas, lo largo a todo el ancho */
@media (min-width: 1100px) {
  .nx-panel[data-t="cotizacion"], .nx-panel[data-t="cliente"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
  .nx-panel .nx-sec.ancho { grid-column: 1 / -1; }
}
/* Valor de la cotizacion calculado con las ofertas (no se pregunta) */
.nx-valor-auto { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; border-top: 1px solid #eef1f5; padding-top: 10px; }
.nx-valor-auto span { font-size: 12.5px; font-weight: 600; color: #4a5a70; }
.nx-valor-auto b { font-size: 17px; color: var(--azul); font-variant-numeric: tabular-nums; }
.nx-valor-auto small { grid-column: 1 / -1; font-size: 12px; color: #8391a5; }
/* ── reglas de ds.css para el módulo ── */
.nx-f input,.nx-f select,.nx-f textarea{border-color:var(--borde);border-radius:var(--radio-ctl);min-height:var(--ctl-h)}
.nx-f input:focus,.nx-f select:focus,.nx-f textarea:focus{border-color:var(--azul);box-shadow:var(--foco)}
.panel.nx-host{border:none;box-shadow:none}
.nx-tab.on,.nx-mover button.on{background:var(--azul);border-color:var(--azul)}
.nx-col.sobre{box-shadow:inset 0 0 0 2px var(--azul)}
.nx-cerradas,.nx-agenda{border-color:var(--borde);box-shadow:var(--sombra)}
/* ── ofertas.css ── */
/* ════════ Cotizaciones Artium → OFERTAS (ofertas.js) ════════
   Usa los tokens de ds.css (--azul, --gris, --borde…). Todo con prefijo .nf- para no pisar nada.
   Diseño aprobado por Juan sobre la maqueta v2 (30-sep-2026): una línea por ítem, liquidaciones al
   final, celular primero (≤700 px: una línea por ítem + hoja para editarla). */
:root { --nf-oro: #b8893a; --nf-oro-cl: #faf3e6; --nf-oro-osc: #8a6424; }
.nf-host .num { font-variant-numeric: tabular-nums; }
.nf-mini { font-size: 12.5px; color: var(--gris); line-height: 1.45; }
.nf-mini.oro { color: var(--nf-oro-osc); }
.nf-h3 { font-size: 20px; font-weight: 700; color: var(--texto); margin: 4px 0 2px; }
.nf-host .mt { margin-top: 10px; }
.nf-host .peligro { color: var(--bad) !important; }
.btn.xs { min-height: auto; padding: 0 4px; font-size: 11.5px; }

/* Sub-navegación del módulo: Oportunidades · Ofertas · Configuración */
.nf-sub { display: flex; gap: 4px; background: var(--gris-cl); border-radius: 12px; padding: 4px; margin: 0 0 14px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.nf-sub button { border: none; background: none; border-radius: 9px; padding: 8px 16px; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--gris); cursor: pointer; white-space: nowrap; }
.nf-sub button.on { background: #fff; color: var(--azul); box-shadow: var(--sombra); }

/* Campos */
.nf-in, .nf-host .nf-in { width: 100%; min-height: 38px; border: 1px solid var(--borde); border-radius: var(--radio-ctl); background: #fff; padding: 7px 10px; font: inherit; font-size: 14px; color: var(--texto); transition: .15s; }
.nf-in:hover, .nf-host .nf-in:hover { border-color: #b9c4d2; }
.nf-in:focus, .nf-host .nf-in:focus { outline: none; border-color: var(--azul2); box-shadow: var(--foco); }
.nf-in.num, .nf-host .nf-in.num { text-align: right; font-variant-numeric: tabular-nums; }
textarea.nf-in { line-height: 1.5; resize: vertical; }
.nf-pre, .nf-suf { position: relative; display: block; }
.nf-pre .nf-in { padding-left: 20px; }
.nf-pre::before { content: "$"; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: var(--gris); font-size: 12px; pointer-events: none; }
.nf-suf .nf-in { padding-right: 20px; }
.nf-suf::after { content: "%"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--gris); font-size: 12px; pointer-events: none; }
.nf-suf.w { width: 92px; flex: none; }
.nf-campo { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.nf-campo > span:first-child { font-size: 12px; font-weight: 600; color: var(--gris); }
.nf-mod { color: var(--warn); font-style: normal; font-size: 11px; font-weight: 700; }
.nf-par { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nf-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.nf-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--azul); }

/* Chips y botones pequeños */
.nf-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; border-radius: 20px; padding: 2px 10px; background: var(--gris-cl); color: var(--gris); white-space: nowrap; border: none; font-family: inherit; }
.nf-chip.ok { background: var(--ok-cl); color: var(--ok); }
.nf-chip.info { background: var(--info-cl); color: var(--info); }
.nf-chip.warn { background: var(--warn-cl); color: var(--warn); }
.nf-chip.bad { background: var(--bad-cl); color: var(--bad); cursor: pointer; }
.nf-chip.azul { background: var(--azul-cl); color: var(--azul); }
.nf-chip.oro { background: var(--nf-oro-cl); color: var(--nf-oro-osc); }
.nf-ib { width: 30px; height: 30px; min-width: 30px; border-radius: 8px; border: 1px solid transparent; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: #97a4b2; font-size: 13px; }
.nf-ib:hover { background: var(--gris-cl); color: var(--azul); }
.nf-x:hover { background: var(--bad-cl); color: var(--bad); }
.nf-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nf-chips button { border: 1px solid var(--borde); background: #fff; border-radius: 20px; padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--gris); cursor: pointer; }
.nf-chips button span { opacity: .7; margin-left: 2px; }
.nf-chips button.on { background: var(--azul); border-color: var(--azul); color: #fff; }
.nf-sync { border: 1px solid var(--borde); background: #fff; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; color: var(--azul); margin-left: auto; font-size: 15px; }
.nf-vacia { padding: 28px 16px; text-align: center; color: var(--gris); font-size: 13.5px; }
.nf-vacia.sm { padding: 14px; }
.nf-card-b { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.nf-card-b.pad { padding: 16px; margin-bottom: 14px; }
.nf-aviso { background: var(--warn-cl); color: #7a4a06; border-radius: 10px; padding: 12px; font-size: 13px; }

/* ── Listado ── */
.nf-cab-lista { margin-bottom: 4px; }
.nf-lista-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0 14px; }
.nf-lista-bar .nf-in { max-width: 320px; }
.nf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.nf-card { display: flex; flex-direction: column; gap: 7px; text-align: left; font: inherit; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); padding: 16px; cursor: pointer; transition: .15s; color: var(--texto); }
.nf-card:hover { box-shadow: var(--sombra-media); border-color: #b9c4d6; transform: translateY(-1px); }
.nf-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.nf-cot { font-size: 12px; font-weight: 700; color: var(--gris); letter-spacing: .03em; }
.nf-card-t { font-weight: 700; font-size: 15px; color: var(--azul-osc); line-height: 1.3; }
.nf-card-cl { font-size: 13px; color: var(--gris); }
.nf-card-av { font-size: 12px; color: var(--warn); font-weight: 600; }
.nf-card-av.info { color: var(--info); }
.nf-card-pie { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--gris-cl); font-size: 12.5px; color: var(--gris); }
.nf-card-pie b { font-size: 18px; color: var(--azul); font-variant-numeric: tabular-nums; }

/* ── Pestaña «Ofertas» de la ficha de la oportunidad ── */
.nf-f-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.nf-f-h { margin: 0 0 2px; font-size: 15px; color: var(--azul-osc); }
.nf-f-lista { border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; background: #fff; }
.nf-f-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--gris-cl); }
.nf-f-item:last-child { border-bottom: none; }
.nf-f-item input { width: 20px; height: 20px; accent-color: var(--azul); }
.nf-f-t { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; border: none; background: none; font: inherit; cursor: pointer; padding: 0; min-width: 0; }
.nf-f-t b { color: var(--azul-osc); font-size: 14.5px; }
.nf-f-t b:hover { text-decoration: underline; }
.nf-f-t > span { font-size: 12px; color: var(--gris); display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nf-err { color: var(--bad); font-weight: 600; }
.nf-f-v { font-size: 15.5px; color: var(--azul); font-variant-numeric: tabular-nums; }
.nf-gen { margin-top: 14px; border-radius: 14px; padding: 16px; background: linear-gradient(135deg, var(--azul), var(--azul2)); color: #fff; }
.nf-gen-cab { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.nf-gen-cab b { font-size: 15.5px; }
.nf-gen-cab span { color: #cddbeb; font-size: 13px; font-variant-numeric: tabular-nums; }
.nf-pdfsel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.nf-pdfsel button { display: flex; gap: 10px; align-items: center; text-align: left; border: 1.5px solid #ffffff40; background: #ffffff14; color: #fff; border-radius: 12px; padding: 10px; cursor: pointer; font: inherit; }
.nf-pdfsel button > span:first-child { font-size: 20px; }
.nf-pdfsel b { display: block; font-size: 13.5px; }
.nf-pdfsel small { color: #cddbeb; font-size: 11.5px; }
.nf-pdfsel button.on { background: #fff; border-color: #fff; color: var(--azul); }
.nf-pdfsel button.on small { color: var(--gris); }
.nf-gen-btn { width: 100%; background: #fff !important; color: var(--azul) !important; border-color: #fff !important; }
.nf-gen-nota { font-size: 12px; color: #cddbeb; margin: 10px 0 0; line-height: 1.45; }
.nf-gen-nota b { color: #fff; }
.nf-gen-alt { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.nf-gen-alt .btn.link { color: #fff; }

/* ── Editor ── */
.nf-ed { padding-bottom: 20px; }
.nf-miga .btn.link { padding-left: 0; }
.nf-host .nf-tit { font: inherit; font-size: 22px; font-weight: 700; color: var(--texto); border: 1px solid transparent; border-radius: 8px; padding: 2px 6px; margin-left: -6px; width: min(640px, 100%); background: transparent; }
.nf-host .nf-tit:hover { border-color: var(--borde); background: #fff; }
.nf-host .nf-tit:focus { outline: none; border-color: var(--azul2); background: #fff; box-shadow: var(--foco); }
.nf-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.nf-guardado { font-size: 12px; color: var(--gris); margin-left: auto; }
.nf-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--borde); margin: 14px 0 6px; overflow-x: auto; scrollbar-width: none; }
.nf-tabs button { border: none; background: none; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--gris); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.nf-tabs button span { font-size: 11px; background: var(--gris-cl); border-radius: 10px; padding: 0 7px; }
.nf-tabs button.on { color: var(--azul); border-bottom-color: var(--azul); }
.nf-tabs button.on span { background: var(--azul); color: #fff; }
.nf-panel.oculto { display: none; }
.nf-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 10px; flex-wrap: wrap; }
.nf-sec h3 { font-size: 16px; color: var(--azul-osc); display: flex; align-items: center; gap: 8px; margin: 0; }
.nf-k { width: 24px; height: 24px; border-radius: 7px; background: var(--azul-osc); color: #fff; display: grid; place-items: center; font-size: 12px; }

/* Grupo + filas (una línea por ítem) */
.nf-grupo { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; margin-bottom: 14px; }
.nf-g-cab { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--azul-osc); color: #fff; }
.nf-g-num { width: 22px; height: 22px; border-radius: 6px; background: #ffffff26; display: grid; place-items: center; font-weight: 700; font-size: 11.5px; flex: none; }
.nf-host .nf-g-nom { flex: 1; min-width: 0; font: inherit; font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; }
.nf-host .nf-g-nom:hover { border-color: #ffffff40; }
.nf-host .nf-g-nom:focus { outline: none; border-color: #fff; background: #ffffff14; }
.nf-g-iva { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #c4d2e1; white-space: nowrap; }
.nf-host .nf-g-iva select { background: #ffffff1a; border: 1px solid #ffffff40; color: #fff; border-radius: 7px; padding: 3px 6px; font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.nf-g-iva select option { color: #000; }
.nf-g-sub { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nf-g-cab .nf-ib { color: #c4d2e1; }
.nf-g-cab .nf-ib:hover { background: #ffffff1f; color: #fff; }
.nf-fila { display: grid; grid-template-columns: minmax(130px, 1.1fr) 116px minmax(100px, 1.3fr) 54px 104px 62px 112px 54px 100px 68px 30px; gap: 6px; align-items: center; padding: 4px 10px; border-bottom: 1px solid var(--gris-cl); }
.nf-fila.cab { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); padding-top: 8px; padding-bottom: 6px; background: #f8fafc; }
.nf-fila.cab .r { text-align: right; }
.nf-fila.cab .iv { padding-left: 8px; }
.nf-fila:not(.cab):hover { background: #fafcfe; }
.nf-fila .nf-in { min-height: 32px; padding: 4px 7px; border-radius: 7px; font-size: 13px; border-color: transparent; background: transparent; }
.nf-fila:hover .nf-in, .nf-fila .nf-in:focus { border-color: var(--borde); background: #fff; }
.nf-fila .nf-pre .nf-in { padding-left: 17px; }
.nf-fila .nf-pre::before { left: 7px; }
.nf-fila .nf-suf .nf-in { padding-right: 17px; }
.nf-fila .nf-suf::after { right: 7px; }
.nf-f-prod { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.nf-f-prod b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-f-prod small { font-size: 11px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-res { display: none; }
.nf-f-tot { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; }
.nf-f-iva { padding-left: 8px; }
.nf-agregar { padding: 4px 6px; }
.nf-nuevo-g { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border: 1.5px dashed #c3cdd9; border-radius: var(--radio); background: #fbfcfe; }
.nf-sug { border: 1px solid var(--borde); background: #fff; border-radius: 20px; padding: 4px 11px; font: inherit; font-size: 12.5px; color: var(--azul2); font-weight: 600; cursor: pointer; }

/* Liquidación de mano de obra */
.nf-mfila { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(200px, 1.6fr) 100px 108px 112px 30px; gap: 8px; align-items: center; padding: 5px 14px; border-bottom: 1px solid var(--gris-cl); font-size: 13px; }
.nf-mfila.cab { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); padding-top: 9px; padding-bottom: 7px; }
.nf-mfila.cab .r { text-align: right; }
.nf-mfila .nf-in { min-height: 32px; padding: 4px 8px; font-size: 13px; border-radius: 7px; }
.nf-mfila.sin { opacity: .62; }
.nf-mfila.sin:hover { opacity: 1; }
.nf-mfila.alt { background: #fffaf0; }
.nf-mfila.sin-mo { grid-template-columns: 1fr auto; padding: 10px 14px; }
.nf-mfila.quitadas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 14px; background: #fafbfc; }
.nf-q { border: 1px dashed #c8d1dc; background: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; color: #4a5a70; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-q:hover:not(:disabled) { border-color: var(--azul2); color: var(--azul); }
.nf-m-orig { min-width: 0; color: var(--gris); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-m-orig b { color: var(--texto); font-weight: 600; }
.nf-m-item { font-size: 13px; line-height: 1.3; min-width: 0; }
.nf-m-cant { display: flex; align-items: center; gap: 5px; justify-content: flex-end; font-size: 12px; color: var(--gris); }
.nf-m-cant .nf-in { width: 74px; }
.nf-m-vu, .nf-m-vt { text-align: right; font-variant-numeric: tabular-nums; }
.nf-m-vt { font-weight: 700; }
.nf-tag { font-size: 10px; font-weight: 700; color: var(--ok); background: var(--ok-cl); border-radius: 5px; padding: 0 5px; margin-right: 5px; letter-spacing: .03em; }
.nf-tag.apr { color: #6b3fa0; background: #f1eafa; }
.nf-tag.tuyo { color: var(--azul); background: var(--azul-cl); }
.nf-tag.alt { color: var(--warn); background: var(--warn-cl); }
.nf-tag.mano { color: var(--gris); background: var(--gris-cl); }
.nf-mo-g { display: flex; justify-content: space-between; padding: 9px 14px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--azul); background: #f3f6fa; border-bottom: 1px solid var(--gris-cl); }
.nf-mo-add { display: flex; gap: 8px; padding: 8px 14px 12px; border-bottom: 1px solid var(--gris-cl); }
.nf-mo-add .nf-in { max-width: 580px; min-height: 34px; font-size: 13px; }
.nf-mo-pie { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.nf-mo-pie b { font-size: 16px; color: var(--azul); margin-left: 6px; font-variant-numeric: tabular-nums; }
.nf-int { font-size: 12px; color: var(--nf-oro-osc); }

/* Liquidación del proyecto */
.nf-liq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.nf-liq-aj { padding: 16px; border-right: 1px solid var(--gris-cl); display: grid; gap: 12px; align-content: start; }
.nf-aj { border-radius: 12px; padding: 14px; border: 1px solid var(--borde); }
.nf-aj.com { background: var(--nf-oro-cl); border-color: #ecdcbc; }
.nf-aj-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nf-aj-top.mt { margin-top: 10px; }
.nf-aj-top b { font-size: 14px; }
.nf-aj .nf-in { font-weight: 700; }
.nf-lock { font-size: 11px; font-weight: 700; color: var(--nf-oro-osc); }
.nf-segm { display: inline-grid; grid-auto-flow: column; gap: 4px; background: var(--gris-cl); border-radius: 10px; padding: 3px; margin-top: 10px; }
.nf-segm button { border: none; background: none; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 600; font-size: 12.5px; color: var(--gris); cursor: pointer; }
.nf-segm button.on { background: #fff; color: var(--azul); box-shadow: var(--sombra); }
.nf-liq-tot { padding: 16px 20px; display: flex; flex-direction: column; }
.nf-r { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--gris-cl); }
.nf-r b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nf-r.menos b { color: var(--bad); }
.nf-r.tot { border: none; border-top: 2px solid var(--azul); margin-top: 8px; padding-top: 12px; align-items: center; }
.nf-r.tot span { font-weight: 700; font-size: 15px; }
.nf-r.tot b { font-size: 26px; color: var(--azul); font-weight: 800; }
.nf-acc { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.nf-acc .btn { flex: 1; }
.nf-acc2 { display: flex; justify-content: space-between; margin-top: 8px; }

/* Condiciones y notas */
.nf-cond { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 12px; }
.nf-cond .ancho { grid-column: 1 / -1; }
.nf-nota-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.nf-nota.int { background: #fffdf7; border-color: #ecdcbc; }
.nf-nota.ctx { background: linear-gradient(180deg, #f7f9fd, #fff); border-color: #cfdcec; }

/* Hoja (catálogo, edición en celular) y diálogo */
.nf-velo { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1200; display: none; align-items: center; justify-content: center; padding: 16px; }
.nf-velo.on { display: flex; }
.nf-velo.nf-dlg { z-index: 1300; }
.nf-hoja { background: #fff; border-radius: 18px; width: min(620px, 100%); max-height: 88vh; overflow: auto; box-shadow: var(--sombra-alta); padding: 18px 20px; }
.nf-hoja.chica { width: min(400px, 100%); }
.nf-hoja h3 { margin: 0; font-size: 17px; color: var(--azul-osc); }
.nf-pk-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.nf-pk-lista { margin: 10px 0; max-height: 44vh; overflow: auto; }
.nf-prod { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; font: inherit; padding: 10px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; }
.nf-prod:hover { background: #f6f9fd; border-color: #dfe7f1; }
.nf-prod-i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gris-cl); font-size: 18px; flex: none; }
.nf-prod-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nf-prod-t b { font-weight: 600; color: var(--texto); }
.nf-prod-t small { font-size: 12px; color: var(--gris); }
.nf-prod-mas { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--borde); display: grid; place-items: center; color: var(--azul); font-weight: 700; flex: none; }
.nf-libre { margin-top: 6px; padding: 14px; border: 1.5px dashed #c3cdd9; border-radius: 12px; background: #fbfcfe; }
.nf-hoja-pie { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }

/* Barra fija del celular */
.nf-barra-mov { display: none; }

/* ── Configuración ── */
.nf-cfg { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; margin-top: 14px; }
.nf-cfg-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--gris-cl); }
.nf-cfg-acc { display: flex; gap: 8px; flex-wrap: wrap; }
.nf-cfila { display: grid; grid-template-columns: minmax(0, 1fr) 92px 116px 116px 30px; gap: 8px; align-items: center; padding: 5px 16px; border-bottom: 1px solid var(--gris-cl); }
.nf-cfila.cab { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); padding-top: 9px; padding-bottom: 7px; }
.nf-cfila.cab .r { text-align: right; }
.nf-cfila .nf-in { min-height: 32px; padding: 4px 8px; font-size: 13px; }
.nf-c-t { min-width: 0; }
.nf-c-t small { display: block; font-size: 11px; color: var(--ok); margin-top: 2px; }
.nf-cfila .costo { color: var(--gris); }
.nf-ccat { padding: 9px 16px 5px; font-weight: 700; color: var(--azul); background: #f7f9fc; border-bottom: 1px solid var(--gris-cl); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; position: sticky; top: 0; z-index: 1; }
.nf-cfg-lista { max-height: 64vh; overflow: auto; }
.nf-cfg-pie { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--gris-cl); background: #fbfcfe; }
.nf-cfg-pie span { margin-right: auto; font-size: 13px; color: var(--gris); }
.nf-cfg-pie.on span { color: var(--warn); font-weight: 600; }
.nf-grande { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.nf-grande .nf-suf { width: 120px; }
.nf-grande .nf-in { font-size: 20px; font-weight: 700; min-height: 46px; text-align: right; }
.nf-antes { font-size: 12.5px; }
.nf-antes > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--gris-cl); }
.nf-antes .an { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-antes .av { white-space: nowrap; }
.nf-antes s { color: var(--gris); }
.nf-antes b { color: var(--ok); }
.nf-antes .mas { border: none; color: var(--gris); }
.nf-ancho { width: 100%; margin-top: 12px; }
.nf-excel { background: #f7fbf8; border-color: #cfe6d8; }
.nf-importe { margin: 12px 16px; padding: 12px 14px; border-radius: 12px; background: var(--ok-cl); }

/* ── Anchos intermedios ── */
@media (max-width: 1180px) {
  .nf-fila { grid-template-columns: minmax(100px, 1fr) 96px minmax(70px, 1fr) 46px 92px 54px 96px 46px 90px 62px 26px; }
  .nf-mfila { grid-template-columns: minmax(110px, .7fr) minmax(170px, 1.5fr) 96px 98px 104px 28px; }
  .nf-liq { grid-template-columns: 1fr; }
  .nf-liq-aj { border-right: none; border-bottom: 1px solid var(--gris-cl); grid-template-columns: 1fr 1fr; }
  .nf-cfg { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nf-fila { grid-template-columns: minmax(80px, 1fr) 80px minmax(60px, 1fr) 42px 80px 48px 84px 42px 78px 56px 24px; gap: 4px; padding: 4px 8px; }
  .nf-host .nf-in { font-size: 16px; }
}
/* ── Celular: una línea por ítem; se edita en una hoja ── */
@media (max-width: 700px) {
  .nf-sub { width: 100%; }
  .nf-sub button { flex: 1; padding: 9px 8px; }
  .nf-host .nf-tit { font-size: 19px; }
  .nf-host .nf-in, .nf-hoja .nf-in { font-size: 16px !important; }
  .nf-guardado { margin-left: 0; width: 100%; }
  .nf-g-cab { flex-wrap: wrap; row-gap: 6px; padding: 9px 8px; gap: 4px; }
  .nf-host .nf-g-nom { flex: 1 1 calc(100% - 34px); font-size: 13px; }
  .nf-g-iva { margin-right: auto; font-size: 11px; }
  .nf-g-cab .nf-ib { width: 28px; min-width: 28px; }
  .nf-fila.cab { display: none; }
  .nf-fila:not(.agregar) { grid-template-columns: minmax(0, 1fr) auto 28px; grid-template-areas: "p t x"; padding: 10px; cursor: pointer; }
  .nf-fila > .nf-f-prod { grid-area: p; }
  .nf-fila > .nf-f-tot { grid-area: t; font-size: 14px; }
  .nf-fila > .nf-x { grid-area: x; }
  .nf-fila > .nf-f-marca, .nf-fila > .nf-f-desc, .nf-fila > .nf-f-cant, .nf-fila > .nf-f-costo, .nf-fila > .nf-f-mg, .nf-fila > .nf-f-vu, .nf-fila > .nf-f-dto, .nf-fila > .nf-f-iva { display: none; }
  .nf-f-prod b { font-size: 14px; white-space: normal; }
  .nf-res { display: inline; }
  .nf-f-prod small span.nf-res::before { content: ''; }
  .nf-mfila.cab { display: none; }
  .nf-mfila { grid-template-columns: minmax(0, 1fr) 100px 100px; grid-template-areas: "o o x" "i i i" "c u t"; row-gap: 4px; padding: 9px 12px; }
  .nf-mfila > .nf-m-orig { grid-area: o; }
  .nf-mfila > .nf-m-item { grid-area: i; }
  .nf-mfila > .nf-m-cant { grid-area: c; justify-content: flex-start; }
  .nf-mfila > .nf-m-vu { grid-area: u; font-size: 12px; color: var(--gris); }
  .nf-mfila > .nf-m-vt { grid-area: t; }
  .nf-mfila > .nf-x { grid-area: x; justify-self: end; }
  .nf-mfila.sin-mo { grid-template-columns: 1fr; grid-template-areas: none; }
  .nf-mo-add { flex-direction: column; }
  .nf-liq-aj { grid-template-columns: 1fr; }
  .nf-r.tot b { font-size: 22px; }
  .nf-cond { grid-template-columns: 1fr; }
  .nf-pdfsel { grid-template-columns: 1fr; }
  .nf-cfila { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 6px 12px; }
  .nf-cfila > .nf-c-t { grid-column: 1 / -1; }
  .nf-cfila > .nf-x, .nf-cfila.cab { display: none; }
  .nf-lista-bar .nf-in { max-width: none; }
  .nf-grid { grid-template-columns: 1fr; }
  .nf-velo { align-items: flex-end; padding: 0; }
  .nf-hoja { border-radius: 18px 18px 0 0; max-height: 92vh; width: 100%; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .nf-hoja-pie .btn { flex: 1; }
  .nf-host .nf-ed { padding-bottom: 90px; }
  .nf-barra-mov { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--borde); box-shadow: 0 -6px 18px rgba(15, 23, 42, .08); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 10px; align-items: center; }
  .nf-bm-t { flex: 1; min-width: 0; text-align: left; border: none; background: none; font: inherit; cursor: pointer; padding: 0; }
  .nf-bm-t small { display: block; color: var(--gris); font-size: 11.5px; }
  .nf-bm-t b { font-size: 19px; color: var(--azul); font-variant-numeric: tabular-nums; }
}

/* ── Ficha de la oportunidad (rediseño 2-oct-2026): ofertas con «Editar» a la vista y PDF en tarjeta clara ── */
.nf-f-der { display: flex; align-items: center; gap: 10px; flex: none; }
.nf-f-pie { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.nf-f-pie .nx-mini { margin: 0; }
.nf-viejo { border: 1px solid #f0d9a0; background: #fff8e6; color: #7a4a00; border-radius: 10px; padding: 9px 12px; font-size: 13px; line-height: 1.45; margin-bottom: 10px; }
.nf-gen2 { display: flex; flex-direction: column; gap: 10px; }
.nf-gen2 .nx-mini { margin: 0; }
.nf-gen2 > .btn.link { align-self: flex-start; padding: 0; font-size: 13px; }
.nf-pdfsel2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nf-pdfsel2 button { display: flex; gap: 10px; align-items: center; text-align: left; border: 1.5px solid var(--borde); background: #fff; border-radius: 12px; padding: 10px; cursor: pointer; font: inherit; color: #33415a; min-width: 0; }
.nf-pdfsel2 button > span:first-child { font-size: 20px; flex: none; }
.nf-pdfsel2 b { display: block; font-size: 13.5px; }
.nf-pdfsel2 small { color: var(--gris); font-size: 11.5px; }
.nf-pdfsel2 button.on { border-color: var(--azul); box-shadow: inset 0 0 0 1px var(--azul); background: #f3f8fd; color: var(--azul); }
.nf-gen-btn2 { width: 100%; min-height: 44px; }
.nf-miga { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nf-miga-ent { flex: 1; min-width: 0; font-size: 13px; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-miga .nf-listo { flex: none; }
@media (min-width: 901px) { .nf-sub { display: none; } }   /* en PC el menú lateral ya trae Oportunidades · Ofertas · Configuración */
@media (max-width: 700px) {
  .nf-f-item { grid-template-columns: auto minmax(0, 1fr); }
  .nf-f-der { grid-column: 2; justify-content: space-between; }
  .nf-pdfsel2 { grid-template-columns: 1fr; }
  .nf-miga .btn { min-height: 40px; }
}

/* ── Costo y margen por línea + margen para todos (2-oct-2026) — el costo es interno ── */
.nf-f-costo .nf-in { color: #6b5a2e; }
.nf-f-mg.neg .nf-in, .nf-int b.neg { color: var(--bad); }
.nf-host .nf-fila .nf-f-mg .nf-in:disabled { background: transparent; border-color: transparent; cursor: default; }
.nf-f-mg:has(.nf-in:disabled)::after { content: ""; }
.nf-mgbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fffaf0; border: 1px dashed #ecd9a8; border-radius: 12px; padding: 8px 12px; margin: -2px 0 12px; }
.nf-mg-global { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #6b5a2e; white-space: nowrap; }
.nf-mg-global .nf-suf { width: 84px; }
.nf-mg-global .nf-in { min-height: 34px; text-align: right; padding-right: 20px; background: #fff; }
.nf-mgbar .nf-int { font-size: 12.5px; color: #7a6a3e; }
@media (max-width: 700px) {
  .nf-mgbar { gap: 8px; }
  .nf-mg-global .nf-suf { width: 96px; }
}

/* ── Listado de ofertas en FILAS, por consecutivo de mayor a menor (2-oct-2026) ── */
.nf-lf-tabla { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.nf-lf { display: grid; grid-template-columns: 92px minmax(180px, 2fr) minmax(150px, 1.4fr) 104px 52px 92px 128px; gap: 10px; align-items: center; width: 100%; padding: 10px 14px; border: none; border-bottom: 1px solid var(--gris-cl); background: #fff; font: inherit; font-size: 13.5px; color: var(--texto); text-align: left; cursor: pointer; }
.nf-lf:last-child { border-bottom: none; }
button.nf-lf:hover { background: #f5f9fd; }
button.nf-lf:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--azul2); }
.nf-lf.cab { cursor: default; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); background: #f8fafc; padding-top: 9px; padding-bottom: 8px; }
.nf-lf .r { text-align: right; }
.nf-lf-cot { font-weight: 700; color: var(--azul); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nf-lf-nom { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nf-lf-nom b { font-weight: 600; color: var(--azul-osc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-lf-av { font-size: 11.5px; color: var(--bad); }
.nf-lf-av.info { color: var(--azul2); }
.nf-lf-cli { min-width: 0; color: #4a5a70; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-lf-n, .nf-lf-fec { color: var(--gris); font-size: 12.5px; white-space: nowrap; }
.nf-lf-tot { font-variant-numeric: tabular-nums; color: var(--azul); white-space: nowrap; }
@media (max-width: 900px) {
  .nf-lf { grid-template-columns: 80px minmax(140px, 2fr) minmax(110px, 1.2fr) 92px 84px 112px; }
  .nf-lf-n, .nf-lf.cab > span:nth-child(5) { display: none; }
}
@media (max-width: 700px) {
  .nf-lf.cab { display: none; }
  .nf-lf { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cot est" "nom tot" "cli fec"; row-gap: 3px; padding: 11px 12px; }
  .nf-lf-cot { grid-area: cot; font-size: 12.5px; }
  .nf-lf-est { grid-area: est; justify-self: end; }
  .nf-lf-nom { grid-area: nom; }
  .nf-lf-nom b { white-space: normal; font-size: 14.5px; }
  .nf-lf-tot { grid-area: tot; font-size: 15px; align-self: start; }
  .nf-lf-cli { grid-area: cli; font-size: 12.5px; }
  .nf-lf-fec { grid-area: fec; justify-self: end; }
}

/* ════════ Marca NEXIA (2-oct-2026) ════════
   El módulo usa los mismos componentes que Artium, pero con los colores de Nexia: carbón #111418 y
   verde #14A84A (degradado #5BD15B→#14A84A del logo). Solo dentro del módulo: el panel, sus
   ventanas (.nx-tema) y la hoja del editor en el celular (#nfVelo). */
.panel.nx-host, .modal-card.nx-tema, #nfVelo {
  --azul: #111418; --azul2: #14A84A; --azul-osc: #000; --azul-cl: #eaf7ee;
  --nx-verde: #14A84A; --nx-verde-cl: #5BD15B; --nx-carbon: #111418;
}
.panel.nx-host .btn.primary, .modal-card.nx-tema .btn.primary, #nfVelo .btn.primary {
  background: var(--nx-carbon); border-color: var(--nx-carbon); box-shadow: inset 0 -3px 0 var(--nx-verde);
}
.panel.nx-host .btn.primary:hover:not(:disabled), .modal-card.nx-tema .btn.primary:hover:not(:disabled) { background: #000; }
.nx-marca { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px;
  background: linear-gradient(100deg, #111418 0%, #1b2027 70%, #14A84A 140%); border-radius: 12px; color: #fff; }
.nx-marca-n { height: 26px; width: auto; filter: drop-shadow(0 1px 0 rgba(0,0,0,.3)); }
.nx-marca-p { height: 15px; width: auto; }
.nx-marca span { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #9fe3a6; margin-left: auto; font-weight: 600; }
.modal-card.nx-tema .nx-fh { border-left: 4px solid var(--nx-verde); padding-left: 12px; }
.panel.nx-host .nx-tab.on, .panel.nx-host .nx-seg button.on { box-shadow: inset 0 -3px 0 var(--nx-verde); }
@media (max-width: 600px) { .nx-marca { padding: 8px 12px; } .nx-marca span { display: none; } }

/* ── Anexos para Claude (copiado de ofertas.css .of-ax*, 2-oct-2026) ── */
.nf-axs { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.nf-ax-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.nf-ax { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid var(--borde); border-radius: 10px; padding: 9px 10px; min-width: 0; }
.nf-ax.sube { background: #f8fafc; }
.nf-ax.bad { border-color: #f1c4c4; background: #fff7f7; }
.nf-ax.bad small { color: var(--bad); }
.nf-ax-ic { font-size: 20px; line-height: 1.2; flex: none; width: 24px; text-align: center; }
.nf-ax-c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nf-ax-c small { font-size: 11.5px; color: var(--gris); }
.nf-ax-n { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--azul); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.nf-ax-n:hover { text-decoration: underline; }
.nf-host .nf-in.nf-ax-nota { min-height: 32px; padding: 4px 8px; font-size: 13px; margin-top: 4px; }
.nf-ax-zona { display: flex; align-items: center; justify-content: center; text-align: center; border: 1.5px dashed #b9cbe3; border-radius: 10px; padding: 14px 12px; cursor: pointer; color: var(--azul); font-size: 13.5px; background: #fbfcfe; transition: .15s; }
.nf-ax-zona:hover, .nf-ax-zona.on { background: var(--azul-cl); border-color: var(--azul); }
.nf-ax-pc { color: var(--gris); font-size: 12.5px; }
.nf-axs + .nf-mini { margin-top: 8px; }
@media (max-width: 700px) { .nf-ax-pc { display: none; } .nf-ax-zona { padding: 16px 12px; } }

/* Estado de la propuesta completa (ficha) */
.nf-viejo.info { background: #eef7f0; border-color: #bfe3c8; color: #1e6b2a; }
.nf-viejo.ok { background: #f1f7f2; border-color: #cfe9d6; color: #1e6b2a; }

/* «Traer de Artium» (ofertasnx.js) */
.nf-cab-lista { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.nf-ta h3 { margin: 4px 0 6px; }
.nf-ta .nf-in { width: 100%; margin: 10px 0 8px; }
.nf-ta-lista { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow: auto; }
.nf-ta-it { display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%; background: #fff; border: 1px solid var(--borde, #dfe5ec); border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.nf-ta-it:hover:not(:disabled) { border-color: #14A84A; background: #f6fbf7; }
.nf-ta-it small { color: #6b7a8d; font-size: 12.5px; }
.nf-ta-it.nueva { border-style: dashed; border-color: #14A84A; color: #0d6b30; margin-top: 10px; }
.nf-ta-fila { display: flex; justify-content: space-between; gap: 10px; }
.nf-ta-v { flex: none; }
.nf-ta-sel { display: flex; flex-direction: column; gap: 2px; background: #eef7f0; border-radius: 10px; padding: 10px 12px; }
.nf-ta-sel small { color: #4a5a70; }
