:root {
  --primary: #ff5033;
  --primary-soft: #fff5f3;
  --primary-muted: #ffefed;
  --danger: #ff3b30;
  --success: #16a34a;
  --link: #1677ff;
  --page: #f5f6f7;
  --surface: #fff;
  --text: #333;
  --text-strong: #111827;
  --muted: #8a97aa;
  --border: #e5e8ef;
  --table-head: #f7f8fa;
  --shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
  --radius: 8px;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--page);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1280px;
  background: var(--page);
  font-size: 14px;
}

button,
input,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  height: 50px;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, #f8aa9d 0%, #f7b19f 52%, #f8c3b5 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 3px rgba(255, 80, 51, 0.18);
}

.brand {
  width: 170px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 22px;
  font-size: 18px;
  font-weight: 600;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transform: rotate(-15deg);
}

.topnav {
  display: flex;
  height: 100%;
}

.topnav button {
  width: 122px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  position: relative;
}

.topnav button.active {
  background: rgba(255, 255, 255, 0.12);
}

.topnav button.active::after {
  content: "";
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--primary);
}

.help {
  margin-left: auto;
  padding-right: 20px;
  opacity: 0.95;
}

.user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 24px;
  font-weight: 600;
}

.avatar-small,
.avatar-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffe1e0;
  color: var(--primary);
  font-weight: 700;
}

.avatar-small {
  width: 30px;
  height: 30px;
  background: #fff;
}

.body {
  display: flex;
  min-height: calc(100vh - 50px);
}

.sidebar {
  width: 170px;
  flex: 0 0 170px;
  background: #fff;
  padding: 12px 10px;
  border-right: 1px solid #edf0f5;
  position: relative;
  transition: width 0.18s ease, flex-basis 0.18s ease;
}

.sidebar.collapsed {
  width: 56px;
  flex-basis: 56px;
  padding: 12px 8px;
}

.sidebar-collapse {
  position: absolute;
  right: -10px;
  top: 14px;
  width: 20px;
  height: 20px;
  border: 1px solid #e4e8ef;
  border-radius: 50%;
  background: #fff;
  color: #9aa4b2;
  line-height: 18px;
  z-index: 2;
}

.side-item {
  width: 100%;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: #333;
  font-size: 14px;
  text-align: left;
  margin-bottom: 8px;
}

.side-icon {
  width: 16px;
  flex: 0 0 16px;
  text-align: center;
  color: #4f5f73;
}

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

.side-item.active,
.side-sub.active {
  background: var(--primary-muted);
}

.side-sub {
  height: 42px;
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  padding-left: 46px;
  border-radius: 6px;
  color: #333;
  margin-bottom: 2px;
  font: inherit;
  text-align: left;
}

.side-sub.board-sub {
  padding-left: 54px;
  color: #5f6b7a;
  height: 36px;
  font-size: 13px;
}

.side-sub.board-sub.active {
  color: #333;
  font-weight: 600;
}

.sidebar.collapsed .side-label,
.sidebar.collapsed .side-sub {
  display: none;
}

.sidebar.collapsed .side-item {
  justify-content: center;
  padding: 0;
}

.main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.board-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 0 14px;
  margin: 8px 8px 0;
  background: #fff;
  border: 1px solid #edf0f5;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  overflow: visible;
  position: relative;
  z-index: 30;
}

.board-tab-buttons {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  align-self: stretch;
}

.board-tab-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.board-tab-buttons button {
  height: 40px;
  border: 0;
  background: transparent;
  color: #4f5f73;
  font-weight: 700;
  position: relative;
  padding: 0 2px;
}

.board-tab-buttons button.active {
  color: var(--primary);
}

.board-tab-buttons button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
}

.filter-bar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin: 0 8px;
  background: #fff;
  border: 1px solid #edf0f5;
  border-bottom: 0;
  border-radius: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  min-width: 0;
  box-sizing: border-box;
}

