/* ==========================================================================
   E-MANAGEMENT (EMPLOYEE MANAGEMENT & PART ASSIGNMENTS) STYLES
   ========================================================================== */

.employee-page-header {
  margin-bottom: 1.5rem;
}

/* KPI Banner Grid */
.employee-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.employee-kpi-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md, 12px);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.employee-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.employee-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.employee-kpi-icon.green {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.employee-kpi-icon.blue {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.employee-kpi-icon.purple {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.employee-kpi-icon.amber {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.employee-kpi-info {
  display: flex;
  flex-direction: column;
}

.employee-kpi-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  line-height: 1.2;
}

.employee-kpi-label {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.2rem;
}

/* Toolbar & Filters */
.employee-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md, 12px);
  border: 1.5px solid #e2e8f0;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.employee-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 280px;
}

.employee-search-box {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.employee-search-box input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.4rem;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.85rem;
  background: #f8fafc;
  transition: all 0.15s;
}

.employee-search-box input:focus {
  background: #ffffff;
  border-color: #059669;
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.employee-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.employee-filter-select {
  padding: 0.55rem 1.75rem 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.825rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  cursor: pointer;
}

/* Assigned Parts Badge Cluster */
.parts-tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 360px;
}

.part-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.675rem;
  font-weight: 700;
  line-height: 1.2;
}

.part-badge-chip.rm {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.part-badge-chip.sub {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.part-badge-chip.prd {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #ddd6fe;
}

.part-badge-chip.empty {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-style: italic;
}

/* Status Badges */
.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.status-pill-badge.active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.status-pill-badge.active:hover {
  background: #d1fae5;
}

.status-pill-badge.inactive {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.status-pill-badge.inactive:hover {
  background: #fee2e2;
}

/* User Avatar Bubble & Table Cell Wrap */
.emp-profile-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.emp-avatar-circle,
.emp-avatar-bubble {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  max-width: 38px;
  max-height: 38px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.25);
  overflow: hidden;
  border: 1.5px solid #ffffff;
}

.emp-avatar-circle img,
.emp-avatar-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Modal Parts Selection Styles */
.assign-parts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.assign-parts-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: 8px;
}

.assign-tab-btn {
  flex: 1;
  padding: 0.45rem 0.75rem;
  font-size: 0.775rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.assign-tab-btn.active {
  background: #ffffff;
  color: #059669;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.assign-parts-list-box {
  max-height: 260px;
  overflow-y: auto;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.5rem;
}

.assign-part-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 0.35rem;
  cursor: pointer;
  transition: all 0.12s ease;
}

.assign-part-item:hover {
  border-color: #059669;
  background: #f0fdf4;
}

.assign-part-item.is-selected {
  border-color: #059669;
  background: #ecfdf5;
}

.assign-part-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.assign-part-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #059669;
  cursor: pointer;
}

.assign-part-name {
  font-size: 0.825rem;
  font-weight: 700;
  color: #0f172a;
}

.assign-part-sku {
  font-size: 0.675rem;
  font-family: var(--font-mono, monospace);
  color: #64748b;
}

.assign-part-stock {
  font-size: 0.725rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* ==========================================================================
   Modern Enterprise Employee Table Styling (Matches Mockup / Raw Materials)
   ========================================================================== */
.emp-table-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.emp-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
}

.emp-data-table thead th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-size: 0.685rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  border-bottom: 1.5px solid #e2e8f0;
  white-space: nowrap;
}

.emp-data-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
  background: #ffffff;
  transition: background 0.15s ease;
}

.emp-data-table tbody tr:hover td {
  background: #f8fafc;
}

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

/* Employee Profile Cell */
.emp-profile-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.emp-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.28);
  border: 2px solid #ffffff;
}

.emp-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.emp-name-text {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.2;
}

.emp-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.emp-role-tag.admin {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #c4b5fd;
}

