#svgDiv {
  height: 100%;
}

#flow-graph {
  width: 100%;
  height: 100%;
}

#flow-executing-graph {
  width: 100%;
  height: 500px;
}

.flow-progress {
	width: 280px;
	margin: 4px;
  background-color: #f5f5f5;
  height: 24px;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
          box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.flow-progress-bar {
	height: 100%;
  background-color: #ccc;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
          box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  -webkit-transition: width 0.6s ease;
          transition: width 0.6s ease;

  &.attempt {
    opacity: 0.70;
    &:hover {
      opacity: 1;
    }
  }

  &.SUCCEEDED {
    background-color: #5cb85c;
  }

  &.FAILED {
    background-color: #d9534f;
  }

  &.RUNNING {
    background-color: #3398cc;	
    background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
    background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    -webkit-animation: progress-bar-stripes 2s linear infinite;
            animation: progress-bar-stripes 2s linear infinite;
  }

  &.QUEUED {
    background-color: #009fc9;
  }
}

td {
  .status {
    -moz-border-radius: 2px;
    border-radius: 2px;

    padding: 2px 2px;
    color: #FFF;
    text-align: center;
    margin-top: 2px;
    
    &.SUCCEEDED {
      background-color: #5cb85c;
    }

    &.FAILED {
      background-color: #d9534f;
    }

    &.PAUSED {
      background-color: #c82123;
    }

    &.READY {
      background-color: #ccc;
    }

    &.RUNNING {
      background-color: #3398cc;	
    }

    &.FAILED_FINISHING {
      background-color: #f19153;	
    }

    &.DISABLED {
      background-color: #aaa;	
    }

    &.SKIPPED {
      background-color: #aaa;	
    }

    &.KILLED {
      background-color: #d9534f;
    }

    &.UNKNOWN {
      background-color: #ccc;
    }
  }
}

.graph-sidebar {
  height: 100%;
  overflow-y: auto;
}

// TODO: Rename this as #job-list
#list {
  height: 100%;

  a {
    &.nodedisabled,
    &.DISABLED {
      opacity: 0.3;
    }

    &.DISABLED .icon {
      background-position: 16px 0px;
    }

    &.READY .icon {
      background-position: 16px 0px;
    }

    &.QUEUED .icon {
      opacity: 0.5;
      background-position: 32px 0px;
    }

    &.RUNNING .icon {
      background-position: 32px 0px;
    }

    &.SUCCEEDED .icon {
      background-position: 48px 0px;
    }

    &.FAILED .icon {
      background-position: 0px 0px;
    }

    &.KILLED .icon {
      background-position: 0px 0px;
    }

    .icon {
      float: left;
      width: 16px;
      height: 16px;
      margin: 2px 4px 0px -5px;
      background-image: url("./images/dot-icon.png");
      background-position: 16px 0px;
    }
  }
}
