body, td {
  font-family: sans-serif;
  font-size: 90%;
  color: black;
  background: white;
}

body {
	padding-top: 17em;
}

#user {
	position: absolute;
	text-align: right;
	top: 1.5em;
	right: 1.5em;
	color: red;
	font-size: 70%;
	font-style: italic;
}

#leftCol {
  border: 1px solid black;
  border-top: 1px solid #95a8b7;
  background-color: #fff;
  padding: 8px;
  font-size: 90%;
  text-align: center;
  line-height: 170%;
  position: fixed;
  top: 5em;
  left: 0;
  right: 0;
  z-index: 10;
}

#leftCol a {
	padding-left: 1em;
	padding-right: 1em;
	background: #eef;
	border: 1px solid #ccf;
	white-space: pre;
	text-decoration: none;
}

#leftCol a:hover {
	text-decoration: none;
	background: white;
}

#leftCol a.current {
	text-decoration: none;
	background: white;
	border: 1px solid #009;
	font-weight: bold;
}

#attribute {
	width: 160px;
	height: 100px;
	margin: auto;
	padding: 0;
	border: 0;
	position: relative;
	overflow: hidden;
	background-color: white;
}

#attribute b {
	color: #444;
	font-weight: normal;
}

#attribute div {
	margin: 0;
	border: 0;
	padding: 0;
	height: 30px;
	padding-top: 20px;
	width: 80px;
	background-image: url("attrib_bg.png");
	background-repeat: no-repeat;
	text-align: center;
	vertical-align: bottom;
	font-size: 10px;
	color: #ccc;
	cursor: pointer;
	font-weight: normal;
	overflow: hidden;
	position: absolute;
}

#attribute #attr_zuechter {
	background-position: 0px 0px;
	top: 0;
	left: 0;
}
#attribute #attr_carryingFarmer {
	padding-top: 12px;
	height: 38px;
	background-position: -80px 0px;
	right: 0;
	top: 0;
}
#attribute #attr_manager {
	padding-top: 15px;
	height: 35px;
	background-position: 0px -50px;
	left: 0;
	bottom: 0;
}
#attribute #attr_fortschrittlichTraditionell {
	padding-top: 10px;
	height: 40px;
	text-align: right;
	background-position: -80px -50px;
	width: 40px;
	right: 40px;
	bottom: 0;
}
#attribute #attr_konservativTraditionell {
	padding-top: 10px;
	height: 40px;
	text-align: left;
	background-position: -120px -50px;
	width: 40px;
	right: 0px;
	bottom: 0px;
}

#attribute div.value_1 {
	background-image: url("attrib_aktiv.png");
	font-weight: bold;
	color: black;
}



table#farbe {
	width: 100px;
	height: 100px;
	margin: auto;
	padding: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

table#farbe td, #kunde table#farbe tr td.inaktiv {
	margin: 0;
	border: 0;
	height: 40px;
	width: 40px;
	background-image: url("farbe_bg.png");
	background-repeat: no-repeat;
	text-align: center;
	vertical-align: middle;
	font-size: 10px;
	color: #ccc;
	cursor: pointer;
	font-weight: normal;
	overflow: hidden;
}

table#farbe #farbe_blau {
	background-position: 0px 0px;
	padding: 0;
	padding-left: 10px;
	padding-top: 10px;
}
table#farbe #farbe_rot {
	background-position: -50px 0px;
	padding: 0;
	padding-right: 10px;
	padding-top: 10px;
}
table#farbe #farbe_gruen {
	background-position: 0px -50px;
	padding: 0;
	padding-left: 10px;
	padding-bottom: 10px;
}
table#farbe #farbe_gelb {
	background-position: -50px -50px;
	padding: 0;
	padding-right: 10px;
	padding-bottom: 10px;
}

table#farbe.blau td#farbe_blau, table#farbe.rot td#farbe_rot, table#farbe.gruen td#farbe_gruen, table#farbe.gelb td#farbe_gelb, table#farbe td.aktiv {
	background-image: url("farbe_aktiv_bg.png");
	font-weight: bold;
	color: black;
}

