.gantt .grid-background {
  fill: none;
}
.gantt .grid-header {
  fill: #ffffff;
  stroke: #e0e0e0;
  stroke-width: 1.4;
}
.gantt .grid-row {
  fill: #ffffff;
}
.gantt .grid-row:nth-child(even) {
  fill: #f5f5f5;
}
.gantt .row-line {
  stroke: #ebeff2;
}
.gantt .tick {
  stroke: #e0e0e0;
  stroke-width: 0.2;
}
.gantt .tick.thick {
  stroke-width: 0.4;
}
.gantt .today-highlight {
  fill: #fcf8e3;
  opacity: 0.5;
}
.gantt .arrow {
  fill: none;
  stroke: #666;
  stroke-width: 1.4;
}
.gantt .bar {
  fill: #7d8fa1;
  stroke: #8D99A6;
  stroke-width: 0;
  transition: stroke-width 0.3s ease;
  user-select: none;
}
.gantt .bar-progress {
  fill: #a3a3ff;
}
.gantt .bar-invalid {
  fill: transparent;
  stroke: #8D99A6;
  stroke-width: 1;
  stroke-dasharray: 5;
}
.gantt .bar-invalid ~ .bar-label {
  fill: #555;
}
.gantt .bar-label {
  fill: #fff;
  dominant-baseline: central;
  text-anchor: middle;
  font-size: 12px;
}
.gantt .bar-label.big {
  fill: #555;
  text-anchor: start;
}
.gantt .handle {
  fill: #ddd;
  cursor: ew-resize;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.gantt .bar-wrapper {
  cursor: pointer;
  outline: none;
}
.gantt .bar-wrapper:hover .bar {
  fill: #a9b5c1;
}
.gantt .bar-wrapper:hover .bar-progress {
  fill: #8a8aff;
}
.gantt .bar-wrapper:hover .handle {
  visibility: visible;
  opacity: 1;
}
.gantt .bar-wrapper.active .bar {
  fill: #a9b5c1;
}
.gantt .bar-wrapper.active .bar-progress {
  fill: #8a8aff;
}
.gantt .lower-text, .gantt .upper-text {
  font-size: 12px;
  text-anchor: middle;
}
.gantt .upper-text {
  fill: #555;
}
.gantt .lower-text {
  fill: #333;
}
.gantt .hide {
  display: none;
}

.gantt-container {
  position: relative;
  overflow: auto;
  font-size: 12px;
}
.gantt-container .popup-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  padding: 0;
  color: #959da5;
  border-radius: 3px;
  box-shadow: 0 2px 1px -1px rgba(0,0,0,.2),
              0 1px 1px 0 rgba(0,0,0,.14),
              0 1px 3px 0 rgba(0,0,0,.12) !important;;
}
.gantt-container .popup-wrapper .title {
  border-bottom: 3px solid #a3a3ff;
  padding: 10px;
}
.gantt-container .popup-wrapper .subtitle {
  padding: 10px;
  color: #dfe2e5;
}
.gantt-container .popup-wrapper .pointer {
  position: absolute;
  height: 5px;
  margin: 0 0 0 -5px;
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
}

/*
  dark theme color added by BHznJNs
  https://github.com/BHznJNs/
*/
body.dark .gantt .grid-header {
  fill: #252525;
  stroke: #616161;
}
body.dark .gantt .grid-row {
  fill: #252525;
}
body.dark .gantt .grid-row:nth-child(even) {
  fill: #3e3e3e;
}
body.dark .gantt .row-line {
  stroke: #3e3e3e;
}
body.dark .gantt .tick {
  stroke: #616161;
}

body.dark .gantt .today-highlight {
  opacity: 0.2;
}

body.dark .gantt .arrow {
  stroke: #eee;
}
body.dark .gantt .bar {
  fill: #616161;
  stroke: none;
}
body.dark .gantt .bar-progress {
  fill: #8a8aff;
}
body.dark .gantt .bar-invalid {
  fill: transparent;
  stroke: #c6ccd2;
}
body.dark .gantt .bar-invalid ~ .bar-label,
body.dark .gantt .bar-label.big {
  fill: #ececec;
}

body.dark .gantt .bar-wrapper:hover .bar,
body.dark .gantt .bar-wrapper.active .bar {
  fill: #9E9E9E;
}
body.dark .gantt .bar-wrapper:hover .bar-progress,
body.dark .gantt .bar-wrapper.active .bar-progress {
  fill: #a3a3ff;
}

body.dark .gantt .upper-text {
  fill: #a2a2a2;
}
body.dark .gantt .lower-text {
  fill: #f7f7f7;
}

body.dark .gantt-container .popup-wrapper {
  background-color: #333;
}
body.dark .gantt-container .popup-wrapper .title {
  border-color: #8a8aff;
}
body.dark .gantt-container .popup-wrapper .pointer {
  border-top-color: #333;
}

@media (prefers-color-scheme: dark) {
  .gantt .grid-header {
    fill: #252525;
    stroke: #616161;
  }
  .gantt .grid-row {
    fill: #252525;
  }
  .gantt .grid-row:nth-child(even) {
    fill: #3e3e3e;
  }
  .gantt .row-line {
    stroke: #3e3e3e;
  }
  .gantt .tick {
    stroke: #616161;
  }

  .gantt .today-highlight {
    opacity: 0.2;
  }

  .gantt .arrow {
    stroke: #eee;
  }
  .gantt .bar {
    fill: #616161;
    stroke: none;
  }
  .gantt .bar-progress {
    fill: #8a8aff;
  }
  .gantt .bar-invalid {
    fill: transparent;
    stroke: #c6ccd2;
  }
  .gantt .bar-invalid ~ .bar-label,
  .gantt .bar-label.big {
    fill: #ececec;
  }

  .gantt .bar-wrapper:hover .bar,
  .gantt .bar-wrapper.active .bar {
    fill: #9E9E9E;
  }
  .gantt .bar-wrapper:hover .bar-progress,
  .gantt .bar-wrapper.active .bar-progress {
    fill: #a3a3ff;
  }

  .gantt .upper-text {
    fill: #a2a2a2;
  }
  .gantt .lower-text {
    fill: #f7f7f7;
  }

  .gantt-container .popup-wrapper {
    background-color: #333;
  }
  .gantt-container .popup-wrapper .title {
    border-color: #8a8aff;
  }
  .gantt-container .popup-wrapper .pointer {
    border-top-color: #333;
  }
}
