/* AskAndy enterprise corporate theme */

:root,
html[data-theme="light"] {
    --aa-navy: #0B1F35;
    --aa-blue: #1F3A5F;
    --aa-teal: #0D9488;
    --aa-bg: #F5F7FA;
    --aa-white: #FFFFFF;
    --aa-text: #334155;
    --aa-muted: #64748B;
    --aa-border: #DCE3EB;
    --bs-primary: #1F3A5F;
    --bs-primary-rgb: 31,58,95;
    --bs-body-bg: #F5F7FA;
    --bs-body-color: #334155;
    --bs-border-color: #DCE3EB;
}

html body {
    font-family: Inter, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif !important;
    background: #F5F7FA !important;
    color: #334155 !important;
}

html body .main-content,
html body .page-content,
html body #layout-wrapper {
    background: #F5F7FA !important;
    background-image: none !important;
}

html body #page-topbar,
html body .navbar-header,
html body .navbar-brand-box {
    background: #FFFFFF !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    color: #334155 !important;
}

html body #page-topbar {
    border-bottom: 1px solid #DCE3EB !important;
}

html body #page-topbar .header-item,
html body #page-topbar .header-item i {
    color: #334155 !important;
}

html body .vertical-menu,
html body .vertical-menu .simplebar-content,
html body #sidebar-menu {
    background: #0B1F35 !important;
    background-image: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

html body #sidebar-menu .menu-title {
    color: #94A3B8 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}

html body #sidebar-menu ul li a,
html body #sidebar-menu ul li a i {
    color: #CBD5E1 !important;
    font-weight: 500;
}

html body #sidebar-menu ul li a:hover,
html body #sidebar-menu ul li.mm-active > a,
html body #sidebar-menu ul li a.active {
    background: #1F3A5F !important;
    color: #FFFFFF !important;
    border-radius: 4px;
}

html body #sidebar-menu .mm-active > a i,
html body #sidebar-menu a.active i {
    color: #5EEAD4 !important;
}

html body .card,
html body .kpi-card {
    background: #FFFFFF !important;
    background-image: none !important;
    color: #334155 !important;
    border: 1px solid #DCE3EB !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(15,23,42,.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html body .card-header,
html body .card-footer {
    background: #FFFFFF !important;
    background-image: none !important;
    border-color: #DCE3EB !important;
}

html body .card-title,
html body .page-title,
html body .page-title-box h4 {
    color: #0B1F35 !important;
    font-weight: 600 !important;
}

html body .kpi-card h6 {
    color: #64748B !important;
    font-weight: 600 !important;
}

html body .kpi-card .balance-info {
    font-weight: 700 !important;
    letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
}

html body .card-desc,
html body .kpi-prior-label,
html body .text-muted {
    color: #64748B !important;
}

html body .filter-box,
html body .form-control,
html body .form-select,
html body .filter-input,
html body .custom-select {
    background-color: #FFFFFF !important;
    color: #334155 !important;
    border-color: #DCE3EB !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

html body .filter-label {
    color: #64748B !important;
    font-weight: 600;
}

html body .btn-primary,
html body #applyFilterBtn {
    background: #1F3A5F !important;
    border-color: #1F3A5F !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}

html body .btn-primary:hover,
html body #applyFilterBtn:hover {
    background: #0B1F35 !important;
    border-color: #0B1F35 !important;
}

html body .btn {
    border-radius: 5px;
}

html body .table {
    --bs-table-bg: #FFFFFF;
    --bs-table-color: #334155;
    --bs-table-border-color: #DCE3EB;
    --bs-table-striped-bg: #F8FAFC;
    --bs-table-hover-bg: #F1F5F9;
    color: #334155 !important;
    border-color: #DCE3EB !important;
}

html body .table thead th {
    background: #F1F5F9 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    border-color: #DCE3EB !important;
}

html body .dropdown-menu,
html body .modal-content {
    background: #FFFFFF !important;
    color: #334155 !important;
    border-color: #DCE3EB !important;
    backdrop-filter: none !important;
    box-shadow: 0 8px 24px rgba(15,23,42,.10);
}

html body .dropdown-item:not(.text-danger) {
    color: #334155 !important;
}

html body .right-bar,
html body .rightbar-overlay,
html body .custom-right-toggle {
    display: none !important;
}

html body .footer {
    background: #F5F7FA !important;
    color: #64748B !important;
    border-top: 1px solid #DCE3EB;
}

/* Standalone account pages */

html body.aa-corporate-auth {
    background: #0B1F35 !important;
    background-image: none !important;
    color: #FFFFFF !important;
}

body.aa-corporate-auth::before,
body.aa-corporate-auth::after {
    display: none !important;
}

body.aa-corporate-auth .card,
body.aa-corporate-auth .login-card,
body.aa-corporate-auth .auth-card,
body.aa-corporate-auth .login-container,
body.aa-corporate-auth .glass-card {
    background: #FFFFFF !important;
    background-image: none !important;
    color: #334155 !important;
    border: 1px solid #DCE3EB !important;
    border-radius: 10px !important;
    backdrop-filter: none !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.12) !important;
}

