input, select, textarea {
  font-family: 'PT Sans Narrow Bold', 'PT Sans Narrow', Helvetica, Arial, Tahoma, sans-serif;
  font-weight: normal;

  -webkit-appearance: none;
          appearance: none;
}
input.field, textarea.field, select.field {
  position: relative; z-index: 1;
  padding: 6px 14px;
  border: 2px solid #67BDD6;
  border-radius: 4px;
  background: #FFF;
  color: inherit;
  font-size: 20px;
  color: #3D768A;
  box-shadow: none;
}
input.field, select.field { height: 42px; }
select.field {
  padding-right: 20px;
  background-image: url('../img/select.png');
  background-repeat: no-repeat;
  background-position: 100% 50%;
  -webkit-appearance: none;
          appearance: none;
}
select.field::-ms-expand { display: none; }
input.field.invalid, textarea.field.invalid, select.field.invalid {
  border-color: #CB5054;
}
input.field[size='13'] { width: 160px; }
input.field[size='20'] { width: 220px; }
input.field-small {
  padding: 2px 6px;
  height: auto;
}
input.num { text-align: right; }

input.stretch,
select.stretch,
textarea.stretch {
  width: 100%;
}

input:disabled,
select:disabled,
textarea:disabled {
  border-color: #E5E5E5;
  color: #81888C;
}


