/* Inbox posting styles */
.posting {
    margin-bottom: 1rem;
}

.posting__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.posting__main {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    min-width: 0;
}

.posting__body {
    flex: 1;
    margin-top: -2px;
    min-width: 0;
}

.posting__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    gap: 0.5rem;
}

.posting__subject {
    flex: 1;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-link);
    min-width: 0;
}

.posting__time {
    color: var(--color-txt--subtle);
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.posting__metadata {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.posting__attachments {
    color: var(--color-txt--subtle);
    font-size: 0.875rem;
}

.posting__expense, .posting__transaction {
    color: var(--color-link);
}

.posting__avatar, .payee-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: white;
    font-weight: 600;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.posting__avatar {
    cursor: pointer;
}

.posting__avatar--detail, .payee-avatar--detail {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
    margin-top: 0;
}

.posting-payee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.posting-payee__info {
    display: flex;
    flex-direction: row;
}

.posting-payee__name {
    font-weight: bold;
}

.posting-payee__email {
    color: var(--color-txt--subtle);
}

/* Fade out animation for posting removal */
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; height: 0; margin-bottom: 0; padding: 0; }
}

.posting.fade-out,
.posting[data-turbo-temporary] {
  animation: fadeOut 0.5s ease forwards;
}