.employee-table {
  max-width: 100%;
  overflow-x: auto;
}
.employee-table table {
  min-width: 980px;
}
.employee-table th {
  white-space: nowrap;
  font-size: 12px;
  color: #66758b;
  font-weight: 600;
}
.employee-table td {
  font-size: 13px;
  white-space: nowrap;
}
.employee-avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
}
.placeholder-avatar {
  background: #e9f1ff;
  color: #d89b00;
  font-size: 22px;
}
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #66758b;
}
.empty-state i {
  font-size: 32px;
}

.employee-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.employee-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.employee-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.employee-status.is-active {
  background: #e9f8ee;
  color: #16803d;
}
.employee-status.is-inactive {
  background: #f0f2f5;
  color: #64748b;
}

.employee-tabs {
  gap: 3px;
  border-bottom: 1px solid #e7e2d5;
  padding-bottom: 0;
  scrollbar-width: thin;
}
.employee-tabs .nav-item {
  flex: none;
  margin: 0;
  padding: 0;
}
.employee-tabs .nav-link {
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  color: #53647d;
  background: transparent;
  padding: 10px 14px 11px;
  font-size: 13px;
  font-weight: 600;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}
.employee-tabs .nav-link:hover {
  color: #946500;
  background: #fff6dc;
}
.employee-tabs .nav-link.active {
  color: #946500;
  background: #fff6dc;
  border-bottom-color: #d89b00;
}
.employee-tabs .nav-link:focus-visible {
  outline: 2px solid #d89b00;
  outline-offset: -2px;
}
.employee-device-card {
  max-width: 680px;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 8px 24px rgba(25, 39, 63, 0.05);
}
.employee-device-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8edf3;
}
.employee-device-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: #fff4d6;
  color: #9b6800;
  font-size: 1.35rem;
}
.employee-device-heading h2 {
  margin: 0;
  color: #26364d;
  font-size: 1rem;
  font-weight: 700;
}
.employee-device-heading p {
  margin: 0.25rem 0 0;
  color: #728198;
  font-size: 0.84rem;
}
.employee-device-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.1rem 0.1rem;
}
.employee-device-value span {
  color: #687991;
  font-size: 0.9rem;
  font-weight: 600;
}
.employee-device-value strong {
  color: #202d41;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.employee-device-value strong.employee-device-name {
  font-size: 1rem;
  letter-spacing: 0;
  text-align: right;
}
.employee-device-name small {
  display: block;
  margin-top: 0.2rem;
  color: #728198;
  font-size: 0.78rem;
  font-weight: 500;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 24px;
}
.detail-grid > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.photo-preview {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}
.tab-content .table {
  min-width: 540px;
}
.tab-content .table-responsive {
  max-width: 100%;
}
@media (max-width: 767px) {
  .employee-table table {
    min-width: 930px;
  }
  .employee-tabs {
    margin-left: -4px;
    margin-right: -4px;
  }
  .employee-tabs .nav-link {
    padding: 9px 11px 10px;
  }
  .employee-device-card {
    padding: 1rem;
  }
  .employee-device-value strong {
    font-size: 1.1rem;
  }
}
