/* ─── Nhân viên — Mobile Card Layout (< 600px) — Soft UI ─── */

/* Ẩn table, hiện card list (Mặc định cho Mobile) */
.nv-table-wrap { display: none; }
.nv-card-list  { display: flex; flex-direction: column; gap: 16px; padding: 4px; }

.nv-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--nm-flat);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.5);
  transition: transform var(--nm-anim);
}

.nv-card:active {
  transform: scale(0.98);
  box-shadow: var(--nm-inset);
}

.nv-card--locked {
  border-left: 4px solid var(--accent);
  background: rgba(var(--accent-rgb), .04);
  opacity: 0.82;
}

.nv-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Căn giữa để badge ngang hàng với text */
  gap: 12px;
}

.nv-card__identity {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.nv-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--nm-flat);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.6);
}

.nv-card__name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
  margin: 0 0 2px;
}

.nv-card__id {
  font-size: .725rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-body);
  letter-spacing: .05em;
  opacity: 0.6;
}

.nv-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  box-shadow: var(--nm-inset);
  border-radius: var(--radius);
}

.nv-card__meta-label {
  font-size: .65rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.5;
  letter-spacing: .05em;
  margin-bottom: 2px;
}

.nv-card__meta-value {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-main);
}

.nv-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.nv-card__btn-detail {
  flex: 1;
  height: 44px;
  background: var(--surface);
  box-shadow: var(--nm-flat);
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all var(--nm-anim);
}

.nv-card__btn-detail:active {
  box-shadow: var(--nm-inset);
}

.nv-card__btn-delete {
  width: 44px;
  height: 44px;
  background: var(--surface);
  box-shadow: var(--nm-flat);
  color: var(--danger);
  border: none;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--nm-anim);
}

.nv-card__btn-delete:active {
  box-shadow: var(--nm-inset);
}

/* Desktop: Ẩn card list, hiện table */
@media (min-width: 600px) {
  .nv-table-wrap { display: block; }
  .nv-card-list  { display: none; }
}
