.hidden {
    display: none !important;
}

@media screen {
    .is-hidden-display {
        display: none !important;
    }
}

.navgrouping {
    display: none !important;
}

.navgrouping-minimal-nav {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    margin: 40px 0 0 0;
    text-align: center;
}

.full-height-minus-nav {
    height: calc(100vh - 3.25rem) !important;
}

.break-word {
    overflow-wrap: break-word;
}

.breadcrumb.has-arrow-separator li+li::before {
    content: "→";
    vertical-align: middle;
    font-size: 1.2rem;
    line-height: 1;
}

.dataTables_info {
    display: inline;
}

div.tabbed-content .tabs:not(:last-child) {
    margin-bottom: 0;
}

div.tabbed-content .tab-content {
    padding: 1rem;
    display: none;
}

div.tabbed-content .tab-content.is-active {
    display: block;
}

#requests_table_processing {
    position: relative;
    top: unset;
    margin-top: unset;
    margin-left: unset;
    left: unset;
    width: unset;
}

.table-column-filter,
select.table-column-filter {
    height: 1em;
}

/* select boxes in header of table filtering */
.select.table-column-filter:not(.is-multiple):not(.is-loading)::after {
    margin-top: -.7em;
}

/* Darker loading indicator */
.button.is-loading::after,
.control.is-loading::after,
.loader,
.select.is-loading::after {
    border: 2px solid #080808;
    border-radius: 9999px;
    border-right-color: transparent;
    border-top-color: transparent;
}

/* Responsive select2 */
.select2 {
    width: 100% !important;
}

.select2-container .select2-selection__arrow b {
    display: none !important;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    height: auto !important;
    padding: 5px 0 !important;
    border: 1px solid #dbdbdb !important;
}

.select2-container .select2-selection--single .select2-selection__arrow,
.select2-container .select2-selection--multiple .select2-selection__arrow {
    padding-top: 5px;
}

.select2-container .select2-selection--single .select2-selection__placeholder,
.select2-container .select2-selection--multiple .select2-selection__placeholder {
    color: #dbdbdb !important;
}

.select2-container .select2-dropdown {
    border: 1px solid #dbdbdb !important;
}

.select2-container .select2-dropdown.select2-dropdown--below {
    border-top: 0 !important;
    box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02);
}

.select2-container .select2-dropdown.select2-dropdown--above {
    border-bottom: 0 !important;
    box-shadow: 0 -0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02);
}

.select2-container .select2-dropdown .select2-search {
    margin: 5px;
}

.select2-container .select2-dropdown .select2-search .select2-search__field {
    padding: 10px !important;
    border-radius: 3px !important;
    font-size: 1rem;
    height: 2.25em;
    box-shadow: inset 0 1px 2px rgba(10, 10, 10, .1);
    max-width: 100%;
    width: 100%;
    border-radius: 3px !important;
}

/* Shift the clear away from the drop down carat for bulma */
.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 40px;
    padding-top: 5px;
}

.select2-container .select2-dropdown .select2-results__options {
    max-height: 200px !important;
}

.select2-container .select2-dropdown .select2-results__options .select2-results__option {
    padding: 0.37em 0.75em !important;
    font-size: 1rem;
}

/* Does not leave enough room for error message if left set */
.select:not(.is-multiple) {
    height: unset;
}

select {
    border: 1px solid #dbdbdb !important;
}

/* Keep the carat in the select box even during an error */
.select:not(.is-multiple):not(.is-loading)::after {
    top: 1.125em;
}

@media screen and (min-width: 1024px) {
    .navbar-center {
        display: flex;
        justify-content: stretch;
        align-items: stretch;
        flex-grow: 1;
        flex-shrink: 0;
        flex-direction: row;
    }

    .navbar-center form {
        display: flex;
        flex-grow: 1;
    }

    .navbar-link,
    .navbar-item {
        align-items: center;
        display: flex;
        flex-basis: auto;
        flex-grow: 1;
        flex-shrink: 0;
        justify-content: center;
    }

    .navbar-dropdown .navbar-item {
        justify-content: left;
    }
}

