/* Mobile UI quick wins */
@media (max-width: 576px) {
  .app-version { display: none; }
  .page-header { padding-top: .5rem !important; padding-bottom: .25rem !important; margin-bottom: .5rem !important; }
  .card .card-body { padding: .75rem .875rem; }
  .btn, .dropdown-item { font-size: 0.95rem; }
  /* Bottom safe-area to avoid chat bubble overlap */
  body { padding-bottom: calc( env(safe-area-inset-bottom, 0px) + 72px ); }
  /* Grant tables compact */
  table.table td, table.table th { padding: .5rem; }
  /* Minimum touch target size for small icon buttons (mobile only) */
  .btn.btn-sm, .btn-group-sm > .btn { min-width: 44px; min-height: 44px; }
}

/* Truncate long inline text like email */
.text-truncate-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.kiwi-bg {
  background: #f6fbf7;
}
.kiwi-green {
  color: #4B8152;
}
.kiwi-green-bg {
  background: #4B8152 !important;
  color: #fff !important;
}
.kiwi-card {
  border-radius: 1rem;
  border: none;
  background: #eaf8ee;
}
.kiwi-card-body {
  background: #f6fbf7;
  border-radius: 0 0 1rem 1rem;
}
.kiwi-card-row {
  background: #eaf8ee;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  border: none;
} 

/* Charts – unified, professional look */
.chart-card { min-height: 0; height: auto; display:flex; flex-direction:column; overflow:hidden; }
.chart-card .card-header { min-height: 56px; }
.chart-subtitle { white-space: nowrap; }
.chart-note { font-size: 12px; color: #6c757d; }
.chart-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chart-toolbar {
  display: flex;
  gap: 8px;
}
.chart-canvas-fixed { display:block; width:100% !important; height: 260px !important; max-height: 260px !important; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}
.chart-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.chart-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}