/* Base card */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}

.card-footer {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
}

.card-subtitle {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* Stat cards (dashboard) */
.stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  font-size: 20px;
  flex-shrink: 0;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
}

.stat-sub {
  font-size: 12.5px;
  color: var(--gray-400);
}

/* Info row inside a card */
.info-row {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13.5px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--gray-400);
  width: 140px;
  flex-shrink: 0;
}

.info-value {
  color: var(--gray-900);
  font-weight: 500;
}
