/* ==========================================================================
   StockNepals - Modern Portfolio Management Design System
   File: portfolio.style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Portfolio Top Header Bar & Action Buttons
   -------------------------------------------------------------------------- */
.portfolio-header-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    margin-bottom: 1.25rem;
}

.portfolio-hero-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #64748b;
}

.trade-actions-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 2px 0;
}

.btn-nav-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 33px;
    padding: 0 13px;
    font-size: 0.815rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.18s ease-in-out;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-nav-action:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
    text-decoration: none;
}

.btn-nav-action:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.btn-nav-dark {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #ffffff !important;
}

.btn-nav-dark:hover {
    background-color: #1e293b;
    border-color: #1e293b;
    color: #ffffff !important;
}

.btn-nav-red {
    background-color: #cb403d;
    border-color: #b91c1c;
    color: #ffffff !important;
}

.btn-nav-red:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #ffffff !important;
}

.btn-nav-green {
    background-color: #16a34a;
    border-color: #15803d;
    color: #ffffff !important;
}

.btn-nav-green:hover {
    background-color: #15803d;
    border-color: #166534;
    color: #ffffff !important;
}

.btn-nav-light {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #334155 !important;
}

.btn-nav-light:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   2. Simple Solid Metric Cards
   -------------------------------------------------------------------------- */
