.employee-center {
  height: 100%;
  min-height: 0;
}

.employee-view-enter-active,
.employee-view-leave-active {
  transition: opacity 220ms ease, transform 280ms var(--ease);
}

.employee-view-enter-from,
.employee-view-leave-to {
  opacity: 0;
  transform: translateY(14px);
}

.employee-list,
.employee-detail {
  height: 100%;
  min-height: 0;
}

.employee-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 18px;
  overflow: hidden;
}

.employee-detail {
  --employee-detail-radius: 4px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.status-tabs {
  display: flex;
  gap: 28px;
  margin-top: 14px;
  border-bottom: 1px solid #dbe4ee;
}

.status-tabs button {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 750;
}

.status-tabs button.active {
  color: var(--theme-primary-active);
}

.status-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--theme-primary);
}

.status-tabs button small {
  min-width: 24px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.status-tabs button.active small {
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.filter-set {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.list-search {
  position: relative;
  width: 280px;
  max-width: 100%;
}

.list-search .mdi {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 15px;
}

.list-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
}

.list-search input::placeholder {
  color: #94a3b8;
}

.list-search input:focus {
  outline: none;
  border-color: rgba(var(--theme-primary-rgb), 0.6);
  box-shadow: 0 0 0 3px var(--theme-focus-ring);
}

.picker-trigger,
.ghost-filter-btn,
.template-btn,
.export-btn,
.create-btn,
.row-action {
  min-height: 38px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
}

.picker-filter {
  position: relative;
}

.picker-trigger {
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 0 34px 0 12px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  white-space: nowrap;
}

.picker-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-trigger .mdi {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.picker-trigger:hover,
.picker-filter.open .picker-trigger {
  border-color: rgba(var(--theme-primary-rgb), 0.34);
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.picker-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 224px;
  z-index: 40;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.picker-popover header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.picker-popover header strong {
  color: #0f172a;
  font-size: 15px;
}

.picker-popover header button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
}

.picker-popover header button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.picker-option-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.picker-option {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
}

.picker-option:hover {
  border-color: rgba(var(--theme-primary-rgb), 0.28);
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.picker-option.active {
  border-color: var(--theme-primary);
  background: var(--theme-primary);
  color: #fff;
}

.ghost-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.18);
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.template-btn,
.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #334155;
}

.template-btn:hover,
.export-btn:hover {
  border-color: rgba(var(--theme-primary-rgb), 0.34);
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.create-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  background: var(--theme-primary);
  color: #fff;
  box-shadow: 0 8px 18px var(--theme-primary-shadow);
}

.create-btn:disabled,
.template-btn:disabled,
.export-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.import-file-input {
  display: none;
}

.import-error-table-wrap {
  max-height: 280px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.import-error-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.import-error-table th,
.import-error-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
}

.import-error-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.import-error-table td:last-child {
  color: #b45309;
}

.hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
}

.active-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.active-filter-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
  font-size: 12px;
  font-weight: 800;
}

.table-wrap {
  flex: 1 1 auto;
  min-height: 400px;
  overflow-x: auto;
  overflow-y: auto;
  margin-top: 10px;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfefd 0%, #f4f8f6 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.table-wrap table {
  width: 100%;
  flex: 0 0 auto;
  align-self: stretch;
}

.list-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.page-summary {
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
}

.pager {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.pager button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.pager button:hover:not(.active) {
  background: #fff;
  color: var(--theme-primary-active);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.pager button.active {
  background: var(--theme-primary);
  color: #fff;
  box-shadow: 0 8px 16px var(--theme-primary-shadow);
}

.page-nav {
  color: #64748b;
}

.page-size-select {
  width: 112px;
  justify-self: end;
}

.table-state {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px 20px;
  color: #64748b;
  text-align: center;
  align-self: center;
}

.table-state i {
  font-size: 26px;
  color: var(--theme-primary);
}

.table-state.error i {
  color: #dc2626;
}

.table-state.empty i {
  color: #94a3b8;
}

.table-state p {
  max-width: 420px;
  font-size: 13px;
  line-height: 1.6;
}

.state-action {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.22);
  border-radius: 8px;
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
  font-size: 13px;
  font-weight: 760;
}

table {
  height: auto;
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: fixed;
}

colgroup col.col-employee {
  width: 22%;
}

colgroup col.col-employee-no {
  width: 11%;
}

colgroup col.col-department {
  width: 12%;
}

colgroup col.col-position {
  width: 12%;
}

colgroup col.col-grade {
  width: 9%;
}

colgroup col.col-role {
  width: 16%;
}

colgroup col.col-status {
  width: 8%;
}

colgroup col.col-updated {
  width: 10%;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf2f7;
  text-align: center;
  vertical-align: middle;
  color: #24324a;
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

tbody tr {
  cursor: pointer;
  transition: background 180ms ease;
}

tbody tr:hover {
  background: #f8fbff;
}

tbody tr.spotlight {
  background: linear-gradient(90deg, rgba(var(--theme-primary-rgb), 0.05), rgba(var(--theme-primary-rgb), 0.02));
}

tbody tr:last-child td {
  border-bottom: 0;
}

.employee-cell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
}

.employee-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--theme-gradient-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.employee-cell strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
}

