table.table {
  text-align: center;
}

table.table.project-list.hidden {
  display: none;
}

.table td {
  padding: 0 10px;
  vertical-align: middle;
}

/* Used to designate from main style, e.g. deadline not set, no latest activity, project not ready... */
.table td .not,
.table td .not-ready {
  font-style: italic;
}

.table tbody tr:hover {
  background: var(--background-hover-1);
}

.table th:first-child {
  text-align: left;
}

.table th.name {
  width: 220px;
}

.table th.resource {
  width: 420px;
}

.table th.resource.with-deadline:not(.with-priority) {
  width: 310px;
}

.table th.resource.with-priority:not(.with-deadline) {
  width: 330px;
}

.table th.resource.with-deadline.with-priority {
  width: 220px;
}

.table th.tag {
  width: 330px;
}

.table th.population,
.table th.deadline {
  width: 90px;
}

.table th.code,
.table th.priority {
  width: 70px;
}

.table th.latest-activity,
.table th.all-strings {
  width: 140px;
}

.table th.unreviewed-status {
  position: relative;
  width: 16px;
}

.table-sort th.unreviewed-status i {
  margin: -13px 0 0 13px;
}

.table .unreviewed-status span {
  position: absolute;
  font-size: 18px;
  margin: -15px 0 0 -4.5px;
}

.table .progress {
  text-align: left;
}

