/**
 * Avisos financeiros globais (atraso, vencimento, bloqueio portal) — main.php
 * Padrão: modo-escuro.md + padrao-bordas-sombras.mdc
 */

.fin-portal-aviso {
    --fpa-text: #0f172a;
    --fpa-text-muted: #475569;
    --fpa-link: #05585d;
    --fpa-shadow-sm: 0 3px 12px rgba(15, 23, 42, 0.1), 0 1px 4px rgba(15, 23, 42, 0.06);
    border-width: 2px !important;
    border-style: solid !important;
    border-radius: 0.65rem;
    box-shadow: var(--fpa-shadow-sm);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.fin-portal-aviso--danger {
    background: rgba(220, 53, 69, 0.08) !important;
    border-color: rgba(220, 53, 69, 0.35) !important;
    color: #7f1d1d !important;
}

.fin-portal-aviso--warning {
    background: rgba(255, 193, 7, 0.12) !important;
    border-color: rgba(217, 119, 6, 0.35) !important;
    color: #78350f !important;
}

.fin-portal-aviso--info {
    background: rgba(5, 88, 93, 0.08) !important;
    border-color: rgba(5, 88, 93, 0.25) !important;
    color: #044a4e !important;
}

.fin-portal-aviso .alert-link {
    color: var(--fpa-link) !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fin-portal-aviso .alert-link:hover {
    opacity: 0.85;
}

.fin-portal-aviso--danger > i.fas {
    color: #dc3545;
}

.fin-portal-aviso--warning > i.fas {
    color: #d97706;
}

.fin-portal-aviso--info > i.fas {
    color: #05585d;
}

.fin-portal-aviso-countdown {
    color: var(--fpa-text-muted);
    font-variant-numeric: tabular-nums;
}

/* Modo escuro */
html.agil-theme-dark .fin-portal-aviso {
    --fpa-text: #e2e8f0;
    --fpa-text-muted: #a8b4c4;
    --fpa-link: #2dd4bf;
    --fpa-shadow-sm: 0 3px 12px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.15);
}

html.agil-theme-dark .fin-portal-aviso--danger {
    background: rgba(248, 113, 113, 0.12) !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
    color: var(--fpa-text) !important;
}

html.agil-theme-dark .fin-portal-aviso--warning {
    background: rgba(251, 191, 36, 0.12) !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
    color: var(--fpa-text) !important;
}

html.agil-theme-dark .fin-portal-aviso--info {
    background: rgba(45, 212, 191, 0.1) !important;
    border-color: rgba(45, 212, 191, 0.3) !important;
    color: var(--fpa-text) !important;
}

html.agil-theme-dark .fin-portal-aviso--danger > i.fas {
    color: #f87171;
}

html.agil-theme-dark .fin-portal-aviso--warning > i.fas {
    color: #fbbf24;
}

html.agil-theme-dark .fin-portal-aviso--info > i.fas {
    color: #2dd4bf;
}

html.agil-theme-dark .fin-portal-aviso .alert-link {
    color: var(--fpa-link) !important;
}

html.agil-theme-dark .fin-portal-aviso-countdown {
    color: var(--fpa-text-muted) !important;
    opacity: 1 !important;
}
