/* General Style Info */

body {
	font-family: sans-serif;
	background: #949494;
	color: black;
	font-size: 11px;
	margin: 1em;
}

a {
	color: red;
	text-decoration: underline;
}
a:hover {
	color: red;
	text-decoration:none;
}
a img {
	border:none;
}

a.delete-link {
	color: #000;
	text-decoration: none;
}
a.delete-link:hover {
	color: red;
	text-decoration: line-through;
}


a.button,
img.button,
input.button,
input[type=image] {
	margin: 1px;
	color: black;
	background-color: #ccc;
	text-decoration: none;
	border-top: 1px solid white;
	border-left: 1px solid white;
	border-right: 1px solid black;
	border-bottom: 1px solid black;
	cursor: pointer;
}

a.button {
	padding: 0 2px;
}
a.button:hover {
	color: black;
}


.help {
	cursor: help;
	border-bottom: 1px dotted #000;
}

img.button,
input.button,
input[type=image] {
	padding: 2px 4px;
}


h1, h2, h3, h4 {
	font-weight: bold;
	margin: 0;
}
h1 {
	font-size: 150%;
	margin: 0.1em 0 0.5em 0;
}
h2 {
	font-size: 130%;
	margin: 0.3em 0;
	padding-top: 0.8em;
}
h3 {
	font-size: 115%;
	padding-top: 1.5em;
}
h4 {
	padding-top: 0.5em;
}
ul {
	margin: 0;
    padding: 0 0 0 12px;
}
li {
	margin: 0;
}
p {
	margin-bottom: 0.6em;
}


span.expand-button {
	display: block;
	position: inline;
	float: right;
	margin: 4px;
	width: 8px;
	height: 8px;
	background: transparent url(../img/expand.png) -8px 0 no-repeat;
}
tr.expanded span.expand-button,
thead.expanded span.expand-button,
span.expand-button.expanded {
	background-position: 0 0;
}

/* Layout */

#container {
	text-align: left;
	border: 2px solid white;
	margin: 0;
	padding: 0;
	width: 800px;
	box-shadow: 0 0 8px 0px rgba(0,0,0,0.25);
	-moz-box-shadow: 0 0 8px 0px rgba(0,0,0,0.25);
	-webkit-box-shadow: 0 0 8px 0px rgba(0,0,0,0.25);
}

#header {
	padding: 0;
	background-color: black;
	color: white;
	position: relative;
}

#header table {
	width: 100%;
	border: none;
	margin: 0;
	padding: 0;
}

#header table td {
	background-color: black;
	color: white;
	border: none;
	margin: 0;
	padding: 0;
	vertical-align: middle;
	white-space: nowrap;
}
#header table td.logo {
    width: 300px;
}
#header table td.sections {
    /* width: 515px; */
}
#header table td.date {
    /* width: 300px; */
	font-size: smaller;
}
#header table td.user {
    /* width: 300px; */
	font-size: smaller;
	text-align: right;
	padding: 1em;
}

#header h1 {
	color: white;
}

#header h1 a {
	text-decoration: none;
	color: white;
}

#header h1 a:hover {
}


#header-menu {
	padding: 2px 1em;
	border-bottom: 2px solid white;
	background-color: black;
	color: white;
}

#header-menu table,
#header-menu table td {
	background-color: black;
	color: white;
	border: none;
	padding: 0;
	margin: 0;
}

#header-menu table td {
	border-left: 1px solid white;
	padding: 0 1em;
}

#header-menu table td a {
	margin-right: 6px;
}
#header-menu table td a:last-child {
	margin-right: 0;
}

#header-menu table td:first-child {
	border-left: none;
}


#header .notifications {
	background: transparent url(../img/notifications.png) no-repeat -44px 0;
	width: 22px;
	height: 22px;
	position: absolute;
	top: -6px;
	right: -6px;
	text-align: center;
	color: #000;
	font-size: 8px;
	line-height: 22px;
	text-decoration: none;
}

