/* Existencias por sucursal (versión Eleventa). Usa los tokens de front.css. */
.iee-sucs { display: flex; flex-wrap: wrap; gap: 6px; }
.ie-fila-det.iee-sucs { margin-top: 5px; }
.ie-prod > .iee-sucs, .ie-prod-r > .iee-sucs { flex: none; justify-content: flex-end; }
.iee-suc { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.iee-suc-n { letter-spacing: .04em; opacity: .8; }
.iee-suc b { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.iee-hay { background: rgba(106, 191, 46, .16); color: #2d6a0f; }
.iee-pocas { background: rgba(245, 166, 35, .18); color: #7a4a00; }
.iee-no { background: rgba(11, 17, 32, .06); color: var(--ie-cuerpo); }

.iee-porsuc { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.iee-porsuc-i { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--ie-borde); border-radius: 12px; }
.iee-porsuc-n { font-size: 15px; font-weight: 600; color: var(--ie-tinta); }

/* Nota del Cedis (centro de distribución: solo envíos por paquetería) */
.ie-front .iee-cedis-nota { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(11, 17, 32, .04); font-size: 12px; line-height: 1.5; color: var(--ie-cuerpo); }
.ie-front .iee-cedis-nota b { color: var(--ie-tinta); font-weight: 700; }

/* Tres columnas (MTY · GDL · CEDIS) en celular: cajas más compactas para que el nombre no se parta. */
@media (max-width: 480px) {
	.ie-front .ie-cajas, .ie-front .ie-cols { gap: 5px; }
	.ie-front .ie-caja, .ie-front .ie-cols span { width: 34px; }
	.ie-front .ie-caja { height: 30px; font-size: 13px; }
	.ie-front .ie-prod-n, .ie-front .ie-prod-d { overflow-wrap: normal; word-break: normal; hyphens: auto; }
}

/* Recién llegados: etiqueta "Nuevo" (lo que llegó en los últimos 30 días) */
.ie-front .iee-nuevo { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--ie-grad); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.ie-front .iee-nuevos { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--ie-borde); }
.ie-front .ie-ficha-n .iee-nuevo { align-self: center; width: max-content; margin: 6px auto 0; }
.ie-front .iee-nuevos-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.ie-front .iee-nuevos-t { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--ie-tinta); background: var(--ie-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ie-front .iee-nuevos-n { flex: none; font-size: 14px; color: var(--ie-cuerpo); }

/* Renglones de modelo ordenados: marca en gris, pastillas en una sola línea */
.ie-front .iee-marca-pre { margin-right: 6px; font-weight: 500; color: var(--ie-cuerpo); }
.ie-front .ie-fila-det.iee-sucs { flex-wrap: nowrap; }
/* Nombre en una línea con "…"; "Nuevo" fijo a la derecha */
.ie-front .ie-fila-txt { min-width: 0; }
.ie-front .ie-fila .iee-nombre { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ie-front .iee-nombre-t { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ie-front .ie-fila .iee-nombre .iee-nuevo { flex: none; margin-left: auto; }

/* "Recién llegados" minimizable */
.ie-front .iee-nuevos-h { display: block; margin: 0; }
.ie-front .iee-nuevos-tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin: 0 0 8px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.ie-front .iee-nuevos-tg:focus-visible { outline: 2px solid var(--ie-foco); outline-offset: 4px; border-radius: 6px; }
.ie-front .iee-nuevos-lado { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.ie-front .iee-nuevos-acc { font-size: 13px; font-weight: 600; color: var(--ie-tinta); }
.ie-front .iee-nuevos-ico { transition: transform .2s ease; transform: rotate(180deg); }
.ie-front .iee-cerrado .iee-nuevos-ico { transform: none; }
.ie-front .iee-cerrado .iee-nuevos-tg { margin-bottom: 0; }
.ie-front .iee-nuevos.iee-cerrado { padding-bottom: 14px; }
@media (max-width: 480px) { .ie-front .iee-nuevos-n { display: none; } .ie-front .iee-nuevos-t { font-size: 22px; white-space: nowrap; } }

/* Pie: una línea por ubicación con su última actualización */
.ie-front .ie-pie { flex-direction: column; align-items: center; gap: 4px; }
.ie-front .iee-pie-suc b { color: var(--ie-tinta); font-weight: 700; }

.ie-front .ie-pie > .iee-pie-wa { margin-top: 6px; }