.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 50px);
  background: var(--page);
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.department-panel {
  width: 198px;
  flex: 0 0 198px;
  height: calc(100vh - 108px);
  background: transparent;
  margin: 10px 8px 0 10px;
  padding: 0;
  overflow: visible;
  position: relative;
  z-index: 120;
  transition: width 0.18s ease, flex-basis 0.18s ease;
}

.app-shell.drawer-open .department-panel {
  z-index: 0;
  pointer-events: none;
}

.department-card {
  height: 100%;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  padding: 12px 10px 14px;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.department-panel.collapsed {
  width: 34px;
  flex-basis: 34px;
  padding: 12px 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #4f5f73;
  writing-mode: vertical-rl;
}

.department-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 260;
}

.department-global-search {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  padding: 0 10px;
  margin-bottom: 0;
}

.department-global-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #172033;
  font-size: 13px;
}

.department-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  margin-bottom: 8px;
  color: #2f3b4d;
  font-weight: 700;
}

.department-title::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 3px;
  background: var(--primary);
  margin-right: 7px;
}

.department-title span {
  margin-right: auto;
}

.department-toggle {
  border: 0;
  background: transparent;
  color: #9aa4b2;
  font-size: 18px;
  line-height: 1;
}

.department-search {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #edf0f5;
  border-radius: 4px;
  background: #f7f8fa;
  padding: 0 8px;
  margin-bottom: 10px;
}

.department-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #172033;
  font-size: 13px;
}

.department-tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.department-date-filter {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf0f5;
  color: #68758a;
  font-size: 12px;
  font-weight: 600;
}

.department-date-filter span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.department-date-filter input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  outline: none;
  background: #fff;
  color: #172033;
  font: inherit;
  font-weight: 400;
  box-sizing: border-box;
}

.department-date-filter input:disabled {
  border-color: #e4e7ed;
  background: #f5f7fa;
  color: #909399;
  cursor: not-allowed;
  opacity: 1;
}

.department-node {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  font-size: 13px;
}

.department-node span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.department-node em {
  font-style: normal;
  color: #8a97aa;
  flex: 0 0 auto;
}

.department-node.level-0 {
  padding: 0 8px;
  font-weight: 700;
}

.department-node.level-1 {
  padding: 0 8px 0 24px;
}

.department-node.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.department-node.active em {
  color: var(--primary);
}

.control {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  padding: 0 10px;
  color: #5f6b7a;
  white-space: nowrap;
  flex: 0 0 auto;
}

.control.search {
  width: 138px;
}

.search-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  font-size: 0;
}

.search-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid #8a97aa;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #8a97aa;
  transform: rotate(45deg);
  transform-origin: left center;
}

.control input,
.control select,
.date-control input,
.employee-filter input,
.employee-filter select {
  border: 0;
  outline: none;
  background: transparent;
  color: #172033;
  font-size: 13px;
  min-width: 0;
}

.control input {
  width: 82px;
}

.control.select select {
  min-width: 68px;
}

.control.disabled {
  background: #f5f6f8;
  border-color: #e5e8ef;
  color: #a0a8b5;
  cursor: not-allowed;
}

.control.disabled span,
.control.disabled select {
  color: #a0a8b5;
  cursor: not-allowed;
}

.control.disabled select {
  opacity: 1;
}

.control-managementDepartment {
  width: 166px;
}

.control-employment {
  width: 152px;
}

.control-level {
  width: 118px;
}

.control-position,
.control-location {
  width: 148px;
}

.control-statScope {
  width: 186px;
}

.filter-info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #eef3fb;
  color: #6b7b91;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
  flex: 0 0 15px;
}

.filter-info-tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  right: -8px;
  top: 24px;
  width: 360px;
  padding: 8px 10px;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  background: #fff;
  color: #4f5f73;
  box-shadow: var(--shadow);
  white-space: normal;
  line-height: 1.5;
  z-index: 80;
}

.control.compact {
  height: 32px;
}