.emp-role-tag.manager {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

.emp-role-tag.employee {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.emp-role-select {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.emp-role-select:hover {
  border-color: #059669;
}

.emp-part-chip.universal {
  background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
  color: #047857;
  border: 1px solid #a7f3d0;
  font-weight: 700;
}

/* Role Permissions Matrix Modal */
.role-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.role-matrix-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease;
}

.role-matrix-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.role-matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.role-matrix-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.role-matrix-desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.role-matrix-ui-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.role-matrix-perm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  flex: 1;
}

.role-matrix-perm-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.725rem;
}

.role-matrix-perm-name {
  font-weight: 600;
  color: #334155;
}

.role-matrix-perm-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.role-matrix-perm-badge.full {
  background: #d1fae5;
  color: #065f46;
}

.role-matrix-perm-badge.exclusive {
  background: #ede9fe;
  color: #5b21b6;
}

.role-matrix-perm-badge.partial {
  background: #e0f2fe;
  color: #0369a1;
}

.role-matrix-perm-badge.assigned {
  background: #fef3c7;
  color: #92400e;
}

.role-matrix-perm-badge.none {
  background: #fee2e2;
  color: #991b1b;
}

/* Role Permission Management (Admin Mode) */
.role-immutable-banner {
  font-size: 0.7rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.role-perm-edit-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.45rem 0.55rem;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.25rem;
}

.role-perm-edit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.role-perm-select {
  font-size: 0.725rem;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.role-perm-select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

.role-perm-label-input {
  font-size: 0.7rem;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.role-perm-label-input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

/* ==========================================================================
   DEDICATED SEPARATE COMPONENT ASSIGNMENT TOOL
   ========================================================================== */
.assign-dual-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr;
  gap: 1rem;
  height: 100%;
  min-height: 0;
  max-height: 100%;
}

@media (max-width: 820px) {
  .assign-dual-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow-y: auto;
  }
}

.assign-catalog-pane,
.assign-basket-pane {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  max-height: 100%;
}

.assign-pane-head {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
}

.assign-pane-title {
  font-size: 0.825rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.assign-search-bar {
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.assign-search-bar input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.775rem;
  outline: none;
}

.assign-search-bar input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.12);
}

.assign-catalog-scroll,
.assign-basket-scroll {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  transform: translateZ(0);
  will-change: scroll-position;
  contain: paint layout;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

/* Custom Visible Scrollbars for Catalog and Basket */
.assign-catalog-scroll::-webkit-scrollbar,
.assign-basket-scroll::-webkit-scrollbar {
  width: 7px;
}

.assign-catalog-scroll::-webkit-scrollbar-track,
.assign-basket-scroll::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.assign-catalog-scroll::-webkit-scrollbar-thumb,
.assign-basket-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.assign-catalog-scroll::-webkit-scrollbar-thumb:hover,
.assign-basket-scroll::-webkit-scrollbar-thumb:hover {
  background: #059669;
}

.assign-component-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  user-select: none;
  flex-wrap: nowrap !important;
  width: 100%;
  box-sizing: border-box;
  content-visibility: auto;
  contain-intrinsic-size: 0 58px;
  transform: translateZ(0);
}

.assign-component-card:hover {
  border-color: #059669;
  background: #f0fdf4;
}

.assign-component-card.selected {
  border-color: #059669;
  background: #ecfdf5;
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.12);
}

.assign-card-meta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.65rem !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden;
}

/* Component Image Thumbnail in Catalog & Basket */
.assign-thumb-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.assign-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.assign-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.assign-thumb-fallback.rm {
  background: #ecfdf5;
  color: #059669;
}

.assign-thumb-fallback.sub {
  background: #eff6ff;
  color: #0284c7;
}

.assign-thumb-fallback.prd {
  background: #faf5ff;
  color: #7c3aed;
}

