/* RuoYi-like CSS */
:root {
  /* 主题颜色 */
  --primary-color: #409eff;
  --success-color: #67c23a;
  --warning-color: #e6a23c;
  --danger-color: #f56c6c;
  --info-color: #909399;
  
  /* 文本颜色 */
  --text-primary: #303133;
  --text-regular: #606266;
  --text-secondary: #909399;
  --text-placeholder: #c0c4cc;
  --text-disabled: #c0c4cc;
  
  /* 边框颜色 */
  --border-color: #dcdfe6;
  --border-light: #e4e7ed;
  --border-lighter: #ebeef5;
  --border-extra-light: #f2f6fc;
  
  /* 背景颜色 */
  --background: #f5f7fa;
  --background-light: #f9fafc;
  --background-lighter: #ffffff;
  
  /* 侧边栏颜色 */
  /* 侧栏：藏青色系（主底略偏蓝，悬停/子级略作区分） */
  --sidebar-bg: #2a6dbb;
  --sidebar-text: #eaedf2;
  --sidebar-active: #409eff;
  --sidebar-hover: #2a6dbb;
  --sidebar-submenu-bg: #0d2644;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  
  /* 阴影 */
  --box-shadow-light: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  --box-shadow-base: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
  --box-shadow-dark: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .12);
  
  /* 字体大小 */
  --font-size-extra-large: 20px;
  --font-size-large: 18px;
  --font-size-medium: 16px;
  --font-size-base: 14px;
  --font-size-small: 13px;
  --font-size-extra-small: 12px;
  
  /* 圆角 */
  --border-radius-base: 4px;
  --border-radius-small: 2px;
  --border-radius-round: 20px;
  --border-radius-circle: 100%;
  
  /* 间距 */
  --spacing-mini: 4px;
  --spacing-small: 8px;
  --spacing-base: 12px;
  --spacing-medium: 16px;
  --spacing-large: 24px;
  --spacing-extra-large: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-regular);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
}

.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  transition: width 0.3s;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(5, 20, 40, 0.45);
  z-index: 10;
}

.sidebar-logo {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo .sidebar-logo__img {
  flex-shrink: 0;
  max-height: 28px;
  width: auto;
  max-width: 120px;
  margin-right: 8px;
  object-fit: contain;
}

.sidebar-menu {
  padding: 10px 0;
}

.menu-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  display: flex;
  align-items: center;
}

.menu-item:hover {
  background-color: var(--sidebar-hover);
  color: #fff;
}

.menu-item.active {
  background-color: var(--sidebar-hover);
  color: var(--sidebar-active);
}

.menu-item i {
  margin-right: 10px;
  font-size: 16px;
}

.submenu {
  padding-left: 20px;
  background-color: var(--sidebar-submenu-bg);
  overflow: hidden;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header */
.header {
  height: 50px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  display: flex;
  align-items: center;
  padding: 0 15px;
  justify-content: space-between;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
}

.toggle-btn {
  padding: 0 15px;
  cursor: pointer;
  font-size: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child):after {
  content: '/';
  margin: 0 8px;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
}

.header-item {
  padding: 0 10px;
  cursor: pointer;
  position: relative;
}

.header-user-menu-wrap {
  position: relative;
  margin-right: 4px;
}

.header-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  border: none;
  background: #fff;
  font-size: 14px;
  color: var(--text-primary);
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
}

.header-user-trigger .fa-chevron-down {
  font-size: 11px;
  opacity: 0.55;
}

.header-user-trigger__avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.header-user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  min-width: 160px;
  background: #fff;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  z-index: 200;
}

.header-user-menu-wrap.is-open .header-user-dropdown {
  display: block;
}

.header-user-dropdown a {
  display: block;
  padding: 10px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
}

.header-user-dropdown a:hover {
  background: #f5f7fa;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ccc;
  margin-right: 8px;
}

/* Content */
.content {
  padding: 15px;
  flex: 1;
  overflow-y: auto;
}

.page-header {
  margin-bottom: 15px;
  background-color: #fff;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-title {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0;
}

.page-content {
  background-color: #fff;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}

/* Card */
.card {
  background-color: #fff;
  border-radius: var(--border-radius-base);
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  margin-bottom: 15px;
  overflow: hidden;
}

.card-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-light);
}

