/**
 * Copyright 2007-2008, EITEP;
 * @author W-Mark Kubacki; kubacki@hurrikane.de
 */

/*** style.css */
html, body {
	color: black;
	background-color: white;
	font-family: Arial, Helvetica, sans-serif;
	margin: 0;
	padding: 0;
}
#custom-doc {
	text-align: left;
	padding: 0;
	margin: 0;
	width: auto;
/*	min-width: 1250px; */
}
ul.sidebyside {
	margin: 0;
	list-style-type: none;
	padding: 0;
}
ul.sidebyside li {
	display: inline;
	padding: 0 0.4em 0 0.4em;
	border-left: 1px solid #a0a0a0;
}
ul.sidebyside li:first-child,
ul.sidebyside li.first {
	border-left: none;
}
hr {
	visibility: hidden;
	clear: both;
}
#bd {
	margin: 0.3em 1em 0 1em;
	min-height: 340px;
}
#ft {
	margin: 0.7em 1em 0 1em;
	padding-top: 0.5em;
	background: url('/static/images/EITEP/hor_ver_1px.png') top left no-repeat;
	font-size: 85%;
	color: #c0c0c0;
}
#bd h2 {
	font-size: 160%;
	font-weight: bold;
	max-width: 800px;
	background: url('/static/images/EITEP/hor_ver_1px.png') bottom left no-repeat;
	margin-bottom: 0.7em;
}
span.fielderror {
	color: #ff0000;
}
input[type="text"], input[type="password"], select, textarea {
	border: 1px solid #a7a6aa;
}
input[readonly] {
	background-color: #f0f0f0;
}
input.errorous {
	border: 1px solid #ff0000;
}
input.changed {
	border: 1px solid #215495;
}
input[class~=errorous][class~=changed] {
	border: 1px solid #d403ff;
}
iframe {
	border: none;
}

/* company view */
div.item_heading {
	width: 100%;
	max-width: 800px;
}
div.item_heading h2 {
	float: left;
	font-size: 120%;
	font-weight: bold;
	margin: 0.5em 0 0.5em 1em;
}
div.item_heading img {
	float: right;
	max-width: 240px;
}

/* header */
#main_menu_bar {
	background: url(/static/images/portal/shdw.png) #cbcbcb bottom repeat-x;
	padding-bottom: 4px;
}
#main_menu_bar table {
	background: url(/static/images/portal/searchBk.png) #cbcbcb top repeat-x;
	padding-top: 5px;
}
#main_menu_bar tr.hd td:first-child,
#main_menu_bar tr.ft td:first-child {
	padding-left: 5px;
	width: 18em;
}
#main_menu_bar tr.hd td {
	padding-top: 5px;
}
#main_menu_bar tr.ft {
	border-top: 1px solid #cbcbcb;
	background: url(/static/images/portal/striped_grey_ver.png) #333333 bottom repeat-x;
}
#main_menu_Bar tr.ft td {
	padding-top: 1px;
	padding-bottom: 1px;
}
#main_menu_bar td.login {
	text-align: right;
	padding-right: 5px;
}
#main_menu_bar td.login img {
	margin: 0 0 0 0;
}
#main_menu_bar h1 {
	font-size: 120%;
	font-weight: bold;
	float: left;
}
#global_spinner {
	float: left;
	margin-left: 1.5em;
	width: 16px;
}
#main_menu_bar img {
	margin-left: 1em;
	margin-bottom: 4px;
}
#main_menu_bar a {
	text-decoration: none;
}
#main_menu_bar div.mainmenu a {
	color: black;
}
#main_menu_bar tr.ft a {
	color: white;
}
#main_menu_bar input {
	border: 1px solid #cbcbcb;
	margin-top: 2px;
	margin-bottom: 2px;
}
#main_menu_bar .selected {
	font-weight: bolder;
}

/* tabs */
div.yui-gc div.first .panel {
	min-height: 220px;
}
.panel {
	width: 100%;
	max-width: 800px;
}

/* misc */
#status_block,
div.notice,
div.flash {
	max-width: 746px;
	border: 1px solid;
	padding: 1em 0 1em 48px;
	background-image: url(/static/images/info.png);
	background-position: left top;
	background-repeat: repeat-y;
}
#status_block,
div.flash {
	background-image: url(/static/images/ok.png);
}
.dyn_app_list textarea {
	width: 600px;
	height: 100px;
}
#notedyn_input {
	width: 600px;
	height: 60px;
}
div.dyn_list {
	margin-top: 0.1em;
	margin-left: 3px;
}
table.list td, table.grid td
table.list th, table.grid th {
	font-family: Arial,Tahoma,Helvetica,sans-serif;
	font-size: 85%;
	white-space: nowrap;
	border-bottom: 1px solid #ebebeb;
	border-right: 1px solid #ebebeb;
	padding: 3px 5px;
}
#statistic table,
table.grid,
table.list {
	margin-top: 0.5em;
	width: 98%;
	height: 100%;
	max-width: 794px;
}
#statistic table th,
table.grid th,
table.list th {
	border-bottom: 1px solid #6fa0df;
	border-right: none;
	background-image: url('/tg_widgets/scriptaculous/images/grid_head.png');
	background-position: right bottom;
}
#statistic table td,
table.grid td,
table.list td {
	border-collapse: collapse;
	border: 1px solid #ebebeb;
	padding: 2px 0 0.2em 0.2em;
}
#email_txt {
	width: 100%;
	max-width: 794px;
	min-height: 24em;
}
.head_fields {
	background: #ffc;
	padding: 2px;
	border-bottom:1px solid #ddd;
}
#user_list .locked {
	text-decoration: line-through;
}

