/* MudBlazor supplies the component styling; this file only covers load and error states and a few page accents. */
html, body {
    margin: 0;
    font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
}

.loading-splash {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #555;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: #ffe9a9;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
}

/* Archived accounts stay in the tree but read as inactive. */
.account-archived {
    opacity: 0.5;
}

/* Amounts line up by their digits. */
.entry-line-amount,
.account-balance {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Report, rate and budget tables: amounts line up by their digits. */
.report-table,
.report-totals {
    border-collapse: collapse;
    min-width: 60%;
}

.report-table th,
.report-table td,
.report-totals td {
    padding: 4px 12px 4px 0;
    text-align: left;
}

.report-table .report-amount,
.report-totals .report-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Spent more than budgeted, or earned less. */
.variance-over {
    color: var(--mud-palette-error);
}
