html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Erro na aplicação."
}

/* InputMoeda — calculadora de centavos */
.input-moeda {
    text-align: right;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 12px;
    box-sizing: border-box;
    background: white;
}

.input-moeda:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.input-moeda:disabled {
    background: #f5f5f5;
    color: #999;
}

/* Valores monetários em tabelas */
.valor-monetario {
    text-align: right;
    font-family: 'Courier New', Courier, monospace;
    white-space: nowrap;
}

.valor-negativo {
    color: #d32f2f;
}

.valor-positivo {
    color: #388e3c;
}

/* Label acima do InputMoeda */
.campo-moeda-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.campo-moeda-label {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

/* Alertas financeiros */
.alerta-financeiro {
    border-left: 4px solid #ff9800;
    background: #fff8e1;
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 0 4px 4px 0;
}

/* Sidebar mini icons width */
.mud-drawer--mini .mud-nav-link-text {
    white-space: nowrap;
}

.grafico-projecao {
    width: 100%;
    min-height: 220px;
}

.grafico-eixo {
    stroke: #d0d7de;
    stroke-width: 1;
}

.grafico-linha {
    fill: none;
    stroke: #1976d2;
    stroke-width: 3;
}

.grafico-ponto-positivo {
    fill: #388e3c;
}

.grafico-ponto-negativo {
    fill: #d32f2f;
}

.grafico-legenda {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.grafico-legenda div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: center;
}

.grafico-legenda span {
    color: rgba(0, 0, 0, 0.68);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.grafico-legenda strong {
    font-size: 0.9rem;
}
