/* Lores - Design system controle financeiro (mobile-first) */
:root {
    --primary: #3DCB5B;
    --primary-dark: #34b350;
    --primary-light: #e8f8ec;
    --accent: #FFBF73;
    --accent-light: #fff5e6;
    --expense: #E44F4E;
    --income: #3DCB5B;
    --spacing-page: 1rem;
    --radius-card: 1rem;
    --radius-btn: 0.75rem;
    /* Easing curves */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Durations */
    --duration-fast: 150ms;
    --duration-base: 200ms;
    --duration-smooth: 300ms;
}

@media (min-width: 768px) {
    :root {
        --spacing-page: 1.5rem;
    }
}

#blazor-error-ui {
    background: #fef3c7;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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;
}

/* Toast container */
#toast-container {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

#toast-container>div {
    animation: toast-slide-in var(--duration-base) var(--ease-spring);
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 640px) {
    #toast-container {
        left: auto;
        max-width: 24rem;
    }
}

/* Modal overlay */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modal-backdrop-in var(--duration-base) var(--ease-out);
}

.modal-box {
    animation: modal-box-in var(--duration-smooth) var(--ease-spring);
}

@keyframes modal-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modal-box-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(0.5rem);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-body {
    -webkit-overflow-scrolling: touch;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Transições globais - suavidade na aplicação */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

/* Form & buttons - design system */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    transition: border-color var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out),
        background-color var(--duration-fast) var(--ease-out);
}

.input-field:hover {
    border-color: #9ca3af;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(61, 203, 91, 0.2);
}

.input-field::placeholder {
    color: #9ca3af;
}

/* Select - acabamento refinado (seta customizada, transições) */
select.input-field,
.select-field {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    cursor: pointer;
}

select.input-field:hover,
.select-field:hover {
    border-color: #9ca3af;
}

select.input-field:focus,
.select-field:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233DCB5B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

select.input-field option {
    padding: 0.5rem 0.75rem;
    background: #fff;
    color: #111827;
}

/* Custom Select - trigger e lista no mesmo padrão visual */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    text-align: left;
}

.custom-select-trigger:disabled,
.custom-select-trigger[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
}

.custom-select-value {
    flex: 1;
    min-width: 0;
    color: #111827;
}

.custom-select-value:empty::before {
    content: attr(data-placeholder);
    color: #9ca3af;
}

.custom-select-chevron {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    transition: transform var(--duration-base) var(--ease-out),
        color var(--duration-base) var(--ease-out);
}

.custom-select-open .custom-select-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.custom-select-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: transparent;
}

.custom-select-dropdown {
    position: fixed;
    z-index: 99999;
    /* top/left/width definidos via JS para ficar acima de tudo e não ser cortado pelo modal */
    max-height: 16rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 0.25rem;
    animation: custom-select-dropdown-in var(--duration-fast) var(--ease-out);
}

@keyframes custom-select-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-select-option {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    color: #111827;
    font-size: 1rem;
    transition: background-color var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out);
}

.custom-select-option:hover {
    background: var(--primary-light);
    color: #0f172a;
}

.custom-select-option-selected {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 500;
}

.custom-select-option-selected:hover {
    background: rgba(61, 203, 91, 0.2);
}

.custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    color: #fff;
    background: var(--primary);
    border: none;
    cursor: pointer;
    transition: background-color var(--duration-base) var(--ease-out),
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 203, 91, 0.35);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: background-color var(--duration-base) var(--ease-out),
        color var(--duration-base) var(--ease-out),
        transform var(--duration-fast) var(--ease-out),
        border-color var(--duration-base) var(--ease-out);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(61, 203, 91, 0.08);
    transform: translateY(-1px);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    color: #fff;
    background: var(--expense);
    border: none;
    cursor: pointer;
    transition: opacity var(--duration-base) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.btn-danger:hover:not(:disabled) {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn-danger:active:not(:disabled) {
    transform: translateY(0);
}

.card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    transition: box-shadow var(--duration-smooth) var(--ease-out),
        transform var(--duration-smooth) var(--ease-out),
        border-color var(--duration-base) var(--ease-out);
}

.card.overflow-visible {
    overflow: visible;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
}

a.card:hover {
    transform: translateY(-2px);
}

/* KPI Cards - Premium gradients */
.kpi-card {
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.6;
    transition: opacity var(--duration-smooth) var(--ease-out);
    pointer-events: none;
}

