.timeline-view {
  display: grid;
  gap: 16px;
  max-height: none;
  min-height: auto;
  overflow: visible;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafb 0%, #f4f7f6 100%);
  animation: viewContentIn 0.18s ease-out;
}

.timeline-day {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.timeline-date {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.timeline-date strong {
  min-width: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.timeline-date span,
.timeline-date small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.timeline-items {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(0, auto);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.timeline-item.completed {
  border-left-color: var(--green);
  background: #fff;
}

.timeline-item.cancelled,
.timeline-item.missed,
.timeline-item.leave {
  border-left-color: var(--amber);
  background: #fff;
}

.timeline-item.conflict {
  border-left-color: var(--red);
  background: #fff;
}

.timeline-item.time-block {
  border-left-color: #991b1b;
  background: #fff1f2;
}

.timeline-time {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--muted);
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.timeline-time strong {
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.timeline-time span {
  font-size: 14px;
}

.timeline-body {
  min-width: 0;
}

.timeline-body header {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  gap: 8px;
  align-items: center;
  justify-content: start;
}

.timeline-body strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.timeline-body p {
  margin: 5px 0 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.status-badge {
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.status-badge.completed {
  background: var(--green);
}

.status-badge.missed {
  background: var(--red);
}

.status-badge.cancelled,
.status-badge.leave {
  background: var(--amber);
}

.status-badge.conflict {
  background: var(--red);
}

.status-badge.time-block {
  background: #991b1b;
}

.timeline-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(36px, max-content));
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}