.navbar.is-light .navbar-brand>a.navbar-item:focus,
.navbar.is-light .navbar-brand>a.navbar-item:hover,
.navbar.is-light .navbar-brand>a.navbar-item.is-active,
.navbar.is-light .navbar-brand .navbar-link:focus,
.navbar.is-light .navbar-brand .navbar-link:hover,
.navbar.is-light .navbar-brand .navbar-link.is-active {
    background-color: whitesmoke;
    color: rgba(0, 0, 0, 0.7);
}

.c2c i.fa-copy {
    opacity: 0;
    cursor: pointer !important;
    pointer-events: all !important;
}

.c2c:hover i.fa-copy {
    opacity: 1;
}

.c2c:not(.c2c-left) i.fa-copy {
    margin-left: 0.5rem !important;
}

.c2c.c2c-left i.fa-copy {
    margin-right: 0.5rem !important;
}

/* Bulma Calendar Override */
.datetimepicker-clear-button {
    display: none !important;
}

/* FormSet container (copied from bulma .field) */
.formset-container:not(:last-child) {
    margin-bottom: 0.75rem;
}

.progress-wrapper {
    position: relative;
}

.progress-value {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: calc(1rem / 1.5);
    line-height: 1rem;
    font-weight: bold;
}

.progress.is-small+.progress-value {
    font-size: calc(0.75rem / 1.5);
    line-height: 0.75rem;
}

.progress.is-medium+.progress-value {
    font-size: calc(1.25rem / 1.5);
    line-height: 1.25rem;
}

.progress.is-large+.progress-value {
    font-size: calc(1.5rem / 1.5);
    line-height: 1.5rem;
}

.progress.is-xsmall {
    height: 0.6rem;
}

/* Sherpa style steps */
.steps.is-large.is-vertical.is-skinny .steps-segment:not(:last-child):after {
    left: calc(1.5rem);
    width: 0.05em;
    background-color: #B5ADA5;
}

/* steps step segment header */
.steps-segment .steps-content>p:first-child {
    line-height: 2.85rem;
}

.steps-segment.is-active .steps-content>:first-child {
    font-weight: 600;
}


/* inactive, incomplete steps */
.steps:not(.is-hollow) .steps-segment.is-active~.steps-segment:not(.is-complete) .steps-marker:not(.is-hollow),
.steps:not(.is-hollow) .steps-segment.is-active~.steps-segment:not(.is-complete) .steps-marker:not(.is-hollow)+.steps-content {
    font-weight: 400;
}

.steps:not(.is-hollow) .steps-segment.is-active~.steps-segment:not(.is-complete, .is-incomplete):not(.step-on-load) .steps-marker:not(.is-hollow)+.steps-content,
.steps:not(.is-hollow) .steps-segment.is-not-required .steps-marker:not(.is-hollow)+.steps-content {
    color: #B5ADA5;
}

.steps-segment:not(.is-clickable) .steps-marker,
.steps-segment:not(.is-clickable) .steps-marker+.steps-content {
    cursor: not-allowed;
}

/* inactive, complete steps */
.steps:not(.is-hollow) .steps-segment.is-active~.steps-segment.is-complete:not(.is-not-required) .steps-marker:not(.is-hollow),
.steps:not(.is-hollow) .steps-segment.is-active~.steps-segment.step-on-load .steps-marker:not(.is-hollow) {
    background-color: #9C5C44;
}

/* default step markers is step-number */
.steps-segment .steps-marker:not(.is-hollow) .icon {
    display: none;
}

/* complete step markers - check marks */
.steps-segment.is-complete .steps-marker:not(.is-hollow) .step-number,
.steps-segment.is-incomplete .steps-marker:not(.is-hollow) .step-number,
.steps-segment.is-not-required .steps-marker:not(.is-hollow) .step-number {
    display: none;
}

.steps-segment.is-complete .steps-marker:not(.is-hollow):not(.has-background-danger) .icon.pass,
.steps-segment.is-not-required .steps-marker:not(.is-hollow):not(.has-background-danger) .icon.pass {
    display: inline-flex;
}

