﻿/* ============================================================
   ASSETCORE DESIGN SYSTEM
============================================================ */

:root {
    --primary: #0275AE;
    --primary-dark: #0069A0;
    --navy: #092240;
    --navy-dark: #001C36;
    --background: #F5F8FA;
    --surface: #FFFFFF;
    --border: #DCE5EC;
    --text: #092240;
    --muted: #6B7C8F;
    --success: #198754;
    --warning: #F59E0B;
    --danger: #DC3545;
    --sidebar-width: 270px;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(0, 0, 0, .06);
    --transition: .20s ease;
}


/* ============================================================
   BASE
============================================================ */

html {
    height: 100%;
    font-size: 15px;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}


/* ============================================================
   APPLICATION SHELL
============================================================ */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-main {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
}

.app-content {
    flex: 1;
    padding: 35px;
}


/* ============================================================
   SIDEBAR
============================================================ */

.app-sidebar {
    display: flex;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    min-height: 100vh;
    flex-direction: column;
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow);
}

.sidebar-brand {
    display: flex;
    min-height: 130px;
    align-items: center;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand-link {
    display: flex;
    width: 100%;
    align-items: center;
}

.sidebar-logo {
    width: 145px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.sidebar-nav {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
}

.sidebar-section-label {
    margin: 24px 16px 8px;
    padding: 0;
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar-link {
    position: relative;
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin: 2px 10px;
    padding: 0 12px;
    border-radius: 8px;
    color: #d8e5ef;
    transition: background-color var(--transition), color var(--transition);
}

.sidebar-parent {
    margin-top: 4px;
    color: #ffffff;
    font-weight: 600;
    cursor: default;
}

    .sidebar-parent:hover {
        background: transparent;
    }

.sidebar-sub-link {
    min-height: 38px;
    margin-left: 30px;
    width: calc(100% - 50px);
    font-size: .9rem;
}

    .sidebar-sub-link .sidebar-icon {
        width: 22px;
        min-width: 22px;
    }



.sidebar-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.sidebar-link.active {
    background: rgba(2, 117, 174, .18);
    color: #fff;
    font-weight: 600;
}

.sidebar-icon {
    display: inline-flex;
    width: 28px;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: inherit;
}

    .sidebar-icon i {
        font-size: 15px;
    }

    .sidebar-icon svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

.sidebar-link-text {
    flex: 1;
}

.sidebar-status-pill {
    display: inline-flex;
    min-width: 40px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .02em;
}

.sidebar-link-disabled {
    cursor: not-allowed;
    opacity: .38;
    pointer-events: none;
    user-select: none;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-product-version {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #9FB5C9;
}

    .sidebar-product-version strong {
        color: #fff;
        font-size: 12px;
        font-weight: 700;
    }

    .sidebar-product-version span {
        font-size: 10px;
        opacity: .68;
    }

    .sidebar-product-version small {
        margin-top: 2px;
        font-size: 9px;
        opacity: .44;
    }


/* ============================================================
   TOPBAR
============================================================ */

.app-topbar {
    display: flex;
    height: 70px;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-left {
    min-width: 0;
    gap: 18px;
}

.topbar-right {
    gap: 10px;
}

.sidebar-toggle {
    display: none;
}

.topbar-breadcrumb {
    display: flex;
    min-width: 0;
    align-items: center;
    color: var(--muted);
    font-size: .84rem;
    white-space: nowrap;
}

.breadcrumb-home {
    color: var(--muted);
    font-weight: 500;
}

    .breadcrumb-home:hover {
        color: var(--primary);
    }

.breadcrumb-separator {
    margin: 0 9px;
    color: #b5c0ca;
}

.breadcrumb-section {
    color: var(--muted);
}

.breadcrumb-current {
    overflow: hidden;
    color: var(--navy);
    font-weight: 700;
    text-overflow: ellipsis;
}


/* ============================================================
   NOTIFICATIONS
============================================================ */

.topbar-icon-button {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    transition: var(--transition);
}

    .topbar-icon-button:hover,
    .topbar-icon-button:focus {
        border-color: var(--border);
        background: var(--background);
        color: var(--primary);
    }

    .topbar-icon-button svg {
        width: 21px;
        height: 21px;
        fill: currentColor;
    }

.notification-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--danger);
}

.notification-menu {
    width: 360px;
    margin-top: 10px !important;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(9, 34, 64, .14);
}

.notification-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

    .notification-menu-header strong,
    .notification-menu-header span {
        display: block;
    }

    .notification-menu-header strong {
        color: var(--navy);
    }

    .notification-menu-header div > span {
        margin-top: 3px;
        color: var(--muted);
        font-size: .75rem;
    }

.notification-count {
    display: inline-flex !important;
    min-width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(2, 117, 174, .10);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 700;
}

.notification-list {
    display: grid;
}

.notification-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

    .notification-item:hover {
        background: var(--background);
    }

    .notification-item strong,
    .notification-item small {
        display: block;
    }

    .notification-item strong {
        color: var(--navy);
        font-size: .82rem;
    }

    .notification-item small {
        margin-top: 4px;
        color: var(--muted);
        font-size: .74rem;
    }

.notification-item-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 800;
}

.notification-danger {
    background: rgba(220, 53, 69, .10);
    color: var(--danger);
}

.notification-warning {
    background: rgba(245, 158, 11, .14);
    color: #a66300;
}

.notification-info {
    background: rgba(2, 117, 174, .10);
    color: var(--primary);
}

.notification-menu-footer {
    display: block;
    padding: 13px 18px;
    color: var(--primary);
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
}


/* ============================================================
   ACCOUNT DROPDOWN
============================================================ */

.account-menu-button {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 5px 8px 5px 5px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    text-align: left;
    transition: var(--transition);
}

    .account-menu-button:hover,
    .account-menu-button:focus,
    .account-menu-button[aria-expanded="true"] {
        border-color: var(--border);
        background: var(--background);
    }

.account-avatar,
.account-menu-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--navy));
    color: #fff;
    font-weight: 700;
}