#header .notifications.active {
	background-position: 0 0;
}

#header .notifications.active:hover {
	background-position: -22px 0;
}


/* highlight the main section link of the current section */
body.section-sales #header .sections a.section-sales,
body.section-elogistics #header .sections a.section-elogistics,
body.section-repairs #header .sections a.section-repairs,
body.section-support #header .sections a.section-support {
	border-bottom: 1px solid red;
}


#content {
	clear: both;
	padding: 1em;
	margin: 0;
	background-color: #B2AB98;
}

#footer {
	clear: both;
	padding: 0;
	margin: 0;
	text-align: right;
}


/* Misc */

li.disabled,
span.disabled,
tr.disabled th,
tr.disabled td {
	color: #888;
}

.right {
	text-align: right;
}

.nobr {
	white-space: nowrap;
}

.negative-amount {
	color: #d00;
}

.changed {
	background-color: #ff8;
}

.small-font {
	font-size: smaller;
}


div.commands {
	border:2px solid #716A5B;
	margin: 0 0 1em 0;
	padding: 4px;
	background-color: white;
	color: black;
}

p.note {
	margin: 0 0 1em 0;
	padding: 4px;
	background-color: white;
	color: black;
}

.pointer {
	cursor: pointer;
}

.no-padding {
	padding: 0;
}

#throbber {
	border: 2px solid #000;
	border-radius: 6px 6px 6px 6px;
	-webkit-border-radius: 6px 6px 6px 6px;
	-moz-border-radius: 6px 6px 6px 6px;
	box-shadow: 2px 3px 11px #000000;
	-moz-box-shadow: 2px 3px 11px #000000;
	-webkit-box-shadow: 2px 3px 11px #000000;

	background: #fff url(../img/throbber.gif) no-repeat;
	margin: 0 0 0 -30px;
	padding: 0;
	color: black;
	font-weight: bold;

	position: fixed;
	top: 30%;
	left: 50%;
	width: 60px;
	height: 60px;
	z-index: 100;
}


/* Tables */

table {
	border:2px solid #716A5B;
	margin-bottom: 1em;
	border-collapse: collapse;
	border-spacing: 0 0;
	padding: 0;
	background-color: #716A5B;
}

td {
	padding: 4px;
	vertical-align: top;
	border: none;
	background-color: white;
	color: black;
}

table.border > tr > td {
	padding: 4px;
	vertical-align: top;
	border: 1px solid #bbb;
}

table.plain {
	border: none;
	margin: 0;
	padding: 0;
	background: transparent none;
}
td.plain, table.plain td {
	border: none;
	margin: 0;
	padding: 0;
	vertical-align: middle;
}

th {
	border-bottom: 1px solid #716A5B;
	border-top: 1px solid #716A5B;
	vertical-align: top;
	padding: 2px 4px;
	background-color: #B6AEA1;
    text-align: left;
}
th a { color: black; }
th a:hover { color: black; }

th.sub {
	background-color: white;
}
tr.altrow td {
	background: #eee;
}

/*
table.log tr:nth-child(odd) > td {
	background-color:#eee;
}
table.log tr:nth-child(even) > td {
	background-color:#fff;
}
*/

tr.sub-th th {
	font-weight: normal;
	background: #f8f8f8;
}


.vertically-centered td {
	vertical-align: middle;
}

table.sep-rows td {
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}

table.sep-cols td {
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
}
table.sep-cols th {
	border-left: 1px solid #716A5B;
	border-right: 1px solid #716A5B;
}

table td.left-border {
	border-left: 1px solid #716A5B;
}

table.borders td {
	border: 1px solid #ccc;
}


caption {
	border: none;
	vertical-align: top;
	padding: 2px 0;
	background: none;
    text-align: left;
    font-weight: bold;
}

/* Paging */

