/**
 * RADEXEL Design System - HR Directory Page
 *
 * Complete styles for the Employee Directory and Organization Chart.
 * Includes: search bar, department filter tabs, employee card grid,
 * organization tree view, detail modal, skeletons, and responsive layout.
 *
 * Theme support: All colors reference CSS custom properties from variables.css,
 * so light/dark themes work automatically.
 */

/* ==========================================================================
   Page Layout
   ========================================================================== */

.hr-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg);
}


/* ==========================================================================
   Search & Filter Toolbar
   ========================================================================== */

.hr-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.hr-toolbar__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  flex-shrink: 0;
}

/* Search Input */
.hr-search {
  position: relative;
  flex: 0 1 320px;
  min-width: 200px;
}

.hr-search__icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.hr-search__input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  padding-left: var(--space-10);
  font-size: var(--font-size-base);
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default),
    background-color var(--duration-fast) var(--ease-default);
}

.hr-search__input:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-focus);
  background: var(--color-bg);
}

.hr-search__input::placeholder {
  color: var(--color-text-muted);
}


/* ==========================================================================
   Department Filter Tabs
   ========================================================================== */

.hr-filter-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  flex-shrink: 1;
  min-width: 0;
}

.hr-filter-tabs::-webkit-scrollbar {
  display: none;
}

.hr-filter-tab {
  flex-shrink: 0;
  padding: 6px var(--space-3);
  font-size: var(--font-size-sm);
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--duration-fast) var(--ease-default),
    color var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default);
}

.hr-filter-tab:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text);
}

.hr-filter-tab--active {
  background: var(--color-info-light);
  color: var(--rdx-blue);
  border-color: var(--rdx-blue);
}

.hr-filter-tab--active:hover {
  background: var(--color-info-light);
  color: var(--rdx-blue);
}

.hr-filter-tab:focus-visible {
  outline: 2px solid var(--rdx-blue);
  outline-offset: 1px;
}


/* ==========================================================================
   View Toggle (Card / Org)
   ========================================================================== */

.hr-view-toggle {
  display: flex;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  padding: 2px;
  flex-shrink: 0;
}

.hr-view-toggle__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-sm);
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--duration-fast) var(--ease-default),
    color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default);
}

.hr-view-toggle__btn:hover {
  color: var(--color-text-secondary);
}

.hr-view-toggle__btn.active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.hr-view-toggle__btn svg {
  width: 14px;
  height: 14px;
}

.hr-view-toggle__btn:focus-visible {
  outline: 2px solid var(--rdx-blue);
  outline-offset: 1px;
}

.hr-result-count {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  flex-shrink: 0;
  font-weight: var(--font-weight-medium);
}


/* ==========================================================================
   Content Area
   ========================================================================== */

.hr-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
}


/* ==========================================================================
   Department Sections (Grid View)
   ========================================================================== */

.hr-department-section {
  margin-bottom: var(--space-6);
}

.hr-department-section:last-child {
  margin-bottom: 0;
}

.hr-department-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border-light);
}

.hr-department-name {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.hr-department-count {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  padding: 2px var(--space-2);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
}


/* ==========================================================================
   Employee Card Grid
   ========================================================================== */

.hr-employee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}


/* ==========================================================================
   Employee Card
   ========================================================================== */

.hr-employee-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default),
    transform var(--duration-fast) var(--ease-default);
}

.hr-employee-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hr-employee-card:focus-visible {
  outline: 2px solid var(--rdx-blue);
  outline-offset: 2px;
}

.hr-employee-card:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Skeleton card: no hover effects */
.hr-employee-card--skeleton {
  cursor: default;
  pointer-events: none;
}

/* Card Header */
.hr-employee-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.hr-employee-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--rdx-blue-light), var(--rdx-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-inverse);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
}

.hr-employee-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hr-employee-card__name {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: var(--line-height-tight);
}

.hr-employee-card__position {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-top: 2px;
}

/* Card Body - Info Fields */
.hr-employee-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hr-employee-card__field {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) var(--ease-default);
}

.hr-employee-card__field:hover {
  color: var(--color-text);
}

