/* Product: Zoho Inventory - page-specific design.
   Accent sampled from the icon (#e42527, the shared Zoho red). The mechanic is a stock-level
   drain: a bar depletes as discrete sale events tick in, crossing a visible reorder line that
   triggers an automatic purchase-order alert - distinct from every other mechanic on the site:
   a level draining over a sequence of events, not a diagram, feed, timeline, tabs, cascade,
   grid-fill, pipeline, toggle or matcher.

   All classes scoped to .inv-page, prefixed inv-. */

.inv-page { --inv: #e42527; --inv-d: #a5191b; --inv-l: #fbebeb; }

.inv-page .ph-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; font-weight: 700; font-size: .9rem; color: #fff;
  margin-block-end: 18px;
}
.inv-page .ph-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }

/* ------------------------------------------------------------------------ drain -- */
.inv-drain { padding: clamp(48px, 7vw, 84px) 0; }
.inv-drain h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 12px; }
.inv-drain .lede { max-width: 82ch; }

.inv-panel {
  margin-block-start: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(20px, 3.5vw, 30px);
  box-shadow: 0 20px 50px -40px rgba(80, 20, 20, .3);
}
.inv-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-block-end: 22px; }
.inv-head > span { font-weight: 800; font-size: 1.05rem; color: var(--ink); }

.inv-bar-wrap { direction: ltr; }
.inv-bar { position: relative; height: 22px; border-radius: 11px; background: var(--inv-l); overflow: hidden; }
.inv-bar-fill { display: block; height: 100%; width: 100%; border-radius: 11px; background: var(--inv-d); transition: width .4s ease; }
.inv-bar-fill.is-low { background: #a5191b; animation: inv-pulse 1s ease-in-out infinite; }
@keyframes inv-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .inv-bar-fill.is-low { animation: none; } }
.inv-reorder-line { position: absolute; top: -4px; bottom: -4px; inset-inline-start: 20%; width: 2px; background: var(--ink); opacity: .55; }
.inv-scale { display: flex; justify-content: space-between; margin-block-start: 6px; font-size: .78rem; color: var(--muted); position: relative; }
.inv-reorder-lbl { position: absolute; inset-inline-start: 20%; transform: translateX(-50%); font-weight: 700; color: var(--inv-d); white-space: nowrap; }

.inv-count { direction: rtl; margin: 34px 0 16px; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.inv-count span { color: var(--inv-d); font-variant-numeric: tabular-nums; }

.inv-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; min-height: 40px; }
.inv-log-row {
  padding: 9px 13px; border-radius: 9px; background: var(--paper, #f7f9fa);
  font-size: .88rem; color: var(--muted);
}
.inv-log-row.is-alert { background: var(--inv-l); color: var(--inv-d); font-weight: 700; }

/* ------------------------------------------------------------------------ need -- */
.inv-need {
  padding: clamp(40px, 6vw, 64px) 0;
  background: var(--inv-l);
  border-block: 1px solid color-mix(in srgb, var(--inv) 18%, var(--line));
}
.inv-need h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0 0 12px; }
.inv-need .lede { max-width: 82ch; margin: 0; }

/* ------------------------------------------------------------------------- caps -- */
.inv-caps { padding: clamp(48px, 7vw, 84px) 0; }
.inv-caps h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 22px; }
.inv-cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 13px; }
.inv-cap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.inv-cap b { display: block; margin-block-end: 6px; font-size: 1.02rem; color: var(--inv-d); }
.inv-cap p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ----------------------------------------------------------------------- move -- */
.inv-move { padding: clamp(48px, 7vw, 84px) 0; }
.inv-move h2 { font-size: 1.35rem; margin: 0 0 10px; }
.inv-move h3 { font-size: 1.08rem; }

@media (max-width: 500px) {
  .inv-head { flex-direction: column; align-items: stretch; }
}
