﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

th, td {
    font-size: 0.9rem !important;
    vertical-align: top !important;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

.card-linking, .link {
    cursor: pointer;
    cursor: hand;
}

.navbar{
    height: 40px;
}

.navbar-brand {
    font-size: 1rem !important;
}

.breadcrumb {
    margin-top: 0px !important;
    font-size: 0.9rem !important;
}

.full-width {
    width: 100% !important;
    max-width: 100% !important;
}

.control-label {
    font-size: 0.9rem !important;
    padding-top: 5px;
}

.form-control {
    font-size: 0.9rem !important;
}

.btn {
    font-size: 0.9rem !important;
}

/* table sorting */
.dataTables_wrapper .dataTables_info {
    padding-bottom: 10px;
    vertical-align: text-bottom;
    font-size: 0.8rem !important;
}

.dataTables_wrapper .dataTables_length {
    vertical-align: text-top;
    white-space: nowrap;
    display: inline-block;
    font-size: 0.8rem !important;
}

    .dataTables_wrapper .dataTables_length label {
        font-weight: normal;
        display: inline-block;
        position: relative;
        top: -15px;
        font-size: 0.8rem !important;
    }

.dataTables_wrapper .dataTables_info {
    display: inline-block;
    width: 27%;
    font-size: 0.8rem !important;
}

.dataTables_wrapper .dataTables_length {
    display: inline-block;
    width: 27%;
    font-size: 0.8rem !important;
}

.dataTables_wrapper .dataTables_paginate {
    display: inline-block;
    width: 42%;
    font-size: 0.8rem !important;
}

    .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate ul li a {
        font-size: 0.8rem !important;
    }

table.dataTable thead > tr > th.sorting_asc, table.dataTable thead > tr > th.sorting_desc, table.dataTable thead > tr > th.sorting, table.dataTable thead > tr > td.sorting_asc, table.dataTable thead > tr > td.sorting_desc, table.dataTable thead > tr > td.sorting {
    padding-right: 30px;
}

table.dataTable thead > tr > th:active, table.dataTable thead > tr > td:active {
    outline: none;
}

table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc, table.dataTable thead .sorting_asc_disabled, table.dataTable thead .sorting_desc_disabled {
    cursor: pointer; /*position:relative;*/
}

    table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_desc:after, table.dataTable thead .sorting_asc_disabled:after, table.dataTable thead .sorting_desc_disabled:after {
        font-family: 'Glyphicons Halflings';
        font-size: 85%;
        position: relative;
        bottom: 9px;
        text-align: right;
        display: block;
        opacity: 0.7;
        margin-right: -25px;
        margin-top: -10px;
        margin-bottom: -9px !important;
    }

    table.dataTable thead .sorting:after {
        opacity: 0.25;
        content: "\e150";
    }

    table.dataTable thead .sorting_asc:after {
        content: "\e155";
    }

    table.dataTable thead .sorting_desc:after {
        content: "\e156";
    }

    table.dataTable thead .sorting_asc_disabled:after, table.dataTable thead .sorting_desc_disabled:after {
        color: #eee;
    }

div.dataTables_wrapper div.dataTables_info {
    padding-top: 8px;
}

div.dataTables_wrapper div.dataTables_paginate {
    margin: 0;
    white-space: nowrap;
    text-align: right;
}

    div.dataTables_wrapper div.dataTables_paginate ul.pagination {
        margin: 2px 0;
        white-space: nowrap;
    }

div.dataTables_wrapper li.paginate_button a {
    color: #183a76
}

div.dataTables_wrapper li.disabled a {
    color: #333;
    background-color: #fafafa
}

div.dataTables_wrapper li.paginate_button a:hover, div.dataTables_wrapper li.paginate_button a:active, div.dataTables_wrapper li.paginate_button a:focus {
    color: #fff;
    text-decoration: underline
}

div.dataTables_wrapper th.sorting:hover, div.dataTables_wrapper th.sorting:active, div.dataTables_wrapper th.sorting:focus {
    text-decoration: underline
}

.dataTables_wrapper .pagination .active {
    background-color: white;
}

    .dataTables_wrapper .pagination .active a {
        background-color: #d9f1fd;
    }

@media screen and (max-width: 767px) {
    div.dataTables_wrapper div.dataTables_length, div.dataTables_wrapper div.dataTables_info, div.dataTables_wrapper div.dataTables_paginate {
        text-align: center;
    }

    .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_paginate {
        display: block;
        width: auto;
    }

        .dataTables_wrapper .dataTables_length label {
            font-weight: normal;
            display: inline-block;
            position: relative;
            top: 0;
            white-space: nowrap;
            text-align: center;
        }

        .dataTables_wrapper .dataTables_length select {
            display: inline-block;
        }
}

/* Apply responsive tables */
@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {
    /* Force table to not be like tables anymore */
    table.responsive-table, table.responsive-table thead, table.responsive-table tbody, table.responsive-table th, table.responsive-table td, table.responsive-table tr {
        display: block;
    }

        table.responsive-table th {
            display: block;
        }

        /* Hide table headers (but not display: none;, for accessibility) */
        table.responsive-table thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

    .dataTables_wrapper table.responsive-table thead tr {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
    }

        .dataTables_wrapper table.responsive-table thead tr th.no-sort {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

        .dataTables_wrapper table.responsive-table thead tr th.sorting, .dataTables_wrapper table.responsive-table thead tr th.sorting_asc, .dataTables_wrapper table.responsive-table thead tr th.sorting_desc {
            visibility: visible;
            display: block;
            width: 100% !important;
            border-left: 0;
        }

            .dataTables_wrapper table.responsive-table thead tr th.sorting::before, .dataTables_wrapper table.responsive-table thead tr th.sorting_asc::before, .dataTables_wrapper table.responsive-table thead tr th.sorting_desc::before {
                content: "Sort by "
            }

    table.responsive-table tr {
        border: 1px solid #ccc !important;
    }

    /* Behave  like a "row" */
    table.responsive-table td {
        border: none !important;
        border-bottom: 1px solid #eee !important;
        position: relative;
        padding-left: 45% !important;
        background-color: transparent !important;
        text-align: left
    }

    table.responsive-table a.btn-link {
        text-align: left;
    }

    table.responsive-table td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
    }

    .advanced-search-btn {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
}

.input-sm {
    font-size: 0.8rem !important;
}

.sorting_disabled {
    vertical-align: top !important;
}

.sorting {
    vertical-align: top !important;
}

.green-tick {
    color: green;
    margin-bottom: -10px;
}

.red-cross {
    color: red;
    margin-bottom: -10px;
}