/* ============================================================================
   桌面端外壳：人事专员 / 人事主管 / 主管理员
   固定窄侧栏 + 宽内容区；表格优先，信息密度高。
   ========================================================================== */

body[data-client="desktop"] .shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

/* ------------------------------------------------------------------ 侧栏 */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.brand {
  padding: var(--s-4) var(--s-4) var(--s-3);
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: var(--t-md);
}
.brand-mark i {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent);
  position: relative;
  flex: none;
}
.brand-mark i::after {
  content: "";
  position: absolute;
  inset: 5px 5px 5px 5px;
  border: 1.5px solid var(--accent-ink);
  border-radius: 1px;
}
.brand-sub { font-size: var(--t-xs); color: var(--ink-3); margin-top: 3px; }

.nav { padding: var(--s-3) var(--s-2); overflow: auto; flex: 1; }
.nav-group-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); padding: var(--s-3) var(--s-3) 6px; }
.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 8px var(--s-3);
  border-radius: var(--radius);
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 550;
  border-left: 2px solid transparent;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-left-color: var(--accent);
}
.nav a .nav-count {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface-3);
  color: var(--ink-2);
  padding: 0 5px;
  border-radius: 999px;
}
.nav a[aria-current="page"] .nav-count { background: var(--surface); }

.sidebar-foot { padding: var(--s-3); border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: var(--s-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink-2);
  display: grid; place-items: center;
  font-size: var(--t-xs); font-weight: 700;
  flex: none;
}
.who-name { font-size: var(--t-sm); font-weight: 600; line-height: 1.2; }
.who-role { font-size: 11px; color: var(--ink-3); }

/* --------------------------------------------------------------- 顶栏/内容 */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-5);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: var(--t-lg); }
.topbar-sub { font-size: var(--t-xs); color: var(--ink-3); }

.view { padding: var(--s-5) var(--s-5) var(--s-8); max-width: 1500px; }
.section + .section { margin-top: var(--s-5); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.section-head h2 { font-size: var(--t-lg); }
.section-head .eyebrow { display: block; margin-bottom: 2px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-4); align-items: start; }
@media (max-width: 1180px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* 详情抽屉里的表单两列 */
.drawer .grid-2 { grid-template-columns: 1fr 1fr; }

/* 桌面表格里的小按钮组 */
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; }