.table h4 {
  overflow: hidden;
  padding-left: 1px; /* Needed to avoid cutting off text due to overflow: hidden; */
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table .name h4 {
  width: 219px;
}

.table .resource h4 {
  width: 419px;
}

.table .resource.with-deadline:not(.with-priority) h4 {
  width: 309px;
}

.table .resource.with-priority:not(.with-deadline) h4 {
  width: 329px;
}

.table .resource.with-deadline.with-priority h4 {
  width: 219px;
}

.table h4 a {
  font-size: 15px;
  line-height: 47px;
  padding: 12px 0 11px;
}

.table a {
  color: var(--white-1);
}

.table a:hover {
  color: var(--status-translated);
}

/* Selector must also match heading-info */
.deadline time.approaching {
  color: var(--status-warning);
}

/* Selector must also match heading-info */
.deadline time.overdue {
  color: var(--status-error);
}

.table td.code div {
  width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table td.code a {
  color: var(--status-translated-alt);
  line-height: 47px;
  padding: 15px 5px 14px;
}

.table td.priority {
  padding-left: 15px;
}

.table td.priority .fas {
  margin-left: -1px;
  font-size: 12px;
}

.table .latest-activity .latest {
  display: block;
  position: relative;
  width: 140px;

  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.table .latest-activity time {
  white-space: nowrap;
}

.table .latest-activity time:hover {
  color: var(--white-1);
}

.table .latest-activity .tooltip {
  display: block;
  background: var(--tooltip-background);
  border-radius: 10px;
  bottom: 30px;
  color: var(--tooltip-color);
  left: -100px;
  padding: 10px;
  position: absolute;
  text-align: left;
  width: 320px;
  z-index: 20;
}

.table .latest-activity .tooltip:after {
  content: '';
  position: absolute;
  border: 10px solid;
  border-color: var(--tooltip-background) transparent transparent transparent;
  bottom: -20px;
  left: 160px; /* Must be (tooltip width + tooltip padding + bottom) / 2 */
  clip: rect(0 20px 10px 0);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.table .latest-activity .tooltip .quote {
  color: var(--status-translated);
  font-size: 30px;
}

.table .latest-activity .tooltip .translation {
  display: block;
  margin: -20px 0 0 40px;
  overflow-wrap: break-word;
}

.table .latest-activity .tooltip footer {
  color: var(--tooltip-color-2);
  font-style: italic;
  height: 48px;
  margin-top: 10px;
  position: relative;
}

.table .latest-activity .tooltip footer .wrapper {
  bottom: 0;
  position: absolute;
  right: 0;
}

.table .latest-activity .tooltip footer .translation-details {
  display: inline-block;
  padding-top: 8px;
  text-align: right;
}

.table .latest-activity .tooltip footer .translation-action {
  overflow-y: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 264px;
}

.table .latest-activity .tooltip footer .translation-action a {
  color: var(--status-translated);
}

.table .latest-activity .tooltip footer img {
  border-color: var(--tooltip-border);
  display: inline-block;
  margin-left: 8px;
}

.table .progress .chart-wrapper {
  position: relative;
}

.table .progress .chart-wrapper .chart {
  display: table;
  font-size: 0;
  height: 3px;
  margin-top: 2px;
  table-layout: fixed;
  width: 295px;
}

.table .progress .chart-wrapper .chart span {
  display: table-cell;
  height: 100%;
}

.table .progress .chart-wrapper .percent {
  position: absolute;
  right: 25px;
  top: -7px;
}

.table .progress .chart-wrapper .unreviewed-status {
  color: var(--icon-background-1);
  font-size: 18px;
  position: absolute;
  right: 0.5px;
  top: -9px;
}

.table .progress .chart-wrapper .unreviewed-status.pending {
  color: var(--status-unreviewed);
}

.table .progress .chart-wrapper .translated {
  background: var(--status-translated);
}

.table .progress .chart-wrapper .pretranslated {
  background: var(--status-pretranslated);
}

.table .progress .chart-wrapper .warnings {
  background: var(--status-warning);
}

.table .progress .chart-wrapper .errors {
  background: var(--status-error);
}

.table .progress .chart-wrapper .missing {
  background: var(--status-missing);
}

.table tr:hover .progress .chart-wrapper {
  display: none;
}

.table .progress .legend {
  display: none;
  margin-bottom: -9px;
}

.table tr:hover .progress .legend {
  display: block;
}

.table .progress .legend ul {
  font-size: 0;
  margin-top: -1px;
}

.table .progress .legend li {
  display: inline-block;
  padding: 0;
  text-align: center;
  width: 51px;
}

.table .progress .legend li:last-child {
  width: 54px;
}

.table .progress .legend li a {
  color: var(--light-grey-7);
  display: block;
  margin-top: -5px;
}

.table .progress .legend li .title {
  font-size: 10px;
  font-weight: 400;
  line-height: 10px;
  text-transform: uppercase;
}

.table .progress .legend li.translated .title {
  color: var(--status-translated);
}

.table .progress .legend li.pretranslated .title {
  color: var(--status-pretranslated-alt);
}

.table .progress .legend li.warnings .title {
  color: var(--status-warning);
}

.table .progress .legend li.errors .title {
  color: var(--status-error);
}

.table .progress .legend li.missing .title {
  color: var(--status-missing-alt);
}

.table .progress .legend li.unreviewed .title {
  color: var(--status-unreviewed);
}

.table .progress .legend li.all .title {
  color: var(--light-grey-7);
}

.table .progress .legend li .value {
  font-size: 15px;
  line-height: 22px;
}

.table .progress .legend li a:hover .title {
  color: var(--white-1);
}

.table .progress .legend li a:hover .value {
  color: var(--white-1);
  font-weight: 700;
}

.double-list-selector .select .menu ul li .arrow {
  display: none;
  position: absolute;
  top: 4px;
  right: 2px;
}

.double-list-selector .select .menu ul li.hover .arrow {
  display: inline-block;
}

.double-list-selector .select:first-child .menu ul li .arrow:after,
.double-list-selector .select:nth-child(2) .menu ul li .arrow:after {
  content: '';
}

.double-list-selector .select:nth-child(2) .menu ul li.left .arrow:after,
.double-list-selector .select:last-child .menu ul li .arrow:after {
  content: '';
}

.double-list-selector .select:nth-child(2) .menu ul li.left .arrow,
.double-list-selector .select:last-child .menu ul li .arrow {
  left: 2px;
}

.download-selector {
  float: right;
}

.download-selector .selector {
  padding-right: 0;
  padding-top: 0;
}

.download-selector .selector .fas {
  float: right;
  background: var(--button-background-2);
  border-radius: 3px;
  box-sizing: border-box;
  color: var(--light-grey-7);
  font-size: 16px;
  height: 32px;
  width: 32px;
  padding-top: 8px;
  text-align: center;
}

.download-selector .selector .fas:hover {
  background: var(--button-background-hover-2);
}

.download-selector.opened .selector .fas {
  background: var(--button-background-hover-2);
  border-radius: 2px 2px 0 0;
}

.download-selector.opened .menu {
  display: block;
  top: 32px;
  right: 0;
  bottom: auto;
  width: 220px;
}

.download-selector.opened .menu li {
  padding-bottom: 0;
  padding-top: 0;
}

.download-selector.opened .menu li a {
  display: block;
  line-height: 22px;
}

#heading .banner .title {
  color: var(--status-translated-alt);
}

#heading .legend {
  width: 360px;
}

#heading .legend li,
#heading .legend li.unreviewed {
  padding-left: 0;
}

#heading .legend li.banner {
  padding: 0;
}

