:root {
  --navy: #16233c;
  --navy-2: #1f3157;
  --accent: #2f6fed;
  --accent-soft: #eaf1ff;
  --ok: #1f8a4c;
  --ok-soft: #e6f6ec;
  --warn: #b26a00;
  --warn-soft: #fff4e0;
  --ink: #1b2330;
  --muted: #667085;
  --line: #e3e7ee;
  --bg: #f5f7fb;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
button { font: inherit; }

/* ---------------------------------------------------------------- topbar */

.topbar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; flex: none; }
.portal-brand { gap: 13px; }
.brand-companies {
  display: flex; flex-direction: column; gap: 2px; padding-right: 13px;
  border-right: 1px solid rgba(255, 255, 255, .24); line-height: 1.2;
}
.brand-companies strong { font-size: 11px; font-weight: 650; letter-spacing: .005em; white-space: nowrap; }
.brand-companies > span { font-size: 10.5px; font-weight: 500; color: #c9d5ea; white-space: nowrap; }
.brand-logos { display: flex; align-items: center; gap: 7px; flex: none; }
.brand-logo { display: block; height: 39px; width: auto; max-width: 58px; object-fit: contain; }
.brand-logo-antuvision { height: 42px; max-width: 48px; filter: brightness(0) invert(1); }
.brand-logo-separator {
  width: 1px; height: 28px; background: rgba(255, 255, 255, .28); border-radius: 1px;
}
.brand-copy { display: block; line-height: 1.15; white-space: nowrap; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #4f8cff, #7ed0ff);
  display: grid; place-items: center; font-size: 15px;
}
.brand small { display: block; font-weight: 400; font-size: 11px; color: #9fb3d9; }

/* 对客价格平台的品牌区：显示两家公司英文全称，不使用 logo 图片。 */
.portal-brand .brand-copy { font-size: 14px; }
.portal-brand .brand-copy small { max-width: 150px; margin-top: 1px; white-space: normal; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  color: #cdd8ef; padding: 7px 14px; border-radius: 8px; font-size: 14px;
}
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .16); color: #fff; }
.nav a.nav-practice {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0;
  background: linear-gradient(135deg, #ff7a3d, #f05a28); color: #fff;
  font-weight: 700; box-shadow: 0 7px 18px rgba(240, 90, 40, .28);
}
.nav a.nav-practice:hover {
  background: linear-gradient(135deg, #ff8b55, #ff6330); color: #fff;
}
.nav-practice-version {
  padding: 1px 5px; border-radius: 999px; background: rgba(255, 255, 255, .2);
  font-size: 10px; line-height: 1.35; letter-spacing: .02em;
}
.nav .pill {
  background: #ff6b3d; color: #fff; border-radius: 999px; font-size: 11px;
  padding: 1px 6px; margin-left: 6px; vertical-align: 1px;
}
.nav-product-menu { position: relative; }
.nav-product-trigger {
  color: #cdd8ef; background: transparent; border: 0; padding: 7px 14px;
  border-radius: 8px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.nav-product-trigger:hover, .nav-product-trigger.active { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-product-menu.open .nav-product-trigger { background: rgba(255, 255, 255, .16); color: #fff; }
.nav-caret { display: inline-block; margin-left: 4px; font-size: 11px; transition: transform .15s ease; }
.nav-product-menu.open .nav-caret { transform: rotate(180deg); }
.nav-product-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 80;
  width: min(620px, calc(100vw - 28px)); padding: 10px; background: #fff; color: var(--navy);
  border: 1px solid #dbe4f0; border-radius: 12px;
  box-shadow: 0 18px 42px rgba(18, 38, 72, .2);
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
}
.nav-product-dropdown::before {
  content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px;
}
.nav-product-menu.open .nav-product-dropdown { display: grid; }
.nav-product-group { min-width: 0; }
.nav-product-category { position: relative; }
.nav-product-group-title {
  padding: 7px 11px 4px; color: #74829a; font-size: 10.5px; font-weight: 700;
  letter-spacing: .55px; text-transform: uppercase;
}
.nav-product-dropdown button {
  display: block; width: 100%; padding: 9px 11px; border: 0; border-radius: 8px;
  background: transparent; color: #243853; text-align: left; font-size: 13px; cursor: pointer;
}
.nav-product-category > button { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-product-arrow { color: #7f8da3; font-size: 15px; }
.nav-product-submenu {
  display: none; position: absolute; z-index: 2; left: calc(100% + 3px); top: -8px;
  width: 260px; padding: 8px; background: #fff; border: 1px solid #dbe4f0;
  border-radius: 10px; box-shadow: 0 16px 38px rgba(18, 38, 72, .2);
}
.nav-product-group:last-child .nav-product-submenu { left: auto; right: calc(100% + 3px); }
.nav-product-category:hover > .nav-product-submenu,
.nav-product-category:focus-within > .nav-product-submenu { display: block; }
.nav-product-submenu button { padding: 7px 9px; font-size: 12.5px; }
.nav-product-dropdown button:hover, .nav-product-dropdown button.on {
  background: #eef4ff; color: #2457c5; font-weight: 600;
}
.nav-product-dropdown .nav-product-all {
  grid-column: 1 / -1; margin-top: 5px; border-top: 1px solid #e5ecf5; border-radius: 0 0 8px 8px;
  padding-top: 11px; color: #2457c5; font-weight: 700;
}
@media (max-width: 760px) {
  .topbar {
    height: auto; min-height: 62px; padding: 8px 12px; gap: 8px 10px;
    align-items: center; flex-wrap: wrap;
  }
  .topbar .portal-brand { max-width: calc(100vw - 112px); }
  .topbar .portal-brand .brand-companies { display: none; }
  .topbar .nav {
    order: 3; width: 100%; margin-left: 0; padding-bottom: 2px;
    flex-wrap: wrap; min-width: 0; max-width: 100%;
  }
  .topbar .nav a, .topbar .nav-product-trigger { white-space: nowrap; }
  .topbar .nav a.nav-practice { padding-inline: 12px; }
  .topbar .spacer { display: none; }
  .topbar .who {
    margin-left: auto; max-width: 140px; font-size: 11px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  .topbar .who b { font-size: 11px; }
  .topbar .ai-topbtn { padding: 6px 10px; }
  .topbar button.ghost { padding: 5px 9px; }
  .nav-product-dropdown { grid-template-columns: 1fr; width: min(330px, calc(100vw - 24px)); max-height: 78vh; overflow-y: auto; }
  .nav-product-submenu {
    display: block; position: static; width: auto; padding: 0 0 4px 14px;
    border: 0; box-shadow: none;
  }
  .nav-product-arrow { display: none; }
}

.topbar .spacer { flex: 1; }
.topbar .who { font-size: 13px; color: #cdd8ef; text-align: right; }
.topbar .who b { color: #fff; font-weight: 600; display: block; font-size: 13px; }

.topbar button.ghost {
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
}
.topbar button.ghost:hover { background: rgba(255, 255, 255, .2); }

.lang-toggle { display: flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; overflow: hidden; }
.lang-toggle button {
  background: transparent; color: #cdd8ef; border: 0; padding: 6px 10px; cursor: pointer; font-size: 12px;
}
.lang-toggle button.on { background: #fff; color: var(--navy); font-weight: 600; }

/* ----------------------------------------------------------------- layout */

.app { max-width: 1220px; margin: 0 auto; padding: 24px 22px 72px; }
.app.customer-board-wide {
  max-width: none;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}
.app.customer-crm-wide {
  max-width: none;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}
.app.admin-amounts-wide {
  max-width: none;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}
.app.admin-usage-wide {
  max-width: none;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}
.customer-board-table {
  table-layout: fixed;
  width: 100%;
  min-width: 1120px;
}
.crm-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
.customer-board-table th,
.customer-board-table td,
.crm-table th,
.crm-table td {
  overflow-wrap: anywhere;
}
.crm-table .crm-name { min-width: 0; max-width: none; }
.crm-table .follow-input,
.crm-table thead .frow input[type="search"],
.crm-table .inline-crm-select,
.crm-table .inline-crm-input { min-width: 0; }
.crm-table .nowrap { white-space: normal; }
.crm-table th,
.crm-table td { padding-left: 6px; padding-right: 6px; }

.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; margin: 0; }
.page-head p { margin: 2px 0 0; color: var(--muted); }
.page-head .grow { flex: 1; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.pad { padding: 20px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 15px; margin: 0 0 12px; }

.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.catbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.catbar button { border-radius: 999px; padding: 6px 14px; font-size: 13px; background: #fff; color: var(--muted); }
.catbar button:hover { color: var(--ink); }
.catbar button.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }

.cat-tag {
  display: inline-block; font-size: 11px; font-weight: 400; padding: 1px 8px;
  border-radius: 999px; background: #eef2f9; color: #52617a; border: 1px solid #e0e6f0;
  vertical-align: 1px;
}

/* --------------------------------------------------------------- products */

.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-card .thumb {
  aspect-ratio: 1024 / 600; background: #fff; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.product-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .sku { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.product-card .name { font-weight: 600; font-size: 15px; }
.product-card .desc { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 8px; }

.price { font-size: 20px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.price-empty { color: var(--muted); font-size: 18px; margin: 0; }

.chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid #d3e0fb;
}
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: #c7ebd5; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: #ffe0b0; }
.chip.gray { background: #f0f2f6; color: var(--muted); border-color: #e3e7ee; }

/* ------------------------------------------------------------ product page */

/* 详情页（2026-10-14 用户要求）：左边主图+副图，右边型号/说明/价格；
   右下方的选项、规格、注意事项仍然单列平铺，客户不用左右来回找 */
.detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px; align-items: start; max-width: 1180px; margin: 0 auto;
}
/* 2026-10-15 用户要求：卖点（Key features）和规格（Specifications）放到产品图下面，
   左栏变成长内容栏，所以不再 sticky（长内容被钉住会看不全、还会压住下面的卡片） */
.detail-media { min-width: 0; }
.detail .hero { max-width: none; margin: 0; padding: 16px; }
.detail .gallery-bar { max-width: none; margin: 12px 0 0; justify-content: flex-start; }
.detail-info { min-width: 0; }
.detail .card.pad.mt, .detail-info > .card:not(.hero) { max-width: none; margin-left: 0; margin-right: 0; }
.detail .hero img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #eef1f6; }
@media (max-width: 980px) {
  /* 单列时不按 DOM 顺序堆：图片 → 型号/价格/选项 → 卖点/规格（标题价格要留在最上面） */
  .detail { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .detail-media { display: contents; }
  .detail-media > .hero { order: 1; }
  .detail-media > .gallery-bar { order: 2; }
  .detail-info { order: 3; }
  .detail-media > .feat-card { order: 4; }
  .detail-media > .spec-card { order: 5; }
}

/* 右侧标题区：型号小标签 + 大标题 + 说明 */
.model-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.model-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .06em;
  background: #eef2f8; color: var(--navy); border: 1px solid #dde5f0; border-radius: 6px; padding: 3px 8px;
}
.prod-title { font-size: 24px; line-height: 1.28; margin: 0 0 8px; }
.prod-summary { color: var(--muted); margin: 0 0 10px; }
.prod-meta { margin: 0 0 14px; font-size: 13px; color: var(--muted); }

/* 价格说明小字（用户 2026-10-14 要求：价格浮动、以 PI 为准） */
.price-note { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
.page-head .price-note { margin: 4px 0 0; }

/* 顶栏 AI 入口（2026-10-14 用户要求：每个页面上面都要有、要显眼） */
.ai-topbtn {
  background: linear-gradient(135deg, #2f6df6, #1b4bd0); color: #fff; border: none;
  padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(27, 75, 208, .35); white-space: nowrap;
}
.ai-topbtn:hover { filter: brightness(1.08); }

/* 页面里嵌的 AI 表单（2026-10-15 用户要求） */
.ai-inline { border-left: 4px solid #2f6df6; margin: 0 0 14px; }
.ai-inline input[type="text"] { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.ai-finder-hero {
  position: relative; overflow: hidden; margin: 0 0 18px; padding: 24px;
  color: #fff; border: 1px solid rgba(120, 165, 255, .36); border-left: 1px solid rgba(120, 165, 255, .36);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 139, 64, .28), transparent 28%),
    radial-gradient(circle at 72% 110%, rgba(78, 149, 255, .3), transparent 36%),
    linear-gradient(135deg, #102a4d 0%, #173f72 58%, #1e4f89 100%);
  box-shadow: 0 18px 42px rgba(14, 42, 71, .18);
}
.ai-finder-hero::after {
  content: ""; position: absolute; right: -48px; top: -72px; width: 230px; height: 230px;
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 50%; pointer-events: none;
}
.ai-finder-top { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 28px; }
.ai-finder-copy { min-width: 0; flex: 1 1 660px; }
.ai-finder-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #dce9ff; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.ai-finder-badge {
  padding: 4px 9px; border-radius: 999px; color: #fff4ed; background: rgba(255, 107, 53, .18);
  border: 1px solid rgba(255, 153, 111, .38); font-size: 10px; letter-spacing: .04em; text-transform: none;
}
.ai-finder-title { margin: 13px 0 8px; max-width: 760px; color: #fff; font-size: 27px; line-height: 1.2; letter-spacing: -.015em; }
.ai-finder-desc { margin: 0; max-width: 780px; color: #dce7f7; font-size: 14px; line-height: 1.65; }
.ai-finder-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.ai-finder-points span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #eef5ff; font-size: 11.5px; }
.ai-finder-cta { flex: 0 0 245px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 9px; }
.ai-finder-cta span { color: #bfd2eb; font-size: 11.5px; line-height: 1.45; text-align: center; }
.ai-finder-open {
  min-height: 48px; border: 0; border-radius: 10px; background: #ff6b35; color: #fff;
  font-size: 14px; font-weight: 700; box-shadow: 0 10px 24px rgba(255, 107, 53, .3);
}
.ai-finder-open:hover { background: #ff7d4d; }
.ai-finder-quick {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(220px, .72fr) minmax(320px, 1.28fr);
  gap: 16px; align-items: center; margin-top: 20px; padding-top: 17px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.ai-finder-quick > div:first-child { display: grid; gap: 3px; }
.ai-finder-quick b { color: #fff; font-size: 13px; }
.ai-finder-quick > div:first-child span { color: #c7d8ee; font-size: 11.5px; line-height: 1.45; }
.ai-finder-quick .row.inline { align-items: stretch; gap: 8px; }
.ai-finder-quick input[type="text"] {
  flex: 1; min-width: 0; padding: 11px 12px; color: var(--ink); background: #fff;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 9px; font-size: 13px;
}
.ai-finder-quick button { min-height: 42px; }
@media (max-width: 860px) {
  .ai-finder-top { display: grid; gap: 18px; }
  .ai-finder-cta { width: 100%; max-width: 360px; padding-top: 0; }
  .ai-finder-quick { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ai-finder-hero { padding: 19px 16px; }
  .ai-finder-title { font-size: 22px; }
  .ai-finder-cta { max-width: none; }
  .ai-finder-quick .row.inline { display: grid; grid-template-columns: 1fr; }
  .ai-finder-quick button { width: 100%; }
}

/* 价格档位可选（2026-10-15：客户要能把 1080P 那一档加进清单） */
.tier-table .tier-row td { cursor: pointer; }
.tier-table .tier-row.on { background: #eef4ff; }
.tier-pick { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }

/* 产品详情：主图 + 副图缩略图（点缩略图换主图） */
.detail .hero-empty {
  display: grid; place-items: center; min-height: 200px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: #f7f9fc; font-size: 13px;
}
.gallery-bar { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 88px; height: auto; aspect-ratio: 1024 / 600; object-fit: contain; background: #fff; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; padding: 3px;
}
.gallery-thumb.on { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(20, 44, 82, .12); }

/* 产品规格书：显眼的 PDF 标记 */
.pdf-btn { border-color: #e0533d; color: #b3361f; font-weight: 600; background: #fff6f4; }
.pdf-badge {
  display: inline-block; background: #e0533d; color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; margin-right: 7px; vertical-align: 1px;
}

/* ---------------------------------------------------------------- AI 助手 */
.sku-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.sku-list a { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); background: #fff; }
.sku-list a.gray { color: var(--muted); background: #f4f6fa; }
.ai-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; border-radius: 999px;
  background: var(--navy); color: #fff; border: none; padding: 12px 18px; font-size: 14px;
  box-shadow: 0 10px 24px rgba(16, 32, 60, .28); cursor: pointer;
}
.ai-fab:hover { filter: brightness(1.08); }
.ai-panel {
  position: fixed; right: 22px; bottom: 78px; z-index: 41; width: 420px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px;
  box-shadow: 0 18px 44px rgba(16, 32, 60, .22);
}
.ai-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ai-x { border: none; background: transparent; font-size: 16px; cursor: pointer; color: var(--muted); }
.ai-lead { margin: 6px 0 8px; }
.ai-panel textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font: inherit; resize: vertical; }
.ai-sources { display: grid; gap: 4px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.ai-sources a { font-size: 12px; color: #315f9b; overflow-wrap: anywhere; }
.ai-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ai-out { margin-top: 10px; max-height: 46vh; overflow: auto; }
.ai-answer { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.ai-prods { margin-top: 10px; display: grid; gap: 8px; }
.ai-prod { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-decoration: none; color: inherit; }
.ai-prod:hover { border-color: var(--navy); }
.ai-prod-static { cursor: default; }
.ai-prod-static:hover { border-color: var(--line); }
.ai-prod img { width: 72px; height: 44px; object-fit: contain; background: #fff; flex: 0 0 auto; }
.ai-inline-result:empty { display: none; }
.ai-inline-result {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.ai-inline-result .ai-answer {
  color: #25364d; line-height: 1.7; white-space: normal;
}
.ai-inline-result .ai-prods { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ai-inline-error {
  padding: 9px 11px; border: 1px solid #f1c7c2; border-radius: 8px;
  background: #fff6f5; color: #9a2d25; font-size: 12px;
}

/* 登录页 logo：仅内部 CRM 使用；对客价格平台显示公司英文全称。 */
.auth-logos {
  display: flex; align-items: center; gap: 20px; margin-bottom: 22px;
}
.auth-logos img { width: auto; display: block; }
/* 登录页两个 logo 做大一点、更显眼（2026-10-14 用户要求） */
.auth-logos img { height: 58px; }
.auth-brand-lockup {
  display: flex; align-items: center; gap: 24px; margin-bottom: 24px;
}
.auth-logos-portal {
  flex: none; gap: 14px; margin: 0; padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, .24);
}
.auth-logos-portal img {
  filter: brightness(0) invert(1);
}
.auth-logos-portal img:first-child {
  height: 64px;
}
.auth-logos-portal img:last-child {
  height: 104px;
  margin-top: -20px;
  margin-bottom: -20px;
}
.auth-logo-separator {
  width: 1px; height: 50px; background: rgba(255, 255, 255, .28); border-radius: 1px;
}
.customer-filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.customer-filters #customerSearch {
  min-width: 300px; max-width: 460px; flex: 1 1 300px;
}
.customer-filters select { min-width: 142px; }
.customer-amount-filter {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 12px; font-weight: 700;
}
.customer-amount-filter input {
  width: 108px; min-width: 108px; padding: 8px 10px;
}
.customer-amount-card {
  width: 100%;
  max-width: none;
  overflow: hidden;
}
.customer-amount-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.customer-amount-wrap:focus-visible {
  outline: 2px solid #8db8ff;
  outline-offset: -2px;
}
.customer-amount-table {
  width: 100%;
  min-width: 1180px;
}
.customer-amount-table .customer-sort-col { white-space: nowrap; }
.customer-amount-table .admin-sort-button { min-height: 30px; }
.customer-amount-table .customer-account-status { white-space: nowrap; }
.customer-filter-count {
  min-width: 58px; text-align: right; color: var(--muted); font-size: 12px; white-space: nowrap;
}
.auth-company-names {
  display: grid; gap: 3px; margin: 0; max-width: 620px;
}
.auth-company-names .auth-brand-companies {
  padding: 0; border: 0; gap: 5px;
}
.auth-brand-companies strong {
  color: #fff; font-size: 17px; line-height: 1.35; white-space: normal;
}
.auth-brand-companies > span {
  color: #cbd6e9; font-size: 16px; line-height: 1.35; white-space: normal;
}
.auth-platform-name {
  margin-top: 13px; color: #ffb86b; font-size: 13px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}

@media (max-width: 1180px) {
  .portal-brand .brand-copy small { display: none; }
  .brand-companies strong { font-size: 10px; }
  .brand-companies > span { font-size: 9.5px; }
}

@media (max-width: 900px) {
  #topbar { gap: 10px; padding: 0 12px; }
  .portal-brand .brand-companies { display: none; }
  .portal-brand::before {
    content: "JIFUAN · ANTUVISION"; font-size: 11px; letter-spacing: .04em; white-space: nowrap;
  }
  .auth-brand-lockup { align-items: flex-start; flex-direction: column; gap: 16px; }
  .auth-logos-portal { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .24); }
}

.notes.feat li::marker { color: #1a7f4b; }

/* 客户自己填写定制要求的地方，要显眼 */
.remark-card { border: 2px solid #ffb020; background: #fffdf5; }
.remark-card h2 { color: #b26a00; }
.remark-card textarea { min-height: 96px; font-size: 15px; }

.buybox {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fbfcfe;
}
.buybox .row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.buybox .row.inline { flex-wrap: wrap; margin-bottom: 6px; }
.buybox .row.inline .price { margin-left: 4px; }
.buybox .row.inline input[type=number] { max-width: 110px; }

.opt-group { border-top: 1px dashed var(--line); padding: 12px 0 4px; }
.opt-group:first-of-type { border-top: 0; }
.opt-group .gname { font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--navy-2); }
.opt { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.opt-thumb {
  width: 46px; height: 34px; object-fit: contain; border-radius: 6px;
  border: 1px solid var(--line); background: #fff; flex: none;
}
.moq-tag {
  font-size: 11px; color: var(--warn); background: var(--warn-soft);
  border: 1px solid #ffe0b0; border-radius: 999px; padding: 0 6px; margin-left: 6px;
}
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 6px; }
.shot-grid img {
  width: 100%; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line);
}
.opt:hover { background: var(--accent-soft); }
.opt input { accent-color: var(--accent); }
.opt .delta { margin-left: auto; font-size: 12px; color: var(--ok); }
.opt .delta.tbd { color: var(--warn); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: #fafbfd; }
tbody tr:hover { background: #fafbff; }
td.num, th.num { text-align: right; }

.spec-table td:first-child { width: 34%; color: var(--muted); }

.notes { margin: 0; padding-left: 18px; }
.notes li { margin-bottom: 6px; }
.notes.order li::marker { color: var(--warn); }

/* ---------------------------------------------------------------- buttons */

button, .btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 9px; cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
button:hover, .btn:hover { border-color: #c9d2e3; background: #fbfcfe; }
button.primary, .btn.primary {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
}
button.primary:hover { background: #245fd6; border-color: #245fd6; }
button.danger { color: #c0392b; }
button.small { padding: 5px 10px; font-size: 13px; }
button[disabled] { opacity: .55; cursor: not-allowed; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=search],
input[type=date], select, textarea {
  font: inherit; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #cfe0ff; border-color: var(--accent); }
label.field { display: block; margin-bottom: 12px; }
label.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }

.search { max-width: 320px; }
.product-category-filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 280px;
  max-width: 360px;
  padding: 8px 11px 9px;
  border: 1px solid #bfd0ea;
  border-radius: 11px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  color: #2457bd;
}
.product-category-filter > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-category-filter select {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 1px 24px 1px 0;
  background: transparent;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
}
.product-category-filter select:focus { outline: none; }

/* ------------------------------------------------------------------ auth */

.auth { display: grid; grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - 62px); }
.auth .side {
  background: linear-gradient(150deg, var(--navy) 0%, #2b4a86 100%); color: #fff;
  padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.auth .side h1 { font-size: 30px; margin: 0; line-height: 1.3; }
.auth .side p { color: #c3d2ee; margin: 0; }
.auth .side ul { color: #d8e3f8; padding-left: 18px; margin: 6px 0 0; }
.auth .side li { margin-bottom: 6px; }
.auth .form { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.auth .form .inner { max-width: 420px; width: 100%; margin: 0 auto; }
.auth .form h2 { font-size: 22px; margin: 0 0 4px; }
.auth .form .sub { color: var(--muted); margin: 0 0 22px; }

/* ---------------------------------------------------------------- orders */

.order-card { padding: 16px 18px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.order-card .no { font-weight: 700; font-size: 15px; }
.order-card .meta { color: var(--muted); font-size: 13px; }
.order-card .grow { flex: 1; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 16px 4px; }
.timeline li::before {
  content: ""; position: absolute; left: -21px; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 2px solid var(--accent);
}
.timeline li:last-child::before { background: var(--accent); }
.timeline .when { font-size: 12px; color: var(--muted); }

/* ----------------------------------------------------------------- admin */

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; border-bottom: 2px solid transparent;
  border-radius: 0; padding: 10px 14px; color: var(--muted);
}
.tabs button.on { color: var(--navy); border-bottom-color: var(--accent); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat b { display: block; font-size: 26px; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 13px; }

.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.inline-form .f { min-width: 120px; }
.inline-form .f.grow { flex: 1; min-width: 220px; }

.mini-table input, .mini-table select { padding: 5px 8px; font-size: 13px; }

/* --------------------------------------------------------------- overlay */

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: .22s; z-index: 60; max-width: 90vw;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #b03030; }

.modal-host { position: fixed; inset: 0; display: none; z-index: 70; }
.modal-host.on { display: block; }
.modal-host .backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); }
.modal-host .sheet {
  position: relative; margin: 8vh auto; max-width: 620px; max-height: 84vh; overflow: auto;
  background: #fff; border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow);
}

.empty { text-align: center; color: var(--muted); padding: 42px 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 14px; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth .side { padding: 32px 26px; }
  .auth .form { padding: 32px 26px; }
  .detail { grid-template-columns: 1fr; }
  .topbar { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; }
}

/* ---------------------------------------------- 客户详情页 (#/c/编号) */
.cr-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(430px, 1.35fr); gap: 16px; align-items: start; }
.cr-grid > div > .card + .card { margin-top: 16px; }
.cr-orders { margin-top: 6px; }
.cr-order { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; overflow: hidden; background: #fff; }
.cr-order.on { border-color: var(--accent); box-shadow: 0 1px 6px rgba(47, 111, 237, .12); }
.cr-oh { display: flex; gap: 8px; align-items: center; padding: 8px 10px; cursor: pointer; background: #fafbfd; flex-wrap: wrap; }
.cr-oh:hover { background: var(--accent-soft); }
.cr-sp { flex: 1; }
.cr-ob { padding: 6px 10px 10px; border-top: 1px dashed var(--line); }
.cr-file { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px dashed #eef1f6; flex-wrap: wrap; }
.cr-file:first-child { border-top: 0; }
.cr-fname { flex: 1; min-width: 180px; font-size: 13px; word-break: break-all; }
.cr-fmeta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cr-pre { max-height: 340px; overflow: auto; white-space: pre-wrap; background: #f7f9fc;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 12px; line-height: 1.5; }
.cr-grid summary { cursor: pointer; }
@media (max-width: 1000px) { .cr-grid { grid-template-columns: 1fr; } }

/* 背调报告渲染（详情页） */
.cr-report { background: #fbfcfe; border: 1px solid var(--line);
  border-radius: 8px; padding: 14px 16px; margin-top: 6px; font-size: 13px; line-height: 1.65; }
.cr-report h3, .cr-report h4, .cr-report h5 { margin: 14px 0 6px; }
.cr-report h3 { font-size: 16px; } .cr-report h4 { font-size: 14px; } .cr-report h5 { font-size: 13px; color: var(--navy-2); }
.cr-report p { margin: 6px 0; }
.cr-report ul { margin: 6px 0; padding-left: 20px; }
.cr-report li { margin-bottom: 3px; }
.cr-report hr { border: 0; border-top: 1px dashed var(--line); margin: 12px 0; }
.md-table { border-collapse: collapse; margin: 8px 0; width: 100%; font-size: 12.5px; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; vertical-align: top; }
.md-table th { background: #f2f5fa; font-weight: 600; }

/* ============================ 2026-09-22 看板配色 / 紧凑行 / 下拉直改 ============================ */
.stat.clickable { cursor: pointer; text-align: left; font: inherit; transition: transform .08s, box-shadow .12s; }
.stat.clickable:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(15, 35, 70, .10); }
.stat.clickable:active { transform: none; }

table { table-layout: auto; }
table td, table th { padding: 6px 10px; vertical-align: middle; }
table tbody tr:hover td { background: #f7faff; }

/* 客户列：不同级别不同底色 */
.crm-name { min-width: 260px; max-width: 420px; border-left: 4px solid #d8dee9; }
.crm-name.lv-a { background: #eefaf1; border-left-color: #2fa96b; }
.crm-name.lv-b { background: #eef4ff; border-left-color: #2f6fed; }
.crm-name.lv-c { background: #f6f6f9; border-left-color: #98a2b3; }
.crm-name.lv-x { background: #fffdf5; border-left-color: #e0b64a; }
.crm-name.lv-4 { background: #fff0ee; border-left-color: #d64545; }
.crm-name.lv-3 { background: #fff6e9; border-left-color: #e08a2e; }
.crm-name.lv-2 { background: #eef4ff; border-left-color: #2f6fed; }
.crm-name.lv-1 { background: #f6f7fb; border-left-color: #98a2b3; }
.crm-title { font-size: 14px; line-height: 1.3; }
.crm-role { font-size: 11.5px; color: #7a8699; line-height: 1.35; margin: 2px 0; }
.crm-angle { max-width: 230px; }

/* 行内小下拉 */
.mini-sel { font-size: 12px; padding: 2px 4px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; max-width: 140px; }
.mini-sel:hover { border-color: #b9c6dd; }
.mini-sel.sel-a { background: #eefaf1; border-color: #b7e4c7; font-weight: 600; }
.mini-sel.sel-b { background: #eef4ff; border-color: #c3d7ff; }
.mini-sel.sel-c { background: #f4f5f7; }
.mini-sel.lv-4 { background: #fff0ee; border-color: #f3c0ba; color: #b03030; font-weight: 600; }
.mini-sel.lv-3 { background: #fff6e9; border-color: #f2d3a4; color: #a8620d; font-weight: 600; }
.mini-sel.lv-2 { background: #eef4ff; border-color: #c3d7ff; }
.chip.a4 { background: #fff0ee; color: #b03030; border-color: #f3c0ba; }

/* ===== 2026-09-22 第二批：表头筛选行 / 护眼配色 / 跟进输入列 / 可调列宽 ===== */
.table-wrap { overflow-x: auto; }
thead .hrow th { background: #f3f6fb; font-size: 12.5px; white-space: nowrap; }
thead .frow th { background: #fbfcfe; padding: 4px 6px; border-top: 1px solid #eef1f6; }
thead .frow input, thead .frow select { width: 100%; font-size: 12px; padding: 2px 4px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; }
thead .frow input[type=search] { min-width: 150px; }

/* 护眼：低饱和底色，按重要程度区分（颜色差异明显但不刺眼） */
.crm-name { min-width: 250px; max-width: 460px; border-left: 5px solid #cfd8e6; }
.crm-name.lv-4 { background: #fdeeec; border-left-color: #d9534f; }   /* @@@@ 红 */
.crm-name.lv-3 { background: #fdf3e3; border-left-color: #e08e2b; }   /* @@@ 橙 */
.crm-name.lv-2 { background: #eaf1fd; border-left-color: #3f7ad6; }   /* @@ 蓝 */
.crm-name.lv-1 { background: #eef1f5; border-left-color: #8b98ab; }   /* @ 灰 */
.crm-name.lv-x { background: #fbfaf6; border-left-color: #ded4b8; }   /* 无 */
.crm-name.lv-a { background: #e9f7ee; border-left-color: #3f9e63; }
.crm-name.lv-b { background: #e9f1fe; border-left-color: #3f7ad6; }
.crm-name.lv-c { background: #f0f1f4; border-left-color: #99a2b1; }
.lvtx-a { color: #2f8b57; } .lvtx-b { color: #2f6fed; } .lvtx-c { color: #7b8698; }
.lvtx-4 { color: #c0392b; } .lvtx-3 { color: #b5731a; } .lvtx-2 { color: #2f6fed; } .lvtx-1 { color: #6b7280; }
table tbody tr:hover td { background: #f4f8ff; }
.follow-input { width: 100%; min-width: 170px; font-size: 12px; padding: 3px 6px;
  border: 1px solid var(--line); border-radius: 6px; background: #fffdf7; }
.follow-input:focus { outline: none; border-color: var(--accent); background: #fff; }
.inline-crm-select { width: 100%; max-width: 132px; }
.inline-crm-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 27px;
  padding: 3px 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
}
.inline-crm-input:hover { border-color: var(--line); background: rgba(255,255,255,.72); }
.inline-crm-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(47,95,168,.08);
}
.inline-crm-angle { min-width: 150px; }

/* 详情页：订单金额汇总条 */
.salesum { display: flex; gap: 22px; flex-wrap: wrap; margin: 8px 0; padding: 8px 12px;
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; }
.salesum b { font-size: 17px; color: #12355b; }

/* 顶栏头像（用登录用户的头像，方便辨认窗口） */
.brand .mark { background: #fff; overflow: hidden; border: 1px solid rgba(255,255,255,.35); }
.brand .mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* 顶栏恢复原来的方形色块标记（头像只放浏览器标签页） */
.brand .mark { background: linear-gradient(135deg, #4f8cff, #7ed0ff); }

/* 列宽可拖动的手柄 */
.col-grip { position: absolute; top: 0; right: 0; width: 7px; height: 100%; cursor: col-resize;
  background: transparent; }
.col-grip:hover { background: rgba(47,111,237,.25); }
table thead th { position: relative; }

/* 行内可编辑（点一下变成下拉） */
.editable { cursor: pointer; border-bottom: 1px dashed transparent; }
.editable:hover { border-bottom-color: #2f6fed; }
button.danger { background: #fff0ee; border-color: #f3c0ba; color: #b03030; }
button.danger:hover { background: #ffe3df; }

/* 详情页顺序（按用户指定）：客户分析 → 联系方式 → 下过的订单 → 背景报告 → 跟进情况 → 跟进记录 → 快速调整 */
.cr-grid.cr-stack { display: flex; flex-direction: column; gap: 16px; }
.cr-grid.cr-stack > div { display: contents; }
.cr-ana { order: 1; } .cr-contact { order: 2; } .cr-order { order: 3; }
.cr-report { order: 4; } .cr-follow { order: 5; } .cr-history { order: 6; } .cr-quick { order: 7; }
.cr-grid.cr-stack > .card { margin-top: 0; }

/* 详情页「平铺」布局：多列并排，一屏看全，不来回滚动（2026-10-10 用户要求） */
.cr-grid.cr-stack { display: block; column-count: 3; column-gap: 16px; }
.cr-grid.cr-stack > div { display: contents; }
.cr-grid.cr-stack .card { break-inside: avoid; margin: 0 0 16px; }
.cr-grid.cr-stack .cr-order { column-span: all; }
@media (max-width: 1500px) { .cr-grid.cr-stack { column-count: 2; } }
@media (max-width: 980px) { .cr-grid.cr-stack { column-count: 1; } }

/* ===== 2026-10-10 客户详情页：真实三列网格，订单整行放最下面 ===== */
.cr-grid3 {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.05fr) minmax(400px, 1.45fr);
  gap: 16px;
  align-items: start;
}
.cr-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cr-col > .card, .cr-full > .card { margin: 0; }
.cr-full { grid-column: 1 / -1; min-width: 0; }
.cr-order-pi { margin-bottom: 16px; border-color: #d7e2f0; }
.cr-order-pi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cr-order-pi-head h2 { margin-bottom: 3px; }
.cr-order-pi-scroll { margin-top: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.cr-pi-table { width: 100%; min-width: 720px; margin: 0; border-collapse: collapse; }
.cr-pi-table th, .cr-pi-table td { padding: 10px 12px; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
.cr-pi-table tbody tr:last-child td { border-bottom: 0; }
.cr-pi-table th { background: #f7f9fc; color: #5a6b7c; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.cr-pi-table td:nth-child(3) { min-width: 250px; word-break: break-word; }
.cr-pi-open { white-space: nowrap; }
.cr-order-pi-empty { margin-top: 12px; padding: 13px 14px; border-radius: 8px; background: #f7f9fc; color: var(--muted); font-size: 12px; }
.cr-order-pi-empty.error { color: #8f2525; background: #fff2f1; border: 1px solid #f2c1bd; }
.cr-order-financials { border-color: #d9e2ec; background: linear-gradient(180deg, #fbfcfe, #f7f9fc); }
.cr-order-financial-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.cr-order-financial-head h2 { margin: 0; }
.cr-ledger-total { text-align: right; min-width: 180px; }
.cr-ledger-total span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.cr-ledger-total b { display: block; margin-top: 3px; color: #12355b; font-size: 18px; }
.cr-ledger-total small { display: block; margin-top: 4px; color: #8a5a18; font-size: 11px; }
.cr-ledger-total .cr-ledger-original-total { color: #47586c; font-size: 12px; line-height: 1.55; }
.cr-ledger-fx-note { margin-top: 12px; padding: 8px 11px; border-radius: 7px; background: #eef4fb; color: #42566e; font-size: 11px; line-height: 1.55; }
.cr-ledger-estimate { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-top: 12px; padding: 9px 12px; border: 1px solid #d8e3ee; border-radius: 8px; background: #fff; color: #5d6d7d; font-size: 12px; }
.cr-ledger-estimate b { color: #12355b; }
.cr-ledger-estimate .warn-text { color: #8a5a18; }
.cr-year-folders { display: grid; gap: 10px; margin-top: 16px; }
.cr-year-folder {
  position: relative;
  border: 1px solid #cfdbe8;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(18, 53, 91, .04);
}
.cr-year-folder > summary {
  display: grid;
  grid-template-columns: 20px 34px minmax(72px, auto) minmax(86px, 1fr) auto 16px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 14px 10px 16px;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(135deg, #fff8ec 0%, #fff 58%);
}
.cr-year-folder > summary::-webkit-details-marker { display: none; }
.cr-year-folder-tab {
  position: absolute;
  top: -1px;
  left: 16px;
  width: 76px;
  height: 9px;
  border: 1px solid #e6c998;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #f4d99f;
}
.cr-year-folder-icon { color: #d38a20; font-size: 24px; line-height: 1; }
.cr-year-name { color: #12355b; font-size: 19px; font-weight: 750; letter-spacing: .02em; }
.cr-year-meta { color: #5f6d7c; font-size: 12px; }
.cr-year-total { color: #12355b; font-size: 14px; text-align: right; }
.cr-year-originals { grid-column: 2 / 5; color: #58687b; font-size: 11px; line-height: 1.45; }
.cr-year-chevron { color: #7d8996; font-size: 22px; transform: rotate(0deg); transition: transform .16s ease; }
.cr-year-folder[open] .cr-year-chevron { transform: rotate(90deg); }
.cr-year-order-list { border-top: 1px solid #e8edf3; padding: 4px 14px 8px 60px; }
.cr-ledger-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  border-bottom: 1px dashed #e7ecf2;
}
.cr-ledger-order:last-child { border-bottom: 0; }
.cr-ledger-order-main { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.cr-ledger-order-main b { color: #12355b; }
.cr-ledger-order-main span { color: #657385; font-size: 12px; }
.cr-ledger-order-side { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.cr-ledger-order-side > span { display: grid; gap: 1px; }
.cr-ledger-order-side > span > b { color: #22364f; }
.cr-ledger-order-side > span > small { color: #748193; font-size: 10px; text-transform: uppercase; letter-spacing: .035em; }
.cr-ledger-original { min-width: 124px; }
.cr-ledger-usd { padding-left: 12px; border-left: 1px solid #dfe6ee; }
.cr-ledger-note { margin: 12px 2px 0; }
.cr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.cr-order-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.cr-order-head .salesum { margin: 0; }
.cr-year-table { max-width: 560px; margin-top: 10px; }
.cr-summary-two { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr); gap: 18px; margin-top: 12px; }
.cr-summary-two > div { min-width: 0; }
.cr-folder-line {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px;
  padding: 7px 10px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12.5px; color: #52617a;
}
.cr-folder-line span { word-break: break-all; }
@media (max-width: 900px) { .cr-summary-two { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .cr-order-financial-head { display: block; }
  .cr-ledger-total { margin-top: 10px; text-align: left; }
  .cr-year-folder > summary {
    grid-template-columns: 18px 28px minmax(52px, auto) 1fr 14px;
    gap: 7px;
    padding: 12px 10px 10px;
  }
  .cr-year-folder-tab { left: 10px; width: 64px; }
  .cr-year-name { font-size: 17px; }
  .cr-year-meta { justify-self: start; }
  .cr-year-total { grid-column: 3 / 5; grid-row: 2; text-align: left; }
  .cr-year-originals { grid-column: 1 / 6; grid-row: 3; }
  .cr-year-chevron { grid-column: 5; grid-row: 1 / 3; }
  .cr-year-order-list { padding: 4px 10px 8px 40px; }
  .cr-ledger-order { align-items: flex-start; flex-direction: column; gap: 6px; padding: 9px 0; }
  .cr-ledger-order-side { width: 100%; justify-content: space-between; white-space: normal; }
  .cr-ledger-original { min-width: 0; }
}
@media (max-width: 760px) {
  .cr-order-pi-scroll { overflow: visible; border: 0; }
  .cr-pi-table { min-width: 0; display: block; }
  .cr-pi-table thead { display: none; }
  .cr-pi-table tbody { display: grid; gap: 10px; }
  .cr-pi-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px;
    padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  }
  .cr-pi-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .cr-pi-table td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
  }
  .cr-pi-table td:nth-child(3) { grid-column: 1 / -1; grid-row: 1; }
  .cr-pi-table td:last-child { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
  .cr-pi-table td:last-child::before { text-align: right; }
  .cr-pi-open { min-height: 38px; }
}
.cr-order-list { margin-top: 12px; border-top: 1px solid var(--line); }
.cr-order-row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) 130px;
  gap: 12px; align-items: center; padding: 9px 2px; border-bottom: 1px dashed #eef1f6;
}
.cr-order-row:last-child { border-bottom: 0; }
.cr-order-when b { font-size: 13px; }
.cr-order-body { min-width: 0; }
.cr-order-link { font-size: 13px; word-break: break-all; }
.cr-order-extra { margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.cr-order-extra a { color: var(--muted); text-decoration: underline; }
.cr-order-amt { text-align: right; font-weight: 600; font-size: 13px; white-space: nowrap; }
@media (max-width: 1500px) {
  .cr-grid3 { grid-template-columns: minmax(230px, .85fr) minmax(300px, 1fr) minmax(360px, 1.3fr); }
}
@media (max-width: 1200px) {
  .cr-grid3 { grid-template-columns: 1fr 1fr; }
  .cr-col-right { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .cr-grid3 { grid-template-columns: 1fr; }
  .cr-col-right { grid-column: auto; }
  .cr-order-row { grid-template-columns: 1fr; }
  .cr-order-amt { text-align: left; }
}

/* 详情页布局 v3（2026-10-10）：三列固定位置 —— 左：客户分析+快速调整；中：联系方式+背景报告；右：跟进情况+跟进记录；订单横跨整行 */
.cr-grid.cr-stack { display: grid; grid-template-columns: minmax(300px,1fr) minmax(320px,1.05fr) minmax(320px,1.05fr); gap: 16px; align-items: start; column-count: unset; }
.cr-grid.cr-stack > div { display: contents; }
.cr-grid.cr-stack .card { margin: 0; break-inside: auto; }
.cr-grid.cr-stack .cr-ana { grid-column: 1; }
.cr-grid.cr-stack .cr-quick { grid-column: 1; }
.cr-grid.cr-stack .cr-contact { grid-column: 2; }
.cr-grid.cr-stack .cr-report { grid-column: 2; }
.cr-grid.cr-stack .cr-follow { grid-column: 3; }
.cr-grid.cr-stack .cr-history { grid-column: 3; }
.cr-grid.cr-stack .cr-order { grid-column: 1 / -1; }
@media (max-width: 1100px) { .cr-grid.cr-stack { grid-template-columns: 1fr; } .cr-grid.cr-stack .card { grid-column: 1 !important; } }

/* 详情页版面比例微调（2026-10-10）：左窄（分析+快速调整）、中宽（联系方式+背景报告）、右宽（跟进+记录），订单纯宽在底部 */
.cr-grid.cr-stack { grid-template-columns: minmax(300px, 0.82fr) minmax(340px, 1fr) minmax(360px, 1.06fr); align-items: start; }
.cr-grid.cr-stack .card { height: auto; }
.cr-grid.cr-stack .cr-order { grid-column: 1 / -1; margin-top: 4px; }
.cr-grid.cr-stack .cr-ana, .cr-grid.cr-stack .cr-quick, .cr-grid.cr-stack .cr-contact,
.cr-grid.cr-stack .cr-report, .cr-grid.cr-stack .cr-follow, .cr-grid.cr-stack .cr-history { min-height: 0; }
.cr-grid.cr-stack .cr-quick { margin-top: 16px; }
.cr-grid.cr-stack .cr-report { margin-top: 16px; }
.cr-grid.cr-stack .cr-history { margin-top: 16px; }

/* ------------------------------------------------------ 2026-10-19 单据中心 */

.docs-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.docs-title h1 { font-size: 22px; margin: 0; line-height: 1.2; }
.docs-sub { color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.docs-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.docs-file-link { font: inherit; text-align: left; }
.app.docs-wide-page { max-width: min(97vw, 1900px); padding-left: 16px; padding-right: 16px; }
.docs-route #aiWidget { display: none !important; }

.docs-layout {
  display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
  gap: 18px; align-items: start;
}
.docs-form { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.docs-form .card + .card { margin-top: 0; }
.docs-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.docs-section-head h2 { margin: 0; }
.docs-section-head .toolbar { margin-left: auto; }
.docs-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.docs-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.docs-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 8px; }
.docs-form .field { margin-bottom: 10px; }

.docs-production-note {
  margin: 0 0 10px; padding: 8px 10px; border-radius: 8px;
  background: #f5f8fc; border: 1px solid #dce5ef; color: #52617a; font-size: 11.5px;
}
.docs-customer-searchbar {
  display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 10px;
  align-items: center; margin-bottom: 8px;
}
.docs-customer-searchbar input { width: 100%; }
.docs-customer-results {
  display: grid; gap: 4px; max-height: 220px; overflow: auto; margin-bottom: 10px;
}
.docs-customer-results:empty { display: none; }
.docs-customer-result {
  display: flex; align-items: flex-start; width: 100%; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left;
}
.docs-customer-result:hover { border-color: #a9c6ef; background: #f5f9ff; }
.docs-customer-result span { display: grid; gap: 2px; }
.docs-customer-result small { color: var(--muted); font-size: 10.5px; }
.docs-customer-current {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 12px; background: #f7f9fc; border: 1px solid var(--line);
  border-radius: 9px; margin-bottom: 12px;
}
.docs-customer-current b { font-size: 14px; }
.docs-customer-current span { color: var(--muted); font-size: 12px; }
.docs-mini { color: var(--muted); font-size: 12px; }

.docs-row { cursor: pointer; }
.docs-chip {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; background: #eef2f9; color: #52617a;
  white-space: nowrap;
}
.docs-chip.issued { background: #e6f6ec; color: #1f8a4c; }
.docs-chip.confirmed { background: #eaf1ff; color: #2f6fed; }
.docs-chip.void { background: #fdecec; color: #c0392b; }
.docs-ok { color: var(--ok); font-weight: 600; font-size: 12px; }
.docs-empty { text-align: center; color: var(--muted); padding: 28px; }
.docs-empty-inline { color: var(--muted); font-size: 12px; padding: 8px 0; }

.docs-table { width: 100%; border-collapse: collapse; }
.docs-table th { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.docs-table td { padding: 10px 8px; border-bottom: 1px solid #eef1f6; vertical-align: top; }
.docs-table tbody tr:hover { background: #fafbff; }
.docs-row-actions { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }

.docs-preview { position: sticky; top: 78px; min-width: 0; }
.docs-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.docs-preview-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.docs-tabs {
  display: flex; gap: 4px; background: #fff; border: 1px solid var(--line);
  padding: 4px; border-radius: 10px; flex-wrap: wrap;
}
.docs-tabs button {
  border: 0; background: transparent; padding: 7px 11px; border-radius: 7px;
  font-size: 13px; color: var(--muted);
}
.docs-tabs button.on { background: var(--navy); color: #fff; font-weight: 600; }
.docs-preview iframe {
  width: 100%; height: min(860px, calc(100vh - 150px)); min-height: 680px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: var(--shadow);
}
.docs-preview-foot {
  display: flex; justify-content: space-between; color: var(--muted);
  font-size: 11px; padding: 6px 2px 0;
}

.modal-host .sheet.docs-preview-sheet {
  width: 96vw; max-width: none; height: 94vh; max-height: 94vh;
  margin: 3vh auto; padding: 14px; overflow: hidden;
}
.docs-preview-popup { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; height: 100%; }
.docs-preview-popup-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.docs-preview-popup-head b { display: block; font-size: 16px; color: var(--navy); }
.docs-preview-popup-head span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.docs-preview-popup-tabs { justify-self: start; }
.docs-preview-popup iframe {
  width: 100%; height: 100%; min-height: 0; border: 1px solid var(--line);
  border-radius: 10px; background: #eef2f7;
}

.docs-files { margin-bottom: 10px; }
.docs-export-panel { margin-bottom: 12px; padding: 14px 16px; }
.docs-export-group-title {
  margin: 12px 0 2px; color: #173e6b; font-size: 12px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
}
.docs-export-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px; margin: 10px 0 8px;
}
.docs-export-opt { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.docs-export-opt input { width: auto; }
.docs-generated-note {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px;
  align-items: center; margin-bottom: 9px; padding: 10px 12px;
  background: #eef5ff; border: 1px solid #c8d9f4; border-radius: 9px;
}
.docs-generated-note b { color: #173e6b; font-size: 13px; }
.docs-generated-note span { grid-column: 1; color: #52617a; font-size: 11.5px; line-height: 1.45; }
.docs-generated-note button { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
.docs-file-row { display: flex; gap: 8px; flex-wrap: wrap; }
.docs-file-link {
  display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line);
  border-radius: 9px; padding: 7px 12px; background: #fff; color: var(--ink);
  min-width: 82px;
}
.docs-file-link b { font-size: 12px; }
.docs-file-link span { color: var(--muted); font-size: 10px; }
.docs-file-link:hover { border-color: #c9d2e3; background: #fbfcfe; }
.docs-file-link.muted { opacity: .55; }
.docs-archive {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 10px; margin-top: 8px; font-size: 12px; color: #52617a;
}
.docs-archive span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-archive-path {
  padding: 8px 10px; margin-bottom: 10px; border-radius: 8px;
  background: #f7f9fc; border: 1px solid var(--line);
  color: #52617a; font-size: 11.5px; word-break: break-all;
}
.docs-archive-file {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 2px; border-bottom: 1px solid #eef1f6;
}
.docs-archive-file:last-child { border-bottom: 0; }
.docs-archive-file b { display: block; font-size: 12.5px; word-break: break-all; }
.docs-archive-file span { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.docs-archive-file a { flex: none; text-decoration: none; }
.docs-file-meta { margin-top: 6px; font-size: 12px; }

.docs-total-box { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.docs-total-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; }
.docs-total-row.grand { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; font-size: 15px; }
.docs-total-row.ci { color: #667085; font-size: 12px; }

.doc-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  margin-bottom: 12px; background: #fcfdff;
}
.doc-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.doc-item-head b { font-size: 13px; }
.doc-item-head [data-doc-act="lookup-instruction-history"] { margin-left: 8px; vertical-align: middle; }
.doc-history-note {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: -3px 0 10px; padding: 7px 9px; border-radius: 7px;
  background: #eef5ff; border: 1px solid #c8d9f4; color: #35557b; font-size: 11.5px;
}
.doc-history-note b { color: #173e6b; }
.doc-history-note em { color: #6a7c92; font-style: normal; font-size: 10.5px; }
.doc-item-image {
  display: flex; align-items: center; justify-content: center; width: 190px; height: 110px;
  margin: -2px 0 10px; border: 1px dashed #b9c8da; border-radius: 9px;
  background: #f8fbff; color: #45658b; cursor: pointer; overflow: hidden;
}
.doc-item-image:hover, .doc-item-image.drag-over { border-color: #1f6feb; background: #eef5ff; }
.doc-item-image img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .15s; }
.doc-image-placeholder { display: grid; gap: 3px; text-align: center; }
.doc-image-placeholder b { font-size: 12px; }
.doc-image-placeholder small { color: #7a8da4; font-size: 10px; }
.doc-item-image-block { display: flex; align-items: flex-start; gap: 10px; margin: -2px 0 10px; }
.doc-item-image-block .doc-item-image { margin: 0; flex: none; }
.doc-image-tools { display: grid; gap: 7px; min-width: 220px; }
.doc-image-tools label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; font-size: 11px; color: #596b80; }
.doc-image-tools input[type="range"] { min-width: 90px; }
.doc-image-tools button { justify-self: start; }
.image-crop-stage {
  position: relative; width: 420px; height: 280px; max-width: 100%; margin: 10px auto;
  overflow: hidden; background: #eef2f7; border: 1px solid #cdd8e5; border-radius: 10px;
  touch-action: none; cursor: move;
}
.image-crop-stage img {
  position: absolute; left: 50%; top: 50%; width: 100%; height: 100%;
  object-fit: cover; transform-origin: center; user-select: none; pointer-events: none;
}
.image-crop-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.image-crop-controls label { display: grid; gap: 5px; font-size: 11px; color: #596b80; }
.doc-item-amount { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.doc-item-amount b { color: var(--ink); font-size: 13px; }
.doc-item-more { margin-top: 4px; }
.doc-item-more summary { cursor: pointer; color: var(--accent); font-size: 12px; padding: 4px 0; }
.doc-model-edit {
  margin: 0 0 10px; padding: 10px 12px; border: 1px solid #c8d9f4;
  border-left: 3px solid var(--accent); border-radius: 8px; background: #f4f8ff;
}
.doc-model-edit > span { color: #173e6b; font-weight: 700; }
.doc-model-edit > span em { margin-left: 7px; color: #60738c; font-size: 11px; font-style: normal; font-weight: 400; }
.doc-model-edit input { margin-top: 5px; background: #fff; font-weight: 600; }
.docs-quick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.docs-quick button { font-size: 12px; padding: 4px 8px; }
.docs-suggest { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: -3px 0 10px; }
.docs-suggest button {
  font-size: 11.5px; padding: 3px 7px; background: #f7f9fc; color: #52617a;
  border-color: #e5e9f0;
}
.docs-attach-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px;
  align-items: center; padding: 8px 0; border-bottom: 1px dashed #eef1f6;
  font-size: 12.5px;
}
.docs-attach-row:last-child { border-bottom: 0; }
.docs-attach-row a { word-break: break-all; }
.docs-attach-row span { color: var(--muted); white-space: nowrap; }
.docs-parse-summary {
  display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 9px 12px;
  background: #f4f7fa; border: 1px solid var(--line); border-radius: 9px;
  font-size: 12px; color: #5a6b7c;
}
.docs-parse-summary b { color: #0e2a47; }
.docs-parse-warnings {
  margin-top: 8px; padding: 8px 11px; border-left: 3px solid #ff6b35;
  background: #fff6ef; color: #8a3d10; font-size: 12px; line-height: 1.55;
}
.docs-address-check {
  margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 12px; line-height: 1.55;
}
.docs-address-check.ok { color: #12633b; background: #effaf4; border: 1px solid #bde8ce; }
.docs-address-check.warn { color: #8a4b00; background: #fff8e8; border: 1px solid #f1d49a; }
.docs-address-check.bad { color: #9d2d2d; background: #fff2f1; border: 1px solid #f2c1bd; }
.docs-address-check label { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; }
.docs-address-source {
  margin: -1px 0 10px; padding: 7px 10px; border-radius: 8px;
  background: #eef5ff; border: 1px solid #c8d9f4; color: #1c3f68; font-size: 11.5px;
}
.order-drop-zone {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px; padding: 12px; border: 1.5px dashed #b9c8da;
  border-radius: 10px; background: #f8fafc; transition: .15s ease;
}
.order-drop-zone.drag-over {
  border-color: #1f6feb; background: #eef5ff;
  box-shadow: inset 0 0 0 2px rgba(31,111,235,.08);
}
.docs-inline-order-input {
  margin: 10px 0; padding: 12px; border: 1px solid #c8d9f4; border-radius: 10px;
  background: #f7faff;
}
.docs-inline-order-title { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.docs-inline-order-title b { color: #173e6b; font-size: 13px; }
.docs-inline-order-title span { color: var(--muted); font-size: 11.5px; }
.docs-inline-order-input textarea { width: 100%; min-height: 82px; resize: vertical; background: #fff; }
.docs-inline-order-input .toolbar { margin-top: 8px; }
.docs-inline-result { margin-top: 9px; padding: 10px; border: 1px solid #dbe5f2; border-radius: 9px; background: #fff; }
.docs-inline-result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.docs-inline-result-head b { color: #173e6b; font-size: 13px; }
.docs-inline-result-head span { color: var(--muted); font-size: 11px; }
.docs-inline-result .toolbar { margin-top: 7px; }
.docs-inline-warnings {
  margin-top: 8px; padding: 8px 10px; border-left: 3px solid #ff6b35;
  background: #fff6ef; color: #8a3d10; font-size: 11.5px; line-height: 1.5;
}
.docs-supplier-price-panel {
  margin: 2px 0 12px; padding: 11px 12px; border: 1px solid #c8d9f4;
  border-left: 3px solid #ff6b35; border-radius: 9px; background: #fbfcff;
}
.docs-supplier-price-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.docs-supplier-price-head b { color: #173e6b; font-size: 13px; }
.docs-supplier-price-head span { color: var(--muted); font-size: 11.5px; }
.docs-supplier-price-head select { width: 130px; margin-left: auto; padding: 5px 8px; }
.docs-supplier-price-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px 100px;
  gap: 10px; align-items: end; padding: 8px 0; border-bottom: 1px dashed #e3e9f0;
}
.docs-supplier-price-product b { display: block; color: #1c2b3a; font-size: 12.5px; }
.docs-supplier-price-product span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.docs-supplier-price-product i { font-style: normal; }
.docs-supplier-price-row label span,
.docs-supplier-price-amount span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10.5px; }
.docs-supplier-price-row input { width: 100%; }
.docs-supplier-price-amount b { display: block; padding-bottom: 9px; font-size: 13px; color: var(--navy); text-align: right; }

/* Admin commission + user-activity dashboard */
.admin-rule-card { border-color: #d9e5f5; background: linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%); }
.admin-rule-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px; margin-top: 14px;
}
.admin-rule-grid > div {
  display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px;
  padding: 10px 12px; background: rgba(255,255,255,.8); border: 1px solid #e2eaf5; border-radius: 10px;
}
.admin-rule-grid b { color: #243853; font-size: 13px; }
.admin-rule-grid span { color: #5e6f86; font-size: 12px; line-height: 1.55; }
.admin-dashboard-period { margin: 0 0 14px; }
.admin-usage-language {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  white-space: nowrap;
}
.admin-usage-language label {
  color: #67788e;
  font-size: 11px;
  font-weight: 700;
}
.admin-usage-language select { width: auto; min-width: 96px; }
.admin-bars { display: grid; gap: 12px; }
.admin-bars.compact { gap: 9px; }
.admin-bar-row {
  display: grid; grid-template-columns: minmax(130px, 190px) minmax(120px, 1fr) 92px;
  align-items: center; gap: 12px;
}
.admin-bar-label { min-width: 0; }
.admin-bar-label b { display: block; font-size: 13px; color: #243853; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-bar-label small { display: block; margin-top: 2px; font-size: 11px; color: #8290a3; }
.admin-bar-track {
  height: 10px; border-radius: 999px; overflow: hidden;
  background: #e9eef6; box-shadow: inset 0 1px 2px rgba(24, 42, 69, .06);
}
.admin-bar-track i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #2f6fed, #78a9ff);
}
.admin-bar-track.alt i { background: linear-gradient(90deg, #2d9b72, #73c9a4); }
.admin-bar-track.trend i { background: linear-gradient(90deg, #d98b35, #f0bd74); }
.admin-bar-value { text-align: right; font-size: 12px; color: #30425e; white-space: nowrap; }
.admin-user-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-user-card {
  position: relative; overflow: hidden; padding: 18px; border-radius: 14px;
  border: 1px solid #dfe7f2; background: #fff; box-shadow: 0 8px 24px rgba(20, 40, 70, .06);
}
.admin-user-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #3f78d8; }
.admin-user-card.tone-2::before { background: #2d9b72; }
.admin-user-card.tone-3::before { background: #d98b35; }
.admin-user-card.tone-4::before { background: #7b61c9; }
.admin-user-card.tone-5::before { background: #c85c78; }
.admin-user-head { display: flex; align-items: center; gap: 10px; }
.admin-user-head > div { min-width: 0; flex: 1; }
.admin-user-head b { display: block; font-size: 15px; color: #20324d; }
.admin-user-head small { display: block; color: #8190a4; font-size: 11px; margin-top: 2px; }
.admin-avatar {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 12px; background: #edf3ff; color: #2f6fed; font-weight: 800; font-size: 15px;
}
.tone-2 .admin-avatar { background: #eaf7f1; color: #247b59; }
.tone-3 .admin-avatar { background: #fff5e8; color: #b46c21; }
.tone-4 .admin-avatar { background: #f1edff; color: #6a51b7; }
.tone-5 .admin-avatar { background: #fff0f4; color: #ad4b67; }
.admin-user-rank { color: #9aa7b8; font-size: 11px; font-weight: 700; }
.admin-user-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.admin-user-metrics > div { padding: 9px 10px; border-radius: 10px; background: #f7f9fc; }
.admin-user-metrics b { display: block; font-size: 17px; color: #223651; }
.admin-user-metrics span { display: block; margin-top: 2px; font-size: 10px; color: #8290a3; }
.admin-user-progress { height: 6px; border-radius: 999px; background: #e9eef6; margin: 13px 0 14px; overflow: hidden; }
.admin-user-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3f78d8, #84b3ff); }
.tone-2 .admin-user-progress i { background: linear-gradient(90deg, #2d9b72, #7dccaa); }
.tone-3 .admin-user-progress i { background: linear-gradient(90deg, #d98b35, #f0bd74); }
.tone-4 .admin-user-progress i { background: linear-gradient(90deg, #7b61c9, #b29ff0); }
.tone-5 .admin-user-progress i { background: linear-gradient(90deg, #c85c78, #eca5b7); }
.admin-platform-list { display: grid; gap: 6px; }
.admin-platform-line {
  display: grid; grid-template-columns: 8px minmax(100px, 1fr) auto auto;
  align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; background: #f8fafc;
  font-size: 12px; color: #4b5e76;
}
.admin-platform-line b { color: #253a57; }
.admin-platform-line span:not(.admin-platform-dot) { color: #7c8ba0; }
.admin-platform-line strong { color: #30425e; }
.admin-platform-dot { width: 7px; height: 7px; border-radius: 50%; background: #3f78d8; }
.admin-platform-dot.dot-2 { background: #2d9b72; }
.admin-platform-dot.dot-3 { background: #d98b35; }
.admin-user-meta {
  margin-top: 13px; padding-top: 11px; border-top: 1px dashed #e4eaf3;
  display: grid; gap: 5px; font-size: 11px; color: #68798f;
}
.admin-user-meta b { display: inline-block; width: 64px; color: #344963; }

.admin-login-stat b { color: #1d68d8; }
.admin-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}
.admin-sort-button:hover,
.admin-sort-button:focus-visible { color: #1f60c7; }
.admin-sort-button:focus-visible { outline: 2px solid #8db8ff; outline-offset: 3px; border-radius: 3px; }
.admin-sort-button span { color: #9aa9bd; font-size: 10px; }
.admin-usage-header-search {
  display: block;
  margin-top: 6px;
  white-space: normal;
  text-transform: none;
  letter-spacing: normal;
}
.admin-usage-header-search input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #d7e1ed;
  border-radius: 7px;
  background: #fff;
  color: #31465f;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}
.admin-usage-header-search input:focus {
  border-color: #78a8ec;
  outline: 2px solid rgba(74, 132, 219, .2);
  outline-offset: 0;
}
.admin-usage-table-card { overflow: hidden; }
.admin-usage-table-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}
.admin-usage-table-head > div:first-child { min-width: 0; }
.admin-usage-table-head h2 { margin-bottom: 4px; }
.admin-usage-table-head p { margin: 0; line-height: 1.5; }
.admin-usage-table-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.admin-usage-search input { width: min(310px, 34vw); min-width: 210px; }
.admin-usage-table-wrap {
  max-width: 100%;
  max-height: 68vh;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dfe7f2;
  border-radius: 11px;
  background: #fff;
}
.admin-usage-table-wrap:focus-visible { outline: 2px solid #8db8ff; outline-offset: 2px; }
.admin-usage-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11.5px;
}
.admin-usage-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 9px 10px;
  border-bottom: 1px solid #dbe4f0;
  background: #f4f7fb;
  color: #61738a;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .025em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-usage-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf1f6;
  color: #344963;
  line-height: 1.4;
  vertical-align: middle;
}
.admin-usage-table tbody tr:hover { background: #f8fbff; }
.admin-usage-table tbody tr[data-staff-detail-row] { cursor: pointer; outline: none; }
.admin-usage-table tbody tr[data-staff-detail-row]:focus-visible {
  background: #f4f8ff;
  box-shadow: inset 3px 0 0 #2f6fed;
}
.admin-usage-table tbody tr:last-child td { border-bottom: 0; }
.admin-usage-table .admin-usage-sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 210px;
  background: #fff;
  box-shadow: 1px 0 0 #e7edf5;
}
.admin-usage-table th.admin-usage-sticky-col { z-index: 4; background: #f4f7fb; }
.admin-usage-table tbody tr:hover .admin-usage-sticky-col { background: #f8fbff; }
.admin-usage-user { display: flex; align-items: center; gap: 9px; min-width: 0; }
.admin-usage-user > span:last-child { min-width: 0; }
.admin-usage-user b,
.admin-usage-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-usage-user b { color: #203651; font-size: 12px; }
.admin-usage-user small { margin-top: 2px; color: #8190a4; font-size: 10px; }
.admin-usage-rank {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: #eef4ff;
  color: #2f6fed;
  font-size: 10px;
  font-weight: 800;
}
.admin-usage-table .admin-login-column {
  min-width: 116px;
  background: #f3f8ff;
}
.admin-login-cell { min-width: 108px; }
.admin-login-cell .admin-login-count {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.admin-login-count.login-idle { background: #f1f4f8; color: #7e8ca0; }
.admin-login-count.login-active { background: #e8f1ff; color: #2868cc; }
.admin-login-count.login-warm { background: #dceaff; color: #1555b8; }
.admin-login-count.login-hot { background: #cfe1ff; color: #0a429c; box-shadow: inset 0 0 0 1px #a9c9f7; }
.admin-login-meter {
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5ecf5;
}
.admin-login-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4b83dc, #83b0f4);
}
.admin-metric-value { color: #233c5d; white-space: nowrap; }
.admin-location-cell { max-width: 170px; }
.admin-location-cell b,
.admin-location-cell small { display: block; overflow-wrap: anywhere; }
.admin-location-cell b { color: #3e536d; font-size: 10.5px; }
.admin-location-cell small { margin-top: 2px; color: #8997a8; font-size: 9.5px; }
.admin-platform-summary { display: grid; gap: 3px; min-width: 150px; }
.admin-platform-summary > span {
  display: grid;
  grid-template-columns: minmax(78px, 1fr) auto;
  gap: 6px;
  align-items: center;
}
.admin-platform-summary b {
  overflow: hidden;
  color: #3c5471;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-platform-summary small { color: #7b8da4; font-size: 9.5px; white-space: nowrap; }
.admin-usage-empty td { padding: 28px 14px; color: #7d8ca0; text-align: center; }
.admin-usage-empty-note { margin: 9px 0 0; color: #7d8ca0; font-size: 12px; text-align: center; }
.admin-global-activity { margin-top: 0 !important; }
.admin-global-activity-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0;
}
.admin-global-activity-stats .stat { min-width: 0; }
.admin-activity-toolbar {
  flex-wrap: wrap;
  margin: 14px 0;
}
.admin-activity-toolbar .admin-usage-search { flex: 1 1 330px; }
.admin-activity-toolbar .admin-usage-search input {
  width: 100%;
  min-width: 230px;
}
.admin-activity-toolbar select { min-width: 142px; }
#adminUsageStatusFilter { width: auto; flex: 0 1 220px; }
#adminUsageUserCount { margin-left: auto; white-space: nowrap; }
.admin-global-activity-table { min-width: 1500px; }
.admin-global-activity-table .admin-usage-sticky-col {
  min-width: 300px;
  max-width: 340px;
}
.admin-activity-identity { min-width: 0; }
.admin-activity-identity small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #8190a4;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-activity-display-name {
  display: block;
  color: #203651;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.admin-profile-region-column { min-width: 150px; max-width: 220px; overflow-wrap: anywhere; }
.admin-profile-gender-column { min-width: 82px; white-space: nowrap; }
.partner-status.activity-only {
  color: #66518f;
  background: #f1edfb;
}
.admin-activity-detail-cell { min-width: 300px; max-width: 380px; }
.admin-activity-events summary {
  color: #315f9b;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}
.admin-activity-events summary:focus-visible {
  outline: 2px solid #8db8ff;
  outline-offset: 2px;
  border-radius: 3px;
}
.admin-activity-event-list {
  display: grid;
  gap: 5px;
  max-height: 260px;
  margin-top: 8px;
  overflow: auto;
  overscroll-behavior: contain;
}
.admin-activity-event {
  display: grid;
  grid-template-columns: 112px 76px minmax(0, 1fr);
  gap: 5px 8px;
  padding: 7px 8px;
  border: 1px solid #e6edf6;
  border-radius: 7px;
  background: #f8fafc;
  color: #53677f;
  font-size: 9.5px;
  line-height: 1.35;
}
.admin-activity-event time { color: #8190a4; white-space: nowrap; }
.admin-activity-event b { color: #274566; white-space: nowrap; }
.admin-activity-event span { overflow-wrap: anywhere; }
.admin-activity-event small {
  grid-column: 1 / -1;
  color: #8a98aa;
  overflow-wrap: anywhere;
}
.admin-activity-no-events { color: #8b99aa; font-size: 10px; }
.partner-ops-table th .admin-sort-button { min-height: 32px; }
.partner-ops-table .partner-login-column { min-width: 108px; }

.partner-directory {
  padding: 22px;
  border: 1px solid #dfe7f1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 0%, rgba(47, 111, 237, .10), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f8fbff 62%, #fffaf5 100%);
  box-shadow: 0 12px 32px rgba(24, 47, 81, .06);
}
.partner-directory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.partner-directory-head > div:first-child { max-width: 720px; }
.partner-kicker {
  display: inline-block;
  color: #2f6fed;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.partner-directory-head h2 { margin: 6px 0 5px; font-size: 24px; color: #172b49; }
.partner-directory-head p { margin: 0; color: #66768b; line-height: 1.6; font-size: 13px; }
.partner-directory-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  gap: 7px;
  min-width: 230px;
}
.partner-directory-summary span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  color: #738197;
  font-size: 10.5px;
}
.partner-directory-summary b { color: #203755; font-size: 18px; line-height: 1; }
.partner-refresh-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}
.partner-refresh-status span {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #dce7f4;
  border-radius: 9px;
  background: rgba(247, 250, 255, .9);
  color: #52677f;
  font-size: 10.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.partner-refresh-status b {
  display: block;
  margin-bottom: 2px;
  color: #718198;
  font-size: 9px;
  text-transform: uppercase;
}
.partner-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 17px 0 14px;
  padding: 10px 12px;
  border: 1px solid #f0d4aa;
  border-radius: 10px;
  background: #fff9ef;
  color: #74552c;
  font-size: 11.5px;
  line-height: 1.55;
}
.partner-notice b { flex: none; color: #9a5b0c; }
.partner-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.partner-toolbar input { width: min(390px, 100%); }
.partner-toolbar select { min-width: 132px; }
.partner-toolbar #partnerDirectoryCount { margin-left: auto; white-space: nowrap; }
.partner-export-all { margin-right: 2px; white-space: nowrap; text-decoration: none; }
.partner-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.partner-person-card {
  position: relative;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e1e8f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(28, 52, 84, .045);
  overflow: hidden;
}
.partner-person-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #3f78d8;
}
.partner-person-card.tone-2::before { background: #2d9b72; }
.partner-person-card.tone-3::before { background: #d98b35; }
.partner-person-card.tone-4::before { background: #7b61c9; }
.partner-person-card.tone-5::before { background: #c85c78; }
.partner-person-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-left: 3px;
}
.partner-person-head > div { min-width: 0; flex: 1; }
.partner-person-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: #edf3ff;
  color: #2f6fed;
  font-size: 16px;
  font-weight: 800;
}
.tone-2 .partner-person-avatar { background: #eaf7f1; color: #247b59; }
.tone-3 .partner-person-avatar { background: #fff5e8; color: #b46c21; }
.tone-4 .partner-person-avatar { background: #f1edff; color: #6a51b7; }
.tone-5 .partner-person-avatar { background: #fff0f4; color: #ad4b67; }
.partner-person-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.partner-person-title h3 {
  margin: 0;
  min-width: 0;
  color: #1c304e;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.partner-person-head p { margin: 3px 0 0; color: #738197; font-size: 11.5px; }
.partner-status {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .02em;
}
.partner-status.active { color: #217453; background: #e9f7f0; }
.partner-status.inactive { color: #6b7788; background: #eef2f6; }
.partner-status.disabled { color: #8b5a52; background: #f7eeec; }
.partner-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.partner-facts > div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f7f9fc;
}
.partner-facts span,
.partner-experience > span,
.partner-capabilities > span {
  display: block;
  margin-bottom: 4px;
  color: #8390a2;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.partner-facts b {
  display: block;
  color: #2a405f;
  font-size: 11.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.partner-experience,
.partner-capabilities { margin-top: 12px; }
.partner-experience p {
  margin: 0;
  color: #41546e;
  font-size: 11.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.partner-capabilities > div { display: flex; flex-wrap: wrap; gap: 5px; }
.partner-capabilities em {
  padding: 4px 7px;
  border: 1px solid #dfe8f5;
  border-radius: 6px;
  background: #f8fbff;
  color: #3d5d82;
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
}
.partner-person-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px dashed #e6ebf2;
  color: #8a6a3e;
  font-size: 9.5px;
}
.partner-file-flag { flex: none; color: #47745f; }
.partner-directory-empty {
  padding: 26px 14px;
  border: 1px dashed #cfd9e7;
  border-radius: 12px;
  color: #7b899c;
  text-align: center;
  background: #fbfcfe;
}
.partner-directory-updated { margin-top: 11px; text-align: right; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.partner-abc {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dfe7f1;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(47, 111, 237, 0.08), transparent 34%),
    #fff;
  min-width: 0;
}
.partner-abc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.partner-abc-head > div:first-child { min-width: 0; max-width: 820px; }
.partner-abc-head h3 { margin: 5px 0; color: #172b49; font-size: 22px; }
.partner-abc-head p { margin: 0; color: #66768b; font-size: 12.5px; line-height: 1.6; }
.partner-abc-downloads { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.partner-abc-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.partner-abc-summary > span,
.partner-abc-schedule > span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  background: #f8fafc;
  color: #738197;
  font-size: 10px;
  line-height: 1.35;
}
.partner-abc-summary b {
  display: block;
  margin-bottom: 2px;
  color: #203755;
  font-size: 18px;
}
.partner-abc-summary .abc-a b { color: #16704b; }
.partner-abc-summary .abc-b b { color: #9a650f; }
.partner-abc-summary .abc-c b { color: #b34747; }
.partner-abc-summary .abc-disabled b { color: #7c8798; }
.partner-abc-schedule {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.partner-abc-schedule b { display: block; margin-bottom: 2px; color: #415671; font-size: 9.5px; }
.partner-abc-table-wrap {
  margin-top: 12px;
  overflow: auto;
  max-height: 66vh;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
}
.partner-abc-table-wrap:focus-visible { outline: 2px solid #8db8ff; outline-offset: 2px; }
.partner-abc-table {
  width: 100%;
  min-width: 1280px;
  border-collapse: collapse;
  font-size: 11px;
}
.partner-abc-table th,
.partner-abc-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  vertical-align: top;
}
.partner-abc-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f5f8fc;
  color: #66768b;
  font-size: 9.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.partner-abc-table tbody tr:last-child td { border-bottom: 0; }
.partner-abc-table tbody tr:hover { background: #f9fbff; }
.partner-abc-table .num { text-align: right; white-space: nowrap; }
.partner-abc-identity { min-width: 190px; }
.partner-abc-identity b,
.partner-abc-identity small { display: block; }
.partner-abc-identity b { color: #253e5f; }
.partner-abc-identity small { margin-top: 2px; color: #8190a4; font-size: 9.5px; }
.partner-abc-copy { min-width: 240px; max-width: 330px; color: #3b516d; line-height: 1.45; }
.abc-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
}
.abc-grade.abc-a { color: #176b4c; background: #e7f7ef; }
.abc-grade.abc-b { color: #8b5c0f; background: #fff4dd; }
.abc-grade.abc-c { color: #a53e3e; background: #fdecec; }
.abc-grade.abc-disabled { color: #687486; background: #edf1f5; }
.partner-abc-note { margin: 9px 2px 0; }
.partner-abc-history { margin-top: 12px; border-top: 1px solid #edf1f6; padding-top: 10px; }
.partner-abc-history summary { cursor: pointer; color: #345f91; font-size: 11.5px; font-weight: 700; }
.partner-abc-bar {
  height: 8px;
  min-width: 90px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eef6;
}
.partner-abc-bar i { display: block; height: 100%; border-radius: inherit; background: #3f78d8; }
.partner-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #dfe7f2;
  border-radius: 11px;
  background: #fff;
}
.partner-ops-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11.5px;
}
.partner-ops-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 10px;
  border-bottom: 1px solid #dfe7f2;
  background: #f5f8fc;
  color: #68788d;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .025em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.partner-ops-table td {
  padding: 10px;
  border-bottom: 1px solid #edf1f6;
  color: #344963;
  line-height: 1.42;
  vertical-align: middle;
}
.partner-ops-table tr:last-child td { border-bottom: 0; }
.partner-ops-table tbody tr { cursor: pointer; outline: none; }
.partner-ops-table tbody tr:hover,
.partner-ops-table tbody tr:focus-visible { background: #f7faff; }
.partner-ops-table tbody tr:focus-visible { box-shadow: inset 3px 0 0 #2f6fed; }
.partner-ops-table td b,
.partner-ops-table td small { display: block; }
.partner-ops-table td b { color: #263c59; font-size: 11.5px; }
.partner-ops-table td small { margin-top: 2px; color: #8190a3; font-size: 10px; }
.partner-ops-table code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #edf4ff;
  color: #285b9d;
  font-weight: 800;
}
.partner-ops-table .partner-wechat {
  white-space: nowrap;
  background: #f4f7fb;
  color: #36506d;
}
.partner-export-link {
  display: inline-flex;
  margin-top: 4px;
  color: #2f6fed;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}
.partner-export-link:hover { text-decoration: underline; }
.partner-row-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 5px 9px;
  border: 1px solid #cfdbeb;
  border-radius: 7px;
  color: #315f9b;
  background: #fff;
  font-size: 10.5px;
  font-weight: 700;
}
.partner-detail-sheet { width: min(980px, calc(100vw - 40px)); max-width: 980px; }
.partner-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.partner-detail-head h2 { margin: 4px 0 3px; }
.partner-detail-head h2 small { color: #718198; font-size: 14px; font-weight: 500; }
.partner-detail-head p { margin: 0; color: #67788e; font-size: 12px; }
.partner-detail-summary,
.partner-usage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.partner-detail-summary > div,
.partner-usage-grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e3eaf4;
  border-radius: 9px;
  background: #f8fafc;
}
.partner-detail-summary b,
.partner-usage-grid b { display: block; color: #213b5d; font-size: 15px; overflow-wrap: anywhere; }
.partner-detail-summary span,
.partner-usage-grid span {
  display: block; margin-top: 3px; color: #7c8b9f; font-size: 9.5px;
  font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.partner-detail-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf1f6;
}
.partner-detail-section h3 { margin: 0 0 10px; color: #223a59; font-size: 14px; }
.partner-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.partner-detail-grid > div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f7f9fc;
}
.partner-detail-grid span,
.partner-detail-copy span { display: block; margin-bottom: 3px; color: #8190a3; font-size: 9.5px; font-weight: 700; text-transform: uppercase; }
.partner-detail-grid b { display: block; color: #314963; font-size: 11.5px; line-height: 1.45; overflow-wrap: anywhere; }
.partner-detail-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
}
.partner-detail-copy p { margin: 0; color: #2f465f; font-size: 11.5px; line-height: 1.55; overflow-wrap: anywhere; }
.partner-detail-copy p.wide { grid-column: 1 / -1; }
.partner-detail-capabilities,
.partner-background-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 11px 0 7px;
}
.partner-detail-capabilities em,
.partner-background-files li {
  padding: 5px 8px;
  border: 1px solid #dce6f3;
  border-radius: 6px;
  background: #f7faff;
  color: #3c5d83;
  font-size: 10px;
  font-style: normal;
  list-style: none;
  overflow-wrap: anywhere;
}
.partner-background-files { padding: 0; }
.partner-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.partner-section-head > b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  background: #edf4ff;
  color: #2e62a3;
  font-size: 12px;
}
.partner-section-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.partner-section-head > div > b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  background: #edf4ff;
  color: #2e62a3;
  font-size: 12px;
}
.partner-leads-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 11px; }
.partner-leads-table th,
.partner-leads-table td { padding: 8px; border-bottom: 1px solid #edf1f6; text-align: left; vertical-align: top; }
.partner-leads-table th { background: #f7f9fc; color: #6f7f93; font-size: 9.5px; text-transform: uppercase; }
.partner-leads-table td b,
.partner-leads-table td small { display: block; }
.partner-leads-table td small { margin-top: 2px; color: #7d8ca0; font-size: 9.5px; }
.partner-leads-empty td {
  padding: 24px 12px !important;
  color: #64748b;
  text-align: center;
}
.partner-platform-list,
.partner-activity-detail ul { display: grid; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
.partner-platform-list li,
.partner-activity-detail li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #f7f9fc;
  color: #51647b;
  font-size: 10.5px;
}
.partner-platform-list li b,
.partner-activity-detail li b { color: #2d496a; }
.partner-platform-list li span:last-child { margin-left: auto; color: #345a86; font-weight: 700; }
.partner-activity-detail { margin-top: 10px; }
.partner-activity-detail summary { cursor: pointer; color: #365f91; font-size: 11.5px; font-weight: 700; }
.partner-activity-detail li span:last-child { overflow-wrap: anywhere; }
.partner-detail-actions { justify-content: flex-end; margin-top: 16px; }

@media (max-width: 760px) {
  .admin-rule-grid { grid-template-columns: 1fr; }
  .admin-bar-row { grid-template-columns: minmax(100px, 1fr) minmax(80px, 1.2fr) 72px; }
  .admin-user-grid { grid-template-columns: 1fr; }
  .admin-usage-table-head { display: block; }
  .admin-usage-table-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin-top: 12px;
  }
  .admin-usage-search input { width: 100%; min-width: 0; }
  .admin-usage-table-wrap { max-height: 62vh; }
  .admin-usage-table { min-width: 960px; }
  .admin-usage-table .admin-usage-sticky-col { min-width: 176px; max-width: 176px; }
  .admin-global-activity-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-activity-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .admin-activity-toolbar .admin-usage-search { grid-column: 1 / -1; }
  .admin-activity-toolbar .partner-export-all { grid-column: auto; justify-content: center; }
  .admin-activity-toolbar select { width: 100%; }
  #adminUsageStatusFilter { width: 100%; flex: none; }
  #adminUsageUserCount { margin-left: 0; align-self: center; }
  .admin-global-activity-table { min-width: 1370px; }
  .admin-global-activity-table .admin-usage-sticky-col { min-width: 238px; max-width: 238px; }
  .admin-activity-event { grid-template-columns: 102px 70px minmax(0, 1fr); }
  .admin-sort-button { min-height: 38px; }
  .customer-amount-table { min-width: 1120px; }
  .customer-amount-table .admin-sort-button { min-height: 38px; }
  .partner-directory { padding: 16px; border-radius: 14px; }
  .partner-directory-head { display: block; }
  .partner-directory-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
    margin-top: 14px;
  }
  .partner-refresh-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-directory-summary span {
    display: block;
    min-height: 0;
    padding: 8px 5px;
    text-align: center;
  }
  .partner-directory-summary b { display: block; margin-bottom: 4px; font-size: 16px; }
  .partner-notice { display: block; }
  .partner-notice b { display: block; margin-bottom: 3px; }
  .partner-toolbar { display: grid; grid-template-columns: 1fr auto; }
  .partner-toolbar .partner-export-all { grid-column: 1 / -1; justify-content: center; }
  .partner-toolbar input { width: 100%; grid-column: 1 / -1; }
  .partner-toolbar #partnerDirectoryCount { margin-left: 0; }
  .partner-directory-grid { grid-template-columns: 1fr; }
  .partner-detail-sheet { width: calc(100vw - 20px); margin: 10px auto; padding: 17px 14px; }
  .partner-detail-summary,
  .partner-usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-detail-grid,
  .partner-detail-copy { grid-template-columns: 1fr; }
  .partner-detail-copy p.wide { grid-column: auto; }
  .partner-ops-table { min-width: 1180px; }
  .partner-abc { padding: 14px; border-radius: 14px; }
  .partner-abc-head { display: block; }
  .partner-abc-downloads { justify-content: flex-start; margin-top: 10px; }
  .partner-abc-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partner-abc-schedule { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-abc-table { min-width: 1360px; }
  .partner-abc-table-wrap { max-height: 58vh; }
}
@media (max-width: 430px) {
  .partner-directory-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-refresh-status { grid-template-columns: 1fr; }
  .partner-facts { grid-template-columns: 1fr; }
  .partner-person-foot { align-items: flex-start; flex-direction: column; }
  .partner-detail-head { display: block; }
  .partner-detail-head .partner-status { margin-top: 8px; }
  .partner-detail-summary,
  .partner-usage-grid { grid-template-columns: 1fr; }
  .partner-abc-summary,
  .partner-abc-schedule { grid-template-columns: 1fr; }
  .partner-abc-downloads .btn { justify-content: center; width: 100%; }
}
.docs-supplier-price-total { display: flex; justify-content: flex-end; gap: 18px; margin-top: 9px; font-size: 12px; }
.docs-supplier-price-total b { color: #c34b1a; font-size: 15px; }
.docs-note-guide {
  display: grid; gap: 6px; margin: 0 0 12px; padding: 10px 12px;
  border-radius: 9px; background: #f7f9fc; border: 1px solid var(--line);
}
.docs-note-guide div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
.docs-note-guide b { color: #173e6b; font-size: 11.5px; }
.docs-note-guide span { color: #607086; font-size: 11.5px; line-height: 1.45; }
.docs-inline-drop {
  margin: 7px 0 10px; padding: 9px 12px; border: 1px dashed #b9c8da;
  border-radius: 9px; background: #f8fafc; color: #607086;
  font-size: 12px; text-align: center; transition: .15s ease;
}
.docs-inline-drop.drag-over {
  border-color: #1f6feb; background: #eef5ff; color: #1c3f68;
}
.docs-ai-review {
  margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 12px; line-height: 1.55;
  color: #1c3f68; background: #eef5ff; border: 1px solid #c8d9f4;
}
.docs-ai-review.bad { color: #8f2525; background: #fff2f1; border-color: #f2c1bd; }
.docs-ai-review ul { margin: 7px 0 0; padding-left: 20px; }
.docs-ai-review li.error { color: #a12222; font-weight: 600; }
.docs-ai-review li.warn { color: #8a4b00; }
.docs-ai-parse { margin-top: 8px; color: #1c3f68; font-size: 12px; }
.docs-static {
  min-height: 38px; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc;
}
.docs-static b { font-size: 12.5px; color: #1c2b3a; }
.docs-static small { color: var(--muted); font-size: 11px; }
.docs-order-parse-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.docs-order-parse-table th, .docs-order-parse-table td {
  padding: 7px 8px; border-bottom: 1px solid #eef1f6; text-align: left; vertical-align: top;
}
.docs-order-parse-table th { font-size: 11px; color: #5a6b7c; background: #fafcfe; }
.docs-parse-manual { color: #b34c09; font-size: 11.5px; font-weight: 600; }

.docs-picker { padding: 4px; }
.docs-picker-wide { width: min(760px, 84vw); }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.picker-list { margin-top: 10px; max-height: 60vh; overflow: auto; border-top: 1px solid var(--line); }
.picker-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  border: 0; border-bottom: 1px solid #eef1f6; border-radius: 0; padding: 10px 8px;
  text-align: left; background: #fff;
}
.picker-row:hover { background: #f7f9fc; }
.picker-row b { font-size: 13px; }
.picker-row span { color: var(--muted); font-size: 12px; }
.picker-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; border-top: 0; }
.picker-product {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px; text-align: left; background: #fff;
}
.picker-product:hover { border-color: #c9d2e3; background: #fbfcfe; }
.picker-thumb {
  width: 64px; height: 38px; flex: none; display: grid; place-items: center;
  overflow: hidden; background: #fff; border: 1px solid #edf0f4; border-radius: 6px;
}
.picker-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.picker-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.picker-info b { font-size: 12.5px; }
.picker-info span { font-size: 12px; color: #344054; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-info small { font-size: 10.5px; color: var(--muted); }
.picker-info .picker-history { color: #1f5da8; font-weight: 700; white-space: normal; line-height: 1.35; }
.picker-info .picker-history-cn {
  display: -webkit-box; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4; color: #4d6180;
}
.picker-info .picker-history-miss { color: #8a6a35; white-space: normal; }

.customer-fx-note {
  display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
  margin: -2px 0 12px; padding: 10px 12px; border: 1px solid #d9e5f1;
  border-radius: 9px; background: #f7fbff; color: #344054; font-size: 12px;
}
.customer-fx-note b { color: #16233c; }
.customer-fx-note span { flex: 1 1 520px; line-height: 1.5; }
.customer-original-amounts { display: grid; gap: 2px; min-width: 118px; }
.customer-original-amounts > div { white-space: nowrap; }
.warn-text { color: #a35a08; font-weight: 700; }

@media (max-width: 1100px) {
  .app.docs-wide-page { max-width: 1220px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-preview { position: static; }
  .docs-preview iframe { height: 80vh; }
  .modal-host .sheet.docs-preview-sheet { width: 98vw; height: 96vh; max-height: 96vh; margin: 2vh auto; }
}
@media (max-width: 620px) {
  .docs-grid-2, .docs-grid-3 { grid-template-columns: 1fr; }
  .docs-head { align-items: flex-start; }
  .brand-logo { height: 30px; max-width: 43px; }
  .brand-logo-antuvision { height: 33px; max-width: 38px; }
  .brand-copy small { display: none; }
}

/* CRM shared-pool conflict review */
.conflict-details { border: 1px solid #f3b36a; background: #fffaf4; box-shadow: none; }
.conflict-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.conflict-head h3 { margin: 2px 0 0; color: #8a3f08; }
.conflict-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.conflict-values > div { min-width: 0; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid #f6d6b3; }
.conflict-values span { display: block; color: #697586; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.conflict-values b { display: block; margin-top: 4px; overflow-wrap: anywhere; color: #7a3505; }
.conflict-records { align-items: start; gap: 14px; }
.conflict-records section { min-width: 0; padding: 12px; border: 1px solid #ead8c5; border-radius: 9px; background: #fff; }
.conflict-records h4 { margin: 0 0 10px; color: #16233c; }
.conflict-facts { display: grid; gap: 7px; }
.conflict-fact { display: grid; grid-template-columns: minmax(105px, 34%) minmax(0, 1fr); gap: 10px; font-size: 12px; }
.conflict-fact span { color: #697586; }
.conflict-fact b { min-width: 0; overflow-wrap: anywhere; color: #27364b; font-weight: 600; }

@media (max-width: 700px) {
  .conflict-values, .conflict-records { grid-template-columns: 1fr; }
  .conflict-head { align-items: flex-start; }
  .conflict-fact { grid-template-columns: 1fr; gap: 2px; }
}