.kpi-card:hover::before {
    opacity: 0.8;
}

.kpi-card-income::before {
    background: linear-gradient(135deg, #e8f8ec 0%, #d1fae5 100%);
}

.kpi-card-expense::before {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.kpi-card-balance::before {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

.kpi-card-neutral::before {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.kpi-card-content {
    position: relative;
    z-index: 1;
}

.kpi-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: transform var(--duration-base) var(--ease-spring);
}

.kpi-card:hover .kpi-icon {
    transform: scale(1.05);
}

.kpi-icon-income {
    background: rgba(61, 203, 91, 0.15);
    color: var(--primary-dark);
}

.kpi-icon-expense {
    background: rgba(228, 79, 78, 0.15);
    color: var(--expense);
}

.kpi-icon-balance {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
}

.kpi-icon-neutral {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.amount-positive {
    color: var(--income);
    font-weight: 600;
}

.amount-negative {
    color: var(--expense);
    font-weight: 600;
}

/* Premium Table Styles */
.table-premium {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-premium thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(8px);
}

.table-premium thead th {
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    color: #6b7280;
}

.table-premium tbody tr {
    position: relative;
    transition: background-color var(--duration-fast) var(--ease-out);
}

.table-premium tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform var(--duration-base) var(--ease-spring);
}

.table-premium tbody tr:hover {
    background-color: rgba(61, 203, 91, 0.04);
}

.table-premium tbody tr:hover::before {
    transform: scaleY(1);
}

.table-premium tbody tr:nth-child(even) {
    background-color: rgba(249, 250, 251, 0.5);
}

.table-premium tbody tr:nth-child(even):hover {
    background-color: rgba(61, 203, 91, 0.06);
}

.table-premium .table-actions {
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.table-premium tbody tr:hover .table-actions {
    opacity: 1;
}

/* Button Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
}

.btn-ripple:active::after {
    animation: ripple 0.6s var(--ease-out);
}

/* Flatpickr - tema nos padrões da aplicação (verde primary) */
.flatpickr-calendar {
    font-family: inherit;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.flatpickr-day:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .numInputWrapper span.arrowUp:after,
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    background: var(--primary);
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month .numInputWrapper:hover .arrowUp,
.flatpickr-current-month .numInputWrapper:hover .arrowDown {
    background: var(--primary-dark);
}

.flatpickr-weekdays span.flatpickr-weekday {
    color: var(--primary);
}

.flatpickr-input.input-field {
    background-color: #fff;
}

/* DatePicker / MonthPicker - ícone de calendário sempre visível */
.date-picker-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.date-picker-input,
.date-picker-wrapper .input-field {
    padding-right: 2.75rem;
    width: 100%;
}

.date-picker-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    pointer-events: auto;
    transition: color var(--duration-base) var(--ease-out);
}

.date-picker-icon:hover {
    color: var(--primary);
}

.date-picker-icon-svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Flatpickr com altInput pode injetar outro input; garantir que o wrapper mantém o ícone visível */
.date-picker-wrapper .flatpickr-alt-input,
.date-picker-wrapper input.flatpickr-input {
    padding-right: 2.75rem !important;
}

/* AppBar MonthPicker - estilo DatePicker, só meses/ano */
.appbar-month-picker {
    position: relative;
}

.appbar-month-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 8rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.appbar-month-trigger:hover {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.appbar-month-trigger--field {
    border-color: #d1d5db;
    height: 3.125rem;
    width: 100%;
    padding: 0 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

.appbar-month-trigger--field:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.appbar-month-trigger--field:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.24);
}

.appbar-month-value {
    flex: 1;
    text-align: left;
    text-transform: capitalize;
}

.appbar-month-icon {
    color: #6b7280;
    flex-shrink: 0;
}

.appbar-month-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: transparent;
}

.appbar-month-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 99999;
    min-width: 14rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: custom-select-dropdown-in var(--duration-fast) var(--ease-out);
}

.appbar-month-year-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.appbar-month-year-label {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
}

.appbar-month-nav {
    padding: 0.25rem;
    color: #6b7280;
    border-radius: 0.375rem;
    transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.appbar-month-nav:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.appbar-month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
}

.appbar-month-cell {
    padding: 0.5rem 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    background: #f9fafb;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.appbar-month-cell:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.appbar-month-cell-selected {
    background: var(--primary);
    color: #fff;
}

.appbar-month-cell-selected:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* =====================================================
   Forecast Chart - Premium Animated Bar Chart
   ===================================================== */
.forecast-chart {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 14rem;
    padding: 0.5rem 0;
}

.forecast-chart-group {
    flex: 1;
    min-width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.forecast-chart-bars {
    height: 11rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
}

.forecast-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    width: 3.5rem;
}

.forecast-bar-value {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: transform var(--duration-fast) var(--ease-out),
        opacity var(--duration-fast) var(--ease-out);
}

.forecast-bar-value--planned {
    color: #64748b;
}

.forecast-bar-value--realized {
    color: var(--expense);
}

.forecast-bar-value--forecast {
    color: #2563eb;
}

.forecast-bar {
    width: 1rem;
    border-radius: 0.375rem 0.375rem 0 0;
    position: relative;
    cursor: pointer;
    transform-origin: bottom center;
    animation: forecast-bar-grow var(--duration-smooth) var(--ease-out) backwards;
    transition: transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out),
        filter var(--duration-fast) var(--ease-out);
}

/* Gradientes sofisticados para cada tipo de barra */
.forecast-bar--planned {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.forecast-bar--realized {
    background: linear-gradient(180deg, #f87171 0%, var(--expense) 100%);
    box-shadow: 0 2px 8px rgba(228, 79, 78, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.forecast-bar--forecast {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Hover effects - Scale + Glow */
.forecast-bar:hover {
    transform: scaleY(1.02) scaleX(1.1);
    z-index: 10;
}

.forecast-bar--planned:hover {
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.08);
}

.forecast-bar--realized:hover {
    box-shadow: 0 4px 16px rgba(228, 79, 78, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.08);
}

.forecast-bar--forecast:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.08);
}

/* Hover no container do grupo - destaca o grupo inteiro */
.forecast-chart-group:hover .forecast-bar-value {
    transform: translateY(-2px);
}

/* Animação de crescimento das barras */
@keyframes forecast-bar-grow {
    from {
        transform: scaleY(0);
        opacity: 0;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Animation delays para efeito stagger - aplicado via style inline */
.forecast-bar[style*="animation-delay"] {
    animation-fill-mode: backwards;
}

/* Label do mês */
.forecast-chart-month {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
    margin-top: 0.625rem;
    text-transform: capitalize;
    transition: color var(--duration-fast) var(--ease-out);
}

.forecast-chart-group:hover .forecast-chart-month {
    color: #111827;
}

/* Legenda aprimorada */
.forecast-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.forecast-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
    transition: color var(--duration-fast) var(--ease-out);
}

.forecast-legend-item:hover {
    color: #111827;
}

.forecast-legend-dot {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.forecast-legend-dot--planned {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.forecast-legend-dot--realized {
    background: linear-gradient(135deg, #f87171 0%, var(--expense) 100%);
}

.forecast-legend-dot--forecast {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

/* Suporte a reduced-motion (acessibilidade) */
@media (prefers-reduced-motion: reduce) {

    /* Desabilitar animações de entrada */
    .modal-backdrop,
    .modal-box,
    #toast-container>div,
    .forecast-bar {
        animation: none;
    }

    .forecast-bar {
        transform: scaleY(1);
        opacity: 1;
    }

    /* Desabilitar transforms em hover/active */
    .btn-primary:hover:not(:disabled),
    .btn-secondary:hover:not(:disabled),
    .btn-danger:hover:not(:disabled),
    .btn-primary:active:not(:disabled),
    .btn-secondary:active:not(:disabled),
    .btn-danger:active:not(:disabled),
    .forecast-bar:hover,
    .forecast-chart-group:hover .forecast-bar-value {
        transform: none;
    }

    /* Reduzir transições a tempo mínimo */
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}/ *   C o m p o n e n t   A n i m a t i o n s   a n d   K e y f r a m e s   * / 
 
 @ k e y f r a m e s   f l o a t   { 
 
 
 
         0 % , 
 
         1 0 0 %   { 
 
                 t r a n s f o r m :   t r a n s l a t e ( 0 ,   0 )   r o t a t e ( 0 d e g ) ; 
 
         } 
 
 
 
         3 3 %   { 
 
                 t r a n s f o r m :   t r a n s l a t e ( 3 0 p x ,   - 3 0 p x )   r o t a t e ( 1 2 0 d e g ) ; 
 
         } 
 
 
 
         6 6 %   { 
 
                 t r a n s f o r m :   t r a n s l a t e ( - 2 0 p x ,   2 0 p x )   r o t a t e ( 2 4 0 d e g ) ; 
 
         } 
 
 } 
 
 
 
 @ k e y f r a m e s   s l i d e U p   { 
 
         f r o m   { 
 
                 o p a c i t y :   0 ; 
 
                 t r a n s f o r m :   t r a n s l a t e Y ( 2 0 p x ) ; 
 
         } 
 
 
 
         t o   { 
 
                 o p a c i t y :   1 ; 
 
                 t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
 
         } 
 
 } 
 
 
 
 @ k e y f r a m e s   s l i d e I n N a v   { 
 
         f r o m   { 
 
                 o p a c i t y :   0 ; 
 
                 t r a n s f o r m :   t r a n s l a t e X ( - 1 0 p x ) ; 
 
         } 
 
 
 
         t o   { 
 
                 o p a c i t y :   1 ; 
 
                 t r a n s f o r m :   t r a n s l a t e X ( 0 ) ; 
 
         } 
 
 } 
 
 
 
 @ k e y f r a m e s   b o u n c e   { 
 
 
 
         0 % , 
 
         1 0 0 %   { 
 
                 t r a n s f o r m :   s c a l e ( 1 ) ; 
 
         } 
 
 
 
         5 0 %   { 
 
                 t r a n s f o r m :   s c a l e ( 1 . 1 5 ) ; 
 
         } 
 
 } 
 
 
 
 @ k e y f r a m e s   f a d e I n   { 
 
         f r o m   { 
 
                 o p a c i t y :   0 ; 
 
                 t r a n s f o r m :   t r a n s l a t e Y ( 1 0 p x ) ; 
 
         } 
 
 
 
         t o   { 
 
                 o p a c i t y :   1 ; 
 
                 t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
 
         } 
 
 } 
 
 
 
 @ k e y f r a m e s   s c a l e I n   { 
 
         f r o m   { 
 
                 t r a n s f o r m :   s c a l e ( 0 . 8 ) ; 
 
                 o p a c i t y :   0 ; 
 
         } 
 
 
 
         t o   { 
 
                 t r a n s f o r m :   s c a l e ( 1 ) ; 
 
                 o p a c i t y :   1 ; 
 
         } 
 
 } 
 
 
 
 @ k e y f r a m e s   s h i m m e r   { 
 
         0 %   { 
 
                 b a c k g r o u n d - p o s i t i o n :   2 0 0 %   0 ; 
 
         } 
 
 
 
         1 0 0 %   { 
 
                 b a c k g r o u n d - p o s i t i o n :   - 2 0 0 %   0 ; 
 
         } 
 
 } 
 
 
 
 @ k e y f r a m e s   f a d e I n S k e l e t o n   { 
 
         t o   { 
 
                 o p a c i t y :   1 ; 
 
         } 
 
 } 
 
 
 
 / *   H e a d l e s s   L a y o u t   S t y l e s   * / 
 
 . h e a d l e s s - l a y o u t   { 
 
         p o s i t i o n :   r e l a t i v e ; 
 
         m i n - h e i g h t :   1 0 0 v h ; 
 
         d i s p l a y :   f l e x ; 
 
         a l i g n - i t e m s :   c e n t e r ; 
 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
 
         p a d d i n g :   1 r e m ; 
 
         o v e r f l o w :   h i d d e n ; 
 
 } 
 
 
 
 . h e a d l e s s - b a c k g r o u n d   { 
 
         p o s i t i o n :   a b s o l u t e ; 
 
         i n s e t :   0 ; 
 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g , 
 
                         # f 0 f d f 4   0 % , 
 
                         # d c f c e 7   2 5 % , 
 
                         # b b f 7 d 0   5 0 % , 
 
                         # 8 6 e f a c   7 5 % , 
 
                         # 4 a d e 8 0   1 0 0 % ) ; 
 
         o p a c i t y :   0 . 1 5 ; 
 
         z - i n d e x :   0 ; 
 
 } 
 
 
 
 . h e a d l e s s - b a c k g r o u n d : : b e f o r e   { 
 
         c o n t e n t :   ' ' ; 
 
         p o s i t i o n :   a b s o l u t e ; 
 
         t o p :   - 5 0 % ; 
 
         l e f t :   - 5 0 % ; 
 
         w i d t h :   2 0 0 % ; 
 
         h e i g h t :   2 0 0 % ; 
 
         b a c k g r o u n d :   r a d i a l - g r a d i e n t ( c i r c l e   a t   3 0 %   5 0 % ,   r g b a ( 6 1 ,   2 0 3 ,   9 1 ,   0 . 1 )   0 % ,   t r a n s p a r e n t   5 0 % ) , 
 
                 r a d i a l - g r a d i e n t ( c i r c l e   a t   7 0 %   8 0 % ,   r g b a ( 3 4 ,   1 9 7 ,   9 4 ,   0 . 0 8 )   0 % ,   t r a n s p a r e n t   5 0 % ) ; 
 
         a n i m a t i o n :   f l o a t   2 0 s   e a s e - i n - o u t   i n f i n i t e ; 
 
 } 
 
 
 
 . h e a d l e s s - c o n t e n t   { 
 
         p o s i t i o n :   r e l a t i v e ; 
 
         z - i n d e x :   1 ; 
 
         w i d t h :   1 0 0 % ; 
 
         m a x - w i d t h :   2 8 r e m ; 
 
 } 
 
 
 
 / *   L o g i n   P a g e   S t y l e s   * / 
 
 . l o g i n - c o n t a i n e r   { 
 
         w i d t h :   1 0 0 % ; 
 
         a n i m a t i o n :   s l i d e U p   0 . 5 s   v a r ( - - e a s e - o u t ) ; 
 
 } 
 
 
 
 . l o g i n - c a r d   { 
 
         b o x - s h a d o w :   0   1 0 p x   4 0 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 0 8 ) ,   0   2 p x   8 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 0 4 ) ; 
 
         b o r d e r :   1 p x   s o l i d   r g b a ( 6 1 ,   2 0 3 ,   9 1 ,   0 . 1 ) ; 
 
 } 
 
 
 
 . l o g o - i c o n   { 
 
         w i d t h :   3 r e m ; 
 
         h e i g h t :   3 r e m ; 
 
         b o r d e r - r a d i u s :   1 r e m ; 
 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   v a r ( - - p r i m a r y )   0 % ,   v a r ( - - p r i m a r y - d a r k )   1 0 0 % ) ; 
 
         d i s p l a y :   f l e x ; 
 
         a l i g n - i t e m s :   c e n t e r ; 
 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 6 1 ,   2 0 3 ,   9 1 ,   0 . 3 ) ; 
 
 } 
 
 
 
 / *   N a v i g a t i o n   M e n u   S t y l e s   * / 
 
 . n a v - l i n k   { 
 
         d i s p l a y :   f l e x ; 
 
         a l i g n - i t e m s :   c e n t e r ; 
 
         g a p :   0 . 7 5 r e m ; 
 
         p a d d i n g :   0 . 6 2 5 r e m   0 . 7 5 r e m ; 
 
         b o r d e r - r a d i u s :   0 . 7 5 r e m ; 
 
         c o l o r :   # 3 7 4 1 5 1 ; 
 
         f o n t - w e i g h t :   5 0 0 ; 
 
         t r a n s i t i o n :   b a c k g r o u n d - c o l o r   0 . 2 s ,   c o l o r   0 . 2 s ; 
 
         o p a c i t y :   0 ; 
 
         a n i m a t i o n :   s l i d e I n N a v   0 . 3 s   v a r ( - - e a s e - o u t )   f o r w a r d s ; 
 
 } 
 
 
 
 . n a v - i c o n   { 
 
         t r a n s i t i o n :   t r a n s f o r m   v a r ( - - d u r a t i o n - b a s e )   v a r ( - - e a s e - s p r i n g ) ; 
 
 } 
 
 
 
 . n a v - l i n k : h o v e r   . n a v - i c o n   { 
 
         t r a n s f o r m :   s c a l e ( 1 . 1 ) ; 
 
 } 
 
 
 
 . n a v - l i n k : h o v e r   { 
 
         b a c k g r o u n d - c o l o r :   v a r ( - - p r i m a r y - l i g h t ) ; 
 
         c o l o r :   v a r ( - - p r i m a r y ) ; 
 
 } 
 
 
 
 . n a v - l i n k . a c t i v e   { 
 
         b a c k g r o u n d - c o l o r :   v a r ( - - p r i m a r y ) ; 
 
         c o l o r :   w h i t e ; 
 
 } 
 
 
 
 . n a v - l i n k . a c t i v e : h o v e r   { 
 
         b a c k g r o u n d - c o l o r :   v a r ( - - p r i m a r y - d a r k ) ; 
 
         c o l o r :   w h i t e ; 
 
 } 
 
 
 
 . n a v - l i n k . a c t i v e   . n a v - i c o n   { 
 
         a n i m a t i o n :   b o u n c e   0 . 6 s   v a r ( - - e a s e - s p r i n g ) ; 
 
 } 
 
 
 
 / *   E m p t y   S t a t e   S t y l e s   * / 
 
 . e m p t y - s t a t e   { 
 
         a n i m a t i o n :   f a d e I n   0 . 4 s   v a r ( - - e a s e - o u t ) ; 
 
 } 
 
 
 
 . e m p t y - s t a t e - i c o n   { 
 
         a n i m a t i o n :   s c a l e I n   0 . 5 s   v a r ( - - e a s e - s p r i n g ) ; 
 
 } 
 
 
 
 / *   S k e l e t o n   L o a d e r   S t y l e s   * / 
 
 . s k e l e t o n - l o a d e r   { 
 
         w i d t h :   1 0 0 % ; 
 
         p a d d i n g :   1 r e m ; 
 
 } 
 
 
 
 . s k e l e t o n - r o w   { 
 
         d i s p l a y :   g r i d ; 
 
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i t ,   m i n m a x ( 1 0 0 p x ,   1 f r ) ) ; 
 
         g a p :   1 r e m ; 
 
         m a r g i n - b o t t o m :   1 r e m ; 
 
         o p a c i t y :   0 ; 
 
         a n i m a t i o n :   f a d e I n S k e l e t o n   0 . 3 s   v a r ( - - e a s e - o u t )   f o r w a r d s ; 
 
 } 
 
 
 
 . s k e l e t o n - c e l l   { 
 
         h e i g h t :   1 . 5 r e m ; 
 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 9 0 d e g , 
 
                         # f 3 f 4 f 6   0 % , 
 
                         # e 5 e 7 e b   5 0 % , 
 
                         # f 3 f 4 f 6   1 0 0 % ) ; 
 
         b a c k g r o u n d - s i z e :   2 0 0 %   1 0 0 % ; 
 
         b o r d e r - r a d i u s :   0 . 3 7 5 r e m ; 
 
         a n i m a t i o n :   s h i m m e r   1 . 5 s   e a s e - i n - o u t   i n f i n i t e ; 
 
 } 
 
 
 
 / *   A c c e s s i b i l i t y :   R e d u c e d   M o t i o n   * / 
 
 @ m e d i a   ( p r e f e r s - r e d u c e d - m o t i o n :   r e d u c e )   { 
 
 
 
         . h e a d l e s s - b a c k g r o u n d : : b e f o r e , 
 
         . l o g i n - c o n t a i n e r , 
 
         . n a v - l i n k , 
 
         . n a v - l i n k : h o v e r   . n a v - i c o n , 
 
         . n a v - l i n k . a c t i v e   . n a v - i c o n , 
 
         . e m p t y - s t a t e , 
 
         . e m p t y - s t a t e - i c o n , 
 
         . s k e l e t o n - c e l l , 
 
         . s k e l e t o n - r o w   { 
 
                 a n i m a t i o n :   n o n e   ! i m p o r t a n t ; 
 
         } 
 
 
 
         . n a v - l i n k   { 
 
                 o p a c i t y :   1 ; 
 
         } 
 
 
 
         . s k e l e t o n - r o w   { 
 
                 o p a c i t y :   1 ; 
 
         } 
 
 
 
         . s k e l e t o n - c e l l   { 
 
                 b a c k g r o u n d :   # f 3 f 4 f 6 ; 
 
         } 
 
 
 
         . n a v - l i n k : h o v e r   . n a v - i c o n , 
 
         . n a v - l i n k . a c t i v e   . n a v - i c o n   { 
 
                 t r a n s f o r m :   n o n e ; 
 
         } 
 
 } 
 
 