/* timeline.css — Vue planning par journée */

.tl-wrapper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tl-col {
  flex: 1;
  min-width: 280px;
}

.tl-day-header {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--primary);
  padding: 6px 0 10px 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.tl-day {
  position: relative;
  padding-left: 40px;
}

.tl-time-label {
  position: absolute;
  left: 0;
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1;
  transform: translateY(-50%);
  width: 36px;
  text-align: right;
}

.tl-rule {
  position: absolute;
  left: 40px;
  right: 0;
  height: 1px;
  background: var(--border);
  opacity: 0.5;
}

.tl-block {
  position: absolute;
  background: #252550;
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 5px 8px;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.15s;
  cursor: default;
}

.tl-block:hover { border-color: var(--primary-h); }

.tl-block.conflict {
  border-color: var(--danger);
  background: #2a1515;
}

.tl-block-time {
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.tl-block-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tl-block-title a { color: var(--text); }
.tl-block-title a:hover { color: var(--primary); }

.tl-block-room {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  padding: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}

.tl-block:hover .tl-remove { opacity: 1; }
.tl-remove:hover { color: var(--danger); }
