/*
 * Copyright (C) Pootle contributors.
 *
 * This file is a part of the Pootle project. It is distributed under the GPL3
 * or later license. See the LICENSE file for a copy of the license and the
 * AUTHORS file for copyright and authorship information.
 */

/*
 * Used colors
 *
 *  @blackLight: #444
 *  @black: #130f30
 *
 *  @white: #fff
 *  @whiteDark: #f8f8f8
 *
 *  @grayLight: #eee
 *  @gray: #d9d9d9
 *  @grayDark: #999
 *  @grayDarker: #666
 *
 *  @blueLighter: #f1f7f8
 *  @blueLight: #e5f3f8
 *  @blue: #0489b7
 *
 *  @red: #c30
 *  @pink: #c36
 *  @orange: #c63
 *
 *  @greenLighter: #f1f7e4
 *  @greenLight: #9c9
 *  @green: #090
 *  @turquoise: #76b0bf
 */


@font-face
{
    font-family: 'Raw';
    src: url('../fonts/raw.woff') format('woff');
}


/*
 * BASIC ELEMENT STYLING
 */

#header-meta,
#footer,
.header
{
    background-color: #eee;
}

#body,
html#tp
{
    background: white;
}

html,
body
{
    height: 100%;
}

html
{
    color: #130f30;
    background: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
}

body
{
    background: #fff;
    color: #130f30;
    width: 100%;

    font-family: sans-serif;
    font-size: 0.8125em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
}

a,
a:link
{
    text-decoration: none;
    color: #0b8696;
    cursor: pointer;
}

a:visited
{
    text-decoration: none;
}

a:hover
{
    text-decoration: underline;
}

p,
dd
{
    line-height: 1.5;
}

strong
{
    font-weight: bold;
}

em
{
    font-style: italic;
}

abbr,
acronym
{
    border-bottom: 1px dotted #130f30;
    cursor: help;
}

p,
fieldset,
pre
{
    margin-bottom: 1em;
}

th
{
    font-size: 110%;
    padding: 0 0 7px;
    background-color: inherit;
    color: #4b4742;
}

td
{
    padding: 5px 0;
}

h1,
h2,
h3,
h4,
h5,
h6
{
    font-weight: normal;
    font-size: 100%;
    color: #777;
}

h1,
h2,
h3
{
    font-family: sans-serif;
}

h1
{
    font-size: 185%;
}

h2
{
    font-size: 170%;
}

h3
{
    font-size: 150%;
}

h4
{
    font-size: 137%;
}

h5
{
    font-size: 110%;
}

h6
{
    font-size: 100%;
}

body,
div,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
p,
blockquote
{
    margin: 0;
    padding: 0;
}

input,
textarea
{
    margin: 0;
}

table
{
    border-collapse: collapse;
    border-spacing: 0;
    font-size: inherit;
}

fieldset,
img
{
    border: 0;
}

address,
caption,
cite,
code,
dfn,
th,
var
{
    font-style: normal;
    font-weight: normal;
}

li
{
    list-style: none;
}

caption,
th
{
    text-align: left;
    padding: 5px;
}

html[dir="rtl"] caption,
html[dir="rtl"] th
{
    text-align: right;
}

q::before,
q::after
{
    content: '';
}

abbr,
acronym
{
    border: 0;
    font-variant: normal;
}

sup
{
    vertical-align: text-top;
}

sub
{
    vertical-align: text-bottom;
}

