/* IMS.Client – Money Theme */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* ── App bar ── */
.mud-appbar {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 60%, #388E3C 100%) !important;
    border-bottom: 2px solid #C8A200 !important;
}

/* ── Drawer header ── */
.mud-drawer-header {
    padding: 0 !important;
}

/* ── Nav links ── */
.mud-nav-link {
    border-left: 3px solid transparent;
    font-size: .875rem;
}

    .mud-nav-link:hover {
        border-left-color: rgba(200,162,0,.5) !important;
    }

    .mud-nav-link.active {
        border-left: 3px solid #C8A200 !important;
        background-color: rgba(200,162,0,.08) !important;
        font-weight: 600;
    }

/* ── Currency display ── */
.money {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* ── Clickable rows ── */
.cursor-pointer {
    cursor: pointer;
}

/* ── Balance colors ── */
.balance-positive {
    color: #2E7D32;
    font-weight: 600;
}

.balance-negative {
    color: #C62828;
    font-weight: 600;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #C8E6C9;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #81C784;
    }

/* ── Error boundary ── */
#blazor-error-ui {
    background: #1B5E20;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    color: white;
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: .75rem;
        top: .5rem;
    }
