.menu .app-brand.demo {
    height: 64px;
    margin-top: 12px;
}

.app-brand-logo.demo svg {
    width: 22px;
    height: 38px;
}

.app-brand-text.demo {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
    padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
    display: block !important;
}

.demo-inline-spacing > * {
    margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.rtl-only {
    display: none !important;
    text-align: left !important;
    direction: ltr !important;
}

[dir='rtl'] .rtl-only {
    display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1rem;
}

.layout-demo-placeholder img {
    width: 900px;
}

.layout-demo-info {
    text-align: center;
    margin-top: 1rem;
}

.w-100px {
    width: 100px !important;
}

.mw-100px {
    max-width: 100px !important;
}

.w-150px {
    width: 150px !important;
}

.mw-150px {
    max-width: 150px !important;
}

.w-180px {
    width: 180px !important;
}

.w-120px {
    width: 120px !important;
}

.w-200px {
    width: 200px !important;
}

.w-220px {
    width: 220px !important;
}

.mw-220px {
    max-width: 220px !important;
}

.w-250px {
    width: 250px !important;
}

.w-300px {
    width: 300px !important;
}

.w-400px {
    width: 400px !important;
}

.w-500px {
    width: 500px !important;
}

.h-100px {
    height: 100px !important;
}

.h-150px {
    height: 100px !important;
}

.h-120px {
    height: 120px !important;
}

.h-200px {
    height: 200px !important;
}

.h-250px {
    height: 250px !important;
}

.h-300px {
    height: 300px !important;
}

.h-400px {
    height: 400px !important;
}

.h-500px {
    height: 500px !important;
}


.tab-pane:not(.active) {
    display: none;
}

.rotate-90 {
    transform: rotate(90deg);
}

.rotate-180 {
    transform: rotate(180deg);
}

.rotate-270 {
    transform: rotate(270deg);
}

.bi.rotate-90::before {
    transform: rotate(90deg);
}

.bi.rotate-180::before {
    transform: rotate(180deg);
}

.bi.rotate-270::before {
    transform: rotate(270deg);
}

.d-inline {
    display: inline !important;
}

.btn-facebook {
    color: #fff;
    background-color: #4267b2;
    border-color: rgba(0,0,0,0.2);
}

.btn-twitter {
    color: #fff;
    background-color: #1da1f2;
    border-color: rgba(0,0,0,0.2);
}

.btn-google {
    color: #333333;
    background-color: #eeeeee;
    border-color: rgba(1,1,1,0.2);
}

.btn-social {
    position: relative;
    padding-left: 44px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .btn-social:hover {
        color: #eee;
    }

    .btn-social :first-child {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        padding: 7px;
        font-size: 1.4em;
        text-align: center;
        border-right: 1px solid rgba(0,0,0,0.2);
    }

.direction-rtl {
    direction: rtl !important;
}

.direction-ltr {
    direction: ltr !important;
}

.dir-rtl {
    direction: rtl !important;
}

.dir-ltr {
    direction: ltr !important;
}

.mt--2 {
    margin-top: -0.75rem !important;
}

.mt--3 {
    margin-top: -1rem !important;
}

/*div.dataTables_wrapper div.dataTables_filter {
    text-align: end !important;
}

@media (min-width: 576px) {
    div.dataTables_wrapper div.dataTables_filter {
        text-align: inherit !important;
    }
}

table.dataTable thead th, table.dataTable thead td, table.dataTable tfoot th, table.dataTable tfoot td {
    text-align: start !important;
}*/

.h-90 {
    height: 90% !important;
}

.h-80 {
    height: 80% !important;
}

.h-70 {
    height: 70% !important;
}

dl.dl-horizontal dt, dd {
    display: inline;
}

dl.dl-horizontal dd:after {
    content: "\a";
    white-space: pre;
}

.bg-menu-theme.menu-horizontal {
    box-shadow: none !important;
}

.layout-menu-horizontal {
    z-index: 0 !important;
}

/* ——— Top navigation ——— */
.site-top-menu .menu-inner {
    flex-wrap: wrap;
    gap: 0.15rem;
}

.site-top-menu .menu-inner > .menu-item > .menu-link {
    border-radius: 0.5rem;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    font-size: 0.9375rem;
    font-weight: 500;
    padding-inline: 0.85rem !important;
    white-space: nowrap;
}

.site-top-menu .menu-inner > .menu-item > .menu-link > div {
    line-height: 1.35;
}

.site-top-menu .menu-icon {
    font-size: 1.25rem;
}

.site-top-menu .menu-inner > .menu-item.active > .menu-link,
.site-top-menu .menu-inner > .menu-item.open > .menu-link {
    background: rgba(105, 108, 255, 0.12);
}

.site-top-menu .menu-sub-enhanced {
    min-width: 16.5rem;
    padding: 0.45rem 0;
    border-radius: 0.65rem;
    box-shadow: 0 12px 32px rgba(67, 89, 113, 0.18);
}

.site-top-menu .menu-sub-enhanced > .menu-item > .menu-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    margin: 0.12rem 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.site-top-menu .menu-sub-icon {
    font-size: 1.15rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.site-top-menu .menu-sub-admin {
    min-width: 18rem;
}

.site-top-menu .menu-sub-admin .menu-header {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    opacity: 0.75;
    text-transform: none;
}

.site-top-menu .menu-item-utility {
    margin-inline-start: 0.25rem;
}

.site-top-menu .menu-item.highlighted > .menu-link {
    background: linear-gradient(135deg, rgba(105, 108, 255, 0.14), rgba(105, 108, 255, 0.06));
    border: 1px solid rgba(105, 108, 255, 0.25);
}

.theme-dark .site-top-menu .menu-sub-enhanced {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1399.98px) {
    .site-top-menu .menu-inner > .menu-item > .menu-link {
        font-size: 0.875rem;
        padding-inline: 0.65rem !important;
    }
}

/* ——— Page toolbars (symbols / filters) ——— */
.page-toolbar {
    background: linear-gradient(135deg, rgba(105, 108, 255, 0.06) 0%, rgba(105, 108, 255, 0.02) 100%);
    border: 1px solid rgba(105, 108, 255, 0.14);
    border-radius: 0.75rem;
    padding: 1rem 1.15rem 1.15rem;
    box-shadow: 0 4px 18px rgba(67, 89, 113, 0.06);
}

.page-toolbar-compact {
    padding: 0.65rem 1rem;
}

.page-toolbar-body-inline {
    margin: 0;
}

.page-toolbar-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #566a7f;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(105, 108, 255, 0.12);
}

.page-toolbar-title > .bx:first-child {
    font-size: 1.35rem;
    color: #696cff;
    align-self: center;
}

.page-toolbar-hint {
    font-size: 0.875rem;
    font-weight: 400;
    color: #697a8d;
    width: 100%;
    margin-top: 0.1rem;
}

.page-toolbar-title .page-toolbar-hint {
    width: auto;
    flex: 1 1 100%;
    margin-top: 0.15rem;
    padding-inline-start: 1.85rem;
}

.page-toolbar-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.5rem;
}

.page-toolbar-actions .page-toolbar-body {
    align-items: flex-end;
}

.toolbar-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.toolbar-field-inline {
    flex-direction: column;
}

.toolbar-field-grow {
    flex: 1 1 280px;
    min-width: 240px;
}

.toolbar-field-symbol {
    flex: 1 1 360px;
    min-width: 260px;
    max-width: 100%;
}

.toolbar-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #566a7f;
    margin: 0;
    white-space: nowrap;
}

