/* default html styles for cross-browser consistency */
body, div, p, form { margin: 0px; padding: 0px; }
body { line-height: 120%; font-size: 12px; font-family: sans-serif; }

h1, h2, h3, h4, h5 { padding: 0px; line-height: 120%; font-weight: bold; }

h1 { margin: 10px 0px 4px; }
h2 { margin: 8px 0px 4px; }
h3 { margin: 6px 0px 4px; }
h4 { margin: 4px 0px 4px; }
h5 { margin: 4px 0px 4px; }
h5 { margin: 4px 0px 4px; }

h1 { font-size: 150%; }
h2 { font-size: 125%; }
h3 { font-size: 100%; }
h4 { font-size: 100%; }
h5 { font-size: 100%; }
h6 { font-size: 100%; }

a { text-decoration: underline; font-weight: normal; }
p { padding: 0.75em 0em; }
li { padding: 0.4em 0px; }
ol, ul { margin: 0px; padding: 0px 0px 0px 2.5em; }
table { border-collapse: collapse; font-size: 1em; }
th, td { padding: 2px; vertical-align: top; }
a img { border: none; }

/* css menus */
.web_cssMenu { position: relative; text-align: center; zoom: 1; }
.web_cssMenu ul:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.web_cssMenu ul { margin: 0px; padding: 0px; list-style: none; width: 100%; }
.web_cssMenu li { margin: 0px; padding: 0px; position: relative; float: left; _width: 0px; z-index: 2; }
.web_cssMenu ul ul { 
  position: absolute; border: 1px solid black; display: none; top: 100%; left: 0px; width: auto; 
  _margin-top: expression(this.parentNode.clientHeight % 2 == 0 ? 0 : 1);
}
.web_cssMenu li li { float: none; vertical-align: bottom; width: 12em; }
.web_cssMenu ul ul ul { left: 100%; top: 0px; margin-top: 0px; }
.web_cssMenu li a { display: block; padding: 3px; zoom: 1; }
.web_cssMenu li li a { white-space: nowrap; }
.web_cssMenu li:hover > ul { display: block; }
.web_cssMenu li { behavior: url('apps/webcore/js/IEmenu.htc'); }

.web_cssMenu li.web_last { float: none; width: auto; z-index: 1; }
.web_cssMenu li.web_last ul { left: auto; right: 0px; }
li.web_cssMenuRight ul { left: auto; right: 0px; text-align: right; }
li.web_cssMenuRight { float: right; }

/* masthead */
.web_masthead { z-index: 5; position: relative; background: #EFEBDE; border-bottom: 1px solid #aaa; line-height: 2em; }
.web_masthead ul ul { background: #efebde; border-color: #aaa; line-height: 1.8em; text-align: left; }
.web_masthead li a { padding-left: 15px; padding-right: 5px; white-space: nowrap; }
li.web_cssMenuRight a { padding-left: 5px; padding-right: 15px; }
.web_masthead a, .web_masthead a:visited { color: blue; text-decoration: none; font-weight: normal; }
.web_masthead a:hover  { color: maroon; }

/* notices */
.web_notice { 
  text-align: center; background: lightyellow; margin: 4px auto;
  font-weight: bold; border: 1px solid black; padding: 3px; color: black;
}
.web_notice a, .web_notic a:visited { color: navy; }
.web_notice a:hover { color: darkgreen; }

/* messages */
.web_fatal { color: red; }
.web_error { color: red; }
.web_warn { color: orange; }
.web_info { color: green; }

/* data grid styles */
.web_data { border: 1px solid; border-color: #888; width: 100%; }
.web_data thead, .web_data tfoot { background-color: #ccc; color: black; }
.web_data thead a, .web_data tfoot a { color: blue; }
.web_data tr:hover { background-color: #ddd; color: black; }
.web_data tr:hover a { background-color: #ddd; color: blue; }
.web_data tr:hover a:hover { background-color: #ddd; color: red; }
.web_data td, .web_data th { padding: 0.5em; }

/* deprecated context menus */
.web_context-point, .web_context-region { position: relative; cursor: pointer; }
.web_context-point img { border: 0px !important; }
.web_context-box { 
  display: none; position: absolute; margin: 0px; padding: 3px;
  border: 1px solid #888; top: 2px; left: 2px; width: auto; opacity: 0.95;
  color: black !important; font-size: 12px !important; background: white !important;
}
.web_context-box-open { display: block; }
.web_context-menu { border: 0px; margin: -3px; padding: 0px; }
.web_context-menu th { cursor: default; }
.web_context-menu td, .web_context-menu th { 
  text-align: left !important; white-space: nowrap; padding: 4px !important; 
}
.web_context-menu-col1 { background: #ddd; width: 16px; }
.web_context-menu-col2 a { display: block; text-decoration: none; color: #333 !important;  font-weight: normal; }
.web_context-menu tr:hover, .web_context-menu tr:hover .web_context-menu-col1 { background: #eee; }

/* general menus */
.web_menu { 
  border: 1px solid gray; background: #dddddd; color: #555; line-height: 1.5em; 
  padding: 2px; display: block; margin: 1em 0em;
}
.web_menu a { color: #444 !important; }
.web_menu a:hover { color: black !important; }
.web_menu img { vertical-align: middle; }
.web_menuItem { white-space: nowrap; padding: 4px; *white-space: normal; }

/* popup help boxes */
.web_help { position: relative; }
.web_help ul { 
  position: absolute; display: none; border: 1px solid black; padding: 3px; 
  font-weight: normal; color: black; top: 3px; left: 3px; background: white;
  list-style-type: none; margin: 0px; width: 350px;
}
.web_help li { padding: 0px; margin: 0px; }

/* display the icons when the mouse is hovered over */
.web_help:hover ul { display: block; }
.web_help { behavior: url('apps/webcore/js/IEmenu.htc'); }

/* overlabels for compact forms */
div.compact { position: relative; }
label.overlabel { position: absolute; top: 3px; left: 5px; z-index: 1; color: #555; }

/* miscellaneous component styling */
.web_breadcrumbs { margin: 1em 0em; padding-bottom: 4px; }
.web_pager { margin: auto; text-align: center; }
.web_iframe { width: 100%; height: 700px; border: none; }
.myFaces_panelTabbedPane_activeHeaderCell input { color: inherit; }

/* richfaces styles */
body.rich-container { font-size: 11px; }
body.rich-container p { line-height: 150%; }
.rich-tab-bottom-line td,
.rich-calendar-popup td, .rich-calendar-popup th,
.rich-calendar-time-layout-fields td { padding: 0px; margin: 0px; }
.rich-tabhdr-side-cell td { padding: 4px 10px 3px; }
td.rich-tabpanel-content { padding: 1.2em; }

/* common use styles */
.web_required { background: #ffe6e6; }
table.web_centering { margin: auto; text-align: center; }
table.web_centering td { vertical-align: middle; }

/* print styles */
@media print {
  .web_menu { display: none; }
  .web_context-point { display: none; }
  .web_masthead { display: none; }
}
