.clear-fix {
    clear: both;
}
html,
body {
    height: 100%;
}

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

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

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

footer .pull-right {
    padding-top: 10px;
}

.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 (max-width: 400px) {
    .navbar > .container .navbar-brand {
        max-width: 200px;
    }
    .navbar-toggle {
        margin-top: 16px;
    }
    .navbar-header {
        padding-bottom: 5px;
    }
    .form-control-sm {
        height: 30px;
    }
}

.nav-subjects > li {
    border: 1px solid #d5d5d5;
    margin-top: 5px;
    border-radius: 10px;
}
.nav-subjects > li > a {
    border-radius: 10px;
}
@media (min-width: 400px) {
    .form-control-sm {
        height: 23px;
    }
}
.input-yellow {
    background: #fffba3;
}

.input-red {
    border: 2px solid red;
}
.input-green {
    border: 1px solid green;
}
.input-saved {
    background: #cbffb8;
}

.input-error {
    background: #ffdcdc;
}

.red {
    color: red;
}

.table-admin a, .table-admin img[itemid], .table-admin button {
    padding: 0 5px;
    margin: 0 10px;
    cursor: pointer;
}
.table-admin tr.green {
    background: #dfffd6;
}

.table-subgroups thead * {
    border: none !important;
}

.table-admin tr.selected {
    background: #d3d0ff;
}

.btn-add, .btn-edit, .btn-remove, .btn-academ, .btn-graduate {
    margin: 20px 0;
    margin-right: 20px;
}

#edit-form {
    max-width: 400px;
}

#edit-form input {
    margin-bottom: 20px;
}

.grid-filter {
    width: 100%;
    height: 25px;
    color: #000;
    border-radius: 5px;
    padding: 0 5px;
}

.table-pupils thead th, .table-pupils thead td {
    border: none !important;
}
.table-parents thead th, .table-parents thead td {
    border: none !important;
}

.table-pupils thead th:first-child {
    vertical-align: middle !important;
}

.graduate {
    display: none;
}
.modal-form {
    text-align: right;
}

.modal-form input, .modal-form select {
    width: 300px;
    height: 25px;
}

.inline-block * {
    display: inline-block;
}

select#period, select#quarter, select#semestr, input#date {
    width: 200px;
}

.mark-input-small {
    width: 100px;
}

#table-evaluations .mark-cell {
    font-weight: bold;
    font-size: 15px;
}

#pupils-list {
    text-align: left;
}

#pupils-list input {
    display: inline-block;
    width: 30px;
    height: 13px;
}

.nav-lessons {
    margin: auto;
    width: 400px !important;
}
.nav-lessons > li {
    border: 1px solid #d5d5d5;
    margin-top: 5px;
    border-radius: 10px;
}
.nav-lessons > li > a {
    border-radius: 10px;
}

.timetable-clock {
    width: 20px;
}

.timetable-item {
    border: 1px solid #7b7b7b;
    position: relative;
    box-sizing: border-box;
    padding: 10px;
    margin: 20px 5px;
}