/* Inbound-email grid (mw-ieg-*) — Post-Office-style mail grid reusable across pages
   (e.g. the volunteers mail view): unread emphasis, detail-row mail preview on a
   light sheet, sender→person chip. */

/* Unread row emphasis + the dot cell */
.mw-ieg-mail-row--unread .mw-dg-cell {
    font-weight: 600;
}

.mw-ieg-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    display: inline-block;
}

/* Sender matched to a person — reads as a link, clickable without toggling the row */
.mw-ieg-person-chip {
    color: var(--mud-palette-primary);
    cursor: pointer;
}

.mw-ieg-person-chip:hover {
    text-decoration: underline;
}

/* Detail-row mail preview — the mail keeps its own (usually light) styling, so it
   renders on a white sheet inside the dark detail row */
.mw-ieg-mail-preview-wrap {
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mw-ieg-mail-preview {
    background: #ffffff;
    color: #222222;
    border-radius: 8px;
    padding: 16px 20px;
    max-height: 420px;
    overflow: auto;
    line-height: 1.55;
}

.mw-ieg-mail-preview img {
    max-width: 100%;
    height: auto;
}

.mw-ieg-mail-preview pre {
    white-space: pre-wrap;
    font-family: inherit;
    margin: 0;
}