#kunde table#pyramide {
	width: 100px;
	height: 100px;
	margin: auto;
	padding: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

#kunde table#pyramide tr {
	padding: 0;
	margin: 0;
	height: 25px;
}

#kunde table#pyramide td {
	margin: 0;
	padding: 0;
	border: 0;
	height: 25px;
	padding-top: 0;
	padding-bottom: 0;
	width: 100px;
	line-height: 10px;
	background: url("pyramide_bg.png") no-repeat;
	background-image: url("pyramide_bg.png");
	background-repeat: no-repeat;
	text-align: center;
	vertical-align: middle;
	font-size: 10px;
	color: #ccc;
	font-weight: normal;
	overflow: hidden;
}

#kunde table#pyramide #pyramide_1 {
	background-position: 0px 0px;
}
#kunde table#pyramide #pyramide_2 {
	background-position: 0px -25px;
}
#kunde table#pyramide #pyramide_3 {
	background-position: 0px -50px;
}
#kunde table#pyramide #pyramide_4 {
	background-position: 0px -75px;
}

#kunde table#pyramide.p1 td#pyramide_1, table#pyramide.p2 td#pyramide_2, table#pyramide.p3 td#pyramide_3, table#pyramide.p4 td#pyramide_4 {
	background-image: url("pyramide_aktiv_bg.png");
	font-weight: bold;
	color: black;
}

td#stats {
	width: 30em;
}

#kunde table#segmente {
	width: 80%;
	border-collapse: collapse;
	font-size: 100%;
	border: 1px solid black;
	margin-left: 10%;
}

#kunde table#segmente td {
	border: 1px dotted black;
	padding: 1px;
	margin: 0;
	text-align: center;
	color: #ccc;
	font-size: 100%;
/*	line-height: 1.7;*/
}

#kunde table#segmente tr.segment_z {
	border-top: 2px solid black;
}

#kunde table#segmente tr.segment_c {
	border-left: 2px solid black;
}

div #kunde table#segmente.A1 tr.segment_1 td.segment_a,
div #kunde table#segmente.A2 tr.segment_2 td.segment_a,
div #kunde table#segmente.A3 tr.segment_3 td.segment_a,
div #kunde table#segmente.zA tr.segment_z td.segment_a,
div #kunde table#segmente.B1 tr.segment_1 td.segment_b,
div #kunde table#segmente.B2 tr.segment_2 td.segment_b,
div #kunde table#segmente.B3 tr.segment_3 td.segment_b,
div #kunde table#segmente.zB tr.segment_z td.segment_b,
div #kunde table#segmente.C1 tr.segment_1 td.segment_c,
div #kunde table#segmente.C2 tr.segment_2 td.segment_c,
div #kunde table#segmente.C3 tr.segment_3 td.segment_c,
div #kunde table#segmente.zC tr.segment_z td.segment_c {
	background-color: #f80;
	font-weight: bold;
	color: black;
}


div #kunde table#segmente.A1 .blau tr.segment_1 td.segment_a,
div #kunde table#segmente.A2 .blau tr.segment_2 td.segment_a,
div #kunde table#segmente.A3 .blau tr.segment_3 td.segment_a,
div #kunde table#segmente.zA .blau tr.segment_z td.segment_a,
div #kunde table#segmente.B1 .blau tr.segment_1 td.segment_b,
div #kunde table#segmente.B2 .blau tr.segment_2 td.segment_b,
div #kunde table#segmente.B3 .blau tr.segment_3 td.segment_b,
div #kunde table#segmente.zB .blau tr.segment_z td.segment_b,
div #kunde table#segmente.C1 .blau tr.segment_1 td.segment_c,
div #kunde table#segmente.C2 .blau tr.segment_2 td.segment_c,
div #kunde table#segmente.C3 .blau tr.segment_3 td.segment_c,
div #kunde table#segmente.zC .blau tr.segment_z td.segment_c {
	background-color: #44f;
	font-weight: bold;
	color: black;
}

