/* ===== Milestones Timeline ===== */
.ms-timeline {
  margin-top: 20px;
}

.ms-timeline-line {
  position: relative;
  padding: 20px 0;
}

/* Vertical center line */
.ms-timeline-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.08);
  transform: translateX(-50%);
}

/* Timeline item */
.ms-tl-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  width: 100%;
}

.ms-tl-item:last-child { margin-bottom: 0; }

/* Dot */
.ms-tl-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 3px solid rgba(15,15,25,1);
}

.ms-tl-dot.dot-gray  { background: #6b7280; box-shadow: 0 0 0 4px rgba(107,114,128,.2); }
.ms-tl-dot.dot-blue  { background: #60a5fa; box-shadow: 0 0 0 4px rgba(96,165,250,.2); }
.ms-tl-dot.dot-green { background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.ms-tl-dot.dot-red   { background: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.2); }

/* Card positioning */
.ms-tl-card {
  width: calc(50% - 40px);
  padding: 16px 20px !important;
  margin: 0 !important;
}

.ms-tl-left .ms-tl-card {
  margin-right: auto !important;
  margin-left: 0 !important;
}

.ms-tl-right .ms-tl-card {
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Card content */
.ms-tl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ms-tl-card-title {
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
}

.ms-tl-card-project {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  margin-bottom: 8px;
}

.ms-tl-card-project i {
  margin-right: 4px;
  font-size: .65rem;
}

.ms-tl-card-desc {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
  margin-bottom: 10px;
}

.ms-tl-card-date {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
}

.ms-tl-card-date i {
  margin-right: 4px;
  font-size: .65rem;
}

/* Connector lines from dot to card */
.ms-tl-left::after,
.ms-tl-right::after {
  content: '';
  position: absolute;
  top: 26px;
  height: 2px;
  background: rgba(255,255,255,.08);
}

.ms-tl-left::after {
  left: calc(50% + 7px);
  right: calc(50% - 40px + 20px);
  width: 20px;
}

.ms-tl-right::after {
  right: calc(50% + 7px);
  width: 20px;
}

/* Summary table small buttons */
.btn-sm {
  padding: 4px 8px !important;
  font-size: .7rem !important;
  min-width: auto !important;
}

.e-table td strong {
  color: rgba(255,255,255,.9);
  font-weight: 600;
}

/* Card title section */
.e-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.e-card-title {
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin: 0;
}

.e-card-title i {
  margin-right: 6px;
  opacity: .6;
}

/* Responsive */
@media (max-width: 900px) {
  .ms-timeline-line::before {
    left: 20px;
  }

  .ms-tl-item {
    flex-direction: column;
    padding-left: 48px;
  }

  .ms-tl-dot {
    left: 20px;
  }

  .ms-tl-card {
    width: 100%;
  }

  .ms-tl-left .ms-tl-card,
  .ms-tl-right .ms-tl-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .ms-tl-left::after,
  .ms-tl-right::after {
    display: none;
  }
}
