/*
 * productCommand.css — the Product trends drill-down, laid out as one page about one product.
 *
 * The card used to be a header, a figure strip, a chart beside a platform table, and then the
 * listings. This lays the same facts out in the order somebody actually reads them — what to do,
 * how good the product is, what it sold, what each channel paid, every listing, what stock is
 * where, what Amazon ordered, what is on the water, what the ads cost — with a jump bar so the
 * long ones can be skipped.
 *
 * SCOPED TO .dx AND BUILT ON ITS TOKENS, not on a second palette. The listings table, every hover
 * card and every chip in it already live in that world; a page that brought its own colours would
 * have the new sections and the old table disagreeing about what violet is. style.css styles bare
 * elements globally, so anything that sets its own padding or margin resets it here.
 *
 * Sections whose figures are not trustworthy yet wear .pcx-soon, which is deliberately plain: a
 * COMING SOON card should not look like a finished one with a label on it.
 */

/* ── the jump bar ─────────────────────────────────────────────────────────── */
.dx .pcx-jump{display:flex;gap:6px;overflow-x:auto;padding:10px 0 2px;scrollbar-width:none}
.dx .pcx-jump::-webkit-scrollbar{display:none}
.dx .pcx-jump button{flex:none;padding:5px 11px;border-radius:999px;font-size:11.5px;font-weight:600;
  color:var(--dx-mut);text-decoration:none;border:1px solid transparent;white-space:nowrap}
.dx .pcx-jump button:hover{background:var(--dx-soft);border-color:var(--dx-line);color:var(--dx-ink)}

/* ── a section ────────────────────────────────────────────────────────────── */
/* The sticky bar is the identity, the controls AND the jump row - about 150px - so a jump
   with less clearance than that lands with the section heading hidden behind it. */
.dx .pcx-sec{margin:18px 0;scroll-margin-top:170px}
.dx .pcx-shead{display:flex;align-items:baseline;gap:10px;margin:0 0 9px;flex-wrap:wrap}
.dx .pcx-shead h2{font-size:11.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  color:var(--dx-vi);margin:0}
.dx .pcx-shead .note{font-size:11.5px;color:var(--dx-faint)}

/* ── coming soon ──────────────────────────────────────────────────────────── */
.dx .pcx-soonchip{display:inline-block;font-size:9px;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;padding:2px 7px;border-radius:999px;background:var(--dx-soft);
  color:var(--dx-faint);border:1px solid var(--dx-line)}
.dx .pcx-soon{background:var(--dx-soft);border:1px dashed var(--dx-edge);border-radius:13px;
  padding:13px 15px}
.dx .pcx-soon h3{margin:4px 0 5px;font-size:14px;font-weight:700;color:var(--dx-mut)}
.dx .pcx-soon p{margin:0;font-size:12px;color:var(--dx-faint);max-width:68ch}
.dx .pcx-soon .pcx-need{margin-top:9px;padding-top:8px;border-top:1px solid var(--dx-line);
  display:grid;gap:4px;font-size:11.5px}
.dx .pcx-soon .pcx-need span{display:flex;justify-content:space-between;gap:12px;color:var(--dx-faint)}
.dx .pcx-soon .pcx-need b{color:var(--dx-mut);font-weight:600;text-align:right}

/* ── decide ───────────────────────────────────────────────────────────────── */
.dx .pcx-dec{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:11px;
  align-items:start}
.dx .pcx-adv{background:var(--dx-paper);border:1px solid var(--dx-line);border-radius:13px;
  padding:13px 15px;border-left:4px solid var(--dx-vim);min-width:0}
.dx .pcx-adv.go{border-left-color:var(--dx-good)}
.dx .pcx-adv.hold{border-left-color:var(--dx-att)}
.dx .pcx-adv .tag{display:flex;justify-content:space-between;gap:8px;align-items:center;
  font-size:9.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--dx-faint)}
.dx .pcx-adv h3{margin:4px 0 5px;font-size:15px;font-weight:700;letter-spacing:-.01em;color:var(--dx-ink)}
.dx .pcx-adv .big{font-size:23px;font-weight:800;letter-spacing:-.02em;line-height:1.1;
  margin:7px 0 2px;color:var(--dx-good)}
.dx .pcx-adv .big.warn{color:var(--dx-att)}
.dx .pcx-adv .big.mute{color:var(--dx-faint)}
.dx .pcx-adv p{margin:0;font-size:12px;color:var(--dx-mut)}
.dx .pcx-adv .pcx-ev{margin-top:9px;padding-top:8px;border-top:1px solid var(--dx-line);
  display:grid;gap:4px;font-size:11.5px}
.dx .pcx-adv .pcx-ev span{display:flex;justify-content:space-between;gap:12px;color:var(--dx-mut)}
.dx .pcx-adv .pcx-ev b{color:var(--dx-ink);font-weight:600;text-align:right}

/* ── the verdict, over the walks ──────────────────────────────────────────
 *
 * "Which is more profitable" is two questions - which keeps more of a unit, and which made
 * more money - and they can answer differently. The band states both and is the only place on
 * this section allowed to draw a conclusion; the cards stay evidence.
 *
 * GREEN WHEN THEY AGREE, AMBER WHEN THEY DO NOT. Amber is not a warning here, it is the mark
 * of a split answer, and the words say so too - the colour is never carrying it alone.
 */
.dx .pcx-verdict{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 20px;
  align-items:center;margin-bottom:11px;padding:12px 16px;background:var(--dx-paper);
  border:1px solid var(--dx-line);border-left:3px solid var(--dx-good);border-radius:12px}
.dx .pcx-verdict.split{border-left-color:var(--dx-att)}
.dx .pcx-verdict .l{min-width:0}
.dx .pcx-verdict .k{display:block;font-size:9.5px;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--dx-faint);margin-bottom:3px}
.dx .pcx-verdict .line{margin:0;font-family:'Bricolage Grotesque','Instrument Sans',sans-serif;
  font-size:15px;font-weight:700;letter-spacing:-.01em;line-height:1.3;color:var(--dx-ink)}
.dx .pcx-verdict .line b{font-weight:800;color:var(--dx-good)}
.dx .pcx-verdict.split .line b{color:var(--dx-att)}
.dx .pcx-verdict .line em{font-style:normal;font-weight:500;color:var(--dx-mut)}
.dx .pcx-verdict .why{margin:4px 0 0;font-size:11.5px;line-height:1.45;color:var(--dx-mut);
  max-width:86ch}
.dx .pcx-verdict .r{flex:none;text-align:right;min-width:0}
.dx .pcx-verdict .r b{display:block;font-family:'Bricolage Grotesque','Instrument Sans',sans-serif;
  font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.05;color:var(--dx-good);
  font-variant-numeric:tabular-nums;white-space:nowrap}
.dx .pcx-verdict.split .r b{color:var(--dx-att)}
.dx .pcx-verdict .r span{display:block;margin-top:2px;font-size:10.5px;line-height:1.35;
  color:var(--dx-mut)}
.dx .pcx-verdict .r span i{display:block;font-style:normal;margin-top:2px;
  font-variant-numeric:tabular-nums}
/* On a narrow card the right-hand figure goes under the sentence rather than squeezing it. */
@media (max-width:760px){
  .dx .pcx-verdict{grid-template-columns:minmax(0,1fr)}
  .dx .pcx-verdict .r{text-align:left}
}

