* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #2563eb; --primary-dark: #1d4ed8; --primary-light: #3b82f6;
  --bg: #f1f5f9; --panel: #ffffff;
  --text: #1e293b; --muted: #64748b; --border: #e2e8f0;
  --red: #dc2626; --green: #16a34a; --orange: #ea580c; --blue: #2563eb;
  --sidebar-bg: #0f172a; --sidebar-hover: #1e293b; --sidebar-active: #1d4ed8;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow: 0 6px 18px rgba(15,23,42,.10);
  --radius: 10px;
}
body { font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%); }
.login-card { background: #fff; border-radius: 16px; padding: 38px 42px; width: 400px; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.login-card h1 { font-size: 22px; margin-bottom: 4px; color: var(--text); }
.login-card .sub { color: var(--muted); margin-bottom: 22px; font-size: 13px; }
.login-card label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.login-card input, .login-card select { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 16px; outline: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.login-card input:focus, .login-card select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.login-card .btn { width: 100%; padding: 12px; font-size: 15px; }
.login-tip { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }
.login-err { color: var(--red); font-size: 13px; margin-bottom: 10px; min-height: 18px; }
.login-tabs { display: flex; gap: 0; margin-bottom: 22px; border-bottom: 2px solid var(--border); }
.login-tabs span { padding: 8px 18px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; font-weight: 500; }
.login-tabs span.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* 主布局 */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 230px; background: var(--sidebar-bg); color: #cbd5e1; flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar .brand { padding: 20px; font-size: 17px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(90deg, #1e3a8a, #2563eb); }
.sidebar .brand small { display: block; font-weight: 400; font-size: 12px; color: rgba(255,255,255,.72); margin-top: 3px; }
.sidebar nav { flex: 1; padding: 14px 0; overflow-y: auto; }
.sidebar .nav-group-title { padding: 14px 20px 6px; font-size: 12px; color: #64748b; letter-spacing: 1px; }
.sidebar nav a { display: block; padding: 11px 20px 11px 32px; color: #cbd5e1; text-decoration: none; font-size: 14px; border-left: 3px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.sidebar nav a:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar nav a.active { background: rgba(37,99,235,.20); color: #fff; font-weight: 600; border-left-color: var(--primary-light); }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { background: var(--panel); border-bottom: 1px solid var(--border); padding: 13px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); }
.topbar .page-title { font-size: 16px; font-weight: 600; }
.topbar .user { color: var(--muted); font-size: 13px; display: flex; gap: 14px; align-items: center; }
.topbar .user select { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; outline: none; }
.topbar .user a { color: var(--primary); text-decoration: none; cursor: pointer; font-weight: 500; }
.content { padding: 24px; overflow-x: auto; }

/* 卡片 / 面板 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 16px; margin-bottom: 20px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .num { font-size: 25px; font-weight: 700; margin-top: 6px; color: var(--text); }
.card .label { color: var(--muted); font-size: 13px; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 20px; }
.panel h3 { font-size: 15px; margin-bottom: 14px; color: var(--text); font-weight: 600; border-left: 3px solid var(--primary); padding-left: 10px; }
.sec-title { margin: 20px 0 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.sec-title:first-of-type { margin-top: 4px; }
.period-chips { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chip { background: #eff6ff; color: #1d4ed8; border-radius: 8px; padding: 6px 12px; font-size: 13px; border: 1px solid #bfdbfe; }
.chip b { font-size: 16px; margin-left: 4px; }
.chip.blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.chip.green { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

/* 结算管理 Tab 切换（圆润胶囊式） */
.tab-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn { background: #fff; border: 1px solid var(--border); border-radius: 999px; color: var(--text); padding: 10px 22px; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 6px rgba(15,23,42,.06); transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .12s; }
.tab-btn:hover { color: var(--primary); border-color: #bfdbfe; background: #eff6ff; box-shadow: 0 4px 10px rgba(37,99,235,.12); transform: translateY(-1px); }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; box-shadow: 0 6px 16px rgba(37,99,235,.3); transform: translateY(-1px); }
.tab-panel { margin-top: 4px; }
.settle-count { color: var(--muted); font-size: 13px; margin-left: auto; }
.mat-stats { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.mat-stats-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.mat-stats .grid { font-size: 13px; }
.mat-stats .grid th { background: #eef2f7; }

/* 工具栏 / 表格 */
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.toolbar input[type=search], .toolbar input[type=date], .toolbar input[type=month], .toolbar select { padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; outline: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.btn { background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 9px 18px; font-size: 14px; font-weight: 500; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(37,99,235,.30); }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { background: #f8fafc; box-shadow: none; }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #b91c1c; }
.btn.sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
table.grid { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
table.grid th, table.grid td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; font-size: 13px; }
table.grid th { background: #f8fafc; color: var(--muted); font-weight: 600; font-size: 12px; border-bottom: 2px solid var(--border); }
table.grid tr:hover td { background: #f8fafc; }
table.grid tbody tr:last-child td { border-bottom: none; }
.inp-round { width: 96px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; outline: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.inp-round:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 14px; color: var(--muted); font-size: 13px; }
.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.tag.green { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.tag.red { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.tag.orange { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }
.tag.teal { background: #f0fdfa; color: #0d9488; border-color: #99f6e4; }

/* 弹窗 */
.mask { position: fixed; inset: 0; background: rgba(15,23,42,.65); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--panel); border-radius: 14px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.modal h3 { font-size: 17px; margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 13px; font-weight: 500; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; outline: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.form-grid input:disabled { background: #f1f5f9; color: var(--muted); }
.form-err { color: var(--red); font-size: 13px; margin-top: 12px; min-height: 16px; }

/* 提示 */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 11px 24px; border-radius: 9px; z-index: 99; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 14px; }
.toast.error { background: var(--red); }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; }
.profile-grid .item { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.profile-grid .item .k { color: var(--muted); font-size: 12px; }
.profile-grid .item .v { margin-top: 3px; font-weight: 600; color: var(--text); }
/* 汉堡按钮：桌面隐藏，手机显示 */
.hamburger { display: none; }
/* 手机端底部"返回上一级"悬浮按钮：默认隐藏，仅手机且有上级时显示 */
.mobile-back { display: none; align-items: center; justify-content: center; gap: 6px; position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 48; background: var(--primary); color: #fff; border: none; padding: 0 30px; height: 46px; border-radius: 999px; font-size: 15px; font-weight: 600; box-shadow: 0 6px 18px rgba(37,99,235,.45); }
.mobile-back:active { background: var(--primary-dark); }
@media (max-width: 800px) {
  /* 侧边栏改为抽屉式 */
  .hamburger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); background: #fff; border-radius: 10px; font-size: 22px; color: var(--text); flex-shrink: 0; line-height: 1; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 84%; max-width: 300px; transform: translateX(-100%); transition: transform .25s ease; z-index: 60; box-shadow: 0 0 40px rgba(0,0,0,.45); }
  .layout.drawer-open .sidebar { transform: translateX(0); }
  .drawer-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 55; display: none; }
  .layout.drawer-open .drawer-backdrop { display: block; }
  .sidebar .brand { font-size: 16px; padding: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sidebar .brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sidebar nav a { padding: 13px 20px 13px 32px; font-size: 15px; border-left-width: 3px; }
  .sidebar .nav-group-title { padding: 16px 20px 6px; font-size: 12px; }

  /* 主区与顶栏 */
  .main { width: 100%; }
  .topbar { padding: 9px 13px; gap: 9px; flex-wrap: wrap; }
  .topbar .page-title { font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .user { font-size: 12px; gap: 10px; }
  .topbar .user select { max-width: 110px; }
  .content { padding: 14px 12px 84px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mobile-back.show { display: flex; }

  /* 卡片 / 面板 */
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
  .card { padding: 14px; }
  .card .num { font-size: 22px; }
  .panel { padding: 16px 14px; margin-bottom: 16px; }
  .profile-grid { grid-template-columns: 1fr; }

  /* 表单弹窗：手机上全屏 */
  .mask { padding: 0; align-items: stretch; }
  .modal { max-width: 100%; width: 100%; height: 100%; max-height: 100%; border-radius: 0; padding: 18px 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }

  /* 工具栏：竖排、输入占满 */
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar input[type=search], .toolbar input[type=date], .toolbar input[type=month], .toolbar select, .toolbar .btn { width: 100%; flex: 1 1 auto; box-sizing: border-box; }
  .btn { min-height: 42px; }
  .btn.sm { min-height: 36px; }

  /* 表格：缩小内边距、可横向滚动 */
  table.grid th, table.grid td { padding: 9px 10px; font-size: 13px; }
  .att th, .att td { padding: 7px 8px; font-size: 13px; }
  .att .fix0 { min-width: 38px; left: 0; }
  .att .fix1 { min-width: 72px; left: 38px; }
  .att .fix2 { min-width: 84px; left: 110px; }

  /* 登录框：自适应宽度 */
  .login-card { width: 92%; max-width: 420px; padding: 30px 24px; }
  .login-card input, .login-card select { padding: 13px 13px; }
  .login-card .btn { padding: 13px; font-size: 16px; }
}

/* 次要列折叠：默认隐藏，点"更多列"展开 */
table.grid th.xcol, table.grid td.xcol { display: none; }
table.grid.show-all th.xcol, table.grid.show-all td.xcol { display: table-cell; }

/* 数据看板：科技风大屏 */
.board-wrap { background: linear-gradient(180deg, #071021 0%, #0b1a36 100%); min-height: calc(100vh - 70px); padding: 24px; color: #e2e8f0; border-radius: var(--radius); }
.board-header { display: flex; justify-content: center; align-items: center; margin-bottom: 24px; padding: 18px 24px; background: rgba(12, 35, 78, .72); border: 1px solid rgba(59, 130, 246, .35); border-radius: 14px; box-shadow: 0 0 24px rgba(37, 99, 235, .18); position: relative; }
.board-header::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #3b82f6, transparent); opacity: .4; }
.board-title { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 1px; text-shadow: 0 0 10px rgba(59, 130, 246, .5); text-align: center; }
.board-clock { font-family: 'Courier New', monospace; font-size: 18px; color: #93c5fd; font-weight: 600; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
.board-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 24px; }
.board-menu-2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.board-card { position: relative; background: linear-gradient(145deg, rgba(15, 40, 90, .92), rgba(8, 26, 60, .95)); border: 1px solid rgba(59, 130, 246, .35); border-radius: 16px; padding: 28px 24px; text-align: center; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.board-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(37, 99, 235, .35); border-color: rgba(96, 165, 250, .7); }
.board-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(59, 130, 246, .12), transparent 55%); pointer-events: none; }
.board-card-icon { font-size: 42px; margin-bottom: 12px; }
.board-card-icon-warn { text-shadow: 0 0 16px rgba(234, 88, 12, .6); }
.board-card-icon-info { text-shadow: 0 0 16px rgba(37, 99, 235, .6); }
.board-card-title { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.board-card-count { font-size: 38px; font-weight: 700; color: #60a5fa; margin-bottom: 6px; }
.board-card-count span { font-size: 15px; font-weight: 400; color: #93c5fd; margin-left: 4px; }
.board-card-desc { font-size: 13px; color: #94a3b8; }
.board-footer { text-align: center; margin-top: 28px; color: #64748b; font-size: 12px; }

.board-subheader { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 12px 0; border-bottom: 1px solid rgba(59, 130, 246, .25); color: #93c5fd; font-size: 16px; }
.board-subheader .btn { margin-right: 6px; }
.board-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.board-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.board-proj-card { background: rgba(12, 35, 78, .68); border: 1px solid rgba(59, 130, 246, .28); border-radius: 14px; padding: 18px; }
.board-proj-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(59, 130, 246, .2); }
.board-proj-kv { display: flex; align-items: baseline; gap: 8px; margin: 10px 0; color: #cbd5e1; }
.board-proj-kv .board-big { font-size: 28px; font-weight: 700; color: #60a5fa; }
.board-empty-sm { color: #64748b; font-size: 13px; padding: 12px 0; }
.board-finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.board-finance-grid div { background: rgba(15, 23, 42, .45); border-radius: 10px; padding: 12px; }
.board-finance-grid label { display: block; color: #94a3b8; font-size: 12px; margin-bottom: 6px; }
.board-finance-grid b { font-size: 18px; color: #e2e8f0; }

.board-att-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(148, 163, 184, .2); font-size: 13px; color: #cbd5e1; }
.board-att-row:last-child { border-bottom: none; }
.board-att-row b { color: #60a5fa; margin-right: 2px; }

.board-event { background: rgba(15, 23, 42, .45); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.board-event-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.board-event-desc { color: #e2e8f0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.board-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.board-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(59, 130, 246, .35); background: #0b1220; }
.board-thumb-file { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(15, 23, 42, .7); border: 1px solid rgba(59, 130, 246, .3); border-radius: 8px; color: #93c5fd; font-size: 12px; text-decoration: none; }
.board-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 420px; text-align: center; color: #94a3b8; }
.board-ph-icon { font-size: 64px; margin-bottom: 18px; opacity: .8; }
.board-placeholder h3 { color: #e2e8f0; font-size: 20px; margin-bottom: 10px; }
.board-actions { margin-bottom: 16px; }
.board-event-card { background: rgba(12, 35, 78, .68); border: 1px solid rgba(59, 130, 246, .28); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.board-event-title { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; color: #94a3b8; font-size: 13px; }
.board-event-card p { color: #e2e8f0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; margin-bottom: 10px; }
.board-event-actions { text-align: right; }

@media (max-width: 800px) {
  .board-title { font-size: 16px; }
  .board-clock { font-size: 14px; }
  .board-menu { grid-template-columns: 1fr; }
}

/* 考勤表 */
.att-wrap {
  overflow-x: auto;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}
.att {
  border-collapse: collapse;
  width: auto;
  min-width: 100%;
  font-size: 13px;
  background: var(--panel);
}
.att th,
.att td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  background: var(--panel);
}
.att thead th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.att tbody tr:hover td {
  background: #f8fafc;
}
.att tbody tr:hover td.fix {
  background: #f1f5f9;
}
.att .fix {
  position: sticky;
  z-index: 20;
  background: var(--panel);
}
.att .fix0 {
  left: 0;
  min-width: 44px;
  z-index: 30;
  box-shadow: 2px 0 4px rgba(0, 0, 0, .06);
}
.att .fix1 {
  left: 44px;
  min-width: 84px;
  z-index: 30;
  box-shadow: 2px 0 4px rgba(0, 0, 0, .06);
}
.att .fix2 {
  left: 128px;
  min-width: 90px;
  z-index: 30;
  box-shadow: 2px 0 4px rgba(0, 0, 0, .06);
}
.att .cell {
  cursor: pointer;
  color: var(--text);
  min-width: 32px;
  height: 32px;
  transition: background .15s;
}
.att .cell.has {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
}
.att .cell:hover {
  background: #bfdbfe;
}
.att .tot {
  font-weight: 600;
  background: #fffbeb;
  color: #92400e;
}
.att tbody tr:nth-child(odd) td {
  background: #fafafa;
}
.att tbody tr:nth-child(odd) td.fix {
  background: #f5f5f5;
}
.att tbody tr:nth-child(odd):hover td {
  background: #f1f5f9;
}
.att tbody tr:nth-child(odd):hover td.fix {
  background: #e2e8f0;
}
.att tfoot td {
  background: #f8fafc;
  font-weight: 600;
  border-top: 2px solid var(--border);
}
.att tfoot td.fix {
  background: #f1f5f9;
}

/* 身份证识别卡片 */
.idcard-ocr {
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.idcard-ocr .idc-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.idcard-ocr .idc-upload:hover {
  border-color: var(--primary-light);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.idcard-ocr .idc-upload input[type="file"] {
  display: none;
}
.idcard-ocr .idc-upload .idc-file-name {
  color: var(--muted);
  font-weight: 400;
}
.idcard-ocr .idc-upload.has-file .idc-file-name {
  color: var(--text);
}
.idcard-ocr .idc-prev img {
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  max-height: 120px;
}
.idcard-ocr .idc-btn {
  width: 100%;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
}
.idcard-ocr .idc-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}
