.btn-icon {
    --size: 28px;
    width: var(--size);
    height: var(--size);
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-icon i {
    font-size: 14px;
}

.project-block {
    overflow: hidden;
}

.project-header {
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-title-wrap {
  max-width: 75%;
  min-width: 0;
}

.project-footer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.project-footer-actions .btn-delete-side {
  margin-left: auto;
}

.btn-delete-side i {
    font-size: 18px;
}

.btn-delete-side:hover {
    background-color: #dc3545;
    /* при наведении красная заливка */
    color: #fff;
    /* крестик становится белым */
    border-color: #dc3545;
}

/* базовый стиль */
.status-badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: 0.375rem;
  background-color: var(--bs-secondary);
  color: #fff;
}

/* черновики */
.status-badge.draft,
.status-badge.draft\.pending {
  background-color: var(--bs-secondary);
}

/* активные стадии */
.status-badge.active,
.status-badge.active\.enquiries,
.status-badge.active\.tendering,
.status-badge.active\.pre-qualification,
.status-badge.active\.pre-qualification\.stand-still,
.status-badge.active\.auction,
.status-badge.active\.qualification,
.status-badge.active\.qualification\.stand-still,
.status-badge.active\.awarded {
  background-color: var(--bs-primary);
}

/* завершено */
.status-badge.complete {
  background-color: var(--bs-success);
}

/* торги не состоялись */
.status-badge.unsuccessful {
  background-color: var(--bs-warning);
  color: #000; /* на жёлтом белый текст плохо читается */
}

/* отменено */
.status-badge.cancelled {
  background-color: var(--bs-danger);
}



.buyer-name {
  display: block;
  margin-top: .25rem;
  white-space: normal;
  overflow-wrap: anywhere;  /* лупит перенос даже в очень длинных словах */
  word-break: break-word;   /* подстраховка для старых браузеров */
  color: #495057;           /* можно убрать, если уже стилится */
}

/* компактный бейдж суммы справа */
.amount-badge {
  font-size: .85rem;
  padding: .35em .6em;
  line-height: 1;
  border-radius: .5rem;
}


.timeline {
  position: relative;
  padding-left: 1.25rem;
  margin: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--bs-border-color);
}
.timeline-item {
  position: relative;
  margin: 0 0 0.75rem 0;
  padding-left: 0.75rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.125rem;
  top: 0.35rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--bs-primary);
  box-shadow: 0 0 0 3px var(--bs-body-bg);
}
.timeline-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 0.75rem 0.5rem;
  background: var(--bs-body-bg);
}
.timeline-type {
  word-break: break-word;
}


@media (max-width: 576px) {
  .project-header {
    align-items: flex-start;
  }

  .project-header .amount-badge {
    margin-left: auto;
    max-width: 100%;
    text-align: right;
    white-space: normal;
  }

  .project-title-wrap {
    max-width: 100%;
  }
}

.event-card {
  border: 1px solid #e0e0e0;
  border-left: 4px solid #0d6efd;
  border-radius: 0.5rem;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.event-card .event-text {
  word-break: break-word;
}

.event-type {
  font-size: 1rem; /* чуть крупнее обычного текста */
}
.event-path {
  font-size: 0.85rem;
}
