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

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

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

.menu.left-column {
  background: var(--background-hover-1);
  border-radius: 6px;
  box-sizing: border-box;
  float: left;
  padding: 10px;
  width: 300px;
}

.menu.left-column ul {
  max-height: none;
}

.menu.left-column li.selected {
  background: var(--background-hover-2);
  border-radius: 6px;
}

.menu.left-column li.selected a {
  color: var(--white-1);
}

.menu.left-column li {
  padding: 0;
}

.menu.left-column li a {
  display: block;
  font-size: 16px;
  padding: 10px;
}

.menu.left-column .count {
  background: var(--button-background-2);
  float: right;
}

.menu.left-column li.selected .count {
  background: var(--button-background-1);
  float: right;
}

.menu.right-column {
  background: var(--dark-grey-1);
  float: right;
  width: 640px;
}

.menu.right-column > section {
  display: none;
}

.menu.right-column > section.selected {
  display: block;
}

.menu.right-column li.hover {
  background: var(--background-hover-2);
}

.menu.right-column li.no .title {
  font-size: 22px;
  margin-top: 10px;
}

.menu.right-column li.no .description {
  font-size: 14px;
}

/**
 * All styles are related to forms visible for the contributor.
 */

form.user-locales-settings {
  width: 620px;
}

form.user-locales-settings div {
  text-align: right;
}

/**
 * CSS classes related to the select locale widget.
 */
form .locale.select.selected {
  float: right;
}

form .locale.select .menu {
  background: transparent;
  border-bottom: 1px solid var(--main-border-1);
  margin: 2px 0 -4px -1px;
  overflow: auto;
  padding: 10px 0;
  width: 295px;
}

form > div {
  margin: 20px 0;
}

form .locale.select .menu ul {
  height: 170px;
  margin-bottom: 0;
}

form .locale.select .menu ul li span.code {
  float: right;
  width: auto;
}

form .locale.select {
  float: left;
  width: auto;
}

form .locale li {
  cursor: pointer;
}

form .locale .sortable li {
  cursor: grab;
  cursor: -webkit-grab;
}

.select {
  text-align: left;
}

label {
  display: block;
  padding-bottom: 3px;
  text-align: left;
}

form a:link,
form a:visited {
  color: var(--status-translated-alt);
  float: right;
  text-transform: uppercase;
}

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