/* public/css/email.css */

/* Send Dialog */
.email-dialog .form-group {
  margin-bottom: var(--spacing-md);
}

.email-dialog textarea {
  min-height: 150px;
}

.email-dialog .form-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
  margin-top: var(--spacing-md);
}

/* Attachment Checkboxes */
.attachment-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.attachment-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.attachment-option input[type="checkbox"] {
  width: auto;
  margin: 0;
}


/* Communication Tab */
.comm-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.comm-empty {
  padding: var(--spacing-xl);
}


.comm-email-card {
  padding: 0.75rem 1rem;
  transition: box-shadow var(--transition-fast);
}

.comm-email-card.expanded {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comm-email-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.comm-email-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.comm-email-subject {
  font-weight: 600;
  font-size: 0.95rem;
}

.comm-email-info {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.comm-email-date {
  white-space: nowrap;
}

.comm-email-body {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.comm-email-bodytext {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  margin: 0;
  color: var(--color-text);
}

.comm-email-error {
  color: var(--color-error);
  font-size: var(--font-size-sm);
  margin-top: 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
  .comm-email-info {
    flex-direction: column;
    gap: 0.25rem;
  }
}
