

/* Wrapper for the entire table (acts as the flex container) */
.table-container {
  width: 100%;
  margin-top: 20px;
}

/* The header row for the table (acts as a flex container with header "cells") */
.table-header {
  display: flex;
  background-color: #f8f9fa;
  font-weight: bold;
  border-radius: 12px;
  padding: 8px 24px;
  margin-bottom: 10px;
  /* justify-content: space-between; */
}

/* Each "cell" inside a row */
.table-cell {
  flex: 1;  /* Distribute space equally among cells */
  padding: 8px 15px;
  text-align: left;
  vertical-align: middle;
}

/* Align last column to the center */
.text-center {
  text-align: center;
}

/* @media (max-width: 576px) {
  .text-center {
    padding: 8px 15px;
    text-align: left!important;
    vertical-align: middle!important;
  }
} */

/* Each row is a flex container and has styling for card-like look */
.table-row {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #E9ECF2;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 8px 24px;
  margin-bottom: 20px;
  cursor: pointer;
}

/* Optional: a collapsible section for sender emails (same as the previous solution) */
.collapse-content {
  margin-top: 8px;
}



/* Give the Email Address column more space */
.table-header > .table-cell:nth-child(4) {
  flex: 3.5;
}
.table-row > .table-cell:nth-child(4) {
  flex: 3.5;
}

.table-row > .table-cell:nth-child(8) {
  flex: 1.8;
}

/* Override Email Address column alignment */
.table-header > .table-cell:nth-child(4),
.table-row > .table-cell:nth-child(4) {
    justify-content: flex-start; /* Align content to the left */
    text-align: left;
}



@media (max-width: 576px) {
  .table-header,
  .table-row {
      flex-direction: column;
      align-items: flex-start;
  }
  .table-cell {
      width: 100%;
      margin-bottom: 1rem;
      text-align: left;
      justify-content: flex-start;
  }
}