/* major input forms */
form.tableform table,
form[name='address_input_form'], form[name='address_input_form'] table,
form[name='company_input_form'], form[name='company_input_form'] table,
form[name='contact_input_form'], form[name='contact_input_form'] table {
	width: 100%;
	max-width: 794px;
}
form.tableform table th,
form.tableform table td,
form[name='address_input_form'] table td,
form[name='company_input_form'] table td,
form[name='contact_input_form'] table td {
	padding-top: 0.05em;
	padding-bottom: 0.05em;
}
form.tableform table th:first-child,
form[name='address_input_form'] table th:first-child,
form[name='company_input_form'] table th:first-child,
form[name='contact_input_form'] table th:first-child {
	width: 25%;
	padding-left: 0.2em;
}
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
a.quasi_btn:hover {
	background: #CCCCBB none repeat scroll 0%;
}
input[type="button"],
input[type="submit"],
input[type="reset"],
a.quasi_btn {
	background: #EEEEEE none repeat scroll 0%;
	border: 1px outset #CCCCCC;
	color: #222222;
	padding: 0.05em 0.5em;
	text-decoration: none;
	white-space: nowrap;
}
a.clickedit {
	background-image: url(/static/images/16px/edit.png);
	background-position: left center;
	background-repeat: no-repeat;
	padding-left: 18px;
	text-decoration: none;
	color: inherit;
}

/* category_selector */
#category_selector_pane {
	text-align: left;
}
#category_selector_pane ul {
	padding-left: 1.2em;
}
#category_selector_pane li {
	list-style: square;
}

/* autocomplete */
div.autocomplete {
	position: absolute;
	width: 250px;
	background-color: white;
	border: 1px solid #888;
	margin: 0px;
	padding: 0px;
}
div.autocomplete ul {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
}
div.autocomplete ul li.selected {
	background-color: #ffb;
}
div.autocomplete ul li {
	list-style-type: none;
	display: block;
	margin: 0;
	padding: 2px;
	cursor: pointer;
}

/* tableform */
form.tableform input[type="text"],
form.tableform input[type="password"] {
	width: 98%;
}

/* grouped forms */
form.grouped tr.grouped td,
form.grouped tr.grouped th {
	background-color: #f1f1d8;
}
form.grouped tr.grouped_start td,
form.grouped tr.grouped_start th {
	padding-top: 0.4em;
	border-top: 1px solid #c8c7b5;
}
form.grouped tr.grouped_end td,
form.grouped tr.grouped_end th {
	border-bottom: 1px solid #c8c7b5;
	padding-bottom: 0.4em;
}

/* ModelDateIdInfo */
table.model_date_id_info {
	margin-top: 0.5em;
	width: 100%;
	max-width: 800px;
	margin-bottom: 1em;
}
table.model_date_id_info th,
table.model_date_id_info td {
	padding-left: 0.5em;
	padding-right: 0.2em;
	padding-top: 0.1em;
	padding-bottom: 0.1em;
}
table.model_date_id_info th {
	background-image: url(/tg_widgets/scriptaculous/images/thirdparty/tabright10.gif);
	background-color: #c8c7b5;
	border-width: 0;
	border-left: 1px solid #cccccc;
	color: #ffffff;
	font-weight: bold;
}
table.model_date_id_info td {
	border-width: 0;
	background: url('/static/images/portal/searchBk.png') #cbcbcb top repeat-x;;
}

/* dyn_list */
.dyn_list .list {
	float: left;
	clear: left;
	width: 400px;
}
.dyn_list .controls {
	float: left;
	width: 400px;
}
.dyn_list hr {
	clear: both;
	visibility: hidden;
}

/* notes */
#notedyn_list table {
	margin: 1px 1px 1em 1px;
	width: 100%;
}
#notedyn_list table tr {
	border: 1px solid #cccccc;
	border-collapse: collapse;
}
#notedyn_list table td {
	padding: 0.5em;
	padding-left: 0.7em;
}
#notedyn_list table td:first-child {
	border-right: 1px solid #cccccc;
	background-color: #f1f1d8;
	width: 10em;
}
#notedyn_list table span.author {
	text-decoration: underline;
	font-weight: bold;
}
#notedyn_list table dl {
	margin: 0.5em 0;
}
#notedyn_list table dt {
	font-weight: bold;
}

/* small panes and dialogs */
div.small_pane {
	margin: 0 0 0.2em 0.2em;
}
div.small_pane table {
	max-width: 300px;
}
div.small_pane,
div.small_pane th,
div.small_pane td {
	text-align: left;
}
div.small_pane th {
	font-weight: bold;
}
#contact_quick_create table {
	width: 445px;
}

/* paginationBar */
.paginationBar img {
	float: left;
	width: 16px;
}
.paginationBar div {
	float: left;
}

/* workarounds */
/* ExtJS DataGrid doesn't show last 2-3 entries (with paging bar). */
div.x-grid-scroller {
	padding-bottom: 7em;
}
/* selected entries' links hard to read */
.x-grid-row-selected a {
	color: white !important;
}