/* 正式页面沿用原型布局，主题颜色由公共 theme.css 统一提供。 */
[hidden] { display: none !important; }

/* 企业资料未返回时使用中性占位，只有确认未配置 Logo 后才显示平台标识。 */
.sidebar .brand-mark { padding: 0; align-items: center; justify-content: center; background: #f1f3f5; color: #667085; font-size: 17px; font-weight: 600; }
.sidebar .brand-mark.is-platform { background: url("../images/brand/51tuodian-mark.svg?v=4") center / contain no-repeat; }
.sidebar .brand-mark.has-logo { padding: 2px; background: #fff; }
/* 企业名称与系统说明分两行显示，长名称省略以保持侧栏宽度。 */
.sidebar .tenant-brand-copy { min-width: 0; flex: 1; }
.sidebar .brand .tenant-brand-title { overflow: hidden; font-size: 14px; line-height: 20px; letter-spacing: .2px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .tenant-brand-copy small { font-size: 11px; line-height: 16px; white-space: nowrap; }

/* 所有租户页面沿用机会点详情页的顶部与左右边距，底部留白保持原有响应式规则。 */
.content, .settings-mode .content { padding-top: 14px; padding-right: 12px; padding-left: 12px; }

/* 桌面气泡位于个人入口右侧，引导线从三个点右侧引出，不挤占业务页面。 */
.setup-guide { position: fixed; z-index: 35; left: var(--setup-guide-left, calc(var(--sidebar) + 40px)); bottom: var(--setup-guide-bottom, 20px); width: min(340px, calc(100vw - 24px)); padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 32px rgba(20,24,28,.14); }
.setup-guide-heading { display: flex; align-items: center; gap: 12px; padding-right: 16px; }
.setup-guide-icon { display: inline-flex; width: 38px; height: 38px; flex: 0 0 38px; align-items: center; justify-content: center; border-radius: 8px; color: var(--primary); background: var(--primary-soft); }
.setup-guide-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.setup-guide-eyebrow { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.setup-guide h2 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5; }
.setup-guide p { margin: 14px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.setup-guide-location { margin-bottom: 18px; padding: 12px; border-radius: 7px; color: var(--muted); background: #f6f7f8; font-size: 12px; line-height: 1.7; }
.setup-guide-location strong { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; font-weight: 500; }
.setup-guide-location strong span { padding: 0 6px; color: var(--muted); }
.setup-guide-mobile-hint { display: none; }
.setup-guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.setup-guide .setup-guide-dismiss, .setup-guide .setup-guide-close { border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
.setup-guide .setup-guide-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; font-size: 21px; }
.setup-guide .setup-guide-dismiss:hover, .setup-guide .setup-guide-close:hover { color: var(--primary); background: var(--primary-soft); }
.setup-guide a:focus-visible, .setup-guide button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.setup-guide-leader { position: absolute; bottom: var(--setup-guide-connector-bottom, 12px); left: -64px; width: 64px; height: 44px; color: var(--primary); overflow: visible; pointer-events: none; }
.setup-guide-leader path { fill: none; stroke: currentColor; stroke-width: 1.5; }
.setup-guide-leader circle { fill: currentColor; }
.setup-guide-leader-mobile { display: none; }
body.setup-guide-active .sidebar-foot .user-menu { box-shadow: 0 0 0 2px var(--primary); background: var(--primary-soft); }
/* 用户操作个人菜单时让出浮层空间，关闭菜单后仍可阅读未关闭的提醒。 */
body:has(#user-menu[aria-expanded="true"]) .setup-guide { visibility: hidden; pointer-events: none; }
@media (max-width: 820px) {
  /* 窄屏右侧空间不足时气泡放在入口上方，连接线仍从三个点右侧引出。 */
  .setup-guide { --setup-guide-bottom: var(--setup-guide-mobile-bottom, 108px); left: 12px; padding: 16px; }
  .setup-guide-leader { left: var(--setup-guide-mobile-connector-left, 228px); bottom: -44px; }
  .setup-guide-leader-desktop { display: none; }
  .setup-guide-leader-mobile { display: block; }
  body:not(.menu-open) .setup-guide { --setup-guide-bottom: 20px; }
  body:not(.menu-open) .setup-guide-leader, body:not(.menu-open) .setup-guide-desktop-hint { display: none; }
  body:not(.menu-open) .setup-guide-mobile-hint { display: inline; }
  body.setup-guide-active:not(.menu-open) .mobile-menu { box-shadow: 0 0 0 2px var(--primary); color: var(--primary); }
}
@media (max-height: 500px) {
  .setup-guide { max-height: calc(100dvh - var(--setup-guide-bottom, 20px) - 12px); overflow-y: auto; }
  .setup-guide-leader { display: none; }
}

.navigation-module > div { display: grid; gap: 2px; }
.navigation-module + .navigation-module { margin-top: 17px; }
.topbar { height: 56px; gap: 16px; padding: 0 20px; }
.sidebar .brand { height: 56px; flex-shrink: 0; }
.topbar-actions { position: relative; flex-shrink: 0; }
.topbar-breadcrumbs { flex: 1; min-width: 0; }
.topbar-breadcrumbs ol { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.topbar-breadcrumbs li { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--muted); font-size: 13px; }
.topbar-breadcrumbs li + li::before { content: "/"; flex-shrink: 0; color: #b9bdc2; font-weight: 400; }
.topbar-breadcrumbs li > a, .topbar-breadcrumbs li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-breadcrumbs li:not(:last-child) { max-width: 240px; }
.topbar-breadcrumbs li[aria-current="page"] { color: var(--ink); font-weight: 600; }
.topbar-breadcrumbs a:hover { color: var(--primary); }
.topbar-breadcrumbs a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
.topbar-actions .notification-button { width: auto; height: 34px; gap: 7px; padding: 0 10px; border-color: transparent; background: transparent; font-size: 13px; }
/* 窄屏只保留当前位置，优先保证侧栏开关和提醒入口的点击空间。 */
@media (max-width: 820px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .topbar .mobile-menu { flex-shrink: 0; width: 34px; height: 34px; }
  .topbar-breadcrumbs li:not(:last-child) { display: none; }
  .topbar-breadcrumbs li + li::before { display: none; }
  .topbar-actions { gap: 5px; }
  .topbar-actions .notification-button { width: 34px; padding: 0; }
  .notification-label { display: none; }
}
.nav-icon { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; align-items: center; justify-content: center; }
.help-spark { color: var(--primary); font-size: 18px; }
.chevron { color: #a0a0a0; font-size: 21px; line-height: 1; }
.sidebar-foot { position: relative; flex-shrink: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.sidebar-foot .user-menu { width: 100%; min-width: 0; margin: 0; padding: 9px 7px; border-radius: 8px; }
.sidebar-foot .user-menu:hover, .sidebar-foot .user-menu[aria-expanded="true"] { background: var(--primary-soft); }
/* 个人入口使用通用人物图标，避免以姓名首字充当头像；窄屏侧栏同样保留图标。 */
.sidebar-foot .user-menu .user-menu-icon { display: inline-flex; width: 32px; height: 32px; flex: 0 0 32px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #f0f1f2; }
.user-menu-icon svg { width: 19px; height: 19px; stroke-width: 1.6; }
.sidebar-foot .user-menu:hover .user-menu-icon, .sidebar-foot .user-menu[aria-expanded="true"] .user-menu-icon { border-color: transparent; color: var(--primary); background: var(--primary-soft); }
.sidebar-foot .user-menu .user-menu-info { display: block; flex: 1; min-width: 0; }
.sidebar-foot .user-menu-info strong { font-size: 13px; font-weight: 600; }
.sidebar-foot .user-menu-info small { font-size: 11px; }
.sidebar-foot .user-menu-info strong, .sidebar-foot .user-menu-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot .user-menu .user-menu-more { display: inline-flex; width: 16px; height: 16px; flex: 0 0 16px; align-items: center; justify-content: center; color: var(--muted); }
.user-menu-more svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.user-popover { position: absolute; z-index: 40; bottom: calc(100% + 8px); left: 12px; width: calc(100% - 24px); padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.user-menu-primary { max-height: calc(100dvh - 100px); overflow-y: auto; }
.user-popover-profile { display: grid; gap: 4px; padding: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.user-popover-profile strong { font-size: 13px; }
.user-popover small { color: var(--muted); font-size: 11px; }
.user-popover button { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 40px; padding: 9px 10px; border: 0; border-radius: 6px; color: var(--ink); background: transparent; font-size: 13px; text-align: left; cursor: pointer; }
.user-popover button svg { flex-shrink: 0; width: 17px; height: 17px; color: var(--muted); }
.user-popover button .chevron { margin-left: auto; }
/* 个人菜单及帮助子菜单的悬停、键盘焦点和展开状态统一跟随当前皮肤。 */
#user-popover button:hover, #user-popover button:focus-visible, #user-popover button[aria-expanded="true"] { color: var(--primary); background: var(--primary-soft); }
.user-popover button:hover svg, .user-popover button:focus-visible svg, .user-popover button[aria-expanded="true"] svg,
.user-popover button:hover .chevron, .user-popover button:focus-visible .chevron, .user-popover button[aria-expanded="true"] .chevron { color: inherit; }
.sidebar-foot button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.user-popover hr { margin: 5px 4px; border: 0; border-top: 1px solid var(--line); }
.user-popover #logout-button { color: var(--red); }
.user-popover #logout-button svg { color: inherit; }
.user-help-submenu { position: absolute; bottom: 0; left: calc(100% + 8px); width: 210px; max-height: calc(100dvh - 100px); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.user-help-submenu h2 { margin: 0; padding: 8px 10px; color: var(--muted); font-size: 11px; font-weight: 500; }
.user-help-submenu a { display: flex; width: 100%; align-items: center; min-height: 40px; padding: 9px 10px; border-radius: 6px; color: var(--ink); font-size: 13px; text-decoration: none; }
#user-popover .user-help-submenu a:hover, #user-popover .user-help-submenu a:focus-visible { color: var(--primary); background: var(--primary-soft); }
.user-help-submenu a:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.user-help-submenu .user-help-back { display: none; }
/* 移动端在同一弹层内切换帮助目录，避免二级菜单超出屏幕。 */
@media (max-width: 820px) {
  .user-popover.is-help-open .user-menu-primary { display: none; }
  .user-help-submenu { position: static; width: 100%; padding: 0; border: 0; box-shadow: none; }
  .user-help-submenu .user-help-back { display: flex; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--muted); }
}
.notification-button { overflow: visible; }
.notification-button .theme-icon { display: block; width: 19px; height: 19px; object-fit: contain; }
.notification-button b { position: absolute; top: -5px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #fff; border-radius: 9px; color: #fff; background: var(--red); font-size: 10px; font-weight: 750; line-height: 13px; text-align: center; }
.notification-button.is-open { border-color: var(--primary-soft); background: var(--primary-soft); }
.notification-popover { position: absolute; z-index: 40; top: 47px; right: 0; width: min(460px,calc(100vw - 32px)); overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 16px 38px rgba(20,24,28,0.18); }
.notification-popover-head { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.notification-popover-head strong,.notification-popover-head small { display: block; }
.notification-popover-head strong { font-size: 14px; }
.notification-popover-head small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.notification-popover-head .link-button { padding: 5px 0; white-space: nowrap; }
.notification-popover-list { max-height: min(680px,calc(100vh - 112px)); overflow-y: auto; }
.notification-item { display: grid; gap: 5px; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid #efefef; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: #fafafa; }
.notification-item.is-unread { background: #f9f9f9; }
.notification-item-header { display: block; }
.notification-item-main { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.notification-item-main strong,.notification-item-main time,.notification-item-main em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-item-main strong { font-size: 12px; }
.notification-item-main time { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.notification-item-main em { flex: 0 0 auto; margin-left: auto; color: var(--muted); font-size: 10px; font-style: normal; }
.notification-item.is-unread .notification-item-main em { color: var(--primary); }
.notification-item-content { min-height: 18px; overflow: hidden; color: #4e4e4e; font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.notification-item-project { display: block; overflow: hidden; padding-left: 8px; border-left: 2px solid var(--primary-soft); color: var(--muted); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.notification-empty { padding: 34px 18px; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 560px) { .notification-popover { position: fixed; top: 58px; right: 16px; } .notification-item { padding: 9px 12px; } }
.password-change-dialog { width: min(460px,100%); }
.password-form { display: grid; gap: 16px; }
.password-change-dialog .inline-error { margin-top: 14px; }

.page-head h1,.page-head h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 27px; font-weight: 600; letter-spacing: -.4px; }
.page-head p { margin: 7px 0 0; }
/* 三个核心列表页共用标题与首块内容间距，避免页面专属样式造成视觉跳动。 */
.page-head.list-page-head { margin-bottom: 14px !important; }
.toolbar-group { display: flex; align-items: center; gap: 8px; }
.search-box { display: flex; width: 250px; height: 36px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.search-box:before { content: "⌕"; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; }
.select { height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: #fff; }
.field-hint { color: var(--muted); font-size: 11px; }

.section-card { padding: 0; }
.section-head { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 0 19px; border-bottom: 1px solid var(--line); }
.section-head h3 { margin: 0; font-size: 15px; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.section-card > .page-flow,
.section-card > .profile-grid { margin: 18px 19px; }
.embedded-empty { padding: 36px 20px; color: var(--muted); text-align: center; }
.embedded-empty h3 { margin: 8px 0 6px; color: var(--ink); }
.embedded-empty p { margin: 0; font-size: 12px; }

.state-view { display: grid; min-height: 360px; place-items: center; padding: 48px 20px; text-align: center; }
.state-view .state-icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 16px; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.state-view .state-icon[hidden] { display: none; }
.state-view .state-icon.is-warning { color: #a76a16; background: #fff3dc; }
.state-view .state-icon.is-warning svg { width: 28px; height: 28px; }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.state-actions[hidden],.state-actions .button[hidden] { display: none; }
.state-view h3 { margin: 0 0 8px; }
.state-view p { max-width: 440px; margin: 0 0 18px; color: var(--muted); line-height: 1.65; }
.loading-layout { display: grid; gap: 14px; }
.loading-illustration { min-height: 360px; place-items: center; align-content: center; gap: 4px; color: var(--muted); font-size: 12px; }
.loading-illustration img { display: block; width: 40px; height: 40px; object-fit: contain; image-rendering: auto; }
.skeleton { position: relative; height: 68px; overflow: hidden; border-radius: 6px; background: #e9e9e9; }
.loading-layout .skeleton:first-child { width: 34%; height: 32px; }
.skeleton:after { position: absolute; inset: 0; background: linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent); content: ""; animation: formal-shimmer 1.4s infinite; transform: translateX(-100%); }
@keyframes formal-shimmer { to { transform: translateX(100%); } }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(20,24,28,0.48); backdrop-filter: blur(3px); }
.modal { width: min(560px,100%); max-height: calc(100vh - 44px); overflow: auto; border-radius: 9px; background: #fff; box-shadow: 0 26px 80px rgba(20,24,28,0.25); }
.modal.wide { width: min(760px,100%); }
.modal-head,.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.modal-head { border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0 0 5px; font-size: 19px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 12px; }
.modal-body { padding: 22px; }
.modal-foot { justify-content: flex-end; border-top: 1px solid var(--line); background: #fcfcfc; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1/-1; }
/* 流程表单按业务内容实际宽度分列，避免侧栏或窗口尺寸误判可用空间。 */
[data-region="page-fields"] { container: workflow-fields / inline-size; min-width: 0; }
[data-region="page-fields"] .form-grid { grid-template-columns: minmax(0,1fr); }
[data-region="page-fields"] .form-field { min-width: 0; }
/* 详情和组合条款始终占满当前行，不受全站移动端规则覆盖。 */
[data-region="page-fields"] .form-field.full { grid-column: 1/-1; }
@container workflow-fields (min-width: 480px) {
  [data-region="page-fields"] .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container workflow-fields (min-width: 720px) {
  [data-region="page-fields"] .form-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.form-field label { color: #5d5d5d; font-size: 12px; font-weight: 650; }
/* 流程业务字段的必填星号统一为红色正体，避免继承标签颜色和 em 默认斜体。 */
[data-region="page-fields"] .form-field label em[aria-label="必填"] { color: var(--red, #d84a4a); font-style: normal; }
.form-required-dot { display: inline-block; width: 5px; height: 5px; margin-left: 5px; border-radius: 50%; background: #d84a4a; vertical-align: 2px; }
.form-field input,.form-field select,.form-field textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; outline: 0; background: #fff; }
.form-field textarea { min-height: 90px; resize: vertical; }
.form-field input:focus,.form-field select:focus,.form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.08); }
/* 租户业务页面统一采用 32px 单行控件；公共规则优先于动态页面的旧高度定义。 */
:root { --form-control-height: 32px; }
:root body :is(
  input:not([type]), input[type="text"], input[type="number"], input[type="search"],
  input[type="email"], input[type="tel"], input[type="url"], input[type="password"],
  input[type="date"], input[type="datetime-local"], input[type="month"],
  input[type="week"], input[type="time"], select:where(:not([multiple]):not([size]), [size="1"]:not([multiple]))
) {
  box-sizing: border-box;
  height: var(--form-control-height);
  min-height: var(--form-control-height);
  padding-top: 0;
  padding-bottom: 0;
  line-height: normal;
}
/* 搜索容器及模拟下拉框与原生控件等高，保留各页面的宽度、图标和横向留白。 */
:root body :is(
  .global-search, .search-control, .search-box, .member-search, .task-search,
  .workflow-library-search, .workflow-builder-page-search,
  .page-position-select-trigger, .page-communication-picker-toggle
) {
  box-sizing: border-box;
  height: var(--form-control-height);
  min-height: var(--form-control-height);
  padding-top: 0;
  padding-bottom: 0;
}
/* 带边框搜索框的输入区填满内部空间，避免内外同高挤出上下边框。 */
:root body :is(
  .global-search, .search-control, .search-box, .member-search, .task-search,
  .workflow-library-search, .workflow-builder-page-search
) input {
  height: 100%;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}
/* 金额与比例的单位后缀同步缩小，避免后缀把整行重新撑到旧高度。 */
:root body .input-with-unit > span {
  box-sizing: border-box;
  height: var(--form-control-height);
  min-height: var(--form-control-height);
  padding-top: 0;
  padding-bottom: 0;
}
/* 字典搜索图标随公共输入框高度垂直居中。 */
:root body .dictionary-search > span { top: 50%; transform: translateY(-50%); }
.project-identity-field { align-content: start; }
.project-position-binding-list { display: grid; gap: 8px; }
.project-position-binding { display: grid; grid-template-columns: minmax(140px,.7fr) minmax(220px,1.3fr); align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fcfcfc; }
.project-position-binding strong,.project-position-binding small { display: block; }
.project-position-binding small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.project-position-binding select { min-height: 38px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; }
.inline-error { padding: 10px 11px; border-radius: 5px; color: #983e47; background: var(--red-soft); font-size: 12px; }
.inline-warning { margin-top: 14px; padding: 10px 11px; border-radius: 5px; color: #983e47; background: var(--red-soft); font-size: 12px; }
.toast-root { position: fixed; z-index: 150; top: 18px; right: auto; bottom: auto; left: 50%; display: grid; width: min(420px,calc(100vw - 32px)); gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast { box-sizing: border-box; display: grid; width: 100%; min-width: 0; max-width: none; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 10px; margin-top: 0; padding: 12px 14px; border: 1px solid var(--primary-soft); border-radius: 7px; color: var(--primary-dark); background: #f8f8f8; box-shadow: 0 12px 30px rgba(var(--primary-rgb),0.14); font-size: 13px; line-height: 1.5; pointer-events: auto; }
.toast-icon { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--success); font-size: 14px; font-weight: 800; line-height: 1; }
/* 保留业务提示中的分段，让岗位匹配失败的原因和处理指引清晰分开。 */
.toast-message { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.toast.error { color: #8b3540; border-color: #e8c0c5; background: #fff5f6; }
.toast.error .toast-icon { background: #bd4b57; }
.approval-summary { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 18px; }
.approval-summary > div { padding: 12px; border-radius: 6px; background: #f6f6f6; }
.approval-summary span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.page-workflow-action-dialog { width: min(620px,100%); }
.page-workflow-action-dialog .modal-foot { justify-content: flex-end !important; }
.page-workflow-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-left: auto; }
.page-workflow-action-summary .full { grid-column: 1/-1; }
.page-workflow-step-block { display: grid; min-width: 0; justify-items: start; text-align: left; }
.page-workflow-handler-label { margin-top: 10px !important; margin-bottom: 0 !important; }
.page-workflow-action-summary .page-workflow-value { margin-top: 5px; color: var(--ink) !important; font-family: inherit !important; font-size: 12px !important; font-style: normal !important; font-weight: 700 !important; line-height: 1.5 !important; }
.page-workflow-handler-line { display: block; width: 100%; min-width: 0; padding: 0 !important; overflow: hidden; border-radius: 0; background: transparent !important; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.page-workflow-handler-item { display: inline-flex; max-width: 100%; align-items: center; padding: 0 !important; color: inherit; background: transparent !important; font: inherit; vertical-align: top; white-space: nowrap; }
.page-workflow-action-summary .page-workflow-handler-line .page-workflow-handler-item { display: inline-flex !important; margin: 0 !important; color: inherit !important; font-family: inherit !important; font-size: inherit !important; font-style: inherit !important; font-weight: inherit !important; line-height: inherit !important; }
.page-workflow-handler-item + .page-workflow-handler-item:before { margin: 0 6px; color: #aeaeae; content: "、"; }
.page-workflow-handler-separator { display: inline !important; margin: 0 7px !important; color: var(--muted) !important; font: inherit !important; }
.page-change-step-handlers .page-workflow-handler-separator { margin: 0 !important; }
.page-workflow-current-handler { flex: 0 0 auto; white-space: nowrap; }
/* 当前处理人完整换行展示，长岗位名称和多人会签信息不再被省略。 */
.page-workflow-action-summary [data-region="current-handlers"] { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.page-workflow-action-summary [data-region="current-handlers"] .page-workflow-current-handler { display: inline !important; white-space: normal; }
.page-workflow-handler-status { flex: 0 0 auto; font: inherit; font-style: normal; white-space: nowrap; }
.page-workflow-handler-status.is-pending { color: #a06c15; }
.page-workflow-handler-status.is-completed { color: var(--success); }
.page-workflow-handler-status.is-rejected { color: var(--red); }
.page-workflow-handler-status.is-withdrawn { color: var(--muted); }
/* 弹窗摘要的公共规则使用了 inherit!important，异常处理人需用同等优先级显示红色。 */
.page-workflow-action-summary .page-workflow-handler-line .page-workflow-handler-item.unassigned { color: var(--red) !important; }
.page-workflow-handler-item .page-workflow-unassigned-name { color: var(--red); font: inherit; }

.page-flow-status-bar { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 14px; border-bottom: 1px solid #dddddd; color: var(--primary-dark); background: var(--primary-soft); }
.page-flow-status-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); font-size: 0; }
/* 流程状态条统一使用通知扩音器；隐藏旧模板字形，保留主题圆形底色。 */
.page-flow-status-icon::before { content: ""; width: 18px; height: 18px; transform: translateY(1px); background: currentColor; -webkit-mask: url("../images/icon/megaphone.svg") center / contain no-repeat; mask: url("../images/icon/megaphone.svg") center / contain no-repeat; }
.page-flow-status-bar > div:not(.page-flow-status-actions) { display: flex; min-width: 0; align-items: center; gap: 8px; }
.page-flow-status-bar strong { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.55; }
.page-flow-status-bar .flow-status-unassigned { color: var(--red); font-weight: 800; }
.page-flow-status-bar em { flex: 0 0 auto; padding: 4px 7px; border-radius: 5px; color: var(--primary); background: #fff; font-size: 10px; font-style: normal; font-weight: 750; white-space: nowrap; }
.page-flow-step-code { display: inline-block; margin-right: 3px; padding: 2px 6px; border-radius: 4px; color: var(--primary-dark); background: var(--primary-soft); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 10px; }
.page-flow-status-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-left: 10px; padding-left: 16px; border-left: 1px solid var(--primary-soft); }
.page-flow-status-actions button { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid var(--primary-soft); border-radius: 6px; color: var(--primary-dark); background: rgba(255,255,255,.88); font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.page-flow-status-actions button:hover { border-color: var(--primary); background: #fff; }
.page-flow-status-actions i { width: 14px; color: #707070; font-size: 13px; font-style: normal; text-align: center; }
.page-flow-status-actions b { display: grid; min-width: 17px; height: 17px; place-items: center; border-radius: 9px; color: #fff; background: var(--primary); font-size: 9px; }
.page-common-section { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.page-common-loading { padding: 28px 18px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fff; text-align: center; font-size: 12px; }
.page-common-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 58px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.page-common-head span { color: var(--primary); font-size: 10px; font-weight: 750; letter-spacing: .7px; text-transform: uppercase; }
.page-common-head h3 { margin: 3px 0 0; font-size: 15px; }
.page-common-head > small { color: var(--muted); font-size: 11px; text-align: right; }
.page-common-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0 18px; padding: 6px 16px 14px; }
.page-common-grid > div { min-width: 0; padding: 11px 0; border-bottom: 1px solid #f0f0f0; }
.page-common-grid > div.wide { grid-column: span 2; }
.page-common-grid > div.wide.full { grid-column: 1 / -1; }
/* 项目地址占两列，与省份、城市共同组成第三行；窄屏时独占一行。 */
.page-common-grid > .page-common-project-address { grid-column: span 2; }
.page-common-grid span,.page-common-grid strong { display: block; }
.page-common-grid span { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.page-common-grid strong { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.current-handler-list { display: grid; gap: 8px; padding: 12px 16px 16px; }
.current-handler-item { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e3e3e3; border-radius: 6px; background: #fcfcfc; }
.current-handler-item strong,.current-handler-item small { display: block; }
.current-handler-item small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.current-handler-item i { padding: 4px 7px; border-radius: 4px; color: var(--primary); background: var(--primary-soft); font-size: 10px; font-style: normal; font-weight: 700; }
.page-common-empty { padding: 14px 16px; color: var(--muted); font-size: 12px; }
.page-attachment-columns { display: grid; grid-template-columns: minmax(190px,1.4fr) minmax(130px,1fr) 90px 130px 90px minmax(168px,auto); align-items: center; gap: 12px; }
.page-attachment-error { margin: 10px 16px; }
.page-attachment-columns { padding: 7px 16px; border-bottom: 1px solid var(--line); color: var(--muted); background: #fcfcfc; font-size: 10px; }
.page-attachment-list { display: grid; }
.page-attachment-item { display: grid; grid-template-columns: minmax(190px,1.4fr) minmax(650px,3.8fr); min-height: 48px; border-bottom: 1px solid #f0f0f0; }
.page-attachment-item:last-child { border-bottom: 0; }
.page-attachment-requirement { display: flex; flex-direction: column; justify-content: center; padding: 9px 12px 9px 16px; border-right: 1px solid #f0f0f0; }
.page-attachment-requirement strong,.page-attachment-requirement small { display: block; }
.page-attachment-requirement strong { overflow-wrap: anywhere; font-size: 12px; }
.page-attachment-required-dot { display: inline-block; width: 5px; height: 5px; margin-left: 5px; border-radius: 50%; background: #d84a4a; vertical-align: 2px; }
.page-attachment-requirement small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.page-attachment-requirement small:empty { display: none; }
.page-custom-attachment-label { color: var(--primary); font-weight: 700; }
.page-attachment-files { min-width: 0; }
.page-attachment-file { display: grid; grid-template-columns: minmax(130px,1fr) 90px 130px 90px minmax(168px,auto); align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border-bottom: 1px solid #f0f0f0; font-size: 11px; }
.page-attachment-file:last-child { border-bottom: 0; }
.page-attachment-file > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.page-attachment-source { color: #666666 !important; font-weight: 600; }
.page-attachment-file > span { color: var(--muted); }
.page-attachment-file.empty > strong,.page-attachment-file.add > strong { color: var(--muted); font-weight: 500; }
.page-attachment-actions { display: flex; justify-content: flex-end; gap: 4px; }
.page-attachment-action { min-height: 27px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--primary); background: #fff; font-size: 10px; cursor: pointer; }
.page-attachment-action:hover { border-color: #b2b2b2; background: var(--primary-soft); }
.page-attachment-action.danger { color: var(--red); }
.page-attachment-action:disabled { opacity: .55; cursor: wait; }
.page-approval-flow { display: grid; padding: 8px 16px 16px; }
.page-approval-flow-step { position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 11px; min-height: 70px; padding: 9px 0; }
.page-approval-flow-step:not(:last-child):after { position: absolute; top: 48px; bottom: -10px; left: 14px; width: 1px; background: #e3e3e3; content: ""; }
.page-approval-flow-step > b { display: grid; z-index: 1; width: 30px; height: 30px; place-items: center; border: 1px solid #d4d4d4; border-radius: 50%; color: #727272; background: #fff; font-size: 11px; }
.page-approval-flow-step.is-current > b { border-color: var(--orange); color: #fff; background: var(--orange); }
.page-approval-flow-step.is-completed > b { border-color: var(--success); color: #fff; background: var(--success); }
.page-approval-flow-step.is-rejected > b,.page-approval-flow-step.is-withdrawn > b,.page-approval-flow-step.is-cancelled > b { border-color: var(--red); color: #fff; background: var(--red); }
.page-approval-flow-main { min-width: 0; padding-top: 2px; }
.page-approval-flow-main > div { display: flex; min-width: 0; align-items: center; gap: 8px; }
.page-approval-flow-main strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.page-approval-flow-main code,.page-approval-record code { flex: 0 0 auto; padding: 2px 5px; border-radius: 3px; color: #606060; background: #f1f1f1; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 10px; }
.page-approval-flow-main em,.page-approval-record em { flex: 0 0 auto; margin-left: auto; padding: 3px 6px; border-radius: 4px; color: var(--success); background: var(--success-soft); font-size: 10px; font-style: normal; font-weight: 700; }
.page-approval-flow-step.is-current em { color: #9b572c; background: var(--orange-soft); }
.page-approval-flow-step.is-rejected em,.page-approval-flow-step.is-withdrawn em,.page-approval-flow-step.is-cancelled em { color: var(--red); background: var(--red-soft); }
.page-approval-flow-main p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.page-approval-flow-main .page-approval-flow-error { color: var(--red); }
.page-operation-log-list { display: grid; }
.page-approval-record-list { display: grid; gap: 10px; padding: 12px 16px 16px; }
.page-operation-log { display: grid; min-height: 60px; align-content: center; padding: 9px 16px; border-bottom: 1px solid #f0f0f0; }
.page-operation-log:last-child { border-bottom: 0; }
.page-operation-log header { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.page-operation-log strong,.page-operation-log p { display: block; min-width: 0; margin: 0; }
.page-operation-log strong { font-size: 12px; }
.page-operation-log p { margin-top: 4px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.page-operation-log time { flex: 0 0 auto; color: var(--muted); font-size: 10px; text-align: right; }
.page-approval-record { overflow: hidden; border: 1px solid #e6e6e6; border-radius: 6px; background: #fff; }
.page-approval-record header { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 11px; background: #f4f4f4; }
.page-approval-record header > div { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.page-approval-record header strong { color: var(--primary-dark); font-size: 12px; }
.page-approval-record header span,.page-approval-record header time { color: #606060; font-size: 11px; }
.page-approval-record header span:before,.page-approval-record header time:before { margin-right: 8px; color: #b4b4b4; content: "·"; }
.page-approval-record header small { color: #8c8c8c; font-size: 10px; }
.page-approval-record header em { flex: 0 0 auto; margin-left: auto; padding: 3px 7px; border-radius: 4px; color: var(--success); background: #e8e8e8; font-size: 10px; font-style: normal; font-weight: 700; }
.page-approval-record-instance-state { flex: 0 0 auto; padding: 3px 7px; border-radius: 4px; color: #8a621d; background: #fff1cc; font-size: 10px; font-style: normal; font-weight: 700; white-space: nowrap; }
.page-approval-record.is-rolled-back-instance { border-color: #dfd2ae; background: #fffdf7; }
.page-approval-record.is-rolled-back-instance header { background: #faf5e8; }
.page-approval-record.is-rejected header em,.page-approval-record.is-withdrawn header em { color: var(--red); background: var(--red-soft); }
.page-approval-record.is-skipped header em { color: #776324; background: #f5edce; }
.page-approval-record p { min-height: 38px; margin: 0; padding: 10px 11px; color: #505050; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.page-approval-record-actions { display: flex; align-items: center; gap: 10px; }
.page-approval-record.is-communication { border-color: #dbdbdb; }
.page-approval-record.is-communication header { background: #f4f4f4; }
.page-approval-record.is-communication header em { color: #47658b; background: #e8eef8; }
.page-approval-record.is-communication p { color: #41566f; background: #fbfcff; }
.page-approval-record-attachments { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 11px 11px; }
.page-communication-attachment { display: inline-flex; overflow: hidden; border: 1px solid #d8d8d8; border-radius: 5px; background: #fafafa; }
.page-communication-attachment button { padding: 5px 8px; border: 0; color: var(--primary); background: transparent; font-size: 10px; cursor: pointer; }
.page-communication-attachment-download { border-left: 1px solid #d8d8d8 !important; color: #606060 !important; }
.page-communication-dialog { width: min(680px,100%); }
.page-communication-dialog .form-field:has(> #page-communication-message) { margin-top: 16px; }
.page-communication-dialog label em { color: var(--red); font-size: 10px; font-style: normal; }
.page-communication-search { margin-bottom: 8px; }
.page-communication-picker { position: relative; }
.page-communication-picker-toggle { display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: space-between; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; color: #505050; background: #fff; font-size: 11px; text-align: left; cursor: pointer; }
.page-communication-picker-toggle i { color: var(--muted); font-style: normal; }
.page-communication-picker-menu { position: absolute; z-index: 5; top: calc(100% + 5px); right: 0; left: 0; padding: 8px; border: 1px solid #d7d7d7; border-radius: 7px; background: #fff; box-shadow: 0 10px 24px rgba(20,24,28,0.14); }
.page-communication-picker-menu[hidden] { display: none; }
.page-communication-candidates { display: grid; max-height: 210px; grid-template-columns: minmax(0,1fr); gap: 4px; overflow-y: auto; }
.page-communication-candidate { display: grid !important; grid-template-columns: 16px minmax(0,1fr); align-items: center; column-gap: 8px; min-width: 0; padding: 8px 9px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.page-communication-candidate input[type="checkbox"] { display: block; width: 16px !important; height: 16px !important; min-width: 16px !important; min-height: 16px !important; margin: 0 !important; padding: 0 !important; border: 0; border-radius: 3px; accent-color: var(--primary); }
.page-communication-candidate > span { display: flex !important; min-width: 0; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; }
.page-communication-candidate:has(input:checked) { border-color: var(--primary-soft); background: var(--primary-soft); }
.page-communication-candidate strong,.page-communication-candidate small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-communication-candidate strong { flex: 0 1 auto; font-size: 11px; }
.page-communication-candidate small { flex: 1 1 auto; margin-top: 0; color: var(--muted); font-size: 11px; }
.page-communication-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.page-communication-files span { padding: 4px 7px; border-radius: 4px; color: #5c5c5c; background: #f1f1f1; font-size: 10px; }
.page-workflow-drawer-open { overflow: hidden; }
.page-workflow-drawer-backdrop { position: fixed; z-index: 120; inset: 0; background: rgba(20,24,28,0.34); }
.page-workflow-drawer { position: fixed; z-index: 121; top: 0; right: 0; bottom: 0; display: grid; visibility: hidden; width: min(560px,calc(100vw - 36px)); grid-template-rows: auto minmax(0,1fr); background: #fff; box-shadow: -18px 0 60px rgba(20,24,28,0.18); opacity: 0; transform: translateX(36px); transition: transform .24s ease,opacity .2s ease,visibility .24s ease; }
.page-workflow-drawer-open .page-workflow-drawer { visibility: visible; opacity: 1; transform: translateX(0); }
.page-workflow-drawer-head { display: flex; min-height: 96px; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.page-workflow-drawer-head > div > span { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .8px; }
.page-workflow-drawer-head h2 { margin: 5px 0 4px; font-family: Georgia,"Songti SC",serif; font-size: 21px; }
.page-workflow-drawer-head p { margin: 0; color: var(--muted); font-size: 11px; }
.page-workflow-drawer-close { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: #5d5d5d; background: #fff; font-size: 21px; line-height: 1; cursor: pointer; }
.page-workflow-drawer-body { min-height: 0; overflow: auto; padding: 18px 22px 32px; }
.page-workflow-drawer-panel { display: none; }
.page-workflow-drawer-panel.is-active { display: block; }
.page-workflow-drawer .page-approval-flow { padding: 0; }
.page-workflow-drawer .page-operation-log { padding-right: 0; padding-left: 0; }
.page-workflow-form { padding-bottom: 82px; }
.page-workflow-actions { position: fixed !important; z-index: 25; right: 20px; bottom: 0 !important; left: calc(var(--sidebar) + 20px); display: flex !important; min-height: 64px; align-items: center; justify-content: space-between !important; gap: 18px !important; padding: 9px 18px !important; border: 1px solid var(--line) !important; border-bottom: 0 !important; border-radius: 10px 10px 0 0 !important; background: rgba(255,255,255,.96) !important; box-shadow: 0 -8px 28px rgba(20,24,28,0.11) !important; backdrop-filter: blur(12px); }
.page-workflow-actions[hidden] { display: none !important; }
.page-workflow-action-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.page-workflow-action-context { display: flex; min-width: 0; align-items: center; gap: 10px; color: var(--primary-dark); }
.page-workflow-action-context > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); font-size: 14px; }
.page-workflow-action-context strong,.page-workflow-action-context small { display: block; }
.page-workflow-action-context strong { font-size: 11px; }
.page-workflow-action-context small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.construction-card { padding: 64px 24px; text-align: center; }
.construction-icon { display: grid; width: 48px; height: 48px; place-items: center; margin: 0 auto 14px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-size: 22px; }
.construction-card strong { display: block; margin-bottom: 8px; font-family: Georgia,"Songti SC",serif; font-size: 24px; }
.construction-card p { margin: 0 0 10px; color: var(--muted); }
.construction-card small { color: #9f9f9f; }

/* 流程表单详情页统一采用项目详情的紧凑标题比例，并保留原有返回箭头。 */
.workflow-form-page-head { align-items: flex-end; margin-bottom: 0; }
.workflow-form-page-head .back-link { margin-bottom: 6px; font-size: 12px; }
.workflow-form-page-head h1 { margin: 0; font-size: 23px; line-height: 1.2; }

@media (max-width: 820px) {
  .page-workflow-actions { right: 0; left: 0; border-right: 0 !important; border-left: 0 !important; border-radius: 0 !important; }
}

@media (max-width: 680px) {
  .form-grid,.approval-summary { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .page-head,.toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-group { flex-wrap: wrap; }
  .search-box { width: 100%; }
  .toast-root { top: 12px; right: auto; left: 50%; width: calc(100vw - 24px); }
  .page-common-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-common-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .page-common-head > small { text-align: left; }
  .page-attachment-columns { display: none; }
  .page-attachment-item { grid-template-columns: 1fr; }
  .page-attachment-requirement { border-right: 0; border-bottom: 1px solid #f0f0f0; }
  .page-attachment-file { grid-template-columns: minmax(110px,1fr) 80px 80px; }
  .page-attachment-time { display: none; }
  .page-attachment-actions { grid-column: 1/-1; justify-content: flex-start; }
  .page-flow-status-bar { grid-template-columns: 30px minmax(0,1fr); align-items: start; padding: 10px 12px; }
  .page-flow-status-bar > div:not(.page-flow-status-actions) { align-items: flex-start; flex-direction: column; gap: 5px; }
  .page-flow-status-actions { grid-column: 1/-1; justify-self: end; margin: 2px 0 0; padding: 9px 0 0; border-top: 1px solid #e1e1e1; border-left: 0; }
  .page-operation-log header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .page-operation-log time { text-align: left; }
  .page-approval-flow-main > div { flex-wrap: wrap; }
  .page-approval-flow-main em { margin-left: 0; }
  .page-approval-record-list { padding: 10px 12px 14px; }
  .page-approval-record header { align-items: flex-start; }
  .page-approval-record-actions { align-items: flex-end; flex-direction: column; }
  .page-communication-candidates { grid-template-columns: 1fr; }
  .page-workflow-drawer { width: 100vw; }
  .page-workflow-drawer-head { padding: 17px 16px 14px; }
  .page-workflow-drawer-body { padding: 15px 16px 28px; }
  .page-workflow-actions { min-height: 58px; padding: 8px 12px !important; justify-content: flex-end !important; }
  .page-workflow-action-context { display: none; }
  .page-workflow-action-buttons { width: 100%; }
  .page-workflow-action-buttons .button { min-height: 36px; padding-right: 10px; padding-left: 10px; }
  .workflow-form-page-head h1 { font-size: 21px; }
}

/* 公共分页将页容量、条数及翻页集中排列，适用于列表与弹窗。 */
.pagination { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 14px; font-size: 12px; color: var(--muted); }
.pagination label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pagination select { height: 30px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); }
.pagination .button, .pagination [data-page-info] { white-space: nowrap; }

/* 通知列表与业务列表复用分页，窄浮层允许控件自动换行。 */
.notification-popover [data-notification-pagination] { padding: 0 12px 12px; border-top: 1px solid var(--line); }
.notification-popover-list { max-height: min(600px,calc(100vh - 220px)); }
[data-pagination] { margin-bottom: 12px; }

/* 公共图片预览使用浏览器顶层对话框，不影响业务弹窗的层级和选中状态。 */
.image-preview-dialog { width: min(1200px, 94vw); max-width: 94vw; height: 90vh; height: 90dvh; max-height: 90dvh; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); box-shadow: var(--shadow); }
.image-preview-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.image-preview-dialog[open] { display: flex; flex-direction: column; }
.image-preview-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.image-preview-header strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.image-preview-header > button { flex-shrink: 0; }
/* 适应窗口按可用宽度缩放，长图从顶部开始纵向滚动，不受窗口高度压缩。 */
.image-preview-canvas { display: block; flex: 1; min-height: 0; overflow: auto; padding: 16px; background: #f1f1f1; }
.image-preview-canvas img { display: block; width: 100%; max-width: 100%; max-height: none; height: auto; }
.image-preview-canvas p { color: var(--muted); text-align: center; }

/* 多个业务页面共用的表格滚动、摘要与计数，不能依赖某个项目列表先加载。 */
.data-table-wrap { overflow-x: auto; }
.table-subtext { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.toolbar-count { color: var(--muted); font-size: 12px; }
.toolbar-count b { color: var(--ink); }
