body {
    display: flex;
    flex-direction: column;
}

    body > .container, body > form {
        flex: 1;
    }

/*Header Colour*/
.navbar.static-top {
    background-color: #004b6b !important;
}

@font-face {
    font-family: 'FiraSans';
    src: url('/fira-sans-v7-latin-ext_latin-regular.woff2');
}

html *:not(.fa):not(.glyphicon) {
    font-family: FiraSans, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif !important;
}

.entitylist-filter-option-text {
    width: 100%;
}

.page-title {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .page-title h1 {
        flex: 1;
        min-width: 60%;
        margin: 0;
    }

.page-title, .kb-article {
    margin: 0 8px;
}

.note .col-md-3.metadata {
    display: none;
}

.crmEntityFormView, .entitylist, .modal-content, .popover-content {
    border: none !important;
}

body,
html,
a,
p {
    font-size: 16px !important;
}

td a {
    text-decoration: underline !important;
}

th a {
    text-decoration: none !important;
}

.columnBlockLayout, .crmEntityFormView .cell, .sectionBlockLayout > .container {
    margin: 0 !important;
    padding: 0 !important;
}

.footer-bottom {
    background: #424242;
    color: #fff
}

.entity-notes .note {
    margin: 0;
    padding: 0;
}

.attachment {
    padding: 8px 0;
}

@media screen and (min-width:39rem) {
    .page-title {
        align-items: center;
        flex-direction: row;
    }
}

.btn {
    border-radius: var(--bs-btn-border-radius) !important;
}

.btn-secondary.dropdown-toggle.show {
    color: #FFFFFF !important;
    background-color: #006680 !important;
    border-color: #006680 !important;
}

.btn-secondary.dropdown-toggle[disabled] {
    color: rgb(80, 80, 80);
    background-color: #fff;
    border: 1px solid rgb(80, 80, 80);
}

.download-button .download-loading-icon {
    display: none;
}

.download-button:disabled {
    cursor: wait;
    border: 1px solid transparent;
}

    .download-button:disabled .download-loading-icon {
        display: inline-block;
    }

/* Fix for Knowledge Article */
.kb-article ul, .kb-article ol {
    list-style-position: unset !important;
}

/* Fix for rich text */
td[data-attribute="mbie_licenseconditions"],
td[data-attribute="mbie_licenseconditions"] p,
td[data-attribute="mbie_licenseconditions"] a,
td[data-attribute="mbie_licenseconditions"] .ck-content {
    font-size: unset !important;
}

    td[data-attribute="mbie_licenseconditions"] p {
        color: unset !important;
    }

/* Reset old float styles (optional, if you can override them) */
.toolbar-actions,
.toolbar-actions * {
    float: none !important;
}

/* Toolbar container */
.toolbar-actions {
    display: flex;
    align-items: center; /* vertically center everything */
    justify-content: space-between; /* one item at start, one at end */
    width: 100%; /* make full width for space-between to work */
    gap: 1rem; /* optional spacing between items */
    padding: 0.5rem 0; /* optional vertical padding */
}

    /* Search input group */
    .toolbar-actions .entitylist-search {
        display: flex;
        align-items: center;
        flex: 1; /* let search group grow if needed */
        max-width: 100%; /* optional limit */
    }

        /* Input itself */
        .toolbar-actions .entitylist-search .form-control {
            flex: 1;
            font-size: 14px;
            height: 36px;
        }

        /* Search button next to input */
        .toolbar-actions .entitylist-search .btn {
            border-radius: 0;
            height: 36px;
            margin-left: 0.25rem;
        }

    /* Export button on the far right */
    .toolbar-actions .entitylist-download {
        white-space: nowrap;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }


/*Footer BEGIN*/
.h-visuallyhidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0;
    border: 0;
    margin: -1px;
    clip: rect(0 0 0 0);
}

.h-print {
    display: none;
}


.c-mbie-footer {
    background: #424242;
    color: #fff
}

.c-mbie-footer__nav-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding-bottom: 1.9375rem;
    border-bottom: 1px solid #fff
}

    .c-mbie-footer__nav-group:last-child {
        padding-bottom: 3rem;
        border-bottom: 0
    }

.c-mbie-footer__nav-wrapper {
    -ms-flex-preferred-size: calc(100% * 1 - 40px * (1 - 1));
    flex-basis: calc(100% * 1 - 40px * (1 - 1));
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    width: 100%;
    max-width: calc(100% * 1 - 40px * (1 - 1));
    margin-bottom: 40px;
    margin-bottom: 0
}

