/* Container that holds both the card and actions */
.activity-card-container {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

/* The actual card (left side) - this gets the background colors */
.activity-card {
  display: flex;
  flex: 1 1 auto;
  box-sizing: border-box;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--dxbl-border-color, #e5e7eb);
  background-color: var(--dxbl-surface, #fff);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  overflow: hidden;
}

/* Left content (title + description) */
.activity-card__left {
  min-width: 0; /* Enable text truncation */
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  overflow: hidden; /* Prevent content from expanding beyond container */
}

.activity-card__header {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-card__description {
  font-size: 0.9rem;
  line-height: 1.25rem;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Clamp to two lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right actions (separate from the card) */
.activity-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  flex-shrink: 0; /* Prevent buttons from shrinking */
  min-width: fit-content; /* Ensure buttons maintain their size */
}

/* More aggressive targeting for all possible DevExpress button structures */
.activity-card__actions > *,
.activity-card__actions .dxbl-button,
.activity-card__actions .dxbs-button,
.activity-card__actions button,
.activity-card__actions [role="button"] {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

/* Target ALL possible content wrappers */
.activity-card__actions * {
  box-sizing: border-box !important;
}

.activity-card__actions > * > *,
.activity-card__actions .dxbl-button *,
.activity-card__actions .dxbs-button *,
.activity-card__actions button *,
.activity-card__actions [role="button"] * {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
}

/* Universal icon targeting - target ANY element with oi class inside actions */
.activity-card__actions .oi {
  font-size: 16px !important;
  line-height: 1 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  position: static !important;
  transform: none !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
}

/* Specific icon fixes */
.activity-card__actions .oi-caret-bottom,
.activity-card__actions .oi-trash {
  margin: 0 auto !important;
  text-align: center !important;
}

/* ---- Optional state styles you can attach via `CssClasses` ---- */
.activity--todo {
  border-left: 6px solid #9ca3af; /* Gray */
}

.activity--inprogress {
  border-left: 6px solid #3b82f6; /* Blue */
  background-color: rgba(59, 130, 246, 0.05);
}

.activity--done {
  border-left: 6px solid #10b981; /* Green */
  background-color: rgba(16, 185, 129, 0.06);
  opacity: 0.95;
}

.activity--blocked {
  border-left: 6px solid #ef4444; /* Red */
  background-color: rgba(239, 68, 68, 0.06);
}

.activity--selected {
  border: 2px solid #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}