body.top-contributors #heading .legend li .status.fas {
  display: none;
}

.controls .submenu .links {
  text-align: right;
}

.contributor {
  display: inline-block;
  position: relative;
  width: 670px;
}

.contributor img {
  margin-right: 5px;
}

.contributor p {
  overflow: hidden;
  padding-left: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 520px;

  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.contributor p.name {
  display: inline-block;
  font-size: 1.5em;
  height: 1.5em;
}

.contributor p.role {
  color: var(--white-1);
  left: 67px;
  position: absolute;
  top: 42px;
}

.details div {
  display: inline-block;
  width: 90px;
}

.details div span {
  font-size: 10px;
  text-transform: uppercase;
}

.details div p {
  color: var(--white-1);
}

th:last-child,
.stats .details {
  text-align: center;
  width: 270px;
}

th:last-child {
  position: relative;
}

th:last-child sup {
  top: 7px;
  position: absolute;
}

.stats .details div {
  border: none;
}

.stats .details div.approved {
  color: var(--status-translated-alt);
}

.stats .details div.unreviewed {
  color: var(--status-unreviewed);
}

.stats .details div p {
  font-size: 20px;
  padding: 3px 0 0;
}

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);
}

.contributors ~ table {
  margin-bottom: 30px;
}

.buglist {
  display: none;
  table-layout: fixed;
}

.buglist .id {
  width: 80px;
}

.buglist .summary {
  width: 430px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buglist .last-changed {
  text-align: left;
  width: 130px;
}

.buglist .assigned-to {
  width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.buglist tbody .id a {
  color: var(--status-translated);
}

.buglist th {
  cursor: pointer;
}

.buglist th:hover {
  color: var(--white-1);
}

.buglist th i {
  margin-left: 5px;
  position: absolute;
}

.buglist th.asc i:after {
  content: '';
  display: inline-block;
  margin-top: 5px;
}

.buglist th.desc i:after {
  content: '';
  display: inline-block;
  margin-top: -5px;
}

.controls.no-projects {
  text-align: right;
}

.controls.no-projects > .request-toggle.button {
  float: none;
}

.controls.no-projects > .search-wrapper {
  display: none;
}

#permissions-form .badge-tooltip {
  background: var(--black-3);
  border: 1px solid var(--dark-grey-1);
  border-radius: 10px;
  box-shadow: 0 0 20px -2px var(--tooltip-background);
  box-sizing: border-box;
  text-align: center;
  margin: auto;
  padding: 35px;
  position: fixed;
  display: none;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 360px;
  height: 560px;
  z-index: 100;

  .title {
    color: var(--tooltip-color-2);
    font-weight: 100;
    font-size: 20px;
    text-transform: uppercase;
  }

  img.badge {
    border: 2px solid var(--main-border-1);
    border-radius: 50%;
    margin: 60px auto 20px;
    width: 200px;
    height: 200px;
  }

  .badge-name {
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 5px;
  }

  .badge-level {
    color: var(--tooltip-color-2);
    font-weight: 100;
    font-size: 20px;
    margin-bottom: 45px;
  }

  .notice {
    color: var(--tooltip-color-2);
    font-size: 16px;
    font-weight: 100;
  }

  .notice a {
    color: var(--status-error);
  }
  .continue {
    background: var(--button-background-1);
    border: none;
    border-radius: 3px;
    color: var(--light-grey-7);
    font-size: 15px;
    font-weight: 400;
    margin-top: 10px;
    padding: 10px 20px;
    text-transform: uppercase;
  }

  .continue:hover {
    color: var(--white-1);
  }
}

#permissions-form .selector-wrapper {
  white-space: nowrap;
}