.account-avatar {
    width: 36px;
    height: 36px;
    font-size: .78rem;
}

.account-summary {
    min-width: 0;
}

    .account-summary strong,
    .account-summary small {
        display: block;
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-summary strong {
        color: var(--navy);
        font-size: .78rem;
        font-weight: 700;
    }

    .account-summary small {
        margin-top: 2px;
        color: var(--muted);
        font-size: .68rem;
    }

.account-chevron {
    width: 17px;
    height: 17px;
    fill: var(--muted);
}

.account-menu {
    width: 290px;
    margin-top: 10px !important;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(9, 34, 64, .14);
}

.account-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.account-menu-avatar {
    width: 42px;
    height: 42px;
    font-size: .86rem;
}

.account-menu-header div {
    min-width: 0;
}

.account-menu-header strong,
.account-menu-header span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu-header strong {
    color: var(--navy);
    font-size: .8rem;
}

.account-menu-header span {
    margin-top: 3px;
    color: var(--muted);
    font-size: .7rem;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 11px;
    border-radius: 9px;
    color: var(--text);
    font-size: .8rem;
}

    .account-menu-item:hover {
        background: var(--background);
        color: var(--primary);
    }

    .account-menu-item svg {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        fill: currentColor;
    }

.account-menu-logout {
    width: 100%;
    color: var(--danger);
}

    .account-menu-logout:hover {
        background: rgba(220, 53, 69, .07);
        color: var(--danger);
    }


/* ============================================================
   APP FOOTER
============================================================ */

.app-footer {
    display: flex;
    justify-content: space-between;
    padding: 18px 30px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
}


/* ============================================================
   PUBLIC PAGES
============================================================ */

.public-header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.public-header-inner {
    display: flex;
    height: 75px;
    align-items: center;
    justify-content: space-between;
}

.public-logo {
    height: 42px;
}

.public-content {
    padding: 60px;
}

.public-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
}


/* ============================================================
   GENERIC COMPONENTS
============================================================ */

.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.btn-primary {
    border-color: var(--primary);
    background: var(--primary);
}

    .btn-primary:hover,
    .btn-primary:focus {
        border-color: var(--primary-dark);
        background: var(--primary-dark);
    }

