/*
 * 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
 */

/*
 * BASIC ELEMENT STYLING
 */

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

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

    font-family: Segoe UI, Ubuntu, sans-serif;
    font-size: 0.8125em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
}

a,
a:link
{
    text-decoration: none;
    background-color: inherit;
    color: #0489b7;
    cursor: pointer;
}

a:visited
{
    text-decoration: none;
}

a:hover
{
    text-decoration: underline;
}

a:active
{
    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 0;
    background-color: inherit;
    color: #4b4742;
}

td
{
    padding: 5px 0;
}

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

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: 0px;
}

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;
}

[class^="bar-"],
[class*=" bar-"]
{
    display: inline-block;
    position: absolute;
    vertical-align: middle;
}

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

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

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

td.stats-name a:hover,
.last-action > a:hover,
.overview-actions-content a:hover
{
    text-decoration: none;
}

td.stats-name a:hover > i + span,
.last-action > a:hover > img + span,
.overview-actions-content a:hover > i + span
{
    text-decoration: underline;
}


/*
 * MAIN DIVs
 */

#wrapper
{
    width: 100%;
    margin-top: 41px; /* navbar height + border */
}

#nav-access
{
    position: absolute;
    top: -1000px;
}

html[dir="ltr"] #nav-access
{
    left: -1000px;
}

html[dir="rtl"] #nav-access
{
    right: -1000px;
}

#precontent,
#content,
#postcontent
{
    margin: 0 1em;
}

#precontent,
#content {
    clear: both;
}


/*
 * NAVBAR
 */

#navbar
{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin-bottom: 0;
    overflow: visible;
}

#navbar a
{
    color: #c1e1ee;
    text-shadow: 0 1px 0 #130f30;
    text-decoration: none;
}

#navbar a.brand,
#navbar a:active,
#navbar a:hover
{
    color: #f8f8f8;
}

.brand
{
    font-size: 1.5em;
    line-height: 2em;
}

.logo
{
    display: inline-block;
    float: left;
    margin-top: 2px;
}

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

/* Navbar container */

#navbar-inner
{
    background-color: #0489B7;
    border-bottom: 1px solid #d9d9d9;
    min-height: 40px;
    -webkit-box-shadow: 0 1px 4px #d9d9d9;
       -moz-box-shadow: 0 1px 4px #d9d9d9;
            box-shadow: 0 1px 4px #d9d9d9;
}

/* Zoom controls */

#zoom {
    font-size: 12px;
    font-weight: bold;
    line-height: 40px;
    float: right;
    margin-left: 20px;

    filter:alpha(opacity=40);
    opacity: 0.4;
}

html[dir="rtl"] #zoom {
    float: left;
    margin-left: 0;
    margin-right: 20px;
}

#zoom a {
    padding: 0 2px;
    border: 1px dotted transparent;
}

#zoom:hover {
    filter:alpha(opacity=100);
    opacity: 1;
}

#zoom a:hover {
    border: 1px dotted #130f30;
    text-decoration: none;
}


/* Main navigation items */

#nav-main
{
    float: right;
}

html[dir="rtl"] #nav-main
{
    float: left;
}

#nav-main li
{
    float: left;
}

html[dir="rtl"] #nav-main li
{
    float: right;
}

#nav-main li a
{
    display: block;
    font-size: 12px;
    padding: 12px;
}

#nav-main a.admin
{
    font-weight: bold;
}

#user
{
    float: left;
}

#user img
{
    float: left;
    margin: -2px 5px 0;
}


/*
 * FOOTER
 */

#footer
{
    background-color: #f8f8f8;
    color: #d9d9d9;
    border-top: 1px solid #d9d9d9;
    clear: both;
    font-size: 12px;
    text-align: center;
    margin-top: 3em;
    padding: 35px 0;
}

#footer a
{
    color: #999;
}

#footer .nav li
{
    display: inline;
}

#footer .nav li:after
{
    content:  "|";
    margin: 0 25px;
}

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


/*
 * POPUPS
 */

.popup-inline
{
    background-color: #fff;
    padding: 20px 30px;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.popup-ajax .mfp-content
{
    background-color: #fff;
    width: 920px !important;
}

.mfp-content .form
{
    -webkit-box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.5);
       -moz-box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.5);
            box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.5);
}

