/* 视觉与“济澜管家”工作台保持一致（D:\开发\lanban\app\web\staff.html） */
:root {
  --bg: #f3f1ec; --surface: #fffefb; --ink: #23211d; --ink-2: #47433b; --muted: #6b665c; --line: #e3ddd0; --line-2: #eeeae0;
  --teal: #1f5f6b; --teal-700: #174d58; --teal-500: #2a7a88; --teal-soft: #e2eff1;
  --red: #b3261e; --red-soft: #fbe7e4; --orange: #a85d17; --orange-soft: #f9ead6; --green: #2e6b4c; --green-soft: #e5efe7;
  --sh: 0 1px 2px rgba(60,48,20,.05), 0 3px 12px rgba(60,48,20,.05);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); }
.layout { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
aside.side { background: var(--teal-700); color: #e7f1f2; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand .lg { width: 34px; height: 34px; border-radius: 10px; background: #2f7d8c; display: grid; place-items: center; font-weight: 800; }
.brand b { display: block; font-size: 1.1rem; letter-spacing: 2px; } .brand small { opacity: .75; }
.nav { text-align: left; color: inherit; padding: 10px 12px; border-radius: 10px; text-decoration: none; display: block; }
.nav:hover { background: rgba(255,255,255,.08); } .nav.on { background: rgba(255,255,255,.16); font-weight: 700; }
.side .me { margin-top: auto; padding: 10px 8px; font-size: .88rem; opacity: .9; border-top: 1px solid rgba(255,255,255,.15); }
.side .me a, .side .me button.link { color: #cfe6ea; }
button.link { background: none; border: 0; padding: 0; text-decoration: underline; }
main { padding: 22px 28px 60px; max-width: 1180px; width: 100%; min-width: 0; }
h1 { font-size: 1.45rem; margin: 0 0 14px; } h2 { font-size: 1.12rem; margin: 0 0 10px; }
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--sh); }
.muted { color: var(--muted); } .small { font-size: .86rem; } .right { margin-left: auto; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn { border: 0; background: var(--teal); color: #fff; border-radius: 9px; padding: 7px 14px; font-weight: 600; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--teal-700); } .btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--surface); color: var(--teal); box-shadow: inset 0 0 0 1px #b5d3d8; }
.btn.warn { background: var(--surface); color: var(--red); box-shadow: inset 0 0 0 1px #e9b8b3; }
.btn.sm { padding: 3px 10px; font-size: .85rem; }
input, select, textarea { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(42,122,136,.3); border-color: var(--teal-500); }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; color: var(--ink-2); }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; align-items: end; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .86rem; white-space: nowrap; }
td:first-child { white-space: nowrap; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.sub td { background: #f8f7f3; font-weight: 600; }
tr.total td { background: var(--teal-soft); font-weight: 700; color: var(--teal-700); }
.tag { display: inline-block; font-size: .78rem; padding: 0 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-700); font-weight: 600; white-space: nowrap; }
.tag.red { background: var(--red-soft); color: var(--red); } .tag.yellow { background: var(--orange-soft); color: var(--orange); }
.tag.green { background: var(--green-soft); color: var(--green); } .tag.gray { background: #eceae4; color: var(--muted); }
.empty { color: var(--muted); padding: 6px 0; }
.notice { border-left: 4px solid; padding: 8px 12px; margin: 0 0 14px; border-radius: 8px; background: var(--surface); }
.notice.ok { border-color: #3a8a63; } .notice.err { border-color: #c0392b; } .notice.info { border-color: #d39a2c; }
.notice p { margin: 2px 0; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  aside.side { flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .brand { padding: 0 8px 0 0; width: 100%; }
  .side .me { margin-top: 6px; width: 100%; }
  main { padding: 16px; }
  .form { grid-template-columns: 1fr 1fr; }
  .scroll table { min-width: 640px; }
  .scroll table.fit { min-width: 0; }
  .hp { display: none; }
  th, td { padding: 7px 8px; font-size: .9rem; }
}
[hidden] { display: none !important; }
