﻿```css
/* =========================================================
   HOME BUDGET DASHBOARD
   FINAL CORRECTED CSS
   ========================================================= */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #a855f7;
    --purple: #9333ea;
    --page-bg: #f5f7ff;
    --surface: #ffffff;
    --text-dark: #111827;
    --text-body: #374151;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --border-light: #eef0f6;
    --shadow-sm: 0 4px 15px rgba(15,23,42,.06);
    --shadow: 0 12px 30px rgba(15,23,42,.08);
    --radius-md: 16px;
    --radius-lg: 22px;
}


/* =========================================================
   BASIC
   ========================================================= */

.dashboard,
.dashboard * {
    box-sizing: border-box;
}

.dashboard {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 32px 45px;
    background: transparent;
    color: var(--text-body);
    font-family: "Segoe UI", Arial, sans-serif;
}


/* =========================================================
   PAGE
   ========================================================= */

body {
    background: var(--page-bg) !important;
    color: var(--text-body) !important;
}


/* =========================================================
   HEADER
   ========================================================= */

.dashboard-header {
    position: relative;
    min-height: 155px;
    padding: 32px 36px;
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient( 135deg, #2563eb 0%, #6366f1 48%, #9333ea 100% ) !important;
    color: #ffffff !important;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(79,70,229,.25);
}

    .dashboard-header * {
        color: inherit;
    }

    .dashboard-header h1,
    .dashboard-header h1 span,
    .dashboard-header .fw-bold,
    .dashboard-header .small,
    .dashboard-header .opacity-75 {
        color: #ffffff !important;
    }

.header-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    font-size: 30px;
}

.month-box {
    background: rgba(255,255,255,.15) !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    border-radius: 16px;
    color: #ffffff !important;
    backdrop-filter: blur(10px);
}

    .month-box *,
    .month-box span {
        color: #ffffff !important;
    }


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-label {
    color: var(--primary) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-title {
    color: var(--text-dark) !important;
    font-weight: 800;
}

.dashboard section p.text-muted,
.dashboard .text-muted {
    color: var(--text-muted) !important;
}


/* =========================================================
   COMMON CARDS
   ========================================================= */

.finance-card,
.metric-card,
.budget-card,
.chart-card,
.table-card,
.net-position-card,
.budget-progress-card {
    border-radius: 18px;
    border: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 25px rgba(15,23,42,.07);
}

.finance-card,
.metric-card,
.budget-card {
    transition: .2s ease;
}

    .finance-card:hover,
    .metric-card:hover,
    .budget-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(15,23,42,.10);
    }


/* =========================================================
   NET POSITION
   ========================================================= */

.net-position-card {
    min-height: 245px;
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, #111827 0%, #312e81 55%, #4f46e5 100% ) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 40px rgba(49,46,129,.20);
}

    .net-position-card::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        right: -80px;
        top: -90px;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
    }

    .net-position-card .card-body {
        position: relative;
        z-index: 2;
    }


    /* NET POSITION LABEL */

    .net-position-label,
    .net-position-card .net-position-label {
        color: #ffffff !important;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        opacity: .9;
    }


    /* NET POSITION VALUE */

    .net-position-value,
    .net-position-value span,
    .net-position-card #lblNetPosition {
        color: #ffffff !important;
        font-size: 48px;
        line-height: 1.1;
        font-weight: 900;
        letter-spacing: -1px;
        text-shadow: 0 2px 8px rgba(0,0,0,.18);
    }


    /* DESCRIPTION */

    .net-position-description,
    .net-position-card .net-position-description {
        color: rgba(255,255,255,.9) !important;
        font-size: 12px;
    }


/* CHANGE */

.net-change,
.net-change span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 50px;
    background: rgba(255,255,255,.15) !important;
    border: 1px solid rgba(255,255,255,.20);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   FINANCE CARDS
   ========================================================= */

.finance-icon {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 20px;
    flex-shrink: 0;
}

.income-icon {
    background: #dcfce7 !important;
    color: #15803d !important;
}

.expense-icon {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.saving-icon {
    background: #e0e7ff !important;
    color: #4f46e5 !important;
}

.net-icon {
    background: rgba(255,255,255,.15) !important;
    color: #ffffff !important;
}


/* =========================================================
   IMPORTANT:
   ALL FINANCIAL VALUES
   ========================================================= */

.dashboard .finance-value,
.dashboard .finance-value span,
.dashboard .finance-value label,
.dashboard .finance-value strong {
    color: #111827 !important;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}


/* Specifically values inside the white cards
   inside Net Position */

.net-position-card .bg-white .finance-value,
.net-position-card .bg-white .finance-value span,
.net-position-card .bg-white .finance-value label {
    color: #111827 !important;
}


/* =========================================================
   SUPPORTING METRICS
   ========================================================= */

.supporting-metric {
    min-height: 110px;
}

    .supporting-metric .finance-value,
    .supporting-metric .finance-value span,
    .supporting-metric .finance-value label {
        color: #111827 !important;
        font-weight: 800;
    }

    .supporting-metric .text-muted {
        color: #6b7280 !important;
    }


/* =========================================================
   SAVINGS RATE
   ========================================================= */

.savings-rate-card {
    min-height: 350px;
}

.savings-rate-value,
.savings-rate-value span,
#lblSavingsRateValue {
    color: #111827 !important;
    font-size: 42px;
    font-weight: 900;
}

.savings-rate-circle {
    width: 145px;
    height: 145px;
    margin: 15px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient( circle, #ffffff 58%, transparent 60% ), conic-gradient( #4f46e5 0deg, #4f46e5 333deg, #e5e7eb 333deg, #e5e7eb 360deg );
}

    .savings-rate-circle span,
    .savings-rate-circle span label {
        color: #111827 !important;
        font-size: 25px;
        font-weight: 900;
    }


/* =========================================================
   METRICS
   ========================================================= */

.metric-card {
    min-height: 110px;
}

.metric-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
}

.metric-label {
    display: block;
    margin-bottom: 4px;
    color: #6b7280 !important;
    font-size: 12px;
}

.metric-value,
.metric-value span,
.metric-value label {
    display: block;
    color: #111827 !important;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}


/* =========================================================
   MONEY GIVEN / BORROWED
   ========================================================= */

.debt-outstanding-card {
    border: 1px solid #fed7aa !important;
    background: #fff7ed !important;
}

.attention-value,
.attention-value span,
#lblDebitOutstanding {
    color: #b45309 !important;
}

#lblBorrowOutstanding {
    color: #dc2626 !important;
}

#lblDebitCount,
#lblTotalDebitReceived,
#lblTotalDebitGiven,
#lblDebitBalance,
#lblBorrowCount,
#lblTotalBorrowPaid,
#lblTotalBorrowed,
#lblBorrowBalance {
    color: #111827 !important;
    font-weight: 800 !important;
}


/* =========================================================
   BUDGET
   ========================================================= */

.budget-card {
    min-height: 135px;
}

.budget-value,
.budget-value span,
.budget-value label {
    color: #111827 !important;
    font-size: 25px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.budget-icon {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 20px;
}

.budget-progress-card {
    background: #ffffff !important;
}

    .budget-progress-card .fw-bold {
        color: #111827 !important;
    }

    .budget-progress-card .text-muted {
        color: #6b7280 !important;
    }

#lblBudgetUsed {
    color: #4f46e5 !important;
    font-weight: 800 !important;
}


/* =========================================================
   PROGRESS
   ========================================================= */

.progress {
    background: #eef2f7 !important;
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 50px;
    background: linear-gradient( 90deg, #6366f1, #a855f7 ) !important;
    transition: width .4s ease;
}

.budget-warning {
    color: #b45309 !important;
}


/* =========================================================
   CHARTS
   ========================================================= */

.chart-card {
    overflow: hidden;
    background: #ffffff !important;
}

    .chart-card .card-header {
        background: #ffffff !important;
    }

    .chart-card h3 {
        color: #111827 !important;
    }

.chart-container {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .chart-container img,
    .chart-container canvas,
    .chart-container > div {
        max-width: 100% !important;
    }

    .chart-container img {
        height: auto !important;
    }


/* =========================================================
   TABLES
   ========================================================= */

.table-card {
    overflow: hidden;
    background: #ffffff !important;
}

.table-header {
    background: linear-gradient( 180deg, #ffffff, #f8f9ff ) !important;
    border-bottom: 1px solid #e9ecef !important;
}

    .table-header h3 {
        color: #111827 !important;
    }


/* GRIDVIEW */

.dashboard-table {
    width: 100% !important;
    margin-bottom: 0 !important;
    background: #ffffff !important;
    color: #374151 !important;
}


    /* TABLE HEADERS */

    .dashboard-table th {
        background: #f8f9ff !important;
        color: #495057 !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        text-transform: uppercase;
        letter-spacing: .6px;
        white-space: nowrap;
        padding: 14px !important;
        border-bottom: 1px solid #e9ecef !important;
    }


    /* TABLE VALUES */

    .dashboard-table td,
    .dashboard-table td span,
    .dashboard-table td label {
        color: #374151 !important;
        background: #ffffff !important;
        font-size: 13px !important;
        padding: 14px !important;
        vertical-align: middle !important;
        border-bottom: 1px solid #f1f3f5 !important;
    }


    /* TABLE HOVER */

    .dashboard-table tr:hover td,
    .dashboard-table tr:hover td span,
    .dashboard-table tr:hover td label {
        background: #fafaff !important;
        color: #111827 !important;
    }


    /* EMPTY TABLE */

    .dashboard-table td[colspan] {
        color: #6b7280 !important;
    }


/* =========================================================
   TRANSACTION BADGES
   ========================================================= */

.transaction-type {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
}

.transaction-income {
    background: #dcfce7 !important;
    color: #15803d !important;
}

.transaction-expense {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.transaction-other {
    background: #e0e7ff !important;
    color: #4338ca !important;
}


/* =========================================================
   LINKS
   ========================================================= */

.metric-action {
    color: #4f46e5 !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

    .metric-action:hover {
        color: #3730a3 !important;
        text-decoration: underline;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.dashboard footer {
    color: #6b7280 !important;
    border-top: 1px solid #e5e7eb !important;
}

    .dashboard footer .text-primary {
        color: #4f46e5 !important;
    }


/* =========================================================
   ASP.NET LABEL SAFETY
   ========================================================= */

/*
   ASP.NET WebForms renders:

   <asp:Label ... />

   as:

   <span id="...">VALUE</span>

   These rules make sure theme/Bootstrap styles
   cannot make dashboard values invisible.
*/

.dashboard #lblNetPosition {
    color: #ffffff !important;
}

.dashboard #lblIncome,
.dashboard #lblExpense,
.dashboard #lblSavings,
.dashboard #lblIncomeSummary,
.dashboard #lblExpenseSummary,
.dashboard #lblSavingsSummary {
    color: #111827 !important;
}

.dashboard #lblExpectedIncome,
.dashboard #lblExpectedExpense,
.dashboard #lblExpectedSaving {
    color: #111827 !important;
}

.dashboard #lblSavingsRate,
.dashboard #lblSavingsRateValue {
    color: #111827 !important;
}

.dashboard #lblDebitOutstanding {
    color: #b45309 !important;
}

.dashboard #lblBorrowOutstanding {
    color: #dc2626 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .dashboard {
        padding: 20px 15px 35px;
    }

    .dashboard-header {
        border-radius: 18px;
        padding: 25px 20px;
    }

    .finance-value,
    .finance-value span {
        font-size: 25px !important;
    }

    .net-position-value,
    .net-position-value span,
    #lblNetPosition {
        font-size: 38px !important;
        color: #ffffff !important;
    }

    .savings-rate-circle {
        width: 125px;
        height: 125px;
    }

    .savings-rate-value,
    .savings-rate-value span {
        font-size: 35px !important;
    }

    .chart-container {
        min-height: 280px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .dashboard {
        padding: 10px;
    }

    .dashboard-header {
        padding: 22px 18px;
    }

    .header-icon {
        width: 52px;
        height: 52px;
        font-size: 25px;
    }

    .dashboard-header h1 {
        font-size: 27px;
    }

    .net-position-value,
    .net-position-value span,
    #lblNetPosition {
        font-size: 34px !important;
    }

    .finance-value,
    .finance-value span {
        font-size: 23px !important;
    }

    .budget-value,
    .budget-value span {
        font-size: 22px !important;
    }

    .chart-container {
        min-height: 250px;
    }

    .dashboard-table {
        min-width: 600px;
    }
}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    .dashboard {
        max-width: none;
        padding: 0;
    }

    .dashboard-header {
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none;
        border: 1px solid #dddddd;
    }

        .dashboard-header *,
        .dashboard-header h1,
        .dashboard-header h1 span {
            color: #000000 !important;
        }

    .finance-card,
    .metric-card,
    .budget-card,
    .budget-progress-card,
    .chart-card,
    .table-card {
        box-shadow: none;
        break-inside: avoid;
    }
}

```
