/**
 * 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%;
}
p {
    margin: 0 0 1px !important;

}

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

header {
    background: #fff;    
}

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

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

#footer-inner .warenkorb {    
    padding: 0 20px;
}

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

#header {
    width: auto;
}

#header .logo {
    padding: 1.6666em 1em;
    zoom: 0.8;
}

#header .logo_am {
    padding: 0.3333em 1em;
    zoom: 0.8;
}

#header #logo img {
    zoom: 0.8;
}

#content {
    margin: 10px auto 0px auto; 
    min-height: 550px;
    padding-bottom: 80px;
}

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

nav {
    background: rgba(160, 0, 15, 1);
    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 0px;
}

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

#content #filter label {
    padding: 5px 5px;
}

.funkyradio div {
  clear: both;
  overflow: hidden;
}

.funkyradio label {
  width: 100%;
  border-radius: 3px;
  border: 1px solid #D1D3D4;
  font-weight: normal;
}

.funkyradio input[type="radio"]:empty,
.funkyradio input[type="checkbox"]:empty {
  display: none;
}

.funkyradio input[type="radio"]:empty ~ label,
.funkyradio input[type="checkbox"]:empty ~ label {
  position: relative;
  line-height: 2.5em;
  text-indent: 3.25em;
  margin-top: 2em;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.funkyradio input[type="radio"]:empty ~ label:before,
.funkyradio input[type="checkbox"]:empty ~ label:before {
  position: absolute;
  display: block;
  top: 0;
  bottom: 0;
  left: 0;
  content: '';
  width: 2.5em;
  background: #D1D3D4;
  border-radius: 3px 0 0 3px;
}

.funkyradio input[type="radio"]:hover:not(:checked) ~ label,
.funkyradio input[type="checkbox"]:hover:not(:checked) ~ label {
  color: #888;
}

.funkyradio input[type="radio"]:hover:not(:checked) ~ label:before,
.funkyradio input[type="checkbox"]:hover:not(:checked) ~ label:before {
  content: '\2714';
  text-indent: .9em;
  color: #C2C2C2;
}

.funkyradio input[type="radio"]:checked ~ label,
.funkyradio input[type="checkbox"]:checked ~ label {
  color: #777;
}

.funkyradio input[type="radio"]:checked ~ label:before,
.funkyradio input[type="checkbox"]:checked ~ label:before {
  content: '\2714';
  text-indent: .9em;
  color: #333;
  background-color: #ccc;
}

.funkyradio input[type="radio"]:focus ~ label:before,
.funkyradio input[type="checkbox"]:focus ~ label:before {
  box-shadow: 0 0 0 3px #999;
}

.funkyradio-default input[type="radio"]:checked ~ label:before,
.funkyradio-default input[type="checkbox"]:checked ~ label:before {
  color: #333;
  background-color: #ccc;
}

.funkyradio-primary input[type="radio"]:checked ~ label:before,
.funkyradio-primary input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #337ab7;
}

.funkyradio-success input[type="radio"]:checked ~ label:before,
.funkyradio-success input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #5cb85c;
}

.funkyradio-danger input[type="radio"]:checked ~ label:before,
.funkyradio-danger input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #d9534f;
}

.funkyradio-warning input[type="radio"]:checked ~ label:before,
.funkyradio-warning input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #f0ad4e;
}

.funkyradio-info input[type="radio"]:checked ~ label:before,
.funkyradio-info input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #5bc0de;
}

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

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

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

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

.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: #ddd;
    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;
}


.modal-body {
    min-height: 300px;
} 

h1, h2, h3 {
    margin: 0 0 15px 0;
}

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

h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 30px 0 30px 0;
    border-bottom: solid 1px #c1c1c1;
}

.modal-body h1 {
    margin-top: 0px;    
}

.modal-header h2 {
    margin: 0 0 0 0;    
    font-size: 18px;
}

.modal-body h4 {
    border-bottom: 2px solid #e7eaec;
}

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, 
.order-review .row {    
    /*border-bottom: 1px solid #e7eaec;*/
    margin: 0 0 0 0;
    padding: 15px 0;
}

#content .row.head,
.order-review .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 {
    border-bottom: none;
}

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

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

.form-container {
  background-color: #f1f1f1;
  font-weight: normal;
  padding: 10px;
  margin-bottom: 15px;
}

