ul {
  list-style: none;
  margin: 0;
}

#heading:not(.simple) {
  padding: 30px 0;
}

#heading:not(.simple) h1 {
  padding-bottom: 30px;
}

#heading h1 a {
  color: var(--white-1);
  font-weight: bold;
  font-size: 32px;
}

#heading h1 .small {
  color: var(--status-translated);
  font-weight: 300;
  padding-left: 5px;
}

#heading .details,
#heading .legend {
  font-weight: 300;
}

#heading .details li,
#heading .legend li {
  line-height: 24px;
}

#heading .details {
  float: left;
  width: 360px;
}

#heading .details .title {
  color: var(--light-grey-7);
  padding-right: 5px;
  position: relative;
  text-transform: uppercase;
}

#heading .details .title sup {
  position: absolute;
  top: -5px;
}

#heading .details .value {
  color: var(--light-grey-7);
  float: right;
}

#heading .details .value a {
  color: var(--white-1);
}

#heading .details .value a:hover {
  color: var(--status-translated);
}

#heading .details .priority .value {
  margin-top: 6px;
}

#heading .details .value.overflow {
  max-width: 275px;
  overflow: hidden;
  padding-left: 1px; /* Needed to avoid cutting off overlay due to overflow: hidden; */
  padding-right: 1px; /* Needed to avoid cutting off overlay due to overflow: hidden; */
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#heading .details .resources .value.overflow {
  max-width: 280px;
  white-space: normal;
}

#heading .progress {
  float: left;
  margin: -10px 65px 0;
  position: relative;
  text-align: center;
}

#heading .progress .number {
  display: none;
  font-size: 50px;
  font-weight: bold;
  left: 0;
  right: 0;
  top: 25px;
  margin: 0;
  position: absolute;
}

#heading .progress .number:after {
  content: '%';
  color: var(--light-grey-2);
  display: block;
  font-size: 20px;
  font-weight: 100;
  line-height: 10px;
}

#heading .legend {
  float: left;
  width: 190px;
}

#heading .legend li {
  color: var(--light-grey-7);
  padding-left: 25px;
  position: relative;
  text-align: left;
  text-transform: uppercase;
}

#heading .legend li a {
  color: var(--white-1);
}

#heading .legend li:hover a {
  color: var(--status-translated);
}

#heading .legend li .status.fas {
  left: 0;
  top: 4px;
}

#heading .legend li span.value {
  color: var(--light-grey-7);
  float: right;
}

#heading .legend li a span.value {
  color: var(--white-1);
}

#heading .legend li:hover a span.value {
  color: var(--status-translated);
}

#heading .non-plottable {
  float: right;
}

#heading .non-plottable p {
  color: var(--light-grey-7);
  font-weight: 300;
  line-height: 24px;
  text-align: right;
  text-transform: uppercase;
}

#heading .non-plottable a p {
  color: var(--white-1);
}

#heading .non-plottable a:hover p {
  color: var(--status-translated);
}

#heading .non-plottable p.value {
  font-size: 20px;
}

#heading .non-plottable .all {
  padding-bottom: 21px;
}

#heading .non-plottable .unreviewed .status.fas {
  left: auto;
  position: relative;
  top: -1px;
  left: -0.5px;
}

#heading .non-plottable .unreviewed .status.fas:before {
  color: var(--icon-background-2);
  font-size: 18px;
}

#heading .non-plottable .unreviewed.pending .status.fas:before {
  color: var(--status-unreviewed);
}

.locale-selector .locale.select .button {
  background: var(--button-background-1);
  border-radius: 2px;
  box-sizing: border-box;
  display: flex;
  font-size: 14px;
  height: 28px;
  margin: 0;
  padding: 6px 12px;
  text-align: left;
  text-transform: uppercase;
  width: 240px;
}

.locale-selector .locale.select .button:before,
.locale-selector .locale.select .button:after {
  display: none;
}

.locale-selector .locale.select.opened .button {
  border-radius: 2px 2px 0 0;
}

