.gantt {
  --gantt-label: 220px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.gantt-print-head { display: none; }
.gantt-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.gantt-zoom {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #f3f3f5;
  border-radius: 999px;
  padding: 2px;
}
.gantt-zoom b {
  min-width: 76px;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
}
.gantt-hint { color: var(--muted); font-size: 12px; }
.gantt-tools .spacer { flex: 1; }
.gantt-edit {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 10px;
  align-items: end;
  padding: 12px 14px 14px;
  background: #f7f7f9;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.gantt-edit h4 { display: none; }
.gantt-edit label, .gantt-edit .only-phase {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.gantt-edit .title-field { flex: 0 0 264px; width: 264px; min-width: 200px; }
.gantt-edit .title-field input { width: 100%; }
.gantt-edit label.only-bar { flex: 0 0 auto; }
.gantt-edit label.only-bar input[type="date"] { width: 132px; }
.gantt-edit label.only-bar select { width: 120px; }
.gantt-edit label.only-bar input[name="progress"] { width: 64px; }
.gantt-edit input:not([type="checkbox"]), .gantt-edit select {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}
.gantt-edit.is-phase .only-bar { display: none; }
.gantt-edit.is-bar .only-phase { display: none; }
.gantt-swatches { display: flex; gap: 6px; }
.gantt-swatches button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d0d0d4;
  padding: 0;
  cursor: pointer;
}
.gantt-swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
.gantt-edit .preds-field {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: end;
  justify-items: start;
}
.gantt-edit .preds-field > span { font-size: 12px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.gantt-after {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gantt-after.on { background: #2f6fed; border-color: #2f6fed; }
.gantt-after.on::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -2px);
}
.gantt-pred-pop {
  position: fixed;
  z-index: 40;
  width: min(280px, calc(100vw - 16px));
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  padding: 8px;
}
.gantt-pred-pop .muted { display: block; padding: 8px; font-size: 13px; }
.gantt-edit .gantt-pred {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 0;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
  border-radius: 8px;
}
.gantt-edit .gantt-pred:hover { background: #f4f4f6; }
.gantt-edit .gantt-pred span { white-space: nowrap; }
.gantt-edit .gantt-pred input {
  all: unset;
  box-sizing: border-box;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 16px !important;
  accent-color: #2f6fed;
  appearance: auto;
  -webkit-appearance: checkbox;
  display: inline-block;
}
.gantt-edit-actions { display: flex; gap: 6px; align-items: center; flex: none; padding-bottom: 1px; }
.gantt-scroll { overflow-x: auto; overflow-y: hidden; }
.gantt-fit { min-width: 100%; }
.gantt-sheet { position: relative; min-height: 92px; }
.gantt-head, .gantt-row { display: flex; position: relative; }
.gantt-head { height: 52px; background: transparent; z-index: auto; }
.gantt-row { height: 40px; }
.gantt-row.is-phase { height: 36px; }
.gantt-label {
  position: sticky;
  left: 0;
  z-index: 9;
  width: var(--gantt-label);
  flex: 0 0 var(--gantt-label);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid #f0f0f2;
  min-width: 0;
}
.gantt-row.is-phase .gantt-label { background: #fbfbfd; font-weight: 700; }
.gantt-label-head { z-index: 9; background: #fff; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.gantt-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.gantt-label-phase i {
  width: 8px;
  height: 18px;
  border-radius: 99px;
  flex: none;
}
.gantt-label-phase.is-edit { cursor: pointer; }
.gantt-mini {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}
.gantt-track { position: relative; height: 100%; border-bottom: 1px solid #f0f0f2; overflow: hidden; }
.gantt-track-head { display: flex; flex-direction: column; background: #fff; overflow: hidden; z-index: 1; }
.gantt-groups, .gantt-units { position: relative; display: block; height: 26px; width: 100%; }
.gantt-group, .gantt-cell {
  position: absolute;
  top: 0;
  height: 26px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 6px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  z-index: 2;
}
.gantt-group {
  color: var(--ink);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 10px;
}
.gantt-cell { justify-content: center; padding: 0 2px; }
.gantt-track-head { background: transparent; }
.gantt-head { background: transparent; }
.gantt-grid {
  position: absolute;
  top: 0;
  pointer-events: none;
  z-index: 0;
}
.gantt-shade {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #f3f4f7;
}
.gantt-vline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #d5d5dc;
}
.gantt-vline.is-major { background: #b7b7c2; }
.gantt-span {
  position: absolute;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  border-radius: 99px;
  opacity: .55;
}
.gantt-bar {
  position: absolute;
  top: 50%;
  height: 18px;
  margin-top: -9px;
  border-radius: 5px;
  background: var(--bar, #2f6fed);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  z-index: 2;
}
.gantt-bar i { display: block; height: 100%; background: rgba(0, 0, 0, .18); }
.gantt-bar b {
  position: absolute;
  right: 8px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.gantt-bar .grip {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 8px;
  cursor: ew-resize;
}
.gantt-bar .grip::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 3px;
  width: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .75);
}
.gantt-today {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px solid #34c759;
  z-index: 4;
  pointer-events: none;
}
.gantt-today span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: #34c759;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}
.gantt-links {
  position: absolute;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.gantt-links path {
  fill: none;
  stroke: #9aa0a8;
  stroke-width: 1.25;
  stroke-linejoin: miter;
}

@media print {
  @page { size: A3 landscape; margin: 8mm; }
}
body.is-gantt-printing { background: #fff !important; }
body.is-gantt-printing .shell { display: block; }
body.is-gantt-printing .nav,
body.is-gantt-printing .topbar,
body.is-gantt-printing .bottom-nav,
body.is-gantt-printing .proj-rail,
body.is-gantt-printing .tabs,
body.is-gantt-printing .phero,
body.is-gantt-printing .gantt-tools,
body.is-gantt-printing .gantt-edit { display: none !important; }
body.is-gantt-printing .view { max-width: none !important; width: auto !important; padding: 0 !important; }
body.is-gantt-printing .proj-page { display: block; }
body.is-gantt-printing .gantt { box-shadow: none; border-radius: 0; overflow: visible; }
body.is-gantt-printing .gantt-scroll { overflow: visible; }
body.is-gantt-printing .gantt-fit { position: relative; overflow: hidden; }
body.is-gantt-printing .gantt-sheet { position: absolute; top: 0; left: 0; }
body.is-gantt-printing .gantt-print-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
body.is-gantt-printing .gantt-print-head strong { font-size: 18px; }
body.is-gantt-printing .gantt-print-head span { color: #666; font-size: 12px; }
body.is-gantt-printing .gantt-bar,
body.is-gantt-printing .gantt-span,
body.is-gantt-printing .gantt-today span,
body.is-gantt-printing .gantt-group {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