fieldset {
     margin-top: -20px;
}

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

.no-padding {
    padding-left: 0;
    padding-right: 0;
}

.warenkorb .row {
    padding: .6666em 0 0 0;
}

.warenkorb .row.head {
    font-weight: bold;
}

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

.warenkorb .inner-row:last-child {    
    padding-bottom: none;
}

.warenkorb .row {
    border-bottom: solid 1px rgba(255,255,255, 0.6);
} 

.warenkorb .row.actions {  
    border-bottom: none;  
    text-align: center;
    padding: 1em 0;
}

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

.warenkorb .warenkorb-inner {
    display: none;
    max-height: 300px;
    overflow: hidden;
    overflow-y: auto;
    padding-right: 20px;
}

.warenkorb a, 
.warenkorb a:hover {
    background-color: transparent;
    color: #fff;
}

.adress-suche-wrapper {
    position: relative;
}

.adress-suche {    
    background-color: #fff;
    border: solid 1px #ccc;
    border-radius: 3px;
    max-height: 300px;
    overflow-y: scroll;
    position: absolute;
    top: 30px;
    width: 95%;
    z-index: 999;
}

.active-review {
	background-color: #FBFCFC;
	border-top: 1px solid #e7eaec;
	border-right: 1px solid #e7eaec;
	border-left: 4px solid #a0000f;
}

.order-review {
	padding: 0 0 15px 0;
}

.border-none {
    border-bottom: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.checkout button {
    float: right;
}


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

.breadcrumbs {
    padding: 0 30px 15px 30px;
}

.breadcrumbs ul {
    display: inline-block;
    list-style: none;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
}


.breadcrumbs ul li {
    float: left;
    font-size: 13px;
    line-height: 25px;
    padding: 0 10px 0 0;
}

.breadcrumbs ul li:before {
    content: "\f105";
    font: normal normal normal 14px/1 FontAwesome;
    margin-right: 10px;
} 

.breadcrumbs ul li.home:before {
    content: "";
    font: normal normal normal 14px/1 FontAwesome;
    margin-right: 0px;
} 

.breadcrumbs ul li:last-child {
    background-image: none;
}

.breadcrumbs ul li .fa {
    font-size: 14px;
    margin-right: 4px;
}

.breadcrumbs ul li a,
.breadcrumbs ul li a:hover {
    color: #004669;
}

.alert-fixed {
    position: fixed;
    right: 30px;
    top: 20px;
    width: auto;
}

.modal-header h3 {
    margin: 0 0 0 0;
}

.modal-content .alert {
    margin-bottom: 0px;
}

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

.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;
} 
 */
 

.file-input {
    overflow-x: auto;
}

.file-loading {
    top: 0;
    right: 0;
    width: 25px;
    height: 25px;
    font-size: 999px;
    text-align: right;
    color: #fff;
    background: transparent url('../img/loading.gif') top left no-repeat;
    border: none;
}

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    text-align: right;
    opacity: 0;
    filter: alpha(opacity=0);
    opacity: 0;
    background: none repeat scroll 0 0 transparent;
    cursor: inherit;
    display: block;
}

.file-caption .glyphicon {
    display: inline-block;
    min-width: 18px;
    margin-top: 2px;
}

.file-caption-name {
    display: inline-block;
    overflow: hidden;
    max-height: 20px;
    padding-right: 10px;
    word-break: break-all;
}

.file-caption-ellipsis {
    position: absolute;
    right: 10px;
    margin-top: -6px;
    font-size: 1.2em;
    display: none;
    font-weight: bold;
    cursor: default;
}

.kv-has-ellipsis .file-caption-ellipsis {
    display: inline;
}

.kv-has-ellipsis {
    padding-right: 17px;
}

.kv-search-container .kv-search-clear {
    position: absolute;
    padding: 10px;
    right: 0px;
}

.file-error-message {
    background-color: #f2dede;
    color: #a94442;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
}

.file-error-message pre, .file-error-message ul {
    margin: 5px 0;
    text-align: left;
}

.file-caption-disabled {
    background-color: #EEEEEE;
    cursor: not-allowed;
    opacity: 1;
}

.file-input .btn[disabled], .file-input .btn .disabled {
    cursor: not-allowed;
}

.file-preview {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 5px;
    width: 100%;
    margin-bottom: 5px;
}

