.rp-inv-stat {
  border: 1px solid var(--rp-glass-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(var(--rp-brand-rgb), 0.05);
  color: var(--rp-text);
}

.rp-inv-stat strong {
  display: block;
  font-size: 1.1rem;
  color: var(--rp-text);
}

html[data-theme="light"] .rp-inv-stat {
  background: var(--rp-surface);
  border-color: var(--rp-glass-border);
}

.rp-inv-group-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
}

.rp-inv-group-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--rp-glass-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(var(--rp-brand-rgb), 0.04);
  color: var(--rp-text);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rp-inv-group-item:hover,
.rp-inv-group-item:focus {
  background: rgba(var(--rp-brand-rgb), 0.1);
  border-color: rgba(var(--rp-brand-rgb), 0.35);
  color: var(--rp-text);
}

.rp-inv-group-item.active {
  background: linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.22), rgba(var(--rp-brand-rgb), 0.12));
  border-color: rgba(var(--rp-brand-rgb), 0.45);
  box-shadow: 0 0 0 1px rgba(var(--rp-brand-rgb), 0.18);
  color: var(--rp-text);
}

.rp-inv-group-item strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--rp-text);
}

.rp-inv-group-meta {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--rp-text-muted);
}

.rp-inv-group-empty {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--rp-text-muted);
  text-align: center;
}

html[data-theme="light"] .rp-inv-group-item {
  background: #fff;
}

html[data-theme="light"] .rp-inv-group-item.active {
  background: linear-gradient(135deg, rgba(var(--rp-brand-rgb), 0.14), rgba(var(--rp-brand-rgb), 0.06));
}

.rp-inv-leader-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rp-border, rgba(255, 255, 255, 0.06));
}
.rp-inv-leader-row:last-child { border-bottom: 0; }

.rp-inv-brand-manager {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.rp-inv-brand-preview {
  width: 160px;
  height: 80px;
  border: 1px dashed var(--rp-glass-border);
  border-radius: 8px;
  background: var(--rp-surface, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.rp-inv-brand-preview img,
.rp-hosted-invoice-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rp-inv-brand-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rp-hosted-invoice-logo {
  width: 180px;
  max-width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1rem;
}