.card-title {
  font-size: var(--font-size-medium);
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.card-body {
  padding: 15px;
}

/* Form */
.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

/* Button（直角、无阴影，链接作按钮时同形） */
.btn {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  font-size: 14px;
  outline: none;
  text-decoration: none;
  text-align: center;
}

.btn:hover,
.btn:focus {
  box-shadow: none;
  text-decoration: none;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 13px;
}

.btn-secondary {
  background-color: #fff;
  color: var(--text-regular);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--background-light);
  color: var(--primary-color);
  border-color: #b3d8ff;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #66b1ff;
}

/* 登记页：仅主提交按钮，桌面端占表单区域宽度（手机端由 mobile.css 全宽） */
.reg-form-actions {
  display: block;
}

.reg-form-actions .btn-reg-submit {
  width: 100%;
  max-width: 420px;
  padding: 12px 28px;
  font-size: 15px;
}

.btn-success {
  background-color: var(--success-color);
  color: #fff;
}

.btn-success:hover {
  background-color: #85ce61;
}

.btn-warning {
  background-color: var(--warning-color);
  color: #fff;
}

.btn-warning:hover {
  background-color: #ebb563;
}

.btn-danger {
  background-color: var(--danger-color);
  color: #fff;
}

.btn-danger:hover {
  background-color: #f78989;
}

.btn-info {
  background-color: var(--info-color);
  color: #fff;
}

.btn-info:hover {
  background-color: #a6a9ad;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-light);
}

.table th,
.table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  background-color: #fafafa;
  color: var(--text-primary);
  font-weight: 500;
}

.table tr:hover {
  background-color: #f5f7fa;
}

/* 数据总览：首卡顶部工具栏（标题 + 员工筛选 + 导出） */
.data-overview-top-toolbar {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  background-color: var(--background-light);
}

.data-overview-top-toolbar .data-overview-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.data-overview-top-toolbar .data-overview-employee-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
}

.data-overview-top-toolbar .data-overview-employee-form .form-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.data-overview-top-toolbar .data-overview-employee-form .form-control {
  width: auto;
  min-width: 160px;
  max-width: 220px;
  height: 30px;
  padding: 2px 8px;
  font-size: 13px;
}

.data-overview-top-toolbar-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.data-overview-summary-card .report-grand-totals {
  padding: 10px 12px;
  font-size: 14px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 15px;
}

.page-item {
  margin: 0 5px;
}

.page-link {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
  color: inherit;
}

.page-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: none;
}

.page-header .btn + .btn {
  margin-left: 8px;
}

