/**
 * Mahara: Electronic portfolio, weblog, resume builder and social networking
 * Copyright (C) 2006-2007 Catalyst IT Ltd (http://www.catalyst.net.nz)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @author     Paul Walker <paul.walker@catalyst-eu.net>
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL
 * @copyright  (C) 2009 Catalyst IT Europe http://catalyst-eu.net
 */

/* General rules */
body, body#micro {
    background: #ccdce7 url(../images/background.gif) repeat-x top left;
	color: #474220;
}
acronym {
    border-bottom: 1px dotted #d4d1c0;
}
a, a:visited, a:link, a:active {
    color: #6e8e00;
    text-decoration: none;
}
a:hover, a:focus {
    color: #84aa00;
    text-decoration: underline;
}
h1,
h2 {
    color: #4c711d;
}
h3, 
h4 {
    color: #1E6297;
}
h5,
h6 {
    color: #5c8727;
}

/**************************** Tables ****************************/
.main-column thead th {
    color: #186194;
	border-bottom: 1px solid #ccc;
}
.main-column tbody th {
    color: #186194;
}
/* table with th border-bottom */
#searchresults thead th,
.filelist,
.tag-results #results {
	border-bottom: 1px solid #ccc;
}
/* table with tfoot border-top */
#searchresults tfoot td,
#adminstitutionslist tfoot td,
#profileicons tfoot td,
#activitylist tfoot td {
	border-top: 1px solid #ccc;
}
.tablerenderer-loading {
}
/* Alternative row background colours */
.r0, .r0 td, .d0 {
    background-color: #fafbf7;
}
.r1, .r1 td, .d1 {
    background-color: #f3f7ec;
}
tr.folder td {
	background-color: #f4f7f9 !important;
}

/**************************** Pagination ****************************/
div.pagination a {
	background-color: #E7EFC5;
	border: 1px solid #E7EFC5;
}

/**************************** Forms ****************************/
/* Label */
label {
	color: #333;
}
/* required */
.required th, .required label, .requiredmarker, #register_tandc_container th {
    color: #c81511;
}
/* override required colour to normal colour */
.required label.plain, .required.radio td label, .required.emaillist td label {
	color: #474220;
}
/* description */
.pieform td.description {
	color: #7d7d7d;
}

/* Legend */
legend {
	color: #1e6297;
}

/* Fieldset */
fieldset {
    border: 1px solid #95a8b7;
}

/* Text fields and such */
input.text, 
input.password, 
input.file,
textarea,
input[type=text],
input[type=password],
input[type=file] {
}

/****************************** Buttons ****************************/
/** input buttons **/
.btn,
input.submit,
input.cancel,
button,
.buttondk,
input.button,
input.select,
input#files_filebrowser_edit_artefact,
ul.groupuserstatus li a {
	border-color: #d5ed8a #496000 #496000 #d5ed8a;
	background: #547b23 url(../images/btn-bkgd.gif) repeat-x left top;
	color: #FFF !important;
}
/** hover for buttons **/
.btn:hover,
input.submit:hover,
input.cancel:hover,
button:hover,
.buttondk:hover,
input.button:hover,
input.select:hover,
input#files_filebrowser_edit_artefact:hover,
ul.groupuserstatus li a:hover {
	background: #94a44a url(../images/btn-bkgd-hover.gif) repeat-x left top;
	text-decoration: none;
}
/** Depress for buttons **/
.btn:active,
input.submit:active,
input.cancel:active,
button:active,
.buttondk:active,
input.button:active,
input.select:active,
input#files_filebrowser_edit_artefact:active,
ul.groupuserstatus li a:active {
	border-color: #496000 #d5ed8a #d5ed8a #496000;
	background: #94a44a url(../images/btn-bkgd-hover.gif) repeat-x left 1px;
	color: #FFF;
}

/* buttons that look like links with icons */
.icon {
	color: #6e8e00;
}
/* except those that shouldn't */
span.btn a.icon, a span.icon {
	color: #FFF;
}
/* buttons that look like links */
.linkbtn {
	color: #6e8e00; 
}

/* Search buttons */
#usf_submit,
#usf_submit:hover {
	background: transparent url(../images/btn-search.gif) no-repeat !important;
	border: 0;
	color: #6e8e00;
	text-indent: -999px;
	font-size: 1%;
	cursor: pointer;
	vertical-align: top;
	height: 24px;
	width: 24px;
	margin-left: 2px;
}

