/*  screen.css - MoinMoin Default Styles, modified to work with bootstrap based theme

Copyright (c) 2001, 2002, 2003 by Juergen Hermann
            2013 by Lauri Pokka
*/

html {
    -ms-overflow-style: scrollbar;
}

body {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    min-height: 100vh;
}

p, ul, ol {
    margin-bottom: 0.5em;
}

#top-padding {
    /*
    Push body 50px down using #top-padding element that is present only
    when the static navbar is (not in editors).
    */
    margin-top: 51px;
}

h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
    /*
    Hack for making anchors to jump over the navbar
     (and 10px more while we are at it)
     */
    padding-top: 71px;
    margin-top: -61px;
}

#page, #metaformedit {
    -webkit-flex: 1 auto;
    flex: 1 auto;
}

@media (max-width: 767px) {

    #main-nav li a:after {
        content: " " attr(title);
    }

    .breadcrumb.navbar-left, #credits {
        display: none;
    }

    .collab-list-container {
        left: 0;
        right: 0;
    }
}

@media (min-width: 767px) {

    .navbar-fixed-top {
        height: 50px;
    }
    .navbar .input-group {
        width: 300px;
        margin-right: -15px;
    }

    .navbar .search {
        width: 100%;
    }

    .navbar .editmenu {
        float: right;
    }

    .navbar .glyphicon-user {
        font-size: 1.3em;
        line-height: 15px;
        margin: 0 3px;
    }

    .navbar.breadcrumb {
        display: -webkit-flex;
        display: flex;
    }

    .breadcrumb.navbar-right {
        -webkit-flex: 0 0 auto;
        flex: 0 0 auto;
        margin-left: 30px !important;
    }

    .breadcrumb.navbar-left {
        -webkit-flex: 1 1 auto;
        flex: 1 1 auto;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

[data-toggle=dropdown] {
    cursor: pointer;
}

.navbar .editmenu li {
    margin: 0;
}

.navbar li {
    margin: 0;
}

.navbar .glyphicon {
    font-size: 1.1em;
}

#logo {
    height: 50px;
}


#logo.collab-list:hover, .navbar-nav li:hover {
    cursor: pointer;
    background-color: rgba(250, 250, 250, 0.1);
}

.collab-list-container {
    box-sizing: border-box;
    position: fixed;
    max-height: 100%;
    overflow: auto;
    padding-top: 50px;
    margin: 0;
    top: 0;
    width: 300px;
    z-index: 2;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
}

.collab-list-container .spinner-container {
    background: white;
    font-size: 30px;
    padding: 15px 135px 15px 135px;
}
.collab-list-container .list-group-item {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    text-decoration: none;
}

.collab-list-container .list-group-item:hover {
    text-decoration: none;
}

.collab-list-container .list-group-item p {
    color: black;
}

.collab-list-container span.list-group-item {
    padding: 1px;
}

.collab-list-container .list-group-item input {
    margin: 0;
    width: 100%;
    padding: 3px;
}

.collab-list-container .list-group-item.active p {
    color: #eee;
}

#message {
    clear: both;
    margin: 0;
    padding: 5px 10px;
    border-bottom: 1px solid #CED6E2;
    background: #E6EAF0;
    font-size: 8pt;
}

#message .inline {
    margin-left: 0;
    vertical-align: middle;
}

#message .inline * {
    vertical-align: baseline;
}

/* fixes actionlist table row offset */

.actionlist .row:before,
.actionlist .row:after {
  content: normal;
}

.navbar {
    border: none;
    border-radius: 0;
}

.navbar-fixed-top {
    z-index: 990;
}

.navbar-inverse {
    background: #212121;
    background: rgba(0, 0, 0, 0.87);
    border-color: #1198cb;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
}

.nav.navbar-nav > li > a {
    padding-left: 10px;
    padding-right: 10px;
    color: rgba(255, 255, 255, 0.90) !important;
    background: transparent !important;
}

.navbar .navbar-brand span {
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-weight: 200;
}

.navbar-nav > li:hover > a,
.navbar-header span:hover,
.navbar-header .navbar-brand a:hover {
    color: white !important;
    text-decoration: none;
}

.navbar .searchmenu {
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.navbar .searchmenu-toggle {
    position: absolute;
    margin-left: -25px;
    padding: 5px;
}

ul.dropdown-menu li {
    margin: 0;
}

.dropdown-menu > li:hover,
.dropdown-menu > li:focus,
.dropdown-menu li:hover input,
.dropdown-menu li:focus input {
    color: #ffffff;
    text-decoration: none;
    background-color: #0081c2;
}

.navbar .btn {
    border-radius: 0;
}

.breadcrumb li {
    margin-left: 0;
}

.navbar.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    min-height: 0;
    height: 36px;
}

.breadcrumb .breadcrumb {
    margin: 0;
    padding: 8px 15px;
}

.breadcrumb {
    font-size: 14px;
}

.thumbnail {
    border: none;
}

/* Hide locationline on editor*/
#locationline {
    display: none;
}

/* Set the fixed height of the footer here */
#footer {
    padding: 0;
    text-align: left;
    width: 100%;
    background-color: #f5f5f5;
    color: #9ABDD2;
}

#footer p {
    color: #a7a7a7;
    margin: 8px 0 8px 0;
    padding: 0 30px 0 15px;
}

