/******************************************************************************/
/*                                  LAYOUT CSS                                */
/******************************************************************************/

/*
==========================General=============================*/
html {
    height: 100%;
    margin-bottom: 1px;
}
body, h1, h2, h3, h4, p, ul, li {
    margin: 0;
    padding: 0;
}
body {
    font-size: 12px;
    font-family: arial, verdana, helvetica, sans-serif;
    line-height: 140%;
    margin: 0;
    padding: 0;
    color: #333333;
    background-color: #ebe7d4;
}
ul {
    list-style: none;
}
dl {
    margin: 0.5em 0;
    line-height: 140%;
}
p {
    margin-bottom: 0.5em;
}
a {
    color: #339BD3;
    text-decoration: none;
}
a:hover {
    color: #339BD3;
    text-decoration: underline;
}
a:focus {
    outline: none;
}
img {
    border: none;
}

/*
=======================Buttons like===========================*/
a.sgl-button, input.sgl-button {
    margin: 0;
    padding: 2px 4px;
    background: url('../images/backgrounds/bg_buttons_blue.gif') 0 50% repeat-x;
    border: 1px outset;
    color: #666666;
    font-size: 1em;
}
input.sgl-button[disabled], input.sgl-button[disabled]:hover {
    background: #efefef;
    border: 1px inset;
    color: #666666;
}
a.sgl-button:hover, input.sgl-button:hover, input.sfhover {
    border: 1px inset;
    color: #666666;
    text-decoration: none;
}
a.narrow, input.narrow {
    width: 8em;
}

/*
======================Global layaout==========================*/
#outer-wrapper {
    min-width: 740px;
    max-width: 1280px;
    margin: 0 auto;
    text-align: left;
}
#header {
    position: relative;
}
#inner-wrapper {
    clear: both;
    padding: 10px 0 10px;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #afafaf;
}
#container {

}
#left-column {
    float: left;
    width: 200px;
}
#middle-column {
    margin-left: 5px; /* 200px */
    margin-right: 5px;
}
#main {
    float: left;
    width: 100%;
    font-size: 1em;
    border: 1px solid #afafaf;
    -moz-border-radius: 0.4em;
    margin-right: -1px; /* hides annoying horizontal scrolling in ie6 */
}
#content {
    clear: both;
    padding: 5px 8px 0;
    background: #f7f4ef; /* FIXME tertiaryLight? */
    -moz-border-radius: 0 0 0.4em 0.4em;
    border-top: 1px solid #ffffff;
    padding-bottom: 40px; /* TO REMOVE */
}
#footer {
    text-align: center;
    border-top: 1px solid #ffffff;
    background: #efefef;
}

/*
=========================Header===============================*/
#header #left {
    height: 100px;
background:#fff;
}
#header h1, #header h1 a {
    float: left;
    margin: 0;
    padding: 0;
}
#header h1 {
height:100px;    width: 600px;
    background: url('../images/logo.png') no-repeat 10px 50%;
    font-size: 2em;
}
#header h1 a {
    position: relative;
    padding: 20px 0 10px;
    text-indent: 80px;
    color: #99CC00;
}
#header h1 a:hover {
    text-decoration: none;
}
#header h1 a span {
    position: relative;
    top: 25px;
display:none;
    left: 20px;
    font-weight: bold;
    letter-spacing: 0.2em;
}
#header #right {
    background-color: #efefef;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #afafaf;
    text-align: right;
}
#header #right .info {
    height: 20px;
    line-height: 20px;
    padding: 0 5px;
}
#header #right img {
    vertical-align: middle;
}

/*
====================Left column block=========================*/
.container {
    min-height: 300px;
    margin: 0 5px;
    padding-bottom: 3em;
    background-color: #cccccc;
    background-image: url('../images/backgrounds/bg_leftcol.jpg');
    background-position: top left;
    background-repeat: repeat-x;
    border: 1px solid #afafaf;
    -moz-border-radius: 0.4em;
}
.block .header {
    margin: 0;
    height: 30px;
    line-height: 30px;
    background: #f7f4ef;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    color: buttonshadow;
    border-bottom: 1px solid #afafaf;
    -moz-border-radius: 0.4em 0.4em 0 0;
}
.block .content {
    border-bottom: 1px solid #ffffff;
}