/* 仪表盘统计卡片 */
.dashboard-stat-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-stat-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stat-grid--cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-stat-grid--cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* 7 张 KPI：同一行均分；窄屏允许横向滚动以免换行 */
.dashboard-stat-grid--cols-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .dashboard-stat-grid--cols-4,
  .dashboard-stat-grid--cols-5,
  .dashboard-stat-grid--cols-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stat-grid--cols-7 {
    grid-template-columns: repeat(7, minmax(104px, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
}

@media (max-width: 600px) {
  .dashboard-stat-grid--cols-4,
  .dashboard-stat-grid--cols-5,
  .dashboard-stat-grid--cols-6 {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-grid--cols-7 {
    grid-template-columns: repeat(7, minmax(96px, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.dashboard-stat-grid .card {
  margin-bottom: 0;
  height: 100%;
}

.dashboard-stat-grid--kpi .card {
  background: #f5f6f8;
  border: none;
  border-radius: 10px;
  box-shadow: none;
}

.dashboard-stat-grid .card-body {
  box-sizing: border-box;
}

.dashboard-stat-grid--kpi .card-body {
  padding: 20px 20px 18px;
  min-height: 0;
  overflow-x: auto;
}

/* KPI：上标题 / 中数值 / 下辅助说明（左对齐） */
.dashboard-stat-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.dashboard-stat-kpi__label {
  order: 1;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #8c8c8c;
  white-space: nowrap;
}

.dashboard-stat-kpi__value {
  order: 2;
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #1f1f1f;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.dashboard-stat-kpi__value--accent {
  color: #1890ff;
}

.dashboard-stat-kpi__value--danger {
  color: var(--danger-color);
}

.dashboard-stat-kpi__meta {
  order: 3;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: #8c8c8c;
  white-space: nowrap;
}

.dashboard-stat-grid--cols-7 .dashboard-stat-kpi__meta {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* 非 KPI 模式的仪表盘卡片（若仍有引用） */
.dashboard-stat-grid:not(.dashboard-stat-grid--kpi) .card {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--border-light);
}

.dashboard-stat-grid:not(.dashboard-stat-grid--kpi) .card-body {
  min-height: 112px;
}

.dashboard-trend-card {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--border-light);
  margin-bottom: 0;
}

.dashboard-trend-card .card-body {
  padding-top: 8px;
}

/* 表单单列：一行一项；开关区可横排 */
.form-stack {
  max-width: 560px;
}

.form-stack > .form-group {
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 16px;
}

.form-stack > .form-group:last-of-type {
  padding-bottom: 0;
}

.form-stack .form-control {
  max-width: 100%;
}

.form-stack-switches {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 36px;
  max-width: 560px;
  margin-bottom: 20px;
}

.form-stack-switches .form-group {
  margin-bottom: 0;
  flex: 0 0 auto;
}

/* Utilities */
.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.text-primary {
  color: var(--primary-color);
}

.text-success {
  color: var(--success-color);
}

.text-warning {
  color: var(--warning-color);
}

.text-danger {
  color: var(--danger-color);
}

.text-info {
  color: var(--info-color);
}

/* 标签页 */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 15px;
}

.tab-item {
  padding: 10px 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  font-size: var(--font-size-base);
  color: var(--text-regular);
}

.tab-item:hover {
  color: var(--primary-color);
}

.tab-item.active {
  color: var(--primary-color);
}

.tab-item.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.tabs a.tab-item {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.tabs a.tab-item:hover {
  text-decoration: none;
}

/* 徽章 */
.badge {
  display: inline-block;
  padding: 0 8px;
  height: 18px;
  line-height: 18px;
  font-size: var(--font-size-extra-small);
  border-radius: var(--border-radius-round);
  background-color: var(--danger-color);
  color: #fff;
  margin-left: 5px;
}

.badge-primary {
  background-color: var(--primary-color);
}

.badge-success {
  background-color: var(--success-color);
}

.badge-warning {
  background-color: var(--warning-color);
}

.badge-info {
  background-color: var(--info-color);
}

/* 开关 */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--primary-color);
}

input:focus + .switch-slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* 弹出框 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 员工首页 / 账单：详情弹窗打开/关闭过渡（遮罩 + 卡片上移淡入） */
#expense-detail-modal.modal-backdrop--bill-detail,
#shark-home-detail-modal.modal-backdrop--bill-detail {
  opacity: 0;
  transition: opacity 0.22s ease;
}

#expense-detail-modal.modal-backdrop--bill-detail.modal-backdrop--visible,
#shark-home-detail-modal.modal-backdrop--bill-detail.modal-backdrop--visible {
  opacity: 1;
}

#expense-detail-modal.modal-backdrop--bill-detail .modal,
#shark-home-detail-modal.modal-backdrop--bill-detail .modal {
  transform: translateY(14px);
  opacity: 0.96;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

#expense-detail-modal.modal-backdrop--bill-detail.modal-backdrop--visible .modal,
#shark-home-detail-modal.modal-backdrop--bill-detail.modal-backdrop--visible .modal {
  transform: translateY(0);
  opacity: 1;
}

.modal {
  background-color: #fff;
  border-radius: var(--border-radius-base);
  box-shadow: var(--box-shadow-base);
  width: 600px;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
}

.modal.expense-detail-modal {
  width: 700px;
  max-width: 95%;
}

.modal-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: var(--font-size-medium);
  font-weight: 500;
  color: var(--text-primary);
}

.modal-close {
  cursor: pointer;
  font-size: var(--font-size-large);
  color: var(--text-secondary);
}

.modal-body {
  padding: 15px;
  overflow-y: auto;
  flex: 1;
}

.modal-body .expense-detail-container {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
}

.modal-footer {
  padding: 15px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}

/* 提示框 */
.alert {
  padding: 10px 15px;
  border-radius: var(--border-radius-base);
  margin-bottom: 15px;
  position: relative;
}

.alert-success {
  background-color: #f0f9eb;
  color: var(--success-color);
  border: 1px solid #e1f3d8;
}

.alert-warning {
  background-color: #fdf6ec;
  color: var(--warning-color);
  border: 1px solid #faecd8;
}

.alert-danger {
  background-color: #fef0f0;
  color: var(--danger-color);
  border: 1px solid #fde2e2;
}

.alert-info {
  background-color: #f4f4f5;
  color: var(--info-color);
  border: 1px solid #e9e9eb;
}

.alert-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

/* 进度条 */
.progress {
  height: 6px;
  background-color: #ebeef5;
  border-radius: var(--border-radius-base);
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: var(--border-radius-base);
  transition: width 0.3s ease;
}

