/* inputs */

a.info {
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: inline-block;
    height: 16px;
    border: 1px solid #000;
    position: relative;
    width: 16px;
}
a.info:before{
    content: ' i ';
     font-style: italic; 
     font-weight: 700;
    font-family: Times New Roman, Times, serif;
        color: #000;
        top: -2px;
        position: absolute;
        left: 5px;
        font-size: 14px;
}

select{
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  text-overflow:ellipsis;
    overflow:hidden;
padding-left: 15px;
}
select option {
    width:100%;
    text-overflow:ellipsis;
    overflow:hidden;
}
select::-ms-expand {
    display: none;
}
select:focus::-ms-value {
  background-color: transparent;
}

input[type="time"],
input[type="date"],
input[type="email"],
input[type="text"],
input[type="file"],
input[type="password"],
textarea,
select,
.value {
    box-sizing: border-box;
    display: block;
    margin: 16px 0 8px;
    border: 2px solid var(--main);    
    border-radius: 10px;
    padding: 4px 0 4px 8px;
    width: 100%;
    color: #000;
    
    height: 40px;
    transition: all 0.1s linear;
    -webkit-appearance:  none;   
    background-color: #f9f9f9;
}
.prozentreihen .value,
.prozentreihen input{
    margin: 8px 0;    
}
.value{
    height: 40px;
    background-color: #f9f9f9;  
    background-color: transparent;  
    padding: 4px 16px 4px 4px;  
    line-height: 2rem;
    border: none;
    font-weight: 500;
    position: relative;
}
  

input:hover,
textarea:hover,
select:hover {
    border-color: #C0C0C0!important;
}
input:focus,
textarea:focus,
select:focus,
input:hover,
textarea:hover,
select:hover {
    border-color: var(--maindarker);
    color: var(--maindarker);
    background-color: #ebebeb;
    outline: none;
}

input:focus,
textarea:focus,
select:focus{
    border-color: var(--maindarker)!important;   
}
textarea{
    padding: 8px;
    font: 400 14px/20px 'Roboto', 'PT Sans', Helvetica, sans-serif;
    resize: vertical;
    height: 100px;
    margin-top: 4px;
}
textarea.small{
    height: 40px;
}
textarea.large{
    height: 350px;
}
label.txtarea{
    margin-top: 16px;
}
select option {
    color: #000;
}
@-moz-document url-prefix() { /* targets Firefox only */
    /*select {
    padding: 0!important;
    }*/
}

select{
    display: block;
    width: 100%;
}
.movinglabel,
.selectbox {
  position: relative;
}
.selectbox:after {
  content: '<>';
  font: 14px monospace;
  letter-spacing: 1px;
  color: #333;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
  right: 11px;
  /*Adjust for position however you want*/
  
  top: 10px;
  padding: 0 0 2px;
  border-bottom: 1px solid #999;
  /*left line */
  
  position: absolute;
  pointer-events: none;
}


label{
    color: var(--main);
    height: 24px;
    font-size: 0.8125rem;
}
legend{
    font-size: 0.8125rem;
    line-height: 1.4;
    height: 20px;
    color: #000;
    font-weight: 500;
    margin-bottom: 4px;
    
}
.movinglabel label,
.selectbox label{
    position: absolute;
    left: 12px;
    width: calc(100% - 15px);
    top: calc(50% - 12px);
    padding: 0;
   transition:all  100ms  ease;
      background-color: #f9f9f9;
      z-index: 99;
}
.movinglabel input:hover + label{
    background-color: #dadada;    
}
.movinglabel input:focus + label,
.movinglabel input:disabled + label,
.movinglabel input:valid + label,
.movinglabel input:invalid + label,
.selectbox select + label
{
  font-size: 75%;
/*   transform: translate3d(0, -100%, 0); */
  top: -15px;
  left: 0px;
  width: auto;
   background-color: transparent; 
  /* oben */
    
}
.select_search label{
    font-size: 75%; 
    position: absolute;
}

