
/* Create a scrollable wrapper for the table */
.table-container {
  flex: 1; /* takes all remaining vertical space */
  overflow-y: auto;
  margin-top: 0px;
  border-radius: 6px;
}

/* ===== Table Styling ===== */
.user-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 10px;
}

.user-table th,
.user-table td {
  padding: 10px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;

  
}

.user-table th {
  background: rgb(82, 82, 122);
  color: #fff;
  font-weight: 400;
  position: sticky; /* ✅ stays visible while scrolling */
  top: 0;
  z-index: 1;
}

.user-table tr:hover {
  background-color: rgba(82, 82, 122, 0.1);
}

.user-table tr:last-child td {
  border-bottom: none;
}

.user-table td.actions-cell {
  display: flex;
  /* make buttons sit in a row */
  align-items: center;
  /* vertical alignment */
  gap: 6px;
  /* spacing between buttons */
}

/* Table buttons */
.table-btn {
  background: rgb(82, 82, 122);
  color: #fff;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 6px;
  font-size: 12px;
  transition: background 0.3s ease;
}

.table-btn:hover {
  background:  rgb(137, 137, 138);
}

/* Status badges */
.status-open,
.status-closed {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.status-open {
  background-color: #d1fae5;
  color: #065f46;
}

.status-closed {
  background-color: #fee2e2;
  color: #991b1b;
}


.icon-assign {
  all: unset;
  display: flex;
  /* block-level flex container */
  align-items: center;
  /* vertical centering */
  justify-content: center;
  /* horizontal centering inside button */
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: rgb(62, 60, 60);
  transition: color 0.2s ease-in-out;
}

.icon-assign svg {
  width: 100%;
  height: 100%;
}

.icon-assign:hover {
  color: rgb(68, 70, 190);
}

.expand-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.chev-icon {
  width: 12px;
  height: 12px;
}