/* ==========================================================================
   inventory.css — Stock, coûts, dépenses & bénéfice (SPEC-INVENTORY §6.4).

   Every rule here is prefixed `.np-inv-`; the screen otherwise reuses the
   house components (.np-card, .np-table, .np-stacklist, .np-kpi, .np-chip,
   .np-badge, .np-seg, .np-bar, .np-savebar, .np-empty…) so the Stock hub
   looks like the Réglages hub it is built from.

   Two files share this sheet: inventory.js (operations) and finance.js
   (money). inventory.js owns it; finance.js may only USE the classes below.

   Rules of the house that apply here without exception:
     · tokens only — no colour, radius or shadow that is not in tokens.css;
     · logical properties only (the app runs RTL in Arabic) — inline-start /
       inline-end / padding-block, never left / right / padding-top;
     · touch targets ≥ 48 px under 1280 px (var(--np-touch) already switches);
     · the page itself never scrolls: only .np-content and the sheet bodies.
   ========================================================================== */

/* ==========================================================================
   1 · Aujourd'hui — the four big actions
   ========================================================================== */

/* Four tiles, one row on PC, 2 × 2 on a phone. auto-fit rather than a fixed
   count so hiding the Production tile (no tracked preparation) simply widens
   the other three instead of leaving a hole. */
.np-inv-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.np-inv-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 104px;
  padding: 16px 18px;
  border: 1px solid var(--np-line);
  border-radius: var(--np-r-panel);
  background: var(--np-surface);
  box-shadow: var(--np-sh-card);
  color: var(--np-ink);
  text-align: start;
}
.np-inv-action:hover { border-color: var(--np-ink); }
.np-inv-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--np-r-btn);
  background: var(--np-soft);
  color: var(--np-ink);
}
.np-inv-action__label {
  font-family: var(--np-font-title);
  font-size: 17px;
  line-height: 1.2;
  text-wrap: pretty;
}
.np-inv-action__hint {
  font-size: var(--np-fs-secondary);
  color: var(--np-mid);
  text-wrap: pretty;
}
/* The one action that is already under way. */
.np-inv-action.is-open {
  border-color: var(--np-amber-line);
  background: var(--np-amber-soft);
}
.np-inv-action.is-open .np-inv-action__icon {
  background: var(--np-surface);
  color: var(--np-amber-ink);
}
.np-inv-action.is-open .np-inv-action__hint { color: var(--np-amber-ink); }

/* ==========================================================================
   2 · Aujourd'hui — alerts
   ========================================================================== */

.np-inv-alerts {
  display: flex;
  flex-direction: column;
  gap: var(--np-s3);
}
.np-inv-alerts__group {
  display: flex;
  flex-direction: column;
  gap: var(--np-s2);
}
.np-inv-alerts__title {
  display: flex;
  align-items: center;
  gap: var(--np-s2);
  font-size: var(--np-fs-secondary);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--np-dim);
}
.np-inv-alerts__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* One alert = one button. Smaller than .np-chip (there can be twenty) but
   still 44 px tall so a thumb can hit it on the tablet. */
