/**
 * @file
 * CSS for the tmgmt admin pages.
 */

.tmgmt-ui-info-item {
  float: left;
  margin-right: 80px;
}

@media
  screen and (min-width: 1180px) {
  .state-unprocessed #tmgmt-ui-translator-wrapper {
    width: 50%;
    float: left;
  }

  .state-unprocessed #tmgmt-ui-job-checkout-details {
    width: 50%;
    float: right;
  }

  .state-unprocessed #tmgmt-ui-translator-wrapper details {
    margin-right: 1em;
  }

  .state-unprocessed #tmgmt-ui-job-checkout-details details {
    margin-left: 1em;
  }

  #tmgmt-ui-translator-wrapper .tmgmt-logo-settings {
    float: inherit;
    margin-top: 0;
  }

}

@media
  screen and (min-width: 975px) {
  .tmgmt-logo-settings {
    float: right;
    margin-top: -4.5em;
  }
}

@media
screen and (min-width: 1680px) {
  #tmgmt-ui-translator-wrapper .tmgmt-logo-settings {
    float: right;
    margin-top: -4.5em;
  }
}

.tmgmt-ui-job-items-suggestions details {
  padding-top: 13px;
}

table.tmgmt-ui-review td {
  vertical-align: top;
}

table.tmgmt-ui-review input.unreviewed {
  text-decoration: line-through;
}

table.tmgmt-ui-review input.reset-above {
  margin:5px 0;
}

table.tmgmt-ui-review input.reviewed-below {
  margin: 0;

}

table.tmgmt-ui-review tbody th {
  background: none;
  font-weight: bold;
}

.tmgmt-review-message-inline {
  display: inline;
}

.tmgmt-ui-data-item-label .form-item {
  /* Get the label out of way, so the status icon can be placed at the same
  relative position */
  position: absolute;
}

.tmgmt-ui-data-item-label .form-item label {
    display: inline-block;
    width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tmgmt-ui-state {
  /* Visually align the icon with the text area next to it. */
  margin-top: 2.4em;
  text-align: center;
}

.tmgmt-ui-state .tmgmt-ui-icon {
  margin: 0 auto;
}

/* Base settings for the icon. */

.tmgmt-ui-icon {
  float: left;
  color: #fff;
  text-align: center;
  border-style: solid;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.tmgmt-ui-icon img {
  vertical-align: text-bottom;
}

/* Icon sizes. */
.tmgmt-ui-icon-32 {
  width: 32px;
  height: 32px;
  border-width: 1px;
  line-height: 32px;
  border-radius: 3px;
}

.tmgmt-legend div {
  float: left;
}

.tmgmt-legend-icon {
  float: left;
  margin: 2px 4px;
  margin-left: 20px;
}

.tmgmt-sources-wrapper div.form-item {
  float: left;
  margin-right: 16px;
}

.tmgmt-sources-wrapper input.form-submit {
  margin: 20px 0 0 0;
}

.tmgmt-source-operations-wrapper .form-item-add-all-to-continuous-jobs,
.tmgmt-source-operations-wrapper .form-item--add-all-to-continuous-jobs {
  display: inline-block;
}

.tmgmt-source-operations-wrapper .seven-details__wrapper .form-item-add-all-to-continuous-jobs,
.tmgmt-source-operations-wrapper .seven-details__wrapper .form-item--add-all-to-continuous-jobs {
  margin-bottom: 0.3rem;
  margin-top: 10px;
}

.tmgmt-source-operations-wrapper .claro-details__wrapper .form-item-add-all-to-continuous-jobs,
.tmgmt-source-operations-wrapper .claro-details__wrapper .form-item--add-all-to-continuous-jobs {
  margin-bottom: 1.75rem;
  margin-top: 1rem;
}

.view-tmgmt-node-source-overview .view-filters, .tmgmt-sources-wrapper {
  margin-right: 310px;
}

.tmgmt-status {
  font-weight: 700;
  float: right;
}

.tmgmt-ui-data-item-actions div {
  /* Visually align the action buttons with the text area next to them. */
  position: relative;
  margin-top: 2.4em;
}

.tmgmt-ui-data-item-actions div input {
  text-align: center;
}

.tmgmt_validation_message {
  width: 50%;
  float: right;
}

.tmgmt-job-form .progress__bar {
  background-image: none;
}

.tmgmt-job-form .progress__percentage {
  display: none;
}

.tmgmt-progress {
  float: left;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.tmgmt-progress-pending {
  background-color: #0074BD;
}

.tmgmt-progress-translated {
  background-color: #E29700;
}

.tmgmt-progress-reviewed {
  background-color: #71b350;
}

.tmgmt-progress-accepted {
  background-color: #578a3e;
}

td.views-field-word-count, th.views-field-word-count,
td.views-field-tags-count, th.views-field-tags-count,
td.views-field-item-count, th.views-field-item-count,
td.views-field-loop-count, th.views-field-loop-count {
  text-align: right;
}

.tmgmt-local-progress-untranslated, .tmgmt-local-progress-translated,
.tmgmt-local-progress-completed {
  float: left;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.tmgmt-local-progress-untranslated {
  background-color: #E29700;
}

.tmgmt-local-progress-translated {
  background-color: #0074BD;
}

.tmgmt-local-progress-completed {
  background-color: #71b350;
}

td.views-field-status {
  text-align: center;
  padding: 0;
}

td.views-field-state {
  text-align: center;
  padding: 0 0 0 8px;
}

th.views-field-status, th.views-field-state {
  font-size: 0;
  padding: 0;
}

td.views-field-state img, td.views-field-status img {
  vertical-align: middle;
}

th.views-field-state a, td.views-field-status a {
  width: 0;
}

td.views-field-state {
  min-width: 16px;
}

td.views-field-tjid a {
  display: inline-block;
  width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

 /* @todo Added while in core is set to "fixed". */
.tmgmt-ui-review table.diff {
  table-layout: auto;
}

/* Provider logo */
.tmgmt-logo-overview {
  max-height: 32px;
  display: inline;
  vertical-align: middle;
}
.tmgmt-logo-settings {
  max-height: 120px;
  max-width: 250px;
  margin-right: 1em;
}