#permissions-form h3 {
  padding-bottom: 30px;
}

#permissions-form h3 .remove-project {
  bottom: 25px;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0;
  position: absolute;
  right: 0;
}

#permissions-form h3 .remove-project:hover {
  background: var(--status-error);
}

#permissions-form h3 .remove-project .fas {
  float: left;
  font-size: 13px;
  margin-top: 2px;
  padding-right: 5px;
}

#permissions-form .permissions-groups {
  margin-bottom: 80px;
}

#permissions-form .user.select {
  display: inline-block;
  vertical-align: top;
  width: 300px;
}

#permissions-form .user.select.translators {
  text-align: center;
}

#permissions-form .user.select.managers {
  text-align: right;
}

#permissions-form .user.select.translators,
#permissions-form .user.select.managers {
  margin-left: 40px;
}

#permissions-form .user.select label {
  display: block;
}

#permissions-form .user.select label,
#permissions-form .user.select label a {
  color: var(--light-grey-7);
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

#permissions-form .user.select label a {
  display: inline-block;
}

#permissions-form .user.select.translators label:hover,
#permissions-form .user.select.managers label:hover,
#permissions-form .user.select label a.active,
#permissions-form .user.select label a:hover {
  color: var(--white-1);
}

#permissions-form .user.select .menu {
  border-bottom: 1px solid var(--main-border-1);
  overflow: auto;
  padding: 10px 0;
}

#permissions-form .user.select .menu input[type='search'] {
  width: 100%;
}

#permissions-form .user.select .menu ul {
  height: 168px;
  margin-bottom: 0;
  white-space: normal;
}

#permissions-form .user.select .menu ul li {
  cursor: pointer;
  line-height: 17px;
  position: relative;
  width: 100%;

  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#permissions-form .user.select.available .menu ul li:not(.contributor) {
  display: none;
}

#permissions-form .user.select .intro {
  color: var(--light-grey-7);
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  margin: 10px 0;
  text-align: center;
  white-space: normal;
}

#permissions-form .button.save {
  float: right;
}

#permissions-form #project-selector {
  float: right;
}

#permissions-form #project-selector .button {
  margin-right: 10px;
  padding: 6px 12px;
}

#permissions-form #project-selector .button .icon {
  float: right;
  margin-left: 5px;
}

#permissions-form #project-selector .menu {
  background: var(--popup-background-1);
  bottom: 28px;
  width: 287px;
}

#permissions-form #project-selector .menu .search-wrapper input {
  width: 100%;
}

#permissions-form #project-selector .menu li {
  color: var(--light-grey-6);
  cursor: pointer;
}

#project-selector .menu li:not(.limited) {
  display: none;
}

.request-toggle {
  float: right;
}

.request-toggle:before {
  margin-right: 2px;
}

.request-toggle.back:after {
  margin-left: 2px;
}

.request-projects {
  margin-left: 20px;
}

/* Bug 1468997 */
.request-team {
  display: none;
}

.request-team:before {
  content: 'Request new team';
}

.request-team.back:after {
  content: 'Back to enabled teams';
}

.request-pretranslation:before {
  content: 'Request pretranslation';
}

.request-projects:before {
  content: 'Request more projects';
}

.request-pretranslation.back:after,
.request-projects.back:after {
  content: 'Back to enabled projects';
}

.request-teams:before {
  content: 'Request new language';
}

.request-teams.back:after {
  content: 'Back to enabled languages';
}

.request-toggle:after,
.request-toggle.back:before {
  content: '';
}

#request-team-form {
  margin: 0 auto;
  display: none;
}

#request-item-note {
  margin: 25px 0 5px;
  display: none;
}

#request-item-note p {
  font-style: italic;
  color: var(--light-grey-7);
  text-align: center;
  display: block;
}

.items.request #request-item-note p.locale-projects,
.items.requesting-pretranslation #request-item-note p.pretranslation {
  display: block;
}