.clear-btn,
.outline,
.primary,
.icon-btn {
  height: 32px;
  border-radius: 4px;
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #5f6b7a;
  padding: 0 14px;
  font-weight: 500;
}

.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(255, 80, 51, 0.2);
}

.clear-btn {
  border: 0;
  border-left: 1px solid #dcdfe6;
  color: #7c8798;
  padding: 0 4px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.clear-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 15px;
  color: #7c8798;
  flex: 0 0 14px;
}

.clear-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 1px 1px;
}

.clear-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 3px -2px 0 -0.2px currentColor;
}

.main-tabs {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 16px;
  margin: 0 8px 8px;
  min-height: 43px;
  height: auto;
  align-items: center;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 0 0 8px 8px;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  z-index: 20;
}

.main-tab-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.main-tab-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.main-tabs .main-tab-buttons button {
  border: 0;
  background: transparent;
  height: 30px;
  border-radius: 16px;
  padding: 0 18px;
  color: #4d596b;
  font-weight: 600;
  position: relative;
}

.main-tabs .main-tab-buttons button.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(255, 80, 51, 0.18);
}

.main-tabs .main-tab-buttons button.active::after {
  display: none;
}

.more-filter-wrap {
  position: relative;
}

.department-filter-wrap {
  z-index: 260;
}

.more-filter-btn {
  height: 32px;
  min-width: 72px;
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #5f6b7a;
  font-size: 13px;
  font-weight: 500;
  padding: 0 10px;
  cursor: pointer;
}

.more-filter-btn.icon-only {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.more-filter-btn:hover,
.more-filter-btn.active {
  color: var(--primary);
  border-color: #ffb8ad;
  background: var(--primary-soft);
}

.filter-funnel {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 16px;
}

.filter-funnel::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 64% 48%, 64% 100%, 36% 100%, 36% 48%);
}

.filter-funnel::after {
  display: none;
}

.advanced-filter-popover {
  position: absolute;
  right: 0;
  top: 38px;
  width: 246px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
  z-index: 100;
}

.department-filter-wrap .advanced-filter-popover {
  right: auto;
  left: 0;
  z-index: 300;
}

.advanced-filter-popover .control {
  width: 100%;
  height: auto;
  display: block;
  padding: 0;
  margin: 0 0 10px;
  border: 0;
  background: transparent;
}

.advanced-filter-popover .control > span {
  display: block;
  margin: 0 0 6px;
  color: #4f5f73;
  font-size: 12px;
  font-weight: 600;
}

.advanced-filter-popover .control select {
  width: 100%;
  height: 30px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  padding: 0 28px 0 10px;
  color: #172033;
  font-size: 13px;
}

.advanced-filter-popover .control.disabled select {
  color: #9aa4b2;
  background: #f6f7f9;
}

.advanced-filter-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #edf0f5;
}

.advanced-filter-footer button {
  height: 28px;
  border: 0;
  background: transparent;
  color: #7c8798;
  padding: 0 8px;
  cursor: pointer;
}

.advanced-filter-footer .confirm {
  color: var(--primary);
}

.content-scroll {
  flex: 1;
  min-width: 0;
  height: calc(100vh - 181px);
  overflow: auto;
  padding: 12px 8px 28px;
}

.panel,
.table-card,
.report-toolbar,
.employee-head,
.detail-tabs,
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  margin-bottom: 14px;
  padding: 16px;
}

.metrics-panel {
  padding-bottom: 14px;
}

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

.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.section-head p,
.hint {
  margin: 4px 0 0;
  color: #768397;
  font-size: 13px;
}

.date-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  color: #68758a;
}

.date-control select {
  border: 0;
  outline: none;
  background: transparent;
  color: #172033;
  font-size: 13px;
}

.notice {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #5c6779;
  background: transparent;
  margin-bottom: 10px;
}

.dashboard-notice {
  margin-bottom: 12px;
  padding-left: 4px;
}