.c-mbie-footer__nav-wrapper--spanning-two-columns {
    -ms-flex-preferred-size: calc(100% * 1 - 0rem * (1 - 1));
    flex-basis: calc(100% * 1 - 0rem * (1 - 1));
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    width: 100%;
    max-width: calc(100% * 1 - 0rem * (1 - 1));
    margin-bottom: 40px
}

.c-mbie-footer__nav-wrapper--empty {
    -ms-flex-preferred-size: calc(100% * 1 - 40px * (1 - 1));
    flex-basis: calc(100% * 1 - 40px * (1 - 1));
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    width: 100%;
    max-width: calc(100% * 1 - 40px * (1 - 1));
    margin-bottom: 40px;
    display: none
}

.c-mbie-footer__header {
    width: 100%;
    padding-top: 0;
    border-top: 0;
    margin: 2rem 0 1.5rem;
    font-size: .8888888889rem;
    line-height: 1rem;
    color: #fff;
    text-transform: uppercase
}

.c-mbie-footer__nav__list {
    padding: 0;
    margin: 0;
    list-style: none
}

.c-mbie-footer__nav__item {
    margin: .5rem 0;
    line-height: 0;
    list-style-type: none
}

    .c-mbie-footer__nav__item:first-child {
        margin-top: 0
    }

.c-mbie-footer__nav__link {
    font-size: 1rem;
    line-height: 1.25rem;
    color: #fff;
    text-decoration: none;
    list-style-type: none
}

    .c-mbie-footer__nav__link:link, .c-mbie-footer__nav__link:visited {
        color: #fff
    }

    .c-mbie-footer__nav__link:hover {
        color: #fff;
        text-decoration: underline
    }

.c-mbie-footer__nav__social-list {
    display: block;
    padding: 0;
    margin: 0;
    list-style-type: none
}

.c-mbie-footer__nav__social-item {
    display: inline-block;
    padding: 0;
    margin: 0;
    line-height: 0;
    list-style-type: none
}

    .c-mbie-footer__nav__social-item::before {
        display: none
    }

    .c-mbie-footer__nav__social-item:last-child .c-mbie-footer__social-link {
        margin-right: 0
    }

.c-mbie-footer__nav__social-link {
    margin-right: .5rem;
    font-size: 1rem;
    line-height: 1.25rem;
    color: #fff;
    text-decoration: none
}

.c-mbie-footer__nav__social-link__social-icon {
    display: inline-block
}

.c-mbie-footer__nav__social-link:hover .c-mbie-footer__nav__social-link__social-icon {
    opacity: .5
}

.c-mbie-footer__logo-list {
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none
}

.c-mbie-footer__logo-list__list-item {
    width: 100%;
    padding: 0;
    margin: 3rem 0 2.5rem;
    list-style: none
}

.c-mbie-footer__logo-list__link {
    display: block
}

.c-mbie-footer__logo-list__link__logo {
    display: inline-block;
    width: 100%;
    height: auto;
    max-width: 17.5rem
}

.c-mbie-footer__logo-list__link__logo--alt {
    display: none
}

.c-mbie-footer__logo-list__link__logo--nzgovt, .c-mbie-footer__logo-list__link__logo--nzgovt--alt {
    max-width: 14rem
}

.c-mbie-footer__global-nav {
    width: 100%
}

.c-mbie-footer__global-nav__list {
    padding: 0;
    margin: 0;
    list-style: none
}

.c-mbie-footer__global-nav__item {
    margin: .75rem 0;
    font-size: .8888888889rem;
    line-height: 1rem;
    text-transform: uppercase;
    list-style-type: none
}

    .c-mbie-footer__global-nav__item:first-child {
        margin-top: 1.5rem
    }

    .c-mbie-footer__global-nav__item:last-child {
        margin-top: 2rem
    }

.c-mbie-footer__global-nav__link {
    font-size: .8888888889rem;
    color: #fff;
    text-decoration: none
}

    .c-mbie-footer__global-nav__link:link, .c-mbie-footer__global-nav__link:visited {
        color: #fff
    }

    .c-mbie-footer__global-nav__link:hover {
        color: #fff;
        text-decoration: underline
    }

