html,
body {
    height: 100%;
}

/* utils */
.margin-bottom-10 {
    margin-bottom: 10px;
}

.margin-bottom-20 {
    margin-bottom: 20px;
}

.margin-bottom-30 {
    margin-bottom: 30px;
}

.margin-top-10 {
    margin-top: 10px;
}

.margin-top-20 {
    margin-top: 20px;
}

.margin-top-25 {
    margin-top: 25px;
}

.margin-top-30 {
    margin-top: 30px;
}

.margin-left-10 {
    margin-left: 10px;
}

.margin-right-10 {
    margin-right: 10px;
}

.clear {
    clear: both;
}

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

.navbar {
    background-color: #f8f8f8;
    border-bottom-color: #e7e7e7;
}

.navbar h3 {
    margin: 0px;
    line-height: 50px;
}

.navbar-brand {
    padding: 10px;
}

.nav > li > a {
    border-left: 5px solid transparent;
}

.btn {
    font-size: 12px;
}

.btn-lg {
    font-size: 18px;
}

.nav > li > a:hover, .nav > li > a:focus {
    background-color: #eee;
}

.navbar .active > a {
    background-color: #eee;
    border-left-color: #337AB7;
}

.navbar-toggle {
    background-color: #aaa;
}

.navbar-toggle .icon-bar {
    background-color: #fff;
}

#sidebar {
    background-color: #f8f8f8;
    border: 1px solid #e7e7e7;
}

#sidebar h4 {
    padding: 15px 20px;
    margin: 0px;
    border-bottom: 1px solid #e7e7e7;
}

.sidebar-nav .nav a {
    padding-left: 40px;
}

.sidebar-nav li a {
    border-bottom: 1px solid #e7e7e7;
}

#vehicle-calendar td {
    padding: 0px;
    border: 4px solid black;
}

#vehicle-calendar > tbody > tr:first-child > td:first-child {
    border: 0px solid transparent;
}

#vehicle-calendar > tbody > tr:first-child > td:nth-child(2) {
    border: 0px solid transparent;
    padding-left: 4px;
}

#vehicle-calendar td > div {
    border-bottom: 1px solid #333;
}

#vehicle-calendar td > div:last-child {
    border-bottom: 0px solid transparent;
}

.notify-icon > button {
    margin-right: 15px;
    padding: 6px 8px 2px 8px;
    position: relative;
}

.notify-icon > button > .glyphicon-bell {
    font-size: 20px;
}

.notify-icon > button > .badge {
    position: absolute;
    padding: 2px 5px;
    background-color: #dc0606;
    color: #fff;
    font-size: 85%;
    top: 0;
    right: 0;
}

.notification-bar {
    position: relative;
    display: none;
}
.notification-bar > .list-group {
    position: absolute;
    margin-top: -30px;
    z-index: 1000;
}

.link {
    cursor: pointer;
}

.disabled-overlay {
    cursor: help;
    background: rgba(200, 200, 200, 0.5);
}

.hover-buttons .btn {
    opacity: 0.1;
    transition: all 0.2s;
}

.hover-buttons:hover .btn {
    opacity: 1;
}

.modal-xl {
    width: 80%;
}

.glyphicon-flipped {
    transform: scaleX(-1);
}

@media (min-width: 768px) {
    #siderbar-locker {
        position: absolute;
        top: 0px;
        right: 0px;
    }

    #sidebar {
        margin-top: 20px; /* 20px for header margin, 1px for border */
        width: 270px;
        border: 10px solid #eee;
        box-shadow: 2px 0px 3px #888;
        position: absolute;
        z-index: 1;
    }

    .sidebar-floating {
        left: -220px;
        transition: all 0.5s;
    }

    #sidebar.sidebar-floating:hover {
        left: 0px;
    }

    .content-wrapper {
        margin-left: 50px;
        padding: 0px 30px;
    }

    .content-wrapper.sidebar-pinned {
        margin-left: 270px;
    }

    .notification-bar > .list-group {
        right: 15px;
        max-width: 300px;
    }
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-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";
}

.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;
}

.date-input {
    max-width: 85px;
}

.no-break {
    white-space: nowrap;
}

.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.table > thead > tr > th.align-middle,
.table > tbody > tr > th.align-middle,
.table > tfoot > tr > th.align-middle,
.table > thead > tr > td.align-middle,
.table > tbody > tr > td.align-middle,
.table > tfoot > tr > td.align-middle {
    vertical-align: middle;
}

.margin-top {
    margin-top: 15px;
}

