﻿/*Form groups and controls*/
.form-control:focus {
    border-color: white;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: #337ab7 0px 0px 7px;
}

    .form-control:focus + .input-group-addon {
        box-shadow: #337ab7 3px 0px 8px;
    }

.onoffswitch {
    position: relative;
    width: 70px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.onoffswitch-checkbox {
    display: none;
}

.onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #C2BEBE;
    border-radius: 20px;
}

.onoffswitch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

    .onoffswitch-inner:before, .onoffswitch-inner:after {
        display: block;
        float: left;
        width: 50%;
        height: 30px;
        padding: 0;
        line-height: 30px;
        font-size: 14px;
        color: white;
        font-family: Trebuchet, Arial, sans-serif;
        font-weight: bold;
        box-sizing: border-box;
    }

    .onoffswitch-inner:before {
        content: "YES";
        padding-left: 10px;
        background-color: #1E2E3E;
        color: #FFFFFF;
    }

    .onoffswitch-inner:after {
        content: "NO";
        padding-right: 10px;
        background-color: #EEEEEE;
        color: #999999;
        text-align: right;
    }

.onoffswitch-switch {
    display: block;
    width: 18px;
    margin: 6px;
    background: #FAF2F2;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 56px;
    border: 2px solid #C2BEBE;
    border-radius: 20px;
    transition: all 0.3s ease-in 0s;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px;
}

.input-group-addon {
    color: white;
    background-color: #146794;
}

/*Custom panels and overwrites*/
.panel-default {
    background-color: none;
    border: 1px solid gainsboro;
}

    .panel-default > .panel-heading {
        background: whitesmoke;
        color: #505050;
    }

/*Modals and modal components*/
.modal-footer p {
    font-size: 18px !important;
    margin-bottom: 0px;
    font-weight: 700;
}

@media (max-width : 767px) {
    .modal-mobile-content {
        height: auto;
        min-height: 100%;
        border-radius: 0;
    }
    
    .modal-dialog-mobile {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
}

.modal-title {
    /*font-family: Arial, Helvetica, sans-serif;*/
    color: white;
}

body.modal-open {
    overflow: visible;
}

/*Standalone components*/
/*--------------------------------------------------------------------------------------------------*/
/*Sticky header*/
#appHeader {
    background: white;
    z-index: 1;
}

/*Defining sub-header class*/
h1.sub-header {
    color: pink;
    margin-bottom: 15px;
}

h2.sub-header {
    color: pink;
    margin-bottom: 15px;
}

h3.sub-header {
    margin-bottom: 15px;
}

h4.sub-header {
    margin-bottom: 10px;
}

h5.sub-header {
    margin-bottom: 10px;
}

h6.sub-header {
    margin-bottom: 5px;
}

.ajax-loader {
    display: inline-block;
    position: relative;
    height: 15px;
    width: 15px;
    background-image: url('../images/ajax-loader.gif');
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: center center;
}

/*Accessibility rules for DataTables*/
.dataTables_wrapper .dataTables_paginate .paginate_button.current:focus {
    color: #333 !important;
    border: 1px solid #979797;
    background-color: white;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));
    background: -webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);
    background: -moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);
    background: -ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);
    background: -o-linear-gradient(top, #fff 0%, #dcdcdc 100%);
    background: linear-gradient(to bottom, #fff 0%, #dcdcdc 100%);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:focus {
    cursor: default;
    color: #666 !important;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
    color: white !important;
    border: 1px solid #111;
    background-color: #585858;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));
    background: -webkit-linear-gradient(top, #585858 0%, #111 100%);
    background: -moz-linear-gradient(top, #585858 0%, #111 100%);
    background: -ms-linear-gradient(top, #585858 0%, #111 100%);
    background: -o-linear-gradient(top, #585858 0%, #111 100%);
    background: linear-gradient(to bottom, #585858 0%, #111 100%);
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: white;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: #337ab7 0px 0px 7px;
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: white;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: #337ab7 0px 0px 7px;
}

table.dataTable thead th:focus {
    border-color: white;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: inset #dcdcdc 0px 0px 7px;
}

@media print {
    /* Override Bootstrap to hide href on print */
    a[href]:after {
        content: none !important;
    }

    /* hide body and only display modal when open */
    body.modal-open *, body.gsc-overflow-hidden * {
        visibility: hidden;
    }

    .modal.in *, body.gsc-overflow-hidden #___gcse_1 * {
        visibility: visible;
    }

    .popover.in, .popover.in * {
        visibility: hidden !important;
    }

    button, .btn {
        display: none !important;
    }

    .body-content {
        padding: 0 !important;
        margin: 0 !important;
    }
}