.bell-content {
  padding: 0 2rem 2rem 2rem;
}

.bell-nav {
  background: #616161;
  border: solid #303030 .05rem;
  border-top: 0;
  display: inline-block;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

.logout-button {
  text-align: right;
  padding: 0 2rem;
}

.bell-nav-add,
.bell-nav-entry {
  display: inline-block;
  padding: 1rem;
  vertical-align: top;
}

.bell-nav-entry:hover {
  background-color: #AAAAEE;
}

.bell-nav-entry:not(:last-child) {
  border-right: solid #AAAAAA .05rem;
}

.bell-nav-entry>* {
  display: block;
  height: 1.5rem;
}

.bell-nav-entry>*:only-child {
  height: 3rem;
}

.bell-nav-entry:first-child {
  border-radius: 0 0 0 .8rem;
}

.bell-nav-entry:last-child {
  border-radius: 0 0 .8rem 0;
}

.bell-nav-entry:only-child {
  border-radius: 0 0 .8rem .8rem;
}

.bell-nav-name {
  margin-bottom: 2rem;
}

.bell-nav-entry:not(:last-of-type) .bell-nav-id::after {
  content: '.';
}

.bell-nav-add {
  border: 0;
  background: transparent;
  height: 8rem;
}

.bell-nav-add-inner {
  margin-bottom: 0;
  height: 6rem;
  vertical-align: middle;
  align-items: center;
  line-height: 5rem;
  border: solid #CCCCCC .05rem;
  border-radius: .8rem;
  padding: .5rem;
  background: white;
  display: block;
}

.bell-delete::before, .bell-nav-add-inner::before {
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: inline-block;
  text-align: center;
  font-size: 2rem;
  color: white;
  line-height: 3rem;
  vertical-align: middle;
  margin-right: 1rem;
  display: inline-block;
}

.bell-nav-add-inner::before {
  content: '+';
  background: #6666F0;
}

.bell-delete::before {
  content: '🗙';
  background: #F06666;
  font-size: 1.2rem;
}

.bell-delete:focus,
.bell-delete:hover {
  border: solid #202020 .05rem;
  background: #FFA0A0;
}

.bell-delete:active {
  border: solid #F02020 .05rem;
  background: #FF8080;
}

.bell-create:focus,
.bell-create:hover,
.bell-nav-add-inner:focus,
.bell-nav-add-inner:hover {
  border: solid #202020 .05rem;
  background: #A0FFA0;
}

.bell-create:active,
.bell-nav-add-inner:active {
  border: solid #2020F0 .05rem;
  background: #80FF80;
}

.bell-landlord-logo {
  float: right;
  height: 8rem;
  margin-top: 0.5rem;
}

.bell-landlord-logo img {
  height: 100%;
}

.bell-address {
  border: solid 0.05rem #CCC;
  padding: 2rem;
  margin: 2rem;
  border-radius: .8rem;
}

.bell-address-label {
  font-weight: bold;
}

.bell-address-rentingunit {
  user-select: none;
}

.bell-address-rentingunit::before {
  content: '(Klingel-ID ';
}

.bell-address-rentingunit::after {
  content: ')';
}

.bell-device-table {
  width: 100%;
  margin-bottom: 2rem;
}

.logout {
  padding: 1rem;
  display: block;
  border-radius: .8rem;
  border: white solid .05rem;
  float: right;
  margin-top: -.5rem;
  color: white;
}

.logout:hover,
.logout:focus {
  border-color: #428bca;
  color: white;
}

.logout:active {
  border-color: #428bca;
  color: #428bca;
}

.main {
  margin: 0 2rem 3rem 2rem;
}

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

footer {
  margin: auto 2rem 0.5rem 2rem;
  display: flex;
  flex-direction: row-reverse;
}

tr {
  border-top: solid #CCCCCC .05rem;
}

td {
  padding: 0.5rem 1rem;
}

tbody tr:nth-of-type(2n) {
  background-color: #F0F0F0;
}

.page-header h2{
  margin: 0;
  color: white;
  text-shadow: 0 0 .5rem #964327;
}

.page-header {
  border-bottom: solid #CCCCCC .05rem;
  background-color: #C64327;
  margin: 0;
  padding: 3rem;
}

.page-header h1, .page-header h1 a, .page-header h1 a:visited, .page-header h1 a:active {
  color: #C64327;
  font-size: 36pt;
  text-decoration: none;
}

.bell-qr img,
.bell-qr svg {
  height: 25rem;
  max-height: 80vh;
  width: 100%;
  object-fit: contain;
  image-rendering: crisp-edges;
  image-rendering: optimizespeed;
}

nav {
  min-height: 65px;
  height: min-content;
  line-height: 65px;
}

.nav-wrapper {
  min-height: min-content;
  display: flex;
  justify-content: space-between; 
}

.breadcrumb-wrapper {
  height: min-content;
  padding-left: 1rem;
}

.breadcrumb-wrapper a.breadcrumb:hover,
.breadcrumb-wrapper a.breadcrumb:focus,
.breadcrumb-wrapper a.breadcrumb:active {
  color: white;
}

.bell-search-bar {
  color: #FFFFFF;
  transition-duration: .4s;
  transition-property: flex-basis;
  flex-basis: 10em;
  flex: 1;
  height: 65px;
}

.bell-search-bar input {
  color: #FFFFFF;
}

.bell-search-bar:hover,
.bell-search-bar:active,
.bell-search-bar:focus-within {
  flex-basis: calc(10em + 20vw);
}

.bell-nav form {
  display: inline-block;
}

.bell-nav .breadcrumb-wrapper {
  padding-right: 1rem;
}

.bell-nav .breadcrumb {
  background-color: unset;
}

.bell-nav .breadcrumb>span {
  display: inline-block;
}

.bell-nav .breadcrumb>span>* {
  width: fit-content;
  line-height: normal;
}

.bell-name-part,
.bell-id-part {
  margin: .2rem 0;
}

.bell-id-part {
  font-weight: normal;
  font-size: small;
}

@media only screen and (min-width: 601px) {
  .bell-nav {
      min-height: 65px;
  }
}

nav i, nav [class^="mdi-"], nav [class*="mdi-"], nav i.material-icons {
  height: 65px;
  line-height: 65px;
}

nav .button-collapse i {
  height: 65px;
  line-height: 65px;
}

nav .brand-logo {
  font-size: 1.6rem;
}


tbody tr.clickable-row:nth-of-type(2n) td:first-child:focus-within,
tbody tr.clickable-row:nth-of-type(2n) td:first-child:focus-within ~ td,
tbody tr.clickable-row:nth-of-type(2n):hover {
  background-color: #A0A0FF;
}

tbody tr.clickable-row:nth-of-type(2n+1) td:first-child:focus-within,
tbody tr.clickable-row:nth-of-type(2n+1) td:first-child:focus-within ~ td,
tbody tr.clickable-row:nth-of-type(2n+1):hover {
  background-color: #C0C0FF;
}

tr.clickable-row td:first-child a {
  color: #333;
  text-decoration: none;
  outline: none;
}

th.sorttable_sorted_reverse > span,
th.sorttable_sorted > span {
  display: inline-block;
  width: 0;
}

@media screen and (max-width: 600px) {
  .bell-nav-entry:first-child .bell-nav-name {
      font-size: 0;
  }

  .page-header h2 {
      font-size: 2.2rem;
  }

  .nav-wrapper {
    flex-wrap: wrap;
  }
}

.clickable-row {
  cursor: pointer;
}

.raw-pem {
  white-space: pre;
  font-family: monospace;
  font-size: smaller;
}

.input-field > input[type="date"] + label:not(.label-icon) {
  transform: translateY(-14px) scale(0.8);
  transform-origin: 0 0;
}