.notice-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  border-radius: 50%;
  background: #f6c343;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

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

.metric-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  gap: 10px;
}

.metric-card {
  min-height: 96px;
  text-align: left;
  border: 1px solid #e5e8ef;
  border-radius: 6px;
  background: #fff;
  padding: 14px 15px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
  position: relative;
}

.metric-card.clickable:hover {
  border-color: #ffb0a3;
}

.metric-card.danger {
  border-color: #e5e8ef;
  background: #fff;
}

.metric-card .metric-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #667085;
  font-weight: 600;
  font-size: 13px;
}

.metric-help {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef2f7;
  color: #8a97aa;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  cursor: help;
}

.metric-help:hover {
  background: #e7edf5;
  color: #607086;
}

.metric-help:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 12px;
  top: 34px;
  z-index: 20;
  width: 236px;
  padding: 8px 10px;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  background: #fff;
  color: #4b5568;
  box-shadow: 0 6px 18px rgba(31, 41, 55, 0.14);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: #152033;
  font-size: 25px;
  line-height: 1;
}

.metric-card.danger strong,
.danger-text {
  color: var(--danger) !important;
}

.metric-card em {
  display: block;
  margin-top: 8px;
  color: #8a97aa;
  font-style: normal;
  font-size: 12px;
}

.skeleton span,
.skeleton strong,
.skeleton em {
  display: block;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f2f5, #fafafa, #f0f2f5);
  animation: pulse 1.1s linear infinite;
}

.skeleton strong {
  height: 28px;
  width: 70%;
}

@keyframes pulse {
  0% { opacity: .7; }
  50% { opacity: 1; }
  100% { opacity: .7; }
}

.threshold {
  color: var(--primary);
  border: 1px solid #ffc0b8;
  background: var(--primary-soft);
  padding: 5px 10px;
  border-radius: 4px;
}

.threshold-select {
  color: var(--primary);
  border-color: #ffc0b8;
  background: var(--primary-soft);
}

.threshold-select select {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
}

.abnormal-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 158px;
  overflow-y: auto;
  padding-right: 4px;
}

.abnormal-item {
  display: grid;
  grid-template-columns: 1fr auto 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid #edf0f5;
  background: #fff;
  border-radius: 7px;
  min-height: 50px;
  padding: 10px;
  text-align: left;
}

.abnormal-item:hover {
  border-color: #ffc0b8;
}

.abnormal-info {
  min-width: 0;
}

.abnormal-line {
  display: flex;
  align-items: center;
  min-width: 0;
}

.abnormal-info b {
  flex: 0 0 auto;
  color: var(--link);
  margin-right: 8px;
}

.abnormal-info em,
.abnormal-info small {
  color: #7b8798;
  font-style: normal;
}