/*
========================Main block============================*/
#manager-infos {
    float: left;
    width: 100%;
    background: #f7f7f7;
    border-bottom: 1px solid #afafaf;
    -moz-border-radius: 0.4em 0.4em 0 0;
}
#manager-infos h1 {
    float: left;
    height: 30px;
    line-height: 30px;
    text-indent: 2em;
    color: #666666;
    font-size: 1.1em;
}
a#module-conf {
    float: right;
    margin-right: 10px;
    padding-left: 25px;
    height: 30px;
    line-height: 30px;
    background: #efefef;
    background: url('../images/22/action_config.gif') 0 50% no-repeat;
    color: #339BD3;
}
#breadcrumbs {
    float: left;
    width: 100%;
    background: #efefef;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #afafaf;
}
#breadcrumbs p {
    text-indent: 2em;
}
#breadcrumbs a  {
    padding-right: 20px;
    color: #339BD3;
}
#manager-actions {
    position: relative;
    float: left;
    width: 100%;
    height: 32px;
    padding: 1px 0;
    background: #efefef;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #afafaf;
}
html>body #manager-actions {
    padding: 1px 0 0;
}
#manager-actions span {
    float: left;
    text-indent: 2em;
    padding-right: 10px;
    height: 30px;
    line-height: 30px;
    font-weight: bold;
    color: #666666;
}
#manager-actions a {
    float: left;
    display: block;
    margin-right: 0.5em;
    padding: 0 4px 0 28px;
    height: 28px;
    line-height: 28px;
    border: 1px solid #efefef;
    color: #666666;
    text-decoration: none;
    /* -- See below for each action backgroud image
    -----------------------------------------------*/
}
#manager-actions a:hover {
    background-color: #ffffff;
    border-style: solid;
    border-width: 1px;
    border-color: #666666;
}
#manager-actions a:active {
    background-color: #ffffff;
    border: none;
}
#manager-actions a:focus {
    background-color: #ffffff;
    border: none;
}

#manager-actions select {
    float: left;
    margin-top: 5px;
    margin-right: 5px;
}
#content-header {

}
#content-header h2 {
    margin: 5px 0 20px;
    font-size: 1.5em;
    font-weight: normal;
    color: #339BD3;
    text-align: center;
}
/*
======================No forms layout=========================*/
div.fieldsetlike { /*
--------------------- as some pages don't use forms/fieldsets
- e.g. module/overview, we have to put data in a fieldset like
- div to have same render ------------------------------------*/
    padding: 0;
}
div.fieldsetlike h3 {
    margin-bottom: 0.5em;
    font-size: 1.2em;
    color: #afafaf;
}
/*
===================Forms default layout=======================*/
form {
    float: left;
    width: 100%; /* FIXME
    ------2 lines-- determine if could be removed */
    margin: 0;
    padding: 0;
}
fieldset {
    margin: 0 0 1em;
    padding: 10px;
    border: 1px solid #afafaf;
}
fieldset.options h3 {
    visibility: hidden;
}
fieldset.options h3.show {
    visibility: visible;
}
select, input, textarea {
    font-size: 1.1em;
    z-index: 1;
}
html>body p select, html>body p input, html>body p textarea {
    border: 1px solid #339BD3;
}
html>body p input[type="text"] {
    text-indent: 2px;
}
p input:focus, p textarea:focus {
    background: #CFEEFF;
}
fieldset.noBorder {
    padding: 0;
    border: none;
}
fieldset.inside { /*
    -------------- also for pages without form (e.g. module/overview) */
    background: #ffffff;
}
.widget fieldset.inside {
  border: none;
  background-color: transparent;
}
.widget fieldset {
  padding: 0 0 10px 0;
}
.widget {
  height: 170px;
  border: 1px solid #afafaf;
  border-radius: 5px;
  margin: 5px; 
  background-color: white;
  overflow: auto;
} 
.widget tr.infos {
  display: none;
}
.widget fieldset h3 {
  color: #FFF;
  font-size: 1.3em;
  background: url('../images/topnav_stretch.gif') 50% 100% repeat-x;
  padding: 5px;
}
.widget tfoot {
  display: none;
}
.widget a:hover, a.widget:hover{
text-decoration: none;
}


