/* Dashboard page */

.dash-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .dash-columns {
    grid-template-columns: 1fr;
  }
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h2 .icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.dash-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.dash-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.dash-list li:last-child {
  border-bottom: none;
}

.dash-item-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dash-item-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.dash-item-title {
  color: var(--text);
  text-decoration: none;
}

a.dash-item-title:hover {
  color: var(--accent);
}

.dash-item-sub {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-badge {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.dash-badge.overdue,
.dash-badge.expired {
  background: var(--danger-soft);
  color: var(--danger);
}

.dash-badge.soon,
.dash-badge.warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.dash-badge.ok {
  background: var(--success-soft);
  color: var(--success);
}

.dash-badge.muted {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* checklist progress rows */
.check-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.check-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.check-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

/* reuse expenses budget bar styles */
.budget-nums {
  font-size: 12.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.budget-nums.over-text {
  color: var(--danger);
  font-weight: 600;
}