.progress-bar-success {
  background-color: var(--success-color);
}

.progress-bar-warning {
  background-color: var(--warning-color);
}

.progress-bar-danger {
  background-color: var(--danger-color);
}

/* 步骤条 */
.steps {
  display: flex;
  margin-bottom: 20px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step:not(:last-child):after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: var(--border-light);
  z-index: 1;
}

.step-icon {
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid var(--border-light);
  display: inline-block;
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: var(--font-size-small);
  color: var(--text-secondary);
}

.step.active .step-icon {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.step.completed .step-icon {
  background-color: var(--success-color);
  border-color: var(--success-color);
  color: #fff;
}

.step-title {
  margin-top: 10px;
  font-size: var(--font-size-small);
  color: var(--text-regular);
}

.step.active .step-title {
  color: var(--primary-color);
}

.step.completed .step-title {
  color: var(--success-color);
}

/* 上传组件 */
.upload {
  display: inline-block;
}

.upload-btn {
  display: inline-block;
  padding: 8px 15px;
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-base);
  cursor: pointer;
  transition: all 0.3s;
}

.upload-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.expense-attach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

button.upload-btn.upload-btn--camera {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  font: inherit;
  color: inherit;
}

.attachment-file-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 5px;
  border-radius: var(--border-radius-base);
  background-color: var(--background-light, #f9fafc);
  overflow: hidden;
  gap: 0;
}

.attachment-file-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease;
}

.attachment-file-row__main:hover,
.attachment-file-row__main:focus {
  background-color: #eef0f4;
  outline: none;
}

.attachment-file-row__main:active {
  opacity: 0.92;
}

.attachment-file-row__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.attachment-file-row__size {
  margin-left: 10px;
  color: #909399;
  font-size: 12px;
  flex-shrink: 0;
}

.attachment-file-row__remove {
  flex-shrink: 0;
  width: 44px;
  border: none;
  background: rgba(229, 57, 53, 0.08);
  color: #e53935;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 20px;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.attachment-file-row__remove:hover,
.attachment-file-row__remove:focus {
  background: rgba(229, 57, 53, 0.16);
  outline: none;
}

.attachment-file-row__remove:active {
  background: rgba(229, 57, 53, 0.24);
}

.modal-backdrop.attachment-preview-backdrop {
  z-index: 10070;
}

.modal--attachment-preview {
  width: min(560px, 96vw);
  max-height: 92vh;
}

.attachment-preview-body {
  padding: 10px !important;
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attachment-preview-img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.attachment-preview-iframe {
  width: 100%;
  min-height: 65vh;
  max-height: 78vh;
  border: 0;
  border-radius: 6px;
  background: #f5f5f5;
}

.attachment-preview-fallback {
  margin: 0;
  padding: 12px 8px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
}

.upload-list {
  margin-top: 10px;
}

.upload-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  padding: 5px 10px;
  border-radius: var(--border-radius-base);
  background-color: var(--background-light);
}

.upload-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-item-action {
  margin-left: 10px;
  color: var(--text-secondary);
  cursor: pointer;
}

.upload-item-action:hover {
  color: var(--danger-color);
}

/* 树形控件 */
.tree {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tree-node {
  margin: 0;
  padding: 5px 0;
  position: relative;
}

.tree-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.tree-arrow {
  margin-right: 5px;
  transition: all 0.3s;
}

.tree-arrow.expanded {
  transform: rotate(90deg);
}

.tree-checkbox {
  margin-right: 5px;
}

.tree-children {
  padding-left: 20px;
  list-style: none;
}

/* 日期选择器 */
.datepicker {
  width: 100%;
  position: relative;
}

.datepicker-input {
  width: 100%;
  height: 32px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-base);
  transition: all 0.3s;
}

.datepicker-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.datepicker-icon {
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--text-secondary);
}

/* 滑块 */
.slider {
  width: 100%;
  height: 6px;
  background-color: #e4e7ed;
  border-radius: 3px;
  position: relative;
  margin: 20px 0;
}

.slider-bar {
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 3px;
  position: absolute;
  left: 0;
  top: 0;
}

.slider-button {
  width: 16px;
  height: 16px;
  background-color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: -5px;
  transform: translateX(-50%);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 折叠面板 */
.collapse {
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-base);
  margin-bottom: 15px;
}

.collapse-item {
  border-bottom: 1px solid var(--border-light);
}

.collapse-item:last-child {
  border-bottom: none;
}