body.aa-corporate-auth input {
    background: #FFFFFF !important;
    color: #334155 !important;
    border-color: #DCE3EB !important;
}

body.aa-corporate-auth input::placeholder {
    color: #64748B !important;
}

body.aa-corporate-auth button[type="submit"],
body.aa-corporate-auth .btn-login {
    background: #1F3A5F !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border-color: #1F3A5F !important;
}

html body.aa-corporate-admin {
    background: #F5F7FA !important;
    color: #334155 !important;
}

/* CORPORATE VISUAL REFINEMENT */

/* Header and branding */

html body #page-topbar .navbar-brand-box {
    background: #0B1F35 !important;
    border: 0 !important;
}

html body #page-topbar .aa-profile-avatar,
html body #page-topbar .aa-profile-avatar i {
    color: #FFFFFF !important;
}

html body #page-topbar .aa-profile-avatar {
    background: #1F3A5F !important;
}

html body #page-topbar .filter-box {
    background: #FFFFFF !important;
    border-color: #DCE3EB !important;
}

html body #sidebar-menu ul li.mm-active > a,
html body #sidebar-menu ul li a.active {
    box-shadow: inset 3px 0 0 #0D9488 !important;
    border-radius: 0 !important;
    color: #FFFFFF !important;
}

/* Dashboard surfaces */

html[data-theme="light"] body .dashboard-card,
html body .dashboard-card,
html body #corpContent .dashboard-card,
html body #corpKpis .dashboard-card {
    background: #FFFFFF !important;
    background-image: none !important;
    border: 1px solid #DCE3EB !important;
    border-radius: 7px !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.035) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #334155 !important;
}

html body .dashboard-card::before,
html body .dashboard-card::after {
    background-image: none !important;
    box-shadow: none !important;
}

html body .dashboard-card h5,
html body .dashboard-card h6 {
    color: #0B1F35 !important;
    font-weight: 600 !important;
}

html body #corpKpis .dashboard-card {
    text-align: left !important;
    padding: 18px !important;
    min-height: 116px;
    border-top: 3px solid #1F3A5F !important;
}

html body #corpKpis .dashboard-card h6 {
    color: #64748B !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .4px;
}

html body #corpKpis .dashboard-card .fs-5 {
    color: #0B1F35 !important;
    font-size: clamp(16px,1.4vw,24px) !important;
    font-weight: 700 !important;
    letter-spacing: -.5px;
}

html body #corpContent .table {
    background: #FFFFFF !important;
}

html body #corpContent .table a {
    color: #1F3A5F !important;
    font-weight: 600;
}

html body #corpContent .table th {
    background: #F1F5F9 !important;
    color: #334155 !important;
}

html body #corpContent .table td {
    border-color: #E2E8F0 !important;
}

html body #corpContent .table tbody tr:hover {
    background: #F8FAFC !important;
}

html body .corp-positive {
    color: #15803D !important;
}

html body .corp-negative {
    color: #B91C1C !important;
}

html body .kpi-accent-bar {
    background: #0D9488 !important;
    background-image: none !important;
}

html body .page-content {
    background: #F5F7FA !important;
}

html body .aa-corporate-admin .card {
    border-radius: 7px !important;
}

/* Login and administrator login */

html body.aa-corporate-auth .brand-panel {
    background: #0B1F35 !important;
    background-image: none !important;
}

html body.aa-corporate-auth .brand-panel::before,
html body.aa-corporate-auth .brand-panel::after {
    display: none !important;
    animation: none !important;
}

html body.aa-corporate-auth .brand-content p,
html body.aa-corporate-auth .brand-feature {
    color: #CBD5E1 !important;
}

html body.aa-corporate-auth .brand-feature .icon-wrap {
    background: #1F3A5F !important;
    color: #5EEAD4 !important;
    border-radius: 6px !important;
}

