/* Project-specific styles. Everything else comes from Tabler. */

/* A playing card, at the proportions of a real one. */
/* The unit label sets the width: "HEURES" has to fit without being clipped. */
.estimation-card {
  width: 5rem;
  padding: 0.25rem;
  aspect-ratio: 5 / 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.estimation-card:hover {
  transform: translateY(-3px);
}

.estimation-card.is-played {
  transform: translateY(-6px);
}

.estimation-card__value {
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.estimation-card__unit {
  font-size: 0.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Markers above one day: dashed, because they are not an estimate. */
.estimation-card--marker {
  border-style: dashed;
}

/* Face-down card, before the reveal. */
.estimation-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  font-variant-numeric: tabular-nums;
}

.numeric {
  font-variant-numeric: tabular-nums;
}

/* The quote's receipt (receipt.html): a till's paper, in its monospaced type. */
.estimation-receipt {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
  background: #fffdf7;
  color: #2b2621;
  border-style: dashed;
  resize: vertical;
}

/* The post-its of the line on the table (quote_round/partials/list_notes.html), on the classic screen. */
.assumption-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.assumption-note {
  position: relative;
  width: 11rem;
  min-height: 7rem;
  padding: 0.6rem 0.7rem 2.4rem;
  background: #fff3a6;
  color: #3a3222;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.assumption-note--accepted {
  background: #e6f6c9;
}

.assumption-note__text {
  margin: 0 0 0.35rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.assumption-note__author {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.75;
}

.assumption-note__actions {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  gap: 0.35rem;
}

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