/**
 * ------------------------------------------------------
 * General.
 * ------------------------------------------
 */
* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 1300px;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  height: 100%;
}

body > * {
  padding: 1em;
  flex-shrink: 0;
}

img {
  display: block;
}

/**
 * ------------------------------------------------------
 * Site structure.
 * ------------------------------------------
 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

main {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

main > * {
  flex: 1 100%;
}

main > *.center {
  max-width: 400px;
  margin: 0 auto 0 auto;
}

main > aside {
  flex: 1 20%;
  max-width: 400px;
  padding-right: 2em;
}

main > aside + div {
  flex: 1 80%;
}

footer {
  margin-top: auto;
  padding: 0;
  text-align: center;
  border-top: 1px solid #333;
}

/**
 * ------------------------------------------------------
 * Typography.
 * ------------------------------------------
 */
h2,
li,
p,
label,
input,
a,
th,
td {
  color: #333;
  font-weight: 300;
  font-family: "Saira";
}

h2 {
  font-weight: 500;
}

i.fa {
  padding: 0 0.4em;
}

i:first-child.fa {
  padding-left: 0;
}

a:not(.submit):hover {
  color: red;
}

.subtle {
  color: #aaa;
}

.version {
  display: inline-block;
  background-color: #d9edf7;
  vertical-align: 1px;
  font-size: 0.7em;
  padding: 0.1em 0.6em;
  margin-left: 1em;
}

/**
 * ------------------------------------------------------
 * Lists.
 * ------------------------------------------
 */
ol {
  margin: 0;
  padding: 0;
}

ol li {
  text-decoration: none;
  display: inline-block;
  margin-right: 1em;
}

/**
 * ------------------------------------------------------
 * Alerts.
 * ------------------------------------------
 */
.alert {
  padding: 1em;
  background-color: #fcf8e3;
  border: 1px solid #fbeed5;
}

.alert p {
  color: #c09853;
}

.alert.info {
  background-color: #d9edf7;
  border: 1px solid #bce8f1;
}

.alert.info p {
  color: #3a87ad
}

.alert.success {
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
}

.alert.success p {
  color: #468847
}

.alert + .alert {
  margin-top: 1em;
}

/**
 * ------------------------------------------------------
 * Status.
 * ------------------------------------------
 */
.status.todo {
  background-color: #d9edf7;
}

.status.in-progress {
  background-color: #fcf8e3;
}

.status.done,
.status.retrieved {
  background-color: #dff0d8;
}

/**
 * ------------------------------------------------------
 * Forms and inputs.
 * ------------------------------------------
 */
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

input[type=date],
input[type=text],
input[type=password] {
  width: 100%;
  font-size: 1em;
  padding: 0.5em;
  border: 1px solid #aaa;
}

input[type=submit] {
  visibility: hidden;
  position: absolute;
  left: 0;
}

a.submit {
  display: inline-block;
  text-decoration: none;
  padding: 0.5em 1em;
  border: 1px solid #aaa;
}

a.submit + input + a.submit {
  margin-left: 1em;
}

fieldset > div + div {
  margin-top: 1em;
}

/**
 * ------------------------------------------------------
 * Table.
 * ------------------------------------------
 */
table {
  width: 100%;
  border-collapse: collapse;
}

thead,
tr.sum {
  border-bottom: 1px solid black;
}

tr.sum {
  border-top: 1px solid black;
}

tr.sum td {
  font-weight: 500;
}

tr:nth-child(even) {
  background-color: #fafafa;
}

tr:hover {
  background-color: #fcf8e3;
}

th,
td {
  font-size: 0.9em;
  padding: 0.4em;
}

th.center,
td.center {
  text-align: center;
}

th.center i.fa {
  padding: 0;
}

th {
  font-weight: 500;
  text-transform: uppercase;
  text-align: left;
}

/**
 * ------------------------------------------------------
 * Buttons.
 * ------------------------------------------
 */
div.actions {
  display: flex;
  justify-content: space-between;
}