html body.aa-corporate-auth .login-panel {
    background: #FFFFFF !important;
    color: #334155 !important;
    border-left: 1px solid #DCE3EB;
}

html body.aa-corporate-auth .login-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    animation: none !important;
    padding: 0 !important;
    color: #334155 !important;
}

html body.aa-corporate-auth .login-card h2 {
    color: #0B1F35 !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    -webkit-text-fill-color: #0B1F35 !important;
}

html body.aa-corporate-auth .login-card .subtitle {
    color: #64748B !important;
}

html body.aa-corporate-auth .login-card label {
    color: #334155 !important;
    font-weight: 600 !important;
}

html body.aa-corporate-auth .login-card input {
    background: #FFFFFF !important;
    color: #334155 !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 6px !important;
}

html body.aa-corporate-auth .login-card input:focus {
    border-color: #0D9488 !important;
    box-shadow: 0 0 0 3px rgba(13,148,136,.10) !important;
}

html body.aa-corporate-auth .field-icon,
html body.aa-corporate-auth .toggle-password,
html body.aa-corporate-auth .aa-password-toggle {
    color: #64748B !important;
}

html body.aa-corporate-auth .login-card .divider,
html body.aa-corporate-auth .login-card .register-link {
    color: #64748B !important;
}

html body.aa-corporate-auth .login-card .divider::before,
html body.aa-corporate-auth .login-card .divider::after {
    background: #DCE3EB !important;
}

html body.aa-corporate-auth .login-card a {
    color: #1F3A5F !important;
}

html body.aa-corporate-auth .login-footer {
    color: #64748B !important;
}

html body.aa-corporate-auth .btn-login {
    background: #1F3A5F !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

html body.aa-corporate-auth .btn-login:hover {
    background: #0B1F35 !important;
    transform: none !important;
    box-shadow: none !important;
}

html body.aa-corporate-auth .error-msg {
    background: #FEF2F2 !important;
    color: #B91C1C !important;
    border-color: #FECACA !important;
}

/* Account activation */

html body.aa-corporate-auth > main {
    background: #FFFFFF !important;
    color: #334155 !important;
    border: 1px solid #DCE3EB !important;
    border-radius: 8px !important;
}

html body.aa-corporate-auth > main .logo {
    background: #0B1F35 !important;
    padding: 12px;
    border-radius: 6px;
}

html body.aa-corporate-auth > main h1 {
    color: #0B1F35 !important;
}

html body.aa-corporate-auth > main p,
html body.aa-corporate-auth > main label {
    color: #334155 !important;
}

html body.aa-corporate-auth > main button:not(.aa-password-toggle) {
    background: #1F3A5F !important;
    border-radius: 6px !important;
}

html body.aa-corporate-auth > main a {
    color: #1F3A5F !important;
}

/* Responsive adjustments */

@media (max-width: 767px) {
    html body.aa-corporate-auth {
        overflow: auto;
    }

    html body.aa-corporate-auth .login-panel {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 28px;
        border: 0;
    }

    html body #corpKpis .dashboard-card {
        padding: 14px !important;
    }
}


/* Enterprise compact layout */

html body #sidebar-menu {
    padding-top: 12px !important;
}

html body #sidebar-menu ul li a {
    padding: 10px 18px !important;
    font-size: 13px !important;
}

html body #sidebar-menu ul li a i {
    font-size: 15px !important;
}

html body #sidebar-menu .menu-title {
    padding: 16px 18px 6px !important;
}

html body .dashboard-card {
    border-radius: 6px !important;
    box-shadow: none !important;
}

html body #corpKpis .dashboard-card {
    min-height: 100px !important;
    padding: 14px !important;
    border-top: 1px solid #DCE3EB !important;
}

html body .dashboard-card h6 {
    font-size: 13px !important;
    font-weight: 600 !important;
}

html body #corpContent .table td,
html body #corpContent .table th {
    padding: 8px 12px !important;
    font-size: 12px !important;
}

html body .page-title-box h4 {
    font-size: 19px !important;
}

html body .filter-label {
    font-size: 11px !important;
}

html body .filter-input,
html body .form-select {
    font-size: 13px !important;
}

html body #sidebar-menu a.active,
html body #sidebar-menu li.mm-active > a {
    background: #1F3A5F !important;
    box-shadow: inset 3px 0 0 #7CA4D4 !important;
}
