/* The inventory tour reads the shared demo state; forms and approvals live with Olmi. */
.iv-workspace { container-type:inline-size; container-name:inventory-demo; }
.iv-topbar { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:21px; border-bottom:1px solid var(--line); }
.iv-tabs { border:0; margin:0; gap:19px; min-height:35px; }
.iv-tabs > button { display:flex; align-items:center; gap:5px; padding-bottom:12px; }
.iv-tab-count { display:inline-grid; place-items:center; min-width:15px; height:15px; border-radius:4px; background:var(--fill-selected); color:var(--action-hover); font-size:8px; }
#platform-pages .iv-action { display:inline-flex; align-items:center; justify-content:center; gap:7px; flex-shrink:0; border:1px solid var(--action); border-radius:6px; background:var(--action); color:var(--on-action); padding:7px 11px; min-height:31px; font-size:10px; white-space:nowrap; }
.iv-action .icon { width:14px; height:14px; }
#platform-pages .iv-action:hover:not(:disabled) { background:var(--action-hover); }
#platform-pages .iv-action:disabled { opacity:.6; cursor:default; }
#platform-pages .iv-action-secondary { background:var(--surface); color:var(--action-hover); border-color:var(--line-strong); }
#platform-pages .iv-action-secondary:hover { background:var(--fill-hover); }
.iv-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:25px; }
.iv-metric { position:relative; padding:12px 14px; text-align:left; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text-muted); }
.iv-metric > span { font-size:10px; display:block; }
.iv-metric > strong { font-size:25px; font-weight:500; letter-spacing:-.045em; color:var(--text-strong); display:block; line-height:1.25; margin-top:4px; }
.iv-metric > .icon { position:absolute; right:12px; bottom:17px; width:12px; height:12px; }
.iv-metric:hover { background:var(--fill-hover); }
.iv-metric-attention > strong,.iv-low { color:var(--urgent)!important; }
.iv-section-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; }
.iv-section-heading > span { font-size:9px; color:var(--text-muted); }
.iv-attention { border:1px solid var(--line); border-radius:9px; overflow:hidden; background:var(--surface); }
.iv-attention-row { display:grid; grid-template-columns:1.4fr .7fr .9fr 12px; align-items:center; gap:14px; width:100%; padding:13px 15px; text-align:left; border:0; border-top:1px solid var(--line); background:var(--surface); color:var(--text); }
.iv-attention-row:first-child { border-top:0; }
.iv-attention-row:hover { background:var(--surface-raised); }
.iv-attention-product { display:flex; align-items:center; gap:12px; min-width:0; }
.iv-attention-product > span:last-child { min-width:0; }
.iv-attention-product strong { display:block; font-size:11px; font-weight:500; line-height:1.4; }
.iv-attention-product small { display:block; margin-top:4px; font-size:9px; }
.iv-attention-product .pv-product-art { width:43px; height:52px; flex-shrink:0; margin:0; overflow:hidden; }
.iv-attention-product .pv-package { transform:scale(.48); margin:0; }
.iv-attention-product .pv-art-box .pv-package { transform:scale(.48) rotate(-5deg); }
.iv-attention-context { display:grid; gap:3px; font-size:9px; color:var(--text-muted); }
.iv-attention-quantity { display:grid; justify-items:end; gap:3px; white-space:nowrap; }
.iv-attention-quantity strong { font-size:12px; font-weight:500; }
.iv-attention-quantity small { color:var(--text-muted); font-size:8px; }
.iv-attention-row > .icon { height:12px; width:12px; color:var(--text-subtle); }
.iv-clear { padding:24px; font-size:11px; }
.iv-draft-summary { margin-top:18px; display:flex; align-items:center; gap:11px; width:100%; padding:15px; border:1px solid var(--line-strong); border-radius:9px; background:var(--surface); color:var(--text); text-align:left; }
.iv-draft-summary:hover { background:var(--surface-raised); }
.iv-draft-summary > span:nth-child(2) { min-width:0; flex:1; }
.iv-draft-summary strong { display:block; font-size:11px; font-weight:500; }
.iv-draft-summary small { display:block; color:var(--text-muted); font-size:9px; margin-top:4px; }
.iv-draft-summary > .icon { width:13px; height:13px; }
.iv-draft-icon { display:grid; place-items:center; border:1px solid var(--line); border-radius:7px; height:31px; width:31px; color:var(--action); background:var(--surface-canvas); flex-shrink:0; }
.iv-draft-icon .icon { height:16px; width:16px; }
.iv-draft-tag { display:inline-flex; align-items:center; padding:3px 7px; border-radius:4px; background:var(--surface-sunken); color:var(--text-muted); font-size:9px; }
.pv-page .iv-stock-explainer { font-size:9px; line-height:1.6; color:var(--text-muted); margin-top:19px; }
.iv-pending-note { display:flex; align-items:center; gap:7px; font-size:10px; color:var(--text-muted); margin-top:14px; }
.iv-pending-note .icon { height:14px; width:14px; color:var(--action); }
.iv-stock-figures { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:4px; margin:15px 0 0; padding-top:13px; border-top:1px solid var(--line); }
.iv-stock-figures > div { display:flex; flex-direction:column-reverse; gap:3px; text-align:center; min-width:0; }
.iv-stock-figures dt { font-size:8px; font-weight:400; color:var(--text-muted); }
.iv-stock-figures dd { margin:0; font-size:17px; font-weight:500; line-height:1.25; }
.iv-stock-label { display:flex; align-items:center; justify-content:space-between; gap:5px; width:100%; margin-top:15px; padding-top:10px; border-top:1px solid var(--line); font-size:8px; color:var(--text-muted); }
.iv-stock-label .icon { height:11px; width:11px; flex-shrink:0; }
.iv-product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.iv-product .pv-product-art { height:124px; }
.iv-order { padding:18px; margin-bottom:14px; border:1px solid var(--line-strong); border-radius:10px; background:var(--surface); outline:0; }
.iv-order > header { display:flex; align-items:center; gap:10px; }
.iv-order > header > div { flex:1; }
.iv-order > header h3 { font-size:12px; font-weight:500; }
.iv-order > header p { font-size:9px; margin-top:3px; }
.iv-order-lines { margin-top:18px; border-top:1px solid var(--line); }
.iv-order-line { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:15px 0; border-bottom:1px solid var(--line); }
.iv-order-line > span > strong { display:block; font-size:11px; font-weight:500; }
.iv-order-line > span > small { display:block; font-size:9px; color:var(--text-muted); margin-top:4px; }
.iv-order-line > strong { font-size:20px; font-weight:500; letter-spacing:-.025em; white-space:nowrap; }
.iv-order-line > strong > small { font-size:10px; font-weight:400; color:var(--text-muted); letter-spacing:0; }
.iv-order > footer { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:16px; }
.iv-order > footer > span { display:flex; align-items:center; gap:6px; font-size:9px; color:var(--text-muted); }
.iv-order > footer .icon { width:13px; height:13px; color:var(--action); }
.iv-order > footer > button { font-size:9px!important; }
.iv-order-empty { display:flex; align-items:center; flex-direction:column; justify-content:center; padding:40px 20px; border:1px solid var(--line); border-radius:10px; background:var(--surface); text-align:center; }
.iv-order-empty > .icon { height:26px; width:26px; color:var(--text-subtle); margin-bottom:15px; }
.iv-order-empty > p { font-size:11px; line-height:1.65; max-width:280px; margin:8px 0 18px; }
.iv-receipt { display:flex; align-items:center; gap:7px; margin:0 0 16px; padding:11px 12px; border:1px solid var(--line-strong); border-radius:7px; color:var(--action-hover); background:var(--surface-raised); font-size:10px; }
.iv-receipt > .icon { width:14px; height:14px; flex-shrink:0; }
.iv-receipt > span { flex:1; }
.iv-receipt > button { background:transparent; border:0; color:var(--action-hover); padding:0; font-size:9px!important; text-decoration:underline; text-underline-offset:3px; }
.iv-count-scroll { overflow:auto; border:1px solid var(--line); border-radius:9px; background:var(--surface); }
.iv-count-table { width:100%; border-collapse:collapse; text-align:left; min-width:430px; }
.iv-count-table th,.iv-count-table td { padding:13px 14px; border-bottom:1px solid var(--line); }
.iv-count-table thead th { font-weight:400; font-size:9px; color:var(--text-muted); background:var(--surface-sunken); }
.iv-count-table tbody tr:last-child > * { border-bottom:0; }
.iv-count-table tbody td { font-size:13px; font-variant-numeric:tabular-nums; }
.iv-count-table tbody td small { display:block; font-size:8px; margin-top:3px; }
.iv-count-table tbody th { width:42%; }
.iv-count-table tbody button { padding:0; border:0; background:none; text-align:left; color:var(--text); }
.iv-count-table tbody button strong { display:block; font-size:11px; font-weight:500; }
.iv-count-table tbody button small { display:block; font-weight:400; font-size:9px; color:var(--text-muted); margin-top:4px; }
.iv-detail .pv-product-detail .iv-stock-figures { margin:22px 0; }
.iv-detail .pv-product-detail .iv-stock-figures > div { padding:0; border:0; display:flex; }
.iv-detail .pv-product-detail .iv-stock-figures dd { font-size:22px; }
.iv-detail .pv-product-detail .iv-stock-figures dt { font-size:10px; }
.iv-detail-facts { margin-block:15px; }
.iv-detail .iv-detail-low { display:flex; align-items:flex-start; gap:7px; color:var(--urgent); font-size:11px; }
.iv-detail-low .icon { width:14px; height:14px; flex-shrink:0; margin-top:2px; }
.iv-detail-actions { display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-top:20px; }
.iv-is-changed { animation:iv-arrive 1400ms var(--ease-settle) both; }
@keyframes iv-arrive { 0%{box-shadow:0 0 0 3px #849b6b9c;background:#f3f6ec;transform:translateY(5px)}30%{box-shadow:0 0 0 3px #849b6b5c;transform:translateY(0)}100%{box-shadow:0 0 0 0 #849b6b00;background:var(--surface);transform:translateY(0)} }
@container inventory-demo (max-width:650px) {
  .iv-topbar { flex-direction:column; align-items:stretch; gap:8px; padding-bottom:13px; }
  .iv-topbar > .iv-action { align-self:flex-end; }
  .iv-tabs { justify-content:flex-start; margin-bottom:0; }
  .iv-tabs > button { padding-bottom:6px; }
  .iv-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .iv-attention-row { grid-template-columns:1fr auto 12px; gap:10px; }
  .iv-attention-context { display:none; }
  .iv-section-heading > span { font-size:8px; }
}
@container inventory-demo (max-width:420px) {
  .iv-metrics { gap:6px; }.iv-metric { padding:10px; }.iv-metric > span { font-size:9px; }.iv-metric > strong { font-size:22px; }.iv-metric > .icon { display:none; }
  .iv-section-heading { display:block; }.iv-section-heading > span { display:block; margin-top:3px; }
  .iv-attention-row { padding:11px 10px; gap:7px; }.iv-attention-product { gap:8px; }.iv-attention-product .pv-product-art { width:33px; }.iv-attention-product strong { font-size:10px; }.iv-attention-product small { font-size:8px; }.iv-attention-quantity strong { font-size:11px; }.iv-attention-quantity small { font-size:7px; }
  .iv-draft-summary { padding:12px; gap:8px; }.iv-draft-summary .iv-draft-tag { display:none; }.iv-draft-summary small { line-height:1.6; }
  .iv-order { padding:14px; }.iv-order-line { gap:12px; }.iv-order-line > span > small { font-size:8px; }.iv-order-line > strong { font-size:19px; }.iv-order > footer { align-items:start; }.iv-order > footer > span { font-size:8px; max-width:180px; }
  .iv-receipt { flex-wrap:wrap; }.iv-receipt > span { flex-basis:calc(100% - 25px); }.iv-receipt > button { margin-left:21px; }
}
@media (prefers-reduced-motion:reduce) { .iv-is-changed { animation:none; outline:2px solid var(--action); outline-offset:2px; } }
