body {
  margin: 0;
  padding: 0;

  /*display: grid;*/
  /*grid-template-rows: minmax(100vh, max-content);*/
  /*grid-template-columns: max-content auto;*/

  /*--nav-padding: 1rem;*/

  /*nav {*/
  /*  padding: var(--nav-padding);*/
  /*  height: 100vh;*/
  /*  overflow: auto;*/
  /*  position: sticky;*/
  /*  top: 0;*/

  /*  > ul {*/
  /*    margin: 0;*/
  /*    position: sticky;*/
  /*    top: var(--nav-padding);*/

  /*    > li {*/
  /*      margin-bottom: 1rem;*/
  /*    }*/
  /*  }*/

  /*  .active {*/
  /*    background-color: #ff9e55b3;*/
  /*!*  }*!*/

  /*}*/

  main {
    padding: 1rem;
  }
}

form {
  border: 1px solid grey;
  padding: 1rem;

  .inline {
    display: inline;
    margin-right: 0.3rem;
  }

  div.box {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid lightgrey;
    padding: 0.5rem;

    margin-bottom: 1.5rem;

    ul {
      padding: 0;
      margin: 0;

      li {
        margin-bottom: 0.5rem;
      }
    }

    > label {
      display: block;
      font-size: large;
      margin-bottom: 1rem;
    }
  }

  div.subbox {
    > label {
      font-weight: bold;
      font-size: medium;
    }

    .subbox-label {
      font-weight: bold;
      font-size: medium;
    }

    margin-bottom: 0.5rem;

    &:last-child {
      margin-bottom: 0;
    }
  }

  div.flat {
    display: flex;
    justify-content: space-between;

    > label {
      font-weight: normal;
      font-size: medium;
      margin: 0 1rem 0 0;
    }

    > select {
      width: 40%;
    }

    > input[type=text] {
      width: 40%;
    }
  }

  div.space-top {
    margin-top: 0.5rem;
  }

  .inline-with-delete-btn li {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;

    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid lightgrey;
    padding: 0.5rem;

    div {
      width: 100%;
      padding-right: 1rem;
    }

    div:last-child {
      padding: 0;
    }
  }

  div {
    label.inline-label {
      display: inline-block;
      margin-top: 0.2rem;
    }

    input[type=text] {
      width: 100%;
      box-sizing: border-box;
    }

    select {
      width: 100%;
      box-sizing: border-box;
    }

    textarea {
      width: 100%;
      box-sizing: border-box;
    }

    .help-text {
      margin: 0.2rem 1.2rem;
      font-size: smaller;

      &::before {
        display: inline-block;
        font-style: normal;
        font-variant: normal;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;

        margin-right: 0.5rem;

        //noinspection CssNoGenericFontName
        font-family: "Font Awesome 6 Free";
        font-weight: 400;
        content: "\f059";
      }
    }

    .radio-row label {
      display: inline-block;
      margin-top: 0.2rem;
    }
  }

  .map-host {
    width: 100%;
    height: 500px;
  }

  .long-multi-select {
    height: 20rem;
  }

  textarea {
    resize: vertical;
    height: 5rem;
  }
}

.restrict-text-length {
  display: block;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  margin: 0.2rem;
  border: 1px solid grey;
  border-radius: 0.2rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  color: black;
  background-color: white;

  &:hover {
    background-color: lightgray;
  }
}

.aktion-placeholder {
  display: inline-block;
  width: 3rem;
}

.div-disabled {
  pointer-events: none;
  opacity: 0.6;
}


table {
  // remove margin from ul in table
  ul {
    margin: 0;
  }

  // striped rows
  tr {
    &:nth-child(odd) {
      background-color: #f2f2f2;
    }

    td:last-child {
      display: flex;
      flex-flow: row;
    }
  }
}

/* struktureinheiten sorting */
.sorting-host {
  .sorting-item {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;

    i {
      color: #bebebe;
      margin-right: 1rem;
    }

    .content {
      flex: 1;
    }

    .hidden-data {
      display: none;
    }
  }

  .drag-ghost {
    background-color: #efefef;
  }
}

.not-displayed {
  display: none!important;
}

.is-first-action-in-next-structure-unit {
  td {
    border-top: 1px dashed #a1a1a1;
  }
}

.toggle-show-delete-btn-wrapper {
  top: 1px;
  position: sticky;
  display: flex;
  justify-content: right;
  margin-bottom: 0.5rem;
}

.multi-select-status {
  max-width: 500px;
}

.check-ok {
  color: #007b96;
}

.check-not {
  color: #919191;
}

.form-errors > ul {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background-color: rgb(210, 46, 46);
  color: white;
}

.abstammungen {
  td:nth-child(-n+3) i {
    color: #969696;
  }

  /* ist bevorzugt */
  td:nth-child(4) i {
    color: #007b96;
  }

}

#errorpage {
  padding: 0.5rem 1rem;
  background-color: rgb(210, 46, 46);
  color: white;
}

a {
  svg {
    height: 1rem;
  }
}

.ki-translate-wrapper {
    border: 1px solid #ccc;
    margin-bottom: 8px;
    padding: 4px;
    display: grid;
    grid-template-columns: auto 1fr 1fr;

    div {
        margin-right: 1rem;
    }

    p {
        margin: 2px 0;
    }

    button {
        padding: 2px;
    }
}