div #kunde table#segmente.A1 .rot tr.segment_1 td.segment_a,
div #kunde table#segmente.A2 .rot tr.segment_2 td.segment_a,
div #kunde table#segmente.A3 .rot tr.segment_3 td.segment_a,
div #kunde table#segmente.zA .rot tr.segment_z td.segment_a,
div #kunde table#segmente.B1 .rot tr.segment_1 td.segment_b,
div #kunde table#segmente.B2 .rot tr.segment_2 td.segment_b,
div #kunde table#segmente.B3 .rot tr.segment_3 td.segment_b,
div #kunde table#segmente.zB .rot tr.segment_z td.segment_b,
div #kunde table#segmente.C1 .rot tr.segment_1 td.segment_c,
div #kunde table#segmente.C2 .rot tr.segment_2 td.segment_c,
div #kunde table#segmente.C3 .rot tr.segment_3 td.segment_c,
div #kunde table#segmente.zC .rot tr.segment_z td.segment_c {
	background-color: #f44;
	font-weight: bold;
	color: black;
}

div #kunde table#segmente.A1 .gruen tr.segment_1 td.segment_a,
div #kunde table#segmente.A2 .gruen tr.segment_2 td.segment_a,
div #kunde table#segmente.A3 .gruen tr.segment_3 td.segment_a,
div #kunde table#segmente.zA .gruen tr.segment_z td.segment_a,
div #kunde table#segmente.B1 .gruen tr.segment_1 td.segment_b,
div #kunde table#segmente.B2 .gruen tr.segment_2 td.segment_b,
div #kunde table#segmente.B3 .gruen tr.segment_3 td.segment_b,
div #kunde table#segmente.zB .gruen tr.segment_z td.segment_b,
div #kunde table#segmente.C1 .gruen tr.segment_1 td.segment_c,
div #kunde table#segmente.C2 .gruen tr.segment_2 td.segment_c,
div #kunde table#segmente.C3 .gruen tr.segment_3 td.segment_c,
div #kunde table#segmente.zC .gruen tr.segment_z td.segment_c {
	background-color: #4f4;
	font-weight: bold;
	color: black;
}

div #kunde table#segmente.A1 .gelb tr.segment_1 td.segment_a,
div #kunde table#segmente.A2 .gelb tr.segment_2 td.segment_a,
div #kunde table#segmente.A3 .gelb tr.segment_3 td.segment_a,
div #kunde table#segmente.zA .gelb tr.segment_z td.segment_a,
div #kunde table#segmente.B1 .gelb tr.segment_1 td.segment_b,
div #kunde table#segmente.B2 .gelb tr.segment_2 td.segment_b,
div #kunde table#segmente.B3 .gelb tr.segment_3 td.segment_b,
div #kunde table#segmente.zB .gelb tr.segment_z td.segment_b,
div #kunde table#segmente.C1 .gelb tr.segment_1 td.segment_c,
div #kunde table#segmente.C2 .gelb tr.segment_2 td.segment_c,
div #kunde table#segmente.C3 .gelb tr.segment_3 td.segment_c,
div #kunde table#segmente.zC .gelb tr.segment_z td.segment_c {
	background-color: #ff4;
	font-weight: bold;
	color: black;
}

h1 {
	border: 1px solid black;
	border-bottom: 0;
	background-color: #fff;
	background-image: url('logo.png');
	background-repeat: no-repeat;
	background-position: left -22px;
	color: #006;
	padding: 1ex;
	text-align: center;
	font-size: 180%;
	margin: 0;
	position: fixed;
	z-index: 10;
	top: 0;
	left: 0;
	right: 0;
	height: 3em;
}

h1 em {
	font-size: 70%;
}

h2 {
  font-size: 120%;
  color: #009;
  padding-top: .5ex;
  padding-bottom: .5ex;
  background: #ccf;
  border: 1px solid #009;
  text-align: center;
  margin-bottom: 1ex;
  margin-top: 0;
}

