html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0 0 0px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

@media screen and (max-width: 740px){
    div.file-uploaded{padding-left: 0px !important; margin-top: 0px !important;}
    .qq-upload-button{width: 100% !important;}
}

.quiz{
    border-top: 5px solid #4cae4c;
    padding-top: 10px;    
}

.control-label{
    background-color: #ccc;
    display: block;
    border-radius: 3px;
    padding: 4px;
}

.label-radio, .label-checkbox{
    display: flex !important;
}

.label-radio span, .label-checkbox span{
    padding-left: 5px;
}

.img-wrap{
    text-align: center;
}

.img-wrap img{
    max-height: 128px;
}

.field-tree-diameter{
    margin-top: 50px;
}

.state-control label, 
.sub-state-control label,
.condition-control label,
.surround-control label,
.firstthread-control label,
.neighbour-control label{
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; 
}

:checked + span { font-weight: bold; color: red;}


#ck-button {
    background-color:#EFEFEF;
    border-radius:4px;
    border:1px solid #D0D0D0;
    overflow:auto;
    float:right;
}

#ck-button label {
    float:left;
    width:4.0em;
    margin-bottom: 0px;
}

#ck-button label span {
    text-align:center;
    display:block;
    border-radius:4px;
}

#ck-button label input {
    position:absolute;
    left:-20px;
}

#ck-button input:hover + span {
    background-color:#efE0E0;
}

#ck-button input:checked + span {
    background-color:#911;
    color:#fff;
}

#ck-button input:checked:hover + span {
    background-color:#c11;
    color:#fff;
}

.circle_layout {
    background-color: white;
    position: absolute;
    left: -6px;
    top: -6px;
    width: 12px;
    height: 12px;
    border: 1px solid green;
    color: #225D9C;
    line-height: 12px;
    /* Это CSS свойство не будет работать в Internet Explorer 8 */
    border-radius: 16px;
}

.circle_layout.yellow{
    background-color: #e0c143 !important;
}

.circle_layout.green{
    background-color: #7ee043 !important;
}

.circle_layout.small{
    left: -4px !important;
    top: -4px !important;
    width: 8px !important;
    height: 8px !important;
    background-color: green !important;
}

.circle_layout.dead{
    background-color: #222 !important;
    border-color: #222 !important;
}

.circle_layout.type1{background-color: #004938 !important;}
.circle_layout.type2{background-color: #1ab162 !important;}
.circle_layout.type3{background-color: #bfffc2 !important;}
.circle_layout.type4{background-color: #009800 !important;}
.circle_layout.type5{background-color: #74fe39 !important;}
.circle_layout.type6{background-color: #003000 !important;}
.circle_layout.type7{background-color: #014b00 !important;}
.circle_layout.type8{background-color: #d6f559 !important;}
.circle_layout.type9{background-color: #008001 !important;}
.circle_layout.type10{background-color: #008048 !important;}
.circle_layout.type11{background-color: #81803f !important;}
.circle_layout.type12{background-color: #606a35 !important;}
.circle_layout.type13{background-color: #a6c917 !important;}
.circle_layout.type14{background-color: #618e0f !important;}
.circle_layout.type15{background-color: #46a203 !important;}
.circle_layout.type16{background-color: #96ab22 !important;}
.circle_layout.type17{background-color: #94b596 !important;}
.circle_layout.type18{background-color: #bcd871 !important;}
.circle_layout.type19{background-color: #cdffaa !important;}
.circle_layout.type20{background-color: #b0b893 !important;}
.circle_layout.type21{background-color: #dde168 !important;}
.circle_layout.type22{background-color: #11c2a5 !important;}
.circle_layout.type23{background-color: #00b0b0 !important;}
.circle_layout.type24{background-color: #b9f281 !important;}
.circle_layout.type25{background-color: #9befd7 !important;}
.circle_layout.type26{background-color: #67ff9a !important;}
.circle_layout.type27{background-color: #b2eb5e !important;}
.circle_layout.type28{background-color: #008081 !important;}
.circle_layout.type29{background-color: #0c7765 !important;}
.circle_layout.type30{background-color: #075432 !important;}
.circle_layout.type33, .circle_layout.type38{background-color: #0a6522 !important;}
.circle_layout.type31, .circle_layout.type36{background-color: #6ab31b !important;}
.circle_layout.type34, .circle_layout.type37{background-color: #b4dbaf !important;}
.circle_layout.type39{background-color: #b3b41a !important;}

.circle_layout.seedling{border: 2px solid limegreen; background-color: lime !important;}


.cutdown{
    position: absolute;
    left: -10px;
    top: -30px;
    width: 40px;
    height: 40px;
    color: #333;
}

.cutdown:after {
  display: inline-block;
  content: "\00d7";
  font-size: 40px;
  font-weight: 800;
}

.moderated{
    position: absolute;
    left: -10px;
    top: -30px;
    width: 40px;
    height: 40px;
    color: #F00;
}

.moderated:after {
  display: inline-block;
  content: "\00d7";
  font-size: 40px;
  font-weight: 800;
}


.wrap.flex{
    display: flex !important;
}

.navbar-brand{
    padding: 3px 15px !important;
}

.city-selector{
    width: 130px;
    margin-top: 10px;
    background-color: #333;
    color: white;
    border-color: #333;
}

.tree-info{
    width: 30%;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    position: absolute;
    padding: 20px;
    top: 50px;
    left: 0px;
    max-width: 400px;
    z-index: 9999;
}

@media(max-width:767px) {
    .tree-info{width: 100% !important;}
    .navbar-collapse .form-group {clear: both; height: 40px;}
}

.close{
    float: right;
}

.close-button{
    display: block;
    cursor: pointer;
    font-size: 12px;
}

.tree-height img{
    max-width: 100%;
}

.tree-variant{
    margin: 10px 0px;
    padding: 10px;
    border-radius: 10px;
    background-color: #eee;
    clear: both;
}

.tree-variant img{
    max-width: 25%;
    float: left;
    margin-right: 10px;
}

#finder-wrap select{
    margin-bottom: 10px;
}

#finder-wrap .select-blocks{
    min-height: 260px;
}

.quicktree{
    margin-bottom: 20px;
}

.footer span{padding-left: 30px;}
.footer span a{color: #101010; padding-right: 30px;}

.footer-finance{width: 50%; display: inline-block; font-size: 10px; margin-top: -10px;}
.footer-finance span{padding: 0px; width: 75%; display: inline-block;}

.filter-btn{margin-bottom: 0px; float: left;}

[for="tree-custom_treetype"], [for="tree-custom_condition"]{
    display: none;
}

#tree-custom_treetype{
    margin-top: 55px;
    margin-bottom: -35px;
}

.btn-balloon{width: 100%;}

.hr-narrow{
    margin-top: 10px;
    margin-bottom: 10px;
}



@media(max-width:767px) {
    .tree-variant img{ max-width: 100% !important;}
    .filter-btn {float: none !important;}
    .footer-finance{width: 100% !important; margin-top: 30px !important;}
    .footer-finance span{ width: 70% !important;}
    .footer-finance a{padding: 0 !important;}
    .footer span a{padding-right: 10px !important;}
}

@media(min-width:800px) {
    .tree-variant{
        max-width: 700px;
        min-height: 320px;
    }

    #factModal img{
        width: 100% !important;
        height: auto !important;
    }
}
