html,
body {
    height: 100%;
}

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

.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: "\e151";
}

a.desc:after {
    content: "\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 td {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.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 {
    padding: 8px;
}

@media(max-width:768px) {
	.nav li > form {
	    padding: 3px;
	}
}

.nav > li > form > button:hover {
    text-decoration: none;
}
.black-bg{
    background: radial-gradient(circle at 1.98% 40.96%,#00c6ff,transparent 100%),
    radial-gradient(circle at 98.02% 52.04%,#0072ff,transparent 100%),
    radial-gradient(circle at 50% 50%,#0cc285,#0cc285 100%);
}
#main-content{
    min-height: calc(100vh - 38px);
}
#sidebar > ul > li.active > ul.sub, #sidebar > ul > li > ul.sub > li > a{
    padding-left: 10px;
    color: white;
}
.mt{
    margin-top: 0;
}
.test-gitter{
    background-color: rgba(66, 74, 93, 0.7);
    border-radius: 10px;
}
@media(max-width: 768px){
    #sidebar > ul > li > a{
        height: auto;
    }
}
ul.sidebar-menu li ul.sub li a {
    font-size: 12px;
    padding: 10px 0;
     line-height: normal;
     height: auto;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
    color: #aeb2b7;
}

.logout{
    color: #f2f2f2;
    font-size: 12px;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    border: 1px solid #64c3c2 !important;
    padding: 5px 15px;
    margin-right: 15px;
    background: #68dff0;
    margin-top: 7px;
}
#sidebar{
    padding-top: 80px;
}
ul.sidebar-menu{
    margin-top: 10px;
}

/*Косяк раздутой таблицы*/
.table-responsive{
    /*max-width: 740px;*/
}
.table .table{
    width: 100%;
    table-layout: fixed;
}

.kv-child-table{
    table-layout: fixed;
    width: 100%;
}