/* steps with issues */
.steps-segment.is-clickable.is-incomplete .steps-marker:not(.is-hollow),
.steps-segment.is-clickable.is-incomplete.is-active .steps-marker:not(.is-hollow),
.steps:not(.is-hollow) .steps-segment.is-active~.steps-segment.is-incomplete .steps-marker:not(.is-hollow),
.steps:not(.is-hollow) .steps-segment.is-active~.steps-segment.has-background-danger .steps-marker:not(.is-hollow) {
    background-color: #993333;
}

.steps:not(.is-hollow) .steps-segment.is-not-required .steps-marker:not(.is-hollow) {
    background-color: #B5ADA5;
}

.steps-segment .steps-marker.has-background-danger:not(.is-hollow) .icon.fail,
.steps-segment.is-incomplete .steps-marker:not(.is-hollow) .icon.fail {
    display: inline-flex;
}

.steps-content .notification ul {
    margin-left: 1em;
}

/* button.help-request-btn:hover {
    color: #ffffff !important;
} */

.tag.is-outlined.sherpa-icon {
    border: 2px solid #52565B;
}

.tag.is-xlarge.is-compact:not(body) {
    padding-right: 0.45em;
    padding-left: 0.45em;
    height: 1.4em;
    font-size: 1.5rem
}

.tag.is-xlarge.is-compact.has-text-weight-semibold:not(body),
.has-text-weight-semibold .tag.is-xlarge.is-compact:not(body) {
    padding-right: 0.5em;
    padding-left: 0.5em;
}

.radio-list,
.radio {
    display: inline;
    margin-right: 1em;
}

.modal {
    position: fixed;
}

.control .notification.is-danger {
    font-size: 1rem;
    padding: 0.75rem;
    font-weight: 500;
}


.button .icon:last-child:not(:first-child) {
    margin-left: 0.1em;
    margin-right: 0.09em;
}

#notification-container a {
    text-decoration: none;
}

/* #notification-container div.notification {
    margin-top: 1.5rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
} */

.select2-container .select2-search--inline .select2-search__field {
    height: 1.25em;
    /* fix for select height */
}

/* KYC Request */
#image_modal .modal-content {
    width: fit-content;
    max-width: fit-content;
}

#document_images img {
    max-width: min(65vw, 400px);
    cursor: zoom-in;
}

.refinitiv_checks img {
    max-width: 100px;
}

.refinitiv_checks div.has-text-warning,
.refinitiv_checks div.has-text-danger {
    font-weight: 700;
}

.refinitiv_checks div.toggle {
    display: none;
}

.refinitiv_checks .PASSED,
.refinitiv_checks .MATCH,
.refinitiv_checks .LIVE {
    font-weight: 700;
    color: #339933
}

.refinitiv_checks .ATTENTION,
.refinitiv_checks .CAUTION,
.refinitiv_checks .PARTIAL_MATCH,
.refinitiv_checks .UNSUPPORTED_COUNTRY {
    font-weight: 700;
    color: #DAA520;
}

.refinitiv_checks .FAILED,
.refinitiv_checks .NOT_MATCH,
.refinitiv_checks .ERROR,
.refinitiv_checks .UNKNOWN {
    font-weight: 700;
    color: #993333
}

span.is-invalid {
    color: #993333
}

.html-users {
    height: 100%;
    width: 100%;
    margin: 0px;
    overflow-y: auto;
}

.body-users {
    height: 100%;
    width: 100%;
    margin: 0px;
    display: block;
    overflow-y: auto;
}

