/* ========== 基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #4f46e5;
  --primary-light: #eef2ff;
  --primary-dark: #3730a3;
  --red: #dc2626;
  --red-light: #fef2f2;
  --green: #059669;
  --green-light: #ecfdf5;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --blue: #0284c7;
  --blue-light: #eff6ff;
  --text: #1f2937;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --border: #e5e7eb;
  --bg: #f3f4f6;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ========== 布局 ========== */
.layout { display: flex; min-height: 100vh; }

/* ========== 侧边栏 ========== */
.sidebar {
  width: 232px;
  background: #1e1b4b;
  color: #c7d2fe;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 50;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.logo-title { color: #fff; font-size: 15px; font-weight: 600; }
.logo-sub { font-size: 11px; color: #818cf8; margin-top: 2px; }

.nav { flex: 1; overflow-y: auto; padding: 10px 0 20px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  font-size: 13.5px;
  color: #a5b4fc;
  transition: background .15s;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #e0e7ff; }
.nav-item.active {
  background: #6366f1; color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,.4);
}
.nav-icon { width: 20px; text-align: center; font-size: 15px; }
.nav-group-title {
  padding: 14px 20px 6px;
  font-size: 11px; letter-spacing: 1px;
  color: #6366f1; font-weight: 600;
}
.sidebar-footer {
  padding: 12px 16px;
  font-size: 11px; color: #6366f1;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ========== 主区域 ========== */
.main { flex: 1; margin-left: 232px; padding: 24px 28px; max-width: 1400px; }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.page-title { font-size: 21px; font-weight: 700; }
.page-desc { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff; color: var(--text);
  font-size: 13px; transition: all .15s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-danger { background: #fff; border-color: #fca5a5; color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: #047857; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; justify-content: center; }

/* ========== 卡片 / 统计 ========== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat-label { font-size: 12.5px; color: var(--text-2); }
.stat-value { font-size: 24px; font-weight: 700; margin-top: 6px; }
.stat-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.stat-value.income { color: var(--green); }
.stat-value.cost { color: var(--red); }
.stat-value.profit { color: var(--primary); }

/* ========== 面板 ========== */
.panel {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  margin-bottom: 20px; overflow: hidden;
}
.panel-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.panel-title { font-size: 15px; font-weight: 600; }
.panel-body { padding: 16px 18px; }

/* ========== 表格 ========== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  background: #f9fafb; text-align: left;
  padding: 10px 12px; font-weight: 600; color: var(--text-2);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td {
  padding: 10px 12px; border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
tbody tr:hover { background: #f9fafb; }
tr:last-child td { border-bottom: none; }
.td-actions { display: flex; gap: 6px; white-space: nowrap; }

/* ========== 标签 ========== */
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-green { background: var(--green-light); color: var(--green); }
.tag-red { background: var(--red-light); color: var(--red); }
.tag-amber { background: var(--amber-light); color: var(--amber); }
.tag-gray { background: #f3f4f6; color: var(--text-2); }
.tag-purple { background: var(--primary-light); color: var(--primary); }

/* ========== 表单 ========== */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.form-group label .req { color: var(--red); }
input, select, textarea {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--text);
  outline: none; transition: border .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { resize: vertical; min-height: 60px; }
.form-hint { font-size: 11.5px; color: var(--text-3); }

/* 补贴/子项列表行 */
.sub-row { display: flex; gap: 8px; align-items: center; }
.sub-row input, .sub-row select { flex: 1; }
.sub-row .btn { flex: none; }

/* ========== 弹窗 ========== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(17,24,39,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 560px;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
  animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 20px; color: var(--text-3); line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-footer {
  padding: 14px 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ========== 搜索栏 / 工具条 ========== */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { min-width: 140px; }
.toolbar .search-input { flex: 1; min-width: 200px; max-width: 280px; }

/* ========== 空状态 ========== */
.empty {
  text-align: center; padding: 40px 20px; color: var(--text-3);
  font-size: 13.5px;
}
.empty-icon { font-size: 36px; margin-bottom: 8px; }

/* ========== 仪表盘 ========== */
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f3f4f6;
}
.list-item:last-child { border-bottom: none; }
.list-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-size: 13.5px; font-weight: 500; }
.list-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.list-right { text-align: right; flex: none; }
.list-amount { font-size: 13.5px; font-weight: 600; }

/* 部门分布条形 */
.dept-bar-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.dept-bar-label { width: 64px; font-size: 12.5px; color: var(--text-2); flex: none; }
.dept-bar-track { flex: 1; height: 18px; background: #f3f4f6; border-radius: 9px; overflow: hidden; }
.dept-bar-fill { height: 100%; border-radius: 9px; background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.dept-bar-num { width: 36px; text-align: right; font-size: 12.5px; color: var(--text-2); flex: none; }

/* ========== 项目卡片 ========== */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.proj-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column; gap: 10px;
}
.proj-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.proj-name { font-size: 15px; font-weight: 700; }
.proj-client { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.proj-info { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-2); }
.proj-info span { display: inline-flex; align-items: center; gap: 4px; }
.proj-amounts {
  display: flex; gap: 14px; padding: 10px 0;
  border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border);
  font-size: 12px;
}
.proj-amounts .amt { flex: 1; }
.proj-amounts .amt b { display: block; font-size: 14px; margin-top: 2px; }
.paid-split {
  font-size: 11.5px; color: var(--text-3);
  padding-top: 7px; display: flex; gap: 6px; flex-wrap: wrap;
}
.paid-split b { font-weight: 600; color: var(--text-2); }
.proj-actions { display: flex; gap: 8px; margin-top: auto; }
.members-avatars { display: flex; margin-top: 2px; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
  margin-right: -6px; border: 2px solid #fff;
}

/* 进度条 */
.progress { height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--primary); }

/* ========== 财务分析 ========== */
.fin-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 1000px) { .fin-summary { grid-template-columns: repeat(2, 1fr); } }
.cost-bars { display: flex; flex-direction: column; gap: 12px; }
.cost-bar-row { display: flex; align-items: center; gap: 12px; }
.cost-bar-label { width: 74px; font-size: 12.5px; color: var(--text-2); flex: none; }
.cost-bar-track { flex: 1; height: 24px; background: #f3f4f6; border-radius: 6px; overflow: hidden; }
.cost-bar-fill { height: 100%; border-radius: 6px; display: flex; align-items: center; padding: 0 10px; color: #fff; font-size: 12px; font-weight: 600; }
.cost-bar-amt { width: 90px; text-align: right; font-size: 12.5px; font-weight: 600; flex: none; }

.month-selector { display: flex; gap: 8px; align-items: center; }
.month-selector input[type=month] { padding: 7px 12px; }

/* ========== 系统设置 ========== */
.setting-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.setting-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.setting-card h3 { font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f9fafb; border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 12px; font-size: 12.5px;
}
.chip button { background: none; border: none; color: var(--text-3); font-size: 14px; line-height: 1; padding: 0 0 0 2px; }
.chip button:hover { color: var(--red); }
.chip-add { display: flex; gap: 6px; margin-top: 10px; }
.chip-add input { flex: 1; font-size: 12.5px; padding: 5px 10px; }

/* ========== 详情弹窗样式 ========== */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.detail-item { }
.detail-item .k { font-size: 12px; color: var(--text-3); }
.detail-item .v { font-size: 13.5px; margin-top: 3px; font-weight: 500; }
.detail-item.full { grid-column: 1 / -1; }

.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: #111827; color: #fff; padding: 10px 22px; border-radius: 8px;
  font-size: 13px; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: toastIn .25s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 金额颜色（中国习惯：收入红 / 支出绿） */
.money-in { color: var(--red); font-weight: 600; }
.money-out { color: var(--green); font-weight: 600; }

/* 勾选合计（已选 N 条 · 合计金额） */
.batch-sum {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--primary-light);
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.batch-sum b { color: var(--primary); }

/* ========== 批量导入样式 ========== */
.import-drop {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg-2);
}
.import-drop:hover, .import-drop.dragging { border-color: var(--primary); background: #eef2ff; }
.import-drop-icon { font-size: 34px; margin-bottom: 8px; }
.import-drop-text { font-size: 14px; font-weight: 600; color: var(--text); }
.map-rows { display: flex; flex-direction: column; gap: 6px; max-height: 230px; overflow: auto; padding-right: 4px; }
.map-row { display: flex; align-items: center; gap: 10px; }
.map-col {
  flex: 0 0 160px; font-size: 12.5px; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 6px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.map-row select { flex: 1; }

/* ========== 登录页 ========== */
#login-root {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
}
.login-card {
  background: #fff; border-radius: 18px; padding: 40px 44px;
  width: 380px; max-width: 92vw; text-align: center;
  box-shadow: 0 20px 60px rgba(79,70,229,.15);
  border: 1px solid var(--border);
}
.login-logo {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 14px; background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.login-title { font-size: 19px; font-weight: 700; }
.login-sub { font-size: 12.5px; color: var(--text-2); margin: 6px 0 22px; }
.login-form input { padding: 11px 14px; font-size: 14px; text-align: center; letter-spacing: 2px; }
.login-tip { margin-top: 16px; font-size: 11.5px; color: var(--text-3); }

/* ========== 凭证图片组件 ========== */
.att-field { display: flex; flex-direction: column; gap: 8px; }
.att-list { display: flex; flex-wrap: wrap; gap: 8px; }
.att-item {
  position: relative; width: 76px; height: 76px;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--border);
  background: #f9fafb;
}
.att-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.att-del {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(17,24,39,.7); color: #fff; border: none;
  font-size: 11px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.att-add {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border: 1.5px dashed var(--border);
  border-radius: 8px; color: var(--text-2); font-size: 12px;
  cursor: pointer; transition: all .15s; background: #fff;
}
.att-add:hover { border-color: var(--primary); color: var(--primary); }
.att-icon {
  background: var(--primary-light); color: var(--primary);
  border: none; border-radius: 12px; padding: 1px 7px;
  font-size: 11px; margin-left: 6px; cursor: pointer;
}
.att-icon:hover { background: #dbe3ff; }

/* 文件型凭证卡片（PDF / Word / Excel） */
.att-item.att-file {
  width: 168px; height: 76px; display: flex; align-items: center;
  gap: 8px; padding: 0 10px; overflow: hidden;
}
.att-file-badge {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 8px;
  color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .5px;
}
.att-file-name {
  flex: 1; min-width: 0; font-size: 11.5px; color: var(--text);
  line-height: 1.3; word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.att-item.att-file img { display: none; }
.att-list .att-file .att-del { top: 2px; right: 2px; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.att-grid .att-item { width: auto; height: auto; min-height: 100px; }
.att-grid .att-file { width: auto; }
.att-view-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 10px; cursor: pointer;
  border-radius: 8px; transition: all .15s; height: 100%;
}
.att-view-card:hover { background: var(--primary-light); }
.att-view-card .att-file-badge { width: 46px; height: 46px; font-size: 11px; }
.att-view-card .att-file-name { text-align: center; }

/* 附件单元（缩略图/文件卡 + 类型下拉）：类型手动标记，发票才算凭证完整 */
.att-cell { display: flex; flex-direction: column; gap: 4px; width: 76px; }
.att-cell.file { width: 168px; }
.att-cell .att-item { width: 100%; }
.att-kind {
  width: 100%; font-size: 11px; padding: 2px 3px;
  border-radius: 6px; border: 1px solid var(--border);
  background: #fff; color: var(--text); cursor: pointer;
}
.att-kind:focus { outline: none; border-color: var(--primary); }

/* ========== 待办中心 ========== */
.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.todo-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: #fafafa;
  transition: all .15s; font-size: 13px;
}
.todo-item:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-1px); }
.todo-item.todo-urgent { border-color: #fecaca; background: var(--red-light); }
.todo-icon { font-size: 17px; }
.todo-text { flex: 1; }
.todo-item .tag { flex: none; }

/* ========== 敏感信息打码 ========== */
.maskable {
  cursor: pointer; border-bottom: 1px dashed var(--text-3);
  font-family: monospace; letter-spacing: .5px;
  user-select: none;
}
.maskable.unmasked { border-bottom-style: solid; user-select: text; }

/* ========== 安全设置 ========== */
.security-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.security-item {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; background: #fafafa;
  display: flex; flex-direction: column; gap: 8px;
}
.security-title { font-size: 14px; font-weight: 600; }
.security-desc { font-size: 12px; color: var(--text-2); line-height: 1.6; flex: 1; }
.security-item .btn { align-self: flex-start; }

/* ========== 退出登录 ========== */
.logout-btn {
  margin-top: 8px; width: 100%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  color: #a5b4fc; border-radius: 6px; padding: 5px 10px;
  font-size: 12px; cursor: pointer;
}
.logout-btn:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ========== 手机适配 ========== */
@media (max-width: 900px) {
  .sidebar { width: 200px; }
  .main { margin-left: 200px; padding: 16px; }
}
@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar {
    position: static; width: 100%; height: auto;
    flex-direction: row; align-items: center; padding: 8px 12px;
  }
  .logo { padding: 4px 8px; border-bottom: none; }
  .logo-icon { width: 32px; height: 32px; font-size: 15px; border-radius: 8px; }
  .logo-title { font-size: 13px; }
  .logo-sub { display: none; }
  .nav { display: flex; overflow-x: auto; padding: 0 6px; }
  .nav-group { display: none; }
  .nav-item { padding: 7px 10px; font-size: 12.5px; border-radius: 8px; white-space: nowrap; }
  .nav-item.active { box-shadow: none; }
  .sidebar-footer { display: none; }
  .main { margin-left: 0; padding: 12px; }
  .page-title { font-size: 18px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-value { font-size: 20px; }
  .fin-cols { grid-template-columns: 1fr !important; }
  .fin-summary { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .todo-grid { grid-template-columns: 1fr; }
  .modal { max-width: 100%; margin: 0 8px; }
  .header-actions .btn { font-size: 12px; padding: 7px 10px; }
  .sub-row { flex-wrap: wrap; }
  .sub-row select { flex: 1 1 100%; }
  .sub-row input { flex: 1; }
}
@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
}

/* 导入 - 工作表选择 */
.sheet-list{display:flex;flex-direction:column;gap:8px;max-height:320px;overflow:auto}
.sheet-item{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border:1px solid var(--border);border-radius:8px;cursor:pointer;font-size:13px;background:var(--bg)}
.sheet-item:hover{border-color:var(--primary);background:var(--bg-2)}