.paging {
	border: none;
	background-color: #fff;
	padding: 2px 4px;
}
.paging td {
	border: none;
}
.paging span.current {
	color: #000;
}
.paging span a {
}
.paging div {
	display: inline;
}
.paging span {
	margin: 0 1px;
}

.paging .paging-pages {
}
.paging .paging-info {
	float: right;
}


/* Filter */
table.filter {
	border: none;
	margin: 0;
	padding: 0;
	background: none;
}
table.filter td {
	border: none;
	margin: 0;
	padding: 0;
	background: none;
	vertical-align: middle;
}


/* Forms */

form {
	clear: both;
	margin: 0;
	padding: 0;
}
fieldset {
	border: 1px solid #ccc;
	margin-top: 30px;
	padding: 16px 20px;
}
fieldset legend {
	background:#fff;
	color: #e32;
	font-weight: bold;
}
fieldset fieldset {
	margin-top: 0px;
	margin-bottom: 20px;
	padding: 16px 10px;
}
fieldset fieldset legend {
	font-weight: normal;
}
fieldset fieldset div {
	clear: left;
	margin: 0 20px;
}
form div {
	clear: both;
	vertical-align: text-top;
}
form div.input,
form div.submit {
	display: inline;
}
form div.required {
	color: #333;
	font-weight: bold;
}
label {
	padding-left: 1em;
	padding-right: 0;
}
input,
textarea,
select {
	font-size: 100%;
	font-family: sans-serif;
}
input.address,
textarea.address {
	width: 15em;
}
textarea.address {
	height: 5em;
}
select {
	clear: both;
	vertical-align: text-bottom;
}
select[multiple=multiple] {
	min-height: 200px;
}
option {
	padding: 0 3px;
}
input[type=checkbox] {
	vertical-align: middle;
    margin: 0;
}
input[type=radio] {
}
input[type=submit] {
	display: inline;
	padding: 2px 5px;
	width: auto;
	vertical-align: bottom;
}

input[type=text],
input[type=password],
select,
textarea {
	background-color: #E3E3E3;
    border: 1px solid #737373;
}
option {
	background-color: #E3E3E3;
}


textarea.comment {
	width: 300px;
	height: 100px;
}

form.delete-button {
    display: inline-block;
    margin: 0;
    padding: 0;
}
form.delete-button input[type=submit] {
/*    display: block;*/
    display: inline;
    float: left;
    margin: -4px;
    padding: 0;
    background: none;
    border-top: none;
    border-right: none;
    border-left: none;
    border-bottom: none;
	color: red;
	text-decoration: underline;
	cursor: pointer;
}
form.delete-button input[type=submit]:hover {
	color: red;
	text-decoration:none;
}


/* Notices and Errors */

div.warning-box img {
	vertical-align: middle;
	margin: 0 0.5em 0 0;
    display: inline;
}

div.warning-box {
	border: 3px solid black;
	margin: 1em 2em 1em 2em;
	padding: 3px;
	background-color: white;
	color: black;
	font-weight: bold;
}

/*
div.warning-box-popup {
	border: 2px solid #000;
	border-radius: 6px 6px 6px 6px;
	-webkit-border-radius: 6px 6px 6px 6px;
	-moz-border-radius: 6px 6px 6px 6px;
	box-shadow: 2px 3px 11px #000000;
	-moz-box-shadow: 2px 3px 11px #000000;
	-webkit-box-shadow: 2px 3px 11px #000000;

	margin: 0 0 0 -200px;
	padding: 6px 12px;
	background-color: white;
	color: black;
	font-weight: bold;

	position: fixed;
	top: 30%;
	left: 50%;
	width: 400px;
	cursor: pointer;
	z-index: 100;
}
*/

div.message {
	margin: 0.5em;
	padding: 0;
	display: inline;
}

div.multi-message {
    display: inline;
}

