/* Generated by brand/scripts/build-components.mjs from brand/components/. Do not edit. Load public/tokens/tokens.css first. */

/* «Vence» (N5 of nuevauno/nu#341): a date that expires drawn as the days left, so what is about to expire is seen before it is
   read. The bar's fill (nu-due__fill) takes the share of the period left as its width, set by the consumer; --soon turns it
   orange and --late red. The days go beside it in figures. */
.nu-due {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--nu-space-4) var(--nu-space-8);
  min-width: 0;
}

.nu-due__track {
  position: relative;
  grid-column: 1 / -1;
  height: var(--nu-space-6);
  background-image: radial-gradient(circle, var(--nu-color-border) 34%, transparent 36%);
  background-size: var(--nu-space-6) var(--nu-space-6);
}

.nu-due__fill {
  position: absolute;
  inset: 0 auto 0 0;
  max-width: 100%;
  background: var(--nu-color-success);
  transition: width var(--nu-motion-count) var(--nu-motion-ease-out);
}

.nu-due__label {
  min-width: 0;
  overflow: hidden;
  color: var(--nu-color-ink);
  font-size: var(--nu-size-small);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nu-due__days {
  color: var(--nu-color-success);
  font-family: var(--nu-font-family-mono);
  font-size: var(--nu-size-caption);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nu-due--soon .nu-due__fill {
  background: var(--nu-color-warning);
}

.nu-due--soon .nu-due__days {
  color: var(--nu-color-warning);
}

.nu-due--late .nu-due__fill {
  width: 100%;
  background: var(--nu-color-error);
}

.nu-due--late .nu-due__days {
  color: var(--nu-color-error);
}

@media (prefers-reduced-motion: reduce) {
  .nu-due__fill {
    transition: none;
  }
}