.hr-employee-card__field svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.hr-employee-card__field span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-employee-card__field--email,
.hr-employee-card__field--phone {
  cursor: pointer;
}

.hr-employee-card__field--email:hover svg,
.hr-employee-card__field--phone:hover svg {
  color: var(--rdx-blue);
}

/* Status Badge */
.hr-employee-card__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-light);
}

.hr-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
}

.hr-status-badge--active {
  background: var(--color-success-light);
  color: var(--color-success);
}

.hr-status-badge--inactive {
  background: var(--color-bg-tertiary);
  color: var(--color-text-muted);
}

.hr-status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
}

/* Search Highlight */
.hr-highlight {
  background: var(--color-warning-light);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}


/* ==========================================================================
   Organization Chart View
   ========================================================================== */

.hr-org-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Department Section */
.hr-org-dept {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hr-org-dept__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background-color var(--duration-fast) var(--ease-default);
}

.hr-org-dept__header:hover {
  background: var(--color-surface-hover);
}

.hr-org-dept__header:focus-visible {
  outline: 2px solid var(--rdx-blue);
  outline-offset: -2px;
}

.hr-org-dept__chevron {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  transition: transform var(--duration-base) var(--ease-default);
  flex-shrink: 0;
}

.hr-org-dept__chevron svg {
  width: 100%;
  height: 100%;
}

.hr-org-dept__chevron--open {
  transform: rotate(0deg);
}

.hr-org-dept__chevron:not(.hr-org-dept__chevron--open) {
  transform: rotate(-90deg);
}

.hr-org-dept__icon {
  width: 20px;
  height: 20px;
  color: var(--rdx-blue);
  flex-shrink: 0;
}

.hr-org-dept__icon svg {
  width: 100%;
  height: 100%;
}

.hr-org-dept__name {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  flex: 1;
  text-align: left;
}

/* Members List */
.hr-org-dept__members {
  border-top: 1px solid var(--color-border-light);
  max-height: 2000px;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-default),
              opacity var(--duration-base) var(--ease-default);
  opacity: 1;
}

.hr-org-dept__members--collapsed {
  max-height: 0;
  opacity: 0;
  border-top-color: transparent;
}

/* Individual Member Row */
.hr-org-member {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-default);
  border-bottom: 1px solid var(--color-border-light);
}

.hr-org-member:last-child {
  border-bottom: none;
}

.hr-org-member:hover {
  background: var(--color-surface-hover);
}

.hr-org-member:focus-visible {
  outline: 2px solid var(--rdx-blue);
  outline-offset: -2px;
}

.hr-org-member__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--rdx-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-inverse);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
}

.hr-org-member__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hr-org-member__info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hr-org-member__name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  white-space: nowrap;
}

.hr-org-member__position {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hr-org-member__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.hr-org-member__action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition:
    color var(--duration-fast) var(--ease-default),
    background-color var(--duration-fast) var(--ease-default);
  text-decoration: none;
}

.hr-org-member__action svg {
  width: 16px;
  height: 16px;
}

.hr-org-member__action:hover {
  color: var(--rdx-blue);
  background: var(--color-info-light);
}

.hr-org-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
}


/* ==========================================================================
   Employee Detail Modal
   ========================================================================== */

.hr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  padding: var(--space-4);
  transition:
    background-color var(--duration-base) var(--ease-default),
    backdrop-filter var(--duration-base) var(--ease-default);
}

.hr-modal-overlay--visible {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.hr-modal-overlay--closing {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
}

.hr-modal {
  z-index: var(--z-modal);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: hr-modal-enter var(--duration-base) var(--ease-out);
}

.hr-modal-overlay--closing .hr-modal {
  animation: hr-modal-exit var(--duration-fast) var(--ease-in);
}

@keyframes hr-modal-enter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes hr-modal-exit {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
}

.hr-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
}

.hr-modal__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0;
}

.hr-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-default),
    background-color var(--duration-fast) var(--ease-default);
}

.hr-modal__close svg {
  width: 18px;
  height: 18px;
}

.hr-modal__close:hover {
  color: var(--color-text);
  background: var(--color-bg-secondary);
}