.body-background {
    background-image: url("../images/feathers-1920x1080.c807f3d2f300.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.body-background .feather-bg-dependent-color-override {
    color: white;
}


.primary-container-users {
    margin: 57px auto;
    background: white;
    border-radius: 2px;
    overflow: auto;
}


.logo-container {
    margin-top: 30px;
}

.logo-figure {
    max-height: 125px;
    max-width: 320px;
    display: block;
    margin: auto;
}

.page-title-container {
    margin-top: 12px;
}

.content-container {
    margin-top: 12px;
}

.help-title {
    font-size: 2em;
    margin-bottom: 20px;
}

.help-question {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.help-answer {
    font-size: 1em;
    margin-bottom: 15px;
}

.not-bold {
    font-weight: 300 !important;
}

.no-asterisk .asteriskField {
    display: none;
}

.feather-bg-dependent-color-override strong,
.feather-bg-dependent-color-override a,
.feather-bg-dependent-color-override li {
    color: white;
}


#kycrequest_form p.help {
    font-size: 0.8rem;
}

/* this is to stop the IE built in reveal
   password eye icon from appearing when
   there is a custom reveal password function
   as well */
#id_password::-ms-reveal {
    display: none;
}

.fieldset {
    background-color: #fff;
    border-radius: 6px;
    color: #4a4a4a;
    display: block;
    padding: 1.25rem;
    border: 1px solid #E6E6E6
}

.fieldset>legend {
    font-size: 0.75rem;
    font-weight: bold;
    color: #808080;
    display: block;
    background-color: #fff;
    padding: 0 5px;
    width: max-content;
    border: 0 none
}

div.group-total-bold>label {
    font-weight: bold;
}

/* disabled styling for readonly fields to allow for form posting values */
.select.disabled,
.textarea.disabled,
.input.disabled {
    background-color: #f5f5f5;
    border-color: #f5f5f5;
    box-shadow: none;
    color: #7a7a7a;
}

dl.dd-mb-2 dd {
    margin-bottom: 0.5rem;
}

.js-modal-trigger {
    cursor: pointer;
}

/* styling for annual financial return statement */
div.total-row {
    border-top: 2px solid #f5f5f5;
    border-bottom: 2px solid #f5f5f5;
}

div.section-row {
    border-top: 2px solid #7a7a7a;
    border-bottom: 2px solid #7a7a7a;
}

/* Animations (HTMX) */

.fade-out.htmx-swapping {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}


/* move processing div to top of datatables table
instead of default middle which is often off page */
.dataTables_wrapper .dataTables_processing {
    position: absolute;
    top: 200px !important;
}



/* TODO temporary until bulma variables are updated across the app */
div.primary-container-users button.is-primary {
    background-color: #007A74 !important;
}

div.primary-container-users a.is-primary {
    background-color: #007A74 !important;
}


/*****************************************************/
/********** Portal Layout styles   *******************/

html.portal-html {
    height: 100%;
    width: 100%;
}

body.portal-body {
    height: 100%;
    width: 100%;
}

#main-section {
    margin: 0;
    min-height: 100%;
    /* width: 100%; */
}

aside.menu {
    background: rgb(var(--dark-blue-rgb));
    /* height: 100%; */
    width: 100%;
    min-width: 220px;
    background-image: url("../images/portal-nav-background.f44bf3e387f1.svg");
    background-repeat: no-repeat;
    background-position-x: -200px;
    background-position-y: 100px;
}

.menu-aside-div {
    padding-top: 30px;
    padding-left: 30px;
    padding-right: 30px;
}

