/* Dashboard page-specific styles */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.row2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Chart containers */
.chart-bar {
  height: 280px;
  width: 100%;
}

.chart-donut {
  height: 280px;
  width: 100%;
}

/* Table enhancements */
.data-table tr {
  cursor: pointer;
}
.data-table tr:hover td {
  background: rgba(37, 99, 235, 0.04);
}

/* Activity log feed */
.activity-item {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  transition: background 0.15s;
}
.activity-item:last-child {
  border-bottom: none;
}
.activity-item:hover {
  background: rgba(0, 0, 0, 0.02);
}
.activity-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.activity-body {
  flex: 1;
  min-width: 0;
}
.activity-text {
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}
.activity-text strong {
  font-weight: 700;
}
.activity-meta {
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 2px;
}
.activity-time {
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 2px;
  margin-left: auto;
}

/* Conflict count update animation */
@keyframes flash-update {
  0%   { background: rgba(239,68,68,0.2); }
  100% { background: transparent; }
}
.kpi-val.updated {
  animation: flash-update 0.6s ease;
  border-radius: 4px;
  padding: 0 4px;
}

/* Scrollable table wrapper */
.table-scroll {
  overflow-x: auto;
}
.table-scroll .data-table {
  min-width: 640px;
}

/* Separator in header */
.hdr .sep {
  margin: 0 0.25rem;
}

/* Live indicator in KPI */
.kpi-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.625rem;
  color: var(--green);
  font-weight: 600;
}
.kpi-live .pulse {
  width: 5px;
  height: 5px;
}
