
/* CCP DESKTOP DASHBOARD V1
   Solo escritorio. No cambia la navegación móvil.
*/

/* Escritorios amplios: cuatro paneles en una fila. */
@media (min-width: 1500px) {
  body .dashboard-grid {
    display: grid !important;
    grid-template-columns:
      minmax(0, 0.85fr)
      minmax(0, 1.35fr)
      minmax(0, 1.15fr)
      minmax(0, 1fr) !important;
    align-items: stretch;
    gap: 14px;
  }

  body .dashboard-grid > .panel {
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0;
    width: auto;
    max-width: none;
    margin: 0;
  }

  body .dashboard-grid .formation-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  body .dashboard-grid .specialized-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  body .dashboard-grid .level,
  body .dashboard-grid .specialized-course {
    min-width: 0;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    padding: 12px 6px;
    overflow-wrap: anywhere;
  }

  body .dashboard-grid .level strong,
  body .dashboard-grid .specialized-course strong {
    overflow-wrap: anywhere;
  }

  body .dashboard-grid .panel-title {
    flex-wrap: wrap;
    gap: 6px;
  }

  body .dashboard-grid .panel-title h2 {
    min-width: 0;
    font-size: clamp(1rem, 1.2vw, 1.45rem);
  }
}

/* Laptops: dos paneles por fila, sin aplastar textos. */
@media (min-width: 900px) and (max-width: 1499px) {
  body .dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 14px;
  }

  body .dashboard-grid > .panel {
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0;
    width: auto;
    max-width: none;
    margin: 0;
  }

  body .dashboard-grid .formation-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body .dashboard-grid .specialized-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