fieldset.options {
    clear: left;
    background: #ffffff;
    border-top: none;
}
form h3 {
    margin-bottom: 0.5em;
    font-size: 1.2em;
    color: #afafaf;
}
fieldset h3 {
    font-size: 1.1em;
}
fieldset p {
    line-height: 1.8;
    margin: 0.5em 0 0.5em;
}
fieldset p label {
    float: left;
    text-align: right;
    padding-right: 20px;
    color: #246C94;
}
fieldset textarea {
    font-family: arial, verdana, helvetica, sans-serif;
}
input.smallText {
    width: 70px;
}
input.mediumText, textarea.mediumText, select.mediumText {
    width: 120px;
}
input.longText, textarea.longText {
    width: 450px;
}
textarea.largeText {
    width: 450px;
    height: 200px;
}
/* --
Definition lists (<dl>) will progressively replace "p label" to display fields labels and values
-----*/
dl.onSide dt {
    float: left;
    width: 140px;
    text-align: right;
}
dl.onSide dt label {
    padding-right: 15px;
}
dl.onSide dd{
    margin-left: 160px;
    margin-bottom: 0.5em;
}
dl.onTop dd {
    margin: 0;
}
dl.buttonsBottom {
    clear: both;
    float: left;
}

/*
==================Tables default layout=======================*/
#container table { /*
------------------- Actually concerns all table but #container specialization is required not to interfere ------------------- with FCKeditor or JsCalendar css */
    margin: 5px 0;
    background: #fff;
    border-collapse: collapse;
    border-width: 1px;
    border-style: solid;
    border-color: #ffffff #cccccc #cccccc #ffffff;
    font-family: helvetica;
}
html>body #container table {
    border-collapse: separate;
    border-spacing: 0px;
}
#container table.noBorder {
    border: none;
}
#container table.transparent {
    background-color: transparent;
    border: none;
}
#container tr {
    height: 24px;
    line-height: 24px;
    vertical-align: middle;
}
tr img, tr input {
    vertical-align: middle;
}
tr th, tr td {
    text-align: center;
    border: none;
}
tr th {
    color: #afafaf;
    font-weight: bold;
}
thead tr {
    background: #339BD3;
    color: #ffffff;
}
thead tr.infos, tfoot tr.infos {
    background: #ebe7d4;
    font-size: 10px;
    color: #339BD3;
}
thead td {
    padding: 0 12px;
}
thead th, thead th a {
    color: #ffffff;
}
thead tr a:hover {
    color: #246C94;
}
tr.backLight {
    background: #ffffff;
    border-bottom: 1px solid #9EDDFF;
}
tr.backDark {
    background: #f7f7f7;
    border-bottom: 1px solid #9EDDFF;
}
tr.backHighlight {
    background: #CFEEFF;
}

/*
==========================Tip boxes===========================*/
span.tipOwner, label.tipOwner, input.tipOwner {
    position: relative;
    cursor: help;
}
label.tipOwner {
    background: url('../images/tooltip.gif') 98% 50% no-repeat;
}
span.tipOwner span.tipText, label.tipOwner span.tipText, input.tipOwner span.tipText {
    display: none;
    position: absolute;
    top: 1.8em;
    left: 100%;
    border: 1px solid #afafaf;
    background-color: #e4ecf4;
    color: #333333;
    text-align: center;
    line-height: normal;
    width: 20em;
    padding: 2px 5px;
    -moz-opacity: 1;
    z-index: 100;
    }
span.tipOwner:hover span.tipText, label.tipOwner:hover span.tipText, input.tipOwner:hover span.tipText {
    display: block;
}
/* Holly Hack here so that tooltips don't act screwy:
 * http://www.positioniseverything.net/explorer/threepxtest.html */
