/* Timeline email card — body preview + attachment rows. Rendered by _TimelineEmailContent.cshtml. */
.email-body-toggle {
  color: #1f51bc;
  cursor: pointer;
}
.email-body-toggle:hover,
.email-body-toggle:focus {
  color: #1f51bc;
  text-decoration: underline;
}
.email-body-toggle:focus-visible {
  outline: 2px solid #1f51bc;
  outline-offset: 2px;
  border-radius: 2px;
}
.email-body-toggle__icon {
  font-size: 11px;
  margin-left: 4px;
}
.email-body {
  display: none;
}
.email-body--open {
  display: block;
  min-height: 120px;
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid #e7eaec;
  border-radius: 4px;
  background-color: #ffffff;
  padding: 10px;
}
.email-body__frame {
  display: block;
  width: 100%;
  border: 0;
}
.email-attachments {
  margin-top: 10px;
}
.email-attachments__header {
  color: #101828;
  font-weight: 600;
  margin-bottom: 6px;
}
.email-attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 3.5px;
  min-height: 47.5px;
  padding: 1px 8px;
  margin-bottom: 6px;
}
.email-attachment-row--clickable {
  position: relative;
  cursor: pointer;
}
.email-attachment-row--clickable:hover {
  background-color: #f9fafb;
}
/* Transparent stretched link covering the whole row — clicking the bar opens the preview. */
.email-attachment-row__preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.email-attachment-row__preview-overlay:focus-visible {
  outline: 2px solid #1f51bc;
  outline-offset: -2px;
  border-radius: 3.5px;
}
.email-attachment-row__file {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.email-attachment-row__icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.email-attachment-row__icon--image {
  color: #7c3aed;
}
.email-attachment-row__icon--pdf {
  color: #dc2626;
}
.email-attachment-row__icon--video {
  color: #ea580c;
}
.email-attachment-row__icon--spreadsheet {
  color: #16a34a;
}
.email-attachment-row__icon--document {
  color: #2563eb;
}
.email-attachment-row__icon--default {
  color: #64748b;
}
.email-attachment-row__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.email-attachment-row__name {
  color: #101828;
  font-size: 14px;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.email-attachment-row__size {
  color: #6a7282;
  font-size: 12px;
  line-height: 16px;
}
.email-attachment-row__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  /* Raise above the stretched preview overlay so the download button stays clickable. */
  position: relative;
  z-index: 2;
}
.email-attachment-row__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  color: #374151;
}
.email-attachment-row__action:hover,
.email-attachment-row__action:focus {
  color: #101828;
  background-color: #f3f4f6;
}
.email-attachment-row__action:focus-visible {
  outline: 2px solid #1f51bc;
  outline-offset: 1px;
}
