@charset "UTF-8";
/**
 * YH-UI Sass Variables
 * 原具体的 CSS 变量输出规则 (:root, html.dark 等) 已移至 root.scss，以防止各组件样式编译时产生重复的全局变量 CSS 冗余。
 */
.yh-gantt-chart {
  --yh-gantt-border-color: var(--yh-border-color, #dcdfe6);
  --yh-gantt-bg-color: var(--yh-bg-color, #ffffff);
  --yh-gantt-header-bg-color: var(--yh-fill-color, #f5f7fa);
  --yh-gantt-task-color: var(--yh-color-primary, #409eff);
  --yh-gantt-text-color: var(--yh-text-color-primary, #303133);
  --yh-gantt-row-hover-bg: var(--yh-fill-color-light, #f5f7fa);
  --yh-gantt-line-color: var(--yh-border-color-light, #e4e7ed);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--yh-gantt-bg-color);
  color: var(--yh-gantt-text-color);
  border: 1px solid var(--yh-gantt-border-color);
  border-radius: 4px;
  overflow: hidden;
  box-sizing: border-box;
}
.yh-gantt-chart__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--yh-bg-color, #fff);
  border-bottom: 1px solid var(--yh-gantt-border-color);
  gap: 12px;
  z-index: 100;
}

.yh-gantt-chart__toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yh-gantt-chart__main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.yh-gantt-chart {
  /* Sidebar */
}
.yh-gantt-chart__sidebar {
  width: 480px;
  border-right: 1px solid var(--yh-gantt-border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 10;
}

.yh-gantt-chart__sidebar-header-wrapper {
  width: 100%;
  overflow: hidden;
  background: var(--yh-gantt-header-bg-color);
  border-bottom: 1px solid var(--yh-gantt-border-color);
  box-sizing: border-box;
}

.yh-gantt-chart__sidebar-header {
  display: flex;
  white-space: nowrap;
  height: 100%;
}

.yh-gantt-chart__sidebar-header-cell {
  height: 100%;
  padding: 0 12px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--yh-gantt-line-color);
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
  color: var(--yh-text-color-regular, #606266);
}

.yh-gantt-chart__sidebar-body {
  flex: 1;
  overflow: auto;
}

.yh-gantt-chart__row {
  display: flex;
  border-bottom: 1px solid var(--yh-gantt-line-color);
  width: fit-content;
  min-width: 100%;
}
.yh-gantt-chart__row:hover {
  background: var(--yh-gantt-row-hover-bg);
}

.yh-gantt-chart__cell {
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--yh-gantt-line-color);
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}
.yh-gantt-chart__cell.is-editing {
  padding: 0;
}
.yh-gantt-chart__cell.is-editing .yh-input {
  height: 100%;
  --yh-input-border-color: transparent;
  --yh-input-hover-border-color: transparent;
  --yh-input-focus-border-color: var(--yh-color-primary);
}
.yh-gantt-chart__cell.is-editing .yh-input .yh-input__wrapper {
  box-shadow: none !important;
  border-radius: 0;
  padding: 0 12px;
  height: 100%;
  background: transparent;
}

.yh-gantt-chart__cell .yh-input {
  width: 100%;
}

.yh-gantt-chart__cell-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 4px;
  flex: 1;
}

.yh-gantt-chart {
  /* Tree Nodes & Lines */
}
.yh-gantt-chart__tree-node {
  display: inline-flex;
  align-items: center;
  height: 100%;
  position: relative;
}

.yh-gantt-chart__tree-indent {
  display: inline-block;
  width: 16px;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}
.yh-gantt-chart__tree-indent::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  border-left: 1px dotted #ccc;
}
.yh-gantt-chart__tree-indent.is-last::before {
  bottom: 50%;
}

.yh-gantt-chart__tree-content {
  display: inline-flex;
  align-items: center;
  width: 16px;
  height: 100%;
  position: relative;
}

.yh-gantt-chart__tree-line {
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  border-top: 1px dotted #ccc;
}

.yh-gantt-chart__tree-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  cursor: pointer;
  transition: transform 0.2s;
  color: var(--yh-text-color-secondary, #909399);
  z-index: 5;
}
.yh-gantt-chart__tree-arrow:hover {
  color: var(--yh-color-primary);
}
.yh-gantt-chart__tree-arrow.is-expanded {
  transform: rotate(90deg);
}
.yh-gantt-chart__tree-arrow svg {
  fill: currentColor;
}

.yh-gantt-chart {
  /* Timeline */
}
.yh-gantt-chart__timeline {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.yh-gantt-chart__timeline-header {
  display: flex;
  flex-direction: column;
  background: var(--yh-gantt-header-bg-color);
  border-bottom: 1px solid var(--yh-gantt-border-color);
  box-sizing: border-box;
}

.yh-gantt-chart__timeline-header-top {
  display: flex;
  border-bottom: 1px solid var(--yh-gantt-line-color);
  box-sizing: border-box;
}

.yh-gantt-chart__timeline-header-bottom {
  display: flex;
}

.yh-gantt-chart__timeline-unit {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--yh-gantt-line-color);
  font-size: 11px;
  color: var(--yh-text-color-secondary, #909399);
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 4px;
}
.yh-gantt-chart__timeline-unit--today {
  color: var(--yh-color-primary);
  font-weight: bold;
}

.yh-gantt-chart__timeline-body {
  flex: 1;
  overflow: auto;
  position: relative;
  background: var(--yh-bg-color, #fff);
  box-sizing: border-box;
}

.yh-gantt-chart__grid {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}

.yh-gantt-chart__grid-column {
  height: 100%;
  border-right: 1px solid var(--yh-gantt-line-color);
  box-sizing: border-box;
}

.yh-gantt-chart__timeline-row {
  border-bottom: 1px solid var(--yh-gantt-line-color);
}
.yh-gantt-chart__timeline-row:hover {
  background: var(--yh-gantt-row-hover-bg);
}

.yh-gantt-chart {
  /* Tasks */
}
.yh-gantt-chart__task-wrapper {
  position: absolute;
  background: var(--yh-gantt-task-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-size: 12px;
  z-index: 20;
  min-width: 4px;
  box-sizing: border-box;
}
.yh-gantt-chart__task-wrapper.is-milestone {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
  overflow: visible;
}

.yh-gantt-chart__task-wrapper.is-summary {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
}

.yh-gantt-chart__summary-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: #5e626d;
  border-radius: 2px;
  pointer-events: none;
}
.yh-gantt-chart__summary-bar::before, .yh-gantt-chart__summary-bar::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-top: 10px solid #5e626d;
}
.yh-gantt-chart__summary-bar::before {
  left: 0;
  border-right: 8px solid transparent;
}
.yh-gantt-chart__summary-bar::after {
  right: 0;
  border-left: 8px solid transparent;
}

.yh-gantt-chart__milestone-diamond {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.yh-gantt-chart__task-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px 0 0 4px;
}

.yh-gantt-chart__dependency-svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 5;
}

.yh-gantt-chart__dependency-path {
  fill: none;
  stroke: var(--yh-color-primary);
  stroke-width: 1.5;
  opacity: 0.6;
}

.yh-gantt-chart__resizer-left {
  position: absolute;
  width: 8px;
  top: 0;
  bottom: 0;
  cursor: ew-resize;
  z-index: 30;
  left: 0;
}

.yh-gantt-chart__resizer-right {
  position: absolute;
  width: 8px;
  top: 0;
  bottom: 0;
  cursor: ew-resize;
  z-index: 30;
  right: 0;
}

.yh-gantt-chart__task-success {
  background: var(--yh-color-success);
}

.yh-gantt-chart__task-warning {
  background: var(--yh-color-warning);
}

.yh-gantt-chart__task-danger {
  background: var(--yh-color-danger);
}

.yh-gantt-chart__task-info {
  background: var(--yh-color-info);
}