html, body {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--mud-palette-background, #041527);
    color: var(--mud-palette-text-primary, #F2F4F6);
}

#app {
    min-height: 100vh;
    background-color: var(--mud-palette-background, #041527);
}

h1:focus {
    outline: none;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
    font-family: 'Roboto Mono', 'Inter', monospace;
    /* Valor monetario nunca quebra: sem isso o "R$" cai numa linha e o numero em outra
       quando a coluna aperta (ex.: coluna Saldo do extrato com R$ 69.670,00). */
    white-space: nowrap;
}

/* Cabeçalho de tabela com destaque (listagens) */
.mud-table-head .mud-table-row {
    background-color: rgba(77, 162, 42, 0.08);
}

.mud-table-head .mud-table-cell {
    color: #F2F4F6 !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(77, 162, 42, 0.45) !important;
}

@media (min-width: 960px) {
    .mud-table-head .mud-table-cell {
        font-size: 0.85rem !important;
        letter-spacing: 0.05em;
    }
}

#blazor-error-ui {
    background: #5a1f1f;
    color: #F2F4F6;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.blazor-error-boundary {
    background: #5a1f1f;
    padding: 1rem;
    color: #F2F4F6;
    border-radius: 8px;
}

    .blazor-error-boundary::after {
        content: "Ocorreu um erro."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #122848;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #4DA22A;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    color: #F2F4F6;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Carregando");
    }

/* ---------------------------------------------------------------------------
   Relatórios no celular — alinhamento à esquerda dos cards.

   Abaixo do breakpoint, a MudTable empilha cada linha como um "card". Por
   padrão o MudBlazor usa justify-content:space-between + ::before{margin:auto},
   o que joga o VALOR para a direita e deixa os relatórios desalinhados dos
   cards das listagens (que são à esquerda). Aqui forçamos rótulo e valor à
   ESQUERDA — vale para QUALQUER relatório que use MudTable, sem tocar em cada
   tela (Contas a Receber, Inadimplência, Recebimentos, etc.).
   --------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .mud-xs-table .mud-table-body .mud-table-cell,
    .mud-sm-table .mud-table-body .mud-table-cell,
    .mud-md-table .mud-table-body .mud-table-cell {
        justify-content: flex-start !important;
        flex-direction: row !important;
        text-align: start !important;
        gap: 6px;
    }

    /* rótulo (data-label) cola à esquerda, sem empurrar o valor pra direita */
    .mud-xs-table .mud-table-body .mud-table-cell::before,
    .mud-sm-table .mud-table-body .mud-table-cell::before,
    .mud-md-table .mud-table-body .mud-table-cell::before {
        margin-right: 6px !important;
        margin-inline-end: 6px !important;
        margin-inline-start: 0 !important;
        color: var(--mud-palette-text-secondary);
    }
}