.abnormal-info em {
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abnormal-info small {
  display: block;
  margin-top: 3px;
}

.abnormal-info i {
  color: var(--danger);
  font-style: normal;
  font-weight: 700;
}

.abnormal-item strong {
  align-self: end;
  margin-bottom: 2px;
  color: var(--danger);
  font-size: 16px;
}

.abnormal-item strong small {
  color: #9aa4b2;
  font-size: 12px;
  margin-left: 3px;
}

.chevron {
  color: #c7ced8;
  font-size: 20px;
}

.legend {
  display: flex;
  gap: 24px;
  color: #556276;
  margin: 10px 0 8px 16px;
  font-weight: 600;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.chart-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.line-chart {
  width: 100%;
  height: 340px;
  display: block;
}

.grid-line {
  stroke: #eaf0f7;
  stroke-dasharray: 3 5;
}

.axis-text {
  fill: #7890ad;
  font-size: 13px;
}

.chart-node {
  cursor: pointer;
}

.chart-node:hover {
  r: 7;
}

.chart-tooltip {
  position: absolute;
  display: none;
  z-index: 6;
  min-width: 150px;
  padding: 10px;
  border: 1px solid #dfe5ee;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
  pointer-events: none;
  color: #4a5568;
}

.chart-tooltip.show {
  display: grid;
  gap: 4px;
}

.table-card {
  overflow: auto;
  margin-bottom: 14px;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #43516a;
  font-size: 14px;
}

.data-table th,
.data-table td {
  height: 40px;
  padding: 8px 14px;
  border-bottom: 1px solid #edf0f5;
  white-space: nowrap;
  text-align: left;
}

.data-table th {
  height: 49px;
  background: var(--table-head);
  color: #5b6577;
  font-weight: 700;
}

.data-table td {
  background: #fff;
}

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

.trend-detail th,
.trend-detail td {
  text-align: center;
}

.sticky-left,
.sticky-col {
  position: sticky;
  z-index: 3;
  background: #fff !important;
}

th.sticky-left,
th.sticky-col {
  background: var(--table-head) !important;
}

.sticky-left {
  left: 0;
}

.sticky-col.col-0 {
  left: 0;
}

.sticky-col.col-1 {
  left: 120px;
}

.sticky-col.col-2 {
  left: 240px;
}

.sticky-col.col-3 {
  left: 360px;
}

.sticky-col.col-4 {
  left: 480px;
}

.sticky-col.col-5 {
  left: 600px;
}

.sticky-col.col-6 {
  left: 720px;
}

.sticky-col.col-7 {
  left: 840px;
}

.summary-row td {
  font-weight: 700;
  color: #111827;
  background: #f8fafc !important;
}

.trend-up {
  color: #ff1f2f;
  font-weight: 700;
}

.trend-down {
  color: var(--success);
  font-weight: 700;
}

.muted {
  color: #9aa4b2;
}

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

.ranking-card {
  overflow: hidden;
}

.ranking-card .section-head {
  align-items: flex-start;
}

.ranking-card .date-control {
  height: 30px;
}

.rank-title-emphasis {
  color: var(--primary);
}

.ranking-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}

.ranking-table-wrap .data-table {
  min-width: 760px;
}

.segment {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #f6f7fa;
  border: 1px solid #edf0f5;
  border-radius: 8px;
}

.segment button {
  border: 0;
  background: transparent;
  height: 30px;
  min-width: 64px;
  border-radius: 6px;
  color: #6b7688;
  font-weight: 600;
}

.segment button.active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 3px rgba(17, 24, 39, .08);
}

.compact-table th,
.compact-table td {
  height: 40px;
}

.strong-cell {
  color: #101828;
  font-weight: 800;
}

.link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--link);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

.local-filter {
  margin: 0 0 10px;
  padding: 8px 12px;
  background: var(--primary-soft);
  border: 1px solid #ffd2ca;
  border-radius: 6px;
  color: #7b3b31;
}

.local-filter button {
  margin-left: 10px;
  border: 0;
  color: var(--primary);
  background: transparent;
}

.report-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: none;
}

.report-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sub-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid #eef1f6;
  border-radius: 8px;
  background: #f8fafc;
  flex: 0 0 auto;
}

.sub-tabs button {
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 16px;
  color: #40506a;
  font-weight: 600;
}

.sub-tabs button.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(255, 77, 57, 0.18);
}

.month-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  min-width: 0;
  margin-left: auto;
}

.report-keyword {
  width: 150px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  background: #fff;
  padding: 0 10px;
  box-sizing: border-box;
}

.report-keyword input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #172033;
  font-size: 13px;
}

.month-multiselect {
  position: relative;
}

.month-select-trigger {
  height: 32px;
  min-width: 230px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  background: #fff;
  color: #64748b;
  padding: 0 10px;
}

.month-select-trigger strong {
  color: #43516a;
  font-weight: 500;
}

.month-select-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #667085;
  border-bottom: 1.5px solid #667085;
  transform: rotate(45deg) translateY(-2px);
}