.navbar-nav {
    align-items: center;
}

.btn-link {
    text-decoration: none;
}

.asset-row {
    cursor: pointer;
}

    .asset-row:hover {
        background-color: rgba(13, 110, 253, .06) !important;
    }


/* ============================================================
   LOGIN LAYOUT
============================================================ */

.login-layout-content {
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.login-secondary-action {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem;
    font-size: .875rem;
}

/* ============================================================
   LOGIN BRAND PANEL
============================================================ */

.login-brand-panel {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    padding: 46px 48px 34px;
    overflow: hidden;
    background: radial-gradient( circle at 15% 20%, rgba(2, 117, 174, .32), transparent 32% ), linear-gradient( 145deg, var(--navy-dark) 0%, var(--navy) 58%, #0d3d62 100% );
    color: #fff;
}

    .login-brand-panel::after {
        content: "";
        position: absolute;
        right: -110px;
        bottom: -130px;
        width: 280px;
        height: 280px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 50%;
    }

.login-brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    max-width: 590px;
    flex-direction: column;
}

    .login-brand-content::before {
        content: "";
        position: absolute;
        top: -30px;
        left: -30px;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(0, 150, 255, .08);
        filter: blur(70px);
    }

.login-logo-wrapper {
    position: relative;
    z-index: 2;
    margin: 0 0 48px;
    margin-bottom: 36px;
}

.login-brand-logo {
    display: block;
    width: 210px;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.login-brand-copy {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 0;
}

.login-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #71c5ed;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.login-brand-copy h1 {
    max-width: 560px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(44px, 4vw, 66px);
    font-weight: 750;
    line-height: 1.03;
    letter-spacing: -.045em;
}

.login-brand-copy p {
    max-width: 540px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 15px;
    line-height: 1.75;
}

.login-feature-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 38px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
}

.login-feature-icon {
    display: inline-flex;
    width: 25px;
    min-width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(53, 169, 255, .14);
    color: #42b5ff;
    font-size: 13px;
}

.login-brand-footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 32px;
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    line-height: 1.4;
}

    .login-brand-footer strong {
        color: rgba(255, 255, 255, .85);
        font-size: 12px;
    }

    .login-brand-footer span {
        opacity: .82;
    }

    .login-brand-footer small {
        opacity: .65;
    }
/* ============================================================
   LOGIN FORM PANEL
============================================================ */

.login-form-panel {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: #f5f8fb;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.login-form-shell {
    width: 100%;
    max-width: 510px;
}

.login-card {
    width: 100%;
    padding: 44px 42px 34px;
    border: 1px solid #dce5ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 55px rgba(24, 48, 79, .10);
}

.login-card-header {
    margin-bottom: 30px;
}

.login-card-eyebrow {
    display: inline-block;
    margin-bottom: 11px;
    color: #1474bf;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-card-header h2 {
    margin: 0 0 8px;
    color: #102744;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -.025em;
}

.login-card-header p {
    margin: 0;
    color: #738196;
    font-size: 13px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .login-form .form-group {
        margin: 0;
    }

    .login-form .form-label {
        margin-bottom: 8px;
        color: var(--navy);
        font-weight: 600;
    }

.login-input-group {
    position: relative;
}

.login-input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: #8090a4;
    font-size: 15px;
    pointer-events: none;
}

.AssetCore-input {
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cbd8e2;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
}

    .AssetCore-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(2, 117, 174, .12);
    }

.login-input-group .AssetCore-input {
    padding-left: 42px;
}

.password-input-wrap {
    position: relative;
}

    .password-input-wrap .AssetCore-input {
        padding-right: 72px;
    }

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 13px;
    padding: 4px 6px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: -2px;
    color: var(--muted);
}

.login-form .form-check-input:checked {
    border-color: var(--primary);
    background-color: var(--primary);
}

.login-help-link {
    color: var(--primary);
    font-size: .88rem;
    font-weight: 600;
}

    .login-help-link:hover {
        color: var(--primary-dark);
    }

.login-submit {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    font-weight: 650;
    box-shadow: 0 10px 24px rgba(2, 117, 174, .22);
}

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    color: #7b8999;
    font-size: 11px;
}