div.error-message {
	display: inline;
	clear: both;
	color: white;
	background-color: #900;
	font-weight: bold;
}
p.error {
	background-color: #e32;
	color: #fff;
	font-family: Courier, monospace;
	font-size: 120%;
	line-height: 140%;
	padding: 0.8em;
	margin: 1em 0;
}
p.error em {
	color: #000;
	font-weight: normal;
	line-height: 140%;
}
.notice {
	background: #ffcc00;
	color: #000;
	display: block;
	font-family: Courier, monospace;
	font-size: 120%;
	line-height: 140%;
	padding: 0.8em;
	margin: 1em 0;
}
.success {
	background: green;
	color: #fff;
}

#file-indicator {
    width: 16px;
    height: 16px;
    background: transparent url(../img/fail.png) no-repeat 0 0;
    display: block;
    float: left;
}
.file-exists {
    background-image: url(../img/ok.png) !important;
}


/* Order summary */

div.unit-summary {
	border: none;
}
div.customer-summary {
	border: none;
}
div.order-summary {
	border: none;
}

table.summary {
	border: none;
	margin: 1em;
}

table.summary td {
	border: none;
	padding: 1px 3px;
	vertical-align: middle;
}

table.unit-summary {
	margin: 1em 0;
}

table.unit-summary a {
	margin: 1em 0;
}

table.unit-summary td,
table.unit-summary th {
	border: 1px solid rgb(184, 172, 147);
	text-align: right;
	font-size: 90%;
	background-color: rgb(229, 220, 196);
}
table.unit-summary th {
	text-align: left;
	/* border-color: rgb(113, 106, 91); */
}
table.unit-summary thead th {
	background-color: rgb(182, 174, 161);
}

table.unit-summary tr.tfoot th,
table.unit-summary tr.tfoot td {
	border-top-width: 2px;
}
table.unit-summary thead tr:last-child td,
table.unit-summary thead tr:last-child th {
	border-bottom: 2px solid rgb(113, 106, 91);
	border-color: rgb(113, 106, 91);
}

table.orders-main {
	width: 100%;
	margin-bottom: 0;
	border-bottom-width: 0;
	border-top-width: 0;
}
table.orders-main:last-child {
	margin-bottom: 1em;
	border-bottom-width: 2px;
}
table.orders-main:first-child {
	border-top-width: 2px;
}

tbody.order-collapsable {
	/*display: none;*/
}

tbody.orders-main > tr > td,
tbody.purchase-orders-main > tr > td {
	border-top: 1px solid #aaa;
	border-bottom: 1px solid #aaa;
}
table.orders-main th,
table.purchase-orders-main th {
	vertical-align: middle;
}
table.orders-main th img,
table.purchase-orders-main th img {
	margin-right: 3px;
	vertical-align: middle;
}

table.purchase-orders-main td {
    border: 1px solid #aaa;
}


tr.prio-high td, .prio-high, tr.prio-high th a { color: #d00; }
tr.prio-mid td, .prio-mid, tr.prio-mid th a { color: #00d; }
tr.prio-normal td, .prio-normal, tr.prio-normal th a { color: black; }

.order-summary-units { font-weight: bold; }
.order-summary-bulk { font-weight: normal; }


div.rev-summary-wrapper {
	max-width: 778px;
	overflow-x: auto;
}
table.rev-summary {
	margin: 0 0 1em 0;
}
table.rev-summary td {
	border: none;
	border-bottom: 1px solid #ccc;
	padding: 1px 3px;
	vertical-align: middle;
	white-space: nowrap;
	border-left: 1px solid #ccc;
}
table.rev-summary th {
	border-left: 1px solid #716A5B;
}
table.rev-summary tr:nth-child(odd) > td {
	background-color:#fff;
}
table.rev-summary tr:nth-child(even) > td {
	background-color:#eee;
}


/* Tabs */

div.tabs-container {
	padding: 1em;
	margin: 0;
	border:2px solid #716A5B;
}

table.tabs {
	border: none;
	margin: 0;
	padding: 0;
	background-color: #B6AEA1;
}
table.tabs td {
	border: 1px solid #B6AEA1;
	padding: 3px 6px;
	background-color: #E5DCC4;
}
table.tabs td.spacer {
	border: none;
	padding: 0 1px;
	background: none;
}
table.tabs td.selected {
	background-color: #B6AEA1;
	border-top: 2px solid #716A5B;
	border-left: 2px solid #716A5B;
	border-right: 2px solid #716A5B;
}


/* Statistics */

table.statistics td {
	background-color: white;
	border-top: 1px solid #ccc;
	border-right: 1px solid #ccc;
	border-left: 1px solid #ccc;
	padding: 0 3px;
	text-align: right;
}

table.statistics td.sum {
	border-top: 1px solid black;
	text-align: right;
}

table.statistics th {
	padding: 1px 3px;
}


embed.diagram {
    background-color: #fff;
    width: 750px;
    height: 450px;
}


/* Units */

#UnitAddForm input {
	text-align: center;
	font-size: 1.1em;
}

#UnitAddForm input:disabled {
	color: black;
    background-color: #c0c0c0;
}