/**************************** Top of page elements ****************************/
#container, #containerX {
	background: none;
	* overflow: hidden;
}
#top-wrapper {
    background: url(../images/top-wrapper-bkgd.png) repeat-x left top;
	border: 0;
	width: 90%;
	min-width: 950px;
}
#containerX #top-wrapper {
	height: auto;
}
#loading-box {
    background-color: #ECF3D4 !important;
}
#site-logo {
    padding: 0;
    margin: 0;
}
#top-wrapper ul,
#top-wrapper li {
    padding: 0;
    margin: 0;
    text-align: right;
    display: inline;
}
/* Search and language bar */
#languageselect, #usf {
	font-size: .8333em !important;
}
#usf_query_container input {
    color: #767676;
	background-color: #ecf3d4;
	width: 205px;
	padding: 2px 5px;
	border: 1px solid #d1d1d1;
	margin-right: 3px;
	margin-top: 1px;
}

/**************** TOP NAVIGATION ****************/
#right-nav ul {
}
#right-nav li.identity a {
    color: #767676;
}
#main-nav {
	height: 25px;
	border-bottom: 0;
}
#main-nav li {
    color: #e6c560;
    * zoom: 1;
}
#main-nav li a,
#main-nav li a:link,
#main-nav li a:visited,
#main-nav li a:active {
	background: url(../images/menu-dividerbg.gif) no-repeat left top;
    color: #FFF;
	font-size: 12px;
	height: 25px;
	line-height: 25px;
    text-decoration: none;
	display: block;
	float: left;
	padding: 0 10px 0 12px;
	border-right: 1px solid #4C711D;
}
#main-nav li a:hover {
    color: #e4ffb4;
    text-decoration: none;
}
#main-nav li.selected a,
#main-nav li.selected a:link,
#main-nav li.selected a:visited,
#main-nav li.selected a:active {
    color: #4C711D;
	background: url(../images/menu-over-bg.gif) no-repeat left bottom;
}


/**************** SUB NAVIGATION ****************/
#sub-nav {
    font-size: 12px;
    font-weight: bold;
    background: url(../images/submenu-bg.gif) repeat-x left top;
    height: 25px;
	line-height: 25px;
	border: none;
}
#sub-nav ul {
    padding: 0 0 0 5px;
	background: none;
}
#sub-nav li a,
#sub-nav li a:link,
#sub-nav li a:visited,
#sub-nav li a:active {
    color: #474220;
	height: 25px;
	padding: 0 12px 0 10px;
	background: url(../images/submenu-divider.gif) no-repeat right top;
	display: block;
	float: left;
}
#sub-nav li a:hover {
    color: #7e7327;
    text-decoration: none;
}
#sub-nav li.selected a,
#sub-nav li.selected a:link,
#sub-nav li.selected a:visited,
#sub-nav li.selected a:active {
	background: url(../images/submenu-over-bg.gif) no-repeat right top;
    color: #4c711d;
}

/**************** IN PAGE TAB NAVIGATION ****************/
ul.in-page-tabs,
ul.edit-view-tabs {
  line-height: 25px;
  height: 25px;
  font-size: 12px;
  background: #d1d1d1 url(../images/tabs-bg.gif) repeat-x left top;
  display: block;
  padding-left: 1px;
}
ul.in-page-tabs li,
ul.edit-view-tabs li {
  float: left;
  height: 25px;
  margin: 0 !important;
  background: none;
  line-height: 25px;
}
ul.in-page-tabs li a, ul.in-page-tabs li a:link, ul.in-page-tabs li a:visited, ul.in-page-tabs li a:active, ul.in-page-tabs li input.linkbtn,
ul.edit-view-tabs li a, ul.edit-view-tabs li a:link, ul.edit-view-tabs li a:visited, ul.edit-view-tabs li a:active {
  color: #1E6297;
  padding: 0 12px 0 10px;
  text-decoration: none;
  background: transparent url(../images/tabs-divider.gif) no-repeat right top;
  border-right: 1px solid #d1d1d1;
  border-bottom: 1px solid #d1d1d1;
}
ul.in-page-tabs li a:hover, ul.in-page-tabs li input.linkbtn:hover,
ul.edit-view-tabs li a:hover {
  color: #7E7327;
}
ul.in-page-tabs li a.current-tab, ul.in-page-tabs li a.current-tab:link, ul.in-page-tabs li a.current-tab:visited, ul.in-page-tabs li a.current-tab:active, ul.in-page-tabs li input.linkbtn.current-tab,
ul.edit-view-tabs li a.current-tab, ul.in-page-tabs li a.current-tab:link, ul.edit-view-tabs li a.current-tab:visited, ul.edit-view-tabs li a.current-tab:active {
  background: transparent url(../images/tabs-over-bg.gif) no-repeat right bottom;
  color: #000;
  border-bottom: 1px solid #FFF;
}
.subpage {
	display: block;
	border-top: 0;
}

