/* ==========================================================================
   ERP Dashboard density tuning.
   Scoped under .dashboard-compact so it never leaks to other pages.
   Loaded after dark.css in index.html ("load last wins").
   ========================================================================== */

/* Tighter card rhythm */
.dashboard-compact .custom-card {
  margin-bottom: 12px;
}
.dashboard-compact .card-body {
  padding: 12px 14px;
}

/* Compact KPI cards — delivery inline cards AND carpool StatCards both use
   .card-item, so this shrinks every headline card in one place. */
.dashboard-compact .card-item .card-item-title {
  margin-bottom: 0.4rem;
}
.dashboard-compact .card-item .card-item-title .main-content-label {
  margin-bottom: 0.15rem !important;
}
.dashboard-compact .card-item .card-item-stat h4 {
  margin-bottom: 0;
  font-size: 1.25rem;
}
.dashboard-compact .card-item .card-item-icon {
  width: 30px;
  height: 30px;
  right: 12px;
  bottom: 10px;
}
.dashboard-compact .card-item .card-item-icon svg,
.dashboard-compact .card-item .card-item-icon i {
  transform: scale(0.8);
}

/* Tighten the page header so the KPI strip starts higher */
.dashboard-compact .page-header {
  margin-bottom: 0.75rem;
}

/* Chart hover polish. nivo handles the spring motion (motionConfig) + pie-slice
   pop (activeOuterRadiusOffset); this adds a brightness lift to whichever bar is
   hovered. Scoped to `.kk-chart` so it never touches the KPI-card icon SVGs. */
.kk-chart svg rect {
  transition: filter 0.18s ease;
}
.kk-chart svg rect:hover {
  filter: brightness(1.18);
}