.security-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ba66f;
    box-shadow: 0 0 0 4px rgba(43, 166, 111, .10);
}

.login-page-footer {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    color: #8390a1;
    font-size: 11px;
}

.validation-summary-valid,
.field-validation-valid {
    display: none;
}

.field-validation-error {
    display: block;
    margin-top: 7px;
    font-size: .8rem;
}
/* ============================================================
   EXECUTIVE DASHBOARD
============================================================ */

.dashboard-page {
    max-width: 1600px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dashboard-header h1 {
    margin: 0;
    color: var(--navy);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.03em;
}

.dashboard-header p {
    margin: 8px 0 0;
    color: var(--muted);
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}

.kpi-card,
.dashboard-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.executive-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.kpi-card {
    padding: 22px;
}

.kpi-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.kpi-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.kpi-icon-blue {
    background: rgba(2, 117, 174, .12);
    color: var(--primary);
}

.kpi-icon-green {
    background: rgba(25, 135, 84, .12);
    color: var(--success);
}

.kpi-icon-orange {
    background: rgba(245, 158, 11, .14);
    color: var(--warning);
}

.kpi-icon-red {
    background: rgba(220, 53, 69, .12);
    color: var(--danger);
}

.kpi-icon-purple {
    background: #f2efff;
    color: #6852c7;
}

.kpi-value {
    color: var(--navy);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.kpi-value-money {
    font-size: 25px;
    letter-spacing: -.04em;
}

.kpi-label {
    margin-top: 10px;
    color: var(--text);
    font-weight: 600;
}

.kpi-meta {
    margin-top: 5px;
    color: var(--muted);
    font-size: .82rem;
}

.kpi-status {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--background);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
}

.kpi-status-warning {
    background: rgba(245, 158, 11, .12);
    color: #a66300;
}

.kpi-status-danger {
    background: rgba(220, 53, 69, .10);
    color: var(--danger);
}

.dashboard-card {
    padding: 24px;
}

.dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

    .dashboard-card-header h2 {
        margin: 0;
        color: var(--navy);
        font-size: 1.1rem;
        font-weight: 700;
    }

    .dashboard-card-header p {
        margin: 5px 0 0;
        color: var(--muted);
        font-size: .82rem;
    }

.card-link {
    color: var(--primary);
    font-size: .82rem;
    font-weight: 600;
}

    .card-link:hover {
        color: var(--primary-dark);
    }
/* ============================================================
   DASHBOARD PORTFOLIO
============================================================ */

.dashboard-executive-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr);
    gap: 20px;
    margin-bottom: 20px;
}

.portfolio-card,
.asset-control-card {
    min-width: 0;
}

.portfolio-table {
    width: 100%;
}

.portfolio-table-header,
.portfolio-table-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) 80px minmax(130px, .8fr) minmax(130px, .8fr);
    gap: 16px;
    align-items: center;
}

.portfolio-table-header {
    padding: 12px 0;
    border-bottom: 1px solid #e8edf3;
    color: #7a8797;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.portfolio-table-row {
    min-height: 72px;
    border-bottom: 1px solid #edf1f5;
}

    .portfolio-table-row:last-child {
        border-bottom: 0;
    }

.portfolio-category {
    min-width: 0;
}

    .portfolio-category strong {
        display: block;
        margin-bottom: 8px;
        overflow: hidden;
        color: #172b4d;
        font-size: 13px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.portfolio-progress {
    width: 100%;
    max-width: 220px;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf4;
}

    .portfolio-progress span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: var(--primary);
    }

.portfolio-number,
.portfolio-money {
    color: #536174;
    text-align: right;
    font-size: 13px;
}

.portfolio-number,
.portfolio-carrying {
    color: #172b4d;
    font-weight: 700;
}
/* ============================================================
   DASHBOARD ASSET CONTROL
============================================================ */

.asset-control-list {
    display: flex;
    flex-direction: column;
}

.asset-control-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 76px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f5;
    color: inherit;
    transition: background-color .15s ease;
}

    .asset-control-item:last-child {
        border-bottom: 0;
    }

    .asset-control-item:hover {
        color: inherit;
    }