.page-toolbar .bootstrap-select > .dropdown-toggle {
    min-height: 2.5rem;
    font-size: 0.9375rem;
}

.page-toolbar .bootstrap-select > .dropdown-toggle {
    border-radius: 0.5rem !important;
}

.toolbar-field-filter .bootstrap-select,
#page-toolbar-data-table-filters .bootstrap-select {
    min-width: 260px;
}

.toolbar-field-column-filter .bootstrap-select,
.toolbar-field-column-filter .form-control {
    min-width: 200px;
}

.toolbar-field-column-filter .form-control-sm {
    min-height: 2.5rem;
}

table.table-ajax thead tr.filters .data-filter-range {
    display: flex;
    gap: 0.25rem;
}

table.table-ajax thead tr.filters .data-filter-range .form-control {
    min-width: 0;
    flex: 1 1 0;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

#page-toolbar-data-table-filters .btn-save-data-filter,
#page-toolbar-data-table-filters .btn-delete-data-filter {
    margin-inline-start: 0 !important;
}

.finance-selection-badge:not(:empty) {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    background: rgba(105, 108, 255, 0.1);
    color: #696cff;
    font-weight: 600;
}

.theme-dark .page-toolbar {
    background: linear-gradient(135deg, rgba(105, 108, 255, 0.12) 0%, rgba(24, 24, 36, 0.95) 100%);
    border-color: rgba(105, 108, 255, 0.22);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.theme-dark .page-toolbar-title {
    color: #c8cdd8;
}

.theme-dark .page-toolbar-hint,
.theme-dark .toolbar-label {
    color: #a8b0c1;
}

/* ——— Chart page maximize mode ——— */
body.chart-page-maximized #news-ticker-band {
    display: none !important;
}