div#searchlink {
	text-align: center;
}

a#searchlink {
	display: block;
	margin-left: auto;
	margin-right: auto;
	width: 10em;
}

input[type="text"].datepicker {
	width: 12ex;
}

#leftCol a, #leftCol {
  color: #009;
}

#rightCol {
  margin-top: 1ex;
/*   margin-left: 25ex; */
}

.result {
	font-weight: bold;
	font-size: 120%;
	padding: 1ex;
	margin-top: 1ex;
	margin-bottom: 1ex;
	border: 1px solid #009;
	color: green;
}

.currentpage {
	text-decoration: underline;
	font-weight: bold;
}
input, textarea, select {
  border: solid 1px black;
  font-size: 100%;
  font-family: sans-serif;
}

input[type="text"] {
  width: 30ex;
}

#kunde {
	font-size: 90%;
}

/*#kunde .plz input, #kunde .titel input {
  width: 7ex;
}

#kunde .name input, #kunde .ortsteil input {
  width: 16ex;
}

#kunde .adresse input {
  width: 28em;
}

#kunde .firma input {
  width: 25em;
}

#kunde .ort input {
  width: 25ex;
}
*/
#kunde .hauptadresse input {
	font-size: 75%;
	width: 7ex;
	font-style: italic;
	background: #eee;
	border: 1px outset #ccc;
	cursor: default;
}
#kunde .hauptadresse input:active {
	border: 1px inset #ccc;
}
#kunde .notizen textarea {
	height: 18em;
	line-height: 1em;
}
#kunde .wegbeschreibung textarea {
	height: 4.8em;
}
#kunde input, #kunde select {
	border-width: 0;
}
#kunde input[type="submit"] {
	border-width: 1px;
}
#kunde input[type="submit"]:active {
	border: 1px inset #ccc;
}
#kunde input, #kunde select, #kunde textarea {
	width: 100%;
	height: 100%;
	background-color: white;
}
#kunde input[type="checkbox"], #kunde input[type="radio"] {
	width: auto;
	height: auto;
	background: transparent;
}

#kunde .nebenadressen div + div {
	overflow: auto;
	height: 7em;
	border: 1px solid black;
}
#kunde .nebenadressen div div {
	border: 0;
	margin: 0;
	border-bottom: 1px solid black;
	padding: 2px;
	height: auto;
}
#kunde .date {
	white-space: pre;
}
#kunde .date select {
	width: auto;
}
#kunde .kontakte table.sub {
	width: 95%;
}
#kunde table.main td.select {
	border: 1px solid black;
	padding: 0;
	overflow: hidden;
}

#kunde .sub {
	width: 100%;
}

#kunde table.main td.subtable {
	vertical-align: top;
}

#kunde table.main td.diagram {
	vertical-align: middle;
	text-align: center;
}

#kunde table.sub.bestellung {
	width: 98%;
	margin-left: 1px;
}

#kunde .sub, #kunde .sub td, #kunde .sub th {
	border: 1px solid black;
	border-collapse: collapse;
	text-align: center;
	vertical-align: top;
}

#kunde .sub.bestellung td {
	border-bottom: 0;
	border-top: 0;
	vertical-align: bottom;
	padding-bottom: 1px;
}

#kunde .sub.bestellung th {
	border-top: 0;
}

#kunde .sub.bestellung td.bulle {
	text-align: left;
}

#kunde .sub.bestellung td.bulle .datum {
	font-weight: bold;
	overflow: visible;
	line-height: 2em;
}

#kunde .header td, #kunde td.header {
	white-space: nowrap;
	background-color: #CCCCCC;
}

#kunde table.main {
	width: 98%;
	table-layout: fixed;
	border-collapse: collapse;
}

#kunde table.main td {
	vertical-align: middle;
	margin: 0;
	border: 0;
	padding: 1px;
}

#kunde tr.layout td.column {
	width: 14%;
}

#KB_Bestellungen input {
	width: 60ex;
}

