/* ✅ Table Container */
.communication-table-container {
  background: #FFFBF4;
  border-radius: 12px;
  width: 100%;
  margin: 0;
  min-height: 2800px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-collapse: collapse;
  font-family: "Poppins", sans-serif;
}

/* ✅ Header and row grid layout */
.communication-header,
.communication-row {
  display: grid;
  grid-template-columns: 2fr 2fr 3fr 2fr 1.5fr 120px; 
  align-items: center;
  column-gap: 10px;
  margin: 0;
  padding: 0;
}

/* ✅ Header styling */
.communication-header {
  background: #D9A128;
  color: #fff;
  font-weight: 700;
  border-radius: 12px 12px 0 0;
  padding: 10px 15px;
  letter-spacing: 0.4px;
}

.communication-header > div {
  color: inherit;
  display: flex;
  align-items: center;
}

/* ✅ Row styling — compact & aligned */
.communication-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 15px;
  background: #FFFBF4;
  transition: background 0.2s ease;
  display: grid;
  align-items: center;
}

.communication-row:hover {
  background: rgba(217, 161, 40, 0.05);
}

/* ✅ Remove unwanted inner spacing */
.communication-row * {
  margin: 0 !important;
  padding: 0 !important;
}

/* ✅ Proper alignment for first column */
.communication-header > div:first-child,
.communication-row > div:first-child {
  padding-left: 20px;
}

/* ✅ Actions column styling */
.communication-col.col-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* ✅ Action buttons - same as Templates list (action-btn) */
.communication-col.col-actions .action-btn {
  background: transparent;
  border: none;
  color: #555;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.2s;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.communication-col.col-actions .action-btn:hover {
  color: #D9A128;
}

.communication-col.col-actions .action-btn svg {
  width: 16px;
  height: 16px;
}

/* ✅ Expanded details */
.communication-details {
  grid-column: 1 / -1;
  background: #fafafa;
  border-left: 3px solid #D9A128;
  margin: 5px 20px;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* ✅ Pagination */
.communication-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 0.9rem;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
