* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --module-hint-font-size: 12px;
  --module-hint-color: #999;
  --module-hint-line-height: 1.6;
  --primary: #1e67d3;
  --primary-light: #eaf2fe;
  --bg: #f4f6f9;
  --card: #ffffff;
  --border: #e2e6ec;
  --text: #1f2733;
  --text-2: #5b6673;
  --text-3: #8b95a3;
  --red: #c62828;
  --orange: #e07b1a;
  --green: #52c41a;
  --radius: 6px;
  --hover: #f1f5fa;
  --primary-soft: #eaf2fe;
  --module-host-padding: 16px;
  --module-page-padding: 6px;
  --module-table-row-height: 32px;
  --module-action-height: 30px;
  --module-field-label-font-size: 12px;
  --module-table-action-height: 21px;
  --card-aspect-ratio: 2.1 / 1;
}
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.6;
}
/* ---------- 整体布局：左侧导航 + 右侧主区 ---------- */
.layout {
  display: flex; height: 100vh; overflow: hidden;
  background: var(--bg);
}
.sidebar {
  width: 220px; flex-shrink: 0; background: var(--primary); color: #fff;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 1px 0 4px rgba(0, 0, 0, .08); transition: width .18s ease;
}
.layout.sidebar-collapsed .sidebar { width: 52px; overflow: visible; }
.sb-account {
  padding: 14px 16px; display: flex; gap: 10px; align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .1); flex-shrink: 0;
}
.sb-logo {
  width: 36px; height: 36px; background: var(--primary-light); color: var(--primary);
  border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 18px;
  overflow: hidden; flex: 0 0 36px;
}
.sb-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sb-account-info { min-width: 0; }
.sb-account-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-account-role { font-size: 11px; color: rgba(255, 255, 255, .7); margin-top: 3px; }
.sb-nav { flex: 1; overflow-y: auto; padding: 8px 0 12px; }
.sb-nav::-webkit-scrollbar { width: 6px; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-radius: 3px; }
.sb-collapse {
  width: 100%; min-height: 42px; flex-shrink: 0; padding: 8px 16px;
  border: 0; border-top: 1px solid rgba(255, 255, 255, .14);
  background: var(--primary); color: rgba(255, 255, 255, .9);
  font: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.sb-collapse:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sb-collapse span:first-child { font-size: 20px; line-height: 1; }
.sb-expand {
  position: fixed; left: 12px; bottom: 12px; z-index: 90;
  width: 34px; height: 34px; display: none; place-items: center;
  border: 0; border-radius: 6px; background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2); font: 24px/1 inherit; cursor: pointer;
}
.sb-expand:hover { filter: brightness(1.08); }
.layout.sidebar-collapsed .sb-expand { display: grid; }
.sb-item {
  width: 100%; padding: 9px 18px; background: transparent; border: 0;
  color: rgba(255, 255, 255, .85); text-align: left; cursor: pointer;
  font-size: 13px; font-family: inherit; display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.sb-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sb-item.active { background: rgba(255, 255, 255, .18); color: #fff; font-weight: 600; }
.sb-item .sb-icon { width: 16px; text-align: center; opacity: .85; font-size: 14px; }
.sb-icon { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; }
.sb-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sb-item .sb-icon:first-child + span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sb-item .badge {
  background: var(--red); color: #fff; border-radius: 9px; padding: 0 5px;
  font-size: 11px; min-width: 16px; text-align: center;
}
.sb-group { padding: 4px 0; }
.sb-group-toggle {
  width: 100%; padding: 9px 18px; background: transparent; border: 0;
  color: rgba(255, 255, 255, .9); text-align: left; cursor: pointer;
  font-size: 13px; font-family: inherit; display: flex; gap: 10px; align-items: center;
}
.sb-group-toggle .sb-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sb-group-toggle .caret { margin-left: auto; }
.sb-group-toggle:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sb-group.open > .sb-group-toggle { color: #fff; font-weight: 600; }
.sb-group .caret { font-size: 10px; opacity: .8; transition: transform .15s; }
.sb-group.open > .sb-group-toggle .caret { transform: rotate(180deg); }
.sb-group:not(.open) > .sb-children { display: none; }
.sb-children { padding: 2px 0; }
.sb-subgroup { padding: 0; }
.sb-subgroup > .sb-group-toggle { padding-left: 18px; }
.sb-subgroup > .sb-children .sb-item { padding-left: 36px; }

/* 收起后保留图标轨道；一级分组悬停时在右侧显示其菜单。 */
.layout.sidebar-collapsed .sb-account { padding: 14px 8px; justify-content: center; }
.layout.sidebar-collapsed .sb-account-info,
.layout.sidebar-collapsed .sb-label,
.layout.sidebar-collapsed .sb-group-toggle .caret,
.layout.sidebar-collapsed .sb-collapse-label { display: none; }
.layout.sidebar-collapsed .sb-nav { overflow: visible; padding-top: 8px; }
.layout.sidebar-collapsed .sb-item,
.layout.sidebar-collapsed .sb-group-toggle { height: 44px; padding: 0; justify-content: center; }
.layout.sidebar-collapsed .sb-item .sb-icon,
.layout.sidebar-collapsed .sb-group-toggle .sb-icon { width: 20px; height: 20px; flex-basis: 20px; }
.layout.sidebar-collapsed .sb-icon svg { width: 20px; height: 20px; }
.layout.sidebar-collapsed .sb-item > .badge { position: absolute; top: 4px; right: 6px; }
.layout.sidebar-collapsed .sb-item { position: relative; }
.layout.sidebar-collapsed .sb-group { position: relative; padding: 2px 0; }
.layout.sidebar-collapsed .sb-group > .sb-children {
  display: none; position: absolute; left: 52px; top: 2px; z-index: 120;
  width: 190px; padding: 6px; background: #fff; border: 1px solid var(--border);
  border-radius: 6px; box-shadow: 0 8px 24px rgba(20, 39, 74, .18);
}
.layout.sidebar-collapsed .sb-group:hover > .sb-children,
.layout.sidebar-collapsed .sb-group:focus-within > .sb-children { display: block; }
.layout.sidebar-collapsed .sb-children .sb-item {
  height: auto; min-height: 38px; padding: 8px 12px; justify-content: flex-start;
  color: var(--text); border-radius: 4px;
}
.layout.sidebar-collapsed .sb-children .sb-item:hover { background: var(--hover); color: var(--primary); }
.layout.sidebar-collapsed .sb-children .sb-item.active { background: var(--primary-light); color: var(--primary); }
.layout.sidebar-collapsed .sb-collapse { padding: 8px; }
.layout.sidebar-collapsed .sb-collapse-icon { transform: rotate(180deg); }
.layout.sidebar-collapsed .sb-expand { display: none; }
.layout.sidebar-collapsed .sb-item[data-label]::after {
  content: attr(data-label); display: none; position: absolute; left: 46px; top: 50%; transform: translateY(-50%);
  z-index: 121; padding: 6px 10px; border-radius: 4px; background: #263445; color: #fff;
  font-size: 12px; font-weight: 400; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.16);
}
.layout.sidebar-collapsed .sb-nav > .sb-item:hover::after,
.layout.sidebar-collapsed .sb-nav > .sb-item:focus-visible::after { display: block; }

.main-col {
  flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0;
}
.topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; min-height: 48px;
  padding: 0 16px;
}
.topbar h1 { display: none; } /* 旧标题已迁到 sidebar */
.page-tabs {
  flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto;
  padding: 8px 0; scrollbar-width: thin;
}
.page-tabs::-webkit-scrollbar { height: 6px; }
.page-tabs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.page-tabs .tab-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px 6px 0 0; border-bottom: 0; cursor: pointer;
  font-size: 13px; color: var(--text-2); white-space: nowrap;
  max-width: 200px; min-width: 80px;
}
.page-tabs .tab-pill:hover { color: var(--primary); border-color: var(--primary); }
.page-tabs .tab-pill.active {
  background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600;
}
.page-tabs .tab-pill .tab-label {
  overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0;
}
.page-tabs .tab-pill .tab-x {
  background: transparent; border: 0; color: inherit; cursor: pointer;
  padding: 0 4px; line-height: 1; opacity: .65; font-size: 14px; border-radius: 3px;
}
.page-tabs .tab-pill .tab-x:hover { opacity: 1; background: rgba(0, 0, 0, .08); }
.page-tabs .tab-pill.active .tab-x:hover { background: rgba(255, 255, 255, .2); }
.page-tabs .tab-pill.static .tab-x { display: none; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.year-sel { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.year-sel select {
  padding: 4px 6px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 13px; background: #fff; color: var(--text);
}

.breadcrumb {
  padding: 8px 18px; background: var(--bg); border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--text-3); display: flex; gap: 6px; align-items: center;
}
.breadcrumb .bc-sep { opacity: .5; }
.breadcrumb .bc-crumb { color: var(--text-2); }
.breadcrumb .bc-crumb:last-child { color: var(--primary); font-weight: 600; }

main {
  flex: 1; overflow: auto; background: var(--bg); min-height: 0;
}
main .page { display: none; padding: 14px; }
main .page.active { display: block; }

/* ---------- 首页菜单入口 ---------- */
.home-head { display: flex; align-items: center; gap: 12px; margin: -14px -14px 16px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--border); }
.home-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-title > span { padding: 5px 9px; color: #167c69; background: #e4f4ef; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.home-head h2 { margin: 0; color: #17344a; font-size: 18px; }
.home-head > p { margin: 0 0 0 auto; color: var(--text-3); font-size: 13px; white-space: nowrap; }
.home-head > button { padding: 5px 10px; color: #167c69; border-color: #b9ddd4; background: #f4fbf8; }
.home-customize { margin-bottom: 16px; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.home-customize-title { margin-bottom: 10px; font-weight: 600; }
.home-customize-title span { margin-left: 6px; color: var(--text-3); font-size: 12px; font-weight: 400; }
.home-customize-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }
.home-customize-options label { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; cursor: pointer; }
.home-customize-options input { width: auto; margin: 0; flex: 0 0 auto; }
.home-menu-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; overflow-x: hidden; padding: 0 0 4px; }
/* 统一功能卡片规范：首页入口、概览统计及后续新增卡片沿用横向图标 + 标题/说明结构。 */
.home-menu-card { width: 100%; min-width: 0; min-height: 0; aspect-ratio: 2.1 / 1; padding: clamp(9px, 1vw, 16px); display: flex; align-items: center; gap: clamp(7px, .8vw, 13px); overflow: hidden; white-space: normal; text-align: left; background: var(--card); border: 1px solid #cfdde7; border-top: 3px solid #70a9ce; border-radius: 7px; cursor: pointer; box-shadow: 0 2px 5px rgba(23, 52, 74, .05); }
.home-menu-card:nth-child(2) { border-top-color: #9484dc; }
.home-menu-card:nth-child(3) { border-top-color: #53b3a4; }
.home-menu-card:nth-child(4) { border-top-color: #d39a32; }
.home-menu-card:nth-child(5) { border-top-color: #63a477; }
.home-menu-card:hover { border-color: #65aeb0; box-shadow: 0 5px 14px rgba(23, 52, 74, .12); transform: translateY(-2px); }
.card-icon { width: clamp(30px, 3vw, 46px); height: clamp(30px, 3vw, 46px); flex: 0 0 clamp(30px, 3vw, 46px); display: grid; place-items: center; color: #397fa8; background: #e8f3fa; border-radius: clamp(9px, .8vw, 13px); }
.home-menu-card:nth-child(2) .card-icon { color: #715dc0; background: #f0edfb; }
.home-menu-card:nth-child(3) .card-icon { color: #278979; background: #e4f5f1; }
.home-menu-card:nth-child(4) .card-icon { color: #b07716; background: #fff3df; }
.home-menu-card:nth-child(5) .card-icon { color: #3d8053; background: #e9f5ec; }
.card-icon svg { width: clamp(17px, 1.6vw, 24px); height: clamp(17px, 1.6vw, 24px); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: clamp(3px, .45vw, 7px); overflow: hidden; }
.home-menu-card strong { color: #17344a; font-size: clamp(13px, 1.05vw, 17px); line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.card-copy > span { color: #6f8190; font-size: clamp(10px, .75vw, 12px); line-height: 1.45; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.home-menu-empty { grid-column: 1 / -1; padding: 36px; text-align: center; color: var(--text-3); background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); }
@media (max-width: 900px) {
  .home-head > p { display: none; }
  .home-menu-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow-x: hidden; gap: 6px; }
  :root { --card-aspect-ratio: 1.85 / 1; }
}

/* 顶栏账户下拉菜单（沿用上一轮规范，仅尺寸微调） */
/* 开关 */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0; background: #c7ced8;
  border-radius: 24px; transition: .2s;
}
.switch .slider:before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider:before { transform: translateX(20px); }
.year-sel { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.9); white-space: nowrap; }
.year-sel select { padding: 4px 8px; border-radius: var(--radius); border: 0; font-family: inherit; font-size: 13px; }
main { padding: 16px 20px 40px; }
main.quote-host { padding: 0; overflow: hidden; }
main.customer-host,
main.module-host { padding: var(--module-host-padding); }
main.customer-host > .page,
main.module-host > .page { padding: var(--module-page-padding); background: var(--card); border-radius: var(--radius); }
.page { display: none; }
.page.active { display: block; }

/* ---------- 卡片 / 统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.dash-stats { margin-bottom: 16px; }
.dash-year-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 10px 0; font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.dash-year-bar select { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 14px; width: 100px; }
.dash-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.dash-slot { min-width: 0; min-height: 0; aspect-ratio: 2.1 / 1; }
.dash-slot-empty { min-height: 0; }
.dash-slot.drag-over { outline: 2px dashed var(--primary); outline-offset: 2px; border-radius: var(--radius); }
.dash-slot .stat { width: 100%; height: 100%; padding: clamp(10px, 1vw, 16px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; overflow: hidden; border-top: 3px solid #70a9ce; border-left-width: 1px; }
.dash-slot:nth-child(5n + 2) .stat { border-top-color: #9484dc; }
.dash-slot:nth-child(5n + 3) .stat { border-top-color: #53b3a4; }
.dash-slot:nth-child(5n + 4) .stat { border-top-color: #d39a32; }
.dash-slot:nth-child(5n + 5) .stat { border-top-color: #63a477; }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; border-left: 3px solid var(--primary);
}
.stat .label { color: var(--text-2); font-size: clamp(10px, .75vw, 12px); }
.stat .value { font-size: clamp(17px, 1.45vw, 22px); font-weight: 600; margin-top: clamp(2px, .3vw, 4px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .sub { color: var(--text-3); font-size: clamp(9px, .7vw, 11px); line-height: 1.4; overflow-wrap: anywhere; }
.stat.warn { border-left-color: var(--orange); }
.stat.danger { border-left-color: var(--red); }
.stat.ok { border-left-color: var(--green); }

/* 所有业务卡片沿用首页的五列网格及宽高比。 */
.home-menu-card, .dash-slot, .stats > .stat, .module-card { aspect-ratio: var(--card-aspect-ratio); }
.stats > .stat, .module-card {
  min-width: 0; min-height: 0; padding: clamp(9px, 1vw, 16px);
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
@media (max-width: 900px) {
  .stats, .dash-slots { gap: 6px; }
}

.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.panel-hd {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.panel-hd h2 { font-size: 14px; font-weight: 600; margin-right: 8px; }
.spacer { flex: 1; }

/* ---------- 控件 ---------- */
button, .btn {
  font-family: inherit; font-size: 13px; padding: 6px 12px; border-radius: var(--radius);
  border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; white-space: nowrap;
}
button:hover { border-color: #b9c2cd; background: #fafbfc; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #1853af; border-color: #1853af; color: #fff; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: #fdf2f2; border-color: #f0c0c0; }
.btn-sm { padding: 3px 8px; font-size: 12px; }
.btn-warn { border: 1px solid var(--orange); background: #fff; color: var(--orange); border-radius: var(--radius); cursor: pointer; font-family: inherit; padding: 3px 10px; font-size: 12px; }
.btn-warn:hover { background: #fdf3e3; }
.btn-ghost { border: 1px solid var(--border); background: #fff; color: var(--text-2); border-radius: var(--radius); cursor: pointer; font-family: inherit; padding: 3px 10px; font-size: 12px; }
.btn-ghost:hover { background: #fafbfc; border-color: #b9c2cd; }
.row-muted { opacity: .55; }
input, select, textarea {
  font-family: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; color: var(--text); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); }
textarea { resize: vertical; min-height: 56px; }
.filter { width: auto; min-width: 120px; }
.filter.search { min-width: 200px; }
#examCust { width: 120px; min-width: 120px; max-width: 120px; flex: 0 0 120px; }

/* ---------- 批量操作条 ---------- */
.bulk-bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 8px;
  background: #fff7f7; border: 1px solid #f3c9c9; border-radius: var(--radius);
}
.bulk-bar b { color: var(--red); font-size: 15px; }

/* ---------- 表格 ---------- */
th.chk, td.chk { width: 34px; text-align: center; padding-left: 6px; padding-right: 6px; }
th.chk input, td.chk input { width: auto; }
.table-wrap { overflow: auto; max-height: calc(100vh - 230px); }
#page-cust .table-wrap { height: 367px; max-height: 367px; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; white-space: nowrap; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--border); text-align: left; }
#custTable th, #custTable td,
#examTable th, #examTable td,
#mgmtTable th, #mgmtTable td,
#alertTable th, #alertTable td,
#statsTable th, #statsTable td,
table.module-table th, table.module-table td {
  height: var(--module-table-row-height);
  padding-top: 0;
  padding-bottom: 0;
}
thead th {
  background: #f7f9fb; color: var(--text-2); font-weight: 600; position: sticky; top: 0; z-index: 2;
  border-bottom: 1px solid var(--border);
  text-align: center; vertical-align: middle;
}
/* 间隔行斑马纹（方便查看），hover 高亮优先于斑马纹；统计表合计行保持自身底色 */
.table-wrap tbody tr:nth-child(even) { background: #edf2f8; }
.table-wrap tbody tr:hover { background: #dce8f7; }
.table-wrap tbody tr.stats-total { background: #e3edf7; }
.quote-records-table, .quote-history-table { min-width: 1160px; }
.quote-history-card { display: flex; flex-direction: column; min-height: 0; }
.quote-history-view { display: flex !important; flex-direction: column; height: 100%; min-height: 0; }
.quote-history-view .quote-history-card { flex: 1 1 auto; }
.quote-history-card .table-wrap { flex: 1 1 auto; min-height: 0; max-height: none; }
.quote-native-app:not(.native-hazard-app):has(>.quote-history-view){overflow:hidden}
.quote-native-app:not(.native-hazard-app)>.quote-history-view{height:100%;min-height:0;overflow:hidden}
.quote-native-app:not(.native-hazard-app)>.native-quote.quote-history-view>.card.quote-history-card{flex:1 1 0;min-height:0;overflow:hidden}
.quote-history-card>.toolbar{flex-shrink:0}
.quote-history-card>.table-wrap{overflow:auto}
.quote-history-table { table-layout: fixed; width: 100%; }
.quote-records-table{table-layout:fixed;width:100%}
.quote-history-card .col-resizer,.quote-history-card .col-resizer:hover{background:transparent}
.quote-history-card .col-resizer::after{display:none}
.quote-history-card table{min-width:0}
.quote-history-table th:nth-child(1) { width: 11%; }
.quote-history-table th:nth-child(2) { width: 10%; }
.quote-history-table th:nth-child(3) { width: 18%; }
.quote-history-table th:nth-child(4) { width: 27%; }
.quote-history-table th:nth-child(5) { width: 9%; }
.quote-history-table th:nth-child(6) { width: 9%; }
.quote-history-table th:nth-child(7) { width: 16%; }
.quote-history-card .quote-history-table tbody > tr:not(.quote-plan-row) { min-height: 35px; }
.quote-history-card .quote-plan-row td { padding: 9px 14px; white-space: normal; }
.quote-plan-name { margin-bottom: 5px; }
.quote-plan-items { color: var(--text-3); line-height: 1.65; }
.quote-history-table .quote-scheme span { display: block; line-height: 1.5; }
.quote-history-table .quote-scheme[data-scheme-toggle]{cursor:pointer}
.quote-history-table .quote-scheme-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}
.quote-history-table .quote-scheme-content span{display:block;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quote-history-table .quote-scheme.expanded .quote-scheme-content{white-space:normal;overflow:visible}
.quote-history-table .quote-scheme.expanded .quote-scheme-content span{white-space:normal;overflow:visible;margin:0;padding:0}
.quote-scheme-tooltip{position:fixed;z-index:9999;box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;overflow-wrap:anywhere;padding:8px 12px;background:#fff;border:1px solid #cbd5e4;border-radius:7px;box-shadow:0 8px 24px #1f2b3d33;color:var(--text);font-size:13px;line-height:1.55}
.quote-scheme-tooltip>div+div{border-top:1px solid #e7ebf2;margin-top:5px;padding-top:5px}
.quote-history-table .quote-total { color: var(--primary); font-weight: 600; }
.quote-history-table .quote-history-actions { display:flex;gap:5px;align-items:center;flex-wrap:wrap }
.quote-history-card .quote-history-table tbody td{padding-top:4px;padding-bottom:4px;line-height:1.4}
.quote-history-card .quote-history-table .quote-scheme-content{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quote-history-card .quote-history-table .quote-scheme-content>span{display:block;margin:0;padding:0;line-height:1.45}
.quote-history-card .quote-history-table .quote-scheme.expanded{white-space:normal;overflow:visible}
.quote-history-card .quote-history-table .quote-scheme.expanded .quote-scheme-content{white-space:normal;overflow:visible;overflow-wrap:anywhere}
.quote-history-card .quote-history-table .quote-scheme.expanded .quote-scheme-content>span{display:block;line-height:1.45}
.quote-records-table .quote-total { color: var(--primary); font-weight: 600; }
.quote-history-total { display: flex; justify-content: space-between; flex-shrink: 0; padding: 10px 0 2px; font-size: 14px; }
.quote-records-table td, .quote-history-table td { vertical-align: middle; }
.quote-history-card table th,.quote-history-card table td{border-right:1px solid var(--border)}
.quote-history-card table th:last-child,.quote-history-card table td:last-child{border-right:0}
.quote-history-card table thead th{text-align:center}
.quote-history-card table tbody td:nth-child(-n+4){text-align:left}
.quote-history-card table tbody td:nth-child(5),.quote-history-card table tbody td:nth-child(6){text-align:right}
.quote-records-table .quote-scheme { max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
.quote-records-table .quote-no, .quote-history-table .quote-no { border: 0; padding: 0; background: transparent; color: var(--primary); cursor: pointer; font: inherit; }
.quote-preview-mask { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgb(20 27 41 / 48%); }
.quote-preview-mask[hidden] { display: none; }
.quote-preview-dialog { width: min(82vw, 1150px); max-height: 94vh; overflow: auto; padding: 18px 20px 16px; border-radius: 12px; background: #fff; box-shadow: 0 16px 50px rgb(0 0 0 / 24%); }
.quote-preview-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.quote-preview-header h2 { margin: 0; font-size: 20px; }
.quote-preview-close { border: 0; background: transparent; color: var(--text-3); font-size: 25px; cursor: pointer; }
.quote-preview-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 8px; background: #f5f7fb; }
.quote-preview-plan { margin-top: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fbfcfe; }
.quote-preview-plan h3 { margin: 0; padding: 12px; border-bottom: 1px solid var(--border); background: #f5f7fb; font-size: 16px; }
.quote-preview-table-wrap { overflow-x: auto; }
.quote-preview-table-wrap table { min-width: 800px; }
.quote-preview-table-wrap th { position: static; background: #f5f7fb; }
.quote-preview-table-wrap .num { text-align: right; }
.quote-preview-plan-total { display: flex; justify-content: flex-end; gap: 18px; padding: 10px 12px; font-weight: 600; }
.quote-preview-grand-total { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; font-weight: 600; }
.quote-preview-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.quote-actual-dialog { width: min(640px, 92vw); }
.quote-actual-meta { margin-bottom: 10px; color: var(--text-2); }
.quote-actual-row { display: grid; grid-template-columns: minmax(0,1fr) 140px 100px; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.quote-actual-row input { width: 90px; }
.quote-actual-summary { display: flex; justify-content: space-between; padding-top: 14px; font-size: 15px; }
@media(max-width:700px){.quote-preview-mask{padding:8px}.quote-preview-dialog{width:96vw;padding:12px}.quote-preview-meta{grid-template-columns:1fr}.quote-preview-plan-total{flex-wrap:wrap;justify-content:flex-start}.quote-actual-row{grid-template-columns:1fr 100px}.quote-actual-row span:first-child{grid-column:1/-1}}
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
thead th.num { text-align: center; }
#statsTable { border-collapse: separate; border-spacing: 0; }
#statsTable thead { position: sticky; top: 0; z-index: 5; background: #f7f9fb; isolation: isolate; }
#statsTable thead tr,
#statsTable thead th { position: static; background: #f7f9fb; }
#statsTable tbody td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
td.wrap { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; color: var(--text-3); padding: 40px 0; }
/* 客户经理业务统计：合计行（表尾加粗 + 分隔线） */
tr.stats-total { font-weight: 600; }
tr.stats-total td { border-top: 2px solid var(--primary); }

/* 团体客户管理列表：横向滚动时前两列固定（任务编码 / 公司名称）。
   实现：CSS sticky + 仅针对 #mgmtTable 切换为 border-collapse:separate（不让其他表格受影响） */
#mgmtTable { border-collapse: separate; border-spacing: 0; }
#mgmtTable th.c1, #mgmtTable td.c1 {
  position: sticky; left: 0; z-index: 3; background: #fff;
  box-shadow: inset -1px 0 var(--border);
}
#mgmtTable th.c2, #mgmtTable td.c2 {
  position: sticky; left: var(--c1w, 110px); z-index: 3; background: #fff;
  box-shadow: inset -1px 0 var(--border);
}
#mgmtTable thead th.c1, #mgmtTable thead th.c2 { background: #f7f9fb; z-index: 4; }
#mgmtTable tbody tr:nth-child(even) td.c1,
#mgmtTable tbody tr:nth-child(even) td.c2 { background: #edf2f8; }
#mgmtTable tbody tr:hover td.c1,
#mgmtTable tbody tr:hover td.c2 { background: #dce8f7; }

/* 团检客户 / 体检任务明细：列内容默认居中，表头统一居中 */
#custTable th, #custTable td,
#examTable th, #examTable td,
#custDetailExamTable th, #custDetailExamTable td { text-align: center; }
/* 金额类列：数据右对齐（表头由上方默认规则保持居中）。按语义 class 命中，列拖动改变顺序后对齐仍跟随该列 */
#custTable td.amt, #examTable td.amt, #custDetailExamTable td.amt { text-align: right; font-variant-numeric: tabular-nums; }
#custTable th.amt, #examTable th.amt, #custDetailExamTable th.amt { text-align: center; }
/* 地址 / 体检地点：数据左对齐（表头居中） */
#custTable td.addr, #custTable td.loc, #examTable td.loc { text-align: left; }
/* 纯计数类（人数 / 周期 / 持续天数）：保持居中。按语义 class 命中，列拖动后仍保持居中 */
#custTable td.cnt, #examTable td.cnt, #custDetailExamTable td.cnt,
#custTable th.cnt, #examTable th.cnt, #custDetailExamTable th.cnt { text-align: center; font-variant-numeric: tabular-nums; }
/* 明细行固定单行高度：溢出缩略，点击单元格展开全文 */
tbody td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table:not(.resizable) tbody td { max-width: 260px; }
/* 表头点击排序：指针 + 升降序指示 */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { background: var(--bg); }
th.sort-asc::after { content: ' ▲'; font-size: 10px; color: var(--primary); }
th.sort-desc::after { content: ' ▼'; font-size: 10px; color: var(--primary); }

/* ---------- 徽标 ---------- */
.tag {
  display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px;
  background: var(--primary-light); color: var(--primary); margin: 1px 3px 1px 0; border: 1px solid #cfe0f2;
}
.tag.ok { background: #e8f8ed; color: var(--green); border-color: #b8e6c9; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.pill.核心 { background: #fdecec; color: var(--red); }
.pill.重点 { background: #fdf3e3; color: var(--orange); }
.pill.普通 { background: #eef1f5; color: var(--text-2); }
.pill.风险 { background: #ecf7f0; color: var(--green); }
.pill.overdue { background: #fdecec; color: var(--red); }
.pill.m1 { background: #fdecec; color: var(--red); }
.pill.m3 { background: #fdf3e3; color: var(--orange); }
.pill.normal { background: #eef1f5; color: var(--text-2); }
.pill.clickable { cursor: pointer; }
.pill.clickable:hover { filter: brightness(0.96); outline: 1px dashed currentColor; outline-offset: 1px; }
.pill.潜在客户 { background: #eef1f5; color: var(--text-2); }
.pill.新增客户 { background: #ecf7f0; color: var(--green); }
.pill.流失客户 { background: #fdecec; color: var(--red); }
.pill.存续客户 { background: #e8f0fe; color: #2f6bff; }
.pill.计划中 { background: #eef1f5; color: var(--text-2); }
.pill.即将开始 { background: #fdf3e3; color: var(--orange); }
.pill.进行中 { background: #e8f8ed; color: var(--green); }
.pill.已结束 { background: #e8f0fe; color: #2f6bff; }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(20,28,38,.45); display: none;
  align-items: flex-start; justify-content: center; z-index: 100; overflow: auto; padding: 40px 16px;
}
.mask.show { display: flex; }

/* 选项/标签管理弹窗须高于其他 mask（如团体客户管理编辑弹窗） */
#optMask { z-index: 200; }

.modal { background: #fff; border-radius: 8px; width: 100%; max-width: 780px; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.modal.wide { max-width: 920px; }
.modal-hd { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.modal-hd h3 { font-size: 15px; font-weight: 600; flex: 1; }
.modal-hd .close { border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--text-3); cursor: pointer; padding: 0 4px; }
.modal-bd { padding: 16px 18px; max-height: 68vh; overflow: auto; }
.detail-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.detail-toolbar .filter.search { flex: 1; min-width: 0; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; flex: 0 0 auto; }
.seg-btn { border: none; background: #fff; color: var(--text); padding: 5px 14px; font-size: 13px; cursor: pointer; font-family: inherit; border-right: 1px solid var(--border); }
.seg-btn:last-child { border-right: none; }
.seg-btn:hover { background: var(--bg); }
.seg-btn.active { background: var(--primary); color: #fff; }
.detail-count { color: var(--text-3); font-size: 13px; white-space: nowrap; }
/* 单元格全文弹窗 */
#cellBody { white-space: pre-wrap; word-break: break-all; font-size: 13px; line-height: 1.9; }
.modal-ft { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; color: var(--text-2); margin-bottom: 4px; font-size: 12px; }
.field label .req { color: var(--red); }
.field-label-row .req { color: var(--red); }
.field.col2 { grid-column: 1 / -1; }
.contact-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.crow { display: flex; gap: 8px; align-items: center; }
.crow .cn, .crow .cp, .crow .cm { flex: 1; min-width: 0; }
.crow .cm { flex: 1.2; } /* 备注列稍微宽一点，常用于填职务/职责 */
.cdel { border: 1px solid var(--border); background: #fff; color: var(--text-3); width: 28px; height: 32px; border-radius: var(--radius); cursor: pointer; font-size: 16px; line-height: 1; flex: 0 0 auto; }
.cdel:hover { border-color: var(--red); color: var(--red); }
.cdrag { cursor: grab; flex: 0 0 auto; color: var(--text-3); padding: 0 4px; font-size: 16px; line-height: 1; user-select: none; }
.cdrag:active { cursor: grabbing; }
.crow.dragging { opacity: .4; }
.btn-mini { align-self: flex-start; border: 1px dashed var(--border); background: #fff; color: var(--primary); padding: 5px 10px; border-radius: var(--radius); cursor: pointer; font-size: 12px; font-family: inherit; }
.btn-mini:hover { border-color: var(--primary); background: var(--primary-light); }
.hint { color: var(--text-3); font-size: 11px; margin-top: 3px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 5px 0; }
.checks label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--text); font-size: 13px; }
.checks input { width: auto; }
.tag-pick { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0; }
.tag-pick .t {
  padding: 2px 10px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
  font-size: 12px; background: #fff; user-select: none;
}
.tag-pick .t.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.tag-add { display: flex; gap: 6px; margin-top: 6px; }
.tag-add input { max-width: 160px; }

/* ---------- 选项 / 标签管理 ---------- */
.opt-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: auto; }
.oitem { display: flex; align-items: center; gap: 8px; }
.oitem .oname { flex: 1; }
.oitem .btn-sm { flex: 0 0 auto; }
.field-label-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.field-label-row label { margin-bottom: 0; }
.field-label-row span { color: var(--text-2); font-size: 12px; }

/* 体检任务编辑：总体 / 各类型明细一行 4 列 */
.exam-total-row, .exam-type-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.exam-type-block { margin-top: 10px; }
.exam-type-block:first-child { margin-top: 4px; }
.exam-type-block .et-title { font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.et-item label { font-size: 11px; margin-bottom: 3px; }
.et-item input { width: 100%; }
/* 体检任务编辑：总体 / 各类型明细按颜色区分（v25） */
.exam-sec-total > label { color: var(--primary); font-weight: 600; }
.exam-sec-total .et-item label { color: #1a5fb4; }
.exam-sec-health .et-title { color: #2e7d32; font-weight: 600; }
.exam-sec-health .et-item label { color: #2e7d32; }
.exam-sec-occ .et-title { color: #b26a00; font-weight: 600; }
.exam-sec-occ .et-item label { color: #b26a00; }
.exam-sec-cert .et-title { color: #8e24aa; font-weight: 600; }
.exam-sec-cert .et-item label { color: #8e24aa; }
/* 旧结构：label 内包 btn-mini；已改为 label/span 与 btn-mini 并列在 .field-label-row 中，
   避免 label 的 labelable 关联把整段文字都变成按钮热区 */
.field label .btn-mini { margin-left: 8px; align-self: center; }

/* 运营管理：附件上传行（状态文案 + 上传/查看/删除） */
.upload-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.upload-row .upload-status { color: var(--text-2); font-size: 12px; flex: 1; min-width: 0; word-break: break-all; }

/* ---------- 提示 ---------- */
#toast {
  position: fixed; top: 68px; left: 50%; transform: translateX(-50%); z-index: 300;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
  padding: 9px 18px; border-radius: var(--radius); color: #fff; font-size: 13px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); max-width: 560px;
}
.toast.ok { background: #1f8a4c; }
.toast.err { background: #c62828; }
.toast.info { background: #34455c; }
.toast.warn { background: var(--orange); }

.import-result { font-size: 12.5px; }
.import-result .fail-row { color: var(--red); padding: 2px 0; }
.import-result .sum { margin-bottom: 8px; font-size: 13px; }
.dz {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 26px; text-align: center;
  color: var(--text-2); cursor: pointer; background: #fafbfc;
}
.dz:hover { border-color: var(--primary); background: var(--primary-light); }
.steps { color: var(--text-2); font-size: 12.5px; margin: 10px 0 12px; padding-left: 18px; }
.steps li { margin: 3px 0; }
.link, .num-link {
  color: var(--primary); cursor: pointer; text-decoration: none;
  font: inherit; font-weight: inherit; line-height: inherit;
}
.num-link:hover { color: #0f3a6d; }

/* ---------- 客户详情 ---------- */
.detail-info { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; margin-bottom: 16px; }
.detail-info .di-row { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.detail-info .di-k { flex: 0 0 116px; color: var(--text-2); }
.detail-info .di-v { flex: 1; color: var(--text); word-break: break-all; }
.detail-sub { font-size: 14px; font-weight: 600; margin: 4px 0 10px; }

/* ---------- 表格列宽拖拽 ---------- */
table.resizable { table-layout: fixed; }
table.resizable th, table.resizable td { overflow: hidden; text-overflow: ellipsis; }
table.resizable td.wrap, table.resizable th.wrap { white-space: nowrap; min-width: 0; max-width: none; }
.col-resizer {
  position: absolute; right: 0; top: 0; height: 100%; width: 7px;
  cursor: col-resize; z-index: 6; user-select: none;
}
.col-resizer:hover { background: rgba(26,79,138,.35); }
.col-resizer::after { content: ''; position: absolute; right: 2px; top: 30%; height: 40%; width: 2px; background: var(--border); }
.col-resizer:hover::after { background: var(--primary); }
.resizable th { cursor: grab; }
.resizable th.col-dragging { opacity: .4; cursor: grabbing; }
.resizable th.drag-over { outline: 2px dashed var(--primary); outline-offset: -2px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 12px; padding: 12px 4px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.pager .pg {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 5px 14px; border-radius: var(--radius); cursor: pointer; font-family: inherit; font-size: 13px;
}
.pager .pg:hover:not([disabled]) { border-color: var(--primary); color: var(--primary); }
.pager .pg[disabled] { opacity: .45; cursor: not-allowed; }
.pager .pg-info { white-space: nowrap; }
.pager .pg-jump {
  width: 54px; padding: 4px 6px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 13px; text-align: center;
}
.pager .pg-total { color: var(--text-3); }
.pager .pg-size {
  padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius);
  width: auto; min-width: 120px; margin-left: auto; flex: 0 0 auto;
  font-family: inherit; font-size: 13px; background: var(--card);
}
/* 区域：国家标准行政区划三级联动 */
.region-pick { display: flex; gap: 6px; }
.region-pick .rg-sel { flex: 1; min-width: 0; }
.region-manual { display: flex; gap: 6px; margin-top: 6px; }
.region-manual .rg-in { flex: 1; min-width: 0; }

/* ==================== 登录 / 用户栏 ==================== */
.login-screen {
  position: fixed; inset: 0; z-index: 9999; background: rgba(20, 30, 45, .55);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
.login-card {
  width: 340px; max-width: 92vw; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: 0 16px 48px rgba(0,0,0,.25);
}
.login-card h2 { margin: 0 0 18px; font-size: 18px; text-align: center; }
.login-card label { display: block; font-size: 13px; color: var(--text-2); margin: 12px 0 5px; }
.login-card input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 14px; box-sizing: border-box; background: var(--card); color: var(--text);
}
.login-btn { width: 100%; margin-top: 18px; padding: 10px; font-size: 14px; }
.login-err { color: #d33; font-size: 13px; margin-top: 10px; min-height: 16px; text-align: center; }

/* 顶栏账户下拉菜单 */
.user-bar.dropdown { position: relative; display: inline-flex; margin-left: 14px; }
.user-bar .ub-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 1px solid transparent;
  color: var(--text); padding: 6px 12px; border-radius: var(--radius);
  cursor: pointer; font-family: inherit; font-size: 13px;
}
.user-bar .ub-toggle:hover { background: var(--bg); color: var(--primary); border-color: var(--border); }
.user-bar.open .ub-toggle { background: var(--bg); color: var(--primary); border-color: var(--border); font-weight: 600; }
.user-bar .ub-toggle .caret { font-size: 10px; opacity: .7; }
.user-bar .user-menu {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 6px; z-index: 70;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,.16); min-width: 130px; padding: 4px;
}
.user-bar.open .user-menu { display: block; }
.user-bar .user-menu button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  color: var(--text); padding: 8px 10px; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-family: inherit;
}
.user-bar .user-menu button:hover { background: var(--bg); color: var(--primary); }

/* ==================== 系统管理 / 审批中心 ==================== */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs .tab {
  border: 1px solid transparent; background: transparent; color: var(--text-2);
  padding: 6px 14px; border-radius: var(--radius); cursor: pointer; font-family: inherit; font-size: 13px;
}
.tabs .tab:hover { color: var(--primary); }
.tabs .tab.active { background: var(--primary); color: #fff; }

.adm-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.adm-toolbar .filter { min-width: 160px; }
.adm-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
@media (max-width: 880px) { .adm-grid { grid-template-columns: 1fr; } }
.adm-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.adm-list .item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.adm-list .item:last-child { border-bottom: none; }
.adm-list .item:hover { background: var(--hover); }
.adm-list .item.active { background: var(--primary-soft); }
.adm-list .item .nm { font-weight: 600; }
.adm-list .item .meta { font-size: 12px; color: var(--text-3); }
.adm-sub { font-size: 13px; color: var(--text-2); margin: 0 0 10px; }

.perm-matrix { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.perm-matrix .pmod {
  display: grid; grid-template-columns: 160px repeat(7, 1fr); gap: 0; align-items: center;
  border-bottom: 1px solid var(--border);
}
.perm-matrix .pmod:last-child { border-bottom: none; }
.perm-matrix .pmod > div { padding: 8px 10px; border-right: 1px solid var(--border); font-size: 13px; }
.perm-matrix .pmod > div:last-child { border-right: none; }
.perm-matrix .pmod .mh { background: var(--hover); font-weight: 600; }
.perm-matrix .pmod .op { text-align: center; color: var(--text-3); font-size: 12px; }
.perm-matrix .pmod .op input { cursor: pointer; }
.perm-matrix .pmod .op.on { color: var(--primary); }
.perm-matrix .pmod .scope-row { grid-column: 1 / -1; background: var(--hover); }

.apv-item, .adm-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
}
.apv-item .apv-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.apv-item .apv-title { font-weight: 600; }
.apv-item .apv-meta { font-size: 12px; color: var(--text-3); }
.apv-item .apv-actions { display: flex; gap: 8px; margin-top: 10px; }
.apv-diff { margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.apv-diff table { width: 100%; border-collapse: collapse; font-size: 13px; }
.apv-diff th, .apv-diff td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.apv-diff th { background: var(--hover); }
.apv-diff .from { color: #c0392b; text-decoration: line-through; }
.apv-diff .to { color: #1f8a4c; }
/* 审批中心：列表行可点击进详情 */
.apv-row { cursor: pointer; }
.apv-row-actions { display: inline-flex; align-items: center; gap: 8px; }
.tag.bad { background: #fdecec; color: var(--red); border-color: #f3c9c9; }
/* 审批详情：基本信息网格 */
.apv-info {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; margin-bottom: 14px;
  padding: 12px 14px; background: var(--hover); border-radius: var(--radius); font-size: 13px;
}
.apv-info > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.apv-info .full { grid-column: 1 / -1; }
.apv-info span { color: var(--text-3); font-size: 11px; }
.apv-info b { font-weight: 600; word-break: break-all; }
.apv-note { margin-bottom: 12px; padding: 8px 12px; background: #fff7e6; border: 1px solid #ffe0a3; border-radius: var(--radius); font-size: 12.5px; color: #8a5a00; }
.apv-sec { font-weight: 600; font-size: 13px; margin: 4px 0 6px; }
.badge-count { background: #e74c3c; color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }

.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.inline-form input, .inline-form select { padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 13px; }
.status-pill { font-size: 12px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--border); color: var(--text-2); }
.status-pill.active { color: #1f8a4c; border-color: #1f8a4c; }
.status-pill.disabled { color: #c0392b; border-color: #c0392b; }

/* ============ 权限导航树 ============ */
.perm-tree { font-size: 13px; }
.perm-tree input { width: auto; } /* 全局 input width:100% 会把 flex 内文字挤成逐字换行，必须重置 */
.perm-tree .pt-node { margin: 2px 0; }
.perm-tree .pt-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: var(--radius); cursor: pointer; }
.perm-tree .pt-row.pt-group { background: var(--primary-light); font-weight: 600; }
.perm-tree .pt-parent { display: flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.perm-tree .pt-caret { cursor: pointer; color: var(--primary); user-select: none; width: 14px; text-align: center; }
.perm-tree .pt-children { margin-left: 20px; padding-left: 8px; border-left: 1px dashed var(--border); }
.perm-tree .pt-children.collapsed { display: none; }
.perm-tree .pt-leaf > .pt-row { font-weight: 600; }
.perm-tree .pt-op { display: inline-flex; align-items: center; gap: 4px; margin: 2px 12px 2px 0; font-weight: 400; color: var(--text-2); white-space: nowrap; }
.perm-tree .pt-locked { color: #9aa3b2; cursor: not-allowed; }
.perm-tree .pt-locked input { cursor: not-allowed; accent-color: #aeb6c4; }
.pt-section { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.customer-settings-head{margin-bottom:12px}.quote-page{height:100%;padding:0!important;overflow:hidden}.quote-page.active{display:flex!important;flex-direction:column}.quote-section-head{margin:0;border-width:0 0 1px;border-radius:0;flex-shrink:0}.quote-section-head .panel-hd{min-height:48px;padding:7px 14px}
.native-help-text{margin:12px 0 0;padding:16px;max-height:65vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);font:13px/1.7 inherit}.native-help-text mark{background:#ffe58f}.native-help-text mark.active{background:#ffae42;outline:2px solid #ffae42}
.native-basic-info{display:grid;gap:14px}.native-basic-info .customer-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:4px 12px;align-items:end}.native-basic-info .customer-grid>div{min-width:0}.native-basic-info label{display:block;margin-bottom:4px;color:var(--text-2);font-size:var(--module-field-label-font-size)}.native-basic-info .actions{display:flex;justify-content:flex-end}.native-basic-info #basicInfoFileName{grid-column:2;overflow-wrap:anywhere}
.quote-native-app{flex:1;min-height:0;overflow:auto;padding:14px}.quote-native-app[hidden]{display:none}.native-quote{display:grid;gap:14px}.native-quote .customer-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.native-quote .customer-grid>.wide{grid-column:span 2}.native-quote .customer-grid>div,.native-quote .quote-pricing-row>div{min-width:0}.native-quote .customer-grid label.f{display:block;margin-bottom:4px}.native-quote input,.native-quote select,.native-quote textarea{max-width:100%}.native-quote .quote-pricing-row{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px}.native-quote .quote-builder{display:grid;grid-template-columns:minmax(150px,.55fr) minmax(260px,2fr) 110px minmax(150px,.8fr) auto;gap:10px;align-items:start}.native-quote .native-hazards{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:4px 8px;max-height:190px;overflow:auto;padding:8px;border:1px solid var(--border);border-radius:var(--radius);background:#fff}.native-quote .native-hazards label{display:flex;gap:6px;align-items:center;min-width:0}.native-quote .native-hazards input{width:auto}.native-quote .quote-draft-row{display:flex;align-items:center;gap:12px;padding:9px 10px;border-bottom:1px solid var(--border)}.native-quote .quote-draft-main{flex:1;min-width:0}.native-quote .quote-draft-actions{display:flex;gap:6px}.native-quote .exam-plan-card{border:1px solid var(--border);border-radius:8px;margin:12px 0;overflow:hidden}.native-quote .exam-plan-head,.native-quote .plan-price-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--bg)}.native-quote .exam-plan-actions{display:flex;gap:6px}.native-quote .plan-price-bar{flex-wrap:wrap}.native-quote .plan-price-bar input{width:100px}.native-quote .quote-warning{padding:8px 12px;color:#a66a00}.native-quote .table-scroll{max-height:45vh}.native-quote .quote-grand-summary{display:flex;gap:22px;flex-wrap:wrap}.native-quote .actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.native-quote .quote-draft-empty,.native-quote .empty{padding:20px;text-align:center;color:var(--text-3)}@media(max-width:1000px){.native-quote .customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.native-quote .quote-builder{grid-template-columns:1fr 1fr}.native-quote .quote-pricing-row{grid-column:1/-1}}@media(max-width:620px){.quote-native-app{padding:8px}.native-quote .customer-grid,.native-quote .quote-builder,.native-quote .quote-pricing-row{grid-template-columns:1fr}.native-quote .customer-grid>.wide{grid-column:auto}.native-quote .exam-plan-head{align-items:flex-start;flex-direction:column}}
.quote-native-app:not(.native-hazard-app){box-sizing:border-box;padding:18px 20px;background:#f2f4f9;overflow-x:hidden;overflow-y:auto}.quote-native-app:not(.native-hazard-app)>.native-quote{min-height:100%;align-content:start}.quote-native-app:not(.native-hazard-app) .native-quote>.card{min-width:0;margin:0;background:#fff;border:1px solid var(--border);border-radius:10px;padding:18px}.quote-native-app:not(.native-hazard-app) .native-quote .toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}.quote-native-app:not(.native-hazard-app) .native-quote .toolbar h2{margin:0;font-size:18px;font-weight:700}.quote-native-app:not(.native-hazard-app) .native-quote .quote-description textarea{width:100%;min-height:90px;resize:vertical}
.quality-page{height:100%;overflow:auto;padding:var(--module-page-padding)!important}.quality-section-head{margin-bottom:14px}.quality-content{display:grid;gap:14px}.quality-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.quality-cards>div{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;display:grid;gap:5px}.quality-cards span{color:var(--text-2)}.quality-cards strong{font-size:26px;color:var(--primary)}.quality-cards .warning strong{color:var(--orange)}.quality-list .panel-hd,.quality-due .panel-hd{gap:10px;flex-wrap:wrap}.quality-empty{padding:34px;text-align:center;color:var(--text-3)}.quality-status{display:inline-block;padding:2px 8px;background:var(--primary-light);color:var(--primary);border-radius:12px;white-space:nowrap}.quality-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px}.quality-form label{display:grid;gap:5px;color:var(--text-2)}.quality-form input,.quality-form select,.quality-form textarea{width:100%;min-width:0;padding:7px 9px;border:1px solid var(--border);border-radius:var(--radius);font:inherit;color:var(--text)}.quality-form .wide-field{grid-column:1/-1}.quality-revisions{padding-left:20px;margin:8px 0}.quality-revisions li{padding:4px 0}.quality-revisions span{color:var(--text-3);margin-left:8px}.quality-standard-frame{width:100%;height:min(72vh,850px);border:0;border-radius:var(--radius);background:#f4f6f9;visibility:hidden}.quality-standard-frame.loaded{visibility:visible}@media(max-width:900px){.quality-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.quality-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
.quality-tools,.quality-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.quality-report h3,.quality-detail-meta{margin-bottom:8px}.quality-report-chips{display:flex;gap:10px;flex-wrap:wrap}.quality-report-chips span{padding:6px 10px;background:var(--bg);border-radius:var(--radius)}.quality-detail-meta{padding:10px;background:var(--bg);border-radius:var(--radius);color:var(--text-2)}.quality-toolbar{margin:12px 0 18px}.quality-form select[multiple]{min-height:90px}.quality-report{padding:14px}.quality-form-hint{margin-top:12px;color:var(--text-3)}

.native-standard-host #tab-standard-query{display:block!important}.native-standard-host #tab-standard-query>.card{padding:18px}.native-standard-host .standard-filter-grid{grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px;margin:12px 0 16px}.native-standard-host .standard-filter-grid input,.native-standard-host .standard-filter-grid select{height:36px;border:1px solid var(--border);border-radius:var(--radius);padding:6px 10px;background:#fff;color:var(--text)}.native-standard-host .standard-table{min-width:1480px}.native-standard-host .standard-table thead th{background:var(--bg);color:var(--text-2)}.native-standard-host .standard-table td{border-bottom:1px solid var(--border)}.native-standard-host .standard-option-card{border-color:var(--border);border-radius:var(--radius)}.native-standard-host .standard-option-title{background:var(--bg);color:var(--text)}.native-standard-host .standard-checkbox-group{border-color:var(--border)}.native-standard-host .standard-checkbox-group label{background:var(--primary-light);color:var(--text-2)}.native-compare{margin-top:14px}.native-compare .toolbar{flex-wrap:wrap}.native-compare .table-wrap{max-height:calc(100vh - 340px);overflow:auto;border:1px solid var(--border);border-radius:var(--radius)}.native-compare table{min-width:1480px;table-layout:fixed}.native-compare th{position:sticky;top:0;z-index:2;background:var(--bg);color:var(--text-2)}.native-compare td{max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.native-compare-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.native-compare-form label{display:grid;gap:5px;color:var(--text-2)}.native-compare-form input,.native-compare-form select,.native-compare-form textarea{width:100%;min-width:0}.native-compare-form textarea{min-height:90px}.native-compare-options{display:grid;gap:7px;max-height:55vh;overflow:auto;margin-top:12px}.native-compare-options>div{display:flex;align-items:center;gap:8px;padding:8px;border-bottom:1px solid var(--border)}.native-compare-options>div>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.native-compare-options .hint{white-space:nowrap}@media(max-width:900px){.native-standard-host .standard-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.native-standard-host #tab-standard-query>.card{padding:12px}.native-standard-host .standard-filter-grid,.native-compare-form{grid-template-columns:1fr}.native-compare .toolbar{align-items:flex-start}.native-compare-options>div{flex-wrap:wrap}}

/* 全站标准操作按钮：与“新增客户”保持一致。图标、标签和文本链接型控件保留原尺寸。 */
.btn,
.btn-primary,
.btn-danger,
.btn-warn,
.btn-ghost,
.btn-mini,
.btn-sm {
  height: var(--module-action-height) !important;
  min-height: var(--module-action-height) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.page button:not(.close):not(.chip-remove):not(.icon-btn):not(.link-btn):not(.home-menu-card),
.mask button:not(.close):not(.chip-remove):not(.icon-btn):not(.link-btn),
.modal-ft button {
  height: var(--module-action-height) !important;
  min-height: var(--module-action-height) !important;
}
.home-menu-card {
  height: auto !important;
  min-height: 0 !important;
}

/* 表格正文行内操作按钮与业务类型标签保持相同字号和高度。 */
.layout main .page .table-wrap tbody button:not(.chip-remove):not(.icon-btn):not(.link-btn) {
  height: var(--module-table-action-height) !important;
  min-height: var(--module-table-action-height) !important;
  padding: 1px 7px;
  font-size: 11px;
  line-height: 1.6;
}
.quote-native-app:not(.native-hazard-app)>.native-quote{display:flex;flex-direction:column;align-items:stretch;gap:14px}.quote-native-app:not(.native-hazard-app) .native-quote>.card{flex:0 0 auto;height:auto;min-height:0}
main.quote-host{display:flex;flex-direction:column;min-height:0}main.quote-host>.quote-page.active{display:flex!important;flex:1 1 auto;flex-direction:column;height:auto;min-height:0}.quote-page.active>#quoteNativeApp:not([hidden]){flex:1 1 auto;min-height:0}
.native-quote .hazard-multi{position:relative;min-width:0}.native-quote .hazard-control{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;height:auto!important;padding:7px 10px;background:#fff;border:1px solid var(--border);border-radius:var(--radius);color:var(--text);text-align:left;white-space:normal}.native-quote .hazard-selected{display:flex;align-items:center;gap:5px;flex:1;flex-wrap:wrap;min-width:0;color:var(--text-3)}.native-quote .removable-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:2px 7px;background:var(--primary-light);border-radius:12px;color:var(--text)}.native-quote .hazard-panel-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.native-quote .hazard-panel-toolbar .btn{height:38px!important;min-height:38px!important;white-space:nowrap}.native-quote .hazard-panel{display:none;position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:50;padding:8px;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 12px 30px #1f243026}.native-quote .hazard-panel.show{display:block}.native-quote .hazard-options{max-height:280px;overflow:auto;padding-top:6px}.native-quote .hazard-option{display:flex;align-items:center;gap:8px;padding:7px 6px;border-bottom:1px solid #eef1f5;cursor:pointer}.native-quote .hazard-option:hover{background:#f6f8fc}.native-quote .hazard-option input{width:auto;flex:0 0 auto}

/* 报价模块沿用原报价系统的字号、控件与明细滚动布局。 */
.native-quote{font:14px "Microsoft YaHei",system-ui,sans-serif;color:#1f2430}
.native-quote input,.native-quote select,.native-quote textarea,.native-quote button{font-family:inherit;font-size:14px;box-sizing:border-box}
.native-quote label.f{display:block;font-size:13px;font-weight:600;color:#6b7280;margin-bottom:5px}
.native-quote input,.native-quote select,.native-quote textarea{width:100%;border:1px solid #e2e6ee;border-radius:6px;background:#fff;color:inherit;padding:8px 10px;min-width:0}
.native-quote .hint,.native-quote .muted{font-size:12px;color:#868d9b;line-height:1.6}
.native-quote .btn{background:#436cf5;border:1px solid transparent;color:#fff;border-radius:6px;padding:7px 12px;cursor:pointer;white-space:nowrap}
.native-quote .btn.ghost{background:#eef1f8;color:#374151}
.native-quote .btn.danger{background:#fff;border-color:#ffc9c9;color:#e03131}
.native-quote .quote-history-actions .btn.ghost,.native-quote .quote-records-table .btn.ghost[data-export]{background:#fff;border-color:#b9ccff;color:var(--primary)}
.native-quote .quote-draft-actions .btn:last-child{background:#dc3c3c;border-color:#dc3c3c;color:#fff}
.native-quote .btn.edit{background:#f08c00}
.native-quote .btn.sm{font-size:12px;padding:5px 9px}
.native-quote .quote-builder{padding:12px;background:#f8faff;border:1px solid #e7ecf5;border-radius:8px;align-items:end;grid-template-columns:150px minmax(220px,1fr) 125px minmax(150px,.4fr) auto}
.native-quote .quote-builder input,.native-quote .quote-builder select{height:var(--module-action-height)!important;min-height:var(--module-action-height)!important;box-sizing:border-box}
.native-quote #nqNote { width: 100%; height: var(--module-action-height); padding: 0 8px; box-sizing: border-box; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.native-quote #nqNote:not([data-note]), .native-quote #nqNote[data-note=""] { color: var(--text-3); }
.native-quote .quote-plan-note-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; }
.native-quote .quote-plan-note-dialog::backdrop { background: rgba(20, 31, 49, .45); }
.native-quote #nqHazardControl{height:auto!important;min-height:var(--module-action-height)!important;padding-top:3px;padding-bottom:3px;box-sizing:border-box}
.native-quote #nqAddPlan{align-self:end;margin-bottom:0}
.native-quote .hazard-control{font-size:14px}
.native-quote .quote-builder .hazard-selected{flex-wrap:wrap;overflow:visible;align-items:center}
.native-quote .quote-builder .removable-chip{min-width:0;white-space:normal;overflow-wrap:anywhere}
.native-quote .removable-chip{border-radius:4px;font-size:12px}
.native-quote .chip-remove{border:0;background:none;color:#868d9b;padding:0 2px;cursor:pointer;height:auto!important;min-height:0!important}
.native-quote .quote-draft-list{margin:12px 0;border:1px solid #e7ecf5;border-radius:8px;overflow:hidden}
.native-quote .quote-draft-row:last-child{border-bottom:0}
.native-quote .exam-plan-card tbody tr:hover>td{background:#dce8f7}
.quote-import-modal .quote-import-row-actions button[data-remove]{color:#e53935;border:1px solid #ffb4b4;background:#fff}
.native-quote .quote-draft-row{padding-top:3px;padding-bottom:3px}
.native-quote .quote-draft-order{background:#eef3ff;color:#436cf5;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;font-weight:700;flex-shrink:0}
.native-quote .quote-draft-main{display:flex;align-items:center;gap:18px}
.native-quote .quote-draft-main>b{flex:0 0 230px}
.native-quote .quote-draft-hazards{color:#868d9b;font-size:12px;margin:0;min-width:0;overflow-wrap:anywhere}
.native-quote .quote-plan-note { white-space: pre-line; overflow-wrap: anywhere; }
.native-quote .quote-generate-actions{display:flex;justify-content:flex-end;gap:12px}
.native-quote .exam-plan-head{background:#f6f8fd}
.native-quote h3{margin:0 0 4px;font-size:15px}
.native-quote .table-scroll{overflow:auto;max-height:340px;position:relative}
.native-quote .table-scroll table{width:100%;min-width:800px;border-collapse:collapse;table-layout:fixed}
.native-quote .table-scroll th,.native-quote .table-scroll td{padding:4px 8px;border-bottom:1px solid #e7ecf5;border-right:1px solid #e7ecf5;text-align:left;overflow-wrap:anywhere;line-height:1.4}
.native-quote .table-scroll td input{height:var(--module-table-action-height)!important;min-height:var(--module-table-action-height)!important;padding:1px 7px;text-align:left}
.native-quote .table-scroll th:nth-child(6),.native-quote .table-scroll th:nth-child(7),.native-quote .table-scroll td:nth-child(6),.native-quote .table-scroll td:nth-child(7),.native-quote .table-scroll td:nth-child(6) input{text-align:right}
.native-quote .table-scroll td .btn.sm{height:var(--module-table-action-height)!important;min-height:var(--module-table-action-height)!important;padding:1px 8px}
@media(max-width:650px){.native-quote .quote-draft-main{flex-wrap:wrap;gap:4px}.native-quote .quote-draft-main>b{flex-basis:auto}}
.native-quote .table-scroll th{position:sticky;top:0;background:#f6f8fd;z-index:1;color:#5f6b7a;font-size:13px}
.native-quote .table-scroll th:nth-child(1){width:50px}.native-quote .table-scroll th:nth-child(2){width:90px}.native-quote .table-scroll th:nth-child(6){width:115px}.native-quote .table-scroll th:nth-child(7){width:100px}.native-quote .table-scroll th:nth-child(8){width:70px}
.native-quote .table-scroll td:nth-child(7),.native-quote .quote-grand-summary b,.native-quote .plan-price-bar b{color:#3d61db;font-weight:700}
.native-quote .plan-price-bar{position:static;justify-content:flex-end;background:#fafbfe;border-top:1px solid #e7ecf5;font-size:13px}
.native-quote .plan-price-bar label{display:flex;align-items:center;gap:8px}
.native-quote .quote-grand-summary{background:#f6f8fd;border:1px solid #e7ecf5;border-radius:8px;padding:14px;margin-top:14px;gap:20px}
.native-quote .quote-grand-summary b{font-size:19px}
.quote-general-modal{max-width:980px;width:calc(100vw - 32px);border-radius:12px;font:14px "Microsoft YaHei",system-ui,sans-serif}
.quote-general-modal .modal-hd{border:0;padding:22px 22px 14px}.quote-general-modal .modal-hd h3{font-size:19px;font-weight:700}
.quote-general-modal .modal-bd{padding:0 22px 18px;max-height:70vh}
.quote-general-modal label{display:grid;gap:5px;color:#6b7280;font-size:13px;font-weight:600}
.quote-general-modal input,.quote-general-modal textarea{width:100%;box-sizing:border-box;font:14px "Microsoft YaHei",system-ui,sans-serif;padding:9px 10px;border:1px solid #cfd6e2;border-radius:6px;min-width:0;color:#1f2430;background:#fff}
.quote-general-modal textarea{min-height:84px;resize:vertical}
.quote-general-modal .general-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.quote-general-modal .general-picker{position:relative;margin-top:2px}
.quote-general-modal .general-picker::after{content:'▾';position:absolute;right:12px;top:29px;pointer-events:none;color:#1f2430}
.quote-general-modal .general-picker input{padding-right:30px}
.quote-general-modal .general-hint{color:#868d9b;font-size:12px;margin:8px 0 14px}
.quote-general-modal .general-selection-head{display:flex;justify-content:space-between;color:#6b7280;font-size:13px;margin-bottom:6px}
.quote-general-modal .general-selected{min-height:72px;max-height:200px;overflow:auto;background:#fafbfe;margin-bottom:14px}
.quote-general-modal .general-selected-item{display:flex;align-items:center;gap:12px;padding:8px 10px;border-bottom:1px solid #e7ecf5;font-size:13px}
.quote-general-modal .general-selected-item b{flex:1}.quote-general-modal .general-selected-item button{border:0;background:transparent;color:#dc3c3c;cursor:pointer;height:auto!important;min-height:0!important;font-size:18px}
.quote-general-modal .general-empty{padding:24px 12px;text-align:center;color:#868d9b}
.quote-general-modal .general-projects{position:absolute;top:100%;left:0;right:0;z-index:2;max-height:200px;overflow:auto;background:#fff;border:1px solid #e2e6ee;border-radius:6px;box-shadow:0 4px 14px #0002}
.quote-general-modal .general-projects[hidden]{display:none}
.quote-general-modal .general-projects button{display:block;width:100%;text-align:left;border:0;background:#fff;padding:10px 12px;font:14px "Microsoft YaHei",system-ui,sans-serif;cursor:pointer;height:auto!important;min-height:0!important;color:#1f2430}
.quote-general-modal .general-projects button:hover,.quote-general-modal .general-projects button:focus{background:#eef3ff}
.quote-general-modal .modal-ft{border:0;padding:0 22px 20px}
.quote-general-modal .modal-ft button{font:14px "Microsoft YaHei",system-ui,sans-serif;height:var(--module-action-height)!important;padding:4px 16px;border-radius:6px}
.quote-general-modal .modal-ft .ghost{background:#eef1f8;border:0;color:#1f2430}.quote-general-modal .modal-ft .btn-primary{background:#436cf5}
@media(max-width:620px){.quote-general-modal .general-form-row{grid-template-columns:1fr}}
@media(max-width:1100px){.native-quote .quote-builder{grid-template-columns:150px minmax(0,1fr) 125px}.native-quote .quote-builder>button{justify-self:end}}
@media(max-width:650px){.native-quote .quote-builder{grid-template-columns:1fr}.native-quote .quote-draft-row{flex-wrap:wrap}.native-quote .quote-draft-actions{margin-left:auto}.native-quote .actions,.native-quote .quote-generate-actions{flex-wrap:wrap}.native-quote .exam-plan-actions{flex-wrap:wrap}}

/* 单行表单控件与同场景操作按钮共用高度；多行与选择型控件保留自身尺寸。 */
body :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=button]):not([type=submit]):not([type=reset]):not([type=image]),select:not([multiple]):not([size])){height:var(--module-action-height)!important;min-height:var(--module-action-height)!important;box-sizing:border-box;padding-top:3px;padding-bottom:3px}
body table td input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]),body table td select:not([multiple]):not([size]){height:var(--module-table-action-height)!important;min-height:var(--module-table-action-height)!important;padding-top:1px;padding-bottom:1px}
.native-quote .hazard-panel-toolbar .btn{height:var(--module-action-height)!important;min-height:var(--module-action-height)!important}
/* 原生下拉框须留足文字区域，避免固定高度下被原模块内边距裁切。 */
body select:not([multiple]):not([size]){padding-top:0!important;padding-bottom:0!important;line-height:normal!important}
/* 页面及弹窗的输入框上方字段标签统一使用较小字号。 */
body label.f,body .field>label,body .field-label-row>label,body .quality-form>label,body .native-compare-form>label,body .quote-general-modal label:not(:has(input[type=checkbox])),body .login-card label,body .native-basic-info label,body label:has(>input:not([type=checkbox]):not([type=radio])),body label:has(>select),body label:has(>textarea){font-size:var(--module-field-label-font-size)!important}
.native-quote #nqDescription,.quote-description-template textarea{font-family:SimSun,"Songti SC",serif;font-size:14px;line-height:1.65;letter-spacing:normal;word-spacing:normal}
.quote-description-template textarea{min-height:220px}
/* 报价方案管理、导入和排序 */
.native-quote .quote-status-label{display:flex;align-items:center;gap:8px}
.native-quote .quote-status-label .btn{height:24px;min-height:24px;padding:0 8px}
.native-quote .quote-draft-row[draggable=true]{cursor:grab}
.native-quote .quote-draft-row.dragging{opacity:.45}

/* 职检报价设置：沿用旧平台的工具栏、列表、选项卡片和弹窗结构。 */
.native-settings-host>.native-settings-card{background:#fff;border:1px solid #e2e6ee;border-radius:10px;padding:16px 18px;box-shadow:0 1px 3px #00000008}
.native-settings-host .toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.native-settings-host h2{margin:0;font-size:17px}.native-settings-host .hint{font-size:12px;color:#6b7280;line-height:1.6}
.native-settings-host .flex{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.native-settings-host .settings-filters{display:flex;justify-content:flex-end;gap:12px;margin-bottom:12px;align-items:center}
.native-settings-host #nqsSearch{width:320px;max-width:100%}.native-settings-host .settings-filters select{flex:1;min-width:150px}.native-settings-host .settings-filters:has(select) #nqsSearch{flex:2;width:auto}
.native-settings-host input,.native-settings-host select,.native-settings-host textarea{min-width:0;width:100%;padding:8px 10px;border:1px solid #cfd6e2;border-radius:6px;font:inherit;background:#fff}
.native-settings-host input[type=checkbox]{width:auto}.native-settings-host .table-scroll{max-height:68vh;overflow:auto}
.native-settings-host table{width:100%;border-collapse:collapse;font-size:13px;min-width:1050px}
.native-settings-host th,.native-settings-host td{border:1px solid #e2e6ee;padding:8px 9px;text-align:left;vertical-align:middle}
.native-settings-host th{position:sticky;top:0;z-index:2;background:#f6f8fc;color:#37414f;white-space:nowrap}
.native-settings-host td:last-child{white-space:nowrap}.native-settings-host tr:hover td{background:#fafbfe}
.native-settings-host .settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.native-settings-host .settings-form>label{display:grid;gap:4px;font-size:12px;color:#6b7280;font-weight:600}
.native-settings-host .settings-modal .modal{width:min(980px,calc(100% - 24px));padding:20px 22px;max-height:90vh;overflow:auto}.native-settings-host .settings-modal h3{margin:0 0 14px}
.native-settings-host .settings-modal .actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.native-settings-host .settings-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-height:none}
.native-settings-host .settings-option-grid>.card{border:1px solid #e2e6ee;border-radius:9px;overflow:hidden;padding:0;margin:0}
.native-settings-host .settings-option-grid h3{margin:0;padding:12px 14px;background:#f6f8fc;border-bottom:1px solid #e2e6ee;font-size:14px}
.native-settings-host .settings-option-grid .card>.flex{padding:8px 12px;flex-wrap:nowrap;border-bottom:1px solid #e2e6ee}
.native-settings-host .settings-option-grid .card>.flex:last-child{display:block;max-height:320px;overflow:auto}.native-settings-host .settings-option-grid .chip{display:flex;align-items:center;justify-content:space-between;min-height:36px;border-bottom:1px solid #eef1f5;padding:2px;background:none;border-radius:0}
.native-settings-host .settings-option-grid .chip button{color:#e03131;background:#fff;border:1px solid #f3c0c0;border-radius:5px;cursor:pointer}
.native-settings-host .settings-summary{display:flex;gap:24px;background:#f6f8fc;border:1px solid #e2e6ee;padding:12px 16px;border-radius:8px;margin-top:12px}.native-settings-host .settings-summary b{font-size:19px;color:#1858c4}
.native-settings-host .scheme-items{display:flex;gap:5px;flex-wrap:wrap}.native-settings-host .scheme-items .chip{background:#f0f3f8;border:1px solid #dce2ec;border-radius:5px;padding:2px 6px;font-size:12px}
.native-settings-host .settings-picker{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-top:12px}.native-settings-host .settings-picker>div{border:1px solid #e2e6ee;border-radius:8px;padding:10px;max-height:42vh;overflow:auto}.native-settings-host .settings-picker label{display:flex;gap:7px;align-items:center;padding:5px 8px;border-bottom:1px solid #eef1f5}.native-settings-host .settings-picker h4{margin:0 0 10px}.native-settings-host .settings-picker input[type=search]{margin-bottom:8px}
.native-settings-host .settings-pager{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:10px;font-size:12px;color:#6b7280}.native-settings-host .settings-filters:has(#nqspAll){justify-content:space-between}.native-settings-host .settings-project-table{min-width:1400px;table-layout:fixed}.native-settings-host .settings-project-table th:first-child{width:42px}.native-settings-host .settings-project-table th:nth-child(2){width:92px}.native-settings-host .settings-project-table th:nth-child(3){width:112px}.native-settings-host .settings-project-table th:nth-child(4){width:270px}.native-settings-host .settings-project-table th:nth-child(5){width:118px}.native-settings-host .settings-project-table th:nth-child(n+6):nth-child(-n+10){width:74px}.native-settings-host .settings-project-table th:last-child{width:154px}.native-settings-host .settings-project-table th,.native-settings-host .settings-project-table td{height:36px;padding:2px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.native-settings-host .settings-project-table td:nth-child(6){text-align:right}.native-settings-host .settings-project-usage{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.native-settings-host .settings-project-usage.expanded{white-space:normal}
.native-settings-host .settings-form>[hidden]{display:none}.native-settings-host .btn{background:#1f6feb;color:#fff;border:1px solid transparent;border-radius:6px;padding:8px 16px;cursor:pointer;white-space:nowrap}.native-settings-host .btn.ghost{background:#eef2f8;color:#1f2430}.native-settings-host .btn.danger{background:#fff;color:#e03131;border-color:#f3c0c0}.native-settings-host .btn.sm{padding:5px 11px;font-size:13px}.native-settings-host .btn:disabled{opacity:.5;cursor:default}
.native-settings-host .native-compare td{white-space:normal;line-height:1.5;vertical-align:top}.native-settings-host .native-compare th:last-child,.native-settings-host .native-compare td:last-child{position:sticky;right:0;background:#fff;box-shadow:-5px 0 8px #1f24300d}.native-settings-host .native-compare th:last-child{background:#f6f8fc;z-index:3}
@media(max-width:760px){.native-settings-host .settings-option-grid,.native-settings-host .settings-form,.native-settings-host .settings-picker{grid-template-columns:1fr}.native-settings-host .settings-filters{flex-wrap:wrap}.native-settings-host .settings-filters #nqsSearch{width:100%;flex-basis:100%}}
.quote-native-app.native-settings-host:has(.settings-project-table){display:flex;flex-direction:column;overflow:hidden}
.native-settings-host:has(.settings-project-table)>.native-settings-card{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;margin:0;overflow:hidden}
.native-settings-host:has(.settings-project-table) .toolbar,.native-settings-host:has(.settings-project-table) .settings-filters,.native-settings-host:has(.settings-project-table) .settings-pager{flex:0 0 auto}
.native-settings-host:has(.settings-project-table) #nqsContent{flex:1;min-height:0;max-height:none;padding:0;position:relative;overflow:auto}
.native-settings-host .settings-project-table{border-collapse:separate;border-spacing:0}
.native-settings-host .settings-project-table thead{position:sticky;top:0;z-index:3;background:#f6f8fc}
.native-settings-host .settings-project-table thead th{position:static;background:#f6f8fc}
.native-settings-host .settings-project-table th,.native-settings-host .settings-project-table td{border-width:0 1px 1px 0}
.native-settings-host .settings-project-table tr>*:first-child{border-left-width:1px}
.native-settings-host .settings-project-table thead th{border-top-width:1px}
.native-settings-host .settings-project-table thead th{position:relative}
.native-settings-host th>.col-resizer{right:0;width:7px;z-index:5;background:transparent}
.native-settings-host th>.col-resizer::after{display:none}
.native-settings-host th:has(>.col-resizer){overflow:visible}
.native-settings-host table td{overflow:hidden;text-overflow:ellipsis}
.native-settings-host .settings-option-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.native-settings-host .settings-option-grid .chip .settings-option-usage{border:0;background:none;color:#1f6feb;text-decoration:underline;padding:0;white-space:nowrap;margin:0 12px}
.native-settings-host .settings-option-unused{margin:0 12px;white-space:nowrap}
.native-settings-host .settings-option-projects{max-height:55vh;overflow:auto;margin-top:10px}
.native-settings-host .settings-option-projects button{display:block;width:100%;text-align:left;padding:7px 5px;border:0;border-bottom:1px solid #eef1f5;background:#fff;color:#1f6feb;cursor:pointer;font:inherit}
.native-settings-host .settings-option-actions{display:flex;gap:5px;flex-shrink:0}
.native-settings-host .settings-option-grid .chip .btn.ghost{border-color:transparent;background:#eef2f8;color:#1f2430}
.native-settings-host .settings-option-grid .chip .btn:not(.ghost):not(.danger){background:#1f6feb;color:#fff;border-color:transparent}
.native-settings-host .settings-option-edit{flex:1;min-width:0}
.native-settings-host .settings-project-table .btn[data-edit]{background:#fff;border-color:#1f6feb;color:#1f6feb}
.native-settings-host .settings-project-table .btn[data-toggle]{background:#fff;border-color:#e6a000;color:#e6a000}
.native-settings-host .settings-project-table .btn[data-edit]+.btn[data-toggle]{margin-left:8px}
#quoteNativeApp.native-settings-host .settings-project-table tbody .btn{height:var(--module-table-action-height)!important;min-height:var(--module-table-action-height)!important;font-size:11px;padding:1px 7px}
.native-settings-host #nqspPageJump{width:82px;flex:0 0 82px}
.native-settings-host th.settings-sortable{cursor:pointer;user-select:none}
.native-settings-host th.settings-sortable:hover{background:#edf3ff;color:#1858c4}
.native-settings-host th.settings-sortable::after{content:'↕';display:inline-block;margin-left:6px;color:#9aa4b2;font-size:11px}
.native-settings-host th.settings-sortable[data-dir=asc]::after{content:'↑';color:#1f6feb}
.native-settings-host th.settings-sortable[data-dir=desc]::after{content:'↓';color:#1f6feb}
.native-settings-host .settings-project-status{display:inline-block;padding:2px 9px;border-radius:16px;font-size:12px;font-weight:700}
.native-settings-host .settings-project-status.enabled{background:#e6f7ec;color:#2f9e44}
.native-settings-host .settings-project-table th:nth-child(11){width:260px}
.native-settings-host .settings-modal .actions[hidden]{display:none}
.native-settings-host .settings-form[hidden]{display:none}
.native-settings-host .settings-scheme-references{max-height:52vh;overflow:auto;margin-top:10px}
.native-settings-host .settings-scheme-references button{display:block;width:100%;padding:7px 5px;border:0;border-bottom:1px solid #eef1f5;background:#fff;text-align:left;font:inherit;color:var(--text);cursor:pointer}
.native-settings-host .settings-scheme-references button:hover{background:#eef4ff;color:#1f6feb}
.native-settings-host .settings-scheme-references button>span{font-family:Consolas,monospace;color:#42526a}
.native-settings-host .settings-modal>.modal{position:relative}
.native-settings-host .settings-modal>.modal>.close{position:absolute;top:16px;right:16px;float:none;border:0;background:transparent;color:#6b7280;width:28px;height:28px;min-height:0;padding:0;font-size:22px;line-height:1;cursor:pointer}
.native-settings-host .settings-modal>.modal>h3{padding-right:36px}
#quoteNativeApp #tab-hazard-identification-records{height:100%;min-height:0;overflow:hidden}
#quoteNativeApp #tab-hazard-identification-records>.card{height:100%;min-height:0;display:flex;flex-direction:column;margin-bottom:0}
#quoteNativeApp #tab-hazard-identification-records .toolbar{flex:0 0 auto}
#quoteNativeApp #tab-hazard-identification-records .table-wrap{flex:1;min-height:0;max-height:none;overflow:auto}
#quoteNativeApp .hazard-record-table{table-layout:fixed;border-collapse:separate;border-spacing:0;min-width:1100px;font-size:12.5px}
#quoteNativeApp .hazard-record-table th,#quoteNativeApp .hazard-record-table td{height:var(--module-table-row-height);padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;border-right:1px solid var(--border);border-bottom:1px solid var(--border)}
#quoteNativeApp .hazard-record-table thead{position:sticky;top:0;z-index:3;background:#f7f9fb}
#quoteNativeApp .hazard-record-table th{position:relative;text-align:center}
#quoteNativeApp .hazard-record-table:has(> colgroup){min-width:0}
#quoteNativeApp .hazard-record-table th:nth-child(4){width:25%}
#quoteNativeApp .hazard-record-table th:nth-child(5){width:7%}
#quoteNativeApp .hazard-record-table th:nth-child(6){width:17%}
#quoteNativeApp .hazard-record-table th:last-child{width:210px}
#quoteNativeApp .hazard-record-table tbody button.btn{height:var(--module-table-action-height)!important;min-height:var(--module-table-action-height)!important;padding:1px 7px;font-size:11px;line-height:1}
#quoteNativeApp .hazard-record-table .hazard-record-delete{background:#fff!important;border:1px solid var(--red);color:var(--red)!important}
#quoteNativeApp .hazard-record-table .hazard-record-quote{background:#fff!important;border:1px solid #1f6feb;color:#1f6feb!important}
#quoteNativeApp .hazard-record-table .hazard-record-edit{background:#fff!important;border:1px solid #e6a000;color:#e6a000!important}
#quoteNativeApp .hazard-record-table .hazard-record-actions{gap:8px;justify-content:center}
#quoteNativeApp .hazard-record-modal .hazard-identification-table{min-width:1600px}
#quoteNativeApp .hazard-record-modal .hazard-original-source{white-space:pre-wrap;overflow-wrap:anywhere;min-width:220px}
#quoteNativeApp #tab-hazard-identification .hazard-original-source{white-space:pre-wrap;overflow-wrap:anywhere;min-width:220px}
#quoteNativeApp #tab-hazard-identification .hazard-identification-table{min-width:1600px}
#tab-hazard-identification .hazard-chip { max-width: 100%; min-width: 0; }
#tab-hazard-identification .hazard-chip-value { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#tab-hazard-identification .hazard-chip-remove { flex: 0 0 20px; }
#tab-hazard-identification .hazard-factor-list { min-height: var(--module-table-action-height); }
#tab-hazard-identification .hazard-chip, #tab-hazard-identification .hazard-add { height: var(--module-table-action-height) !important; min-height: var(--module-table-action-height) !important; }
#tab-hazard-identification .hazard-chip { margin: 0; }
#tab-hazard-identification .hazard-chip-value, #tab-hazard-identification .hazard-chip-remove { height: calc(var(--module-table-action-height) - 2px) !important; min-height: 0 !important; }
#tab-hazard-identification .hazard-add { width: var(--module-table-action-height); font-size: 14px; line-height: 1; }
#tab-hazard-identification .hazard-identification-client > div:has(> button) { grid-template-columns: auto auto minmax(0, 1fr); }
#quoteNativeApp #tab-hazard-identification .hazard-row-actions { display: inline-flex; align-items: center; gap: 8px; }
#quoteNativeApp #tab-hazard-identification .hazard-row-actions .btn { height: var(--module-table-action-height) !important; min-height: var(--module-table-action-height) !important; padding: 1px 7px; font-size: 11px; }
#tab-hazard-identification .hazard-row-handle { display: block; cursor: grab; user-select: none; }
#tab-hazard-identification .hazard-row-handle:active { cursor: grabbing; }
#tab-hazard-identification tr[data-drop-position="before"] > td { box-shadow: inset 0 2px var(--primary); }
#tab-hazard-identification tr[data-drop-position="after"] > td { box-shadow: inset 0 -2px var(--primary); }
#hazardModal .hazard-multi-trigger { min-height: var(--module-action-height); padding: 2px 6px; box-sizing: border-box; }
#hazardModal .hazard-multi-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; white-space: normal; overflow: visible; }
#hazardModal .hazard-multi-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 6px; background: var(--hover); border: 1px solid var(--border); border-radius: var(--radius); overflow-wrap: anywhere; min-width: 0; }
#hazardModal .hazard-multi-remove, #hazardModal .hazard-multi-arrow { height: 20px !important; min-height: 20px !important; min-width: 20px; padding: 0 2px; border: 0; background: transparent; color: var(--text-2); }
#hazardModal .hazard-multi-remove:hover { color: var(--red); }
.quote-import-modal{display:flex;flex-direction:column;overflow:hidden}
.quote-import-modal .modal-hd,.quote-import-modal .modal-ft{flex-shrink:0}
.quote-import-modal .modal-bd{display:flex;flex-direction:column;min-height:0;overflow:hidden;flex:1}
.quote-import-modal .modal-bd>.hint,.quote-import-modal .quote-import-legend{flex-shrink:0}
.quote-import-modal .table-scroll{min-height:0;max-height:55vh;overflow:auto;flex:1 1 auto}
.quote-import-modal table{width:100%;table-layout:fixed;border-collapse:collapse}
.quote-import-modal th,.quote-import-modal td{white-space:normal;text-align:left;border:1px solid #dfe5ef;padding:10px;overflow-wrap:anywhere}
.quote-import-modal th.quote-import-sequence{white-space:nowrap;overflow-wrap:normal}
.quote-import-modal thead th,.quote-import-modal tbody td:first-child{text-align:center}
.quote-import-modal .quote-import-legend{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 8px;color:#6b7280}
.quote-import-modal .quote-import-legend span{padding:2px 6px;border-radius:4px}
.quote-import-modal .quote-import-status,.quote-import-modal .quote-import-hazard-view{border:0;cursor:pointer;text-align:left;font:inherit;width:100%;padding:5px 7px;border-radius:5px;height:auto;min-height:30px;white-space:normal}
.quote-import-modal .quote-import-hazard-view{display:flex;flex-wrap:wrap;gap:5px;background:transparent}
.quote-import-modal .quote-import-chip{border-radius:18px;padding:3px 8px;white-space:normal}
.quote-import-modal .quote-import-edit-list{display:grid;gap:5px}
.quote-import-modal .quote-import-edit-item{display:flex;gap:5px;align-items:center}
.quote-import-modal .quote-import-edit-item input{min-width:0;flex:1}
body .mask .modal.quote-import-modal .quote-import-edit-item button[data-remove-hazard]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;box-sizing:border-box;width:24px;min-width:24px;max-width:24px;height:24px!important;min-height:24px!important;max-height:24px;padding:0!important;line-height:1;border:0;border-radius:50%;color:#c62828;background:#feecec;cursor:pointer}
.quote-import-modal .quote-import-add{border:1px dashed #9eabff;background:transparent;color:#4361ee;border-radius:5px;padding:5px;cursor:pointer;justify-self:start}
.quote-import-modal .quote-import-row-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
.quote-import-modal tr.editing{background:#f8faff}
/* 多行危害因素标签不能套用普通按钮的固定高度。 */
body .mask .modal.quote-import-modal button.quote-import-hazard-view[data-edit]{height:auto!important;min-height:0!important;max-height:none;overflow:visible;align-items:center}
body .mask .modal.quote-import-modal th,body .mask .modal.quote-import-modal td{vertical-align:middle;height:auto;overflow:visible}
.quote-import-modal .quote-import-row-actions{margin-top:0;align-items:center}
.quote-import-modal .match-exact{color:#35783c}
.quote-import-modal .match-fuzzy{color:#946100}
.quote-import-modal .match-unmatched{color:#c62828}
.quote-import-modal .match-exact{background:#eaf8ee}
.quote-import-modal .match-fuzzy{background:#fff7d6}
.quote-import-modal .match-unmatched{background:#feecec}
.quote-status-modal .option-add{display:flex;align-items:center;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.quote-status-modal .option-add input{flex:1;min-width:0}
.quote-status-modal .option-add button{flex-shrink:0}
.quote-status-modal .option-row{display:flex;align-items:center;gap:10px;padding:5px 0;border-bottom:1px solid #edf0f5}
.quote-status-modal .option-row:last-child{border-bottom:0}
.quote-status-modal .option-row .danger{background:#fff;color:#e53935;border:1px solid #ffb3b3}
.quote-status-modal .modal-bd{padding-top:6px;padding-bottom:24px}
/* 设置列表操作按钮统一使用白底和彩色边框。 */
#quoteNativeApp.native-settings-host #nqsContent .btn:is([data-scheme-edit],[data-edit-option],[data-rule-edit],[data-edit]){background:#fff;color:#1f6feb;border-color:#1f6feb}
#quoteNativeApp.native-settings-host #nqsContent .btn:is([data-scheme-toggle],[data-rule-toggle]){background:#fff;color:#e6a000;border-color:#e6a000}
#quoteNativeApp.native-settings-host #nqsContent .btn:is([data-scheme-delete],[data-remove-option],[data-rule-delete],[data-delete]){background:#fff;color:#e03131;border-color:#e03131}
#quoteNativeApp.native-settings-host #nqsContent :is(td,.settings-option-actions)>.btn{height:var(--module-table-action-height)!important;min-height:var(--module-table-action-height)!important;font-size:11px;padding:1px 7px}
#quoteNativeApp.native-settings-host #nqsContent td>.btn+.btn{margin-left:8px}
#quoteNativeApp.native-settings-host .settings-option-actions{gap:8px}
#quoteNativeApp.native-settings-host #nqsContent td:has(>.btn){white-space:nowrap}
.native-settings-host .settings-compare-actions{width:100%;flex-wrap:nowrap}.native-settings-host .settings-compare-actions #nqsSearch{margin-left:auto;flex:0 1 320px;min-width:180px}
.native-settings-host .native-compare table{border-collapse:separate;border-spacing:0}.native-settings-host .native-compare thead{position:sticky;top:0;z-index:4;background:#f6f8fc}.native-settings-host .native-compare thead th{position:static;background:#f6f8fc}.native-settings-host .native-compare thead th:last-child{position:sticky;right:0}
.native-settings-host .native-compare thead th{position:relative}.native-settings-host .native-compare .settings-compare-heading{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:5px}
.native-settings-host .settings-hazard-field{display:flex;gap:8px;align-items:center}.native-settings-host .settings-hazard-field select{flex:1;min-width:0}.native-settings-host .settings-hazard-manager{z-index:1100}.native-settings-host .settings-hazard-add{display:grid;grid-template-columns:2fr repeat(3,1fr) auto;gap:8px;align-items:end;margin:18px 0}.native-settings-host .settings-hazard-add label{display:grid;gap:5px}.native-settings-host .settings-hazard-list{max-height:52vh;overflow:auto}.native-settings-host .settings-hazard-list>div{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--border)}.native-settings-host .settings-hazard-list b{flex:1;min-width:120px}.native-settings-host .settings-hazard-natures{display:flex;gap:5px;flex:3;flex-wrap:wrap}.native-settings-host .settings-hazard-natures label{display:grid;gap:5px}.native-settings-host .settings-hazard-actions{display:flex;gap:8px;flex-shrink:0}#quoteNativeApp.native-settings-host .settings-hazard-actions button{height:21px!important;min-height:21px!important;font-size:11px;padding:1px 7px;background:#fff}#quoteNativeApp.native-settings-host [data-hazard-edit]{color:#1f6feb;border-color:#1f6feb}#quoteNativeApp.native-settings-host [data-hazard-delete]{color:#e03131;border-color:#e03131}
.native-settings-host .settings-scheme-form{grid-template-columns:repeat(6,minmax(0,1fr))}.native-settings-host .settings-scheme-form>label:nth-child(-n+3){grid-column:span 2}.native-settings-host .settings-scheme-form>label:nth-child(n+4){grid-column:span 3}.native-settings-host .settings-picker h4{display:flex;align-items:center;justify-content:space-between;gap:8px}.native-settings-host .settings-selected-count{border-radius:16px;background:#eef4ff;color:#1f6feb;padding:2px 9px;font-size:12px}@media(max-width:760px){.native-settings-host .settings-scheme-form{grid-template-columns:1fr}.native-settings-host .settings-scheme-form>label:nth-child(n){grid-column:auto}}
.native-settings-host .settings-picker>div{display:flex;flex-direction:column;height:42vh;min-height:0;overflow:hidden}.native-settings-host .settings-picker h4,.native-settings-host .settings-picker input[type=search]{flex-shrink:0}.native-settings-host .settings-picker :is([data-picker-list],[data-picker-selected]){flex:1;min-height:0;overflow:auto}

.native-settings-host .settings-selected-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;border-bottom:1px solid #eef1f5}.native-settings-host .settings-selected-row>span{min-width:0;overflow-wrap:anywhere}#quoteNativeApp.native-settings-host .settings-selected-row>button{flex:0 0 24px;width:24px;height:24px!important;min-height:24px!important;padding:0;border:0;border-radius:5px;background:#f3f5f9;color:#6b7280;cursor:pointer;font-size:16px;line-height:1}

.native-settings-host .settings-option-drag{flex:0 0 14px;color:#9aa4b2;cursor:grab;font-size:16px;user-select:none}.native-settings-host .settings-option-drag:active{cursor:grabbing}
.native-settings-host .settings-project-status.disabled{background:#fff4db;color:#b77900}
.native-settings-host .native-compare-modal{position:relative;padding:22px;overflow:hidden}.native-settings-host .native-compare-modal #nqcModalBody>.close{position:absolute;right:16px;top:16px;width:28px;height:28px;min-height:0;padding:0;border:0;background:transparent;color:#6b7280;font-size:22px;line-height:1;cursor:pointer}.native-settings-host .native-compare-modal h3{padding-right:36px;margin:0 0 14px}.native-settings-host .native-compare-option-add{display:flex;align-items:center;gap:8px;padding:18px 10px 10px;border-bottom:1px solid var(--border)}.native-settings-host .native-compare-option-add input{flex:1;min-width:0}.native-settings-host .native-compare-option-add button{flex-shrink:0}.native-settings-host .native-compare-options{display:block;max-height:46vh;overflow:auto;border:1px solid var(--border);border-radius:8px;padding:6px 10px;margin-top:10px}.native-settings-host .native-compare-options>div{padding:5px 0;min-height:36px}#quoteNativeApp.native-settings-host .native-compare-options .btn{height:21px!important;min-height:21px!important;font-size:11px;padding:1px 7px}
.native-settings-host .native-compare-form label{align-content:start}
.quote-native-app.native-settings-host:has(.gbz-hazard-catalog){display:flex;flex-direction:column;overflow:hidden}
.native-settings-host:has(.gbz-hazard-catalog)>.native-settings-card{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;overflow:hidden}
.native-settings-host #nqsContent.gbz-hazard-catalog{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.native-settings-host .gbz-hazard-catalog .table-wrap{flex:1;min-height:0;max-height:none;overflow:auto}
.native-settings-host .gbz-hazard-catalog table th,.native-settings-host .gbz-hazard-catalog table td{height:var(--module-table-row-height);box-sizing:border-box;padding:2px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.native-settings-host #nqsContent.gbz-hazard-catalog table th:last-child,.native-settings-host #nqsContent.gbz-hazard-catalog table td:last-child{position:relative;right:auto;box-shadow:none}
.native-settings-host #nqsContent.gbz-hazard-catalog tbody td:last-child{background:inherit}
.native-settings-host #nqsContent.gbz-hazard-catalog tbody tr:hover td:last-child{background:#fafbfe}
.native-settings-host #nqsContent.gbz-hazard-catalog td>.btn{height:var(--module-table-action-height)!important;min-height:var(--module-table-action-height)!important;font-size:11px;padding:1px 7px}
.native-settings-host .settings-filters.gbz-catalog-toolbar{justify-content:space-between;flex-wrap:wrap}
.native-settings-host .gbz-catalog-toolbar>.flex{flex-shrink:0}
.native-settings-host .gbz-hazard-catalog td>.btn+.btn{margin-left:8px}
.native-settings-host .gbz-category-manager .gbz-category-add{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.native-settings-host .gbz-category-manager .gbz-category-add input{flex:1;min-width:0;width:auto}
.native-settings-host .gbz-category-manager .gbz-category-add button{flex-shrink:0}
.native-settings-host .gbz-category-manager .btn[data-category-edit]{color:#1f6feb;background:#fff;border:1px solid #1f6feb;height:var(--module-table-action-height)!important;min-height:var(--module-table-action-height)!important;font-size:11px;padding:1px 7px}
.native-settings-host .gbz-category-field{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.native-settings-host .gbz-category-field select{flex:1;min-width:0;width:auto}
.native-settings-host .gbz-category-field button{flex-shrink:0}
.native-settings-host .settings-form.gbz-hazard-form{grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1.5fr)}

.native-standard-host > .card > .toolbar > .flex { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.native-standard-host > .card > .standard-filter-grid { grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(120px, 1fr)) max-content; overflow-x: auto; }
.native-standard-host > .card > .standard-filter-grid > input, .native-standard-host > .card > .standard-filter-grid > select { min-width: 0; width: 100%; }

.quality-page.active:has(> .native-standard-host .standard-table-scroll) { display: flex; flex-direction: column; overflow: hidden; }
.quality-page:has(> .native-standard-host .standard-table-scroll) > .quality-section-head { flex-shrink: 0; }
.quality-content.native-standard-host:has(.standard-table-scroll) { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.native-standard-host > .card:has(.standard-table-scroll) { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.native-standard-host > .card > .toolbar, .native-standard-host > .card > .standard-filter-grid { flex-shrink: 0; }
.native-standard-host .standard-table-scroll { flex: 1; min-width: 0; min-height: 0; overflow: auto; }
.native-standard-host .standard-row-actions { display: flex; align-items: center; justify-content: center; gap: 8px; }
#qualityContent.native-standard-host .standard-table tbody .standard-row-actions button { height: var(--module-table-action-height) !important; min-height: var(--module-table-action-height) !important; padding: 1px 7px; font-size: 11px; background: #fff; }
.native-standard-host .standard-row-actions [data-edit] { color: var(--primary); border-color: var(--primary); }
.native-standard-host .standard-row-actions [data-delete] { color: var(--red); border-color: var(--red); }
.native-standard-host .standard-sort-indicator { margin-left: 5px; color: var(--text-3); font-size: 11px; }
.native-standard-host th[aria-sort="ascending"] .standard-sort-indicator, .native-standard-host th[aria-sort="descending"] .standard-sort-indicator { color: var(--primary); }
.native-standard-host > .card > .toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.native-standard-host > .card > .toolbar > .flex { flex-shrink: 0; flex-wrap: nowrap; }
.native-standard-host > .card > .toolbar h2 { margin: 0; }
#qualityContent.native-standard-host .standard-table th, #qualityContent.native-standard-host .standard-table td { height: var(--module-table-row-height); padding: 2px 8px; }
.native-standard-host .standard-status-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; line-height: 18px; font-weight: 600; vertical-align: middle; }
.native-standard-host .standard-status-badge.valid { color: #43a047; background: #e8f7ec; }
.native-standard-host .standard-status-badge.repealed { color: var(--red); background: #fdeaea; }
#qualityContent.native-standard-host .standard-table th, #qualityContent.native-standard-host .standard-table td { text-align: center; }
#qualityContent.native-standard-host .standard-table tbody tr:hover > td { background: var(--hover); }
.native-standard-host .standard-status-badge.expiring { color: #ef8c00; background: #fff4df; }

.native-standard-host .standard-option-card > .flex { display: flex; align-items: center; gap: 8px; }
.native-standard-host .standard-option-card > .flex > input { flex: 1; min-width: 0; }
.native-standard-host .standard-option-card > .flex > button { flex-shrink: 0; }
#qualityContent.native-standard-host .standard-option-row { gap: 8px; }
#qualityContent.native-standard-host .standard-option-row button { height: var(--module-table-action-height) !important; min-height: var(--module-table-action-height) !important; padding: 1px 7px; font-size: 11px; line-height: 1.6; background: #fff; }
#qualityContent.native-standard-host .standard-option-row [data-edit-option] { color: var(--primary); border-color: var(--primary); }
#qualityContent.native-standard-host .standard-option-row [data-delete-option] { color: var(--red); border-color: var(--red); }
img[data-image-preview] { cursor: zoom-in; }
.image-preview-mask { z-index: 1200; align-items: center; }
.image-preview-mask > img { width: auto; height: auto; max-width: 90vw; max-height: 85vh; object-fit: contain; }
.image-preview-mask > .close { position: absolute; top: 16px; right: 24px; padding: 0 10px; color: #fff; background: transparent; border: 0; font-size: 32px; }
#quoteNativeApp .institution-form input[type=file] { padding: 0 6px; font-weight: 400; line-height: normal; }
#quoteNativeApp .institution-form input[type=file]::file-selector-button { height: 26px; margin-right: 8px; }
#quoteNativeApp .institution-table th:last-child { width: 280px !important; }
#quoteNativeApp .institution-table td:last-child { overflow: visible; white-space: normal; }
#quoteNativeApp .institution-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#quoteNativeApp .institution-actions button { height: var(--module-table-action-height) !important; min-height: var(--module-table-action-height) !important; padding: 1px 7px; font-size: 11px; background: #fff; }
#quoteNativeApp .institution-actions [data-org-edit] { color: var(--primary); border-color: var(--primary); }
#quoteNativeApp .institution-actions [data-org-delete] { color: var(--red); border-color: var(--red); }
#quoteNativeApp .institution-actions [data-org-default] { color: var(--primary); border-color: var(--primary); }
#quoteNativeApp .institution-actions [data-org-toggle][data-org-disabled="false"] { color: var(--orange); border-color: var(--orange); }

/* 表单生成沿用业务模块尺寸；原生文件选择按钮随 30px 控件缩小。 */
main.module-host > #page-quote { padding: var(--module-page-padding) !important; }
#quoteNativeApp:has(> .native-basic-info) { padding: 0; background: var(--card); }
.native-basic-info > .card { min-width: 0; padding: 0; background: var(--card); }
.native-basic-info > .card + .card { border-top: 1px solid var(--border); padding-top: 12px; }
.native-basic-info .toolbar { margin-bottom: 12px; }
.native-basic-info h2 { font-size: 16px; font-weight: 600; }
.native-basic-info .hint { font-size: 12px; }
.native-basic-info input { width: 100%; }
.native-basic-info input[type=file] { padding: 2px 6px !important; line-height: normal; }
.native-basic-info input[type=file]::file-selector-button { display: inline-flex; align-items: center; justify-content: center; height: calc(var(--module-action-height) - 6px); padding: 0 8px; margin: 0 8px 0 0; vertical-align: top; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; line-height: normal; cursor: pointer; }
.native-basic-info .actions button { font-size: 13px; white-space: nowrap; }
.native-basic-info .actions button:disabled { opacity: .5; cursor: not-allowed; }
.native-basic-info .basic-info-table { table-layout: fixed; min-width: 780px; }
.native-basic-info .basic-info-table th, .native-basic-info .basic-info-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.native-basic-info .basic-info-table td:nth-child(4), .native-basic-info .basic-info-table td:last-child { text-align: center; }
.native-basic-info .basic-info-table .flex { display: flex; align-items: center; justify-content: center; gap: 6px; }
.native-basic-info .basic-info-table button { height: var(--module-table-action-height) !important; min-height: var(--module-table-action-height) !important; font-size: 11px; padding: 1px 7px; }
.native-basic-info .basic-info-table .danger { color: var(--red); border-color: var(--red); background: #fff; }
.native-basic-info .basic-info-table .empty { padding: 0; }
@media (max-width: 900px) {
  .native-basic-info .customer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .native-basic-info .actions { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 620px) {
  .native-basic-info .customer-grid { grid-template-columns: minmax(0, 1fr); }
  .native-basic-info #basicInfoFileName, .native-basic-info .actions { grid-column: 1; grid-row: auto; }
  .native-basic-info #basicInfoFileName { grid-row: 3; }
}
.native-basic-info[hidden], iframe[data-fee-frame][hidden] { display: none !important; }
.native-help-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.native-help-actions > input { flex-basis: 100%; }
.native-help-actions > .btn { font-size: 13px; padding: 0 12px; }
.native-basic-info .basic-info-table .basic-info-download { color: var(--primary); border-color: var(--primary); background: #fff; }
.native-basic-info .basic-info-table .basic-info-download:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.basic-info-validation { margin-top: 12px; padding: 10px 12px; color: var(--red); border: 1px solid #f3c0c0; border-radius: var(--radius); background: #fff; white-space: pre-wrap; }

.module-hint { font-family: inherit; font-size: var(--module-hint-font-size); color: var(--module-hint-color); line-height: var(--module-hint-line-height); font-weight: 400; }

#custMask .customer-quarter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#custMask .customer-credit > label, #custMask .customer-quarter-row .field > label, #custMask .customer-quarter-row .field-label-row { min-height: var(--module-table-action-height); display: flex; align-items: center; box-sizing: border-box; margin-bottom: 4px; }
#custMask .customer-type-manage { height: var(--module-table-action-height) !important; min-height: var(--module-table-action-height) !important; padding: 1px 7px; font-size: 11px; margin: 0; }
#custMask .customer-code-label .module-hint { color: var(--module-hint-color); font-size: var(--module-hint-font-size); }

/* 表格内编辑、管理和转周期操作统一为蓝色描边。 */
table button.table-action-blue { color: var(--primary); border: 1px solid var(--primary); background: #fff; }
table button.table-action-blue:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }

table button.table-action-red { color: var(--red); border: 1px solid var(--red); background: #fff; }
table button.table-action-red:hover { color: var(--red); border-color: var(--red); background: #fdf2f2; }

#examMask .exam-customer-label { display:flex; align-items:center; gap:8px; }
#examMask .exam-customer-label label { white-space:nowrap; }
#examMask #e_cust_search { flex:1; min-width:0; height:var(--module-table-action-height)!important; min-height:var(--module-table-action-height)!important; font-size:11px; padding:0 7px; }
#examMask .exam-assignment-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
#examMask .field-label-row, #examMask .field>label { min-height:var(--module-table-action-height); box-sizing:border-box; display:flex; align-items:center; margin-bottom:4px; }
#examMask .btn-mini { height:var(--module-table-action-height)!important; min-height:var(--module-table-action-height)!important; font-size:11px; padding:1px 7px; margin:0; }

/* 角色人员表格沿用行内操作尺寸。 */
#roleMembers .tbl th, #roleMembers .tbl td { text-align:center; }
#roleMembers .tbl tbody button.btn-mini { height:var(--module-table-action-height)!important; min-height:var(--module-table-action-height)!important; font-size:11px; padding:1px 7px; line-height:1.6; }

#roleList .role-member-count { color:var(--primary); text-decoration:underline; cursor:pointer; }

/* 角色人员弹窗仅滚动表格正文，表头紧贴固定操作区。 */
#genBody:has(> #roleMembers) { overflow:hidden; }
#roleMembers { display:flex; flex-direction:column; max-height:calc(68vh - 32px); min-height:0; }
#roleMembers > h4, #roleMembers > .adm-toolbar { flex-shrink:0; }
#roleMembers .role-members-scroll { overflow:auto; min-height:0; }
#roleMembers .tbl { width:100%; margin:0; border-collapse:separate; border-spacing:0; }
#roleMembers .tbl thead th { position:sticky; top:0; z-index:1; background:var(--bg-2, #f6f8fb); }

#accountTable th, #accountTable td { text-align:center; }
#accountTable tbody button.btn-mini { height:var(--module-table-action-height)!important; min-height:var(--module-table-action-height)!important; font-size:11px; padding:1px 7px; line-height:1.6; }
#accountTable button.table-action-yellow { color:#d4a017; border:1px solid #d4a017; background:#fff; }
#accountTable button.table-action-yellow:hover { background:#fffbe6; }

#accountTable .status-pill.active { color:#fff; background:var(--green); border-color:var(--green); }
#accountTable .status-pill.disabled { color:#fff; background:var(--red); border-color:var(--red); }

/* 账号管理固定导航与筛选区，只滚动表格正文。 */
main:has(#page-admin.active #accountTable) { display:flex; flex-direction:column; overflow:hidden; }
main #page-admin.active:has(#accountTable) { display:flex; flex:1; min-height:0; flex-direction:column; }
#page-admin:has(#accountTable) > .panel { display:flex; flex:1; min-height:0; flex-direction:column; margin-bottom:0; }
#page-admin:has(#accountTable) .panel-hd, #adminBody:has(#accountTable) > .adm-toolbar { flex-shrink:0; }
#adminBody:has(#accountTable) { display:flex; flex:1; min-height:0; flex-direction:column; overflow:hidden; }
.account-table-scroll { overflow:auto; min-height:0; flex:1; }
#accountTable { width:100%; margin:0; border-collapse:separate; border-spacing:0; }
#accountTable thead th { position:sticky; top:0; z-index:1; background:#f6f8fb; }

#accountTable th[data-user-sort] { cursor:pointer; user-select:none; }
#accountTable .user-sort-arrow { color:var(--primary); font-size:11px; }

#roleMembers .status-pill.active { color:#fff; background:var(--green); border-color:var(--green); }
#roleMembers .status-pill.disabled { color:#fff; background:var(--red); border-color:var(--red); }
#roleMembers .tbl { table-layout:fixed; }
#roleMembers .tbl th, #roleMembers .tbl td { overflow-wrap:anywhere; }

#roleMembers .tbl .role-member-divider { border-left:1px solid var(--border); }