.employee-cell span:last-child {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.level-pill,
.status-pill,
.role-pill,
.more-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.level-pill {
  background: #eef2ff;
  color: #4f46e5;
}

.status-pill.success {
  background: var(--success-soft);
  color: var(--success-hover);
}

.status-pill.warning {
  background: #fff7ed;
  color: #ea580c;
}

.status-pill.neutral {
  background: #f1f5f9;
  color: #475569;
}

.role-stack {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.role-pill {
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.more-pill {
  background: #f1f5f9;
  color: #475569;
}

.row-action {
  padding: 0 12px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.32);
  background: #fff;
  color: var(--theme-primary-active);
}

.detail-scroll {
  height: 100%;
  overflow: auto;
  display: grid;
  gap: 16px;
}

.detail-hero {
  display: grid;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--employee-detail-radius);
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--theme-gradient-primary);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--employee-detail-radius);
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.hero-copy h2 {
  margin-top: 10px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 850;
}

.hero-copy p {
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-stat {
  padding: 14px 16px;
  border-radius: var(--employee-detail-radius);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #edf2f7;
}

.hero-stat span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.hero-stat strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 850;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.82fr);
  gap: 16px;
  align-items: start;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 16px;
  align-content: start;
  align-items: start;
}

.detail-card,
.side-card {
  padding: 18px;
  border-radius: var(--employee-detail-radius);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.card-head h3 {
  color: #0f172a;
  font-size: 16px;
  font-weight: 850;
}

.card-head p {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--employee-detail-radius);
  background: #ecfeff;
  color: #0891b2;
  font-size: 12px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.field input {
  width: 100%;
  border: 1px solid #d7e0ea;
  border-radius: var(--employee-detail-radius);
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
}

.field input[readonly] {
  background: #f8fafc;
  color: #64748b;
}

.manager-picker,
.department-picker {
  position: relative;
  z-index: 2;
}

.manager-picker.open,
.department-picker.open {
  z-index: 12;
}

.manager-picker-trigger {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  text-align: left;
}

.manager-picker.open .manager-picker-trigger,
.manager-picker-trigger:hover {
  border-color: rgba(var(--theme-primary-rgb), 0.34);
  background: var(--theme-primary-soft);
}

.manager-picker-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(420px, 100%);
  z-index: 30;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.manager-picker-panel input[type='search'] {
  width: 100%;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  padding: 10px 12px;
}

.manager-picker-panel input[type='search']:focus {
  outline: none;
  border-color: rgba(var(--theme-primary-rgb), 0.6);
  box-shadow: 0 0 0 3px var(--theme-focus-ring);
}

.manager-picker-options {
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.manager-picker-option {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #edf2f7;
  border-radius: 4px;
  background: #fbfdff;
  text-align: left;
}

.manager-picker-option strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.manager-picker-option span {
  color: #64748b;
  font-size: 12px;
}

.manager-picker-option:hover,
.manager-picker-option.active {
  border-color: rgba(var(--theme-primary-rgb), 0.32);
  background: linear-gradient(180deg, var(--theme-primary-soft), #ffffff);
}

.manager-picker-empty {
  margin: 0;
  padding: 8px 4px;
  color: #64748b;
  font-size: 12px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.role-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #edf2f7;
  border-radius: var(--employee-detail-radius);
  background: #fbfdff;
}

.role-card.active {
  border-color: rgba(var(--theme-primary-rgb), 0.32);
  background: linear-gradient(180deg, var(--theme-primary-soft), #ffffff);
}

.role-card input {
  margin-top: 3px;
}

.role-copy strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
}

.role-copy p {
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-list span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.18);
  border-radius: var(--employee-detail-radius);
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
  font-size: 12px;
  font-weight: 760;
}

.bullet-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.history-list {
  display: grid;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px 112px;
  align-items: center;
  column-gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #edf2f7;
}

.history-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.history-row strong {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-row-owner,
.history-row-time {
  display: inline-block;
  min-width: 0;
  margin-top: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-row-owner {
  padding-left: 16px;
  border-left: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 700;
}

.history-row-time {
  color: #64748b;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

td.cell-updated {
  vertical-align: middle;
  white-space: nowrap;
}

.publish-card {
  display: grid;
  gap: 14px;
}

.publish-card p,
.publish-summary span {
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.publish-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--employee-detail-radius);
  background: #f8fafc;
}

.publish-summary strong {
  color: var(--theme-primary-active);
  font-size: 14px;
  font-weight: 850;
}

.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 0;
  border-top: 1px solid #e5eaf0;
}

.detail-action-group {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.back-action,
.minor-action,
.major-action {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  border-radius: var(--employee-detail-radius);
  font-size: 13px;
  font-weight: 760;
}

.back-action {
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #475569;
}

.minor-action {
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #334155;
}

.major-action {
  border: 1px solid var(--theme-primary);
  background: var(--theme-primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--theme-primary-shadow);
}

.minor-action:disabled,
.major-action:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  box-shadow: none;
}

@media (max-width: 1320px) {
  .hero-stats,
  .form-grid,
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .employee-center,
  .employee-list,
  .employee-detail {
    height: auto;
    min-height: 100%;
  }

  .employee-list,
  .detail-card,
  .side-card,
  .detail-hero {
    padding: 16px;
  }

  .employee-center,
  .employee-list {
    overflow: visible;
  }

  .employee-list {
    display: block;
  }

  .list-toolbar,
  .card-head,
  .detail-actions,
  .detail-action-group,
  .hero-profile {
    flex-direction: column;
    align-items: stretch;
  }

  .status-tabs,
  .filter-set {
    overflow-x: auto;
  }

  .status-tabs {
    gap: 18px;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  .status-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .status-tabs button span {
    white-space: nowrap;
  }

  .list-foot {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .list-search {
    width: 100%;
  }

  .picker-filter,
  .picker-trigger {
    width: 100%;
  }

  .toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .ghost-filter-btn,
  .template-btn,
  .export-btn,
  .create-btn {
    flex: 1 1 140px;
    justify-content: center;
    white-space: nowrap;
  }

  .picker-popover {
    width: min(280px, calc(100vw - 64px));
  }

  .page-size-select,
  .pager {
    justify-self: stretch;
  }

  .pager {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .pager button {
    flex: 0 0 auto;
  }

  .hero-stats,
  .form-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .history-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }

  .history-row-owner {
    padding-left: 0;
    border-left: 0;
  }

  .history-row-time {
    text-align: left;
  }

  .employee-list .table-wrap {
    flex: none;
    min-height: 0;
    max-height: none;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .employee-list .table-wrap table,
  .employee-list .table-wrap thead,
  .employee-list .table-wrap tbody,
  .employee-list .table-wrap tr,
  .employee-list .table-wrap th,
  .employee-list .table-wrap td {
    display: block;
  }

  .employee-list .table-wrap table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
  }

  .employee-list .table-wrap thead,
  .employee-list .table-wrap colgroup {
    display: none;
  }

  .employee-list .table-wrap tbody {
    display: grid;
    gap: 10px;
  }

  .employee-list .table-wrap tr {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  }

  .employee-list .table-wrap tr:hover {
    background: #f8fbff;
  }

  .employee-list .table-wrap td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-height: 30px;
    padding: 7px 0;
    border-bottom: 1px dashed #edf2f7;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .employee-list .table-wrap td:last-child {
    border-bottom: 0;
  }

  .employee-list .table-wrap td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
  }

  .employee-list .table-wrap td > * {
    min-width: 0;
  }

  .employee-list .table-wrap td:first-child {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .employee-list .table-wrap td:first-child::before {
    display: none;
  }

  .employee-list .table-wrap .employee-cell {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .employee-list .table-wrap .role-stack {
    justify-content: flex-start;
  }
}