body.chart-page-maximized #chart-page-sidebar {
    display: none !important;
}

body.chart-page-maximized #chart-page-main {
    flex: 0 0 100%;
    max-width: 100%;
}

body.chart-page-maximized .page-toolbar-chart {
    padding: 0.5rem 0.85rem 0.65rem;
    margin-bottom: 0.65rem !important;
}

body.chart-page-maximized .page-toolbar-chart .page-toolbar-body {
    align-items: center;
    gap: 0.65rem 1rem;
}

body.chart-page-maximized .page-toolbar-chart .toolbar-field {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

body.chart-page-maximized .page-toolbar-chart .toolbar-field .toolbar-label.d-block {
    display: none !important;
}

body.chart-page-maximized #chart-container {
    margin-bottom: 0 !important;
}

/* ——— Finance section nav ——— */
.finance-nav {
    background: var(--bs-card-bg, #fff);
    border: 1px solid rgba(105, 108, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 4px 16px rgba(67, 89, 113, 0.06);
}

.finance-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.finance-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #697a8d;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.finance-nav-link .bx {
    font-size: 1.1rem;
}

.finance-nav-link:hover {
    color: #696cff;
    background: rgba(105, 108, 255, 0.08);
}

.finance-nav-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, #696cff, #5a5de8);
    box-shadow: 0 4px 12px rgba(105, 108, 255, 0.35);
}

.theme-dark .finance-nav {
    background: #181824;
    border-color: rgba(105, 108, 255, 0.2);
}

.theme-dark .finance-nav-link {
    color: #b0b8c1;
}

.theme-dark .finance-nav-link.is-active {
    color: #fff;
}

@media (max-width: 767.98px) {
    .page-toolbar-body {
        flex-direction: column;
        align-items: stretch;
    }

    .finance-nav-inner {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .finance-nav-link {
        flex-shrink: 0;
    }
}

.language-select {
    min-width: 100px !important;
}

.live-data {
    transition: color 0.5s;
    transition: font-weight 0.5s;
}

.live-data.text-normal {
    color: inherit !important;
}

    .live-data.text-green-flash {
        color: #149110 !important;
        font-weight: bold;
    }

    .live-data.text-red-flash {
        color: #ff002b !important;
        font-weight: bold;
    }

   .theme-dark .live-data.text-red-flash {
        color: #f23645 !important;
        font-weight: bold;
    }

    .live-data > img {
        margin-top: -4px !important;
    }

.support-control {
    display: none !important;
}

.sidebar-box {
    max-height: 320px;
    position: relative;
    overflow: hidden;
}

    .sidebar-box .read-more {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 10px 0;
        background-image: linear-gradient(to bottom, transparent, white);
    }

.theme-dark .sidebar-box .read-more {
    background-image: linear-gradient(to bottom, transparent, #101018) !important;
}

.error {
    color: crimson;
    font-size: 13px;
}

.hidden {
    display: none !important;
}

.transparent {
    opacity: 0 !important;
}

select#culture {
    text-align: center !important;
}

.tooltip-inner {
    max-width: 500px !important;
}

.icon-button {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    border: 0;
    background: transparent;
}

.text-gold {
    color: #ffd700 !important;
}

thead input {
    width: 100% !important;
}

.form-selection-sm {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-clip: padding-box !important;
    background-color: #fff !important;
    border: 1px solid #d9dee3 !important;
    color: #495461 !important;
    display: block !important;
    font-weight: 400 !important;
    line-height: 1.53 !important;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out !important;
    border-radius: 0.25rem !important;
    font-size: .75rem !important;
    min-height: calc(1.53em + 0.5rem + 2px) !important;
    padding: 0.25rem 0.625rem !important;
}

[dir='rtl'] .bootstrap-select .dropdown-toggle .filter-option{
    text-align: right !important;
}

[dir='rtl'] .bootstrap-select.show-tick .dropdown-menu li a span.text {
    margin-right: 0 !important;
    margin-left: 34px !important;
}

[dir='rtl'] .bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
    left: 15px !important; 
    top: 11px;
    right: inherit !important;
}