#containerX #main-wrapper,
#mainmiddle {
	width: 90%;
	min-width: 950px;
}

/**************** SIDEBAR *********/
#left-column,
#right-column {
    padding: 0;
}
div.sideblock {
    background: url(../images/sidebar-bg.gif) repeat-x top;
}
div.sideblock h3 a,
div.sideblock h3 a:link,
div.sideblock h3 a:visited,
div.sideblock h3 a:active {
	color: #1E6297;
}
div.sideblock h3 a:hover {
	color: #267bbd;
}

/* Side Login */
#sb-loginbox input.text,
#sb-loginbox input.password {
    width: 225px;
	border: 1px solid #d1d1d1;
}
#sb-loginbox label {
	color: #677A8A;
}

/* Side Profile */
#sb-profile ul ul a,
#sb-profile ul ul a:link,
#sb-profile ul ul a:visited,
#sb-profile ul ul a:active {
	color: #7f9d16;
}
#sb-profile li#pendingfriends a,
#sb-profile li#pendingfriends a:link,
#sb-profile li#pendingfriends a:visited,
#sb-profile li#pendingfriends a:active {
	color: #3986c3 !important;
}


/* Side Quota Bar */
#quota_used {
    color: #3986c3;
}
#quota_total {
    color: #7f9d16;
}

/* Side Search */
.sidebar #selfsearch input {
	width: 186px;
    padding: 3px 5px;
    font-size: 1em;
    color: #767676;
	background-color: #ecf3d4;
}

/******************** FOOTER ****************************/
#footer-wrap {
    background: #939393;
	border: 0;
    color: #bababa;
    width: 90%;
    min-width: 950px;
}
#footer {
	padding: 10px;
}
#micro #footer-wrap {
	background-color: #939393;
    color: #bababa;
}
#micro #footer-wrap #performance-info {
	margin: 0;
	padding: 10px;
}
#footernav {
    color: #bababa;
}
#footernav a,
#footernav a:link,
#footernav a:active,
#footernav a:visited {
    color: #FFF;
}
#footernav a:hover {
    color: #FFF;
}
#powered-by {
}
#performance-info {
	color: #bababa;
}
#performance-info span {
	color: #c9c9c9;
}
#performance-info a,
#performance-info a:hover {
	color: #bababa;
	text-decoration: none;
}
#version {
	color: #c9c9c9;
}
#release {
	color: #c9c9c9;
}
#release a {
    color: #FFF;
}


/* Group: members (Add members) */
#addmembers {
	background-color: #EBF0F4;
	border: 1px solid #95A8B7;
}

/* Settings > Preferences */
#accountprefs table label,
#accountprefs table th {
	color: #66879F;
}
#accountprefs table td label {
	color: #333333;
	font-size: 1em;
}
/* Collections */
#collectionviews {
	background: #f6f6f6;
}
#collectionnavwrap {
	background: #F3F7EC;
}

.inbox-message {
	background: #FAFBF7;
}

.attachments tbody th {
	color: #333;
}

/* Edit Access boxes */
#editaccess #editaccess_collections_container,
#editaccess #editaccess_views_container,
#editaccess #editaccess_accesslist_container,
#editaccess #editaccess_more_container {
	background: #FAFBF7;
	border: 1px solid #F3F7EC;
}

.group-info {
	background: #F5F9FC;
	border: 1px solid #DDEBF5;
}
.memberssearch {
	background: #F5F9FC;
}

/**************** DROPDOWN NAVIGATION ****************/
/**************** SUB NAVIGATION *********************/

#main-nav .dropdown-sub {
    top: 25px !important;
}
#main-nav .dropdown-sub li span {
	border-top: 1px solid #dfdfdf !important;
	border-bottom: 1px solid #9c9c9c !important;
}
#main-nav .dropdown-sub li a,
#main-nav .dropdown-sub li a:link,
#main-nav .dropdown-sub li a:visited,
#main-nav .dropdown-sub li a:active {
    background: #cbcbcb !important;
    color: #474220 !important;
    text-decoration: none !important;
}
#main-nav .dropdown-sub li a:hover {
    color: #7E7327 !important;
    text-decoration: none !important;
		background: #d5d5d5 !important;
}
