/* Set our own ticket colour */
.ticket #ticket {
	background: #eee;
	border: 1px solid #999;
	margin-bottom: 18px;
}
	
	#ticket table.properties,
	#ticket .description h3  {
		border-color: #999;
	}
	
	#ticket table.properties th,
	#ticket .description h3,
	#ticket .date {
		color: #666;
	}
	
	span.status {
		/* TODO: conflict with .status in agilo_theme.css */
		position: relative;
		height: auto;
		width: auto;
		background: none;
		border: none;
	}
	
/* Dashboard: fixing UL padding */
#actions ul {
	padding-left: 20px;
}

/* Centered titles for flot charts */
.flotchart {
    text-align: center;
}

.flotchart .charttitle {
    font-weight: bold;
}

/* Charts on the dashboard and on the team page */
#charts .flotchart, #team_charts .flotchart {
	float: left;
	margin-right: 2em;
}

.flotchart .legendLabel {
	text-align: left;
}

.containing_the_float {
	display: block; 
	clear: left; 
	visibility: hidden;
}


/* Trac error styling. Copied from trac.css */
/* Styles for the error page (and rst errors) */
#content.error .message, 
div.system-message {
 background: #fdc;
 border: 2px solid #d00;
 color: #500;
 padding: .5em;
 margin: 1em 0;
}
#content.error div.message pre, div.system-message pre {
  margin-left: 1em;
  overflow: hidden;
  white-space: normal;
}
div.system-message p { margin: 0; }
div.system-message p.system-message-title { font-weight: bold; }
 
#warning.system-message { background: #ffa; border: 2px solid #886; }
#warning.system-message li { list-style-type: square; }
 
#notice.system-message { background: #bfb; border: 2px solid #484; }
#notice.system-message li { list-style-type: square; }
 
#content.error form.newticket { display: inline; }
#content.error form.newticket textarea { display: none; }
 
#content.error #systeminfo { margin: 1em; width: auto; }
#content.error #systeminfo th { font-weight: bold; text-align: right; }
 
#content.error #traceback { margin-left: 1em; }
#content.error #traceback :link, #content.error #traceback :visited {
  border: none;
}
#content.error #tbtoggle { font-size: 80%; }
#content.error #traceback div { margin-left: 1em; }
#content.error #traceback h3 { font-size: 95%; margin: .5em 0 0; }
#content.error #traceback :link var, #content.error #traceback :visited var {
  font-family: monospace;
  font-style: normal;
  font-weight: bold;
}
#content.error #traceback span.file { color: #666; font-size: 85%; }
#content.error #traceback ul { list-style: none; margin: .5em 0; padding: 0; }
#content.error #traceback ol {
  border: 1px dotted #d7d7d7;
  color: #999;
  font-size: 85%;
  line-height: 1;
  margin: .5em 0;
}
#content.error #traceback ol li { white-space: pre; }
#content.error #traceback ol li.current { background: #e6e6e6; color: #333; }
#content.error #traceback ol li code { color: #666; }
#content.error #traceback ol li.current code { color: #000; }
#content.error #traceback table { margin: .5em 0 1em;  }
#content.error #traceback th, #content.error #traceback td {
  font-size: 85%; padding: 1px;
}
#content.error #traceback th var {
  font-family: monospace;
  font-style: normal;
}
#content.error #traceback td code { white-space: pre; }
#content.error #traceback pre { font-size: 95%; }
	
