/**
 * AM Service APP Stylesheet
 * erweitert Bootstrap CSS
 *
 * Author: Holger Gläser <hg@a-m-service.de>
 */

header, nav, article, footer {
    display: block;
    width: 100%;
}

html, body {
    min-height: 100%;
}

body {
    background: #D6D9DC;
    font-family: Arial, sans-serif;
    font-size: 15px;
    margin: 0px;
}

footer {
    background: rgba(0, 0, 0, 0.9);
    bottom: 0px;
    position: fixed;
    width: 100%;
    z-index: 999;
}

footer #footer-inner {
    color: #fff;
    margin: 0 auto 0 auto;
    max-width: 1120px;
    padding: 15px 20px;
}

#page {
    background: #fff;
    margin: 5px auto 5px auto;
    max-width: 1120px;
}

#header {
    background: #fff; 
    height: 100px;
    max-width: 1120px;
    position: fixed;
    top:      0px; 
    width:    100%; 
    z-index:  999;
}

#header .logo {
    padding: 0em 1em;
}

#header .logo img {
    height: 100px;
}

#content {
    padding-top: 140px;
    padding-bottom: 100px;
}

#content .inner {
    padding: 0px 0px 18px 0px;    
}

nav {
    background: #000000;
    position: relative;
}

nav .nav {
    float: left;
    width: 75%;
}

nav .user {
    color: #fff;
    right: 0px;
    padding: 5px 15px;
    position: absolute;
    top: 0px;
}

nav .user a {
    color: #fff;
}

#content #filter {
    background: #ddd;
    border-radius: 2px;
    padding: 5px 10px;
}

#content #filter input {
    background: #fff;
}

#content #filter label {
    display:  block;
    font-size: 0.8em;
}

.item .title a {
    color: #333;
    text-decoration: none;
}

.image-wrap,
.item .image-thumb {
    position: relative;
    padding: 2px;
    border: solid 2px #e7eaec;
    border-radius: 3px;
    text-align: center;
}

.item .image-thumb img {
    max-width: 100%;
}

.image-wrap img {
    max-width: 100%;
}

.image-wrap .delete {
    position: absolute;
    bottom:  20px;
    right: 20px;
}

.image-preview {
    margin-top: 20px;
    text-align: left;
}

.image-preview .image-thumb {
    display: inline-block;
    margin-right: 2%;
    text-align: center;
    width: 18%;
}

.image-preview .image-thumb img {
    max-width: 100%;
    padding: 2px;
    border: solid 2px #e7eaec;
    border-radius: 3px;
}

.image-preview .image-thumb img.active {
    border-color: rgba(0,121,127, 0.7);
}

.item .title a:hover {
    text-decoration: underline;
}

.nav-pills>li+li,
.nav-pills>li {
    margin-left: 0;
}

.nav-pills>li>a {   
    background-color: inherit; 
    color: #aaa;
    font-weight: bold;
    font-size: 15px;
    padding: 5px 30px;
    text-decoration: none;
}

.nav-pills>li>a:hover,
.nav-pills>li.active>a, 
.nav-pills>li.active>a:focus, 
.nav-pills>li.active>a:hover {    
    background-color: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}

h1 {
    margin-top: 30px;
    font-size: 30px;
    color: #333;
    text-transform: uppercase;
}

h2,
.modal-body h4 {
    font-size: 20px;
    font-weight: bold;
    border-bottom: solid 1px #c1c1c1;
}

.modal-header h3 {
    border-bottom: 0px solid transparent;
    margin-top: 0px;
    margin-bottom:  0px;
}

a {
    color: #004669;
    cursor: pointer;
    text-decoration: underline;
}

a:hover {
    color: #004669;
    text-decoration: none;
}

a.btn {
    text-decoration: none;
}

.text-right {
	text-align: right;
}

.attribut {
    margin: 0 0 0 0;
    border-bottom: 2px solid #e7eaec;
}

.attribut div:last-child {
    font-weight: bold;
}

#content .row {    
    margin: 0 0 0 0;
    padding: 15px 0;
}

#content .row.head {
    font-weight: bold;
}

#content .inner-row {    
    border-bottom: none;
    padding-top: 0;
}

#content .inner-row:last-child {    
    padding-bottom: 0;
}

#content .row .action .fa {    
    font-size: 20px;
}

.form-group label {
    font-weight: normal;
}

.form-group.required label {
    font-weight: bold;
}


.grid-table .row.head {
    font-weight: bold;
}

.grid-table .row {
    border-bottom: 1px solid #ccc;
    margin: 0px 0px 0px 0px;
    padding: .6666em 0 0.6666em 0;
} 

.grid-table .row.item:nth-of-type(2n+1) {
    background-color: #f9f9f9;
}

.grid-table .row.actions {  
    border-bottom: none;  
    padding: 30px 0;
}

.grid-table .row.info {
    border-bottom: none;
    padding: 1em 0;
}

/**
 * Autocomplete
 */

 .autocomplete {
    position: relative;
 }

 .autocomplete-result {
    background: #fff;
    border: solid 1px #c1c1c1;
    border-radius: 3px;
    display: block;
    height: 250px;
    left: 0px;
    overflow-y: scroll;
    padding: 0px;
    margin:  0 15px;
    position: absolute;
    top: 30px;
    min-width: 450px;
    width: 100%;
    z-index: 99;
 }

.autocomplete-result-inline {
    background: #fff;
    border: solid 1px #c1c1c1;
    border-radius: 3px;
    height: 150px;
    overflow-y: scroll;
    padding: 10px;
    width: 100%;
 }

.autocomplete-result-inline .row,
.autocomplete-result .row {
    border-bottom: solid 1px #c1c1c1;
    margin: 0 0 0 0;
    padding: 5px 0px;
    cursor: hand;
 } 

.autocomplete-result .row.active,
.autocomplete-result-inline .row.active {
  color: #286090;
  font-weight: bold;
  text-decoration: none;
}

.autocomplete-result .row.current,
.autocomplete-result-inline .row.current {
  background-color: #286090;
  color: #fff;
  font-weight: normal;
  text-decoration: none;
}

input, select, textarea {
    border: 1px solid #ccc;
}

#alerts {
    margin-left:  15px;
    margin-right: 15px;
}

.image-thumb img {
    max-width: 200px;
}

fieldset {
  background-color: #f1f1f1;
  font-weight: normal;
  padding: 10px;
  margin-bottom: 15px;
     margin-top: -20px;
}

legend {
    padding-top: 40px;
    margin-bottom: 0px;
}

.datepicker-blocked button span {
    background-color: #e82e2e;
    border-radius: 10px;
    color: #fff;
    padding: 2px;
}

/**
 * Clearfix
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    contenteditable attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that are clearfixed.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.cf:before,
.cf:after {
    content: ' '; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}


/**
 * treeview
 */

#treeview {
  /* prevent user selection */
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;

  /* default */
  font-family: Tahoma;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  background: #f1f1f1;
  padding-top: 10px;
  padding-bottom: 10px;
}

#treeview ul {
  margin: 0;
  padding: 0;
  list-style: none; 
  border: none;
}

#treeview ul li {
  padding: 0 0 0 20px;
  line-height: 20px;
}

#treeview ul li i, #treeview ul li span {
  cursor: pointer;
}

#treeview ul li .selected {
  background-color: #aaddff;
  font-weight: normal;
  padding: 1px 5px;
} 