#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: 5px;
  -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;
  }
  
  &.KILLED {
    background-color: #ff9999;
  }
}

td {
	> .listExpand {
		width: 16px;
		height: 16px;
		float:right;
		margin-top: 5px;
		font-size: 8pt;
	}

  .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,
    &.UNKNOWN {
      background-color: #ccc;
    }

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

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

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

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

#flowStatus {
  &.SKIPPED {
    color: #aaa;
  }

  &.SUCCEEDED {
    color: #4e911e;
  }

  &.RUNNING {
    color: #009fc9;
  }

  &.PAUSED {
    color: #c92123;
  }

  &.FAILED,
  &.FAILED_FINISHING,
  &.KILLED {
    color: #cc0000;
  }
}

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

// TODO: Rename this as #job-list
#joblist {
  height: 100%;
}
ul.tree-list {
  list-style-type: none;
  padding-left: 0px;
  margin: 0;
}
  
li.tree-list-item {
  &.active > a {
    background-color: #D9EDFF;
  }

  ul.tree-list {
    padding-left: 20px;
  }

  &.subFilter > a > .expandarrow {
    color : #3398cc;
  }

  > a {
    clear: both;
    position: relative;
    display: block;
    border-bottom-width: 0;
    padding: 10px 15px;

    &:hover,
    &:focus {
      text-decoration: none;
      background-color: #f5f5f5;
      cursor: pointer;
    }
  
    &.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;
    }
    
    &.FAILED_FINISHING .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;
    }
    
    .expandarrow {
      float: right;
      width: 16px;
      height: 16px;
      font-size: 8pt;
    }
    
    .filterHighlight {
      background-color: #FFFF00;
    }
  }
}