.items.request #request-item-note p.pretranslation,
.items.requesting-pretranslation #request-item-note p.locale-projects {
  display: none;
}

#request-item-note p a {
  color: var(--status-translated);
}

.request-item {
  display: none;
  background: var(--status-translated);
  border: none;
  border-radius: 3px;
  margin-top: 15px;
  padding: 10px;
  text-transform: uppercase;
  width: 100%;
}

.request-item.confirmed {
  background: var(--status-warning);
}

#team-form {
  display: flex;
  position: relative;
  text-align: left;
  margin: 0 auto;
  justify-content: space-between;
}

#team-form .field {
  display: inline-block;
  margin-top: 10px;
  text-align: left;
}

#team-form .field input {
  color: var(--white-1);
  background: var(--input-background-1);
  border: 1px solid var(--main-border-1);
  border-radius: 3px;
  float: none;
  width: 480px;
  padding: 4px;
  box-shadow: none;

  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#team-form .field label {
  display: block;
  padding-bottom: 3px;
  text-align: left;
}

.item-list tbody tr:not(.limited) {
  display: none;
}

.items.request .item-list .all-strings {
  display: table-cell;
}

.items.request .item-list th.check,
.items.requesting-pretranslation .item-list th.check {
  text-align: right;
  width: auto;
}

.item-list .check,
.item-list .radio,
.item-list .all-strings {
  display: none;
}

.items.request .item-list .check,
.items.requesting-pretranslation .item-list .check,
.items.request .item-list .radio {
  cursor: pointer;
  display: block;
}

.item-list td.check,
.item-list td.radio {
  color: var(--icon-background-1);
  float: right;
  font-size: 16px;
  height: 47px;
  text-align: right;
  width: 100%;

  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.item-list td.radio {
  color: var(--grey-3);
}

.item-list td.check:before {
  content: '';
  display: block;
  margin-top: 16px;
}

.item-list td.check:hover:before,
.item-list td.check.enabled:before {
  content: '';
  color: var(--status-translated);
}

.item-list td.check.enabled:before {
  content: '';
}

.item-list td.radio:before {
  display: block;
  margin-top: 16px;
}

.item-list td.radio:hover:before,
.item-list td.radio.enabled:before {
  color: var(--status-translated);
}

.items.requesting-pretranslation .item-list .deadline,
.items.request .item-list .latest-activity,
.items.request .item-list .progress,
.items.request .item-list .unreviewed-status {
  display: none;
}

.items.requesting-pretranslation .item-list .progress {
  width: 340px;
}

#insights .block {
  border-radius: 6px;
  background: var(--dark-grey-1);
  overflow: hidden;
  padding: 30px;
}

#insights h3 {
  color: var(--white-1);
  font-size: 20px;
  font-style: normal;
  font-weight: bold;
  height: 25px;
  letter-spacing: normal;
  margin-bottom: 30px;
}

/* Tooltip */

#insights .controls .selector {
  background: var(--button-background-2);
  color: var(--light-grey-7);
  cursor: pointer;
  width: 24px;
  height: 24px;
  text-align: center;
  border-radius: 3px;
  margin-left: 5px;
  padding-top: 5px;
  box-sizing: border-box;
}

#insights h3 .fas {
  float: right;
  font-size: 14px;
}

#insights h3 .fas.active,
#insights h3 .fas:hover {
  background: var(--button-background-hover-2);
}

#insights h3 .tooltip {
  background: var(--tooltip-background);
  color: var(--tooltip-color);
  position: absolute;
  display: none;
  margin-top: 10px;
  padding: 10px;
  z-index: 1;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.5em;
  border-radius: 3px;
  right: 0;
  max-width: 570px;
}

#insights h3 .tooltip ul {
  margin-left: 15px;
  margin-top: 15px;
}

#insights h3 .tooltip li {
  list-style-type: disc;
}

#insights h3 .tooltip li:not(:last-child) {
  padding-bottom: 5px;
}

/* Custom chart legend */

#insights .legend {
  text-align: center;
}

#insights .legend li {
  display: inline-block;
  font-size: 12px;
  margin: 15px;
  margin-bottom: 5px;
}