.stat-card {
    border-radius: 8px;
    padding: 12px 18px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-card-blue {
    background-color: #2172b3;
}

.stat-card-green {
    background-color: #4caf50;
}

.stat-card-red {
    background-color: #cb403d;
}

.stat-card-content {
    z-index: 2;
}

.stat-card-title {
    font-size: 0.825rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3px;
    line-height: 1.2;
}

.stat-card-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.stat-card-icon {
    font-size: 2.35rem;
    color: rgba(255, 255, 255, 0.28);
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   3. Modern Data Grids & Table Standards
   -------------------------------------------------------------------------- */
.portfolio-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.portfolio-card-header {
    background: #ffffff;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.portfolio-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-card-body {
    padding: 1rem 1.25rem;
}

.portfolio-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

#txTable thead th,
#txTable thead th.sorting,
#txTable thead th.sorting_asc,
#txTable thead th.sorting_desc,
.portfolio-table thead th,
.portfolio-table thead th.sorting,
.portfolio-table thead th.sorting_asc,
.portfolio-table thead th.sorting_desc,
table.dataTable thead th,
.portfolio-table thead th.stock,
.portfolio-table thead th.col-sticky-1 {
    background: #e2e8f0 !important;
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    padding: 8px 8px !important;
    border: 1px solid #cbd5e1 !important;
    vertical-align: middle !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
}

#txTable thead th *,
.portfolio-table thead th * {
    color: #0f172a !important;
}

.portfolio-table tbody td {
    padding: 7px 8px;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
    color: #1e293b;
}

.portfolio-table tbody tr {
    transition: background-color 0.12s ease-in-out;
}

.portfolio-table tbody tr:hover td {
    background-color: #f1f5f9;
}

/* Sticky Stock Symbol Column (Rule 3) */
.portfolio-table tbody td.stock,
.portfolio-table tbody td.col-sticky-1 {
    position: sticky;
    left: 0;
    z-index: 5;
    background-color: #ffffff;
    border-right: 2px solid #cbd5e1;
}

.portfolio-table thead th.stock,
.portfolio-table thead th.col-sticky-1 {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 25;
    background-color: #e2e8f0;
    border-right: 2px solid #cbd5e1;
}

.portfolio-table tbody tr:hover td.stock,
.portfolio-table tbody tr:hover td.col-sticky-1 {
    background-color: #f1f5f9;
}

/* Summary Footer Standard */
.portfolio-table-tfoot {
    background: #f8fafc;
    border-top: 2px solid #64748b;
}

.portfolio-table-tfoot td {
    border-top: 2px solid #64748b;
    font-weight: 700;
    padding: 11px 12px;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   4. Profit/Loss Badges, Chips & Highlights
   -------------------------------------------------------------------------- */
.text-profit {
    color: #16a34a;
    font-weight: 700;
}

.text-loss {
    color: #dc2626;
    font-weight: 700;
}

.badge-profit {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    font-weight: 700;
    font-size: 11.5px;
}

.badge-loss {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    font-weight: 700;
    font-size: 11.5px;
}

/* Live NEPSE Pulse Indicator */
.pulse-live {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 rgba(22, 163, 74, 0.6);
    animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* --------------------------------------------------------------------------
   5. Action Buttons, Pills & Badges
   -------------------------------------------------------------------------- */
.portfolio-symbol-badge {
    font-size: 13px;
    font-weight: 700;
    padding: 3px 8px;
    letter-spacing: 0.3px;
    background: #f0f9ff;
    color: #0090e7;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.15s ease;
}

.portfolio-symbol-badge:hover {
    background: #0090e7;
    color: #ffffff;
    border-color: #0090e7;
}

.portfolio-comp-truncate {
    max-width: 220px;
    font-size: 0.825rem;
    font-weight: 600;
    color: #0f172a;
}

/* Toolbar Action Buttons (Buy, Sell, History) */
.btn-portfolio-buy {
    background: #16a34a;
    color: #ffffff;
    border: 1px solid #15803d;
    font-weight: 600;
    font-size: 0.835rem;
    padding: 0 16px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2);
    transition: all 0.15s ease-in-out;
}

.btn-portfolio-buy:hover {
    background: #15803d;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
    transform: translateY(-1px);
}

.btn-portfolio-sell {
    background: #cb403d;
    color: #ffffff;
    border: 1px solid #b91c1c;
    font-weight: 600;
    font-size: 0.835rem;
    padding: 0 16px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(203, 64, 61, 0.2);
    transition: all 0.15s ease-in-out;
}

.btn-portfolio-sell:hover {
    background: #b91c1c;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(203, 64, 61, 0.3);
    transform: translateY(-1px);
}

.btn-portfolio-history {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 0.835rem;
    padding: 0 14px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease-in-out;
}

.btn-portfolio-history:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.portfolio-search-box {
    position: relative;
    width: 240px;
}

.portfolio-search-input {
    height: 34px;
    font-size: 0.825rem;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding-left: 32px;
    transition: all 0.15s ease;
    width: 100%;
}

.portfolio-search-input:focus {
    background-color: #ffffff;
    border-color: #2172b3;
    box-shadow: 0 0 0 3px rgba(33, 114, 179, 0.12);
    outline: none;
}

.portfolio-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 575.98px) {
    .portfolio-search-box {
        width: 100%;
    }

    .portfolio-toolbar-actions {
        width: 100%;
        gap: 6px;
    }

    .portfolio-toolbar-actions .btn-portfolio-buy,
    .portfolio-toolbar-actions .btn-portfolio-sell,
    .portfolio-toolbar-actions .btn-portfolio-history {
        flex: 1;
        justify-content: center;
        padding: 0 8px;
        font-size: 0.8rem;
    }
}

.btn-action-buy {
    width: 28px;
    height: 28px;
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.btn-action-buy:hover {
    background-color: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

.btn-action-sell {
    width: 28px;
    height: 28px;
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.btn-action-sell:hover {
    background-color: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.btn-action-chart {
    width: 28px;
    height: 28px;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.btn-action-chart:hover {
    background-color: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.portfolio-badge-sm {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
}

/* DataTables Top & Bottom Controls Spacing & Aesthetics */
.portfolio-card .dt-top-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.85rem !important;
    padding: 0 4px !important;
    gap: 1rem !important;
}

.portfolio-card .dt-bottom-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 0.85rem !important;
    padding: 0 4px !important;
    gap: 1rem !important;
}

.portfolio-card .dataTables_length label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    color: #475569 !important;
    font-weight: 500 !important;
}

.portfolio-card .dataTables_length select {
    height: 32px !important;
    padding: 2px 24px 2px 8px !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 13px !important;
    background-color: #ffffff !important;
}

.portfolio-card .dataTables_filter label {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.portfolio-card .dataTables_filter input {
    height: 32px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 13px !important;
    background-color: #ffffff !important;
    min-width: 180px !important;
}

/* Action Table Edit / Delete Buttons */
.btn-table-edit,
.btn-table-delete {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    margin: 0 2px !important;
    border-radius: 5px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    line-height: 1 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-table-edit {
    background-color: #2172b3 !important;
    border: 1px solid #1a5c91 !important;
    color: #ffffff !important;
}

.btn-table-edit:hover {
    background-color: #1a5c91 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.btn-table-delete {
    background-color: #cb403d !important;
    border: 1px solid #b91c1c !important;
    color: #ffffff !important;
}

.btn-table-delete:hover {
    background-color: #b91c1c !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.btn-table-edit i,
.btn-table-delete i {
    font-size: 11px !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* --------------------------------------------------------------------------
   6. Sector & Analytics Progress Bars
   -------------------------------------------------------------------------- */
.sector-progress-track {
    background-color: #e2e8f0;
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
}

.sector-progress-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #0090e7 0%, #38bdf8 100%);
}

/* --------------------------------------------------------------------------
   7. Trade Modal & Transaction Controls
   -------------------------------------------------------------------------- */
.trade-switch-container {
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    display: flex;
    gap: 4px;
}

.trade-switch-btn {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.trade-switch-btn.active-buy {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
}

.trade-switch-btn.active-sell {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.breakdown-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
}

/* --------------------------------------------------------------------------
   8. Dedicated Trade Page Components (Buy & Sell)
   -------------------------------------------------------------------------- */
.trade-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

.trade-card-buy {
    border-top: 3px solid #16a34a;
}

.trade-card-sell {
    border-top: 3px solid #cb403d;
}

.btn-submit-trade {
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    height: 36px;
    min-width: 175px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.18s ease-in-out;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.btn-submit-trade:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

.btn-submit-trade:active {
    transform: translateY(0);
}

.summary-strip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 14px;
}

.summary-strip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    padding: 3px 0;
}

.summary-strip-label {
    color: #64748b;
    font-weight: 500;
}

.summary-strip-val {
    color: #0f172a;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-variant-numeric: tabular-nums;
}

.summary-net-row {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-net-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.summary-net-val {
    font-size: 16px;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-variant-numeric: tabular-nums;
}



.trade-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.trade-card-header-green {
    background-color: #16a34a !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 9px 14px;
    border-bottom: 1px solid #15803d;
}

.trade-card-header-red {
    background-color: #cb403d !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 9px 14px;
    border-bottom: 1px solid #b91c1c;
}

.bonus-share-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bonus-share-box:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.bonus-share-box input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: #2172b3;
    margin-top: 0;
}


.select2-container--default .select2-selection--single {
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px;
    padding-left: 10px;
    color: #1e293b;
    font-size: 0.835rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px;
    right: 8px;
}



/* --------------------------------------------------------------------------
   8. Mobile Responsive Overrides (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .portfolio-card form button[type="submit"] {
        margin-top: 8px;
    }

    /* Clean Mobile Portfolio DataTables Top & Bottom Controls */
    .portfolio-card .dt-top-controls {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-bottom: 0.85rem !important;
        padding: 0 !important;
    }

    .portfolio-card .dataTables_filter {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .portfolio-card .dataTables_filter label {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
    }

    .portfolio-card .dataTables_filter input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: 36px !important;
        padding: 6px 12px !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
        font-size: 13px !important;
    }

    .portfolio-card .dataTables_length {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        font-size: 13px !important;
        margin: 0 !important;
    }

    .portfolio-card .dt-bottom-controls {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        margin-top: 0.85rem !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .dataTables_wrapper .dataTables_info,
    .portfolio-card .dataTables_info {
        text-align: center !important;
        font-size: 12.5px !important;
    }

    .dataTables_wrapper .dataTables_paginate,
    .portfolio-card .dataTables_paginate {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .stat-card {
        padding: 9px 12px;
        min-height: 68px;
        border-radius: 7px;
    }

    .stat-card-title {
        font-size: 0.72rem;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat-card-value {
        font-size: 0.875rem;
        line-height: 1.25;
        letter-spacing: -0.3px;
    }

    .stat-card-icon {
        font-size: 1.55rem;
        right: 8px;
        opacity: 0.2;
    }

    .portfolio-comp-truncate {
        max-width: 130px;
    }

    .portfolio-table thead th,
    .portfolio-table tbody td {
        padding: 7px 8px;
        font-size: 12px;
    }
}
