/* html und body sollen das ganze Browser-Fenster ausfuellen (height:100%; margin:0). */
/* Andernfalls funktionieren diverse primefaces-onclick-Haendler nicht. */
html {
  height: 100%;
}

body {
  background: url("/netrind-mlp/jakarta.faces.resource/img/vit/header_background.png.xhtml") repeat-x fixed left top #008D9A;
  color: #004046;
  font: 10px/1.8em Verdana, sans-serif;
  height: 100%;
  margin: 0;
  padding-left: 5px;
  padding-right: 5px;
}

.ui-sortable-column-badge {
  display: none !important;
}

/* Desktop */
@media only screen and (min-width: 986px) {
  #headerWrapper {
    background: url("/netrind-mlp/jakarta.faces.resource/img/vit/header_background.png.xhtml") repeat-x fixed left top transparent;
    z-index: 6;
    width: 986px;
  }

  #header {
    background: url("/netrind-mlp/jakarta.faces.resource/img/vit/kopf_hintergrund.png.xhtml") no-repeat scroll right top transparent;
    height: 80px;
    width: 986px;
  }

  #globalMessages {
    width: 986px;
  }
}

/* Tablets */
@media only screen and (max-width: 985px) {
  body {
    padding-left: 0;
    padding-right: 0;
  }

  #header, #headerWrapper, #user {
    min-width: 320px;
    max-width: 767px;
  }

  #headerWrapper {
    margin-left: 4px;
  }

  #page, #globalMessages {
    width: 100%;
    min-width: 320px;
    max-width: 767px;
  }

  #page #betriebskennwertEutergesundheit {
    width: 986px;
  }
}

#page {
  height: 100%;
}

#user {
  overflow: hidden; /* clearfix */
  color: white;
  /* Oben kein margin, da sonst die ganze Seite oben einen Rand hat und dadurch */
  /* (Seitenhoehe ist 100%) einen vertikalen Scroll-Balken erhält. */
  padding-top: 3px;
  /* Unten bewirkt padding nichts. */
  margin-bottom: 4px;
}

#contentWrapper {
  background: none repeat scroll 0 0 white;
  float: left;
  z-index: 5;
  min-width: 100%;
}

#contentWrapper.einzeltier {
  margin-bottom: 50px;
  padding-bottom: 2px;
}

#globalMessages {
  float: left;
}

#globalMessages .ui-messages-info {
  background-color: #fff;
  color: #004046;
  border: none;
  margin-top: 5px;
  margin-bottom: 5px;
}

#globalMessages .ui-messages-info .ui-messages-info-summary {
  font-weight: normal;
}

/* use white spaces in selectbox */
.ui-selectonemenu-list-item {
  white-space: pre !important;
}

.wait-box {
  text-align: center;
  padding: 10px;
}

.wait-box.ui-dialog .ui-widget-content.ui-dialog-content {
  padding: 20px;
  overflow: hidden;
}

/* Primefaces Selectboxen sollen die gleiche Hoehe wie Primefaces Input-Felder besitzen. */
/* Der Text in den Selectboxen soll vertical mittig sein. */
.ui-selectonemenu label.ui-selectonemenu-label, .ui-inputfield {
  height: 15px;
  line-height: 15px;
}

/* Weisser Hintergrund mit grauem Rand fuer Eingabefelder. */
.ui-selectonemenu, .ui-inputfield {
  background: #fff !important;
  border-color: #bababa !important;
}

/* Focus-Highlight fuer Eingabe-Felder */
.ui-selectonemenu.ui-state-focus, .ui-inputfield:FOCUS, input[type="checkbox"]:FOCUS {
  border-color: #007F8A !important;
  box-shadow: 0 0 4px 1px #004046;
}

/* Der Datepicker-Button ist im Original schlecht layoutet. */
/* Seine Hoehe stimmt nicht und der Anstand zum input-Feld ist unpassend. */
.ui-datepicker-trigger, .ui-selectonemenu-trigger {
  border-color: #bababa !important;
  height: 25px;
  margin-left: 2px;
}

