﻿body {
    padding-top: 0px;
    padding-bottom: 0px;
    /* Helvetica Regular 13px */
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-weight: normal; 
    font-size: 13px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* Set padding to display errors that occur during databinding */
.padding-error {
    padding-top: 20px;
}

/* Styles for validation helpers */
.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors,
.validationMessage {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}

h2, .h2 {
    font-size: 24px;
    font-weight: bold;
}

@media only screen and (max-width: 767px) {
    .nofloat {
        float: none;
        padding: 10px 15px;
    }
}

#titlebar {
    background: rgb(18, 67, 126); /* Dark Blue (sampled from image)*/
    height: 137px; /* 104px (img) + 33px (navbar) */
    width: 100%;
    margin: 0px;
}
    #titlebar img {
        margin: 0px;
        float: right;
        height: 104px;
    }

    #titlebar h1 {
        /* Reset */
        margin: 0px;
        padding: 0px;
        /* Block */
        height: 104px;
        line-height: 104px;
        padding-left: 56px;
        float: left;
        /* Text */
        color: white;
        font-weight: 100; /* Helvetica Light */
        font-size: 36px;
        white-space: nowrap;
        overflow: hidden;
    }

.toplevel-menu {
    /* Reset */
    padding: 0px;
    margin: 0px;
    clear: both;
    /* Block */
    background: rgb(227, 227, 225);
    height: 33px;
    /* Text */
    font-size: 14px;
    color: rgb(99, 99, 97);
    text-align: center;
}
    
    .toplevel-menu li {
        /* Fix display: inline-block for IE7 */
        zoom: 1;
        *display: inline;
        /* End of IE7 Fix */
        display: inline-block;
        height: 33px;
        line-height: 33px;
        margin: 0px;
        padding: 0px 20px 0px 20px;
    }

        .toplevel-menu li.selected {
            /* Colour Same as background on page header*/
            border-bottom: 3px solid rgb(18, 67, 126); 
            color: rgb(18, 67, 126);   
        }

        .toplevel-menu li a {
            /* Reset */
            color: inherit;
            text-decoration: none;
        }

footer {
    width: 100%;
    text-align: right;
    clear: both;
    height: 23px;
    background: rgb(13, 59, 109);
    color: rgb(191, 191, 191);
    border-top: 1px solid rgb(23, 90, 169);
}

    footer p {
        margin: 0px;
        max-height: 18px;
        padding: 3px 33px 3px 33px;
        font-size: 11px;
    }
        footer p a {
            color: rgb(231, 231, 231);
        }   
            footer p a:hover,
            footer p a:focus,
            footer p a:active {
                color: rgb(255, 255, 255);
            }   

        footer p.copyright {
            float: left;
        }

        footer p.menu {
            float: right;
        }


#main_panel,
#sidebar {
    float: left;
    height: 100%;
}

#main_panel {
    padding-left: 60px;
    width: 90%;     /* Fill the width if it is small as the article will be underneath */
    padding-left: 20px;
    padding-right: 20px;
}

#sidebar {
    color: rgb(96, 96, 96);
    float: left;
}

    #sidebar #sidebar_menu {
        overflow: hidden;
        padding-left: 20px;
        padding-right: 20px;
    }

    #sidebar.collapsed {
        padding-left: 33px;
        width: 0px !important;
    }

        #sidebar.collapsed #sidebar_menu {
            /* try to hide everything, if we use display: none then the border wont be draggable... */
            padding: 0px;
            margin: 0px;
            color: transparent;
            background-color: transparent;
        }

    #sidebar .ui-resizable-e {
        /* put the resizable handle directly on the border and make it slightly thinner so it doesnt overlap the buttons so badly*/
        width: 3px;
        right: -1.5px;
    }

    #sidebar h2 {
        margin-top: 17px;
        font-size: 18px;
        margin-bottom: 17px;
        /* Break up the word when the sidebar gets too small. */
        word-wrap: break-word;
        /* Prevent each character from occupying its own line by limiting the lines to 2 */
        max-height: 2em;
        overflow: hidden;
    }

    #sidebar a {
        /* Reset */
        color: inherit;
    }

        #sidebar a:hover {
            text-decoration: none;
        }

    #sidebar ul {
        list-style: none;
        padding-left: 0px;
    }

        #sidebar div.top > ul,  /* Indent the top-level ul (so that the arrows are visible/in the correct place (as if it was a normal list) */
        #sidebar li.selected,
        #sidebar ul.indented li {
            padding-left: 5mm;
        }

        #sidebar ul li {
            min-height: 14px;
            line-height: 14px;
            margin-top: 10px;
            font-size: 14px;
        }

        /* Indent and make bold the currently selected item */
        #sidebar ul li.selected {
            font-weight: bold;
        }

        /* Un-bold the subsequent lists */
        #sidebar ul li.selected ul {
            font-weight: normal;
        }
        
    /* Default arrow / list icon */
    #sidebar a.toggle_expandable {
        background-image: url('Images/list-bullet-grey.png');
        background-repeat: no-repeat;
        background-position: center;
        width: 10px;
        height: 10px;
        float: left;
        margin: 2px;
        margin-left: -3.5mm;
    }
        /* Use the downward facing arrow for expanded lists */
        #sidebar a.toggle_expandable.expanded {
            background-image: url('Images/list-bullet-grey-expanded.png');
        }

