/* =============================================
   INOVA FINANCE — Estilos Globais
   ============================================= */

:root {
    --navy-900: #0d1b3e;
    --navy-800: #122150;
    --navy-700: #1a2f6e;
    --navy-600: #1e3a8a;
    --navy-500: #2563eb;
    --accent:   #3b82f6;

    --bg-page:  #f0f4f8;
    --bg-card:  #ffffff;

    --text-primary:   #1e293b;
    --text-secondary: #64748b;
    --text-muted:     #94a3b8;

    --navbar-height: 64px;
    --footer-height: 48px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.14);

    --radius-card: 16px;
    --radius-sm:   8px;

    --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =============================================
   NAVBAR
   ============================================= */

#main-navbar {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    height: var(--navbar-height);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255,255,255,.07);
    z-index: 1050;
}

/* Logo */
.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.05);
}

/* Links da navbar */
.nav-item-custom {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px !important;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.nav-item-custom:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

.nav-item-custom.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    font-weight: 600;
}

/* Divider vertical */
.navbar-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,.2);
}

/* Avatar do usuário */
.navbar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

/* =============================================
   LAYOUT PRINCIPAL
   ============================================= */

.main-content {
    flex: 1;
    padding-top: calc(var(--navbar-height) + 32px);
    padding-bottom: 32px;
}

/* =============================================
   HOME — Hero e Boas-vindas
   ============================================= */

.home-hero {
    min-height: calc(100vh - var(--navbar-height) - var(--footer-height));
    display: flex;
    align-items: flex-start;
    padding-top: 8px;
}

.home-welcome {
    margin-bottom: 8px;
}

.home-welcome-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(37, 99, 235, 0.10);
    color: var(--navy-600);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.home-welcome-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.2;
    margin-bottom: 10px;
}

.home-welcome-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 0;
}

/* =============================================
   CARDS DOS MÓDULOS
   ============================================= */

.module-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 24px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,.06);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
    cursor: pointer;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: var(--radius-card) 0 0 var(--radius-card);
    transition: width var(--transition);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.module-card:hover::before {
    width: 6px;
}

/* Ícone */
.module-card__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: transform var(--transition);
}

.module-card:hover .module-card__icon {
    transform: scale(1.10);
}

/* Corpo */
.module-card__body {
    flex: 1;
    min-width: 0;
}

.module-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.module-card__desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Seta */
.module-card__arrow {
    flex-shrink: 0;
    font-size: 1.3rem;
    opacity: 0.25;
    transition: opacity var(--transition), transform var(--transition);
}

.module-card:hover .module-card__arrow {
    opacity: 0.7;
    transform: translateX(4px);
}

/* ---- Variantes de cor ---- */