.asset-control-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 16px;
}

.control-warning {
    background: #fff5df;
    color: #c77b00;
}

.control-danger {
    background: #ffebee;
    color: #d83a52;
}

.control-info {
    background: #eaf3ff;
    color: #2474e5;
}

.asset-control-content {
    min-width: 0;
}

    .asset-control-content strong {
        display: block;
        color: #172b4d;
        font-size: 13px;
        font-weight: 600;
    }

    .asset-control-content small {
        display: block;
        margin-top: 3px;
        color: #8390a1;
        font-size: 11px;
    }

.asset-control-value {
    min-width: 34px;
    color: #172b4d;
    text-align: right;
    font-size: 22px;
    font-weight: 700;
}
/* ============================================================
   RECENT ASSET REGISTER
============================================================ */

.recent-assets-panel {
    margin-bottom: 22px;
}

.recent-assets-table {
    width: 100%;
}

.recent-assets-header,
.recent-assets-row {
    display: grid;
    grid-template-columns: minmax(250px, 1.5fr) minmax(160px, 1fr) minmax(130px, .8fr) minmax(130px, .7fr) 110px 20px;
    gap: 16px;
    align-items: center;
}

.recent-assets-header {
    padding: 12px 0;
    border-bottom: 1px solid #e8edf3;
    color: #7a8797;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.recent-assets-row {
    min-height: 70px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
    color: inherit;
    transition: background-color .15s ease;
}

    .recent-assets-row:last-child {
        border-bottom: 0;
    }

    .recent-assets-row:hover {
        color: inherit;
    }

.recent-asset-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.recent-asset-icon {
    display: inline-flex;
    width: 38px;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eaf3ff;
    color: #2474e5;
}

.recent-asset-main > span:last-child {
    min-width: 0;
}

.recent-asset-main strong {
    display: block;
    color: #172b4d;
    font-size: 13px;
    font-weight: 700;
}

