/*
 * TRANSLATE PAGE
 */

#tptranslate #content
{
    margin: 1em 0 0;
}

/* MAIN TOOLBAR */

textarea#view_unit
{
    display: none;
}

#toolbar
{
    background-color: #f8f8f8;
    border-top: 1px solid #d9d9d9;
    text-align: left;
    width: 100%;
    height: 46px;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 100;
    -webkit-box-shadow: 0px 0px 20px #d9d9d9;
       -moz-box-shadow: 0px 0px 20px #d9d9d9;
            box-shadow: 0px 0px 20px #d9d9d9;
}

html[dir="rtl"] #toolbar
{
    text-align: right;
}

/* Toolbar search */

#toolbar #search
{
    position: relative;
    float: left;
    margin: 0;
}

html[dir="rtl"] #toolbar #search
{
    float: right;
}

#toolbar .search-container
{
    top: auto;
    bottom: 30px;
}

#toolbar .search-container:after,
#toolbar .search-container:before
{
    top: 100%;
}

#toolbar .search-container:after
{
    border-top-color: #fff;
    border-bottom-color: transparent;
}

#toolbar .search-container:before
{
    border-top-color: #d9d9d9;
    border-bottom-color: transparent;
}


/* Zoom levels */

body.zoom-out-1 #toolbar
{
    font-size: 95%;
    height: 42px;
}

body.zoom-out-1 .toolbar-message
{
    bottom: 43px;
}

body.zoom-out-2 #toolbar
{
    font-size: 90%;
    height: 36px;
}

body.zoom-out-2 .toolbar-message
{
    bottom: 37px;
}

.toolbar > div
{
    display: inline-block;
    padding: 10px;
}

body.zoom-out-1 .toolbar > div
{
    padding: 8px;
}

body.zoom-out-2 .toolbar > div
{
    padding: 6px;
}

/* Navigation buttons */

#prevnext #item-navigation
{
    font-size: 120%;
    margin: 0 0.5em;
}

#prevnext #item-number
{
    margin: 0; padding: 0;
    text-align: center;
    position: relative;
    top: 1px;
}

#prevnext #items-count
{
    display: inline-block;
    min-width: 1em;
}


#prevnext input[type="submit"]
{
    min-width: 80px;
    padding: 4px 10px;
}

body.zoom-out-1 #prevnext input[type="submit"]
{
    min-width: 90px;
    padding: 3px 8px;
}

body.zoom-out-2 #prevnext input[type="submit"]
{
    min-width: 85px;
    padding: 2px 8px;
}


/* SPECIAL FOOTER */

#translate-footer
{
    margin: 0 0 46px; /* this should be equal to the height of the #toolbar */
}


/* EDITOR - GENERAL */

#editor
{
    position: relative;
}

.editor-overlay
{
    background-color: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    text-align: center;
}

.loader > div
{
    margin: 180px auto;
}

.editor-overlay > div.alert
{
    display: block;
    margin: 180px auto 0;
    width: 400px;
}

.toolbar-message
{
    position: fixed;
    bottom: 46px; /* #toolbar height */
    left: 50%;
    width: 400px;
    margin-left: -200px;
    z-index: 101;
    text-align: center;
}

.toolbar-message > div
{
    -webkit-border-radius: 5px 5px 0 0;
       -moz-border-radius: 5px 5px 0 0;
            border-radius: 5px 5px 0 0;
    border: 1px solid #d9d9d9;
    border-bottom: 0px;
    background-color: #f8f8f8;
    padding: 0.5em 1em;
    display: table;
    margin: 0 auto;
}


/* TRANSLATE TABLE */

table.translate-table
{
    width: 100%;
    table-layout: fixed;
    margin-top: -0.4em;
}

table.translate-table td
{
    vertical-align: middle;
}

th.translate-original,
th.translate-translation
{
    width: 50%;
}

tr.edit-row
{
    background-color: #f1f7f8;
}

.delimiter-row
{
    background-color: #e5f3f8;
}

/* Context */

tr.edit-ctx
{
    font-size: 82%;
}

tr.edit-ctx td
{
    text-align: center;
    color: #d9d9d9;
}

tr.edit-ctx a
{
     text-decoration: none;

     filter:alpha(opacity=50);
     opacity: 0.5;
}

tr.edit-ctx a:hover
{
     text-decoration: none;

     filter:alpha(opacity=100);
     opacity: 1;
}

tr.edit-ctx.before td
{
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px dashed #d9d9d9;
}

