* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #e8e4e4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  max-width: 800px !important;
  padding: .5em;
}

header .row {
  padding-bottom: .5em;
}

main {
  flex: 1;
}

footer {
  padding: .5em;
  text-align: center;
  margin-top: 1em;
  background: #f7f7f7;
  width: 100%;
}
}

footer .badge {
  background-color: #cecece;
}

#searchbar {
  display: flex;
  flex-direction: row;
  padding-bottom:.5em;
}

#logo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logo-header .logo {
  text-decoration: none;
  color: #000;
  text-align: center;
  font-size:150%;
  flex: 1;
}

#logo-header .back {
  white-space: nowrap;
  flex: 0;
}

#search-form {
  flex: 1 1 auto;
}

@media (max-width: 800px) {
  #searchbar {
    flex-direction: column;
  }
  #logo, #search-form {
    flex: 0 0 100%;
  }
}

#flatlist-header {
  background-color: #eaecf0;
  /*background-color: #afb1b5;*/
}

#flatlist-header th {
  padding: .5em;
}

table td {
  padding: .5em;
}

#flatlist-header a {
  /*
  color: #00f;
  background-color: #eaecf0;
   */
  display: block;
  width: 100%;
  height: 100%;
  font-weight: bold;
  border: 0;
  text-decoration: underline;
}

#flatlist-header a.disabled {
  text-decoration: none;
  /* background-color: #eaecf0; */
}

#flatlist-header a.disabled:hover {
  text-decoration: none;
  /* no change cursor */
  cursor: default;
  /* background-color: #eaecf0; */
}

.badge {
  border: 1px solid #e3e1e1;
  color: #333;
  font-size: 100%;
  font-weight: normal;
}

#results {
  background: #fff;
  max-width: 1200px;
}

.fld-desc {
  font-size: 120%;
}

table {
  background-color: #fff;
}

tbody tr {
  border-bottom: 1px solid #ddd;
}

tbody td {
  vertical-align: top;
}

.table-error td{
  background-color: #fdd;
}

.col-date {
  padding-right: 1em;
}

.date-pill {
  float: right;
  font-style: italic;
  padding: .2em .5em;
  margin-right: -.5em;
  margin-top: -.5em;
}

#sm-sort {
  float: right;
  font-weight: normal;
}

#sm-sort select {
  font-size: 100%;
}