#KB_Bestellungen textarea, #Neue_Bestellung textarea, #Kontakte textarea, #Kontaktmoment textarea, #Termine textarea {
	width: 80ex;
	height: 10em;
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.right select {
	text-align: right;
}
textarea {
	height: 6em;
}
input.heading {
  font-size: 100%;
  font-family: sans-serif;
  color: inherit;
  background: #ccc;
  background: inherit;
  border: 1px solid #ccc;
}
.linkbutton {
  font-size: inherit;
  cursor: pointer;
  width: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: white;
  color: blue;
}
input.linkbutton:hover {
  text-decoration: underline;
}
input[type="submit"] {
  cursor: pointer;
}
div.error {
  padding: 10px;
  border: 3px dashed #CF1A21;
  background-color: #8C82CF;
}
.error {
  color: #8F121A;
}
.warning {
  color: #EBB000;
}
.error, .warning {
  font-size: 120%;
  font-weight: bold;
}

.datagrid {
  border-collapse: collapse;
  clear: both;
}
.datagrid th {
  background-color: #009;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}
.datagrid th a, .datagrid th {
  color: #ff3;
  text-decoration: none;
}
.datagrid th a:hover {
  text-decoration: underline;
}
.datagrid td, .datagrid th {
  padding: 5px;
  font-size: 80%;
  font-weight: normal;
}
.datagrid tr.oddRow td, .datagrid td {
  background-color: #f0f0f0;
}
.datagrid tr.evenRow td {
  background-color: #ddf;
}
.datagrid td {
  border: 1px solid #cccccc;
}
tr.delete td {
  background-color: #F7BABA;
}
th.groupHeader0 {/*, table.datagrid tr td.groupHeader0 {*/
  background-color: #080;
}
th.groupHeader1 {/*, table.datagrid tr td.groupHeader1 {*/
  background-color: #0A0;
}
th.groupHeader2 {
  background-color: #0C0;
}
th.groupHeader3 {
  background-color: #0E0;
}
.hiddenRecordText {
  font-size: 80%;
  color: #BBB;
}
.linkedRecords {
  font-size: 70%;
}
.morelink {
	font-size: 70%;
	font-weight: bold;
	cursor: pointer;
}
.morelink:hover {
	text-decoration: underline;
}

#loginform label { display: block; float: left; margin: 0.5ex; width: 10ex; }
#loginform input { display: block; margin: 1ex; width: 15ex; }

table.layout {
	border-collapse: collapse;
	border: 0;
	padding: 0;
	margin: 0;
	font-size: 100%;
}

table.layout td {
	padding: 0;
	font-size: 100%;
	line-height: 90%;
}

table.layout.vertical {
	width: 100%;
	overflow: hidden;
	margin-bottom: 1em;
}

table.layout.vertical td {
	padding-top: 1ex;
	line-height: inherit;
}

table.layout.vertical td td {
	padding: inherit;
}

tr.layout {
	height: 1px;
}

.wichtig input {
	border: 1px solid #ccc;
	color: red;
	font-weight: bold;
	width: 100%;
	text-align: center;
}

.wide input {
	width: 60ex;
}

.spacey td, .spacey th {
	padding-left: 1ex;
	padding-right: 1ex;
}

.label {
	height: 1.4em;
	line-height: 1.4em;
}

.label input, .label select {
	display: block;
	margin-top: -1.5em;
	margin-left: 14ex;
	width: 14ex;
}

.right input {
	display: inline;
	margin: 0;
	width: auto;
	vertical-align: middle;
}

.right {
	float: right;
	padding-right: 3ex;
}

@media print {
	h1, #leftCol, #searchlink, #user, .noprint {
		display: none;
	}
	html {
		font-size: 8pt;
		font-family: Arial, Helvetica, sans-serif;
		width: 100%;
		margin: 0;
		padding: 0;
		border: 0;
	}
	body {
		margin: 0;
		border: 0;
		padding: 0;
		width: 100%;
	}
	body:last-child {
		padding: 0;
	}
	#kunde table.main {
		width: 98%;
		table-layout: fixed;
		overflow: visible;
		font-size: 7pt;
	}
	#kunde td.label {
		overflow: hidden;
	}
	#kunde select {
		border: 0;
		padding: 0;
		height: 100%;
		vertical-align: bottom;
		margin-left: -2px;
		margin-right: -2em;
	}
	#kunde input {
		width: 100%;
		border: 0;
		height: 1.2em;
		line-height: 1.2em;
		margin: 0;
		padding: 0;
		vertical-align: bottom;
	}
	#kunde .checkbox input {
		width: auto;
		border: 0;
		height: inherit;
		line-height: inherit;
		margin: 0;
		padding: 0;
	}
	#kunde .wichtig input {
		width: 100%;
	}
	#kunde .wichtig input {
		font-size: 150%;
		border: 0;
	}

	table#farbe {
		margin-top: 1em;
		height: 60px;
		width: auto;
	}

	table#farbe td {
		height: auto;
		width: auto;
	}

	table#pyramide {
		height: auto;
		width: auto;
	}

	table#pyramide td {
		height: auto;
		width: auto;
	}

	body:last-child input[type="checkbox"], body:last-child input[type="checkbox"] + label, body:last-child input[type="checkbox"] + label + br {
		display: none;
	}

	body:last-child input[checked], body:last-child input[checked] + label, body:last-child input[checked] + label + br {
		display: inline;
	}

	font {
		display: none;
	}
}

