.nv-tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 12px;
}

.nv-tabs .tab {
  padding: 6px 12px;
  border-radius: 8px;
  background: #eee;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nv-tabs .tab.active {
  background: #1976d2;
  color: white;
}

.nv-field {
  margin-bottom: 10px;
}

.nv-label {
  font-weight: 600;
  font-size: 13px;
  color: #666;
}

.nv-value {
  font-size: 15px;
}

.nv-log-item {
  border-left: 3px solid #1976d2;
  padding-left: 10px;
  margin-bottom: 12px;
}



/* --- CSS DÀNH RIÊNG CHO VIEW CHI TIẾT --- */
#nhanVienDetailView {
    display: block !important;
    background: #f4f7f9;
    min-height: 100vh;
    padding: 10px;
}

#nhanVienDetailView .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    padding: 20px;
}

/* Header tinh chỉnh */
#nhanVienDetailView .view-header-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Tab tinh chỉnh */
#nhanVienDetailView .nv-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    overflow-x: auto;
    border-bottom: 1px solid #ddd;
}

#nhanVienDetailView .tab {
    padding: 12px 18px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
}

#nhanVienDetailView .tab.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
}

/* --- GRID HỆ THỐNG CARD CHI TIẾT --- */
#nhanVienDetailView .detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Cột mặc định */
    gap: 16px;
}

/* Card cho từng trường dữ liệu */
#nhanVienDetailView .nv-field {
    background: #ffffff;
    border: 1px solid #eef2f6;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#nhanVienDetailView .nv-field:hover {
    border-color: #d1d9e6;
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

#nhanVienDetailView .nv-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #8898aa;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

#nhanVienDetailView .nv-value {
    font-size: 14px;
    color: #32325d;
    font-weight: 500;
    word-break: break-word; /* Chống tràn chữ */
}

/* Đặc thù cho trường địa chỉ hoặc trường dài */
#nhanVienDetailView .span-2 {
    grid-column: span 2;
    background: #fcfdfe; /* Highlight nhẹ màu khác cho địa chỉ */
}

/* Lịch sử chỉnh sửa */
#nhanVienDetailView .nv-log-item {
    grid-column: span 4;
    padding: 15px;
    border-left: 4px solid #1976d2;
    background: #f9f9f9;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 1100px) {
    #nhanVienDetailView .detail-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 850px) {
    #nhanVienDetailView .detail-grid { grid-template-columns: repeat(2, 1fr); }
    #nhanVienDetailView .span-2 { grid-column: span 2; }
}

@media (max-width: 500px) {
    #nhanVienDetailView .detail-grid { grid-template-columns: 1fr; }
    #nhanVienDetailView .span-2 { grid-column: span 1; }
}