#insights .legend li .icon {
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
  height: 12px;
  width: 12px;
}

#insights .legend li .label {
  cursor: pointer;
  font-weight: bold;
  vertical-align: text-top;
}

#insights .legend li.disabled .label {
  color: var(--grey-3);
}

#insights .legend li.disabled .label:hover {
  color: var(--light-grey-2);
}

#insights .half {
  width: 470px;
  float: left;
}

#insights .half:last-child {
  float: right;
}

#insights .block {
  margin-bottom: 40px;
}

#insights .controls .period-selector {
  float: right;
  font-size: 0;
  margin-right: 10px;
}

#insights .controls .period-selector li {
  display: inline-block;
}

#insights .controls .period-selector li .selector {
  font-size: 12px;
  text-transform: uppercase;
  width: 32px;
}

#insights .controls .period-selector li .selector.active,
#insights .controls .period-selector li .selector:hover {
  background: var(--status-translated);
  color: var(--black-3);
}

/* Active users */

#insights .active-users-chart {
  height: 160px;
}

#insights .active-users-chart {
  float: left;
  margin-right: 40px;
  position: relative;
  text-align: center;
}

#insights .active-users-chart:last-child {
  margin-right: 0;
}

#insights .active-users-chart h4 {
  font-size: 14px;
  font-weight: bold;
  margin: 10px auto 0;
  width: 100px;
}

#insights .active-users-chart .active-wrapper {
  left: 0;
  right: 0;
  top: 15px;
  position: absolute;
}

#insights .active-users-chart .active {
  border-bottom: 2px solid var(--light-grey-2);
  display: inline-block;
  font-size: 40px;
  font-weight: bold;
  line-height: 48px;
}

#insights .active-users-chart .total {
  color: var(--light-grey-2);
  font-size: 16px;
  left: 0;
  right: 0;
  top: 68px;
  position: absolute;
}

/* Active users info tooltip */

#insights h3 .tooltip li::marker {
  color: var(--status-translated);
}

/* Time to review suggestions and Age of unreviewed info tooltip */

#insights h3 .tooltip li.current-month::marker {
  color: var(--status-unreviewed);
}

#insights h3 .tooltip li.twelve-month-average::marker {
  color: var(--grey-5);
}

/* Time to review pretranslations */

#insights .time-to-review-pretranslations h3 .tooltip li.current-month::marker {
  color: var(--hot-pink);
}

#insights
  .time-to-review-pretranslations
  h3
  .tooltip
  li.twelve-month-average::marker {
  color: var(--dark-pink);
}

/* Translation activity info tooltip */

#insights h3 .tooltip li.human-translations::marker {
  color: var(--green);
}

#insights h3 .tooltip li.machinery-translations::marker {
  color: var(--forest-green-1);
}

#insights h3 .tooltip li.new-source-strings::marker {
  color: var(--black-3);
}

#insights h3 .tooltip li.completion::marker {
  color: var(--status-translated);
}

/* Review activity info tooltip */

#insights h3 .tooltip li.peer-approved::marker {
  color: var(--blue-1);
}

#insights h3 .tooltip li.self-approved::marker {
  color: var(--grey-5);
}

#insights h3 .tooltip li.rejected::marker {
  color: var(--magenta);
}

#insights h3 .tooltip li.new-suggestions::marker {
  color: var(--black-3);
}

#insights h3 .tooltip li.unreviewed::marker {
  color: var(--status-unreviewed);
}

/* Pretranslation quality info tooltip */

#insights .pretranslation-quality h3 .tooltip li.approval-rate::marker {
  color: var(--lilac);
}

#insights .pretranslation-quality h3 .tooltip li.chrf-score::marker {
  color: var(--purple);
}

#insights .pretranslation-quality h3 .tooltip li.approved::marker {
  color: var(--pink-2);
}

#insights .pretranslation-quality h3 .tooltip li.rejected::marker {
  color: var(--light-pink);
}

#insights .pretranslation-quality h3 .tooltip li.new-pretranslations::marker {
  color: var(--black-3);
}

#info-wrapper .edit-info .fas {
  padding-right: 5px;
}