/* Blue — Contratos */
.module-card--blue::before           { background: #2563eb; }
.module-card--blue .module-card__icon{ background: #eff6ff; color: #2563eb; }
.module-card--blue:hover .module-card__arrow { color: #2563eb; }

/* Indigo — Custos Fixos */
.module-card--indigo::before           { background: #4f46e5; }
.module-card--indigo .module-card__icon{ background: #eef2ff; color: #4f46e5; }
.module-card--indigo:hover .module-card__arrow { color: #4f46e5; }

/* Red — Despesas */
.module-card--red::before           { background: #dc2626; }
.module-card--red .module-card__icon{ background: #fef2f2; color: #dc2626; }
.module-card--red:hover .module-card__arrow { color: #dc2626; }

/* Green — Entradas */
.module-card--green::before           { background: #16a34a; }
.module-card--green .module-card__icon{ background: #f0fdf4; color: #16a34a; }
.module-card--green:hover .module-card__arrow { color: #16a34a; }

/* Amber — Relatório */
.module-card--amber::before           { background: #d97706; }
.module-card--amber .module-card__icon{ background: #fffbeb; color: #d97706; }
.module-card--amber:hover .module-card__arrow { color: #d97706; }

/* Teal — Dashboards */
.module-card--teal::before           { background: #0d9488; }
.module-card--teal .module-card__icon{ background: #f0fdfa; color: #0d9488; }
.module-card--teal:hover .module-card__arrow { color: #0d9488; }

/* =============================================
   FOOTER
   ============================================= */

.app-footer {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    height: var(--footer-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    margin-top: auto;
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */

@media (max-width: 576px) {
    .module-card {
        padding: 18px 16px;
        gap: 14px;
    }
    .module-card__icon {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }
    .main-content {
        padding-top: calc(var(--navbar-height) + 20px);
        padding-bottom: 20px;
    }
}

@media (max-width: 991.98px) {
    #main-navbar .navbar-collapse {
        background: var(--navy-900);
        margin-top: 8px;
        border-radius: var(--radius-sm);
        padding: 8px;
    }
    .nav-item-custom {
        display: block;
        padding: 8px 14px !important;
    }
}

/* =============================================
   PÁGINAS INTERNAS — Layout comum
   ============================================= */

.page-wrapper {
    padding-bottom: 48px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.page-breadcrumb {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.page-breadcrumb a { color: var(--text-secondary); }
.page-breadcrumb a:hover { color: var(--navy-600); }

.page-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--navy-900);
    margin: 0;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

/* =============================================
   SUMMARY PILLS (totalizadores)
   ============================================= */

.summary-pill {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,.07);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.summary-pill__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-secondary);
}

.summary-pill__value {
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-pill--blue  .summary-pill__value { color: #2563eb; }
.summary-pill--green .summary-pill__value { color: #16a34a; }
.summary-pill--amber .summary-pill__value { color: #d97706; }
.summary-pill--red   .summary-pill__value { color: #dc2626; }

/* =============================================
   TABELA DE DADOS
   ============================================= */

.table-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    table-layout: fixed;
}

.data-table thead tr {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
}

.data-table thead th {
    position: sticky;
    top: 0;
    color: rgba(255,255,255,.9);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 12px 14px;
    white-space: nowrap;
    border: none;
    z-index: 2;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,.05);
    transition: background var(--transition);
}

.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: #f0f7ff; }
.data-table tbody tr.selected { background: #e8f0fe; }

.data-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    color: var(--text-primary);
    word-break: break-word;
}

/* Larguras das colunas */
.col-cliente  { width: 22%; }
.col-cnpj     { width: 13%; }
.col-projeto  { width: 18%; }
.col-date     { width: 9%;  white-space: nowrap; }
.col-valor    { width: 10%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-status   { width: 8%;  text-align: center; }

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.status-badge--ativo       { background: #dcfce7; color: #15803d; }
.status-badge--inativo     { background: #fef9c3; color: #92400e; }
.status-badge--vencido     { background: #fee2e2; color: #b91c1c; }
.status-badge--desativado  { background: #f1f5f9; color: #64748b; }

/* Colunas da tabela Custos Fixos */
.cf-nome      { width: 16%; }
.cf-empresa   { width: 14%; }
.cf-descricao { width: 20%; }
.cf-valor     { width: 12%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cf-dia       { width: 7%;  text-align: center; white-space: nowrap; }
.cf-pagamento { width: 16%; }
.cf-status    { width: 8%;  text-align: center; }

/* Utilitários */
.text-indigo  { color: #4f46e5; }
.font-tabular { font-variant-numeric: tabular-nums; }

/* Ordenação de colunas */
th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
th[data-sort]::after { content: ' \2195'; opacity: .35; font-size: .72em; }
th[data-sort].sort-asc::after  { content: ' \2191'; opacity: 1; }
th[data-sort].sort-desc::after { content: ' \2193'; opacity: 1; }

/* Linha de Total nas tabelas — mesmo estilo do cabeçalho */
.total-row {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
}
.total-row td {
    background: transparent;
    color: rgba(255,255,255,.9);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 12px 14px;
    border: none;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Summary pill variante indigo */
.summary-pill--indigo .summary-pill__value { color: #4f46e5; }

/* Recorrência badge */
.recorrencia-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.recorrencia-badge--mensal  { background: #f0fdf4; color: #15803d; }
.recorrencia-badge--anual   { background: #eff6ff; color: #1d4ed8; }

/* Status radio variante blue e indigo (usados em custos fixos) */
.status-radio--blue   { color: #1d4ed8; }
.status-radio--blue:has(input:checked)   { background: #dbeafe; }
.status-radio--indigo { color: #4338ca; }
.status-radio--indigo:has(input:checked) { background: #e0e7ff; }

/* Summary pill valor pequeno (para valores monetários) */
.summary-pill__value--sm {
    font-size: 1rem;
    font-weight: 700;
}

/* Footer da tabela */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid rgba(0,0,0,.06);
    flex-wrap: wrap;
    gap: 12px;
}

.table-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pagination .page-link {
    border-color: rgba(0,0,0,.1);
    color: var(--navy-600);
    font-size: 0.82rem;
    padding: 4px 10px;
}

.pagination .page-item.active .page-link {
    background-color: var(--navy-600);
    border-color: var(--navy-600);
}

/* Estado vazio */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.empty-state__icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state__desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* =============================================
   FORMULÁRIO (Contratos e futuros módulos)
   ============================================= */

.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.form-card__header {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: rgba(255,255,255,.95);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 12px 20px;
}

.form-card__body {
    padding: 24px 20px;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.form-label-hint {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    color: var(--text-muted);
    letter-spacing: 0;
    margin-left: 4px;
}

.req { color: #dc2626; }

.form-control, .form-select {
    border-color: rgba(0,0,0,.15);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    padding: 8px 12px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.input-group-text {
    background: #f8fafc;
    border-color: rgba(0,0,0,.15);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Status radio buttons */
.status-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.status-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 99px;
    border: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    background: #f1f5f9;
    color: var(--text-secondary);
}

.status-radio input[type="radio"] { display: none; }

.status-radio:has(input:checked) { border-color: currentColor; }

.status-radio--green { color: #15803d; }
.status-radio--green:has(input:checked) { background: #dcfce7; }

.status-radio--amber { color: #92400e; }
.status-radio--amber:has(input:checked) { background: #fef9c3; }

.status-radio--red   { color: #b91c1c; }
.status-radio--red:has(input:checked)   { background: #fee2e2; }

/* Botões de ação do formulário */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 8px 0 24px;
}

/* Zona de perigo */
.danger-zone {
    border: 2px solid #fca5a5;
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-top: 12px;
}

.danger-zone__header {
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 10px 20px;
    border-bottom: 1px solid #fca5a5;
}

.danger-zone__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    flex-wrap: wrap;
}

.danger-zone__desc { flex: 1; min-width: 200px; }

/* =============================================
   DESPESAS — Navegação por Mês
   ============================================= */

.month-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    box-shadow: var(--shadow-sm);
}

/* Seletor de ano */
.year-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.year-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.year-nav__btn:hover {
    background: var(--navy-600);
    color: #fff;
}

.year-nav__label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-900);
    min-width: 42px;
    text-align: center;
}

/* Abas de meses */
.month-tabs-scroll {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.month-tabs-scroll::-webkit-scrollbar { display: none; }

.month-tabs {
    display: flex;
    gap: 4px;
    min-width: max-content;
}

.month-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.month-tab:hover {
    background: #f0f4f8;
    color: var(--navy-700);
}

.month-tab--active {
    background: var(--navy-600);
    color: #fff;
    font-weight: 700;
}

.month-tab--active:hover {
    background: var(--navy-700);
    color: #fff;
}

.month-tab--today {
    font-weight: 600;
}

.month-tab__dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
    flex-shrink: 0;
}

.month-tab-divider {
    display: inline-block;
    width: 1px;
    height: 24px;
    background: rgba(0,0,0,.12);
    margin: 0 4px;
    flex-shrink: 0;
    align-self: center;
}

.month-tab--anual {
    font-weight: 600;
    color: var(--navy-700);
    border: 1px solid rgba(0,0,0,.12);
    background: #f8fafc;
}

.month-tab--anual:hover {
    background: var(--navy-600);
    color: #fff;
    border-color: transparent;
}

.month-tab--anual.month-tab--active {
    background: var(--navy-900);
    color: #fff;
    border-color: transparent;
}

/* Colunas da tabela anual */
.col-mes  { width: 13%; }
.col-n    { width: 8%; text-align: center; }

/* =============================================
   DESPESAS — Tipo Badge
   ============================================= */

.tipo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tipo-badge--custo-fixo {
    background: #eff6ff;
    color: #1d4ed8;
}

.tipo-badge--avulsa {
    background: #fef9c3;
    color: #92400e;
}

/* =============================================
   DESPESAS — Colunas da tabela
   ============================================= */

.desp-empresa   { width: 18%; }
.desp-nome      { width: 16%; }
.desp-tipo      { width: 11%; }
.desp-previsto  { width: 9%;  white-space: nowrap; font-variant-numeric: tabular-nums; }
.desp-pago      { width: 9%;  white-space: nowrap; font-variant-numeric: tabular-nums; }
.desp-pagamento { width: 14%; }
.desp-data      { width: 9%;  white-space: nowrap; }
.desp-status    { width: 8%;  text-align: center; }

/* =============================================
   DESPESAS — Status Badge (Pendente / Pago)
   ============================================= */

.status-badge--pendente { background: #fef9c3; color: #92400e; }
.status-badge--pago     { background: #dcfce7; color: #15803d; }

/* =============================================
   FORMULÁRIO — Campo somente leitura
   ============================================= */

.form-control--readonly {
    background: #f8fafc;
    color: var(--text-secondary);
    cursor: default;
    border-color: rgba(0,0,0,.08);
}

.form-control--readonly:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.08);
}

/* =============================================
   ENTRADAS — Colunas da tabela
   ============================================= */

.ent-cliente { width: 18%; }
.ent-desc    { width: 20%; }
.ent-tipo    { width: 11%; }
.ent-valor   { width: 10%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ent-forma   { width: 14%; }
.ent-data    { width: 9%;  white-space: nowrap; }
.ent-status  { width: 9%;  text-align: center; }

/* =============================================
   ENTRADAS — Tipo Badge
   ============================================= */

.tipo-badge--mensalidade  { background: #eff6ff; color: #1d4ed8; }
.tipo-badge--projeto      { background: #f0fdf4; color: #15803d; }
.tipo-badge--consultoria  { background: #faf5ff; color: #7e22ce; }
.tipo-badge--honorarios   { background: #fff7ed; color: #c2410c; }
.tipo-badge--outro        { background: #f1f5f9; color: #475569; }

/* =============================================
   ENTRADAS — Status Badge
   ============================================= */

.status-badge--recebido { background: #dcfce7; color: #15803d; }

/* Badge de status clicável (toggle) */
button.status-badge,
button.status-clickable {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: filter var(--transition), transform var(--transition);
}

button.status-badge:hover {
    filter: brightness(.92);
    transform: scale(1.04);
}

button.status-badge:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.status-form {
    display: contents;
}
