/*
 * Ext Gantt 1.2
 * Copyright(c) 2009-2011 Mats Bryntse Consulting
 * mats@ext-scheduler.com
 * http://www.ext-scheduler.com/license.html
 *
 */

 
.sch-event-wrap
{
    z-index:1000;
    min-width:1px;			/* To make sure a event is never completely invisible */ 
    position : absolute;
    overflow:visible;
    top:3px;
}

.sch-gantt-item
{
    cursor:pointer;
    width:inherit;
}

.x-grid3-row-selected .sch-gantt-task-bar,
.x-grid3-row-selected .sch-gantt-parenttask-bar
{
	border-color:red;
}

.sch-event-endsoutside .sch-gantt-task
{
	border-right:0 none;
}

/* Hide left border for events starting outside the view */
.sch-event-startsoutside .sch-gantt-task
{
	border-left:0 none;
}

/* Parent task styling */
.sch-gantt-parenttask-bar
{
	cursor:pointer;
    height:9px;
	border:1px solid red;
	background: #FFBC00;
	position:relative;
	left:-6px;
}

.sch-gantt-parenttask-bar,
.sch-gantt-task-bar
{
    -webkit-box-shadow: 1px 1px 2px rgba(150, 150, 150, 0.5);
    -moz-box-shadow: 1px 1px 2px rgba(150, 150, 150, 0.5); 
    -ms-box-shadow: 1px 1px 2px rgba(150, 150, 150, 0.5); 
    box-shadow: 1px 1px 2px rgba(150, 150, 150, 0.5); 
}

.sch-gantt-parenttask-bar .sch-gantt-progress-bar {
	height:9px;
	margin:0;
	background-color: #FFF3A5;
}

/* For IE */
.ext-border-box .sch-gantt-parenttask-bar .sch-gantt-progress-bar {
	margin:0;
	left:0; 
	top:0;
}

.sch-gantt-parenttask-arrow
{
    border:0;
	width:0;
	height:0;
	position:absolute;
	border-color: red transparent transparent;
    border-style: solid;
    border-width: 6px 6px 0;
}

.sch-gantt-parenttask-leftarrow
{
	left:-1px;
}

.sch-gantt-parenttask-rightarrow
{
	right:-1px;
}

/* Leaf task styling */
.sch-gantt-task-bar
{
	border:1px solid #3172D7;
    height:13px;
    border-radius:2px;
    -ms-border-radius:2px;
    -o-border-radius:2px;
    -moz-border-radius:2px;
    -webkit-border-radius: 2px;
	overflow:hidden;
	cursor:move;
	background: #E5ECF5;
}

.sch-ganttpanel-showbaseline .sch-gantt-task-bar,
.sch-ganttpanel-showbaseline .sch-gantt-parenttask-bar
{
    height:6px;
}

.sch-ganttpanel-showbaseline .sch-gantt-progress-bar {
    height:4px;
}

.ext-border-box .sch-gantt-task-bar
{
	overflow:visible;
    height:15px;
}

.ext-border-box .sch-ganttpanel-showbaseline .sch-gantt-task-bar
{
    height:7px;
}

.sch-ganttpanel-showbaseline .sch-gantt-parenttask-bar .sch-gantt-progress-bar
{
    height:6px;
}

.ext-border-box .sch-ganttpanel-showbaseline .sch-gantt-parenttask-bar
{
    height:8px;
}


.ext-border-box .sch-ganttpanel-showbaseline .sch-gantt-parenttask-bar .sch-gantt-progress-bar
{
    height:6px;
}

.sch-gantt-progress-bar {
	height:11px;
	margin:1px;
	background-color: #7971E2;
	background-image:url(../images/transp-1px.png);
	background-repeat:repeat-x;
	background-position:left top;
	overflow:hidden;
}

.ext-border-box .sch-gantt-progress-bar {
	position:relative;
	margin-top:0;
	top:1px;
}

.sch-gantt-label
{
    color: #888;
    height:16px;
    white-space:nowrap;
}

.ext-border-box .sch-gantt-label 
{
    padding-top:2px;
}

.sch-gantt-labelct-left
{
	position: absolute;
    left: -600px;
    width: 570px;
    text-align: right;
    top: 0;
    margin-right:30px;
}

.sch-gantt-labelct-right
{
	position: absolute;
    top: 0;
    margin-left: 20px;
}

/* Milestone styling */ 
.sch-gantt-milestone .sch-gantt-labelct-right
{
	position: absolute;
    left: 20px;
}

.sch-gantt-milestone-diamond
{   
    border:0 none;
	background-image:url(../images/milestone.png);
	height:16px;
	width:16px;
	cursor:move;
	position:relative;
	left:-8px;
}

.x-grid3-row-selected .sch-gantt-milestone-diamond
{
	background-position: 0 -16px;	
}

/* Low priority styling */
.sch-gantt-prio-low .sch-gantt-progress-bar
{
	background-color:#aaa;
}

.sch-gantt-parent-task .sch-gantt-prio-low,
.sch-gantt-task .sch-gantt-prio-low
{
	border-color:#888;
	background-color:#eee;
}

.sch-gantt-milestone .sch-gantt-prio-low
{
	background-position:0 -48px;
}

.sch-gantt-prio-low .sch-gantt-parenttask-arrow
{
	border-color: #aaa transparent transparent;
}


/* High priority styling */
.sch-gantt-prio-high .sch-gantt-progress-bar
{
	background-color:red;
}

.sch-gantt-parent-task .sch-gantt-prio-high,
.sch-gantt-task .sch-gantt-prio-high
{
	border-color:red;
	background-color:lightgoldenRodYellow;
}

.sch-gantt-milestone .sch-gantt-prio-high
{
	background-position:0 -32px;
}

.sch-gantt-prio-high .sch-gantt-parenttask-arrow
{
	border-color: red transparent transparent;
}

/* Baseline styling */
.sch-gantt-task-bar-baseline
{
    position : absolute;
    background:#EEEEEE;
    border:1px solid orange;
    overflow:hidden !important;
    top:11px;
    height:6px;
    min-width:1px;			/* To make sure a task is never completely invisible */ 
    border-radius:2px;
    -moz-border-radius:2px;
    -webkit-border-radius: 2px;
    display:none;
}

.ext-border-box .sch-gantt-task-bar-baseline
{
    top:10px;
    height:8px;
}


.sch-gantt-task-diamond-baseline
{
    position: absolute;
    background:url(../images/milestone.png) no-repeat 0 -48px;
	background-color:transparent !important;	
	border:0 none !important;
	height:16px;
	width:16px;
    display:none;
    top:6px;
}

.sch-ganttpanel-showbaseline .sch-gantt-task-bar-baseline,
.sch-ganttpanel-showbaseline .sch-gantt-task-diamond-baseline
{
    display:block;
}

.sch-gantt-critical-chain .x-grid3-row .sch-event-wrap
{
    opacity:0.2;
	filter: alpha(opacity=20);
}

.sch-gantt-critical-chain .x-grid3-row-selected .sch-event-wrap
{
    opacity:1;
	filter: alpha(opacity=100);
}

.sch-ganttpanel-readonly .sch-gantt-milestone-diamond,
.sch-ganttpanel-readonly .sch-gantt-task-bar
{
    cursor:auto;
}