tr.edit-ctx.after td
{
    border-top: 1px dashed #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
}

tr.ctx-row,
tr.view-row
{
    font-size: 92%;
    cursor: pointer;
}

tr.edit-ctx,
tr.ctx-row
{
    background-color: #f8fbfb;
}

tr.ctx-row
{
    color: #777;/*#76a1b0;*/
}

tr.ctx-row.before
{
    border-bottom: 1px solid #fff;
}

tr.ctx-row.after
{
    border-top: 1px solid #fff;
}

tr.view-row
{
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

tr.view-row:hover
{
    background-color: #d9edf4;
}

.translation-text
{
    max-width: 100%;
    overflow: auto;
    font-size: 115%;
}

div.sources
{
    margin-top: 2em;
    margin-bottom: -0.5em; /* depends on zoom level */
}


body.zoom-out-1 div.sources
{
    margin-bottom: -0.7em;
}

body.zoom-out-2 div.sources
{
    margin-bottom: -1em;
}

div.sources .translation-text
{
    padding: 0.1em 0;
}

body.zoom-out-1 div.sources .translation-text
{
    padding-top: 0.4em;
}

body.zoom-out-1 div.sources .alternative .translation-text
{
    font-size: 98%;
}

body.zoom-out-2 div.sources .translation-text
{
    padding-top: 0.2em;
}

body.zoom-out-2 div.sources .alternative .translation-text
{
    font-size: 95%;
}

.translation-text-headers
{
    color: #999;
    font-size: 85%;
    position: relative;
    border-bottom: 1px dotted #d9d9d9;
    padding-top: 0.5em;
}

.translation-space
{
    padding: 0 4px;
    margin: 0 0.2em;
    background-image: url('../images/squiggle.png');
    background-repeat: repeat-x;
    background-position: text-bottom;
    vertical-align: middle;
}

/* TRANSLATION UNIT LAYOUT */

div.translate-container
{
    position: relative;
}

div.translate-left,
div.translate-right
{
    margin-top: 1em;
}


div.translate-left
{
    float: left;
    width: 24.5%;
    clear: both;
}

div.translate-middle
{
    float: left;
    width: 50%;
    margin: 0 auto;
    position: relative;
}

div.translate-right
{
    float: right;
    width: 24.5%;
}

/* ORIGINAL */

div.source-language
{
    margin-bottom: 1em;
}

div.language-name
{
    border-top: 1px dotted #d9d9d9;
    border-left: 1px dotted #d9d9d9;
    border-right: 1px dotted #d9d9d9;
    border-bottom: 1px solid #f1f7f8;
    -webkit-border-radius: 5px 5px 0 0;
       -moz-border-radius: 5px 5px 0 0;
            border-radius: 5px 5px 0 0;

    padding: 1px 5px 0px;
    display: inline-block;
    position: absolute;
    bottom: -1px;
}

.translate-focus div.translate-original,
{
    color: #130f30;
}

div.alternative
{
    color: #777;
}

table td.translate-original,
table td.translate-translation
{
    padding: 0.5em 5px;
}


/* COMMENTS */

.comments
{
    clear: both;
    color: #666;
}

.comments p
{
    display: inline;
    font-size: 85%;
    line-height: 120%;
    word-break: break-word;
}

/* Force-wrap URLs */
.comments p a,
.developer-images a
{
    white-space: normal !important;
}

.sidetitle,
.comments .developer-comments
{
    display: inline;
}

.developer-comments + .developer-images
{
    margin-top: 1em;
}

.developer-images img
{
    width: 29%;
    height: auto;
    margin: 2px;
    vertical-align: top;
}

.translate-locations,
.translate-context-value
{
    font-size: 90%;
    display: inline;
    word-wrap: break-word;
}

.translate-context-value
{
    font-weight: bold;
}

#comment-form textarea
{
    vertical-align: top;
    padding: 0;
    min-height: 1em;
    width: 100%;
    color: #666;
    font-size: 90%;
    line-height: 1.2em;
    margin-bottom: 5px;
}

/* TODO: review this */
.terminology div.translator-comments
{
    background-color: #eaf0f4;
    border: 1px solid #d2e1ed;
    overflow: auto;
    padding: 5px;
}


/* TRANSLATION */

td.translate-focus
{
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    vertical-align: top;
}

td.translate-full div.translate-original
{
    width: 100%;
    margin: 0.5em 0;
}

td.translate-full textarea.translation
{
    width: 100%;
    margin: 0 auto 0.5em;
    padding: 0;
    min-height: 2.7em; 
}


/* TM and suggestions */

.sidebar
{
    padding: 0 30px 1em 20px;
}

html[dir="rtl"] .sidebar
{
    padding: 0 20px 1em 30px;
}

body.zoom-out-1 .sidebar
{
    padding-bottom: 0.7em;
}

body.zoom-out-2 .sidebar
{
    padding-bottom: 0.5em;
}

.sidetitle,
.unit-meta,
.extra-item-meta,
.extra-item-title
{
    color: #999;
    font-size: 85%;
}

.unit-meta
{
    position: absolute;
    right: 0;
    text-align: right;
}

html[dir="rtl"] .unit-meta
{
    right: auto;
    left: 0;
    text-align: left;
}

.extra-item-meta
{
    float: right;
}

html[dir="rtl"] .extra-item-meta
{
    float: left;
}

#tm
{
    position: relative;
}

.tm-unit
{
    margin: 0 0.5em 0.5em 0;
    padding: 0.1em 0.5em;
    border: 1px dotted #999;
    cursor: pointer;
    display: inline-block;
    font-size: 90%;
}

.tm-unit:hover {
    background-color: #fff;
}

.tm-original
{
    font-weight: bolder;
    padding-right: 0.3em;
}

#tm[dir="rtl"] .tm-original
{
    padding-right: auto;
    padding-left: 0.3em;
}

.tm-translation
{
    font-style: oblique;
}

.tm-translation[dir="rtl"]
{
    text-align: right;
}

/* EXTRAS: SUGGESTIONS, TM RESULTS, COMMENTS */

#suggestions,
#timeline-results,
#tm-results,
#translator-comment
{
    clear: both;
    margin-top: 1em;
}

#extras-bar a
{
    cursor: pointer;
    margin-right: 10px;
    font-size: 0.9em;
}

html[dir="rtl"] #extras-bar a
{
    margin-right: 0;
    margin-left: 10px;
}

.extra-item-block
{
    clear: both;
    position: relative;
}

.extra-item-block:last-child
{
    margin-bottom: 0;
}

.suggestion-action img
{
    top: 50%;

    filter:alpha(opacity=10);
    opacity: 0.1;
}

a.suggestion-action,
a.suggestion-vote
{
    float: right;
}

html[dir="rtl"] .suggestion-action,
html[dir="rtl"] .suggestion-vote
{
    float: left;
}

.suggestion-translation-body
{
    unicode-bidi: embed;
}

.extra-item-block:hover .suggestion-action img,
.extra-item-block:hover .suggestion-vote img
{
    filter:alpha(opacity=50);
    opacity: 0.5;
}

.extra-item-block .suggestion-action img:hover,
.extra-item-block .suggestion-vote:hover img
{
    filter:alpha(opacity=100);
    opacity: 1;
}

.num-votes
{
    position: absolute;
    top: 8px;
    right: 0.9em;
    text-shadow: 0 0 8px #777;
}

.suggestion-vote img
{
    top: 50%;

    filter:alpha(opacity=30);
    opacity: 0.3;
}

.extra-item
{
    background-color: #f1f7e4;
    border: 1px dotted #d9d9d9;
    color: #444;
    line-height: 140%;
    padding: 0.5em;
}

.extra-item:hover
{
    background-color: #fff;
}

#translator-comment .extra-item:hover
{
    background-color: #f1f7e4;
}

.suggestion-original
{
    font-weight: bolder;
    color: #130f30;
    padding-right: 1em;
    float: left;
}

#target-item-gravatar a
{
    filter:alpha(opacity=100);
    opacity: 1;
}

.extra-item-gravatar,
#target-item-gravatar
{
    position: absolute;
    margin-top: 4px;
    margin-left: -30px;
}

html[dir="rtl"] .extra-item-gravatar,
html[dir="rtl"] #target-item-gravatar
{
    margin-left: auto;
    margin-right: -30px;
}

.extra-item-content,
#target-item-content
{
    margin-bottom: -1px;
    width: 100%;
}

.extra-item-comment
{
    unicode-bidi: embed;
}

.timeline-extra
{
    position:absolute;
    top: 0;
    left: 100%;
    font-size: 0.9em;
    padding: 2px;
}

html[dir="rtl"] .timeline-extra
{
    left: auto;
    right: 100%;
}

.timeline-field-3
{
    font-size: 85%;
}

.timeline-field-3 .sidetitle
{
    font-size: 100%;
}

.timeline-field-body
{
    unicode-bidi: embed;
}

.timeline-arrow:before
{
    content: "→";
}

html[dir="rtl"] .timeline-arrow:before
{
    content: "←";
}

#editor-comment
{
    margin: 10px 0;
}

/* CHECKS */

ul.checks
{
    display: inline;
    font-size: 85%;
}

div.check a
{
    cursor: help;
}

.checkinfo
{
    vertical-align: top;
    margin-top: 3px;
}

#translate-checks-block
{
    margin: 0 1em;
}

#translate-checks-block .sidetitle
{
    color: #900;
}

li.check
{
    display: inline-block;
    border: 1px dotted #900;
    margin: 0 0.5em 0.5em 0;
    padding: 0.1em 0.1em 0.1em 0.5em;

}

li.check:hover
{
    background-color: #fff;
}

li.check > a
{
    cursor: help;
}

#translate-checks-block i
{
    cursor: pointer;
    vertical-align: middle;
}

/* CONTROLS */

.translate-buttons-block
{
    left: 100%;
    position: absolute;
    margin: 0 10px 0 20px;
}

.translate-buttons-block[dir="rtl"]
{
    left: auto;
    right: 102%;
}

.translate-buttons-block input[type="submit"]
{
    margin-bottom: 0.5em;
}

.buttons input[type="submit"].submit
{
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffee', endColorstr='#aaee77');
    background: -webkit-gradient(linear, left top, left bottom, from(#ffe), to(#ae7));
    background: -webkit-linear-gradient(top,  #ffe,  #ae7);
    background:    -moz-linear-gradient(top,  #ffe,  #ae7);
    background:     -ms-linear-gradient(top,  #ffe,  #ae7);
    background:      -o-linear-gradient(top,  #ffe,  #ae7);
    background:         linear-gradient(top,  #ffe,  #ae7);
}

.translate-buttons-block input.submit:hover {
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#bbff88');
    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#bf8));
    background: -webkit-linear-gradient(top,  #fff,  #bf8);
    background:    -moz-linear-gradient(top,  #fff,  #bf8);
    background:     -ms-linear-gradient(top,  #fff,  #bf8);
    background:      -o-linear-gradient(top,  #fff,  #bf8);
    background:         linear-gradient(top,  #fff,  #bf8);
}

.translate-buttons-block input.submit:active
{
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#aaee77', endColorstr='#ffffee');
    background: -webkit-gradient(linear, left top, left bottom, from(#ae7), to(#ffe));
    background: -webkit-linear-gradient(top,  #ae7,  #ffe);
    background:    -moz-linear-gradient(top,  #ae7,  #ffe);
    background:     -ms-linear-gradient(top,  #ae7,  #ffe);
    background:      -o-linear-gradient(top,  #ae7,  #ffe);
    background:         linear-gradient(top,  #ae7,  #ffe);
}

.buttons input[type="submit"].suggest
{
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffee', endColorstr='#eedd88');
    background: -webkit-gradient(linear, left top, left bottom, from(#ffe), to(#ed8));
    background: -webkit-linear-gradient(top,  #ffe,  #ed8);
    background:    -moz-linear-gradient(top,  #ffe,  #ed8);
    background:     -ms-linear-gradient(top,  #ffe,  #ed8);
    background:      -o-linear-gradient(top,  #ffe,  #ed8);
    background:         linear-gradient(top,  #ffe,  #ed8);
}

.translate-buttons-block input.suggest:hover {
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ffee99');
    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#fe9));
    background: -webkit-linear-gradient(top,  #fff,  #fe9);
    background:    -moz-linear-gradient(top,  #fff,  #fe9);
    background:     -ms-linear-gradient(top,  #fff,  #fe9);
    background:      -o-linear-gradient(top,  #fff,  #fe9);
    background:         linear-gradient(top,  #fff,  #fe9);
}

.translate-buttons-block input.suggest:active
{
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eedd88', endColorstr='#ffffee');
    background: -webkit-gradient(linear, left top, left bottom, from(#ed8), to(#ffe));
    background: -webkit-linear-gradient(top,  #ed8,  #ffe);
    background:    -moz-linear-gradient(top,  #ed8,  #ffe);
    background:     -ms-linear-gradient(top,  #ed8,  #ffe);
    background:      -o-linear-gradient(top,  #ed8,  #ffe);
    background:         linear-gradient(top,  #ed8,  #ffe);
}

.translate-buttons-block input.suggest
{
    display: none;
}

table.suggest-mode .translate-buttons-block input.suggest
{
    display: block;
}

table.suggest-mode .translate-buttons-block input.submit
{
    display: none;
}

.translate-fuzzy-block
{
    text-align: center;
    font-style: italic;
}

.translate-fuzzy-block label
{
    vertical-align: middle;
}

input.fuzzycheck
{
    vertical-align: middle;
}

table.suggest-mode .translate-fuzzy-block
{
    display: none;
}

.switch-suggest-mode
{
    position: absolute;
    left: 120px;
    top: 0px;
    padding: 5px 0;
    line-height: 150%;
}

.translate-full[dir="rtl"] .switch-suggest-mode
{
    left: 0px;
    right: 120px;
}

.switch-suggest-mode .suggest
{
    display: none;
}

table.suggest-mode .switch-suggest-mode .suggest
{
    display: inherit;
}

table.suggest-mode .switch-suggest-mode .submit
{
    display: none;
}

.translate-toolbar
{
    position: absolute;
    top: -12px;
    /* LTR */
    right: 0;
}

.translate-toolbar a
{
    margin-left: 0.5em;
}


div.translation-text-headers[dir="rtl"] div.translate-toolbar
{
    right: auto;
    left: 0;
}

div.translation-text-headers[dir="rtl"] div.translate-toolbar a
{
    margin-left: 0;
    margin-right: 0.5em;
}

.translate-toolbar a,
.js-editor-copytext
{
    cursor: pointer;
}

.translate-container a
{
    text-decoration: none;
    white-space: nowrap;

    filter:alpha(opacity=50);
    opacity: 0.5;
}

.translate-container a:hover
{
    filter:alpha(opacity=100);
    opacity: 1;
}

/* We don't want the above hover activity for links in the comments. */
.developer-comments a
{
    text-decoration: none;

    filter:alpha(opacity=100);
    opacity: 1;
}

.developer-comments a:hover
{
    text-decoration: underline;
}

.editor-specialchars-block
{
    text-align: center;
}

a.editor-specialchar
{
    padding: 0 0.2em;
    min-width: 1.3em;
    margin: 2px 0;
    display: inline-block;
}

a.editor-specialchar:hover
{
    background-color: #fff;
    text-decoration: none;
}

/* DIFF */

.diff-replace,
.diff-delete,
.diff-insert
{
    color: #130f30;
    background-color: #ffb;
    border: 1px dotted #999;
}

.diff-delete,
.diff-delete *
{
    color: #aaa !important;
    text-decoration: line-through;
}

/* DIFF FOR TM SERVER ENTRIES */

.tm-server .diff-replace,
.tm-server .diff-delete,
.tm-server .diff-insert
{
    color: #999;
    border: 1px dotted #d9d9d9;
    background-color: #F1F7F8; /* same as edit-row bg */
}

.tm-server .diff-delete,
.tm-server .diff-delete *
{
    color: #d9d9d9 !important;
    font-weight: normal;
}


/* HIGHLIGHT */

.highlight-escape
{
    color: purple;
}

.highlight-html
{
    color: #840;
}

.tm-server .suggestion-original .highlight-html
{
    color: #630;
}

a.editor-specialchar,
.highlight-punctuation
{
    border: 1px dotted #999;
    color: #666;
}

.highlight
{
    background-color: #FFC;
}

/* FUZZY TRANSLATION */

div.translate-translation
{
    min-height: 1.5em;
}

/* Special handling for languages with big fonts */
td.translate-full div.translate-translation:lang(bn),
td.translate-full div.translate-translation:lang(fa),
td.translate-full div.translate-translation:lang(ja),
td.translate-full div.translate-translation:lang(ko),
td.translate-full div.translate-translation:lang(zh)
{
    margin-bottom: 35px;
}

tr.view-row td.fuzzy-unit .translation-text
{
    color: #888;
    font-style: italic;
}

tr.edit-row.fuzzy-unit textarea.translation
{
    font-style: italic;
}

table.suggest-mode tr.edit-row.fuzzy-unit textarea.translation
{
    color: inherit;
    font-style: normal;
}


textarea.translation
{
    resize: vertical;
    font-size: 115%;
}

/* TERMINOLOGY MANAGEMENT */

td.translate-delete-terminology input
{
    display: block;
    margin: 0 auto;
}

.translate-term-original
{
    padding: 0 10px;
}

.translate-term-translation
{
    padding: 0 25px;
}

.left
{
    float: left;
}

.right
{
    float: right;
}

/* HISTORY */

table.history,
table.history td
{
    width: 100%;
    border: 1px solid black;
}

table.history td
{
    padding: 5px;
}