.recent-asset-main small {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #7e8b9c;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-asset-category,
.recent-asset-location,
.recent-asset-date {
    overflow: hidden;
    color: #536174;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-asset-value {
    color: #172b4d;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
}

.recent-asset-chevron {
    color: #9ca8b7;
    text-align: right;
}

.dashboard-empty-state {
    padding: 36px 0;
    color: #8491a2;
    text-align: center;
    font-size: 13px;
}
/* ============================================================
   RESPONSIVE - APPLICATION
============================================================ */

@media (max-width: 1400px) {
    .executive-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .dashboard-executive-grid {
        grid-template-columns: 1fr;
    }

    .recent-assets-header {
        display: none;
    }

    .recent-assets-row {
        grid-template-columns: minmax(220px, 1.5fr) minmax(140px, 1fr) minmax(120px, .8fr) 20px;
    }

    .recent-asset-location,
    .recent-asset-date {
        display: none;
    }
}

@media (max-width: 992px) {
    .app-sidebar {
        position: fixed;
        z-index: 1000;
        top: 0;
        bottom: 0;
        left: calc(var(--sidebar-width) * -1);
        transition: left .3s ease;
    }

        .app-sidebar.sidebar-open {
            left: 0;
        }

    .sidebar-toggle {
        display: block;
        width: 34px;
        height: 34px;
        border: none;
        background: none;
    }

        .sidebar-toggle span {
            display: block;
            height: 3px;
            margin: 5px 0;
            background: var(--navy);
        }

    .app-content {
        padding: 20px;
    }
}

@media (max-width: 800px) {
    .executive-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-table-header,
    .portfolio-table-row {
        grid-template-columns: minmax(180px, 1fr) 60px minmax(110px, .7fr);
    }

        .portfolio-table-header span:nth-child(3),
        .portfolio-table-row > div:nth-child(3) {
            display: none;
        }

    .dashboard-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 750px) {
    .breadcrumb-home,
    .breadcrumb-section,
    .topbar-breadcrumb .breadcrumb-separator:first-of-type {
        display: none;
    }

    .account-summary,
    .account-chevron {
        display: none;
    }

    .notification-menu {
        width: min(360px, calc(100vw - 30px));
    }
}

@media (max-width: 650px) {
    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-actions {
        width: 100%;
    }

        .dashboard-actions .btn {
            flex: 1;
        }
}

@media (max-width: 560px) {
    .executive-kpi-grid {
        grid-template-columns: 1fr;
    }

    .recent-assets-row {
        grid-template-columns: 1fr 20px;
    }

    .recent-asset-category,
    .recent-asset-location,
    .recent-asset-value,
    .recent-asset-date {
        display: none;
    }
}
/* ============================================================
   RESPONSIVE - LOGIN
============================================================ */

@media (max-width: 1050px) {
    .login-brand-panel {
        padding: 36px;
    }

    .login-logo-wrapper {
        margin-bottom: 38px;
    }

    .login-brand-copy h1 {
        font-size: 46px;
    }

    .login-form-panel {
        padding: 32px;
    }
}

@media (max-width: 820px) {
    .login-layout-content {
        display: block;
        min-height: 100vh;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        display: flex;
        width: 100%;
        min-height: 100vh;
    }

    .login-form-shell {
        max-width: 460px;
    }
}

@media (max-width: 520px) {
    .login-form-panel {
        padding: 20px;
    }

    .login-card {
        padding: 34px 24px 28px;
        border-radius: 14px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .login-page-footer {
        flex-direction: column;
        align-items: center;
    }
}

.account-settings-nav {
    display: flex;
    flex-direction: column;
    padding: .5rem;
}

.account-settings-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .9rem;
    border-radius: .65rem;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
}

    .account-settings-link:hover {
        background: #f1f5f9;
        color: #0f172a;
    }

    .account-settings-link.active {
        background: #e8f1fb;
        color: #1f6fb2;
        font-weight: 600;
    }

.account-settings-icon {
    width: 1.5rem;
    display: inline-flex;
    justify-content: center;
    font-size: 1rem;
}

.sidebar-parent {
    margin-top: 4px;
    color: #ffffff;
    font-weight: 600;
    cursor: default;
}

    .sidebar-parent:hover {
        background: transparent;
    }

.sidebar-sub-link {
    min-height: 38px;
    margin-left: 30px;
    width: calc(100% - 50px);
    font-size: .9rem;
}

    .sidebar-sub-link .sidebar-icon {
        width: 22px;
        min-width: 22px;
    }

/* ============================================================
   SECURITY ONBOARDING SHELL
============================================================ */

.security-onboarding-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 48px 32px 72px;
    background: #f5f8fb;
}

.security-onboarding-body {
    width: 100%;
}

.security-onboarding-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.security-onboarding-header {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.security-onboarding-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 28px;
}

.security-onboarding-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #2468b4;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.security-onboarding-header h1 {
    margin: 0 0 10px;
    color: #102a43;
    font-size: 2rem;
    font-weight: 700;
}

.security-onboarding-header p {
    max-width: 620px;
    margin: 0 auto;
    color: #667085;
    font-size: 1rem;
    line-height: 1.6;
}

.security-onboarding-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* ============================================================
   MFA ONBOARDING
============================================================ */

.mfa-onboarding {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.mfa-onboarding-heading {
    margin-bottom: 24px;
    text-align: left;
}

    .mfa-onboarding-heading h2 {
        margin: 0 0 6px;
        color: #102a43;
        font-size: 1.55rem;
        font-weight: 700;
    }

    .mfa-onboarding-heading p {
        margin: 0;
        color: #667085;
    }


/* ============================================================
   MFA GRID
============================================================ */

.mfa-onboarding-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 24px;
    align-items: start;
}


/* ============================================================
   CARDS
============================================================ */

.mfa-main-card,
.mfa-side-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.mfa-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e8edf3;
    background: #ffffff;
}

    .mfa-card-header h3 {
        margin: 0 0 4px;
        color: #102a43;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .mfa-card-header p {
        margin: 0;
        color: #667085;
        font-size: 0.9rem;
    }

.mfa-card-body {
    padding: 24px;
}


/* ============================================================
   MFA STEPS
============================================================ */

.mfa-step {
    display: flex;
    gap: 16px;
    padding: 0 0 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e8edf3;
}

