/* ==========================================================================
   세대 관리 스타일 (Residents CSS)
   ========================================================================== */

.residents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.resident-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  transition: all 0.2s ease;
}

.resident-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.resident-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.unit-number {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.unit-size {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-app);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Status Badge */
.status-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.status-badge.paid {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.status-badge.paid:hover {
  filter: brightness(0.95);
}

.status-badge.unpaid {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.status-badge.unpaid:hover {
  filter: brightness(0.95);
}

.resident-body {
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.info-row .val {
  font-weight: 600;
  color: var(--text-main);
}

.due-amount-box {
  background: var(--bg-app);
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.due-amount-box .label {
  font-size: 12px;
  color: var(--text-muted);
}

.due-amount-box .amount {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-primary);
}

.resident-footer {
  display: flex;
  gap: 8px;
}

.resident-footer .btn {
  flex: 1;
}
