/*
 * Dashboard — hierarchy-only final consolidation.
 * Scoped to the current Dashboard root so no other D.O Command Center module is affected.
 * No data source, query, permission, route, calculation, or action is changed here.
 */

/*
 * The Dashboard already exposes detailed actionable blocks for overdue/critical tasks
 * and follow-ups. Keep only the non-duplicated quick metrics: Hoje + Vencidos.
 */
div[class="space-y-5 max-w-7xl p-4 sm:p-6"] > div[class*="lg:grid-cols-5"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  overflow: visible !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

div[class="space-y-5 max-w-7xl p-4 sm:p-6"] > div[class*="lg:grid-cols-5"] > :nth-child(1),
div[class="space-y-5 max-w-7xl p-4 sm:p-6"] > div[class*="lg:grid-cols-5"] > :nth-child(2),
div[class="space-y-5 max-w-7xl p-4 sm:p-6"] > div[class*="lg:grid-cols-5"] > :nth-child(4) {
  display: none !important;
}

div[class="space-y-5 max-w-7xl p-4 sm:p-6"] > div[class*="lg:grid-cols-5"] > :nth-child(3),
div[class="space-y-5 max-w-7xl p-4 sm:p-6"] > div[class*="lg:grid-cols-5"] > :nth-child(5) {
  width: 100% !important;
  min-width: 0 !important;
}

/* Finance has its own canonical surface. Keep only the actionable overdue metric above. */
div[class="space-y-5 max-w-7xl p-4 sm:p-6"] > div[class*="md:grid-cols-4"] {
  display: none !important;
}

/* Mobile: stack the two quick metrics to avoid clipped labels/amounts. */
@media (max-width: 520px) {
  div[class="space-y-5 max-w-7xl p-4 sm:p-6"] > div[class*="lg:grid-cols-5"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
