/* ============================================= */
/* MÓDULO DASHBOARD E METAS (dashboard.css)      */
/* ============================================= */

.dashboard-header { justify-content: space-between; align-items: center; margin-bottom: 30px; }
.dashboard-actions { gap: 15px; justify-content: flex-end; }
.btn-add-client { background: var(--amarelo); color: var(--azul); padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
.btn-add-client:hover { background: white; }

/* Grid de Cards Topo */
.dashboard-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 15px; margin-bottom: 15px; }
.dashboard-card { background: white; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border: 1px solid #e0e0e0; border-left: 4px solid var(--azul); }
.dashboard-card .card-icon img { width: 60px; height: 60px; }
.dashboard-card .card-content { display: flex; flex-direction: column; }
.dashboard-card .card-title { font-size: 14px; color: #555; margin-bottom: 5px; }
.dashboard-card .card-value { font-size: 22px; font-weight: 700; color: var(--azul); }

/* Grid Principal (Colunas) */
.dashboard-grid { display: flex; gap: 20px; margin: 20px 0; }
.dashboard-column { flex: 1; background: white; border-radius: 8px; padding: 15px; min-height: 300px; display: flex; flex-direction: column; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.dashboard-column h2 { font-size: 1.2em; font-weight: bold; padding: 10px; margin-bottom: 10px; border-bottom: 2px solid var(--azul); color: var(--azul); }

/* Grid Moderno (Listas recentes) */
.dashboard-grid-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 15px; }
.dashboard-main-widget { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-left: 4px solid var(--azul); }
.dashboard-main-widget h3 { color: var(--azul); padding-bottom: 10px; margin-bottom: 15px; }
.recent-list { list-style: none; padding: 0; }
.recent-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 5px; border-bottom: 1px solid #f0f0f0; }
.recent-list li:last-child { border-bottom: none; }
.recent-list .item-name { font-weight: 500; }
.recent-list .item-detail { font-size: 13px; color: #888; background-color: #f5f5f5; padding: 3px 8px; border-radius: 6px; }

/* Itens de Alerta */
.urgent-account-item { background: var(--rosa); border-radius: 8px; padding: 15px; margin-bottom: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); font-weight: bold; }
.birthday-item { background: var(--azulclaro); border-radius: 8px; padding: 10.5px 15px; margin-bottom: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
.birthday-item .whatsapp-btn { background: var(--verde); color: white; border: none; padding: 3px 16px; cursor: pointer; border-radius: 4px; font-size: 1em; font-weight: bold; text-decoration: none; width: 25px; height: 25px; }
.birthday-item .whatsapp-btn img { margin-right: 5px; }
.birthday-item .whatsapp-off { background: var(--cinza); color: var(--azul); border: none; padding: 3px 16px; cursor: pointer; border-radius: 4px; font-size: 1em; font-weight: bold; text-decoration: none; }

/* --- WIDGETS DE METAS --- */
#meta-widget-container { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); margin-bottom: 15px; border-left: 4px solid var(--azul); }
#meta-widget-container h3 { color: var(--azul); text-align: center; }
.meta-grid { flex: 1; display: flex; justify-content: space-around; flex-wrap: wrap; margin-top: -20px; padding-bottom: 10px; }
.meta-widget { position: relative; width: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0px; }
.meta-widget canvas { width: 180px !important; height: 180px !important; }
.meta-chart-label { position: absolute; top: 40%; left: 50%; transform: translate(-50%, calc(-50% - 0px)); text-align: center; display: flex; flex-direction: column; line-height: 1.1; }
.chart-percent { font-size: 24px; font-weight: 700; color: var(--azul); }
.chart-text-label { font-size: 12px; color: #555; font-weight: 500; }
.meta-widget-value { background-color: #f0f3f5; padding: 5px 10px; border-radius: 6px; text-align: center; line-height: 1.2; }
.meta-valor-label { display: block; font-size: 11px; color: #555; font-weight: 500; }
.meta-valor-numero { display: block; font-size: 16px; font-weight: bold; color: var(--azul); }

/* Aviso de Meta na tela Minha Meta */
#minha-meta-aviso #minha-meta-descricao-tabela { margin: 0; line-height: 1.6; color: #333; }
#aviso-comissao-pai { background-color: var(--rosa); border: 1px solid #e57373; border-radius: 8px; padding: 15px; margin-bottom: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
#aviso-comissao-pai h4 { margin-top: 0; margin-bottom: 10px; color: #a02c2c; font-size: 1.1em; }
#aviso-comissao-pai #limites-comissao-texto { margin-bottom: 15px; line-height: 1.6; font-style: italic; color: #333; }
#aviso-comissao-pai .aviso-importante { margin-bottom: 0; font-size: 0.9em; color: #a02c2c; }

@media (max-width: 768px) {
    .dashboard-grid { flex-direction: column; gap: 10px; }
    .dashboard-column { width: 100%; min-height: auto; }
}