.blurred {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
}

.blurred-locked {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;   /* fill same height as .row */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: #333;
}

.overlay .overlay-content {
    background: #ffffffde;
    padding: 25px;
    border-radius: 10px;
}

.opacity-90 {
    opacity: 0.9 !important;
}

.opacity-80 {
    opacity: 0.8 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.opacity-70 {
    opacity: 0.7 !important;
}

.opacity-60 {
    opacity: 0.6 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-40 {
    opacity: 0.4 !important;
}

.opacity-30 {
    opacity: 0.3 !important;
}

.opacity-20 {
    opacity: 0.2 !important;
}

.opacity-10 {
    opacity: 0.1 !important;
}

.opacity-0 {
    opacity: 0 !important;
}

.menu-item.highlighted a {
    color: #696cff !important;
}

.menu-item.highlighted.active a {
    color: white !important;
}


/* Premium portfolios page */
.premium-card { border-radius: 12px; overflow: hidden; }
.premium-price-circle {
    width: 160px; height: 160px; margin: 0 auto; border-radius: 50%;
    background: linear-gradient(135deg,#eef6ff 0,#dff4ff 60%);
    box-shadow: 0 8px 24px rgba(13,110,253,0.12);
    display:flex; align-items:center; justify-content:center;
}

.premium-stats .bg-light { background-color: rgba(248,249,250,0.9) !important; }
.premium-stats .flex-fill { min-width: 0; }
.premium-stats .fw-bold { font-size: 1rem; }

.card.premium-elevate { transition: transform .18s ease, box-shadow .18s ease; }
.card.premium-elevate:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(13,110,253,0.12); }

/* Make sure info doesn't overflow on small screens */
@media (max-width: 576px) {
    .premium-price-circle { width: 96px; height: 96px; }
    .premium-stats .text-muted.small { font-size: .68rem; }
}

.theme-dark .premium-card { border-radius: 12px; overflow: hidden; background-color: #181824; }
.theme-dark .premium-price-circle {
    width: 160px; height: 160px; margin: 0 auto; border-radius: 50%;
    background: linear-gradient(135deg,#232a3a 0,#1a2233 60%);
    box-shadow: 0 8px 24px rgba(13,110,253,0.22);
    display:flex; align-items:center; justify-content:center;
}
.theme-dark .premium-stats .bg-light { background-color: rgba(40,44,52,0.95) !important; }
.theme-dark .premium-stats .flex-fill { min-width: 0; }
.theme-dark .premium-stats .fw-bold { font-size: 1rem; color: #bcbdea; }

.theme-dark .card.premium-elevate { transition: transform .18s ease, box-shadow .18s ease; background-color: #181824; }
.theme-dark .card.premium-elevate:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(13,110,253,0.22); }

@media (max-width: 576px) {
    .theme-dark .premium-price-circle { width: 96px; height: 96px; }
    .theme-dark .premium-stats .text-muted.small { font-size: .68rem; color: #b0b8c1; }
}

.menu-link.chat-launch {
    background: linear-gradient(135deg, #5f61e6, #2c2fde);
    color: white !important;
    overflow: hidden;
}

/* Base shine layer (invisible until hover) */
.menu-link.chat-launch::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
            120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    opacity: 0;
    pointer-events: none;
}

/* Trigger a temporary sweep animation on hover */
.menu-link.chat-launch:hover::before {
    animation: shine-sweep 1.2s ease forwards;
}

.menu-link.chat-launch:hover {
    box-shadow: 0 0 12px rgba(95, 97, 230, 0.4);
}

/* The animation — moves across and fades out automatically */
@keyframes shine-sweep {
    0% {
        left: -75%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        left: 125%;
        opacity: 0;
    }
}

/* Ticker News */
.news-ticker-band {
    font-size: 0.9rem;
    /* border-bottom: 2px solid darkred; */
    box-shadow: 0 2px 6px rgb(0 0 0 / 61%);
    min-height: 38px;
    background-color: #4e0000f0 !important;
    overflow: hidden !important;
    position: sticky !important;
    z-index: 20 !important;
    top: 63px !important;
    height: 42px !important;
}

@media (max-width: 1192px) {
    .news-ticker-band {
        display: none;
    }
}

.news-ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 2.5rem;
    font-weight: 500;
    height: 40px !important;
}

.news-ticker-symbol {
    color: #ffd452;
    margin-right: 0.5rem;
}

[dir='rtl'] .news-ticker-symbol {
    margin-right: 0;
    margin-left: 0.5rem;
}

.news-ticker-article {
    color: #fff;
    margin-right: 0.5rem;
}

[dir='rtl'] .news-ticker-article {
    margin-right: 0;
    margin-left: 0.5rem;
}

.news-ticker-message {
    color: #fff;
    margin-right: 0.5rem;
}

[dir='rtl'] .news-ticker-message {
    margin-right: 0;
    margin-left: 0.5rem;
}

/*@keyframes ticker-scroll {*/
/*     0% { transform: translateX(100%); }*/
/*     100% { transform: translateX(-100%); }*/
/* }*/

/*@keyframes ticker-scroll-ar {*/
/*    0% { transform: translateX(-100%); }*/
/*    100% { transform: translateX(100%); }*/
/*}*/

.animation-paused {
    animation-play-state: paused !important;
}

div.dataTables_processing>div:last-child>div {
    background: #696cff !important;
}

.portfolio-summary {
    border: 1px solid rgba(67, 89, 113, 0.12);
    border-radius: 0.5rem;
    background: linear-gradient(180deg, rgba(105, 108, 255, 0.04) 0%, rgba(67, 89, 113, 0.02) 100%);
    padding: 1rem 1.125rem;
}

.portfolio-summary-header,
.portfolio-summary-subheader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #566a7f;
}

.portfolio-summary-header {
    margin-bottom: 0.875rem;
    font-size: 0.95rem;
}

.portfolio-summary-subheader {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    padding-top: 0.875rem;
    border-top: 1px dashed rgba(67, 89, 113, 0.16);
    font-size: 0.85rem;
}

.portfolio-summary-header__icon,
.portfolio-summary-subheader__icon {
    color: #696cff;
    font-size: 1rem;
}

.portfolio-summary-metric {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 0.9rem;
    border: 1px solid rgba(67, 89, 113, 0.1);
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(67, 89, 113, 0.06);
    border-inline-start-width: 3px;
    border-inline-start-style: solid;
    min-height: 100%;
}

.portfolio-summary-metric__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.45rem;
    background: rgba(67, 89, 113, 0.06);
    color: #697a8d;
    flex-shrink: 0;
    font-size: 1rem;
}

.portfolio-summary-metric__body {
    min-width: 0;
    flex: 1;
}

.portfolio-summary-metric__label {
    font-size: 0.75rem;
    color: #a1acb8;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.portfolio-summary-metric__value {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: #566a7f;
    word-break: break-word;
}

.portfolio-summary-metric--primary {
    border-inline-start-color: #696cff;
}

.portfolio-summary-metric--primary .portfolio-summary-metric__icon {
    background: rgba(105, 108, 255, 0.12);
    color: #696cff;
}

.portfolio-summary-metric--success {
    border-inline-start-color: #71dd37;
}

.portfolio-summary-metric--success .portfolio-summary-metric__icon {
    background: rgba(113, 221, 55, 0.12);
    color: #71dd37;
}

.portfolio-summary-metric--danger {
    border-inline-start-color: #ff3e1d;
}

.portfolio-summary-metric--danger .portfolio-summary-metric__icon {
    background: rgba(255, 62, 29, 0.12);
    color: #ff3e1d;
}

.portfolio-summary-metric--warning {
    border-inline-start-color: #ffab00;
}

.portfolio-summary-metric--warning .portfolio-summary-metric__icon {
    background: rgba(255, 171, 0, 0.12);
    color: #ffab00;
}

.portfolio-summary-metric--info {
    border-inline-start-color: #03c3ec;
}

.portfolio-summary-metric--info .portfolio-summary-metric__icon {
    background: rgba(3, 195, 236, 0.12);
    color: #03c3ec;
}

.portfolio-summary-metric--neutral {
    border-inline-start-color: #8592a3;
}

@media (max-width: 575.98px) {
    .portfolio-summary {
        padding: 0.875rem;
    }

    .portfolio-summary-metric {
        padding: 0.75rem;
        gap: 0.625rem;
    }

    .portfolio-summary-metric__value {
        font-size: 0.95rem;
    }
}