/* Warning and notification classes */
/* This OVERWRITES the previous warnings - had to change it around for the cascase */
/* TODO: Make proper css for this */
.system-message.warning{    background:#ffa;border:2px solid #DDDD00;}
.system-message.warning li{ list-style-type:square;}
.system-message.warning td{ background:#ffa;}
.system-message.notice {
    background:#bfb;border:2px solid #00DD00;
    margin: 20px 10px 10px;
}
.system-message.notice li{  list-style-type:square;}
.system-message.notice td{  background:#bfb;}
#ticket table.links{        border-collapse:collapse;clear:both;table-layout:fixed;width:100%;}
#ticket table.links th{     color:#666; text-align:left;width:20%;}
#ticket table.links td, #ticket table.links th{padding-left:0.5em;vertical-align:top;}

/* sprint information in backlog view */
/*
div.sprint_status {width: 14px; height: 14px; border: 1px solid silver; display: inline;}
div.closed {background: red;}
div.not_started {background: green;}
div.running {background: yellow;}
*/

/* Sprint Edit/Add form page */
div#content form#editform .error {background-color: rgb(255, 221, 204);}

table.calendar { 	border-collapse: collapse; }
table.calendar th,
table.calendar td {	border-bottom: 1px solid #aaa; padding: 2px; text-align: center; font-size: 10px;}
table.calendar th {	font-weight: bold; background: none; color: #000;}
#prefs table.calendar input[disabled] {
    border-color: #fff;
    color: #ccc;
}
#prefs table.calendar .weekend input[disabled] {
    background: #EEE;
    border-color: #eee;
}

table.calendar input,
#prefs table.calendar input { border: 1px solid #ddd; color: #333; text-shadow: 0 0 0 #fff; background: #fff; font-size: 11px;}
table.calendar input:hover,
table.calendar td.weekend input:hover { border: 1px solid #ccc; background: #FFFEDA;}

table.calendar td.weekend { color: #999; background: #EEE;}
table.calendar td.weekend input { background: #EEE; color: #666; border-color: #EEE;}

table.calendar td.today { background: #DCE5F2; color: #4F81CC; font-weight: bold;}

/* Roadmap view with Sprints */
.sprint .info h3 :link, .sprint .info h3 :visited{background:transparent;border-bottom:medium none;}
.sprint .info{white-space: nowrap;margin-bottom:2em;}
.sprint .info h3 em {color:#BB0000;font-style:normal;}
.info dl {clear:both;}
.sprint .info p {margin-bottom: 0; white-space: normal;}
li.sprint {list-style-image:none;list-style-position:outside;list-style-type:none;}

/* progress bar for contingents */
#contingent_progressbar {        margin-bottom:0;}
#contingent_progressbar li {        margin-bottom:0; padding:0; border-width:0px;}
#contingent_progressbar .progress { width:10em;margin-top: 0.3em;}
#contingent_progressbar .percent {  line-height: 18px;}
table.progress td.warning {         background: #e0e63d url("../images/gradient.png") repeat-x scroll center top;}
table.progress td.critical {        background: #f35e5e url("../images/gradient.png") repeat-x scroll center top;}


/* Team Metrics and Statistics pages */
div.team_capacity {                 width:99%;margin-top:2em;overflow:auto;clear:both;}
div.resources_load {                width:99%;display:block;}
div.resources_load div.headers{     width:15%;float:left;overflow:hidden;}
div.resources_load div.scroll{      width:85%;float:right;overflow:auto;}
div.resources_load table{           border:1px solid silver;padding:2px;}
div.resources_load table tr{        height:2em;white-space:nowrap;}
div.resources_load table tr td{     text-align:right;overflow:hidden;}
div.resources_load .headers table tr td{     text-align:left;}
div.resources_load table tr td.weekend, 
div.resources_load table tr th.weekend{background:silver;}
div.resources_load table tr td.overloaded{color:red;}
div.resources_load table tr.totals td{font-weight:bold;background:#eee;}
div.member_calendar{                clear:none;float:left;display:block;border-collapse:collapse; margin-right: 10px;}
div.contingents{                    margin-top:2em;overflow:auto;clear:both;display:block;border-collapse:collapse;}
table.metrics{                      padding:5px;border:1px silver solid;width:99%;}
table.metrics td{                   text-align:right;}
table.metrics td.sprint{            text-align:left;}

/* help text */
div.help{           font-size:90%;color:#999;padding:0.5em;border:1px dotted silver; margin-bottom: 0.5em;}
div.help ul{        padding-left:1em;}
div.help ul li{     list-style-image:none;list-style-position:outside;list-style-type:none;}

/* Charts */
div.charts{         display:block;}
div.charts img{     display:block;float:left}

/* Contingent table */
td.contingent_number {  text-align:right;}
tr.contingent_totals td {font-weight:bold;text-align:right;}

/* Line-through for closed tickets in the timeline view */
/* TODO: Add this styling to the backlog and legenda */
dt.closedticket em {
	text-decoration: line-through;
	background: #fdd;
}

/* Bring Search results styling in line */
#content.search #results dt a {
	color: #1E81CF;
}

/* Copied search highlighting from trac.css */
/* Styles for search word highlighting */
@media screen {
 .searchword0 { background: #ff9 }
 .searchword1 { background: #cfc }
 .searchword2 { background: #cff }
 .searchword3 { background: #ccf }
 .searchword4 { background: #fcf }
}

/* Copied EXT-LINK and MAIL-LINK styling from trac.css */
@media screen {
  a.ext-link .icon {
   background: url("../images/extlink.gif") center left no-repeat;
   padding-left: 12px;
  }
  a.mail-link .icon {
   background: url("../images/envelope.png") center center no-repeat;
   padding-left: 14px;
}
}

/* "Loading..." popup */
#popup-div {
	background: #fff url("../images/spinner-16.gif") 100% 50% no-repeat;
	color: gray;
	padding: 4px;
	display: none;
	font-size: 20px;
	margin: auto;
	position:absolute;
	left:0px;
	right: 0px;
	top:0px;
	bottom: 0px;
	width: 110px;
	height: 22px;
	z-index: 100;
	-moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    border: 1px solid;
}