input,
textarea,
select
{
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

legend
{
    background-color: inherit;
    color: #130f30;
}

pre,
code,
kbd,
samp,
tt
{
    font-family: monospace;
    line-height: 100%;
}

#ft
{
    clear: both;
}

#bd::after
{
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}


/*
 * Icons
 */

[class^="icon-"],
[class*=" icon-"]
{
    background-repeat: no-repeat;
    display: inline-block;
    line-height: 16px;
    width: 16px;
    height: 16px;
    vertical-align: text-top;
}

ul.icons
{
    list-style-type: none;
    margin-left: 20px;
    text-indent: -20px;
}

html[dir="rtl"] ul.icons
{
    margin-right: 20px;
    margin-left: auto;
}

html[dir="rtl"] .icon-folder-parent
{
    transform: scaleX(-1);
}

.icon-external-link
{
    margin-top: 3px;
    margin-left: 0.3em;
}

.icon-asc,
.icon-desc,
.icon-ascdesc
{
    vertical-align: middle;
}

/* Go to parent */

.browser-parent
{
    margin: 1.5em 1em 1em;
}

.browser-parent i
{
    vertical-align: text-bottom;
}

/* Hack to avoid ugly underlines in the space between icons and text */

.browser-parent a:hover,
td.stats-name a:hover,
.sidebar-action a:hover,
.last-action > a:hover
{
    text-decoration: none;
}

.browser-parent a:hover > i + span,
td.stats-name a:hover > i + span,
.sidebar-action a:hover > i + span,
.last-action > a:hover > .user-name
{
    text-decoration: underline;
}

/* End hack */

.browsing-table-wrapper
{
    position: relative;
}


/*
 * MAIN DIVs
 */

#wrapper
{
    width: 100%;
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin-bottom: -62px; /* footer margin-top + height */
}

#content
{
    margin: 0 1em;
}


/*
 * FOOTER
 */

#footer
{
    background-color: #f8f8f8;
    color: #d9d9d9;
    border-top: 1px dashed #d9d9d9;
    font-size: 12px;
    text-align: center;
    position: absolute;
    width: 100%;

    margin-top: 20px;
    height: 42px;
    line-height: 41px;
    box-sizing: border-box;
}

#footer a
{
    color: #999;
}

#footer .nav li
{
    display: inline;
}

#footer .nav li::after
{
    content: " | ";
    margin: 0 1em;
}

#footer .nav li:last-child::after
{
    content: '';
    margin: 0;
}


/*
 * STATIC PAGES
 */

.staticpage
{
    margin: 2em auto;
    padding: 0 2em;
    font-size: 120%;
    max-width: 960px;
}

.staticpage h1
{
    font-size: 2.2em;
    line-height: 85%;
    margin: 1em 0 0.5em;
    margin-bottom: 1em;
}

.staticpage h2
{
    color: rgba(25, 15, 0, 0.5);
    font-size: 1.8em;
    margin: 1em 0 0.5em;
}

.staticpage h3
{
    margin: 1em 0 0.5em;
}

.staticpage p
{
    margin: 0.5em 0;
}

.staticpage ol,
.staticpage ul
{
    margin: 0 2em;
}

.staticpage li
{
    list-style: inherit;
}

.staticpage .edit-link
{
    font-family: sans-serif;
    font-size: 13px;
    line-height: 1.3;
    vertical-align: middle;
}

.staticpage .edit-link a
{
    text-decoration: none;
    display: inline-block;
    background: #c30;
    color: #fff;
    padding: 0 0.5em;

    border-radius: 1em;
}

.staticpage .edit-link a:hover
{
    background: #000;
}


/*
 * CHECKS DESCRIPTIONS
 */

.staticpage.checks-descriptions code,
.staticpage.checks-descriptions tt
{
    color: red;
}

.staticpage.checks-descriptions h3:target
{
    background-color: #ff9;
    outline: 5px solid #ff9;
    color: #880;
}


/*
 * PAGE SIDEBAR
 */

#sidebar
{
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 0;
    z-index: 1;

    background-color: #fff;

    box-shadow: -1px 0 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease 0s;
}

#sidebar-content
{
    margin: 2em auto;
    padding: 0 2em;
    max-width: 960px;
}

#sidebar.sidebar-open
{
    width: 30%;
}

html[dir="rtl"] #sidebar
{
    right: auto;
    left: 0;

    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.2);
}

#sidebar #sidebar-content
{
    display: none;
}

#sidebar.sidebar-open #sidebar-content
{
    display: block;
}

.sidebar-open #sidebar-toggle::after
{
    content: '»';
}

#sidebar-toggle::after
{
    content: '«';
}

#sidebar-toggle
{
    position: absolute;
    top: 1.5em;
    left: -1em;
    width: 1em;
    height: 1em;
    line-height: 1;

    background-color: #fff;
    color: #d9d9d9;
    text-align: center;
    text-decoration: none;
    font-size: 24px;

    box-shadow: -2px 0 2px rgba(0, 0, 0, 0.2);
    border-radius: 2px 0 0 2px;
}

html[dir="rtl"] #sidebar-toggle
{
    left: auto;
    right: -1em;

    box-shadow: 2px 0 2px rgba(0, 0, 0, 0.2);
    border-radius: 0 2px 2px 0;
}

