﻿body { font-family: "Segoe UI", system-ui, Helvetica, Arial, sans-serif; }

/* Sign-in, rendered statically without the component library */
body:has(.account) { margin: 0; }
.account { display: flex; min-height: 100vh; background: #f4f7f6; color: #1d2527; }
.account-brand { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 3rem 4rem;
    background: linear-gradient(150deg, #0e2a27, #0b5d4e); color: #fff; }
.account-brand h2 { font-size: 1.9rem; margin: 1.25rem 0 .5rem; }
.account-brand p { max-width: 24rem; opacity: .8; line-height: 1.5; }
.account-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.account-card { width: 100%; max-width: 22rem; background: #fff; border-radius: 12px; padding: 2rem;
    box-shadow: 0 10px 30px rgba(14, 42, 39, .1); }
.account-card h1 { margin: 0 0 .25rem; font-size: 1.5rem; }
.account-card .hint { margin: 0 0 1.5rem; color: #5f6b6d; font-size: .9rem; }
.account-card label { display: block; margin-bottom: 1rem; font-size: .85rem; font-weight: 600; }
.account-card input { display: block; width: 100%; margin-top: .35rem; padding: .65rem .75rem; box-sizing: border-box;
    border: 1px solid #cbd6d4; border-radius: 8px; font: inherit; }
.account-card input:focus { outline: 2px solid #0b5d4e; border-color: transparent; }
.account-card button { width: 100%; padding: .7rem; margin-top: .5rem; border: 0; border-radius: 8px;
    background: #0b5d4e; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.account-card button:hover { background: #094b3f; }
.account-card .error { background: #fdecea; color: #8c1d18; border-radius: 8px; padding: .6rem .75rem; font-size: .85rem; }
.account-card a { color: #0b5d4e; }
.account-card .success { background: #e6f4ec; color: #14603a; border-radius: 8px; padding: .6rem .75rem; font-size: .85rem; }
@media (max-width: 760px) {
    .account { flex-direction: column; }
    .account-brand { flex: 0; padding: 2rem 1.5rem; }
}

/* Application shell */
.topbar { border-bottom: 1px solid #e1e8e7; }
.brand { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem 1.25rem; color: #fff; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
    border-radius: 10px; background: #e0a24a; color: #0e2a27; font-weight: 800; }
.brand-name { font-weight: 700; line-height: 1.2; }
.brand-sub { font-size: .75rem; opacity: .7; }
.nav-section { padding: 1rem .75rem .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7fa59d; }
/* The class is repeated to outrank the active-link colours of MudBlazor. */
.sidebar.sidebar.sidebar .mud-nav-link.active:not(.mud-nav-link-disabled) { background: rgba(255, 255, 255, .12); color: #fff; }
.sidebar .mud-nav-link.active .mud-nav-link-icon { color: #e0a24a; }
.sidebar .mud-nav-link:hover:not(.mud-nav-link-disabled) { background: rgba(255, 255, 255, .07); }
.signout { background: none; border: 1px solid #cbd6d4; color: inherit; border-radius: 8px; padding: .35rem .85rem; cursor: pointer; font: inherit; font-size: .85rem; }
.signout:hover { background: #eff5f4; }
a.signout { text-decoration: none; }

/* Screens */
.card { border: 1px solid #e1e8e7; }
.stat-label { color: #5f6b6d; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.3; }
.stat-note { color: #5f6b6d; font-size: .8rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; font-variant-numeric: tabular-nums; }
.totals.grand { border-top: 2px solid #0b5d4e; margin-top: .4rem; padding-top: .6rem; font-size: 1.25rem; font-weight: 700; }
.mono { font-family: Consolas, monospace; font-size: .85rem; word-break: break-all; }
.json { white-space: pre-wrap; word-break: break-all; font-size: .8rem; max-height: 20rem; overflow: auto; }

.report-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.report-card { height: 100%; }
.report-card:hover { border-color: #0b5d4e; background: #eff5f4; }
