﻿/* ============================================
   AAA数智建管系统 - 后台管理样式
   基于参考页面 UI 设计规范
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* 主色调 */
  --primary-color: #1E69CF;
  --primary-hover: #2d78de;
  --primary-active: #1557b0;
  --primary-bg: rgba(30, 105, 207, 0.1);

  /* 侧边栏 */
  --sider-bg: #363E4D;
  --sider-darken-bg: #272f3e;
  --sider-lighten-bg: #282d39;
  --sider-width: 210px;
  --sider-collapsed-width: 64px;

  /* 头部 */
  --header-height: 56px;
  --header-bg: #1E69CF;

  /* 内容区 */
  --content-bg: #f0f2f5;
  --card-bg: #ffffff;
  --border-color: #e8e8e8;
  --border-radius: 4px;

  /* 文字 */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-white: #ffffff;
  --danger-color: #d9363e;
  --success-color: #389e0d;

  /* 字体 */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-size-base: 14px;
  --font-size-sm: 13px;
  --font-size-xs: 12px;
  --font-size-lg: 16px;

  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;

  /* 阴影 */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.12);

  /* 动画 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--content-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul, li {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ---------- Layout ---------- */
.auth-pending .layout {
  display: none;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 420px;
  align-items: center;
  gap: 54px;
  padding: 48px min(8vw, 96px);
  background:
    linear-gradient(135deg, rgba(30, 105, 207, 0.92), rgba(27, 122, 210, 0.68)),
    linear-gradient(180deg, #eef6ff 0%, #f7fbff 100%);
  color: #fff;
}

.login-visual {
  max-width: 640px;
}

.login-brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.login-brand-mark span {
  width: 30px;
  height: 30px;
  display: block;
  border: 2px solid #fff;
  border-radius: 6px;
  position: relative;
}

.login-brand-mark span::before,
.login-brand-mark span::after {
  content: '';
  position: absolute;
  background: #fff;
}

.login-brand-mark span::before {
  left: 6px;
  right: 6px;
  top: 13px;
  height: 2px;
}

.login-brand-mark span::after {
  top: 6px;
  bottom: 6px;
  left: 13px;
  width: 2px;
}

.login-visual h1 {
  margin-top: 26px;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 700;
}

.login-visual p {
  max-width: 520px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.8;
}

.login-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 520px;
  margin-top: 36px;
}

