/* ---------------------------------------------------------
   GRID RESPONSIVE PARA WIDGETS DEL DASHBOARD
   --------------------------------------------------------- */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Tablet: 2 columnas */
@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Escritorio: 3 columnas */
@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Widget estilo SaaS coherente con wemsys-card */
.dashboard-widget,
details.dashboard-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-widget:hover,
details.dashboard-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

/* ---------------------------------------------------------
   SECCIONES DESPLEGABLES (Perfil / Seguridad)
   --------------------------------------------------------- */

details.dashboard-widget summary {
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    color: #0f172a;
    padding: 6px 0;
    list-style: none;
}

details.dashboard-widget summary::-webkit-details-marker {
    display: none;
}

details.dashboard-widget[open] summary {
    color: #2563eb;
}

details.dashboard-widget .content {
    margin-top: 15px;
    animation: fadeIn 0.25s ease-in-out;
}

/* Animación suave */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}