html,
body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    background: radial-gradient(circle at 12% 8%, #edf7f5 0%, #f4f8f7 36%, #f7fbfa 100%);
    color: #142a33;
}

#app {
    min-height: 100vh;
}

.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 92% 6%, rgba(27, 123, 143, 0.16), transparent 32%),
        radial-gradient(circle at 8% 94%, rgba(15, 76, 92, 0.14), transparent 38%),
        linear-gradient(145deg, #eaf6f4 0%, #f7fbfa 48%, #edf6f5 100%);
}

.login-grid {
    min-height: 100vh;
    padding: 1rem;
}

.login-shell {
    width: min(100%, 28rem);
    padding: 1.25rem;
}

.login-card {
    border: 1px solid #d7e8e4;
    backdrop-filter: blur(2px);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 76, 92, 0.12);
}

.page-header {
    border: 1px solid #d6e3e0;
    background: linear-gradient(135deg, #ffffff 0%, #f7fcfb 100%);
    padding: 1rem 1.15rem;
}

.kpi-card {
    border: 1px solid #dde9e6;
    min-height: 140px;
}

.chart-card {
    border: 1px solid #dde9e6;
}

.summary-card {
    border: 1px solid #dde9e6;
}

.editor-drawer {
    max-width: 420px;
    width: 100%;
}

.text-right {
    text-align: right;
}

.d-none {
    display: none;
}

@media (min-width: 900px) {
    .d-md-flex {
        display: flex;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: #ffe9b2;
    bottom: 0;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.25);
    display: none;
    left: 0;
    padding: 0.65rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 7rem;
    height: 7rem;
    inset: 24vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #d2dcdc;
    stroke-width: 0.55rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #0f4c5c;
    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: 700;
    inset: calc(24vh + 2.9rem) 0 auto 0.1rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Carregando");
}
