/* Redgate Wealth theme, derived from DiscretionaryPortfolioManagement.trdp. */
@font-face {
    font-family: 'Redgate Sans';
    src: url('../fonts/SFProDisplay-Regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Redgate Sans';
    src: url('../fonts/SFProDisplay-Semibold.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Redgate Sans';
    src: url('../fonts/SFProDisplay-Light.woff2') format('woff2');
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

:root {
    --redgate-navy: #1d3160;
    --redgate-navy-dark: #14224d;
    --redgate-red: #f33a3b;
    --redgate-blue-muted: #7783a0;
    --redgate-grey-green: #808d88;
    --redgate-border: #e4eef3;
    --redgate-surface: #f6f9f7;
    --redgate-warm: #fdf7ed;
    --redgate-white: #fff;
    --visualsColor: var(--redgate-navy);
    --titlesColor: var(--redgate-navy);
    --textGreyColor: #647083;
    --textBlackColor: #1d3160;
    --visualsColorLighter: #334a7d;
}

body {
    background: var(--redgate-surface);
    color: var(--redgate-navy);
    font-family: 'MarkPro', 'Redgate Sans', Arial, sans-serif;
}

.nav-link {
    color: var(--titlesColor);
}

.nav-link.active {
    color: var(--titlesColor);
    border-top-color: var(--redgate-red);
}
.form__submit button{
    background: var(--visualsColor);
}
.single__input__item input, .single__input__item .form-control {
    color: var(--visualsColor);
    border-color: var(--visualsColor);
}

::placeholder{
    color: var(--textGreyColor);
}

.common__table__area .table thead th {
    background: var(--redgate-white);
    color: var(--redgate-navy);
}

.table__title h4 {
    color: var(--titlesColor);
}

.common__table__mobile__title {
    background: var(--redgate-navy);
}

.accordion-button h5 {
    color: var(--titlesColor);
}

.accordion__div h6 {
    color: var(--textGreyColor);
}

.collapse__table__wrapper__row .table__th {
    color: var(--titlesColor);
}

.collapse__table__wrapper__row .table__data {
    color: var(--textGreyColor);
}

.collapse__table__wrapper__row a {
    color: var(--textGreyColor);
}

.portfolio__overview h4 {
    color: var(--textGreyColor);
}

.overview__blk__inner .sub--text {
    color: var(--textGreyColor);
}

.portfolio__overview h3 {
    color: var(--textBlackColor);
}

.header__menu ul li .menu__link:hover {
    color: var(--visualsColor);
}

.header__menu ul li .menu__link {
    color: var(--textGreyColor);
}

.header__menu ul li .menu__link::before {
    background: var(--redgate-red);
}

.common__table__area .table tbody td {
    color: var(--textGreyColor);
}

.header__right__calender {
    background: var(--visualsColor);
}

.myCustomBtn {
    background-color: var(--visualsColor);
}

.btn-outline-secondary:hover {
    background-color: var(--visualsColor);
}

.dropdown-menu {
    border-color: var(--visualsColor);
}

.dropdown-item:focus {
    color: var(--visualsColor);
}

.dropdown-item {
    color: var(--visualsColor);
}

.ui-datepicker table {
    background-color: var(--visualsColor);
}

.ui-datepicker .ui-datepicker-header {
    background-color: white;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button {
    background-color: white;
}

.ui-datepicker select.ui-datepicker-month, .ui-datepicker select.ui-datepicker-year {
    background-color: white;
}

.single__calender label {
    color: var(--visualsColor);
}

tr .vip__data__wrap p {
    color: var(--textGreyColor);
}

tr a {
    color: var(--textGreyColor);
}

.common__btn.bordered:hover, .common__btn.active {
    background: var(--visualsColor);
}

.common__btn.bordered {
    border-color: var(--visualsColor);
}



.common__btn {
    background: var(--visualsColor);
}

.linkbutton {
    background: var(--visualsColor);
}

.function__blue__style p {
    color: var(--titlesColor);
}

.function__blue__style input {
    color: var(--textGreyColor);
}

.form__logo a img {
    margin-top: 25px;
}

.menu-open {
    color: var(--visualsColor);
}

.offcanvas-area {
    background: var(--redgate-navy-dark);
    opacity: 0.98;
}

/* Global structure and typography */
h1,
h2,
h3,
h4,
h5,
h6,
.table__title h4,
.portfolio__overview h3 {
    color: var(--redgate-navy);
    font-family: 'MarkPro-Light', 'Redgate Sans', Arial, sans-serif;
    font-weight: 300;
    letter-spacing: -0.01em;
}

a {
    color: var(--redgate-navy);
}

a:hover,
a:focus {
    color: var(--redgate-red);
}

.main__area {
    background: var(--redgate-surface);
    padding-top: 28px;
}

/* Header mirrors the report: white canvas, navy type and a restrained red accent. */
.header__area {
    background: var(--redgate-white);
    border-bottom: 1px solid var(--redgate-border);
    box-shadow: 0 4px 18px rgba(29, 49, 96, 0.06);
    height: 76px;
    padding: 12px 22px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo__main {
    align-items: center;
    border-right: 1px solid var(--redgate-border);
    display: flex;
    min-width: 250px;
    padding: 0 28px 0 0;
}

.logo__main > a:not(.logo-mobile) img {
    display: block;
    height: auto;
    margin: 0;
    max-height: 38px;
    width: 212px;
}

.logo-mobile img {
    height: auto;
    max-width: 150px;
}

.header__portfolio {
    align-items: center;
    display: flex;
    flex: 1 1 260px;
    max-width: 420px;
    min-width: 120px;
    overflow: hidden;
    padding: 0 24px;
}

.header__portfolio-name {
    color: var(--redgate-navy);
    display: block;
    font-family: 'MarkPro-Light', 'Redgate Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header__portfolio-select {
    background-color: var(--redgate-white);
    border: 0;
    color: var(--redgate-navy);
    cursor: pointer;
    display: block;
    font-family: 'MarkPro-Light', 'Redgate Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    padding: 8px 28px 8px 8px;
    text-align: center;
    text-overflow: ellipsis;
    width: 100%;
}

.header__portfolio-select:focus {
    box-shadow: 0 0 0 2px rgba(243, 58, 59, 0.18);
    outline: 1px solid var(--redgate-red);
}

.header__portfolio-select option {
    color: var(--redgate-navy);
    text-align: left;
}

.header__menu,
.header__right {
    flex: 0 0 auto;
}

.header__menu ul li .menu__link {
    color: var(--redgate-navy);
    font-family: 'MarkPro', 'Redgate Sans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
}

.header__menu ul li .menu__link:hover,
.header__menu ul li .menu__link:focus,
.header__menu ul li .menu__link.active {
    color: var(--redgate-red);
}

.header__menu ul li .menu__link::before {
    background: var(--redgate-red);
    border-radius: 0;
    height: 3px;
}

.language__dropdown__wrap {
    border-color: var(--redgate-border);
}

.language__dropdown__wrap .dropdown-toggle,
.user__dropdown .dropdown-toggle,
.menu-open {
    color: var(--redgate-navy);
}

.new-mail-alert {
    background: var(--redgate-red);
}

.dropdown-menu {
    background: var(--redgate-white);
    border: 1px solid var(--redgate-border);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(29, 49, 96, 0.12);
    padding: 6px;
}

.dropdown-item {
    border-radius: 4px;
    color: var(--redgate-navy);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
    background: var(--redgate-warm);
    color: var(--redgate-red);
}

/* Buttons and form controls */
.common__btn,
.linkbutton,
.myCustomBtn,
.form__submit button {
    background: var(--redgate-navy);
    border: 1px solid var(--redgate-navy);
    border-radius: 4px;
    color: var(--redgate-white);
    font-family: 'MarkPro', 'Redgate Sans', Arial, sans-serif;
    font-weight: 600;
    box-shadow: none;
}

.common__btn:hover,
.common__btn:focus,
.linkbutton:hover,
.linkbutton:focus,
.myCustomBtn:hover,
.myCustomBtn:focus,
.form__submit button:hover,
.form__submit button:focus {
    background: var(--redgate-red);
    border-color: var(--redgate-red);
    color: var(--redgate-white);
}

.common__btn.bordered {
    background: var(--redgate-white);
    border-color: var(--redgate-navy);
    color: var(--redgate-navy);
}

.common__btn.bordered:hover,
.common__btn.bordered:focus,
.common__btn.active {
    background: var(--redgate-navy);
    border-color: var(--redgate-navy);
    color: var(--redgate-white);
}

input.form-control,
select.form-control,
textarea.form-control,
.field-input,
.single__input__item input,
.single__input__item .form-control,
.investment__top__filter__search__bar input {
    background-color: var(--redgate-white);
    border: 1px solid var(--redgate-blue-muted);
    border-radius: 4px;
    color: var(--redgate-navy);
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus,
.field-input:focus,
.single__input__item input:focus,
.single__input__item .form-control:focus,
.investment__top__filter__search__bar input:focus {
    border-color: var(--redgate-red);
    box-shadow: 0 0 0 3px rgba(243, 58, 59, 0.12);
    outline: none;
}

::placeholder {
    color: var(--redgate-blue-muted);
}

/* Report-like cards and tables */
.common__table__area,
.portfolio__overview,
.function__area,
.single__form__blk,
.message__area,
.topic__message__wrapper {
    background: var(--redgate-white);
    border: 1px solid var(--redgate-border);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(29, 49, 96, 0.05);
}

.table__title {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    min-height: 64px;
    padding: 18px 24px;
}

.table__title h4 {
    border-bottom: 0;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 0;
    padding-bottom: 0;
    width: 100%;
}

.common__table__area .table {
    color: var(--redgate-navy);
    margin-bottom: 0;
}

.common__table__area .table thead th {
    background: var(--redgate-white);
    border-bottom: 1px solid var(--redgate-navy);
    border-top: 1px solid var(--redgate-navy);
    color: var(--redgate-navy);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.015em;
    padding: 12px 10px;
}

.common__table__area .table tbody td {
    border-bottom: 1px solid var(--redgate-border);
    color: var(--redgate-navy);
    font-size: 14px;
    height: 35px;
    padding: 0 10px;
    vertical-align: middle;
}

.investment__area .common__table__area .table tbody tr {
    height: 35px;
}

.investment__area .common__table__area .table tbody td {
    box-sizing: border-box;
    height: 35px;
    line-height: 18px;
    padding-bottom: 0;
    padding-top: 0;
    white-space: nowrap;
}

.investment__area .common__table__area .table tbody tr:last-child td {
    height: 35px;
    padding-bottom: 0;
    padding-top: 0;
}

.common__table__area .table tbody tr:hover td {
    background: var(--redgate-warm);
}

.common__table__mobile__title {
    background: var(--redgate-navy);
    color: var(--redgate-white);
    font-weight: 600;
}

.accordion-item {
    border-color: var(--redgate-border);
}

.accordion-button,
.accordion-button:not(.collapsed) {
    background: var(--redgate-white);
    border-color: var(--redgate-border);
    box-shadow: none;
}

.accordion-button h5,
.accordion__div h6,
.table__th,
.table__data {
    color: var(--redgate-navy);
}

.collapse__table__wrapper__row {
    background: var(--redgate-surface);
}

.collapse__table__wrapper__row:nth-child(even) {
    background: var(--redgate-white);
}

/* Portfolio summary and allocation chart share the top row equally. */
.portfolio__dashboard {
    background: var(--redgate-white);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 26px 28px;
    width: 100%;
}

.portfolio__dashboard-panel {
    min-width: 0;
}

.portfolio__dashboard-summary {
    border-right: 1px solid var(--redgate-border);
    padding-right: 28px;
}

.portfolio__dashboard-summary .portfolio-report__summary {
    margin: 0;
}

.portfolio__allocation {
    padding-left: 28px;
}

.portfolio__allocation h2 {
    border-bottom: 1px solid var(--redgate-navy);
    color: var(--redgate-navy);
    font-family: 'MarkPro-Light', 'Redgate Sans', Arial, sans-serif;
    font-size: 19px;
    font-weight: 300;
    line-height: 1.2;
    margin: 0 0 12px;
    padding-bottom: 6px;
}

.portfolio__allocation-content {
    height: 250px;
    min-height: 250px;
    position: relative;
    width: 100%;
}

.portfolio__allocation-content canvas {
    height: 100% !important;
    width: 100% !important;
}

/* Portfolio values and the report's data-visualisation palette. */
.portfolio__overview {
    color: var(--redgate-navy);
    margin-bottom: 0;
    padding: 22px 24px;
}

.portfolio__overview h4 {
    color: var(--redgate-blue-muted);
    font-size: 14px;
    font-weight: 400;
}

.portfolio__overview h3 {
    color: var(--redgate-navy);
    font-size: 24px;
    font-weight: 300;
}

.overview__blk__inner .sub--text {
    color: var(--redgate-blue-muted);
}

/* Compact holdings report shown below the allocation chart. */
.portfolio-report {
    background: var(--redgate-white);
    padding: 26px 28px 40px;
}

.portfolio-report--details {
    padding-top: 30px;
}

.portfolio-report__section {
    margin: 0 0 26px;
}

.portfolio-report__section h2,
.portfolio-report__legacy .table__title h4 {
    color: var(--redgate-navy);
    font-family: 'MarkPro-Light', 'Redgate Sans', Arial, sans-serif;
    font-size: 19px;
    font-weight: 300;
    line-height: 1.2;
    margin: 0 0 12px;
}

.portfolio-report__summary {
    margin-bottom: 34px;
    max-width: 100%;
}

.portfolio-report__table-wrap {
    overflow-x: auto;
    width: 100%;
}

.portfolio-report__table {
    border-collapse: collapse;
    color: var(--redgate-navy);
    font-family: 'MarkPro', 'Redgate Sans', Arial, sans-serif;
    font-size: 11px;
    line-height: 1.15;
    margin: 0;
    min-width: 820px;
    table-layout: fixed;
    width: 100%;
}

.portfolio-report__summary-table {
    min-width: 520px;
}

.portfolio-report__table th,
.portfolio-report__table td {
    background: var(--redgate-white);
    border: 0;
    border-bottom: 1px solid rgba(29, 49, 96, 0.5);
    color: var(--redgate-navy);
    height: 27px;
    padding: 3px 5px;
    vertical-align: middle;
}

.portfolio-report__table th {
    font-weight: 600;
    white-space: normal;
}

.portfolio-report__table td {
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.portfolio-report__table tbody tr:hover td {
    background: var(--redgate-warm);
}

.portfolio-report__table .number {
    text-align: right;
}

.portfolio-report__table .symbol {
    width: 12%;
}

.portfolio-report__table .instrument {
    width: 28%;
}

.portfolio-report__summary-table th:first-child {
    width: 70%;
}

.portfolio-report__summary-table th:nth-child(2) {
    width: 20%;
}

.portfolio-report__summary-table th:nth-child(3) {
    width: 10%;
}

.portfolio-report__total-row td {
    border-bottom-color: var(--redgate-navy);
    font-weight: 600;
}

.portfolio-report__legacy .table__title {
    background: var(--redgate-white);
    min-height: 0;
    padding: 0;
}

.portfolio-report__legacy .common__table__area {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 26px;
}

.portfolio-report__legacy .common__table__area .table thead th,
.portfolio-report__legacy .common__table__area .table tbody td {
    font-size: 11px;
    height: 27px;
    line-height: 1.15;
    padding: 3px 5px;
}

.portfolio-report__legacy .common__table__area .table tbody td {
    transition: background-color 0.15s ease;
}

.portfolio-report__legacy .common__table__area .table tbody tr:hover td {
    background: var(--redgate-warm);
}

/* Pending and executed orders use the same compact typography as the report. */
.orders-report {
    background: var(--redgate-white);
    margin-top: 22px;
    padding: 20px 28px 34px;
}

.orders-report__title h2 {
    color: var(--redgate-navy);
    font-family: 'MarkPro-Light', 'Redgate Sans', Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.2;
    margin: 0 0 8px;
}

.orders-report .common__table__area {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    overflow-x: auto;
}

.orders-report .common__table__area .table {
    border-collapse: collapse;
    color: var(--redgate-navy);
    font-size: 11px;
    line-height: 1.15;
    margin: 0;
    min-width: 1040px;
    width: 100%;
}

.orders-report .common__table__area .table thead th,
.orders-report .common__table__area .table tbody td,
.orders-report .common__table__area .table tbody tr:last-child td {
    background: var(--redgate-white);
    border: 0;
    border-bottom: 1px solid rgba(29, 49, 96, 0.55);
    color: var(--redgate-navy);
    font-size: 11px;
    height: 27px;
    line-height: 1.15;
    padding: 3px 5px;
    vertical-align: middle;
}

.orders-report .common__table__area .table thead th {
    font-weight: 600;
    white-space: normal;
}

.orders-report .common__table__area .table tbody td {
    white-space: nowrap;
}

.orders-report .common__table__area .table thead i {
    display: none;
}

.orders-report .vip__data__wrap p {
    color: var(--redgate-navy);
    line-height: 1.05;
    margin: 0;
}

.orders-report .dataTables_length,
.orders-report .dataTables_filter,
.orders-report .dataTables_info {
    display: none;
}

.circle--sm { background: #1d3160; }
.circle--sm2 { background: #7783a0 !important; }
.circle--sm3 { background: #808d88 !important; }
.circle--sm4 { background: #978d7f !important; }
.circle--sm5 { background: #922323 !important; }
.circle--sm6 { background: #f33a3b !important; }
.circle--sm7 { background: #f88989 !important; }

.text--red,
.field-required-error,
.alert-danger {
    color: #922323 !important;
}

.alert-danger {
    background: #fdf0f0;
    border-color: #f88989;
}

.alert-success {
    background: #ebf5f1;
    border-color: #d6ebe3;
    color: var(--redgate-navy);
}

.ui-datepicker table {
    background-color: var(--redgate-navy);
}

.ui-datepicker .ui-datepicker-header {
    border-bottom: 1px solid var(--redgate-border);
    color: var(--redgate-navy);
}

@media (max-width: 991.98px) {
    .header__area {
        height: 68px;
        padding: 10px 16px;
    }

    .logo__main {
        border-right: 0;
        min-width: 0;
        padding-right: 0;
    }

    .header__portfolio {
        max-width: none;
        min-width: 70px;
        padding: 0 14px;
    }

    .header__portfolio-name,
    .header__portfolio-select {
        font-size: 15px;
    }

    .logo-mobile img {
        max-height: 34px;
        max-width: 185px;
    }

    .main__area {
        padding-top: 18px;
    }
}

@media (max-width: 575.98px) {
    .logo-mobile img {
        max-width: 150px;
    }

    .header__portfolio {
        min-width: 48px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .header__portfolio-name,
    .header__portfolio-select {
        font-size: 13px;
    }

    .table__title {
        padding-left: 18px;
        padding-right: 18px;
    }

    .table__title h4 {
        font-size: 19px;
    }

    .portfolio-report {
        padding: 20px 16px 30px;
    }

    .portfolio__dashboard {
        padding: 20px 16px;
    }

    .portfolio__allocation-content {
        height: 230px;
        min-height: 230px;
    }

    .portfolio-report__section h2,
    .portfolio-report__legacy .table__title h4 {
        font-size: 17px;
    }

    .orders-report {
        margin-top: 16px;
        padding: 18px 16px 28px;
    }

    .orders-report__title h2 {
        font-size: 17px;
    }
}

@media (max-width: 991.98px) {
    .portfolio__dashboard {
        grid-template-columns: minmax(0, 1fr);
    }

    .portfolio__dashboard-summary {
        border-bottom: 1px solid var(--redgate-border);
        border-right: 0;
        margin-right: 0;
        padding-bottom: 24px;
        padding-right: 0;
    }

    .portfolio__allocation {
        padding-left: 0;
        padding-top: 24px;
    }
}

