
/* ── Tables ── */
.table-responsive {
  overflow-x: auto;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.professional-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: left;
}

.professional-table th,
.professional-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
  font-size: 0.95rem;
}

.professional-table th {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.professional-table tbody tr {
  transition: background 0.2s;
}

.professional-table tbody tr:hover {
  background-color: #F8FAFC;
}

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

/* Profile link */
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--primary);
  border-radius: 6px;
  transition: all 0.2s;
}

.profile-link:hover {
  background: var(--primary);
  color: white;
}

/* ── Mobile: card layout ── */
@media (max-width: 768px) {
  .table-responsive {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow-x: visible;
  }

  .professional-table {
    min-width: unset;
    width: 100%;
    display: block;
  }

  .professional-table thead {
    display: none; /* Hide column headers */
  }

  .professional-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
  }

  .professional-table tbody tr {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 0 0 1px #E2E8F0;
    padding: 1rem 1.1rem;
    gap: 0.5rem;
    border-bottom: none;
  }

  .professional-table tbody tr:hover {
    background: #F8FAFC;
  }

  .professional-table td {
    display: flex;
    align-items: baseline;
    padding: 0;
    border-bottom: none;
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Label chip before each cell */
  .professional-table td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94A3B8;
    min-width: 90px;
    flex-shrink: 0;
    padding-right: 0.5rem;
  }

  /* Hide S.No cell on mobile */
  .professional-table td:first-child {
    display: none;
  }

  /* Action cell — full width button */
  .professional-table td:last-child {
    margin-top: 0.25rem;
    border-top: 1px dashed #E2E8F0;
    padding-top: 0.6rem;
  }
  .professional-table td:last-child::before {
    display: none;
  }
}