#report {
    display: block;
    float: left;
}

#report .layout td {
    padding: 3px;
    vertical-align: middle;
    text-align: center;
}

#Bestelluebersicht .datagrid td {
    text-align: right;
    background-color: #eee;
    border: 0;
    padding-left: 0;
    padding-right: 0;
}

#Bestelluebersicht .datagrid th {
    margin-bottom: 1ex;
}

#Bestelluebersicht .datagrid .total {
    font-weight: bold;
    font-size: 110%;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    padding-top: 2px;
    padding-bottom: 2px;
    margin-top: 1ex;
    margin-bottom: 1em;
}

#Bestelluebersicht .datagrid .sum {
    font-weight: bold;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    margin-top: .5ex;
    margin-bottom: 1em;
}

#Bestelluebersicht .datagrid .weeksum {
    font-style: italic;
}

#Wochenumsatz .datagrid td, #Bullenumsatz .datagrid td, #Kundensegmentation .datagrid td {
    text-align: right;
    padding: 2px;
    white-space: pre;
}

#Wochenumsatz .datagrid .total, #Bullenumsatz .datagrid .total, #Kundensegmentation .datagrid .total {
    font-weight: bold;
    font-size: 110%;
    text-decoration: underline;
    padding-top: 2px;
    padding-bottom: 2px;
    margin-top: 1ex;
    margin-bottom: 1em;
}

#Wochenumsatz .datagrid .ktotal, #Bullenumsatz .datagrid .ktotal, #Kundensegmentation .datagrid .ktotal {
    font-weight: bold;
    font-size: 110%;
    height: 1.2em;
    padding: 4px;
    margin-top: -2px;
    margin-bottom: -2px;
    margin-left: -3px;
    margin-right: -3px;
    background-color: #88c;
}

#Wochenumsatz .datagrid .sum, #Bullenumsatz .datagrid .sum, #Kundensegmentation .datagrid .sum {
    font-weight: bold;
    margin-top: .5ex;
    margin-bottom: 1em;
}

#waiting {
    position: absolute;
    top: 2ex;
    left: 2ex;
    border: 2px solid red;
    font-size: 130%;
    color: red;
    background: #ffc;
    padding: 1ex;
}

#user {
    position: fixed;
	z-index: 11;
    text-align: right;
    top: 1.5em;
    right: 1.5em;
    color: red;
    font-size: 70%;
    font-style: italic;
}

.abgelaufen {
	font-weight: bold;
	color: red;
}

#Beraterstatistik td + td {
	text-align: right;
}
