/* ============================================= */
/* MÓDULO FINANCEIRO E CALENDÁRIO (financeiro.css)*/
/* ============================================= */

/* --- COLUNAS KANBAN --- */
.container { display: flex; gap: 14px; margin-bottom: 20px; align-items: stretch; }
.column { flex: 1; background: white; border-radius: 8px; padding: 15px; display: flex; flex-direction: column; min-height: 300px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); min-width: 0; }
.column-header { display: flex; justify-content: space-between; align-items: center; font-size: 1.2em; font-weight: bold; padding: 10px; margin-bottom: 10px; border-bottom: 2px solid var(--azul); }
.total-value { font-size: 0.9em; }

/* --- CARDS FINANCEIROS --- */
.card { border-radius: 8px; padding: 15px; margin-bottom: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.card-title { font-weight: bold; margin: 0; }
.card-type { font-weight: bold; }
.card-main-info { margin-bottom: 10px; text-align: center; font-weight: bold; font-size: 1.2em; }
.card-details { padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.1); margin-bottom: 10px; }
.card-details.hidden { display: none; }

/* Cores das Colunas */
#atrasadas .card { background: var(--rosa); border-right: 4px solid var(--vermelho); border-bottom: 2px solid var(--vermelho); }
#pendentes .card { background: var(--amareloclaro); border-right: 4px solid var(--laranja); border-bottom: 2px solid var(--laranja); }
#pagas .card { background: var(--verdeclaro); border-right: 4px solid var(--verde); border-bottom: 2px solid var(--verde); }
.arquivadas-header { color: var(--grafite); border-bottom-color: var(--grafite); }
#arquivadas .card { background: var(--cinza); border-right: 4px solid var(--grafite); border-bottom: 2px solid var(--grafite); }
#arquivadas .card .btn-pay { display: none; }

/* Textos do Card */
.card-date { color: var(--laranja); font-size: 1.2em; font-weight: bold; margin-bottom: 5px; }
.vencimento-pago { text-decoration: line-through; opacity: 0.7; font-weight: normal; }
.data-pagamento { font-weight: bold; color: var(--verde); font-size: 1.2em; }

.card-actions { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.card-actions button { pointer-events: all; }

/* Badges de Status Globais */
.status-badge { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 0.8em; color: white; margin-bottom: 5px; }
.status-pendente { background: var(--laranja); }
.status-paga { background: var(--verde); }
.status-atrasada { background: var(--vermelho); }
.status-ativo { background: var(--verde); }
.status-pausado, .status-paralisada { background: var(--rosabebe); }
.status-inadimplente { background: var(--azulnoturno); }
.status-estorno { background: var(--grafite); }
.status-cancelado, .status-cancelada { background: var(--vermelho); }

/* --- CALENDÁRIO --- */
.calendar-container { margin-top: 0; background: white; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); max-height: 100vh; overflow-y: auto; }
.calendar-header { display: none; }
.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar th, .calendar td { border: 1px solid #ddd; padding: 10px; text-align: center; }
.calendar th { background: var(--azul); color: white; }
.calendar td { height: 100px; vertical-align: top; }
.calendar-date { font-weight: bold; margin-bottom: 5px; }
.current-day { background: #CDDFEA; }
.pagar-icon { width: 20px; height: 20px; margin-bottom: -4px; }
.calendar-icon { cursor: pointer; font-size: 24px; margin-right: 10px; vertical-align: middle; transition: transform 0.2s ease-in-out; }
.calendar-icon:hover { transform: scale(1.2); }

/* Eventos no Calendário */
.calendar-event { justify-content: space-between; font-size: 0.8em; margin: 2px; padding: 2px 4px; border-radius: 3px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; width: auto; box-sizing: border-box; }
.calendar-event.atrasada { background: var(--vermelho); color: white; }
.calendar-event.pendente { background: var(--laranja); color: white; }
.calendar-event.paga { background: var(--verde); color: white; }
.calendar-event.birthday { background: var(--azulclaro); color: var(--azul); padding-left: 10px; font-weight: bold; cursor: default; }

.birthday-icon { margin-bottom: -2px; width: 20px; height: 20px; }
.birthday-title { display: flex; align-items: center; gap: 10px; }
.urgent-accounts-title { display: flex; align-items: center; gap: 10px; }
.urgent-icon { width: 40px; height: 40px; }
.tipo-total { text-align: right; font-weight: bold; font-size: 0.9em; background: #888; color: white; padding: 8px 15px; margin: 10px 0; border-radius: 4px; }

/* Responsividade Financeiro */
@media (max-width: 768px) {
    .container { flex-direction: column; gap: 10px; }
    .column { width: 100%; min-height: auto; }
    .calendar th, .calendar td { padding: 5px; font-size: 0.9em; }
    .calendar td { height: 80px; }
    .calendar-event { font-size: 0.7em; }
}
@media (max-width: 480px) {
    .card { padding: 10px; }
}