.np-inv-alert {
  display: inline-flex;
  align-items: center;
  gap: var(--np-s2);
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--np-r-pill);
  border: 1px solid var(--np-line-input);
  background: var(--np-surface);
  color: var(--np-ink);
  font-size: 13.5px;
  font-weight: 600;
  text-align: start;
}
.np-inv-alert__val {
  font-size: var(--np-fs-secondary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.np-inv-alert--low { border-color: var(--np-amber-line); background: var(--np-amber-soft); color: var(--np-amber-ink); }
.np-inv-alert--exp { border-color: var(--np-amber-line); background: var(--np-amber-soft); color: var(--np-amber-ink); }
.np-inv-alert--expired { border-color: var(--np-red-line); background: var(--np-red-soft); color: var(--np-red); }
.np-inv-alert--budget { border-color: var(--np-line-input); background: var(--np-lav-soft); color: var(--np-lav-ink); }
.np-inv-alert--margin { border-color: var(--np-line-input); background: var(--np-lav-soft); color: var(--np-lav-ink); }

/* ==========================================================================
   3 · Quantities, costs and margins in a list
   ========================================================================== */

.np-inv-qty {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.np-inv-qty.is-low { color: var(--np-amber-ink); }
.np-inv-qty.is-negative { color: var(--np-red); }

.np-inv-margin { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.np-inv-margin.is-ok { color: var(--np-green); }
.np-inv-margin.is-low { color: var(--np-red); }

/* A signed number that means loss below zero and gain above it. */
.np-inv-var {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--np-r-badge);
  background: var(--np-soft);
  color: var(--np-dim);
  font-size: var(--np-fs-secondary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.np-inv-var.is-loss { background: var(--np-red-soft); color: var(--np-red); }
.np-inv-var.is-gain { background: var(--np-green-soft); color: var(--np-green); }

/* Preparation / archived pills, used in several lists. */
.np-inv-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--np-r-badge);
  background: var(--np-lav-soft);
  color: var(--np-lav-ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.np-inv-pill--off { background: var(--np-soft); color: var(--np-dim); }

/* Who yields when the NOM column is too narrow. The cell is a flex row, and a
   pill's min-content width is its whole word, so without this the ingredient
   NAME is the only thing that can shrink and it collapses to one letter. Order
   of sacrifice: the group label, then the name. */
/* The movement type. "Consommé (production)" is wider than its column, and the
   cell clips: ellipsise instead of slicing a word in half. */
.np-inv-type {
  max-width: 100%;
  /* Three things are needed, and each was missing in turn:
     min-width — a flex item will not shrink below its own content without it;
     display   — .np-badge is inline-flex, and text-overflow does nothing on a
                 flex container, so the badge clipped mid-word ("Consommé (prod")
                 instead of ellipsising;
     the rest  — ordinary single-line truncation. */
  min-width: 0;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-inv-name { flex: 1 1 auto; min-width: 8ch; }
.np-inv-pill { flex: 0 0 auto; }
.np-inv-name__grp {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   4 · Filter strips (groups, movement types, periods, month pager)
   ========================================================================== */

.np-inv-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
/* A filter chip is smaller than the POS .np-chip: a movement filter bar can
   hold twelve of them and must still fit two rows on a tablet. */
.np-inv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--np-r-pill);
  border: 1px solid var(--np-line-input);
  background: var(--np-surface);
  color: var(--np-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.np-inv-chip.is-on { background: var(--np-ink); color: var(--np-cream); border-color: var(--np-ink); }
@media (max-width: 1279px) { .np-inv-chip { min-height: 48px; } }

.np-inv-pager {
  display: flex;
  align-items: center;
  gap: var(--np-s2);
}
.np-inv-pager__label {
  min-width: 150px;
  text-align: center;
  font-size: var(--np-fs-body);
  font-weight: 700;
}
/* ‹ and › must swap sides in Arabic: the glyph is written by JS, the flip is
   done here so the JS never has to know the direction. */
[dir="rtl"] .np-inv-pager__nav { transform: scaleX(-1); }

.np-inv-sums {
  display: flex;
  flex-wrap: wrap;
  gap: var(--np-s3) var(--np-s6);
  padding: 12px var(--np-s4);
  border-top: 1px solid var(--np-divider);
  background: var(--np-surface-alt);
}
.np-inv-sums__item { display: flex; flex-direction: column; gap: 2px; }
.np-inv-sums__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--np-dim);
}
.np-inv-sums__val { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   5 · The delivery sheet — line editor
   ========================================================================== */

/* The sheet that holds it is wider than the standard admin sheet: a delivery
   line is a picker, a quantity, a price, a date and a total. Under 900 px it
   is a bottom sheet and the width is irrelevant. */
@media (min-width: 900px) {
  .np-sheet--wide { --np-sheet-w: 560px; }
}

.np-inv-lines {
  display: flex;
  flex-direction: column;
  gap: var(--np-s2);
}

.np-inv-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--np-s2);
  padding: 12px;
  border: 1px solid var(--np-line);
  border-radius: var(--np-r-card);
  background: var(--np-surface);
}
.np-inv-line.is-error { border-color: var(--np-red-line); background: var(--np-red-soft); }

.np-inv-line__pick { grid-column: 1 / -1; }
.np-inv-line__grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: var(--np-s2);
  align-items: end;
}
.np-inv-line__qty,
.np-inv-line__price,
.np-inv-line__exp { min-width: 0; }

.np-inv-line__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--np-s2);
  padding-block-start: 2px;
}
.np-inv-line__total {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.np-inv-line__rm {
  flex: none;
  width: var(--np-touch);
  height: var(--np-touch);
  min-height: 0;
  padding: 0;
  border: 1px solid var(--np-line-input);
  border-radius: var(--np-r-btn);
  background: var(--np-surface);
  color: var(--np-mid);
  font-size: 15px;
}
.np-inv-line__rm:hover { border-color: var(--np-red-line-hover); color: var(--np-red); }

/* Sticky running total at the bottom of the sheet body. The footer of the
   sheet holds the buttons; this holds the number he is checking against the
   delivery note. */
.np-inv-total {
  position: sticky;
  inset-block-end: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--np-s3);
  margin-block-start: var(--np-s2);
  padding: 12px 14px;
  border: 1px solid var(--np-line);
  border-radius: var(--np-r-line);
  background: var(--np-surface-alt);
}
.np-inv-total__label { flex: 1; min-width: 0; font-size: var(--np-fs-body); font-weight: 600; color: var(--np-mid); }
.np-inv-total__val {
  font-size: var(--np-fs-price);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   6 · The type-to-find picker (ingredients, products, preparations)
   ========================================================================== */

.np-inv-pick { position: relative; display: flex; flex-direction: column; gap: 6px; }
.np-inv-pick > span { font-size: var(--np-fs-secondary); color: var(--np-mid); }

.np-inv-pick__list {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  z-index: 5;
  max-height: 240px;
  overflow-y: auto;
  margin-block-start: 4px;
  padding: 4px;
  border: 1px solid var(--np-line);
  border-radius: var(--np-r-line);
  background: var(--np-surface);
  box-shadow: var(--np-sh-toast);
}
.np-inv-pick__list[hidden] { display: none; }

.np-inv-pick__item {
  display: flex;
  align-items: center;
  gap: var(--np-s2);
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--np-r-sm);
  background: transparent;
  color: var(--np-ink);
  font-size: var(--np-fs-body);
  text-align: start;
}
.np-inv-pick__item:hover,
.np-inv-pick__item.is-active { background: var(--np-soft); }
.np-inv-pick__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-inv-pick__meta { flex: none; font-size: var(--np-fs-secondary); color: var(--np-dim); font-variant-numeric: tabular-nums; }
.np-inv-pick__empty { padding: 12px; font-size: 13px; color: var(--np-dim); text-align: center; }

/* ==========================================================================
   7 · The count screen (the tablet's main job)
   ========================================================================== */

.np-inv-count { display: flex; flex-direction: column; gap: var(--np-s3); }

/* Sticky inside .np-content, which is the only scroller of the page. */
.np-inv-count__head {
  position: sticky;
  inset-block-start: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--np-s3);
  padding: 14px var(--np-s4);
  border: 1px solid var(--np-line);
  border-radius: var(--np-r-panel);
  background: var(--np-surface);
  box-shadow: var(--np-sh-card);
}
.np-inv-count__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--np-s2); }
.np-inv-count__progress {
  display: flex;
  align-items: center;
  gap: var(--np-s3);
}
.np-inv-count__progress .np-bar { flex: 1; min-width: 80px; width: auto; height: 10px; }
.np-inv-count__pct {
  flex: none;
  font-size: var(--np-fs-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.np-inv-count__acts { display: flex; flex-wrap: wrap; gap: var(--np-s2); }

.np-inv-count__rows {
  display: flex;
  flex-direction: column;
}
.np-inv-count__grp {
  padding: 12px var(--np-s4) 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--np-dim);
}

.np-inv-count__row {
  display: flex;
  align-items: center;
  gap: var(--np-s3);
  padding: 10px var(--np-s4);
  border-top: 1px solid var(--np-divider);
  background: var(--np-surface);
}
.np-inv-count__row:first-of-type { border-top: 0; }
.np-inv-count__row.is-counted { background: var(--np-surface-alt); }
.np-inv-count__row.is-loss { box-shadow: inset 3px 0 0 0 var(--np-red); }
.np-inv-count__row.is-gain { box-shadow: inset 3px 0 0 0 var(--np-green); }
[dir="rtl"] .np-inv-count__row.is-loss { box-shadow: inset -3px 0 0 0 var(--np-red); }
[dir="rtl"] .np-inv-count__row.is-gain { box-shadow: inset -3px 0 0 0 var(--np-green); }

.np-inv-count__name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.np-inv-count__ing { font-size: var(--np-fs-body); font-weight: 600; text-wrap: pretty; }
.np-inv-count__exp { font-size: var(--np-fs-secondary); color: var(--np-dim); font-variant-numeric: tabular-nums; }

.np-inv-count__entry { flex: none; display: flex; align-items: center; gap: 6px; }
.np-inv-count__input {
  width: 116px;
  min-height: 48px;
  text-align: end;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.np-inv-count__unit { font-size: var(--np-fs-secondary); color: var(--np-mid); min-width: 26px; }
/* When the ingredient is stocked in kg or L the suffix is a BUTTON that
   switches the entry unit to g / ml — so it has to be a real target. */
button.np-inv-count__unit {
  min-height: 48px;
  min-width: 46px;
  padding: 0 var(--np-s2);
  border: 1px solid var(--np-line-input);
  border-radius: var(--np-r-sm);
  background: var(--np-surface);
  font-weight: 700;
}
button.np-inv-count__unit:hover { border-color: var(--np-ink); color: var(--np-ink); }

/* Saved / not-saved marker. Reserves its width so a row does not jump when
   the tick appears. */
.np-inv-count__mark {
  flex: none;
  width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--np-dim);
}
.np-inv-count__mark.is-ok { color: var(--np-green); }
.np-inv-count__mark.is-busy { color: var(--np-dim); }
.np-inv-count__mark.is-fail { color: var(--np-red); }

.np-inv-count__var { flex: none; min-width: 96px; display: flex; justify-content: flex-end; }

/* ==========================================================================
   8 · Budget & résultat — the bridge (finance.js)
   ========================================================================== */

.np-inv-bridge { display: flex; flex-direction: column; gap: var(--np-s3); }

.np-inv-bridge__row {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(0, 2fr) minmax(96px, auto);
  align-items: center;
  gap: var(--np-s3);
}
.np-inv-bridge__label { font-size: 13.5px; font-weight: 600; text-wrap: pretty; }
.np-inv-bridge__track {
  height: 14px;
  border-radius: var(--np-r-pill);
  background: var(--np-soft);
  overflow: hidden;
}
/* Bars grow from the inline start so Arabic reads them the same way. */
.np-inv-bridge__bar {
  display: block;
  height: 100%;
  border-start-end-radius: var(--np-r-pill);
  border-end-end-radius: var(--np-r-pill);
  background: var(--np-ink);
}
.np-inv-bridge__bar.is-neg { background: var(--np-red); }
.np-inv-bridge__bar.is-pos { background: var(--np-green); }
.np-inv-bridge__bar.is-total { background: var(--np-lav); }
.np-inv-bridge__val {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
}
.np-inv-bridge__pct { font-size: var(--np-fs-secondary); font-weight: 600; color: var(--np-dim); }
.np-inv-bridge__row--total .np-inv-bridge__label { font-weight: 700; }
.np-inv-bridge__row--total .np-inv-bridge__val { font-size: 16px; }

/* A ranked row with a share bar (dépenses par catégorie, marge par catégorie,
   budget vs réel). */
.np-inv-rank {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto);
  gap: 4px var(--np-s3);
  padding: 10px var(--np-s4);
  border-top: 1px solid var(--np-divider);
}
.np-inv-rank:first-child { border-top: 0; }
.np-inv-rank__name { font-size: 13.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.np-inv-rank__val { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; }
.np-inv-rank__track {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: var(--np-r-pill);
  background: var(--np-soft);
  overflow: hidden;
}
.np-inv-rank__bar { display: block; height: 100%; background: var(--np-ink); }
.np-inv-rank__bar.is-over { background: var(--np-red); }
.np-inv-rank__bar.is-warn { background: var(--np-amber); }

/* ==========================================================================
   9 · Historique des prix — the step chart
   ========================================================================== */

/* A time axis reads left to right in every language, exactly like the
   analytics charts: the SVG stays LTR even in Arabic. */
.np-inv-steps {
  display: block;
  direction: ltr;
  width: 100%;
  height: 90px;
  overflow: visible;
}
.np-inv-steps__line { fill: none; stroke: var(--np-ink); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.np-inv-steps__line--cost { stroke: var(--np-red); stroke-dasharray: 4 3; }
.np-inv-steps__dot { fill: var(--np-surface); stroke: var(--np-ink); stroke-width: 1.7; }
.np-inv-steps__axis { stroke: var(--np-line); stroke-width: 1; }

/* ==========================================================================
   10 · Small shared bits
   ========================================================================== */

/* The head of a section body: a title, then the controls, then the one
   primary action. */
.np-inv-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--np-s2);
}
.np-inv-bar__spacer { flex: 1; min-width: 0; }