/* Hide next from Mac IE plus non-IE \*/
* html #content {
    height: 1%;
}
/* End hide from IE5/mac plus non-IE */

/*-- Special TipText boxes ----------------------------------*/
span#becareful {
    top: -35px;
    left: -3.5em;
    width: 6em;
    padding: 5px;
    background: #fff;
    border: 1px solid #ff3300;
    color: #ff3300;
    z-index: 150;
}

/*
===================Manager-actions images=====================*/
/*-- Each action +link (<a> tag) has a standard "action" class name
  -- plus a specific <action-type> class name e.g. "add", "edit",...
  -- to define which image to use. This allows to change assigned
  -- images in a single location : here. ---------------------*/
a.action {
    background-position: 3px 50%;
    background-repeat: no-repeat;
}
a.add {
    background-image: url('../images/22/action_add.gif');
}
a.edit {
    background-image: url('../images/22/action_edit.gif');
}
a.delete {
    background-image: url('../images/22/action_delete.gif');
}
a.save {
    background-image: url('../images/22/action_save.gif');
}
a.validate {
    background-image: url('../images/22/action_validate.gif');
}
a.cancel {
    background-image: url('../images/22/action_cancel.gif');
}
a.undo {
    background-image: url('../images/22/action_undo.gif');
}
a.download {
    background-image: url('../images/22/action_download.gif');
}
a.upload {
    background-image: url('../images/22/action_upload.gif');
}
a.reorder {
    background-image: url('../images/22/action_reorder.gif');
}
a.search {
    background-image: url('../images/22/action_search.gif');
}
a.addcat {
    background-image: url('../images/22/action_addcat.gif');
}
a.addrootcat {
    background-image: url('../images/22/action_addrootcat.gif');
}
a.adduser {
    background-image: url('../images/22/action_adduser.gif');
}
a.scannew {
    background-image: url('../images/22/action_scannew.gif');
}
a.delorphaned {
    background-image: url('../images/22/action_delorphaned.gif');
}
a.dnc {
    background-image: url('../images/22/dialog_error.gif');
}
a.print {
    background-image: url('../images/22/action_edit.gif');
}

/*
======================CategoryNav Block=======================*/
div#categorySelect {
    float: left;
    width: 20%;
}
a.catSelect {
    margin-left: 1em;
    padding: 2px 0 2px 20px;
    background: url('../images/16/folder.gif') 0 80% no-repeat;
}
a.catSelect:hover {
    background: url('../images/16/folder_open.gif') 0 80% no-repeat;
    text-decoration: none;
    cursor: pointer;
}
div#categoryNav {
    display: none;
    position: absolute;
    width: 200px;
    background: #ffffff;
    border-style: solid;
    border-color: #339BD3;
    border-width: 1px 2px 2px 1px;
    z-index: 100;
        -moz-opacity: 0.9;
    }

div.close {
    border-bottom: 1px solid #339BD3;
    text-align: right;
}
div.close span {
    padding-right: 20px;
    background: url('../images/close.gif') 92% 50% no-repeat;
    color: #339BD3;
    cursor: pointer;
}

/*
========================Options Links=========================*/
#optionsLinks {
    float:left;
    margin-left: 0px;
    width:100%;
    /* background: url('../images/backgrounds/bg_tabs.gif') repeat-x left bottom; */
    font-size: 0.9em;
}
#optionsLinks ul {
    padding:10px 7px 0;
}
#optionsLinks li {
    float:left;
    width: auto;
    background: url('../images/backgrounds/tab_right.gif') no-repeat right top;
}
#optionsLinks li.current {
    background-image: url('../images/backgrounds/tab_right_on.gif');
}
#optionsLinks a {
    display: block;
    background: url('../images/backgrounds/tab_left.gif') no-repeat left top;
    padding: 5px 10px 4px;
}
#optionsLinks li.current a {
    background-image: url('../images/backgrounds/tab_left_on.gif');
    padding-bottom: 5px;
}

/*
===========================Messages==============================*/

