/* Impeccable · operations-ledger
 * Site-wide refinement for the safety management admin surface.
 * Structure and behavior remain owned by the existing pages; this file owns the shared visual language.
 */
:root {
  --op-canvas: #eef3f8;
  --op-paper: #ffffff;
  --op-paper-soft: #f6f9fc;
  --op-paper-blue: #f1f6fc;
  --op-ink: #172b45;
  --op-ink-2: #31506f;
  --op-muted: #657991;
  --op-rule: #d9e3ed;
  --op-rule-strong: #c4d3e2;
  --op-blue: #2f78d0;
  --op-blue-deep: #17579e;
  --op-blue-wash: #e8f2ff;
  --op-green: #21845f;
  --op-green-wash: #e8f6ef;
  --op-amber: #a86d16;
  --op-amber-wash: #fff4df;
  --op-red: #c54646;
  --op-red-wash: #fff0f0;
  --op-shadow-1: 0 1px 2px rgb(20 47 75 / 5%), 0 8px 24px rgb(20 47 75 / 6%);
  --op-shadow-2: 0 16px 44px rgb(20 47 75 / 14%);
  --op-radius: 12px;
  --op-radius-sm: 8px;
}

html { scrollbar-color: #b8c8d8 var(--op-canvas); }
body { background: var(--op-canvas); color: var(--op-ink); }
button, input, select, textarea { font-family: inherit; }

/* Global shell */
.sidebar {
  width: 220px;
  flex-basis: 220px;
  border-right-color: rgb(152 198 239 / 20%);
  background: #102f56;
  background-image: linear-gradient(180deg, #102f56 0%, #123963 52%, #102f56 100%);
  box-shadow: inset -1px 0 rgb(255 255 255 / 7%);
}
.brand { height: 64px; flex-basis: 64px; gap: 7px; padding: 10px 12px; }
.brand::after { width: 96px; height: 96px; top: -58px; left: -52px; opacity: .7; }
.brand-mark { flex-basis: 30px; width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 6px 14px rgb(4 20 43 / 20%), inset 0 1px rgb(255 255 255 / 15%); }
.brand-mark svg { width: 18px; height: 20px; }
.brand-name { font-size: 13px; line-height: 17px; }
.brand-subtitle { font-size: 9px; line-height: 13px; color: #a9c4df; }
.navigation { padding: 10px 8px 14px; }
.menu-group + .menu-group { margin-top: 4px; }
.group-toggle { min-height: 32px; gap: 8px; padding: 4px 9px; border-radius: 7px; color: #a9c2dc; font-size: 12.5px; }
.group-toggle > .nav-icon { width: 15px; height: 15px; }
.menu-label { font-size: 12.5px; line-height: 17px; }
.chevron { width: 14px; height: 14px; }
.submenu { padding-block: 1px 2px !important; }
.submenu-row + .submenu-row { margin-top: 1px; }
.menu-link { min-height: 32px; padding: 6px 9px 6px 34px; border-radius: 7px; color: #ccdaea; font-size: 12.5px; line-height: 17px; }
.submenu-row.is-active { background: #2f78d0; box-shadow: 0 8px 18px rgb(9 46 93 / 22%), inset 0 1px rgb(255 255 255 / 13%); }
.submenu-row.is-active::before { left: 13px; width: 5px; height: 5px; }
.sidebar-footer { flex-basis: 44px; padding: 0 10px; background: rgb(7 34 62 / 22%); }
.collapse-button { min-height: 32px; padding: 6px 9px; font-size: 11.5px; }
.app.is-collapsed .sidebar { width: 56px; flex-basis: 56px; }

.workspace-tabbar {
  height: 40px;
  flex-basis: 40px;
  padding-left: 6px;
  border-bottom-color: var(--op-rule);
  background: rgb(248 251 254 / 96%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 90%);
  backdrop-filter: blur(8px);
}
.wt-strip { padding-top: 2px; }
.wt-tab { margin-right: 2px; border-radius: 7px 7px 0 0; }
.wt-tab-select { min-height: 34px; padding: 5px 5px 5px 9px; gap: 5px; font-size: 11.5px; }
.wt-tab.is-active { color: var(--op-blue-deep); background: var(--op-paper); border-color: var(--op-rule); box-shadow: inset 0 2px var(--op-blue); }
.wt-tab:not(.is-active):hover { background: #edf3f9; color: var(--op-ink); }
.wt-tab-dot { width: 4px; height: 4px; flex-basis: 4px; }
.wt-tab-close { width: 24px; height: 26px; flex-basis: 24px; }
.wt-tools { margin-left: 4px; padding: 4px; border-left-color: var(--op-rule); background: #f8fbfe; }
.up-account { padding: 2px 7px 2px 5px; border-left-color: var(--op-rule); background: rgb(248 251 254 / 96%); }
.up-trigger { min-height: 36px; gap: 7px; }
.up-avatar { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
.up-summary-top strong { font-size: 11.5px; }
.up-organization { font-size: 10.5px; }

.workspace {
  background: var(--op-canvas);
}
.workspace::before { display: none; }
.workspace:is(.employee-workspace, .external-company-workspace, .personnel-training-workspace, .work-supervision-workspace, .violation-evaluation-workspace, .committee-workspace) {
  background: var(--op-canvas);
}

/* Shared content frame */
:is(.sd-page, .wb-page, .er-page, .ec-page, .pt-page, .ws-page, .ve-page, .sc2-page, .sc-page) {
  max-width: 1680px;
  padding: 18px 22px 28px;
}
:is(.sd-shell, .wb-shell) { border: 0; box-shadow: none; background: transparent; }
:is(.er-units, .er-main, .ec-list-panel, .pt-panel, .ws-panel, .ve-panel, .sc2-panel, .sc-panel) {
  border-color: var(--op-rule);
  border-radius: var(--op-radius);
  background: var(--op-paper);
  box-shadow: var(--op-shadow-1);
}
:is(.er-panel, .ec-content, .pt-dialog, .ws-dialog, .ws-drawer, .ve-dialog, .ve-drawer, .sc2-dialog, .sc-drawer) {
  border-color: var(--op-rule);
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow-2);
}

/* Page contexts and compact headings */
:is(.er-unit-context, .ec-heading, .ec-registry-intro, .pt-panel-head, .ws-panel-head, .ve-panel-head, .sc2-summary-header, .sc-panel-head) {
  color: var(--op-ink);
}
:is(.er-unit-context, .ec-heading) { background: var(--op-paper-soft); }
:is(.er-panel-title, .er-department-heading) h2,
:is(.ec-heading strong, .ec-toolbar-title strong, .ec-section-head h3) { color: var(--op-ink); }
:is(.er-panel-title small, .er-department-heading small) { border-color: var(--op-rule); background: var(--op-paper-blue); color: var(--op-muted); }

/* Tree / split workspaces */
.er-layout { gap: 14px; }
.er-units { padding: 12px 9px; }
.er-main { overflow: hidden; }
.er-unit-context { padding: 9px 15px; border-bottom-color: var(--op-rule); }
.er-departments { background: var(--op-paper-soft); border-right-color: var(--op-rule); }
.er-tree-row, .er-department-row { border-radius: 7px; }
.er-tree-row { min-height: 36px; }
.er-tree-row.selected, .er-department-select.selected { background: var(--op-blue-wash); color: var(--op-blue-deep); }
.er-tree-row.selected::after { width: 3px; top: 8px; bottom: 8px; border-radius: 2px; }
.er-tree-row:not(.selected):hover, .er-department-select:hover, .er-department-row:has(:focus-visible) { background: #edf3f9; }
.er-department-select { min-height: 36px; padding-top: 7px; padding-bottom: 7px; border-radius: 7px; }
.er-people { padding: 14px 18px 18px; }

/* Filter and action rhythm */
:is(.er-filters, .ec-company-filters, .ec-registry-filters, .pt-filters, .ws-filters, .ve-filters, .sc2-toolbar, .sc-filters) {
  padding: 11px 13px;
  border-color: var(--op-rule);
  border-radius: var(--op-radius-sm);
  background: var(--op-paper-soft);
  box-shadow: inset 0 1px rgb(255 255 255 / 90%);
}
:is(.er-list-actions, .ec-actions-row, .ec-toolbar, .pt-toolbar, .ws-toolbar, .ve-toolbar, .sc2-change-toolbar, .sc-toolbar) {
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px solid var(--op-rule);
  background: transparent;
}
:is(.er-filter-field, .ec-company-filters label, .ec-registry-filters label, .pt-filters label, .ws-filters label, .ve-filters label, .sc2-toolbar-field, .sc-field) > span,
:is(.er-filter-field > span:not(.sr-only), .ec-field span, .pt-field span, .ws-field span, .ve-field span, .sc2-toolbar-field span, .sc-field span) {
  color: var(--op-muted);
  font-size: 11.5px;
  font-weight: 600;
}
:is(.er-search, .er-filter-field select, .ec-company-filters input, .ec-company-filters select, .ec-registry-filters input, .ec-registry-filters select, .pt-filters input, .pt-filters select, .ws-filters input, .ws-filters select, .ve-filters input, .ve-filters select, .sc2-toolbar-select, .sc-field input, .sc-field select) {
  min-height: 35px;
  border: 1px solid var(--op-rule-strong);
  border-radius: 7px;
  background: var(--op-paper);
  color: var(--op-ink);
  box-shadow: none;
}
:is(.er-search, .er-filter-field select, .ec-company-filters input, .ec-company-filters select, .ec-registry-filters input, .ec-registry-filters select, .pt-filters input, .pt-filters select, .ws-filters input, .ws-filters select, .ve-filters input, .ve-filters select, .sc2-toolbar-select, .sc-field input, .sc-field select):focus-within,
:is(.er-search, .er-filter-field select, .ec-company-filters input, .ec-company-filters select, .ec-registry-filters input, .ec-registry-filters select, .pt-filters input, .pt-filters select, .ws-filters input, .ws-filters select, .ve-filters input, .ve-filters select, .sc2-toolbar-select, .sc-field input, .sc-field select):focus {
  border-color: #7cafe3;
  box-shadow: 0 0 0 3px rgb(47 120 208 / 13%);
  outline: 0;
}

/* Action vocabulary */
:is(.er-button.primary, .er-query-button, .ec-query-button, .ec-primary, .pt-primary, .ws-primary, .ve-primary, .sc2-toolbar-add, .sc-primary, .ec-new-company) {
  min-height: 35px;
  border: 1px solid var(--op-blue);
  border-radius: 7px;
  background: var(--op-blue);
  color: #fff;
  box-shadow: 0 5px 12px rgb(47 120 208 / 18%);
}
:is(.er-button.primary, .er-query-button, .ec-query-button, .ec-primary, .pt-primary, .ws-primary, .ve-primary, .sc2-toolbar-add, .sc-primary, .ec-new-company):hover {
  background: var(--op-blue-deep);
  border-color: var(--op-blue-deep);
  box-shadow: 0 7px 16px rgb(23 87 158 / 20%);
  transform: translateY(-1px);
}
:is(.er-button.ghost, .er-toolbar-link, .ec-toolbar button:not(.ec-primary), .pt-toolbar button:not(.pt-primary), .ws-toolbar button:not(.ws-primary), .ve-toolbar button:not(.ve-primary), .sc2-link-button, .sc-toolbar button:not(.sc-primary)) {
  border-color: transparent;
  background: transparent;
  color: var(--op-ink-2);
  box-shadow: none;
}
:is(.er-button.ghost, .er-toolbar-link, .ec-toolbar button:not(.ec-primary), .pt-toolbar button:not(.pt-primary), .ws-toolbar button:not(.ws-primary), .ve-toolbar button:not(.ve-primary), .sc2-link-button, .sc-toolbar button:not(.sc-primary)):hover {
  background: var(--op-blue-wash);
  color: var(--op-blue-deep);
}

/* Data tables */
:is(.er-table-wrap, .ec-company-table, .ec-registry-table, .pt-table-wrap, .ws-table-wrap, .ve-table-wrap, .sc2-change-table, .sc-table-wrap) {
  border-color: var(--op-rule);
  border-radius: var(--op-radius-sm);
  background: var(--op-paper);
}
:is(.er-table, .ec-company-table table, .ec-registry-table table, .pt-table-wrap table, .ws-table-wrap table, .ve-table-wrap table, .sc2-change-table table, .sc-table-wrap table) {
  font-size: 12.5px;
  border-collapse: separate;
  border-spacing: 0;
}
:is(.er-table, .ec-company-table table, .ec-registry-table table, .pt-table-wrap table, .ws-table-wrap table, .ve-table-wrap table, .sc2-change-table table, .sc-table-wrap table) th {
  padding: 10px 12px;
  background: #f3f7fb;
  color: #536d89;
  border-bottom-color: var(--op-rule);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
}
:is(.er-table, .ec-company-table table, .ec-registry-table table, .pt-table-wrap table, .ws-table-wrap table, .ve-table-wrap table, .sc2-change-table table, .sc-table-wrap table) td {
  height: 44px;
  padding: 8px 12px;
  color: var(--op-ink-2);
  border-bottom-color: #e7edf3;
  white-space: nowrap;
  vertical-align: middle;
}
:is(.er-table, .ec-company-table table, .ec-registry-table table, .pt-table-wrap table, .ws-table-wrap table, .ve-table-wrap table, .sc2-change-table table, .sc-table-wrap table) tbody tr:hover {
  background: #f7fbff;
}
:is(.er-table, .ec-company-table table, .ec-registry-table table, .pt-table-wrap table, .ws-table-wrap table, .ve-table-wrap table, .sc2-change-table table, .sc-table-wrap table) td:first-child,
:is(.er-table, .ec-company-table table, .ec-registry-table table, .pt-table-wrap table, .ws-table-wrap table, .ve-table-wrap table, .sc2-change-table table, .sc-table-wrap table) td strong { color: var(--op-ink); }

/* Status language */
:is(.er-status, .er-admission, .ec-state, .ec-cert-state, .ec-registry-state, .ec-review-state, .ec-agreement-status, .pt-badge, .ws-badge, .ve-badge, .ve-result, .sc2-state, .sc-badge) {
  border: 0;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}
:is(.approved, .valid, .passed, .normal, .reviewed, .state-1, .state-通过) { color: var(--op-green); background: var(--op-green-wash); }
:is(.pending, .expiring, .limited, .rectifying, .recheck, .state-2, .state-补正) { color: var(--op-amber); background: var(--op-amber-wash); }
:is(.expired, .rejected, .danger, .severe, .state-3, .state-4, .state-驳回) { color: var(--op-red); background: var(--op-red-wash); }

/* Cards and statistics */
:is(.er-stat, .ec-stat, .pt-stat-line, .ws-stat, .ve-stat, .sc2-stat, .sc-stat, .wb-shortcut, .wb-status) {
  border-color: var(--op-rule);
  border-radius: var(--op-radius);
  background: var(--op-paper);
  box-shadow: var(--op-shadow-1);
}
:is(.er-stat, .ec-stat, .pt-stat-line, .ws-stat, .ve-stat, .sc2-stat, .sc-stat, .wb-shortcut, .wb-status)::before { display: none; }

/* The training page uses .pt-stat-line as the accent rule inside a stat card. */
.pt-stat-line,
.pt-stat-line::before,
.pt-stat-line::after {
  display: block;
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 3px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--op-blue);
  box-shadow: none;
  pointer-events: none;
}
.pt-stat-line.n1 { background: var(--op-amber); }
.pt-stat-line.n2 { background: var(--op-green); }
.pt-stat-line.n3 { background: var(--op-red); }

/* Drawers / dialogs */
:is(.ec-dialog, .pt-dialog, .ws-dialog, .ve-dialog, .sc2-dialog, .er-dialog) header,
:is(.ec-dialog, .pt-dialog, .ws-dialog, .ve-dialog, .sc2-dialog, .er-dialog) footer {
  background: var(--op-paper-soft);
  border-color: var(--op-rule);
}
:is(.ec-dialog, .pt-dialog, .ws-dialog, .ve-dialog, .sc2-dialog, .er-dialog) header strong { color: var(--op-ink); font-size: 16px; }
:is(.ec-drawer-layer .ec-content, .ve-drawer-layer .ve-drawer, .ws-drawer-layer .ws-drawer, .sc-drawer-layer .sc-drawer) { background: var(--op-paper); }
:is(.ec-drawer-layer .ec-heading, .ve-drawer header, .ws-drawer header, .sc-drawer header) { border-bottom-color: var(--op-rule); background: var(--op-paper-soft); }

/* Dashboard retains its large cards but uses the same surface grammar. */
.safety-dashboard-workspace .sd-shell { max-width: 1540px; }
.safety-dashboard-workspace .sd-overview { margin-top: 22px; }
.safety-dashboard-workspace .sd-panel { border-radius: var(--op-radius); }

/* 安委会汇总工具栏：桌面端保持真正的左右结构，避免标签与控件上下错位。 */
.committee-workspace .sc2-panel > .sc2-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  min-height: 60px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--op-rule);
  border-radius: 0;
  background: var(--op-paper-soft);
  box-shadow: none;
}
.committee-workspace .sc2-page {
  padding: 6px 10px 12px;
}
.committee-workspace .sc2-stats {
  gap: 7px;
  margin-bottom: 8px;
}
.committee-workspace .sc2-stat { padding: 10px 12px; }
.committee-workspace .sc2-stat strong {
  margin-top: 3px;
  font-size: 22px;
  line-height: 26px;
}
.committee-workspace .sc2-panel { border-radius: 10px; }
.committee-workspace .sc2-group-head > strong { min-width: 0; overflow-wrap: anywhere; }
.committee-workspace .sc2-group-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.committee-workspace .sc2-group-tools button,
.committee-workspace .sc2-group-add {
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--op-blue-deep);
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.committee-workspace .sc2-group-tools button:hover,
.committee-workspace .sc2-group-add:hover { background: var(--op-blue-wash); }
.committee-workspace .sc2-group-tools button:focus-visible,
.committee-workspace .sc2-group-add:focus-visible { outline: 2px solid var(--op-blue); outline-offset: 2px; }
.committee-workspace .sc2-groups { grid-template-columns: minmax(0,1fr); gap: 12px; }
.committee-workspace .sc2-group { padding: 0; border-color: var(--op-rule); background: var(--op-paper); container-type: inline-size; }
.committee-workspace .sc2-group-head { padding: 9px 14px; background: var(--op-paper-soft); border-radius: 7px 7px 0 0; }
.committee-workspace .sc2-group-caption { display: flex; align-items: center; gap: 10px; min-width: 0; }
.committee-workspace .sc2-group-caption::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--op-blue); flex-shrink: 0; }
.committee-workspace .sc2-group-caption strong { color: var(--op-ink-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.committee-workspace .sc2-group-caption .sc2-group-count { padding: 1px 6px; border-radius: 4px; background: #eaf0f6; color: var(--op-muted); font-size: 11px; white-space: nowrap; }
.committee-workspace .sc2-group-tools button { color: var(--op-muted); font-size: 11px; }
.committee-workspace .sc2-members { gap: 0; padding: 0; }
.committee-workspace .sc2-member { grid-template-columns: minmax(140px,1fr) 190px 196px; align-items: center; gap: 16px; min-height: 62px; padding: 10px 14px; }
.committee-workspace .sc2-member + .sc2-member { border-top: 1px solid #edf1f5; }
.committee-workspace .sc2-member:hover { background: #fafcff; }
.committee-workspace .sc2-member-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.committee-workspace .sc2-member-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; background: var(--op-blue-wash); color: var(--op-blue-deep); font-size: 12px; font-weight: 600; }
.committee-workspace .sc2-member-main strong { font-size: 13px; color: var(--op-ink); }
.committee-workspace .sc2-member-main small { color: var(--op-muted); font-size: 11px; }
.committee-workspace .sc2-member-info-dot { padding-inline: 6px; color: #a1afbf; }
.committee-workspace .sc2-member-tenure { display: grid; gap: 4px; min-width: 0; }
.committee-workspace .sc2-member-tenure small { color: var(--op-muted); font-size: 10px; }
.committee-workspace .sc2-member-tenure > span { color: var(--op-ink-2); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.committee-workspace .sc2-member-tenure i { padding-inline: 7px; color: #9baabd; font-style: normal; }
.committee-workspace .sc2-member-actions { align-items: center; flex-wrap: nowrap; justify-content: flex-end; gap: 3px; }
.committee-workspace .sc2-member-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 28px; padding: 4px 8px; border-radius: 5px; font-size: 11px; white-space: nowrap; }
.committee-workspace .sc2-member-actions button:hover { background: var(--op-blue-wash); text-decoration: none; }
.committee-workspace .sc2-member-actions .sc2-archive-action { background: var(--op-blue-wash); color: var(--op-blue-deep); }
.committee-workspace .sc2-member-actions .sc2-member-more-trigger { color: var(--op-muted); }
.committee-workspace .sc2-member-more-menu { position: fixed; inset: auto; margin: 0; width: 128px; padding: 5px; border: 1px solid var(--op-rule); border-radius: 8px; background: var(--op-paper); box-shadow: var(--op-shadow-2); }
.committee-workspace .sc2-member-more-menu:popover-open { display: grid; gap: 2px; }
.committee-workspace .sc2-member-more-menu button { min-height: 32px; padding: 7px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--op-ink-2); text-align: left; font: inherit; font-size: 12px; cursor: pointer; }
.committee-workspace .sc2-member-more-menu button:hover { background: var(--op-paper-soft); }
.committee-workspace .sc2-member-more-menu button.danger { color: var(--op-red); }
.committee-workspace .sc2-member-more-menu button.danger:hover { background: var(--op-red-wash); }
.committee-workspace .sc2-group .sc2-empty { display: grid; place-items: center; min-height: 58px; margin: 0; padding: 14px; border: 0; border-radius: 0; background: transparent; font-size: 12px; }
.committee-workspace details.sc2-group > summary { list-style: none; cursor: pointer; user-select: none; }
.committee-workspace details.sc2-group > summary::-webkit-details-marker { display: none; }
.committee-workspace details.sc2-group:not([open]) > summary { border-bottom: 0; border-radius: 7px; }
.committee-workspace .sc2-group-chevron { flex-shrink: 0; color: var(--op-muted); }
.committee-workspace details.sc2-group[open] > summary .sc2-group-chevron { transform: rotate(90deg); }
.committee-workspace .sc2-group-caption::before { display: none; }
.committee-workspace .sc2-member-check { width: 15px; height: 15px; margin: 0; flex-shrink: 0; accent-color: var(--op-blue); cursor: pointer; }
.committee-workspace .sc2-member-check:disabled { cursor: default; opacity: .4; }
.committee-workspace .sc2-member.is-selected { background: #f0f6ff; }
.committee-workspace .sc2-member-bulk-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 0 0 8px; border-bottom: 1px solid var(--op-rule); font-size: 12px; }
.committee-workspace .sc2-select-all { display: inline-flex; align-items: center; gap: 7px; color: var(--op-ink-2); cursor: pointer; }
.committee-workspace .sc2-member-selected { color: var(--op-muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.committee-workspace .sc2-member-bulk-actions,
.committee-workspace .sc2-group-fold-actions { display: flex; align-items: center; gap: 4px; }
.committee-workspace .sc2-group-fold-actions { margin-left: auto; }
.committee-workspace .sc2-member-bulk-toolbar button { min-height: 28px; padding: 4px 7px; border: 0; border-radius: 5px; background: transparent; color: var(--op-blue-deep); font: inherit; font-size: 11px; white-space: nowrap; cursor: pointer; }
.committee-workspace .sc2-member-bulk-toolbar button:hover:not(:disabled) { background: var(--op-blue-wash); }
.committee-workspace .sc2-member-bulk-toolbar button.danger { color: var(--op-red); }
.committee-workspace .sc2-member-bulk-toolbar button:disabled { color: #a0acba; cursor: not-allowed; }
.committee-workspace .sc2-group-fold-actions button { color: var(--op-muted); }
.committee-workspace summary.sc2-group-head:focus-visible { outline: 2px solid var(--op-blue); outline-offset: 2px; }
.sc2-batch-targets { display: grid; gap: 0; max-height: 144px; margin: 0 0 16px; padding: 0; overflow-y: auto; list-style: none; border-bottom: 1px solid var(--op-rule); }
.sc2-batch-targets li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 12px; }
.sc2-batch-targets strong { flex-shrink: 0; color: var(--op-ink); }
.sc2-batch-targets span { color: var(--op-muted); }
@container (max-width: 570px) {
  .committee-workspace .sc2-member { grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; }
  .committee-workspace .sc2-member-identity { grid-column: 1; grid-row: 1 / 3; }
  .committee-workspace .sc2-member-tenure { grid-column: 2; grid-row: 1; text-align: right; }
  .committee-workspace .sc2-member-tenure small { display: none; }
  .committee-workspace .sc2-member-actions { grid-column: 2; grid-row: 2; }
}
@container (max-width: 390px) {
  .committee-workspace .sc2-member { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .committee-workspace .sc2-member-identity { grid-column: 1; grid-row: 1; }
  .committee-workspace .sc2-member-tenure { grid-column: 1; grid-row: 2; text-align: left; padding-left: 40px; }
  .committee-workspace .sc2-member-actions { grid-column: 1; grid-row: 3; justify-content: flex-start; padding-left: 32px; }
}
.committee-workspace .sc2-person-archive-link { padding: 0; border: 0; background: transparent; color: var(--op-blue-deep); font: inherit; font-weight: 600; cursor: pointer; }
.committee-workspace .sc2-person-archive-link:hover { text-decoration: underline; }
.sc2-action-note { margin: 0 0 16px; padding: 10px 12px; border-radius: 6px; background: var(--op-paper-blue); color: var(--op-ink-2); font-size: 12px; line-height: 1.8; }
.sc2-member-archive { width: min(1040px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.sc2-member-archive > header { position: sticky; top: 0; z-index: 1; background: var(--op-paper); }
.sc2-archive-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border-radius: 8px; background: var(--op-blue-wash); color: var(--op-ink-2); font-size: 13px; }
.sc2-archive-summary > strong { color: var(--op-blue-deep); font-size: 16px; }
.sc2-archive-summary > small { flex-basis: 100%; font-size: 12px; }
.sc2-archive-info { display: grid; grid-template-columns: 110px minmax(0,1fr) 110px minmax(0,1fr); gap: 12px 16px; margin: 0 0 24px; font-size: 12px; line-height: 1.6; }
.sc2-archive-info dt { color: var(--op-muted); }
.sc2-archive-info dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--op-ink); }
.sc2-member-archive h3 { margin: 0 0 12px; font-size: 13px; color: var(--op-ink-2); }
.sc2-archive-table-wrap { overflow-x: auto; border: 1px solid var(--op-rule); border-radius: 6px; }
.sc2-archive-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.sc2-archive-table th { padding: 10px 12px; background: var(--op-paper-soft); color: var(--op-muted); font-weight: 500; white-space: nowrap; }
.sc2-archive-table td { padding: 10px 12px; border-top: 1px solid var(--op-rule); color: var(--op-ink-2); white-space: nowrap; }
.sc2-archive-table small { display: block; margin-top: 3px; color: var(--op-muted); }
@media (max-width: 680px) {
  .sc2-archive-info { grid-template-columns: 96px minmax(0,1fr); gap: 10px 12px; }
  .committee-workspace .sc2-member { grid-template-columns: minmax(0,1fr) auto; }
}
.committee-workspace .sc2-mode-switch { flex: 0 0 auto; }
.committee-workspace .sc2-toolbar-fields {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
}
.committee-workspace .sc2-toolbar-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}
.committee-workspace .sc2-toolbar-field > span {
  flex: 0 0 auto;
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 600;
}
.committee-workspace .sc2-toolbar-field.sc2-toolbar-select {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.committee-workspace .sc2-toolbar-field input,
.committee-workspace .sc2-toolbar-field select {
  height: 34px;
  min-height: 34px;
  width: 190px;
  border: 1px solid var(--op-rule-strong);
  border-radius: 7px;
  background: var(--op-paper);
  color: var(--op-ink);
  font-size: 13px;
}
.committee-workspace .sc2-toolbar-select select { width: 150px; }
.committee-workspace .sc2-refresh {
  flex: 0 0 auto;
  min-height: 34px;
  margin-left: auto;
  padding: 7px 12px;
  border: 1px solid var(--op-blue);
  border-radius: 7px;
  background: var(--op-blue);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 5px 12px rgb(47 120 208 / 18%);
}
.committee-workspace .sc2-refresh:hover { background: var(--op-blue-deep); border-color: var(--op-blue-deep); }
/* 成员变动档案沿用人员档案的筛选与操作层次。 */
.committee-workspace .sc2-change-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.committee-workspace .sc2-change-filters { align-items: center; gap: 8px; }
.committee-workspace .sc2-change-filters label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--op-muted);
  font-size: 11px;
  white-space: nowrap;
}
.committee-workspace .sc2-change-filters input,
.committee-workspace .sc2-change-filters select {
  height: 32px;
  min-height: 32px;
  border-color: #d3dce7;
  border-radius: 5px;
  font-size: 12px;
}
.committee-workspace .sc2-change-filters input { width: 180px; max-width: 100%; }
.committee-workspace .sc2-change-filters select { width: 90px; }
.committee-workspace .sc2-change-actions-top {
  min-height: 56px;
  padding: 8px 0 4px;
  border-top: 1px solid var(--op-rule);
  align-items: center;
}
.committee-workspace .sc2-change-actions-top button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 10px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.committee-workspace .sc2-change-actions-top button.primary { background: var(--op-blue); color: #fff; }
.committee-workspace .sc2-change-actions-top button.primary:hover { background: var(--op-blue-deep); }
.committee-workspace .sc2-change-actions-top .sc2-change-export { margin-left: auto; font-size: 12px; }
.committee-workspace .sc2-change-actions-top .sc2-change-export:hover { background: var(--op-paper-soft); color: var(--op-blue-deep); }
.committee-workspace .sc2-summary { padding: 14px 16px 18px; }
.committee-workspace .sc2-summary-row {
  grid-template-columns: minmax(180px, 1.35fr) minmax(120px, .95fr) 62px 62px 62px minmax(160px, 1.1fr) 68px;
  gap: 9px;
  padding: 10px 12px;
}

/* 员工档案：恢复机构/部门与人员的左右结构，并把密度收紧到更适合连续操作的节奏。 */
.workspace.employee-workspace {
  padding: 8px 10px;
}
.workspace.employee-workspace .er-page {
  max-width: none;
  padding: 0;
}
.workspace.employee-workspace .er-layout { gap: 8px; }
.workspace.employee-workspace .er-main { min-height: calc(100dvh - var(--workspace-tabs-height) - 16px); }
.workspace.employee-workspace .er-management {
  grid-template-columns: 196px minmax(0, 1fr);
}
.workspace.employee-workspace .er-departments { padding: 8px 7px; }
.workspace.employee-workspace .er-organization-context { margin-bottom: 8px; padding-bottom: 8px; }
.workspace.employee-workspace .er-department-heading { margin-bottom: 7px; }
.workspace.employee-workspace .er-department-list { gap: 2px; }
.workspace.employee-workspace .er-department-select { min-height: 32px; padding-top: 5px; padding-bottom: 5px; }
.workspace.employee-workspace .er-people { padding: 8px 10px 12px; }
.workspace.employee-workspace .er-people-context { margin-bottom: 8px; }
.workspace.employee-workspace .er-filters {
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.workspace.employee-workspace .er-filter-primary { gap: 7px; }
.workspace.employee-workspace .er-filter-field { gap: 6px; }
.workspace.employee-workspace .er-filter-field > span:not(.sr-only) {
  color: #66788d;
  font-size: 11px;
  font-weight: 600;
}
.workspace.employee-workspace .er-search {
  min-height: 32px;
  height: 32px;
  padding-inline: 8px;
  border-color: #d3dce7;
  border-radius: 5px;
  background: #fff;
}
.workspace.employee-workspace .er-search input {
  height: 30px;
  font-size: 12px;
}
.workspace.employee-workspace .er-filter-field select {
  height: 32px;
  min-height: 32px;
  padding: 4px 8px;
  border-color: #d3dce7;
  border-radius: 5px;
  font-size: 12px;
}
.workspace.employee-workspace .er-filter-actions,
.workspace.employee-workspace .er-filter-actions .er-button {
  min-height: 32px;
}
.workspace.employee-workspace .er-filter-actions .er-button {
  padding-block: 4px;
  font-size: 12px;
}
.workspace.employee-workspace .er-list-actions {
  min-height: 56px;
  margin: 7px 0 8px;
  padding: 8px 0 4px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--op-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.workspace.employee-workspace .er-list-primary-actions,
.workspace.employee-workspace .er-list-secondary-actions {
  align-items: center;
}
.workspace.employee-workspace .er-list-actions .er-button {
  min-height: 32px;
  padding-block: 5px;
  border-color: transparent;
  box-shadow: none;
}
.workspace.employee-workspace .er-list-actions .er-button:hover {
  border-color: transparent;
  box-shadow: none;
}
.workspace.employee-workspace .er-table th { padding: 7px 8px; }
.workspace.employee-workspace .er-table td { height: 38px; padding: 6px 8px; }
.workspace.employee-workspace .er-list-footer { margin-top: 10px; }

@media (min-width: 761px) {
  .workspace.employee-workspace .er-management { grid-template-columns: 196px minmax(0, 1fr); }
  .workspace.employee-workspace .er-departments { border-right: 1px solid var(--op-rule); border-bottom: 0; }
}
@media (min-width: 761px) and (max-width: 1150px) {
  .workspace.employee-workspace .er-filter-primary {
    grid-template-columns: minmax(120px, 1.2fr) repeat(2, minmax(88px, 1fr)) auto;
    gap: 5px;
  }
  .workspace.employee-workspace .er-filter-field { gap: 4px; }
  .workspace.employee-workspace .er-filter-field > span:not(.sr-only) { font-size: 10px; }
  .workspace.employee-workspace .er-filter-actions .er-button { padding-inline: 8px; }
}
@media (max-width: 760px) {
  .workspace.employee-workspace { padding: 8px; }
  .workspace.employee-workspace .er-management { grid-template-columns: minmax(0, 1fr); }
  .workspace.employee-workspace .er-departments { padding: 8px 9px; border-right: 0; border-bottom: 1px solid var(--op-rule); }
  .workspace.employee-workspace .er-people { padding: 8px 9px 10px; }
}

/* Empty/loading surfaces should look intentional. */
:is(.er-empty, .ec-empty, .pt-empty, .ws-empty, .ve-empty, .sc2-empty, .sc-empty, .wb-empty) {
  color: var(--op-muted);
  background: var(--op-paper-soft);
  border-radius: var(--op-radius-sm);
}

@media (max-width: 1024px) {
  .sidebar { width: 224px; flex-basis: 224px; }
  .app.is-collapsed .sidebar { width: 56px; flex-basis: 56px; }
  :is(.sd-page, .wb-page, .er-page, .ec-page, .pt-page, .ws-page, .ve-page, .sc2-page, .sc-page) { padding-inline: 16px; }
}
@media (max-width: 768px) {
  :is(.sd-page, .wb-page, .er-page, .ec-page, .pt-page, .ws-page, .ve-page, .sc2-page, .sc-page) { padding: 14px 12px 22px; }
  .workspace-tabbar { height: 42px; flex-basis: 42px; }
  :is(.er-units, .er-main, .ec-list-panel, .pt-panel, .ws-panel, .ve-panel, .sc2-panel, .sc-panel) { border-radius: 10px; }
}
@media (max-width: 900px) {
  .committee-workspace .sc2-panel > .sc2-toolbar { align-items: stretch; flex-wrap: wrap; }
  .committee-workspace .sc2-toolbar-fields { flex: 1 1 100%; order: 3; }
  .committee-workspace .sc2-refresh { margin-left: 0; }
}
@media (max-width: 640px) {
  .sidebar { width: 56px; flex-basis: 56px; }
  .brand { justify-content: center; padding-inline: 8px; }
  .brand-copy, .menu-copy, .group-toggle > .chevron, .submenu, .collapse-label, .collapse-button::after { display: none; }
  .navigation { padding-inline: 6px; }
  .group-toggle { justify-content: center; padding-inline: 8px; }
  .sidebar-footer { padding-inline: 6px; }
  .collapse-button { justify-content: center; padding-inline: 8px; }
  .up-summary, .up-chevron { display: none; }
  .up-trigger { width: 34px; justify-content: center; padding: 0; }
  .committee-workspace .sc2-panel > .sc2-toolbar { padding: 12px; }
  .committee-workspace .sc2-toolbar-fields { flex-wrap: wrap; width: 100%; }
  .committee-workspace .sc2-toolbar-field { flex: 1 1 180px; }
  .committee-workspace .sc2-toolbar-field input,
  .committee-workspace .sc2-toolbar-field select,
  .committee-workspace .sc2-toolbar-select select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