/* ── the two ledgers ──────────────────────────────────────────────────────── */
.dx .pcx-led{display:grid;grid-template-columns:1fr 1fr;gap:11px;align-items:start}
.dx .pcx-led .col{background:var(--dx-paper);border:1px solid var(--dx-line);border-radius:13px;
  overflow:hidden;min-width:0}
.dx .pcx-led .hd{display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:9px 14px;border-bottom:1px solid var(--dx-line)}
.dx .pcx-led .hd b{font-size:13px;font-weight:800;color:var(--dx-ink)}
.dx .pcx-lrow{display:grid;grid-template-columns:1fr auto 78px;gap:10px;padding:5px 14px;
  font-size:12px;align-items:baseline}
.dx .pcx-lrow:nth-child(odd){background:var(--dx-soft)}
.dx .pcx-lrow .lab{color:var(--dx-mut);min-width:0}
.dx .pcx-lrow .amt{font-weight:600;color:var(--dx-ink)}
.dx .pcx-lrow .amt.neg{color:var(--dx-bad)}
.dx .pcx-lrow .amt.soon{color:var(--dx-faint);font-weight:500}
.dx .pcx-lrow .per{text-align:right;font-size:11px;color:var(--dx-faint)}
.dx .pcx-lrow.tot{border-top:1px solid var(--dx-edge);background:var(--dx-viw)}
.dx .pcx-lrow.tot .lab,.dx .pcx-lrow.tot .amt{color:var(--dx-ink);font-weight:700}
.dx .pcx-lrow.tot .amt{color:var(--dx-good)}
/* FOUR COLUMNS: the line, the unit, the window, and where the figure came from. The source
   keeps its own column rather than taking turns with the money — the two answer different
   questions and the 25 Nov decision that put it here was about which deserved the ONE spare
   column, not about whether a total is worth having. */
.dx .pcx-led .pcx-lrow{grid-template-columns:minmax(0,1fr) auto 88px 140px;padding:6px 14px}
.dx .pcx-led .pcx-lrow .amt{font-variant-numeric:tabular-nums}
/* The window figure is set BACK from the per-unit one, on purpose: per unit is the column
   being compared and the one that decides where a unit goes, and two equally loud money
   columns leave the eye with no idea which it is meant to read across. */
.dx .pcx-lrow .win{text-align:right;font-size:11.5px;font-weight:600;color:var(--dx-mut);
  font-variant-numeric:tabular-nums;white-space:nowrap}
.dx .pcx-lrow .win.neg{color:var(--dx-mut)}
.dx .pcx-lrow.sub .win{color:var(--dx-ink);font-weight:700}
.dx .pcx-lrow.one .win{font-size:9.5px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--dx-faint)}
/* Nine zebra rows fought the two subtotals for attention and won, so the stripe is off inside
   the walk and the only shading left is the shading that means something. */
.dx .pcx-led .pcx-lrow:nth-child(odd){background:transparent}
/* A rate that is where it should be says so on the row it is on. */
.dx .pcx-led .pcx-lrow .lab i{font-style:normal;font-weight:600;color:var(--dx-good)}
/* Which of the two figure columns is which, said once at the top of each walk. */
.dx .pcx-lrow.one{border-bottom:1px solid var(--dx-line);padding-top:4px;padding-bottom:4px}
.dx .pcx-lrow.one .lab,.dx .pcx-lrow.one .amt,.dx .pcx-lrow.one .per{font-size:9.5px;
  font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--dx-faint)}
/* WHERE THE FIGURE CAME FROM, and whether anybody outside RMS confirmed it. Green: a charge
   somebody sent us. Amber: a rate we hold. Never colour alone - the words say it too. */
.dx .pcx-led .pcx-lrow .per{display:flex;align-items:center;justify-content:flex-end;gap:5px;
  text-align:right;font-size:10.5px;line-height:1.25}
.dx .pcx-lrow .per.ok::after,.dx .pcx-lrow .per.est::after{content:"";flex:none;width:6px;
  height:6px;border-radius:50%;background:var(--dx-good)}
.dx .pcx-lrow .per.est::after{background:var(--dx-att)}
.dx .pcx-lrow .per.est{color:var(--dx-att)}
/* A row with nothing to deduct says it once, across both of the other columns. It used to
   print a grey dash AND a second note beside it, which read as two separate facts. */
.dx .pcx-lrow.na .amt{grid-column:2/5;text-align:right;font-size:11px;font-weight:500;
  color:var(--dx-faint)}
