/* NekoVault V28.0.3.9 — alignement des blocs Accès rapides / NekoGraph
   Correctif frontend uniquement. */

/* Les deux panneaux doivent partager exactement la même hauteur et le même axe. */
.nv37-dashboard {
  align-items: stretch !important;
}

.nv37-dashboard > .nv37-panel {
  min-height: 246px !important;
  height: 100% !important;
}

/* Empêche les libellés et titres d'être collés sur une même ligne. */
.nv37-panel-head > div {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 7px !important;
}

.nv37-panel-head span,
.nv37-panel-head strong {
  display: block !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}

.nv37-panel-head span {
  min-height: 12px !important;
}

.nv37-panel-head strong {
  font-size: 1.18rem !important;
  letter-spacing: -.025em !important;
}

/* Colonne Accès rapides : même rythme vertical que le panneau NekoGraph. */
.nv37-dashboard > .nv37-panel:first-child {
  display: flex !important;
  flex-direction: column !important;
}

.nv37-dashboard > .nv37-panel:first-child .nv37-panel-head {
  min-height: 70px !important;
  padding: 20px 18px 8px !important;
  align-items: flex-start !important;
}

.nv37-quick-grid {
  flex: 1 1 auto !important;
  align-items: stretch !important;
  padding: 8px 16px 16px !important;
}

.nv37-quick-card {
  height: 100% !important;
  min-height: 142px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.nv37-quick-card small {
  margin-top: auto !important;
  padding-top: 7px !important;
}

/* Panneau NekoGraph : même marge haute et centrage que le bloc voisin. */
.nv37-graph {
  min-height: 246px !important;
  padding: 20px 18px 18px !important;
  align-items: stretch !important;
}

.nv37-graph-copy {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.nv37-graph-copy .nv37-panel-head {
  min-height: 48px !important;
  padding: 0 !important;
  margin: 0 0 5px !important;
  align-items: flex-start !important;
}

.nv37-graph-copy h2 {
  margin: 7px 0 8px !important;
}

.nv37-graph-copy p {
  max-width: 360px !important;
}

.nv37-graph-map {
  height: 100% !important;
  min-height: 204px !important;
  align-self: stretch !important;
}

/* La section suivante reprend exactement le même axe horizontal. */
#originalsShowcase {
  margin-top: 26px !important;
}

@media (max-width: 1120px) {
  .nv37-dashboard {
    grid-template-columns: 1fr !important;
  }

  .nv37-dashboard > .nv37-panel,
  .nv37-graph {
    min-height: 0 !important;
  }
}

@media (max-width: 720px) {
  .nv37-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .nv37-graph {
    grid-template-columns: 1fr !important;
  }
}