.np-inv-note { font-size: var(--np-fs-secondary); color: var(--np-mid); text-wrap: pretty; }

/* Two numbers side by side inside a sheet (stock actuel / nouveau stock). */
.np-inv-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--np-s3);
  padding: 12px 14px;
  border-radius: var(--np-r-line);
  background: var(--np-surface-alt);
}
.np-inv-facts__item { flex: 1; min-width: 110px; display: flex; flex-direction: column; gap: 2px; }
.np-inv-facts__label { font-size: var(--np-fs-secondary); color: var(--np-dim); }
.np-inv-facts__val { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* A live preview list (production: what a batch consumes). */
.np-inv-prev { display: flex; flex-direction: column; gap: 2px; }
.np-inv-prev__row {
  display: flex;
  align-items: baseline;
  gap: var(--np-s3);
  padding: 8px 0;
  border-block-start: 1px solid var(--np-divider);
  font-size: 13.5px;
}
.np-inv-prev__row:first-child { border-block-start: 0; }
.np-inv-prev__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.np-inv-prev__qty { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.np-inv-prev__row.is-short { color: var(--np-red); }

/* ==========================================================================
   11 · Tablet portrait and phone
   ========================================================================== */

@media (max-width: 899px) {
  .np-inv-action { min-height: 96px; }

  /* A delivery line becomes a card: the picker on its own line, then the
     numbers, then the total and the remove button. */
  .np-inv-line { padding: 14px; }
  .np-inv-line__grid { grid-template-columns: minmax(0, 1fr); }

  .np-inv-count__head { padding: 12px var(--np-s3); }
  .np-inv-count__row { flex-wrap: wrap; padding: 12px var(--np-s3); }
  .np-inv-count__name { flex: 1 1 100%; }
  .np-inv-count__entry { flex: 1 1 auto; }
  .np-inv-count__input { flex: 1; width: auto; min-width: 120px; }
  .np-inv-count__var { min-width: 0; }

  .np-inv-bridge__row { grid-template-columns: minmax(0, 1fr) minmax(90px, auto); }
  .np-inv-bridge__track { grid-column: 1 / -1; }
}

@media (max-width: 599px) {
  .np-inv-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-inv-action { min-height: 118px; padding: 14px; }
  .np-inv-action__label { font-size: 15px; }
  .np-inv-action__hint { display: none; }

  .np-inv-pager__label { min-width: 0; flex: 1; }
  .np-inv-sums { gap: var(--np-s3); }
  .np-inv-sums__item { flex: 1 1 42%; }
}

/* ==========================================================================
   12 · Print — the result and the count are the two pages he prints
   ========================================================================== */

@media print {
  .np-inv-actions,
  .np-inv-filters,
  .np-inv-pager,
  .np-inv-count__acts,
  .np-inv-line__rm,
  .np-inv-pick__list { display: none !important; }

  .np-inv-count__head {
    position: static;
    box-shadow: none;
  }
  .np-inv-alerts,
  .np-inv-count__row,
  .np-inv-bridge__track { break-inside: avoid; }
  .np-inv-bridge__bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* The Stock action tiles set their own card shadow, which beat base.css's
   :focus-visible on source order — same cause as the components above (W22). */
.np-inv-action:focus-visible { box-shadow: var(--np-sh-focus), var(--np-sh-card); }