.assign-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.assign-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.assign-basket-thumb-box {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 6px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assign-basket-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.assign-card-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.assign-card-sub {
  font-size: 0.7rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.assign-card-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}

.assign-component-card.selected .assign-card-btn {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
}

.assign-basket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  gap: 0.5rem;
  content-visibility: auto;
  contain-intrinsic-size: 0 46px;
  transform: translateZ(0);
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.assign-basket-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.assign-basket-remove-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Contact Info Cell */
.emp-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.emp-contact-email {
  font-size: 0.825rem;
  color: #1e293b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.emp-contact-phone {
  font-size: 0.775rem;
  font-family: var(--font-mono, monospace);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.emp-contact-pass {
  font-size: 0.775rem;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f8fafc;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.15rem;
}

.emp-contact-pass-key {
  color: #6366f1;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.emp-pass-text {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: #334155;
  letter-spacing: 0.08em;
  font-weight: 700;
  user-select: all;
}

.emp-pass-btn {
  background: transparent;
  border: none;
  padding: 2px 3px;
  margin: 0;
  cursor: pointer;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s;
  line-height: 1;
}

.emp-pass-btn:hover {
  color: #059669;
  background: #e2e8f0;
}

/* Assigned Parts Badge Cloud & Compact Summary (matching user mockup) */
.emp-assigned-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.25rem 0.6rem 0.25rem 0.35rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  max-width: 270px;
}

.emp-assigned-summary:hover {
  border-color: #059669;
  background: #f0fdf4;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.12);
  transform: translateY(-1px);
}

.emp-assigned-thumb-box {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.emp-assigned-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.emp-assigned-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.emp-assigned-thumb-fallback.rm {
  background: #ecfdf5;
  color: #059669;
}
.emp-assigned-thumb-fallback.sub {
  background: #eff6ff;
  color: #0284c7;
}
.emp-assigned-thumb-fallback.prd {
  background: #faf5ff;
  color: #7c3aed;
}

.emp-assigned-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  overflow: hidden;
}

.emp-assigned-title {
  font-size: 0.785rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 175px;
}

.emp-assigned-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.emp-assigned-qty {
  font-size: 0.725rem;
  color: #64748b;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
}

.emp-assigned-more-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 9999px;
  border: 1.2px solid #10b981;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.685rem;
  font-weight: 800;
  line-height: 1.25;
  transition: all 0.15s ease;
}

.emp-assigned-summary:hover .emp-assigned-more-pill {
  background: #059669;
  color: #ffffff;
  border-color: #047857;
}

.emp-assigned-single-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 0.66rem;
  font-weight: 600;
}

.emp-parts-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 420px;
  align-items: center;
}

.emp-part-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.725rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.emp-part-chip.sub {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.emp-part-chip.rm {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.emp-part-chip.prd {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #ddd6fe;
}

.emp-part-chip.empty {
  background: #fff1f2;
  color: #be123c;
  border: 1px dashed #fecdd3;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Status Pill Toggle */
.emp-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
}

.emp-status-toggle.active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.emp-status-toggle.active:hover {
  background: #d1fae5;
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.15);
}

.emp-status-toggle.inactive {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.emp-status-toggle.inactive:hover {
  background: #fee2e2;
  box-shadow: 0 2px 5px rgba(220, 38, 38, 0.15);
}

.emp-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.emp-status-toggle.active .emp-status-dot {
  background: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25);
}

.emp-status-toggle.inactive .emp-status-dot {
  background: #dc2626;
}

/* Joined Date Badge */
.emp-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.785rem;
  color: #64748b;
  font-weight: 600;
  background: #f8fafc;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Actions Button Group */
.emp-actions-group {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
}

.emp-btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.emp-btn-edit:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.2);
}

.emp-btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  color: #dc2626;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.emp-btn-delete:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.2);
}

/* Table Footer / Summary Bar */
.emp-table-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1.5px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: #64748b;
  font-weight: 600;
}