#credits a:link, #credits a:visited {
	color: #92AACB;
}

#header {
    font-size: 14px;
}

/* original screen.css, redundant bits deleted */

html {
    background-color: #fff;
}

a:link { color: #397DDC; text-decoration: none; }
a:link:hover, a:link:active { text-decoration: underline; color: green; }
a:visited { text-decoration: none; color: #0049B0;}
a:visited:hover { text-decoration: none; color: red; }
a.nonexistent:link { color: #666 }
a.nonexistent:hover { color: black; text-decoration: underline }

a.download {
    font-size: 120%;
    letter-spacing: 0.05em;
    font-weight: bold;
    background: #E7E7E7;
    border: 1px solid #9C9C9C;
    padding: 0.5em;
    text-align: center;
}

.disabled {
    /* IE < 9 ignore disabled attribute, but at least show items in gray */
    color: gray;
}

.editbar {
    clear: both;
    display: block;
    margin: 30px 0px 0px 0px;
    padding: 0 8px;
    white-space: nowrap;
    font-size: 0.75em;
	text-align: right;
}

#header .editbar {
	margin-top: 55px;
}

.editbar form, .editbar form div {
    display: inline;
    margin: 0;
}

.editbar select {
    font-size: 100%;
    vertical-align: middle;
}

.editbar li {
    display: inline;
    padding: 0;
    margin: 4px 6px;
}

.editbar a, .editbar a:visited { color: #0044B3; }


#message p {
    margin: 5px 0;
    padding: 0;
    /* font-weight: bold; */
}

#message div.buttons {
    font-weight: normal;
}

.dialog form {
    margin: 0 15px;
}

.dialog td {
    border: none;
    padding: 5px;
}

.dialog td.label {
    text-align: right;
    font-weight: bold;
    width: 25%;
}

*[dir="rtl"] .dialog td.label {
    text-align: left;
}

.dialog td.content input {
    width: 100%;
}

#page {
    margin: 0;
    padding: 0.25em 3em 1.5em 4.5em;
}

#page #content {
	margin-top: 10px;
	margin-right: 20px;
	padding: 0;
}

/* Clear fix for floats inside #content and Include */
.gwikiinclude > div:before,
#page #content:before,
.gwikiinclude > div:after,
#page #content:after {
    content: "";
    display: table;
}

.gwikiinclude > div:after,
#page #content:after {
    clear: both;
}

#content div {
	margin-right: 10px;
	padding-right: 20px;
}

div.saveform {
	padding: 2px 40px 20px 160px;

}

img .attachment {
	margin: 0px 20px 0px 20px;
}


/* We use here dumb css1 ids because of IE suckiness */
#editor-textarea, #editor-help {
    font-family: monospace;
    border: 1px solid #8cacbb;
    color: black;
    background-color: white;
    padding: 3px;
    width: 100%;
    margin-top: 0.5em;
}

#editor-help {
    font-size: small;
    background-color: #EEEEFF;
}

#editor-comment {
    font-size: 100%;
    border: 1px solid #8cacbb;
    color: black;
    background-color: white;
    vertical-align: middle;
    padding: 1px;
    display: inline;
    width: 70%;
}

#preview, #previewbelow {
    border: 1px solid #6C7680;
    padding: 10px 30px 20px 30px;
    background: url(../img/draft.png);
    margin-top: 0.5em;
}

#textcha {
    font-size: 100%;
    margin-top: 0.5em;
    border: 2px solid #FF8888;
    color: black;
    vertical-align: middle;
    padding: 3px 2px;
}

#textcha-answer {
    border: 2px solid #000000;
    padding: 3px 2px;
}

#credits, #version, #timings{
    margin: 5px 10px;
    padding: 0;
    text-align: left;
    font-size: 0.75em;
    color: #6C7680;
}

#credits li, #timings li {
    display: inline;
    padding: 0 2px;
    margin: 0 4px;
}

#credits img {
    vertical-align: middle;
}

.diff {
    width:99%;
}

.diff-header {
    font-weight: bold;
}

.diff-title {
    background-color: #C0C0C0;
}

.diff-added {
    background-color: #E0FFE0;
    vertical-align: sub;
}

.diff-removed {
    background-color: #FFFFE0;
    vertical-align: sub;
}

.diff-added span {
    background-color: #80FF80;
}

.diff-removed span {
    background-color: #FFFF80;
}

table.navigation {
    float: right;
    margin: 2px;
}

#openididentifier {
    background: url(../../common/openid.png) no-repeat;
    background-position: 0 50%;
    padding-left: 18px;
}

/* metatables and includes */

table {
	margin: 20px 0px 20px 0px;
}

table tr.meta_header td,
table tr.meta_header th,
table tr.header td,
table tr.header th {
	background: #1198cb;
	color: #fff;
}

table tr.meta_header td input {
    color: black;
}

a.meta_footer_link, a.graph-link {
	background: none;
	color: #56a;
}

td.meta_page {
    text-wrap: none;
}
td.meta_page span.meta_editicon {
    display: none;
    float: right;
    margin-left: 5px;
}

td.meta_page:hover span.meta_editicon {
    display: inline;
}

div.inlinegraph {
	margin-bottom: 10px;
}

.glyphicon .fallback, .no-bootstrap {
    display: none;
}
