html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    min-width: 925px;
}

.sw2-page-wrapper {
    min-height: 100%;
    height: auto !important;
    /*height: 100%;*/
    position: relative;
}

/* Navigation Bar */

.sw2-page-header {
    font-size: 13px;
    background: #00728F;
    min-width: 550px;
}

#headerForm\:dataCatalogue  {
    font-weight: bold !important;
}

.sw2-sub-header {
    height: 22px;
    background: #EEE;
    border-top: 1px solid #CCC;
    border-bottom: 1px solid #CCC;
}

.sw2-page-header-tabs {
    display: inline;
}

.sw2-page-header-tabs > li,
.sw2-page-header-tabs .nav-a4jTab > li {
    list-style-type: none;
    vertical-align: middle;
    box-sizing: border-box;
    line-height: normal; /* Argh Dojo!!! */
}

.sw2-bannerImage {
    overflow: hidden;
    float: left;
}

.floatLeft {
    float: left;
    height: 100%;
}

.floatRight {
    float: right;
    height: 100%;
}

.sw2-page-header-menu {
    height: 100%;
    cursor: pointer;
    color: #efefef !important; /* Damn you RecordView and your standard.css!!! */
    display: block;
    text-decoration: none;
    box-sizing: border-box;
    transition: all .1s ease-in;
}

.sw2-page-header-menu.header-tab {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 13px;
}

.sw2-page-header-menu.header-button {
    padding: 0 7px;
}

.sw2-page-header-menu:focus, #options-toggler:focus {
    outline-width: 0;
}

/* Fix the 1px font top padding difference between Chrome (1px higher) and FF & IE */
/* Using "padding-top: 0.5px" shifts the text down in Chrome and IE but not FF */
/* Combining that with the webkit media selector below (Chrome and FF) ensures it only applies to Chrome */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .sw2-page-header-menu {
        padding-top: 1px;
    }
}

/* Yay... :\ */

.sw2-page-header-options .dropdown {
    line-height: normal;
    height: 100%;
    font-size: 0;
}

.sw2-page-header-search {
    padding: 0 8px;
}

.sw2-page-header-search form {
    height: 100%;
    font-size: 0;
}

.sw2-page-header-menu:hover, .sw2-page-header-menu:focus, .sw2-page-header-menu:active {
    background: #0086a9;
    color: #FFF !important;
}

.dropdown.open .header-button,
.sw2-page-header-tabs .selected {
    background: #005e76 !important;
    color: #efefef !important;
    cursor: default;
}

.sw2-page-header-tabs .disabled {
    color: #B3B3B3 !important; /* Damn you RecordView and your standard.css!!! */
    background: transparent;
    cursor: default;
}

input[type=text].searchInput {
    width: 150px;
    padding: 2px 19px 2px 4px;
    vertical-align: middle;
    height: 24px;
}

.searchWrapper {
    position: relative;
    vertical-align: middle;
    display: inline-block;
}

.searchButton {
    position: absolute;
    top: 3px;
    right: 2px;
    background: transparent url('../images/material/ic_search_black.svg') no-repeat left top;
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 0;
    outline: 0;
    opacity: 0.75;
}

.searchButton:focus {
    outline: 2px solid #5B9DD9; /*  */
    /* -webkit-focus-ring-color = '#5B9DD9' */
    outline: -webkit-focus-ring-color auto 5px;
}

#headerForm, #optionsForm {
    height: 100%;
    display: inline;
}

.menu-spacer {
    height: 100%;
    display: inline-block;
    vertical-align: middle;
}

/* Nav Bar */
.sw2-page-wrapper .sw2-navContainer {
    height: 40px;
    background: #00728F;
    border-top: 1px solid #CCC;
}

.sw2-page-wrapper .sw2-navContainer .sw2-navItem {
    /*cursor: pointer;*/
    margin-right: 1px;
    height: 40px;
    vertical-align: middle;
    background: #406EAC;
    box-sizing: border-box;
}

.sw2-page-wrapper .sw2-navContainer .sw2-navSearchContainer {
    padding: 7px 12px;
}

.sw2-page-wrapper .sw2-navContainer .sw2-navText {
    color: #FFF;
    font-size: 13px;
    padding: 12px 20px;
    display: block;
    cursor: default;
}

.sw2-page-wrapper .sw2-navContainer a.sw2-navText {
    text-decoration: none;
}

.sw2-page-wrapper .sw2-navContainer .sw2-navItem.selected .sw2-navText {
    background: #2D4D78 !important;
}

.sw2-page-wrapper .sw2-navContainer .sw2-navItem a.sw2-navText:hover {
    background: #5785C3;
    cursor: pointer;
}

/* Content Header */
.sw2-contentHeaderContainer {
    height: 28px;
    background: #EEE;
    border-top: 1px solid #CCC;
    border-bottom: 1px solid #CCC;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.sw2-contentHeaderContainer .sw2-contentHeaderText {
    vertical-align: middle;
    padding: 3px 10px;
    overflow: auto;

}

