/* 187 wa (Auditoría M8, pantallas de Inventario) */

/* B14: una nota larga sin espacios no hace que la ficha se deslice de costado en el celular */
.fp-notas {
  overflow-wrap: anywhere;
  min-width: 0;
}
/* B14: un stock muy grande no se sale de su cuadro */
.ficha-kpi strong {
  overflow-wrap: anywhere;
}

/* B10: el «Valor» del kárdex no se parte («S/» en una línea y el número en otra) */
.kdx-valor strong,
.kdx-resumen strong {
  white-space: nowrap;
}

/* B4: la ficha sin el stock (no se pudo leer) */
.fp-st-error {
  color: var(--rojo-txt, #b42318);
}

@media print {
  /* B10: Stock en A4: los títulos de columna se parten entre palabras (antes «ALMAC/ÉN/PRINCI/PAL») y los números no se enciman */
  .stk-cab,
  .stk-fila {
    grid-template-columns: minmax(0, 2fr) 70px repeat(var(--stk-locs, 2), minmax(0, 0.7fr)) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1.2fr);
    gap: 5px;
  }
  .stk-cab > span {
    font-size: 7.5pt;
  }
  .stk-fila .stk-min {
    padding-left: 8px;
  }
  .stk-cab .stk-c {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    font-size: 7.5pt;
    line-height: 1.15;
  }
  .stk-fila .stk-c b {
    white-space: nowrap;
    font-size: 8.5pt;
    font-variant-numeric: tabular-nums;
  }
  /* «Ver más» del kárdex no sale en el papel */
  [data-kdx-mas] {
    display: none !important;
  }
}