/*-- Seagull Errors ---------------------------------------------*/
.message {
    text-align: center;
    font-size: 0.9em;
    z-index: 1;
}
.message div {
    width: 60%;
    margin: 0 auto 15px;
    padding: 5px 25px;
    background-color: #ffffff;
    background-position: 0 50%;
    background-repeat: no-repeat;
    border-width: 2px;
    border-style: solid;
    -moz-border-radius: 0.4em;
}
.infoMessage {
    background-image: url('../images/22/dialog_info.gif');
    border-color: #00ba44;
}
.errorMessage {
    background-image: url('../images/22/dialog_error.gif');
    border-color: #ff2200;
}
.warningMessage {
    background-image: url('../images/22/dialog_warning.gif');
    border-color: #ffa900;
}
.info {
    color: #00ff00;
}
.error, .required {
    color: #ff2200;
}
.warning {
    color: #ffa900;
    font-size: 1.2em;
}

/*-- PHP Errors by ErrorHandler.php -----------------------------*/


/*-- PEAR Errors ------------------------------------------------*/
.errorContainer {
    text-align: left;
}
.errorContainer div{
    width: auto;
    margin: 0;
    padding: 5px 0;
    border: none;
}
.errorContainer .errorHeader {
    padding-left: 30px;
    background-image: url('../images/22/dialog_error.gif');
    text-transform: uppercase ;
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 0.3em;
    color: #ff2200;
}
.errorContainer .errorContent {

}

/*-- Errors in submitted forms ----------------------------------*/
p.errorBlock label {
    background: url('../images/16/dialog_error.gif') 98% 50% no-repeat;
    font-weight: bold;
}
p.errorBlock span.required {
    display: none;
}
p.errorBlock span.error {
    display: block;
    line-height: normal;
}
p.errorBlock input, p.errorBlock select {
    display: block;
    border: 1px solid #ff2200;
}

/*
========================Miscellaneous=========================*/
.floatLeft {
    float: left;
}
.floatRight {
    float: right;
}
.clear {
    clear: both;
}
.spacer {
    clear: both;
    visibility: hidden;
    line-height: 1px;
}
.left {
    text-align: left;
}
.right {
    text-align: right;
}
.center {
    text-align: center;
}
.altFont {
    font-family: tahoma, serif;
}
.hide {
    display: none;
}
.narrow {
    width: 45%;
}
.wide {
    width: 60%;
}
.full {
    width: 100%;
}
.noBg {
    background: none;
}
.pager {
    white-space: nowrap;
    font-size: 1.1em;
}
.pager .results {
    padding-right: 0.5em;
    color: #666666;
}
.pager .currentPage {
    font-weight: bold;
    padding: 0 0.75em;
    color: #246C94;
    font-weight: bold;
}
.pager a {
    padding: 0 0.75em;
    color: #339BD3;
    font-weight: bold;
}
.pager a:hover {
    background: #246C94;
    color: #ffffff;
}
a.clearSearch {
    background: url('../images/16/action_no.gif') no-repeat 5px 50%;
    margin-left: 10px;
    padding: 3px 5px 3px 25px;
    color: #666666;
    font-size: 1.1em;
}
a.clearSearch:hover {
    text-decoration: none;
    color: #666666;
}
.disabled, a.disabled, a.disabled:visited {
    color: grey;
}

img.disabled {
    opacity: 0.3;
}

#debug {
    color: #333333;
    position: absolute;
    z-index: 999;
    top: 0px;
    right: 0px;
    border: 1px black solid;
    margin: 10px;
    padding: 5px 20px;
    width: 120px;
    height: 300px;
    background-color: grey;
    opacity:0.9;
    text-align: left;
    overflow: auto;
}
#debug a, #debug a:visited {
    color: #CCCCCC;
}

.listalign p label{
    float: left;
    width: 100px;
}

.formalign p label{
    float: left;
    width: 200px;
}
.formalign div {
    margin-left: 270px;
}

a.moveRemove {
    display: block;
    padding: 0 20px 0 0px;
    background: url('../images/16/action_no.gif') 95% 50% no-repeat;
}
a.moveRight {
    display: block;
    padding: 0 20px 0 0;
    background: url('../images/16/move_right.gif') 95% 50% no-repeat;
}
a.moveLeft {
    display: block;
    padding: 0 0 0 20px;
    background: url('../images/16/move_left.gif') 5% 50% no-repeat;
}

