.core-navbar {
    background-color: #0a2a52;
    margin: 0;
    padding: 0;
    box-shadow: none;
}

.navbar-brand img {
    height: 30px;
    margin: 10px 2px 10px 10px;
}

.right-section-top,
.right-section-top a,
.left-tree,
.left-tree a {
    color: #0a2a52;
}

.pending-content .pending-title {
    background-color: #0a2a52;
}

.search-content .search-title {
    background-color: #0a2a52;
}

#addGroupSearchFilter {
    height: 30px;
}

#addCommunitySearchFilter {
    height: 30px;
}

#addUserSearchFilter {
    height: 30px;
}

.btn-primary,
.btn-primary:disabled,
.page-item.active .page-link {
    background-color: #0077C8;
    border-color: #0077C8;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: #0066AE;
    border-color: #0066AE;
}

a,
.page-link,
#clientLinks a,
.btn-link,
.btn-link-anonymous-upload,
.logout-link,
.file-list-body .file-download-link:hover {
    color: #0077C8;
}

a:hover,
.page-link:hover,
#clientLinks a:hover,
.btn-link:hover,
.logout-link:hover {
    color: #0066AE;
}

.core-navbar .nav-link {
    color: #ffffff;
}

.bottom-copyright{
    width:100%;
    margin:0 0 0 5px;
}

.bottom-support{
    margin:10px 0 10px 5px;
    width:100%;
}

.bottom-support a{
    text-decoration:underline;
}

/* The help box and footer under the pre-login boxes, in main.css because the MFA pages do not load login.css. */
.custom-message {
    font-size: 13px;
}

/* The login instructions only apply to the login page, the only pre-login page without login-main-body on its body. */
#loginBody.login-main-body .login-message-container {
    display: none;
}

.message-box {
    display: flex;
}

.message-icon {
    flex: 0 0 54px;
    font-size: 24px;
    color: #ff8800;
    padding-left: 20px;
}

.message-login {
    flex: 1 1 auto;
    min-width: 0;
}

.message-login ul {
    margin-left: -10px;
}

.login-bottom-section {
    margin-top: 20px;
}

.login-bottom-section .login-support {
    font-size: 14px;
    padding-bottom: 10px;
}

/* Pre-login pages: the footer includes nest their own grid inside the page's column; flatten it so their text starts at the left edge of the box above. */
#loginBody:is(.login-main-body, .mainbody) .login-message-container,
#loginBody:is(.login-main-body, .mainbody) .login-bottom-container {
    padding-left: 0;
    padding-right: 0;
}

#loginBody:is(.login-main-body, .mainbody) .custom-message,
#loginBody:is(.login-main-body, .mainbody) .login-bottom-row {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start !important;
}

#loginBody:is(.login-main-body, .mainbody) .custom-message > div,
#loginBody:is(.login-main-body, .mainbody) .login-bottom-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* MFA pages place the footer columns directly in a container, without the row that offsets the column padding. */
#loginBody:is(.login-main-body, .mainbody) .container > .offset-md-2 {
    padding-left: 0;
    padding-right: 0;
}

/* A column centred in a row is offset by a sixth of the row, which is 30px wider than the container: 5px more than offset-md-2. */
@media (min-width: 768px) {
    #loginBody:is(.login-main-body, .mainbody) .container > .offset-md-2 {
        padding-left: 5px;
        padding-right: 5px;
    }
}

#loginBody:is(.login-main-body, .mainbody) .card + .ml-1 {
    margin-left: 0 !important;
}

/* Without external login the login box is a centred col-lg-8 of a row 30px wider than the footer's container: match its offset and width. */
@media (min-width: 992px) {
    #loginBody.mainbody:not(.login-main-body) .custom-message > .col-8,
    #loginBody.mainbody:not(.login-main-body) .login-bottom-col.col-8 {
        margin-left: calc((100% + 30px) / 6);
        flex: 0 0 calc((100% + 30px) * 2 / 3 - 30px);
        max-width: calc((100% + 30px) * 2 / 3 - 30px);
    }
}

/* The domain switch box is full width below the lg breakpoint while its footer column stays col-8. */
@media (max-width: 991.98px) {
    #loginBody:is(.login-main-body, .mainbody) .lost-password-form > .row > .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    #loginBody:is(.login-main-body, .mainbody) .oauth-approbation-form .col-md-9 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* The protected-file code and password pages put their first box right under the top bar; the error block and the download page (pt-5) already have a gap. */
#loginBody.login-main-body > .core-navbar + .container:not(.error-block) > [class*="offset-"]:not(.pt-5) {
    padding-top: 40px;
}

#loginBody.login-main-body > .core-navbar + .container:not(.error-block) > [class*="offset-"]:not(.pt-5) > .error-block:first-child {
    margin-top: 0;
}