hr.primary {
    background-color: #337ab7;
    height: 3px;
}

.faded {
    opacity: 0.8;
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    max-width: 25em;
    text-overflow: ellipsis;
}

.calendar-link::before {
    float: right;
    font-family: "Glyphicons Halflings";
    content: "\e066";
}

@media print {
    h1 {
        font-size: 24px;
        margin-top: 5px;
    }

    h2 {
        font-size: 20px;
        margin-top: 10px;
    }

    a[href]:after {
        content: "";
    }

    .wrap > .container {
        padding: 0;
    }

    .content-wrapper {
        margin: 0px 20px;
        padding: 0px 20px;
    }
    
    .content-wrapper.sidebar-pinned {
        margin: 0 20px;
    }

    #sidebar {
        display: none;
    }
    
    .avoid-page-break {
        page-break-inside: avoid;
    }

    .glyphicon, .breadcrumb, .btn, .filters, .pagination, .summary, footer, h3.alert {
        display: none;
    }

    .table-condensed-print {
        margin-bottom: 5px;
    }

    .table-condensed-print > tbody > tr > td,
    .table-condensed-print > tbody > tr > th,
    .table-condensed-print > tfoot > tr > td,
    .table-condensed-print > tfoot > tr > th,
    .table-condensed-print > thead > tr > td,
    .table-condensed-print > thead > tr > th {
        padding: 2px;
        font-size: 12px;
    }
    .stop-marker {
        background: #fff !important;
    }
}

.stat-label {
    margin: 15px 0;
    font-size: 25px;
}

.tier-current-status {
    font-weight: bold;
    font-size: 16px;
}

td.align-center,
th.align-center {
    text-align: center;
}

.btn-margin {
    margin-bottom: 25px;
}

.kv-page-summary, .kv-table-footer {
    border-top: 4px double #ddd;
    font-weight: 700;
}

.table > tbody > tr.warning > td, .table > tbody > tr.warning > th,
.table > tbody > tr > td.warning, .table > tbody > tr > th.warning,
.table > tfoot > tr.warning > td, .table > tfoot > tr.warning > th,
.table > tfoot > tr > td.warning, .table > tfoot > tr > th.warning,
.table > thead > tr.warning > td, .table > thead > tr.warning > th,
.table > thead > tr > td.warning, .table > thead > tr > th.warning {
    background-color: #fcf8e3;
}
.table > tbody > tr.gray > td, .table > tbody > tr.gray > th,
.table > tbody > tr > td.gray, .table > tbody > tr > th.gray,
.table > tfoot > tr.gray > td, .table > tfoot > tr.gray > th,
.table > tfoot > tr > td.gray, .table > tfoot > tr > th.gray,
.table > thead > tr.gray > td, .table > thead > tr.gray > th,
.table > thead > tr > td.gray, .table > thead > tr > th.gray {
    background-color: #C1C1C1;
}

.label-gray {
    background-color: #C1C1C1;
}

.label-purple {
    background: #ba3eef;
}

.table > thead > tr > td.purple,
.table > tbody > tr > td.purple,
.table > tfoot > tr > td.purple,
.table > thead > tr > th.purple,
.table > tbody > tr > th.purple,
.table > tfoot > tr > th.purple,
.table > thead > tr.purple > td,
.table > tbody > tr.purple > td,
.table > tfoot > tr.purple > td,
.table > thead > tr.purple > th,
.table > tbody > tr.purple > th,
.table > tfoot > tr.purple > th {
    background-color: #e5b4f9;
}

.form-group.form-inline-group {
    margin-left: 10px;
    margin-top: -10px;
}
div.danger {
    background-color: #f2dede;
}
div.warning {
    background-color: #fcf8e3;
}
div.success {
    background-color: #dff0d8;
}
div.info {
    background-color: #d9edf7;
}
.kv-grid-group {
    font-weight: bold;
    text-transform: uppercase;
}
.maintenance-plan-row {
    font-size: 12px;
}
.datepicker > div {
    display: block;
}
.stop-marker {
    border: 1px solid #394e81;
    border-radius: 0px 3px 3px 0px;
    background-color: white;
    color: #000;
    font-size: 11px;
    padding: 0px 4px 0px 4px;
}

.table > tbody > tr.odd {
    background-color: #eaf6ff;
}

.table > tbody > tr.even {
    background-color: #fff;
}

#trips tr:first-child .decrease-sort {
    visibility: hidden;
}
#trips tr:last-child .increase-sort {
    visibility: hidden;
}