/* Translation request  */
/* https://xtm-cloud.atlassian.net/browse/PX-3838 */

/* Hide customer field. */
.PortalLayout-translation_requests-create .ra-input-customer {
  display: none;
}

/* Hide source language field.
 * Hiding the source language field will break form submission if the template
 * does not have sources specified.
 */
.PortalLayout-translation_requests-create .ra-input-sourceLanguage {
  display: none;
}

/* Projects list - hide cost columns. */
/* https://xtm-cloud.atlassian.net/browse/PX-3838 */

/* Hide Cost estimation date column. */
th.column-cost\.updateDate,
td.column-cost\.updateDate {
  display: none !important;
}

/* Hide Estimate column. */
th.column-cost\.price,
td.column-cost\.price {
  display: none !important;
}

/* Hide Final cost column. */
th.column-finalCost\.price,
td.column-finalCost\.price {
  display: none !important;
}

/* Hide Cost status column. */
th.column-costStatus,
td.column-costStatus {
  display: none !important;
}

/* Hide estimate filters (Advanced search) together with the cost columns. */
/* https://xtm-cloud.atlassian.net/browse/PX-3950 */
.PortalLayout-projects {
  .filter-field .ra-input-exists\[cost\],
  .filter-field[data-source="cost.createDate"] {
    display: none !important;
  }
}

/* Projects list - text between the title and the tabs. */
/* https://xtm-cloud.atlassian.net/browse/PX-3950 */
.PortalLayout-projects .PortalListHeader-root::after {
  content: "Below is an overview of your translation requests and their status.\A \A You can add a colleague you want to share the translation with by clicking on the 3 dots on the right.\A \A As soon as a translation is ready, its status will be set to \"Finished\" and you can download it by clicking on the 3 dots on the right. Then click \"Download target files\": the files will be downloaded as a Zip file.\A \A (Note: Text entered in the text box will be delivered as a txt file (with no formatting))";
  display: block;
  width: 100%;
  padding-top: 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: normal;
  white-space: pre-wrap;
}

/* Sidebar menu: Change "Info Page" to "Contact info". */
/* https://xtm-cloud.atlassian.net/browse/PX-3838 */
.MenuItemLink-app_tabs_info_page {
  /* Collapsed sidebar - the label is rendered in the tooltip. */
  .MuiTooltip-tooltip {
    span {
      display: none;
    }
    &::after {
      content: "Contact info";
      font-size: 0.6875rem;
    }
  }
  /* Expanded sidebar (mobile) - the label is rendered in the menu item. */
  > span:not(.MuiTouchRipple-root) {
    font-size: 0;
    &::after {
      content: "Contact info";
      font-size: 1rem;
    }
  }
}

/* Instructions box below the page title.
 * Three pseudo elements joined into one box, because a single content string
 * cannot mix a bold heading with an indented numbered list and a last line.
 * Negative order keeps the page-grid parts above the form columns.
 */
/* https://xtm-cloud.atlassian.net/browse/PX-3838 */
/* https://xtm-cloud.atlassian.net/browse/PX-3950 */
.PortalLayout-translation_requests-create {
  form#translation-request::before,
  .PortalPageGrid-root::before,
  .PortalPageGrid-root::after {
    display: block;
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    white-space: pre-wrap;
  }
  /* Heading - top of the box, bold 16px. */
  form#translation-request::before {
    content: "How does it work?";
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 16px 32px 0;
    font-size: 16px;
    line-height: 22px;
    font-weight: bold;
  }
  /* Numbered list - middle of the box, indented. Sub-lines are aligned under
   * the item text with spaces.
   */
  .PortalPageGrid-root::before {
    content: "\A 1. Choose a project name\A 2. Select the appropriate template\A    (EN for a source text in English, NL for Dutch and FR for French)\A 3. Upload your document or copy-paste your text to the text box\A    (! text copy-pasted in the text box will be delivered as a txt file with no formatting)\A 4. Add any useful reference material (previous versions, etc.)\A 5. Choose the target language(s)\A    Only need one? Remove the other languages.\A 6. Enter a deadline and, if necessary, the colleague you want to share the translation with\A    Turn off ‘Use the default deadline time’ to change the delivery time (default: 5 pm).\A 7. If necessary, add details in the ‘Translation instructions’ field\A 8. Enter your personal details and click \"Send request\"";
    order: -2;
    border-top: none;
    border-bottom: none;
    border-radius: 0;
    padding: 0 32px 0 48px;
    font-size: 14px;
    line-height: 20px;
    font-weight: normal;
  }
  /* Turnaround time - bottom of the box. */
  .PortalPageGrid-root::after {
    content: "Our minimum turnaround time is 24 hours. For urgent translations, contact the Language Services team.";
    order: -1;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 16px 32px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 20px;
    font-weight: normal;
  }
}

/* Additional info card: title "Translation instructions", Description helper text. */
/* https://xtm-cloud.atlassian.net/browse/PX-3950 */
.PortalLayout-translation_requests-create {
  #PortalTranslationRequest-additionalInfo .MuiTypography-root {
    & > span {
      display: none;
    }
    &::before {
      content: "Translation instructions";
    }
  }
  .ra-input-description {
    margin-bottom: 20px;
    .MuiFormHelperText-root span::after {
      content: "If needed, add target audience, terminology, tone…";
    }
  }
}