.file-preview-frame {
    display: table;
    margin: 8px;
    height: 160px;
    border: 1px solid #ddd;
    box-shadow: 1px 1px 5px 0px #a2958a;
    padding: 6px;
    float: left;
    text-align: center;
    vertical-align: middle;
}

.file-preview-frame:hover {
    box-shadow: 3px 3px 5px 0px #333;
}

.file-preview-image {
    height: 160px;
    vertical-align: text-center;
}

.file-preview-text {
    width: 160px;
    color: #428bca;
    font-size: 11px;
    text-align: center;
}

.file-preview-other {
    padding-top: 48px;
    text-align: center;
}

.file-preview-other i {
    font-size: 2.4em;
}

.file-other-error {
    width: 100%;
    padding-top: 30px;
    text-align: right
}

.file-input-new .file-preview, .file-input-new .close, .file-input-new .glyphicon-file,
.file-input-new .fileinput-remove-button, .file-input-new .fileinput-upload-button,
.file-input-ajax-new .fileinput-remove-button, .file-input-ajax-new .fileinput-upload-button {
    display: none;
}

.loading {
    background: transparent url('../img/loading.gif') no-repeat scroll center center content-box !important;
}

.wrap-indicator {
    font-weight: bold;
    color: #245269;
    cursor: pointer;
}

.file-actions {
    text-align: left;
}

.file-footer-buttons {
    float: right;
}

.file-thumbnail-footer .file-caption-name {
    padding-top: 4px;
    font-size: 11px;
    color: #777;
}

.file-upload-indicator {
    padding-top: 2px;
    cursor: default;
}

.file-upload-indicator:hover {
    font-size: 1.2em;
    font-weight: bold;
    padding-top: 0;
}

.file-drop-zone {
    border: 1px dashed #aaa;
    border-radius: 4px;
    height: 100%;
    text-align: center;
    vertical-align: middle;
    margin: 12px 15px 12px 12px;
    padding: 5px;
}

.file-drop-zone-title {
    color: #aaa;
    font-size: 40px;
    padding: 85px 10px;
}

.highlighted {
    border: 2px dashed #999 !important;
    background-color: #f0f0f0;
}

.file-uploading {
    background-image: url('../img/loading-sm.gif');
    background-position: center bottom 10px;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.file-icon-large {
    font-size: 1.2em;
}





@mixin rangeThumb {
  width: 18px;
  height: 18px;
  margin: -8px 0  0;
  border-radius: 50%;
  background: #37adbf;
  cursor: pointer;
  border: 0 !important;
}

@mixin rangeTrack {
  width: 100%;
  height: 2px;
  cursor: pointer;
  background: #b2b2b2;
}

.range {
  position: relative;
  width: 550px;
  height: 5px;
}

.range input {
  width: 100%;
  position: absolute;
  top: 2px;
  height: 0;
  -webkit-appearance: none;

  // Thumb
  &::-webkit-slider-thumb {
    -webkit-appearance: none; // needed again for Chrome & Safari
    @include rangeThumb;
  }

  &::-moz-range-thumb {
    @include rangeThumb;
  }

  &::-ms-thumb {
    @include rangeThumb;
  }

  // Track
  &::-webkit-slider-runnable-track {
    @include rangeTrack;
  }

  &::-moz-range-track {
    @include rangeTrack;
  }

  &::-ms-track {
    @include rangeTrack;
  }

  &:focus { // override outline/background on focus
    background: none;
    outline: none;
  }

  &::-ms-track { // A little somethin' somethin' for IE
    width: 100%;
    cursor: pointer;
    background: transparent;
    border-color: transparent;
    color: transparent;
  }
}

// Labels below slider
.range-labels {
  margin: 18px -41px 0;
  padding: 0;
  list-style: none;
  
  li {
    position: relative;
    float: left;
    width: 90.25px;
    text-align: center;
    color: #b2b2b2;
    font-size: 14px;
    cursor: pointer;
    
    &::before {
      position: absolute;
      top: -25px;
      right: 0;
      left: 0;
      content: "";
      margin: 0 auto;
      width: 9px;
      height: 9px;
      background: #b2b2b2;
      border-radius: 50%;
    }
  }
  
  .active {
    color: #37adbf;
  }
  
  .selected::before {
    background: #37adbf;
  }
  
  .active.selected::before {
    display: none;
  }
}