.headings {
  display: none;
}

/* Insbesondere bei verschachtelten Tabellen kann das default border-spacing von 1px stoeren. */
table .no-border-spacing {
  border-spacing: 0;
}

.harnstoff-hessen {
  background-color: white;
  color: red;
  font-weight: bold;
}

.abstammung-stammbaum {
  width: 100%;
}

.abstammung-spalte {
  width: 50%;
}

#cookie-disabled-warning {
  color: white;
  padding: 2px 10px;
}

/* Auch die Links in der cookie-disabled-warning sollen white sein. */
#cookie-disabled-warning a {
  color: white;
}

/* Entfernt gepunktete border in einem aktiven Accortion-Tab
   (ist nach update auf PF 5.3 reingekommen). */
.ui-accordion .ui-accordion-header.ui-tabs-outline {
  outline: none;
}

/* Entfernt border in den panalGrids (ist nach update auf PF 5.3 reingekommen). */
.ui-panelgrid > * > tr, .ui-panelgrid > * > tr > td.ui-panelgrid-cell {
  border-style: none;
}

#exception .result-title .ui-panelgrid .ui-widget-content, #einzeltier .result-title .ui-panelgrid .ui-widget-content,
#betriebskennwertEutergesundheit .result-title .ui-panelgrid .ui-widget-content {
  background: none;
  border: none;
}

.smarttabhalb {
  width: 50%;
  border: 0px;
}

.smarttabhalb .ui-panel, .smarttabhalb .ui-panel .ui-panel-content,
.ui-toolbar, #kzmBestellung .ui-grid-row {
  background: #b2dde1;
}

.ui-toolbar {
  border: 0;
}

.ui-widget.ui-button.database-bg-green {
  background: #b2dde1 url("/netrind-mlp/jakarta.faces.resource/img/vit/primaer_button.png.xhtml") no-repeat scroll 0 0;
  border: 0 none;
  color: #fff;
  font-weight: bold;
  width: 101px;
}

.smarttabrow {
  vertical-align: top;
}

.smarttabhalb .ui-panel.ui-widget.ui-widget-content {
  border: 0px !important;
}

.smarttabhalb .ui-panel-titlebar.ui-widget-header {
  background: #7fc6cc;
  font-size: 16px;
  border: 0px;
  font-family: Verdana, sans-serif;
}

.seite-toolbar {
  background-color: #b2dde1;
  margin-top: 3px;
  margin-left: 3px;
  margin-bottom: 3px;
  padding: 7px !important;
}

#kzmBestellung .ui-widget.ui-accordion .ui-accordion-content {
  overflow: hidden;
}

/* Layout Primefaces Radio-Buttons */
/* Radio-Button soll einen weißen Hintergrund und die ueblichen grauen Rand besitzen. */
/* Bei Hover ueber einen nicht-aktiven Radio-Button soll der Hintergrund leicht grau werden. */
.ui-widget.ui-radiobutton-box {
  background: #fff;
  border-color: #bababa;
}

.ui-widget.ui-radiobutton-box.ui-state-hover {
  background: #eee;
}

.ui-widget.ui-radiobutton-box.ui-state-active {
  background: #fff;
}

/* Das Growl ist normalerweise leicht transparent. Das sieht aus meiner Sicht nicht so gut aus. (strenkel) */
div.ui-growl-item-container {
  opacity: 1;
  font-size: 12px;
}

div.ui-growl-item-container.ui-growl-info {
  background: #d9edf7;
  border-color: #bce8f1;
}

div.ui-growl-item-container.ui-growl-warn {
  background: #fcf8e3;
  border-color: #fbeed5;
}

div.ui-growl-item-container.ui-growl-error {
  background: #f2dede;
  border-color: #eed3d7;
}