span.links {
  color: #81888C;
  font-size: 14px;
}
span.links a { color: #81888C; }


p.hint {
  color: #81888C;
  font-size: 14px;
}
p.hint i {
  display: block;
  color: #333;
  font-size: 20px; font-weight: bold;
}


table.form-h { width: 100%; }
table.form-h span.required { margin-right: -4px; }
table.form-h > tbody > tr > th {
  padding: 8px 0 16px;
  width: 157px;
  color: #81888C;
  font-size: 14px;
  line-height: 1.17;
  text-align: right;
  vertical-align: middle;
}
table.form-h > tbody > tr > td {
  padding: 8px 0 16px 16px;
}
table.form-h th.fix {
  padding-top: 20px;
  vertical-align: top;
}
table.form-h th.fix2 {
  padding-top: 9px;
  vertical-align: top;
}
table.form-h div.switch,
table.form-h div.checkbox { margin: 0; }
table.form-h div.field { margin: 0; padding: 0; }
table.form-h div.field label { top: -16px; }
table.form-h div.field span.hint,
table.form-h div.field span.error {
  bottom: -18px;
}
table.form-h div.field + p.hint {
  margin-top: 0; margin-bottom: -8px;
}

table.form-v > tbody > tr > td { padding-left: 18px; }
table.form-v p.hint { margin-bottom: 16px; }
table.form-v div.switch {
  padding-top: 18px;
}

fieldset.form-v { margin-left: -18px; }


span.radio, span.checkbox {
  display: inline-block;
  position: relative; z-index: 1;
  width: 18px; height: 18px;
  vertical-align: middle;
}
span.radio input,
span.checkbox input {
  position: absolute; top: -7px; left: -7px; z-index: 2;
  opacity: 0;
  width: 32px; height: 32px;
  -webkit-appearance: none;
}

span.radio i {
  display: block;
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 18px; height: 18px;
  border: 1px solid #B6B6B6;
  border-radius: 2px;
  background: #FFF;

  -webkit-transition: box-shadow 200ms;
     -moz-transition: box-shadow 200ms;
       -o-transition: box-shadow 200ms;
          transition: box-shadow 200ms;
}
span.radio i {
  -webkit-border-radius: 100%;
          border-radius: 100%;
}
span.radio input:active:not(:disabled) + i {
  border-color: 0 0 0 2px rgba(63, 153, 221, 0.3);
}
span.radio input:focus + i {
  -webkit-box-shadow: 0 0 0 8px rgba(182, 182, 182, .2);
          box-shadow: 0 0 0 8px rgba(182, 182, 182, .2);
}
span.radio input + i:before {
  content: '';
  display: block;
  position: relative; left: 2px; top: 2px;
  width: 12px; height: 12px;
  background: #67BDD6;
  -webkit-border-radius: 100%;
          border-radius: 100%;

  -webkit-transform: scale(0);
      -ms-transform: scale(0);
       -o-transform: scale(0);
          transform: scale(0);

  -webkit-transition: 240ms;
       -o-transition: 240ms;
          transition: 240ms;
}
span.radio input:checked + i:before {
  -webkit-transform: scale(1);
      -ms-transform: scale(1);
       -o-transform: scale(1);
          transform: scale(1);
}
span.radio input:disabled + i {
  background: rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: none;
          box-shadow: none;
  opacity: .6;
}

span.radio input:active:not(:disabled) + i {
  border-color: 0 0 0 2px rgba(83, 214, 131, 0.3);
}
span.radio input:focus + i {
  -webkit-box-shadow: 0 0 0 8px rgba(182, 182, 182, .2);
          box-shadow: 0 0 0 8px rgba(182, 182, 182, .2);
}
span.radio input:checked + i { border-color: #67BDD6; }
span.radio input:checked:focus + i {
  -webkit-box-shadow: 0 0 0 8px rgba(103, 189, 214, .1);
          box-shadow: 0 0 0 8px rgba(103, 189, 214, .1);
}


span.checkbox i {
  display: block;
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 18px; height: 18px;
  -webkit-border-radius: 18px;
          border-radius: 18px;

  -webkit-transition: box-shadow 200ms;
     -moz-transition: box-shadow 200ms;
       -o-transition: box-shadow 200ms;
          transition: box-shadow 200ms;

}
span.checkbox input + i:before,
span.checkbox input + i:after {
  display: block;
  position: absolute; top: 0; left: 0; z-index: 1;
}
span.checkbox input + i:before {
  content: '';
  width: 18px; height: 18px;
  border: 1px solid #B6B6B6; border-radius: 2px;

  -webkit-box-sizing: border-box;
          box-sizing: border-box;

  -webkit-transition: all 0.3s ease-in-out;
     -moz-transition: all 0.3s ease-in-out;
          transition: all 0.3s ease-in-out;
}
span.checkbox input + i:after {
  top: 4px; left: 3px;
  width: 10px; height: 5px;
  border: 2px solid #FFF;
  border-top: none;
  border-right: none;
  border-radius: 0;
  background: transparent;
  -webkit-transform: rotate(-45deg);
     -moz-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
       -o-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
span.checkbox input:checked + i:before {
  border-color: #67BDD6;
  background: #67BDD6;
}
span.checkbox input:checked + i:after {
  content: '';
}
span.checkbox input:focus + i {
  background-color: rgba(182, 182, 182, .2);
  -webkit-box-shadow: 0 0 0 8px rgba(182, 182, 182, .2);
          box-shadow: 0 0 0 8px rgba(182, 182, 182, .2);
}
span.checkbox input:checked:focus + i {
  background-color: rgba(63, 153, 221, .1);
  -webkit-box-shadow: 0 0 0 8px rgba(63, 153, 221, .1);
          box-shadow: 0 0 0 8px rgba(63, 153, 221, .1);
}




span.switch {
  display: inline-block;
  position: relative; z-index: 1;
  height: 20px;
  padding-left: 36px;
  margin: 0;
  cursor: pointer;
  text-align: left;
}
span.switch input {
  position: absolute; top: 0; z-index: 1;
  width: 36px; height: 20px;
  margin-left: -36px;
  cursor: pointer;
  opacity: 0;
}
span.switch i {
  display: inline-block;
  width: 0;
  height: 18px;
  margin-top: -2px;
  margin-right: 40px;
  margin-left: -36px;
  line-height: 1;
  vertical-align: middle;
  background-color: #569CAB;
}
span.switch i:before {
  position: absolute; top: 3px; left: 1px;
  width: 34px; height: 14px;
  background-color: #9e9e9e;
  border-radius: 8px;
  content: '';
  -webkit-transition: all .2s;
     -moz-transition: all .2s;
          transition: all .2s;
}
span.switch i:after {
  position: absolute; top: 0; left: 0;
  width: 20px; height: 20px;
  background-color: #fff;
  border-radius: 20px;
  content: '';

  -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .12);
          box-shadow: 0 2px 6px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .12);

  -webkit-transition: all .2s;
     -moz-transition: all .2s;
          transition: all .2s;
}
span.switch input:checked + i:before {
  background: inherit;
  opacity: .5;
}
span.switch input:checked + i:after {
  left: 16px;
  background: inherit;
}
span.switch input:focus + i:after {
  -webkit-box-shadow: 0 0 0 8px rgba(182, 182, 182, .2);
          box-shadow: 0 0 0 8px rgba(182, 182, 182, .2);
}
span.switch input:checked:focus + i:after {
  -webkit-box-shadow: 0 0 0 8px rgba(86, 156, 171, .1);
          box-shadow: 0 0 0 8px rgba(86, 156, 171, .1);
}

span.switch input:disabled i,
span.switch input:disabled + i:before,
span.switch input:disabled + i:after {
  background: #BDBDBD;
}
span.switch input:disabled + i:before {
  opacity: .5;
}
span.switch input:disabled:focus + i:after,
span.switch input:disabled:checked:focus + i:after {
  -webkit-box-shadow: 0 0 0 8px rgba(182, 182, 182, .2);
          box-shadow: 0 0 0 8px rgba(182, 182, 182, .2);
}

div.switch {
  padding-left: 44px;
  line-height: 18px;
}
div.switch span.switch { top: -1px; margin-left: -44px; }

div.md {
  position: relative; z-index: 1;
  padding: 24px 0 24px 12px;
  white-space: nowrap;
}
div.md::before {
  content: '';
  display: block;
  position: absolute; top: 45px; left: 0;
  width: 8px; height: 32px;
}
span.md__nr,
span.md__date,
span.md__example {
  position: absolute; z-index: 1;
}
span.md__nr,
span.md__date {
  bottom: 0;
  font-size: 14px;
}
span.md__example {
  position: relative; left: 32px;
  float: right;
  height: 21px;
  line-height: 21px;
}
span.md__nr { left: 0; }
span.md__date { right: 0; }
span.md__date_overdue { color: #CB5053; }
span.md__comma { font-size: 24px; }

table.md__table { width: 100%; }
td.md__td { vertical-align: bottom; }
td.md__td_input { padding: 0 0 0 4px; width: 32px; }
td.md__td_separator { padding: 0; width: 4px; }
td.md__td input {
  padding: 0;
  height: 32px; width: 100%;
  border: 2px solid #D1D2D4;
  font-size: 24px;
  text-align: center;
  vertical-align: bottom;

  -webkit-appearance: textfield;
     -moz-appearance: textfield;
          appearance: textfield;
}
td.md__td input:-ms-input-placeholder { color: #D1D2D4; }
td.md__td input:-moz-placeholder { color: #D1D2D4; opacity: 1; }
td.md__td input::-moz-placeholder { color: #D1D2D4; opacity: 1; }
td.md__td input::-webkit-input-placeholder { color: #D1D2D4; }
td.md__td input:focus { border-color: #8b8d92; }
div.md_cold::before { background-color: #67BDD6; }
div.md_hot::before { background-color: #CB5054; }
div.md_gas::before { background-color: #FFE289; }
div.md.invalid td.md__td input { border-color: #CB5054; }
div.md span.error {
  display: block;
  position: absolute; bottom: -16px; right: 0; left: 0;
  color: #CB5053;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}


div.field {
  position: relative;
  margin-bottom: 0px; 
  padding: 18px 0 9px 0;
}
div.field label {
  display: block;
  position: absolute; top: -2px; left: 16px; right: 0; z-index: 2;
  color: #81888C;
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  -webkit-transform-origin: left center;
     -moz-transform-origin: left center;
      -ms-transform-origin: left center;
       -o-transform-origin: left center;
          transform-origin: left center;
}
div.field input.animate + label,
div.field textarea.animate + label,
div.field select.animate + label {
  -webkit-transition: all ease-out 150ms;
     -moz-transition: all ease-out 150ms;
      -ms-transition: all ease-out 150ms;
       -o-transition: all ease-out 150ms;
          transition: all ease-out 150ms;
}
div.field input.empty + label,
div.field select.empty + label,
div.field textarea.empty + label
/*div.field textarea:empty + label,
div.field input[value=''] + label*/
{
  right: 3px;
  /*color: #C3D4DA;*/
  color: #AEC5CD;
  font-size: 20px; font-family: 'PT Sans Narrow Bold', 'PT Sans Narrow', Helvetica, Arial, Tahoma, sans-serif;
  font-weight: normal !important;
  line-height: 26px;

  -webkit-transform: translate3d(0, 28px, 0);
     -moz-transform: translate3d(0, 28px, 0);
      -ms-transform: translate(0, 28px);
       -o-transform: translate3d(0, 28px, 0);
          transform: translate3d(0, 28px, 0);
}
div.field input.empty + label,
div.field textarea.empty + label
/*div.field textarea:empty + label,
div.field input[value=''] + label*/
{
  cursor: text;
}
div.field input:focus,
div.field select:focus,
div.field textarea:focus {
  background-color: #DEF0F6;
}
div.field input:focus + label,
div.field textarea:focus + label,
div.field select:focus + label {
  color: #81888C;
  font-size: 14px; font-family: 'PT Sans Narrow', Helvetica, Arial, Tahoma, sans-serif;
  font-weight: normal !important;
  line-height: 18px;

  -webkit-transform: translate3d(0, 0, 0);
     -moz-transform: translate3d(0, 0, 0);
      -ms-transform: translate(0, 0);
       -o-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
}
div.field input:focus + label,
div.field textarea:focus + label {
  cursor: default;
}
div.field span.hint,
div.field span.error {
  display: block;
  position: absolute; right: 0; bottom: -11px; left: 16px; z-index: 1;
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
div.field span.hint { color: #81888C; }
div.field span.error { color: #CB5053; }
div.field span.error + span.hint { display: none; }
div.field + p.hint { margin-top: -25px; padding-left: 16px; }
div.field.invalid + p.hint { visibility: hidden; }


div.form-actions { padding-top: 30px; }
div.form-actions button.button {
  margin-right: 17px;
}
div.form-actions span.ext {
  display: block;
  padding-top: 6px;
}

div.flash {
  position: fixed; top: 0; left: 50%; z-index: 200;
  margin-left: -480px; padding: 0 30px;
  width: 960px; height: 56px;
  border-radius: 0 0 16px 16px;
  background: #AAA;
  color: #FFF;
  font-size: 20px; font-weight: bold;
  cursor: pointer;
}
div.flash > div {
  display: table-cell;
  width: 900px; height: 56px;
  text-align: center;
  vertical-align: middle;
}
div.flash-error { background-color: #CB5054; }
div.flash-notice { background-color: #37BE8A; }


form.autofill div.field label {
  z-index: 0;
}
form.autofill div.field input.field,
form.autofill div.field textarea.field,
form.autofill div.field select.field {
  background-color: transparent;
}
form.autofill div.field input.field:focus,
form.autofill div.field select.field:focus,
form.autofill div.field textarea.field:focus {
  background-color: #DEF0F6;
}