.mfa-step-last {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.mfa-step-number {
    display: inline-flex;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2f6fed;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

.mfa-step-content {
    min-width: 0;
    flex: 1;
}

    .mfa-step-content h4 {
        margin: 2px 0 6px;
        color: #102a43;
        font-size: 0.95rem;
        font-weight: 700;
    }

    .mfa-step-content p {
        margin: 0;
        color: #667085;
        line-height: 1.55;
    }


/* ============================================================
   QR CODE
============================================================ */

.mfa-qr-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    margin-top: 18px;
}

.mfa-qr-box {
    flex: 0 0 auto;
    padding: 12px;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #ffffff;
}

#qrCode {
    width: 220px;
    height: 220px;
}

    #qrCode img,
    #qrCode canvas {
        display: block;
        width: 220px !important;
        height: 220px !important;
    }


/* ============================================================
   MANUAL KEY
============================================================ */

.mfa-manual-key {
    flex: 1;
    min-width: 220px;
}

.mfa-muted-label {
    display: block;
    margin-bottom: 8px;
    color: #667085;
    font-size: 0.85rem;
}

.mfa-manual-key p {
    margin-bottom: 10px;
    color: #344054;
}

.mfa-manual-key kbd {
    display: inline-block;
    max-width: 100%;
    padding: 10px 12px;
    overflow-wrap: anywhere;
    border-radius: 6px;
    background: #17202c;
    color: #ffffff;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.mfa-manual-key small {
    display: block;
    margin-top: 8px;
    color: #667085;
}


/* ============================================================
   VERIFICATION
============================================================ */

.mfa-verification-form {
    width: 100%;
    max-width: 420px;
    margin-top: 18px;
}

    .mfa-verification-form .form-label {
        color: #344054;
        font-weight: 600;
    }

    .mfa-verification-form .form-control {
        min-height: 46px;
        border: 1px solid #ccd5e1;
        border-radius: 8px;
        background: #ffffff;
    }

        .mfa-verification-form .form-control:focus {
            border-color: #2f6fed;
            box-shadow: 0 0 0 0.2rem rgba(47, 111, 237, 0.12);
        }

    .mfa-verification-form .btn {
        min-height: 46px;
        padding-left: 22px;
        padding-right: 22px;
        border-radius: 8px;
        font-weight: 600;
    }


/* ============================================================
   SECURITY INFORMATION
============================================================ */

.mfa-security-item {
    display: flex;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e8edf3;
}

    .mfa-security-item:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: 0;
    }

.mfa-security-icon {
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef4ff;
    color: #2f6fed;
    font-size: 1.05rem;
}

.mfa-security-item h4 {
    margin: 0 0 5px;
    color: #102a43;
    font-size: 0.95rem;
    font-weight: 700;
}

.mfa-security-item p {
    margin: 0;
    color: #667085;
    font-size: 0.88rem;
    line-height: 1.55;
}


/* ============================================================
   VALIDATION
============================================================ */

.mfa-onboarding .alert-danger {
    border: 1px solid #f1b6bc;
    border-radius: 8px;
    background: #fff1f2;
    color: #991b1b;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 991.98px) {

    .security-onboarding-page {
        padding: 36px 20px 56px;
    }

    .security-onboarding-body {
        width: 100%;
    }

    .security-onboarding-inner {
        max-width: 760px;
    }

    .mfa-onboarding-grid {
        grid-template-columns: 1fr;
    }

    .mfa-side-card {
        order: 2;
    }
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .security-onboarding-page {
        padding: 28px 14px 42px;
    }

    .security-onboarding-logo {
        width: 150px;
        margin-bottom: 22px;
    }

    .security-onboarding-header {
        margin-bottom: 28px;
    }

        .security-onboarding-header h1 {
            font-size: 1.6rem;
        }

    .mfa-onboarding-heading h2 {
        font-size: 1.35rem;
    }

    .mfa-card-body,
    .mfa-card-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .mfa-qr-layout {
        display: block;
    }

    .mfa-manual-key {
        margin-top: 20px;
    }

    #qrCode,
    #qrCode img,
    #qrCode canvas {
        width: 190px !important;
        height: 190px !important;
    }
}
