@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");
/* Redgate self-service on the compact dashboard scale. Loads after tokens.css + theme.css. */
@font-face { font-family: "Mark Pro"; src: url("/assets/fonts/DSLCLUMarkPro-Heavy.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --rg-font: "Inter", system-ui, sans-serif;
  --c-canvas: #F7F7F9; --c-900: #232326; --c-700: #5A5A60; --c-500: #88888E; --c-400: #A0A0A6;
  --c-100: rgba(35,35,40,.045); --c-200: rgba(35,35,40,.07); --c-pill: rgba(35,35,40,.06);
  --c-ring-08: rgba(0,0,0,.08); --c-ring-06: rgba(0,0,0,.06); --c-ring-10: rgba(0,0,0,.10);
  --c-accent: #21315D; --c-on-accent: #FBEBD3; --c-red: #F33A3B;
  --c-success: #089A72; --c-success-soft: rgba(8,154,114,.10); --c-danger: #C24A33; --c-danger-soft: rgba(194,74,51,.08); --c-danger-strong: rgba(194,74,51,.22);
  --c-r-control: 14px; --c-r-xl: 24px; --c-r-pill: 9999px;
  --c-ease: cubic-bezier(.32,.72,0,1); --c-dur: 220ms; --c-dur-fast: 140ms;
}
html, body { background: var(--c-canvas); color: var(--c-900); font-family: var(--rg-font); font-size: 14px; line-height: 1.45; letter-spacing: -.005em; font-weight: 400; -webkit-font-smoothing: antialiased; }
.ic { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }

/* Header: kept from the portal, set on the dashboard scale */
.header__area { height: 56px; background: transparent; border-bottom: 0; padding: 0; }
.header__area .container-fluid { max-width: 1380px; margin: 0 auto; padding: 0 32px; }
.logo__main img { height: 24px; }
.header__menu ul li .menu__link { font-size: 13px; font-weight: 500; color: var(--c-700); line-height: 56px; margin: 0 4px; padding: 0 10px; border-radius: var(--c-r-control); transition: background-color var(--c-dur-fast) var(--c-ease), color var(--c-dur-fast) var(--c-ease); }
.header__menu ul li .menu__link:hover { background: var(--c-100); color: var(--c-900); }
.header__menu ul li .menu__link.active { color: var(--c-900); font-weight: 600; }
.header__menu ul li .menu__link::before { display: none; }
.language__dropdown__wrap .dropdown-toggle { font-size: 12.5px; font-weight: 500; color: var(--c-700); }
.mail a, .user__dropdown .dropdown-toggle { width: 36px; height: 36px; border-radius: var(--c-r-control); background: var(--c-100); box-shadow: inset 0 0 0 .5px var(--c-ring-08); }
.mail a:hover, .user__dropdown .dropdown-toggle:hover { background: var(--c-200); }
.mail a .bi, .user__dropdown .dropdown-toggle .bi { font-size: 16px; color: var(--c-900); }
svg.bi { width: 1em; height: 1em; fill: currentColor; }
.dropdown-menu { border: 0; border-radius: var(--c-r-control); box-shadow: inset 0 0 0 .5px var(--c-ring-10), 0 8px 24px rgba(22,22,26,.08); padding: 6px; font-size: 13px; }
.dropdown-menu .dropdown-item { border-radius: 10px; padding: 7px 10px; color: var(--c-700); }
.dropdown-menu .dropdown-item:hover { background: var(--c-100); color: var(--c-900); }

/* Shell */
.main__area { min-height: 0; padding: 0; }
.shell { max-width: 1380px; margin: 0 auto; padding: 8px 32px 80px; display: flex; flex-direction: column; gap: 20px; }

/* Page head */
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pagehead h1 { margin: 0; font-family: "Mark Pro", "Inter", sans-serif; font-size: 27px; line-height: 1.45; font-weight: 700; letter-spacing: -.02em; color: var(--c-900); }
.pagehead p { margin: 5px 0 0; font-size: 13px; color: var(--c-700); }

/* Controls */
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-radius: var(--c-r-control); background: rgba(0,0,0,.05); box-shadow: inset 0 0 0 .5px var(--c-ring-10); flex: 0 1 260px; margin: 0; transition: box-shadow var(--c-dur) var(--c-ease); }
.field:focus-within { box-shadow: inset 0 0 0 .5px var(--c-accent), 0 0 0 3px rgba(33,49,93,.12); }
.field .ic { color: var(--c-500); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; letter-spacing: -.01em; color: var(--c-900); }
.field input::placeholder { color: var(--c-500); }
.select { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 14px; border: 0; border-radius: var(--c-r-control); background: rgba(0,0,0,.05); box-shadow: inset 0 0 0 .5px var(--c-ring-10); font: inherit; font-size: 13px; font-weight: 500; color: var(--c-900); cursor: pointer; }
.select .ic { color: var(--c-500); width: 14px; height: 14px; }
.select:hover { background: var(--c-200); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border: 0; border-radius: var(--c-r-control); font: inherit; font-size: 13px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color var(--c-dur) var(--c-ease), box-shadow var(--c-dur) var(--c-ease), transform var(--c-dur-fast) cubic-bezier(.16,1.36,.4,1); }
.btn:active { transform: scale(.96); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--c-accent); color: var(--c-on-accent); box-shadow: 0 1px 2px rgba(22,22,26,.04); }
.btn-primary:hover { background: #182548; color: var(--c-on-accent); }
.btn-secondary { background: var(--c-100); color: var(--c-900); box-shadow: inset 0 0 0 .5px var(--c-ring-10); }
.btn-secondary:hover { background: var(--c-200); }
.btn-sm { height: 28px; padding: 0 12px; font-size: 12.5px; gap: 5px; }
.btn-sm .ic { width: 14px; height: 14px; }

/* Stats */
.stats { --bs-gutter-x: 14px; --bs-gutter-y: 14px; margin: 0 -7px; }
.stats > [class*="col-"] { padding: 0 7px; }
.stat { border-radius: var(--c-r-xl); box-shadow: inset 0 0 0 .5px var(--c-ring-08); padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; background: #FFFFFF; }
.stat__label { font-size: 12.5px; color: var(--c-700); font-weight: 500; }
.stat__value { display: flex; align-items: baseline; gap: 6px; font-size: 26px; line-height: 1.45; font-weight: 600; letter-spacing: -.02em; color: var(--c-900); font-variant-numeric: tabular-nums; }
.stat__value .unit { font-size: 13px; color: var(--c-500); font-weight: 500; letter-spacing: 0; }
.stat__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; box-shadow: 0 -.5px 0 var(--c-ring-06); font-size: 12px; color: var(--c-500); }
.trend { display: inline-flex; align-items: center; gap: 4px; color: var(--c-700); font-weight: 500; }
.trend .ic { width: 11px; height: 11px; }
.trend.is-up .ic { color: var(--c-success); }
.muted { color: var(--c-500); }

/* Table card */
.table-card { border-radius: var(--c-r-xl); box-shadow: inset 0 0 0 .5px var(--c-ring-08); padding: 22px; min-width: 0; background: #FFFFFF; }
.table-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.table-card__head h2 { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--c-900); }
.table-card__head p { margin: 4px 0 0; font-size: 12.5px; color: var(--c-500); }
.common__table__area { padding: 0; }
.common__table__area .table { width: 100% !important; border-collapse: collapse; margin: 0; }
.common__table__area .table thead th, .common__table__area .table thead th.sorting, .common__table__area .table thead th.sorting_asc, .common__table__area .table thead th.sorting_desc { text-align: left; padding: 9px 12px !important; font-size: 12px; font-weight: 500; color: var(--c-500); background: transparent; border: 0; box-shadow: 0 .5px 0 var(--c-ring-08), 0 -.5px 0 var(--c-ring-06); white-space: nowrap; cursor: pointer; width: auto !important; }
.common__table__area .table thead th.sorting_asc, .common__table__area .table thead th.sorting_desc { color: var(--c-900); }
.common__table__area .table thead th.sorting_asc::after { content: " ↑"; } .common__table__area .table thead th.sorting_desc::after { content: " ↓"; }
.common__table__area .table tbody td { text-align: left; padding: 11px 12px; height: auto; font-size: 13px; color: var(--c-700); border: 0; box-shadow: 0 .5px 0 var(--c-ring-06); white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 400; }
.common__table__area .table tbody tr { transition: background-color var(--c-dur-fast) var(--c-ease); }
.common__table__area .table tbody tr:hover td { background: var(--c-100); }
.common__table__area .table tbody tr:last-child td { padding: 11px 12px; box-shadow: none; }
.common__table__area .table td:first-child, .common__table__area .table th:first-child { padding-left: 12px !important; }
.name { color: var(--c-900); font-weight: 500; }
td.num { color: var(--c-700); }
td.strong { color: var(--c-900); }
td.muted { color: var(--c-500); }
.num.is-pos { color: var(--c-900); } .num.is-neg { color: var(--c-danger); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px; border-radius: var(--c-r-pill); background: var(--c-pill); color: var(--c-900); font-size: 12px; font-weight: 500; letter-spacing: -.005em; box-shadow: inset 0 0 0 .5px var(--c-ring-06); font-variant-numeric: tabular-nums; }
.tag.is-success { background: var(--c-success-soft); color: var(--c-success); box-shadow: inset 0 0 0 .5px var(--c-success-soft); }
.tag.is-danger { background: var(--c-danger-soft); color: var(--c-danger); box-shadow: inset 0 0 0 .5px var(--c-danger-strong); }

/* Brand pass: navy neutrals, cream canvas, tighter corners, red reserved for action and state */
:root {
  --c-canvas: #FDF5E9; --c-900: #21315D; --c-700: #4A5677; --c-500: #7D869C; --c-400: #9AA3B8;
  --c-100: rgba(33,49,93,.05); --c-200: rgba(33,49,93,.08); --c-pill: rgba(33,49,93,.07);
  --c-ring-08: rgba(33,49,93,.14); --c-ring-06: rgba(33,49,93,.10); --c-ring-10: rgba(33,49,93,.18);
  --c-accent: #F33A3B; --c-on-accent: #FFFFFF;
  --c-danger: #F33A3B; --c-danger-soft: rgba(243,58,59,.08); --c-danger-strong: rgba(243,58,59,.25);
  --c-success: #21315D; --c-success-soft: rgba(33,49,93,.07);
  --c-r-control: 8px; --c-r-xl: 12px; --c-r-pill: 6px;
  --c-font-display: "Mark Pro", "Inter", sans-serif;
}
@font-face { font-family: "Mark Pro"; src: url("/assets/fonts/DSLCLUMarkPro-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
.header__area .container-fluid { padding: 0 32px; }
.header__menu ul li .menu__link { border-radius: 6px; position: relative; }
.header__menu ul li .menu__link.active { color: var(--c-900); font-weight: 600; background: transparent; }
.header__menu ul li .menu__link::before { display: block; top: auto; bottom: 0; left: 10px; right: 10px; width: auto; height: 2px; background: var(--c-accent); border-radius: 0; }
.mail a, .user__dropdown .dropdown-toggle { background: #FFFFFF; }
.pagehead h1 { font-family: var(--c-font-display); font-size: 28px; }
.table-card__head h2 { font-family: var(--c-font-display); font-size: 16px; font-weight: 700; }
.stat__value { font-family: var(--c-font-display); font-weight: 700; font-size: 28px; letter-spacing: -.015em; }
.stat__value .unit { font-family: var(--rg-font); }
.btn-primary { background: var(--c-accent); color: #FFFFFF; }
.btn-primary:hover { background: #D92F30; color: #FFFFFF; }
.field, .select { background: #FFFFFF; }
.select:hover { background: var(--c-100); }
.trend.is-up .ic { color: var(--c-accent); }
.tag { border-radius: 6px; }
.tag.is-success { color: var(--c-900); background: var(--c-pill); box-shadow: inset 0 0 0 .5px var(--c-ring-06); }
.tag.is-danger { color: var(--c-danger); }
.num.is-neg { color: var(--c-danger); }
.dropdown-menu { border-radius: 10px; }
.header__menu ul li .menu__link::before { display: none; }
.header__menu ul li .menu__link.active::before { display: block; }

/* Lighter canvas, no container rings, edge-to-edge row hover */
:root { --c-canvas: #FEFAF3; }
.stat, .table-card { box-shadow: none; }
.table-card { padding: 22px 0 0; }
.table-card__head { padding: 0 22px; }
.common__table__area .table thead th, .common__table__area .table tbody td { padding-left: 12px; padding-right: 12px; }
.common__table__area .table th:first-child, .common__table__area .table td:first-child { padding-left: 22px !important; }
.common__table__area .table th:last-child, .common__table__area .table td:last-child { padding-right: 22px !important; }
.common__table__area .table tbody tr:last-child td { padding-bottom: 14px; }
.stat__foot { box-shadow: 0 -.5px 0 var(--c-ring-06); }
.common__table__area .table thead th.sorting:first-child, .common__table__area .table thead th.sorting_asc:first-child, .common__table__area .table thead th.sorting_desc:first-child, .common__table__area .table thead th:first-child { padding-left: 22px !important; }
.common__table__area .table thead th.sorting:last-child, .common__table__area .table thead th.sorting_asc:last-child, .common__table__area .table thead th.sorting_desc:last-child, .common__table__area .table thead th:last-child { padding-right: 22px !important; }

/* Lines: one soft hairline under the header row, none above it, none after the last row */
.common__table__area .table, table.dataTable, table.dataTable.no-footer { border: 0 !important; }
.common__table__area .table thead th, table.dataTable thead th, table.dataTable thead th.sorting, table.dataTable thead th.sorting_asc, table.dataTable thead th.sorting_desc { border: 0 !important; box-shadow: 0 .5px 0 var(--c-ring-08) !important; }
.common__table__area .table tbody td, table.dataTable tbody td { border: 0 !important; }
.common__table__area .table tbody tr:last-child td { box-shadow: none !important; }
.common__table__area { border: 0; }

/* N4 navigation: white floating bar, plus max roundness on controls and circular icon buttons */
:root { --c-r-control: 9999px; --c-r-pill: 9999px; }
.header__area { height: auto; padding: 16px 32px 0; }
.header__area .container-fluid { height: 60px; padding: 0 12px 0 20px; background: #FFFFFF; border-radius: 9999px; display: flex; align-items: center; justify-content: space-between; }
.logo__main { height: 60px; }
.logo__main img { height: 32px; }
.header__menu ul li { height: 60px; }
.header__menu ul li .menu__link { line-height: 36px; padding: 0 14px; border-radius: 9999px; margin: 0 2px; }
.header__menu ul li .menu__link.active { background: var(--c-100); }
.header__menu ul li .menu__link::before, .header__menu ul li .menu__link.active::before { display: none; }
.header__right, .header__right > div { height: 60px; }
.language__dropdown__wrap { padding: 0 8px; }
.mail a, .user__dropdown .dropdown-toggle { width: 36px; height: 36px; border-radius: 50%; background: var(--c-100); box-shadow: none; }
.mail a:hover, .user__dropdown .dropdown-toggle:hover { background: var(--c-200); }
.dropdown-menu { border-radius: 16px; padding: 8px; }
.dropdown-menu .dropdown-item { border-radius: 9999px; padding: 7px 12px; }
.shell { padding-top: 20px; }
.field, .select, .btn, .btn-sm, .btn-primary, .btn-secondary { border-radius: 9999px; }
.field { padding: 0 16px; }
.select { padding: 0 14px 0 16px; }
.btn { padding: 0 18px; }
.btn-sm { padding: 0 14px; }
.tag { border-radius: 9999px; }
.header__area { padding: 16px 32px 0; }
.header__area .container-fluid { max-width: 1316px; }
.header__area { padding: 16px 24px 0; }
.header__area .container-fluid { max-width: 1440px; padding: 0 12px 0 20px; }
.header__right { gap: 4px; }
.language__dropdown__wrap { padding: 0 6px 0 4px; margin-right: 4px; }
.mail, .user__dropdown { margin: 0; }

/* Logo */
.logo__main img { height: 26px; }
.logo__main a.logo-mobile { display: none !important; }
.logo__main a:not(.logo-mobile) { display: inline-flex !important; align-items: center; }

/* Titles: one weight down, section titles larger */
@font-face { font-family: "Mark Pro"; src: url("/assets/fonts/DSLCLUMarkPro-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
.pagehead h1 { font-weight: 500; }
.table-card__head h2 { font-weight: 500; font-size: 18px; }
.stat__value { font-weight: 500; }

/* Dropdown menus */
.dropdown-menu { min-width: 200px; margin-top: 8px !important; background: #FFFFFF; border: 0; border-radius: 16px; padding: 8px; box-shadow: inset 0 0 0 .5px var(--c-ring-10), 0 8px 24px rgba(33,49,93,.10); font-size: 13px; }
.dropdown-menu .dropdown-item { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9999px; color: var(--c-700); font-weight: 500; }
.dropdown-menu .dropdown-item:hover, .dropdown-menu .dropdown-item:focus-visible { background: var(--c-100); color: var(--c-900); outline: 0; }
.dropdown-menu .dropdown-item.active, .dropdown-menu .dropdown-item:active { background: var(--c-100); color: var(--c-900) !important; font-weight: 600; }
.dropdown-1 .dropdown-item { border-top: 0 !important; }
.dropdown-1 li:first-child a { border-top: 0 !important; }
.header__menu ul li .dropdown-toggle .bi { font-size: 12px; color: var(--c-500); margin-left: 4px; }
.language__dropdown__wrap .dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 9999px; }
.language__dropdown__wrap .dropdown-toggle:hover { background: var(--c-100); color: var(--c-900); }
.language__dropdown__wrap .dropdown-toggle::after { border-top-color: var(--c-500); }

/* States: fields */
.field:hover { box-shadow: inset 0 0 0 .5px var(--c-ring-10), 0 1px 2px rgba(33,49,93,.06); }
.field:focus-within { box-shadow: inset 0 0 0 1px var(--c-accent), 0 0 0 3px rgba(243,58,59,.16); }
.field input:disabled { color: var(--c-500); }
.select:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px var(--c-900), 0 0 0 3px rgba(33,49,93,.14); }
.select:active { transform: scale(.98); }
.select[aria-expanded="true"] { background: var(--c-200); }
/* States: buttons */
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(33,49,93,.18); }
.btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(243,58,59,.28); }
.btn-primary:active { background: #C62A2B; }
.btn-secondary:active { background: var(--c-200); box-shadow: inset 0 0 0 .5px var(--c-ring-18, rgba(33,49,93,.22)); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
/* States: icon buttons and nav */
.mail a:active, .user__dropdown .dropdown-toggle:active { transform: scale(.94); }
.mail a:focus-visible, .user__dropdown .dropdown-toggle:focus-visible, .header__menu ul li .menu__link:focus-visible, .language__dropdown__wrap .dropdown-toggle:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(33,49,93,.16); }
.user__dropdown .dropdown-toggle[aria-expanded="true"], .mail a[aria-expanded="true"] { background: var(--c-200); }
.header__menu ul li .menu__link:active { transform: scale(.98); }
/* States: table */
.common__table__area .table thead th:hover { color: var(--c-900); }
.common__table__area .table tbody tr:active td { background: var(--c-200); }
.tag { transition: background-color var(--c-dur-fast) var(--c-ease); }

/* Off-canvas menu (under 992px) */
.menu-open { display: none; width: 36px; height: 36px; border-radius: 50%; background: var(--c-100); align-items: center; justify-content: center; margin-right: 10px; cursor: pointer; }
.menu-open .bi { font-size: 18px; color: var(--c-900); }
.offcanvas-area { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; background: #FFFFFF; z-index: 1050; padding: 20px; box-sizing: border-box; transform: translateX(-100%); transition: transform var(--c-dur) var(--c-ease); box-shadow: 0 12px 40px rgba(33,49,93,.16); }
.offcanvas-area.active { transform: translateX(0); }
.offcanvas-overlay { position: fixed; inset: 0; background: rgba(33,49,93,.32); z-index: 1040; opacity: 0; pointer-events: none; transition: opacity var(--c-dur) var(--c-ease); }
.offcanvas-overlay.active { opacity: 1; pointer-events: auto; }
.menu-close { width: 36px; height: 36px; border-radius: 50%; background: var(--c-100); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-bottom: 16px; }
.menu-close .bi { font-size: 16px; color: var(--c-900); }
.offcanvas-menu { text-align: left !important; padding: 0 !important; }
.offcanvas-menu .main-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.offcanvas-menu .main-menu ul li a { display: flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 9999px; font-size: 14px; font-weight: 500; color: var(--c-700); text-decoration: none; }
.offcanvas-menu .main-menu ul li a:hover { background: var(--c-100); color: var(--c-900); }
.offcanvas-menu .main-menu ul li a.active { background: var(--c-100); color: var(--c-900); font-weight: 600; }

/* Responsive: override the portal's old breakpoints */
@media (max-width: 1199px) {
  .stats > [class*="col-"] { flex: 0 0 auto; width: 50%; }
  .pagehead h1 { font-size: 24px; }
}
@media (max-width: 991px) {
  .header__menu { display: none; }
  .menu-open { display: inline-flex; }
  .header__area { padding: 12px 16px 0; }
  .header__area .container-fluid { height: 56px; padding: 0 10px 0 10px; }
  .logo__main { height: 56px; }
  .header__right, .header__right > div { height: 56px; }
  .shell { padding: 16px 16px 60px; gap: 16px; }
  .table-card { padding-top: 18px; }
  .table-card__head { padding: 0 16px; }
  .common__table__area { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .common__table__area .table { min-width: 900px; }
  .common__table__area .table th:first-child, .common__table__area .table td:first-child, .common__table__area .table thead th.sorting:first-child, .common__table__area .table thead th.sorting_asc:first-child, .common__table__area .table thead th.sorting_desc:first-child { padding-left: 16px !important; }
  .common__table__area .table th:last-child, .common__table__area .table td:last-child { padding-right: 16px !important; }
}
@media (max-width: 767px) {
  .common__table__area { display: block !important; }
  .common__table__mobile { display: none !important; }
  .pagehead { flex-wrap: wrap; }
  .pagehead .btn { width: 100%; }
  .controls .field { flex: 1 1 100%; }
  .language__dropdown__wrap { display: none; }
}
@media (max-width: 575px) {
  .stats > [class*="col-"] { width: 100%; }
  .stat__value { font-size: 24px; }
  .header__area { padding: 10px 10px 0; }
  .shell { padding: 12px 10px 48px; }
}

/* Full-width white bar variant of the header (Portfolio-compact.html); the floating pill stays on Portfolio-compact-floating.html */
.header__area.header--bar { padding: 0; background: #FFFFFF; }
.header__area.header--bar .container-fluid { max-width: none; height: 64px; border-radius: 0; padding: 0 24px; }
.header__area.header--bar + * .shell, .header__area.header--bar ~ main .shell { padding-top: 24px; }
@media (max-width: 991px) { .header__area.header--bar { padding: 0; } .header__area.header--bar .container-fluid { padding: 0 12px; height: 56px; } }

/* Leftovers: hide the language switch on phones, keep fund names on one line */
@media (max-width: 767px) { .header__right .language__dropdown__wrap { display: none !important; } }
.common__table__area .table tbody td:first-child { white-space: nowrap; }
.header__menu .dropdown-menu li, .header__right .dropdown-menu li { display: block; height: auto; }
.dropdown-menu .dropdown-item { white-space: nowrap; }
.stats { --bs-gutter-y: 0; row-gap: 14px; margin-top: 0; }
.stats > [class*="col-"] { margin-top: 0; }

/* Stat graphs: sparklines and a bar strip, sample data behind a toggle */
.stat__spark { display: block; width: 100%; height: 40px; margin: 2px 0 0; overflow: visible; }
.spark__line { fill: none; stroke: var(--c-900); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark__fill { fill: var(--c-900); opacity: .06; }
.spark__dot { fill: var(--c-red); }
.bar { fill: var(--c-900); opacity: .55; }
.bar--neg { fill: var(--c-red); opacity: .8; }
body.no-graphs .stat__spark { display: none; }
.switch { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; border-radius: 9999px; background: #FFFFFF; box-shadow: inset 0 0 0 .5px var(--c-ring-10); cursor: pointer; margin: 0; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { position: relative; width: 30px; height: 18px; border-radius: 9999px; background: var(--c-200); transition: background-color var(--c-dur) var(--c-ease); }
.switch__thumb { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(33,49,93,.25); transition: transform var(--c-dur-fast) cubic-bezier(.16,1.36,.4,1); }
.switch input:checked + .switch__track { background: var(--c-900); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(12px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3px rgba(33,49,93,.16); }
.switch__label { font-size: 13px; font-weight: 500; color: var(--c-900); }
.stat__spark { width: calc(100% + 40px); margin: 6px -20px 0; height: 44px; }
.stat__foot { box-shadow: none; padding-top: 12px; }
.stats > [class*="col-"] .stat__foot { box-shadow: none; }
body.no-graphs .stat__foot { box-shadow: 0 -.5px 0 var(--c-ring-06); }
.spark__fill { opacity: .07; }
.stat__spark { overflow: visible; }
.spark__dot { stroke: #FFFFFF; stroke-width: 1.5; }
.spark__fill { opacity: 1; fill: none; }
.stat__foot { padding-top: 4px; }
.stat { position: relative; overflow: hidden; }
.stat__spark { height: 82px; margin-bottom: -38px; }
.stat__spark[data-kind="bars"] { width: 100%; margin-left: 0; margin-right: 0; }
.stat__foot { position: relative; z-index: 1; }

/* Gains in green, table only */
:root { --c-green: #1E8A5A; --c-green-soft: rgba(30,138,90,.10); --c-green-strong: rgba(30,138,90,.22); }
.num.is-pos { color: var(--c-green); }
.tag.is-success { color: var(--c-green); background: var(--c-green-soft); box-shadow: inset 0 0 0 .5px var(--c-green-strong); }

/* Card elevation: three soft layers, navy-tinted, from the shadow scale reference (component card recipe) */
:root { --c-shadow-card: 0 0 0 .5px rgba(33,49,93,.03), 0 1px 2px rgba(33,49,93,.05), 0 4px 8px rgba(33,49,93,.035); --c-shadow-card-hover: 0 0 0 .5px rgba(33,49,93,.04), 0 2px 4px rgba(33,49,93,.06), 0 8px 16px rgba(33,49,93,.05); }
.stat, .table-card { box-shadow: var(--c-shadow-card); transition: box-shadow var(--c-dur) var(--c-ease); }
.stat:hover { box-shadow: var(--c-shadow-card-hover); }
.header__area.header--bar { box-shadow: 0 1px 2px rgba(33,49,93,.05); position: relative; z-index: 2; }
.field, .select, .switch, .btn-secondary { box-shadow: 0 0 0 .5px rgba(33,49,93,.10), 0 1px 2px rgba(33,49,93,.05); }

/* Header content width and the shadow toggle in the profile menu */
.header__area.header--bar .container-fluid { max-width: 1920px; margin: 0 auto; }
.dropdown-divider { margin: 6px 4px; border-top: .5px solid var(--c-ring-10); opacity: 1; }
.dropdown-item--switch { justify-content: space-between; cursor: pointer; margin: 0; }
.dropdown-item--switch:hover { background: var(--c-100); }
.switch--sm { height: auto; padding: 0; background: transparent; box-shadow: none; }
.switch--sm .switch__track { width: 28px; height: 16px; }
.switch--sm .switch__thumb { width: 12px; height: 12px; }
.switch--sm input:checked + .switch__track .switch__thumb { transform: translateX(12px); }
body.no-shadows .stat, body.no-shadows .table-card, body.no-shadows .stat:hover { box-shadow: none; }
body.no-shadows .header__area.header--bar { box-shadow: none; }
body.no-shadows .field, body.no-shadows .select, body.no-shadows .switch:not(.switch--sm), body.no-shadows .btn-secondary { box-shadow: inset 0 0 0 .5px var(--c-ring-10); }

/* Navy header theme: dark band from the top down to the middle of the first table card. Toggle in the profile menu. */
:root { --band: 520px; }
body.theme-navy { background: linear-gradient(to bottom, #21315D 0, #21315D var(--band), #FEFAF3 var(--band)); }
.theme-navy .header__area.header--bar { background: transparent; box-shadow: none; }
.theme-navy .logo__main img { filter: brightness(0) invert(1); }
.theme-navy .header__menu ul li .menu__link { color: rgba(251,235,211,.78); }
.theme-navy .header__menu ul li .menu__link:hover { background: rgba(255,255,255,.10); color: #FFFFFF; }
.theme-navy .header__menu ul li .menu__link.active { background: rgba(255,255,255,.12); color: #FFFFFF; }
.theme-navy .header__menu ul li .dropdown-toggle .bi { color: rgba(251,235,211,.6); }
.theme-navy .language__dropdown__wrap .dropdown-toggle { color: rgba(251,235,211,.85); }
.theme-navy .language__dropdown__wrap .dropdown-toggle .bi, .theme-navy .language__dropdown__wrap .dropdown-toggle::after { color: rgba(251,235,211,.6); border-top-color: rgba(251,235,211,.6); }
.theme-navy .mail a, .theme-navy .user__dropdown .dropdown-toggle { background: rgba(255,255,255,.10); }
.theme-navy .mail a:hover, .theme-navy .user__dropdown .dropdown-toggle:hover, .theme-navy .user__dropdown .dropdown-toggle[aria-expanded="true"] { background: rgba(255,255,255,.18); }
.theme-navy .mail a .bi, .theme-navy .user__dropdown .dropdown-toggle .bi { color: #FBEBD3; }
.theme-navy .pagehead h1 { color: #FFFFFF; }
.theme-navy .pagehead p { color: rgba(251,235,211,.8); }
.theme-navy .pagehead .btn-primary { background: rgba(255,255,255,.12); color: #FFFFFF; box-shadow: none; }
.theme-navy .pagehead .btn-primary:hover { background: rgba(255,255,255,.2); }
.theme-navy .field, .theme-navy .select, .theme-navy .switch:not(.switch--sm) { background: rgba(255,255,255,.10); box-shadow: none; color: #FFFFFF; }
.theme-navy .field .ic, .theme-navy .select .ic { color: rgba(251,235,211,.7); }
.theme-navy .field input { color: #FFFFFF; } .theme-navy .field input::placeholder { color: rgba(251,235,211,.7); }
.theme-navy .select { color: #FFFFFF; } .theme-navy .select:hover { background: rgba(255,255,255,.16); }
.theme-navy .switch:not(.switch--sm) .switch__label { color: #FFFFFF; }
.theme-navy .switch:not(.switch--sm) .switch__track { background: rgba(255,255,255,.25); }
.theme-navy .switch:not(.switch--sm) input:checked + .switch__track { background: #FBEBD3; }
.theme-navy .switch:not(.switch--sm) input:checked + .switch__track .switch__thumb { background: #21315D; }
.theme-navy .stat { background: rgba(255,255,255,.08); box-shadow: none; }
.theme-navy .stat:hover { background: rgba(255,255,255,.11); box-shadow: none; }
.theme-navy .stat__label { color: rgba(251,235,211,.85); }
.theme-navy .stat__value { color: #FFFFFF; } .theme-navy .stat__value .unit { color: rgba(251,235,211,.7); }
.theme-navy .stat__foot, .theme-navy .stat .muted { color: rgba(251,235,211,.7); }
.theme-navy .trend { color: #FFFFFF; }
.theme-navy body.no-graphs .stat__foot, .theme-navy.no-graphs .stat__foot { box-shadow: 0 -.5px 0 rgba(255,255,255,.16); }
.theme-navy .spark__line { stroke: #FBEBD3; }
.theme-navy .spark__fill stop:first-child { stop-color: #FFFFFF; }
.theme-navy .bar { fill: #FBEBD3; opacity: .7; } .theme-navy .bar--neg { fill: var(--c-red); opacity: .95; }
.theme-navy .table-card { position: relative; z-index: 1; }
.theme-navy .header__area .container-fluid { background: transparent; }

/* Theme picker in the profile menu */
.dropdown-heading { padding: 8px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-500); }
.dropdown-item--check { width: 100%; border: 0; background: transparent; text-align: left; justify-content: space-between; }
.dropdown-item--check .check { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--c-ring-10); }
.dropdown-item--check.is-active { color: var(--c-900); font-weight: 600; }
.dropdown-item--check.is-active .check { background: var(--c-900); box-shadow: inset 0 0 0 4px #FFFFFF, 0 0 0 1.5px var(--c-900); }

/* Gradient theme: deep navy to Redgate blue on the top band only, glass surfaces inside it; page below stays cream with white cards */
body.theme-gradient { background: linear-gradient(180deg, #0B1226 0, #182A55 calc(var(--band) * .45), #21315D calc(var(--band) * .75), #2C4C8F var(--band), #FEFAF3 var(--band)); }
.theme-gradient .header__area.header--bar, .theme-gradient .header__area .container-fluid { background: transparent; box-shadow: none; }
.theme-gradient .logo__main img { filter: brightness(0) invert(1); }
.theme-gradient .header__menu ul li .menu__link { color: rgba(251,235,211,.75); }
.theme-gradient .header__menu ul li .menu__link:hover { background: rgba(255,255,255,.08); color: #FFFFFF; }
.theme-gradient .header__menu ul li .menu__link.active { background: rgba(255,255,255,.12); color: #FFFFFF; }
.theme-gradient .header__menu ul li .dropdown-toggle .bi, .theme-gradient .language__dropdown__wrap .dropdown-toggle .bi { color: rgba(251,235,211,.6); }
.theme-gradient .language__dropdown__wrap .dropdown-toggle { color: rgba(251,235,211,.85); }
.theme-gradient .language__dropdown__wrap .dropdown-toggle::after { border-top-color: rgba(251,235,211,.6); }
.theme-gradient .mail a, .theme-gradient .user__dropdown .dropdown-toggle { background: rgba(255,255,255,.10); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.10); }
.theme-gradient .mail a:hover, .theme-gradient .user__dropdown .dropdown-toggle:hover, .theme-gradient .user__dropdown .dropdown-toggle[aria-expanded="true"] { background: rgba(255,255,255,.18); }
.theme-gradient .mail a .bi, .theme-gradient .user__dropdown .dropdown-toggle .bi { color: #FBEBD3; }
.theme-gradient .pagehead h1 { color: #FFFFFF; }
.theme-gradient .pagehead p { color: rgba(251,235,211,.7); }
.theme-gradient .pagehead .btn-primary { background: rgba(255,255,255,.12); color: #FFFFFF; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.theme-gradient .pagehead .btn-primary:hover { background: rgba(255,255,255,.2); }
.theme-gradient .field input { color: #FFFFFF; } .theme-gradient .field input::placeholder { color: rgba(251,235,211,.6); }
.theme-gradient .switch:not(.switch--sm) .switch__label { color: #FFFFFF; }
.theme-gradient .switch:not(.switch--sm) .switch__track { background: rgba(255,255,255,.22); }
.theme-gradient .switch:not(.switch--sm) input:checked + .switch__track { background: #FBEBD3; }
.theme-gradient .switch:not(.switch--sm) input:checked + .switch__track .switch__thumb { background: #21315D; }
.theme-gradient .stat:hover { background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12); }
.theme-gradient .stat__label { color: rgba(251,235,211,.8); }
.theme-gradient .stat__value { color: #FFFFFF; } .theme-gradient .stat__value .unit { color: rgba(251,235,211,.6); }
.theme-gradient .stat__foot, .theme-gradient .stat .muted { color: rgba(251,235,211,.65); }
.theme-gradient .trend { color: #FFFFFF; }
.theme-gradient.no-graphs .stat__foot { box-shadow: 0 -.5px 0 rgba(255,255,255,.14); }
.theme-gradient .spark__line { stroke: #FBEBD3; }
.theme-gradient .spark__fill stop:first-child { stop-color: #FFFFFF; }
.theme-gradient .bar { fill: #FBEBD3; opacity: .65; } .theme-gradient .bar--neg { fill: #FF7B7B; opacity: .95; }

.theme-gradient .table-card { position: relative; z-index: 1; }
.theme-gradient .stat { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.theme-gradient .field, .theme-gradient .select, .theme-gradient .switch:not(.switch--sm) { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.10); color: #FFFFFF; }
.theme-gradient .table-card { background: #FFFFFF; }

/* Graphs on the dark themes */
.theme-navy .spark__line, .theme-gradient .spark__line { stroke: #FFFFFF; stroke-width: 1.5; }
.theme-navy .spark__fill stop:first-child, .theme-gradient .spark__fill stop:first-child { stop-color: #FFFFFF; stop-opacity: .16; }
.theme-navy .spark__fill stop:last-child, .theme-gradient .spark__fill stop:last-child { stop-color: #FFFFFF; stop-opacity: 0; }
.theme-navy .spark__dot, .theme-gradient .spark__dot { fill: var(--c-red); stroke: #1B2A52; stroke-width: 2; }
.theme-navy .bar, .theme-gradient .bar { fill: #FFFFFF; opacity: .38; }
.theme-navy .bar--neg, .theme-gradient .bar--neg { fill: #FF6B6B; opacity: 1; }
.theme-navy .trend .ic, .theme-gradient .trend .ic { color: #FF8A8A; }
.theme-navy .spark__fill stop:first-child, .theme-gradient .spark__fill stop:first-child { stop-opacity: 0; }
.theme-navy .spark__fill stop:last-child, .theme-gradient .spark__fill stop:last-child { stop-opacity: .14; }
.theme-navy .spark__fill stop:last-child, .theme-gradient .spark__fill stop:last-child { stop-opacity: .32; }
/* Stops sit in <defs>, so target them through the svg, not the path */
.theme-navy .stat__spark stop:first-child, .theme-gradient .stat__spark stop:first-child { stop-color: #FFFFFF; stop-opacity: 0; }
.theme-navy .stat__spark stop:last-child, .theme-gradient .stat__spark stop:last-child { stop-color: #FFFFFF; stop-opacity: .26; }
.stat__spark { height: 108px; margin-bottom: -64px; }
.theme-navy .stat__spark stop:last-child, .theme-gradient .stat__spark stop:last-child { stop-opacity: .34; }

/* Cream band theme: darker beige on the top band, lighter page below; cards stay white */
body.theme-cream { background: linear-gradient(to bottom, #F7EBDA 0, #F7EBDA var(--band), #FEFAF3 var(--band)); }
.theme-cream .header__area.header--bar, .theme-cream .header__area .container-fluid { background: transparent; box-shadow: none; }
.theme-cream .header__menu ul li .menu__link.active { background: rgba(255,255,255,.7); }
.theme-cream .header__menu ul li .menu__link:hover { background: rgba(255,255,255,.5); }
.theme-cream .mail a, .theme-cream .user__dropdown .dropdown-toggle { background: #FFFFFF; }
.theme-cream .table-card { position: relative; z-index: 1; }
/* Dark themes: fill is strongest at the line and fades out toward the card bottom */
.theme-navy .stat__spark stop:first-child, .theme-gradient .stat__spark stop:first-child { stop-opacity: .26; }
.theme-navy .stat__spark stop:last-child, .theme-gradient .stat__spark stop:last-child { stop-opacity: 0; }
.theme-navy .stat__spark stop:first-child { stop-opacity: .14; }

/* Dark themes: white type instead of cream, with opacity steps for hierarchy */
.theme-navy .header__menu ul li .menu__link, .theme-gradient .header__menu ul li .menu__link { color: rgba(255,255,255,.75); }
.theme-navy .header__menu ul li .dropdown-toggle .bi, .theme-gradient .header__menu ul li .dropdown-toggle .bi { color: rgba(255,255,255,.55); }
.theme-navy .language__dropdown__wrap .dropdown-toggle, .theme-gradient .language__dropdown__wrap .dropdown-toggle { color: rgba(255,255,255,.85); }
.theme-navy .language__dropdown__wrap .dropdown-toggle .bi, .theme-gradient .language__dropdown__wrap .dropdown-toggle .bi, .theme-navy .language__dropdown__wrap .dropdown-toggle::after, .theme-gradient .language__dropdown__wrap .dropdown-toggle::after { color: rgba(255,255,255,.55); border-top-color: rgba(255,255,255,.55); }
.theme-navy .mail a .bi, .theme-navy .user__dropdown .dropdown-toggle .bi, .theme-gradient .mail a .bi, .theme-gradient .user__dropdown .dropdown-toggle .bi { color: #FFFFFF; }
.theme-navy .pagehead p, .theme-gradient .pagehead p { color: rgba(255,255,255,.7); }
.theme-navy .field .ic, .theme-navy .select .ic, .theme-gradient .field .ic, .theme-gradient .select .ic { color: rgba(255,255,255,.65); }
.theme-navy .field input::placeholder, .theme-gradient .field input::placeholder { color: rgba(255,255,255,.6); }
.theme-navy .switch:not(.switch--sm) input:checked + .switch__track, .theme-gradient .switch:not(.switch--sm) input:checked + .switch__track { background: #FFFFFF; }
.theme-navy .stat__label, .theme-gradient .stat__label { color: rgba(255,255,255,.8); }
.theme-navy .stat__value .unit, .theme-gradient .stat__value .unit { color: rgba(255,255,255,.6); }
.theme-navy .stat__foot, .theme-navy .stat .muted, .theme-gradient .stat__foot, .theme-gradient .stat .muted { color: rgba(255,255,255,.65); }

/* Logo as mark + wordmark, so the mark stays red on every theme */
.logo { display: inline-flex; align-items: center; gap: 9px; height: 26px; }
.logo img { height: 26px; width: auto; display: block; filter: none !important; }
.logo__word--white { display: none; }
.theme-navy .logo__word, .theme-gradient .logo__word { display: none; }
.theme-navy .logo__word--white, .theme-gradient .logo__word--white { display: block; }
.logo__main a.logo { display: inline-flex !important; }

/* First-load entrance: mark settles in, wordmark reveals to the right. Once per session. */
@keyframes rg-mark { from { opacity: 0; transform: translateY(-4px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes rg-word { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-4px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
.logo--intro .logo__mark { animation: rg-mark 480ms cubic-bezier(.05,.7,.1,1) 80ms both; }
.logo--intro .logo__word, .logo--intro .logo__word--white { animation: rg-word 560ms cubic-bezier(.2,0,0,1) 320ms both; }
@media (prefers-reduced-motion: reduce) { .logo--intro .logo__mark, .logo--intro .logo__word { animation: none; } }
.logo img.logo__word--white { display: none; }
.theme-navy .logo img.logo__word--white, .theme-gradient .logo img.logo__word--white { display: block; }
.theme-navy .logo img.logo__word, .theme-gradient .logo img.logo__word { display: none; }
.theme-navy .logo img.logo__word:not(.logo__word--white), .theme-gradient .logo img.logo__word:not(.logo__word--white) { display: none; }
.theme-navy .logo img.logo__word--white, .theme-gradient .logo img.logo__word--white { display: block; }

/* Wide layout option: content up to 1920px */
body.layout-wide .shell, body.layout-wide .header__area .container-fluid { max-width: 1920px; }