.c-mbie-footer__global-nav__copyright {
    text-transform: none
}

@media screen and (min-width: 39rem) {
    .c-mbie-footer {
        padding-top: 3rem
    }

    .c-mbie-footer__nav-wrapper {
        -ms-flex-preferred-size: calc(100% * .5 - 0rem * (1 - .5));
        flex-basis: calc(100% * .5 - 0rem * (1 - .5));
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        width: 100%;
        max-width: calc(100% * .5 - 0rem * (1 - .5));
        margin-bottom: 40px;
        padding: 0 1.5rem;
        border-left: 1px solid #fff;
        margin-top: 2rem;
        margin-bottom: 0
    }

        .c-mbie-footer__nav-wrapper.first, .c-mbie-footer__nav-wrapper.odd {
            padding-left: 0;
            border-left: 0
        }

        .c-mbie-footer__nav-wrapper.last {
            padding-right: 0
        }

    .c-mbie-footer__nav-wrapper--empty {
        -ms-flex-preferred-size: calc(100% * .5 - 0rem * (1 - .5));
        flex-basis: calc(100% * .5 - 0rem * (1 - .5));
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        width: 100%;
        max-width: calc(100% * .5 - 0rem * (1 - .5));
        margin-bottom: 40px;
        display: none
    }

    .c-mbie-footer__header {
        margin-top: 0
    }

    .c-mbie-footer__nav-group {
        border-bottom: 0
    }

        .c-mbie-footer__nav-group:last-child {
            border-top: 1px solid #fff
        }

    .c-mbie-footer__logo-list {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        -webkit-box-align: end;
        -ms-flex-align: end;
        align-items: flex-end;
        flex-direction: row;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between
    }

    .c-mbie-footer__logo-list__list-item {
        -ms-flex-item-align: end;
        align-self: flex-end;
        width: auto;
        margin: 1rem 0 0
    }

        .c-mbie-footer__logo-list__list-item:last-child {
            text-align: right
        }
}

@media screen and (min-width: 60rem) {
    .c-mbie-footer {
        padding-top: 4rem
    }

    .c-mbie-footer__nav-group {
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap
    }

        .c-mbie-footer__nav-group:first-child {
            -webkit-box-pack: start;
            -ms-flex-pack: start;
            justify-content: flex-start
        }

    .c-mbie-footer__nav-wrapper {
        -ms-flex-preferred-size: calc(100% * .25 - 0rem * (1 - .25));
        flex-basis: calc(100% * .25 - 0rem * (1 - .25));
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        width: 100%;
        max-width: calc(100% * .25 - 0rem * (1 - .25));
        margin-bottom: 40px;
        max-width: none;
        padding: 0 2.5rem;
        border-left: 1px solid #fff;
        margin-top: 0;
        margin-bottom: 0
    }

        .c-mbie-footer__nav-wrapper.odd {
            padding-left: 2.5rem;
            border-left: 1px solid #fff
        }

        .c-mbie-footer__nav-wrapper.first:not(.last), .c-mbie-footer__nav-wrapper:first-child {
            padding-left: 0;
            border-left: 0
        }

    .c-mbie-footer__nav-wrapper--spanning-two-columns {
        -ms-flex-preferred-size: calc(100% * .5 - 0rem * (1 - .5));
        flex-basis: calc(100% * .5 - 0rem * (1 - .5));
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        width: 100%;
        max-width: calc(100% * .5 - 0rem * (1 - .5));
        margin-bottom: 40px
    }

    .c-mbie-footer__nav-wrapper--empty {
        -ms-flex-preferred-size: calc(100% * .25 - 0rem * (1 - .25));
        flex-basis: calc(100% * .25 - 0rem * (1 - .25));
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        width: 100%;
        max-width: calc(100% * .25 - 0rem * (1 - .25));
        margin-bottom: 40px;
        display: block;
        border: 0
    }

    .c-mbie-footer__nav__list {
        max-width: 20rem
    }

    .c-mbie-footer__global-nav {
        margin-top: .5rem
    }

    .c-mbie-footer__global-nav__list {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between
    }

    .c-mbie-footer__global-nav__item {
        margin: 0 1.25rem 0 0
    }

        .c-mbie-footer__global-nav__item:first-child {
            margin-top: 0
        }

        .c-mbie-footer__global-nav__item:last-child {
            margin: 0 0 0 auto
        }
}
/*Footer END*/