/*
 * MESSAGES
 */


/* Alerts from Bootstrap */

#alerts
{
    top: 41px; /* navbar height + border */
    width: 400px;
    left: 50%;
    margin-left: -200px;
    z-index: 101;
}

.alert
{
    padding: 8px 35px 8px 14px;
    margin-bottom: 1em;
    color: #c09853;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    background-color: #fcf8e3;
    border: 1px solid #fbeed5;
    -webkit-border-radius: 4px;
       -moz-border-radius: 4px;
            border-radius: 4px;
}

.alert h4
{
    margin: 0;
}

.alert .close
{
    position: relative;
    top: -5px;
    right: -21px;
    line-height: 20px;
}

.alert-success
{
    color: #468847;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-danger,
.alert-error
{
    color: #b94a48;
    background-color: #f2dede;
    border-color: #eed3d7;
}

.alert-info
{
    color: #3a87ad;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.alert-block
{
    padding-top: 14px;
    padding-bottom: 14px;
}

.alert-block > p,
.alert-block > ul
{
    margin-bottom: 0;
}

.alert-block p + p
{
    margin-top: 5px;
}

.close
{
    float: right;
    font-size: 20px;
    font-weight: bold;
    line-height: 20px;
    color: #000000;
    text-shadow: 0 1px 0 #ffffff;

    opacity: 0.2;
    filter: alpha(opacity=20);
}

.close:hover
{
    color: #000000;
    text-decoration: none;
    cursor: pointer;

    opacity: 0.4;
    filter: alpha(opacity=40);
}

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

.fade {
  opacity: 0;
  -webkit-transition: opacity 0.15s linear;
     -moz-transition: opacity 0.15s linear;
       -o-transition: opacity 0.15s linear;
          transition: opacity 0.15s linear;
}

.fade.in {
  opacity: 1;
}


/*
 * PAGE BODY
 */

#body
{
    margin: 0;
    padding: 5px 0px;
}

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

/* TABLES */

.module table,
.module-primary table
{
    width: 100%;
}

td.language,
td.code,
td.profile,
td.username
{
    padding-left: 5px;
}

html[dir="rtl"] td.language,
html[dir="rtl"] td.code,
html[dir="rtl"] td.profile,
html[dir="rtl"] td.username
{
    padding-left: 0;
    padding-right: 5px;
}

tr.even,
td.even,
li.even
{
    background: #f8f8f8;
}

/* 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;
    clear:both;
    line-height: 120%;
}

html[dir="rtl"] .hd h2
{
    margin-left: 0;
    margin-right: 0.5em;
}

.last-action
{
    margin: 1em 0 1em 0;
    padding: 0.5em;
    background-color: #f8f8f8;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

html[dir="rtl"] .last-action
{
    margin-left: 0;
    margin-right: 1em;
}

.last-action img
{
    vertical-align: middle;
}

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

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

.hd h3 span
{
    position: relative;
    top: -10px;
    padding-right: 5px;
    background-color: #fff;
}

html[dir="rtl"] .hd h3 span
{
    padding-right: 0;
    padding-left: 5px;
}

.bd
{
    margin: 1em;
}

.nomargin
{
    margin: 0;
}

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

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

.bd h4
{
    font-size: 100%;
}

/* USER PROFILES */

#user-profile
{
    float: none;
    width: 100%;
}

#user-contributions-wrapper
{
    margin-right: 220px;
}

html[dir="rtl"] #user-contributions-wrapper
{
    margin-right: auto;
    margin-left: 220px;
}

#user-contributions
{
    float: left;
    width: 100%;
}

html[dir="rtl"] #user-contributions
{
    float: right;
}

#user-contributions table
{
    margin-top: 0.5em;
    margin-bottom: 1.5em;
}

#user-contributions table td
{
    padding: 5px;
    width: 16.6%;
}

#user-meta-wrapper
{
    float: right;
    width: 200px;
}

html[dir="rtl"] #user-meta-wrapper
{
    float: left;
}

#user-meta
{
    margin: 0 20px;
}

#user-meta img
{
    border: 1px solid #eee;
    padding: 5px;
}

#user-meta .user-name
{
    font-size: 140%;
    line-height: 2;
}


/* UPLOAD FORM / UPDATE FROM VCS */

div#upload p,
div#upload ul,
div#update p
{
    margin-bottom: 0.5em;
}


/*
 * BUTTONS
 */

.btn,
a.btn,
input[type="submit"]
{
    border: 0;
    outline: 0;
    cursor: pointer;
    display: inline-block;
    padding: 4px 10px;
    text-align: center;

    min-height: 16px;
    min-width: 110px;
    -webkit-border-radius: 5px;
       -moz-border-radius: 5px;
            border-radius: 5px;
    -webkit-box-shadow: 0px 0px 2px #130f30;
       -moz-box-shadow: 0px 1px 2px #130f30;
            box-shadow: 0px 1px 2px #130f30;

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#cccccc');
    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ccc));
    background: -webkit-linear-gradient(top,  #fff,  #ccc);
    background:    -moz-linear-gradient(top,  #fff,  #ccc);
    background:     -ms-linear-gradient(top,  #fff,  #ccc);
    background:      -o-linear-gradient(top,  #fff,  #ccc);
    background:         linear-gradient(top,  #fff,  #ccc);

    color: #130f30;
}

.btn:hover,
input[type="submit"]:hover
{
    text-decoration: none;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dddddd');
    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
    background: -webkit-linear-gradient(top,  #fff,  #ddd);
    background:    -moz-linear-gradient(top,  #fff,  #ddd);
    background:     -ms-linear-gradient(top,  #fff,  #ddd);
    background:      -o-linear-gradient(top,  #fff,  #ddd);
    background:         linear-gradient(top,  #fff,  #ddd);
}

.btn:active,
input[type="submit"]:active
{
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#ffffff');
    background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#fff));
    background: -webkit-linear-gradient(top,  #ccc,  #fff);
    background:    -moz-linear-gradient(top,  #ccc,  #fff);
    background:     -ms-linear-gradient(top,  #ccc,  #fff);
    background:      -o-linear-gradient(top,  #ccc,  #fff);
    background:         linear-gradient(top,  #ccc,  #fff);
}


/*
 * FORMS
 */

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

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e5f3f8', endColorstr='#cde7f1');
    background: -webkit-gradient(linear, left top, left bottom, from(#e5f3f8), to(#cde7f1));
    background: -webkit-linear-gradient(top,  #e5f3f8,  #cde7f1);
    background:    -moz-linear-gradient(top,  #e5f3f8,  #cde7f1);
    background:     -ms-linear-gradient(top,  #e5f3f8,  #cde7f1);
    background:      -o-linear-gradient(top,  #e5f3f8,  #cde7f1);
    background:         linear-gradient(top,  #e5f3f8,  #cde7f1);
}

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="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;
}

.disabled,
input[type="submit"][disabled],
input[type="submit"][disabled]:hover
{
    -webkit-box-shadow: none;
       -moz-box-shadow: none;
            box-shadow: none;

    background-image: none;
    background-color: #eee;

    border: 1px solid #d9d9d9;

    filter:alpha(opacity=65);
    opacity: 0.65;
}

input.delete[type="submit"]
{
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffeeee', endColorstr='#ffcccc');
    background: -webkit-gradient(linear, left top, left bottom, from(#fee), to(#fcc));
    background: -webkit-linear-gradient(top,  #fee,  #fcc);
    background:    -moz-linear-gradient(top,  #fee,  #fcc);
    background:     -ms-linear-gradient(top,  #fee,  #fcc);
    background:      -o-linear-gradient(top,  #fee,  #fcc);
    background:         linear-gradient(top,  #fee,  #fcc);
}

body.zoom-out-1 input[type="submit"]
{
    min-width: 100px;
}

body.zoom-out-2 input[type="submit"]
{
    min-width: 90px;
}

.formlink
{
    margin: 0 auto 1em;
    font-size: 137%;
    text-align: center;
}

.form-horizontal.form-actions input
{
    display: inline-block;
    margin-right: 1em;
}

html[dir="rtl"] .form-horizontal.form-actions input
{
    margin-right: inherit;
    margin-left: 1em;
}

/* Form messages */

.form.message
{
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e5f3f8', endColorstr='#cde7f1');
    background: -webkit-gradient(linear, left top, left bottom, from(#ffd), to(#ffa));
    background: -webkit-linear-gradient(top,  #e5f3f8,  #cde7f1);
    background:    -moz-linear-gradient(top,  #e5f3f8,  #cde7f1);
    background:     -ms-linear-gradient(top,  #e5f3f8,  #cde7f1);
    background:      -o-linear-gradient(top,  #e5f3f8,  #cde7f1);
    background:         linear-gradient(top,  #e5f3f8,  #cde7f1);
}

.form.success
{
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeffdd', endColorstr='#ccff99');
    background: -webkit-gradient(linear, left top, left bottom, from(#efd), to(#cf9));
    background: -webkit-linear-gradient(top,  #efd,  #cf9);
    background:    -moz-linear-gradient(top,  #efd,  #cf9);
    background:     -ms-linear-gradient(top,  #efd,  #cf9);
    background:      -o-linear-gradient(top,  #efd,  #cf9);
    background:         linear-gradient(top,  #efd,  #cf9);
}

.form.error
{
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffeeee', endColorstr='#ffcccc');
    background: -webkit-gradient(linear, left top, left bottom, from(#fee), to(#fcc));
    background: -webkit-linear-gradient(top,  #fee,  #fcc);
    background:    -moz-linear-gradient(top,  #fee,  #fcc);
    background:     -ms-linear-gradient(top,  #fee,  #fcc);
    background:      -o-linear-gradient(top,  #fee,  #fcc);
    background:         linear-gradient(top,  #fee,  #fcc);
}

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

.form .success {
    color: #390;
}

.form .error
{
    color: #c33;
}

p.help,
span.help_text
{
    font-size: 85%;
    font-style: italic;
}

/* FORM ERROR LISTS */

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

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



/*
 * NEWS FORM
 */

.news-feed,
.news-feed-with-form
{
    margin-top: 2em;
}

.news-feed-with-form
{
    margin-left: 38em;
}

.news {
    margin: 2em 0;
    float: left;
}

/*
 * CAPTCHA FORM
 */

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

.form .captcha .question
{
    font-size: 120%;
}

.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;
}


/*
 * DOCUMENTATION, LEGAL, CONTRIBUTORS
 */

#staticpage,
#about
{
    margin: 2em;
}

#about .document h1
{
    margin-top: .5em;
    margin-bottom: .25em;
}

#about h2,
#about h3
{
    border-bottom: 1px solid #eee;
}

#about h3
{
    margin-top: 1.5em;
}

#about p
{
    margin: 1em 0;
}

#about ol,
#about ul
{
    margin: 1em 1.5em;
}

#about ul li
{
    list-style-type: square;
}

#about ol li
{
    list-style-type: inherit;
}

#about dfn
{
    border-bottom: 1px dotted #130f30;
}

#about .sidenote
{
    width: 10em;
    font-size: 95%;
    background-color: #ffe;
    padding: 0 1em;
    border: 1px dashed #cc9;
    margin-top: 4em;
    color: #777;
}

#about .sidenote p
{
    line-height: 130%;
}

#about .sidenote li
{
    margin: 0.2em 0;
}

#contributors ul,
#contributors ul li
{
    margin: 0;
    list-style-type: none;
}

#contributors ul li
{
    padding-left: 25px;
}

html[dir="rtl"] #contributors ul li
{
    padding-right: 25px;
}

#contributors ul li.lang
{
    font-weight: bold;
    font-size: 120%;
    margin-top: 12px;
}

#contributors ul li.proj
{
    font-weight: bold;
    font-size: 80%;
}

#contributors ul li.user
{
    font-weight: normal;
    font-size: 100%;
}


/*
 * SETTINGS PAGE
 */

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

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

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

.settings-container input,
.settings-container select,
.settings-container textarea,
#login input[type="text"],
#login input[type="password"],
#login select,
#register input[type="text"],
#register input[type="password"]
{
    display: block;
}

.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.even
{
    background-color: #d67f62 !important;
}

.delete-selected > * {
    filter:alpha(opacity=40);
    opacity: 0.4;
}

.delete-selected td.DELETE {
    filter:alpha(opacity=100);
    opacity: 1;
}

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

/*
 * SUMMARIES
 */

#summary-legend
{
    color: #888;
    font-size: 85%;
    font-style: italic;
}

#summary-legend li
{
    line-height: 16px;
}

#summary-legend [class^="bar-"],
#summary-legend [class*=" bar-"]
{
    position: relative;
    width: 32px;
}

div.newsitem-sep
{
    border-bottom: 1px solid #ddd;
    margin: 1.5em 0 2em;
}

div#rss-alerts ul,
div.latestnews ul
{
    margin: 0 1em;
}

div#rss-alerts li,
div.latestnews li
{
    list-style-type: square;
}

.subscribe
{
    margin-top: 1em;
}

div.topcontributors
{
    margin-top: 0;
    padding-top: 3em;
    margin-bottom: 2em;
}

table.topcontributors
{
    width: 100%;
}

table.topcontributors th
{
    color: #999;
    font-size: 85%;
    padding: 0 10px 7px 10px;
}

table.topcontributors td
{
    font-size: inherit;
    padding: 5px 10px;
}

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
{
    text-align: right;
}

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

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 */

.checks td
{
    height: 100%;
}

.checks td a
{
    display: inline-block;
    height: 100%;
    width: 100%;
}

.check-name
{
    width: 22%;
}

.check-count
{
    text-align: right;
    width: 5%;
    padding-right: 5%;
}

html[dir="rtl"] .check-count
{
    padding-right: 0;
    padding-left: 5%;
}

#check-100 td a
{
    background-color: inherit;
    color: #c30;
    font-weight: bold;
}


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

.tiny
{
    font-size: 0.9em;
}

#path-summary ul
{
    line-height: 1.8em;
}

.path-incomplete
{
    font-weight: bold;
    font-size: 1.2em;
}


/*
 * Pretty Graphs, mostly from http://l10n.gnome.org/
 */

div.graph
{
    height: 14px;
    width: 100px;
    border: 0 none;
    position: relative;
}

div.graph[dir="ltr"] div.translated
{
    left: 0%;
}

div.graph[dir="rtl"] div.translated
{
    right: 0%;
}

/* SORTABLE */

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

table.sortable th
{
    cursor: pointer;
}

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;
    -webkit-border-radius: 1em 0 0 1em;
       -moz-border-radius: 1em 0 0 1em;
            border-radius: 1em 0 0 1em;
}

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

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

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


/*
 * OVERVIEW PAGE
 */

#overview-actions li
{
    background-color: inherit;
}

.overview-actions-container
{
    padding: 1em 0;
    border-top: 1px solid #eee;
}

.overview-actions-container.first
{
    border-top: 0 none;
}

.overview-actions-group
{
    width: 20%;
    font-size: 85%;
    float: left;
}

html[dir="rtl"] .overview-actions-group
{
    float: right;
}

.overview-actions-content
{
    width: 75%;
    margin-left: 25%;
}

html[dir="rtl"] .overview-actions-content
{
    margin-left: 0;
    margin-right: 25%;
}

#overview-actions-translate-offline a
{
    color: #cc6633;
}

#overview-actions-translate-offline li
{
    display: inline;
}

#overview-actions-translate-offline li.odd
{
    margin-right: 25%;
}

html[dir="rtl"] #overview-actions-translate-offline li.odd
{
    margin-right: 0;
    margin-left: 25%;
}

#overview-actions-manage a
{
    color: #cc3366;
}

.overview-description-toggle
{
    display: block;
    margin-top: 0.5em;
    text-align: right;
}

html[dir="rtl"] .overview-description-toggle
{
    text-align: left;
}

#overview-description-tp,
#overview-description-project,
#overview-description-language
{
    margin: 1em 0;
}

/* Inline editing */

.markup-body:hover .js-edit-details
{
    visibility: visible;
}


/*
 * HEADER
 */

.header
{
    background-color: #f8f8f8;
    padding: 0 1.5em;
    border-bottom: 1px solid #d9d9d9;
}

#header-tabs
{
    margin-top: -1px;
}

#header-meta
{
    min-height: 50px;
    line-height: 2.7;
}

/* Breadcrumbs */

.breadcrumb
{
    font-size: 18px;
    font-weight: normal;
}

.breadcrumb li
{
    float: left;
}

html[dir="rtl"] .breadcrumb li
{
    float: right;
}

.breadcrumb li:before
{
    content: "/";
    color: #999;
    margin: 0 10px;
}

.breadcrumb li:first-child:before
{
    content: normal;
    margin: 0;
}

/* Tabs */

#tabs,
#file-tabs
{
    height: 34px;
}


#file-tabs
{
    border-bottom: 1px solid #d9d9d9;
    
}

#tabs li,
#file-tabs li
{
    float: left;
}

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

#tabs a,
#file-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,
#file-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,
.tags-add
{
    color: #c30 !important;
}

body#dashboard #tabs a.dashboard,
body#settings #tabs a.settings,
body#profile #tabs a.profile,
body#password #tabs a.password,
body#admindashboard #tabs a.admindashboard,
body#admingeneral #tabs a.admingeneral,
body#adminusers #tabs a.adminusers,
body#adminlanguages #tabs a.adminlanguages,
body#adminprojects #tabs a.adminprojects,
body#adminpermissions #tabs a.adminpermissions,
body#adminstaticpages #tabs a.adminstaticpages,
body#main-overview #tabs a.main-overview,
body#main-translate #tabs a.main-translate,
body#projectoverview #tabs a.projectoverview,
body#projecttranslate #tabs a.projecttranslate,
body#projectadmin #tabs a.projectadmin,
body#projectperm #tabs a.projectperm,
body#languageoverview #tabs a.languageoverview,
body#languagenews #tabs a.languagenews,
body#languagetranslate #tabs a.languagetranslate,
body#languageadmin #tabs a.languageadmin,
body#tpoverview #tabs a.tpoverview,
body#tpnews #tabs a.tpnews,
body#tptranslate #tabs a.tptranslate,
body#tpterminology #tabs a.tpterminology,
body#tpadminpermissions #tabs a.tpadminpermissions,
body #file-tabs a.selected-tab
{
    background-color: #fff;
    border-color: #d9d9d9 #d9d9d9 #fff;
    border-style: solid;
    color: #444;
    font-weight: bold;
}




.title a
{
    unicode-bidi: embed;
}


/* SEARCH */

#search
{
    float: right;
    margin: 6px 0;
}

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

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

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

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

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

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

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

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

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

.btn-search
{
    padding: 0;

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

    -webkit-box-shadow: none;
       -moz-box-shadow: none;
            box-shadow: none;

    -webkit-border-radius: 0;
       -moz-border-radius: 0;
            border-radius: 0;
}

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

.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;
}

/*
 * RSS ALERTS
 */

#rss-alerts div.bd div.centered
{
    width: 100%;
    text-align: center;
}

#rss-alerts iframe
{
    height: 25em;
}

/*
 * MISC
 */

a.collapse,
a.slide
{
    cursor: pointer;
}

.collapsethis,
.slidethis
{
    display: none;
}

.pull-left
{
    float: left;
}

html[dir="rtl"] .pull-left
{
    float: right;
}

.pull-right
{
    float: right;
}

html[dir="rtl"] .pull-right
{
    float: left;
}

.hr
{
    border-top: 1px solid #eee;
    padding: 1em 0 0;
}

.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: Lucida, "DejaVu Sans", inherit;
}

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

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

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

:lang(fa)
{
    font-family: 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: "Khmer OS System", "Khmer OS", "Khmer Kampongtrach", "CDT Khmer", inherit;
    line-height: 170%;
}

:lang(vi)
{
    font-family: "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;
}

/* 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%;
}


/*
 * Size overrides for different zoom levels
 */

body.zoom-out-2 #content .documentation,
body.zoom-out-2 #content table.sortable,
body.zoom-out-2 table.translate-table,
body.zoom-out-2 table.stats {
    font-size: 90%;
}

body.zoom-out-1 #content .documentation,
body.zoom-out-1 #content table.sortable,
body.zoom-out-1 table.translate-table,
body.zoom-out-1 table.stats {
    font-size: 95%;
}

body.zoom-in-1 #content .documentation,
body.zoom-in-1 #content table.sortable,
body.zoom-in-1 table.translate-table,
body.zoom-in-1 table.stats {
    font-size: 115%;
}

body.zoom-in-2 #content .documentation,
body.zoom-in-2 #content table.sortable,
body.zoom-in-2 table.translate-table,
body.zoom-in-2 table.stats {
    font-size: 130%;
}


/*
 * Obfuscated email addresses
 */

span.email {
    direction: rtl;
    unicode-bidi: bidi-override;
}

html[dir="rtl"] span.email {
    direction: ltr;
}

span.email .i {
    display: none;
}


/*
 * Tagging styles
 *
 * See http://cssglobe.com/pure-css3-post-tags/ for explanation.
 */

.tag-list
{
    list-style: none;
    overflow: hidden;
}

.tag-list li,
.tag-list .tag
{
    float: left;
    position: relative;
}

html[dir="rtl"] .tag-list li,
html[dir="rtl"] .tag-list .tag
{
    float: right;
}

.tag-list li
{
    margin: 0px 10px 6px 10px;
}

.tag-list .tag
{
    padding: 0 8px 0 5px;
    background: #ddd;
    height: 20px;
    line-height: 20px;
    font-size: x-small;
    color: #666;
    text-decoration: none;
    -webkit-border-bottom-right-radius: 4px;
       -moz-border-radius-bottomright: 4px;
            border-bottom-right-radius: 4px;
    -webkit-border-top-right-radius: 4px;
       -moz-border-radius-topright: 4px;
            border-top-right-radius: 4px;
    filter:alpha(opacity=50);
    opacity: 0.5;
}

.tag-list .tag-remove
{
    display: none;
    width: 12px;
    height: 13px;
    position: absolute;
    top: 3px;
    left: -5px;
    font-size: 1px;
    outline: none;
    background: url('../images/select2.png') right top no-repeat;
    background-position: right -11px;
}

/* Style for the tag arrow (or triangle) */
.tag-list .tag:before
{
    content: "";
    float: left;
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-color: transparent #ddd transparent transparent;
    border-style: solid;
    border-width: 10px 10px 10px 0;
}

.tag-list .tag:hover
{
    background: #4cace9;
    color: #fff;
    filter:alpha(opacity=100);
    opacity: 1;
}

.tag-list .tag:hover:before
{
    border-color: transparent #4cace9 transparent transparent;
}


/* Tagging styles not related with tags */

a.tags-add
{
    margin-left: .5em;
    font-size: 12px;
    overflow: hidden;
    float: right;
}

html[dir="rtl"] a.tags-add
{
    margin-right: .5em;
    float: left;
}

a.tags-toggle,
a.filter-toggle
{
    font-size: x-small;
    text-decoration: none;
    filter:alpha(opacity=50);
    opacity: 0.5;
}

a.tags-toggle:hover,
a.filter-toggle:hover
{
    text-decoration: none;
    filter:alpha(opacity=100);
    opacity: 1;
}

.tags-aside,
.filter-aside
{
    float: right;
}

html[dir="rtl"] .tags-aside,
html[dir="rtl"] .filter-aside
{
    float: left;
}

.tags-filter-form
{
    margin-top: 2em;
}

table.sortable .tags-row td
{
    padding: 0pt;
}

.tags-bd
{
    padding: 0pt 1em 0pt 1em;
}

/*
 * Select2 fixes
 * https://github.com/ivaynberg/select2/pull/1877
 */

/* Fix the close button position in RTL */
html[dir="rtl"] .select2-search-choice-close
{
    right: auto;
    left: 3px;
}

/* align the selects to the right */
html[dir="rtl"] .select2-container-multi .select2-choices li
{
    float: right;
}
html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
{
    margin-left: 0;
    margin-right: 5px;
}

/*
 * Magnific-Popup fixes
 * https://github.com/dimsemenov/Magnific-Popup/pull/261
 */

html[dir="rtl"] .mfp-close {
    right: auto;
    left: 0;
}