.collapse-header {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-light);
}

.collapse-title {
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

.collapse-arrow {
  transition: all 0.3s;
}

.collapse-arrow.expanded {
  transform: rotate(180deg);
}

.collapse-content {
  padding: 15px;
  background-color: #fff;
}

/* 记账详情样式 */
.expense-detail-container {
  padding: 20px 0;
  background-color: #fff;
  border-radius: var(--border-radius-base);
}

.expense-detail-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-lighter);
}

.expense-detail-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.expense-detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-medium);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.expense-detail-section-title i {
  font-size: 18px;
}

.expense-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-extra-light);
}

.expense-detail-item:last-child {
  border-bottom: none;
}

.expense-detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-regular);
  font-size: var(--font-size-base);
  font-weight: 500;
  min-width: 100px;
  flex-shrink: 0;
}

.expense-detail-label i {
  font-size: 18px;
  color: var(--primary-color);
}

.expense-detail-value {
  flex: 1;
  text-align: right;
  color: var(--text-primary);
  font-size: var(--font-size-base);
  word-break: break-word;
}

.expense-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

/* 状态徽章 */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: var(--font-size-extra-small);
  font-weight: 600;
}

.status-badge.pending {
  background: #fef0f0;
  color: var(--warning-color);
}

.status-badge.approved {
  background: #f0f9eb;
  color: var(--success-color);
}

.status-badge.rejected {
  background: #fef0f0;
  color: var(--danger-color);
}

/* 附件样式 */
.expense-attachments {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expense-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-base);
  transition: all 0.3s;
}

.expense-attachment:hover {
  background-color: var(--background-light);
  border-color: var(--primary-color);
}

.expense-attachment i {
  font-size: 16px;
}

button.expense-attachment {
  cursor: pointer;
  font: inherit;
  text-align: left;
}

/* 收支结余报表：顶部周期矩阵 + 底表明细 */
.report-summary-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--background-lighter);
}
.report-summary-matrix th,
.report-summary-matrix td {
  border: 1px solid var(--border-color);
  padding: 10px 8px;
  text-align: center;
  min-width: 72px;
}
.report-summary-matrix th.row-label,
.report-summary-matrix td.row-label {
  text-align: right;
  font-weight: 600;
  background: var(--background-light);
  white-space: nowrap;
  padding-right: 12px;
}
.report-summary-matrix .num-expense {
  color: var(--danger-color);
  font-weight: 600;
}
.report-summary-matrix .num-income {
  color: #1890ff;
  font-weight: 600;
}
.report-summary-matrix .num-balance {
  font-weight: 700;
  color: var(--text-primary);
}
.report-grand-totals {
  text-align: center;
  padding: 16px 12px;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-top: none;
}
.report-grand-totals .gt-income {
  color: #1890ff;
  font-weight: 600;
}
.report-grand-totals .gt-expense {
  color: var(--danger-color);
  font-weight: 600;
}
.report-grand-totals .gt-balance {
  font-weight: 600;
}
.report-detail-table .col-amount-expense {
  color: var(--danger-color);
  font-weight: 600;
}
.report-detail-table .col-amount-income {
  color: #1890ff;
  font-weight: 600;
}
.report-detail-actions .btn {
  margin-right: 8px;
  margin-bottom: 4px;
}

/* 数据总览：年度 × 12 月时间表 */
.data-overview-timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
.data-overview-timetable th,
.data-overview-timetable td {
  border: 1px solid var(--border-color);
  padding: 8px 6px;
  text-align: right;
  white-space: nowrap;
}
.data-overview-timetable th:first-child,
.data-overview-timetable td:first-child {
  text-align: left;
  min-width: 108px;
  font-weight: 600;
  background: var(--background-light);
}
.data-overview-timetable thead th {
  background: var(--background-lighter);
  font-weight: 600;
}
.data-overview-timetable .tt-subtotal {
  background: #fafafa;
  font-weight: 600;
}
.data-overview-timetable .tt-num-income {
  color: #52c41a;
  font-weight: 600;
}
.data-overview-timetable .tt-num-expense {
  color: var(--danger-color);
  font-weight: 600;
}
.data-overview-timetable .tt-num-balance {
  color: var(--text-primary);
  font-weight: 600;
}
.data-overview-timetable .tt-num-balance.tt-positive {
  color: #1890ff;
}
.data-overview-timetable .tt-num-balance.tt-negative {
  color: var(--danger-color);
}
.data-overview-timetable .tt-label-income {
  color: #52c41a;
}
.data-overview-timetable .tt-label-expense {
  color: var(--danger-color);
}
.data-overview-timetable .tt-label-balance {
  color: var(--text-primary);
}

