/* Top selling categories (owner, 2026-11-06): ranked categories, each opening to its pieces sold by weight band. One
   magnitude, one hue: the band that sells the most in amber with a "Sells most" tag, the rest gray. */
.category-row { border-top:1px solid #303036; }
/* The panel's details arrow (sales-performance-report.css) is the first column. */
.category-row > summary { display:grid; grid-template-columns:12px 24px minmax(0,1fr) 150px 170px; gap:16px; align-items:center;
  padding:18px 0; cursor:pointer; list-style:none; }
.performance-panel .category-row > summary::before { margin:0; }
.category-row > summary::-webkit-details-marker { display:none; }
.category-row > summary > * { min-width:0; overflow-wrap:anywhere; }
.category-row > summary:focus-visible { outline:2px solid #fbbf24; outline-offset:2px; border-radius:8px; }
.category-rank { color:#fbbf24; font-weight:700; }
.category-name { font-weight:600; font-size:15px; }
.category-stat { text-align:end; }
.category-stat-label { display:block; font-size:12px; color:#9ca3af; }
.category-stat strong { font-size:16px; }
.category-bands { padding:4px 0 22px; }
.category-band { display:grid; grid-template-columns:170px minmax(60px,1fr) 150px 130px; gap:14px; align-items:center;
  padding:8px 0; font-size:13px; }
.category-band > * { min-width:0; overflow-wrap:anywhere; }
.category-band-head { color:#9ca3af; font-size:12px; padding-bottom:4px; }
.category-band-head span:nth-child(3), .category-band-head span:nth-child(4),
.category-band-count, .category-band-sales { text-align:end; font-variant-numeric:tabular-nums; }
.category-bar { display:block; height:8px; }
.category-bar > span { display:block; height:8px; border-radius:0 4px 4px 0; background:#71717a; }
[dir=rtl] .category-bar > span { border-radius:4px 0 0 4px; }
.category-band.is-top .category-bar > span { background:#fbbf24; }
.category-band.is-top .category-band-count { color:#fff; font-weight:600; }
.category-top-tag { display:inline-block; margin-inline-start:6px; padding:1px 7px; border-radius:4px; font-size:11px;
  color:#fde68a; background:#3a2f12; }
@media (max-width:760px) {
  .category-row > summary { grid-template-columns:12px 20px minmax(0,1fr) minmax(0,1fr); gap:8px 12px; }
  .category-name { grid-column:3/5; }
  .category-stat { text-align:start; grid-row:2; align-self:start; }
  .category-row > summary .category-stat:nth-of-type(3) { grid-column:3; }
  .category-row > summary .category-stat:nth-of-type(4) { grid-column:4; }
  .category-band { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:4px 12px; padding:10px 0; border-top:1px solid #27272a; }
  .category-band-head { display:none; }
  .category-band-label { grid-column:1; }
  .category-band-count { grid-column:2; }
  .category-bar { grid-column:1/3; grid-row:2; }
  .category-band-sales { grid-column:1/3; text-align:start; color:#9ca3af; }
}
