html, body { font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif; }
html.dark-boot, html.dark-boot body { background: #121418; color: #ccc; }
.boot { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #555; }
.boot-spinner { width: 40px; height: 40px; border: 4px solid #dbe5f2; border-top-color: #1f5fa8; border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#blazor-error-ui { background: #fff3cd; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 2000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

.kpi-value { font-variant-numeric: tabular-nums; font-weight: 700; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--mud-palette-success); }
.neg { color: var(--mud-palette-error); }
.muted { color: var(--mud-palette-text-secondary); }
.cat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f5fa8 0%, #13396a 100%); padding: 16px; }
.login-card { width: 100%; max-width: 420px; }
.month-row-current td { background: rgba(37, 125, 224, 0.06); }
.month-row-selected td { background: rgba(37, 125, 224, 0.14) !important; }
.answer-card { border-left: 6px solid var(--mud-palette-info); }
.answer-card.negative { border-left-color: var(--mud-palette-error); }
.answer-card.positive { border-left-color: var(--mud-palette-success); }
.chart-box { min-height: 340px; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.mud-table-cell { padding-left: 10px !important; padding-right: 10px !important; }
@media print { .mud-appbar, .mud-drawer, .no-print { display: none !important; } .mud-main-content { padding: 0 !important; margin: 0 !important; } }

/* Tema escuro: ajustes que não vêm das variáveis do MudBlazor */
.mud-theme-dark .login-wrap, .login-wrap.dark { background: linear-gradient(135deg, #1a2433 0%, #0d1117 100%); }
.apexcharts-tooltip { color: #191919; }
.dark-chart .apexcharts-tooltip { background: #24272e !important; color: #efefef; border-color: #3a3d44 !important; }
.dark-chart .apexcharts-tooltip-title { background: #2c3038 !important; border-color: #3a3d44 !important; }