.month-select-menu {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: 20;
  min-width: 230px;
  padding: 6px;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.12);
}

.month-select-menu label {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: #fff;
}

.month-select-menu label:hover {
  background: #f7f8fa;
}

.report-export {
  min-width: 86px;
  height: 32px;
  border: 1px solid #ff8f80;
  border-radius: 4px;
  background: #fff;
  color: var(--primary);
  padding: 0 18px;
  font-weight: 600;
}

.report-export:hover {
  border-color: var(--primary);
  background: #fff7f5;
}

.report-panel {
  padding: 0;
  overflow: hidden;
}

.report-list-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 8px;
  border-bottom: 0;
  background: transparent;
}

.report-panel .section-head {
  padding: 14px 16px 0;
}

.report-scroll {
  overflow: auto;
  max-width: calc(100vw - 220px);
  padding-bottom: 8px;
}

.report-pagination {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 16px;
  border-top: 1px solid #edf0f5;
  color: #65758b;
  font-size: 13px;
  background: #fff;
}

.report-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.report-pagination select,
.report-pagination button,
.report-pagination strong {
  height: 28px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #65758b;
}

.report-pagination select {
  min-width: 66px;
  padding: 0 8px;
}

.report-pagination button,
.report-pagination strong {
  min-width: 30px;
  padding: 0 8px;
}

.report-pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.report-pagination button:disabled {
  color: #b7bfca;
  background: #f7f8fa;
  cursor: not-allowed;
}

.report-table {
  min-width: 1600px;
}

.report-table th,
.report-table td {
  text-align: center;
}

.report-table .report-subgroup {
  height: 34px;
  background: #fbfcfe;
  color: #5f6b7a;
}

.report-table .month-separator {
  border-left: 2px solid #d8e1ec;
}

.report-table .group-separator {
  border-left: 1px solid #e4e9f1;
}

.report-table .sticky-col {
  min-width: 120px;
  text-align: left;
  box-shadow: 1px 0 0 #edf0f5;
}

.report-table td.editable {
  color: #b7bfca;
  border-bottom-style: dashed;
}

.table-loading,
.inline-state,
.state-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8a97aa;
}

.state-card h2 {
  margin: 0 0 8px;
  color: #344054;
}

.bottom-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 430px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 24px rgba(17, 24, 39, .16);
  z-index: 280;
  display: flex;
  flex-direction: column;
}

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.18);
  z-index: 270;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #edf0f5;
}

.drawer-head h2 {
  margin: 0;
  font-size: 16px;
  color: #111827;
}

.drawer-head p {
  margin: 4px 0 0;
  color: #7b8798;
}

.drawer-export {
  height: 32px;
  min-width: 86px;
  border: 1px solid #ff8f80;
  border-radius: 4px;
  background: #fff;
  color: var(--primary);
  padding: 0 18px;
  font-weight: 600;
}

.drawer-export:hover {
  border-color: var(--primary);
  background: #fff7f5;
}

.icon-btn {
  width: 32px;
  padding: 0;
  margin-left: 8px;
  font-size: 18px;
}

.drawer-table-wrap {
  overflow: auto;
  padding: 0 16px;
  flex: 1 1 auto;
}

.drawer-pagination {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 20px;
  border-top: 1px solid #edf0f5;
  color: #65758b;
  font-size: 13px;
}

.drawer-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.drawer-pagination select,
.drawer-pagination button,
.drawer-pagination strong {
  height: 28px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #65758b;
}

.drawer-pagination select {
  min-width: 66px;
  padding: 0 8px;
}

.drawer-pagination button,
.drawer-pagination strong {
  min-width: 30px;
  padding: 0 8px;
}

.drawer-pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.drawer-pagination button:disabled {
  color: #b7bfca;
  background: #f7f8fa;
  cursor: not-allowed;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.status-tag.success {
  color: var(--success);
  background: #edfff2;
  border: 1px solid #b6efc4;
}

.status-tag.danger {
  color: var(--danger);
  background: #fff1f0;
  border: 1px solid #ffc2bd;
}

.status-tag.neutral {
  color: #667085;
  background: #f2f4f7;
  border: 1px solid #d9dee7;
}

.toast {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, .86);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 80;
}

