:root {
  --table-row-odd-color: #F0F5F6;
  --border-color: var(--grey-color);
  --icon-color: var(--grey-color);
}

body {
  background-color: var(--white-color);
  margin: 0;
  padding: 0;
}

/* Bootbox */
.modal-title {
  color: var(--grey-color);
  font-size: large;
  font-weight: bold;
}

/* Main */
#urban-register {
  align-items: baseline;
  background: var(--white-color);
  color: var(--grey-color);
  display: grid;
  grid-template-areas:
    "search search2"
    "table table";
  grid-template-rows: 100px 1fr;
  grid-template-columns: 1fr 1fr;
  height: calc(100vh - 128px);
  overflow: auto;
  padding: 2em;
  row-gap: 2em;
}

/* Header */
header {
  align-items: center;
  background: var(--white-color);
  display: flex;
  height: 78px;
  justify-content: space-between;
  padding: 14px 2em;
}
header h2 {
  grid-area: title;
  color: var(--graphite-color);
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
}

#district-brand {
  margin-right: 2em;
  min-width: unset;
}
#district-brand a,
#district-brand a:hover,
#district-brand a:visited {
  color: var(--graphite-color) !important;
  text-decoration: none;
}

#district-brand a:hover img:last-child {
  filter: grayscale(100%) brightness(190%);
}

/* Search engine */
#urban-register-search-engine-container {
  grid-area: search;
}
#urban-register-search-engine-container2 {
  grid-area: search2;
}
.urban-register-search-engine-container > div {
  align-items: center;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  height: 40px;
  padding: 0 2em;
}
.urban-register-search-engine-container label {
  min-width: 160px;
  text-align: right;
}
.urban-register-search-engine {
  background: var(--table-row-odd-color);
  border: none;
  border-radius: 4px;
  color: var(--graphite-color);
  flex-grow: 1;
  height: 40px;
  outline: none;
  padding: 0 1em;
  vertical-align: middle;
}
#urban-register-parcel-search-engine {
  color: unset !important;
  flex-grow: 1;
}
.urban-register-search-engine-container .twitter-typeahead {
  display: inline-block !important;
  vertical-align: top;
}
.urban-register-search-engine-container .twitter-typeahead .tt-menu {
  background: var(--table-row-odd-color);
  border: none;
  border-radius: 4px;
  box-shadow: 2px 2px 4px 0px var(--grey-color);
  margin-top: 8px;
  padding: 0;
  width: 100%;
}
.urban-register-search-engine-container .twitter-typeahead .tt-hint {
  height: 40px;
  line-height: 20px;
  margin: 0 !important;
  width: 100%;
}

.urban-register-search-engine-container .twitter-typeahead .tt-suggestion:hover {
  background-color: var(--emphasized-light-grey-color);
  color: unset;
}

#urban-register-location-search-engine-container {
  display: inline-flex;
  flex-grow: 1;
  gap: 8px;
  padding: 0;
  vertical-align: top;
}
#urban-register-location-search-engine-container .urban-register-search-engine {
  width: 100%;
}
#urban-register-location-buffer {
  background-color: var(--table-row-odd-color) !important;
  border: none;
  border-radius: 4px;
}

/* Sorter */
#urban-register-sorter option {
  background: var(--table-row-odd-color) !important;
}

/* Table */
.urban-register-table {
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-collapse: separate;
  display: block;
  grid-area: table;
  max-height: calc(100vh - 284px - 4em);
  max-width: calc(100vw - 4em);
  overflow: auto;
  position: relative;
}
.urban-register-table thead th {
  background: var(--white-color);
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--emphasized-light-grey-color);
  border-top: 1px solid var(--border-color);
  cursor: pointer;
  font-weight: normal;
  padding: .4em .4em 0;
  position: sticky;
  text-align: center;
  top: 0;
  vertical-align: top;
  z-index: 1;
}
.urban-register-table td {
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--emphasized-light-grey-color);
  font-weight: bold;
  padding: .2em .4em;
}
.urban-register-table a {
  cursor: pointer;
}
.urban-register-table td:last-child,
.urban-register-table th:last-child {
  border-right: none;
}
.urban-register-table th:first-child,
.urban-register-table td:first-child {
  border-left: 1px solid var(--border-color);
}
.urban-register-table tbody tr:last-child td {
  border-bottom: unset;
}
.urban-register-table tbody tr:nth-child(odd) td {
  background: var(--table-row-odd-color);
}
.urban-register-sortable {
  padding-right: 18px !important;
  position: relative;
}
.urban-register-sort {
  font-size: 16px;
  height: 10px;
  margin: 0 4px;
  position: absolute;
  right: 0;
  top: .4em;
  width: 10px;
}

.no-results-row {
  text-align: center;
  font-size: x-large;
  padding: 2em !important;
}

#urban-register-footnote {
  font-size: 12px;
  height: 2em;
  padding: .4em;
}

/* Footer */
#urban-register-footer {
  align-items: end;
  background: var(--white-color);
  display: flex;
  gap: 1em;
  height: 50px;
  padding: 0 2em 10px;
}

#urban-register-footer img {
  height: 40px;
}