.icon {
    width: 22px;
    height: 22px;
    overflow: hidden;
    background: none;
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    color: transparent;
    display: inline-block;
    border: 0 none;
}

.article {
    margin-top: 20px;
}

    .article .rightFloat {
        float: right;
        width: 25%;
    }

    .article .leftFloatImage {
        float: left;
        margin: 5px;
    }

    .article .clearBoth {
        clear: both;
    }

.input-group.input-group-search {
    height: 27px;
    border-radius: 14px;
    border: 1px solid rgb(213, 213, 213);
    max-width: 203px;
    margin-bottom: 16px;
}
    .input-group.input-group-search .input-group-addon, 
    .input-group.input-group-search .form-control {
        height: 27px;
        padding: 0px;
        border: 0 none;
        background-color: transparent;
        padding-left: 10px;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
        .input-group.input-group-search .input-group-addon {
            color: rgb(153, 153, 153);
        }
    
        .input-group.input-group-search .form-control:focus {
            outline: 0;
            border: 0;
        }
        
        .article-loading-spinner {
            position: absolute; 
            top: 50%; 
            width: 100%; 
            font-size: 200%;
            text-align: center;
        }

        .loading .glyphicon-search:before,
        .loading .glyphicon-loading:before {
            /* Refresh Icon */
            content: "\e031";
            color: grey;
        }

        .loading .glyphicon {
            -webkit-animation-name: spin;
            -webkit-animation-duration: 1000ms;
            -webkit-animation-iteration-count: infinite;
            -webkit-animation-timing-function: linear;
            -moz-animation-name: spin;
            -moz-animation-duration: 1000ms;
            -moz-animation-iteration-count: infinite;
            -moz-animation-timing-function: linear;
            -ms-animation-name: spin;
            -ms-animation-duration: 1000ms;
            -ms-animation-iteration-count: infinite;
            -ms-animation-timing-function: linear;
            animation-name: spin;
            animation-duration: 1000ms;
            animation-iteration-count: infinite;
            animation-timing-function: linear;
        }

        @-ms-keyframes spin {
            from { -ms-transform: rotate(0deg); }
            to { -ms-transform: rotate(360deg); }
        }
        @-moz-keyframes spin {
            from { -moz-transform: rotate(0deg); }
            to { -moz-transform: rotate(360deg); }
        }
        @-webkit-keyframes spin {
            from { -webkit-transform: rotate(0deg); }
            to { -webkit-transform: rotate(360deg); }
        }
        @keyframes spin {
            from {
                transform:rotate(0deg);
            }
            to {
                transform:rotate(360deg);
            }
        }



#sidebar_buttons {
    height: 100%;
    display: inline-block;
    line-height: 19px;
    float: right;
    margin-top: 44px;
    margin-right: -1px;
}
    #sidebar_buttons > button {
        display: inline-block;
        width: 9px;
        height: 19px;
        border: 0 none;
        background: rgb(183, 183, 183);
        font-size: 9px;
        color: white;
        margin: 0px;
        padding: 0px;
        vertical-align: top;
        margin-top: 14px;
        background-repeat: no-repeat;
        background-position: center center;
    }

        #sidebar_buttons > button#expand {
            border-radius: 0px 19px 19px 0px;
            background-image: url('Images/arrow-right-white.png');
            margin-right: -9px;
        }
        #sidebar_buttons > button#collapse {
            border-radius:  19px 0px 0px 19px;
            background-image: url('Images/arrow-left-white.png');
        }

    #sidebar_buttons #vertical_bar {
        position: absolute;
        display: inline-block;
        width: 1px;
        border-left: 1px solid rgb(183, 183, 183);
        min-height: 128px;
        height: 100%;
        margin-bottom: 26px;
    }