.data-overview-timetable--daily th,
.data-overview-timetable--daily td {
  padding: 6px 4px;
  font-size: 12px;
  min-width: 40px;
}
.data-overview-timetable--daily thead th:first-child,
.data-overview-timetable--daily tbody td:first-child {
  min-width: 120px;
}

/* ========== 管理后台极简主题（body.admin-theme-minimal，admin/includes/header.php）========== */
body.admin-theme-minimal .sidebar {
  width: 200px;
  box-shadow: 1px 0 0 rgba(31, 45, 61, 0.35);
}

body.admin-theme-minimal .sidebar-logo {
  height: 46px;
  padding: 0 12px;
  font-size: 15px;
}

body.admin-theme-minimal .sidebar-logo .sidebar-logo__img {
  max-height: 26px;
  max-width: 100px;
}

body.admin-theme-minimal .sidebar-menu {
  padding: 6px 0;
}

body.admin-theme-minimal .menu-item {
  padding: 8px 14px;
  font-size: 13px;
}

body.admin-theme-minimal .menu-item i {
  width: 18px;
  font-size: 14px;
  margin-right: 8px;
  text-align: center;
}

body.admin-theme-minimal .header {
  height: 42px;
  padding: 0 12px;
  box-shadow: 0 1px 0 rgba(0, 21, 41, 0.06);
}

body.admin-theme-minimal .toggle-btn {
  padding: 0 10px;
  font-size: 15px;
}

body.admin-theme-minimal .breadcrumb {
  margin-left: 6px;
}

body.admin-theme-minimal .breadcrumb-item,
body.admin-theme-minimal .breadcrumb-item a {
  font-size: 13px;
}

body.admin-theme-minimal .header-user-trigger {
  padding: 4px 10px;
  font-size: 13px;
}

body.admin-theme-minimal .header-user-dropdown a {
  padding: 8px 12px;
  font-size: 13px;
}

body.admin-theme-minimal .content {
  padding: 10px 12px;
}

