/* Partner portal — extends admin.css design system */

.main-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Unread message badge */
.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: auto;
}

/* Profile cards */
.profile-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.profile-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* Message thread */
.msg-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding: 4px 0 16px;
}
.msg-bubble {
  max-width: 72%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
}
.msg-outgoing {
  align-self: flex-end;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
}
.msg-incoming {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.msg-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.msg-subject {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.msg-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}
.msg-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 24px 0;
  text-align: center;
}
.msg-compose-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

/* Row actions */
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger-ghost { color: var(--danger) !important; border-color: rgba(220,53,69,0.25) !important; }
.btn-danger-ghost:hover { background: var(--danger-subtle) !important; }