.employee-page {
  padding: 18px 16px 28px;
  height: calc(100vh - 50px);
  overflow: auto;
}

.employee-head {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  margin-bottom: 16px;
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.03) 0 1px, transparent 1px 28px) 0 0 / 110px 46px,
    #fff;
}

.avatar-large {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  font-size: 20px;
}

.employee-head-info {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.employee-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employee-head h1 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1;
}

.employee-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7b8798;
  font-size: 13px;
}

.employee-meta-row i {
  width: 1px;
  height: 12px;
  background: #d8dde6;
}

.employee-head .primary {
  margin-left: auto;
}

.detail-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 54px;
  padding: 0 24px;
  margin-bottom: 16px;
}

.detail-tabs button {
  height: 54px;
  border: 0;
  background: transparent;
  color: #5f6b7a;
  font-weight: 700;
  position: relative;
}

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

.detail-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--primary);
}

.employee-attendance-panel {
  padding: 12px;
  margin-bottom: 16px;
}

.employee-filter {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
  background: transparent;
  box-shadow: none;
  margin-top: 10px;
  margin-bottom: 0;
  border-top: 1px solid #edf0f5;
}

.employee-filter-fields {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.employee-control {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  padding: 0 10px;
  color: #5f6b7a;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex: 0 0 auto;
}

.employee-control-range {
  width: 336px;
}

.employee-control-abnormal {
  width: 196px;
}

.employee-control-scope {
  width: 186px;
}

.employee-filter input,
.employee-filter select {
  height: 32px;
  padding: 0;
}

.date-range-control {
  flex: 1 1 auto;
  height: 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.date-range-control input {
  height: 32px;
  width: 110px;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: center;
}

.date-range-control em {
  color: #9aa4b2;
  font-style: normal;
  padding: 0 2px;
}

.employee-filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.employee-clear-btn {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-left: 1px solid #dcdfe6;
  background: transparent;
  color: #7c8798;
  padding: 0 0 0 14px;
  font-weight: 500;
}

.employee-clear-btn:hover {
  color: var(--primary);
}

.employee-table-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.employee-table-head h2::before {
  content: "";
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary);
}

.employee-leave-panel {
  padding: 0 14px 12px;
  margin-bottom: 16px;
}

.employee-leave-panel .section-head {
  padding: 12px 0 10px;
}

.leave-content {
  display: block;
}

.leave-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.leave-card {
  position: relative;
  min-height: 82px;
  border: 1px solid #e5e8ef;
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
  text-align: left;
}

.leave-card > span {
  display: block;
  color: #667085;
  font-weight: 600;
  font-size: 13px;
}

.leave-card > strong {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-size: 22px;
  line-height: 1;
}

.leave-card-button {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.leave-card-button em {
  display: block;
  margin-top: 7px;
  color: #8a97aa;
  font-size: 12px;
  font-style: normal;
  line-height: 1;
}

.leave-card-button i {
  position: absolute;
  top: 50%;
  right: 14px;
  color: #a5adba;
  font-size: 22px;
  font-style: normal;
  transform: translateY(-50%);
}

.leave-card:hover {
  border-color: #ffb0a3;
}

.leave-card-button:hover {
  background: #fffaf9;
  box-shadow: 0 4px 12px rgba(255, 80, 51, 0.08);
}

.leave-card[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 12px;
  top: calc(100% + 8px);
  z-index: 30;
  width: 260px;
  padding: 8px 10px;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  background: #fff;
  color: #4f5f73;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.12);
  font-size: 12px;
  line-height: 1.5;
}

.leave-tool-btn {
  height: 32px;
  border: 1px solid #ff8f80;
  border-radius: 4px;
  background: #fff;
  color: var(--primary);
  padding: 0 14px;
  font-weight: 600;
}

.leave-tool-btn:hover {
  border-color: var(--primary);
  background: #fff7f5;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(17, 24, 39, 0.22);
}

.leave-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 75;
  width: 420px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.22);
}