/* i18n: pl */
html[lang="pl"] {
  .MenuItemLink-app_tabs_info_page {
    .MuiTooltip-tooltip::after,
    > span:not(.MuiTouchRipple-root)::after {
      content: "Informacje kontaktowe";
    }
  }
  .PortalLayout-projects .PortalListHeader-root::after {
    content: "Poniżej znajduje się przegląd Twoich zleceń tłumaczenia i ich statusów.\A \A Możesz dodać współpracownika, któremu chcesz udostępnić tłumaczenie, klikając 3 kropki po prawej stronie.\A \A Gdy tłumaczenie będzie gotowe, jego status zmieni się na \"Zakończony\" i możesz je pobrać, klikając 3 kropki po prawej stronie. Następnie kliknij \"Pobierz pliki docelowe\": pliki zostaną pobrane jako plik Zip.\A \A (Uwaga: tekst wpisany w polu tekstowym zostanie dostarczony jako plik txt (bez formatowania))";
  }
  .PortalLayout-translation_requests-create {
    form#translation-request::before {
      content: "Jak to działa?";
    }
    .PortalPageGrid-root::before {
      content: "\A 1. Wybierz nazwę projektu\A 2. Wybierz odpowiedni szablon\A    (EN dla tekstu źródłowego w języku angielskim, NL dla niderlandzkiego i FR dla francuskiego)\A 3. Prześlij dokument lub skopiuj i wklej tekst do pola tekstowego\A    (! tekst wklejony do pola tekstowego zostanie dostarczony jako plik txt bez formatowania)\A 4. Dodaj przydatne materiały referencyjne (poprzednie wersje itp.)\A 5. Wybierz języki docelowe\A    Potrzebujesz tylko jednego? Usuń pozostałe języki.\A 6. Podaj termin i w razie potrzeby współpracownika, któremu chcesz udostępnić tłumaczenie\A    Wyłącz ‘Użyj domyślnej godziny terminu’, aby zmienić godzinę dostarczenia (domyślnie: 17:00).\A 7. W razie potrzeby dodaj szczegóły w polu ‘Instrukcje dotyczące tłumaczenia’\A 8. Podaj swoje dane i kliknij \"Wyślij zlecenie\"";
    }
    .PortalPageGrid-root::after {
      content: "Minimalny czas realizacji wynosi 24 godziny. W przypadku pilnych tłumaczeń skontaktuj się z zespołem Language Services.";
    }
    #PortalTranslationRequest-additionalInfo .MuiTypography-root::before {
      content: "Instrukcje dotyczące tłumaczenia";
    }
    .ra-input-description .MuiFormHelperText-root span::after {
      content: "W razie potrzeby podaj grupę docelową, terminologię, ton…";
    }
  }
}

/* i18n: de */
html[lang="de"] {
  .MenuItemLink-app_tabs_info_page {
    .MuiTooltip-tooltip::after,
    > span:not(.MuiTouchRipple-root)::after {
      content: "Kontaktinformationen";
    }
  }
  .PortalLayout-projects .PortalListHeader-root::after {
    content: "Unten finden Sie eine Übersicht über Ihre Übersetzungsanfragen und deren Status.\A \A Sie können eine Person, mit der Sie die Übersetzung teilen möchten, hinzufügen, indem Sie auf die 3 Punkte rechts klicken.\A \A Sobald eine Übersetzung fertig ist, wird ihr Status auf \"Abgeschlossen\" gesetzt, und Sie können sie herunterladen, indem Sie auf die 3 Punkte rechts klicken. Klicken Sie dann auf \"Zieldateien herunterladen\": Die Dateien werden als Zip-Datei heruntergeladen.\A \A (Hinweis: Im Textfeld eingegebener Text wird als txt-Datei (ohne Formatierung) geliefert)";
  }
  .PortalLayout-translation_requests-create {
    form#translation-request::before {
      content: "Wie funktioniert es?";
    }
    .PortalPageGrid-root::before {
      content: "\A 1. Wählen Sie einen Projektnamen\A 2. Wählen Sie die passende Vorlage aus\A    (EN für einen englischen Ausgangstext, NL für Niederländisch und FR für Französisch)\A 3. Laden Sie Ihr Dokument hoch oder kopieren Sie Ihren Text in das Textfeld\A    (! In das Textfeld eingefügter Text wird als txt-Datei ohne Formatierung geliefert)\A 4. Fügen Sie nützliches Referenzmaterial hinzu (frühere Versionen usw.)\A 5. Wählen Sie die Zielsprache(n) aus\A    Sie benötigen nur eine? Entfernen Sie die anderen Sprachen.\A 6. Geben Sie eine Frist und bei Bedarf die Person an, mit der Sie die Übersetzung teilen möchten\A    Deaktivieren Sie ‘Standard-Fristzeit verwenden’, um die Lieferzeit zu ändern (Standard: 17:00 Uhr).\A 7. Fügen Sie bei Bedarf Details im Feld ‘Übersetzungsanweisungen’ hinzu\A 8. Geben Sie Ihre persönlichen Daten ein und klicken Sie auf \"Anfrage senden\"";
    }
    .PortalPageGrid-root::after {
      content: "Die Mindestbearbeitungszeit beträgt 24 Stunden. Für dringende Übersetzungen wenden Sie sich an das Language Services Team.";
    }
    #PortalTranslationRequest-additionalInfo .MuiTypography-root::before {
      content: "Übersetzungsanweisungen";
    }
    .ra-input-description .MuiFormHelperText-root span::after {
      content: "Bei Bedarf Zielgruppe, Terminologie, Tonalität… angeben";
    }
  }
}