html {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  height: 100%;
  line-height: 1.6em;
}

body {
  margin: 0;
  position: relative;
  min-height: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

select, input[type=text],
input[type=password],
input[type=email],
input[type=number] {
  border: 1px solid #818181;
  border-radius: 3px;
  color: inherit;
  font: inherit;
}

input[type=text],
input[type=password],
input[type=email],
input[type=number] {
  line-height: normal;
}

button {
  border: 0;
  color: white;
  font: inherit;
  padding: 5px 7px;
}
select {
  padding: 2px;
  background: white right 4px center no-repeat url(../common/selectbox-trigger.png);
  /* hide drop down arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
select::-ms-expand {
  display: none;
}

img {
  border: 0;
}

ul {
  list-style: none;
  padding: 0px;
  margin: 0px;
}

a, button.link {
  cursor: pointer;
  background: transparent;
  padding: 0;
  line-height: normal;
  text-decoration: none;
}
a:hover, button.link:hover {
  text-decoration: underline;
}
a:focus, button.link:focus {
  outline: none;
}

/* FIXME IE11/Edge
* avoid object tag to swallow mouse click when wrapped by anchor tag
* solution from https://stackoverflow.com/a/17133804
*/
object {
  pointer-events: none;
}

input[type=radio], :not(.menu) > input[type=checkbox] {
  width: 2em;
  margin: 0;
  padding: 0;
  font-size: 1em;
  opacity: 0;
}
input[type=radio] + label, :not(.menu) > input[type=checkbox] + label {
  margin-left: -2em;
  line-height: 1.5em;
  word-wrap: break-word;
}
input[type=radio] + label > span, :not(.menu) > input[type=checkbox] + label > span {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin: 3px;
  margin-right: 5px;
  border: 1px solid rgb(192, 192, 192);
  border-radius: 0.25em;
  vertical-align: top;
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(240, 240, 240)), to(rgb(224, 224, 224)));
  background-image: linear-gradient(rgb(240, 240, 240), rgb(224, 224, 224));
}

:not(.menu) > input[type=checkbox]:checked + label > span:before {
  content: "x";
  display: block;
  font-size: 12px;
  line-height: 10px;
  margin-left: 3px;
  text-shadow: 0 0 0.0714em rgb(115, 153, 77);
  font-weight: bold;
}

input[type=radio]:checked + label > span > span {
  display: block;
  width: 7px;
  height: 7px;
  margin-top: 2px;
  margin-left: 2px;
  border: 1px solid rgb(115, 153, 77);
  border-radius: 0.125em;
}

.hidden {
  display: none;
}

body {
  width: 100%;
  height: 100%;
  color: #818181;
  text-align: center;
  white-space: nowrap;
  background-color: rgb(245.0875, 245.0875, 245.0875);
  /* for vertical centering */
}
body > * {
  text-align: left;
  white-space: normal;
}
body:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

form {
  display: inline-block;
  vertical-align: middle;
  width: 320px;
  padding: 20px 25px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
@media (min-width: 500px) {
  form {
    border: 1px solid #818181;
    padding: 20px 40px;
    border-radius: 5px;
    background-color: #f7f7f7;
  }
}
@media print {
  form {
    width: 100%;
    position: static;
    -webkit-transform: none;
            transform: none;
    border: 0;
  }
}

label {
  margin-right: 10px;
}

a.command {
  display: block;
  font-size: 12px;
  margin-top: 20px;
  text-align: center;
  border-radius: 0 0 5px 5px;
}
@media (min-width: 500px) {
  a.command {
    margin-left: -40px;
    margin-bottom: -20px;
    margin-top: 30px;
    padding: 5px 0;
    width: calc(100% + 80px);
    background: rgb(239.35, 239.35, 239.35);
  }
}

select,
input[type=text],
input[type=password],
input[type=email],
input[type=number],
button {
  width: 100%;
  height: 40px;
  padding: 10px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin-top: 5px;
  font-size: 16px;
}

select {
  background-position: right 10px center;
}

#logo {
  max-width: 100%;
  max-height: 32px;
  margin: 20px auto;
  display: block;
}

@media print {
  .no-print, .buttons {
    display: none;
  }
}

.row {
  margin: 12px 0px;
}
.row.app {
  margin-bottom: 30px;
}
.row.buttons {
  margin-top: 30px;
  margin-bottom: 0px;
}
.row.buttons.centered {
  text-align: center;
}

.error {
  color: red;
  font-size: 90%;
  margin-bottom: 10px;
}

.buttons button,
.buttons a.button {
  background: #818181;
  border: 0;
  border-radius: 3px;
  color: white;
  font-size: 14px;
  line-height: 1.5em;
  padding: 10px 20px;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.buttons button:not(:only-child),
.buttons a.button:not(:only-child) {
  width: auto;
}
.buttons button:not(:first-child),
.buttons a.button:not(:first-child) {
  margin-left: 10px;
}