#info-wrapper .read-write-info textarea {
  background: var(--input-background-1);
  border: 1px solid var(--main-border-1);
  border-radius: 3px;
  color: var(--white-1);
  font-weight: 300;
  margin-bottom: 10px;
  padding: 5px;
  width: 100%;

  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#info-wrapper .read-write-info .toolbar .subtitle {
  color: var(--light-grey-7);
  float: left;
  text-transform: uppercase;
}

#info-wrapper .controls {
  text-align: right;
}

#info-wrapper .controls .cancel {
  display: none;
  color: var(--status-translated-alt);
  margin: 9px;
  text-transform: uppercase;
}

#info-wrapper .controls .save {
  display: none;
}

.translation-memory {
  .upload-wrapper {
    float: right;

    .button.upload {
      .fas {
        padding-right: 2px;
      }
    }

    .button.cancel {
      display: none;
      background-color: transparent;
      margin-left: 0;

      .fas {
        margin-right: 0;
      }
    }

    .button.cancel:hover {
      .fas {
        color: var(--white-1);
      }
    }

    .button.confirm {
      display: none;
    }
  }

  .upload-terms {
    display: none;
    color: var(--light-grey-7);
    font-style: italic;
    line-height: 1.5em;
    padding-top: 10px;
    text-align: right;
  }

  .controls.uploading {
    .button.upload {
      display: none;
    }

    .button.cancel {
      display: inline-block;
    }

    .button.confirm {
      display: inline-block;
    }

    .upload-terms {
      display: block;
    }
  }

  table {
    height: 100%;

    tr {
      height: 100%;

      border-top: 1px solid var(--main-border-1);

      .text {
        width: 340px;
      }

      .actions {
        text-align: right;
      }
    }

    tr:first-child {
      border-top: none;
    }

    tbody {
      tr.skeleton-loader {
        display: none;

        .skeleton {
          animation: fading 1.5s infinite;
          background-color: var(--translation-secondary-color);
          font-size: 15px;
          height: 28px;
          width: 80%;
        }

        .actions {
          .skeleton {
            float: right;
            width: 54%;
          }
        }
      }

      tr.skeleton-loader.loading {
        display: table-row;
      }

      tr {
        td {
          padding: 10px;
        }

        td.no-results {
          text-align: left;
        }

        .text {
          color: var(--light-grey-7);
          font-size: 15px;
          line-height: 1.8em;

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

          .empty {
            border: 1px solid var(--main-border-1);
            border-radius: 3px;
            color: var(--light-grey-7);
            padding: 0 4px;
          }

          a {
            color: var(--white-1);
            display: inline-block;
          }

          a:hover {
            color: var(--status-translated);

            .empty {
              color: var(--status-translated);
            }
          }
        }

        .target {
          textarea {
            display: none;
            box-sizing: border-box;
            color: var(--white-1);
            font-size: 15px;
            font-weight: 100;
            height: 100%;
            width: 100%;
          }
        }

        .actions {
          vertical-align: top;
          width: 240px;

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

            .fas {
              margin-right: 2px;
            }
          }

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

          .button.save {
            display: none;
          }

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

          .button.delete {
            margin-left: 5px;
          }

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

          .button.are-you-sure {
            display: none;
            background: var(--status-error);
            color: var(--black-3);
          }

          .button.cancel {
            display: none;
            background-color: transparent;
            margin-left: 0;

            .fas {
              margin-right: 0;
            }
          }

          .button.cancel:hover {
            .fas {
              color: var(--white-1);
            }
          }
        }
      }

      tr.editing {
        .target {
          .content-wrapper {
            display: none;
          }

          textarea {
            display: block;
          }
        }

        .button {
          display: none;
        }

        .button.save {
          display: inline-block;
        }

        .button.cancel {
          display: inline-block;
        }
      }

      tr.deleting {
        .button {
          display: none;
        }

        .button.are-you-sure {
          display: inline-block;
        }

        .button.cancel {
          display: inline-block;
        }
      }

      tr.fade-out {
        opacity: 0;
        transition: opacity 0.5s ease;
      }
    }
  }
}

@keyframes fading {
  0% {
    opacity: 0.1;
  }

  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 0.1;
  }
}