.kv-child-table th{
    word-wrap: break-word;
    white-space: normal;
    text-align: left !important;
    table-layout:fixed;
}
.kv-child-table-row th {
    border-right: 1px #ddd solid;
    padding: 8px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.kv-child-table-row td {
    border-right: 1px #ddd solid;
    padding: 8px;
}
.kv-child-table-row td:last-child,.kv-child-table-row th:last-child{
    border-right:none;
}
pre{
    white-space: normal;
}
.grid-view td{
    white-space: normal;
}
td.kv-child-table-cell{
    padding: 0 !important;
}

/*Fix sidebar menu*/

ul.sidebar-menu li.active a, ul.sidebar-menu li a:hover, ul.sidebar-menu li a:focus{
    background: #68dff0;
    color: #fff;
    display: block;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
@media (min-width: 737px) {
    .kv-grid-table tr, .kv-grid-table th, .kv-grid-table thead, .kv-grid-table tbody {
        /*display: contents;*/
    }
}


/*Fix style mobile*/

@media (max-width: 736px) {
    .wrapper{
        margin-top: 100px;
    }
    .table th{
        word-wrap: break-word;
    }

    .kv-grid-table{
        /*table-layout: fixed;*/
        display: block;
    }
    /*.kv-grid-table tr,.kv-grid-table th,.kv-grid-table thead,.kv-grid-table tbody{*/
        /*display: block;*/
    /*}*/
    td,th{
        white-space: normal !important;
    }
    td{
        font-size: 1em !important;
    }
    th{
        font-size: 1.2em !important;
    }
    ul{
        padding-left: 0;
    }

    .kv-grid-table tr, .kv-grid-table th, .kv-grid-table thead, .kv-grid-table tbody {
        /*display: contents;*/
    }
}

@media (max-width: 414px){
    .wrapper{
        margin-top: 100px;
    }
    .table th{
        word-wrap: break-word;
    }

    .kv-grid-table{
        /*table-layout: fixed;*/
        display: block;
    }
    .kv-grid-table tr,.kv-grid-table th,.kv-grid-table thead,.kv-grid-table tbody{
        display: block;
    }
    td,th{
        white-space: normal !important;
    }
    td{
        font-size: 1em !important;
    }
    th{
        font-size: 1.2em !important;
    }
    ul{
        padding-left: 0;
    }
}

/*style sidebar news*/
.ds{
    padding: 20px;
}
.ds p > muted{
    display: inline-block;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.ds a{
    font-size: 1.2em;
}

/*news*/
.main-post{
    margin: 1em 0;
}
.main-post .main-post__body{
    /*min-height: 330px;*/
}

.main-post .main-post__body .heading{
    margin-top: 0.5em;
    text-align: left;
    font-size: 1.5em;
    height: 65px;
    overflow: hidden;
}
.main-post .main-post__body .desc{
    height: 100px;
    margin: 0.5em 0px;
    background-color: #fff;
}
/*UI component*/
.card-box{
    background-color: #fff;
}
.pupil-list{
    padding: 0;
}
.pupil-card{
    display: flex;
    margin: 15px 0;
    align-items: center;
    background-color: #fff;
    border-radius: 40px 10px;
}
.pupil-avatar{
    width: 100%;
    min-width: 120px;
    height: 120px;
    margin-left: -15px;
    border-radius: 40px 10px;
    object-fit: cover;
}
.pupil-name{
    font-size: 1.1em;
}
.inbox .inbox-header{
    display: flex;
    margin: 0 15px;
    margin-bottom: 5px;
    padding: 0 10px;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-top: 2px solid #00c6fd;
}
.inbox .inbox-header h3{
    display: inline-block;
    font-size: 1em;
    text-transform: uppercase;
}
.inbox-controls{
    background-color: #fff;
    padding: 0 10px;
    text-align: right;
}
.inbox-list{
    padding: 0;
    padding-top: 10px;
    background-color: #fff;
}
.inbox-list li{
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-top: 1px solid #f4f4f4;
    border-bottom: 1px solid #f4f4f4;
}
.inbox-list li:nth-child(2n+1){
    background-color: #f9f9f9;
}
.mail-message{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mail-delete{
    font-size: 1.3em;
    color: #dd4b39;
}
.chat-direct-header{
    padding: 10px;
    background-color: #68dff0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    color: #000;
}
.chat-direct-header__title{
    margin: 0;
    font-size: 1.5em;
    color: white;
}
.chat-direct-list{
    height:50vh;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 5px 10px;
    background-color: #fff;
}
.chat-direct-message{
    padding: 5px;
    margin: 1.2em 0;
    list-style: none;
}
.chat-direct-message--no-read{
    padding: 5px;
    margin: 1.2em 0;
    list-style: none;
    background-color: rgba(61, 141, 188, 0.08);
}
.chat-direct-message-info{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.chat-direct-message-info .author{
    font-size: 0.9em;
    font-weight: bold;
    color: #000;
}
.chat-direct-message-info .date{
    font-size: 0.8em;
    color: #999;
    font-style: italic;
}
.chat-direct-message-text{
    position: relative;
    border:1px solid;
    border-radius: 5px;
    padding: 5px 10px;
    margin-top: 2px;
    margin-bottom: 10px;
    font-size: 1.2em;
}
.chat-direct-message-text.sender{
    /*color: #000;*/
    color: #444;
    background: #d2d6de;
    border-color:#d2d6de;
    -ms-word-wrap:break-word;
    word-wrap:break-word;
}
.chat-direct-message-text.sender:after{
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #d2d6de;
    position: absolute;
    transform: rotate(-25deg);
    left: 1px;
    bottom: -3px;
}
.chat-direct-message-text.recipient{
    background: #00c0ef;
    border-color: #00c0ef;
    color: #fff;
    /*color: white;*/
}
.chat-direct-message-text.recipient:after{
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #00c0ef;
    position: absolute;
    transform: rotate(25deg);
    right: 1px;
    bottom: -3px;
}
.create-message-group{
    display: flex;
}
.create-message-group .field-messages-text{
    width: 100%;
}
.create-message-group .field-messages-text>textarea{
    resize: none;
    height: 60px;
}
.create-message-group .send-message{
    height: 60px;
    width: 60px;
}

.main-post__thubmail img.img-responsive{
    width: 200px;
    height: 140px;
    object-fit: cover;
    object-position: center;
}
.post-view__image{
    display: inline-block;
    width: 200px;
    height: 200px !important;
}
.post-view__image a{
    width: 100%;
    height: 100%;
}
.post-view__image a>img{
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}
.inbox__search-recepient{
    width: 100%;
    display: inline-block;
    padding: 10px 15px;
}
.inbox .box-body{
    max-height: 300px;
    overflow-y: scroll;
    overflow-x: hidden;
}

/*bootsrap fix*/
.label{
    font-size: 1em;
}
.btn-primary {
    background-color: #0053a8;
    border-color: #0053a8;
}
.bg-primary{
    background-color: #0053a8;
}

/*-------------*/
.pupil__metainfo{
    background-color: #fff;
    padding: 10px;
    font-size: 15px;
}
.pupil__metainfo dt{
    display: inline-block;
    margin-right: 5px;
    text-transform: uppercase;
}
.pupil__metainfo dd{
    display: inline-block;
    margin: 0 5px;
}
.pupil__category a{
    margin: 1em 0px;
    display: inline-block;
    width: 100%;
    padding: 20px;
    background-color: #0053a8;
    color: #fff;
    text-transform: uppercase;
    font-size: 15px;
    text-align: center;
    border-radius: 25px;
    border:2px solid #0053a8;
    transition: all linear 0.4s;
}
.pupil__category a:hover{
    border:2px solid #f7de5e
}
.pupil-graph__setinterval{}
.pupil-graph__setinterval .title{
    color: #000;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: bold;
    margin-right: 10px;
}
.pupil-graph__setinterval .setinterval__btn{
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 25px;
    color: #fff;
    background-color: #0053a8;
}
.ds .details{
    width: 190px;
}

.main-post__thubmail .heading {
    position: absolute;
    bottom: 0;
    font-size: 1.5em;
    padding: 5px;
    color: white;
    background-color: rgba(0, 0, 0, 0.58);
    display: inline;
}
.main-post__thubmail {
    position: relative;
    min-height: 200px;
    /* height: 100%; */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
.main-post__thubmail img.img-responsive{
    display: block;
    width: 200px;
    height: 140px;
    object-fit: contain;
}
.main-post .main-post__body .desc{
    height: 250px;
    background-color: #fff;
    padding: 0.5em 0.5em;
    font-size: 16px;

    -webkit-box-shadow: 0 4px 10px -5px #030303;
    box-shadow: 0 4px 10px -5px #030303;
}
a.desc__link{
    display: block;
}
.btn-center{
    text-align: center;
}
#addImage{
    display: none;
}
.btn-add{
    background-color: #2ecc71;
    color: white;
}
.sidebar-toggle-box{
    margin: 8px 0;
}
.sidebar-toggle-box img{
    width: 40px;
    height: 40px;
}
.post__content{
    font-size: 14px;
}
#attachFile{
    display: block;
    font-size: 14px;
    margin: 10px 0;
    font-weight: lighter;
}
.sidebar-toggle-box .fa-bars{
    line-height: 42px;
}