/* Order view */

table.order-view-line-items tr.child td {
    border-top: none;
    border-bottom: none;
}

table.order-view-line-items tr.has-children td {
    border-bottom: none;
}


/* Add units to line items */

.add-units-result {
	background: transparent none no-repeat 0 center;
	padding-left: 18px !important;
	min-width: 18px;
}
.add-units-result.add-unit-ok {
	background-image: url(../img/ok.png);
}
.add-units-result.add-unit-fail {
	background-image: url(../img/fail.png);
}


/* Log */

form#LogIndexForm {
	margin-bottom: 12px;
}

table.log th,
table.log td {
    padding-left: 8px;
    padding-right: 8px;
}

table.log th:first-child,
table.log td:first-child {
    padding-left: 4px;
}

table.log th:last-child,
table.log td:last-child {
    padding-right: 4px;
}


/* E-log: material */

table.material-overview th {
    vertical-align: middle;
}

table.material-overview th.weekly-usage-scroll {
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    white-space: nowrap;
}

table.material-overview th.weekly-usage-scroll input[type=button] {
    padding: 0;
    margin: 0 1px;
}

table.material-overview th.weekly-usage-test {
    border-left: 1px solid #716A5B;
    border-right: 1px solid #716A5B;
    text-align: center;
}

table.material-overview th.right-border,
table.material-overview td.right-border {
    border-left: 1px solid #716A5B;
}

table.material-overview th.right-border,
table.material-overview td.right-border {
    border-right: 1px solid #716A5B;
}

table.material-overview td {
    border: 1px solid #ccc;
}

table.material-overview td.out {
    background-color: #fbb;
    white-space: nowrap;
    min-width: 2em;
}
table.material-overview td.in {
    background-color: #bfb;
    white-space: nowrap;
    min-width: 2em;
}

table.material-overview td table.part-usage {
    border: none;
    margin: 0;
    padding: 0;
}
table.material-overview td table.part-usage td {
    border: none;
    padding: 1px 2px;
}


/* Hide disabled 'used-in' lines conditionally */
body.controller-parts.action-index ul.part-usage li.disabled,
body.controller-parts.action-turnover ul.part-usage li.disabled {
	display: none;
}


a.return-order {
    color: #00b;
}

/* E-log: prod. params */

table#parts-in-article {
	background-color: #E3E3E3;
    border: 1px solid #737373;
}

table#parts-in-article td {
    padding: 3px 3px;
	background-color: #E3E3E3;
    vertical-align: middle;
}

#part-selector {
    min-width: 22em;
    max-height: 400px;
}

form#PartsEditUsageForm #part-quantity-unit {
    width: 3em;
    display: inline-block;
}

form#PartSelectArticleRevisionForm {
	display: inline;
	margin-right: 1em;
}