@media screen and (max-width: 1200px) {
    .menu-aside-div {
        padding-top: 30px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 768px) {
    .menu-aside-div {
        padding-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}


aside.menu .menu-list a {
    color: white;
    margin-bottom: 10px;
    font-size: 1.25rem;
    border-radius: 5px;
    background-color: transparent;
}

aside.menu .menu-list .menu-item-small a {
    font-size: 1.0rem;
}

aside.menu .menu-list .menu-item-large a {
    font-size: 1.50rem;
}

div.columns.menu-logo-div {
    margin-bottom: 20px;
}

.menu-logo-img {
    height: 40px;
    width: auto;
    min-width: 180px;
}

aside.menu .menu-list a:hover {
    background-color: #2a4b70;
}

aside.menu .menu-list a.is-active {
    background-color: #173c67;
}

aside.menu .menu-list a .icon {
    margin-right: 5px;
}


aside.menu .menu-list .menu-group-label i.toggle-icon {
    transition-duration: 500ms;
    transition-property: transform;
    transform-origin: center;
}

aside.menu .menu-list .menu-group-label.is-open i.toggle-icon {
    transform: rotate(90deg)
}

aside.menu .menu-list .sub-menu {
    margin-top: 0px;
    margin-left: 60px;
    margin-right: 0px;
    font-size: 1.15rem;
    max-height: 0;
    overflow: hidden;
    transition-duration: 500ms;
    transition-property: max-height;
}

aside.menu .menu-list .sub-menu.is-open {
    /* TODO figure out a better way to calculate height than fixed */
    max-height: calc(var(--sub-menu-size)*60px);
}

aside.menu .menu-label {
    color: white;
    padding-left: 18px;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.menu-item-privacy-policy {
    margin-top: 60px;
}

.red-rectangle-counter {
    top: 50%;
    bottom: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: red;
    border-radius: 5px;
    min-width: 25px;
    padding: 0px 5px 0px 5px;
    font-size: 1.15rem;
    margin-left: 10px;
}


.content-header {
    background-color: white;
    padding: 20px;
    box-shadow: 0px 3px 6px #00000029;
}

.content-header h3 {
    color: rgb(var(--dark-blue-rgb));
}

.content-header .columns {
    margin: 0px;
    padding: 0px;
}

.content-header .columns .column {
    padding: 0px;
}

#entity-portfolio-container tr.tooltip {
    position: relative;
    cursor: pointer;
}

/* .button.table-btn {
    height: 1.5em !important;
    justify-content: center;
    padding-bottom: calc(.5em - 1px);
    padding-left: 1em;
    padding-right: 1em;
    padding-top: calc(.5em - 1px);
    text-align: center;
    white-space: nowrap;
} */


.section-title {
    color: rgb(var(--dark-blue-rgb)) !important;
    border-bottom: solid;
    border-bottom-width: 2px;
    border-color: rgb(var(--dark-blue-rgb));
}

.section-title.has-text-danger {
    color: rgb(var(--bulma-danger-rgb)) !important;
}

.portfolio-search-box {
    width: 100%;
    height: 40px;
    padding-left: 15px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid #16395A;
    background-color: #f0f0f052;
    box-shadow: none;
    font-size: large;
    transition: box-shadow 0.3s ease;
}

input.portfolio-search-box:focus {
    outline: none !important;
    border-radius: 3px;
    box-shadow: 1px 1px 8px #16395A;
}


/* Allows hover highlighting on datatables */
table.dataTable.table td,
table.dataTable.table th {
    background-color: unset;
}

/* action-btns - row with more padding due to standard button icon
first-child will be the action button row
*/
table.dataTable.table.action-btns td:not(:first-child) {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

table.dataTable.table.action-btns td:first-child {
    vertical-align: middle;
}

/* Make Bulma's hover highlighting a darker shade of gray */
.table.is-hoverable tbody tr:hover {
    background-color: #e0e0e0 !important;
}

/* prevent datatables pagination-list from wrapping */
.dataTables_paginate ul.pagination-list {
    flex-wrap: nowrap;
}

/* custom bulma search input for datatables - hide clear icon when placeholder shown */
.dataTable-search-input:placeholder-shown~.clear-icon-span {
    display: none;
}


ol.glossary-alpha {
    counter-reset: item
}

.glossary-alpha li {
    display: block;
    counter-increment: item;
}

.glossary-alpha li:before {
    content: " (" counter(item, lower-alpha)") ";
    padding-right: 10px;
}

ol.glossary-roman {
    counter-reset: item2
}

.glossary-roman li {
    display: block;
    counter-increment: item2;
}

.glossary-roman li:before {
    content: " (" counter(item2, lower-roman)")   ";
    padding-right: 10px;
}

ol.glossary-roman {
    list-style-type: lower-roman;
}

span.html-tooltip {
    color: var(--bulma-link-text);
    font-weight: 600;
    cursor: pointer;
}

/* custom css for a single field for Robert */
#div_id_relevant_activities>div.control>div.custom-control:first-child {
    margin-bottom: 10px;
}