/* ── Gantt Chart ── */
.cti-gantt-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: relative;
}
.cti-gantt-table {
  display: grid;
  grid-template-columns: 160px repeat(40, minmax(28px, 1fr));
  min-width: 1300px;
}
.cti-gantt-header-name {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #1E293B;
  color: #94A3B8;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid #334155;
}
.cti-gantt-header-cell {
  background: #1E293B;
  color: #94A3B8;
  padding: 6px 2px;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  border-bottom: 1px solid #334155;
  border-left: 1px solid #334155;
}
.cti-gantt-header-cell.hour-start { border-left: 1px solid #475569; }
.cti-gantt-row-name {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1E3A5F;
  border-bottom: 1px solid #F3F4F6;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.cti-gantt-row-cell {
  position: relative;
  border-bottom: 1px solid #F3F4F6;
  border-left: 1px solid #F9FAFB;
  min-height: 40px;
}
.cti-gantt-row-cell.hour-start { border-left: 1px solid #E5E7EB; }
.cti-gantt-bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  z-index: 1;
  cursor: default;
}
.cti-gantt-bar.status-before { background: #CBD5E1; color: #475569; }
.cti-gantt-bar.status-active { background: #3B82F6; }
.cti-gantt-bar.status-ended  { background: #94A3B8; }
.cti-gantt-now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #DC2626;
  z-index: 4;
  pointer-events: none;
}
.cti-gantt-now::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 8px;
  height: 8px;
  background: #DC2626;
  border-radius: 50%;
}
.cti-gantt-empty {
  text-align: center;
  color: #9CA3AF;
  font-size: 14px;
  padding: 40px 20px;
}

/* ガントビュー時はコンテナを全幅に */
.cti-staff-container.wide { max-width: 100%; padding: 20px 12px; }
