/* ============================================================
   EMPLOYEES.CSS — Lightweight Table Style
   ============================================================ */

/* Main Employee Table */
.emp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: visible;
  font-size: 14px;
}

.emp-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid var(--border);
}

.emp-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.emp-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s, box-shadow 0.2s;
}

.emp-table tbody tr:hover {
  background: rgba(79, 124, 255, 0.10);
  box-shadow: inset 3px 0 0 var(--accent);
}

.emp-table tbody tr:hover td {
  background: transparent;
  color: var(--text);
}

.emp-table tbody tr:hover .emp-email,
.emp-table tbody tr:hover td[title] {
  color: #b8c4d8;
}

.emp-table tbody tr:hover .emp-name,
.emp-table tbody tr:hover .emp-id {
  color: #ffffff;
}

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

.emp-table td {
  padding: 12px 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.emp-table td[title] {
  cursor: pointer;
}

.emp-table .emp-id {
  font-weight: 700;
  color: #ffffff;
}

.emp-table .emp-name {
  font-weight: 600;
  color: #212529;
}

.emp-table .emp-email {
  color: #6c757d;
  font-size: 13px;
}

.emp-table .emp-status {
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  width: fit-content;
}

.emp-table .emp-status.active {
  background: #d4edda;
  color: #155724;
}

.emp-table .emp-status.inactive {
  background: #f8d7da;
  color: #721c24;
}

.emp-table .emp-action {
  text-align: center;
  color: #4f7cff;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  overflow: visible;
  position: relative;
}

.emp-table .emp-action:hover {
  color: #3a5ec7;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .emp-table td {
    max-width: 100px;
    font-size: 13px;
  }
  
  .emp-table th {
    font-size: 11px;
    padding: 10px 12px;
  }
}

/* Old card styles (keeping for manage view conversion) */
.emp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.emp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: border-color .2s;
}
.emp-card:hover { border-color: var(--accent); }

.emp-top {
  display: flex; align-items: center;
  gap: 12px; margin-bottom: 14px;
}
.emp-top > div:last-child {
  flex: 1; min-width: 0;
}
.emp-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #4f7cff, #22d3a5);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
  color: white; aspect-ratio: 1;
}
.emp-name  { font-weight: 700; font-size: 14px; margin-bottom: 2px; color: #ffffff !important; }
.emp-email { font-size: 11px; color: var(--muted); }
.emp-phone { font-size: 12px; color: var(--muted); margin-bottom: x; }
.emp-meta  {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  border-top: 1px solid var(--border); padding-top: 12px;
}
.emp-meta-item .mlabel { font-size: 10px; color: var(--muted); }
.emp-meta-item .mval   { font-size: 12px; font-weight: 600; }
