/* Tree 
 * 
 * Styling Tree mostly means styling the TreeRow (dijitTreeRow)
 * There are 4 basic states to style:
 * 
 * Tree Row:
 * 1. tree row (default styling): 
 * 		.dijitTreeRow - styles for each row of the tree
 *
 * 2. hovered tree row (mouse hover on a tree row)
 * 		.dijitTreeRowHover - styles when mouse over on one row
 * 
 * 3. active tree row (mouse down on a tree row)
 * 		.dijitTreeRowActive - styles when mouse down on one row
 * 
 * 4. selected tree row
 * 		dijitTreeRowSelected - style when the row has been selected
 * 
 * Tree Expando:
 * 	    dijitTreeExpando - the expando at the left of the text of each tree row
 * 
 * Drag and Drop on TreeNodes: (insert line on dijitTreeContent node so it'll aligned w/ target element)
 * 		.dijitTreeNode .dojoDndItemBefore/.dojoDndItemAfter - use border style simulate a separate line
 */

.odysen .dijitTreeNode {
    zoom: 1;	/* force layout on IE (TODO: may not be needed anymore) */
}
.odysen .dijitTreeIsRoot {
    background-image: none;
}
.odysen .dijitTreeRow {
	/* so insert line shows up on IE when dropping after a target element */
	padding: 4px 1px 2px 0px;
	margin-left: 1px;/*
	background-image: url("/stylesheets/odysen4.0/dijit/themes/odysen/images/commonHighlight.png");
	background-position:0px 0px;
	background-repeat:repeat-x;
	background-color: rgba(171,214,255,0);*/
	background: transparent;
	border-color: rgba(118,157,192,0);
	-webkit-transition-property:background-color, border-color;
	-webkit-transition-duration:.25s ;
	-webkit-transition-timing-function: ease-out;
}
.dj_ie6 .odysen .dijitTreeRow {
	background-image: none;
}

.odysen .dijitTreeRowSelected {
	background-repeat:repeat-x;
	background-color:#d8edff;
	padding: 3px 0px 1px;
	margin-left: 0px;
	border:solid 1px #c3e2fd;
	color:#000;
}
.odysen .dijitTreeRowHover {
	background-color:#abd6ff;
	padding: 3px 0px 1px;
	margin-left: 0px;
	border:solid 1px #769dc0;
	color:#000;
	-webkit-transition-duration:.25s ; 
}
.odysen .dijitTreeRowActive {
	background-color:#7dbefa;
	background-position:0px -177px;
	padding: 3px 0px 1px;
	margin-left: 0px;
	border:solid 1px #769dc0;
	color:#000;
}
.dj_ie6 .odysen .dijitTreeRowActive {
	background-image: none;
}
.odysen .dijitTreeRowFocused {
	background-repeat: repeat;
}

/* expando (open/closed) icon */
/* Tree Expando: Has not expaneded and should open when clicked.  */
.odysen .dijitTreeExpando {
  background-image: url('/images/icons/production/used_sprite.png');
	background-position: -1134px 0;
  height: 16px;
  width: 16px;
}

.odysen .dijitTreeRowHover .dijitTreeExpandoOpened {
  background-image: url('/images/icons/production/used_sprite.png');
	background-position: -1150px 0;
  height: 16px;
  width: 16px;
}
/* Tree Expando Closed: has expand and should close when clicked. */
.odysen .dijitTreeExpandoClosed {
  background-image: url('/images/icons/production/used_sprite.png');
	background-position: -1098px 0;
  height: 16px;
  width: 16px;
}

.odysen .dijitTreeRowHover .dijitTreeExpandoClosed {
  background-image: url('/images/icons/production/used_sprite.png');
	background-position: -1114px 0;
  height: 16px;
  width: 16px;
}
.odysen .dijitTreeExpandoLeaf{
	background-image:none;
}
.odysen .dijitTreeExpandoLoading {
	background-image: url('/stylesheets/odysen4.0/dijit/themes/odysen/images/loadingAnimation.gif');
}

/* Drag and Drop on TreeNodes
 * Put insert line on dijitTreeContent node so it's aligned w/
 * (ie, indented equally with) target element, even
 * though dijitTreeRowNode is the actual "drag object"
 */
.odysen .dijitTreeNode .dojoDndItemBefore,
.odysen .dijitTreeNode .dojoDndItemAfter {
	border-bottom: none;
	border-top: none;
}
.odysen .dijitTreeNode .dojoDndItemBefore .dijitTreeContent {
	border-top: 2px solid #369;
}
.odysen .dijitTreeNode .dojoDndItemAfter .dijitTreeContent {
	border-bottom: 2px solid #369;
}
