/* ==========================================================================
   Notifications — index table with unread emphasis
   ========================================================================== */

/* == bulk actions == */
.notifications-bulk-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* == table form == */
.notifications-table-form {
  width: 100%;
}

/* == column sizing == */
.notifications-table__cell--checkbox {
  width: 48px;
  vertical-align: middle;
}

.notifications-table__cell--status {
  width: 96px;
}

.notifications-table__cell--date {
  width: 160px;
}

.notifications-table__cell--actions {
  width: 192px;
}

/* == checkboxes == */
.notifications-table__select-all,
.notifications-table__checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary-green);
  cursor: pointer;
}

/* == unread emphasis == */
.notifications-table__row--unread {
  background-color: var(--tint-green-10);
  box-shadow: inset 3px 0 0 var(--color-primary-green);
}

.table-container .notifications-table__row--unread:hover {
  background-color: var(--tint-green-16);
}

.notifications-table__row--unread .notifications-table__message {
  font-weight: 600;
}

/* == message == */
.notifications-table__message {
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .notifications-table__message {
    max-width: none;
    white-space: normal;
  }
}

.notifications-table__message-link {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.notifications-table__message-link:hover {
  text-decoration: underline;
}

/* == timestamp == */
.table-container .notifications-table__date {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  white-space: nowrap;
}
