/* gantt.css -- Gantt chart: container, header, rows, bars, member headers, grid lines */

.gantt-container {
  overflow-x: auto;
}
.gantt-header {
  display: flex;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
  padding-bottom: 4px;
}
.gantt-label-col {
  width: 220px;
  flex-shrink: 0;
}
.gantt-week {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 0;
  color: var(--text-muted);
}
.gantt-week.current {
  color: var(--brand-primary);
  background: var(--info-bg);
  border-radius: 6px;
}
.gantt-week small {
  font-weight: 400;
  font-size: 9px;
  display: block;
  margin-top: 1px;
}
.gantt-row {
  display: flex;
  align-items: center;
  height: 30px;
}
.gantt-row-label {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 10px;
}
.gantt-row-label .tid {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  min-width: 26px;
}
.gantt-row-label .tname {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gantt-bars {
  flex: 1;
  position: relative;
  height: 20px;
}
.gantt-grid-line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--border);
  opacity: 0.5;
}
.gantt-bar {
  position: absolute;
  top: 3px;
  height: 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gantt-bar:hover {
  opacity: 1 !important;
  transform: scaleY(1.3);
}
.gantt-bar.done {
  opacity: 0.8;
}
.gantt-bar.done::after {
  content: '\2713';
  color: #fff;
  font-size: 9px;
}
.gantt-member-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 2px;
}
.gantt-member-avatar {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  font-weight: 700;
}