.hr-modal__close:focus-visible {
  outline: 2px solid var(--rdx-blue);
  outline-offset: 1px;
}

.hr-modal__body {
  padding: var(--space-5);
}

/* Profile Header */
.hr-modal__profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.hr-modal__avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--rdx-blue-light), var(--rdx-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-inverse);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  overflow: hidden;
  user-select: none;
}

.hr-modal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hr-modal__name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0 0 4px 0;
}

.hr-modal__subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.hr-modal__profile-info {
  flex: 1;
  min-width: 0;
}

/* Contact Actions */
.hr-modal__actions {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hr-modal__action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default);
}

.hr-modal__action-btn svg {
  width: 16px;
  height: 16px;
}

.hr-modal__action-btn:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.hr-modal__action-btn--primary {
  color: white;
  background: var(--rdx-blue);
  border-color: var(--rdx-blue);
}

.hr-modal__action-btn--primary:hover {
  background: var(--rdx-blue-dark);
  border-color: var(--rdx-blue-dark);
}

.hr-modal__action-btn:focus-visible {
  outline: 2px solid var(--rdx-blue);
  outline-offset: 2px;
}

/* Detail Fields Grid */
.hr-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.hr-detail-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hr-detail-field__label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hr-detail-field__value {
  font-size: var(--font-size-base);
  color: var(--color-text);
  word-break: break-all;
}

.hr-detail-field--full {
  grid-column: 1 / -1;
}

.hr-detail-link {
  color: var(--rdx-blue);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-default);
}

.hr-detail-link:hover {
  color: var(--rdx-blue-dark);
  text-decoration: underline;
}

/* Team Memberships */
.hr-modal__teams {
  margin-top: var(--space-4);
}

.hr-modal__section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0 0 var(--space-3) 0;
}

.hr-modal__section-title svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

.hr-modal__team-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hr-modal__team-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
}

.hr-modal__team-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.hr-modal__team-role {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  padding: 2px var(--space-2);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
}


/* ==========================================================================
   Error & Empty States
   ========================================================================== */

.hr-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-16);
  text-align: center;
}

.hr-error-state h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0;
}

.hr-error-state p {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 400px;
}

.hr-retry-btn {
  padding: var(--space-2) var(--space-5);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-sans);
  color: var(--rdx-blue);
  background: var(--color-info-light);
  border: 1px solid var(--rdx-blue);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-default);
}

.hr-retry-btn:hover {
  background: var(--rdx-blue);
  color: white;
}


/* ==========================================================================
   Responsive - Tablet (< 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .hr-employee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   Responsive - Mobile (< 768px)
   ========================================================================== */

@media (max-width: 768px) {
  .hr-toolbar {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-2);
  }

  .hr-search {
    flex: 1 0 100%;
    min-width: 100%;
  }

  .hr-filter-tabs {
    width: 100%;
    order: 3;
    padding-bottom: var(--space-1);
  }

  .hr-toolbar__right {
    order: 2;
    width: auto;
  }

  .hr-content {
    padding: var(--space-3) var(--space-4);
  }

  .hr-employee-grid {
    grid-template-columns: 1fr;
  }

  .hr-detail-grid {
    grid-template-columns: 1fr;
  }

  .hr-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: var(--radius-lg);
  }

  .hr-modal-overlay {
    padding: var(--space-2);
  }

  .hr-modal__profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hr-modal__actions {
    flex-direction: column;
  }

  .hr-modal__action-btn {
    justify-content: center;
  }

  /* Org chart: member actions stack */
  .hr-org-member {
    padding: var(--space-3) var(--space-4);
  }

  .hr-org-member__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}


/* ==========================================================================
   Responsive - Small Mobile (< 480px)
   ========================================================================== */

@media (max-width: 480px) {
  .hr-filter-tabs {
    gap: 0;
  }

  .hr-filter-tab {
    padding: 4px var(--space-2);
    font-size: var(--font-size-xs);
  }

  .hr-view-toggle__btn span {
    display: none; /* Hide text, show only icon */
  }

  .hr-employee-card {
    padding: var(--space-4);
  }

  .hr-employee-card__avatar {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-base);
  }
}