/* Content Heading */
.sw2-contentHeaderContainer .pageHeading {
    color: #333;
    font-size: 13px;
    font-weight: bold;
    margin: 3px 0;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#databaseNamePageHeading {
    max-width: 80%;
    max-width: calc(100% - 20px); /* minus width of metadata icon */
}

#tableNamePageHeading {
    margin-left: 4px;
}

#catalogueItemPageHeadings {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#catalogueItemPageHeadings.downloadControl {
    margin-right: 520px; /*total width of the download bar*/
}

#catalogueItemPageHeadings a.pageHeading,
#catalogueItemPageHeadings .pageHeading > a {
    color: #333;
    font-weight: normal;
    text-decoration: underline;
    text-decoration-color: #aaa;
}

#catalogueItemPageHeadings .linkSeparator {
    opacity: 0.5;
    margin: 0 6px;
}

/* Content */
.sw2-contentContainer {
    position: absolute;
    left: 0;
    right: 0;
    overflow: auto;
}

/* Footer  */
.sw2-footer {
    background: #00728F;
    overflow: hidden;
}

.sw2-footer a {
    outline: none;
}

.absolute-footer {
    position: absolute;
    right: 0;
    left: 0;
}

#footer ul,
#footer ul li,
#footer a p {
    font-size: 9px;
    display: inline-block;
    vertical-align: middle;
}

#footer ul {
    float: right;
    list-style-type: none;
    margin-right: 4px;
    padding: 0;
    color: #fff;
}

#footer ul li {
    margin-left: 16px;
}

#footer ul li.powered-by-superstar {
    font-size: 0;  /* To remove extra padding for whitespace and below elements */
    text-align: right;
    margin-left: 32px;
}

#footer a {
    display: inline-block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
}

#footer a:hover,
#footer a:focus {
    color: rgba(255, 255, 255, 1); !important;  /* Uses color opacity to avoid Chrome text opacity rendering issue: https://stackoverflow.com/q/23126201 */
}

#footer a img {
    max-height: 24px;
    margin-left: 4px;
    vertical-align: middle;
    opacity: 0.85;
}

#footer a:hover img,
#footer a:focus img {
    opacity: 1;
}

#relative-footer .footer-sub-credit,
#footer .footer-sub-credit {
    color: #ccc;
    margin-right: 20px;
}

#relative-footer .footer-sub-credit a,
#footer .footer-sub-credit a {
    color: #ccc;
    text-decoration: none;
}

/* CSS Layout: */
/* Helper Classes  */
.sw2-page-wrapper .sw2-layout-left {
    margin-top: 2px;
    display: block;
    float: left;
}

.sw2-page-wrapper .sw2-layout-right {
    display: block;
    float: right;
}

/* Tootips for inavtive tab */
.inactiveTabTooltip {
    padding: 5px 10px;
    background: white;
    color: #444;
    border: 1px solid #aaa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.inactiveTabTooltip .rf-tt-cntr {
    border: none;
    padding: 0;
}

.wrappingTextInactiveTabTooltip {
    padding: 5px 10px;
    background: white;
    color: #444;
    border: 1px solid #aaa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: normal;
    font-weight: bold;
}

.wrappingTextInactiveTabTooltip .rf-tt-cntr {
    border: none;
    padding: 0;
}

/* Password Visibility Button */
.visibilityButtonInputGroup {
    position: relative;
    display: inline-block;
}

.visibilityButtonInputGroup > input[type=password],
.visibilityButtonInputGroup > input[type=text],
.visibilityButtonInputGroup > input[type=email] {
    position: relative;
    padding-right: 24px !important;
}

.visibilityButtonContainer {
    position: absolute;
    top: 0;
    right: 3px;
    bottom: 0;
}

.toggleVisibilityButton {
    display: inline-block;
    vertical-align: middle;
    background: transparent url('../images/material/ic_visibility_off_black.svg') no-repeat left top;
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 0;
    outline: 0;
    opacity: .5;
    transition: all .1s ease;
}

.toggleVisibilityButton:focus {
    outline: 2px solid #5B9DD9; /*  */
    /* -webkit-focus-ring-color = '#5B9DD9' */
    outline: -webkit-focus-ring-color auto 5px;
    opacity: .5 !important;
}

.toggleVisibilityButton--visible {
    background: transparent url('../images/material/ic_visibility_black.svg') no-repeat left top;
}

/* Password Visibility Button in User Registration */
.user-form-inputContainer .visibilityButtonContainer {
    bottom: 2px;
}

.user-form-inputContainer .loginPasswordInput:focus + .toggleVisibilityButton,
.user-form-inputContainer #userVerification-password:focus + .toggleVisibilityButton,
.user-form-inputContainer #resetPassword-password:focus + .toggleVisibilityButton {
    opacity: .5;
}
