/* Stacked mapping coverage bar: one segment per Product::MappingCoverage bucket, each as wide as its share.
   Sized like Bulma's small progress bar and colored from its tokens: mapped products are done, so they recede
   to the border tone; the remaining work darkens in the text grey, most where a product has no MPC at all. */
.coverage-bar {
  display: flex;
  gap: 2px;
  height: 0.75rem;
  border-radius: 2px;
  overflow: hidden;
}
.coverage-segment { display: block; }
.coverage-segment:hover { filter: brightness(0.9); }

.coverage-mapped { background: var(--bulma-border-weak); }
.coverage-missing-mtl { background: color-mix(in srgb, var(--bulma-text) 36%, transparent); }
.coverage-missing-mpc { background: color-mix(in srgb, var(--bulma-text) 60%, transparent); }

.coverage-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  vertical-align: middle;
}
.coverage-bar-column { width: 70%; }

/* Active accounts as a dot that heats from yellow to red by band (MappingCoveragesHelper::ACCOUNT_BANDS); no accounts is an outline.
   Round, so it reads as a marker rather than a length beside the coverage bar. */
.account-chip {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--account-shade);
}
.account-band-0 { --account-shade: transparent; outline: 1px solid var(--bulma-border); }
.account-band-1 { --account-shade: #fed976; }
.account-band-2 { --account-shade: #feb24c; }
.account-band-3 { --account-shade: #fd8d3c; }
.account-band-4 { --account-shade: #f03b20; }
.account-band-5 { --account-shade: #bd0026; }

/* The dashboard's columns hold their widths when its toggles change the numbers; long websites truncate. */
.coverage-table { table-layout: fixed; }
.coverage-website-col { width: 24%; }
.coverage-accounts-col { width: 7%; }
.coverage-products-col { width: 8%; }
.coverage-bar-col { width: 43%; }
.coverage-count-col { width: 9%; }
.coverage-website {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