.modal-head {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #edf0f5;
}

.modal-head h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
}

.modal-body {
  padding: 16px;
}

.modal-body p {
  margin: 0 0 14px;
  color: #667085;
  line-height: 1.6;
}

.modal-control {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #5f6b7a;
  font-weight: 600;
}

.modal-control input {
  width: 180px;
  height: 34px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 0 8px;
  color: #172033;
}

.leave-calc-result {
  margin-top: 16px;
  padding: 0 12px;
  border-radius: 6px;
  background: #fff7f5;
  color: #667085;
  font-weight: 600;
}

.leave-calc-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.leave-calc-row + .leave-calc-row {
  border-top: 1px solid #ffe2dc;
}

.leave-calc-row strong {
  color: var(--primary);
  font-size: 22px;
}

.leave-detail-modal {
  width: 520px;
}

.leave-detail-list {
  display: grid;
  gap: 10px;
}

.leave-detail-item {
  padding: 14px;
  border: 1px solid #e7eaf0;
  border-radius: 6px;
  background: #fff;
}

.leave-detail-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.leave-detail-item-head > strong {
  color: #172033;
  font-size: 15px;
}

.leave-detail-item-head > span {
  padding: 2px 7px;
  border-radius: 10px;
  background: #ecfdf3;
  color: #16a34a;
  font-size: 12px;
  font-weight: 600;
}

.leave-detail-metrics {
  display: flex;
  gap: 34px;
  margin-top: 12px;
  color: #667085;
}

.leave-detail-metrics strong {
  color: #172033;
  font-size: 16px;
}

.leave-detail-expiry {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f1f4;
  color: #8a97aa;
  font-size: 12px;
}

.employee-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.summary-card {
  min-height: 78px;
  display: block;
  text-align: left;
  border: 1px solid #e5e8ef;
  border-radius: 6px;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
}

.summary-card span {
  display: block;
  color: #667085;
  font-weight: 600;
  font-size: 13px;
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 24px;
  line-height: 1;
}

button.summary-card {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

button.summary-card:hover,
button.summary-card.active {
  border-color: #ffb0a3;
}

button.summary-card.active {
  background: #fff;
  box-shadow: inset 0 0 0 1px #ffb0a3, 0 1px 3px rgba(17, 24, 39, 0.06);
}

.empty-table-cell {
  height: 88px;
  color: #98a2b3;
  text-align: center;
}

.employee-table th,
.employee-table td {
  height: 48px;
}

.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 50%;
  background: #eef3fb;
  color: #6b7b91;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
}

.info-tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 360px;
  padding: 8px 10px;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  background: #fff;
  color: #4f5f73;
  box-shadow: var(--shadow);
  white-space: normal;
  line-height: 1.5;
  text-align: left;
  z-index: 10;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 0 2px;
  color: #65758b;
  font-size: 13px;
}

.table-pagination button,
.table-pagination strong {
  min-width: 30px;
  height: 28px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #65758b;
}

.table-pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.table-pagination button:disabled {
  color: #b7bfca;
  background: #f7f8fa;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .sidebar {
    display: none;
  }

  .brand {
    width: 110px;
  }

  .topnav button {
    width: 76px;
  }

  .filter-bar,
  .report-toolbar,
  .employee-filter {
    height: auto;
    flex-wrap: wrap;
  }

  .content-scroll,
  .employee-page {
    height: auto;
  }

  .metric-grid,
  .abnormal-list,
  .rank-grid,
  .employee-summary,
  .leave-content,
  .leave-cards {
    grid-template-columns: 1fr;
  }

  .bottom-drawer {
    left: 0;
  }
}
