#tl_navigation a.group-memo_translation {
    background: url(/bundles/memobackendoptim/icons/globe.svg) 3px 2px no-repeat;
}

.translate {
    position: relative;
}

.translate img {
    width: 16px;
    height: 16px;
}

.translate:after {
    content: "";
    background-image: url(/bundles/memotranslation/translate.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: none;
    width: 10px;
    height: 10px;
    position: absolute;
    z-index: 1;
    bottom: -2px;
    right: -2px;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}

.translate.case-1:after {
    display: block;
    background-image: url(/bundles/memotranslation/translate_green.svg);
}

.translate.case-2:after {
    display: block;
    background-image: url(/bundles/memotranslation/translate.svg);
}

.translate.case-3:after {
    display: block;
    background-image: url(/bundles/memotranslation/translating.svg);
}

.translate.case-4:after {
    display: block;
    background-image: url(/bundles/memotranslation/translate_orange.svg);
}

.translate.case-5:after {
    display: block;
    background-image: url(/bundles/memotranslation/translate_red.svg);
}

.translate.case-6:after {
    display: block;
    background-image: url(/bundles/memotranslation/translate_grey.svg);
}

.memo-backend-module .tl_panel {
    color: grey;
    padding-left: 10px;
    text-align: left;
    display: flex;
}

.memo-backend-module .tl_panel > *:not(.full-width) {
    flex: 0 0 auto;
    width: 50%;
}

.memo-backend-module .tl_panel + .tl_form {
    margin-top: 20px;
}

.memo-backend-module .tl_panel .data {
    margin-bottom: 5px;
}

.memo-backend-module .tl_panel table td {
    padding: 2px 10px 2px 0px;
}

.memo-backend-module .tl_form {
    margin-bottom: 20px;
}

.memo-backend-module .tl_form .explanation {
    margin-bottom: 15px;
}

.memo-backend-module .tl_form select {
    height: 30px;
    margin: 3px 0;
    box-sizing: border-box;
    border: 1px solid #aaa;
    padding: 5px 22px 6px 6px;
    border-radius: 2px;
    background: #fff url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDUwMCA1MDAiPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSIxMzEuNTIzIiB5MT0iNDIuNjMiIHgyPSIzNjguNDc4IiB5Mj0iMjc5LjU4NCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjYjNiM2IzIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjOTk5Ii8+PC9saW5lYXJHcmFkaWVudD48cGF0aCBmaWxsPSJ1cmwoI2EpIiBkPSJNMjUwIDM5Ni42NjZjLTEuMTU1IDAtNC4xMS0xLjgzMi03LjExMy02Ljc1bC0xNjkuNi0yNzcuNDU1Yy0yLjUxNy00LjExNC0zLjE5LTYuOTgtMy4yOC04LjMxNC44MjctLjMzIDIuNTY1LS44MTIgNS42MjctLjgxMmgzNDguNzMzYzMuMDYzIDAgNC43OTguNDgyIDUuNjI3LjgxMi0uMDkgMS4zMzQtLjc2NiA0LjItMy4yOCA4LjMxNWwtMTY5LjYgMjc3LjQ1N2MtMy4wMDUgNC45MTctNS45NiA2Ljc1LTcuMTE0IDYuNzV6Ii8+PC9zdmc+) right -16px top 3px no-repeat;
    background-origin: content-box;
    cursor: pointer;
}

.memo-backend-module .tl_form .widget-checkbox {
    margin-bottom: 15px;
}

.memo-backend-module .tl_form .widget-submit {
    margin-top: 20px;
}

.memo-backend-module .tl_form button {
    height: 30px;
    padding: 7px 12px;
    border: 1px solid #aaa;
    border-radius: 2px;
    box-sizing: border-box;
    cursor: pointer;
    background: #eee;
    transition: background .2s ease;
}

.memo-backend-module .widget-checkbox fieldset > span {
    display: block;
}

.memo-backend-module p.error {
    color: red;
}

.language-list {
    display: flex;
    line-height: 1.3;
    margin: 0px 2px;
}

.language-list > * {
    flex: 1 1 auto;
}

.language-list.source-language .translation-text,
.language-list.source-language .language-label {
    color: #f47c00;
}

.language-list.target-language .translation-text,
.language-list.target-language .language-label {
    color: #00b300;
}

.language-list .language-label {
    flex: 0 0 auto;
    padding-left: 3px;
    text-transform: uppercase;
    margin-right: 10px;
    font-weight: 500;
}

.colums4 .tl_checkbox_container {
    columns: 4;

    @media screen and (max-width: 1200px) {
        columns: 3;
    }

    @media screen and (max-width: 900px) {
        columns: 2;
    }

    @media screen and (max-width: 600px) {
        columns: 1;
    }
}

/*  MEMO header switch language  */
.memo_header_switchLanguage {
    float: left;
    margin: 0 0 0 0;
}

.memo_header_switchLanguage > strong {
    vertical-align: middle;
}

.memo_header_switchLanguage > span {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: -10px;
    vertical-align: middle;
}

.memo_header_switchLanguage ul {
    position: absolute;
    left: 50%;
    display: none;
    min-width: 100px;
    margin: 10px 12px 0 0;
    padding: 5px 10px;
    text-align: left;
    background: #fff;
    border: 1px solid #ccc;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    z-index: 99999999;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    list-style: none;
}

.memo_header_switchLanguage > span:hover ul {
    display: block;
}

.memo_header_switchLanguage ul:after, .memo_header_switchLanguage ul:before {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.memo_header_switchLanguage ul:after {
    border-color: rgba(255, 255, 255, 0);
    border-bottom-color: #fff;
    border-width: 5px;
    margin-left: -5px;
}

.memo_header_switchLanguage ul:before {
    border-color: rgba(204, 204, 204, 0);
    border-bottom-color: #ccc;
    border-width: 6px;
    margin-left: -6px;
}

.memo_header_switchLanguage li {
    padding: 3px 0;
    white-space: nowrap;
}

.memo_header_switchLanguage ul a {
    display: block;
}

.memo_header_switchLanguage ul a:before {
    content: "› ";
}

.memo_header_switchLanguage .memo_header_assistant {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.memo_header_switchLanguage .memo_header_assistant img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

html[data-color-scheme="dark"] .memo_header_switchLanguage ul {
    background-color: #232529;
    border-color: #3f4146;
    list-style: none;
}

html[data-color-scheme="dark"] .memo_header_switchLanguage ul:before,
html[data-color-scheme="dark"] .memo_header_switchLanguage ul:after {
    border-bottom-color: #3f4146;
}

/* Restyle the terminal42 language changer */
.header_switchLanguage {
    margin-left: 0 !important;
}

.header_switchLanguage svg {
    display: none !important;
}

/* Add the new issue icons */
.list_view a.done img {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    margin-right: 5px;
}

.list_view a.hide img {
    width: 17px;
    height: 17px;
}