span.label{
    position: absolute;
     top: -20px;
  left: 0px;
    z-index: 99;
color: var(--main);
font-size: 0.8125rem;
font-size: 0.75rem;
font-weight: 400;
}
.radiobox,
.cbox,
.switch {
  display: block;
  position: relative;
  padding-left: 40px;
  /*margin: 16px 0; */
  margin: 10px 0; 
  cursor: pointer;
  color: #000;
  font-size: 14px;
  height: 24px;
  line-height: 24px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.cbox{
    height: auto;
    line-height: 22px;
    font-size: 0.8125rem;
}
.switch {
  height: 20px;
  line-height: 20px;
  padding: 0;
}
.switch legend{
    margin-left: 40px;
    font-weight:400;
}
.searchbox .switch {
    margin-top: 0;
}
/* Hide the browser's default radio button */
.radiobox input,
.cbox input,
.switch input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom radio button */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 2px solid  var(--main) ;
  border-radius: 5px;
}


/* On mouse-over, add a grey background color */
.radiobox:hover input ~ .checkmark,
.cbox:hover input ~ .checkmark,
.radiobox input:checked ~ .checkmark,
.cbox input:checked ~ .checkmark{
/*    border: 2px solid  var(--main) ;
    background-color: var(--main);*/
}



/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.radiobox input:checked ~ .checkmark:after,
.cbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.radiobox .checkmark:after {
 	top: 2px;
	left: 2px;
	width: 14px;
	height: 14px;
	border-radius: 20%;
	background: var(--main);
}
.cbox .checkmark:after {
    top: 2px;
   left: 2px;
   width: 14px;
   height: 14px;
   border-radius: 20%;
   background: var(--main);
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  width: 36px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #C0C0C0   ;
  border-radius: 10px;
  -webkit-transition: .1s;
  transition: .1s;
}
label a{
    text-decoration: underline;
}

.slider:before {
  position: absolute;
  content: " ";
  height: 16px;
  width: 16px;
  left: 1px;
  border-radius: 50%;
  bottom: 2px;
  background-color: #fff;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #fff    ;
}
input:checked + .slider:before {
  -webkit-transform: translateX(18px);
  -ms-transform: translateX(18px);
  transform: translateX(18px);
}
button,
a.button,
li.button {
    border-radius: 5px;
    border: none;
    line-height: 36px;
    font-size:13px ;
    padding: 0 16px;
    display: inline-block;
    height:36px;
    cursor: pointer;
    background: var(--main);
    color: #fff;
    box-sizing:border-box;
    opacity: 0.9
}
button:hover,
a.button:hover{
    opacity: 1
}
a.button.delete{
    background-color: #f44336;    
       
}
a.button.secondary{
    background-color: #fff;
    color: var(--main);   
    border: 1px solid var(--main);
    line-height: 34px;
}
a.button.secondary:hover{
    background-color: var(--main);
    color: #fff;
}

.movinglabel.prozent:before,
.value.prozent:before,
.movinglabel.eur:before,
.value.eur:before{
    content: ' % ';
    font-size: .9rem;
    font-weight: 500;
    position: absolute;
    right: 2px;
    bottom: 9px;
    display: block;
    z-index: 100;
    color: #444;
  
}
.movinglabel.eur:before,
.value.eur:before{
    content: ' € ';    
}
.value.prozent:before,
.value.eur:before{
    bottom: 4px;
}
.movinglabel.eur input,
.movinglabel.prozent input{
    text-align: right;
    padding-right:16px;
}
.value.eur, 
.value.prozent,
.value {
    text-align: right;
    border-bottom: 1px solid #dadada 
}
.sumfield{
    background-color: var(--main);
    margin: 0 -15px;
    padding: 30px 15px;
}
.sumfield h3{
    color: #fff;
    margin: 0;
}
table input{
    margin: 0;
}
table select{
    margin: 0;
}
table .cbox{
    margin: 0;
}
table .cbox.nolabeltxt{
    padding-left: 20px;
}
table  .cbox.nolabeltxt .checkmark{
    top: -10px;
}
table .movinglabel.prozent:before,
table .value.prozent:before,
table .movinglabel.eur:before,
table .value.eur:before{
    bottom: 11px;
}

input.inline{
    display: inline;
    width: auto;
    height: 24px;
    margin: 2px;
}

#bilanzform input{
    position: relative;
    top: -7px;
    margin-top: 2px;
    height: 28px;
    text-align: right;
}

.autocomplete {
    position: relative;
}
.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
}
.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
    background-color: #e9e9e9;
}
.autocomplete-active {
    background-color: var(--main) !important;
    color: #ffffff;
}