/* A subtotal inside the walk: not the answer, but not an ordinary row either. */
.dx .pcx-lrow.sub{background:var(--dx-soft)}
.dx .pcx-led .pcx-lrow.sub{border-block:1px solid var(--dx-line)}
.dx .pcx-lrow.sub .lab,.dx .pcx-lrow.sub .amt{color:var(--dx-ink)}
/* The band colour of the shop, the same two the Listings table bands already use. */
.dx .pcx-led .col{position:relative}
.dx .pcx-led .col::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--rail)}
.dx .pcx-led .col.ven{--rail:#4C1D95}
.dx .pcx-led .col.sel{--rail:#9F74CC}
/* ── three cards, because Seller Central is two shops ─────────────────────
 * G4 and JUYI price, ship and advertise differently; added together they read as one average
 * that is neither of them. Each account wears the colour the platform chart already gives it.
 *
 * THE ROWS HAVE A FLOOR, and that is the whole of why this is not just a third column. In a
 * narrower card the longer sources wrap to two lines and the short ones do not, so one card's
 * Stock line sat 35px below another's and the bands under them never lined up — in a section
 * whose entire job is reading three walks across. Two lines of floor costs some air and buys
 * the comparison back. */
.dx .pcx-led.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.dx .pcx-led.three .pcx-lrow{grid-template-columns:minmax(0,1fr) auto 74px 108px;
  min-height:42px;align-items:center}
.dx .pcx-led.three .pcx-lrow .win{font-size:11px}
/* Narrow enough that four columns stop being four columns. The source cell is NOT the one
   that goes: it carries the landed-cost picker, which is the only control in the walk. */
@media (max-width:760px){
  .dx .pcx-led .pcx-lrow,.dx .pcx-led.three .pcx-lrow{
    grid-template-columns:minmax(0,1fr) auto 70px 96px;gap:7px}
  .dx .pcx-led .pcx-lrow .win{font-size:10.5px}
}
.dx .pcx-led.three .hd b{font-size:12.5px}
/* and the heads are floored too: a long chip wraps the Vendor name onto a second line, which
   put its whole walk 15px below the other two and undid the floor above it. */
.dx .pcx-led.three .hd{min-height:56px;align-items:flex-start}
.dx .pcx-led .col.sel.acct-g4{--rail:#5E48B8}
.dx .pcx-led .col.sel.acct-juyi{--rail:#9F74CC}
@media (max-width:1180px){.dx .pcx-led.three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:860px){.dx .pcx-led.three{grid-template-columns:1fr}}

/* ── which cost the stock line read, and changing it there ────────────────
 * The cell that said where a figure came from is the control for the one figure a reader can
 * actually change. It keeps the look of the five cells above it — right aligned, 11px, muted,
 * dot on the end — and earns a border only on hover, so a column of six sources does not read
 * as five labels and one button. The menu opens to the RIGHT edge: the cell is 152px and the
 * menu is 300, so the inherited left:0 would hang it off the card. */
.dx .pcx-lrow .per>button.pick{display:inline-flex;align-items:center;gap:4px;min-width:0;
  max-width:100%;border:1px solid transparent;background:none;margin:0;padding:1px 5px;
  border-radius:7px;font:inherit;font-size:11px;color:inherit;box-shadow:none;cursor:pointer}
/* the arrival clips, the caret does not: at 112px the ellipsis was eating the one mark that
   says this cell can be opened */
.dx .pcx-lrow .per>button.pick>.w{min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.dx .pcx-lrow .per>button.pick:hover{border-color:var(--dx-vil);background:var(--dx-paper);
  transform:none}
.dx .pcx-lrow .per>button.pick:focus-visible{outline:2px solid var(--dx-vi);outline-offset:1px}
.dx .pcx-lrow .per>button.pick>i{font-style:normal;font-size:9px;opacity:.75}
.dx .pcx-lrow .per>.dx-pt-menu{left:auto;right:0;text-align:left;white-space:normal}
/* China, or the supplier by name. The green is the same green the row's dot uses for a figure
   that is the whole figure; a supplier's own price is the card's violet, not a warning — the
   warning is the tag beside it. */
.dx .pcx-led .pcx-lrow .lab i.sup{color:var(--dx-vid)}
.dx .pcx-led .pcx-lrow .lab em.warn{font-style:normal;font-size:10px;font-weight:700;
  letter-spacing:.04em;text-transform:uppercase;color:var(--dx-att);margin-left:5px}
/* the card-wide choice, over the two walks that share it */
.dx .pcx-costbar{margin-bottom:11px}
.dx .pcx-costbar .why{font-size:11.5px;flex:1 1 220px;min-width:0}
/* a group with nothing in it says so, rather than being left out and noticed later */
.dx .dx-pt-mnone{margin:2px 10px 6px;font-size:11px;line-height:1.45;color:var(--dx-att);
  max-width:34ch}

/* ── before advertising: the block advertising is spent out of ─────────────
 *
 * It was the seventh row of nine, in the same grey as the subtotal three rows above it, so the
 * question it answers - how much of what this unit makes is going on ads - could not be read
 * off the screen at all. On the plates it is 55% on Vendor against 32% on Seller.
 */
.dx .pcx-adv2{padding:11px 14px 12px;background:var(--dx-viw);border-top:1px solid var(--dx-edge)}
.dx .pcx-adv2 .top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.dx .pcx-adv2 .l{min-width:0}
.dx .pcx-adv2 .r{flex:none;text-align:right}
.dx .pcx-adv2 .t{font-size:9.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--dx-vid)}
.dx .pcx-adv2 .sub{margin-top:2px;font-size:11px;line-height:1.35;color:var(--dx-mut)}
.dx .pcx-adv2 .r b{display:block;font-family:'Bricolage Grotesque',sans-serif;font-size:20px;
  font-weight:800;letter-spacing:-.02em;line-height:1;color:var(--dx-ink);
  font-variant-numeric:tabular-nums}
/* and what that came to over the window, under it — a budget is argued in pounds */
.dx .pcx-adv2 .r i.alt{display:block;margin-top:3px;font-style:normal;font-size:11px;
  color:var(--dx-mut);font-variant-numeric:tabular-nums;white-space:nowrap}
/* One bar, two segments, a 2px gap of the surface between them. */
.dx .pcx-adv2 .bar{display:flex;gap:2px;margin:10px 0 7px}
.dx .pcx-adv2 .bar span{height:9px;border-radius:5px;min-width:4px}
.dx .pcx-adv2 .bar .ad{background:var(--dx-att)}
.dx .pcx-adv2 .bar .kp{background:var(--dx-good)}
/* The legend names both segments, so the split is never carried by colour alone. */
.dx .pcx-adv2 .leg{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 14px;
  font-size:11px;color:var(--dx-mut)}
.dx .pcx-adv2 .leg span{display:inline-flex;align-items:center;gap:6px;min-width:0}
.dx .pcx-adv2 .leg i.sw{flex:none;width:8px;height:8px;border-radius:3px}
.dx .pcx-adv2 .leg .ad i.sw{background:var(--dx-att)}
.dx .pcx-adv2 .leg .kp i.sw{background:var(--dx-good)}
.dx .pcx-adv2 .leg b{color:var(--dx-ink);font-weight:700;font-variant-numeric:tabular-nums}
/* WHAT THIS SIDE SPENT, under what it was charged. Advertising is pooled across the two walks
   and shared per unit, so the two are different numbers and the gap between them is the whole
   of what the pooling did to this side - it is named, never left to be worked out. */
.dx .pcx-adv2 .own{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:4px 10px;margin-top:8px;padding-top:7px;border-top:1px dashed var(--dx-edge);
  font-size:11px;color:var(--dx-mut)}
.dx .pcx-adv2 .own b{color:var(--dx-ink);font-weight:700;font-variant-numeric:tabular-nums}
.dx .pcx-adv2 .own em{font-style:normal;font-weight:700;flex:none}
.dx .pcx-adv2 .own em.up{color:var(--dx-good)}
.dx .pcx-adv2 .own em.dn{color:var(--dx-att)}
.dx .pcx-adv2 .asrc{margin-top:7px;font-size:10px;color:var(--dx-faint);text-align:right}
.dx .pcx-adv2 .asrc::after{content:"";display:inline-block;margin-left:5px;width:6px;height:6px;
  border-radius:50%;background:var(--dx-good);vertical-align:middle}
/* WHAT ONE UNIT LEAVES. The answer the column exists for, so it is a figure and not the last
   row of a list, with the two ratios a reader acts on beside it. */
.dx .pcx-keep{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 14px;
  align-items:baseline;padding:12px 14px;background:var(--dx-viw);border-top:1px solid var(--dx-edge)}
.dx .pcx-keep .k{font-size:9.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--dx-faint)}
.dx .pcx-keep b{grid-row:1/3;grid-column:2;align-self:center;font-family:'Bricolage Grotesque',sans-serif;
  font-size:30px;font-weight:800;letter-spacing:-.03em;line-height:1;color:var(--dx-good);
  font-variant-numeric:tabular-nums}
/* Under a tenth of a penny-pinching margin is not good news, so it does not get the good
   news colour. A green 2p reads as a win at a glance, which is the opposite of the truth. */
.dx .pcx-keep b.thin{color:var(--dx-att);font-size:26px}
/* THE UNIT, UNDER THE WINDOW'S MONEY. The headline is the total because that is the figure
   that says which side is the bigger business; the unit is the figure that says where the
   next one should go, so it is on the line under it rather than gone. */
.dx .pcx-keep b i.u{display:block;margin-top:4px;font-family:'Instrument Sans',sans-serif;
  font-size:11.5px;font-style:normal;font-weight:600;letter-spacing:0;color:var(--dx-mut);
  white-space:nowrap}
.dx .pcx-keep b.thin i.u{color:var(--dx-att)}
.dx .pcx-keep .r2{font-size:11.5px;color:var(--dx-mut);min-width:0}
.dx .pcx-keep .r2 i{display:block;font-style:normal;color:var(--dx-faint)}
.dx .pcx-keep .w{grid-column:1/-1;margin-top:6px;padding-top:6px;border-top:1px solid var(--dx-line);
  font-size:10.5px;color:var(--dx-faint);
  /* The line carries a chip now - what this side is worth against the other - so it lays its
     two parts out rather than being one string. */
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px}
.dx .pcx-keep .w em{font-style:normal;flex:none}

/* ── stock ────────────────────────────────────────────────────────────────── */
.dx .pcx-stock{display:grid;grid-template-columns:repeat(auto-fit,minmax(152px,1fr));gap:1px;
  background:var(--dx-line);border:1px solid var(--dx-line);border-radius:12px;overflow:hidden}
.dx .pcx-sb{background:var(--dx-paper);padding:11px 13px;min-width:0}
.dx .pcx-sb.on{background:var(--dx-viw)}
.dx .pcx-sb.soon{background:var(--dx-soft)}
.dx .pcx-sb .t{font-size:9.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--dx-faint)}
.dx .pcx-sb .v{font-size:20px;font-weight:800;letter-spacing:-.02em;margin-top:2px;color:var(--dx-ink)}
.dx .pcx-sb.soon .v{color:var(--dx-faint);font-size:15px}
.dx .pcx-sb .d{font-size:10.5px;color:var(--dx-mut);margin-top:1px}

/* ── the tool buttons in the identity bar ─────────────────────────────────── */
.dx .pcx-tools{display:flex;gap:7px;flex-wrap:wrap}
.dx .pcx-tool{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;
  border:1px solid var(--dx-edge);border-radius:10px;font-size:12px;font-weight:600;
  background:var(--dx-paper);color:var(--dx-ink)}
.dx .pcx-tool:hover{border-color:var(--dx-vim);color:var(--dx-vi)}
.dx .pcx-tool[disabled]{opacity:.55;cursor:default}
.dx .pcx-tool[disabled]:hover{border-color:var(--dx-edge);color:var(--dx-ink)}
.dx .pcx-tool .k{font-size:10px;font-weight:500;color:var(--dx-faint)}

/* The band colours are the Listings table's, which are chosen against the light paper. On the
   dark paper the same two hexes are nearly the card itself, so each steps to its dark twin. */
html[data-theme="dark"] .dx .pcx-led .col.ven{--rail:#8F7BE0}
html[data-theme="dark"] .dx .pcx-led .col.sel{--rail:#6E5DB8}
html[data-theme="dark"] .dx .pcx-led .col.sel.acct-g4{--rail:#8F7BE0}
html[data-theme="dark"] .dx .pcx-led .col.sel.acct-juyi{--rail:#6E5DB8}

@media (max-width:980px){
  /* The source column is the first thing to give: the words wrap, the dot does not move. */
  .dx .pcx-led .pcx-lrow{grid-template-columns:minmax(0,1fr) auto 112px}
}
@media (max-width:900px){
  .dx .pcx-led{grid-template-columns:1fr}
}

/* ══════════════════ MATCHING THE MOCK-UP ══════════════════════════════════
 *
 * The structure went in first and the page was styled in the dashboard's own idiom. These are the
 * differences that actually read as "that is not the mock-up": the figure strip was five separate
 * cards where the mock-up has one joined strip, the identity bar did not stick, and the display
 * face was not used outside the figure tiles.
 *
 * Everything here is scoped to the product page (.pcx-page, .dx-pt-dfigs) so the explorer behind
 * it and the other three sub-tabs are untouched.
 */

/* ── the identity bar follows you down the page ───────────────────────────
 * The page is long now — nine sections — and the period control, the platform chips and the way
 * back were all at the top of it. Scrolled to the stock section you could not change the window
 * without going back up. */
/* z-index 6, NOT 20. The sidebar is position:fixed z-index:10 (style.css), and the collapsed
 * rail expands over the page on hover — at 20 this bar painted straight through the panel,
 * leaving the nav half-covered by the product header. 6 still beats the page's own sticky
 * table heads (1-2) and the chart's hit layer (5), which is all it ever had to beat. */
.dx .pcx-stick{position:sticky;top:0;z-index:6;background:var(--dx-ground);
  margin:0 -4px;padding:0 4px 2px}
.dx .pcx-stick::after{content:"";position:absolute;left:0;right:0;bottom:-10px;height:10px;
  background:linear-gradient(var(--dx-ground),transparent);pointer-events:none}

/* ── one joined strip, not five cards ─────────────────────────────────────
 * Five figures that add up to a sentence should look like one object. As separate cards with
 * 11px between them they read as five unrelated numbers that happen to be in a row. */
.dx .dx-figs.dx-pt-dfigs{grid-template-columns:repeat(auto-fit,minmax(176px,1fr));gap:1px;
  background:var(--dx-line);border:1px solid var(--dx-line);border-radius:13px;overflow:hidden}
.dx .dx-figs.dx-pt-dfigs>.dx-t{border:0;border-radius:0;box-shadow:none;background:var(--dx-paper)}
.dx .dx-figs.dx-pt-dfigs>.dx-t:first-child{background:var(--dx-viw)}
.dx .dx-figs.dx-pt-dfigs .dx-fig{min-height:0;padding:13px 15px 14px}
.dx .dx-figs.dx-pt-dfigs .dx-fig .dx-v{font-size:27px}

/* ── the display face on the new sections ─────────────────────────────────
 * Bricolage Grotesque is already loaded and already carries the figure tiles; the sections added
 * beside them were set in the body face, which is why they read as a different page. */
.dx .pcx-shead h2,.dx .pcx-adv h3,.dx .pcx-soon h3,.dx .pcx-led .hd b{
  font-family:'Bricolage Grotesque',system-ui,sans-serif}
.dx .pcx-adv .big,.dx .pcx-sb .v,.dx .pcx-lrow.tot .amt{
  font-family:'Bricolage Grotesque',system-ui,sans-serif;letter-spacing:-.02em}

/* ── the section rhythm ───────────────────────────────────────────────────
 * The mock-up gives every section the same air above it and hangs the heading clear of the card
 * rather than letting the two touch. */
.dx .pcx-page .pcx-sec{margin:22px 0}
.dx .pcx-page .pcx-sec:first-of-type{margin-top:14px}
.dx .pcx-shead{margin-bottom:10px}

/* The tiles inside a wrapped section already carry their own heading, so the section heading
   above them must not add a second frame's worth of space. */
.dx .pcx-sec>.dx-pt-split{margin-top:11px}

/* ══════════════════ THE TOP OF THE PAGE ═══════════════════════════════════
 *
 * It was three stacked boxes: a back link, a card holding the product, and a second card holding
 * the period control, the platform chips and the sentence about what the window covers. Three
 * borders and three drop shadows for one header, and the product sat as far from its own filters
 * as it did from the first section of the page.
 *
 * One card now, with a hairline between the identity and the controls, and the window sentence
 * as a quiet footer inside it rather than a fourth thing competing for attention.
 */
.dx .pcx-stick{padding-bottom:0}
.dx .pcx-stick>.dx-pt-backlink{margin:0 0 8px;font-size:12px}

/* the card the two halves live in */
.dx .pcx-stick .dx-pt-phead,
.dx .pcx-stick .dx-pt-bar{border:0;border-radius:0;box-shadow:none;margin:0;background:var(--dx-paper)}
.dx .pcx-stick .dx-pt-phead{padding:13px 16px 12px;border-radius:16px 16px 0 0;
  border:1px solid var(--dx-line);border-bottom:0;align-items:flex-start}
.dx .pcx-stick .dx-pt-bar{padding:10px 16px 11px;border-radius:0 0 16px 16px;
  border:1px solid var(--dx-line);border-top:0;
  /* the hairline between identity and controls, inset so it does not touch the card edge */
  background:linear-gradient(var(--dx-line),var(--dx-line)) no-repeat 16px 0/calc(100% - 32px) 1px,
    var(--dx-paper)}

/* ── the product, said once and said well ────────────────────────────────── */
.dx .pcx-stick .dx-pt-phead h1{font-family:'Bricolage Grotesque',system-ui,sans-serif;
  font-size:21px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.dx .pcx-stick .dx-pt-phead .dx-ddthumb{border-radius:11px;overflow:hidden;flex:none}

/* The codes were five bordered monospace boxes with the same weight as the product name. They
   are reference, not headline: one soft row, the label small and faint, the value in ink. */
.dx .pcx-stick .dx-name .dx-codes{gap:0 18px;margin-top:5px;align-items:baseline}
.dx .pcx-stick .dx-name .dx-code{background:none;border:0;padding:0;border-radius:0;
  font:500 12px/1.4 'Instrument Sans',system-ui,sans-serif;color:var(--dx-ink);
  font-variant-numeric:tabular-nums;gap:7px}
.dx .pcx-stick .dx-name .dx-code i{font-style:normal;font-size:9px;font-weight:700;
  letter-spacing:.09em;text-transform:uppercase;color:var(--dx-faint)}

/* ── the controls ────────────────────────────────────────────────────────── */
.dx .pcx-stick .dx-pt-bar .dx-seg{background:var(--dx-soft);border:1px solid var(--dx-line);
  border-radius:10px;padding:2px}
.dx .pcx-stick .dx-pt-bar .dx-seg button{border-radius:8px;padding:5px 11px;font-size:12px}
/* The divider between the period control and the platform chips was a full-height rule against
   a card edge that is no longer there. */
.dx .pcx-stick .dx-pt-rule{min-height:18px;margin:0 4px;background:var(--dx-line)}
.dx .pcx-stick .dx-pt-chip{border-radius:999px;padding:5px 12px;font-size:12px}

/* The window sentence is the smallest thing in the card, because it confirms rather than
   informs: it says what the figures below already say they cover. */
.dx .pcx-stick .dx-pt-scope{margin-top:9px;padding-top:8px;border-top:1px solid var(--dx-line);
  font-size:11px;color:var(--dx-faint)}
.dx .pcx-stick .dx-pt-scope b{color:var(--dx-mut);font-weight:600}

/* ── the tools ───────────────────────────────────────────────────────────── */
.dx .pcx-stick .pcx-tools{margin-left:auto;align-self:center}

/* ── the jump bar sits under the card, not inside it ─────────────────────── */
.dx .pcx-stick .pcx-jump{padding:9px 0 6px}

@media (max-width:760px){
  .dx .pcx-stick .pcx-tools{margin-left:0;width:100%}
  .dx .pcx-stick .dx-pt-phead h1{font-size:19px}
  .dx .pcx-stick .dx-name .dx-codes{gap:0 14px}
}

/* The chosen period was a solid black pill — the heaviest thing on a header whose job is to be
   quiet. It is a raised white one on the soft track instead, the way the segmented control in
   the mock-up reads, so the loudest thing in the card is the product name. Scoped to this
   header; the same control elsewhere in the dashboard keeps its own look. */
.dx .pcx-stick .dx-seg button[aria-pressed="true"]{
  background:var(--dx-paper);color:var(--dx-ink);
  box-shadow:0 1px 2px rgba(61,31,68,.14),0 0 0 1px var(--dx-line)}
html[data-theme="dark"] .dx .pcx-stick .dx-seg button[aria-pressed="true"]{
  box-shadow:0 1px 2px rgba(0,0,0,.4),0 0 0 1px var(--dx-edge)}

/* ── how long the stock lasts ─────────────────────────────────────────────
 * A row of stock figures does not answer the question the section is opened with. The meter
 * does, and it is deliberately labelled "channel cover": the only stock on this page is what the
 * marketplaces report, so the real figure is higher by whatever is on our own racks. */
.dx .pcx-cover{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-top:11px;
  font-size:11.5px;color:var(--dx-mut)}
.dx .pcx-cover .t{font-size:9.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--dx-faint);flex:none}
.dx .pcx-cover .meter{flex:1 1 200px;min-width:140px;height:8px;border-radius:99px;
  background:var(--dx-soft);border:1px solid var(--dx-line);overflow:hidden}
.dx .pcx-cover .meter i{display:block;height:100%;border-radius:99px;background:var(--dx-vim)}
.dx .pcx-cover .meter i.good{background:var(--dx-good)}
.dx .pcx-cover .meter i.att{background:var(--dx-att)}
.dx .pcx-cover .meter i.bad{background:var(--dx-bad)}
.dx .pcx-cover .v{font-weight:700;color:var(--dx-ink);font-variant-numeric:tabular-nums;flex:none}
.dx .pcx-cover .d{color:var(--dx-faint);flex:none}

/* ══════════════════ SALES & REVENUE ═══════════════════════════════════════
 * Five figures, one full-width chart, one full-width table of the channels. The chart used to
 * take two thirds of the row with a narrow channel card beside it that repeated three of the
 * five figures and had nowhere to say where any of them came from. */
.dx .pcx-cubes{display:grid;grid-template-columns:repeat(auto-fit,minmax(178px,1fr));gap:1px;
  background:var(--dx-line);border:1px solid var(--dx-line);border-radius:13px;overflow:hidden;
  margin-bottom:12px}
.dx .pcx-cube{background:var(--dx-paper);padding:13px 15px 14px;min-width:0}
.dx .pcx-cube.hi{background:var(--dx-viw)}
.dx .pcx-cube .t{font-size:9.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:var(--dx-faint)}
.dx .pcx-cube .v{font-family:'Bricolage Grotesque',system-ui,sans-serif;font-size:26px;
  font-weight:800;letter-spacing:-.025em;line-height:1.1;margin-top:2px;color:var(--dx-ink);
  font-variant-numeric:tabular-nums}
.dx .pcx-cube.good .v{color:var(--dx-good)}
.dx .pcx-cube.off .v{color:var(--dx-faint);font-size:19px}
.dx .pcx-cube .d{font-size:11px;color:var(--dx-mut);margin-top:3px}

/* the legend sits above the plot: it is needed to READ the chart, not a note about it */
.dx .dx-legend.pcx-leg{margin:0 0 6px;padding-top:2px}
.dx .dx-legend.pcx-leg .sp{margin-left:auto;color:var(--dx-faint)}

/* ── the channel table, on the master file's columns ─────────── */
/*
 * A REAL TABLE, not a CSS grid. Twenty-two columns in four switchable groups: hiding a group
 * is display:none on its cells, which a table reflows for free and a grid cannot without
 * recomputing grid-template-columns for every combination of the four.
 */
.dx .pcx-mfscroll{overflow-x:auto;overflow-y:hidden}
/*
 * FIRST, UNDO THE APP. This is a bare <table> inside stylesheets that style bare tables:
 * style.css paints every td with a translucent white and 14px of padding, polish.css
 * UPPERCASES every th and letter-spaces it, and both re-pad with !important inside media
 * queries at 1180, 820 and 430px. None of it was written for this table. The !important here
 * is answering theirs, not asserting a preference - the two rules below that want different
 * padding carry it too, for the same reason.
 */
.dx table.pcx-mf{border-collapse:separate;border-spacing:0;width:auto;min-width:100%;
  font-variant-numeric:tabular-nums;margin:0;border-radius:0;box-shadow:none;overflow:visible}
.dx table.pcx-mf th,.dx table.pcx-mf td{margin:0;padding:8px 9px!important;text-align:right;
  font-size:11.5px;font-weight:400;color:var(--dx-mut);white-space:nowrap;border:0;
  background:transparent;vertical-align:middle;text-transform:none;letter-spacing:normal;
  border-bottom:1px solid var(--dx-line)}

/*
 * WHO THE ROW IS STAYS PUT, AND SO DOES THE ANSWER. Losing your place sideways is the one
 * thing that makes a 22-column table unusable, and in the sheet's own column order the three
 * columns the table exists FOR are the three that fall off the right-hand end of it. The name
 * is pinned left; Profit Per Unit, Total Profit and Net Profit Margin % are pinned right at
 * fixed widths so their offsets can be exact.
 */
.dx table.pcx-mf th.nm,.dx table.pcx-mf td.nm{position:sticky;left:0;z-index:2;
  text-align:left;min-width:202px;
  background:var(--dx-paper);border-right:1px solid var(--dx-line);
  box-shadow:9px 0 9px -9px rgba(0,0,0,.28)}
.dx table.pcx-mf .s1,.dx table.pcx-mf .s2,.dx table.pcx-mf .s3{position:sticky;z-index:2;
  width:88px;min-width:88px;max-width:88px;background:var(--dx-paper)}
.dx table.pcx-mf .s1{right:0}
.dx table.pcx-mf .s2{right:88px}
/* a real shadow, not just a rule: a half-covered column under the pinned block has to read as
   "there is more behind this", the way a frozen pane does, not as a clipped number. */
.dx table.pcx-mf .s3{right:176px;
  box-shadow:inset 1px 0 0 var(--dx-edge),-9px 0 9px -9px rgba(0,0,0,.28)}
.dx table.pcx-mf tbody tr:hover .nm,.dx table.pcx-mf tbody tr:hover .s1,
.dx table.pcx-mf tbody tr:hover .s2,.dx table.pcx-mf tbody tr:hover .s3,
.dx table.pcx-mf tbody tr:hover td{background:var(--dx-soft)}

.dx table.pcx-mf tbody .nm{padding-block:7px!important}
.dx table.pcx-mf tbody .nm .dot{display:inline-block;width:8px;height:8px;border-radius:3px;
  vertical-align:top;margin:5px 7px 0 0}
.dx table.pcx-mf tbody .nm .t{display:inline-block;max-width:174px;vertical-align:top}
.dx table.pcx-mf tbody .nm b{display:block;font-size:12px;font-weight:700;color:var(--dx-ink);
  overflow:hidden;text-overflow:ellipsis}
.dx table.pcx-mf tbody .nm b u{text-decoration:none;background:var(--dx-viw);color:var(--dx-vim);
  border-radius:5px;padding:0 5px;font-size:10px;font-weight:800;letter-spacing:.02em}
.dx table.pcx-mf tbody .nm em{display:block;font-style:normal;font-size:9.5px;line-height:1.35;
  color:var(--dx-faint);overflow:hidden;text-overflow:ellipsis}

.dx table.pcx-mf thead .grp td{padding:0 9px 4px!important;border-bottom:0;text-align:left}
.dx table.pcx-mf thead .grp td span{display:inline-block;width:100%;font-size:9px;
  font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--dx-vim);
  border-bottom:2px solid var(--dx-vil);padding-bottom:3px}
.dx table.pcx-mf thead .hd th{font-size:9.5px;font-weight:700;letter-spacing:.045em;
  text-transform:uppercase;color:var(--dx-faint);vertical-align:bottom;cursor:help;
  border-bottom:1px solid var(--dx-edge);white-space:normal;min-width:74px;max-width:92px;
  line-height:1.25}
.dx table.pcx-mf thead .hd th.nm{cursor:default;white-space:nowrap}
.dx table.pcx-mf thead .grp td.nm,.dx table.pcx-mf thead .hd th.nm{z-index:3}
/* the PROFIT label rides with the columns it names */
.dx table.pcx-mf thead .grp td.g4{position:sticky;right:0;z-index:3;background:var(--dx-paper)}

.dx table.pcx-mf td.n[title]{cursor:help}
.dx table.pcx-mf td.u{color:var(--dx-ink)}
.dx table.pcx-mf td.in{font-weight:700;color:var(--dx-ink)}
.dx table.pcx-mf td.pu{font-weight:600;color:var(--dx-ink)}
.dx table.pcx-mf td.keep{font-weight:800;color:var(--dx-good)}
/* the two Spend columns are the product's WHOLE spend repeated on every row, so they are
   recessive: they are context for Total Advert Spend, not a figure for this row */
.dx table.pcx-mf td.rep{color:var(--dx-faint)}
.dx table.pcx-mf td.mfdash{color:var(--dx-faint);font-size:10.5px}
.dx table.pcx-mf .pg{text-align:left;font-size:10px;font-weight:700;letter-spacing:.03em;
  text-transform:uppercase;color:var(--dx-mut)}
.dx table.pcx-mf td.pg[title],.dx table.pcx-mf thead .hd th.pg{cursor:help}
/* Dim a sold-nothing row by COLOUR, never by opacity: a 60%-opaque sticky cell lets the row
   slide visibly underneath it, which reads as the sentence printed over the platform name. */
.dx table.pcx-mf tbody tr.off .nm b{color:var(--dx-mut);font-weight:600}
.dx table.pcx-mf tbody tr.off .nm .dot{opacity:.65}
.dx table.pcx-mf tbody tr.off .pg{color:var(--dx-faint)}
.dx table.pcx-mf td.none{text-align:left;font-size:11px;color:var(--dx-faint)}
.dx table.pcx-mf tbody tr.tot th,.dx table.pcx-mf tbody tr.tot td{
  border-top:2px solid var(--dx-edge);border-bottom:0;background:var(--dx-soft);padding-block:10px}
.dx table.pcx-mf tbody tr.tot .nm b{font-weight:800}
.dx table.pcx-mf tbody tr.tot .nm em{max-width:170px;white-space:normal}

.dx .pcx-mfbar{display:flex;flex-wrap:wrap;gap:5px;padding:9px 15px 0}
.dx .pcx-mfbar button{appearance:none;cursor:pointer;font:inherit;font-size:10px;font-weight:700;
  letter-spacing:.03em;padding:4px 9px;border-radius:999px;border:1px solid var(--dx-vil);
  background:var(--dx-viw);color:var(--dx-vim)}
.dx .pcx-mfbar button[aria-pressed="false"]{border-color:var(--dx-line);background:transparent;
  color:var(--dx-faint);text-decoration:line-through}
.dx table.pcx-mf.off-g1 .g1,.dx table.pcx-mf.off-g2 .g2,
.dx table.pcx-mf.off-g3 .g3,.dx table.pcx-mf.off-g4 .g4{display:none}
.dx .pcx-mfnote{margin:9px 15px 0;font-size:11px;line-height:1.5;color:var(--dx-faint)}
.dx .pcx-mfnote b{color:var(--dx-mut);font-weight:700}
.dx .pcx-cube.dx-pt-hv{cursor:help}

/* ══════════════════ ONE CARD ══════════════════════════════════════════════
 * The KPIs, the chart and the channel table are one object with three parts, not three cards
 * that happen to be stacked. Three borders and three shadows for one answer made the section
 * read as a list of unrelated panels. */
.dx .pcx-salescard{background:var(--dx-paper);border:1px solid var(--dx-line);border-radius:14px;
  overflow:hidden}
.dx .pcx-salescard .pcx-cubes{border:0;border-radius:0;margin:0;
  border-bottom:1px solid var(--dx-line)}
.dx .pcx-block + .pcx-block{border-top:1px solid var(--dx-line)}
.dx .pcx-blockhd{display:flex;align-items:center;gap:10px;padding:11px 15px 0}
.dx .pcx-blockhd .h{font-family:'Bricolage Grotesque',system-ui,sans-serif;font-size:13px;
  font-weight:800;letter-spacing:-.01em;color:var(--dx-ink)}
.dx .pcx-blockhd .k{font-size:11px;color:var(--dx-faint)}
.dx .pcx-blockhd .sp{flex:1}
.dx .pcx-blockbd{padding:8px 15px 13px}
.dx .pcx-salescard .dx-note{margin:8px 0 0}
.dx .pcx-salescard .dx-legend.pcx-leg{margin:2px 0 4px;padding:0}

/* the top gridline label was touching the legend above it */
.dx .pcx-salescard .dx-pt-ch{margin-top:7px}

/* ── stock per pack size ──────────────────────────────────────────────────
 * One row of totals hides the case the section exists to catch: a product whose 100pk is on the
 * racks and whose 30pk is all at MSD. Shown only when there is more than one pack with any. */
.dx .pcx-stockv{margin-top:11px;border:1px solid var(--dx-line);border-radius:11px;overflow:hidden}
.dx .pcx-svrow{display:grid;grid-template-columns:minmax(140px,1fr) 84px 84px 84px 84px;gap:10px;
  padding:7px 13px;font-size:11.5px;font-variant-numeric:tabular-nums;
  border-bottom:1px solid var(--dx-line)}
.dx .pcx-svrow:last-child{border-bottom:0}
.dx .pcx-svrow.head{background:var(--dx-soft);font-size:9.5px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--dx-faint)}
.dx .pcx-svrow .r{text-align:right}
.dx .pcx-svrow:not(.head):hover{background:var(--dx-soft)}
/* ── what Amazon holds, said underneath the buckets ───────────────────────
 * Unsellable and aged stock are NAMED and never added into the sellable figure, so they need
 * somewhere to be said. Recessive on purpose: they are a caveat on the cell above, not a figure
 * of their own. */
.dx .pcx-amz{margin:9px 0 0;font-size:11.5px;color:var(--dx-faint);line-height:1.5}

/* ── a section that is built, but has nothing to show ─────────────────────
 * "Not in any PO" is an ANSWER. It gets the weight of one: a plain line, not a dashed
 * coming-soon card, because the reader is being told something true rather than told to wait.
 * .bad is the other case — the read failed — and it is the only one that is coloured, because
 * it is the only one where the blank is ours rather than the data's. */
.dx .pcx-empty{margin:2px 0 0;padding:15px 17px;background:var(--dx-soft);
  border:1px solid var(--dx-line);border-radius:13px;font-size:12px;color:var(--dx-mut);
  line-height:1.55}
/* The HEADLINE only. The sub-line names a PO in bold too, and a blanket display:block
   broke "The last one was X on 12 Aug" across three lines. */
.dx .pcx-empty > b:first-child{display:block;font-family:'Bricolage Grotesque',system-ui,sans-serif;
  font-size:15px;font-weight:700;letter-spacing:-.01em;color:var(--dx-ink);margin-bottom:3px}
.dx .pcx-empty span{display:block;max-width:74ch}
.dx .pcx-empty span b{font-weight:600;color:var(--dx-ink)}
.dx .pcx-empty.bad{border-color:color-mix(in oklab,var(--dx-bad) 34%,var(--dx-edge));
  color:var(--dx-mut)}

/* ── the figure tiles above a table ──────────────────────────────────────
 * The same joined-cells idiom as the sales cubes, one step smaller: these head a table rather
 * than carry the page. */
.dx .pcx-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(156px,1fr));gap:1px;
  background:var(--dx-line);border:1px solid var(--dx-line);border-radius:13px;overflow:hidden;
  margin-bottom:13px}
.dx .pcx-tile{background:var(--dx-paper);padding:11px 14px 12px;min-width:0}
.dx .pcx-tile .t{display:block;font-size:9.5px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--dx-faint)}
.dx .pcx-tile b{display:block;font-family:'Bricolage Grotesque',system-ui,sans-serif;
  font-size:22px;font-weight:800;letter-spacing:-.025em;line-height:1.15;margin-top:2px;
  color:var(--dx-ink);font-variant-numeric:tabular-nums}
.dx .pcx-tile .s{display:block;font-size:10.5px;color:var(--dx-mut);margin-top:3px}
.dx .pcx-tile.good b{color:var(--dx-good)}
.dx .pcx-tile.att b{color:var(--dx-att)}
.dx .pcx-tile.bad b{color:var(--dx-bad)}

/* ── a group of rows, with its own heading ───────────────────────────────
 * Unanswered POs and answered ones are two different things to do, so they are two groups
 * rather than one list with a state column people have to scan. */
.dx .pcx-pogroup{margin-top:14px}
.dx .pcx-pogroup:first-child{margin-top:0}
.dx .pcx-pogroup h4{margin:0 0 7px;font-size:9.5px;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:var(--dx-faint)}
.dx .pcx-pogroup .dx-note{margin:0 0 8px}

/* ── Amazon's purchase orders ────────────────────────────────────────────
 * Ten columns, and every number column is right-aligned and tabular so refused-against-asked
 * can be read down the page rather than compared across a row. */
.dx .pcx-potab,.dx .pcx-shtab{border:1px solid var(--dx-line);border-radius:12px;overflow:hidden}
.dx .pcx-porow{display:grid;
  grid-template-columns:minmax(164px,.7fr) minmax(74px,.3fr) minmax(74px,.3fr) minmax(108px,.4fr)
    70px 66px 98px 92px 80px minmax(96px,.3fr);
  gap:10px;align-items:center;padding:9px 14px;border-bottom:1px solid var(--dx-line);
  font-size:12px;font-variant-numeric:tabular-nums}
.dx .pcx-porow:last-child{border-bottom:0}
.dx .pcx-porow.head{background:var(--dx-soft);font-size:9.5px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--dx-faint);padding:8px 14px}
.dx .pcx-porow .r{text-align:right}
.dx .pcx-porow:not(.head):hover{background:var(--dx-soft)}
.dx .pcx-porow .po{display:flex;align-items:center;gap:7px;min-width:0;font-weight:600;
  color:var(--dx-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dx .pcx-porow .r.bad{color:var(--dx-bad);font-weight:600}
.dx .pcx-porow .r i{display:block;font-style:normal;font-size:10px;color:var(--dx-faint);
  font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* A figure Amazon has never sent. Marked, and deliberately not a number: "we were not told" and
   "Amazon received none" are different facts, and only one of them is a claim. */
.dx .pcx-porow .pcx-unk{display:inline;font-style:italic;font-size:10.5px;color:var(--dx-faint);
  border-bottom:1px dotted var(--dx-edge);cursor:help}
/* The state chip. Not answered is the only one that asks for anything. */
.dx .pcx-porow .st{font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  color:var(--dx-mut)}
.dx .pcx-porow .st.open{color:var(--dx-att)}
.dx .pcx-porow .st.cancelled{color:var(--dx-faint);text-decoration:line-through}
.dx .pcx-porow.open{background:color-mix(in oklab,var(--dx-att) 7%,var(--dx-paper))}
.dx .pcx-porow.open:hover{background:color-mix(in oklab,var(--dx-att) 12%,var(--dx-paper))}
/* The pack size, on a product that has more than one. */
.dx .pcx-pack{font-style:normal;font-size:9.5px;font-weight:700;letter-spacing:.04em;
  padding:1px 6px;border-radius:99px;background:var(--dx-soft);color:var(--dx-mut);flex:none}

/* ── containers and local shipments ──────────────────────────────────────
 * One table shape for both, with a chip saying which: the question is the same either way, and
 * what differs is how it travelled. */
.dx .pcx-shrow{display:grid;
  grid-template-columns:minmax(180px,.9fr) minmax(130px,.5fr) minmax(104px,.4fr) 90px 160px;
  gap:10px;align-items:center;padding:9px 14px;border-bottom:1px solid var(--dx-line);
  font-size:12px;font-variant-numeric:tabular-nums}
.dx .pcx-shrow:last-child{border-bottom:0}
.dx .pcx-shrow.head{background:var(--dx-soft);font-size:9.5px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--dx-faint);padding:8px 14px}
.dx .pcx-shrow .r{text-align:right}
.dx .pcx-shrow:not(.head):hover{background:var(--dx-soft)}
.dx .pcx-shrow .ref{display:flex;align-items:center;gap:8px;min-width:0;font-weight:600;
  color:var(--dx-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dx .pcx-shrow .r i{display:block;font-style:normal;font-size:10px;color:var(--dx-faint);
  font-weight:400;line-height:1.3}
.dx .pcx-kind{font-style:normal;font-size:9px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;padding:2px 7px;border-radius:99px;flex:none;
  background:var(--dx-soft);color:var(--dx-mut)}
.dx .pcx-kind.container{background:var(--dx-viw);color:var(--dx-vim)}
/* Landed loads have no loading date, so they get four columns rather than a blank fifth. */
.dx .pcx-shtab.landed .pcx-shrow{
  grid-template-columns:minmax(180px,1fr) minmax(130px,.5fr) 90px 160px}

@media (max-width:1180px){
  .dx .pcx-potab,.dx .pcx-shtab{overflow-x:auto}
  .dx .pcx-porow{grid-template-columns:minmax(132px,.7fr) 64px 64px 92px 58px 56px 84px 80px 70px 86px;
    font-size:11.5px;gap:8px}
  .dx .pcx-shrow{grid-template-columns:minmax(140px,.9fr) 124px 96px 76px 134px;font-size:11.5px;gap:8px}
  .dx .pcx-shtab.landed .pcx-shrow{grid-template-columns:minmax(140px,1fr) 124px 76px 134px}
}

/* ── Amazon POs: the history panel’s table, one column wider ──────────────
 * .dx-vhist / .dx-vh / .dx-vbar are defined in dashboardTabs.css and reused as they are. The
 * overrides here are the RECEIVED column, the pack chip, and a page-width row instead of the
 * modal’s. Two looks for one question is the thing this avoids. */
.dx .dx-vhist.pcx-po{border:1px solid var(--dx-line);border-radius:12px;overflow-x:auto}
.dx .dx-vhist.pcx-po .dx-vh{
  grid-template-columns:minmax(190px,1.1fr) 76px minmax(150px,1.5fr) 86px 86px 100px 92px 70px 104px;
  gap:12px;padding:9px 14px;min-width:1040px}
.dx .dx-vhist.pcx-po .dx-vh:last-child{border-bottom:0}
.dx .dx-vhist.pcx-po .dx-vh.head{background:var(--dx-soft);padding:8px 14px}
.dx .dx-vhist.pcx-po .dx-vh:not(.head):hover{background:var(--dx-soft)}
/* NO TINT ON AN UNANSWERED ROW. The grey bar and the key already say it, which is how the
   Vendor PO history panel says it; a second signal for the same fact is a second thing to
   learn. The bar is outlined so a bar that is ALL grey still reads as a bar rather than as an
   empty cell — the same border the legend swatch beside it carries. */
.dx .dx-vhist.pcx-po .dx-vh.open .dx-vbar>span{box-shadow:inset 0 0 0 1px var(--dx-edge)}
.dx .dx-vhist.pcx-po .po{display:flex;align-items:baseline;gap:8px;min-width:0}
.dx .dx-vhist.pcx-po .po b{font-weight:600;color:var(--dx-ink);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
/* The reject code under the count, and the "not told" marker: both are captions on the figure
   beside them, never figures of their own. */
.dx .dx-vhist.pcx-po .pcx-rc{display:block;font-style:normal;font-size:10px;font-weight:400;
  color:var(--dx-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* An unconfirmed PO in the bar column. Set in the bar’s own row height so the column keeps
   its rhythm, and in the attention colour because it is the one row that asks for something. */
.dx .dx-vhist.pcx-po .pcx-await{display:inline-flex;align-items:center;min-height:10px;
  font-size:11px;font-weight:600;color:var(--dx-att);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis}
.dx .dx-vhist.pcx-po .pcx-unk{font-style:italic;font-size:10.5px;color:var(--dx-faint);
  border-bottom:1px dotted var(--dx-edge);cursor:help}
/* The tiles are the panel’s, spread across the page rather than packed into a modal. */
.dx .dx-kv.pcx-pokv{grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:10px;
  margin-bottom:11px}
.dx .dx-kv.pcx-pokv .dx-kvi{padding:11px 14px}
.dx .dx-kv.pcx-pokv .dx-kvi b{font-size:22px;font-weight:800;letter-spacing:-.025em}
.dx .dx-legend.pcx-poleg{margin:0 0 11px;align-items:center}
/* The gap between requested and accepted+rejected, said on the key line rather than given a
   tile of its own — it is a caveat on the three figures above, not a fourth figure. */
.dx .dx-legend.pcx-poleg .pcx-wait{margin-left:auto;color:var(--dx-att);font-weight:600}
@media (max-width:1180px){
  .dx .dx-vhist.pcx-po .dx-vh{gap:10px;font-size:12px}
}
