/* carvel page — the report status badge on a crew card. */

.node-report {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  margin-top: -0.125rem;
  font-size: var(--fs-9, 0.5625rem);
  font-weight: 700;
  letter-spacing: var(--track, 0.04em);
  text-transform: var(--caps, uppercase);
}

/* In the card the badge starts under the crew name, like the branch and
   blocker lines: at the node's padding and mark. */
html[data-skin="jolly"] .node-report {
  justify-content: flex-start;
  padding-left: 1.875rem;
}

@media (min-width: 701px) and (max-width: 900px) {
  html[data-skin="jolly"] .node-report { justify-content: center; padding-left: 0; }
}
.node-report-status {
  flex: none;
  padding: 0 0.3125rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  line-height: 1.3;
}
.node-report-status.done { color: var(--gold-ink); }
.node-report-status.blocked { color: var(--attn); }
.node-report-status.partial { color: var(--bone-2); }
.node-report-status.none { color: var(--bone-3); }
.node-report-reason {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--bone-3);
}

.node-check {
  flex: none;
  padding: 0 0.3125rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  line-height: 1.3;
  font-size: var(--fs-9, 0.5625rem);
  font-weight: 700;
  letter-spacing: var(--track, 0.04em);
  text-transform: var(--caps, uppercase);
}
.node-check.pass { color: var(--gold-ink); }
.node-check.fail { color: var(--attn); }
.node-check.checking,
.node-check.queued { color: var(--bone-2); }
.node-check.no-check { color: var(--bone-3); }
.node-check.stale { color: var(--attn); }

/* On a crew card the chip sits on a later row than the crew name, so the
   name is never cut short to make room for the chip. The report row keeps
   its own order: there the chip leads the buttons. */
.node > .node-check { order: 5; }

/* The waiting-on-job chip takes a row of its own, under the crew name, so a
   long name is never cut short to leave room for the waiting words. */
.node > .node-jobs {
  flex-basis: 100%;
  order: 4;
  margin-left: 0;
  text-align: center;
  overflow-wrap: anywhere;
}
