/* v2: account types, header identity, as-of date, grouped holdings, trades, cash transfer, reports */
body.acct-dpm [data-ts-only], body.acct-ts [data-dpm-only] { display: none !important; }
.switcher { gap: 8px; padding: 0 12px 0 14px; }
.switcher__id { font-weight: 600; font-variant-numeric: tabular-nums; }
.switcher__name { color: #5A5D68; font-weight: 400; }
.tag--type { height: 22px; padding: 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em; background: #FBEBD3; color: #21315D; }
body.top-navy .header__area.header--bar:not(.is-stuck) .switcher { color: #fff; background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
body.top-navy .header__area.header--bar:not(.is-stuck) .switcher__name { color: rgba(255,255,255,.7); }
body.top-navy .header__area.header--bar:not(.is-stuck) .switcher .ic { color: rgba(255,255,255,.7); }
body.top-navy .header__area.header--bar:not(.is-stuck) .tag--type { background: rgba(255,255,255,.14); color: #fff; }
body.top-navy .header__area.header--bar:not(.is-stuck) .switcher:hover { background: rgba(255,255,255,.08); }
.account-menu { min-width: 320px; }
.account-item { height: auto !important; padding: 8px 10px !important; }
.account-item::before { content: "" !important; display: block !important; width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(27,29,36,.18); }
.account-item.active::before { background: #21315D; box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px #21315D; }
.account-item__body { display: flex; flex-direction: column; gap: 1px; }
.account-item__id { font-size: 14px; font-weight: 500; }
.account-item__sub { font-size: 12.5px; color: #8B8E99; }
.language__dropdown__wrap .dropdown-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; padding: 0; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: #1B1D24; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(27,29,36,.08); background: #fff; }
.language__dropdown__wrap .dropdown-toggle::after { display: none; }
.language__dropdown__wrap .dropdown-toggle:hover { box-shadow: inset 0 0 0 1px rgba(27,29,36,.16); }
body.top-navy .header__area.header--bar:not(.is-stuck) .language__dropdown__wrap .dropdown-toggle { color: #fff; background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.userbtn { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; background: #21315D; color: #fff; }
.userbtn .bi { width: 18px; height: 18px; }
.user__dropdown .dropdown-toggle:hover .userbtn { background: #182548; }
body.top-navy .header__area.header--bar:not(.is-stuck) .userbtn { background: #fff; color: #21315D; }
.header__area.header--bar.is-stuck .language__dropdown__wrap .dropdown-toggle, .header__area.header--bar.is-stuck .userbtn, .header__area.header--bar.is-stuck .switcher { height: 36px; }
.header__right { gap: 8px; }
@media (max-width: 1199px) { .switcher__name { display: none; } }
@media (max-width: 991px) { .account__dropdown, .language__dropdown__wrap { display: none; } }

/* Hero */
.hero__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.asof__btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 10px; border-radius: 10px; border: 0; background: rgba(27,29,36,.05); color: #5A5D68; font-size: 13px; cursor: pointer; }
.asof__btn b { font-weight: 600; color: #1B1D24; font-variant-numeric: tabular-nums; }
.asof span.asof__btn { cursor: default; pointer-events: none; }
.asof__btn .ic { width: 14px; height: 14px; color: #8B8E99; } .asof__btn .ic--chev { width: 12px; height: 12px; }
.asof__btn:hover { background: rgba(27,29,36,.08); }
body.top-navy .hero .asof__btn { background: rgba(255,255,255,.10); color: rgba(255,255,255,.75); } body.top-navy .hero .asof__btn b { color: #fff; } body.top-navy .hero .asof__btn .ic { color: rgba(255,255,255,.7); } body.top-navy .hero .asof__btn:hover { background: rgba(255,255,255,.16); }
.holdings-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.holdings-heading h2 { margin: 0; }
.asof__menu { padding: 12px; min-width: 300px; }
.asof__row .field--date { width: 100% !important; }
.asof__quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 0 6px; }
.asof__quick a { font-size: 13px; color: #21315D; padding: 4px 10px; border-radius: 8px; background: #FDF5E9; }
.asof__quick a:hover { background: #FBEBD3; }
.asof__actions { padding-top: 4px; }
.hero__foot .muted { font-size: 14px; }
.portfolio-page .hero__value { margin-top: 20px; }
@media (max-width: 767px) { .portfolio-page .hero__value { margin-top: 12px; } }
.hero__metrics .col-md-4 { flex: 0 0 auto; width: auto; }
@media (min-width: 992px) { .hero__metrics { justify-content: flex-end; gap: 0 40px; } .hero__metrics .col-md-4 { padding: 0; } }

/* Chart extras */
.legend-inline__dots { width: 14px; height: 0; border-top: 2px dotted #8B8E99; }
.chart .line-bench-idx { fill: none; stroke: #8B8E99; stroke-width: 1.6; stroke-dasharray: 2 4; stroke-linecap: round; }
.chart .axis-text--y { font-size: 11px; fill: #B6B8C2; }
body.top-navy .chart .axis-text--y { fill: #B6B8C2; }
.period-summary { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 10px 2px 2px; font-size: 14px; }
.ps__item { display: inline-flex; align-items: center; gap: 8px; }
.ps__label { color: #8B8E99; }
.ps__item b { font-weight: 500; }
.ps__item .chip { font-size: 13px; padding: 2px 8px; }
.ps__note { margin-left: auto; font-size: 12.5px; color: #B6B8C2; }

/* Grouped holdings table */
.table--grouped tbody tr.group td { background: #FEFAF3; font-weight: 500; color: #21315D; padding-top: 9px; padding-bottom: 9px; }
.table--grouped tbody tr.group:hover td { background: #FDF5E9; }
.table--grouped tbody tr.group .group__val { color: #21315D; }
.table--grouped tbody tr.total td { font-weight: 600; color: #1B1D24; box-shadow: 0 -1px 0 rgba(27,29,36,.10); }
.table--grouped tbody tr.total:hover td { background: transparent; }
.table--grouped td .inst { display: flex; flex-direction: column; gap: 1px; }
.table--grouped td .inst__name { font-weight: 500; color: #1B1D24; }
.table--grouped td .inst__sub { font-size: 12.5px; color: #8B8E99; font-variant-numeric: tabular-nums; }
.table--grouped td.is-pos { color: #1F9D55; } .table--grouped td.is-neg { color: #F33A3B; }
.table--grouped thead th.is-num, .table--grouped td.is-num { text-align: right !important; }
.alloc__legend--col { flex-direction: column; gap: 8px; }
.alloc__legend--col li { justify-content: space-between; }
.alloc__legend--col li b { margin-left: auto; }

/* Trades and tables with instrument column */
.inst { display: flex; flex-direction: column; gap: 1px; }
.inst__name { font-weight: 500; color: #1B1D24; white-space: nowrap; }
.inst__sub { font-size: 12.5px; color: #8B8E99; }
td.is-pos { color: #1F9D55 !important; } td.is-neg { color: #F33A3B !important; }
.section-stack { display: flex; flex-direction: column; gap: 20px; }

/* Cash transfer */
.bank { display: grid; grid-template-columns: 220px minmax(0,1fr) auto; gap: 10px 16px; align-items: center; padding: 0 22px 8px; }
.bank__label { font-size: 14px; color: #8B8E99; }
.bank__value { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.bank__copy { font-size: 13px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #FDF5E9; color: #21315D; font-size: 14px; margin: 0 22px 22px; }
.note .ic { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.note--plain { padding: 0; border-radius: 0; background: none; }
.note--muted { color: #8B8E99; font-size: 13px; text-wrap: pretty; }
.manager { display: flex; align-items: center; gap: 14px; padding: 0 22px 22px; }
.manager__avatar { width: 44px; height: 44px; border-radius: 50%; background: #FBEBD3; color: #21315D; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.manager__name { font-weight: 500; } .manager__sub { font-size: 13px; color: #8B8E99; }
.manager__links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.manager__phone { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border: 1px solid #ECECEF; border-radius: 12px; color: #5A5D68; font-size: 14px; white-space: nowrap; }

/* Reports list */
.reports { display: flex; flex-direction: column; }
.report { display: grid; grid-template-columns: minmax(0,1.2fr) auto auto auto; gap: 14px; align-items: center; padding: 14px 22px; border-top: 1px solid rgba(27,29,36,.06); }
.report:first-child { border-top: 0; }
.report__name { font-weight: 500; } .report__sub { font-size: 13px; color: #8B8E99; }
.report .controls { flex-wrap: nowrap; }
.report__actions { display: flex; gap: 6px; }
@media (max-width: 991px) { .report { grid-template-columns: 1fr; } .bank { grid-template-columns: 1fr; } }

/* Orders: subscription form */
.subform { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 20px; }
.price-box { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 12px; background: #FEFAF3; }
.price-box__label { font-size: 13px; color: #8B8E99; }
.price-box__value { font-family: var(--c-font-display); font-weight: 500; font-size: 26px; letter-spacing: -.03em; }
.price-box__sub { font-size: 13px; color: #5A5D68; }
.attach { display: flex; flex-direction: column; gap: 8px; }
.attach a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #21315D; }
.attach a .ic { width: 16px; height: 16px; flex: 0 0 16px; color: #8B8E99; }
.attach a span { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.attach a:hover span, .attach a:focus-visible span { text-decoration-thickness: 2px; }
@media (max-width: 991px) { .subform { grid-template-columns: 1fr; } }
.table--grouped td .inst__name { white-space: normal; max-width: 360px; line-height: 1.35; }
.table--grouped thead th, .table--grouped tbody td { padding-left: 10px !important; padding-right: 10px !important; }
.table--grouped thead th:first-child, .table--grouped tbody td:first-child { padding-left: 22px !important; }
.table--grouped thead th:last-child, .table--grouped tbody td:last-child { padding-right: 22px !important; }
/* Plain pages: navy band ends under the page title */
body.top-navy.page-plain .pagehead h1 { color: #fff; }
body.top-navy.page-plain .pagehead p { color: rgba(255,255,255,.65); }
body.top-navy.page-plain .pagehead .btn-primary { background: #fff !important; color: #21315D !important; }
body.top-navy.page-plain .pagehead .btn-primary:hover { background: #FBEBD3 !important; }
body.page-plain .pagehead { margin-top: 16px; padding-bottom: 8px; }
@media (max-width: 991px) { .account__dropdown, .language__dropdown__wrap { display: none !important; } }
@media (max-width: 767px) { .ps__note { display: none; } .period-summary { gap: 8px 16px; } .bank { gap: 4px 12px; } .bank__copy { justify-self: start; margin-bottom: 8px; } .report .controls { flex-wrap: wrap; } }
/* Account selector styled like the as-of pill */
.switcher, .header__area.header--bar .switcher { height: 36px; padding: 0 10px 0 12px; border-radius: 10px; background: rgba(27,29,36,.05); box-shadow: none; font-size: 14px; gap: 8px; }
.switcher:hover, .switcher[aria-expanded="true"] { background: rgba(27,29,36,.08); box-shadow: none; }
.switcher .switcher__name { font-size: 14px; }
.tag--type { height: 20px; }
body.top-navy .header__area.header--bar:not(.is-stuck) .switcher { background: rgba(255,255,255,.10); box-shadow: none; }
body.top-navy .header__area.header--bar:not(.is-stuck) .switcher:hover, body.top-navy .header__area.header--bar:not(.is-stuck) .switcher[aria-expanded="true"] { background: rgba(255,255,255,.16); }
.account-menu { padding: 6px; }
.alloc--wide { padding-bottom: 20px; }
.alloc--wide .alloc__bar { height: 16px; }
.alloc--wide .alloc__legend--col { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
.alloc--wide .alloc__legend--col li { justify-content: flex-start; gap: 8px; }
.alloc--wide .alloc__legend--col li b { margin-left: 4px; }
.profile-menu .dropdown-item[data-group]::before { content: "" !important; display: block !important; width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(27,29,36,.18); }
.profile-menu .dropdown-item[data-group].active::before { background: #21315D; box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px #21315D; }
.inst__name { white-space: normal; max-width: 300px; line-height: 1.35; }
/* Controls that sit on the navy band: transparent style */
body.top-navy .on-navy .field, body.top-navy .on-navy .select, body.top-navy .on-navy .seg, body.top-navy .on-navy .btn-secondary { background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22) !important; }
body.top-navy .on-navy .field:hover, body.top-navy .on-navy .select:hover, body.top-navy .on-navy .btn-secondary:hover, body.top-navy .on-navy .select[aria-expanded="true"] { background: rgba(255,255,255,.08) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4) !important; }
body.top-navy .on-navy .field:focus-within { box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 0 0 3px rgba(255,255,255,.12) !important; }
body.top-navy .on-navy .field input { color: #fff; }
body.top-navy .on-navy .field input::placeholder, body.top-navy .on-navy .field__label { color: rgba(255,255,255,.6); }
body.top-navy .on-navy .field .ic, body.top-navy .on-navy .select .ic, body.top-navy .on-navy .btn-secondary .ic { color: rgba(255,255,255,.75); }
body.top-navy .on-navy .seg .btn { color: rgba(255,255,255,.7); }
body.top-navy .on-navy .seg .btn:hover { color: #fff; background: rgba(255,255,255,.08); }
body.top-navy .on-navy .seg .btn-check:checked + .btn { background: #FBEBD3 !important; color: #21315D !important; }
body.top-navy .on-navy .btn-primary { background: #fff !important; color: #21315D !important; }
body.top-navy .on-navy .btn-primary:hover { background: #FBEBD3 !important; }
/* Navy band controls: soft translucent fill like the as-of pill, no hairline */
body.top-navy .on-navy .field, body.top-navy .on-navy .select, body.top-navy .on-navy .seg, body.top-navy .on-navy .btn-secondary { background: rgba(255,255,255,.10) !important; box-shadow: none !important; }
body.top-navy .on-navy .field:hover, body.top-navy .on-navy .select:hover, body.top-navy .on-navy .btn-secondary:hover, body.top-navy .on-navy .select[aria-expanded="true"] { background: rgba(255,255,255,.16) !important; box-shadow: none !important; }
body.top-navy .on-navy .field:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.14) !important; background: rgba(255,255,255,.16) !important; }
body.top-navy .on-navy .seg .btn:hover { background: rgba(255,255,255,.10); }
body.top-navy .header__area.header--bar:not(.is-stuck) .mail a { background: rgba(255,255,255,.10) !important; box-shadow: none !important; }
body.top-navy .header__area.header--bar:not(.is-stuck) .mail a:hover { background: rgba(255,255,255,.16) !important; }
.card__body { padding: 0 22px 22px; }
.card__body .note { margin: 16px 0 0; }
.card__body .attach { padding: 16px 0 4px; }
.subform { display: block; }
/* Cards: keep inner bottom margins inside the card */
.table-card:not(.alloc-card):not(.settings) { display: flow-root; }
.table-card > .note:last-child, .table-card > .form:last-child + .note { margin-bottom: 22px; }
.table-card > .manager:last-child { padding-bottom: 22px; }
/* Tables end flush with the card: no gap under the last row, hover follows the rounded corners */
.common__table__area, .dataTables_wrapper, .table-card .table-responsive { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.common__table__area .table, .table-card .table { margin-bottom: 0 !important; }
.table-card .common__table__area .table tbody tr:last-child td { box-shadow: none !important; border-bottom: 0 !important; }
.table-card .common__table__area .table tbody tr:last-child td:first-child { border-bottom-left-radius: 16px; }
.table-card .common__table__area .table tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { display: none; }
/* Fixed header: shrinking it never changes the page height, so no stuck/unstuck loop */
.header__area.header--bar { position: fixed !important; top: 0; left: 0; right: 0; }
body { padding-top: 92px; }
@media (max-width: 767px) { body { padding-top: 60px; } }
/* Cards use a real border so row fills stay inside the outline */
.table-card, .chart-card, .alloc-card, .settings { border: 1px solid rgba(27,29,36,.08); box-shadow: none !important; }
.table-card .common__table__area .table tbody tr:last-child td:first-child { border-bottom-left-radius: 15px; }
.table-card .common__table__area .table tbody tr:last-child td:last-child { border-bottom-right-radius: 15px; }
/* Instrument names take the room they have; wrap only when the table is truly out of space */
.inst__name, .table--grouped td .inst__name { max-width: none; }
.table--grouped td:first-child { width: 46%; }
.userbtn { transition: width .28s cubic-bezier(.2,0,0,1), height .28s cubic-bezier(.2,0,0,1), background .18s ease; }
.header__area.header--bar.is-stuck .userbtn { width: 36px; height: 36px; border-radius: 11px; }
.header__area.header--bar.is-stuck .userbtn .bi { width: 16px; height: 16px; }
.user__dropdown .dropdown-toggle { padding: 0; display: inline-flex; }
/* User button: white pill like the mail button; only the navy header keeps it as a white-on-navy pill */
.userbtn, .header__area.header--bar.is-stuck .userbtn, body:not(.top-navy) .userbtn { background: #fff !important; color: #5A5D68 !important; box-shadow: inset 0 0 0 1px rgba(27,29,36,.08); }
.user__dropdown .dropdown-toggle:hover .userbtn, .user__dropdown .dropdown-toggle[aria-expanded="true"] .userbtn { background: #fff !important; color: #1B1D24 !important; box-shadow: inset 0 0 0 1px rgba(27,29,36,.16); }
body.top-navy .header__area.header--bar:not(.is-stuck) .userbtn { background: rgba(255,255,255,.10) !important; color: #fff !important; box-shadow: none; }
body.top-navy .header__area.header--bar:not(.is-stuck) .user__dropdown .dropdown-toggle:hover .userbtn { background: rgba(255,255,255,.16) !important; }
/* The toggle anchor around the user button carries no fill or circle of its own */
.user__dropdown .dropdown-toggle, .user__dropdown .dropdown-toggle:hover, .user__dropdown .dropdown-toggle[aria-expanded="true"], .user__dropdown .dropdown-toggle:focus { background: transparent !important; border-radius: 12px !important; box-shadow: none !important; }
/* User button on navy: solid white with a navy icon */
body.top-navy .header__area.header--bar:not(.is-stuck) .userbtn { background: #fff !important; color: #21315D !important; box-shadow: none; }
body.top-navy .header__area.header--bar:not(.is-stuck) .user__dropdown .dropdown-toggle:hover .userbtn, body.top-navy .header__area.header--bar:not(.is-stuck) .user__dropdown .dropdown-toggle[aria-expanded="true"] .userbtn { background: #FBEBD3 !important; color: #21315D !important; }
/* Mobile holdings: name, value, profit and loss without sideways scrolling */
@media (max-width: 767px) {
  .table--grouped thead th:nth-child(2), .table--grouped tbody td:nth-child(2), .table--grouped thead th:nth-child(4), .table--grouped tbody td:nth-child(4) { display: none; }
  .table--grouped thead th, .table--grouped tbody td { padding-left: 6px !important; padding-right: 6px !important; font-size: 13px; }
  .table--grouped thead th:first-child, .table--grouped tbody td:first-child { padding-left: 14px !important; width: auto; }
  .table--grouped thead th:last-child, .table--grouped tbody td:last-child { padding-right: 14px !important; }
  .table--grouped td .inst__name { font-size: 13.5px; white-space: normal; }
  .table--grouped td .inst__sub { font-size: 11.5px; }
  .table-card .table-responsive { overflow-x: visible; }
  .table--grouped { width: 100%; table-layout: fixed; }
  .table--grouped thead th:first-child { width: 44%; }
  .mail { display: block; }
}
@media (max-width: 767px) { .table--grouped, .common__table__area .table--grouped { min-width: 0 !important; width: 100% !important; } .table-card .table-responsive { overflow-x: auto; } }
.group__mobile { display: none; }
@media (max-width: 767px) {
  .table--grouped thead th:nth-child(3), .table--grouped tbody td:nth-child(3) { display: none; }
  .table--grouped thead th, .table--grouped tbody td { white-space: normal; }
  .table--grouped tbody td.is-num { white-space: nowrap; }
  .table--grouped thead th:first-child { width: 50%; }
  .group__mobile { display: block; font-size: 12px; font-weight: 400; color: #8B8E99; margin-top: 1px; }
  .table--grouped tbody tr.total td:nth-child(3) { display: none; }
}
@media (max-width: 767px) {
  .common__table__area .table--grouped { table-layout: fixed !important; }
  .table--grouped thead th { white-space: normal !important; font-size: 12px; line-height: 1.25; }
  .table--grouped thead th:first-child { width: 50%; }
  .table--grouped thead th:nth-child(5) { width: 28%; }
  .table--grouped thead th:nth-child(6) { width: 22%; }
}
/* ---- Round 2 from Merle ---- */
.asof__menu { padding: 12px 12px 8px; }
.seg--sm .btn, .seg--sm.btn-group > .btn { height: 28px; font-size: 13px; padding: 0 10px; }
.seg--sm { padding: 3px; height: 34px; }
.table--positions td .inst__name { white-space: normal; }
.table--positions thead th.is-num, .table--positions td.is-num { text-align: right !important; }
#allHoldings .ic { width: 14px; height: 14px; margin-left: 4px; transition: transform .2s ease; }
#allHoldings.is-open .ic { transform: rotate(180deg); }
/* sticky header inside the full holdings table */
@media (min-width: 768px) {
  .table--grouped thead th { position: sticky; top: 64px; z-index: 3; background: #fff; box-shadow: 0 1px 0 rgba(27,29,36,.08); }
  #holdingsWrap .table-responsive { overflow: visible; }
}
/* Trades */
.table-card__head--wrap { flex-wrap: wrap; align-items: center; }
.controls--card { gap: 8px; }
.controls--card .btn-sm { height: 40px; }
.holdings-sort { display: inline-flex; align-items: stretch; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(27,29,36,.08); }
.holdings-sort .select { background: transparent; box-shadow: none; }
.holdings-sort [data-holdings-sort-direction] { flex: 0 0 32px; width: 32px; padding: 0; justify-content: center; border-radius: 12px 0 0 12px; }
.holdings-sort #ddSort { padding-left: 0; border-radius: 0 12px 12px 0; }
.holdings-sort .select:hover { background: #F7F8FA; }
.holdings-sort .select:focus-visible { outline: 2px solid #8FB0E6; outline-offset: 2px; }
.collapse-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px rgba(27,29,36,.08); display: inline-flex; align-items: center; justify-content: center; color: #5A5D68; cursor: pointer; transition: transform .2s ease, box-shadow .15s ease; }
.collapse-btn:hover { box-shadow: inset 0 0 0 1px rgba(27,29,36,.16); color: #1B1D24; }
.collapse-btn .ic { width: 16px; height: 16px; }
.table-card.is-collapsed .card__collapse { display: none; }
.table-card.is-collapsed .collapse-btn { transform: rotate(180deg); }
.table-card.is-collapsed .table-card__head { margin-bottom: 0; padding-bottom: 20px; }
.field--search { min-width: 360px; }
tr.filters th { padding: 6px 10px 10px !important; box-shadow: 0 1px 0 rgba(27,29,36,.08) !important; }
tr.filters th:first-child { padding-left: 22px !important; } tr.filters th:last-child { padding-right: 22px !important; }
tr.filters::before, tr.filters th::before, tr.filters th::after { content: none !important; display: none !important; }
tr.filters[hidden] { display: none !important; }
.colfilter { width: 100%; min-width: 70px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px rgba(27,29,36,.10); font: inherit; font-size: 13px; color: #1B1D24; }
.colfilter:focus { outline: 0; box-shadow: inset 0 0 0 1px rgba(27,29,36,.2), 0 0 0 3px rgba(33,49,93,.12); }
.colfilter::placeholder { color: #B6B8C2; }
[data-filters].is-on { background: #FBEBD3 !important; color: #21315D !important; box-shadow: none !important; }
.inst__name--link { color: #1B1D24; text-decoration: none; }
.inst__name--link:hover { color: #21315D; text-decoration: underline; text-decoration-color: rgba(33,49,93,.4); }
/* Messages */
.msg__avatar--you { background: #21315D; color: #fff; font-size: 11px; }
.msg__count { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 6px; background: #F3F3F5; color: #5A5D68; font-size: 12px; font-weight: 500; vertical-align: middle; }
.msg__who { color: #1B1D24; font-weight: 500; }
.prefs--pad { padding: 0 22px 12px; }
.pref--inline { margin: 0; padding-left: 0; padding-right: 0; }
.pref--inline:hover { background: transparent; }
@media (max-width: 767px) { .field--search { min-width: 0; } .controls--card { width: 100%; } .table--grouped thead th { position: static; } }
.msg__avatar--you { background: #21315D !important; color: #fff !important; }
@media (min-width: 768px) { .common__table__area .table--grouped thead th { position: sticky !important; top: 64px; z-index: 3; background: #fff; } }
/* ---- Round 3 ---- */
/* Segment pills (asset class / region) */
.seg--sm { height: auto; padding: 3px; border-radius: 10px; gap: 2px; }
.seg--sm.btn-group > .btn, .seg--sm .btn { height: 28px !important; border-radius: 7px !important; padding: 0 10px; font-size: 13px; }
/* Card heads with a collapse control */
.collapse-btn { width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto; }
.card__tools { padding: 0 22px 14px; }
.card__tools .controls { flex-wrap: wrap; }
.table-card.is-collapsed .table-card__head { margin-bottom: 0; padding-bottom: 20px; }
/* Drawer accounts */
.offcanvas__label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8B8E99; padding: 2px 0 6px; }
.offcanvas__accounts { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px 10px; }
.offcanvas__accounts .account-item { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; }
.offcanvas__accounts .account-item:hover { background: var(--beige-2); }
.offcanvas__accounts .account-item.active { background: var(--beige); }
.offcanvas__accounts .account-item::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(27,29,36,.18); }
.offcanvas__accounts .account-item.active::before { background: #21315D; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px #21315D; }
.offcanvas__accounts .account-item__id { font-size: 14px; } .offcanvas__accounts .account-item__sub { font-size: 12px; }
/* Scroll hint on wide tables */
.scroll-shell { position: relative; }
.scroll-shell.can-scroll::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 48px; pointer-events: none; background: linear-gradient(to right in srgb, rgba(255,255,255,0), #fff 85%); border-bottom-right-radius: 15px; transition: opacity 150ms ease; }
.scroll-shell.can-scroll.at-end::after { opacity: 0; }
/* Cheat-sheet pass */
.pagehead h1, .table-card__head h2 { text-wrap: balance; }
.pagehead p, .table-card__head p, .pref__sub, .entry__sub { text-wrap: pretty; }
.inst__sub, .kv__value, .entry__title { overflow-wrap: anywhere; }
.btn, .select, .switcher, .userbtn, .collapse-btn, .icon-btn, .asof__btn { transition: background 150ms ease, box-shadow 150ms ease, color 150ms ease, scale 200ms ease-out; }
.btn:active, .select:active, .switcher:active, .collapse-btn:active, .icon-btn:active, .asof__btn:active { scale: .97; }
.inst__name--link, .link { text-underline-position: from-font; text-decoration-skip-ink: auto; }
@media (prefers-reduced-motion: reduce) { .btn, .select, .switcher, .userbtn, .collapse-btn, .icon-btn, .asof__btn, .header__area.header--bar .container-fluid, .logo__main img, .logo, .mail a, .user__dropdown .dropdown-toggle, .avatar { transition: none !important; } .line-value, .line-bench, .line-bench-idx, .fill-value, .fill-bench { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; } }
/* Mobile */
@media (max-width: 767px) {
  .shell { padding: 8px 10px 40px; gap: 14px; }
  .header__area.header--bar .container-fluid { padding: 0 10px; }
  .logo__main img { height: 26px; } .logo img.logo__mark { height: 32px; }
  .table-card, .chart-card { padding-left: 10px; padding-right: 10px; border-radius: 14px; }
  .table-card__head, .alloc, .form, .kv-grid, .prefs, .entries, .card__tools, .card__body, .bank, .reports .report, .msg { padding-left: 12px; padding-right: 12px; }
  .settings .section { padding-left: 12px; padding-right: 12px; }
  .common__table__area .table thead th:first-child, .common__table__area .table tbody td:first-child, tr.filters th:first-child { padding-left: 12px !important; }
  .common__table__area .table thead th:last-child, .common__table__area .table tbody td:last-child, tr.filters th:last-child { padding-right: 12px !important; }
  .chart-card { padding: 10px 6px 4px; }
  .chart { height: 250px; }
  .chart .axis-text--y { font-size: 10px; }
  .period-summary { padding: 8px 6px 0; }
  .card__tools { padding: 0 12px 12px; }
  .card__tools .field--date { flex: 1 1 40%; }
  .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scroll-shell.can-scroll::after { width: 40px; border-bottom-right-radius: 13px; }
  .hero__metrics { gap: 0 24px; margin-top: 10px; }
  .hero__metrics .col-6 { flex: 0 0 auto; width: auto; }
  .note { margin-left: 12px; margin-right: 12px; }
}
@media (min-width: 768px) { .table-responsive:has(> .table--grouped) { overflow: visible; } }
@media (max-width: 767px) { html, body { overflow-x: hidden; } }
/* ---- Round 4 ---- */
/* Heading qualifiers as quiet pills, one system */
.table-card__head h2 small { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: #F3F3F5; color: #5A5D68; font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.5; }
/* Navigational button */
.btn--go .ic { margin-left: 2px; }
.btn--go:hover .ic { transform: translateX(2px); }
.btn--go .ic { transition: transform 150ms ease; }
/* Drawer, simpler */
.offcanvas-menu .main-menu ul li a { font-family: var(--rg-font); font-size: 16px; font-weight: 500; letter-spacing: 0; height: 46px; color: #5A5D68; }
.offcanvas-menu .main-menu ul li a.active { font-weight: 600; }
.offcanvas__brand img { height: 26px; } .offcanvas__brand img:first-child { height: 32px; }
.offcanvas__current { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offcanvas__cur-body { min-width: 0; }
.offcanvas__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offcanvas__accounts { margin: 10px -8px 6px; }
.offcanvas__label { display: none; }
.offcanvas__links { border-top: 1px solid rgba(27,29,36,.06); padding-top: 10px; margin-top: 4px; }
.offcanvas__links a { height: 38px; font-size: 14px; color: #8B8E99; }
.offcanvas__links a:hover { color: #1B1D24; }
/* Mobile */
@media (max-width: 767px) {
  .logo__main img { height: 28px; } .logo img.logo__mark { height: 36px; }
  .hero__metrics { justify-content: flex-start; text-align: left; }
  .hero__metrics .stat--plain, .hero__metrics .stat__value { text-align: left; }
  .table-card__head h2 small { display: inline-block; margin-left: 6px; }
}
.offcanvas__accounts .account-item, .offcanvas__accounts .account-item * { text-decoration: none !important; }
.offcanvas__accounts .account-item__id { color: #1B1D24; } .offcanvas__accounts .account-item__sub { color: #8B8E99; }
.offcanvas__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* One button size in card heads and tool rows */
.table-card__head .btn, .table-card__head .btn-sm, .table-card__head .btn-secondary.btn-sm, .card__tools .btn, .card__tools .btn-sm, .collapse-btn { height: 40px; font-size: 14px; padding: 0 16px; border-radius: 12px; }
.collapse-btn { width: 40px; padding: 0; }
.table-card__head .btn .ic, .card__tools .btn .ic { width: 16px; height: 16px; }
.table-card__head .btn-secondary, .card__tools .btn-secondary { color: #1B1D24; }
/* Last-column instrument aligns with its right-aligned header */
.common__table__area .table tbody td:last-child .inst { align-items: flex-end; text-align: right; }
/* Allocation rows use the card height: dot, name, track, EUR, share */
.alloc__legend--rows { flex-direction: column; gap: 0; }
.alloc__legend--rows li { display: grid; grid-template-columns: 8px minmax(0,1fr) 120px 96px 56px; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(27,29,36,.05); }
.alloc__legend--rows li:first-child { border-top: 0; }
.alloc__track { height: 6px; border-radius: 3px; background: #F1F1F4; overflow: hidden; }
.alloc__track i { display: block; height: 100%; border-radius: 3px; }
.alloc__eur { text-align: right; color: #5A5D68; font-size: 14px; }
.alloc__legend--rows li b { text-align: right; }
.alloc--wide .alloc__legend--rows li { grid-template-columns: 8px minmax(0,1fr) 220px 120px 64px; }
@media (max-width: 767px) { .alloc__legend--rows li { grid-template-columns: 8px minmax(0,1fr) 72px 56px; } .alloc__eur { display: none; } }
/* Same height for buttons that sit together */
.report .btn-sm, .report .btn-secondary.btn-sm { height: 40px; font-size: 14px; padding: 0 14px; border-radius: 12px; }
.report .report__actions { gap: 8px; }
.switcher, .header__area.header--bar .switcher { height: 40px; }
.header__area.header--bar.is-stuck .switcher { height: 36px; }
.login__card .field, .login__card .btn { height: 40px; }
.entry .row-actions .icon-btn, .entry .btn-sm { height: 32px; }
.settings .field select { border-color: rgba(27,29,36,.08); }
.settings .entry--document .entry__title, .settings .entry--document .entry__sub { white-space: normal; overflow-wrap: anywhere; }
.settings .document-download { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; background: #fff; color: #5A5D68; box-shadow: inset 0 0 0 1px rgba(27,29,36,.08); }
.settings .document-download .ic { width: 16px; height: 16px; flex: 0 0 auto; }
/* Empty states, shown for the new-account demo */
body.acct-empty [data-empty-hide] { display: none !important; }
body:not(.acct-empty) [data-empty-show] { display: none !important; }
.table-card.is-empty [data-empty-show] { display: flex !important; }
.table-card:not(.is-empty) [data-empty-show] { display: none !important; }
.sample-tag { margin-left: 10px; vertical-align: middle; font-size: 11px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 22px 44px; }
.empty .btn { margin-top: 12px; }
.empty--chart { padding: 56px 22px 64px; }
.empty .ic--lg { width: 28px; height: 28px; color: #B6B8C2; margin-bottom: 6px; }
/* Date inputs track like the other pills */
.field--date input, .field--date .field__label { font-variant-numeric: normal; letter-spacing: -.01em; font-family: inherit; }
.message-form .form__control { display: grid; justify-items: start; min-width: 0; }
.message-form .field-required-error { display: block; margin-top: 4px; color: #C63235; font-size: 12px; line-height: 1.4; }
/* Shared date picker, matching the portal's rounded controls. */
#ui-datepicker-div {
  box-sizing: border-box;
  width: 282px;
  max-width: calc(100vw - 16px);
  padding: 14px;
  border: 1px solid #E3E6EC;
  border-radius: 16px;
  background: #fff;
  color: #1B1D24;
  box-shadow: 0 8px 24px rgba(27,29,36,.10), 0 2px 6px rgba(27,29,36,.04);
  font-family: var(--rg-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
#ui-datepicker-div .ui-datepicker-header { height: 28px; margin: 0 0 12px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; }
#ui-datepicker-div .ui-datepicker-title { margin: 0 28px; font-size: 0; line-height: 28px; white-space: nowrap; }
#ui-datepicker-div .ui-datepicker-title select {
  appearance: none;
  box-sizing: border-box;
  width: 84px;
  height: 28px;
  margin: 0;
  padding: 0 24px 0 10px;
  border: 0;
  border-radius: 8px;
  background: #F3F3F5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%231B1D24' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  color: #1B1D24;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  vertical-align: top;
  cursor: pointer;
}
#ui-datepicker-div select.ui-datepicker-month { margin-right: 6px; }
#ui-datepicker-div .ui-datepicker-prev, #ui-datepicker-div .ui-datepicker-next { top: 0; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #8B8E99; cursor: pointer; }
#ui-datepicker-div .ui-datepicker-prev { left: 0; }
#ui-datepicker-div .ui-datepicker-next { right: 0; }
#ui-datepicker-div .ui-datepicker-prev:hover, #ui-datepicker-div .ui-datepicker-next:hover { background: #F3F3F5; color: #1B1D24; }
#ui-datepicker-div .ui-datepicker-prev .ui-icon, #ui-datepicker-div .ui-datepicker-next .ui-icon { top: 50%; left: 50%; width: 7px; height: 7px; margin: -4px 0 0 -3px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; background: none; transform: rotate(45deg); }
#ui-datepicker-div .ui-datepicker-next .ui-icon { margin-left: -5px; transform: rotate(225deg); }
#ui-datepicker-div table { width: 100%; margin: 0; border: 0; border-collapse: collapse; table-layout: fixed; background: transparent; font-size: inherit; }
#ui-datepicker-div thead, #ui-datepicker-div tbody, #ui-datepicker-div tr { border: 0; background: transparent; }
#ui-datepicker-div th { height: 28px; padding: 0; border: 0; background: transparent; color: #8B8E99; font-size: 13px; font-weight: 600; text-align: center; }
#ui-datepicker-div td { height: 34px; padding: 1px 0; border: 0; background: transparent; text-align: center; }
#ui-datepicker-div td a, #ui-datepicker-div td span { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 34px; height: 32px; margin: 0 auto; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #1B1D24; box-shadow: none; font-weight: 400; line-height: 32px; text-align: center; text-decoration: none; }
#ui-datepicker-div td a:hover, #ui-datepicker-div td a.ui-state-hover { background: #F3F3F5; }
#ui-datepicker-div td a.ui-state-highlight { color: #21315D; font-weight: 600; }
#ui-datepicker-div td a.ui-state-active, #ui-datepicker-div td a.ui-state-active:hover { background: #21315D; color: #fff; font-weight: 500; }
#ui-datepicker-div select:focus-visible, #ui-datepicker-div a:focus-visible { outline: 2px solid #8FB0E6; outline-offset: 2px; }
/* Scroll hint you can actually see */
.scroll-shell.can-scroll::after { background: linear-gradient(to right in srgb, rgba(27,29,36,0), rgba(27,29,36,.07)); width: 40px; }
.scroll-shell.can-scroll::before { content: ""; position: absolute; top: 50%; right: 8px; width: 8px; height: 8px; margin-top: -5px; border-right: 1.5px solid #8B8E99; border-top: 1.5px solid #8B8E99; transform: rotate(45deg); pointer-events: none; transition: opacity 150ms ease; }
.scroll-shell.can-scroll.at-end::before { opacity: 0; }
/* Positions table on phones: no minimum width, tight head */
@media (max-width: 767px) {
  .common__table__area .table--positions { min-width: 0 !important; width: 100% !important; table-layout: fixed !important; }
  .table--positions thead th, .table--positions tbody td { padding-left: 6px !important; padding-right: 6px !important; font-size: 13px; white-space: normal; }
  .table--positions thead th:first-child, .table--positions tbody td:first-child { padding-left: 12px !important; width: 46%; }
  .table--positions thead th:last-child, .table--positions tbody td:last-child { padding-right: 12px !important; }
  .table--positions thead th:nth-child(3), .table--positions tbody td:nth-child(3) { display: none; }
  .table--positions td .inst__name { font-size: 13.5px; }
  .table--positions td .inst__sub { font-size: 11.5px; }
  .table-card__head { flex-wrap: wrap; row-gap: 12px; }
  .table-card__head > .btn, .table-card__head > .controls { flex: 1 1 100%; }
  .table-card__head > .btn { justify-content: center; }
  .table-card__head h2 small { display: block; width: fit-content; margin: 6px 0 0; }
  .common__table__area .table thead th { padding-top: 10px !important; padding-bottom: 10px !important; }
  .common__table__area .table tbody tr:first-child td { padding-top: 12px; }
}
/* Language as a side submenu inside the profile menu */
.profile-menu { overflow: visible; }
.submenu { position: relative; }
.submenu__toggle { width: 100%; border: 0; background: transparent; text-align: left; justify-content: flex-start; }
.submenu__value { margin-left: auto; color: #8B8E99; font-size: 13px; }
.submenu__chev { width: 14px; height: 14px; color: #8B8E99; transform: rotate(-90deg); transition: transform 150ms ease; }
.submenu__toggle[aria-expanded="true"] .submenu__chev { transform: rotate(90deg); }
.submenu__panel { position: absolute; top: -6px; right: calc(100% + 6px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(27,29,36,.08), 0 10px 30px rgba(27,29,36,.10); z-index: 5; transform-origin: top right; animation: submenu-in 140ms cubic-bezier(.2,0,0,1); }
.submenu__panel[hidden] { display: none; }
@keyframes submenu-in { from { opacity: 0; transform: translateX(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) { .submenu__panel { position: static; box-shadow: none; padding: 2px 0 0 12px; animation: none; } }
/* Radio marks: ring with a centred dot */
.dropdown-menu[data-pick] .dropdown-item::before, .profile-menu .dropdown-item[data-group]::before, .account-item::before, .offcanvas__accounts .account-item::before { width: 18px !important; height: 18px !important; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(27,29,36,.22) !important; background: #fff !important; transition: box-shadow 150ms ease, background 150ms ease; }
.dropdown-menu[data-pick] .dropdown-item:hover::before, .profile-menu .dropdown-item[data-group]:hover::before, .account-item:hover::before { box-shadow: inset 0 0 0 1.5px rgba(33,49,93,.55) !important; }
.dropdown-menu[data-pick] .dropdown-item.active::before, .profile-menu .dropdown-item[data-group].active::before, .account-item.active::before, .offcanvas__accounts .account-item.active::before { background: #21315D !important; box-shadow: inset 0 0 0 4.5px #fff, inset 0 0 0 6px #21315D, 0 0 0 1.5px #21315D !important; }
.dropdown-menu[data-pick] .dropdown-item.active::before, .profile-menu .dropdown-item[data-group].active::before { background: radial-gradient(circle, #21315D 0 4px, #fff 4.5px 100%) !important; box-shadow: inset 0 0 0 1.5px #21315D !important; }
.account-item.active::before, .offcanvas__accounts .account-item.active::before { background: radial-gradient(circle, #21315D 0 4px, #fff 4.5px 100%) !important; box-shadow: inset 0 0 0 1.5px #21315D !important; }
.submenu__panel { opacity: 1 !important; transform: none; pointer-events: auto; }

/* Scroll hint: white fade with an arrow, fixed to the card edge, not the content */
.scroll-shell.can-scroll::after { background: linear-gradient(to right in srgb, rgba(255,255,255,0), #fff 70%) !important; width: 56px; border-bottom-right-radius: 15px; }
.scroll-shell.can-scroll::before { right: 10px; width: 9px; height: 9px; border-color: #5A5D68; z-index: 1; }
/* Holdings page: full table, scrolls sideways on phones */
@media (max-width: 767px) {
  .common__table__area .table--full { min-width: 860px !important; width: 860px !important; table-layout: auto !important; }
  .table--full thead th:nth-child(n), .table--full tbody td:nth-child(n) { display: table-cell !important; }
  .table--full thead th { white-space: nowrap !important; }
  .table--full td .inst__name { white-space: nowrap; }
  .table--full .group__mobile { display: none; }
  .table--full thead th:first-child { width: auto; }
}
/* Cloned sticky header on phones */
.sticky-head { position: fixed; z-index: 35; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(27,29,36,.08); }
.sticky-head__inner { overflow: hidden; }
.sticky-head__table { margin: 0; table-layout: fixed !important; }
.sticky-head__table thead th { position: static !important; }
/* Header buttons: one size, 8px apart */
.header__right { gap: 8px; }
.user__dropdown { margin-left: 0; }
@media (max-width: 767px) {
  .header__right { gap: 8px; }
  .menu-open, .mail a, .userbtn, .user__dropdown .dropdown-toggle { width: 40px !important; height: 40px !important; border-radius: 12px !important; }
  .header__area.header--bar.is-stuck .menu-open, .header__area.header--bar.is-stuck .mail a, .header__area.header--bar.is-stuck .userbtn, .header__area.header--bar.is-stuck .user__dropdown .dropdown-toggle { width: 36px !important; height: 36px !important; border-radius: 11px !important; }
  .header__area.header--bar .logo__main { gap: 8px; }
  .menu-open .bi { font-size: 18px; }
}
/* Phone card tops: title and control on one row, tools in a tidy grid */
@media (max-width: 767px) {
  .table-card__head { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 8px 12px; flex-wrap: nowrap; }
  .table-card__head > div:first-child { min-width: 0; }
  .table-card__head > .btn, .table-card__head > .controls, .table-card__head > .dropdown, .table-card__head > .seg { grid-column: 1 / -1; width: 100%; justify-content: center; margin: 0; }
  .table-card__head > .controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .table-card__head > .controls > * { width: 100%; }
  .table-card__head > .collapse-btn, .table-card__head > .seg--sm { grid-column: 2; grid-row: 1; justify-self: end; width: auto; }
  .table-card__head > .seg--sm { display: inline-flex; }
  .table-card__head h2 { line-height: 1.25; }
  .table-card__head p { margin-top: 4px; }
  .card__tools { padding: 0 12px 12px; }
  .card__tools .controls { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .card__tools .controls .field--date { grid-column: span 3; width: 100% !important; min-width: 0 !important; padding: 0 10px 0 12px; }
  .card__tools .controls .field--date input { width: 100%; min-width: 0; }
  .card__tools .controls .btn { grid-column: span 2; justify-content: center; padding: 0 8px; width: 100%; }
  .card__tools .controls .btn .ic { display: none; }
  .common__table__area .table tbody td { padding-top: 10px !important; padding-bottom: 10px !important; }
  .common__table__area .table tbody tr:first-child td { padding-top: 10px; }
  .common__table__area .table thead th { padding-top: 8px !important; padding-bottom: 8px !important; }
  .table-card.is-collapsed .table-card__head { padding-bottom: 16px; }
}
/* Trading history keeps columns readable and scrolls within each card when needed. */
.trading-page .table-responsive { overflow-x: auto; scrollbar-width: auto; }
.trading-page .common__table__area .table { width: max-content !important; min-width: 100%; table-layout: auto; }
.trading-page .table th, .trading-page .table td, .trading-page .table .inst__name { white-space: nowrap; }
.trading-page .table-responsive::-webkit-scrollbar { height: 10px; }
.trading-page .table-responsive::-webkit-scrollbar-track { background: #F3F3F5; }
.trading-page .table-responsive::-webkit-scrollbar-thumb { background: #8B8E99; border-radius: 6px; }
/* Period pill on phones opens the two date fields; desktop shows the fields directly */
.period-toggle { display: none; }
.period-fields { display: contents; }
@media (max-width: 767px) {
  .period-toggle { display: inline-flex; grid-column: 1 / -1; width: 100%; justify-content: flex-start; gap: 8px; }
  .period-toggle > span { flex: 1; text-align: left; }
  .period-toggle .ic:last-child { transition: transform 150ms ease; }
  .period-toggle[aria-expanded="true"] .ic:last-child { transform: rotate(180deg); }
  .period-fields { display: none; grid-column: 1 / -1; grid-template-columns: 1fr; gap: 8px; }
  .period-fields.is-open { display: grid; }
  .period-fields .field--date { width: 100% !important; }
  .period-fields .field--date input { flex: 1; width: auto; }
  .card__tools .controls .field--date { grid-column: auto; }
  .table-card__head > .collapse-btn { width: 40px !important; height: 40px !important; align-self: start; padding: 0; }
  .common__table__area .tableToSort td .inst__name, .common__table__area .tableToSort td .inst { white-space: nowrap; max-width: none; }
  .common__table__area .tableToSort td .inst { display: flex; }
}
/* Allocation card on phones: same 12px inset as every other card, toggle under the title */
@media (max-width: 767px) {
  .alloc-card .table-card__head { padding-left: 12px !important; padding-right: 12px !important; }
  .alloc-card .alloc { padding-left: 12px !important; padding-right: 12px !important; }
  .table-card__head > .seg--sm { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; width: 100%; display: flex; }
  .table-card__head > .seg--sm .btn { flex: 1; justify-content: center; }
}
/* Relationship manager block: details as separate items, stacked on phones */
.manager--flush { padding: 0; }
.manager__sub span + span::before { content: " · "; }
@media (max-width: 767px) {
  .manager { flex-wrap: wrap; gap: 12px 14px; align-items: flex-start; }
  .manager__avatar { flex: 0 0 44px; }
  .manager > div:not(.manager__links) { flex: 1 1 0; min-width: 0; }
  .manager__name { line-height: 1.3; }
  .manager__sub { margin-top: 4px; line-height: 1.5; overflow-wrap: anywhere; }
  .manager__sub span { display: block; }
  .manager__sub span + span::before { content: none; }
  .manager__links { flex: 1 1 100%; margin-left: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
  .manager__links .btn { height: 40px; font-size: 14px; border-radius: 12px; justify-content: center; padding: 0 12px; width: 100%; }
  .manager__phone { height: 40px; }
  /* Positions: give long fund names room */
  .table--positions thead th:first-child, .table--positions tbody td:first-child { width: 51% !important; }
  .table--positions thead th:last-child, .table--positions tbody td:last-child { width: 78px !important; }
  .table--positions td .inst__name { overflow-wrap: anywhere; }
}
/* Open offers: row opens an inline detail with the order form */
.table--offers { --offer-padding: 22px; --offer-gap: 28px; --offer-label-width: 120px; --offer-field-gap: 12px; }
.common__table__area .table--offers { min-width: 0 !important; max-width: 100%; table-layout: fixed; }
@media (min-width: 992px) {
  /* Match the 3:5 detail grid; both the detail cell and the offer have horizontal padding. */
  .table--offers .offer-col--instrument { width: 37.5%; }
  .table--offers .offer-col--type { width: calc(var(--offer-label-width) + var(--offer-field-gap)); }
  .table--offers .offer-col--action { width: 150px; }
  .common__table__area .table--offers thead th:nth-child(2), .common__table__area .table--offers thead th:nth-child(3),
  .common__table__area .table--offers tbody tr.offer-row td:nth-child(2), .common__table__area .table--offers tbody tr.offer-row td:nth-child(3) { padding-left: calc(2 * var(--offer-padding) + var(--offer-gap) - (4 * var(--offer-padding) + var(--offer-gap)) * .375) !important; }
}
.table--offers tbody tr.offer-row { cursor: pointer; }
.table--offers tbody tr.offer-row td { transition: background 120ms ease; }
.table--offers tbody tr.offer-row.is-open td { background: #fff; box-shadow: inset 0 1px 0 rgba(27,29,36,.08), 0 0.5px 0 rgba(27,29,36,.05); }
.table--offers td.is-act { text-align: right; white-space: nowrap; }
.offer-toggle .ic { width: 14px; height: 14px; margin-left: 4px; transition: transform 150ms ease; }
.offer-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.table--offers tbody tr.offer-detail td { padding: 0 !important; background: #fff; box-shadow: inset 0 -1px 0 rgba(27,29,36,.08); }
.table--offers tbody tr.offer-detail:hover td { background: #fff; }
.table--offers tbody tr.offer-row.is-open:hover td { background: #fff; }
.table--offers tbody tr.offer-detail:last-child td { box-shadow: none; }
.offer { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: var(--offer-gap); padding: 20px var(--offer-padding) 26px; border-top: 0; white-space: normal; min-width: 0; }
.offer__info { display: flex; flex-direction: column; gap: 16px; }
.offer__info .offer__hint { margin-left: 0; white-space: pre-line; }
.offer__info .price-box { background: #FEFAF3; border: 1px solid #F0E5CC; }
.offer__info .price-box__label { font-size: 11px; text-transform: uppercase; color: #8A7447; }
.offer__info .price-box__value { font-size: 22px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.offer__info .price-box__sub { font-family: var(--c-font-mono, monospace); font-size: 11px; overflow-wrap: anywhere; }
.kv-grid--flush { padding: 0; gap: 12px 16px; }
.offer__form.form { min-width: 0; max-width: 100%; padding: 0 24px 0 0; gap: 12px; }
.offer__form .form__row { min-width: 0; grid-template-columns: var(--offer-label-width) minmax(0, 1fr); column-gap: var(--offer-field-gap); }
.offer__form .form__actions { padding-left: calc(var(--offer-label-width) + var(--offer-field-gap)); margin-top: 4px; }
.offer__form .textarea { background: #fff; min-height: 124px; min-width: 0; max-width: min(100%, 600px); }
.offer__form .field { background: #fff; min-width: 0; max-width: min(100%, 400px); }
.offer__hint { margin: 4px 0 0 132px; font-size: 13px; color: #8B8E99; }
.offer__disclaimer { margin-left: 132px; min-width: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; color: #5A5D68; }
.offer__disclaimer p { margin: 0 0 12px; }
.offer__disclaimer p:last-child { margin-bottom: 0; }
@media (max-width: 991px) {
  .offer { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 767px) {
  .common__table__area .table--offers { min-width: 0 !important; width: 100% !important; table-layout: fixed !important; }
  .table--offers thead th:nth-child(2), .table--offers tbody tr.offer-row td:nth-child(2), .table--offers thead th:nth-child(3), .table--offers tbody tr.offer-row td:nth-child(3) { width: 0 !important; padding: 0 !important; overflow: hidden; font-size: 0; border: 0; }
  .table--offers thead th:first-child, .table--offers tbody tr.offer-row td:first-child { width: auto !important; }
  .table--offers tbody tr.offer-row td:first-child .inst__name { white-space: normal; }
  .table--offers thead th:last-child, .table--offers tbody tr.offer-row td:last-child { width: 56px !important; }
  .offer-toggle { width: 32px; padding: 0; justify-content: center; }
  .offer-toggle__label { display: none; }
  .offer-toggle .ic { margin: 0; }
  .offer { padding: 16px 12px 20px; }
  .offer__form.form { padding-right: 0; }
  .offer__form .form__row { grid-template-columns: minmax(0, 1fr); }
  .offer__form .form__actions, .offer__hint, .offer__disclaimer { padding-left: 0; margin-left: 0; }
  .offer__form .form__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .offer__form .form__actions .btn { width: 100%; justify-content: center; }
}
.kv-grid--flush { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kv-grid--flush .kv__value { white-space: normal; overflow: visible; text-overflow: clip; }
.offer__details.kv-grid { display: flex; flex-direction: column; gap: 0; padding: 0; }
.offer__details .kv { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 16px; align-items: start; padding: 9px 0; border-bottom: 1px solid #EBEDF2; }
.offer__details .kv:last-child { border-bottom: 0; }
.offer__details .kv__label, .offer__details .kv__value { font-size: 13px; line-height: 1.4; letter-spacing: normal; }
.offer__details .kv__value { font-weight: 700; }
.offer__details .offer__price .kv__value { font-weight: 700; }
.offer__details .attach a { font-size: inherit; font-weight: 700; align-items: flex-start; }

/* Web Forms integration: apply the v2 surface language to existing server controls. */
.legacy-table-card { overflow: hidden; padding-top: 0; }
.legacy-table-card > .investment__top__filter {
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(27,29,36,.07);
  background: #fff;
}
.legacy-table-card > .common__table__area,
.legacy-table-card > .dataTables_wrapper { border-radius: 0 0 16px 16px; }
.legacy-table-card .table__title { margin: 0; padding: 16px 22px 8px; }
.investment__top__filter__left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.common__btn, .form__submit button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.common__btn.bordered { padding: 0 14px; border: 0; box-shadow: inset 0 0 0 1px rgba(27,29,36,.09); }
.common__btn.bordered:hover { background: #F7F7F8; box-shadow: inset 0 0 0 1px rgba(27,29,36,.15); }
.common__btn.active, .common__btn.bordered.active { color: #21315D; background: #FBEBD3; box-shadow: none; }
.investment__top__filter__search__bar .input-group { border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(27,29,36,.09); background: #fff; }
.investment__top__filter__search__bar .input-group input { height: 40px; min-width: 180px; border: 0 !important; background: transparent; padding: 0 12px; font-size: 14px; }
.investment__top__filter__search__bar .input-group .btn { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: #8B8E99; box-shadow: none; }
.investment__top__filter__search__bar .input-group .btn:hover { color: #21315D; background: #FDF5E9; }
.header__right__calender { display: flex; align-items: flex-end; gap: 8px; }
.single__calender { margin: 0 !important; }
.single__calender label { margin: 0 0 5px; color: #8B8E99; font-size: 12px; }
.single__calender__date { height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(27,29,36,.09); background: #fff; padding: 0 10px; }
.single__calender__date span { display: inline-flex; align-items: center; color: #8B8E99; }
.single__calender__date .ic { width: 16px; height: 16px; }
.single__calender__date input { border: 0; outline: 0; min-width: 105px; height: 38px; background: transparent; font-size: 14px; }
.myCustomBtn { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #21315D; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.myCustomBtn:hover { background: #182548; }
.legacy-table-card .orders-report { min-width: 0; }
.documents__area { min-height: calc(100vh - 92px); }
.messages-page .message__area, .topic__area.table-card { margin: 0; background: #fff; }
.topic__area.table-card { padding: 22px; }
.topic__area .topic__text__box { display: grid; gap: 12px; }
.topic__area .topic__text__box input, .topic__area .topic__text__box textarea {
  width: 100%; border: 0; border-radius: 12px; background: #F7F7F8;
  box-shadow: inset 0 0 0 1px rgba(27,29,36,.08); padding: 12px 14px; font-size: 14px;
}
.topic__area .topic__text__box input { height: 44px; }
.topic__area .topic__text__box textarea { min-height: 220px; resize: vertical; }
.password-card { max-width: 560px; margin: 0 auto; padding: 26px; }
.password-card .table__title { margin: 0 0 18px; font-size: 18px; }
.password-card .single__input__item { margin-bottom: 12px; }
.password-card .form-control { height: 44px; border: 0; border-radius: 12px; background: #F7F7F8; box-shadow: inset 0 0 0 1px rgba(27,29,36,.08); }
.password-card .form__submit { display: flex; justify-content: flex-end; margin-top: 18px; }
.password-card .form__submit button { background: #21315D; color: #fff; }
.profile-card { padding-bottom: 22px; }
.profile-card > [id*="UserInfo"], .profile-card > [id*="Phones"], .profile-card > [id*="Addresses"], .profile-card > [id*="BankAccounts"] { padding: 0 22px; }
[hidden] { display: none !important; }
.conversation-card { margin-top: 16px; overflow: hidden; }
.conversation-body { max-height: 560px; overflow-y: auto; padding: 20px 22px; background: #FAFAFB; }
.conversation-list { display: flex; flex-direction: column; gap: 14px; }
.conversation-list .message__left__inner__blk, .conversation-list .message__right__inner__blk { max-width: 78%; align-self: flex-start; }
.conversation-list .message__right__inner__blk { align-self: flex-end; }
.conversation-list .message__main__blk { padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 1px 4px rgba(27,29,36,.08); }
.conversation-list .message__right__inner__blk .message__main__blk { background: #FBEBD3; }
.conversation-list .message__main__blk p { margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.conversation-reply { display: flex; gap: 10px; align-items: center; padding: 16px 22px; border-top: 1px solid rgba(27,29,36,.07); }
.conversation-reply .field { flex: 1; }
.password-page .field-required-error { grid-column: 2; color: #C63235; font-size: 12px; }
.password-page .form__actions { padding-left: 162px; }
@media (max-width: 991px) {
  .legacy-table-card > .investment__top__filter { align-items: stretch; gap: 12px; }
  .investment__top__filter__search__bar { width: 100%; }
  .header__right__calender { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .legacy-table-card > .investment__top__filter { padding: 14px 12px; }
  .investment__top__filter__left { width: 100%; }
  .investment__top__filter__left .common__btn { flex: 1 1 auto; }
  .header__right__calender { width: 100%; }
  .single__calender { flex: 1 1 120px; }
  .single__calender__date input { width: 100%; min-width: 0; }
  .password-card, .topic__area.table-card { padding: 18px 14px; }
  .conversation-body { padding: 14px 12px; }
  .conversation-list .message__left__inner__blk, .conversation-list .message__right__inner__blk { max-width: 92%; }
  .conversation-reply { padding: 12px; }
  .password-page .field-required-error { grid-column: 1; }
  .password-page .form__actions { padding-left: 0; }
}

/* Login uses the same components as the design reference while retaining WebForms postbacks. */
body.login-page { background: #fff; color: #1B1D24; font-family: "Inter", Arial, sans-serif; }
.login-page .login { box-sizing: border-box; width: 100%; min-height: 100vh; padding: 32px 16px; gap: 28px; }
.login-page .login__logo { display: inline-flex; align-items: center; gap: 9px; height: 36px; }
.login-page .login__logo .logo__mark { height: 36px; width: auto; }
.login-page .login__logo .logo__word { height: 30px; width: auto; }
.login-page .login__card.redgate-login { box-sizing: border-box; display: block; flex: none; width: 100%; max-width: 440px; min-width: 0; min-height: 0; margin: 0; padding: 28px; overflow: visible; background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(27,29,36,.08), 0 20px 50px rgba(27,29,36,.06); }
.login-page .login__card form, .login-page .login__card fieldset { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.login-page .login__card [id$="eSignPanel"] { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.login-page .login__title { margin: 0; font-family: var(--c-font-display); font-size: 28px; font-weight: 500; line-height: 1.25; letter-spacing: -.035em; text-align: left; }
.login-page .login__sub { margin: -8px 0 4px; font-size: 15px; color: #8B8E99; }
.login-page .redgate-login__tabs { display: inline-flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; width: fit-content; max-width: 100%; height: auto; min-height: 40px; margin: 0 0 16px; padding: 3px; gap: 2px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(27,29,36,.08); }
.login-page .redgate-login__tabs .nav-link { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; margin: 0 !important; padding: 0 12px; border: 0 !important; border-radius: 9px; background: transparent; color: #5A5D68; font-family: "Inter", Arial, sans-serif; font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; }
.login-page .redgate-login__tabs .nav-link.active, .login-page .redgate-login__tabs .nav-link:hover { border: 0 !important; background: #FBEBD3; color: #21315D; }
.login-page .redgate-login__tabs .nav-link:focus-visible, .login-page .login__forgot:focus-visible, .login-page .login__lang a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(33,49,93,.14); }
.login-page .form__area__tab__content { display: flex; flex-direction: column; gap: 10px; padding: 0; }
.login-page .redgate-login .field-input { height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(27,29,36,.08); color: #1B1D24; font-family: "Inter", Arial, sans-serif; font-size: 15px; }
.login-page .redgate-login .field-input:focus { border: 0; background: #fff; box-shadow: inset 0 0 0 1px rgba(27,29,36,.18), 0 0 0 3px rgba(33,49,93,.14); }
.login-page .login-field.floating-label { position: relative; display: flex; align-items: center; width: 100%; max-width: none; height: 40px; margin: 0; padding: 0 14px 0 16px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(27,29,36,.08); gap: 10px; }
.login-page .login-field.floating-label:hover { box-shadow: inset 0 0 0 1px rgba(27,29,36,.16); }
.login-page .login-field.floating-label:focus-within { box-shadow: inset 0 0 0 1px rgba(27,29,36,.18), 0 0 0 3px rgba(33,49,93,.14); }
.login-page .login-field .ic { width: 16px; height: 16px; flex: 0 0 16px; color: #8B8E99; }
.login-page .login-field .field-input, .login-page .login-field .field-input:focus, .login-page .login-field .field-input:hover { flex: 1; min-width: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #1B1D24; font-family: "Inter", Arial, sans-serif; font-size: 15px; outline: none; }
.login-page .login-field .field-input::placeholder { color: #8B8E99; opacity: 1; }
.login-page .login-field > label.visually-hidden { position: absolute !important; }
.login-page .login-field .field-required-error { position: absolute; top: calc(100% + 2px); left: 4px; margin: 0; color: #C63235; font-size: 12px; }
.login-page .login__forgot { display: block; align-self: flex-end; margin: -4px 0 0; color: #5A5D68; font-size: 14px; text-align: right; text-decoration: none; }
.login-page .login__forgot:hover { color: #21315D; text-decoration: underline; }
.login-page .form__submit { width: 100%; padding: 0; }
.login-page .form__submit button { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: #21315D; box-shadow: none; color: #fff; font-family: "Inter", Arial, sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; }
.login-page .form__submit button:hover { background: #183463; box-shadow: none; }
.login-page .form__submit button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(33,49,93,.14); }
.login-page .form__submit button:disabled { opacity: .65; cursor: wait; }
.login-page .login__country-row { display: flex; align-items: flex-start; gap: 8px; width: 100%; }
.login-page .login__country { flex: 0 0 86px; }
.login-page .login__country select { width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(27,29,36,.08); font-size: 14px; }
.login-page .login__country-row .login-field { flex: 1; min-width: 0; }
.login-page .login__lang { justify-content: center; }
.login-page .login__lang a { color: #8B8E99; text-decoration: none; }
.login-page .login__lang a.is-active { color: #1B1D24; font-weight: 500; }
.login-page .redgate-login__alert { margin-top: 16px; }
.login-page .login__user-id .field-input { padding: 0 12px; }
.login-page .login__user-id .field-input::placeholder { color: #8B8E99; opacity: 1; }
.login-page .login__user-id .form__submit { margin-top: 30px; }
.login-page .login__user-id .login__continue { width: 100%; height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: #21315D; color: #fff; font-family: "Inter", Arial, sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; }
.login-page .login__user-id .login__continue:hover { background: #183463; }
.login-page .login__user-id .login__continue:focus-visible { outline: 3px solid #8B8E99; outline-offset: 3px; }
.login-page .login__test-options { margin-top: 16px; }
.login-page .login__test-toggle { display: flex; align-items: center; gap: 8px; margin: 0; color: #5A5D68; font-size: 14px; cursor: pointer; }
.login-page .login__test-toggle input { width: 16px; height: 16px; margin: 0; accent-color: #21315D; }
.login-page .login__test-code { margin-top: 14px; }
.login-page .login__test-code[hidden] { display: none; }
.login-page .login__test-caption { display: block; margin-bottom: 8px; color: #8B8E99; font-size: 13px; }
@media (max-width: 480px) {
  .login-page .login { justify-content: center; padding: 24px 16px; }
  .login-page .login__card.redgate-login { padding: 24px 20px; }
  .login-page .redgate-login__tabs { width: 100%; }
  .login-page .redgate-login__tabs .nav-link { flex: 1 1 auto; padding: 0 8px; font-size: 13px; }
}

/* Portfolio chart legends and state use the reference palette without inline styling. */
.chart-legend-value { background: #21315D; }
.chart-legend-invested { background: #D7D8DE; }
.chart-card [hidden] { display: none !important; }
/* Show account-specific actions only when the API confirmed the account type. */
.acct-unknown [data-dpm-only], .acct-unknown [data-ts-only] { display: none !important; }

/* Invoice history and its date-filtered empty state. */
.reports .report--invoices { display: block; padding-top: 16px; padding-bottom: 22px; }
.invoices__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.report--invoices .invoices__filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.report--invoices .field--date { flex: 0 0 auto; width: auto; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; }
.report--invoices .field--date input { flex: 0 0 88px; width: 88px; }
.report--invoices .field__label { color: #8B8E99; font-size: 12px; }
.report--invoices .field--date .ic { width: 14px; height: 14px; }
.report--invoices .select, .report--invoices .btn-secondary.btn-sm { height: 40px; border-radius: 10px; }
.report--invoices .btn-secondary.btn-sm { background: #fff; color: #5A5D68; box-shadow: inset 0 0 0 1px #E3E6EC; font-weight: 400; }
.report--invoices .btn-secondary.btn-sm:hover { background: #F6F7F9; }
.invoice-group { padding: 10px 0 6px; border-top: 1px solid #ECEEF2; }
.invoice-group__month { margin: 0 0 6px; color: #8B8E99; font-size: 12px; line-height: 18px; font-weight: 500; }
.invoice-group__items { list-style: none; padding: 0; margin: 0; }
.invoice-item { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 6px 0; }
.invoice-item__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; background: #F1F3F8; color: #21315D; }
.invoice-item__icon .ic { width: 16px; height: 16px; }
.invoice-item__body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.invoice-item__name { color: #21315D; font-size: 14px; line-height: 19px; }
.invoice-item__meta { color: #8B8E99; font-size: 12px; line-height: 16px; }
.invoice-item > .btn { flex-shrink: 0; min-width: 164px; }
.invoices__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 170px; margin-top: 14px; padding: 26px 20px; border-radius: 12px; background: #F6F7F9; text-align: center; }
.invoices__empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 6px; border: 1px solid #E3E6EC; border-radius: 12px; background: #fff; color: #7B8192; }
.invoices__empty-icon .ic { width: 20px; height: 20px; fill: none; }
.invoices__empty-title { color: #21315D; font-size: 14px; font-weight: 500; }
.invoices__empty-hint { color: #8B8E99; font-size: 14px; }
.report--invoices [hidden] { display: none !important; }
@media (max-width: 991px) { .invoices__head { flex-wrap: wrap; } .report--invoices .invoices__filters { justify-content: flex-start; } }
@media (max-width: 575px) { .report--invoices .invoices__filters { width: 100%; } .report--invoices .field--date { flex: 1 1 140px; min-width: 0; } .report--invoices .field--date input { flex: 1; min-width: 0; } .invoice-item { flex-wrap: wrap; } .invoice-item__body { flex-basis: calc(100% - 44px); } .invoice-item > .btn { margin: 2px 0 6px 44px; min-width: 0; } }

/* Primary actions use white backgrounds in every interaction state, including disabled. */
.btn.btn-primary,
.btn.btn-primary:is(:hover, :focus, :focus-visible, :active, :disabled, .disabled, .active),
.btn.btn-primary:first-child:active,
body.top-navy.page-plain .pagehead .btn.btn-primary,
body.top-navy .on-navy .btn.btn-primary {
  background: #fff !important;
  color: #21315D !important;
  border: 1px solid #E3E6EC !important;
  box-shadow: none !important;
}
.common__table__area .table tbody td a.btn-primary { color: #21315D !important; }
.btn.btn-primary:hover { border-color: #A7AEC0 !important; }
.btn.btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(33,49,93,.18) !important; }
.btn.btn-primary:disabled, .btn.btn-primary.disabled, .btn.btn-primary.is-disabled {
  background: #fff !important;
  color: #8B8E99 !important;
  border-color: #E3E6EC !important;
  opacity: 1;
}

/* Available cash withdrawals retain the navy primary-action style. */
.btn.btn-primary[data-withdrawal-submit]:enabled {
  background: #21315D !important;
  color: #fff !important;
  border-color: #21315D !important;
}
.btn.btn-primary[data-withdrawal-submit]:enabled:hover { background: #182548 !important; border-color: #182548 !important; }
.btn.btn-primary[data-withdrawal-submit]:enabled:active { background: #131D3A !important; border-color: #131D3A !important; }
