/* ══════════════════════════════════════════════════════════════════════════
   LOGÍSTICA · qué dato sale de Netlog (29/10/2026)

   Pedido del usuario: en Logística (obra y Central) sombrear SUTILMENTE cada
   dato según su origen, para mostrarle a sistemas qué se extrae de Netlog:
     .nl-d  amarillo · viene TAL CUAL de Netlog (estado, N° de nota, fecha…)
     .nl-c  naranja  · se CALCULA con datos de Netlog (saldos, totales, %…)
   Lo que no lleva clase no viene de Netlog (se captura en la plataforma).
   Va en la celda o en el valor, nunca en la fila: una fila mezcla orígenes.
   El `title` dice de dónde sale (pantalla/exporte de Netlog o la fórmula).
   ══════════════════════════════════════════════════════════════════════════ */
:root{
  --nl-d: rgba(250, 204, 21, .20);     /* amarillo */
  --nl-d-borde: rgba(202, 160, 0, .55);
  --nl-c: rgba(249, 115, 22, .15);     /* naranja */
  --nl-c-borde: rgba(214, 90, 10, .50);
}
/* celdas de tabla: el fondo de la celda (el hover de fila no lo pisa) */
td.nl-d, th.nl-d{ background-color: var(--nl-d) !important; }
td.nl-c, th.nl-c{ background-color: var(--nl-c) !important; }
th.nl-d{ box-shadow: inset 0 -2px 0 var(--nl-d-borde); }
th.nl-c{ box-shadow: inset 0 -2px 0 var(--nl-c-borde); }
/* valores sueltos (cifras de tarjetas, campos de ficha, chips): un resalte de marcador */
:not(td):not(th).nl-d{ background-color: var(--nl-d); border-radius: 4px; box-shadow: 0 0 0 2px var(--nl-d); }
:not(td):not(th).nl-c{ background-color: var(--nl-c); border-radius: 4px; box-shadow: 0 0 0 2px var(--nl-c); }
/* campos de formulario que se llenarán desde Netlog */
input.nl-d, select.nl-d, textarea.nl-d{ background-color: var(--nl-d) !important; box-shadow: none; }
input.nl-c, select.nl-c, textarea.nl-c{ background-color: var(--nl-c) !important; box-shadow: none; }

/* la leyenda, una línea discreta junto a la cabecera de cada vista */
.nl-ley{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; margin:8px 0 0; font-size:12px; line-height:1.4; color:#51677d; }
.nl-ley-i{ display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.nl-ley-i i{ display:inline-block; width:14px; height:14px; border-radius:4px; }
.nl-ley-i.d i{ background:var(--nl-d); box-shadow: inset 0 0 0 1px var(--nl-d-borde); }
.nl-ley-i.c i{ background:var(--nl-c); box-shadow: inset 0 0 0 1px var(--nl-c-borde); }
.nl-ley-i.p i{ background:#fff; box-shadow: inset 0 0 0 1px #c4cfdc; }
@media (max-width: 600px){ .nl-ley{ gap:4px 10px; font-size:11.5px; } }

/* En los formatos fieles al Excel (table.lx) hay filas de fondo fuerte —azul marino,
   amarillo, gris— donde el velo se pierde: ahí la marca es un subrayado del valor. */
table.lx :is(tr.lx-navy, tr.lx-amar, tr.lx-ped, tr.lx-gris, tr.lx-th) .nl-d{ text-decoration: underline 3px #EAB308; text-underline-offset: 3px; }
table.lx :is(tr.lx-navy, tr.lx-amar, tr.lx-ped, tr.lx-gris, tr.lx-th) .nl-c{ text-decoration: underline 3px #F97316; text-underline-offset: 3px; }
