/**
 * CSS in this file is used by *all* skins (that have any CSS at all). Be
 * careful what you put in here, since what looks good in one skin may not in
 * another, but don't ignore the poor non-Monobook users either.
 */

@media screen {

    /* CustIS style patches */
    div.printonly { display: none; }

    div#editpage-copywarn { display: none; }

    div.cis-note { font-size: small; font-family: cursive; margin: 10px; padding: 10px; width: 80%; border: 1px dashed #8cacbb; }

    .tagcloud { width: 98%; text-align: center; background-color: #FDFDFD; border: 1px solid #EEEEEE; padding: 15px 10px 15px 10px; }

    div#content p { text-align: justify; }
    div#content center p { text-align: center; }
    div#content div.center, div#content div.center p { text-align: center; width: auto; }
    div#content span.pdfhandler { display: block; text-align: left; }

    div#content div.paragraph { text-align: justify; }
    div#content center div.paragraph { text-align: center; }

    .createboxInput { font-size: 13px; }

    /* In original MediaWiki, h6 is smaller than the regular text (80%)! Fix it. */
    h2 { font-size: 170%; }
    h3 { border-bottom: 1px solid #aaa; font-size: 140%; font-weight: bold; }
    h4 { font-size: 132%; }
    h5 { font-size: 116%; }
    h6 { font-size: 100%; }

    dd { margin-left: 20px; }

    .tableborder1black { border-collapse: collapse; }
    .tableborder1black td, .tableborder1black th { border: 1px solid black; }
    .tableborder1black th { background-color: #D0D0D0; }

    .simpletable { border-collapse: collapse; }
    .simpletable td, .simpletable th { border: 1px solid black; }
    .simpletable th { background-color: #D0D0D0; text-align: left; white-space: nowrap; }

    #userSummaryButtonsA a { margin-right: 0.5em; }

    blockquote { border: 1px dashed #ffc000; padding: 0.5em; }

    select { vertical-align: baseline; }

    .mw-htmlform-field-UploadSourceField .mw-label { white-space: nowrap; }

    /* Hierarchical numbering of HTML lists */
    ol.multinum, .multinum ol { counter-reset: item; margin-left: 2em; padding-left: 1em; }
    ol.multinum ol, .multinum ol ol { padding-left: 0; }
    ol.multinum li, .multinum ol li { display: block; }
    ol.multinum li:before, .multinum ol li:before { margin-left: -2em; content: counters(item, ".") ". "; counter-increment: item; }

    /* Non-jQuery version of [[mw:Reference Tooltips]]. See also common.js */
    .referencetooltip {
        position: absolute;
        list-style: none;
        list-style-image: none;
        margin: 0;
        z-index: 5;
        opacity: 0;
        border: #080086 2px solid;
        max-width: 260px;
        padding: 10px 8px 13px 8px;
        margin: 0px;
        background-color: #F7F7F7;
        box-shadow: 2px 4px 2px rgba(0,0,0,0.3);
        -webkit-box-shadow: 2px 4px 2px rgba(0,0,0,0.3);
    }
    .referencetooltip.hidden {
        opacity: 0;
        transition: opacity 100ms ease-out 0s;
        -moz-transition: opacity 100ms ease-out 0s;
    }
    .referencetooltip.shown {
        opacity: 1;
        transition: opacity 100ms ease-in 0s;
        -moz-transition: opacity 100ms ease-in 0s;
    }

    div.mw-collapsible .mw-collapsible-toggle {
        float: left;
    }

    #pastehtmldia table {
        width: 100%;
        height: 100%;
    }
    #pastehtmldia {
        position: absolute;
        left: 20%;
        top: 20%;
        right: 20%;
        bottom: 20%;
        z-index: 100;
        background: white;
        border: 1px solid gray;
        padding: 0.5em;
    }
    #pastehtmltd {
        height: 100%;
    }
    .full_cell_wrap {
        float: left;
        width: 100%;
        height: 100%;
        position: relative;
    }
    .full_cell_div {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
    }
    #pastehtmldiv {
        padding: .5em;
        background: white;
        overflow: scroll;
        border: 1px solid gray;
        vertical-align: top;
    }
    #pastehtmlimgtd {
        width: 20%;
        vertical-align: top;
    }
    #pastehtmlimages {
        padding: 0 .5em;
        overflow: auto;
        overflow-x: hidden;
    }

    .NavFrame.collapsed .NavContent {
        display: none;
    }
    .NavFrame .NavHead {
        cursor: pointer;
    }
    .NavFrame .NavHead:after {
        content: "[скрыть]";
        margin-left: 5px;
        color: #0645ad;
    }
    .NavFrame.collapsed .NavHead:after {
        content: "[показать]";
        margin-left: 5px;
        color: #0645ad;
    }
    .NavFrame .NavHead:hover:after {
        text-decoration: underline;
    }
    .NavFrame.alternative .NavHead:after {
        content: "";
    }
    .NavFrame.alternative .NavHead:before {
        content: "▼";
        margin-right: 5px;
        color: #0645ad;
    }
    .NavFrame.collapsed.alternative .NavHead:before {
        content: "►";
        margin-right: 5px;
        color: #0645ad;
    }
    .NavFrame.alternative .NavHead:hover:before {
        text-decoration: underline;
    }

    .NavFrame.new .NavHead {
        cursor: auto;
    }
    .NavFrame.new .NavHead:after, .NavFrame.new .NavHead:before {
        content: "";
        display: none;
    }
    .NavFrame.new span.NavOpen {
        cursor: pointer;
        color: #0645ad;
    }
    .NavFrame.new span.NavOpen:hover {
        text-decoration: underline;
    }

}

@media print {

    img { max-width: 17cm; height: auto !important; }
    dt { font-weight: bold; }

    /* Hierarchical numbering of HTML lists */
    ol.multinum, .multinum ol { counter-reset: item; margin-left: 2em; padding-left: 1em; }
    ol.multinum ol, .multinum ol ol { padding-left: 0; }
    ol.multinum li, .multinum ol li { display: block; }
    ol.multinum li:before, .multinum ol li:before { margin-left: -2em; content: counters(item, ".") ". "; counter-increment: item; }

}