.search_panel .title {
    font-weight: bold;
}

.search_panel .description {
    color: rgb(164, 164, 164);
}

.search_panel .breadcrumb {
    background: transparent;
    margin: 0px;
    padding: 0px;
    color: rgb(135, 135, 135); 
}
 
    .search_panel .breadcrumb > li + li:before {
        font-size: 75%;
        font-family: 'Glyphicons Halflings';
        content: "\e080";
        color: inherit;
    }

.search_panel ul {
    list-style: none;
}

    .search_panel ul li {
        margin-top: 5px;
    }

.search_panel .searchin_expand {
    position: relative;
    display: inline;
}

    .search_panel .searchin_expand .glyphicon {
        font-size: medium;
        color: darkgrey;
    }

    .search_panel .searchin_expand > .expandable {
        position: absolute;
        z-index: 1;
        top: 100%;
        left: 0px;
        display: none;
        /* Make it look like a dropdown */
        padding: 0px;
        margin: 0px;
        font-size: medium;
        font-weight: normal;
        border: 1px solid darkgrey;
        background-color: #f9f9f9;
    }

        .search_panel .searchin_expand > .expandable li {
            margin: 1px;
            padding: 2px;
            height: 25px;
            white-space: nowrap;
        }

            .search_panel .searchin_expand > .expandable li:hover {
                background-color: lightyellow;
            }

        .search_panel .searchin_expand > .expandable a {
            color: black;
            text-decoration: none;
            display: inline-block;
            width: 100%;
            line-height: 25px;
            cursor: pointer;
        }

    .search_panel .searchin_expand:hover > .expandable {
        display: block;
    }

.pagination_block {
    text-align: right;
    width: 100%;
}

.contactUs {
    padding: 20px; /* Extra padding on sides of the form (non page-specific)*/
    padding-top: 10px;
}
    .contactUsContainerAll {
        /* Add larger space on the sides for standalone page */
        margin-left: 20px;
        margin-right: 20px;
    }

    .contactUs label {
        display: block;
        color: grey;
        font-weight: 100;
    }

    .contactUs textarea {
        resize: vertical; /* Only allow horizontal resizing for chrome/firefox textareas */
    }
    
    .contactUs .form-control {
        max-width: 100%; /* Unconstrain and resize text boxes etc */
        width: 100%;
        border-radius: 0px; /* Undo bootstrap border radius */
        -webkit-box-shadow: inset 0px 0px 10px -5px rgba(0,0,0,1);
        -moz-box-shadow: inset 0px 0px 10px -5px rgba(0,0,0,1);
        box-shadow: inset 0px 0px 10px -5px rgba(0,0,0,1);
    }

    .contactUs input[type=submit] {
        float: right; /* Submit button on the right */
    }

/* Undo some style rules for the jQuery UI popup */
.ui-dialog .contactUsContainerAll {
    margin: 0px;
}

/* 200x50 grey box in the middle of the screen */
.toastMessage{
    /* Size */
    display: block;
    width: 200px;
    height: 50px;
    line-height: 50px;
    /* Position */
    position: absolute;
    margin-left: -100px;
    left: 50%;
    bottom: 10%;
    z-index: 9999;
    /* Style */
    color: white;
    text-align: center;
    font-size: 15px;
    border: 0px;
    border-radius: 8px;
    background: #444;
    -webkit-box-shadow: inset 0px 0px 30px -1px rgba(0,0,0,1);
    -moz-box-shadow: inset 0px 0px 30px -1px rgba(0,0,0,1);
    box-shadow: inset 0px 0px 30px -1px rgba(0,0,0,1);
}

table.summaryTable {
    margin: 10pt;
}

    table.summaryTable td, table.summaryTable th {
        padding: 2px;
        /* border: 1px solid; */
    }

    table.summaryTable th {
        min-width: 15em;
    }

/* if the article and menu can fit side by side. */
@media screen and (min-width:780px) {
    #main_panel {
        width: 480px;
    }
}

@media screen and (min-width:1000px) {
    #main_panel {
        width: 680px;
    }
}

@media screen and (min-width:1500px) {
    #main_panel {
        width: 1000px;
    }
}
