@bodyBackground:#F0F0F0;

@metanavBackground:#E0E0E0;
@fontColor:#000;
@headerFontColor:#DD4814;
@linkColor:#DD4814;
@metanavActiveLinkColor:#DD4814;
@metanavColor:#333;

@pageBackground:#FFF;
@pageWidth:960px;

@prefsBackground:#F7F7F0;

@diffRemove:#822;
@diffAdd:#272;

@tableBackground:#333333;
@tableBackgroundEven:#303030;
@tableBackgroundOdd:#3f3f3f;
@tableBackgroundHover:#666;
@tableBackgroundFocus:#777;

@ticketBackground:#FFD;
@ticketFontColor:#333;

@preFontColor:@fontColor;

/* Replace trac.css */
body {
 background: @bodyBackground none repeat scroll top left;
 color: @fontColor;
 font: normal normal 14px Arial, Tahoma, Helvetica, FreeSans, sans-serif;    
 margin:0;    
 min-width: @pageWidth;
}
h1, h2, h3, h4, h5, h6 {
 font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;
 color: @headerFontColor;
 background:none;
}
h1 { font-size: 36px}
h2 { font-size: 24px }
h3 { font-size: 22px }
h1 :link, h1 :visited, h2 :link, h2 :visited, h3 :link, h3 :visited, h4 :link, h4 :visited, h5 :link, h5 :visited, h6 :link, h6 :visited {
color: @linkColor;
}
table.code td { color: #333 }


/* Link styles */
:link, :visited {
 color: @linkColor;
}
:link:hover, :visited:hover { background-color: #eee; color: #555 }

/* Heading anchors */
.anchor:link, .anchor:visited {
 display:none;
}

/* Header */
#header :link, #header :visited, #header :link:hover, #header :visited:hover {
 color: #555;
}
#header h1 :link:hover, #header h1 :visited:hover { color: @fontColor }
#header { float:left; padding:2px; }
#header img { margin:0; }

/* Quick search */
#search {
 clear: none;
 height: auto;
 margin: 0;
 text-align: left;
 float: left;
 padding: 5px;
 display:none;
}

/* Navigation */
.nav li { border:none; }

/* Main navigation bar */
#mainnav {
 background: none;
 border: 0;
 margin: 0;
 padding: 0;
 position: absolute;
 top: 0;
 left: 24px;
 /*override trac.css*/
 font: normal normal 14px Arial, Tahoma, Helvetica, FreeSans, sans-serif;
}
#mainnav :link:hover, #mainnav :visited:hover {
 background: none;
 border: none;
}
#mainnav :link, #mainnav :visited {
 background: none;
 border: none;
 color: @metanavColor;
 white-space: nowrap;
 padding: 0 .4em;
 vertical-align: middle;
 font-size: 13px;
}
#mainnav.nav ul {
 font-size:13px;
 font-weight:normal;
 background: none;
 text-align: left;
 padding: 5px;
}
#mainnav .active :link, #mainnav .active :visited {
 background: transparent;
 border: none;
 color: @metanavActiveLinkColor;
}
#mainnav .active :link:hover, #mainnav .active :visited:hover {
 border: none;
}

/* Context-dependent navigation links */
#ctxtnav { display:none; }

/*
 * Main aspect of the page.
 */
#banner {
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    color: @metanavColor;
    border-bottom: 1px solid #888;
    background-color: @metanavBackground;
    height: 30px;
}
#metanav {
    color: @metanavColor;
    white-space: nowrap;
}
#metanav.nav ul{
    padding: 5px;
    font-size: 13px;
    font-weight: normal;
}
#metanav :link, #metanav :visited, 
#metanav :link:hover, #metanav :visited:hover {
    background: none;
    border: none;
}
#metanav :link, #metanav :visited {
    color: @metanavColor;
    padding: 0 .4em;
    vertical-align: middle;
    font-size: 13px;
}

/* Page preferences form */
#prefs{
    background-color:@prefsBackground;
    border: 1px solid #998;
}
#prefs fieldset legend { color: @fontColor; }


/* Main */
#main {
    background-color: @pageBackground;
    min-width: @pageWidth;
    max-width: @pageWidth;
    width: @pageWidth;
    margin: 0 auto; 
    padding: .5em 10px 0 10px;
    box-shadow: 0px 5px 10px #888;
}

/* Hide the modify by */
div.trac-modifiedby { display:none; }
/* Hide page path */
#pagepath { display: none; }

#attachments { border: none; padding: 5px; }

.wikipage { padding-left: 0px }

/*
 * Hide default footer
 */
#footer {
    border: none;
    padding:0;
    color: black;
}
#footer #tracpowered, #footer p.left { display:none; }
#footer p.right {
    padding-top: 5px;
    float:none;
    text-align: center;
}

#preview {
    background-color:#444;
}
#info {
    background-color:#444;
}


/* 
 * Style for ticket close
 */
a.closed:link, a.closed:visited {
    color: @linkColor;
}

a em {
    color:@linkColor !important;
}
.column {
    position:relative;
    display:inline;
    min-height:100px;
    background-color:#f0f0f0;
    padding:10px;
    -moz-border-radius: 5px 5px 5px 5px;
    border-radius: 5px 5px 5px 5px;
}

.wikipage h1, .wikipage h2, .wikipage h3 { 
    margin-left: 0px; 
}

h1:hover .anchor, h2:hover .anchor, h3:hover .anchor,
h4:hover .anchor, h5:hover .anchor, h6:hover .anchor {
    visibility: hidden;
}

/*
 * Fix for Admin section
 */
#content.admin h1 {
    float: none;
}

/*
 * Define the default link style.
 */
:link, :visited {
    text-decoration: none;
    border-bottom:none;
    color: @linkColor;
}
:link:hover, :visited:hover {
    background-color: inherit;
    text-decoration: underline;
    color: @linkColor;
}

/* Fix timelime link */
dt :link,
dt :visited,
dt :link:hover,
dt :visited:hover {
    color: @fontColor;
}
dt :link:hover, dt :visited:hover {
    background-color: inherit;
}

/* Roadmap colors */
.milestone .info h2 {
    background: inherit;
}
.milestone .info h2 :link,
.milestone .info h2 :visited,
.milestone .info h2 :link:hover,
.milestone .info h2 :visited:hover {
    color: @fontColor;
}

/* Replace admin.css */
#tabcontent h2 {
    color:@fontColor;
}

/* Replace search.css */
#content.search #results dt a { color: @linkColor; }
#content.search .filters { color: @fontColor; }

/* Replace ticket.css */
h1 .status { color: inherit }
#ticket { background: @ticketBackground; color:@ticketFontColor;  }
#ticket h2.summary { color:@ticketFontColor }

/* Replace repport.css */
h2.report-result { background: inherit; }
.trac-columns { color:@ticketFontColor }

/* Download box */
.download-box {
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.33);
    border-radius: 0.5em;
    /*width: 9.5em;*/
    padding: 1.5em;
    font-family: sans-serif;
    float: left;
    line-height: 1.2em;
    margin: 1.5em 0.41em;
    color: @fontColor;
}
.download-box .details {
    font-weight: normal;
}
a .download-box:hover {
    cursort: hand;
    background-color: @linkColor;  
}
#delete, #rename, #save { margin-left:0; }