.login-visual-grid i {
  height: 90px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.login-visual-grid i:nth-child(2) {
  margin-top: 28px;
}

.login-visual-grid i:nth-child(3) {
  margin-top: 12px;
}

.login-card {
  width: 100%;
  padding: 34px 32px;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.login-card-title {
  margin-bottom: 24px;
  color: #1f2937;
  font-size: 22px;
  font-weight: 700;
}

.login-field {
  margin-bottom: 16px;
}

.login-field label {
  display: block;
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 13px;
}

.login-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dbe3ee;
  border-radius: 4px;
  background: #fff;
  color: #1f2937;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.login-field input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 105, 207, 0.12);
}

.login-account-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-account-control input {
  flex: 1;
  min-width: 0;
}

.login-hint-button {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #c9d7e8;
  border-radius: 4px;
  background: #f5f8fc;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 13px;
}

.login-hint-button:hover,
.login-hint-button:focus-visible {
  border-color: var(--primary-color);
  background: #eef6ff;
  outline: 0;
}

.login-account-tip {
  margin-top: 7px;
  color: var(--primary-color);
  font-size: 12px;
  line-height: 18px;
}

.login-error {
  min-height: 20px;
  margin: 2px 0 12px;
  color: #dc2626;
  font-size: 13px;
}

.login-submit {
  width: 100%;
  height: 44px;
  border-radius: 4px;
  background: var(--primary-color);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.login-submit:hover {
  background: var(--primary-hover);
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 18px;
  }

  .login-visual h1 {
    font-size: 28px;
  }

  .login-visual-grid {
    display: none;
  }

  .login-card {
    padding: 26px 20px;
  }
}

.layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.layout-main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ---------- Header ---------- */
.layout-header {
  height: var(--header-height);
  background: var(--header-bg);
  display: flex;
  align-items: center;
  padding: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.header-logo {
  width: var(--sider-width);
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0;
  flex-shrink: 0;
  background: transparent;
}

.header-logo img {
  display: block;
  width: 100%;
  height: var(--header-height);
  object-fit: cover;
}

.header-logo-image {
  flex: 1;
}

.header-menu {
  flex: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 8px;
}

.header-menu-list {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

.header-menu-item {
  display: flex;
  align-items: center;
  height: 32px;
  margin: 0 4px;
  padding: 0 16px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.header-menu-item:hover {
  color: #ffffff;
  background: var(--primary-hover);
}

.header-menu-item.active {
  color: var(--primary-color);
  background: #ffffff;
  font-weight: 600;
}

.header-menu-item.active::after {
  content: none;
}

.header-menu-item .icon {
  margin-right: 6px;
  font-size: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  padding-right: 16px;
  gap: 12px;
}

.header-action-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.header-action-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.header-action-item .icon {
  font-size: 18px;
}

.header-scope-filter {
  position: relative;
}

/* 工程建设难点卡点列表 */
.construction-blocker-page { padding: 16px; }
.construction-blocker-shell { background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.08); overflow: hidden; }
.construction-blocker-ai-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 1100; display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(30,105,207,.28); cursor: grab; touch-action: none; transition: transform .15s ease, box-shadow .15s ease; }
.construction-blocker-ai-launcher:hover, .construction-blocker-ai-launcher:focus-visible { box-shadow: 0 6px 20px rgba(30,105,207,.4); outline: 0; transform: translateY(-2px); }
.construction-blocker-ai-launcher.is-dragging { cursor: grabbing; transform: scale(1.04); }
.construction-blocker-ai-launcher img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.construction-blocker-filter-card, .construction-blocker-toolbar { padding: 16px 20px; border-bottom: 1px solid #edf0f3; }
.construction-blocker-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 12px 16px; }
.construction-blocker-filter-item { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 32px; color: #666; font-size: 13px; }
.construction-blocker-filter-item > span:first-child { flex: 0 0 auto; white-space: nowrap; }
.construction-blocker-filter-item select, .construction-blocker-filter-item input { box-sizing: border-box; width: 100%; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid #d9d9d9; border-radius: 2px; background: #fff; color: #333; }
.construction-blocker-filter-item select:focus, .construction-blocker-filter-item input:focus { border-color: #1e69cf; outline: 0; box-shadow: 0 0 0 2px rgba(30, 105, 207, .12); }
.construction-blocker-filter-item select[multiple] { height: 32px; min-height: 32px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.construction-blocker-multi-select { position: relative; flex: 1 1 auto; min-width: 0; }
.construction-blocker-multi-trigger { box-sizing: border-box; display: flex; width: 100%; height: 32px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border: 1px solid #d9d9d9; border-radius: 2px; background: #fff; color: #333; font: inherit; text-align: left; cursor: pointer; }
.construction-blocker-multi-trigger:hover, .construction-blocker-multi-select.is-open .construction-blocker-multi-trigger { border-color: #1e69cf; }
.construction-blocker-multi-trigger b { color: #999; font-size: 11px; font-weight: 400; }
.construction-blocker-multi-menu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: max(100%, 190px); max-height: 220px; overflow-y: auto; padding: 4px 0; border: 1px solid #d9dfe7; border-radius: 2px; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.construction-blocker-multi-option { display: flex; min-height: 32px; align-items: center; gap: 8px; padding: 0 10px; color: #333; font-size: 13px; cursor: pointer; }
.construction-blocker-multi-option:hover { background: #f5f8fc; }
.construction-blocker-multi-option input[type="checkbox"] { width: 14px; min-width: 14px; height: 14px; margin: 0; padding: 0; }
.construction-blocker-date-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; }
.construction-blocker-date-range input { min-width: 0; }
.construction-blocker-date-range i { font-style: normal; color: #999; }
.construction-blocker-filter-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.construction-blocker-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.construction-blocker-table-card { display: flex; flex-direction: column; }
.construction-blocker-table-scroll { overflow-x: auto; max-height: calc(100vh - 330px); }
.construction-blocker-table { min-width: 2500px; table-layout: fixed; }
.construction-blocker-table th, .construction-blocker-table td { vertical-align: middle; text-align: left; white-space: normal; word-break: break-word; overflow-wrap: anywhere; line-height: 20px; }
.construction-blocker-table th { min-width: 110px; background: #edf4fb; color: #333; }
.construction-blocker-table th:nth-child(1), .construction-blocker-table td:nth-child(1) { width: 130px; }
.construction-blocker-table th:nth-child(2), .construction-blocker-table td:nth-child(2) { width: 210px; }
.construction-blocker-table th:nth-child(3), .construction-blocker-table td:nth-child(3) { width: 220px; }
.construction-blocker-table th:nth-child(4), .construction-blocker-table td:nth-child(4) { width: 140px; }
.construction-blocker-table th:nth-child(5), .construction-blocker-table td:nth-child(5) { width: 140px; }
.construction-blocker-table th:nth-child(6), .construction-blocker-table td:nth-child(6) { width: 110px; }
.construction-blocker-table th:nth-child(7), .construction-blocker-table td:nth-child(7) { width: 180px; }
.construction-blocker-table th:nth-child(8), .construction-blocker-table td:nth-child(8) { width: 130px; }
.construction-blocker-table th:nth-child(9), .construction-blocker-table td:nth-child(9) { width: 135px; }
.construction-blocker-table th:nth-child(10), .construction-blocker-table td:nth-child(10) { width: 175px; }
.construction-blocker-table th:nth-child(11), .construction-blocker-table td:nth-child(11) { width: 210px; }
.construction-blocker-table th:nth-child(12), .construction-blocker-table td:nth-child(12), .construction-blocker-table th:nth-child(13), .construction-blocker-table td:nth-child(13), .construction-blocker-table th:nth-child(14), .construction-blocker-table td:nth-child(14) { width: 175px; }
.construction-blocker-table th:nth-child(15), .construction-blocker-table td:nth-child(15) { width: 210px; }
.construction-blocker-table th:nth-child(16), .construction-blocker-table td:nth-child(16) { width: 130px; }
.construction-blocker-table th:nth-child(17), .construction-blocker-table td:nth-child(17) { width: 110px; }
.construction-blocker-table th:nth-child(18), .construction-blocker-table td:nth-child(18) { width: 135px; }
.construction-blocker-table th:nth-child(19), .construction-blocker-table td:nth-child(19) { width: 210px; }
.construction-blocker-table th:nth-child(20), .construction-blocker-table td:nth-child(20) { width: 150px; }
.construction-blocker-table th:nth-child(21), .construction-blocker-table td:nth-child(21) { width: 270px; }
.construction-blocker-text-cell { text-align: left !important; }
.construction-blocker-cell-ellipsis { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.construction-blocker-status-tag, .construction-blocker-bool-tag { display: inline-flex; min-width: 56px; min-height: 22px; align-items: center; justify-content: center; padding: 0 7px; border: 1px solid transparent; border-radius: 2px; font-size: 12px; line-height: 20px; white-space: nowrap; }
.construction-blocker-status-tag.is-identifying { background: #e6f4ff; border-color: #91caff; color: #1677ff; }
.construction-blocker-status-tag.is-processing { background: #fff7e6; border-color: #ffd591; color: #d46b08; }
.construction-blocker-status-tag.is-closing { background: #fffbe6; border-color: #ffe58f; color: #ad6800; }
.construction-blocker-status-tag.is-rejected { background: #fff1f0; border-color: #ffa39e; color: #cf1322; }
.construction-blocker-status-tag.is-completed { background: #f6ffed; border-color: #b7eb8f; color: #389e0d; }
.construction-blocker-status-tag.is-neutral, .construction-blocker-bool-tag.is-neutral { background: #f5f5f5; border-color: #d9d9d9; color: #8c8c8c; }
.construction-blocker-bool-tag.is-yes { background: #fff1f0; border-color: #ffa39e; color: #cf1322; }
.construction-blocker-bool-tag.is-no { background: #f6ffed; border-color: #b7eb8f; color: #389e0d; }
.construction-blocker-table .construction-blocker-actions { min-width: 270px; text-align: left; white-space: nowrap !important; word-break: keep-all !important; overflow-wrap: normal !important; }
.construction-blocker-actions .table-link { display: inline-flex; min-height: 26px; align-items: center; margin: 0 4px 0 0; padding: 0 6px; border: 0; border-radius: 2px; background: transparent; color: #1e69cf; cursor: pointer; font-size: 13px; line-height: 24px; white-space: nowrap; }
.construction-blocker-actions .table-link + .table-link { margin-left: 6px; }
.construction-blocker-actions .table-link:hover, .construction-blocker-actions .table-link:focus-visible { background: #eef6ff; color: #1558ad; outline: 0; text-decoration: underline; }
.construction-blocker-pagination { min-height: 52px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 10px 20px; border-top: 1px solid #edf0f3; color: #666; font-size: 13px; }
.construction-blocker-pagination button, .construction-blocker-pagination select { height: 30px; padding: 0 10px; border: 1px solid #d9d9d9; border-radius: 2px; background: #fff; color: #333; }
.construction-blocker-pagination button.is-active { border-color: #1e69cf; background: #1e69cf; color: #fff; }
.construction-blocker-pagination button:disabled { color: #bbb; cursor: not-allowed; }
.construction-blocker-empty { height: 180px; color: #999; text-align: center !important; }
.construction-blocker-notification-dialog { width: min(980px, calc(100vw - 32px)); }
.construction-blocker-notification-help { margin: 0 0 16px; color: #666; font-size: 13px; line-height: 20px; }
.construction-blocker-notification-recipient-picker { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.construction-blocker-notification-label { flex: 0 0 auto; color: #666; font-size: 13px; }
.construction-blocker-notification-recipient-control { position: relative; width: min(420px, 100%); }
.construction-blocker-notification-recipient-trigger { display: flex; width: 100%; height: 32px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border: 1px solid #d9d9d9; border-radius: 2px; background: #fff; color: #333; cursor: pointer; font: inherit; text-align: left; }
.construction-blocker-notification-recipient-trigger:hover, .construction-blocker-notification-recipient-trigger:focus-visible { border-color: #1e69cf; outline: 0; box-shadow: 0 0 0 2px rgba(30, 105, 207, .12); }
.construction-blocker-notification-recipient-trigger span { color: #999; font-size: 11px; }
.construction-blocker-notification-recipient-menu { position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; width: 100%; padding: 8px; border: 1px solid #d9dfe7; border-radius: 2px; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.construction-blocker-notification-recipient-options { max-height: 176px; margin-top: 6px; overflow-y: auto; }
.construction-blocker-notification-recipient-option { display: flex; min-height: 30px; align-items: center; gap: 8px; padding: 0 6px; color: #333; font-size: 13px; cursor: pointer; }
.construction-blocker-notification-recipient-option:hover { background: #f5f8fc; }
.construction-blocker-notification-recipient-option input { width: 14px; height: 14px; margin: 0; }
.construction-blocker-notification-row-recipient { position: relative; min-width: 150px; }
.construction-blocker-notification-row-recipient .construction-blocker-notification-recipient-trigger { min-width: 150px; }
.construction-blocker-notification-row-recipient .construction-blocker-notification-recipient-menu { min-width: 190px; }
.construction-blocker-notification-table-wrap { max-height: 360px; margin-top: 18px; overflow: auto; border: 1px solid #edf0f3; }
.construction-blocker-notification-table { min-width: 820px; table-layout: fixed; }
.construction-blocker-notification-table th, .construction-blocker-notification-table td { vertical-align: middle; }
.construction-blocker-notification-table th:first-child, .construction-blocker-notification-table td:first-child { width: 52px; text-align: center; }
.construction-blocker-notification-table th:nth-child(2), .construction-blocker-notification-table td:nth-child(2) { width: 240px; text-align: left; }
.construction-blocker-notification-table th:nth-child(3), .construction-blocker-notification-table td:nth-child(3) { width: 330px; text-align: left; }
.construction-blocker-notification-table th:last-child, .construction-blocker-notification-table td:last-child { width: 190px; text-align: left; }
.construction-blocker-notification-table td:nth-child(2), .construction-blocker-notification-table td:nth-child(3), .construction-blocker-notification-table td:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.construction-blocker-notification-table td:last-child { overflow: visible; }
.construction-blocker-notification-empty { height: 100px; color: #999; text-align: center !important; }
.construction-blocker-ai-consent-dialog { width: min(560px, calc(100vw - 32px)); }
.construction-blocker-ai-consent-question { margin: 0; color: #333; font-size: 14px; line-height: 24px; }
.construction-blocker-ai-consent-summary { display: grid; gap: 6px; margin-top: 16px; padding: 12px 14px; border: 1px solid #dbe8f7; background: #f7fbff; }
.construction-blocker-ai-consent-summary strong { color: #1e69cf; font-size: 13px; }
.construction-blocker-ai-consent-summary span { color: #333; font-size: 13px; }
.construction-blocker-ai-consent-summary small { color: #666; font-size: 12px; line-height: 20px; }
.construction-blocker-ai-chat-dialog { width: min(760px, calc(100vw - 32px)); }
.construction-blocker-ai-chat-context { margin-bottom: 12px; color: #999; font-size: 12px; }
.construction-blocker-ai-chat-messages { display: grid; gap: 10px; max-height: 360px; min-height: 180px; padding: 4px 2px; overflow-y: auto; }
.construction-blocker-ai-message { display: flex; max-width: 88%; gap: 8px; align-items: flex-start; }
.construction-blocker-ai-message.is-user { margin-left: auto; flex-direction: row-reverse; }
.construction-blocker-ai-message-role { display: inline-flex; width: 26px; height: 26px; flex: 0 0 26px; align-items: center; justify-content: center; border-radius: 50%; background: #e6f4ff; color: #1677ff; font-size: 11px; font-weight: 600; }
.construction-blocker-ai-message.is-user .construction-blocker-ai-message-role { background: #f0f2f5; color: #666; }
.construction-blocker-ai-message p { margin: 0; padding: 9px 11px; border: 1px solid #e5edf6; border-radius: 4px; background: #f7fbff; color: #333; font-size: 13px; line-height: 20px; white-space: pre-wrap; }
.construction-blocker-ai-message.is-user p { border-color: #d4e5fb; background: #eaf3ff; }
.construction-blocker-ai-suggested-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0f3; }
.construction-blocker-ai-suggested-list > span { flex: 0 0 auto; color: #999; font-size: 12px; }
.construction-blocker-ai-suggested-question { min-height: 28px; padding: 3px 9px; border: 1px solid #cfe0f5; border-radius: 2px; background: #fff; color: #1e69cf; cursor: pointer; font-size: 12px; line-height: 20px; }
.construction-blocker-ai-suggested-question:hover, .construction-blocker-ai-suggested-question:focus-visible { border-color: #1e69cf; background: #f3f8ff; outline: 0; }
.construction-blocker-ai-input-row { display: flex; gap: 8px; margin-top: 12px; }
.construction-blocker-ai-input-row .form-input { flex: 1; min-width: 0; }
.ai-assistant-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 1100; display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(30,105,207,.28); cursor: grab; touch-action: none; transition: transform .15s ease, box-shadow .15s ease; }
.ai-assistant-launcher:hover, .ai-assistant-launcher:focus-visible { box-shadow: 0 6px 20px rgba(30,105,207,.4); outline: 0; transform: translateY(-2px); }
.ai-assistant-launcher.is-dragging { cursor: grabbing; transform: scale(1.04); }
.ai-assistant-launcher img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ai-assistant-consent-dialog { width: min(560px, calc(100vw - 32px)); }
.ai-assistant-consent-question { margin: 0; color: #333; font-size: 14px; line-height: 24px; }
.ai-assistant-consent-summary { display: grid; gap: 6px; margin-top: 16px; padding: 12px 14px; border: 1px solid #dbe8f7; background: #f7fbff; }
.ai-assistant-consent-summary strong { color: #1e69cf; font-size: 13px; }
.ai-assistant-consent-summary span { color: #333; font-size: 13px; }
.ai-assistant-consent-summary small { color: #666; font-size: 12px; line-height: 20px; }
.ai-assistant-chat-dialog { width: min(760px, calc(100vw - 32px)); }
.ai-assistant-chat-context { margin-bottom: 12px; color: #999; font-size: 12px; }
.ai-assistant-chat-messages { display: grid; gap: 10px; max-height: 360px; min-height: 180px; padding: 4px 2px; overflow-y: auto; }
.ai-assistant-message { display: flex; max-width: 88%; gap: 8px; align-items: flex-start; }
.ai-assistant-message.is-user { margin-left: auto; flex-direction: row-reverse; }
.ai-assistant-message-role { display: inline-flex; width: 26px; height: 26px; flex: 0 0 26px; align-items: center; justify-content: center; border-radius: 50%; background: #e6f4ff; color: #1677ff; font-size: 11px; font-weight: 600; }
.ai-assistant-message.is-user .ai-assistant-message-role { background: #f0f2f5; color: #666; }
.ai-assistant-message p { margin: 0; padding: 9px 11px; border: 1px solid #e5edf6; border-radius: 4px; background: #f7fbff; color: #333; font-size: 13px; line-height: 20px; white-space: pre-wrap; }
.ai-assistant-message.is-user p { border-color: #d4e5fb; background: #eaf3ff; }
.ai-assistant-suggested-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0f3; }
.ai-assistant-suggested-list > span { flex: 0 0 auto; color: #999; font-size: 12px; }
.ai-assistant-suggested-question { min-height: 28px; padding: 3px 9px; border: 1px solid #cfe0f5; border-radius: 2px; background: #fff; color: #1e69cf; cursor: pointer; font-size: 12px; line-height: 20px; }
.ai-assistant-suggested-question:hover, .ai-assistant-suggested-question:focus-visible { border-color: #1e69cf; background: #f3f8ff; outline: 0; }
.ai-assistant-input-row { display: flex; gap: 8px; margin-top: 12px; }
.ai-assistant-input-row .form-input { flex: 1; min-width: 0; }
@media (min-width: 769px) and (max-width: 1200px) {
  .construction-blocker-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 769px) and (max-width: 1000px) {
  .construction-blocker-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .construction-blocker-page { padding: 8px; }
  .construction-blocker-filter-item { width: 100%; }
  .construction-blocker-filter-item select, .construction-blocker-filter-item input { flex: 1; min-width: 0; }
  .construction-blocker-filter-grid { grid-template-columns: 1fr; gap: 10px; }
  .construction-blocker-filter-actions { grid-column: auto; width: 100%; justify-content: flex-end; }
  .construction-blocker-toolbar-actions { justify-content: flex-start; }
  .construction-blocker-table-scroll { max-height: calc(100vh - 390px); }
  .construction-blocker-pagination { justify-content: flex-start; flex-wrap: wrap; padding: 10px; }
  .construction-blocker-notification-recipient-picker { align-items: flex-start; flex-direction: column; gap: 6px; }
  .construction-blocker-notification-recipient-control { width: 100%; }
  .construction-blocker-notification-table-wrap { max-height: 300px; }
  .construction-blocker-ai-launcher { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .construction-blocker-ai-chat-dialog { width: calc(100vw - 16px); }
  .construction-blocker-ai-chat-messages { max-height: 300px; }
  .construction-blocker-ai-input-row { align-items: stretch; flex-direction: column; }
  .ai-assistant-launcher { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .ai-assistant-chat-dialog { width: calc(100vw - 16px); }
  .ai-assistant-chat-messages { max-height: 300px; }
  .ai-assistant-input-row { align-items: stretch; flex-direction: column; }
}

/* 工程建设评分评价 */
.construction-evaluation-page,
.construction-evaluation-detail-page,
.construction-evaluation-export-page {
  min-width: 0;
}

.construction-evaluation-page .worker-attendance-daily-card,
.construction-evaluation-detail-page .worker-attendance-daily-card,
.construction-evaluation-export-page .worker-attendance-daily-card {
  overflow: hidden;
}

.construction-evaluation-search {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr)) auto;
  gap: 12px 24px;
  padding: 16px 20px;
  border-bottom: 8px solid #f5f5f5;
}

.construction-evaluation-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.construction-evaluation-tab {
  position: relative;
  height: 48px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #595959;
  font-size: 14px;
  cursor: pointer;
}

.construction-evaluation-tab:hover,
.construction-evaluation-tab.is-active {
  color: #1677ff;
}

.construction-evaluation-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #1677ff;
  content: '';
}

.construction-evaluation-search .form-item {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
}

.construction-evaluation-search .form-item label {
  flex: 0 0 76px;
  color: var(--text-secondary, #666);
  font-size: 13px;
  text-align: right;
}

.construction-evaluation-search .form-input,
.construction-evaluation-search .form-select {
  min-width: 0;
  width: 100%;
}

.construction-evaluation-search .search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.construction-evaluation-toolbar {
  min-height: 54px;
  padding: 8px 20px;
}

.construction-evaluation-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.construction-evaluation-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e5e6eb;
  border-radius: 2px;
  color: #666;
  font-size: 13px;
  background: #fff;
}

.construction-evaluation-summary strong {
  margin-left: 6px;
  color: #1677ff;
  font-size: 15px;
  font-weight: 600;
}

.construction-evaluation-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.construction-evaluation-config {
  padding: 16px 20px 20px;
}

.construction-evaluation-config-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 12px;
}

.construction-evaluation-config-toolbar .form-select {
  width: min(360px, 100%);
}

.construction-evaluation-config-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.construction-evaluation-config-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.construction-evaluation-config-table [contenteditable="true"] {
  cursor: text;
  outline: none;
}

.construction-evaluation-config-table [contenteditable="true"]:hover {
  background: #f5f9ff;
}

.construction-evaluation-config-table [contenteditable="true"]:focus {
  background: #fff;
  box-shadow: inset 0 0 0 1px #1677ff;
}

.construction-evaluation-config-kind-select {
  width: 92px;
  min-height: 30px;
}

.construction-evaluation-criterion-dialog {
  width: min(560px, calc(100vw - 32px));
}

.construction-evaluation-criterion-form-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.construction-evaluation-criterion-form-item > span {
  flex: 0 0 132px;
  padding-top: 8px;
  color: #666;
  font-size: 13px;
  text-align: right;
}

.construction-evaluation-criterion-form-item .form-input,
.construction-evaluation-criterion-form-item .form-select {
  flex: 1;
  min-width: 0;
}

.construction-evaluation-criterion-form-item textarea.form-input {
  min-height: 88px;
  resize: vertical;
}

.construction-evaluation-config-table-wrap {
  overflow-x: auto;
}

.construction-evaluation-config-table {
  min-width: 1120px;
}

.construction-evaluation-config-table-wrap.is-no-scroll-wrap {
  overflow-x: visible;
}

.construction-evaluation-config-table.is-no-scroll {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.construction-evaluation-config-table.is-no-scroll th,
.construction-evaluation-config-table.is-no-scroll td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.construction-evaluation-config-table.is-no-scroll th:nth-child(1),
.construction-evaluation-config-table.is-no-scroll td:nth-child(1) {
  width: 5%;
}

.construction-evaluation-config-table.is-no-scroll th:nth-child(2),
.construction-evaluation-config-table.is-no-scroll td:nth-child(2) {
  width: 11%;
}

.construction-evaluation-config-table.is-no-scroll th:nth-child(3),
.construction-evaluation-config-table.is-no-scroll td:nth-child(3) {
  width: 14%;
}

.construction-evaluation-config-table.is-no-scroll th:nth-child(4),
.construction-evaluation-config-table.is-no-scroll td:nth-child(4) {
  width: 38%;
  min-width: 0;
  max-width: none;
  line-height: 1.65;
}

.construction-evaluation-config-table.is-no-scroll th:nth-child(5),
.construction-evaluation-config-table.is-no-scroll td:nth-child(5) {
  width: 11%;
  min-width: 0;
}

.construction-evaluation-config-table.is-no-scroll th:nth-child(6),
.construction-evaluation-config-table.is-no-scroll td:nth-child(6) {
  width: 7%;
}

.construction-evaluation-config-table.is-no-scroll th:nth-child(7),
.construction-evaluation-config-table.is-no-scroll td:nth-child(7) {
  width: 14%;
  min-width: 0;
}

.construction-evaluation-config-table.is-no-scroll td[rowspan] {
  vertical-align: middle;
}

.construction-evaluation-config-table.is-no-scroll .construction-evaluation-config-rule {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.construction-evaluation-config-table.is-no-scroll .cell-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px 6px;
}

.construction-evaluation-config-actions .btn-link:disabled {
  color: #bfbfbf;
  cursor: not-allowed;
  text-decoration: none;
}

.construction-evaluation-config-table th,
.construction-evaluation-config-table td {
  vertical-align: middle;
  text-align: center;
}

.construction-evaluation-config-table th:nth-child(1),
.construction-evaluation-config-table td:nth-child(1) {
  width: 70px;
}

.construction-evaluation-config-table th:nth-child(2),
.construction-evaluation-config-table td.construction-evaluation-config-category-cell {
  width: 140px;
  text-align: left;
}

.construction-evaluation-config-table th:nth-child(3),
.construction-evaluation-config-table td.construction-evaluation-config-item-cell {
  width: 180px;
  text-align: left;
}

.construction-evaluation-config-table th:nth-child(4),
.construction-evaluation-config-table td.construction-evaluation-config-rule {
  min-width: 480px;
  max-width: 620px;
  text-align: left;
}

.construction-evaluation-config-rule {
  overflow: hidden;
  line-height: 1.55;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.construction-evaluation-config-table th:nth-child(5),
.construction-evaluation-config-table td.construction-evaluation-config-score {
  min-width: 210px;
  text-align: left;
}

.construction-evaluation-config-table th:nth-child(6),
.construction-evaluation-config-table td.construction-evaluation-config-kind {
  width: 100px;
  text-align: center;
}

.construction-evaluation-config-table th:last-child,
.construction-evaluation-config-table td.construction-evaluation-config-actions {
  min-width: 230px;
}

.construction-evaluation-config-hint {
  margin: 12px 0 0;
  color: #999;
  font-size: 12px;
  line-height: 1.6;
}

.construction-evaluation-hazard-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #edf0f3;
}

.construction-evaluation-config-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #262626;
  font-size: 15px;
  font-weight: 600;
}

.construction-evaluation-hazard-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.construction-evaluation-hazard-tabs button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  background: #fff;
  color: #666;
  cursor: pointer;
  font-size: 13px;
}

.construction-evaluation-hazard-tabs button:hover,
.construction-evaluation-hazard-tabs button.is-active {
  border-color: #1677ff;
  color: #1677ff;
  background: #eef6ff;
}

.construction-evaluation-hazard-table {
  min-width: 1000px;
}

.construction-evaluation-hazard-table th,
.construction-evaluation-hazard-table td {
  vertical-align: middle;
  text-align: center;
}

.construction-evaluation-hazard-table th:nth-child(1),
.construction-evaluation-hazard-table td:nth-child(1) {
  width: 70px;
}

.construction-evaluation-hazard-table th:nth-child(2),
.construction-evaluation-hazard-table td:nth-child(2) {
  width: 150px;
  text-align: left;
}

.construction-evaluation-hazard-table th:nth-child(3),
.construction-evaluation-hazard-table td:nth-child(3) {
  min-width: 520px;
  max-width: 680px;
  text-align: left;
}

.construction-evaluation-hazard-table th:nth-child(4),
.construction-evaluation-hazard-table td:nth-child(4) {
  min-width: 260px;
  text-align: left;
}

.construction-evaluation-hazard-table th:last-child,
.construction-evaluation-hazard-table td:last-child {
  min-width: 130px;
}

.construction-evaluation-hazard-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.construction-evaluation-table-wrap,
.construction-evaluation-detail-table-wrap {
  margin: 0 20px;
  overflow-x: auto;
}

.construction-evaluation-table {
  min-width: 1180px;
}

.construction-evaluation-table th,
.construction-evaluation-table td {
  min-width: 92px;
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
}

.construction-evaluation-table th:first-child,
.construction-evaluation-table td:first-child {
  min-width: 280px;
  text-align: left;
}

.construction-evaluation-table th:nth-child(2),
.construction-evaluation-table td:nth-child(2) {
  min-width: 210px;
  text-align: left;
}

.construction-evaluation-table th:nth-child(7),
.construction-evaluation-table td:nth-child(7) {
  min-width: 110px;
}

.construction-evaluation-table th:nth-child(8),
.construction-evaluation-table td:nth-child(8) {
  min-width: 150px;
}

.construction-evaluation-table th:last-child,
.construction-evaluation-table td:last-child {
  min-width: 120px;
}

.construction-evaluation-company-row {
  background: #f7f9fc;
}

.construction-evaluation-company-row td {
  border-top: 1px solid #dfe5ec;
  border-bottom: 1px solid #dfe5ec;
  font-weight: 500;
}

.construction-evaluation-project-name {
  padding-left: 42px !important;
  color: #333;
}

.construction-evaluation-tree-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid #c9d2dc;
  border-radius: 2px;
  color: #667085;
  background: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.construction-evaluation-tree-toggle:hover {
  border-color: #1677ff;
  color: #1677ff;
}

.construction-evaluation-delta {
  font-weight: 600;
}

.construction-evaluation-delta.is-up {
  color: #10a35a;
}

.construction-evaluation-delta.is-down {
  color: #e23b3b;
}

.construction-evaluation-delta.is-neutral {
  color: #999;
}

.construction-evaluation-detail-page .worker-attendance-daily-card,
.construction-evaluation-export-page .worker-attendance-daily-card {
  padding: 0 20px 20px;
  background: transparent;
}

.construction-evaluation-basic-card,
.construction-evaluation-score-card,
.construction-evaluation-export-page .drill-card {
  margin-top: 12px;
  padding: 20px 24px;
  background: #fff;
}

.construction-evaluation-basic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px 48px;
  margin-top: 18px;
}

.construction-evaluation-basic-grid .form-item {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
}

.construction-evaluation-basic-grid .form-item label {
  flex: 0 0 88px;
  color: #666;
  font-size: 13px;
  text-align: right;
}

.construction-evaluation-basic-grid .form-input,
.construction-evaluation-basic-grid .form-select {
  min-width: 0;
  width: 100%;
}

.construction-evaluation-basic-grid .form-item > span {
  min-height: 32px;
  flex: 1;
  padding: 7px 12px;
  border: 1px solid #e5e6eb;
  border-radius: 2px;
  color: #333;
  background: #fafafa;
}

.construction-evaluation-basic-grid .form-item.is-full,
.construction-evaluation-basic-grid .form-item:last-child {
  min-width: 0;
}

.construction-evaluation-basic-grid .form-item.is-full {
  grid-column: 1 / -1;
  align-items: flex-start;
}

.construction-evaluation-basic-grid .form-item.is-full textarea {
  min-height: 72px;
  resize: vertical;
}

.construction-evaluation-score-card .drill-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.construction-evaluation-total-note {
  color: #999;
  font-size: 12px;
  font-weight: 400;
}

.construction-evaluation-detail-table {
  min-width: 1280px;
}

.construction-evaluation-detail-table th,
.construction-evaluation-detail-table td {
  min-width: 76px;
  vertical-align: middle;
  text-align: center;
}

.construction-evaluation-detail-table th:nth-child(2),
.construction-evaluation-detail-table td.construction-evaluation-category-cell {
  min-width: 110px;
}

.construction-evaluation-detail-table th:nth-child(3),
.construction-evaluation-detail-table td.construction-evaluation-item-cell {
  min-width: 150px;
  text-align: left;
}

.construction-evaluation-detail-table th:nth-child(4),
.construction-evaluation-detail-table td.construction-evaluation-rule-cell {
  min-width: 420px;
  max-width: 560px;
  text-align: left;
}

.construction-evaluation-rule-cell {
  overflow: hidden;
  line-height: 1.55;
  white-space: normal;
  word-break: break-word;
}

.construction-evaluation-score-input {
  width: 84px;
  box-sizing: border-box;
  margin: 0 auto;
  text-align: center;
}

.construction-evaluation-detail-score-cell {
  text-align: center;
  vertical-align: middle;
}

.construction-evaluation-quality-hazard-card {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eef0f3;
}

.construction-evaluation-quality-hazard-card .drill-section-title {
  margin-bottom: 14px;
}

.construction-evaluation-quality-hazard-group + .construction-evaluation-quality-hazard-group {
  margin-top: 16px;
}

.construction-evaluation-quality-hazard-title {
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.construction-evaluation-quality-hazard-table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
}

.construction-evaluation-quality-hazard-table th,
.construction-evaluation-quality-hazard-table td {
  vertical-align: middle;
  text-align: center;
}

.construction-evaluation-quality-hazard-table th:nth-child(1),
.construction-evaluation-quality-hazard-table td:nth-child(1) {
  width: 64px;
}

.construction-evaluation-quality-hazard-table th:nth-child(2),
.construction-evaluation-quality-hazard-table td:nth-child(2) {
  width: 130px;
}

.construction-evaluation-quality-hazard-table th:nth-child(3),
.construction-evaluation-quality-hazard-table td:nth-child(3) {
  text-align: left;
}

.construction-evaluation-quality-hazard-table th:nth-child(4),
.construction-evaluation-quality-hazard-table td:nth-child(4) {
  width: 132px;
  white-space: nowrap;
}

.construction-evaluation-quality-hazard-table th:nth-child(5),
.construction-evaluation-quality-hazard-table td:nth-child(5) {
  width: 220px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.construction-evaluation-quality-hazard-table .construction-evaluation-detail-score-cell {
  text-align: center;
  white-space: nowrap;
}

.construction-evaluation-quality-hazard-name {
  line-height: 1.55;
  white-space: normal;
  word-break: break-word;
}

.construction-evaluation-veto {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #d4380d;
  white-space: nowrap;
}

.construction-evaluation-score-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  color: #666;
  font-size: 13px;
}

.construction-evaluation-score-footer strong {
  color: #1677ff;
  font-size: 18px;
}

.construction-evaluation-note-dialog {
  width: min(680px, calc(100vw - 32px));
}

.construction-evaluation-note-dialog .modal-body {
  color: #444;
  line-height: 1.8;
  white-space: pre-wrap;
}

@media (max-width: 1100px) {
  .construction-evaluation-search {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .construction-evaluation-search .search-actions {
    justify-content: flex-start;
  }

  .construction-evaluation-basic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .construction-evaluation-search {
    grid-template-columns: 1fr;
  }

  .construction-evaluation-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .construction-evaluation-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .construction-evaluation-config {
    padding: 12px;
  }

  .construction-evaluation-config-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .construction-evaluation-config-toolbar .form-select {
    width: 100%;
  }

  .construction-evaluation-detail-page .worker-attendance-daily-card,
  .construction-evaluation-export-page .worker-attendance-daily-card {
    padding: 0 12px 12px;
  }

  .construction-evaluation-basic-card,
  .construction-evaluation-score-card,
  .construction-evaluation-export-page .drill-card {
    padding: 16px;
  }
}

.construction-blocker-drill-page { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; }
.construction-blocker-form-layout { grid-template-columns: minmax(0, 1fr); }
.construction-blocker-form-card, .construction-blocker-detail-card { margin-bottom: 12px; padding: 20px 24px; }
.construction-blocker-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.construction-blocker-form-item { display: flex; align-items: center; gap: 12px; min-height: 32px; color: #666; font-size: 13px; }
.construction-blocker-form-item > span:first-child { flex: 0 0 118px; min-width: 118px; text-align: right; line-height: 20px; }
.construction-blocker-form-item > .construction-blocker-textarea-wrap { min-width: 0; }
.construction-blocker-form-item.is-full { grid-column: 1 / -1; align-items: flex-start; }
.construction-blocker-form-item.is-full > span:first-child { padding-top: 8px; }
.construction-blocker-form-item.is-full > .construction-blocker-textarea-wrap { padding-top: 0; }
.construction-blocker-form-item .form-input, .construction-blocker-form-item .form-select, .construction-blocker-form-item .form-textarea { flex: 1; min-width: 0; }
.construction-blocker-form-item .form-input, .construction-blocker-form-item .form-select, .construction-blocker-form-item .form-textarea { text-align: left; }
.construction-blocker-textarea-wrap { position: relative; display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: stretch; }
.construction-blocker-limited-textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.construction-blocker-char-count { align-self: flex-end; margin-top: 4px; color: #999; font-size: 12px; line-height: 18px; }
.construction-blocker-required { color: #d9363e; margin-left: 2px; }
.construction-blocker-gis-placeholder, .construction-blocker-photo-placeholder { min-height: 88px; display: flex; align-items: center; justify-content: center; border: 1px dashed #b7c3d0; color: #999; margin-top: 12px; }
.construction-blocker-photo-placeholder { min-height: 132px; flex-direction: column; gap: 4px; background: #fafcff; cursor: pointer; }
.construction-blocker-photo-placeholder.has-files { border-color: #52c41a; color: #389e0d; }
.construction-blocker-photo-placeholder small { color: #999; }
.construction-blocker-photo-plus { width: 28px; height: 28px; border: 1px solid #b7c3d0; border-radius: 2px; color: #1e69cf; font-size: 24px; line-height: 25px; text-align: center; }
.construction-blocker-file-input { display: block; margin-top: 10px; font-size: 13px; }
.construction-blocker-map-summary { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #edf0f3; background: #fafcff; color: #666; font-size: 13px; }
.construction-blocker-map-summary-line { display: flex; gap: 24px; color: #333; }
.construction-blocker-map-summary-line b { color: #1e69cf; font-weight: 600; }
.construction-blocker-map-summary small { display: block; margin-top: 5px; color: #999; }
.construction-blocker-approvers { min-height: 108px; padding: 6px 8px; }
.construction-blocker-form-help { color: #999; font-size: 12px; }
.construction-blocker-map-dialog { width: min(940px, calc(100vw - 24px)); }
.construction-blocker-map-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #edf0f3; background: #fafcff; color: #666; font-size: 13px; }
.construction-blocker-map-tool-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-right: 14px; border-right: 1px solid #e5eaf0; }
.construction-blocker-map-tool-group strong { flex-basis: 100%; color: #c83b2b; font-size: 14px; font-weight: 600; }
.construction-blocker-map-style-group { border-right: 0; padding-right: 0; }
.construction-blocker-map-toolbar label { display: inline-flex; align-items: center; gap: 6px; }
.construction-blocker-map-toolbar .form-select { width: 150px; height: 30px; }
.construction-blocker-map-toolbar-label { margin-left: 4px; }
.construction-blocker-map-icon { width: 30px; height: 30px; border: 1px solid #d9d9d9; border-radius: 2px; background: #fff; color: #1e69cf; cursor: pointer; font-size: 18px; line-height: 28px; }
.construction-blocker-map-icon.is-selected, .construction-blocker-map-icon:hover { border-color: #1e69cf; background: #eef6ff; }
.construction-blocker-map-toolbar input[type="color"] { width: 34px; height: 30px; padding: 2px; border: 1px solid #d9d9d9; background: #fff; }
.construction-blocker-map-canvas { position: relative; min-height: 330px; overflow: hidden; border: 1px solid #cbd6e2; background: #e9f0f6 url('../images/地图.png') center / cover no-repeat; cursor: crosshair; }
.construction-blocker-map-canvas::before, .construction-blocker-map-canvas::after { position: absolute; content: ''; pointer-events: none; }
.construction-blocker-map-canvas::before { inset: 0; background: linear-gradient(90deg, transparent 49.8%, rgba(30,105,207,.12) 50%, transparent 50.2%), linear-gradient(0deg, transparent 49.8%, rgba(30,105,207,.12) 50%, transparent 50.2%); background-size: 25% 25%; }
.construction-blocker-map-canvas-hint { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: flex-start; padding: 7px 10px; background: rgba(255,255,255,.82); color: #666; font-size: 12px; pointer-events: none; }
.construction-blocker-map-canvas.is-large-style { filter: saturate(1.18) contrast(1.04); }
.construction-blocker-map-marker { position: absolute; z-index: 2; transform: translate(-50%, -50%); font-size: 22px; line-height: 1; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.construction-blocker-map-marker.is-other { opacity: .5; }
.construction-blocker-map-region { position: absolute; z-index: 1; border: 2px solid; background: rgba(245,108,108,.08); pointer-events: none; }
.construction-blocker-map-region-draft { position: absolute; z-index: 3; border: 2px dashed #1e69cf; background: rgba(30,105,207,.12); pointer-events: none; }
.construction-blocker-map-region.is-other { opacity: .45; }
.construction-blocker-map-annotation-list { margin-top: 12px; border: 1px solid #edf0f3; }
.construction-blocker-map-list-title { padding: 8px 12px; background: #edf4fb; color: #333; font-weight: 600; font-size: 13px; }
.construction-blocker-map-list-title.is-other { border-top: 1px solid #edf0f3; }
.construction-blocker-map-annotation { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 5px 12px; border-top: 1px solid #f2f2f2; color: #555; font-size: 13px; }
.construction-blocker-map-annotation > span:nth-child(2) { flex: 1; }
.construction-blocker-map-annotation.is-readonly { color: #999; }
.construction-blocker-map-annotation small { color: #999; }
.construction-blocker-map-region-chip { width: 16px; height: 12px; border: 2px solid; background: rgba(245,108,108,.08); }
.construction-blocker-map-empty { padding: 10px 12px; color: #999; font-size: 13px; }
.construction-blocker-map-tip { margin: 10px 0 0; color: #999; font-size: 12px; }

/* 工程建设难点卡点统计 */
.construction-blocker-statistics-page { min-width: 0; padding: 16px; background: #f0f2f5; }
.construction-blocker-statistics-shell { min-width: 0; overflow: hidden; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.construction-blocker-stat-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: 12px 16px; padding: 16px 20px; border-bottom: 1px solid #edf0f3; }
.construction-blocker-stat-filter-item { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.construction-blocker-stat-filter-item label { color: #666; font-size: 13px; }
.construction-blocker-stat-filter-item .form-select { width: 100%; min-width: 0; }
.construction-blocker-stat-filter-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.construction-blocker-stat-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 16px 20px; border-bottom: 8px solid #f5f5f5; }
.construction-blocker-stat-metric-card { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; min-height: 76px; padding: 14px 16px; border: 1px solid #e5e6eb; border-left: 3px solid #1677ff; background: #fff; }
.construction-blocker-stat-metric-card span { grid-column: 1 / -1; color: #666; font-size: 13px; }
.construction-blocker-stat-metric-card strong { margin-top: 8px; color: #1f2937; font-size: 26px; font-weight: 600; line-height: 1; }
.construction-blocker-stat-metric-card small { align-self: end; margin: 0 0 2px 6px; color: #999; font-size: 12px; }
.construction-blocker-stat-metric-card.is-green { border-left-color: #52c41a; }
.construction-blocker-stat-metric-card.is-orange { border-left-color: #fa8c16; }
.construction-blocker-stat-metric-card.is-red { border-left-color: #f5222d; }
.construction-blocker-stat-metric-card.is-purple { border-left-color: #722ed1; }
.construction-blocker-stat-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px 20px 0; }
.construction-blocker-stat-chart { min-width: 0; padding: 16px; border: 1px solid #edf0f3; background: #fff; }
.construction-blocker-stat-section-title { display: flex; min-height: 32px; align-items: center; gap: 12px; color: #1f2937; font-size: 16px; font-weight: 600; }
.construction-blocker-stat-chart-body { display: flex; min-height: 210px; align-items: center; justify-content: center; gap: 28px; padding: 10px 0; }
.construction-blocker-stat-donut { position: relative; flex: 0 0 170px; width: 170px; height: 170px; border-radius: 50%; }
.construction-blocker-stat-donut-hole { position: absolute; inset: 28px; display: flex; align-items: center; justify-content: center; flex-direction: column; border-radius: 50%; background: #fff; text-align: center; }
.construction-blocker-stat-donut-hole strong { color: #1677ff; font-size: 22px; line-height: 1.2; }
.construction-blocker-stat-donut-hole span { margin-top: 3px; color: #666; font-size: 12px; }
.construction-blocker-stat-legend { display: grid; min-width: 170px; gap: 8px; }
.construction-blocker-stat-legend > div { display: grid; grid-template-columns: 10px minmax(70px, 1fr) auto auto; align-items: center; gap: 6px; color: #555; font-size: 12px; }
.construction-blocker-stat-legend i { width: 8px; height: 8px; border-radius: 1px; }
.construction-blocker-stat-legend b { color: #333; font-weight: 500; }
.construction-blocker-stat-legend em { min-width: 34px; color: #999; font-size: 12px; font-style: normal; text-align: right; }
.construction-blocker-stat-company-section, .construction-blocker-stat-project-section { margin: 16px 20px 0; padding: 16px; border: 1px solid #edf0f3; }
.construction-blocker-stat-table-wrap { margin-top: 12px; overflow-x: auto; }
.construction-blocker-stat-company-table { min-width: 780px; table-layout: fixed; }
.construction-blocker-stat-company-table th, .construction-blocker-stat-company-table td { width: auto; text-align: center; vertical-align: middle; white-space: nowrap; }
.construction-blocker-stat-company-table th { background: #edf4fb; }
.construction-blocker-stat-company-table th:first-child, .construction-blocker-stat-company-table td:first-child { width: 180px; text-align: left; }
.construction-blocker-stat-company-table td.is-danger { color: #cf1322; font-weight: 600; }
.construction-blocker-stat-company-name { color: #1f2937; font-weight: 500; }
.construction-blocker-stat-project-section { margin-bottom: 20px; }
.construction-blocker-stat-project-section > .construction-blocker-stat-section-title { flex-wrap: wrap; }
.construction-blocker-stat-project-hint { color: #999; font-size: 12px; font-weight: 400; }
.construction-blocker-stat-project-search { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.construction-blocker-stat-project-search .form-input { width: 190px; min-width: 0; }
.construction-blocker-stat-project-grid-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin-top: 12px; }
.construction-blocker-stat-project-card { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; gap: 0 8px; min-width: 0; min-height: 164px; padding: 12px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; color: #333; cursor: pointer; text-align: left; }
.construction-blocker-stat-project-card:hover, .construction-blocker-stat-project-card:focus-visible { border-color: #1677ff; box-shadow: 0 0 0 2px rgba(22,119,255,.1); outline: 0; }
.construction-blocker-stat-project-rank { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 2px; background: #f0f2f5; color: #666; font-size: 12px; font-weight: 600; }
.construction-blocker-stat-project-name { min-width: 0; overflow: hidden; color: #1f2937; font-size: 14px; font-weight: 600; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.construction-blocker-stat-project-arrow { color: #111; font-size: 24px; line-height: 22px; text-align: right; }
.construction-blocker-stat-project-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0f3; }
.construction-blocker-stat-project-grid div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.construction-blocker-stat-project-grid small { overflow: hidden; color: #777; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.construction-blocker-stat-project-grid strong { color: #1f2937; font-size: 16px; font-weight: 600; }
.construction-blocker-stat-project-grid strong.is-green { color: #389e0d; }
.construction-blocker-stat-project-grid strong.is-orange { color: #d46b08; }
.construction-blocker-stat-project-grid strong.is-red { color: #cf1322; }
.construction-blocker-stat-empty { grid-column: 1 / -1; min-height: 120px; padding: 30px 0; color: #999; text-align: center; }
.construction-blocker-stat-map-dialog { width: min(1080px, calc(100vw - 24px)); }
.construction-blocker-stat-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; }
.construction-blocker-stat-map-canvas { position: relative; min-height: 500px; overflow: hidden; border: 1px solid #cbd6e2; background: #e9f0f6 url('../images/地图.png') center / cover no-repeat; }
.construction-blocker-stat-map-label { position: absolute; right: 12px; bottom: 10px; padding: 5px 8px; background: rgba(255,255,255,.84); color: #666; font-size: 12px; }
.construction-blocker-stat-map-marker { position: absolute; z-index: 2; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.25); color: #fff; font-size: 12px; font-weight: 600; }
.construction-blocker-stat-map-legend { min-width: 0; padding: 12px; border: 1px solid #edf0f3; background: #fafcff; }
.construction-blocker-stat-map-legend > strong { color: #333; font-size: 14px; }
.construction-blocker-stat-map-legend ul { display: grid; max-height: 420px; gap: 8px; margin: 12px 0 0; padding: 0; overflow-y: auto; list-style: none; }
.construction-blocker-stat-map-legend li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 6px; color: #555; font-size: 12px; }
.construction-blocker-stat-map-legend li i { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 11px; font-style: normal; }
.construction-blocker-stat-map-legend li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.construction-blocker-stat-map-legend li small { color: #999; }
.construction-blocker-stat-map-legend p { margin: 16px 0 0; color: #999; font-size: 12px; line-height: 1.6; }
@media (max-width: 1100px) {
  .construction-blocker-stat-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .construction-blocker-stat-filter-actions { justify-content: flex-end; }
  .construction-blocker-stat-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .construction-blocker-stat-project-grid-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .construction-blocker-statistics-page { padding: 8px; }
  .construction-blocker-stat-filters, .construction-blocker-stat-metrics, .construction-blocker-stat-charts, .construction-blocker-stat-project-grid-wrap { grid-template-columns: 1fr; }
  .construction-blocker-stat-filter-actions { justify-content: flex-start; }
  .construction-blocker-stat-chart-body { align-items: flex-start; flex-direction: column; }
  .construction-blocker-stat-donut { align-self: center; }
  .construction-blocker-stat-legend { width: 100%; }
  .construction-blocker-stat-company-section, .construction-blocker-stat-project-section { margin-right: 8px; margin-left: 8px; padding: 12px; }
  .construction-blocker-stat-project-section > .construction-blocker-stat-section-title { align-items: flex-start; flex-direction: column; }
  .construction-blocker-stat-project-search { width: 100%; margin-left: 0; }
  .construction-blocker-stat-project-search .form-input { flex: 1; width: auto; }
  .construction-blocker-stat-map-layout { grid-template-columns: 1fr; }
  .construction-blocker-stat-map-canvas { min-height: 360px; }
  .construction-blocker-stat-map-legend ul { max-height: 180px; }
}

/* 项目事纪与表彰通报 */
.project-events-page { min-width: 0; padding: 16px; background: #f0f2f5; }
.project-events-shell { min-width: 0; overflow: hidden; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.project-event-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 12px 16px; padding: 16px 20px; border-bottom: 1px solid #edf0f3; }
.project-event-filter-item { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.project-event-filter-item label { color: #666; font-size: 13px; }
.project-event-filter-item .form-input, .project-event-filter-item .form-select { width: 100%; min-width: 0; }
.project-event-filter-keyword { grid-column: span 2; }
.project-event-date-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.project-event-date-range span { color: #999; font-size: 12px; text-align: center; }
.project-event-filter-actions { grid-column: 5; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.project-event-toolbar { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 20px; border-bottom: 8px solid #f5f5f5; }
.project-event-metrics { display: flex; min-width: 0; align-items: stretch; gap: 8px; overflow-x: auto; }
.project-event-metric { display: inline-flex; min-width: 96px; height: 38px; align-items: center; justify-content: center; gap: 5px; padding: 0 12px; border: 1px solid #e5e6eb; background: #fff; color: #666; cursor: pointer; font-size: 13px; white-space: nowrap; }
.project-event-metric strong { color: #1f2937; font-size: 16px; }
.project-event-metric small { color: #999; font-size: 11px; }
.project-event-metric.is-active { border-color: #1677ff; background: #eef6ff; color: #1677ff; }
.project-event-metric.is-active strong { color: #1677ff; }
.project-event-toolbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.project-event-toolbar-actions .is-active { border-color: #1677ff; color: #1677ff; }
.project-event-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px; }
.project-event-card { min-width: 0; overflow: hidden; border: 1px solid #e5e7eb; background: #fff; }
.project-event-card:hover { border-color: #b7d3f7; box-shadow: 0 2px 8px rgba(30,105,207,.1); }
.project-event-card-main { display: block; width: 100%; padding: 0; border: 0; background: #fff; color: #333; cursor: pointer; text-align: left; }
.project-event-cover { display: flex; height: 112px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: #fff; }
.project-event-cover span { font-size: 22px; font-weight: 600; }
.project-event-cover small { opacity: .9; font-size: 12px; }
.project-event-cover.is-event { background: #1677ff; }
.project-event-cover.is-check { background: #13a8a8; }
.project-event-cover.is-notice { background: #fa8c16; }
.project-event-cover.is-award { background: #722ed1; }
.project-event-card-body { padding: 14px 16px 12px; }
.project-event-card-meta { display: flex; min-width: 0; align-items: center; gap: 8px; color: #999; font-size: 12px; }
.project-event-card-meta time { margin-right: auto; }
.project-event-type-tag, .project-event-status { display: inline-flex; min-height: 22px; align-items: center; padding: 0 7px; border: 1px solid transparent; border-radius: 2px; font-size: 12px; white-space: nowrap; }
.project-event-type-tag.is-event { border-color: #b7d3f7; background: #eef6ff; color: #1677ff; }
.project-event-type-tag.is-check { border-color: #87e8de; background: #e6fffb; color: #08979c; }
.project-event-type-tag.is-notice { border-color: #ffd591; background: #fff7e6; color: #d46b08; }
.project-event-type-tag.is-award { border-color: #d3adf7; background: #f9f0ff; color: #722ed1; }
.project-event-status.is-published { border-color: #b7eb8f; background: #f6ffed; color: #389e0d; }
.project-event-status.is-pending { border-color: #ffd591; background: #fff7e6; color: #d46b08; }
.project-event-status.is-rejected { border-color: #ffa39e; background: #fff1f0; color: #cf1322; }
.project-event-status.is-draft { border-color: #d9d9d9; background: #f5f5f5; color: #8c8c8c; }
.project-event-card h3 { margin: 12px 0 7px; overflow: hidden; color: #1f2937; font-size: 16px; font-weight: 600; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.project-event-card p { display: -webkit-box; min-height: 42px; margin: 0; overflow: hidden; color: #666; font-size: 13px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.project-event-card-footer { display: flex; min-width: 0; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #f0f0f0; color: #999; font-size: 12px; }
.project-event-card-footer span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-event-card-actions { padding: 9px 16px; border-top: 1px solid #f0f0f0; text-align: right; }
.project-event-table-wrap { overflow-x: auto; padding: 20px; }
.project-event-table { min-width: 1050px; table-layout: fixed; }
.project-event-table th, .project-event-table td { vertical-align: middle; text-align: left; }
.project-event-table .table-link, .project-event-card-actions .table-link { display: inline-flex; min-height: 24px; align-items: center; margin: 0 2px; padding: 0 3px; border: 0; background: transparent; color: var(--primary-color); cursor: pointer; font-size: 13px; line-height: 24px; white-space: nowrap; }
.project-event-table .table-link:hover, .project-event-card-actions .table-link:hover { color: var(--primary-hover); text-decoration: underline; }
.project-event-table th:nth-child(1), .project-event-table td:nth-child(1) { width: 86px; }
.project-event-table th:nth-child(2), .project-event-table td:nth-child(2) { width: 240px; }
.project-event-table th:nth-child(3), .project-event-table td:nth-child(3) { width: 86px; }
.project-event-table th:nth-child(4), .project-event-table td:nth-child(4) { width: 150px; }
.project-event-table th:nth-child(5), .project-event-table td:nth-child(5) { width: 190px; }
.project-event-table th:nth-child(6), .project-event-table td:nth-child(6) { width: 110px; }
.project-event-table th:nth-child(7), .project-event-table td:nth-child(7) { width: 90px; }
.project-event-table th:nth-child(8), .project-event-table td:nth-child(8) { width: 100px; }
.project-event-table th:nth-child(9), .project-event-table td:nth-child(9) { width: 70px; text-align: center; }
.project-event-table th:nth-child(10), .project-event-table td:nth-child(10) { width: 180px; }
.project-event-title-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-event-empty { min-height: 180px; padding: 60px 0; color: #999; text-align: center !important; }
.project-event-required { margin-left: 2px; color: #cf1322; }
.project-event-drill-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; min-width: 0; padding: 12px 0; }
.project-event-form-page, .project-event-detail-page { display: block; }
.project-event-form-main, .project-event-detail-main { min-width: 0; }
.project-event-form-card, .project-event-detail-card, .project-event-flow-card { margin-bottom: 12px; padding: 20px 24px; }
.project-event-form-card:last-child, .project-event-detail-card:last-child { margin-bottom: 0; }
.project-event-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; }
.project-event-form-item { position: relative; display: flex; min-width: 0; align-items: center; gap: 12px; }
.project-event-form-item > span:first-child { flex: 0 0 88px; color: #666; font-size: 13px; text-align: right; }
.project-event-form-item .form-input, .project-event-form-item .form-select { flex: 1; min-width: 0; }
.project-event-form-item textarea { min-height: 84px; resize: vertical; }
.project-event-form-item.is-full { grid-column: 1 / -1; align-items: flex-start; }
.project-event-form-item.is-full > span:first-child { padding-top: 8px; }
.project-event-char-count { position: absolute; right: 10px; bottom: 8px; color: #999; font-size: 11px; pointer-events: none; }
.project-event-upload-placeholder { display: flex; min-height: 112px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; border: 1px dashed #b7c3d0; background: #fafcff; color: #666; cursor: pointer; }
.project-event-upload-placeholder strong { color: #1677ff; font-size: 26px; font-weight: 400; line-height: 1; }
.project-event-upload-placeholder small, .project-event-attachment-count { color: #999; font-size: 12px; }
.project-event-file-input { display: none; }
.project-event-attachment-count { margin: 10px 0 0; }
.project-event-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; }
.project-event-detail-grid > div { display: flex; min-width: 0; align-items: flex-start; gap: 12px; }
.project-event-detail-grid > div > span:first-child { flex: 0 0 76px; color: #666; font-size: 13px; }
.project-event-detail-grid strong { min-width: 0; color: #333; font-size: 13px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.project-event-detail-grid .is-full { grid-column: 1 / -1; }
.project-event-detail-grid .is-multiline { white-space: pre-wrap; }
.project-event-detail-attachments { display: flex; align-items: center; gap: 12px; color: #666; font-size: 13px; }
.project-event-flow { position: relative; margin: 0; padding: 4px 0 0 18px; list-style: none; }
.project-event-flow::before { position: absolute; top: 12px; bottom: 12px; left: 5px; width: 1px; background: #d9e2ec; content: ''; }
.project-event-flow li { position: relative; display: flex; min-height: 58px; gap: 10px; }
.project-event-flow li i { position: relative; z-index: 1; flex: 0 0 8px; width: 8px; height: 8px; margin-top: 5px; border: 2px solid #d9d9d9; border-radius: 50%; background: #fff; }
.project-event-flow li.is-done i { border-color: #52c41a; background: #52c41a; }
.project-event-flow li.is-active i { border-color: #1677ff; background: #1677ff; }
.project-event-flow li div { display: flex; flex-direction: column; gap: 4px; }
.project-event-flow li strong { color: #333; font-size: 13px; font-weight: 500; }
.project-event-flow li small { color: #999; font-size: 12px; }
.project-event-export-page { padding: 12px 0; }
.project-event-export-page .drill-card { padding: 20px 24px; }
.project-event-export-page p { color: #666; font-size: 13px; }
@media (max-width: 1100px) {
  .project-event-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-event-filter-keyword { grid-column: auto; }
  .project-event-filter-actions { grid-column: auto; grid-row: auto; }
  .project-event-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .project-event-drill-page { grid-template-columns: 1fr; }
  .project-event-form-grid, .project-event-detail-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-event-form-item.is-full, .project-event-detail-grid .is-full { grid-column: auto; }
}
@media (max-width: 768px) {
  .project-events-page { padding: 8px; }
  .project-event-filters, .project-event-card-grid { grid-template-columns: 1fr; }
  .project-event-filter-keyword { grid-column: auto; }
  .project-event-filter-actions { justify-content: flex-start; }
  .project-event-toolbar { align-items: flex-start; flex-direction: column; padding: 10px; }
  .project-event-toolbar-actions { width: 100%; justify-content: flex-start; }
  .project-event-card-grid { padding: 12px; }
  .project-event-form-card, .project-event-detail-card, .project-event-flow-card { padding: 16px; }
}
.construction-blocker-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.construction-blocker-detail-item { display: flex; gap: 12px; min-height: 32px; align-items: flex-start; }
.construction-blocker-detail-item > span { min-width: 118px; color: #666; text-align: right; line-height: 20px; }
.construction-blocker-detail-item strong { flex: 1; padding: 7px 10px; border: 1px solid #edf0f3; border-radius: 2px; background: #fafafa; font-weight: 400; color: #333; }
.construction-blocker-detail-item strong.is-multiline { white-space: pre-wrap; line-height: 1.55; }
.construction-blocker-detail-item.is-full { grid-column: 1 / -1; }
.construction-blocker-flow-panel { align-self: start; padding: 20px; position: sticky; top: 12px; }
.construction-blocker-detail-page .construction-blocker-flow-panel { min-height: 420px; }
.construction-blocker-detail-map { display: grid; gap: 12px; }
.construction-blocker-detail-map .construction-blocker-map-canvas { min-height: 260px; cursor: default; }
.construction-blocker-detail-map .construction-blocker-map-canvas-hint { justify-content: flex-start; }
.construction-blocker-detail-empty { min-height: 72px; display: flex; align-items: center; justify-content: center; border: 1px dashed #d9d9d9; color: #999; font-size: 13px; }
.construction-blocker-detail-photos { display: grid; gap: 8px; }
.construction-blocker-detail-photo { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 4px 8px; border: 1px solid #edf0f3; color: #555; font-size: 13px; }
.construction-blocker-photo-thumb { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid #d9e2ef; background: #f5f8fc; color: #1e69cf; font-size: 12px; }
.construction-blocker-detail-photo > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.construction-blocker-monthly-history { display: grid; gap: 10px; }
.construction-blocker-monthly-history-item { padding: 12px; border: 1px solid #edf0f3; background: #fff; }
.construction-blocker-monthly-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #333; }
.construction-blocker-monthly-history-head span { padding: 2px 8px; border-radius: 2px; background: #edf4fb; color: #1e69cf; font-size: 12px; }
.construction-blocker-monthly-history-meta { margin-top: 5px; color: #999; font-size: 12px; }
.construction-blocker-monthly-history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin-top: 10px; }
.construction-blocker-monthly-history-grid > div { display: flex; gap: 8px; min-width: 0; font-size: 13px; line-height: 20px; }
.construction-blocker-monthly-history-grid > div.is-full { grid-column: 1 / -1; }
.construction-blocker-monthly-history-grid span { flex: 0 0 150px; color: #999; }
.construction-blocker-monthly-history-grid b { min-width: 0; color: #555; font-weight: 400; white-space: pre-wrap; word-break: break-word; }
.construction-blocker-monthly-reference-subtitle { margin: 16px 0 10px; color: #666; font-size: 13px; font-weight: 600; }
.construction-blocker-monthly-page .construction-blocker-monthly-reference .construction-blocker-detail-item strong { background: #f7f8fa; }
.construction-blocker-monthly-page .construction-blocker-monthly-reference + .construction-blocker-form-card { margin-top: 0; }
.construction-blocker-monthly-help { margin: 12px 0 0; color: #999; font-size: 12px; line-height: 20px; }
.construction-blocker-approval-bottom { grid-column: 1 / -1; margin-bottom: 12px; padding: 20px 24px; }
.construction-blocker-approval-row { display: flex; align-items: flex-start; gap: 12px; }
.construction-blocker-approval-row .construction-blocker-approval-label { flex: 0 0 118px; padding-top: 8px; color: #666; font-size: 13px; text-align: right; }
.construction-blocker-approver-picker { position: relative; flex: 0 0 360px; max-width: 100%; }
.construction-blocker-approver-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 32px; padding: 0 12px; border: 1px solid #d9d9d9; border-radius: 2px; background: #fff; color: #666; cursor: pointer; text-align: left; }
.construction-blocker-approver-trigger:hover, .construction-blocker-approver-trigger:focus-visible { border-color: #1e69cf; outline: 0; box-shadow: 0 0 0 2px rgba(30,105,207,.12); }
.construction-blocker-approver-menu { position: absolute; z-index: 8; top: 36px; left: 0; width: 100%; padding: 8px; border: 1px solid #d9d9d9; border-radius: 2px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.construction-blocker-approver-search { width: 100%; margin-bottom: 6px; }
.construction-blocker-approver-options { max-height: 176px; overflow-y: auto; }
.construction-blocker-approver-option { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 6px; color: #333; cursor: pointer; }
.construction-blocker-approver-option:hover { background: #f5f8fc; }
.construction-blocker-approver-option input { margin: 0; }
.construction-blocker-approvers-native { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.construction-blocker-flow-panel p { margin: 12px 0; color: #666; font-size: 13px; }
.construction-blocker-flow-summary { padding: 12px; background: #f5f8fc; color: #1e69cf; text-align: center; }
.construction-blocker-flow-step { position: relative; padding: 10px 10px 10px 18px; border-left: 2px solid #d9e2ef; display: grid; gap: 4px; font-size: 13px; }
.construction-blocker-flow-step::before { content: ''; position: absolute; left: -5px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: #b7c3d0; }
.construction-blocker-flow-step.is-done::before { background: #52c41a; }
.construction-blocker-flow-step.is-active::before { background: #1e69cf; }
.construction-blocker-flow-step.is-reject::before { background: #f5222d; }
.construction-blocker-flow-step span, .construction-blocker-flow-step small { color: #999; }
.construction-blocker-flow-step em { color: #666; font-style: normal; }
.construction-blocker-config-page { display: grid; gap: 12px; }
.construction-blocker-config-page .drill-card { padding: 20px 24px; }
.construction-blocker-config-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.construction-blocker-config-header .drill-section-title { margin-bottom: 0; }
.construction-blocker-config-list { overflow-x: auto; }
.construction-blocker-coordination-table { width: 100%; min-width: 620px; }
.construction-blocker-coordination-table th:first-child, .construction-blocker-coordination-table td:first-child { width: 80px; text-align: center; }
.construction-blocker-coordination-table th:nth-child(2), .construction-blocker-coordination-table td:nth-child(2) { text-align: left; }
.construction-blocker-coordination-table th:last-child, .construction-blocker-coordination-table td:last-child { width: 360px; text-align: center; }
.construction-blocker-config-row { min-height: 42px; color: #555; }
.construction-blocker-config-name { margin-right: 8px; }
.construction-blocker-config-actions { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.construction-blocker-config-actions .table-link { display: inline-flex; min-height: 24px; align-items: center; margin: 0 2px; padding: 0 3px; border: 0; border-radius: 2px; background: transparent; color: var(--primary-color); cursor: pointer; font-size: 13px; line-height: 24px; white-space: nowrap; }
.construction-blocker-config-actions .table-link:hover, .construction-blocker-config-actions .table-link:focus-visible { color: var(--primary-hover); outline: 0; text-decoration: underline; }
.construction-blocker-config-actions .table-link[disabled] { color: #bfbfbf; cursor: not-allowed; text-decoration: none; }
.construction-blocker-export-page .drill-card { padding: 20px 24px; }
@media (max-width: 768px) {
  .construction-blocker-drill-page, .construction-blocker-form-grid, .construction-blocker-detail-grid { grid-template-columns: 1fr; }
  .construction-blocker-flow-panel { position: static; }
  .construction-blocker-form-item.is-full, .construction-blocker-detail-item.is-full { grid-column: auto; }
  .construction-blocker-form-item { align-items: flex-start; }
  .construction-blocker-form-item > span:first-child, .construction-blocker-detail-item > span { flex: 0 0 100px; min-width: 100px; text-align: left; padding-top: 7px; }
  .construction-blocker-approval-bottom { grid-column: auto; }
  .construction-blocker-approval-row { display: block; }
  .construction-blocker-approval-row .construction-blocker-approval-label { display: block; padding: 0 0 6px; text-align: left; }
  .construction-blocker-approval-row .construction-blocker-approver-picker { width: 100%; }
  .construction-blocker-monthly-history-grid { grid-template-columns: 1fr; }
  .construction-blocker-monthly-history-grid > div.is-full { grid-column: auto; }
}
/* 工人工资发放计划 */
.worker-payment-plan-flow-dialog {
  width: min(760px, calc(100vw - 24px));
}

.worker-payment-plan-flow-options {
  display: grid;
  gap: 14px;
  padding: 10px 4px 14px;
}

.worker-payment-plan-flow-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #d8e8ff;
  border-radius: 4px;
  background: #eef5ff;
  color: var(--text-primary);
  text-align: center;
}

.worker-payment-plan-flow-option:hover {
  border-color: var(--primary-color);
  background: #f5f9ff;
}

.worker-payment-plan-flow-option strong {
  font-size: 15px;
  font-weight: 400;
}

.form-static-value {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fafafa;
  color: var(--text-primary);
  line-height: 20px;
}

.worker-payment-plan-detail-page {
  min-height: calc(100vh - 136px);
  padding: 12px 0;
}

.worker-payment-plan-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.worker-payment-plan-detail-main {
  min-width: 0;
}

.worker-payment-plan-basic-card,
.worker-payment-plan-flow-panel {
  min-height: 250px;
  background: #fff;
}

.worker-payment-plan-basic-card {
  padding: 20px 24px;
}

.worker-payment-plan-basic-card .drill-section-title,
.worker-payment-plan-flow-panel .drill-section-title {
  margin-bottom: 20px;
}

.worker-payment-plan-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 48px;
}

.worker-payment-plan-detail-grid div {
  display: flex;
  align-items: baseline;
  min-width: 0;
  line-height: 24px;
}

.worker-payment-plan-detail-grid span {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.worker-payment-plan-detail-grid strong {
  min-width: 0;
  margin-left: 8px;
  color: var(--text-primary);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.worker-payment-plan-flow-panel {
  position: sticky;
  top: 12px;
  padding: 20px 18px;
}

.worker-payment-plan-flow {
  position: relative;
  padding-left: 4px;
}

.worker-payment-plan-flow-step {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 24px;
}

.worker-payment-plan-flow-step::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: #d9e2ef;
}

.worker-payment-plan-flow-step:last-child {
  padding-bottom: 0;
}

.worker-payment-plan-flow-step:last-child::before {
  content: none;
}

.worker-payment-plan-flow-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  background: #fff;
}

.worker-payment-plan-flow-step.is-done .worker-payment-plan-flow-dot {
  border-color: #52c41a;
  background: #52c41a;
}

.worker-payment-plan-flow-step.is-active .worker-payment-plan-flow-dot {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.worker-payment-plan-flow-title {
  color: var(--text-primary);
  font-weight: 500;
  line-height: 20px;
}

.worker-payment-plan-flow-card {
  position: relative;
  min-height: 54px;
  margin-top: 8px;
  padding: 10px 12px;
  background: #f5f7fa;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.worker-payment-plan-flow-card strong {
  margin-right: 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.worker-payment-plan-flow-card em,
.worker-payment-plan-flow-result {
  display: block;
  margin-top: 7px;
  color: #10a35a;
  font-size: var(--font-size-sm);
  font-style: normal;
}

.worker-payment-plan-flow-step.is-pending .worker-payment-plan-flow-result {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .worker-payment-plan-detail-layout,
  .worker-payment-plan-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .worker-payment-plan-flow-panel {
    position: static;
  }
}
/* 人员考勤日表 */
.worker-attendance-daily-page {
  min-width: 0;
}

.worker-attendance-daily-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 48px;
  margin-bottom: 12px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.worker-attendance-daily-tab-list,
.worker-attendance-daily-tab-actions {
  display: flex;
  align-items: center;
}

.worker-attendance-daily-tab-list {
  min-width: 0;
  gap: 24px;
}

.worker-attendance-daily-tab-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.worker-attendance-daily-import-help {
  min-width: 32px;
  padding: 0 8px;
  font-weight: 700;
}

.worker-attendance-daily-import-dialog {
  width: min(760px, calc(100vw - 32px));
}

.worker-attendance-daily-import-instructions {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-primary);
  line-height: 1.8;
}

.worker-attendance-daily-import-image {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border: 1px solid var(--border-color);
  background: #fafafa;
}

.worker-attendance-daily-tab {
  position: relative;
  height: 48px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #595959;
  font-size: 14px;
  cursor: pointer;
}

.worker-attendance-daily-tab:hover,
.worker-attendance-daily-tab.active {
  color: #1677ff;
}

.worker-attendance-daily-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #1677ff;
  content: '';
}

.worker-attendance-daily-card {
  padding: 0;
}

.worker-attendance-daily-search {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 10px 28px;
  padding: 18px 20px 14px;
  border-bottom: 8px solid #f5f5f5;
}

.worker-attendance-daily-search .form-item {
  min-width: 0;
  margin: 0;
}

.worker-attendance-daily-search .form-item label {
  flex: 0 0 74px;
  text-align: right;
}

.worker-attendance-daily-search .form-input,
.worker-attendance-daily-search .form-select {
  min-width: 0;
  width: 100%;
}

.worker-attendance-daily-search .search-actions {
  align-self: center;
}

.worker-attendance-daily-date {
  gap: 8px;
}

.worker-attendance-daily-date .form-input {
  width: calc(50% - 18px);
}

.worker-attendance-daily-date span {
  flex: 0 0 auto;
  color: #8c8c8c;
  font-size: 13px;
}

.worker-attendance-daily-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 16px;
  padding: 10px 20px;
}

.worker-attendance-daily-summary {
  min-width: 0;
  color: #595959;
  font-size: 13px;
  line-height: 22px;
}

.worker-attendance-daily-summary strong {
  color: #1677ff;
  font-weight: 500;
}

.worker-attendance-daily-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.worker-attendance-daily-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.worker-attendance-daily-file {
  display: none;
}

.worker-attendance-daily-table-wrap {
  margin: 0 20px;
}

.worker-attendance-daily-table {
  min-width: 1380px;
}

.worker-attendance-daily-ledger-table {
  min-width: 980px;
}

.worker-attendance-daily-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid #f0f0f0;
}

.worker-attendance-daily-detail-header strong {
  color: #262626;
  font-size: 15px;
}

.worker-attendance-daily-detail-header span {
  margin-left: 10px;
  color: #8c8c8c;
  font-size: 13px;
}

.worker-attendance-monthly-table-wrap {
  margin: 0 20px;
}

.worker-attendance-monthly-table {
  min-width: 3600px;
}

.worker-attendance-monthly-table th,
.worker-attendance-monthly-table td {
  min-width: 50px;
  white-space: nowrap;
  text-align: left;
}

.worker-attendance-monthly-table th:nth-child(-n+7),
.worker-attendance-monthly-table td:nth-child(-n+7) {
  min-width: 110px;
}

.worker-attendance-monthly-table th:nth-last-child(-n+2),
.worker-attendance-monthly-table td:nth-last-child(-n+2) {
  min-width: 150px;
}

.worker-attendance-statistics-search {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr)) auto;
  gap: 12px 28px;
  padding: 14px 20px;
  border-bottom: 8px solid #f5f5f5;
}

.worker-attendance-statistics-search .form-item {
  margin: 0;
}

.worker-attendance-statistics-search .worker-attendance-statistics-date-range {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.worker-attendance-statistics-search .worker-attendance-statistics-date-range label {
  width: auto;
}

.worker-attendance-statistics-search .form-item label {
  flex: 0 0 74px;
  text-align: right;
}

.worker-attendance-statistics-search .form-input,
.worker-attendance-statistics-search .form-select {
  min-width: 0;
  width: 100%;
}

.worker-attendance-statistics-search .search-actions {
  align-self: center;
}

.worker-attendance-statistics-table-wrap {
  margin: 20px 20px;
}

.worker-attendance-statistics-table th,
.worker-attendance-statistics-table td {
  text-align: center;
}

.worker-attendance-statistics-table th:not(:first-child),
.worker-attendance-statistics-table td:not(:first-child) {
  text-align: left;
}

.worker-attendance-statistics-table th:first-child,
.worker-attendance-statistics-table td:first-child {
  min-width: 360px;
  text-align: left;
}

.worker-attendance-statistics-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid #d9d9d9;
  color: #8c8c8c;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.worker-attendance-statistics-team-name {
  display: inline-block;
  padding-left: 40px;
}

.worker-attendance-daily-table th,
.worker-attendance-daily-table td {
  white-space: nowrap;
  text-align: left;
}

.worker-attendance-daily-table .worker-attendance-daily-wide {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.worker-attendance-daily-card .pagination {
  margin: 14px 20px 18px;
}

.worker-attendance-daily-notes-dialog {
  width: min(920px, calc(100vw - 32px));
}

.worker-attendance-daily-notes-body {
  color: #333;
  font-size: 14px;
  line-height: 1.7;
}

.worker-attendance-daily-notes-body section + section {
  margin-top: 12px;
}

.worker-attendance-daily-notes-body h4 {
  margin: 0 0 6px;
  color: #1677ff;
  font-size: 14px;
  font-weight: 500;
}

.worker-attendance-daily-notes-body p {
  margin: 0 0 7px;
}

.worker-attendance-daily-notes-emphasis {
  color: #d4380d;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .worker-attendance-daily-search {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}
@media (max-width: 760px) {
  .worker-attendance-daily-tabs {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    overflow-x: auto;
  }

  .worker-attendance-daily-tab-list {
    gap: 16px;
  }

  .worker-attendance-daily-tab-actions {
    align-self: flex-end;
  }

  .worker-attendance-daily-search {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .worker-attendance-statistics-search {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .worker-attendance-statistics-table-wrap {
    margin: 20px 14px 14px;
  }

  .worker-attendance-daily-toolbar {
    align-items: flex-start;
    flex-direction: column-reverse;
    padding: 12px 14px;
  }

  .worker-attendance-daily-table-wrap,
  .worker-attendance-monthly-table-wrap,
  .worker-attendance-daily-card .pagination {
    margin-right: 14px;
    margin-left: 14px;
  }
}

.header-scope-trigger {
  height: 32px;
  min-width: 258px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 72, 164, 0.36);
  color: #ffffff;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.header-scope-trigger:hover,
.header-scope-filter.is-open .header-scope-trigger {
  background: rgba(0, 72, 164, 0.5);
}

.header-scope-company {
  font-weight: 600;
}

.header-scope-current {
  max-width: 156px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.82);
}

.header-scope-arrow {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.8;
}

.header-scope-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1200;
  width: 318px;
  display: none;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.header-scope-filter.is-open .header-scope-panel {
  display: block;
}

.header-scope-option {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.header-scope-option:hover {
  background: var(--bg-light);
}

.header-scope-option.is-company {
  min-height: 42px;
}

.header-scope-option strong {
  font-weight: 600;
}

.header-scope-option span {
  color: var(--text-secondary);
  font-size: 12px;
}

.header-scope-option.is-active {
  background: rgba(30, 105, 207, 0.1);
  color: var(--primary-color);
  font-weight: 600;
}

.header-scope-option.is-disabled {
  color: var(--text-disabled);
  cursor: not-allowed;
}

.header-scope-option.is-disabled:hover {
  background: transparent;
}

.header-scope-group-title {
  padding: 8px 9px 4px;
  color: var(--text-secondary);
  font-size: 12px;
}

.scope-summary-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(30, 105, 207, 0.18);
  border-radius: 4px;
  background: rgba(30, 105, 207, 0.06);
  color: var(--text-primary);
  font-size: 13px;
}

.scope-summary-strip span {
  color: var(--text-secondary);
}

.office-workbench-page {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: stretch;
  grid-auto-flow: row dense;
}

.office-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.office-section-title {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
}

.office-project-overview,
.office-work-card,
.office-inspection-card {
  grid-column: 1 / 2;
}

.office-weather-card,
.office-announcement-card,
.office-shortcuts-card,
.office-danger-card {
  grid-column: 2 / 3;
}

.office-project-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.5fr) repeat(3, minmax(120px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.office-progress-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 108px;
}

.office-progress-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.office-progress-title span {
  padding: 3px 12px;
  border-radius: 4px;
  background: #edf2ff;
  color: #4f6bd8;
  font-size: 13px;
}

.office-progress-sub {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 13px;
}

.office-progress-bar {
  flex: 1;
  height: 16px;
  border-radius: 2px;
  background: #edf1fb;
  overflow: hidden;
}

.office-progress-bar i {
  display: block;
  height: 100%;
  background: #4f69f0;
}

.office-progress-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.office-progress-line strong {
  min-width: 52px;
  color: #4f69f0;
  font-size: 22px;
  line-height: 1;
  text-align: right;
}

.office-overview-metric {
  position: relative;
  min-height: 108px;
  padding: 22px 18px;
  border: 1px solid #edf1f7;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  overflow: hidden;
}

.office-overview-metric::after {
  content: '';
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 86px;
  height: 86px;
  border-radius: 28px;
  background: rgba(79, 105, 240, 0.07);
  transform: rotate(18deg);
}

.office-overview-metric.is-area::after {
  background: rgba(17, 153, 142, 0.08);
}

.office-overview-metric.is-building::after {
  background: rgba(250, 173, 20, 0.1);
}

.office-overview-metric span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
}

.office-overview-metric div {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.office-overview-metric strong {
  display: inline-block;
  color: #0b1f4d;
  font-size: 30px;
  line-height: 1;
}

.office-overview-metric em {
  margin-left: 8px;
  color: var(--text-secondary);
  font-style: normal;
}

.office-weather-card {
  min-height: 182px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.86) 0 58px, transparent 59px),
    linear-gradient(148deg, rgba(255, 255, 255, 0.94) 0%, rgba(236, 246, 255, 0.96) 45%, rgba(214, 236, 226, 0.78) 46%, rgba(244, 249, 255, 0.96) 100%);
  overflow: hidden;
}

.office-weather-card::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -12px;
  width: 190px;
  height: 150px;
  opacity: 0.35;
  background-image:
    linear-gradient(30deg, rgba(111, 139, 184, 0.16) 12%, transparent 12.5%, transparent 87%, rgba(111, 139, 184, 0.16) 87.5%, rgba(111, 139, 184, 0.16)),
    linear-gradient(150deg, rgba(111, 139, 184, 0.16) 12%, transparent 12.5%, transparent 87%, rgba(111, 139, 184, 0.16) 87.5%, rgba(111, 139, 184, 0.16)),
    linear-gradient(30deg, rgba(111, 139, 184, 0.16) 12%, transparent 12.5%, transparent 87%, rgba(111, 139, 184, 0.16) 87.5%, rgba(111, 139, 184, 0.16)),
    linear-gradient(150deg, rgba(111, 139, 184, 0.16) 12%, transparent 12.5%, transparent 87%, rgba(111, 139, 184, 0.16) 87.5%, rgba(111, 139, 184, 0.16));
  background-position: 0 0, 0 0, 18px 31px, 18px 31px;
  background-size: 36px 62px;
}

.office-weather-main,
.office-weather-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.office-weather-mark {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.office-weather-mark span {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
}

.office-weather-detail {
  margin-top: 16px;
  color: var(--text-primary);
  font-size: 14px;
}

.office-weather-visual {
  position: relative;
  width: 76px;
  height: 72px;
  flex: 0 0 auto;
}

.office-weather-visual i {
  position: absolute;
  top: 9px;
  left: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc233, #ff990f);
  box-shadow: 0 4px 14px rgba(255, 166, 23, 0.36);
}

.office-weather-visual b {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 36px;
  height: 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #ffe1bd 100%);
  box-shadow: 0 8px 18px rgba(139, 157, 186, 0.24);
}

.office-weather-visual b::before {
  content: '';
  position: absolute;
  left: -8px;
  bottom: 0;
  width: 24px;
  height: 21px;
  border-radius: 50%;
  background: #ffffff;
}

.office-weather-card small {
  color: var(--text-secondary);
  text-align: right;
}

.office-weather-foot span {
  color: var(--text-secondary);
  font-size: 13px;
}

.office-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.office-section-heading .office-section-title {
  margin-bottom: 0;
}

.office-section-heading button {
  border: 0;
  background: transparent;
  color: var(--primary-color);
  font-size: 13px;
  cursor: pointer;
}

.office-announcement-card {
  min-height: 182px;
}

.office-announcement-list {
  display: grid;
  gap: 8px;
}

.office-announcement-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.office-announcement-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-announcement-item em {
  color: var(--text-secondary);
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
}

.office-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.office-work-tile {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border: 1px solid #edf1f7;
  border-radius: 4px;
  background: #f4f7ff;
  color: var(--text-primary);
  text-align: left;
}

.office-work-tile span {
  padding: 4px 12px;
  border-radius: 3px;
  color: #ffffff;
  font-size: 13px;
}

.office-work-tile strong {
  font-size: 30px;
}

.office-work-tile.is-blue span { background: #5b85ef; }
.office-work-tile.is-cyan span { background: #29a9c8; }
.office-work-tile.is-green span { background: #55a770; }
.office-work-tile.is-gray span { background: #7d86a8; }

.office-inspection-card {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.office-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.office-shortcut {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
}

.office-shortcut span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f2f5fb;
  color: var(--primary-color);
}

.office-shortcut svg {
  width: 20px;
  height: 20px;
}

.office-shortcut em {
  font-style: normal;
}

.office-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.office-stat-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 14px 14px 14px 16px;
  border: 1px solid #e7edf6;
  border-radius: 4px;
  background: #f8fbff;
  overflow: hidden;
}

.office-stat-item::before {
  content: '';
  position: absolute;
  right: -16px;
  bottom: -18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(30, 105, 207, 0.08);
}

.office-stat-item span {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

.office-stat-item strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-left: auto;
  color: var(--primary-color);
  font-size: 24px;
  line-height: 1;
}

.office-stat-item em {
  position: relative;
  z-index: 1;
  margin-left: 4px;
  color: var(--text-secondary);
  font-style: normal;
  font-size: 12px;
}

.office-stat-item.is-tone-1::before { background: rgba(17, 153, 142, 0.1); }
.office-stat-item.is-tone-2::before { background: rgba(22, 119, 255, 0.1); }
.office-stat-item.is-tone-3::before { background: rgba(82, 196, 26, 0.12); }
.office-stat-item.is-tone-4::before { background: rgba(240, 68, 95, 0.12); }
.office-stat-item.is-tone-5::before { background: rgba(250, 173, 20, 0.14); }

.office-stat-item.is-tone-1 strong { color: #0f8f84; }
.office-stat-item.is-tone-2 strong { color: #1677ff; }
.office-stat-item.is-tone-3 strong { color: #389e0d; }
.office-stat-item.is-tone-5 strong { color: #d48806; }

.office-stat-item strong.is-warn,
.office-danger-tile strong.is-warn {
  color: #f0445f;
}

.office-trend {
  flex: 1;
  position: relative;
  margin-top: 22px;
  padding: 16px 16px 12px;
  border: 1px solid #e7edf6;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.office-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.office-trend-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.office-trend-title span {
  margin-left: 34px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.office-trend-tabs {
  display: inline-flex;
  padding: 2px;
  border: 1px solid #d9e3f2;
  border-radius: 4px;
  background: #f3f6fb;
}

.office-trend-tabs button {
  min-width: 92px;
  height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}

.office-trend-tabs button.is-active {
  background: #ffffff;
  color: var(--primary-color);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(30, 105, 207, 0.16);
}

.office-trend-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin: 2px 2px 6px;
  color: var(--text-secondary);
  font-size: 12px;
}

.office-trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.office-trend-legend span::before {
  content: '';
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary-color);
}

.office-trend-legend .is-quality::before { background: #0f8f84; }
.office-trend-legend .is-general::before { background: #389e0d; }
.office-trend-legend .is-major::before { background: #f0445f; }
.office-trend-legend .is-total::before { background: #d97706; }

.office-trend-chart {
  position: relative;
}

.office-trend svg {
  width: 100%;
  height: 158px;
}

.office-echart-line .grid {
  stroke: #e7edf6;
  stroke-width: 1;
}

.office-echart-line .axis {
  stroke: #b8c2d1;
  stroke-width: 1;
}

.office-echart-line .line {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 2.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.office-echart-line .line-fill {
  fill-opacity: 0.18;
  stroke: none;
}

.office-echart-line .line.is-quality,
.office-echart-line .point.is-quality {
  stroke: #0f8f84;
}

.office-echart-line .line.is-general,
.office-echart-line .point.is-general {
  stroke: #389e0d;
}

.office-echart-line .line.is-major,
.office-echart-line .point.is-major {
  stroke: #f0445f;
}

.office-echart-line .line.is-total,
.office-echart-line .point.is-total {
  stroke: #d97706;
}

.office-echart-line .point {
  fill: #ffffff;
  stroke: var(--primary-color);
  stroke-width: 2;
}

.office-echart-line .office-trend-month-hit {
  fill: transparent;
  cursor: pointer;
  pointer-events: all;
}

.office-echart-line .office-trend-month-hit:hover,
.office-echart-line .office-trend-month-hit.is-active {
  fill: rgba(30, 105, 207, 0.06);
}

.office-echart-line .line-fill.is-safety {
  fill: url(#officeTrendFillSafety);
}

.office-echart-line .line-fill.is-quality {
  fill: url(#officeTrendFillQuality);
}

.office-echart-line .line-fill.is-general {
  fill: url(#officeTrendFillGeneral);
}

.office-echart-line .line-fill.is-major {
  fill: url(#officeTrendFillMajor);
}

.office-echart-line .line-fill.is-total {
  fill: url(#officeTrendFillTotal);
}

.office-echart-line .axis-label {
  fill: var(--text-secondary);
  font-size: 11px;
}

.office-echart-line .axis-label.x {
  text-anchor: middle;
}

.office-echart-line .axis-label.y {
  text-anchor: end;
}

.office-trend-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-left: 7%;
  color: var(--text-secondary);
  font-size: 12px;
}

.office-trend-tooltip {
  position: absolute;
  top: 8px;
  min-width: 132px;
  padding: 8px 10px;
  border: 1px solid rgba(30, 105, 207, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.6;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.office-trend-tooltip strong,
.office-trend-tooltip span {
  display: block;
  white-space: nowrap;
}

.office-trend-tooltip strong {
  margin-bottom: 2px;
  color: var(--primary-color);
  font-size: 13px;
}

.office-danger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.office-danger-card {
  padding: 20px 24px;
}

.office-danger-card .office-section-title {
  margin-bottom: 14px;
}

.office-danger-tile {
  position: relative;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid #e7edf6;
  border-radius: 4px;
  background: #f8fbff;
  overflow: hidden;
}

.office-danger-tile:first-child {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%);
}

.office-danger-tile::after {
  content: '';
  position: absolute;
  right: -14px;
  bottom: -20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(30, 105, 207, 0.08);
}

.office-danger-tile span {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  font-size: 13px;
}

.office-danger-tile strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.office-danger-tile:first-child strong {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 26px;
}

.office-matter-page {
  min-height: calc(100vh - var(--header-height) - 72px);
}

.office-matter-search {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
  padding: 16px 28px;
  background: #ffffff;
}

.office-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.office-search-item label {
  color: var(--text-primary);
  font-size: 14px;
  white-space: nowrap;
}

.office-search-item .form-input,
.office-search-item .form-select {
  width: 256px;
  height: 32px;
  min-width: 0;
}

.office-search-item:nth-child(3) .form-input,
.office-search-item:nth-child(3) .form-select {
  width: 216px;
}

.office-matter-panel {
  min-height: calc(100vh - var(--header-height) - 150px);
  padding: 34px 32px 24px;
  background: #ffffff;
}

.office-matter-toolbar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.office-matter-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.office-tool-btn {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 18px;
  line-height: 24px;
}

.office-empty-table-wrap {
  min-height: 620px;
}

.office-empty-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.office-empty-table th {
  height: 38px;
  padding: 0 10px;
  border-right: 1px solid #e6e8ee;
  background: #fbfbfc;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.office-empty-table th:last-child {
  border-right: 0;
}

.office-empty-table td {
  height: 146px;
  border-bottom: 1px solid #d8dbe2;
  text-align: center;
}

.office-check-cell {
  width: 32px;
}

.office-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #b6bbc6;
  font-size: 13px;
}

.office-empty-icon {
  position: relative;
  width: 54px;
  height: 38px;
}

.office-empty-icon::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 7px;
  width: 36px;
  height: 24px;
  border: 1px solid #dfe3ea;
  border-radius: 3px;
  background: #ffffff;
}

.office-empty-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  border-radius: 50%;
  background: rgba(220, 224, 230, 0.45);
}

.header-user {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.header-user:hover {
  background: rgba(255, 255, 255, 0.15);
}

.header-user .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  margin-right: 8px;
}

.header-user .user-name {
  color: #ffffff;
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

/* ---------- Sidebar ---------- */
.layout-sider {
  width: var(--sider-width);
  background: var(--sider-bg);
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  transition: width var(--transition-normal);
  z-index: 50;
}

.layout-sider::-webkit-scrollbar {
  width: 4px;
}

.layout-sider::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.layout-sider::-webkit-scrollbar-track {
  background: transparent;
}

/* Sidebar menu */
.sider-menu {
  padding: 0;
}

.menu-item-group {
  margin-bottom: 2px;
}

.sider-menu .menu-item-group:first-child {
  margin-top: 0;
}

.menu-item-group-title {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.menu-item-group-title:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.menu-item-group-title.active {
  color: #ffffff;
  background: var(--primary-color);
}

.menu-item-group-title.is-legacy,
.menu-item.is-legacy,
.menu-sub-item.is-legacy,
.menu-sub-item-group-title.is-legacy {
  color: rgba(255, 255, 255, 0.36);
}

.menu-item-group-title.is-legacy:hover,
.menu-item.is-legacy:hover,
.menu-sub-item.is-legacy:hover,
.menu-sub-item-group-title.is-legacy:hover {
  color: rgba(255, 255, 255, 0.7);
}

.menu-item-group-title.is-disabled,
.menu-item.is-disabled,
.menu-sub-item.is-disabled,
.menu-sub-item-group-title.is-disabled {
  color: rgba(255, 255, 255, 0.32);
  cursor: not-allowed;
  pointer-events: none;
}

.menu-item-group-title.is-disabled:hover,
.menu-item.is-disabled:hover,
.menu-sub-item.is-disabled:hover,
.menu-sub-item-group-title.is-disabled:hover {
  color: rgba(255, 255, 255, 0.32);
  background: transparent;
}

.menu-item-group-title .icon {
  margin-right: 8px;
  font-size: 16px;
  width: 16px;
  text-align: center;
}

.menu-item-group-title .text {
  flex: 1;
}

.menu-item-group-title .arrow {
  font-size: 12px;
  transition: transform var(--transition-fast);
  margin-left: 4px;
}

.menu-item-group-title.expanded .arrow {
  transform: rotate(90deg);
}

/* Sub menu items */
.menu-sub {
  overflow: hidden;
  transition: max-height var(--transition-normal);
  max-height: 0;
}

.menu-sub.open {
  max-height: 2000px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 8px 16px 8px 40px;
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.menu-item.active {
  color: #ffffff;
  background: var(--primary-color);
}

.menu-item.is-disabled.active,
.menu-sub-item.is-disabled.active {
  background: transparent;
}

.menu-item .icon {
  margin-right: 8px;
  font-size: 14px;
  width: 14px;
  text-align: center;
}

/* Sub-sub menu */
.menu-sub-item-group-title {
  display: flex;
  align-items: center;
  padding: 8px 16px 8px 40px;
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.menu-sub-item-group-title:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.menu-sub-item-group-title .icon {
  margin-right: 8px;
  font-size: 14px;
}

.menu-sub-item-group-title .arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform var(--transition-fast);
}

.menu-sub-item-group-title.expanded .arrow {
  transform: rotate(90deg);
}

.menu-sub-item {
  display: flex;
  align-items: center;
  padding: 7px 16px 7px 56px;
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--font-size-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-sub-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.menu-sub-item.active {
  color: #ffffff;
  background: var(--primary-color);
}

.menu-sub-item.is-disabled.active {
  background: transparent;
}

/* Sider collapse trigger */
.sider-trigger {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sider-trigger:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.sider-trigger .icon {
  font-size: 18px;
  transition: transform var(--transition-normal);
}

/* ---------- Content ---------- */
.layout-content {
  flex: 1;
  overflow: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1;
  padding: var(--spacing-md);
  overflow: auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  padding: 12px 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.breadcrumb-item {
  color: var(--text-secondary);
}

.breadcrumb-item:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--text-muted);
}

/* ---------- Card ---------- */
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Search Form ---------- */
.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.form-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-item label {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.form-input {
  height: 32px;
  padding: 4px 12px;
  border: 1px solid #d9d9d9;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
  min-width: 160px;
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-bg);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  height: 32px;
  padding: 4px 32px 4px 12px;
  border: 1px solid #d9d9d9;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none;
  cursor: pointer;
  min-width: 160px;
  transition: border-color var(--transition-fast);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-bg);
}

.search-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 15px;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  gap: 6px;
}

.btn .icon {
  font-size: 14px;
}

.btn-primary {
  background: var(--primary-color);
  color: #ffffff;
  border: 1px solid var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-default {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid #d9d9d9;
}

.btn-default:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-link {
  background: transparent;
  color: var(--primary-color);
  border: none;
  padding: 0 4px;
  height: auto;
}

.btn-link:hover {
  color: var(--primary-hover);
}

.btn-link.danger {
  color: #ff4d4f;
}

.btn-link.danger:hover {
  color: #ff7875;
}

.btn-text {
  background: transparent;
  color: var(--primary-color);
  border: none;
}

.btn-text:hover {
  background: var(--primary-bg);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 22px;
  white-space: nowrap;
}

.status-badge.success {
  color: #389e0d;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
}

.status-badge.warning {
  color: #d48806;
  background: #fffbe6;
  border: 1px solid #ffe58f;
}

.status-badge.danger {
  color: #cf1322;
  background: #fff1f0;
  border: 1px solid #ffa39e;
}

/* ---------- Table ---------- */
.table-wrapper {
  margin: var(--spacing-md);
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
}

.table-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.data-table thead {
  background: #fafafa;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  user-select: none;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #f5f7fa;
}

.data-table .cell-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.bim-model-card {
  min-height: calc(100vh - 120px);
}

.bim-model-search-form .form-input,
.bim-model-search-form .form-select {
  min-width: 248px;
}

.bim-model-table-header {
  justify-content: flex-end;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 0;
}

.bim-model-table th,
.bim-model-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.bim-model-table .cell-actions {
  gap: 2px;
}

/* ---------- Danger Assess ---------- */
.danger-assess-card {
  min-height: calc(100vh - 120px);
}

.danger-assess-search-form .form-select,
.danger-assess-search-form .form-input {
  min-width: 228px;
}

.danger-assess-table-header {
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.danger-assess-inline-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-assess-inline-metrics div {
  height: 34px;
  min-width: 154px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid #e8edf5;
  border-radius: 4px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
}

.danger-assess-inline-metrics strong {
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
}

.danger-assess-table-wrap {
  max-height: calc(100vh - 300px);
  overflow: auto;
}

.danger-assess-table {
  min-width: 1280px;
}

.danger-assess-table th,
.danger-assess-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.danger-assess-table th {
  border-right: 1px solid #f0f0f0;
}

.danger-assess-table th:last-child {
  border-right: 0;
}

.danger-assess-table .danger-assess-group-head {
  text-align: center;
}

.danger-assess-table .cell-actions {
  gap: 2px;
}

.danger-assess-page-input {
  width: 44px;
  min-width: 44px;
  height: 28px;
  padding: 2px 6px;
}

.danger-assess-flow-dialog {
  width: min(520px, calc(100vw - 32px));
}

.danger-assess-flow-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 4px 14px;
}

.danger-assess-flow-option {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  color: var(--text-primary);
  background: #eef5ff;
  border: 1px solid #d8e8ff;
  border-radius: 4px;
  text-align: center;
  font-size: 15px;
  cursor: pointer;
}

.danger-assess-flow-option:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #f6fbff;
}

.danger-assess-edit-page,
.danger-assess-detail-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.danger-assess-edit-page .drill-card,
.danger-assess-detail-page .drill-card {
  border-radius: 2px;
}

.danger-assess-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: flex-start;
}

.danger-assess-detail-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.danger-assess-flow-panel {
  position: sticky;
  top: 12px;
}

.danger-assess-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 84px;
}

.danger-assess-form-grid .drill-form-item label {
  width: 178px;
}

.danger-assess-grid-spacer {
  min-height: 32px;
}

.danger-assess-attachment-row {
  align-items: flex-start;
}

.danger-assess-attachment-row-clean {
  display: block;
}

.danger-assess-upload-wrap {
  flex: 1;
  max-width: 644px;
  min-width: 0;
}

.danger-assess-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 192px;
  padding: 24px;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  text-align: center;
  cursor: pointer;
}

.danger-assess-upload-placeholder:hover,
.danger-assess-upload-placeholder.is-uploaded {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #fbfdff;
}

.danger-assess-upload-icon {
  color: var(--primary-color);
  font-size: 34px;
  line-height: 1;
}

.danger-assess-upload-title {
  margin-top: 14px;
  color: var(--text-primary);
  font-size: var(--font-size-md);
}

.danger-assess-upload-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.danger-assess-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 84px;
}

.danger-assess-detail-item {
  display: flex;
  align-items: flex-start;
  min-height: 24px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.danger-assess-detail-item.is-full {
  grid-column: 1 / -1;
}

.danger-assess-detail-item span {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.danger-assess-detail-item strong {
  min-width: 0;
  color: var(--text-primary);
  font-weight: 400;
  word-break: break-word;
}

.danger-assess-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.danger-assess-file-label {
  color: var(--text-secondary);
}

.danger-assess-file-icon {
  color: var(--text-muted);
  font-size: 16px;
}

.danger-assess-file-name {
  color: #1f2d3d;
}

.danger-assess-relation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 13px;
}

.danger-assess-relation-toolbar span {
  min-width: 0;
  flex: 1;
}

.danger-relation-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  background: #f8fafc;
}

.danger-relation-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}

.danger-relation-filter-item label {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

.danger-relation-filter-item .form-select,
.danger-relation-filter-item .form-input {
  width: 180px;
}

.danger-assess-relation-table-wrap {
  border: 1px solid var(--border-color);
}

.danger-assess-relation-table {
  min-width: 980px;
}

.danger-assess-relation-table th,
.danger-assess-relation-table td {
  padding-top: 9px;
  padding-bottom: 9px;
}

.danger-assess-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.danger-assess-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 18px;
}

.danger-assess-flow-step::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 8px;
  width: 1px;
  background: #d9e2ef;
}

.danger-assess-flow-step:last-child {
  padding-bottom: 0;
}

.danger-assess-flow-step:last-child::before {
  display: none;
}

.danger-assess-flow-dot {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 3px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
}

.danger-assess-flow-step.is-done .danger-assess-flow-dot {
  border-color: #25b56b;
  background: #25b56b;
}

.danger-assess-flow-step.is-active .danger-assess-flow-dot {
  border-color: var(--primary-color);
  background: #ffffff;
}

.danger-assess-flow-content {
  min-width: 0;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e5ecf5;
  border-radius: 4px;
}

.danger-assess-flow-step.is-active .danger-assess-flow-content {
  background: #f4f9ff;
  border-color: #cfe4ff;
}

.danger-assess-flow-title {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.45;
}

.danger-assess-flow-meta {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.danger-assess-flow-result {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 8px;
  padding: 0 8px;
  color: #1f8f55;
  background: #eaf8f0;
  border-radius: 3px;
  font-size: 12px;
}

.danger-assess-flow-step.is-active .danger-assess-flow-result {
  color: var(--primary-color);
  background: #eaf4ff;
}

.danger-assess-flow-step.is-pending .danger-assess-flow-result {
  color: var(--text-secondary);
  background: #eef2f7;
}

@media (max-width: 1180px) {
  .danger-assess-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .danger-assess-flow-panel {
    position: static;
  }
}

/* ---------- Danger Full Assess ---------- */
.danger-full-assess-card {
  min-height: calc(100vh - 120px);
}

.danger-full-assess-search-form .form-input,
.danger-full-assess-search-form .form-select,
.danger-full-archive-search .form-input,
.danger-full-archive-search .form-select {
  min-width: 210px;
}

.danger-full-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}

.danger-full-tabs button {
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}

.danger-full-tabs button.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.danger-full-assess-table-header {
  justify-content: flex-end;
  padding-top: 14px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.danger-full-assess-table-wrap {
  max-height: calc(100vh - 286px);
  overflow: auto;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.danger-full-archive-table-wrap {
  margin: 8px 20px 0;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.danger-full-archive-table {
  min-width: 1120px;
}

.danger-full-archive-table th,
.danger-full-archive-table td {
  height: 48px;
  vertical-align: middle;
}

.danger-full-archive-table th {
  background: #f8fafc;
  color: #172033;
  font-weight: 700;
}

.danger-full-assess-table {
  width: 100%;
  min-width: 1260px;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
}

.danger-full-title {
  padding: 10px 0 12px;
  color: var(--text-primary);
  font-size: 21px;
  font-weight: 700;
  text-align: center;
}

.danger-full-assess-table th,
.danger-full-assess-table td {
  border: 0;
  border-bottom: 1px solid #e8edf4;
  padding: 10px 10px;
  vertical-align: top;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
}

.danger-full-assess-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 52px;
  background: #f8fafc;
  color: #172033;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #dfe6ef;
}

.danger-full-assess-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.danger-full-assess-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.danger-full-assess-table tbody tr:hover td {
  background: #f3f7ff;
}

.danger-full-assess-table th span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
}

.danger-full-assess-table .col-serial {
  width: 48px;
}

.danger-full-assess-table .col-category {
  width: 82px;
}

.danger-full-assess-table .col-type {
  width: 108px;
}

.danger-full-assess-table .col-scope {
  width: 27%;
}

.danger-full-assess-table .col-specific {
  width: 98px;
}

.danger-full-assess-table .col-part {
  width: 18%;
}

.danger-full-assess-table .col-date {
  width: 118px;
}

.danger-full-assess-table .col-actions {
  width: 122px;
}

.danger-full-assess-table .cell-actions {
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.danger-full-assess-table .danger-full-row-actions {
  flex-wrap: wrap;
  align-content: center;
  gap: 4px 8px;
  white-space: normal;
}

.danger-full-assess-table .cell-actions .btn-link {
  font-size: 13px;
}

.danger-full-merge-cell,
.danger-full-category-cell,
.danger-full-type-cell {
  text-align: center;
  vertical-align: middle !important;
  border-right: 1px solid #edf1f6 !important;
  background: #ffffff !important;
}

.danger-full-category-cell {
  min-width: 96px;
  color: #1f2d3d;
  font-weight: 600;
}

.danger-full-type-cell {
  color: #172033;
  font-weight: 600;
}

.danger-full-scope-cell {
  padding: 10px 12px !important;
  white-space: normal;
  word-break: break-word;
  color: #172033;
  font-size: 13px;
  line-height: 1.45;
  border-right: 1px solid #edf1f6 !important;
  background: #ffffff !important;
}

.danger-full-scope-actions {
  vertical-align: middle !important;
  text-align: center;
  border-left: 1px solid #edf1f6 !important;
  background: #ffffff !important;
}

.danger-full-scope-actions .danger-full-row-actions {
  align-items: center;
  justify-content: center;
}

.danger-full-scope-parts-editor {
  margin-top: 12px;
}

.danger-full-scope-parts-editor > .danger-full-scope-parts-toolbar {
  display: none;
}

.danger-full-scope-info-section,
.danger-full-scope-parts-section {
  width: 100%;
}

.danger-full-scope-info-section .danger-full-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.danger-full-scope-parts-section {
  margin-top: 14px;
}

.danger-full-scope-batch-section {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf1f6;
}

.danger-full-scope-batch-title {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.danger-full-scope-batch-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.danger-full-scope-batch-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 12px;
}

.danger-full-scope-batch-toolbar .form-input {
  min-width: 170px;
}

.danger-full-scope-parts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.danger-full-scope-parts-table {
  width: 100%;
  table-layout: fixed;
}

.danger-full-scope-parts-table th,
.danger-full-scope-parts-table td {
  vertical-align: middle;
}

.danger-full-scope-parts-table th:first-child,
.danger-full-scope-parts-table td:first-child {
  width: 44px;
  text-align: center;
}

.danger-full-scope-parts-table th:nth-child(2),
.danger-full-scope-parts-table td:nth-child(2) {
  width: 38%;
}

.danger-full-scope-parts-table th:nth-child(3),
.danger-full-scope-parts-table th:nth-child(4),
.danger-full-scope-parts-table td:nth-child(3),
.danger-full-scope-parts-table td:nth-child(4) {
  width: 20%;
}

.danger-full-scope-parts-table th:last-child,
.danger-full-scope-parts-table td:last-child {
  width: 18%;
  text-align: center;
}

.danger-full-scope-parts-table .cell-actions {
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.danger-full-scope-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 8px;
}

.danger-full-scope-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.danger-full-delete-selected {
  color: var(--danger-color, #e05252);
}

.danger-full-part-check-col {
  width: 44px;
  text-align: center !important;
}

.danger-full-assess-modal {
  width: min(560px, calc(100vw - 32px));
}

.danger-full-assess-modal .form-tip {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.danger-full-scope-cell[contenteditable="true"],
.danger-full-specific-cell[contenteditable="true"],
.danger-full-part-cell[contenteditable="true"] {
  cursor: text;
  transition: background-color .16s ease, box-shadow .16s ease;
}

.danger-full-scope-cell[contenteditable="true"]:hover,
.danger-full-specific-cell[contenteditable="true"]:hover,
.danger-full-part-cell[contenteditable="true"]:hover {
  background: #f8fbff !important;
  box-shadow: inset 0 0 0 1px #d8e6ff;
}

.danger-full-scope-cell[contenteditable="true"]:focus,
.danger-full-specific-cell[contenteditable="true"]:focus,
.danger-full-part-cell[contenteditable="true"]:focus {
  outline: none;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 2px #1677ff;
}

.danger-full-specific-cell,
.danger-full-part-cell,
.danger-full-date-cell {
  vertical-align: middle !important;
}

.danger-full-specific-cell {
  text-align: center;
  font-weight: 700;
}

.danger-full-part-cell {
  min-width: 0;
}

.danger-full-date-cell {
  text-align: center;
  white-space: nowrap !important;
  word-break: normal !important;
}

.danger-full-inline-date {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #172033;
  font-size: 13px;
  text-align: center;
}

.danger-full-inline-date:hover,
.danger-full-inline-date:focus {
  border-color: #1677ff;
  background: #ffffff;
  outline: none;
}

.danger-full-form-tip {
  padding: 10px 12px;
  border: 1px solid #e6edf7;
  border-radius: 4px;
  background: #f8fbff;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.danger-full-quick-date {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.danger-full-detail-parts-table {
  min-width: 720px;
}

.danger-full-detail-parts-table th,
.danger-full-detail-parts-table td {
  text-align: left;
}

.danger-full-detail-parts-table th:first-child,
.danger-full-detail-parts-table td:first-child {
  width: 72px;
  text-align: center;
}

.danger-full-upload-placeholder {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px;
  border: 1px dashed #b8c7dc;
  border-radius: 4px;
  background: #f8fbff;
  color: var(--text-secondary);
}

.danger-full-upload-placeholder strong {
  color: var(--text-primary);
  font-size: 15px;
}

.danger-full-archive-files {
  display: grid;
  gap: 10px;
}

.danger-full-archive-files div {
  padding: 10px 12px;
  border: 1px solid #e6edf7;
  border-radius: 4px;
  background: #fafcff;
  color: var(--text-primary);
}

.danger-full-level-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  background: #e6f4ff;
  color: #1677ff;
  font-size: 12px;
  white-space: nowrap;
}

.danger-full-level-tag.is-over {
  background: #fff1f0;
  color: #cf1322;
}

.danger-full-assess-detail-page,
.danger-full-assess-edit-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.danger-full-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 64px;
}

.danger-full-detail-item {
  display: flex;
  align-items: flex-start;
  min-height: 24px;
  font-size: var(--font-size-sm);
}

.danger-full-detail-item.is-full {
  grid-column: 1 / -1;
}

.danger-full-detail-item span {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.danger-full-detail-item strong {
  min-width: 0;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.6;
  word-break: break-word;
}

.danger-full-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 72px;
}

.danger-full-form-grid .drill-form-item label {
  width: 210px;
}

/* ---------- Danger Approve ---------- */
.danger-approve-card {
  min-height: calc(100vh - 120px);
}

.danger-approve-search-form .form-select,
.danger-approve-search-form .form-input {
  min-width: 196px;
}

.danger-approve-table-header {
  justify-content: flex-end;
  padding-top: 14px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.danger-approve-table-wrap {
  max-height: calc(100vh - 300px);
  overflow: auto;
}

.danger-approve-table {
  min-width: 1320px;
}

.danger-approve-table th,
.danger-approve-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.danger-approve-table .cell-actions {
  gap: 2px;
}

.danger-approve-flow-dialog {
  width: min(520px, calc(100vw - 32px));
}

.danger-approve-flow-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 4px 14px;
}

.danger-approve-flow-option {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  color: var(--text-primary);
  background: #eef5ff;
  border: 1px solid #d8e8ff;
  border-radius: 4px;
  text-align: center;
  font-size: 15px;
  cursor: pointer;
}

.danger-approve-flow-option:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #f6fbff;
}

.danger-approve-name-cell {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-approve-edit-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.danger-approve-edit-page .drill-card {
  min-height: 460px;
}

.danger-approve-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 84px;
}

.danger-approve-form-grid .drill-form-item label {
  width: 150px;
}

.danger-approve-relation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 13px;
}

.danger-approve-relation-toolbar span {
  min-width: 0;
  flex: 1;
}

.danger-approve-relation-table-wrap {
  border: 1px solid var(--border-color);
}

.danger-approve-relation-table {
  min-width: 760px;
}

.danger-approve-relation-table th,
.danger-approve-relation-table td {
  padding-top: 9px;
  padding-bottom: 9px;
}

.danger-approve-upload-row {
  align-items: flex-start;
}

.danger-approve-upload-wrap {
  flex: 1;
  max-width: 366px;
  min-width: 0;
}

.danger-approve-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 192px;
  padding: 24px;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  text-align: center;
  cursor: pointer;
}

.danger-approve-upload-placeholder:hover,
.danger-approve-upload-placeholder.is-uploaded {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #fbfdff;
}

.danger-approve-upload-icon,
.danger-assess-upload-icon,
.danger-approve-file-icon,
.danger-assess-file-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 38px;
  color: var(--primary-color);
}

.danger-approve-upload-icon::before,
.danger-assess-upload-icon::before {
  content: "";
  width: 28px;
  height: 34px;
  border: 3px solid currentColor;
  border-radius: 2px;
}

.danger-approve-upload-icon::after,
.danger-assess-upload-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  bottom: 11px;
}

.danger-approve-upload-title {
  margin-top: 14px;
  color: var(--text-primary);
  font-size: var(--font-size-md);
}

.danger-approve-upload-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.danger-approve-upload-list,
.danger-approve-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.danger-approve-upload-file {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  color: var(--text-primary);
  background: #f8fafc;
  border: 1px solid #e5ecf5;
  border-radius: 3px;
  font-size: var(--font-size-sm);
}

.danger-approve-upload-file span:nth-child(2) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-approve-detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.danger-approve-detail-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.danger-approve-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 84px;
}

.danger-approve-detail-item {
  display: flex;
  align-items: flex-start;
  min-height: 24px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.danger-approve-detail-item.is-full {
  grid-column: 1 / -1;
}

.danger-approve-detail-item span {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.danger-approve-detail-item strong {
  min-width: 0;
  color: var(--text-primary);
  font-weight: 400;
  word-break: break-word;
}

.danger-approve-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.danger-approve-file-label {
  color: var(--text-secondary);
}

.danger-approve-file-icon,
.danger-assess-file-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.danger-approve-file-icon::before,
.danger-assess-file-icon::before {
  content: "";
  width: 12px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 1px;
}

.danger-approve-file-name {
  color: #1f2d3d;
}

.danger-approve-flow-panel {
  min-height: 420px;
}

.danger-approve-flow {
  position: relative;
  padding-left: 4px;
}

.danger-approve-flow-step {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 28px;
}

.danger-approve-flow-step::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: -2px;
  width: 1px;
  background: #d9d9d9;
}

.danger-approve-flow-step:last-child {
  padding-bottom: 0;
}

.danger-approve-flow-step:last-child::before {
  display: none;
}

.danger-approve-flow-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  background: #ffffff;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
}

.danger-approve-flow-step.is-done .danger-approve-flow-dot {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.danger-approve-flow-step.is-active .danger-approve-flow-dot {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-bg);
}

.danger-approve-flow-step.is-reject .danger-approve-flow-dot {
  background: #ff4d4f;
  border-color: #ff4d4f;
}

.danger-approve-flow-title {
  color: var(--text-primary);
  font-weight: 600;
}

.danger-approve-flow-meta {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.danger-approve-flow-result {
  margin-top: 6px;
  color: var(--primary-color);
  font-size: var(--font-size-sm);
}

.danger-approve-flow-step.is-reject .danger-approve-flow-result {
  color: #ff4d4f;
}

.danger-approve-flow-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.danger-approve-flow-actions.is-finished {
  display: block;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

/* ---------- Danger Brief ---------- */
.danger-brief-card {
  min-height: calc(100vh - 120px);
}

.danger-brief-search-form .form-select,
.danger-brief-search-form .form-input {
  min-width: 196px;
}

.danger-brief-table-header {
  justify-content: flex-end;
  padding-top: 14px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.danger-brief-table-wrap {
  max-height: calc(100vh - 300px);
  overflow: auto;
}

.danger-brief-table {
  min-width: 1180px;
}

.danger-brief-table th,
.danger-brief-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.danger-brief-table .cell-actions {
  gap: 2px;
}

.danger-brief-name-cell,
.danger-brief-target-cell {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-brief-edit-page,
.danger-brief-detail-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.danger-brief-edit-page .drill-card {
  min-height: 0;
}

.danger-brief-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 72px;
}

.danger-brief-form-grid .drill-form-item label {
  width: 150px;
}

.danger-brief-upload-row {
  align-items: flex-start;
}

.danger-brief-upload-wrap {
  flex: 1;
  max-width: 520px;
  min-width: 0;
}

.danger-brief-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 132px;
  padding: 18px;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  text-align: center;
  cursor: pointer;
}

.danger-brief-upload-placeholder:hover,
.danger-brief-upload-placeholder.is-uploaded {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #fbfdff;
}

.danger-brief-upload-icon,
.danger-brief-file-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.danger-brief-upload-icon {
  width: 32px;
  height: 38px;
}

.danger-brief-upload-icon::before {
  content: "";
  width: 28px;
  height: 34px;
  border: 3px solid currentColor;
  border-radius: 2px;
}

.danger-brief-upload-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  bottom: 11px;
}

.danger-brief-upload-title {
  margin-top: 10px;
  color: var(--text-primary);
  font-size: var(--font-size-md);
}

.danger-brief-upload-sub {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.danger-brief-items-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.danger-brief-item-card,
.danger-brief-item-detail {
  padding: 12px 14px;
  background: #fbfcfe;
  border: 1px solid #e8edf5;
  border-radius: 4px;
}

.danger-brief-item-card + .danger-brief-item-card,
.danger-brief-item-detail + .danger-brief-item-detail {
  margin-top: 12px;
}

.danger-brief-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

.danger-brief-upload-list,
.danger-brief-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.danger-brief-upload-file {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid #e5ecf5;
  border-radius: 3px;
  font-size: var(--font-size-sm);
}

.danger-brief-upload-file span:nth-child(2) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-brief-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 84px;
}

.danger-brief-detail-item {
  display: flex;
  align-items: flex-start;
  min-height: 24px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.danger-brief-detail-item.is-full {
  grid-column: 1 / -1;
}

.danger-brief-detail-item span {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.danger-brief-detail-item strong {
  min-width: 0;
  color: var(--text-primary);
  font-weight: 400;
  word-break: break-word;
}

.danger-brief-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.danger-brief-file-label {
  color: var(--text-secondary);
}

.danger-brief-file-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.danger-brief-file-icon::before {
  content: "";
  width: 12px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 1px;
}

.danger-brief-file-name {
  color: #1f2d3d;
}

/* ---------- Danger Accept ---------- */
.danger-accept-card {
  min-height: calc(100vh - 120px);
}

.danger-accept-search-form .form-select {
  min-width: 264px;
}

.danger-accept-table-header {
  justify-content: flex-end;
  padding-top: 14px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.danger-accept-table-wrap {
  max-height: calc(100vh - 300px);
  overflow: auto;
}

.danger-accept-table {
  min-width: 1480px;
}

.danger-accept-table th,
.danger-accept-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.danger-accept-table .cell-actions {
  gap: 2px;
}

.danger-accept-content-cell {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-accept-level-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  color: #d48806;
  background: #fff7e6;
  border-radius: 2px;
  font-size: 12px;
  white-space: nowrap;
}

.danger-accept-level-tag.is-over {
  color: #ff4d4f;
  background: #fff1f0;
}

.danger-accept-edit-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.danger-accept-edit-page .is-hidden {
  display: none;
}

.danger-accept-detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}

.danger-accept-detail-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.danger-accept-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 84px;
}

.danger-accept-form-grid .drill-form-item label {
  width: 178px;
}

.danger-accept-picker-spacer {
  display: flex;
  align-items: flex-start;
}

.danger-accept-upload-row {
  align-items: flex-start;
}

.danger-accept-upload-wrap {
  flex: 1;
  max-width: 644px;
  min-width: 0;
}

.danger-accept-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 192px;
  padding: 24px;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  text-align: center;
  cursor: pointer;
}

.danger-accept-upload-placeholder:hover,
.danger-accept-upload-placeholder.is-uploaded {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #fbfdff;
}

.danger-accept-upload-icon,
.danger-accept-file-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.danger-accept-upload-icon {
  width: 32px;
  height: 38px;
}

.danger-accept-upload-icon::before {
  content: "";
  width: 28px;
  height: 34px;
  border: 3px solid currentColor;
  border-radius: 2px;
}

.danger-accept-upload-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  bottom: 11px;
}

.danger-accept-upload-title {
  margin-top: 14px;
  color: var(--text-primary);
  font-size: var(--font-size-md);
}

.danger-accept-upload-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.danger-accept-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 84px;
}

.danger-accept-detail-item {
  display: flex;
  align-items: flex-start;
  min-height: 24px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.danger-accept-detail-item.is-full {
  grid-column: 1 / -1;
}

.danger-accept-detail-item span {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.danger-accept-detail-item strong {
  min-width: 0;
  color: var(--text-primary);
  font-weight: 400;
  word-break: break-word;
}

.danger-accept-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.danger-accept-file-label {
  color: var(--text-secondary);
}

.danger-accept-file-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.danger-accept-file-icon::before {
  content: "";
  width: 12px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 1px;
}

.danger-accept-file-name {
  color: #1f2d3d;
}

.danger-accept-flow-panel {
  position: sticky;
  top: 12px;
}

.danger-accept-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.danger-accept-flow-step {
  position: relative;
  display: flex;
  gap: 12px;
  min-height: 116px;
  padding: 14px 14px 18px;
  background: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: 2px;
}

.danger-accept-flow-step + .danger-accept-flow-step {
  margin-top: 12px;
}

.danger-accept-flow-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  background: #d9d9d9;
  border-radius: 50%;
}

.danger-accept-flow-content {
  min-width: 0;
}

.danger-accept-flow-step.is-done .danger-accept-flow-dot {
  background: var(--primary-color);
}

.danger-accept-flow-step.is-active {
  border-color: var(--primary-color);
  background: #f0f7ff;
}

.danger-accept-flow-step.is-active .danger-accept-flow-dot {
  background: var(--primary-color);
}

.danger-accept-flow-step.is-reject {
  border-color: #ffccc7;
  background: #fff1f0;
}

.danger-accept-flow-step.is-reject .danger-accept-flow-dot {
  background: #ff4d4f;
}

.danger-accept-flow-title {
  color: var(--text-primary);
  font-weight: 600;
}

.danger-accept-flow-meta,
.danger-accept-flow-result {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.danger-accept-flow-result {
  color: var(--primary-color);
}

.danger-accept-flow-step.is-reject .danger-accept-flow-result {
  color: #ff4d4f;
}

.danger-accept-flow-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.danger-accept-flow-actions.is-finished {
  display: block;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

/* ---------- Danger Close ---------- */
.danger-close-card {
  min-height: calc(100vh - 120px);
}

.danger-close-search-form {
  align-items: center;
}

.danger-close-search-form .form-input,
.danger-close-search-form .form-select {
  min-width: 220px;
}

.danger-close-table-header {
  justify-content: flex-end;
  padding-top: 14px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.danger-close-table-wrap {
  max-height: calc(100vh - 300px);
  overflow: auto;
}

.danger-close-table {
  min-width: 1280px;
}

.danger-close-table th,
.danger-close-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.danger-close-name-cell {
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-close-level-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  color: #d48806;
  background: #fff7e6;
  border: 1px solid #ffe58f;
  border-radius: 2px;
  font-size: 12px;
  white-space: nowrap;
}

.danger-close-level-tag.is-over {
  color: #ff4d4f;
  background: #fff1f0;
  border-color: #ffa39e;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: #d9d9d9;
  border-radius: 50%;
  vertical-align: middle;
}

.status-dot.success {
  background: #52c41a;
}

.status-dot.warning {
  background: #faad14;
}

.status-dot.danger {
  background: #ff4d4f;
}

.danger-close-empty {
  min-height: 210px;
  padding-top: 96px;
}

.danger-close-workflow-page,
.danger-close-detail-page {
  min-height: calc(100vh - 120px);
}

.danger-close-form-header,
.danger-close-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 12px 12px;
}

.danger-close-form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.danger-close-back {
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.danger-close-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.danger-close-project-pill {
  display: inline-flex;
  align-items: center;
  max-width: 360px;
  height: 24px;
  padding: 0 8px;
  color: var(--primary-color);
  background: #e8f2ff;
  border: 1px solid #69b1ff;
  border-radius: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-close-workflow-layout {
  display: grid;
  grid-template-columns: 396px minmax(0, 1fr);
  gap: 16px;
}

.danger-close-side-panel,
.danger-close-report-panel {
  padding: 24px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.danger-close-side-field {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
}

.danger-close-side-field label {
  padding-top: 7px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  line-height: 20px;
  text-align: right;
}

.danger-close-side-field.is-required label::before {
  content: "*";
  margin-right: 4px;
  color: #ff4d4f;
}

.danger-close-picker {
  display: flex;
  min-width: 0;
}

.danger-close-picker .form-select {
  flex: 1;
  min-width: 0;
}

.danger-close-picker .btn {
  margin-left: -1px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.danger-close-upload-field {
  align-items: start;
}

.danger-close-upload-wrap {
  min-width: 0;
}

.danger-close-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 204px;
  padding: 24px;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  text-align: center;
  cursor: pointer;
}

.danger-close-upload-placeholder:hover,
.danger-close-upload-placeholder.is-uploaded {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #fbfdff;
}

.danger-close-upload-icon {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 38px;
  color: var(--primary-color);
}

.danger-close-upload-icon::before {
  content: "";
  width: 28px;
  height: 34px;
  border: 3px solid currentColor;
  border-radius: 2px;
}

.danger-close-upload-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  bottom: 11px;
  left: 7px;
}

.danger-close-upload-title {
  margin-top: 14px;
  color: var(--text-primary);
  font-size: var(--font-size-md);
}

.danger-close-upload-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.danger-close-count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.danger-close-report-panel {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 52px;
}

.danger-close-report-tip {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  color: #1f3b5f;
  background: #e8f2ff;
  border: 1px solid #2f80ed;
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.danger-close-report-tip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: #fff;
  background: var(--primary-color);
  border-radius: 50%;
  font-size: 11px;
}

.danger-close-preview-panel {
  min-width: 0;
  background: #ffffff;
}

.danger-close-preview-title {
  height: 40px;
  padding: 10px 16px;
  color: var(--text-primary);
  border: 1px solid #d9d9d9;
  border-bottom: 0;
  font-size: var(--font-size-lg);
}

.danger-close-preview-table {
  position: relative;
  max-height: calc(100vh - 240px);
  overflow: auto;
  padding: 14px;
  border: 1px solid #d9d9d9;
  background: #fff;
}

.danger-close-preview-no {
  position: absolute;
  right: 28px;
  top: 10px;
  font-size: 11px;
}

.danger-close-preview-table h3 {
  margin: 38px 0 22px;
  text-align: center;
  font-size: 22px;
}

.danger-close-preview-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #111;
  font-size: 13px;
}

.danger-close-preview-table th,
.danger-close-preview-table td {
  min-height: 36px;
  padding: 8px;
  border: 1px solid #111;
  font-weight: 400;
  vertical-align: top;
}

.danger-close-preview-table td {
  background: #e8f2ff;
}

.danger-close-preview-large {
  height: 184px;
}

.danger-close-top-btn {
  margin-top: 12px;
}

.danger-close-zoom {
  margin-top: 10px;
  text-align: right;
  color: var(--text-secondary);
}

.danger-close-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 14px;
}

.danger-close-detail-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.danger-close-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 84px;
}

.danger-close-detail-item {
  display: flex;
  align-items: flex-start;
  min-height: 24px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.danger-close-detail-item.is-full {
  grid-column: 1 / -1;
}

.danger-close-detail-item span {
  color: var(--text-secondary);
}

.danger-close-detail-item strong {
  font-weight: 400;
  word-break: break-word;
}

.danger-close-detail-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.danger-close-detail-tools > div:last-child {
  display: flex;
  gap: 8px;
}

.danger-close-detail-report {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
}

.danger-close-approval-panel {
  position: sticky;
  top: 12px;
  min-height: 244px;
}

.danger-close-approval {
  position: relative;
  padding-left: 8px;
}

.danger-close-approval-step {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 26px;
}

.danger-close-approval-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
}

.danger-close-approval-card {
  margin-top: 8px;
  padding: 14px;
  background: #f5f7fa;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.danger-close-approval-card strong {
  display: inline-block;
  margin-right: 8px;
  color: var(--text-primary);
}

.danger-close-approval-card em {
  display: block;
  margin-top: 8px;
  color: #10a35a;
  font-style: normal;
}

.danger-close-approved-stamp {
  position: absolute;
  right: 2px;
  top: 20px;
  width: 76px;
  height: 76px;
  color: #52c41a;
  border: 2px solid #b7eb8f;
  border-radius: 50%;
  font-weight: 700;
  line-height: 72px;
  text-align: center;
  transform: rotate(-22deg);
  opacity: 0.55;
}

/* ---------- Danger Standby ---------- */
.danger-standby-card {
  min-height: calc(100vh - 120px);
}

.danger-standby-search-form {
  align-items: center;
}

.danger-standby-search-form .form-input,
.danger-standby-search-form .form-select {
  min-width: 260px;
}

.danger-standby-table-header {
  justify-content: flex-end;
  padding-top: 14px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.danger-standby-table-wrap {
  max-height: calc(100vh - 300px);
  overflow: auto;
}

.danger-standby-table {
  min-width: 1320px;
}

.danger-standby-table th,
.danger-standby-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.danger-standby-process-cell {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-dialog.danger-standby-project-dialog {
  width: min(1400px, calc(100vw - 24px));
}

.danger-standby-project-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto;
  align-items: end;
  gap: 12px;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border-color);
}

.danger-standby-project-filter {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.danger-standby-project-search label {
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.danger-standby-project-search .form-select,
.danger-standby-project-search .form-input {
  width: 100%;
  min-width: 0;
}

.danger-standby-project-search-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.danger-standby-project-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px 24px 0;
}

.danger-standby-project-table-wrap {
  max-height: 360px;
  margin: 8px 24px 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-bottom: 1px solid var(--border-color);
}

.danger-standby-project-table {
  width: 100%;
  table-layout: fixed;
}

.danger-standby-project-table th,
.danger-standby-project-table td {
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .danger-standby-project-search {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .danger-standby-project-search-actions {
    grid-column: 2;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .danger-standby-project-search {
    grid-template-columns: 1fr;
  }

  .danger-standby-project-search-actions {
    grid-column: auto;
    justify-content: flex-start;
  }
}

.danger-standby-modal-page {
  width: 52px;
  min-width: 52px;
}

.danger-standby-empty {
  min-height: 210px;
  padding-top: 96px;
}

.danger-standby-workflow-page,
.danger-standby-detail-page {
  min-height: calc(100vh - 120px);
}

.danger-standby-form-header,
.danger-standby-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 12px 12px;
}

.danger-standby-form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.danger-standby-back {
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.danger-standby-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.danger-standby-project-pill {
  display: inline-flex;
  align-items: center;
  max-width: 360px;
  height: 24px;
  padding: 0 8px;
  color: var(--primary-color);
  background: #e8f2ff;
  border: 1px solid #69b1ff;
  border-radius: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-standby-workflow-layout {
  display: grid;
  grid-template-columns: 396px minmax(0, 1fr);
  gap: 16px;
}

.danger-standby-side-panel,
.danger-standby-report-panel {
  padding: 24px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.danger-standby-side-field {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
}

.danger-standby-side-field label {
  padding-top: 7px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  line-height: 20px;
  text-align: right;
}

.danger-standby-side-field.is-required label::before {
  content: "*";
  margin-right: 4px;
  color: #ff4d4f;
}

.danger-standby-picker {
  display: flex;
  min-width: 0;
}

.danger-standby-picker .form-select {
  flex: 1;
  min-width: 0;
}

.danger-standby-picker .btn {
  margin-left: -1px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.danger-standby-upload-field {
  align-items: start;
}

.danger-standby-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 204px;
  padding: 24px;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  text-align: center;
  cursor: pointer;
}

.danger-standby-upload-placeholder:hover,
.danger-standby-upload-placeholder.is-uploaded {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #fbfdff;
}

.danger-standby-upload-icon {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 38px;
  color: var(--primary-color);
}

.danger-standby-upload-icon::before {
  content: "";
  width: 28px;
  height: 34px;
  border: 3px solid currentColor;
  border-radius: 2px;
}

.danger-standby-upload-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  bottom: 11px;
  left: 7px;
}

.danger-standby-upload-title {
  margin-top: 14px;
  color: var(--text-primary);
  font-size: var(--font-size-md);
}

.danger-standby-upload-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.danger-standby-count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.danger-standby-report-panel {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 52px;
}

.danger-standby-report-tip {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  color: #1f3b5f;
  background: #e8f2ff;
  border: 1px solid #2f80ed;
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.danger-standby-report-tip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: #fff;
  background: var(--primary-color);
  border-radius: 50%;
  font-size: 11px;
}

.danger-standby-preview-title {
  height: 40px;
  padding: 10px 16px;
  color: var(--text-primary);
  border: 1px solid #d9d9d9;
  border-bottom: 0;
  font-size: var(--font-size-lg);
}

.danger-standby-preview-table {
  max-height: calc(100vh - 240px);
  overflow: auto;
  padding: 14px;
  border: 1px solid #d9d9d9;
  background: #fff;
}

.danger-standby-preview-table h3 {
  margin: 18px 0 20px;
  color: #111;
  text-align: center;
  font-size: 22px;
}

.danger-standby-preview-table table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  color: #111;
  font-size: 13px;
}

.danger-standby-preview-table th,
.danger-standby-preview-table td {
  padding: 8px;
  border: 1px solid #111;
  font-weight: 400;
  vertical-align: top;
}

.danger-standby-preview-table td {
  background: #e8f2ff;
}

.danger-standby-preview-large {
  height: 172px;
  text-align: center;
  white-space: pre-wrap;
}

.danger-standby-top-btn {
  margin-top: 12px;
}

.danger-standby-zoom {
  margin-top: 10px;
  text-align: right;
  color: var(--text-secondary);
}

.danger-standby-detail-layout {
  display: block;
}

.danger-standby-detail-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.danger-standby-detail-grid,
.danger-standby-report-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 56px;
}

.danger-standby-report-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.danger-standby-detail-item {
  display: flex;
  align-items: flex-start;
  min-height: 24px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.danger-standby-detail-item span {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.danger-standby-detail-item strong {
  font-weight: 400;
  word-break: break-word;
}

.danger-standby-detail-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.danger-standby-detail-tools > div:last-child {
  display: flex;
  gap: 8px;
}

.danger-standby-detail-report {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
}

/* ---------- Danger Ledger ---------- */
.danger-ledger-card {
  min-height: calc(100vh - 120px);
}

.danger-ledger-search-form {
  align-items: center;
}

.danger-ledger-search-form .form-input,
.danger-ledger-search-form .form-select {
  min-width: 210px;
}

.danger-ledger-table-header {
  align-items: center;
  padding-top: 14px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.danger-ledger-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.danger-ledger-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 2px;
  white-space: nowrap;
}

.danger-ledger-metrics strong {
  color: var(--text-primary);
  font-weight: 600;
}

.danger-ledger-table-wrap {
  max-height: calc(100vh - 322px);
  overflow: auto;
}

.danger-ledger-table {
  min-width: 1880px;
  table-layout: fixed;
}

.danger-full-parts-editor {
  align-items: flex-start;
}

.danger-full-parts-editor-content {
  flex: 1;
  min-width: 0;
}

.danger-full-parts-input-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
  table-layout: fixed;
}

.danger-full-parts-input-table th,
.danger-full-parts-input-table td {
  border-bottom: 1px solid var(--border-color);
  padding: 6px 8px;
}

.danger-full-parts-input-table th {
  background: #f7f9fc;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.danger-full-parts-input-table th:last-child,
.danger-full-parts-input-table td:last-child {
  width: 72px;
  text-align: center;
}

.danger-full-parts-input-table tr:last-child td {
  border-bottom: 0;
}

.danger-full-parts-add {
  margin-top: 8px;
}

.danger-ledger-table th,
.danger-ledger-table td {
  padding: 9px 10px;
  white-space: nowrap;
}

.danger-ledger-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.danger-ledger-table thead tr:first-child th {
  text-align: center;
}

.danger-ledger-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border: 1px solid #9ca3af;
  border-radius: 50%;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: help;
}

.danger-ledger-category-cell,
.danger-ledger-part-cell,
.danger-ledger-scheme-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-ledger-category-cell {
  max-width: 220px;
}

.danger-ledger-part-cell {
  max-width: 280px;
}

.danger-ledger-scheme-cell {
  max-width: 260px;
}

.danger-ledger-table .status-dot + span {
  white-space: nowrap;
}

.danger-ledger-table .cell-actions {
  flex-wrap: nowrap;
}

.danger-ledger-empty {
  min-height: 210px;
  padding-top: 96px;
}

.danger-ledger-level-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  color: #d48806;
  background: #fff7e6;
  border: 1px solid #ffe58f;
  border-radius: 2px;
  font-size: 12px;
  white-space: nowrap;
}

.danger-ledger-level-tag.is-over {
  color: #ff4d4f;
  background: #fff1f0;
  border-color: #ffa39e;
}

.danger-ledger-risk {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 12px;
  white-space: nowrap;
}

.danger-ledger-risk.is-open {
  color: #d46b08;
  background: #fff7e6;
}

.danger-ledger-risk.is-checking {
  color: #0958d9;
  background: #e6f4ff;
}

.danger-ledger-risk.is-closed {
  color: #389e0d;
  background: #f6ffed;
}

.danger-ledger-detail-page {
  min-height: calc(100vh - 120px);
}

.danger-ledger-detail-page .drill-card {
  padding: 16px 18px;
}

.danger-ledger-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 0 12px;
}

.danger-ledger-detail-title {
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.danger-ledger-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 12px;
}

.danger-ledger-detail-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.danger-ledger-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 36px;
}

.danger-ledger-detail-item {
  display: flex;
  align-items: flex-start;
  min-height: 24px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.danger-ledger-detail-item.is-full {
  grid-column: 1 / -1;
}

.danger-ledger-detail-item span {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.danger-ledger-detail-item strong {
  font-weight: 400;
  word-break: break-word;
}

.danger-ledger-summary-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.danger-ledger-summary-chips button {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e6edf5;
  border-radius: 4px;
  background: #fafcff;
  text-align: left;
  cursor: pointer;
}

.danger-ledger-summary-chips span,
.danger-ledger-summary-chips strong,
.danger-ledger-summary-chips em {
  display: block;
}

.danger-ledger-summary-chips span {
  color: var(--text-secondary);
  font-size: 12px;
}

.danger-ledger-summary-chips strong {
  margin-top: 4px;
  color: var(--text-primary);
  font-size: 18px;
}

.danger-ledger-summary-chips em {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}

.danger-ledger-stage-card {
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.danger-ledger-stage-card.is-focused {
  box-shadow: 0 0 0 2px rgba(30, 105, 207, 0.16), var(--shadow-sm);
}

.danger-ledger-material-table {
  min-width: 820px;
}

.danger-ledger-stage-card .danger-ledger-material-table th,
.danger-ledger-stage-card .danger-ledger-material-table td {
  padding: 8px 10px;
}

.danger-ledger-attachment-preview {
  white-space: nowrap;
}

.danger-ledger-trace-panel {
  position: sticky;
  top: 12px;
  align-self: start;
  min-height: 320px;
}

.danger-ledger-trace {
  padding-left: 8px;
}

.danger-ledger-trace-step {
  display: flex;
  width: 100%;
  gap: 12px;
  padding: 0 0 20px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.danger-ledger-trace-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
}

.danger-ledger-trace-step.is-done .danger-ledger-trace-dot {
  background: #52c41a;
  border-color: #52c41a;
}

.danger-ledger-trace-step.is-active .danger-ledger-trace-dot {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.danger-ledger-trace-title {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
}

.danger-ledger-trace-meta,
.danger-ledger-trace-time {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.danger-ledger-trace-step:hover .danger-ledger-trace-title {
  color: var(--primary-color);
}

.danger-ledger-preview-modal {
  width: min(920px, calc(100vw - 32px));
}

/* ---------- Inspection List ---------- */
.inspection-list-card {
  min-height: calc(100vh - 120px);
}

.inspection-search-form {
  align-items: center;
}

.inspection-search-form .form-input,
.inspection-search-form .form-select {
  min-width: 210px;
}

.inspection-table-header {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.inspection-list-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.inspection-list-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  background: #fff;
  white-space: nowrap;
}

.inspection-list-metrics strong {
  color: var(--text-primary);
  font-weight: 600;
}

.inspection-table-wrap {
  max-height: calc(100vh - 338px);
  overflow: auto;
}

.inspection-table {
  min-width: 1780px;
}

.inspection-table th,
.inspection-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.inspection-status-head {
  white-space: nowrap;
}

.inspection-status-tip {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border: 1px solid #93c5fd;
  border-radius: 50%;
  background: #eef6ff;
  color: #1e69cf;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  vertical-align: middle;
  cursor: help;
}

.inspection-status-tip:hover {
  background: #dbeafe;
}

.inspection-name-cell {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspection-empty {
  min-height: 210px;
  padding-top: 96px;
}

/* ---------- Construction Supervision ---------- */
.construction-supervision-card { min-height: calc(100vh - 120px); }
.construction-supervision-tabs { display:flex; align-items:center; gap:2px; padding:14px 20px 0; border-bottom:1px solid var(--border-color); background:#fff; }
.construction-supervision-tabs button { min-width:132px; height:38px; padding:0 18px; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--text-secondary); font-size:var(--font-size-sm); cursor:pointer; }
.construction-supervision-tabs button.active { color:var(--primary-color); border-bottom-color:var(--primary-color); font-weight:600; }
.construction-supervision-search-form { align-items:center; }
.construction-supervision-search-form .form-input, .construction-supervision-search-form .form-select { min-width:220px; }
.construction-supervision-table-header { align-items:center; padding-top:12px; padding-bottom:8px; border-bottom:0; }
.construction-supervision-metrics { display:flex; align-items:center; gap:8px; color:var(--text-secondary); font-size:var(--font-size-sm); }
.construction-supervision-metrics span { display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 10px; border:1px solid var(--border-color); border-radius:2px; background:#fff; white-space:nowrap; }
.construction-supervision-metrics strong { color:var(--text-primary); font-weight:600; }
.construction-supervision-record-table-wrap, .construction-supervision-requirement-table-wrap { max-height:calc(100vh - 390px); overflow:auto; }
.construction-supervision-record-table { min-width:1280px; }
.construction-supervision-requirement-table { min-width:1320px; }
.construction-supervision-record-table th, .construction-supervision-record-table td, .construction-supervision-requirement-table th, .construction-supervision-requirement-table td { padding-top:10px; padding-bottom:10px; }
.construction-supervision-name-cell, .construction-supervision-table-cell { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.construction-supervision-content-cell { max-width:430px; min-width:280px; color:var(--text-secondary); line-height:1.7; }
.construction-supervision-legal-basis-cell { min-width:260px; max-width:420px; color:var(--text-secondary); line-height:1.6; white-space:pre-wrap; word-break:break-word; }
.construction-supervision-legal-basis-input { min-width:240px; min-height:64px; line-height:1.5; resize:vertical; }
.construction-supervision-requirement-table .cell-actions, .construction-supervision-record-table .cell-actions { white-space:nowrap; }
.construction-supervision-empty { min-height:210px; padding-top:96px; }
.construction-supervision-detail-page { min-height:calc(100vh - 120px); }
.construction-supervision-detail-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:14px; align-items:flex-start; }
.construction-supervision-detail-main { min-width:0; display:flex; flex-direction:column; gap:14px; }
.construction-supervision-flow-panel { position:sticky; top:12px; }
.construction-supervision-detail-grid, .construction-supervision-form-grid, .construction-supervision-check-grid, .construction-supervision-flow-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 42px; }
.construction-supervision-detail-item { color:var(--text-primary); font-size:var(--font-size-sm); line-height:1.8; }
.construction-supervision-detail-item.is-full { grid-column:1 / -1; }
.construction-supervision-detail-item span { color:var(--text-secondary); }
.construction-supervision-detail-item strong { font-weight:500; }
.construction-supervision-check-textarea { min-height:76px; padding-top:7px; padding-bottom:7px; line-height:1.6; resize:vertical; }
.construction-supervision-image-upload-field, .construction-supervision-reference-attachment-field { align-items:start; }
.construction-supervision-reference-attachment-placeholder { width:100%; min-height:132px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:18px; border:1px dashed #d9d9d9; border-radius:2px; background:#fff; color:var(--text-secondary); cursor:pointer; }
.construction-supervision-reference-attachment-placeholder:hover, .construction-supervision-reference-attachment-placeholder.is-uploaded { border-color:var(--primary-color); background:#fbfdff; }
.construction-supervision-reference-attachment-list { display:grid; gap:8px; margin-top:10px; }
.construction-supervision-reference-attachment-item { min-height:42px; display:flex; align-items:center; justify-content:space-between; padding:0 12px; border:1px solid var(--border-color); background:#fff; }
.construction-supervision-flow { position:relative; display:flex; flex-direction:column; }
.construction-supervision-flow-step { position:relative; display:grid; grid-template-columns:18px minmax(0,1fr); gap:10px; padding-bottom:18px; }
.construction-supervision-flow-step::before { content:''; position:absolute; top:18px; bottom:0; left:8px; width:1px; background:#d9e2ef; }
.construction-supervision-flow-step:last-child { padding-bottom:0; }
.construction-supervision-flow-step:last-child::before { display:none; }
.construction-supervision-flow-dot { position:relative; z-index:1; width:17px; height:17px; margin-top:2px; border:3px solid #cbd5e1; border-radius:50%; background:#fff; }
.construction-supervision-flow-step.is-done .construction-supervision-flow-dot { border-color:#25b56b; background:#25b56b; }
.construction-supervision-flow-step.is-active .construction-supervision-flow-dot { border-color:var(--primary-color); background:#fff; }
.construction-supervision-flow-content { min-width:0; padding:10px 12px; border:1px solid #e5ecf5; border-radius:4px; background:#f8fafc; }
.construction-supervision-flow-step.is-active .construction-supervision-flow-content { border-color:#cfe4ff; background:#f4f9ff; }
.construction-supervision-flow-title { color:var(--text-primary); font-weight:600; line-height:1.45; }
.construction-supervision-flow-meta { margin-top:5px; color:var(--text-secondary); font-size:12px; line-height:1.35; }
.construction-supervision-flow-result { display:inline-flex; align-items:center; min-height:22px; margin-top:8px; padding:0 8px; border-radius:3px; background:#eaf8f0; color:#1f8f55; font-size:12px; }
.construction-supervision-flow-step.is-active .construction-supervision-flow-result { color:var(--primary-color); background:#eaf4ff; }
.construction-supervision-flow-step.is-pending .construction-supervision-flow-result { color:var(--text-secondary); background:#eef2f7; }
.construction-supervision-check-card-actions { display:flex; align-items:center; gap:8px; }
.construction-supervision-legal-basis-panel { margin:0 0 12px; padding:10px 12px; border:1px solid #dce8f5; border-radius:3px; background:#f8fbff; }
.construction-supervision-legal-basis-title { margin-bottom:6px; color:var(--text-primary); font-size:13px; font-weight:600; }
.construction-supervision-legal-basis-value { color:var(--text-secondary); line-height:1.6; white-space:pre-wrap; word-break:break-word; }
.construction-supervision-legal-basis-panel textarea { width:100%; min-height:68px; line-height:1.5; resize:vertical; }
.construction-supervision-legal-basis-tip { margin-top:5px; color:var(--text-secondary); font-size:12px; }
.construction-supervision-no-flow { padding:12px; border:1px dashed var(--border-color); border-radius:4px; color:var(--text-secondary); background:#fafafa; font-size:var(--font-size-sm); }
.construction-supervision-project-field { grid-column:1 / -1; }
.construction-supervision-project-multi { position:relative; flex:1; min-width:0; }
.construction-supervision-project-selected { min-height:34px; display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:5px 8px; border:1px solid var(--border-color); border-radius:2px; background:#fff; cursor:pointer; }
.construction-supervision-project-dropdown { position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:50; display:none; padding:8px; border:1px solid var(--border-color); border-radius:2px; background:#fff; box-shadow:var(--shadow-md); }
.construction-supervision-project-multi.is-open .construction-supervision-project-dropdown { display:block; }
.construction-supervision-project-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 12px; max-height:158px; margin-top:8px; overflow:auto; }
.construction-supervision-type-help { margin:12px 0 0; color:var(--text-secondary); font-size:var(--font-size-sm); }
@media (max-width:1180px) { .construction-supervision-detail-layout { grid-template-columns:minmax(0,1fr); } .construction-supervision-flow-panel { position:static; } }

/* ---------- Special Inspection ---------- */
.special-inspection-card {
  min-height: calc(100vh - 120px);
}

.special-inspection-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 14px 20px 0;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}

.special-inspection-tabs button {
  min-width: 132px;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  cursor: pointer;
}

.special-inspection-tabs button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.special-inspection-search-form {
  align-items: center;
}

.special-inspection-search-form .form-input,
.special-inspection-search-form .form-select {
  min-width: 220px;
}

.special-inspection-table-header {
  align-items: center;
  padding-top: 12px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.special-inspection-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.special-inspection-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  background: #fff;
  white-space: nowrap;
}

.special-inspection-metrics strong {
  color: var(--text-primary);
  font-weight: 600;
}

.special-inspection-record-table-wrap,
.special-inspection-requirement-table-wrap {
  max-height: calc(100vh - 390px);
  overflow: auto;
}

.special-inspection-record-table {
  min-width: 1280px;
}

.special-inspection-requirement-table {
  min-width: 1320px;
}

.special-inspection-inline-input,
.special-inspection-inline-textarea {
  width: 100%;
  min-width: 0;
}

.special-inspection-inline-textarea {
  min-height: 72px;
  padding-top: 7px;
  padding-bottom: 7px;
  line-height: 1.6;
  resize: vertical;
}

.special-inspection-record-table th,
.special-inspection-record-table td,
.special-inspection-requirement-table th,
.special-inspection-requirement-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.special-inspection-name-cell,
.special-inspection-table-cell {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.special-inspection-content-cell {
  max-width: 430px;
  min-width: 280px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.special-inspection-requirement-table .cell-actions,
.special-inspection-record-table .cell-actions {
  white-space: nowrap;
}

.special-inspection-empty {
  min-height: 210px;
  padding-top: 96px;
}

.special-inspection-detail-page {
  min-height: calc(100vh - 120px);
}

.special-inspection-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: flex-start;
}

.special-inspection-detail-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.special-inspection-flow-panel {
  position: sticky;
  top: 12px;
}

.special-inspection-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding-bottom: 12px;
}

.special-inspection-detail-title {
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.special-inspection-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 42px;
}

.special-inspection-detail-item {
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

.special-inspection-detail-item.is-full {
  grid-column: 1 / -1;
}

.special-inspection-detail-item span {
  color: var(--text-secondary);
}

.special-inspection-detail-item strong {
  font-weight: 500;
}

.special-project-field {
  grid-column: 1 / -1;
}

.special-project-multi {
  position: relative;
  flex: 1;
  min-width: 0;
}

.special-project-selected {
  min-height: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
}

.special-project-placeholder {
  color: var(--text-muted);
}

.special-project-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
}

.special-project-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  height: 24px;
  padding: 0 6px 0 8px;
  border: 1px solid #91d5ff;
  border-radius: 2px;
  background: #e6f7ff;
  color: #1890ff;
  font-size: var(--font-size-xs);
}

.special-project-tag button {
  width: 16px;
  height: 16px;
  border: 0;
  background: transparent;
  color: #1890ff;
  cursor: pointer;
  line-height: 16px;
}

.special-project-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  display: none;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.special-project-multi.is-open .special-project-dropdown {
  display: block;
}

.special-project-search {
  width: 100%;
  min-width: 0;
}

.special-project-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  max-height: 158px;
  margin-top: 8px;
  overflow: auto;
}

.special-project-option {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.special-project-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.special-inspection-detail-table {
  min-width: 1320px;
}

.special-inspection-edit-table {
  min-width: 1180px;
  table-layout: fixed;
}

.special-inspection-edit-table .special-inspection-col-no {
  width: 82px;
}

.special-inspection-edit-table .special-inspection-col-content {
  width: auto;
}

.special-inspection-edit-table .special-inspection-col-result {
  width: 180px;
}

.special-inspection-edit-table .special-inspection-col-required {
  width: 96px;
}

.special-inspection-edit-table .special-inspection-col-status {
  width: 112px;
}

.special-inspection-edit-table .special-inspection-col-action {
  width: 88px;
}

.special-inspection-edit-table .special-inspection-content-cell {
  max-width: none;
}

.special-inspection-item-no-input {
  width: 64px;
  min-width: 0;
  text-align: center;
}

.special-inspection-result-select,
.special-inspection-required-select,
.special-inspection-status-select {
  width: 100%;
  min-width: 0;
}

.special-inspection-form-grid,
.special-inspection-check-grid,
.special-inspection-flow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.special-inspection-check-card .special-hazard-fields,
.special-inspection-check-card .special-no-hazard-fields,
.special-rectification-reply-fields,
.special-rectification-flow-fields {
  display: contents;
}

.special-flow-preview {
  min-height: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.special-flow-preview span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  background: #fff;
  color: var(--text-primary);
  white-space: nowrap;
}

.special-flow-preview i {
  color: var(--text-muted);
  font-style: normal;
}

.special-inspection-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.special-inspection-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 18px;
}

.special-inspection-flow-step::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 8px;
  width: 1px;
  background: #d9e2ef;
}

.special-inspection-flow-step:last-child {
  padding-bottom: 0;
}

.special-inspection-flow-step:last-child::before {
  display: none;
}

.special-inspection-flow-dot {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 3px solid #cbd5e1;
  border-radius: 50%;
  background: #ffffff;
}

.special-inspection-flow-step.is-done .special-inspection-flow-dot {
  border-color: #25b56b;
  background: #25b56b;
}

.special-inspection-flow-step.is-active .special-inspection-flow-dot {
  border-color: var(--primary-color);
  background: #ffffff;
}

.special-inspection-flow-content {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e5ecf5;
  border-radius: 4px;
  background: #f8fafc;
}

.special-inspection-flow-step.is-active .special-inspection-flow-content {
  border-color: #cfe4ff;
  background: #f4f9ff;
}

.special-inspection-flow-title {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.45;
}

.special-inspection-flow-meta {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.special-inspection-flow-result {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 8px;
  padding: 0 8px;
  border-radius: 3px;
  background: #eaf8f0;
  color: #1f8f55;
  font-size: 12px;
}

.special-inspection-flow-step.is-active .special-inspection-flow-result {
  color: var(--primary-color);
  background: #eaf4ff;
}

.special-inspection-flow-step.is-pending .special-inspection-flow-result {
  color: var(--text-secondary);
  background: #eef2f7;
}

.special-inspection-no-flow {
  padding: 12px;
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  background: #fafafa;
  font-size: var(--font-size-sm);
}

@media (max-width: 1180px) {
  .special-inspection-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .special-inspection-flow-panel {
    position: static;
  }
}

.special-check-textarea {
  min-height: 76px;
  padding-top: 7px;
  padding-bottom: 7px;
  line-height: 1.6;
  resize: vertical;
}

.special-image-upload-field {
  align-items: start;
}

.special-reference-attachment-field {
  align-items: start;
}

.special-reference-attachment-placeholder {
  width: 100%;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
}

.special-reference-attachment-placeholder:hover,
.special-reference-attachment-placeholder.is-uploaded {
  border-color: var(--primary-color);
  background: #fbfdff;
}

.special-reference-attachment-placeholder strong {
  margin-top: 10px;
  color: var(--text-primary);
  font-weight: 400;
}

.special-reference-attachment-placeholder em {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-style: normal;
}

.special-reference-attachment-panel {
  width: 100%;
}

.special-reference-attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.special-reference-attachment-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid #e8edf5;
  border-radius: 4px;
  background: #fafcff;
}

.special-reference-attachment-item strong,
.special-reference-attachment-item span {
  display: block;
}

.special-reference-attachment-item strong {
  color: var(--text-primary);
  font-weight: 500;
}

.special-reference-attachment-item span,
.special-reference-attachment-empty {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.special-reference-attachment-empty {
  margin-top: 10px;
}

.special-reference-attachment-detail {
  align-items: flex-start;
}

.special-reference-attachment-readonly {
  flex: 1;
  min-width: 0;
}

.special-reply-tip-field {
  align-items: start;
}

.special-reply-tip-column {
  width: 100%;
}

.special-reply-field-tip {
  margin-top: 7px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
}

.special-image-upload-placeholder {
  width: 220px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
}

.special-image-upload-placeholder span {
  color: var(--primary-color);
  font-size: 22px;
  line-height: 1;
}

.special-image-upload-placeholder em {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-style: normal;
}

.special-image-upload-placeholder:hover,
.special-image-upload-placeholder.is-uploaded {
  border-color: var(--primary-color);
  background: #fbfdff;
}

.inspection-record-page,
.inspection-hazard-page,
.inspection-edit-page {
  min-height: calc(100vh - 120px);
}

.inspection-edit-header {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  min-height: 48px;
  padding-bottom: 12px;
}

.inspection-edit-header > div:last-child {
  display: flex;
  gap: 8px;
}

.inspection-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 56px;
}

.inspection-edit-section-title,
.inspection-edit-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inspection-edit-detail-card {
  padding: 18px 20px 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fbfcfe;
}

.inspection-edit-detail-card + .inspection-edit-detail-card {
  margin-top: 16px;
}

.inspection-edit-detail-title {
  margin-bottom: 18px;
  color: var(--text-primary);
  font-weight: 600;
}

.inspection-hazard-field-group {
  display: contents;
}

.inspection-audio-upload-field {
  align-items: start;
}

.inspection-audio-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 132px;
  padding: 20px;
  color: var(--text-secondary);
  background: #fff;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  text-align: center;
  cursor: pointer;
}

.inspection-audio-upload-placeholder:hover,
.inspection-audio-upload-placeholder.is-uploaded {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #fbfdff;
}

.inspection-audio-upload-icon {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 36px;
  color: var(--primary-color);
}

.inspection-audio-upload-icon::before {
  content: "";
  width: 26px;
  height: 32px;
  border: 3px solid currentColor;
  border-radius: 2px;
}

.inspection-audio-upload-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 9px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  bottom: 10px;
  left: 7px;
}

.inspection-audio-upload-title {
  margin-top: 12px;
  color: var(--text-primary);
  font-size: var(--font-size-md);
}

.inspection-audio-upload-sub {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.inspection-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 0 12px;
}

.inspection-detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.inspection-back {
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.inspection-project-pill {
  display: inline-flex;
  align-items: center;
  max-width: 360px;
  height: 24px;
  margin: 0 12px 0 6px;
  padding: 0 8px;
  color: var(--primary-color);
  background: #e8f2ff;
  border: 1px solid #69b1ff;
  border-radius: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspection-detail-grid,
.inspection-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 56px;
}

.inspection-detail-item {
  display: flex;
  align-items: flex-start;
  min-height: 24px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.inspection-detail-item.is-full {
  grid-column: 1 / -1;
}

.inspection-detail-item span {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.inspection-detail-item strong {
  font-weight: 400;
  word-break: break-word;
}

.inspection-result-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inspection-result-card {
  width: min(820px, 100%);
  padding: 20px 24px;
  background: #f5f7fb;
  border-radius: 4px;
}

.inspection-result-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text-primary);
  font-weight: 600;
}

.inspection-detail-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 400;
}

.inspection-detail-status.success {
  color: #089160;
  background: #d9f7e8;
}

.inspection-detail-status.warning {
  color: #d46b08;
  background: #fff7e6;
}

.inspection-detail-status.danger {
  color: #cf1322;
  background: #fff1f0;
}

.inspection-image-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 72px;
  color: #6b778c;
  background: linear-gradient(135deg, #e8f2ff, #f5f7fa);
  border: 1px solid #d9e6f2;
  border-radius: 2px;
  font-size: 12px;
}

.inspection-result-actions {
  margin-top: 16px;
}

.inspection-record-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}

.inspection-record-summary-card {
  width: min(860px, 100%);
  padding: 20px 24px;
  background: #f3f6fb;
  border-radius: 4px;
}

.inspection-record-summary-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.inspection-record-summary-title > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inspection-warning-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #fff;
  background: #faad14;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.inspection-record-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 48px;
}

.inspection-record-edit-page {
  min-height: calc(100vh - 120px);
}

.inspection-record-project-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.inspection-record-grid {
  gap: 20px 80px;
}

.inspection-record-grid .drill-form-item.is-full {
  grid-column: 1 / -1;
}

.inspection-record-grid textarea {
  min-height: 140px;
}

.inspection-record-hazard-fields,
.inspection-record-flow-fields {
  display: contents;
}

.inspection-record-image-field {
  align-items: flex-start;
}

.inspection-record-reply-field {
  align-items: flex-start;
}

.inspection-record-field-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.inspection-record-image-grid {
  display: flex;
  gap: 12px;
}

.inspection-record-image-tile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  color: #8c99a8;
  background: #fff;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  cursor: pointer;
}

.inspection-record-image-tile span {
  font-size: 30px;
  line-height: 1;
}

.inspection-record-image-tile em {
  max-width: 86px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspection-record-image-tile:hover,
.inspection-record-image-tile.is-uploaded {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #fbfdff;
}

.inspection-record-attachment-field {
  align-items: flex-start;
}

.inspection-record-attachment-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 168px;
  padding: 20px;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  cursor: pointer;
}

.inspection-record-attachment-placeholder strong {
  margin-top: 10px;
  color: var(--text-primary);
  font-weight: 400;
}

.inspection-record-attachment-placeholder em {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-style: normal;
}

.inspection-record-footer-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.inspection-record-field-tip {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
}

.inspection-hazard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.inspection-hazard-main {
  min-width: 0;
}

.inspection-flow-panel {
  position: sticky;
  top: 12px;
  min-height: 360px;
}

.inspection-flow {
  position: relative;
  padding-left: 8px;
}

.inspection-flow-step {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 26px;
}

.inspection-flow-step::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: 2px;
  width: 1px;
  background: #d9e2ef;
}

.inspection-flow-step:last-child::before {
  content: none;
}

.inspection-flow-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
}

.inspection-flow-step.is-pending .inspection-flow-dot {
  border-color: #d9d9d9;
}

.inspection-flow-step.is-active .inspection-flow-dot {
  background: var(--primary-color);
}

.inspection-flow-step.is-reject .inspection-flow-dot {
  border-color: #ff4d4f;
  background: #ff4d4f;
}

.inspection-flow-card {
  margin-top: 8px;
  padding: 14px;
  background: #f5f7fa;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.inspection-flow-card strong {
  display: inline-block;
  margin-right: 8px;
  color: var(--text-primary);
}

.inspection-flow-card em {
  display: block;
  margin-top: 8px;
  color: #10a35a;
  font-style: normal;
}

.inspection-flow-title {
  color: var(--text-primary);
  font-weight: 600;
}

.inspection-flow-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.inspection-flow-actions.is-finished,
.inspection-no-flow {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.inspection-approved-stamp {
  position: absolute;
  right: 2px;
  top: 20px;
  width: 76px;
  height: 76px;
  color: #52c41a;
  border: 2px solid #b7eb8f;
  border-radius: 50%;
  font-weight: 700;
  line-height: 72px;
  text-align: center;
  transform: rotate(-22deg);
  opacity: 0.55;
}

@media (max-width: 1100px) {
  .inspection-record-project-inline {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .inspection-hazard-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .inspection-record-summary-grid,
  .inspection-record-grid,
  .inspection-detail-grid,
  .inspection-result-grid {
    grid-template-columns: 1fr;
  }

  .inspection-record-summary-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------- Task Record ---------- */
.task-record-card {
  min-height: calc(100vh - 120px);
}

.task-record-search-form {
  align-items: center;
}

.task-record-search-form .form-input,
.task-record-search-form .form-select {
  min-width: 220px;
}

.task-record-table-header {
  justify-content: flex-end;
  padding-top: 12px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.task-record-table-wrap {
  max-height: calc(100vh - 318px);
  overflow: auto;
}

.task-record-table {
  min-width: 1320px;
}

.task-record-table th,
.task-record-table td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.task-record-type {
  color: #fa8c16;
}

.task-record-content-cell {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-record-page-input {
  width: 44px;
  min-width: 44px;
  height: 28px;
}

.task-record-project-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  color: var(--primary-color);
  background: #eaf3ff;
  border: 1px solid #91caff;
  border-radius: 2px;
  font-size: var(--font-size-sm);
}

.task-record-edit-page .drill-card {
  min-height: calc(100vh - 174px);
}

.task-record-form-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

.task-record-form-grid .drill-form-item label {
  width: 200px;
}

.task-record-textarea-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.task-record-textarea-wrap .form-textarea {
  width: 100%;
  min-height: 142px;
  padding-bottom: 28px;
}

.task-record-textarea-wrap span {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.task-record-image-row {
  align-items: flex-start;
}

.task-record-image-upload {
  width: 100px;
  height: 100px;
  color: #8c98a8;
  background: #fbfcfe;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  font-size: 36px;
  line-height: 1;
}

.task-record-image-upload:hover,
.task-record-attachment-upload:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.task-record-attachment-row {
  align-items: flex-start;
}

.task-record-attachment-upload {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 192px;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
}

.task-record-attachment-icon {
  position: relative;
  width: 32px;
  height: 40px;
  color: var(--primary-color);
}

.task-record-attachment-icon::before {
  content: "";
  position: absolute;
  inset: 4px 3px;
  border: 3px solid currentColor;
  border-radius: 2px;
}

.task-record-attachment-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 11px;
  height: 9px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.task-record-attachment-upload strong {
  margin-top: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.task-record-attachment-upload em {
  margin-top: 8px;
  color: var(--text-muted);
  font-style: normal;
  font-size: var(--font-size-sm);
}

.task-record-detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.task-record-detail-main {
  min-width: 0;
}

.task-record-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 84px;
}

.task-record-detail-item {
  display: flex;
  min-width: 0;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.task-record-detail-item.is-full {
  grid-column: 1 / -1;
}

.task-record-detail-item.is-half {
  grid-column: auto;
}

.task-record-detail-item span {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.task-record-detail-item strong {
  min-width: 0;
  font-weight: 400;
  word-break: break-word;
}

.task-record-image-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  color: #6b778c;
  background: linear-gradient(135deg, #d7e8f8, #eef4fb 45%, #c8d7e6);
  border: 1px solid #d9e6f2;
  border-radius: 2px;
  font-size: 12px;
  text-align: center;
}

.task-record-flow-panel {
  position: relative;
  min-height: 264px;
}

.task-record-flow {
  position: relative;
  padding-left: 4px;
}

.task-record-flow-step {
  display: flex;
  gap: 12px;
  padding-bottom: 24px;
}

.task-record-flow-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
}

.task-record-flow-step.is-done .task-record-flow-dot {
  border-color: #27c075;
}

.task-record-flow-step.is-active .task-record-flow-dot {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.task-record-flow-card {
  margin-top: 8px;
  padding: 14px;
  background: #f5f7fa;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.task-record-flow-card strong {
  display: inline-block;
  margin-right: 8px;
  color: var(--text-primary);
}

.task-record-flow-card em {
  display: block;
  margin-top: 8px;
  color: #10a35a;
  font-style: normal;
}

.task-record-flow-title {
  color: var(--text-primary);
  font-weight: 600;
}

.task-record-approved-stamp {
  position: absolute;
  right: 8px;
  top: 54px;
  width: 86px;
  height: 86px;
  color: #52c41a;
  border: 2px solid #b7eb8f;
  border-radius: 50%;
  font-weight: 700;
  line-height: 82px;
  text-align: center;
  transform: rotate(-22deg);
  opacity: 0.5;
}

.task-record-approved-stamp.is-pending {
  color: #1890ff;
  border-color: #91caff;
}

/* ---------- Inspection Dashboard ---------- */
.inspection-dashboard-page {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inspection-dashboard-filter-card {
  margin-bottom: 0;
}

.inspection-dashboard-filter-form {
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.inspection-dashboard-filter-form .form-select {
  min-width: 136px;
}

.inspection-dashboard-filter-form .form-input {
  min-width: 150px;
}

.inspection-dashboard-filter-form .form-item:first-child .form-select {
  min-width: 180px;
}

.inspection-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.inspection-dashboard-kpi {
  min-width: 0;
  min-height: 104px;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.inspection-dashboard-kpi span,
.inspection-dashboard-kpi em {
  display: block;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspection-dashboard-kpi strong {
  display: block;
  margin: 6px 0;
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.inspection-dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.inspection-dashboard-chart-card {
  min-width: 0;
  min-height: 292px;
  margin-bottom: 0;
  padding: 18px;
}

.inspection-dashboard-chart-card.is-wide {
  grid-column: 1 / -1;
  min-height: auto;
}

.inspection-dashboard-progress-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 14px;
}

.inspection-dashboard-progress-row > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.inspection-dashboard-progress-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspection-dashboard-progress-row strong {
  color: var(--text-primary);
  font-weight: 700;
}

.inspection-dashboard-progress-row em {
  min-width: 62px;
  color: var(--text-secondary);
  font-style: normal;
  text-align: right;
}

.inspection-dashboard-progress-row p {
  height: 10px;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f8;
}

.inspection-dashboard-progress-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1e69cf;
}

.inspection-dashboard-progress-row.is-green i { background: #2f9e44; }
.inspection-dashboard-progress-row.is-orange i { background: #f59f00; }
.inspection-dashboard-progress-row.is-red i { background: #f0445f; }

.inspection-dashboard-bars {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 14px 4px 0;
}

.inspection-dashboard-bar-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 36px 62px;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.inspection-dashboard-bar-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspection-dashboard-bar-row div {
  height: 12px;
  overflow: hidden;
  background: #f0f3f8;
  border-radius: 999px;
}

.inspection-dashboard-bar-row i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1e69cf, #69a7ff);
  border-radius: inherit;
}

.inspection-dashboard-bar-row strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.inspection-dashboard-bar-row em {
  color: var(--text-secondary);
  font-style: normal;
  text-align: right;
}

.inspection-dashboard-pie-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-top: 14px;
}

.inspection-dashboard-pie {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 170px;
  border-radius: 50%;
}

.inspection-dashboard-pie span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.inspection-dashboard-pie strong {
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1;
}

.inspection-dashboard-pie em {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
}

.inspection-dashboard-pie-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inspection-dashboard-pie-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 58px;
  gap: 12px;
  align-items: center;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.inspection-dashboard-pie-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspection-dashboard-pie-row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.inspection-dashboard-pie-row strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

.inspection-dashboard-pie-row em {
  color: var(--text-secondary);
  font-style: normal;
  text-align: right;
}

.inspection-dashboard-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.inspection-dashboard-line-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.inspection-dashboard-trend-tabs {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #f7f9fc;
}

.inspection-dashboard-trend-tab {
  min-width: 42px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  cursor: pointer;
}

.inspection-dashboard-trend-tab.is-active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.inspection-dashboard-line-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inspection-dashboard-line-legend span::before {
  content: '';
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary-color);
}

.inspection-dashboard-line-legend .is-safety::before {
  background: #f59f00;
}

.inspection-dashboard-line-legend .is-quality::before {
  background: #0f8f84;
}

.inspection-dashboard-line-chart {
  position: relative;
  min-height: 330px;
  margin-top: 8px;
  padding: 10px 8px 0;
  background: #ffffff;
}

.inspection-dashboard-line-chart svg {
  display: block;
  width: 100%;
  height: 320px;
}

.inspection-dashboard-line-chart .grid {
  stroke: #e7edf6;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.inspection-dashboard-line-chart .line {
  fill: none;
  stroke: #1e69cf;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
  vector-effect: non-scaling-stroke;
}

.inspection-dashboard-line-chart .line.is-safety,
.inspection-dashboard-line-chart .point.is-safety {
  stroke: #f59f00;
}

.inspection-dashboard-line-chart .line.is-quality,
.inspection-dashboard-line-chart .point.is-quality {
  stroke: #0f8f84;
}

.inspection-dashboard-line-chart .point {
  fill: #ffffff;
  stroke: #1e69cf;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.inspection-dashboard-line-chart .axis-label {
  fill: var(--text-secondary);
  font-size: 11px;
}

.inspection-dashboard-line-chart .axis-label.x {
  text-anchor: middle;
}

.inspection-dashboard-line-chart .axis-label.y {
  text-anchor: end;
}

.inspection-dashboard-hover-zone .hover-hit {
  fill: transparent;
  pointer-events: all;
}

.inspection-dashboard-hover-zone .hover-detail {
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.inspection-dashboard-hover-zone:hover .hover-detail {
  opacity: 1;
}

.inspection-dashboard-hover-zone .hover-line {
  stroke: #9aa8ba;
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.inspection-dashboard-hover-zone .hover-tooltip-bg {
  fill: #ffffff;
  stroke: #d8e1ef;
  stroke-width: 1;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.18));
  vector-effect: non-scaling-stroke;
}

.inspection-dashboard-hover-zone .hover-tooltip-title {
  fill: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
}

.inspection-dashboard-hover-zone .hover-tooltip-label {
  fill: var(--text-secondary);
  font-size: 11px;
}

.inspection-dashboard-hover-zone .hover-tooltip-value {
  fill: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  text-anchor: end;
}

.inspection-dashboard-hover-zone .hover-tooltip-dot {
  fill: #1e69cf;
}

.inspection-dashboard-hover-zone .hover-tooltip-dot.is-safety {
  fill: #f59f00;
}

.inspection-dashboard-hover-zone .hover-tooltip-dot.is-quality {
  fill: #0f8f84;
}

.inspection-dashboard-table {
  min-width: 760px;
}

@media (max-width: 1280px) {
  .inspection-dashboard-kpis {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .inspection-dashboard-kpis,
  .inspection-dashboard-chart-grid {
    grid-template-columns: 1fr;
  }

  .inspection-dashboard-chart-card.is-wide {
    grid-column: auto;
  }
}

.smart-workers-card {
  min-height: calc(100vh - 120px);
}

.smart-workers-search-form {
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.smart-workers-search-form .form-input,
.smart-workers-search-form .form-select {
  min-width: 156px;
}

.smart-workers-search-form .form-item:nth-child(5) .form-select {
  min-width: 246px;
}

.smart-workers-table-header {
  justify-content: flex-end;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 0;
}

.smart-workers-table th,
.smart-workers-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.smart-worker-face-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.smart-worker-photo-thumb {
  position: relative;
  width: 96px;
  height: 86px;
  overflow: hidden;
  background: #ffffff;
  border: 5px solid #d4d4d4;
}

.smart-worker-photo-sun {
  position: absolute;
  top: 10px;
  right: 22px;
  width: 13px;
  height: 13px;
  background: #c9c9c9;
  border-radius: 50%;
  z-index: 1;
}

.smart-worker-photo-hill {
  position: absolute;
  right: 5px;
  bottom: 6px;
  width: 54px;
  height: 44px;
  background: #16a0d4;
  clip-path: polygon(0 100%, 0 36%, 34% 16%, 100% 42%, 100% 100%);
  z-index: 2;
}

.smart-worker-photo-hill.back {
  left: 5px;
  right: auto;
  width: 58px;
  height: 58px;
  background: #1fa1d5;
  clip-path: polygon(0 100%, 0 38%, 38% 8%, 100% 54%, 100% 100%);
}

.smart-worker-edit-page .drill-card {
  min-height: 642px;
}

.smart-worker-form-grid {
  gap: 20px 80px;
}

.smart-worker-form-grid .drill-form-item label {
  width: 180px;
}

.smart-worker-face-row {
  align-items: flex-start;
}

.smart-worker-face-upload-wrap {
  flex: 1;
  min-width: 0;
}

.smart-worker-face-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 98px;
  height: 98px;
  color: #8c98a8;
  background: #fbfcfe;
  border: 1px dashed #2f80ed;
  border-radius: 2px;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.smart-worker-face-upload:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #fbfdff;
}

.smart-worker-face-upload.is-uploaded {
  color: var(--primary-color);
  background: #f0f7ff;
  border-color: var(--primary-color);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.smart-worker-face-note {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  color: #1f3b5f;
  background: #e8f2ff;
  border: 1px solid #2f80ed;
  border-radius: 2px;
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.smart-worker-face-note strong,
.smart-worker-face-note span {
  display: block;
}

.smart-warning-card {
  min-height: calc(100vh - 120px);
}

.smart-warning-search-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
  gap: 12px 18px;
  padding-top: 14px;
  padding-bottom: 20px;
}

.smart-warning-filter-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
}

.smart-warning-filter-item label {
  justify-content: flex-end;
}

.smart-warning-filter-item .form-input,
.smart-warning-filter-item .form-select {
  width: 100%;
  min-width: 0;
}

.smart-warning-search-actions {
  grid-row: 1 / 2;
  grid-column: 4;
  align-self: start;
  margin-left: 0;
}

.smart-warning-table-header {
  justify-content: flex-end;
  padding-top: 26px;
  padding-bottom: 10px;
  border-bottom: 0;
}

.smart-warning-table-wrap {
  overflow-x: auto;
}

.smart-warning-table {
  min-width: 1500px;
}

.smart-warning-table th,
.smart-warning-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.smart-warning-image {
  position: relative;
  width: 98px;
  height: 86px;
  overflow: hidden;
  background: #f7f7f7;
  border: 5px solid #d4d4d4;
}

.smart-warning-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
}

.smart-warning-image-sun {
  position: absolute;
  top: 10px;
  right: 22px;
  width: 14px;
  height: 14px;
  background: #c9c9c9;
  border-radius: 50%;
  z-index: 1;
}

.smart-warning-image-hill {
  position: absolute;
  right: 5px;
  bottom: 6px;
  width: 54px;
  height: 44px;
  background: #16a0d4;
  clip-path: polygon(0 100%, 0 36%, 34% 16%, 100% 42%, 100% 100%);
  z-index: 2;
}

.smart-warning-image-hill.is-back {
  left: 5px;
  right: auto;
  width: 58px;
  height: 58px;
  background: #1fa1d5;
  clip-path: polygon(0 100%, 0 38%, 38% 8%, 100% 54%, 100% 100%);
}

.smart-monitor-page {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  min-height: calc(100vh - 104px);
}

.smart-monitor-sidebar,
.smart-monitor-main {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.smart-monitor-sidebar {
  padding: 20px 20px 24px;
}

.smart-monitor-title {
  margin-bottom: 22px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.smart-monitor-search {
  width: 100%;
  margin-bottom: 26px;
}

.smart-monitor-channel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.smart-monitor-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  color: var(--text-primary);
  background: transparent;
  border: 0;
  font-size: var(--font-size-sm);
  text-align: left;
  cursor: pointer;
}

.smart-monitor-channel:hover {
  color: var(--primary-color);
  background: #f2f7ff;
}

.smart-monitor-channel.active {
  color: #ffffff;
  background: #3478d8;
  font-weight: 600;
}

.smart-monitor-camera-icon {
  position: relative;
  width: 13px;
  height: 10px;
  flex: 0 0 13px;
  border: 1px solid currentColor;
  border-radius: 1px;
}

.smart-monitor-camera-icon::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 2px;
  width: 4px;
  height: 5px;
  border: 1px solid currentColor;
  border-left: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.smart-monitor-main {
  padding: 18px 20px 22px;
}

.smart-monitor-camera-title {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

#smart-monitor-viewer-wrap {
  background: #000000;
}

.smart-monitor-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(12, 18, 25, .64), rgba(12, 18, 25, .2)),
    radial-gradient(circle at 76% 20%, rgba(255,255,255,.95) 0 10px, rgba(255,255,255,.4) 11px 18px, transparent 19px),
    linear-gradient(180deg, #303b3f 0%, #59666a 34%, #9ca49d 35%, #d8d5c8 100%);
  border: 10px solid #000000;
}

.smart-monitor-time {
  position: absolute;
  top: 18px;
  left: 32px;
  z-index: 10;
  color: rgba(255,255,255,.9);
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(0,0,0,.75);
}

.monitor-sky {
  position: absolute;
  inset: 0 0 48% 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 58px),
    linear-gradient(180deg, #2c373a 0%, #59656a 100%);
  opacity: .85;
}

.monitor-hill {
  position: absolute;
  left: 24%;
  right: 0;
  top: 10%;
  height: 30%;
  background: linear-gradient(135deg, rgba(26, 44, 39, .95), rgba(50, 71, 57, .8));
  clip-path: polygon(0 60%, 20% 28%, 46% 50%, 69% 18%, 100% 42%, 100% 100%, 0 100%);
}

.monitor-yard {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  height: 48%;
  background:
    linear-gradient(9deg, transparent 0 44%, rgba(255,255,255,.22) 45% 46%, transparent 47%),
    linear-gradient(170deg, #cfd0c8 0%, #b5afa3 45%, #8b8378 100%);
  clip-path: polygon(0 28%, 48% 16%, 100% 8%, 100% 100%, 0 100%);
}

.monitor-retaining-wall {
  position: absolute;
  left: 6%;
  right: 28%;
  top: 30%;
  height: 46px;
  background: #b9c5c8;
  border-top: 4px solid #e6eaec;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}

.monitor-road {
  position: absolute;
  left: -5%;
  right: 14%;
  bottom: 30%;
  height: 80px;
  background: #d4d3ca;
  transform: skewY(-5deg);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
}

.monitor-tower {
  position: absolute;
  right: 12%;
  top: 24%;
  bottom: 4%;
  width: 64px;
  background:
    linear-gradient(65deg, transparent 47%, #7b4b30 48% 52%, transparent 53%),
    linear-gradient(115deg, transparent 47%, #7b4b30 48% 52%, transparent 53%),
    repeating-linear-gradient(90deg, #724226 0 7px, transparent 7px 26px);
  border-left: 7px solid #5b321d;
  border-right: 7px solid #5b321d;
  opacity: .95;
}

.monitor-crane-sign {
  position: absolute;
  right: 8%;
  top: 35%;
  width: 194px;
  padding: 10px 8px;
  color: #f3e6ba;
  background: #2b2d3f;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.monitor-fence {
  position: absolute;
  height: 32px;
  background:
    repeating-linear-gradient(90deg, #e7b934 0 8px, #7b4a22 8px 11px, #e7b934 11px 26px),
    linear-gradient(#6b3a1a, #6b3a1a);
  border-top: 3px solid #8d5c22;
  border-bottom: 3px solid #8d5c22;
}

.monitor-fence-a {
  left: 7%;
  right: 43%;
  bottom: 36%;
  transform: rotate(-4deg);
}

.monitor-fence-b {
  left: 48%;
  right: 6%;
  bottom: 32%;
}

.monitor-blue-shed {
  position: absolute;
  width: 128px;
  height: 45px;
  background: #1b5eb5;
  border-top: 10px solid #36a3ff;
  box-shadow: 0 8px 15px rgba(0,0,0,.25);
}

.monitor-shed-a {
  left: 38%;
  bottom: 25%;
}

.monitor-shed-b {
  right: 15%;
  bottom: 28%;
}

.monitor-trees {
  position: absolute;
  left: -4%;
  right: 45%;
  bottom: -6%;
  height: 250px;
  background:
    radial-gradient(circle at 13% 58%, #173f22 0 58px, transparent 59px),
    radial-gradient(circle at 29% 42%, #1f512d 0 72px, transparent 73px),
    radial-gradient(circle at 48% 54%, #173f22 0 66px, transparent 67px),
    radial-gradient(circle at 65% 68%, #214f2e 0 76px, transparent 77px);
  filter: contrast(1.15);
}

.monitor-light {
  position: absolute;
  width: 5px;
  height: 88px;
  background: rgba(255,255,255,.7);
}

.monitor-light::before {
  content: '';
  position: absolute;
  top: -11px;
  left: -16px;
  width: 34px;
  height: 34px;
  background: radial-gradient(circle, rgba(255,255,255,.98), rgba(255,255,255,.45) 35%, transparent 70%);
}

.light-a {
  left: 44%;
  top: 25%;
}

.light-b {
  right: 28%;
  top: 18%;
}

.light-c {
  right: 5%;
  top: 24%;
}

.monitor-banner {
  position: absolute;
  left: 2%;
  top: 35%;
  padding: 8px 10px;
  color: #dde8ff;
  background: #325484;
  border: 4px solid #98a7bd;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 8px;
  opacity: .9;
}

.pagination-size-select {
  min-width: 92px;
  height: 28px;
  padding-top: 2px;
  padding-bottom: 2px;
}

/* Checkbox */
.checkbox-wrapper {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  background: #ffffff;
}

.checkbox:hover {
  border-color: var(--primary-color);
}

.checkbox.checked {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox.checked::after {
  content: '';
  width: 5px;
  height: 8px;
  border: 2px solid #ffffff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) translateY(-1px);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 20px;
  gap: 4px;
  border-top: 1px solid var(--border-color);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-item:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination-item.active {
  color: #ffffff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination-item.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: #d9d9d9;
}

.pagination-info {
  margin-right: 12px;
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: var(--font-size-xs);
  line-height: 1;
}

.tag-blue {
  color: #1890ff;
  background: #e6f7ff;
  border: 1px solid #91d5ff;
}

.tag-green {
  color: #52c41a;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
}

.tag-orange {
  color: #fa8c16;
  background: #fff7e6;
  border: 1px solid #ffd591;
}

.tag-red {
  color: #ff4d4f;
  background: #fff2f0;
  border: 1px solid #ffccc7;
}

.tag-gray {
  color: #999999;
  background: #f5f5f5;
  border: 1px solid #d9d9d9;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
}

.tab-item {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.tab-item:hover {
  color: var(--primary-color);
}

.tab-item.active {
  color: var(--primary-color);
  font-weight: 500;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.tab-item .count {
  margin-left: 4px;
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  background: #f0f0f0;
  font-size: 11px;
  color: var(--text-secondary);
}

.tab-item.active .count {
  background: var(--primary-bg);
  color: var(--primary-color);
}

/* ---------- Dropdown ---------- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 4px 0;
  z-index: 1000;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
  gap: 8px;
}

.dropdown-menu-item:hover {
  background: #f5f7fa;
}

.dropdown-menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff4d4f;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
}

/* ---------- Tooltip ---------- */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
}

.worker-payment-ledger-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.worker-payment-ledger-tooltip:hover::after {
  top: calc(100% + 8px);
  right: 0;
  bottom: auto;
  left: auto;
  width: 240px;
  max-width: calc(100vw - 48px);
  padding: 8px 10px;
  transform: none;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  z-index: 1200;
}

.worker-payment-ledger-import-help {
  min-width: 32px;
  padding: 0 8px;
  font-weight: 700;
}

.worker-payment-ledger-import-dialog {
  width: min(760px, calc(100vw - 32px));
}

.worker-payment-ledger-import-instructions {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-primary);
  line-height: 1.8;
}

.worker-payment-ledger-import-image {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border: 1px solid var(--border-color);
  background: #fafafa;
}

/* ---------- Sider Collapsed ---------- */
.layout-sider.collapsed {
  width: 64px !important;
}

.layout-sider.collapsed .menu-item-group-title {
  justify-content: center;
  padding: 10px 0;
}

.layout-sider.collapsed .menu-item-group-title .icon {
  margin-right: 0;
}

.layout-sider.collapsed .menu-item {
  justify-content: center;
  padding: 8px 0;
}

.layout-sider.collapsed .menu-sub-item {
  justify-content: center;
  padding: 7px 0;
}

/* ---------- Arrow SVG fix ---------- */
.menu-item-group-title .arrow svg,
.menu-sub-item-group-title .arrow svg {
  width: 12px;
  height: 12px;
}

/* ---------- Environment Metrics Cards ---------- */
.env-metrics {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

.env-metric-card {
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  min-height: 90px;
}

.env-metric-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.env-metric-info {
  flex: 1;
  min-width: 0;
}

.env-metric-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.env-metric-unit {
  font-size: 13px;
  font-weight: 400;
  margin-left: 2px;
  opacity: 0.85;
}

.env-metric-label {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
  white-space: nowrap;
}

.smart-env-metrics {
  margin-bottom: 12px;
}

.smart-env-card {
  min-height: calc(100vh - 238px);
}

.smart-env-table-header {
  justify-content: flex-end;
  padding-top: 14px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.smart-env-table-wrap {
  max-height: calc(100vh - 340px);
  overflow: auto;
}

.smart-env-table {
  min-width: 1500px;
}

.smart-env-table th,
.smart-env-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.smart-env-table .cell-actions {
  gap: 2px;
}

.smart-env-edit-page .drill-card {
  min-height: 520px;
}

.smart-env-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 36px;
}

.smart-env-form-grid .drill-form-item label {
  width: 172px;
}

.smart-env-device-picker {
  display: flex;
  flex: 1;
  min-width: 0;
}

.smart-env-device-picker .form-input,
.smart-env-device-picker .form-select {
  flex: 1;
  min-width: 0;
}

.smart-env-device-picker .btn {
  margin-left: -1px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.smart-env-image-row {
  align-items: flex-start;
}

.smart-env-image-upload-wrap {
  flex: 1;
  min-width: 0;
}

.smart-env-image-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 98px;
  height: 98px;
  color: #8c98a8;
  background: #fbfcfe;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.smart-env-image-upload:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.smart-env-image-upload.is-uploaded {
  color: var(--primary-color);
  background: #f0f7ff;
  border-color: var(--primary-color);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* ---------- Smart Monitor Config ---------- */
.smart-monitor-config-card {
  min-height: calc(100vh - 164px);
}

.smart-monitor-config-search-form {
  grid-template-columns: repeat(3, minmax(180px, 240px)) auto;
}

.smart-monitor-config-table-header {
  justify-content: flex-end;
  padding-top: 12px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.smart-monitor-config-table-wrap {
  max-height: calc(100vh - 320px);
  overflow: auto;
}

.smart-monitor-config-table {
  min-width: 1320px;
}

.smart-monitor-config-table th,
.smart-monitor-config-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.smart-monitor-config-table .cell-actions {
  gap: 2px;
}

.monitor-config-cover-thumb {
  position: relative;
  display: block;
  width: 82px;
  height: 48px;
  overflow: hidden;
  background: linear-gradient(180deg, #9fc4e8 0%, #cdd7df 50%, #69747c 100%);
  border: 1px solid #dde3ea;
  border-radius: 3px;
}

.monitor-config-cover-thumb::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 12px;
  bottom: 11px;
  height: 14px;
  background: rgba(50, 58, 66, 0.65);
  clip-path: polygon(0 100%, 18% 30%, 28% 65%, 45% 20%, 62% 72%, 78% 42%, 100% 100%);
}

.monitor-config-cover-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: rgba(31, 43, 55, 0.78);
}

.monitor-config-cover-thumb.is-variant-2 {
  background: linear-gradient(180deg, #b8d4e8 0%, #d9cab7 52%, #70766f 100%);
}

.monitor-config-cover-thumb.is-variant-3 {
  background: linear-gradient(180deg, #a8c7df 0%, #c7d5c9 48%, #596b5d 100%);
}

.monitor-config-cover-thumb.is-variant-4 {
  background: linear-gradient(180deg, #d1d9e3 0%, #b8c5d1 48%, #53616f 100%);
}

.monitor-config-cover-frame {
  position: absolute;
  inset: 6px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.monitor-config-cover-label {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 3px;
  z-index: 2;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.smart-monitor-config-edit-page .drill-card,
.smart-monitor-config-detail-page .drill-card {
  min-height: 520px;
}

.smart-monitor-config-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 32px;
}

.smart-monitor-config-form-grid .drill-form-item label {
  width: 132px;
}

.monitor-config-device-picker {
  display: flex;
  flex: 1;
  min-width: 0;
}

.monitor-config-device-picker .form-input,
.monitor-config-device-picker .form-select {
  flex: 1;
  min-width: 0;
}

.monitor-config-device-picker .btn {
  margin-left: -1px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  white-space: nowrap;
}

.monitor-config-cover-row {
  align-items: flex-start;
}

.monitor-config-cover-upload-wrap {
  flex: 1;
  min-width: 0;
}

.monitor-config-cover-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 98px;
  height: 98px;
  color: #8c98a8;
  background: #fbfcfe;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.monitor-config-cover-upload:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.monitor-config-cover-upload.is-uploaded {
  color: var(--primary-color);
  background: #f0f7ff;
  border-color: var(--primary-color);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.monitor-config-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 28px;
}

.monitor-config-detail-grid .detail-item {
  display: flex;
  min-height: 34px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.monitor-config-detail-grid .detail-item.is-full {
  grid-column: 1 / -1;
}

.monitor-config-detail-grid .detail-label {
  flex: 0 0 118px;
  color: var(--text-secondary);
}

.monitor-config-detail-grid .detail-value {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

/* ---------- Contract Management ---------- */
.contract-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contract-summary-card {
  min-height: 108px;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
}

.contract-summary-label {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.contract-summary-value {
  margin-top: 10px;
  color: var(--text-primary);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.contract-summary-desc {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.contract-summary-blue {
  border-left-color: #1890ff;
}

.contract-summary-green {
  border-left-color: #52c41a;
}

.contract-summary-orange {
  border-left-color: #fa8c16;
}

.contract-summary-red {
  border-left-color: #ff4d4f;
}

.contract-entry-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: #fbfcff;
  border-bottom: 1px solid var(--border-color);
}

.entry-strip-left {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  gap: 14px;
}

.entry-strip-title {
  flex-shrink: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.entry-strip-fields {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.entry-strip-fields .form-input {
  min-width: 140px;
}

.contract-table {
  min-width: 1280px;
}

.contract-name-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 260px;
  min-width: 220px;
}

.contract-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-keywords {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-parties {
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contract-table-single-line td {
  white-space: nowrap;
}

.contract-table-single-line .contract-col-name,
.contract-table-single-line .contract-col-project,
.contract-table-single-line .contract-parties {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contract-table-single-line .cell-actions {
  flex-wrap: nowrap;
}

.contract-format-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 160px;
  white-space: nowrap;
}

.contract-format-summary > span:last-child {
  margin-left: 2px;
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  overflow: hidden;
  text-overflow: ellipsis;
}

.contract-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  height: 26px;
  padding: 0;
}

.scan-file-name {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  white-space: nowrap;
}

.empty-state {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
}

.modal-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  background: #f5f7fa;
  color: var(--text-primary);
}

.modal-body {
  padding: 18px 20px;
  overflow: auto;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.modal-form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.modal-form-item label {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.modal-form-item .form-input,
.modal-form-item .form-select {
  width: 100%;
  min-width: 0;
}

.modal-upload-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  background: #fafafa;
  border: 1px dashed #d9d9d9;
  border-radius: var(--border-radius);
  color: var(--text-muted);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  background: #fafafa;
}

.modal-check-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.toast-message {
  position: fixed;
  top: 72px;
  left: 50%;
  z-index: 1400;
  transform: translate(-50%, -8px);
  opacity: 0;
  padding: 9px 16px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 4px;
  font-size: var(--font-size-sm);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
}

.toast-message.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.preview-modal {
  width: min(980px, calc(100vw - 32px));
}

.preview-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
}

.attachment-list {
  overflow: auto;
  padding: 12px;
  border-right: 1px solid var(--border-color);
  background: #fafafa;
}

.attachment-item {
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.attachment-item + .attachment-item {
  margin-top: 8px;
}

.attachment-item:hover {
  background: #ffffff;
  border-color: #d9d9d9;
}

.attachment-item.active {
  background: var(--primary-bg);
  border-color: rgba(30, 105, 207, 0.35);
}

.attachment-item-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.attachment-item-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-item-meta {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.attachment-preview-panel {
  overflow: auto;
  padding: 18px;
  background: #f5f7fa;
}

.attachment-preview-title {
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.attachment-preview-meta {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.attachment-preview-canvas {
  position: relative;
  width: min(460px, 100%);
  min-height: 560px;
  margin: 18px auto 0;
  padding: 48px 40px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-md);
}

.preview-file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 28px;
  padding: 0 8px;
  border-radius: 3px;
  color: #ffffff;
  background: var(--primary-color);
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.preview-lines {
  margin-top: 42px;
}

.preview-lines span {
  display: block;
  height: 12px;
  margin-bottom: 18px;
  background: #edf1f7;
  border-radius: 2px;
}

.preview-lines span:nth-child(1) {
  width: 72%;
}

.preview-lines span:nth-child(2) {
  width: 96%;
}

.preview-lines span:nth-child(3) {
  width: 88%;
}

.preview-lines span:nth-child(4) {
  width: 94%;
}

.preview-lines span:nth-child(5) {
  width: 64%;
}

.preview-stamp {
  position: absolute;
  right: 36px;
  bottom: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 3px solid #ff4d4f;
  border-radius: 50%;
  color: #ff4d4f;
  font-weight: 700;
  transform: rotate(-14deg);
}

.attachment-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 360px;
  color: var(--text-muted);
  text-align: center;
}

.worker-wide-table {
  min-width: 1180px;
}

.worker-detail-modal {
  width: min(920px, calc(100vw - 32px));
}

.worker-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.worker-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary-color);
  font-size: 20px;
  font-weight: 700;
}

.worker-detail-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.worker-detail-sub {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.worker-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.worker-info-item {
  min-height: 66px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}

.worker-info-item span {
  display: block;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.worker-info-item strong {
  display: block;
  margin-top: 8px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relation-warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.warning-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  color: #ff4d4f;
  background: #fff2f0;
  border: 1px solid #ffccc7;
  border-radius: 3px;
  font-size: var(--font-size-xs);
  white-space: nowrap;
}

.detail-section-title {
  margin: 18px 0 10px;
  color: var(--text-primary);
  font-weight: 600;
}

.mini-table th,
.mini-table td {
  padding: 9px 12px;
}

.project-payment-table {
  min-width: 1360px;
}

.payment-relation-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: #fbfcff;
  border-bottom: 1px solid var(--border-color);
}

.payment-relation-strip strong {
  margin-right: 10px;
  color: var(--text-primary);
}

.payment-relation-strip span {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.payment-form-note {
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--text-secondary);
  background: #f5f7fa;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .search-form {
    gap: 8px;
  }

  .form-input,
  .form-select {
    min-width: 140px;
  }

  .env-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .contract-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contract-entry-strip,
  .entry-strip-left,
  .entry-strip-fields {
    align-items: stretch;
    flex-direction: column;
  }

  .contract-entry-strip {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .env-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .contract-summary {
    grid-template-columns: 1fr;
  }

  .contract-search-form .form-item,
  .contract-search-form .form-input,
  .contract-search-form .form-select,
  .entry-strip-fields .form-input,
  .entry-strip-fields .form-select {
    width: 100%;
  }

  .modal-form-grid {
    grid-template-columns: 1fr;
  }

  .modal-upload-line {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .attachment-list {
    max-height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .worker-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-relation-strip {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .worker-info-grid {
    grid-template-columns: 1fr;
  }
}

.worker-manage-table {
  min-width: 1320px;
}

.worker-manage-search {
  margin-top: 16px;
}

.worker-relation-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: #fbfcff;
  border-bottom: 1px solid var(--border-color);
}

.worker-relation-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.worker-relation-main strong {
  color: var(--text-primary);
}

.worker-relation-main span,
.worker-relation-meta span,
.sub-cell {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.worker-relation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.worker-warning-board {
  display: grid;
  gap: 12px;
  padding: 16px 20px 8px;
}

.worker-warning-card {
  padding: 12px 14px;
  background: #fafcff;
  border: 1px solid #e8edf5;
  border-radius: 6px;
}

.worker-warning-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-primary);
  font-weight: 600;
}

.worker-warning-title span {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 400;
}

.worker-warning-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.worker-name-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.worker-name-cell strong {
  color: var(--text-primary);
}

.worker-docs-cell,
.worker-warning-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.worker-docs-cell span {
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
}

.worker-detail-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.worker-detail-doc-item {
  padding: 10px 12px;
  background: #fafcff;
  border: 1px solid #e8edf5;
  border-radius: 4px;
}

.worker-detail-doc-item span,
.worker-detail-doc-item strong {
  display: block;
}

.worker-detail-doc-item span {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
}

.worker-detail-doc-item strong {
  margin-top: 6px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.worker-detail-attachment-list {
  margin-top: 10px;
}

.worker-warning-ok {
  color: #389e0d;
  background: #f6ffed;
  border-color: #b7eb8f;
}

.worker-account-ledger-list {
  display: grid;
  gap: 18px;
  padding: 16px 20px 6px;
}

.worker-account-table {
  min-width: 1480px;
}

.account-detail-edit-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.account-detail-edit-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.account-detail-edit-table th,
.account-detail-edit-table td {
  padding: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.account-detail-edit-table th {
  background: #f7f9fc;
  font-weight: 600;
}

.account-detail-edit-table .form-input {
  width: 100%;
  min-width: 0;
}

.account-detail-empty td {
  height: 48px;
  color: var(--text-muted);
}

.worker-account-sheet {
  overflow-x: auto;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.worker-account-sheet-title {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.worker-account-sheet-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.worker-account-sheet-table + .worker-account-sheet-table {
  margin-top: -1px;
}

.worker-account-sheet-table th,
.worker-account-sheet-table td {
  height: 38px;
  padding: 7px 8px;
  color: var(--text-primary);
  border: 1px solid #b8c2d1;
  font-size: var(--font-size-sm);
  text-align: center;
  vertical-align: middle;
}

.worker-account-sheet-table th {
  background: #f7f9fc;
  font-weight: 600;
}

.worker-account-sheet-table .section-title {
  color: var(--text-primary);
  background: #ffffff;
  font-size: 15px;
  letter-spacing: 0;
}

.account-base-table th {
  width: 110px;
}

.account-base-table td {
  text-align: left;
}

@media (max-width: 768px) {
  .worker-relation-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .worker-warning-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

.breadcrumb-action-row {
  justify-content: space-between;
  gap: 16px;
}

.breadcrumb-left,
.breadcrumb-actions {
  display: flex;
  align-items: center;
}

.breadcrumb-left {
  min-width: 0;
  flex-wrap: wrap;
}

.breadcrumb-actions {
  gap: 8px;
  flex-shrink: 0;
}

.drill-page {
  min-height: calc(100vh - 138px);
  background: transparent;
}

.drill-card {
  padding: 24px 24px 20px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.drill-section-title {
  margin-bottom: 22px;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.drill-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 80px;
}

.drill-form-item {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.drill-form-item.is-full {
  grid-column: 1 / -1;
}

.drill-form-item.is-third {
  grid-column: auto;
}

.drill-form-item label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 160px;
  min-height: 32px;
  padding-right: 8px;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  line-height: 32px;
  white-space: nowrap;
}

.drill-form-item .form-input,
.drill-form-item .form-select {
  flex: 1;
  width: auto;
  min-width: 0;
}

.standard-pure-preview {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: calc(100vh - 220px);
  padding: 8px 0 16px;
  background: #f5f7fa;
}

.standard-preview-card {
  padding: 0;
  overflow: hidden;
}

.standard-preview-frame {
  width: 100%;
  min-height: calc(100vh - 220px);
  background: #ffffff;
  border: 0;
}

.standard-sheet-preview {
  width: 100%;
  min-height: calc(100vh - 220px);
  overflow: auto;
  padding: 20px;
  background: #ffffff;
}

.standard-sheet-preview table {
  min-width: 920px;
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--text-primary);
}

.standard-sheet-preview th,
.standard-sheet-preview td {
  min-width: 96px;
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid #d8e1ef;
  text-align: left;
  line-height: 1.6;
  vertical-align: top;
  word-break: break-word;
  background: #ffffff;
}

.standard-sheet-preview th {
  background: #eef5ff;
  font-weight: 600;
}

.standard-sheet-preview tr:first-child th {
  font-size: 16px;
  text-align: center;
  background: #f8fbff;
}

.standard-preview-canvas {
  position: relative;
  width: min(760px, 100%);
  min-height: 820px;
  padding: 58px 64px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-md);
}

.standard-preview-canvas .preview-lines {
  margin-top: 46px;
}

.standard-preview-canvas .preview-lines.is-secondary {
  margin-top: 72px;
}

.required-star {
  margin-right: 4px;
  color: #ff4d4f;
}

.upload-form-row {
  align-items: flex-start;
}

.upload-control-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.image-upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 106px;
  color: #8c98a8;
  background: #fbfcfe;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  font-size: 34px;
  line-height: 1;
}

.image-upload-box:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.image-upload-box.is-uploaded {
  color: var(--primary-color);
  background: #f0f7ff;
  border-color: var(--primary-color);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.upload-note {
  width: min(598px, 100%);
  padding: 16px;
  color: #1f3b5f;
  background: #e8f2ff;
  border: 1px solid #2f80ed;
  border-radius: 2px;
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.upload-note strong,
.upload-note span {
  display: block;
}

.upload-note strong {
  margin-bottom: 4px;
  font-size: var(--font-size-md);
}

.upload-hint {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.salary-material-status {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 88px;
  color: var(--text-secondary);
  line-height: 1.2;
}

.salary-material-status.is-uploaded span {
  color: var(--primary-color);
  font-weight: 600;
}

.salary-material-status small {
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
}

.worker-salary-material-row {
  align-items: flex-start;
}

.worker-salary-material-upload {
  flex: 1;
  min-width: 0;
}

.worker-salary-upload-placeholder,
.worker-salary-material-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(260px, 100%);
  height: 148px;
  overflow: hidden;
  color: var(--text-secondary);
  background: #fbfcfe;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
  text-align: center;
}

.worker-salary-upload-placeholder {
  cursor: pointer;
}

.worker-salary-upload-placeholder:hover {
  color: var(--primary-color);
  background: #fbfdff;
  border-color: var(--primary-color);
}

.worker-salary-upload-placeholder.is-uploaded,
.worker-salary-material-preview.is-uploaded {
  color: var(--primary-color);
  background: linear-gradient(135deg, #edf6ff 0%, #ffffff 100%);
  border-style: solid;
  border-color: #9bc8ff;
}

.worker-salary-upload-placeholder.face.is-uploaded,
.worker-salary-material-preview.face.is-uploaded {
  background:
    radial-gradient(circle at 50% 36%, rgba(47, 128, 237, .22) 0 24px, transparent 25px),
    radial-gradient(ellipse at 50% 78%, rgba(47, 128, 237, .16) 0 54px, transparent 55px),
    linear-gradient(135deg, #edf6ff 0%, #ffffff 100%);
}

.worker-salary-upload-placeholder.signature.is-uploaded,
.worker-salary-material-preview.signature.is-uploaded {
  background:
    linear-gradient(150deg, transparent 36%, rgba(47, 128, 237, .18) 37% 39%, transparent 40%),
    linear-gradient(135deg, #fff 0%, #f2f7ff 100%);
}

.salary-material-title {
  color: var(--text-primary);
  font-size: var(--font-size-md);
  font-weight: 600;
}

.salary-material-sub,
.salary-material-caption {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.salary-material-image {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.salary-material-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--primary-color);
  font-size: var(--font-size-md);
  font-weight: 600;
  transform: translate(-50%, -50%);
}

.salary-material-watermark {
  position: absolute;
  right: 8px;
  bottom: 6px;
  padding: 3px 6px;
  color: #fff;
  background: rgba(17, 31, 51, .68);
  border-radius: 2px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.contract-attachment-row {
  margin-top: 4px;
}

.contract-attachment-upload {
  flex: 1;
  min-width: 0;
}

.contract-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  padding: 24px;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  text-align: center;
}

.contract-upload-placeholder:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #fbfdff;
}

.contract-upload-placeholder.is-uploaded {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #f0f7ff;
}

.contract-upload-plus {
  display: block;
  margin-bottom: 12px;
  color: #8c98a8;
  font-size: 40px;
  line-height: 1;
}

.contract-upload-placeholder.is-uploaded .contract-upload-plus {
  color: var(--primary-color);
  font-size: var(--font-size-md);
  font-weight: 600;
}

.contract-upload-title {
  color: var(--text-primary);
  font-size: var(--font-size-md);
  font-weight: 600;
}

.contract-upload-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.bim-model-edit-page .drill-card {
  min-height: 488px;
}

.bim-model-edit-page .drill-form-grid {
  gap: 20px 84px;
}

.bim-model-attachment-row {
  align-items: flex-start;
}

.bim-model-upload-wrap {
  flex: 1;
  min-width: 0;
}

.bim-model-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(626px, 100%);
  min-height: 188px;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  text-align: center;
  cursor: pointer;
}

.bim-model-upload-placeholder:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: #fbfdff;
}

.bim-model-upload-placeholder.is-uploaded {
  color: var(--primary-color);
  border-color: #91caff;
  background: #f0f7ff;
}

.bim-model-upload-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--primary-color);
}

.bim-model-upload-icon svg {
  width: 100%;
  height: 100%;
}

.bim-model-upload-title {
  color: var(--text-primary);
  font-size: var(--font-size-md);
  font-weight: 600;
}

.bim-model-upload-sub {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.bim-preview-page {
  min-height: calc(100vh - 138px);
  background: #ffffff;
  overflow: auto;
}

.bim-preview-page img {
  display: block;
  width: 100%;
  min-height: calc(100vh - 138px);
  object-fit: contain;
  background: #ffffff;
}

.worker-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.worker-topbar-card {
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.worker-mini-metrics {
  display: grid;
  grid-template-columns: repeat(4, 220px);
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.worker-mini-card {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #edf0f5;
  border-radius: 4px;
  box-shadow: none;
}

.worker-mini-card .mini-mark {
  color: var(--primary-color);
  font-size: var(--font-size-sm);
}

.worker-mini-card .mini-label {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.worker-mini-card strong {
  margin-left: auto;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
}

.worker-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  padding: 0;
}

.worker-manage-card {
  overflow: hidden;
}

.worker-new-card {
  overflow: hidden;
}

.worker-new-search {
  align-items: center;
  padding: 18px 20px;
}

.worker-new-search .form-input,
.worker-new-search .form-select {
  min-width: 180px;
}

.worker-new-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.worker-new-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.worker-new-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  background: #fff;
  white-space: nowrap;
}

.worker-new-metrics strong {
  color: var(--text-primary);
  font-weight: 600;
}

.worker-new-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.worker-new-info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: -4px;
  border: 1px solid #b9c3d4;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: help;
}

.worker-new-import-help {
  padding: 0;
  background: #fff;
}

.worker-new-import-help-dialog {
  width: min(1080px, calc(100vw - 48px));
}

.worker-new-import-help-body {
  max-height: min(680px, calc(100vh - 180px));
  overflow: auto;
}

.worker-new-import-help-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.worker-new-import-help-body img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #eef1f6;
}

.worker-new-file-input {
  display: none;
}

.worker-new-table-wrap {
  max-height: calc(100vh - 362px);
  overflow: auto;
}

.worker-new-table {
  min-width: 2380px;
}

.worker-new-table th,
.worker-new-table td {
  white-space: nowrap;
}

.worker-new-wide-cell {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.worker-new-doc-missing {
  color: var(--danger-color);
  font-weight: 600;
}

.worker-new-doc-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
}

.worker-new-doc-actions a {
  max-width: 150px;
  overflow: hidden;
  color: var(--primary-color);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-new-update-warning {
  color: var(--danger-color);
  font-weight: 600;
  cursor: help;
}

.worker-manage-search {
  align-items: center;
  padding: 18px 20px;
}

.worker-search-actions {
  margin-left: auto;
}

.worker-symbol-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 20px;
  color: var(--text-secondary);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--font-size-sm);
}

.worker-table-legend {
  border-top: 1px solid var(--border-color);
}

.worker-symbol-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.worker-symbol-legend b {
  color: var(--primary-color);
  font-weight: 700;
}

.worker-inline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.worker-inline-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  min-width: 0;
}

.worker-inline-metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.worker-inline-metric strong {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
}

.worker-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.drill-readonly-value {
  flex: 1;
  min-height: 32px;
  padding: 6px 11px;
  color: var(--text-primary);
  background: #f7f9fc;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  line-height: 20px;
}

.drill-form-item .form-textarea {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 72px;
  resize: vertical;
}

.drill-attachment-wrap {
  margin-top: 12px;
}

.drill-attachment-list {
  display: grid;
  gap: 10px;
}

.drill-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: #fafcff;
  border: 1px solid #e8edf5;
  border-radius: 4px;
}

.drill-attachment-main {
  min-width: 0;
}

.drill-attachment-main strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.6;
}

.drill-attachment-main span {
  display: block;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.drill-attachment-empty {
  padding: 14px 12px;
  color: var(--text-muted);
  background: #fafbfd;
  border: 1px dashed #d9e2ef;
  border-radius: 4px;
  text-align: center;
}

.drill-form-tip {
  margin-left: 168px;
  padding: 12px 14px;
  color: var(--text-secondary);
  background: #f7f9fc;
  border: 1px solid #e6edf5;
  border-radius: 4px;
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.exit-confirm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 16px;
}

.exit-confirm-paper-card {
  align-self: start;
}

.exit-confirm-paper {
  padding: 28px 30px 34px;
  color: #24364c;
  background: #ffffff;
  border: 1px solid #e6edf5;
  box-shadow: 0 3px 12px rgba(31, 45, 61, 0.08);
  font-family: "SimSun", "Songti SC", serif;
  line-height: 2;
}

.exit-confirm-paper .paper-attachment {
  margin-bottom: 6px;
  font-size: 14px;
}

.exit-confirm-paper h3 {
  margin: 0 0 18px;
  color: #1f2d3d;
  font-size: 22px;
  text-align: center;
  letter-spacing: 0;
}

.exit-confirm-paper p {
  margin: 0;
  font-size: 15px;
  text-indent: 2em;
}

.exit-confirm-paper .paper-sign {
  margin-top: 34px;
  text-indent: 0;
}

.exit-confirm-paper .paper-date {
  margin-top: 2px;
  padding-right: 42px;
  text-align: right;
  text-indent: 0;
}

.exit-confirm-blank {
  display: inline-block;
  min-width: 72px;
  padding: 0 4px;
  border-bottom: 1px solid #8fa1b5;
  line-height: 1.35;
  text-align: center;
}

.exit-confirm-blank.is-long {
  min-width: 132px;
}

.exit-confirm-blank.is-money {
  min-width: 92px;
}

.exit-material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
}

.exit-material-upload {
  min-height: 118px;
}

.worker-relation-modal {
  width: min(780px, calc(100vw - 32px));
}

.relation-modal-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.relation-modal-summary span {
  padding: 6px 10px;
  color: var(--text-secondary);
  background: #f5f7fa;
  border-radius: 4px;
  font-size: var(--font-size-sm);
}

.relation-modal-list {
  display: grid;
  gap: 10px;
}

.relation-modal-item {
  padding: 12px;
  background: #fafcff;
  border: 1px solid #e8edf5;
  border-radius: 4px;
}

.relation-modal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.relation-modal-title span {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 400;
}

@media (max-width: 1200px) {
  .drill-form-grid {
    gap: 18px 24px;
  }

  .drill-form-item label {
    width: 136px;
  }

  .worker-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .worker-top-actions {
    justify-content: flex-start;
  }

  .worker-mini-metrics {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .worker-inline-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .worker-inline-actions {
    justify-content: flex-start;
  }

  .exit-confirm-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .drill-form-grid {
    grid-template-columns: 1fr;
  }

  .drill-form-item {
    align-items: stretch;
    flex-direction: column;
  }

  .drill-form-item label {
    justify-content: flex-start;
    width: auto;
    padding-right: 0;
  }

  .worker-mini-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .worker-mini-metrics {
    grid-template-columns: 1fr;
  }

  .worker-top-actions {
    flex-wrap: wrap;
  }

  .worker-inline-actions {
    flex-wrap: wrap;
  }

  .exit-material-grid {
    grid-template-columns: 1fr;
  }
}

.attendance-manage-card {
  overflow: hidden;
}

.attendance-manage-card .smart-workers-search-form {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}

.attendance-search {
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}

.attendance-search .form-input,
.attendance-search .form-select {
  min-width: 160px;
}

.attendance-table {
  min-width: 1420px;
}

.attendance-application-ledger-table {
  min-width: 1180px;
}

.attendance-ledger-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 14px 20px 0;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}

.attendance-ledger-tab {
  height: 36px;
  padding: 0 14px;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: var(--font-size-sm);
}

.attendance-ledger-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.attendance-photo-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  background: #f5f7fa;
  border: 1px solid #e6ebf1;
  border-radius: 4px;
  cursor: zoom-in;
}

.attendance-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attendance-note-modal {
  width: min(760px, calc(100vw - 32px));
}

.attendance-note-list {
  display: grid;
  gap: 12px;
}

.attendance-note-item {
  padding: 14px 16px;
  background: #fafcff;
  border: 1px solid #e8edf5;
  border-radius: 4px;
}

.attendance-note-title {
  color: var(--text-primary);
  font-weight: 600;
}

.attendance-note-desc {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.attendance-photo-modal {
  width: min(660px, calc(100vw - 32px));
}

.attendance-photo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: #f5f7fa;
  border-radius: 4px;
}

.attendance-photo-preview img {
  max-width: 100%;
  max-height: 420px;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

.attendance-photo-meta {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.attendance-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 16px;
}

.attendance-basic-detail {
  max-width: 1180px;
}

.attendance-detail-section + .attendance-detail-section {
  margin-top: 22px;
}

.attendance-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 42px;
}

.attendance-detail-item {
  min-width: 0;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  line-height: 1.9;
}

.attendance-detail-item strong {
  margin-right: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.attendance-detail-item.is-full {
  grid-column: 1 / -1;
}

.attendance-photo-inline {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.attendance-photo-inline img {
  width: 240px;
  height: 160px;
  object-fit: cover;
  background: #f5f7fa;
  border: 1px solid #e6ebf1;
  border-radius: 4px;
}

.attendance-photo-inline.is-empty {
  padding: 28px 32px;
  color: var(--text-muted);
  background: #f5f7fa;
  border: 1px dashed #d9e2ef;
  border-radius: 4px;
}

.attendance-application-table .detail-mini-row {
  grid-template-columns: 0.8fr 1.4fr 1.5fr 0.9fr 1.4fr 0.8fr;
}

.detail-mini-table {
  display: grid;
  gap: 8px;
}

.detail-mini-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 12px;
  background: #fafcff;
  border: 1px solid #e8edf5;
  border-radius: 4px;
}

.detail-mini-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendance-process-card {
  align-self: start;
  padding: 24px 20px;
}

.attendance-process-title {
  margin-bottom: 18px;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.attendance-process-timeline {
  position: relative;
  padding-left: 24px;
}

.attendance-process-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 1px;
  background: #d9e2ef;
}

.attendance-process-step {
  position: relative;
  padding-bottom: 22px;
}

.attendance-process-step:last-child {
  padding-bottom: 0;
}

.attendance-process-step::before {
  content: '';
  position: absolute;
  top: 4px;
  left: -24px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid #91a6bf;
  border-radius: 50%;
  box-sizing: border-box;
}

.attendance-process-step.is-done::before {
  border-color: #52c41a;
}

.attendance-process-step.is-active::before {
  border-color: var(--primary-color);
}

.attendance-process-name {
  color: var(--text-primary);
  font-weight: 600;
}

.attendance-process-card-body {
  margin-top: 10px;
  padding: 12px 14px;
  background: #f5f7fb;
  border-radius: 4px;
}

.attendance-process-meta {
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

.attendance-process-meta span {
  margin-left: 6px;
  color: var(--text-muted);
}

.attendance-process-result {
  margin-top: 8px;
  color: #389e0d;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.attendance-process-result.is-pending {
  color: #fa8c16;
}

.attendance-process-result.is-reject {
  color: #ff4d4f;
}

.attendance-attachment-list {
  display: grid;
  gap: 10px;
}

.attendance-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fafcff;
  border: 1px solid #e8edf5;
  border-radius: 4px;
}

.attendance-attachment-item strong {
  color: var(--text-primary);
  font-weight: 500;
}

.attendance-attachment-item span {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

@media (max-width: 1200px) {
  .attendance-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .attendance-detail-grid {
    grid-template-columns: 1fr;
  }
}

.attendance-batch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
}

.attendance-batch-toolbar strong {
  color: var(--text-primary);
  font-size: var(--font-size-md);
}

.attendance-batch-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid var(--border-color);
}

.attendance-batch-table th,
.attendance-batch-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  vertical-align: top;
}

.attendance-batch-table th:last-child,
.attendance-batch-table td:last-child {
  border-right: none;
}

.attendance-batch-table th {
  color: var(--text-primary);
  background: #fafafa;
  font-weight: 600;
  text-align: left;
}

.attendance-batch-table td .form-input,
.attendance-batch-table td .form-select {
  width: 100%;
  min-width: 0;
}

.attendance-batch-empty {
  padding: 18px 12px;
  color: var(--text-muted);
  text-align: center;
}

.attendance-batch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.attendance-batch-tip {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.ledger-inline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 12px;
  padding: 14px 16px;
  background: #fafbfd;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.ledger-inline-metrics {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
}

.ledger-inline-metric {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 124px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 4px;
}

.ledger-inline-metric span {
  display: inline-block;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  white-space: nowrap;
}

.ledger-inline-metric strong {
  display: inline-block;
  margin-top: 0;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.4;
  white-space: nowrap;
}

.ledger-inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contract-manage-card,
.project-payment-card {
  padding: 0;
}

.contract-manage-card .search-form,
.project-payment-card .search-form {
  margin-bottom: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}

.contract-manage-card .table-container,
.project-payment-card .table-container {
  border-top: 1px solid var(--border-color);
}

.contract-inline-toolbar,
.project-payment-inline-toolbar {
  margin: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: #fff;
}

.contract-inline-metrics,
.project-payment-inline-metrics {
  flex-wrap: nowrap;
  gap: 12px;
}

.contract-inline-metric,
.project-payment-inline-metric {
  min-width: 116px;
  flex: 0 0 116px;
  height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-payment-inline-metric {
  min-width: 150px;
  flex-basis: 150px;
}

.project-payment-inline-metric:nth-child(2),
.project-payment-inline-metric:nth-child(3) {
  min-width: 178px;
  flex-basis: 178px;
}

.contract-inline-metric span,
.contract-inline-metric strong,
.project-payment-inline-metric span,
.project-payment-inline-metric strong {
  display: inline;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.contract-inline-metric strong,
.project-payment-inline-metric strong {
  font-size: 18px;
}

.contract-inline-actions,
.project-payment-inline-actions {
  margin-left: auto;
  flex-wrap: nowrap;
}

/* ---------- App prototype ---------- */
.app-prototype-page {
  min-height: calc(100vh - var(--header-height) - 58px);
  padding: 18px;
  background: linear-gradient(135deg, #eef5ff 0%, #f7f9fc 58%, #eef8f4 100%);
}

.app-prototype-shell {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.app-prototype-side {
  width: 260px;
  padding: 20px;
  align-self: flex-start;
  border: 1px solid #e1e9f5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
}

.app-prototype-title {
  color: #1f2937;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.app-prototype-desc {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.app-prototype-tabs {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.app-prototype-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e5edf7;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 14px;
  text-align: left;
}

.app-prototype-tab svg,
.app-bottom-nav-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-prototype-tab.active {
  border-color: #1e69cf;
  background: #edf5ff;
  color: #1e69cf;
  font-weight: 600;
}

.app-phone {
  width: 390px;
  height: 812px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 10px solid #111827;
  border-radius: 34px;
  background: #f4f7fb;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.22);
  position: relative;
}

.app-status-bar {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #1e69cf;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.app-status-signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.app-status-signal i {
  width: 20px;
  height: 10px;
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 2px;
  position: relative;
}

.app-status-signal i::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 13px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
}

.app-screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #f4f7fb;
}

.app-screen::-webkit-scrollbar {
  width: 0;
}

/* 项目大屏 / 危大工程模块 */
.project-dashboard-page {
  min-height: calc(100vh - 64px);
  background: #071426;
  color: #dbeeff;
  overflow: auto;
}

.project-dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 18px;
  min-height: calc(100vh - 64px);
  padding: 20px;
  background:
    radial-gradient(circle at 14% 8%, rgba(42, 125, 175, .22), transparent 34%),
    linear-gradient(180deg, #0a1d31 0%, #071426 100%);
}

.project-dashboard-danger,
.project-dashboard-placeholder {
  min-width: 0;
  border: 1px solid #1c4768;
  background: rgba(8, 28, 48, .9);
  box-shadow: inset 0 0 24px rgba(33, 127, 175, .08);
}

.project-dashboard-danger {
  padding: 18px;
}

.project-dashboard-danger h1 {
  margin: 0 0 14px;
  color: #f4fbff;
  font-size: 20px;
  letter-spacing: 1px;
}

.project-dashboard-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  color: #46708e;
  font-size: 18px;
  letter-spacing: 2px;
  background-image: linear-gradient(rgba(53, 113, 146, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(53, 113, 146, .06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.project-dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.project-dashboard-metric {
  min-width: 0;
  padding: 14px 12px 12px;
  border: 1px solid #1b5174;
  border-radius: 7px;
  background: #11314c;
  text-align: center;
}

.project-dashboard-metric.is-warn {
  border-color: #f06d42;
  box-shadow: 0 0 14px rgba(240, 109, 66, .16);
}

.project-dashboard-metric span,
.project-dashboard-metric em {
  display: block;
  color: #9cc1db;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-dashboard-metric strong {
  display: block;
  margin: 7px 0 3px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.project-dashboard-metric.is-trend strong {
  display: inline-block;
  margin-right: 6px;
}

.project-dashboard-metric.is-trend em {
  display: inline-block;
  color: #ffd28e;
}

.project-dashboard-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #194463;
  border-radius: 7px;
  background: rgba(10, 35, 57, .8);
}

.project-dashboard-panel-title {
  margin-bottom: 12px;
  color: #b9d8ec;
  font-size: 14px;
  font-weight: 600;
}

.project-dashboard-trend-chart {
  min-width: 0;
}

.project-dashboard-trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.project-dashboard-trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a8c9df;
  font-size: 11px;
}

.project-dashboard-trend-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.project-dashboard-trend-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
  overflow: visible;
}

.project-dashboard-trend-gridline {
  stroke: #1a4562;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.project-dashboard-trend-y-label,
.project-dashboard-trend-x-label {
  fill: #6f98b2;
  font-size: 11px;
  text-anchor: middle;
}

.project-dashboard-trend-y-label {
  text-anchor: end;
}

.project-dashboard-trend-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.project-dashboard-trend-area {
  fill-opacity: .68;
  stroke: none;
}

.project-dashboard-trend-point {
  stroke: #071426;
  stroke-width: 2;
}

@media (max-width: 1100px) {
  .project-dashboard-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .project-dashboard-shell {
    padding: 12px;
  }

  .project-dashboard-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

.app-bottom-nav {
  height: 62px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #e6edf5;
  background: #fff;
}

.app-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
}

.app-bottom-nav-item.active {
  color: #1e69cf;
  font-weight: 600;
}

.app-home,
.app-page {
  padding: 0 14px 16px;
}

.app-home-hero {
  margin: 0 -14px;
  padding: 14px 14px 16px;
  color: #fff;
  background: linear-gradient(180deg, #1e69cf 0%, #3aa0ff 100%);
}

.app-home-top,
.app-section-title-row,
.app-page-header,
.app-todo-item,
.app-message-item,
.app-mine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-project-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.app-project-sub,
.app-weather,
.app-section-title-row span,
.app-page-header span {
  font-size: 12px;
  opacity: 0.86;
}

.app-weather {
  padding: 5px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

.app-city-visual {
  height: 152px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #a7d8ff 0%, #dcefff 42%, #83b4df 100%);
  position: relative;
}

.app-city-river {
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: -28px;
  height: 78px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(90deg, #5fb2d9, #357fc2);
}

.app-city-road {
  position: absolute;
  left: 118px;
  bottom: -6px;
  width: 58px;
  height: 126px;
  transform: skewX(-18deg);
  border-left: 9px solid rgba(255, 255, 255, 0.78);
  border-right: 9px solid rgba(255, 255, 255, 0.78);
  background: #7897b5;
  z-index: 2;
}

.app-city-tower {
  position: absolute;
  bottom: 46px;
  width: 54px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #ffffff, #b8d5ed);
  box-shadow: inset 0 -30px 0 rgba(30, 105, 207, 0.12);
}

.app-city-tower::before {
  content: '';
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(30, 105, 207, 0.18) 10px 12px);
}

.app-city-tower.t1 {
  left: 26px;
  height: 78px;
}

.app-city-tower.t2 {
  right: 34px;
  height: 104px;
}

.app-city-tower.t3 {
  right: 104px;
  height: 66px;
}

.app-overview-card,
.app-card,
.app-small-stat,
.app-work-group,
.app-todo-item,
.app-message-item,
.app-mine-list,
.app-cert-row {
  border: 1px solid #e7eef7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(30, 105, 207, 0.06);
}

.app-overview-card {
  margin-top: -18px;
  padding: 14px;
  position: relative;
  z-index: 3;
}

.app-card,
.app-work-group,
.app-message-list,
.app-mine-list {
  margin-top: 12px;
  padding: 14px;
}

.app-section-title-row strong,
.app-page-header strong {
  color: #1f2937;
  font-size: 15px;
}

.app-section-title-row span,
.app-page-header span {
  color: #64748b;
}

.app-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.app-progress-bar {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: #e8eff8;
}

.app-progress-bar span {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: #1e69cf;
}

.app-progress-wrap b {
  color: #1e69cf;
  font-size: 13px;
}

.app-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  text-align: center;
}

.app-overview-grid span,
.app-overview-grid strong {
  display: block;
}

.app-overview-grid span {
  color: #7b8794;
  font-size: 11px;
}

.app-overview-grid strong {
  margin-top: 4px;
  color: #1f2937;
  font-size: 14px;
}

.app-function-grid,
.app-work-grid,
.app-stat-grid {
  display: grid;
  gap: 10px;
}

.app-function-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}

.app-function-grid.compact {
  grid-template-columns: repeat(4, 1fr);
}

.app-function-item,
.app-work-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  cursor: pointer;
}

.app-function-item em,
.app-work-item em {
  max-width: 100%;
  color: #334155;
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}

.app-function-icon,
.app-message-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
}

.tone-1 {
  background: linear-gradient(135deg, #1e69cf, #49a7ff);
}

.tone-2 {
  background: linear-gradient(135deg, #10b981, #68d391);
}

.tone-3 {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.tone-4 {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.app-mini-icon {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.app-mini-icon i {
  display: block;
  border-radius: 2px;
  background: currentColor;
}

.app-stat-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 12px;
}

.app-small-stat {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
}

.app-small-stat strong,
.app-small-stat span {
  display: block;
}

.app-small-stat strong {
  color: #1f2937;
  font-size: 13px;
}

.app-small-stat span {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.app-donut {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--app-donut-color) 0 68%, #e7eef7 68% 100%);
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
  position: relative;
}

.app-donut::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
}

.app-donut span {
  position: relative;
  z-index: 1;
}

.app-line-chart {
  height: 82px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 8px 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
}

.app-line-chart i {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #49a7ff, #1e69cf);
}

.app-page {
  padding-top: 14px;
}

.app-page-header {
  height: 34px;
}

.app-page-header strong {
  font-size: 18px;
}

.app-search-box {
  height: 34px;
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 17px;
  background: #fff;
  color: #94a3b8;
  font-size: 12px;
}

.app-work-group-title {
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
}

.app-work-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
}

.app-work-item span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #edf5ff;
  color: #1e69cf;
}

.app-segment-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 10px;
  border-bottom: 1px solid #e6edf5;
}

.app-segment-tabs button {
  height: 34px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  position: relative;
}

.app-segment-tabs button.active {
  color: #1e69cf;
  font-weight: 700;
}

.app-segment-tabs button.active::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  background: #1e69cf;
}

.app-todo-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.app-todo-item {
  align-items: flex-start;
  padding: 12px;
}

.app-todo-item div,
.app-message-item div {
  min-width: 0;
}

.app-todo-item strong,
.app-todo-item span,
.app-todo-item em,
.app-message-item strong,
.app-message-item em {
  display: block;
}

.app-todo-item strong,
.app-message-item strong {
  color: #1f2937;
  font-size: 14px;
}

.app-todo-item span,
.app-message-item em {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.app-todo-item em {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
}

.app-todo-item b {
  padding: 4px 7px;
  border-radius: 4px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 11px;
  white-space: nowrap;
}

.app-empty-note {
  margin-top: 14px;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.app-message-list {
  display: grid;
  gap: 10px;
  padding: 0;
}

.app-message-item {
  padding: 14px;
}

.app-message-item b {
  color: #1e69cf;
  font-size: 12px;
  white-space: nowrap;
}

.app-mine {
  padding-top: 0;
}

.app-mine-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 -14px;
  padding: 28px 20px 38px;
  background: linear-gradient(180deg, #1e69cf, #4aa4ff);
  color: #fff;
}

.app-avatar-large {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 24px;
  font-weight: 700;
}

.app-mine-hero strong,
.app-mine-hero span {
  display: block;
}

.app-mine-hero strong {
  font-size: 18px;
}

.app-mine-hero span {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.88;
}

.app-cert-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: -22px;
  padding: 14px 0;
  position: relative;
  z-index: 2;
}

.app-cert-row div {
  padding: 0 18px;
}

.app-cert-row div:first-child {
  border-right: 1px solid #e7eef7;
}

.app-cert-row strong,
.app-cert-row span {
  display: block;
}

.app-cert-row strong {
  color: #1f2937;
  font-size: 14px;
}

.app-cert-row span {
  margin-top: 5px;
  color: #16a34a;
  font-size: 12px;
}

.app-mine-list {
  padding: 0;
}

.app-mine-row {
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid #eef2f7;
}

.app-mine-row:last-child {
  border-bottom: 0;
}

.app-mine-row span {
  color: #1f2937;
  font-size: 14px;
}

.app-mine-row b {
  color: #94a3b8;
  font-size: 12px;
}

.app-phone-sub .app-status-bar {
  background: #fff;
  color: #111827;
}

.app-mobile-white,
.app-mobile-gray {
  min-height: 100%;
  padding-bottom: 78px;
}

.app-mobile-white {
  background: #fff;
}

.app-mobile-gray {
  background: #f1f1f1;
}

.app-sub-header {
  height: 58px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.app-sub-header button {
  width: 46px;
  height: 58px;
  background: transparent;
  color: #111827;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}

.app-sub-header strong {
  color: #111827;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.app-sub-header.red-title strong {
  color: #ff3b30;
  font-size: 20px;
}

.app-inspection-list {
  min-height: 100%;
  padding: 0 12px 86px;
  background: #f0f0f0;
  position: relative;
}

.app-inspection-list .app-sub-header {
  margin: 0 -12px;
}

.app-inspection-search {
  height: 40px;
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 0 34px;
  background: #f8f8f8;
  color: #9ca3af;
  font-size: 14px;
  position: relative;
}

.app-inspection-search::before {
  content: '';
  position: absolute;
  left: 15px;
  width: 12px;
  height: 12px;
  border: 1px solid #9ca3af;
  border-radius: 50%;
}

.app-inspection-search::after {
  content: '';
  position: absolute;
  left: 26px;
  width: 7px;
  height: 1px;
  transform: rotate(45deg);
  background: #9ca3af;
}

.app-inspection-counts {
  height: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background: #fff;
  color: #374151;
  font-size: 14px;
  text-align: center;
}

.app-inspection-counts b {
  font-weight: 500;
}

.app-inspection-counts .red {
  color: #ff4d4f;
}

.app-inspection-counts .green {
  color: #16a34a;
}

.app-inspection-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  background: #edf0f4;
  border: 1px solid #edf0f4;
  color: #64748b;
  font-size: 11px;
  text-align: center;
}

.app-inspection-stats span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 2px;
  background: #fff;
  white-space: nowrap;
}

.app-inspection-stats b {
  color: #1f2937;
  font-size: 15px;
  line-height: 1;
}

.app-inspection-stats b.red {
  color: #ef4444;
}

.app-inspection-card {
  margin-top: 10px;
  padding: 14px 16px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
}

.app-inspection-card strong,
.app-inspection-card a,
.app-inspection-card span {
  display: block;
}

.app-inspection-card strong {
  color: #2b2f36;
  font-size: 15px;
  line-height: 1.4;
}

.app-inspection-card a {
  margin-top: 8px;
  color: #466dff;
  font-size: 13px;
  font-weight: 600;
}

.app-inspection-card span {
  margin-top: 5px;
  color: #737b86;
  font-size: 12px;
}

.app-inspection-card-status,
.app-inspection-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.app-inspection-card-status span,
.app-inspection-card-metrics span {
  display: inline-flex;
  width: auto;
  margin-top: 0;
  padding: 3px 7px;
  border-radius: 3px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
}

.app-inspection-card-status span:first-child {
  background: #eff6ff;
  color: #1e69cf;
}

.app-inspection-card-metrics span {
  background: #fff7ed;
  color: #c2410c;
}

.app-inspection-detail .app-empty-note {
  margin: 12px 10px;
  padding: 22px 12px;
  background: #fff;
}

.app-floating-add-wrap {
  position: sticky;
  top: 12px;
  z-index: 12;
  height: 0;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.app-floating-add {
  flex: 0 0 auto;
  margin-right: 8px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #6b9cff;
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  line-height: 58px;
  box-shadow: 0 8px 16px rgba(30, 105, 207, 0.2);
  pointer-events: auto;
}

.app-inspection-list-main .app-floating-add-wrap {
  top: auto;
  bottom: 24px;
  margin-top: -64px;
  padding-right: 8px;
}

.app-inspection-list-main .app-floating-add {
  margin-right: 0;
}

.app-phone-floating-add {
  position: absolute;
  right: 20px;
  bottom: 28px;
  z-index: 18;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #6b9cff;
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  line-height: 58px;
  box-shadow: 0 10px 22px rgba(30, 105, 207, 0.28);
}

.app-form-list {
  background: #fff;
}

.app-form-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 12px;
  border-bottom: 1px solid #edf0f4;
  color: #2f3640;
  font-size: 15px;
}

.app-form-row.tall {
  min-height: 88px;
  align-items: flex-start;
  padding-top: 18px;
}

.app-form-row label,
.app-upload-row label {
  flex: 0 0 auto;
  color: #2f3640;
}

.app-form-row i,
.app-upload-row i,
.app-info-list i {
  color: #ef4444;
  font-style: normal;
}

.app-form-row span {
  color: #9aa3af;
  text-align: right;
  line-height: 1.5;
}

.app-project-strip {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3f3ff;
  color: #2f80ed;
  font-size: 14px;
}

.app-form-section-title {
  margin: 14px 12px 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
}

.app-upload-row {
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 12px;
  padding-top: 18px;
  border-bottom: 1px solid #edf0f4;
  color: #2f3640;
  font-size: 15px;
}

.app-upload-placeholder {
  width: 84px;
  height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f3f5f9;
  color: #6b7280;
}

.app-upload-placeholder b {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.app-upload-placeholder span {
  margin-top: 9px;
  font-size: 12px;
}

.app-upload-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-bottom-action {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  display: grid;
  align-items: center;
  height: 70px;
  border-top: 1px solid #e7ebf0;
  background: #fff;
}

.app-bottom-action.single {
  grid-template-columns: 1fr;
  padding: 0 22px;
  border-top: 0;
  background: transparent;
}

.app-bottom-action.triple {
  left: 0;
  right: 0;
  grid-template-columns: 1fr 1fr 1fr;
}

.app-bottom-action button {
  height: 48px;
  background: #fff;
  color: #4b5563;
  font-size: 16px;
}

.app-bottom-action.single button,
.app-bottom-action.triple button:nth-child(2) {
  border-radius: 4px;
  background: #416df4;
  color: #fff;
}

.app-inspection-title-card {
  margin: 10px;
  padding: 16px;
  background: #fff;
  color: #344054;
  position: relative;
}

.app-inspection-title-card .app-round-blue {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
}

.app-inspection-title-card > div {
  min-height: 38px;
  margin-left: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-inspection-title-card strong {
  color: #172033;
  font-size: 17px;
  line-height: 1.35;
}

.app-inspection-title-card em {
  padding: 3px 8px;
  border-radius: 2px;
  background: #e9fbf1;
  color: #22a866;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.app-inspection-title-card p {
  margin-top: 8px;
  color: #465267;
  font-size: 14px;
}

.app-inspection-title-card p span {
  margin-left: 20px;
}

.app-record-tab {
  width: 104px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  border-radius: 0 18px 18px 0;
  background: #d7e0ff;
  color: #8a96b8;
  font-size: 14px;
}

.app-record-card {
  min-height: 236px;
  margin: 0 10px;
  padding: 34px 16px 18px;
  background: #fff;
  color: #465267;
  font-size: 14px;
  position: relative;
  cursor: pointer;
}

.app-record-card > b {
  position: absolute;
  top: 10px;
  right: 0;
  padding: 5px 8px;
  border-radius: 4px 0 0 4px;
  background: #b9bdcb;
  color: #fff;
  font-size: 12px;
}

.app-record-card p {
  margin-bottom: 8px;
}

.app-record-card p span {
  margin-left: 28px;
}

.app-record-photo {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.app-record-photo div {
  width: 82px;
  height: 82px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(30, 105, 207, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, #d7dce5 0 12%, #2d62aa 12% 26%, #ef4444 26% 36%, #cbd5e1 36% 100%);
}

.app-detail-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 48px;
  background: #fff;
}

.app-detail-tabs button {
  background: #fff;
  color: #374151;
  font-size: 15px;
  position: relative;
}

.app-detail-tabs button.active {
  color: #1677ff;
  font-weight: 700;
}

.app-detail-tabs button.active::after {
  content: '';
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: #1677ff;
}

.app-pending-stamp {
  position: absolute;
  top: 148px;
  right: 24px;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  transform: rotate(-28deg);
  border: 2px solid rgba(96, 165, 250, 0.35);
  border-radius: 50%;
  color: rgba(96, 165, 250, 0.48);
  font-size: 20px;
  font-weight: 700;
}

.app-info-list {
  margin: 0 12px;
  background: #fff;
}

.app-info-list p {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f4;
  color: #374151;
  font-size: 15px;
}

.app-info-list.compact p {
  min-height: 56px;
}

.app-info-list b {
  color: #374151;
  font-weight: 400;
  text-align: right;
}

.app-flow-list {
  background: #f0f2f5;
}

.app-flow-item {
  padding: 16px 18px;
  border-bottom: 8px solid #f0f2f5;
  background: #fff;
  color: #8a93a3;
  font-size: 15px;
}

.app-flow-item p {
  margin-bottom: 12px;
}

.app-flow-item i {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin: 0 8px;
  border-radius: 50%;
  background: #9bd99f;
}

.app-danger-standby-list {
  min-height: 100%;
  padding: 0 12px 86px;
  background: #f3f3f3;
  position: relative;
}

.app-danger-standby-list .app-sub-header {
  margin: 0 -12px;
}

.app-danger-standby-list .app-floating-add-wrap {
  position: absolute;
  top: auto;
  right: 20px;
  bottom: 38px;
}

.app-danger-standby-list .app-floating-add {
  width: 70px;
  height: 70px;
  margin-right: 0;
  font-size: 54px;
  line-height: 62px;
  background: #5f95f5;
}

.app-danger-standby-empty {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 16px;
}

.app-danger-empty-art {
  width: 168px;
  height: 138px;
  position: relative;
  opacity: 0.55;
}

.app-danger-empty-art::before {
  content: '';
  position: absolute;
  left: 32px;
  right: 18px;
  bottom: 16px;
  height: 60px;
  border-radius: 50%;
  background: #edf0f3;
}

.app-danger-empty-art i {
  position: absolute;
  left: 52px;
  bottom: 26px;
  width: 72px;
  height: 58px;
  display: block;
  background: linear-gradient(135deg, #e4e8ee 0 50%, #cdd4dc 50%);
  clip-path: polygon(50% 0, 100% 25%, 100% 78%, 50% 100%, 0 78%, 0 25%);
}

.app-danger-empty-art b {
  position: absolute;
  left: 70px;
  top: 16px;
  width: 56px;
  height: 54px;
  display: block;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #dfe5ec, #cfd7e0);
}

.app-danger-empty-art b::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 15px;
  width: 30px;
  height: 4px;
  border-radius: 2px;
  background: #f8fafc;
  box-shadow: 0 13px 0 #f8fafc;
}

.app-danger-empty-art span {
  position: absolute;
  left: 42px;
  top: 56px;
  width: 90px;
  height: 28px;
  display: block;
  border-radius: 4px 4px 16px 16px;
  background: #d5dce5;
  transform: skewX(-14deg);
}

.app-danger-picker-mask {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.58);
}

.app-danger-flow-sheet {
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: 0;
  z-index: 21;
  min-height: 270px;
  background: #fff;
  color: #2f3640;
}

.app-danger-flow-sheet-head {
  height: 58px;
  display: grid;
  grid-template-columns: 82px 1fr 82px;
  align-items: center;
  border-bottom: 1px solid #edf0f4;
  font-size: 19px;
}

.app-danger-flow-sheet-head strong {
  font-weight: 400;
  text-align: center;
}

.app-danger-flow-sheet-head button {
  height: 58px;
  background: transparent;
  color: #1677ff;
  font-size: 18px;
}

.app-danger-flow-sheet-head button:first-child {
  color: #606773;
}

.app-danger-flow-option {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #edf0f4;
  color: #2f3640;
  font-size: 20px;
  text-align: center;
}

.app-danger-flow-option.muted {
  margin-top: 86px;
  color: #c5c9d0;
  font-size: 18px;
}

.app-danger-flow-option.active {
  font-size: 21px;
}

.app-danger-standby-breadcrumb {
  grid-template-columns: 34px 1fr 0;
}

.app-danger-standby-breadcrumb strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-size: 16px;
}

.app-danger-form-list .app-form-row label {
  max-width: 118px;
  line-height: 1.8;
}

.app-danger-form-list .app-form-row span,
.app-danger-standby-detail .app-info-list b {
  max-width: 190px;
}

.app-danger-upload-row {
  min-height: 112px;
}

.app-danger-standby-cards {
  padding-top: 2px;
}

.app-danger-standby-card {
  padding: 18px 16px;
}

.app-danger-standby-card strong {
  color: #172554;
  font-size: 18px;
  font-weight: 700;
}

.app-danger-standby-card span {
  margin-top: 5px;
  color: #7b818a;
  font-size: 15px;
  line-height: 1.45;
}

.app-standard-page {
  min-height: 100%;
  padding-bottom: 18px;
}

.app-standard-detail-page {
  padding-bottom: 0;
}

.app-standard-search {
  height: 38px;
  display: flex;
  align-items: center;
  margin: 12px;
  padding: 0 14px 0 34px;
  border-radius: 19px;
  background: #fff;
  color: #94a3b8;
  font-size: 12px;
  position: relative;
}

.app-standard-search::before {
  content: '';
  position: absolute;
  left: 14px;
  width: 12px;
  height: 12px;
  border: 1px solid #94a3b8;
  border-radius: 50%;
}

.app-standard-search::after {
  content: '';
  position: absolute;
  left: 25px;
  width: 7px;
  height: 1px;
  transform: rotate(45deg);
  background: #94a3b8;
}

.app-standard-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px 8px;
}

.app-standard-chips::-webkit-scrollbar {
  height: 0;
}

.app-standard-chips span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 14px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.app-standard-chips span.active {
  background: #e8f2ff;
  color: #1e69cf;
  font-weight: 600;
}

.app-standard-list {
  display: grid;
  gap: 10px;
  padding: 0 12px;
}

.app-standard-card {
  padding: 14px;
  border: 1px solid #e7eef7;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.app-standard-card div,
.app-standard-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.app-standard-card strong {
  flex: 1;
  min-width: 0;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.45;
}

.app-standard-card em,
.app-standard-detail-head span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 4px;
  background: #eef6ff;
  color: #1e69cf;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.app-standard-card p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

.app-standard-card p b {
  color: #334155;
  font-weight: 500;
  text-align: right;
}

.app-standard-empty {
  padding: 34px 0;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

.app-standard-detail-head {
  margin: 12px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e69cf, #4aa4ff);
  color: #fff;
}

.app-standard-detail-head strong {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  line-height: 1.45;
}

.app-standard-detail-head span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.app-standard-info p {
  min-height: 48px;
}

.app-standard-detail-header {
  grid-template-columns: 42px minmax(0, 1fr) 76px;
}

.app-standard-detail-header strong {
  overflow: hidden;
  padding: 0 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-standard-detail-header span {
  display: flex;
  justify-content: flex-end;
  padding-right: 8px;
}

.app-standard-detail-header .app-standard-header-action {
  width: auto;
  min-width: 62px;
  height: 30px;
  padding: 0 8px;
  border-radius: 15px;
  background: #eef6ff;
  color: #1677ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 30px;
}

.app-standard-info-panel {
  min-height: calc(100% - 58px);
  padding: 12px 0 18px;
  background: #f3f6fa;
}

.app-standard-info-name {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px 10px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
}

.app-standard-info-name strong {
  flex: 1;
  min-width: 0;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.45;
}

.app-standard-info-name span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 4px;
  background: #eef6ff;
  color: #1e69cf;
  font-size: 11px;
  white-space: nowrap;
}

.app-standard-summary,
.app-standard-preview {
  margin: 12px;
  padding: 14px;
  border: 1px solid #e7eef7;
  border-radius: 8px;
  background: #fff;
}

.app-standard-summary h3,
.app-standard-preview-title {
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
}

.app-standard-summary p {
  margin-top: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}

.app-standard-preview-paper {
  height: 160px;
  display: grid;
  align-content: start;
  gap: 10px;
  margin-top: 12px;
  padding: 22px 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fbff, #eef4fb);
  box-shadow: inset 0 0 0 1px #e3eaf3;
}

.app-standard-preview.is-primary {
  margin-top: 12px;
}

.app-standard-preview.is-expanded {
  min-height: calc(100% - 58px);
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 14px 12px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.app-standard-preview-paper.is-document {
  height: 360px;
  gap: 9px;
  align-content: start;
}

.app-standard-preview-paper.is-document.is-full {
  flex: 1;
  min-height: 548px;
  height: auto;
  margin-top: 12px;
  padding: 22px 18px;
}

.app-standard-preview-paper h4 {
  margin: 0 0 4px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.45;
}

.app-standard-preview-paper p {
  margin: 0 0 8px;
  color: #475569;
  font-size: 12px;
  line-height: 1.65;
}

.app-standard-preview-paper i {
  height: 10px;
  border-radius: 8px;
  background: #cbd8e8;
}

.app-standard-preview-paper i:nth-child(1) {
  width: 62%;
  height: 16px;
  background: #94a8c4;
}

.app-standard-preview-paper i:nth-child(2) {
  width: 88%;
}

.app-standard-preview-paper i:nth-child(3) {
  width: 74%;
}

.app-standard-preview-paper i:nth-child(4) {
  width: 92%;
}

.app-standard-preview-paper i:nth-child(5) {
  width: 58%;
}

.app-standard-preview-paper i:nth-child(6) {
  width: 90%;
}

.app-standard-preview-paper i:nth-child(7) {
  width: 82%;
}

.app-standard-preview-paper i:nth-child(8) {
  width: 94%;
}

.app-standard-preview-paper i:nth-child(9) {
  width: 70%;
}

@media (max-width: 900px) {
  .app-prototype-shell {
    align-items: center;
    flex-direction: column;
  }

  .app-prototype-side {
    width: min(100%, 390px);
  }

  .app-phone {
    width: min(100%, 390px);
  }

  .attendance-batch-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ledger-inline-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ledger-inline-actions {
    justify-content: flex-start;
  }

  .drill-attachment-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .drill-form-tip {
    margin-left: 0;
  }
}

.special-inspection-detail-table .special-inspection-col-result {
  position: relative;
  white-space: nowrap;
}

.special-inspection-result-tip {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid #93c5fd;
  border-radius: 50%;
  background: #eef6ff;
  color: #1e69cf;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  vertical-align: middle;
  cursor: pointer;
}

.special-inspection-result-tip:hover,
.special-inspection-result-tip[aria-expanded="true"] {
  background: #dbeafe;
}

.special-inspection-result-help {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 20;
  width: 320px;
  transform: translateX(-50%);
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.18);
  color: #475569;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  white-space: normal;
}

.special-inspection-result-help[hidden] {
  display: none;
}

.special-inspection-result-help strong,
.special-inspection-result-help span {
  display: block;
}

.special-inspection-result-help strong {
  margin-bottom: 4px;
  color: #1e3a8a;
}

/* ---------- 集团建设调度 / 项目月度投资计划 ---------- */
.group-scheduling-page {
  min-width: 0;
}

.group-scheduling-filter-card {
  margin-bottom: 12px;
}

.group-scheduling-filter-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  padding: 16px 20px;
}

.group-scheduling-filter-grid .form-item {
  min-width: 220px;
}

.group-scheduling-filter-grid .form-item:nth-child(3) {
  min-width: 250px;
}

.group-scheduling-filter-grid .search-actions {
  margin-left: auto;
}

.group-scheduling-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.group-scheduling-metrics,
.group-scheduling-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-scheduling-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.group-scheduling-metric strong {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.group-scheduling-metric em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}

.group-scheduling-table-card {
  overflow: hidden;
}

.group-scheduling-table-scroll {
  overflow-x: auto;
}

.group-scheduling-investment-table {
  min-width: 1320px;
  table-layout: fixed;
}

.group-scheduling-investment-table th,
.group-scheduling-investment-table td {
  padding: 9px 8px;
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
}

.group-scheduling-investment-table thead th {
  background: #f5f8fc;
  color: #475569;
  font-weight: 600;
}

.group-scheduling-investment-table .group-scheduling-month-head {
  min-width: 92px;
  border-left: 1px solid #dbe3ee;
}

.group-scheduling-investment-table .group-scheduling-plan-head {
  min-width: 58px;
  color: #2563eb;
}

.group-scheduling-year-col {
  width: 90px;
}

.group-scheduling-total-col {
  width: 120px;
}

.group-scheduling-status-col {
  width: 92px;
}

.group-scheduling-action-col {
  width: 92px;
}

.group-scheduling-plan-cell {
  color: #2563eb;
}

.group-scheduling-no-data {
  color: var(--text-muted);
}

.group-scheduling-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.4;
}

.group-scheduling-status.draft {
  background: #f1f5f9;
  color: #64748b;
}

.group-scheduling-status.pending {
  background: #fff7ed;
  color: #c2410c;
}

.group-scheduling-status.approved {
  background: #ecfdf3;
  color: #15803d;
}

.group-scheduling-status.rejected {
  background: #fef2f2;
  color: #b91c1c;
}

.group-scheduling-empty {
  height: 180px;
  color: var(--text-muted);
  text-align: center !important;
}

.group-scheduling-table-note {
  padding: 10px 16px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
}

.group-scheduling-form-page,
.group-scheduling-detail-page {
  padding-bottom: 24px;
}

.group-scheduling-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.group-scheduling-form-actions > div {
  display: flex;
  gap: 8px;
}

.group-scheduling-form-card {
  margin-bottom: 12px;
  padding: 18px 20px;
}

.group-scheduling-section-title {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.group-scheduling-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px 24px;
}

.group-scheduling-form-grid .form-item label,
.group-scheduling-form-single label {
  min-width: 112px;
}

.group-scheduling-form-grid label span {
  margin-left: 3px;
  color: #dc2626;
}

.group-scheduling-form-wide {
  grid-column: 1 / -1;
}

.group-scheduling-form-wide .form-input {
  flex: 1;
}

.group-scheduling-month-form {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.group-scheduling-month-form-head,
.group-scheduling-month-form-row,
.group-scheduling-month-form-total {
  display: grid;
  grid-template-columns: 100px minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
}

.group-scheduling-month-form-head {
  background: #f5f8fc;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.group-scheduling-month-form-row {
  border-top: 1px solid var(--border-color);
}

.group-scheduling-month-form-row strong {
  color: var(--text-primary);
  font-size: 13px;
}

.group-scheduling-month-form-row .form-input {
  width: 100%;
  min-width: 0;
}

.group-scheduling-month-form-total {
  justify-content: end;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-secondary);
}

.group-scheduling-month-form-total strong {
  color: #1d4ed8;
  font-size: 16px;
}

.group-scheduling-month-form-total em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
}

.group-scheduling-form-single {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
}

.group-scheduling-form-single label {
  padding-top: 7px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.group-scheduling-form-single .form-textarea {
  flex: 1;
  min-height: 72px;
}

.group-scheduling-attachment-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  color: var(--text-secondary);
  font-size: 13px;
}

.group-scheduling-attachment-box strong {
  color: var(--text-primary);
}

.group-scheduling-placeholder {
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-muted);
}

.group-scheduling-placeholder-icon {
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 36px;
}

.group-scheduling-placeholder h2 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.group-scheduling-placeholder p {
  margin: 0;
  font-size: 13px;
}

.group-scheduling-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.group-scheduling-detail-grid > div,
.group-scheduling-detail-months > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.group-scheduling-detail-grid span,
.group-scheduling-detail-months span,
.group-scheduling-detail-note > span {
  color: var(--text-muted);
  font-size: 12px;
}

.group-scheduling-detail-grid strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.group-scheduling-detail-months {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px 18px;
  padding: 18px 0;
}

.group-scheduling-detail-months strong {
  color: #2563eb;
  font-size: 13px;
}

.group-scheduling-detail-months small {
  color: #16a34a;
  font-size: 11px;
}

.group-scheduling-detail-note {
  display: flex;
  gap: 14px;
  padding-top: 14px;
}

.group-scheduling-detail-note > span {
  width: 56px;
  flex-shrink: 0;
}

.group-scheduling-detail-note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .group-scheduling-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .group-scheduling-form-grid,
  .group-scheduling-detail-grid,
  .group-scheduling-detail-months {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .group-scheduling-filter-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .group-scheduling-filter-grid .form-item,
  .group-scheduling-filter-grid .form-item:nth-child(3) {
    width: 100%;
    min-width: 0;
  }

  .group-scheduling-filter-grid .search-actions {
    margin-left: 0;
  }

  .group-scheduling-metrics {
    width: 100%;
    overflow-x: auto;
  }

  .group-scheduling-metric {
    flex-shrink: 0;
  }

  .group-scheduling-toolbar-actions {
    width: 100%;
  }

  .group-scheduling-toolbar-actions .btn {
    flex: 1;
  }

  .group-scheduling-month-form-head,
  .group-scheduling-month-form-row,
  .group-scheduling-month-form-total {
    grid-template-columns: 60px minmax(150px, 1fr);
  }

  .group-scheduling-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .group-scheduling-form-actions > div {
    width: 100%;
  }

  .group-scheduling-form-actions > div .btn {
    flex: 1;
  }

  .group-scheduling-form-single {
    flex-direction: column;
    gap: 6px;
  }
}

/* ---------- 集团建设调度 UI 规范适配 ---------- */
.group-scheduling-page-header {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 12px;
}

.group-scheduling-page-header h1 {
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
  line-height: 1.5;
}

.group-scheduling-filter-card,
.group-scheduling-table-card,
.group-scheduling-form-card {
  border: 1px solid #eef1f5;
  box-shadow: var(--shadow-sm);
}

.group-scheduling-filter-grid {
  min-height: 64px;
  padding: 16px 20px;
}

.group-scheduling-filter-grid .form-item {
  min-width: 240px;
}

.group-scheduling-filter-grid .form-item label {
  min-width: 56px;
  color: var(--text-secondary);
}

.group-scheduling-list-toolbar {
  min-height: 48px;
  margin-bottom: 12px;
}

.group-scheduling-metric {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 2px;
}

.group-scheduling-investment-table th {
  height: 42px;
  padding: 8px;
  background: #f7f8fa;
  border-bottom-color: #e5e7eb;
  color: #4b5563;
  line-height: 1.45;
}

.group-scheduling-investment-table td {
  height: 42px;
  padding: 8px;
  color: var(--text-primary);
  border-bottom-color: #f0f0f0;
}

.group-scheduling-investment-table tbody tr:hover {
  background: #f5f9ff;
}

.group-scheduling-plan-cell,
.group-scheduling-total-col strong {
  color: var(--primary-color);
  font-variant-numeric: tabular-nums;
}

.group-scheduling-table-note {
  min-height: 36px;
  padding: 9px 16px;
  background: #fafbfc;
}

.group-scheduling-form-page,
.group-scheduling-detail-page {
  min-height: calc(100vh - 138px);
}

.group-scheduling-form-card {
  margin-bottom: 12px;
  padding: 20px 24px;
}

.group-scheduling-section-title {
  position: relative;
  margin-bottom: 20px;
  padding-left: 10px;
  font-size: var(--font-size-lg);
  line-height: 24px;
}

.group-scheduling-section-title::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 3px;
  height: 18px;
  background: var(--primary-color);
  content: '';
}

.group-scheduling-form-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px 56px;
}

.group-scheduling-form-grid .form-item label,
.group-scheduling-form-single label {
  min-width: 112px;
}

.group-scheduling-month-form {
  border-color: #e6eaf0;
  border-radius: 2px;
}

.group-scheduling-month-form-head,
.group-scheduling-month-form-row,
.group-scheduling-month-form-total {
  min-height: 40px;
}

.group-scheduling-month-form-head {
  background: #f7f8fa;
}

.group-scheduling-month-form-row .form-input {
  height: 32px;
}

.group-scheduling-month-form-total {
  min-height: 44px;
  background: #fafbfc;
}

.group-scheduling-attachment-box {
  min-height: 32px;
  padding: 8px 10px;
  border: 1px dashed #d9e2ef;
  border-radius: 2px;
  background: #fafcff;
}

.group-scheduling-detail-summary {
  padding-bottom: 24px;
}

.group-scheduling-detail-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px 56px;
}

.group-scheduling-detail-grid > div {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  min-height: 32px;
}

.group-scheduling-detail-grid span,
.group-scheduling-detail-note > span {
  flex: 0 0 84px;
  padding-top: 6px;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.group-scheduling-detail-grid strong {
  flex: 1;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  background: #f7f9fc;
  font-weight: 400;
  line-height: 18px;
}

.group-scheduling-detail-months {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 0;
  margin-top: 20px;
  padding: 0;
  border: 1px solid var(--border-color);
}

.group-scheduling-detail-months > div {
  min-height: 52px;
  justify-content: center;
  padding: 8px 12px;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.group-scheduling-detail-months > div:nth-child(4n) {
  border-right: 0;
}

.group-scheduling-detail-months > div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.group-scheduling-detail-months span {
  color: var(--text-secondary);
}

.group-scheduling-detail-months strong {
  color: var(--primary-color);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .group-scheduling-form-grid,
  .group-scheduling-detail-grid {
    grid-template-columns: 1fr;
  }

  .group-scheduling-detail-months {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .group-scheduling-detail-months > div:nth-child(4n) {
    border-right: 1px solid var(--border-color);
  }

  .group-scheduling-detail-months > div:nth-child(3n) {
    border-right: 0;
  }

  .group-scheduling-detail-months > div:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--border-color);
  }

  .group-scheduling-detail-months > div:nth-last-child(-n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .group-scheduling-page-header {
    min-height: 32px;
  }

  .group-scheduling-filter-grid {
    padding: 12px 16px;
  }

  .group-scheduling-form-card {
    padding: 16px;
  }

  .group-scheduling-detail-months {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .group-scheduling-detail-months > div:nth-child(3n) {
    border-right: 1px solid var(--border-color);
  }

  .group-scheduling-detail-months > div:nth-child(2n) {
    border-right: 0;
  }

  .group-scheduling-detail-months > div:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--border-color);
  }

  .group-scheduling-detail-months > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

/* ---------- 集团建设调度截图标注适配 ---------- */
.group-scheduling-investment-shell {
  overflow: hidden;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.group-scheduling-investment-shell .group-scheduling-filter-card,
.group-scheduling-investment-shell .group-scheduling-table-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.group-scheduling-investment-shell .group-scheduling-filter-card {
  border-bottom: 1px solid #e7ebf0;
}

.group-scheduling-investment-shell .group-scheduling-list-toolbar {
  min-height: 64px;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #e7ebf0;
}

.group-scheduling-investment-shell .group-scheduling-list-toolbar .group-scheduling-toolbar-actions {
  margin-left: auto;
  justify-content: flex-end;
}

.group-scheduling-investment-shell .group-scheduling-table-card {
  border-bottom: 0;
}

.group-scheduling-investment-table thead th {
  background: #edf4fb;
  border-color: #d9e4ef;
  color: #24415f;
}

.group-scheduling-investment-table .table-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 2px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--primary-color);
  font-size: 13px;
  line-height: 24px;
  white-space: nowrap;
}

.group-scheduling-investment-table .table-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.group-scheduling-table-note {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #7b8794;
}

.group-scheduling-table-note strong {
  color: #5b6876;
  font-weight: 600;
}

.group-scheduling-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 56px;
  padding: 10px 16px;
  border-top: 1px solid #e7ebf0;
  color: var(--text-secondary);
  font-size: 13px;
}

.group-scheduling-pagination-total {
  margin-right: 4px;
}

.group-scheduling-pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d9dfe7;
  border-radius: 4px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
}

.group-scheduling-pagination-button:hover:not(:disabled),
.group-scheduling-pagination-button.is-active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}

.group-scheduling-pagination-button:disabled {
  color: #c5cbd3;
  background: #fafafa;
  cursor: not-allowed;
}

.group-scheduling-pagination-size {
  height: 32px;
  min-width: 96px;
  padding: 4px 28px 4px 10px;
  border: 1px solid #d9dfe7;
  border-radius: 4px;
  background-color: #fff;
  color: var(--text-secondary);
  font-size: 13px;
}

@media (max-width: 640px) {
  .group-scheduling-investment-shell .group-scheduling-list-toolbar {
    padding: 10px 12px;
  }

  .group-scheduling-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 12px;
  }
}

/* ---------- 月度投资计划最新交互约定 ---------- */
.group-scheduling-investment-page {
  min-height: calc(100vh - 138px);
}

.group-scheduling-investment-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 138px);
}

.group-scheduling-note-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #93c5fd;
  border-radius: 50%;
  background: #eef6ff;
  color: #1e69cf;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  cursor: help;
}

.group-scheduling-note-tip:hover,
.group-scheduling-note-tip:focus-visible {
  background: #dbeafe;
  outline: 2px solid rgba(30, 105, 207, .18);
  outline-offset: 1px;
}

.group-scheduling-scope-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 32px;
  color: var(--text-secondary);
  font-size: 13px;
}

.group-scheduling-scope-context strong {
  color: var(--text-primary);
  font-weight: 500;
}

.group-scheduling-table-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.group-scheduling-table-scroll {
  flex: 1;
  min-height: 220px;
  max-height: calc(100vh - 370px);
  overflow: auto;
}

.group-scheduling-investment-table {
  min-width: 1780px;
}

.group-scheduling-investment-table .group-scheduling-company-col {
  width: 120px;
}

.group-scheduling-investment-table .group-scheduling-project-col {
  width: 220px;
  text-align: left;
}

.group-scheduling-investment-table .group-scheduling-creator-col {
  width: 80px;
}

.group-scheduling-investment-table .group-scheduling-created-col {
  width: 156px;
}

.group-scheduling-investment-table thead th {
  background: #f5f7fa;
  color: #333;
  border-color: #e2e8f0;
  font-weight: 600;
}

.group-scheduling-investment-table td {
  color: #333;
}

.group-scheduling-readonly {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #f7f8fa;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 30px;
  overflow-wrap: anywhere;
}

.group-scheduling-form-page .drill-card {
  margin-bottom: 12px;
}

.group-scheduling-form-page .drill-card:last-child {
  margin-bottom: 0;
}

.group-scheduling-detail-grid .is-full {
  grid-column: 1 / -1;
}

.group-scheduling-export-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-scheduling-export-card {
  margin-bottom: 0;
}

.group-scheduling-export-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 24px;
}

.group-scheduling-export-summary > div {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #f7f8fa;
}

.group-scheduling-export-summary span {
  flex: 0 0 auto;
  margin-right: 12px;
  color: var(--text-secondary);
  font-size: 13px;
}

.group-scheduling-export-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}

.group-scheduling-export-table-scroll {
  max-height: calc(100vh - 350px);
  overflow: auto;
  border: 1px solid #e2e8f0;
}

.group-scheduling-export-table {
  min-width: 1760px;
}

.group-scheduling-export-table th,
.group-scheduling-export-table td {
  white-space: nowrap;
}

.group-scheduling-export-hint {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
}

/* ---------- 工程建设重要节点 ---------- */
.construction-milestone-page {
  min-height: calc(100vh - 138px);
}

.construction-milestone-shell {
  display: flex;
  min-height: calc(100vh - 138px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.construction-milestone-filter-card,
.construction-milestone-toolbar,
.construction-milestone-table-card {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e7ebf0;
  border-radius: 0;
  box-shadow: none;
}

.construction-milestone-filter-card {
  padding: 14px 20px;
}

.construction-milestone-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  align-items: end;
  gap: 12px 16px;
}

.construction-milestone-filter-grid .form-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.construction-milestone-filter-grid .form-item label {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

.construction-milestone-filter-grid .search-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  white-space: nowrap;
}

.construction-milestone-toolbar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.construction-milestone-toolbar-caption {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.construction-milestone-toolbar-actions {
  display: flex;
  margin-left: auto;
  gap: 8px;
}

.construction-milestone-table-card {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  border-bottom: 0;
}

.construction-milestone-table-scroll {
  min-height: 220px;
  flex: 1;
  overflow: auto;
}

.construction-milestone-table {
  min-width: 1280px;
}

.construction-milestone-table thead th {
  background: #f5f7fa;
  border-color: #e2e8f0;
  color: #333;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.construction-milestone-table td {
  color: #333;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.construction-milestone-table .construction-milestone-company-cell,
.construction-milestone-table .construction-milestone-project-cell {
  max-width: 240px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
}

.construction-milestone-delayed-cell {
  color: #d4380d !important;
}

.construction-milestone-table .table-link {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin: 0 2px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--primary-color);
  font-size: 13px;
}

.construction-milestone-table .table-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.construction-milestone-empty {
  height: 180px;
  color: var(--text-secondary) !important;
  text-align: center !important;
}

.construction-milestone-pagination {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #e7ebf0;
  color: var(--text-secondary);
  font-size: 13px;
}

.construction-milestone-pagination button {
  width: 32px;
  height: 32px;
  border: 1px solid #d9dfe7;
  border-radius: 4px;
  background: #fff;
  color: var(--text-secondary);
}

.construction-milestone-pagination button.is-active,
.construction-milestone-pagination button:hover:not(:disabled) {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}

.construction-milestone-pagination button:disabled {
  color: #c5cbd3;
  background: #fafafa;
  cursor: not-allowed;
}

.construction-milestone-pagination select {
  height: 32px;
  min-width: 96px;
  padding: 4px 10px;
  border: 1px solid #d9dfe7;
  border-radius: 4px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 13px;
}

.construction-milestone-drill-page {
  min-height: calc(100vh - 138px);
}

.construction-milestone-drill-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 12px;
}

.construction-milestone-drill-main {
  min-width: 0;
}

.construction-milestone-card {
  margin-bottom: 12px;
}

.construction-milestone-card:last-child {
  margin-bottom: 0;
}

.construction-milestone-form-grid {
  gap: 16px 48px;
}

.construction-milestone-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 48px;
}

.construction-milestone-detail-grid > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.construction-milestone-detail-grid span {
  flex: 0 0 72px;
  color: var(--text-secondary);
  font-size: 13px;
}

.construction-milestone-detail-grid strong {
  min-width: 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.construction-milestone-readonly {
  display: flex;
  min-height: 32px;
  flex: 1;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #f7f8fa;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 30px;
  overflow-wrap: anywhere;
}

.construction-milestone-form-tip {
  margin: -8px 0 14px;
  color: var(--text-secondary);
  font-size: 12px;
}

.construction-milestone-entry-table,
.construction-milestone-detail-table {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #e2e8f0;
}

.construction-milestone-entry-head,
.construction-milestone-entry-row,
.construction-milestone-detail-row {
  display: grid;
  grid-template-columns: 56px minmax(180px, 220px) minmax(260px, 1fr) repeat(4, 140px) 100px 90px 152px;
  align-items: center;
  min-height: 44px;
}

.construction-milestone-detail-head {
  display: grid;
  grid-template-columns: 56px minmax(180px, 220px) minmax(260px, 1fr) repeat(4, 140px) 100px 90px;
  align-items: center;
  min-height: 40px;
  background: #f5f7fa;
  color: #333;
  font-size: 13px;
  font-weight: 600;
}

.construction-milestone-entry-head {
  min-height: 40px;
  background: #f5f7fa;
  color: #333;
  font-size: 13px;
  font-weight: 600;
}

.construction-milestone-entry-head span,
.construction-milestone-detail-head span,
.construction-milestone-entry-row > *,
.construction-milestone-detail-row > * {
  min-width: 0;
  padding: 6px 10px;
}

.construction-milestone-required-mark {
  margin-left: 2px;
  color: #cf1322;
}

.construction-milestone-entry-head span:first-child,
.construction-milestone-detail-head span:first-child,
.construction-milestone-entry-row strong,
.construction-milestone-detail-row strong {
  text-align: center;
}

.construction-milestone-entry-head span:last-child,
.construction-milestone-detail-head span:last-child,
.construction-milestone-detail-row > span:last-child {
  text-align: center;
}

.construction-milestone-entry-row,
.construction-milestone-detail-row {
  border-top: 1px solid #e8edf2;
}

.construction-milestone-entry-row .form-input,
.construction-milestone-entry-row .form-select {
  width: 100%;
}

.construction-milestone-entry-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px !important;
}

.construction-milestone-entry-actions button {
  min-width: 30px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.construction-milestone-entry-actions button:hover:not(:disabled) {
  text-decoration: underline;
}

.construction-milestone-entry-actions button:disabled {
  color: #c5cbd3;
  cursor: not-allowed;
}

.construction-milestone-content-input {
  min-height: 56px;
  resize: vertical;
}

.construction-milestone-month-group .construction-milestone-entry-row:first-child {
  border-top: 0;
}

.construction-milestone-add-node {
  display: block;
  width: 100%;
  min-height: 30px;
  padding: 4px 12px;
  border: 0;
  border-top: 1px dashed #e2e8f0;
  background: #fff;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 12px;
  text-align: right;
}

.construction-milestone-add-node:hover {
  background: #f7fbff;
  color: var(--primary-hover);
}

.construction-milestone-remove-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 12px;
}

.construction-milestone-remove-node:hover {
  color: #cf1322;
  text-decoration: underline;
}

.construction-milestone-detail-table .construction-milestone-detail-row {
  grid-template-columns: 56px minmax(180px, 220px) minmax(260px, 1fr) repeat(4, 140px) 100px 90px;
}

.construction-milestone-detail-empty {
  grid-column: 1 / -1;
  color: var(--text-secondary);
  text-align: center;
}

.construction-milestone-month-group {
  border-top: 1px solid #e8edf2;
}

.construction-milestone-month-header {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #f8fafc;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.construction-milestone-month-header .construction-milestone-month-count {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.construction-milestone-month-title {
  margin-right: auto;
}

.construction-milestone-month-count {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.construction-milestone-month-entries {
  background: #fff;
}

.construction-milestone-detail-row > span:nth-child(2) {
  overflow-wrap: anywhere;
}

.construction-milestone-content-cell {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.construction-milestone-detail-row .construction-milestone-status {
  justify-self: center;
}

.construction-milestone-status {
  display: inline-flex;
  width: fit-content;
  min-width: 64px;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 12px;
}

.construction-milestone-status-completed {
  background: #f0f9eb;
  color: #389e0d;
}

.construction-milestone-status-in-progress {
  background: #e6f4ff;
  color: #1677ff;
}

.construction-milestone-status-delayed {
  background: #fff1f0;
  color: #cf1322;
}

.construction-milestone-status-not-started {
  background: #f5f5f5;
  color: #8c8c8c;
}

.construction-milestone-history-panel {
  position: sticky;
  top: 12px;
  min-width: 0;
}

.construction-milestone-history-empty {
  min-height: 100px;
  padding: 28px 0;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.construction-milestone-history-list {
  position: relative;
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.construction-milestone-history-list::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: #d9e2ec;
  content: '';
}

.construction-milestone-history-list li {
  position: relative;
  padding: 0 0 18px 12px;
}

.construction-milestone-history-list li:last-child {
  padding-bottom: 0;
}

.construction-milestone-history-dot {
  position: absolute;
  top: 4px;
  left: -17px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.construction-milestone-history-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.construction-milestone-history-meta strong {
  color: var(--text-primary);
  font-size: 13px;
}

.construction-milestone-history-meta time {
  color: var(--text-secondary);
  font-size: 12px;
}

.construction-milestone-history-change {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #edf0f3;
  border-radius: 2px;
  background: #fafbfc;
}

.construction-milestone-history-change span {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
}

.construction-milestone-history-change small {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.construction-milestone-export-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.construction-milestone-export-summary > div {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid #edf0f3;
  background: #fafbfc;
}

.construction-milestone-export-summary span {
  color: var(--text-secondary);
  font-size: 12px;
}

.construction-milestone-export-summary strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.construction-milestone-export-table-scroll {
  max-height: calc(100vh - 360px);
  overflow: auto;
}

.construction-milestone-export-table {
  min-width: 1280px;
}

.construction-milestone-export-hint {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
}

@media (max-width: 768px) {
  .group-scheduling-investment-shell {
    min-height: calc(100vh - 120px);
  }

  .group-scheduling-table-scroll {
    max-height: calc(100vh - 410px);
  }

  .group-scheduling-export-summary {
    grid-template-columns: 1fr;
  }

  .group-scheduling-export-table-scroll {
    max-height: calc(100vh - 380px);
  }

  .construction-milestone-filter-grid {
    grid-template-columns: 1fr;
  }

  .construction-milestone-filter-grid .search-actions {
    justify-content: flex-start;
  }

  .construction-milestone-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .construction-milestone-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 12px;
  }

  .construction-milestone-drill-layout {
    grid-template-columns: 1fr;
  }

  .construction-milestone-history-panel {
    position: static;
  }

  .construction-milestone-entry-head,
  .construction-milestone-entry-row,
  .construction-milestone-detail-row {
    grid-template-columns: 48px minmax(180px, 210px) minmax(240px, 1fr) repeat(4, 128px) 96px 84px 136px;
  }

  .construction-milestone-detail-head,
  .construction-milestone-detail-table .construction-milestone-detail-row {
    grid-template-columns: 48px minmax(180px, 210px) minmax(240px, 1fr) repeat(4, 128px) 96px 84px;
  }

  .construction-milestone-filter-grid .form-item {
    align-items: center;
  }

  .construction-milestone-export-summary {
    grid-template-columns: 1fr;
  }

  .construction-milestone-export-table-scroll {
    max-height: calc(100vh - 420px);
  }
}