/* TOP Menu */
ul#topnav {
	margin: 0; padding: 0;
	float: left;
	width: 100%;
	list-style: none;
	position: relative; /*--Set relative positioning on the unordered list itself - not on the list item--*/
	font-size: 1.2em;
	font-weight: bold;
	background: url('../images/topnav_stretch.gif') repeat-x;
}
ul#topnav li {
	float: left;
	margin: 0; padding: 0;
	border-right: 1px solid #555; /*--Divider for each parent level links--*/
}
ul#topnav li a {
	padding: 10px 15px;
	display: block;
	color: #f0f0f0;
	text-decoration: none;
}
ul#topnav li:hover, ul#topnav li.current { 
  background: #339BD3 url('../images/topnav_active.gif') repeat-x; 
}
/*--Notice the hover color is on the list item itself, not on the link. This is so it can stay highlighted even when hovering over the subnav--*/

ul#topnav li span {
	float: left;
	padding: 7px 0;
	position: absolute;
	left: 0; top:35px;
	display: none; /*--Hide by default--*/
	width: 100%;
	background: #339BD3;
	color: #fff;
}
ul#topnav li:hover span, ul#topnav li.current span { 
  display: block; /*--Show subnav on hover--*/
}
ul#topnav li span a { 
  display: inline; /*--Since we declared a link style on the parent list link, we will correct it back to its original state--*/
}

ul#topnav li span a:hover, ul#topnav li span a.current {
  text-decoration: underline; color: #99CC00; 
}

#header .info {
  padding: 0px;
  color: black;
}

img.chart {
  width: 95%;
}


/* ========================POPUP=========================*/

.popup_mask {
  position:absolute;
  left:0;
  top:0;
  z-index:9000;
  background-color:#000;
  display:transparent;
}
  
#popup_boxes .popup_window {
  position:absolute;
  left:0;
  top:0;
  width:140px;
  height:200px;
  display:none;
  z-index:9999;
  padding:20px;
}

#popup_boxes .popup_dialog {
  /*background:url('../images/notice.png') repeat 0 0 transparent; */
  /*background-color: rgb(0,108,64); */
  width:500px; 
  height:300px;
  padding:25px 25px 25px 25px;
  background-color:#99cc00;
  border-radius: 3%;
}

/* Animation when action link is clicked */
.action-pulse {
  position: relative;
  left: -9999px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #9880ff;
  color: #9880ff;
  box-shadow: 9999px 0 0 -5px #9880ff;
  animation: actionPulse 1.5s infinite linear;
  animation-delay: .25s;
}

.action-pulse::before, .action-pulse::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #9880ff;
  color: #9880ff;
}

.action-pulse::before {
  box-shadow: 9984px 0 0 -5px #9880ff;
  animation: actionPulseBefore 1.5s infinite linear;
  animation-delay: 0s;
}

.action-pulse::after {
  box-shadow: 10014px 0 0 -5px #9880ff;
  animation: actionPulseAfter 1.5s infinite linear;
  animation-delay: .5s;
}

@keyframes actionPulseBefore {
  0% {
    box-shadow: 9984px 0 0 -5px #9880ff;
  }
  30% {
    box-shadow: 9984px 0 0 2px #9880ff;
  }
  60%,
  100% {
    box-shadow: 9984px 0 0 -5px #9880ff;
  }
}

@keyframes actionPulse {
  0% {
    box-shadow: 9999px 0 0 -5px #9880ff;
  }
  30% {
    box-shadow: 9999px 0 0 2px #9880ff;
  }
  60%,
  100% {
    box-shadow: 9999px 0 0 -5px #9880ff;
  }
}

@keyframes actionPulseAfter {
  0% {
    box-shadow: 10014px 0 0 -5px #9880ff;
  }
  30% {
    box-shadow: 10014px 0 0 2px #9880ff;
  }
  60%,
  100% {
    box-shadow: 10014px 0 0 -5px #9880ff;
  }
}
