/* ============================================================
 * 星匣办公 · 设计系统（app.css）
 * 深色侧栏 + 浅色内容区 · 现代简约办公风格
 * ============================================================ */
:root {
  --primary: #2563eb;
  --primary-d: #1d4ed8;
  --primary-l: #eff6ff;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --bg: #f1f5f9;
  --card: #ffffff;
  --side: #0f172a;
  --side-2: #1e293b;
  --side-t: #94a3b8;
  --t1: #0f172a;
  --t2: #475569;
  --t3: #94a3b8;
  --line: #e2e8f0;
  --line-2: #f1f5f9;
  --r: 12px;
  --r-sm: 8px;
  --sh: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --sh-lg: 0 8px 30px rgba(15, 23, 42, .12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--t1); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
.hide { display: none !important; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1100px 600px at 15% 8%, #1e3a8a 0%, transparent 55%),
              radial-gradient(900px 620px at 88% 92%, #0c4a6e 0%, transparent 50%),
              linear-gradient(160deg, #0b1224 0%, #101a33 48%, #0b1224 100%);
  padding: 24px; position: relative; overflow: hidden;
}
.login-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(148, 163, 184, .14) 1px, transparent 1.4px);
  background-size: 26px 26px; opacity: .5;
}
.login-card {
  width: 400px; max-width: 100%; background: rgba(255, 255, 255, .98);
  border-radius: 18px; box-shadow: 0 30px 80px rgba(2, 8, 23, .55);
  padding: 40px 38px 34px; position: relative; z-index: 2;
}
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.login-logo .lg-mark {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; font-weight: 700; font-size: 20px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.login-logo h1 { font-size: 21px; font-weight: 700; letter-spacing: .5px; }
.login-logo p { font-size: 12px; color: var(--t3); margin-top: 1px; }
.login-sub { color: var(--t2); font-size: 13px; margin: 14px 0 26px; }
.login-card .fld { margin-bottom: 16px; }
.login-btn {
  width: 100%; height: 44px; font-size: 15px; border-radius: 10px; margin-top: 6px;
}
.login-err {
  display: none; background: #fef2f2; color: var(--danger); border: 1px solid #fecaca;
  border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-bottom: 14px;
}
.login-err.on { display: block; }
.login-foot { text-align: center; color: var(--t3); font-size: 12px; margin-top: 26px; }

/* ---------- 应用框架 ---------- */
.layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 228px; flex: 0 0 228px; background: var(--side); color: #e2e8f0;
  display: flex; flex-direction: column; overflow: hidden;
}
.sb-brand {
  height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .12); flex: 0 0 auto;
}
.sb-brand .lg-mark {
  width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; font-weight: 700; font-size: 15px;
}
.sb-brand b { font-size: 15px; font-weight: 600; color: #f1f5f9; letter-spacing: .4px; }
.sb-user {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin: 10px 10px 4px;
  background: rgba(148, 163, 184, .08); border-radius: 10px; flex: 0 0 auto;
}
.sb-user .u-i { min-width: 0; }
.sb-user .u-n { font-size: 13.5px; font-weight: 600; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user .u-d { font-size: 11.5px; color: var(--side-t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-nav { flex: 1; overflow-y: auto; padding: 8px 10px 14px; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .25); }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10.5px 12px; border-radius: 9px;
  color: #cbd5e1; cursor: pointer; margin-bottom: 2px; font-size: 13.5px; user-select: none;
  transition: background .12s, color .12s;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .85; }
.nav-item:hover { background: rgba(148, 163, 184, .1); color: #f1f5f9; }
.nav-item.on { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .4); }
.nav-item.on svg { opacity: 1; }
.nav-badge {
  margin-left: auto; background: #ef4444; color: #fff; font-size: 11px; line-height: 1;
  padding: 3px 6px; border-radius: 9px; font-weight: 600; min-width: 18px; text-align: center;
}
.sb-foot { flex: 0 0 auto; padding: 12px 16px; border-top: 1px solid rgba(148, 163, 184, .12); }
.sb-foot button {
  width: 100%; background: transparent; border: 1px solid rgba(148, 163, 184, .3); color: var(--side-t);
  border-radius: 8px; height: 34px; cursor: pointer; font-size: 13px; transition: .15s;
}
.sb-foot button:hover { color: #f1f5f9; border-color: rgba(148, 163, 184, .55); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 58px; flex: 0 0 auto; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 22px; gap: 14px;
}
.topbar h2 { font-size: 16.5px; font-weight: 600; }
.topbar .sp { flex: 1; }
.topbar .clock { color: var(--t2); font-size: 13px; font-variant-numeric: tabular-nums; }
.bell {
  position: relative; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--t2); transition: .15s;
}
.bell:hover { background: var(--line-2); color: var(--t1); }
.bell svg { width: 19px; height: 19px; }
.bell .dot {
  position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; border-radius: 8px;
  background: #ef4444; color: #fff; font-size: 10.5px; line-height: 16px; text-align: center; padding: 0 4px; font-weight: 600;
}
.bell.ring { animation: shake .5s; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(12deg); } 55% { transform: rotate(-10deg); } 80% { transform: rotate(5deg); } }
.content { flex: 1; overflow-y: auto; padding: 20px 22px 40px; }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.card + .card { margin-top: 16px; }
.card-hd {
  padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px;
}
.card-hd h3 { font-size: 14.5px; font-weight: 600; }
.card-hd .sp { flex: 1; }
.card-bd { padding: 16px 18px; }
.card-bd.p0 { padding: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-side { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1080px) { .grid2, .grid3, .grid-side { grid-template-columns: 1fr; } .sidebar { width: 64px; flex-basis: 64px; } .sb-brand b, .sb-user .u-i, .nav-item span { display: none; } }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 9px; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 13.5px; font-weight: 500;
  transition: .15s; white-space: nowrap;
}
.btn:hover { background: var(--primary-d); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--t2); border: 1px solid var(--line); }
.btn.ghost:hover { color: var(--t1); border-color: #cbd5e1; background: #f8fafc; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b91c1c; }
.btn.ok { background: var(--ok); }
.btn.ok:hover { background: #047857; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 7px; }
.btn.xs { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 表单 ---------- */
.fld { margin-bottom: 14px; }
.fld > label { display: block; font-size: 13px; color: var(--t2); margin-bottom: 6px; font-weight: 500; }
.fld > label .req { color: var(--danger); margin-left: 2px; }
.inp, select.inp, textarea.inp {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px;
  font-size: 14px; color: var(--t1); background: #fff; outline: none; font-family: inherit;
  transition: border .15s, box-shadow .15s;
}
.inp:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
textarea.inp { resize: vertical; min-height: 88px; line-height: 1.65; }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.fld-row { display: flex; gap: 12px; }
.fld-row .fld { flex: 1; }
.radios { display: flex; gap: 8px; flex-wrap: wrap; }
.radios label {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 9px; cursor: pointer; font-size: 13.5px; color: var(--t2); transition: .15s; user-select: none;
}
.radios input { display: none; }
.radios label:hover { border-color: #cbd5e1; }
.radios label.on { border-color: var(--primary); background: var(--primary-l); color: var(--primary-d); font-weight: 500; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; }
.checks label {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--t2); transition: .15s; user-select: none;
}
.checks label:hover { border-color: #cbd5e1; }
.checks label.on { border-color: var(--primary); background: var(--primary-l); color: var(--primary-d); font-weight: 500; }
.checks input { display: none; }
.search-inp {
  border: 1px solid var(--line); border-radius: 9px; height: 36px; padding: 0 12px 0 34px; font-size: 13.5px;
  outline: none; width: 220px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat 12px center;
}
.search-inp:focus { border-color: var(--primary); }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; color: var(--t3); font-weight: 500; font-size: 12.5px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap;
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--t1); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #fafbfd; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl .num-r { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 徽章 / 头像 ---------- */
.rbadge {
  display: inline-block; font-size: 11.5px; line-height: 1; padding: 4px 8px; border-radius: 6px; font-weight: 600;
}
.rb-boss { background: #fef3c7; color: #92400e; }
.rb-sec { background: #ede9fe; color: #5b21b6; }
.rb-mgr { background: #dbeafe; color: #1e40af; }
.rb-fin { background: #d1fae5; color: #065f46; }
.rb-emp { background: #f1f5f9; color: #475569; }
.badge { display: inline-block; font-size: 12px; line-height: 1; padding: 4px 9px; border-radius: 999px; font-weight: 500; }
.bg-wait { background: #fef3c7; color: #92400e; }
.bg-ok { background: #d1fae5; color: #065f46; }
.bg-no { background: #fee2e2; color: #991b1b; }
.bg-info { background: #dbeafe; color: #1e40af; }
.bg-gray { background: #f1f5f9; color: #475569; }
.bg-purple { background: #ede9fe; color: #5b21b6; }
.avat {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  color: #fff; font-weight: 600; flex: 0 0 auto; letter-spacing: .5px;
}

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 46px 20px; color: var(--t3); font-size: 13.5px; }
.empty svg { width: 44px; height: 44px; margin-bottom: 10px; opacity: .4; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 900;
  display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px 20px; overflow-y: auto;
}
.modal-mask.on { display: flex; }
.modal {
  background: #fff; border-radius: 14px; box-shadow: var(--sh-lg); width: 520px; max-width: 100%;
  animation: mup .22s ease; margin-bottom: 6vh;
}
@keyframes mup { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-hd {
  padding: 16px 20px; border-bottom: 1px solid var(--line-2); font-size: 15.5px; font-weight: 600;
  display: flex; align-items: center;
}
.modal-x { margin-left: auto; color: var(--t3); font-size: 22px; cursor: pointer; line-height: 1; padding: 0 4px; }
.modal-x:hover { color: var(--t1); }
.modal-bd { padding: 18px 20px; }
.modal-ft { padding: 14px 20px 18px; display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- toast ---------- */
#toastBox { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #1e293b; color: #f1f5f9; font-size: 13.5px; padding: 10px 18px; border-radius: 10px;
  box-shadow: var(--sh-lg); opacity: 0; transform: translateY(-8px); transition: .25s; max-width: 76vw;
}
.toast.on { opacity: 1; transform: none; }
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }

/* ---------- 工作台 ---------- */
.punch-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
  border-radius: var(--r); color: #fff; padding: 26px 28px; position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(30, 64, 175, .35);
}
.punch-card::after {
  content: ""; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.punch-card::before {
  content: ""; position: absolute; right: 60px; bottom: -90px; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.punch-clock { font-size: 40px; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.punch-date { opacity: .85; font-size: 13.5px; margin: 4px 0 18px; }
.punch-pill {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .16);
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; margin-right: 8px;
}
.punch-actions { margin-top: 18px; display: flex; gap: 12px; position: relative; z-index: 2; }
.punch-actions .btn {
  background: rgba(255, 255, 255, .94); color: #1e40af; font-weight: 600; height: 42px; padding: 0 26px;
  border-radius: 10px; font-size: 14.5px;
}
.punch-actions .btn:hover { background: #fff; }
.punch-actions .btn.done { background: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .8); cursor: default; }
.todo-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2);
  cursor: pointer; transition: background .12s;
}
.todo-row:last-child { border-bottom: none; }
.todo-row:hover { background: #fafbfd; }
.todo-row .t-ic {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.todo-row .t-n { font-weight: 600; font-size: 13.5px; }
.todo-row .t-s { font-size: 12px; color: var(--t3); }
.todo-row .t-cnt { margin-left: auto; font-weight: 700; font-size: 17px; color: var(--primary); font-variant-numeric: tabular-nums; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 760px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 10px;
  cursor: pointer; color: var(--t2); transition: .15s; border: 1px solid transparent; font-size: 12.5px;
}
.quick-item:hover { background: var(--primary-l); color: var(--primary-d); border-color: #dbeafe; }
.quick-item svg { width: 22px; height: 22px; }
.stat-mini { text-align: center; padding: 12px 6px; }
.stat-mini .n { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-mini .l { font-size: 12px; color: var(--t3); margin-top: 2px; }

/* ---------- 考勤月表 ---------- */
.att-stat { display: flex; gap: 8px; flex-wrap: wrap; }
.att-cal { width: 100%; border-collapse: separate; border-spacing: 5px; }
.att-cal th { font-size: 12px; color: var(--t3); font-weight: 500; padding: 4px 0; }
.att-cal td { text-align: center; padding: 0; }
.att-cell {
  min-height: 44px; border-radius: 8px; padding: 5px 2px; font-size: 11.5px; line-height: 1.3;
  background: #f8fafc; border: 1px solid var(--line-2); color: var(--t3);
}
.att-cell .d { font-size: 12.5px; font-weight: 600; color: var(--t2); }
.att-cell.hasexp { background: #f8fafc; }
.att-cell.work-in { background: #ecfdf5; border-color: #a7f3d0; }
.att-cell.work-in .d { color: #047857; }
.att-cell.work-in .tm { color: #059669; }
.att-cell.late { background: #fffbeb; border-color: #fcd34d; }
.att-cell.late .d, .att-cell.late .tm { color: #b45309; }
.att-cell.absent { background: #fef2f2; border-color: #fecaca; }
.att-cell.absent .d, .att-cell.absent .tm { color: #b91c1c; }
.att-cell.leave { background: #f5f3ff; border-color: #ddd6fe; }
.att-cell.leave .d, .att-cell.leave .tm { color: #6d28d9; }
.att-cell.rest { opacity: .55; }
.att-cell.today { outline: 2px solid var(--primary); outline-offset: -1px; }
.leg { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--t3); margin-right: 12px; }
.leg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* ---------- 消息 ---------- */
.msg-layout { display: grid; grid-template-columns: 370px 1fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .msg-layout { grid-template-columns: 1fr; } }
.msg-list { max-height: calc(100vh - 220px); overflow-y: auto; }
.msg-row { display: flex; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s; }
.msg-row:hover { background: #fafbfd; }
.msg-row.on { background: var(--primary-l); }
.msg-row .m-i { min-width: 0; flex: 1; }
.msg-row .m-t { display: flex; align-items: center; gap: 8px; }
.msg-row .m-ti { font-size: 13.5px; font-weight: 500; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.msg-row .m-d { font-size: 12px; color: var(--t3); white-space: nowrap; }
.msg-row .m-f { font-size: 12px; color: var(--t3); margin-top: 2px; }
.msg-row.unread .m-ti { font-weight: 700; color: var(--t1); }
.msg-row.unread .m-f::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; margin-right: 6px; vertical-align: 1px; }
.msg-detail-hd { padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.msg-detail-hd h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.msg-detail-hd .meta { font-size: 12.5px; color: var(--t3); display: flex; gap: 14px; flex-wrap: wrap; }
.msg-body { padding: 18px 20px; font-size: 14px; line-height: 1.85; color: var(--t1); white-space: pre-wrap; word-break: break-word; }
.recip-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0; }
.recip { font-size: 12.5px; background: #f1f5f9; border-radius: 7px; padding: 4px 9px; color: var(--t2); }
.recip.rd { background: #d1fae5; color: #065f46; }

/* ---------- 时间线（任务详情） ---------- */
.tl { position: relative; padding-left: 24px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2.5px solid #cbd5e1;
}
.tl-item.on::before { border-color: var(--primary); background: var(--primary); }
.tl-item .tl-t { font-size: 13.5px; font-weight: 600; }
.tl-item .tl-s { font-size: 12.5px; color: var(--t3); margin-top: 1px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab {
  padding: 10px 16px; font-size: 13.5px; color: var(--t2); cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap; transition: .15s;
}
.tab:hover { color: var(--t1); }
.tab.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ---------- 分栏列表（左侧列表+右侧详情通用） ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }

/* ---------- 文件项 ---------- */
.file-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 9px; margin-bottom: 8px; background: #fff;
}
.file-item .f-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--primary-l); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 10.5px; font-weight: 700; }
.file-item .f-n { font-size: 13px; font-weight: 500; word-break: break-all; }
.file-item .f-s { font-size: 11.5px; color: var(--t3); }
.file-item .sp { flex: 1; }
.upload-zone {
  border: 1.5px dashed #cbd5e1; border-radius: 10px; padding: 18px; text-align: center; color: var(--t3);
  font-size: 13px; cursor: pointer; transition: .15s;
}
.upload-zone:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-l); }

/* ---------- 进度条 ---------- */
.prog { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--primary); border-radius: 3px; transition: width .2s; }

/* ---------- 协作卡 ---------- */
.inter-card { border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.inter-card .ic-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.inter-card .ic-t { font-size: 14px; font-weight: 600; flex: 1; }
.inter-card .ic-m { font-size: 12.5px; color: var(--t3); }
.inter-card .ic-b { font-size: 13.5px; color: var(--t2); margin: 8px 0; white-space: pre-wrap; line-height: 1.7; }
.reply-box { background: #f8fafc; border-radius: 9px; padding: 10px 13px; font-size: 13px; color: var(--t2); margin-top: 8px; border-left: 3px solid var(--primary); }

/* ---------- 报销 ---------- */
.amount { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--t1); }
.amount.big { font-size: 26px; color: var(--primary); }

/* ---------- 个人中心 ---------- */
.profile-hd { display: flex; align-items: center; gap: 18px; padding: 8px 2px 20px; }
.profile-hd .p-n { font-size: 20px; font-weight: 700; }
.profile-hd .p-s { color: var(--t3); font-size: 13px; margin-top: 3px; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv .k { color: var(--t3); }
.kv .v { color: var(--t1); word-break: break-all; }

/* ---------- 移动端 ---------- */
.mobile-top { display: none; }
@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; flex-basis: auto; flex-direction: row; align-items: center; height: 56px; overflow-x: auto; }
  .sb-brand { border: none; height: 56px; padding: 0 12px; }
  .sb-user { display: none; }
  .sb-nav { display: flex; flex: 1; padding: 0 6px; overflow-x: auto; }
  .nav-item { padding: 9px 12px; margin: 0 2px; flex: 0 0 auto; }
  .nav-item span { display: block; font-size: 12.5px; }
  .sb-foot { display: none; }
  .content { padding: 14px 12px 100px; }
  .msg-layout { grid-template-columns: 1fr; }
}