.sidebar-group,
.sidebar-group .staticpage
{
    margin: 0;
    padding: 0;
    padding-bottom: 2em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-group:last-child,
.sidebar-group .staticpage:last-child
{
    padding: 0;
    border-bottom: none;
}


/*
 * MESSAGES
 */


/* Alerts from Bootstrap */

#alerts,
#noscript
{
    top: 45%;
    left: 50%;
    width: 480px;
    margin-left: -240px;
    z-index: 101;
}

.browser .alert
{
    margin: 1em 0.5em;
}

.alert
{
    padding: 1em;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 0.5em;
    font-size: 130%;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.alert h4
{
    margin: 0;
}

.alert .close
{
    position: relative;
    top: -0.8em;
    right: -0.6em;
}

.alert-info
{
    background-color: rgba(0, 50, 90, 0.8);
}

.alert-success
{
    background-color: rgba(0, 102, 0, 0.8);
}

.alert-danger,
.alert-error
{
    background-color: rgba(102, 0, 0, 0.8);
}

.alert-error a
{
    color: #f99;
}

.close
{
    float: right;
    font-size: 100%;
    color: #fff;
    opacity: 0.5;
}

.close:hover
{
    opacity: 0.8;
}

button.close
{
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
}


/*
 * PAGE BODY
 */

#body
{
    margin: 0;
    padding: 0 0 4em;
    position: relative;
    width: 100%;
    display: inline-block;

    /* height calculated via js */
}

/* TABLES */

.module table
{
    width: 100%;
}

/* table row colors, see 'Table Row Colors.psd' */

table.stats
{
    clear: both;
}

.stats tr.item
{
    display: none;
}

.stats tr.item.is-visible
{
    display: table-row;
}

tr.view-row:nth-child(odd),
.permissions tr.item:nth-child(odd),
.stats .item.odd
{
    background: #f5fbfd;
}

/* MODULES */

.clear
{
    clear: both;
}

.module
{
    width: 48%;
    float: right;
    margin: 0;
}

html[dir="rtl"] .module
{
    float: left;
}

.module.first
{
    float: left;
}

html[dir="rtl"] .module.first
{
    float: right;
}

.hd h2
{
    margin: 1em 0.5em 0;
    border-bottom: 1px solid #eee;
}

.last-action .short-action-text
{
    display: none;
}

/* When browser size is 1440px or less, show the smaller version of the
 * last action message */
@media screen and (max-width: 1440px)
{
    table .last-action .action-text
    {
        display: none;
    }

    table .last-action .short-action-text
    {
        display: inline;
    }
}

.last-action
{
    margin-top: 1px;
}

.last-action img
{
    width: 20px;
    height: 20px;
    position: absolute;
    top: -2px;
}

html[dir="rtl"] .last-action img
{
    right: 0;
}

.last-action a
{
    position: relative;
    display: inline-block;
    vertical-align: text-top;
}


.last-action .user-info
{
    margin-left: 24px;
}

html[dir="rtl"] .last-action .user-info
{
    margin-left: auto;
    margin-right: 24px;
}

#top-stats .last-action .user-info
{
    margin-left: 20px;
}

html[dir="rtl"] #top-stats .last-action .user-info
{
    margin-left: auto;
    margin-right: 20px;
}

.last-action .extra-item-meta
{
    color: #999;
}

.bd
{
    margin: 1em;
}

.bd h2,
{
    margin-bottom: 0.5em;
}

.bd h3
{
    font-size: 120%;
}

.bd h4
{
    margin-top: 0.5em;
    font-size: 110%;
    font-weight: bold;
}


/*
 * FORMS
 */

.form
{
    width: 30em;
    margin: 2em auto;
    padding: 1em;
    text-align: left;
    border-radius: 10px;
    box-shadow: 0 2px 5px #777;

    background: #eee;
}

html[dir="rtl"] .form
{
    text-align: right;
}

.form h2
{
    color: #666;
    margin-bottom: 0.5em;
}

.form p,
.form div.p
{
    margin-top: 1em;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form select,
.form textarea
{
    width: 100%;
}

.form .buttons
{
    margin-top: 2em;
    margin-bottom: 0;
    text-align: right;
}

html[dir="rtl"] .form .buttons
{
    text-align: left;
}

/* Form messages */

.form.message
{
    background: linear-gradient(to bottom, #e5f3f8, #cde7f1);
}

.form.success
{
    background: linear-gradient(to bottom, #efd, #cf9);
}

.form.error
{
    background: linear-gradient(to bottom, #fee, #fcc);
}

.form p.info
{
    margin: 0.3em 0;
}

.form .success
{
    color: #390;
}

.form .error
{
    color: #c33;
}

p.help,
span.helptext
{
    font-size: 0.8em;
    font-style: italic;
}

/* FORM ERROR LISTS */

ul.errorlist
{
    margin: 0;
    padding: 0;
}

.errorlist li
{
    color: #c33;
    margin-top: 0.2em;
}


/*
 * CAPTCHA FORM
 */

.form .captcha
{
    text-align: left;
    margin-top: 1em;
}

.form .captcha label
{
    font-size: 120%;
    margin-right: 0.6em;
}

.form .captcha input[type="text"]
{
    font-size: 120%;
    width: 3em;
}

.form .captcha input[type="submit"]
{
    margin-left: 1em;
    vertical-align: bottom;
}

.form .captcha ul.errorlist
{
    float: right;
    line-height: 2em;
}


/*
 * SETTINGS PAGE
 */

div.settings-container
{
    display: block;
    margin: 0 auto 2em;
    margin: 1em;
}

.settings-container h2
{
    margin: 0 0 0.5em;
}

.settings-container h2,
.module .hd h2,
.hd h2
{
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 2.2em;
}

.settings-container p
{
    margin-bottom: 1em;
}

.settings-container table
{
    width: 100%;
    margin-bottom: 1em;
}

.settings-container td
{
    font-size: inherit;
}

div#settings
{
    margin-bottom: 2em;
}

/* ADMIN TABLE BACKGROUNDS */

.other-selected
{
    background-color: #8ec904 !important;
}

.delete-selected
{
    background-color: #e08566 !important;
}

.delete-selected:nth-child(even)
{
    background-color: #d67f62 !important;
}

.delete-selected > *
{
    opacity: 0.4;
}

.delete-selected td.DELETE
{
    opacity: 1;
}

.other-selected a,
.delete-selected a
{
    color: #fff;
}

/*
 * SUMMARIES
 */

tr.item.empty
{
    opacity: 0.65;
}

table.stats td
{
    white-space: nowrap;
}

td.stats-name
{
    white-space: nowrap;
    line-height: 20px;
    max-width: 25vw;
    overflow: hidden;
}

td.stats-name a
{
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

td.stats-number
{
    padding-right: 26px !important; /* magic number to put padding between right and left aligned column, and to right-align heading with number */
}

table.stats .number,
th.stats-number,
td.stats-number,
td.stats-percentage,
table.stats td.last-updated
{
    text-align: right;
}

html[dir="rtl"] table.stats .number,
html[dir="rtl"] th.stats-number,
html[dir="rtl"] td.stats-number,
html[dir="rtl"] td.stats-percentage,
html[dir="rtl"] table.stats td.last-updated
{
    text-align: left;
}


td.stats-number.need-translation .stats-data,
td.stats-number.suggestions .stats-data,
td.stats-number.critical .stats-data
{
    text-decoration: none;
    display: inline-block;
    color: #fff;
    padding: 0 0.5em;
    margin-right: -0.5em;

    border-radius: 1em;
}

td.stats-number.need-translation .stats-data
{
    background: #85a9b5;
}

td.stats-number.need-translation a.stats-data
{
    background: #0489b7;
}

td.stats-number.suggestions .stats-data
{
    background: #aba786;
}

td.stats-number.suggestions a.stats-data
{
    background: #ba6;
}

td.stats-number.critical .stats-data
{
    background: #a08d88;
}

td.stats-number.critical a.stats-data
{
    background: #c30;
}

td.stats-number.need-translation a:hover,
td.stats-number.suggestions a:hover,
td.stats-number.critical a:hover
{
    background: #000 !important;
}

td.stats-name .user-nobody
{
    font-style: italic;
}

td.stats-name.folder
{
    font-weight: bold;
}

td.last-activity
{
    width: 100%;
}

html[dir="rtl"] td.language,
html[dir="rtl"] td.stats-name,
{
    text-align: right !important;
}

.item
{
    padding: 1em;
}

.item .title
{
    font-weight: bold;
}

.item h2
{
    font-size: 100%;
}

/* Expanded checks */

.stats-checks table
{
    width: 100%;
}

.check a
{
    color: #444;
}

.category-critical.check a,
.checks-critical a,
.category-critical.check .check-data,
.checks-critical .check-data
{
    color: #c00;
}

.stats-checks a.toggle-more-checks
{
    color: #0b8696;
}

.check-name
{
    width: 100%;
}

.check-count
{
    text-align: right;
}

html[dir="rtl"] .check-count
{
    text-align: left;
}

.toggle-more-checks .collapsed .hide-more,
.toggle-more-checks .show-more
{
    display: none;
}

.toggle-more-checks .collapsed .show-more
{
    display: inherit;
}

.toggle-more-checks,
.more-top-contributors
{
    padding: 9px 0;
}

div.small
{
    font-size: 1em;
}

.tiny
{
    font-size: 0.9em;
}

/* PROGRESSBAR */

table.graph
{
    height: 9px;
    width: 200px;
    background-color: #ccc;
    font-size: 1px;
}

/* When browser size is 950px or less, show the smaller version of the progressbar */
@media screen and (max-width: 950px)
{
    table.graph
    {
        width: 100px;
    }
}

table.graph td
{
    padding: 0 !important;
}

table.graph .translated
{
    background-color: #090;
}

table.graph .fuzzy
{
    background-color: #9c9;
}

/* PROGRESSBAR LEGEND */

span.legend
{
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: #ccc;
    margin-right: 0.3em;
    margin-bottom: -0.1em;
}

html[dir="rtl"] span.legend
{
    margin-right: auto;
    margin-left: 0.3em;
}

span.legend.translated
{
    background-color: #090;
}

span.legend.fuzzy
{
    background-color: #9c9;
}

/* SORTABLE */

table.sortable th,
table tfoot,
#user-contributions table th
{
    color: #999;
    font-size: 85%;
}

table.sortable th
{
    cursor: pointer;
    white-space: nowrap;
}

table.sortable th i
{
    vertical-align: middle;
}

table.sortable th.sorttable_nosort
{
    cursor: default;
}

table.sortable td
{
    padding: 5px;
}


table.sortable th.sorttable_sorted,
table.sortable th.sorttable_sorted_reverse
{
    color: #130f30;
}

table.sortable th input
{
    float: left;
    margin-right: 5px;
}

html[dir="rtl"] table.sortable th input
{
    float: right;
    margin-right: 0;
    margin-left: 5px;
}

.sortkey
{
    display: none;
}

/* PAGER */

div.pagination-control
{
    margin: 1.5em 0;
}

ul.pager li
{
    display: inline-block;
}

ul.pager li a,
ul.pager li a:visited
{
    border: 1px solid #d9d9d9;
    text-decoration: none;
}

ul.pager li a:hover
{
    border-color: #68b8d4;
    background-color: #b3dbe9;
}

ul.pager li span.current-link,
ul.pager li a
{
    margin: 1px;
    padding: 0.2em 0.7em 0.3em;
}

ul.pager li span.current-link
{
    background-color: #68b8d4;
    color: #fff;
    border: 1px solid #0489b7;
    font-weight: bold;
}

html[dir="ltr"] ul.pager li:first-child > *
{
    padding-left: 1em;
    border-radius: 1em 0 0 1em;
}

html[dir="ltr"] ul.pager li:last-child > *
{
    padding-right: 1em;
    border-radius: 0 1em 1em 0;
}

html[dir="rtl"] ul.pager li:first-child > *
{
    padding-right: 1em;
    border-radius: 0 1em 1em 0;
}

html[dir="rtl"] ul.pager li:last-child > *
{
    padding-left: 1em;
    border-radius: 1em 0 0 1em;
}


/*
 * HEADER
 */

.header
{
    padding: 0 1.5em;
}

#header-meta
{
    box-sizing: border-box;
    display: table;
    width: 100%;
    line-height: 2;
    border-bottom: none;
}

/*
 * HEADER STATS
 */

#top-stats
{
    padding-bottom: 2em;
    padding-top: 0.2em;
}

#top-stats h3
{
    border-bottom: 1px solid #eee;
    margin: 1em 0 0;
}

#top-stats .label
{
    margin-top: -1.1em;
    width: 8em;
    padding-bottom: 0.5em;
}

#top-stats a
{
    position: relative;
}

.icon-collapse-stats,
.icon-expand-stats
{
    display: inline-block;
    position: absolute;
    top: -4px;
    left: -11px;
    z-index: 1;
}

#progressbar
{
    position: relative;
}

#progressbar table.graph
{
    width: 100%;
    position: absolute;
    height: 12px;
}

.expand-stats
{
    float: right;
    position: relative;
    width: 0;
    height: 0;
}

html[dir="rtl"] .expand-stats
{
    float: left;
}

.expand-stats .icon-expand-stats,
.expand-stats .icon-collapse-stats
{
    position: relative;
    top: 20px;
    left: 0;
}

.path-summary-more
{
    padding: 0 2em;
    border: 1px solid #eee;
    background: #f4f4f4;
    border-radius: 0 0 5px 5px;
}

.path-summary-more .path-summary-expanded,
.path-summary-more.expand .path-summary-collapsed
{
    display: none;
}

.path-summary-more .path-summary-collapsed
{
    display: block;
    margin-top: 11px;
    margin-left: -10px;
    padding: 10px 0;
    height: 15px;
}

html[dir="rtl"] .path-summary-more .path-summary-collapsed
{
    margin-left: auto;
    margin-right: -10px;
}

.path-summary-more.expand .path-summary-expanded
{
    display: block;
    margin-top: 2.5em;
}

.path-summary-more .path-summary-collapsed label
{
    color: #999;
}

.path-summary-more table tr:hover
{
    background: rgba(0, 0, 0, 0.05);
}

.path-summary-more td
{
    height: 1.8em;
}

.path-summary-more .expand-stats
{
    outline: 0 none;
}

.summary-1-col,
.summary-2-col
{
    width: 18.75%;
    float: left;
}

.summary-3-col
{
    float: left;
}

html[dir="rtl"] .summary-1-col,
html[dir="rtl"] .summary-2-col,
html[dir="rtl"] .summary-3-col
{
    float: right;
}

.path-summary-more .summary-3-col
{
    width: 43.75%;
    margin: 0 0 0 6.25%;
}

html[dir="rtl"] .path-summary-more .summary-3-col
{
    margin: 0 0 0 6.25%;
}

.path-summary-more .summary-1-col
{
    margin: 0 6.25% 0 0;
}

html[dir="rtl"] .path-summary-more .summary-1-col
{
    margin: 0 0 0 6.25%;
}


.path-summary-more .summary-2-col
{
    margin: 0 3.125%;
}


@media screen and (max-width: 1600px)
{
    .path-summary-more .summary-1-col,
    .path-summary-more .summary-2-col
    {
        width: 43.75%;
        display: table-cell;
    }

    .path-summary-more .summary-3-col
    {
        width: 100%;
        margin: 0;
    }

    #top-stats .path-summary-more .summary-3-col h3.top
    {
        margin: 1em 0 0;
    }

    .path-summary-more.expand .path-summary-expanded
    {
        margin: 2.5em 0 1em;
    }

    .path-summary-more .summary-2-col
    {
        margin: 0 0 0 6.25%;
    }

    html[dir="rtl"] .path-summary-more .summary-2-col
    {
        margin: 0 6.25% 0 0;
    }

    .path-summary-more .summary-1-col
    {
        margin: 0 6.25% 0 0;
    }

    html[dir="rtl"] .path-summary-more .summary-1-col
    {
        margin: 0 0 0 6.25%;
    }
}

.path-summary-more .bd
{
    margin: 1em 0;
}

.path-summary-more .summary-3-col .bd
{
    margin: 1em 0;
}


#top-stats .path-summary-more h3
{
    border: 0;
    margin: 1.6em 0 0;
}

#top-stats .path-summary-more h3.top
{
    margin: 0;
}

.path-summary-more table.stats
{
    width: 100%;
}

.path-summary-more td.stats-number
{
    padding-right: 3em !important;
}

.path-summary-more .graph
{
    height: 8em;
    background-color: #ccc;
    width: 100%;
    margin-bottom: 1em;

    /* hide graph areas while we don't render anything there */
    display: none;
}

.path-summary-more .action-wrapper label,
.path-summary-more .action-wrapper .last-action,
.path-summary-more .action-wrapper .last-updated
{
    display: inline-block;
}

/* Tabs */

#tabs
{
    height: 34px;
}

#tabs li
{
    float: left;
}

html[dir="rtl"] #tabs li
{
    float: right;
}

#tabs a
{
    background-color: inherit;
    border: 1px solid transparent;
    color: #999;
    display: block;
    height: 30px;
    line-height: 2.2;
    margin: 3px 4px 0;
    padding: 0 11px;
    text-decoration: none;
}

#tabs a:hover
{
    /* TODO: merge with active tabs */
    background-color: #fff !important;
    border-color: #d9d9d9 #d9d9d9 #fff;
    border-style: solid;
}

#tabs a.admintab,
#tabs.admin a,
#tabs a .admin
{
    color: #c30 !important;
}

#tabs li a.active
{
    background-color: #fff;
    border-color: #d9d9d9 #d9d9d9 #fff;
    border-style: solid;
    color: #444;
    font-weight: bold;
}

.title a
{
    unicode-bidi: embed;
}


/* SEARCH */

#search
{
    display: inline-block;
}

#search-form
{
    position: relative;
    padding: 2px;

    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.075) inset;
}

#search-form,
.search-container
{
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
}

#search-form.is-disabled,
#search-form.is-disabled input[type="text"]
{
    background-color: #eee;
    font-style: italic;
}

#search-form.focused,
.search-container
{
    box-shadow: 0 0 2px #d9d9d9;
}

.search-wrapper
{
    font-size: 0;
    white-space: nowrap;
}

.search-wrapper input[type="text"],
.search-wrapper .btn-search
{
    vertical-align: middle;
}

#search-form input[type="text"]
{
    border: 0 none;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    width: 145px;
    background-color: #fff;
    color: #666;
    font-size: 12px;
    outline: 0;
}

#search-form input[type="text"]:focus
{
    color: #000;
}

.btn-search
{
    padding: 0;

    min-width: inherit;
    min-height: inherit;
    border: 0 none;

    box-shadow: none;

    border-radius: 0;
}

.btn-search,
.btn-search:hover
{
    background: transparent;
}

.btn-search-fields
{
    margin: 0;
}

.search-container
{
    padding: 5px;
    position: absolute;
    top: 30px;
    z-index: 200;
    width: 165px;
    outline: 0;
}

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

.search-container::after
{
    border-color: rgba(255, 255, 255, 0);
    border-bottom-color: #fff;
    border-width: 5px;
    left: 50%;
    margin-left: -5px;
}

.search-container::before
{
    border-color: rgba(217, 217, 217, 0);
    border-bottom-color: #d9d9d9;
    border-width: 6px;
    left: 50%;
    margin-left: -6px;
}

.search-fields li,
.search-options li
{
    padding: 0.4em;
    font-size: 90%;
}

.search-fields li input,
.search-options li input
{
    vertical-align: top;
}

.search-options
{
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #d9d9d9;
}

/* FILENAMES, STATS */

.icon
{
    float: left;
    margin-right: 8px;
}

.icon[dir="rtl"]
{
    float: right;
    margin-left: 8px;
}

/*
 * MISC
 */

.avatar
{
    display: inline-block;
    overflow: hidden;
    border-radius: 50%;
}

.avatar-system
{
    display: inline-block;
    overflow: hidden;
    top: -2px;
    position: absolute;
}

a.collapse
{
    cursor: pointer;
}

.collapsethis
{
    display: none;
}

.hr
{
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1em 0 0;
}

table.stats span.muted
{
    /* by default, hide the zero placeholders */
    display: none;
}

table.stats td.zero span.zero,
table.stats td.non-zero span.non-zero,
table.stats td.not-inited span.not-inited
{
    /* Show appropriate placeholders when 'zero' or 'non-zero' class is set */
    display: inline;
}

#autorefresh-notice.dirty
{
    opacity: 1;
    transition-timing-function: ease;
    transition-duration: 1s;
}

#top-stats.dirty #progressbar td,
#translate-actions.dirty,
#top-stats.dirty .path-summary-more .stats-number,
#top-stats.dirty .path-summary-more .stats-percentage,
#top-stats.dirty .path-summary-more td.last-action,
#top-stats.dirty .path-summary-more td.last-updated,
table.stats .item.dirty .stats-graph,
table.stats .item.dirty .stats-number,
table.stats .item.dirty .last-activity,
table.stats .item.dirty .last-updated
{
    opacity: 0.35;
}

.item.is-grayed,
.item.is-disabled
{
    font-style: italic;
    opacity: 0.5;
}

.muted
{
    color: #999;
}

.placeholder
{
    font-style: italic;
}

.danger
{
    color: #b94a48;
}

.hide
{
    display: none;
}

.invisible
{
    visibility: hidden;
}

.affix
{
    position: fixed;
}


/*
 * LANGUAGE SPECIFIC SETTINGS
 */

/*
 * Language codes that are styled with right-to-left (rtl) layout:
 *
 * ar (Arabic)
 * arc (Aramaic)
 * dv (Dhivehi)
 * fa (Persian)
 * he (Hebrew)
 * ks (Kashmir)
 * ps (Pashto)
 * ur (Urdu)
 * yi (Yiddish)
 *
 * See: http://translate.sourceforge.net/wiki/l10n/displaysettings
 * Also see: pagelayout.py::languagedir()
 *
 */

/* Doesn't work: [dir="rtl"] */
*:lang(ar),
*:lang(arc),
*:lang(dv),
*:lang(fa),
*:lang(he),
*:lang(ks),
*:lang(ps),
*:lang(ur),
*:lang(yi)
{
    /* If any styling is necessary for the rtl languages, add it here */
    direction: rtl;
}

:lang(ak)
{
    font-family: "Raw", Lucida, "DejaVu Sans", inherit;
}

:lang(ar)
{
    font-family: "Raw", sans-serif;
    font-size: 1em;
}

:lang(bn)
{
    font-family: "Raw", FreeSans, MuktiNarrow, Vrinda, inherit;
    font-size: medium;
    line-height: 110%;
}

:lang(el)
{
    font-family: "Raw", "DejaVu Sans", inherit;
}

:lang(fa)
{
    font-family: "Raw", Terafik, Traffic, Roya, Nazli, Nazanin, inherit;
    font-size: large;
}

:lang(ja),
:lang(ko)
{
    font-size: medium;
}

:lang(zh)
{
    font-size: large;
}

:lang(km)
{
    font-family: "Raw", "Khmer OS System", "Khmer OS", "Khmer Kampongtrach", "CDT Khmer", inherit;
    line-height: 170%;
}

:lang(vi)
{
    font-family: "Raw", "Lucida Grande", "Vu Phu Tho", "DejaVu Sans", inherit;
}

:lang(vi) a:hover[href]
{
    text-decoration: none;
    color: #606047;
}

:lang(vi) a:active[href]
{
    text-decoration: none;
    color: #606047;
}

.vfolders
{
    margin-bottom: 3em;
}

/* FIX FOR HEADING SIZES */

h2:lang(bn),
h2:lang(ja),
h2:lang(ko),
h2:lang(zh)
{
    font-size: 170%;
}

h2:lang(bn) a,
h2:lang(ja) a,
h2:lang(ko) a,
h2:lang(zh) a
{
    font-size: 100%;
}


/*
 * Django messages placeholder
 */
.messages
{
    background: #fe9;
    margin: 0 -2em;
    padding: 0.7em 1.5em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.messages li
{
    margin-left: 0.5em;
}


.align-centered
{
    text-align: center;
}

.aligned-right
{
    text-align: right;
}

.aligned-left
{
    text-align: left;
}

.msg-error
{
    color: red;
    font-weight: bold;
}

.padded
{
    padding: 1em;
}


.padded-top
{
    padding-top: 1em;
}

.padded-bottom
{
    padding-bottom: 1em;
}

.padded-left
{
    padding-left: 1em;
}


.padded-right
{
    padding-right: 1em;
}

.padded-half
{
    padding: 0.5em;
}


.padded-half-left
{
    padding-left: 0.5em;
}


.padded-half-right
{
    padding-right: 0.5em;
}

form.pootle-fs-config-form input,
form.pootle-fs-config-form select
{
    font-size: 1.2em;
}

form.pootle-fs-config-form input[type='text']
{
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

form.pootle-fs-config-form p
{
    margin: 1em;
}

form.pootle-fs-config-form label
{
    font-size: 1.2em;
    display: block;
}

form.pootle-fs-config-form span.helptext
{
    font-size: 1em;
    display: block;
}

form.pootle-fs-config-form
{
    margin: 0;
    padding: 1em;
}

#pootle-fs-project-admin .config-content
{
    width: 50%;
    float: left;
}

.config-content-panel
{
    padding: 1em;
    border: solid #aaa 1px;
    margin: 1em;
    background: #eee;
}

#pootle-fs-project-admin .config-content-panel h3
{
    background: transparent;
}

.centered
{
    margin: auto;
}

.bigger
{
    font-size: 1.5em;
}

.biggest
{
    font-size: 2em;
}


.pagination
{
    position: relative;
    left: 0;
    top: 0;
    height: 2.4em;
}

.pagination .pagination-right
{
    position: absolute;
    width: 5em;
    right: 0;
    height: 2.4em;
    text-align: right;
    padding: 0.3em;
}

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

.pagination .pagination-center
{
    width: 100%;
    position: absolute;
    padding: 0 5em;
    box-sizing: border-box;
    height: 2.4em;
    text-align: center;
}

.pagination .pagination-center .pagination-info
{
    margin-left: 2em;
}

.pagination .pagination-center input
{
    padding: 0.3em 0.1em;
    width: 5em;
    background: #efefef;
    border: solid #cfcfcf 1px;
    height: 2em;
}


.pagination .pagination-left
{
    position: absolute;
    left: 0;
    width: 5em;
    height: 2.4em;
    padding: 0.3em;
    z-index: 1000;
}

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

form.formtable .disabled
{
    opacity: 0.5;
}

form.formtable .sort-by a
{
    color: #777;
    margin-left: 0.2em;
}

form.formtable .sort-by
{
    margin-left: 0.4em;
}


form.formtable input[type="checkbox"]
{
    margin: 3px 4px;
    vertical-align: middle;
}

form.formtable tbody tr:hover
{
    background: #ececec;
}


form.formtable table
{
    border: solid #ccc 1px;
    background: #fefefe;
    border-collapse: separate;
    border-spacing: 1px;
    font-size: 0.8em;
    width: 100%;
}

form.formtable th,
form.formtable tfoot td
{
    background: #efefef;
}

form.formtable th,
form.formtable td
{
    padding: 0.2em;
}

form.formtable .messages
{
    margin: 0;
}

form.formtable td.row-select,
form.formtable th.row-select-placeholder
{
    width: 1px;
}

form.formtable textarea
{
    vertical-align: top;
    padding: 0.5em;
    font-size: 0.8rem;
    margin-bottom: 0.5em;
}

form.formtable tfoot .select2-container,
form.formtable tfoot textarea
{
    margin-right: 1em;
}

form.formtable tfoot .formtable-select td
{
    padding: 0.5em;
}

form.formtable tfoot .formtable-actions td
{
    padding: 1em;
}

.warning
{
    color: #9f6000;
    background-color: #feefb3;
    padding: 1em;
}

.upstream-icon
{
    position: relative;
    top: -2px;
    margin-right: 0.2em;
}

.upstream-link
{
    position: relative;
    margin-top: 0.5em;
}

.visibility-toggle
{
    float: right;
    color: #c30;
}