/* Generate stock report - printable */

#StockReportGenerateForm tfoot {
    border-top: 1px solid #716A5B;
}

#StockReportGenerateForm tbody tr.section td {
    border-top: 1px solid #716A5B;
}


/* Purchase orders */

body.controller-purchaseorders.action-edit_line_item_comments textarea {
	width: 300px;
	height: 100px;
}



/* Support */

body.controller-supportcases.action-index table.support-issues tbody td.title a {
	display: block;
}


body.controller-supportcases.action-view th img {
}



body.controller-supportcases ul.support-case-notes {
	padding: 0;
	margin: 6px 0;
	border: 2px solid #716A5B;
}

body.controller-supportcases li.support-case-note {
	border-top: 1px dashed #716A5B;
	list-style: none;
	padding: 6px;
	margin: 0;
}
body.controller-supportcases li.support-case-note:first-child {
	border-top: none;
}


body.controller-supportcases li.support-case-note .control,
body.controller-supportcases li.support-case-note h3,
body.controller-supportcases li.support-case-note .body,
body.controller-supportcases li.support-case-note .files {
	padding: 0;
	margin: 6px 0;
}


body.controller-supportcases li.support-case-note > div {
	width: 400px;
}
body.controller-supportcases li.support-case-note.support-author-personnel > div {
	margin-left: 360px;
}

body.controller-supportcases li.support-case-note.support-author-customer {
	background-color: #fff;
}
body.controller-supportcases li.support-case-note.support-author-personnel {
	background-color: #eef;
}
body.controller-supportcases li.support-case-note.support-author-me {
	background-color: #efe;
}



body.controller-supportcases textarea {
	width: 40em;
	height: 15em;
}

body.controller-supportcases form.add-tag {
	position: absolute;
	padding: 4px;
	background-color: #fff;

	border: 2px solid #000;
	box-shadow: 2px 3px 11px #000000;
	-moz-box-shadow: 2px 3px 11px #000000;
	-webkit-box-shadow: 2px 3px 11px #000000;
}

body.controller-supportcases.action-search input[type="checkbox"] {
	margin: 3px;
}

body.controller-supportcases.action-search table.search-tags td {
	white-space: nowrap;
}


/* Repairs */

body.controller-repairs.action-view div.comments {
	width: 400px;
	height: 100px;
	overflow-x: auto;
	border: 1px solid #666;
}

body.controller-repairs textarea {
	width: 300px;
	height: 150px;
}

body.controller-repairs.action-send_instructions textarea {
	width: 500px;
	height: 500px;
}

body.controller-repairs.action-index table.repairs-main {
	width: 100%;
}

body.controller-repairs.action-index table.repairs-main .icon {
	padding-left: 2px;
	padding-right: 2px;
	text-align: center;
	vertical-align: middle;
}

body.controller-repairs.action-index table.repairs-main th,
body.controller-repairs.action-index table.repairs-main td {
	padding-left: 1em;
	padding-right: 1em;
	vertical-align: middle;
}

body.controller-repairs.action-add_select_unit table.search-results {
	border: none;
}

body.controller-repairs.action-add_select_unit table.search-results tr td {
	border-bottom: 1px solid #666;
}


/* Tags */

span.tag {
	background-color: rgb(182, 174, 161);
	padding: 2px 3px;
	margin: 2px;
	white-space: nowrap;
	display: block;
	float: left;
}


body.controller-customers.action-unsubscribe textarea {
	width: 500px;
	height: 500px;
}


/* Parts filter */

.parts-filter strong {
	display: block;
	float: left;
	padding: 2px 3px;
	margin: 2px;
}

.parts-filter input[type=submit] {
	float: left;
}


/* UPS */

form#OrderRegUpsForm .error {
	background: transparent none no-repeat 0 center;
	padding-left: 18px !important;
	min-width: 18px;
	min-height: 18px;
	background-image: url(../img/fail.png);
}