/* 管理后台桌面端：侧栏收起为仅图标（与顶栏「伸缩」按钮联动，见 main.js） */
@media (min-width: 769px) {
  body.admin-theme-minimal .container.sidebar-collapsed .sidebar {
    width: 68px;
  }

  body.admin-theme-minimal .container.sidebar-collapsed .sidebar-logo {
    justify-content: center;
    padding: 0 8px;
    gap: 0;
  }

  body.admin-theme-minimal .container.sidebar-collapsed .sidebar-logo span {
    display: none !important;
  }

  body.admin-theme-minimal .container.sidebar-collapsed .sidebar-logo .sidebar-logo__img {
    margin-right: 0;
    max-width: 40px;
    max-height: 28px;
  }

  body.admin-theme-minimal .container.sidebar-collapsed .sidebar-logo > i.fas {
    margin-right: 0;
    font-size: 20px;
  }

  body.admin-theme-minimal .container.sidebar-collapsed .menu-item {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  body.admin-theme-minimal .container.sidebar-collapsed .menu-item span {
    display: none !important;
  }

  body.admin-theme-minimal .container.sidebar-collapsed .menu-item i {
    margin-right: 0 !important;
  }
}

body.admin-theme-minimal .page-header {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 2px;
  box-shadow: none;
  border: 1px solid var(--border-light);
  background: #fff;
}

body.admin-theme-minimal .page-title {
  font-size: 16px;
  font-weight: 600;
}

body.admin-theme-minimal .page-header-actions {
  gap: 6px;
}

body.admin-theme-minimal .card {
  margin-bottom: 10px;
  border-radius: 2px;
  box-shadow: none;
  border: 1px solid var(--border-light);
}

body.admin-theme-minimal .card-header {
  padding: 9px 12px;
  min-height: 0;
  flex-wrap: wrap;
  gap: 8px 10px;
  background: #fafafa;
}

body.admin-theme-minimal .card-title {
  font-size: 14px;
  font-weight: 600;
}

body.admin-theme-minimal .card-body {
  padding: 10px 12px;
}

body.admin-theme-minimal .table th,
body.admin-theme-minimal .table td {
  padding: 7px 8px;
  font-size: 13px;
}

body.admin-theme-minimal .table th {
  font-size: 12px;
}

body.admin-theme-minimal .form-group {
  margin-bottom: 10px;
}

body.admin-theme-minimal .form-label {
  margin-bottom: 4px;
  font-size: 12px;
}

body.admin-theme-minimal .form-control {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

body.admin-theme-minimal textarea.form-control {
  min-height: 70px;
  height: auto;
  padding: 8px 10px;
  line-height: 1.45;
}

body.admin-theme-minimal .btn {
  padding: 6px 12px;
  font-size: 13px;
}

body.admin-theme-minimal .btn-sm {
  padding: 3px 8px;
  font-size: 12px;
}

body.admin-theme-minimal .pagination {
  margin-top: 10px;
}

body.admin-theme-minimal .page-item {
  margin: 0 3px;
}

body.admin-theme-minimal .page-link {
  padding: 4px 10px;
  font-size: 13px;
}

body.admin-theme-minimal .alert {
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 13px;
  border-radius: 2px;
}

body.admin-theme-minimal .alert p:last-child {
  margin-bottom: 0;
}

body.admin-theme-minimal .tabs {
  margin-bottom: 10px;
}

body.admin-theme-minimal .tab-item {
  padding: 8px 14px;
  font-size: 13px;
}

body.admin-theme-minimal .badge {
  height: 17px;
  line-height: 17px;
  font-size: 11px;
  padding: 0 6px;
}

body.admin-theme-minimal .mt-20 {
  margin-top: 12px;
}

body.admin-theme-minimal .mt-10 {
  margin-top: 8px;
}

body.admin-theme-minimal .mb-20 {
  margin-bottom: 12px;
}

body.admin-theme-minimal .page-content {
  padding: 10px 12px;
  border-radius: 2px;
  box-shadow: none;
  border: 1px solid var(--border-light);
}

body.admin-theme-minimal .modal-header {
  padding: 10px 14px;
}

body.admin-theme-minimal .modal-title {
  font-size: 15px;
}

body.admin-theme-minimal .modal-body {
  padding: 12px 14px;
  font-size: 13px;
}

body.admin-theme-minimal .modal-footer {
  padding: 10px 14px;
}

body.admin-theme-minimal .dashboard-stat-grid {
  gap: 12px;
  margin-bottom: 12px;
}

body.admin-theme-minimal .dashboard-stat-grid--kpi .card-body {
  padding: 16px 16px 14px;
}

body.admin-theme-minimal .dashboard-stat-kpi__label,
body.admin-theme-minimal .dashboard-stat-kpi__meta {
  font-size: 12px;
}

body.admin-theme-minimal .dashboard-stat-kpi__value {
  font-size: 22px;
  margin-bottom: 8px;
}

body.admin-theme-minimal .dashboard-stat-kpi__label {
  margin-bottom: 8px;
}

body.admin-theme-minimal .dashboard-stat-grid:not(.dashboard-stat-grid--kpi) .card-body {
  min-height: 96px;
  padding: 10px 12px;
}

body.admin-theme-minimal .dashboard-trend-card .card-body {
  padding: 10px 12px;
}

body.admin-theme-minimal .report-summary-matrix th,
body.admin-theme-minimal .report-summary-matrix td {
  padding: 8px 8px;
  font-size: 13px;
}

body.admin-theme-minimal .data-overview-timetable th,
body.admin-theme-minimal .data-overview-timetable td {
  padding: 6px 4px;
  font-size: 12px;
}

body.admin-theme-minimal .data-overview-top-toolbar {
  padding: 8px 10px;
  gap: 8px 10px;
}

body.admin-theme-minimal .data-overview-top-toolbar .data-overview-title {
  font-size: 14px;
}

body.admin-theme-minimal .form-stack > .form-group {
  padding-bottom: 12px;
}

body.admin-theme-minimal .form-stack-switches {
  gap: 20px;
  margin-bottom: 14px;
}

body.admin-theme-minimal .form-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.admin-theme-minimal .form-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

body.admin-theme-minimal .alert-danger ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

body.admin-theme-minimal a.table-emp-name {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

body.admin-theme-minimal a.table-emp-name:hover {
  text-decoration: underline;
}

/* 员工详情页（紧凑单卡布局） */
body.admin-theme-minimal .card.employee-detail-page {
  margin-bottom: 10px;
}

.employee-detail-page {
  margin-bottom: 10px;
}

.employee-detail-page .employee-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}

.employee-detail-page .employee-detail-heading {
  min-width: 0;
}

.employee-detail-page .employee-detail-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.employee-detail-page .employee-detail-title-row h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.employee-detail-page .employee-detail-meta {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.employee-detail-page .employee-detail-meta strong {
  color: var(--text-regular);
  font-weight: 500;
}

.employee-detail-page .employee-detail-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.employee-detail-page .employee-detail-body {
  padding: 10px 12px;
}

.employee-detail-page .employee-detail-kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.employee-detail-page .employee-detail-kpi {
  flex: 1;
  min-width: 100px;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  background: var(--background-light);
  font-size: 12px;
}

.employee-detail-page .employee-detail-kpi .employee-detail-kpi-label {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.employee-detail-page .employee-detail-kpi .employee-detail-kpi-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.employee-detail-page .employee-detail-kpi-val.is-expense {
  color: var(--danger-color);
}

.employee-detail-page .employee-detail-kpi-val.is-income {
  color: #1890ff;
}

.employee-detail-page .employee-detail-kpi-val.is-balance.positive {
  color: #1890ff;
}

.employee-detail-page .employee-detail-kpi-val.is-balance.negative {
  color: var(--danger-color);
}

.employee-detail-page .employee-detail-scope-note {
  margin: 0 0 10px;
}

.employee-detail-page .employee-detail-scope-note summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  user-select: none;
}

.employee-detail-page .employee-detail-scope-note summary:hover {
  color: var(--primary-color);
}

.employee-detail-page .employee-detail-scope-note .employee-detail-scope-body {
  margin-top: 6px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--background-light);
  border: 1px solid var(--border-lighter);
}

.employee-detail-page .employee-detail-filter {
  border: 1px solid var(--border-light);
  background: #fff;
  margin-bottom: 10px;
}

.employee-detail-page .employee-detail-filter-inner {
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}

.employee-detail-page .employee-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  padding: 0 8px;
}

.employee-detail-page .employee-detail-tabs a {
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-regular);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.employee-detail-page .employee-detail-tabs a:hover {
  color: var(--primary-color);
}

.employee-detail-page .employee-detail-tabs a.is-active {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom-color: var(--primary-color);
}

.employee-detail-page .employee-detail-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.employee-detail-page .employee-detail-filter-form .form-group {
  margin-bottom: 0;
}

.employee-detail-page .employee-detail-filter-form .form-label {
  font-size: 11px;
  margin-bottom: 2px;
}

.employee-detail-page .employee-detail-filter-form .form-control {
  height: 28px;
  font-size: 12px;
  padding: 0 8px;
  min-width: 0;
}

.employee-detail-page .employee-detail-range-bar {
  width: 100%;
  padding: 8px 10px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 12px;
  background: var(--background-secondary, #f5f7fa);
}

.employee-detail-page .employee-detail-range-bar-label {
  color: var(--text-secondary);
}

.employee-detail-page .employee-detail-range-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.employee-detail-page .employee-detail-range-stats span.sep {
  color: var(--border-color);
}

.employee-detail-page .employee-detail-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

@media (max-width: 960px) {
  .employee-detail-page .employee-detail-split {
    grid-template-columns: 1fr;
  }
}

.employee-detail-page .employee-detail-panel {
  border: 1px solid var(--border-light);
  min-width: 0;
}

.employee-detail-page .employee-detail-panel-h {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}

.employee-detail-page .employee-detail-panel-body {
  padding: 0;
}

.employee-detail-page .employee-detail-panel-body .form-hint {
  padding: 8px 10px;
  margin: 0;
}

.employee-detail-page table.employee-detail-table {
  font-size: 12px;
}

.employee-detail-page table.employee-detail-table th,
.employee-detail-page table.employee-detail-table td {
  padding: 5px 8px;
}

.employee-detail-page table.employee-detail-table th {
  font-size: 11px;
  white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sidebar {
    width: 60px;
  }
  
  .sidebar-logo {
    justify-content: center;
    padding: 0;
  }
  
  .menu-item span {
    display: none;
  }
  
  .menu-item i {
    margin-right: 0;
  }
  
  .submenu {
    padding-left: 0;
  }
  
  .form-group {
    flex: 0 0 100% !important;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-header .btn-group {
    margin-top: 10px;
  }
  
  .table {
    display: block;
    overflow-x: auto;
  }
  
  .steps {
    flex-direction: column;
  }
  
  .step:not(:last-child):after {
    display: none;
  }
  
  .step {
    margin-bottom: 15px;
  }
  
  .expense-detail-label {
    min-width: 80px;
  }
  
  .expense-detail-value {
    text-align: right;
  }
}