.locale-selector .locale.select .button .language {
  flex: 1;
  margin-right: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.locale-selector .locale.select .button .code {
  text-transform: none;
}

.locale-selector .locale.select .menu {
  background: var(--popup-background-1);
  top: 28px;
  display: none;
  position: absolute;
  right: 0;
  width: 240px;
}

.locale-selector .locale.select .menu ul {
  max-height: 214px;
}

.locale-selector .locale.select .menu li {
  color: var(--light-grey-6);
  cursor: pointer;
  display: flex;
  text-align: left;
}

.locale-selector .locale.select .menu ul li span.language {
  flex: 1;
  margin-right: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-selector .project.select .button {
  background: var(--button-background-1);
  border-radius: 2px;
  box-sizing: border-box;
  font-size: 14px;
  height: 28px;
  margin: 0;
  padding: 6px 12px;
  text-align: left;
  text-transform: uppercase;
  width: 240px;
}

.project-selector .project.select .button:before,
.project-selector .project.select .button:after {
  display: none;
}

.project-selector .project.select.opened .button {
  border-radius: 2px 2px 0 0;
}

.project-selector .project.select .button .selected-project {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-selector .project.select .menu {
  background: var(--popup-background-1);
  top: 28px;
  display: none;
  position: absolute;
  right: 0;
  width: 240px;
}

.project-selector .project.select .menu ul {
  max-height: 214px;
}

.project-selector .project.select .menu li {
  color: var(--light-grey-6);
  cursor: pointer;
  text-align: left;
}

.project-selector .project.select .menu ul li span.selected-project {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#main .check-list {
  list-style: none;
  margin: 0;
  display: inline-block;
  text-align: left;

  .check-box {
    cursor: pointer;
    padding: 4px 0;

    [type='checkbox'] {
      display: none;
    }

    .fas {
      margin-left: 23px;
      margin-right: 0;
    }
  }

  .check-box:last-child {
    padding-bottom: 0;
  }

  .check-box-wrapper {
    color: var(--light-grey-7);
    display: table;
    font-size: 16px;
    font-weight: 300;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 342px;
  }

  .check-box.hover .check-box-wrapper,
  .check-box-wrapper:hover {
    color: var(--white-1);
  }
}

#main {
  .container {
    menu {
      margin-bottom: 40px;

      #search-menu {
        margin: 0 auto;
        display: flex;
        gap: 8px;

        > .search-wrapper {
          .icon {
            left: 6px;
            top: 9px;
          }

          .search-input {
            font-weight: 400;
            color: var(--input-color-1);
            font-size: 16px;
            height: 32px;
          }
        }
      }

      #locale-selector,
      #project-selector {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;

        .select .button {
          font-size: 16px;
          height: 32px;
          padding: 8px 12px;
        }
      }

      .check-list {
        text-align: right;
        margin: 5px 0;
        width: 100%;

        .check-box {
          display: inline-block;
          padding-bottom: inherit;

          .check-box-wrapper {
            font-size: 15px;
            margin-left: 28px;
            width: auto;

            .fas {
              margin-left: 0;
            }
          }
        }

        .field .check-box-wrapper {
          display: flex;
          flex-direction: row-reverse;
          justify-content: flex-end;
          align-items: center;
          gap: 4px;
        }
      }
    }
  }
}

#entity-list {
  display: none;
}

#no-results {
  color: var(--light-grey-7);
  font-style: italic;
  padding: 10px 16px;
  display: none;
}

#locale-selector,
#project-selector {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

#entity-list-header {
  display: none;
  border-bottom: 1px solid var(--main-border-1);

  span {
    box-sizing: border-box;
    color: var(--light-grey-7);
    display: inline-block;
    font-weight: bold;
    padding: 10px 16px;
    text-transform: uppercase;
    width: 490px;
  }

  .source-header {
    padding-right: 8px;
  }

  .translation-header {
    padding-left: 8px;
  }
}

.entity-container {
  display: grid;
  align-items: stretch;
  border-bottom: 1px solid var(--main-border-1);
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;

  .source-string-container {
    padding-right: 8px;
    overflow: hidden;
  }

  .translation-string-container {
    padding-left: 8px;
    overflow: hidden;
  }

  .source-string,
  .translation-string {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  mark {
    background: var(--search-background);
    color: var(--search-color);
    font-weight: inherit;
    font-style: inherit;
    border-radius: 3px;
  }
}

.entity-info-container {
  color: var(--translation-secondary-color);
  font-style: italic;
  line-height: 22px;
  margin-top: 20px;
}

.entity-info-container a,
.entity-info-container .divider,
.entity-info-container .entity-keys {
  vertical-align: sub;
  word-break: break-all;
}

.entity-info-container a {
  color: var(--status-translated);
  text-decoration: none;
}

.entity-info-container a:hover {
  color: var(--status-translated);
}

.utility-container {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 0;
  margin-top: 20px;
  font-size: 13px;
}

.utility-container.controls button.copy:hover,
.utility-container.controls a.edit:hover,
.utility-container.controls a.all-locales:hover {
  background: var(--status-translated);
}

#initial-section-container {
  background-color: var(--dark-grey-1);
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 20px;
  padding: 16px;

  .translation-info-container {
    display: flex;

    .entity-info-container,
    .utility-container {
      flex: 1;
      font-size: 14px;
    }
  }

  .button {
    background: var(--background-1);
  }

  .button:hover {
    background: var(--status-translated);
  }
}

#translation-list {
  color: var(--white-1);
  line-height: 1.5;
  font-size: 14px;

  .translation-container {
    border-bottom: 1px solid var(--main-border-1);
    padding: 16px;

    .translation-info-container {
      display: flex;

      locale-container,
      .utility-container {
        flex: 1;
      }

      .locale-container {
        font-style: italic;
        margin-top: 20px;

        .translation-locale-name {
          color: var(--light-grey-7);
          vertical-align: sub;
        }

        .translation-locale-name:hover {
          color: var(--status-translated);
        }

        .translation-locale-code {
          color: var(--status-translated-alt);
          vertical-align: sub;
        }

        .divider {
          vertical-align: sub;
        }
      }
    }
  }
}
