.document-portal-header,
.document-portal-header * {
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0 !important;
}

.document-portal-header {
    background: #fff;
    height: 120px;
    overflow: hidden;
    width: 100%;
}

.document-portal-header .header-container {
    background: #fff;
    display: flex;
    align-items: stretch;
    height: 120px;
    min-height: 120px;
    /* The welcome is centred against this, not against what is left over beside the broker. */
    position: relative;
    width: 100%;
}

/* Logo */
.document-portal-header .header-logo {
    flex-shrink: 0;
    height: 120px;
    margin: 0;
    width: 120px;
}

.document-portal-header .header-logo a {
    display: block;
    height: 100%;
    width: 100%;
}

.document-portal-header .header-logo img {
    display: block;
    height: 100%;
    margin: 0;
    max-height: none;
    object-fit: cover;
    width: 100%;
}

.document-portal-header .header-broker {
    align-self: center;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 3px;
    padding: 0 28px;
}

.document-portal-header .header-broker-text {
    margin: 0;
}


.document-portal-header .header-broker-title {
    color: #021a4d !important;
    font-size: 18px;
    font-weight: 700 !important;
    line-height: 1.25;
}


.document-portal-header .header-broker-name {
    color: #43b0f1 !important;
    font-size: 18px;
    font-weight: 700 !important;
    line-height: 1.25;
}


.document-portal-header .header-broker-number {
    color: #43b0f1 !important;
    font-size: 17px;
    font-weight: 700 !important;
    line-height: 1.25;
}

.document-portal-header .header-broker-number a {
    color: #43b0f1 !important;
    font-weight: 700 !important;
    text-decoration: none;
}


/* Centred on the bar rather than pushed against its right edge. Taken out of the flow to do
   it, so it is the middle of the header and not the middle of the gap after the broker. */
.document-portal-welcome {
    align-items: center;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 50%;
    position: absolute;
    text-align: center;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.document-portal-welcome p {
    margin: 0;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
    color: #021a4d !important;
}

.document-portal-header .header-nav,
.document-portal-header .header-mobile-buttons {
    display: none !important;
}

@media (max-width: 998px) {
    .document-portal-header,
    .document-portal-header .header-container {
        height: 86px;
        min-height: 86px;
    }

    .document-portal-header {
        position: relative;
    }

    .document-portal-header .header-logo {
        height: 86px;
        width: 86px;
    }

    .document-portal-header .header-broker {
        padding: 0 18px;
    }

    .document-portal-header .header-broker-title,
    .document-portal-header .header-broker-name {
        font-size: 14px;
    }

    .document-portal-header .header-broker-number {
        font-size: 13px;
    }

    .document-portal-welcome {
        display: none;
    }
}

@media (max-width: 520px) {
    .document-portal-header,
    .document-portal-header .header-container {
        height: 72px;
        min-height: 72px;
    }

    .document-portal-header .header-logo {
        height: 72px;
        width: 72px;
    }

    .document-portal-header .header-broker {
        gap: 2px;
        min-width: 0;
        padding: 0 12px;
    }

    .document-portal-header .header-broker-title,
    .document-portal-header .header-broker-name {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .document-portal-header .header-broker-number {
        display: none;
    }
}

@media (max-width: 340px) {
    .document-portal-header .header-logo {
        height: 68px;
        width: 68px;
    }

    .document-portal-header,
    .document-portal-header .header-container {
        height: 68px;
        min-height: 68px;
    }

    .document-portal-header .header-broker {
        padding: 0 9px;
    }
}
