/* =========================================================================
   进销存云 ERP · app.css
   在 replica/jxc.css（线上真样式，已去 data-v scoped）之上的布局与业务页覆盖。
   设计令牌来自 harvest/derived/style-guide.md。
   ========================================================================= */

:root {
  --app-header-h: 52px;
  --app-title-h: 38px;
  --app-sidebar-w: 160px;
  --app-sidebar-cw: 60px;
  --app-blue: #3d82f3;
  --app-blue-hover: #59a1ff;
  --app-blue-active: #1d5dc7;
  --app-text-1: #1f2329;
  --app-text-2: #646a73;
  --app-text-3: #9ca2a9;
  --app-border: #e2e4e7;
  --app-line: #ebeef5;
  --app-head-bg: #eff0f1;
  --app-striped: #fafafa;
  --app-hover: #ebf2fd;
  --app-orange: #fd7a3d;
  --app-card-shadow: 0 2px 6px 0 rgba(31, 35, 41, .06);
}

/* ---------- 基础 ---------- */
html, body { height: 100%; }
body { background: #e6ecfa; color: var(--app-text-2); }
#__layout { height: 100%; }
a { color: var(--app-blue); }
a:hover { color: var(--app-blue-hover); }
.app-flash {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
  z-index: 2100; min-width: 280px; max-width: 720px;
  padding: 10px 16px; border-radius: 4px; font-size: 13px;
  box-shadow: 0 4px 12px rgba(31, 35, 41, .12);
  display: flex; align-items: center; gap: 12px;
}
.app-flash-success { background: #f0f9eb; color: #5daf34; border: 1px solid #e1f3d8; }
.app-flash-danger  { background: #fef0f0; color: #dd6161; border: 1px solid #fde2e2; }
.app-flash-warning { background: #fdf6ec; color: #b88230; border: 1px solid #faecd8; }
.app-flash-info    { background: #ecf5ff; color: #3d82f3; border: 1px solid #d9ecff; }
.app-flash-close { margin-left: auto; cursor: pointer; font-style: normal; font-size: 16px; line-height: 1; opacity: .6; }
.app-flash-close:hover { opacity: 1; }

/* ---------- 顶栏 ---------- */
.top { z-index: 2001; }
.top .top_right a { color: #fff; }
.top .top_right .jxcbuy { color: #fff; background: #fd7a3d; }
.top .top_right .jxcbuy:hover { background: #fd895b; }
.top .top_right .nowToUp {
  display: inline-block; height: 25px; line-height: 25px; margin-top: 13px;
  padding: 0 10px; border-radius: 3px; color: #fff;
  background: #ff7128; font-size: 13px;
}
.top .top_right .nowToUp:hover { background: #ff8a4d; color: #fff; }
.top .top_right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.top .top_right ul { float: none; display: flex; align-items: center; height: 52px; }
.top .top_right ul:nth-child(3) { float: none; max-width: none; overflow: visible; }
.top .top_right li { margin-right: 8px; }
.top .top_right li:last-child { margin-right: 0; }
.top .top_right li > a { display: inline-flex; align-items: center; height: 52px; }
.top .ey-logo-type {
  position: absolute; left: 152px; top: 11px; width: 24px; height: 30px;
  line-height: 30px; text-align: center; font-size: 15px; font-weight: 700;
  color: #0e6ded; background: url("img/logo-type-backgrounde610a7d.svg") center / 100% 100% no-repeat;
}
.top .top_left .ey-company { margin-right: 6px; }
.top .top_left .sjdzt { display: inline-block; height: 32px; line-height: 32px; color: #fff; }
.top .top_input_box .top_input { width: 168px; }
.top .top_input_box .el-input__inner { background: #0660da; border: 0; color: #fff; border-radius: 4px; }
.top .top_input_box .el-input__inner::placeholder { color: rgba(255, 255, 255, .6); }
.top .top_input_box .el-select__caret { color: #fff; }

/* 用户下拉 */
.user-wrap { display: inline-flex; align-items: center; position: relative; height: 52px; cursor: pointer; padding: 0 8px 0 15px; }
.user-wrap .ey-user-img { display: inline-flex; align-items: center; }
.app-user-menu {
  display: none; position: absolute; top: 50px; right: 0; width: 210px; z-index: 2100;
  background: #fff; border-radius: 6px; box-shadow: 0 4px 16px rgba(10, 35, 59, .18);
  padding: 6px 0; text-align: left;
}
.user-wrap:hover .app-user-menu { display: block; }
.app-user-menu .app-user-head {
  display: block; padding: 8px 16px 10px; font-size: 13px; color: #1f2329;
  border-bottom: 1px solid #eff0f1; margin-bottom: 4px;
}
.app-user-menu .app-user-head em { display: block; font-style: normal; font-size: 12px; color: #9ca2a9; margin-top: 3px; }
.app-user-menu a {
  display: block; height: 34px; line-height: 34px; padding: 0 16px;
  color: #2d2f33 !important; font-size: 13px;
}
.app-user-menu a:hover { background: #ebf2fd; color: #3d82f3 !important; }
.app-user-menu .app-logout { border-top: 1px solid #eff0f1; margin-top: 4px; color: #f56c6c !important; }
.app-user-menu .app-logout:hover { background: #fef0f0; color: #f56c6c !important; }

/* ---------- 页签条 ---------- */
.ey-titlebar { z-index: 99; }
.ey-view { display: flex; align-items: center; height: 100%; }
.ey-view .ey-tabitem {
  display: inline-flex; align-items: center; height: 32px; margin-right: 2px;
  padding: 0 30px 0 14px; border-radius: 6px; flex: 0 0 auto;
}
.ey-view .ey-tabitem a { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ey-view .ey-tabitem .ey-tabclose { position: absolute; right: 8px; width: 16px; height: 16px; line-height: 15px; text-align: center; border-radius: 50%; font-size: 12px; color: #7d8da4; font-style: normal; }
.ey-view .ey-tabitem .titlebar-active-icon { right: 10px; }
.ey-view .ey-tabitem:hover .titlebar-active-icon { display: none; }

/* ---------- 侧栏 ---------- */
.sidebar { z-index: 2000; }
.sidebar .sidebar_list > a { display: block; color: inherit; }
.sidebar .sidebar_list.active p,
.sidebar .sidebar_list:hover p { background: linear-gradient(135deg, #2a87ff, #328bff); }
.sidebar .sidebar_list.active > p span,
.sidebar .sidebar_list:hover > p span { color: #fff !important; }
.sidebar .sidebar_list.active .sidebar-image,
.sidebar .sidebar_list:hover .sidebar-image { filter: brightness(0) invert(1); }
.sidebar .sidebar_child {
  display: none; top: 0; left: 160px; text-align: left;
  max-height: calc(100vh - 140px);
  width: 470px; padding: 10px 6px; background: #fff !important;
  border: 1px solid #e6ecf5; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 42, 82, .14); backdrop-filter: none !important;
}
/* 悬浮菜单文字必须可见（此前继承父级 hover 的白色，导致白底白字） */
.sidebar .sidebar_child,
.sidebar .sidebar_child .separate_bar,
.sidebar .sidebar_child .separate_bar_li,
.sidebar .sidebar_child .separate_bar_li .sidebar_text,
.sidebar .sidebar_child .separate_bar_li .sidebar_text em,
.sidebar .sidebar_child .listType { color: #3d4553 !important; }
.sidebar .sidebar_child .listType { color: #1f2a3d !important; }
.sidebar .sidebar_child .separate_bar_li:hover,
.sidebar .sidebar_child .separate_bar_li:hover .sidebar_text,
.sidebar .sidebar_child .separate_bar_li:hover .sidebar_text em { color: #1d6ff2 !important; }
.sidebar .sidebar_child .separate_bar_li:hover { background: #eef5ff; border-radius: 6px; }
.sidebar .sidebar_list:hover > .sidebar_child,
.sidebar .sidebar_list:focus-within > .sidebar_child,
.sidebar .sidebar_child:hover { display: block; }
.sidebar .sidebar_child .listType {
  display: flex; align-items: center; gap: 6px; height: 30px; line-height: 30px;
  font-size: 13px; font-weight: 600; padding-left: 10px; margin-bottom: 4px;
}
.sidebar .sidebar_child .listType .first-children-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.sidebar .sidebar_child .separate_bar_li { display: block; color: var(--Te02); }
.sidebar .sidebar_child .separate_bar_li em { font-style: normal; }
.sidebar .sidebar_child .separate_bar_li.active { background-color: var(--Th104); }
.sidebar .sidebar_child .separate_bar_li.active .sidebar_text { color: var(--Th100); }
.sidebar .sidebar_child .separate_bar_li:hover .sidebar_text { color: var(--Th100); }
.sidebar .ey-collection > div > a { display: inline-block; }
.sidebar .sidebar-bottom-setting { z-index: 3; }
.sidebar .sidebar-bottom-setting .icon-border > a { display: flex; align-items: center; }

/* 收起态 */
.sidebar:not(.wide) { width: 60px; }
.sidebar:not(.wide) .sidebar_list p { width: 60px; padding-left: 0; }
.sidebar:not(.wide) .sidebar_list p span { display: none; }
.sidebar:not(.wide) .ey-collection a { display: none; }
.sidebar:not(.wide) .ey-collection div { width: 60px; padding-left: 0; text-align: center; }
.sidebar:not(.wide) .ey-collection .collection-icon { margin: 0 auto; }
.sidebar:not(.wide) .sidebar_child { left: 66px !important; }
.sidebar:not(.wide) .sidebar-bottom-setting .heng { display: none; }
.sidebar:not(.wide) .sidebar-bottom-setting .icon-border { padding: 8px 6px; }
.app-collapsed .main { padding-left: 86px; }
.app-collapsed .ey-titlebar { margin-left: 86px; width: calc(100% - 96px); }
.app-collapsed .foot-money .fix-foot { width: calc(100% - 96px); }

/* ---------- 页面通用 ---------- */
.pageCommon { height: 100%; }
.app-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 2px 0 12px; }
.app-page-head h2 { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--app-text-1); }
.app-page-head p { font-size: 12px; color: var(--app-text-3); margin-top: 3px; }
.app-head-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.app-head-actions .el-button { margin: 0; }
.app-card {
  background: #fff; border-radius: 8px; box-shadow: var(--app-card-shadow);
  padding: 16px 20px; margin-bottom: 12px;
}
.app-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #eff0f1; margin-bottom: 12px; }
.app-card-head h3 { font-size: 14px; font-weight: 600; color: var(--app-text-1); position: relative; padding-left: 12px; }
.app-card-head h3::before { content: ""; position: absolute; left: 0; top: 3px; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #2a87ff, #0e6ded); }
.app-card-more, .app-card-count { font-size: 12px; color: var(--app-text-3); }
.app-card-more:hover { color: var(--app-blue); }

/* 按钮（补 Element 默认值，保证 32px 圆角 4） */
.el-button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; line-height: 30px; padding: 0 14px; border-radius: 4px;
  font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid transparent;
  background: #fff; color: var(--app-text-1); text-decoration: none; vertical-align: middle;
  transition: all .15s;
}
.el-button > span { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
.el-button.el-button--default { background: #fff; border-color: #e2e4e7; color: var(--app-text-1); }
.el-button.el-button--default:hover { border-color: var(--app-blue); color: var(--app-blue); }
.el-button.el-button--primary { background: var(--app-blue); border-color: var(--app-blue); color: #fff; }
.el-button.el-button--primary:hover { background: var(--app-blue-hover); border-color: var(--app-blue-hover); color: #fff; }
.el-button.el-button--danger { background: #f56c6c; border-color: #f56c6c; color: #fff; }
.el-button.el-button--danger:hover { background: #f78989; border-color: #f78989; color: #fff; }
.el-button.is-disabled, .el-button:disabled { color: #c0c4cc; background: #fff; border-color: #ebeef5; cursor: not-allowed; }
.el-button[disabled] { pointer-events: none; }

/* 通用表单控件 */
.app-input, .app-select, .app-textarea,
.pageCommon input[type=text].app-input,
.pageCommon input[type=date].app-input {
  height: 32px; line-height: 30px; padding: 0 10px; width: 100%;
  border: 1px solid #dcdfe6; border-radius: 4px; background: #fff;
  font-size: 13px; color: #606266; outline: none; box-sizing: border-box;
  transition: border-color .15s;
}
.app-input:hover, .app-select:hover, .app-textarea:hover { border-color: #c0c4cc; }
.app-input:focus, .app-select:focus, .app-textarea:focus { border-color: #409eff; }
.app-input::placeholder, .app-textarea::placeholder { color: #c0c4cc; }
.app-select {
  appearance: none; -webkit-appearance: none; padding-right: 26px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c0c4cc' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.app-textarea { height: auto; min-height: 72px; padding: 7px 10px; line-height: 1.6; resize: vertical; }
.app-checkbox { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: #606266; height: 32px; }
.app-checkbox input[type=checkbox], input[type=checkbox].app-check { width: 14px; height: 14px; accent-color: #409eff; cursor: pointer; margin: 0; }
input[type=radio].app-radio { accent-color: #409eff; width: 14px; height: 14px; cursor: pointer; }
.app-hint { font-size: 12px; color: var(--app-text-3); }

/* 工具条 / 筛选条 */
.selector { color: var(--app-text-1); }
.selector.cardPadding { background: #fff; border-radius: 4px; padding: 12px 16px !important; margin-bottom: 10px; }
.app-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: #fff; border-radius: 4px; padding: 7px 12px; margin-bottom: 10px; min-height: 44px; }
.app-toolbar .app-search { display: flex; width: 300px; }
.app-toolbar .app-search .app-input { border-radius: 4px 0 0 4px; border-right: none; background: #eff0f1; }
.app-toolbar .app-search .search_btn { flex: 0 0 50px; height: 32px; border: 0; border-radius: 0 4px 4px 0; background: #3d82f3 url("img/search-order9923510.svg") no-repeat 50%; cursor: pointer; }
.app-toolbar .app-search .search_btn:hover { background: #59a1ff url("img/search-order-hover91964d3.svg") no-repeat 50%; }
.app-toolbar .app-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-toolbar .app-filter label { font-size: 12px; color: #606266; white-space: nowrap; }
.app-toolbar .app-filter .app-select { width: 140px; }
.app-toolbar .app-spacer { flex: 1 1 auto; }
.app-toolbar .app-btns { display: flex; align-items: center; gap: 8px; }
.app-toolbar .el-button { height: 28px; line-height: 26px; border-radius: 2px; padding: 0 12px; }
.app-toolbar .el-button.el-button--primary { height: 32px; line-height: 30px; border-radius: 4px; }
.app-batch-bar { display: flex; align-items: center; gap: 14px; background: #f8fafd; border: 1px solid #e8eef8; border-radius: 4px; padding: 6px 12px; margin-bottom: 8px; font-size: 12px; color: #646a73; }
.app-batch-bar em { color: #3d82f3; font-style: normal; font-weight: 600; }
.app-batch-bar .app-batch-btn { color: #3d82f3; cursor: pointer; }
.app-batch-bar .app-batch-btn.is-disabled { color: #c0c4cc; cursor: not-allowed; }
.app-batch-bar .app-batch-danger { color: #f56c6c; }

/* 表格 */
.app-table-wrap { background: #fff; border-radius: 4px; overflow: auto; max-height: calc(100vh - 300px); }
.app-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: auto; }
.app-table thead th {
  position: sticky; top: 0; z-index: 3; height: 32px; line-height: 32px;
  padding: 0 10px; background: #eff0f1; color: #1f2329; font-size: 13px; font-weight: 600;
  text-align: left; white-space: nowrap; border-bottom: 1px solid #dddfe1;
  border-right: 1px solid #dddfe1;
}
.app-table thead th:last-child { border-right: none; }
.app-table tbody td {
  height: 32px; line-height: 32px; padding: 0 10px; font-size: 13px;
  color: #2d2f33; white-space: nowrap; border-bottom: 1px solid #ebeef5;
}
.app-table tbody tr:nth-child(even) td { background: #fafafa; }
.app-table tbody tr:hover td { background: #ebf2fd; }
.app-table tbody tr.is-selected td { background: #d8e6fd; }
.app-table tbody tr.is-disabled td { color: #9ca2a9; }
.app-table .is-right, .app-table th.is-right { text-align: right; }
.app-table .is-center, .app-table th.is-center { text-align: center; }
.app-table .app-cell-link { color: #3d82f3; margin-right: 10px; }
.app-table .app-cell-link:hover { text-decoration: underline; }
.app-table .app-cell-actions a { margin-right: 10px; }
.app-table .app-cell-actions a:last-child { margin-right: 0; }
.app-table .app-cell-actions .danger { color: #f56c6c; }
.app-table .cell-ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
.app-table .cell-num { font-variant-numeric: tabular-nums; }
.app-table tfoot td {
  height: 32px; line-height: 32px; padding: 0 10px; font-size: 13px;
  background: #fef9eb; color: #1f2329; font-weight: 600; border-top: 1px solid #f2e3ba;
}
.app-table-wrap .app-empty { padding: 48px 0; text-align: center; color: #909399; font-size: 13px; background: #fff; }
.app-table-wrap .app-empty img { display: block; width: 140px; height: 140px; margin: 0 auto 8px; opacity: .85; }
.app-table-shell { background: #fff; border-radius: 4px; padding-bottom: 4px; }

.app-tag { display: inline-block; height: 20px; line-height: 19px; padding: 0 6px; border-radius: 3px; font-size: 12px; font-weight: 400; }
.app-tag-success { background: #f0f9eb; color: #67c23a; border: 1px solid #e1f3d8; }
.app-tag-warning { background: #fdf6ec; color: #e6a23c; border: 1px solid #faecd8; }
.app-tag-danger { background: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }
.app-tag-info { background: #f4f4f5; color: #909399; border: 1px solid #e9e9eb; }
.app-tag-primary { background: #ecf5ff; color: #409eff; border: 1px solid #d9ecff; }

/* 分页 */
.app-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 10px 14px; background: #fff; border-top: 1px solid #f0f2f5; font-size: 12px; color: #606266; }
.app-pagination .app-page-total { margin-right: auto; color: #9ca2a9; }
.app-pagination a, .app-pagination span.app-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 2px;
  background: #f4f4f5; color: #606266; text-decoration: none;
}
.app-pagination a:hover { color: #409eff; }
.app-pagination a.is-active { background: #409eff; color: #fff; }
.app-pagination a.is-disabled { color: #c0c4cc; pointer-events: none; }
.app-pagination .app-page-size { margin-left: 8px; }
.app-pagination .app-page-size .app-select { width: 92px; height: 28px; line-height: 26px; font-size: 12px; }

/* ---------- 资料表单 ---------- */
.app-form-card { background: #fff; border-radius: 8px; box-shadow: var(--app-card-shadow); padding: 20px 24px; }
.app-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.app-form-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: start; min-height: 32px; }
.app-form-item.is-full { grid-column: 1 / -1; }
.app-form-label { text-align: right; padding-right: 12px; line-height: 32px; font-size: 13px; color: #606266; }
.app-form-label.is-required::before { content: "*"; color: #f56c6c; margin-right: 3px; }
.app-form-control { min-width: 0; }
.app-form-control .app-hint { line-height: 32px; }
.app-form-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #eff0f1; }
.app-form-actions .el-button { min-width: 92px; height: 34px; line-height: 32px; }
.app-form-section { grid-column: 1 / -1; margin: 8px 0 2px; padding-left: 10px; border-left: 3px solid #3d82f3; font-size: 14px; font-weight: 600; color: #1f2329; }

/* ---------- 单据页 ---------- */
.app-doc-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: #fff; border-radius: 4px; padding: 7px 10px; margin-bottom: 10px; min-height: 44px; }
.app-doc-toolbar .app-spacer { flex: 1 1 auto; }
.app-doc-toolbar .el-button { height: 28px; line-height: 26px; border-radius: 2px; padding: 0 12px; }
.app-doc-toolbar .el-button.el-button--primary { height: 32px; line-height: 30px; border-radius: 4px; }
.app-doc-meta { background: #fff; border-radius: 4px; padding: 12px 16px 6px; margin-bottom: 10px; }
.app-doc-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 24px; }
.app-meta-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; min-height: 38px; }
.app-meta-item > label { text-align: right; padding-right: 10px; color: #606266; font-size: 13px; }
.app-meta-item .app-input, .app-meta-item .app-select { border: 0; border-bottom: 1px solid #eff0f1; border-radius: 0; height: 30px; line-height: 28px; padding: 0 6px; }
.app-meta-item .app-input:focus, .app-meta-item .app-select:focus { border-bottom-color: #3d82f3; }
.app-meta-item .app-input[readonly] { background: #fafbfc; color: #646a73; }
.app-meta-item.is-readonly .app-meta-value { height: 30px; line-height: 30px; padding: 0 6px; color: #1f2329; }
.app-doc-status .app-tag { height: 22px; line-height: 21px; padding: 0 8px; }
.app-doc-section { background: #fff; border-radius: 4px; margin-bottom: 10px; }
.app-doc-section-head { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-bottom: 1px solid #eff0f1; }
.app-doc-section-head h3 { font-size: 14px; font-weight: 600; color: #1f2329; }
.app-doc-section-head .app-hint { color: #9ca2a9; }
.app-doc-section-head .app-spacer { flex: 1 1 auto; }
.app-doc-section-head .app-doc-add { color: #3d82f3; cursor: pointer; font-size: 13px; }
.app-doc-section-head .app-doc-add:hover { text-decoration: underline; }
.app-doc-table-wrap { overflow: auto; max-height: calc(100vh - 480px); min-height: 180px; }
.app-doc-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.app-doc-table thead th { position: sticky; top: 0; z-index: 3; height: 32px; line-height: 32px; padding: 0 8px; background: #eff0f1; color: #1f2329; font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; border-right: 1px solid #dddfe1; border-bottom: 1px solid #dddfe1; }
.app-doc-table thead th:last-child { border-right: 0; }
.app-doc-table tbody td { height: 36px; line-height: 36px; padding: 0 6px; font-size: 13px; border-bottom: 1px solid #ebeef5; white-space: nowrap; }
.app-doc-table tbody tr:nth-child(even) td { background: #fafafa; }
.app-doc-table tbody tr:hover td { background: #ebf2fd; }
.app-doc-table tbody td .app-input, .app-doc-table tbody td .app-select { height: 28px; line-height: 26px; font-size: 13px; border-color: transparent; background: transparent; padding: 0 6px; }
.app-doc-table tbody td .app-input:hover, .app-doc-table tbody td .app-select:hover { border-color: #dcdfe6; background: #fff; }
.app-doc-table tbody td .app-input:focus, .app-doc-table tbody td .app-select:focus { border-color: #409eff; background: #fff; }
.app-doc-table .app-line-product { min-width: 220px; }
.app-doc-table .app-line-num { width: 84px; text-align: right; }
.app-doc-table .app-line-amount { text-align: right; font-variant-numeric: tabular-nums; color: #1f2329; }
.app-doc-table .app-line-del { color: #f56c6c; cursor: pointer; font-size: 12px; }
.app-doc-table .app-line-del:hover { text-decoration: underline; }
.app-doc-empty { padding: 36px 0; text-align: center; color: #909399; }
.app-doc-foot { position: fixed; left: 196px; right: 10px; bottom: 0; height: 58px; z-index: 13; background: #fff; border-radius: 4px 4px 0 0; box-shadow: 0 -4px 8px 0 rgba(0, 0, 0, .04); display: flex; align-items: center; justify-content: flex-end; gap: 34px; padding: 0 24px; }
.app-collapsed .app-doc-foot { left: 96px; }
.app-doc-foot .app-foot-item { display: flex; align-items: baseline; gap: 8px; }
.app-doc-foot .app-foot-item > span { font-size: 13px; color: #606266; }
.app-doc-foot .app-foot-item b { font-size: 18px; color: #1f2329; font-variant-numeric: tabular-nums; }
.app-doc-foot .app-foot-item.is-total b { font-size: 22px; font-weight: 900; color: #fd7a3d; }
.app-doc-foot .app-foot-item.is-total b small { font-size: 13px; font-weight: 400; color: #fd7a3d; margin-right: 2px; }
.app-doc-page { padding-bottom: 68px; }
.app-doc-summary { display: flex; align-items: center; justify-content: flex-end; gap: 26px; min-height: 52px; padding: 0 16px; background: #fef9eb; }
.app-doc-summary span { font-size: 13px; color: #606266; }
.app-doc-summary b { font-size: 15px; color: #1f2329; margin-left: 6px; font-variant-numeric: tabular-nums; }
.app-doc-summary b.is-orange { color: #fd7a3d; }
.app-doc-remark { padding: 10px 16px 14px; }
.app-doc-remark label { display: block; font-size: 13px; color: #606266; margin-bottom: 6px; }

/* ---------- 报表 ---------- */
.app-report-filters { background: #fff; border-radius: 4px; padding: 12px 16px; margin-bottom: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.app-report-filters .app-filter-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #606266; }
.app-report-filters .app-input, .app-report-filters .app-select { width: 130px; height: 30px; line-height: 28px; font-size: 12px; }
.app-report-filters .app-date-range { display: flex; align-items: center; gap: 6px; }
.app-report-filters .app-date-range .app-input { width: 132px; }
.app-report-filters .app-date-range em { font-style: normal; color: #9ca2a9; }
.app-report-filters .app-spacer { flex: 1 1 auto; }
.app-report-card { background: #fff; border-radius: 4px; padding: 0 0 4px; }
.app-report-head { padding: 14px 16px 8px; text-align: center; }
.app-report-head h3 { font-size: 17px; font-weight: 700; color: #1f2329; letter-spacing: 1px; }
.app-report-head p { font-size: 12px; color: #9ca2a9; margin-top: 5px; }
.app-report-meta { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 8px; font-size: 12px; color: #9ca2a9; }
.app-report-table-wrap { overflow: auto; max-height: calc(100vh - 380px); }
.app-report-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.app-report-table thead th { position: sticky; top: 0; z-index: 3; height: 34px; line-height: 34px; padding: 0 10px; background: #eff0f1; color: #1f2329; font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; border-right: 1px solid #dddfe1; border-bottom: 1px solid #dddfe1; }
.app-report-table thead th:last-child { border-right: 0; }
.app-report-table tbody td, .app-report-table tfoot td { height: 32px; line-height: 32px; padding: 0 10px; font-size: 13px; border-bottom: 1px solid #ebeef5; white-space: nowrap; }
.app-report-table tbody tr:nth-child(even) td { background: #fafafa; }
.app-report-table tbody tr:hover td { background: #ebf2fd; }
.app-report-table tfoot td { background: #fef9eb; font-weight: 600; color: #1f2329; border-top: 1px solid #f2e3ba; }
.app-report-table .is-right { text-align: right; }
.app-report-table .is-center { text-align: center; }
.app-report-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; font-size: 12px; color: #9ca2a9; }

/* ---------- 详情 ---------- */
.app-detail-head { background: #fff; border-radius: 4px; padding: 16px 20px; margin-bottom: 10px; }
.app-detail-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-detail-title h2 { font-size: 18px; font-weight: 600; color: #1f2329; }
.app-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 24px; }
.app-detail-grid .app-detail-item { display: flex; gap: 8px; font-size: 13px; line-height: 26px; min-width: 0; }
.app-detail-grid .app-detail-item > span { color: #9ca2a9; flex: 0 0 76px; text-align: right; }
.app-detail-grid .app-detail-item > b { color: #1f2329; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-detail-table-wrap { overflow: auto; max-height: calc(100vh - 430px); }

/* ---------- Dashboard ---------- */
.app-dashboard .app-page-head { margin-bottom: 14px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi-card { position: relative; overflow: hidden; background: #fff; border-radius: 8px; box-shadow: var(--app-card-shadow); padding: 14px 18px 12px; min-height: 108px; }
.kpi-card::after { content: ""; position: absolute; right: -28px; top: -34px; width: 96px; height: 96px; border-radius: 50%; background: rgba(61, 130, 243, .06); }
.kpi-card.kpi-cyan::after { background: rgba(22, 190, 191, .08); }
.kpi-card.kpi-orange::after { background: rgba(253, 122, 61, .09); }
.kpi-card.kpi-red::after { background: rgba(245, 108, 108, .08); }
.kpi-card.kpi-green::after { background: rgba(103, 194, 58, .09); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-label { font-size: 13px; color: #646a73; }
.kpi-icon { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #ecf3ff; }
.kpi-icon img { width: 18px; height: 18px; }
.kpi-card.kpi-orange .kpi-icon { background: #fff2ea; }
.kpi-card.kpi-red .kpi-icon { background: #fef0f0; }
.kpi-card.kpi-green .kpi-icon { background: #f0f9eb; }
.kpi-card.kpi-cyan .kpi-icon { background: #eafafa; }
.kpi-value { margin: 8px 0 6px; font-size: 27px; line-height: 32px; font-weight: 600; color: #1f2329; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.kpi-value em { font-style: normal; font-size: 15px; font-weight: 400; color: #9ca2a9; margin-right: 3px; }
.kpi-foot { font-size: 12px; color: #9ca2a9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.dash-main, .dash-side { min-width: 0; }
.chart-card .app-card-head { margin-bottom: 6px; }
.chart-legend { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #9ca2a9; }
.chart-legend .legend-line i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: #2a87ff; margin-right: 5px; vertical-align: middle; }
.chart-legend .legend-dot i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 2px solid #2a87ff; margin-right: 5px; vertical-align: middle; }
.chart-wrap { width: 100%; }
.sale-trend { display: block; width: 100%; height: auto; overflow: visible; }
.chart-axis { font-size: 11px; fill: #9ca2a9; font-family: "Microsoft YaHei", sans-serif; }
.chart-summary { display: flex; align-items: center; gap: 28px; padding-top: 8px; border-top: 1px dashed #eff0f1; margin-top: 2px; font-size: 12px; color: #9ca2a9; }
.chart-summary b { color: #1f2329; font-size: 14px; }
.top-products-card .app-card-head { margin-bottom: 0; padding-bottom: 10px; }
.app-rank-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.app-rank-table th { height: 30px; line-height: 30px; padding: 0 8px; font-size: 12px; font-weight: 400; color: #9ca2a9; text-align: left; border-bottom: 1px solid #eff0f1; }
.app-rank-table td { height: 42px; padding: 0 8px; font-size: 13px; color: #2d2f33; border-bottom: 1px solid #f4f6f9; }
.app-rank-table tr:last-child td { border-bottom: 0; }
.app-rank-table tr:hover td { background: #f7faff; }
.app-rank-table .is-right { text-align: right; }
.app-rank-table .is-center { text-align: center; }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #fff; background: #c0c4cc; }
.rank-badge.rank-1 { background: linear-gradient(135deg, #ff9a3c, #fd7a3d); }
.rank-badge.rank-2 { background: linear-gradient(135deg, #7eaefc, #3d82f3); }
.rank-badge.rank-3 { background: linear-gradient(135deg, #f6b26b, #e6a23c); }
.rank-name { display: block; font-size: 13px; color: #1f2329; line-height: 20px; }
.rank-sub { display: block; font-style: normal; font-size: 11px; color: #9ca2a9; line-height: 16px; }
.rank-amount { font-weight: 600; color: #1f2329; }
.rank-bar-col { width: 130px; }
.rank-bar { display: block; height: 6px; border-radius: 3px; background: #eff2f7; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2a87ff, #7fb6ff); }
.app-empty-cell { text-align: center; color: #9ca2a9; padding: 20px 0 !important; }
.todo-list li { border-bottom: 1px solid #f4f6f9; }
.todo-list li:last-child { border-bottom: 0; }
.todo-list a { display: flex; align-items: center; gap: 10px; height: 44px; color: #2d2f33 !important; }
.todo-list a:hover { color: #3d82f3 !important; }
.todo-icon { width: 28px; height: 28px; border-radius: 6px; background: #f4f8ff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; }
.todo-icon img { width: 16px; height: 16px; }
.todo-label { flex: 1 1 auto; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-count { min-width: 22px; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 10px; background: #fef0f0; color: #f56c6c; font-size: 12px; text-align: center; }
.todo-list li:nth-child(2) .todo-count { background: #fdf6ec; color: #e6a23c; }
.todo-list li:nth-child(3) .todo-count { background: #fef0f0; color: #f56c6c; }
.todo-empty { padding: 16px 0; color: #9ca2a9; font-size: 13px; text-align: center; }
.overview-list { display: grid; grid-template-columns: 1fr; gap: 2px; }
.overview-item { display: flex; align-items: center; justify-content: space-between; height: 34px; font-size: 13px; color: #646a73; border-bottom: 1px dashed #f0f2f5; }
.overview-item:last-child { border-bottom: 0; }
.overview-item b { font-size: 14px; color: #1f2329; font-weight: 600; font-variant-numeric: tabular-nums; }
.overview-item b.is-green { color: #67c23a; }
.overview-actions { display: flex; gap: 14px; padding-top: 10px; border-top: 1px solid #eff0f1; margin-top: 6px; font-size: 12px; }
.overview-actions a { color: #3d82f3; }

/* ---------- 登录 ---------- */
.app-login-body {
  min-height: 100vh; height: auto; overflow-y: auto; background: #e6ecfa;
  background-image: radial-gradient(1200px 500px at 50% -8%, rgba(61, 130, 243, .18), rgba(230, 236, 250, 0) 60%), linear-gradient(160deg, #edf3ff 0%, #e6ecfa 45%, #e2ecff 100%);
  display: flex; align-items: center; justify-content: center; padding: 36px 16px;
}
.login-page { width: 420px; max-width: 100%; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; }
.login-brand-logo { width: 46px; height: 46px; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(14, 109, 237, .16); padding: 5px; }
.login-brand-text h1 { font-size: 22px; line-height: 28px; font-weight: 700; color: #0e4fb0; letter-spacing: 1px; }
.login-brand-text p { font-size: 12px; color: #7d8da4; margin-top: 3px; }
.login-card { position: relative; background: #fff; border-radius: 14px; box-shadow: 0 16px 44px rgba(14, 72, 161, .16); padding: 30px 34px 26px; overflow: hidden; }
.login-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #0e6ded, #1b75ef, #5ca8ff); }
.login-card-head { margin-bottom: 22px; }
.login-card-head h2 { font-size: 19px; font-weight: 600; color: #1f2329; }
.login-card-head span { display: block; font-size: 12px; color: #9ca2a9; margin-top: 6px; }
.login-error { padding: 9px 12px; margin-bottom: 16px; border-radius: 4px; background: #fef0f0; border: 1px solid #fde2e2; color: #f56c6c; font-size: 12px; }
.login-field { margin-bottom: 16px; }
.login-field > label { display: block; font-size: 13px; color: #606266; margin-bottom: 7px; }
.login-input { position: relative; }
.login-input > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 15px; color: #b4bcc9; z-index: 2; }
.login-input input {
  width: 100%; height: 40px; line-height: 40px; padding: 0 12px 0 36px;
  border: 1px solid #dcdfe6; border-radius: 6px; font-size: 13px; color: #1f2329;
  outline: none; background: #fff; transition: border-color .15s, box-shadow .15s; box-sizing: border-box;
}
.login-input input:hover { border-color: #c0c4cc; }
.login-input input:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.login-input input::placeholder { color: #c0c4cc; }
.login-submit {
  width: 100%; height: 40px; line-height: 40px; margin-top: 6px; border: 0; border-radius: 6px;
  background: linear-gradient(135deg, #0e6ded, #1b75ef); color: #fff; font-size: 15px;
  letter-spacing: 4px; cursor: pointer; box-shadow: 0 4px 10px rgba(14, 109, 237, .22);
  transition: all .15s;
}
.login-submit:hover { background: linear-gradient(135deg, #1b75ef, #3d82f3); box-shadow: 0 6px 14px rgba(14, 109, 237, .3); }
.login-submit:active { transform: translateY(1px); }
.login-hint { margin-top: 18px; padding: 10px 12px; border-radius: 6px; background: #f6f8fc; border: 1px dashed #dbe4f5; font-size: 12px; color: #8a94a6; text-align: center; }
.login-hint b { color: #3d82f3; font-weight: 600; }
.login-footer { text-align: center; font-size: 12px; color: #93a1b8; margin-top: 18px; }

/* ---------- 通用占位 / 错误 ---------- */
.app-generic-card { background: #fff; border-radius: 8px; box-shadow: var(--app-card-shadow); padding: 48px 24px; text-align: center; color: #646a73; }
.app-generic-card .app-generic-icon { width: 64px; height: 64px; line-height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #ebf2fd; color: #3d82f3; font-size: 30px; font-weight: 700; }
.app-generic-card h2 { font-size: 18px; color: #1f2329; margin-bottom: 8px; }
.app-generic-card p { font-size: 13px; color: #9ca2a9; line-height: 1.8; }

/* ---------- 打印 ---------- */
@media print {
  html, body { overflow: visible; height: auto; background: #fff; }
  .top, .ey-titlebar, .sidebar-box, .app-doc-toolbar, .app-toolbar, .app-report-filters,
  .app-head-actions, .app-pagination, .app-flash, .app-doc-foot, .app-form-actions,
  .app-user-menu, .app-card-more { display: none !important; }
  #content.main, .main { padding: 0 !important; height: auto !important; overflow: visible !important; }
  .container { min-width: 0 !important; height: auto !important; }
  .app-card, .app-doc-section, .app-detail-head, .app-report-card, .app-form-card { box-shadow: none !important; border: 1px solid #ddd; }
  .app-table-wrap, .app-doc-table-wrap, .app-report-table-wrap, .app-detail-table-wrap { max-height: none !important; overflow: visible !important; }
  .app-doc-page { padding-bottom: 0; }
  .app-table thead th, .app-doc-table thead th, .app-report-table thead th { position: static; }
  .app-report-head h3 { font-size: 18px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1440px) {
  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi-value { font-size: 24px; }
  .dash-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1240px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-layout { grid-template-columns: minmax(0, 1fr); }
  .app-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-form-grid { grid-template-columns: 1fr; }
  .app-form-item.is-full { grid-column: auto; }
}
@media (min-width: 1800px) {
  .kpi-value { font-size: 30px; }
  .kpi-card { min-height: 116px; }
  .dash-layout { grid-template-columns: minmax(0, 1fr) 380px; }
}

/* ---------- 补充：内联链接 / 全宽字段 / 表格内输入 ---------- */
.app-inline-link { background: none; border: 0; padding: 0; font-size: 13px; color: #3d82f3; cursor: pointer; font-family: inherit; }
.app-inline-link:hover { text-decoration: underline; }
.app-inline-link.danger { color: #f56c6c; }
.app-meta-item.is-full { grid-column: 1 / -1; }
.app-doc-table tbody td .app-input[type=number] { width: 82px; }
.app-doc-table tbody td .app-input[name*="remark"] { min-width: 130px; }
.app-doc-table tbody td select.app-select { width: 100%; min-width: 210px; }
.app-list-page .app-page-title p b { color: #3d82f3; font-weight: 600; }
.app-report-table .app-empty-cell { white-space: normal; }
.app-detail-item b.is-money { color: #fd7a3d; }
.app-doc-foot .app-foot-item b span { font-variant-numeric: tabular-nums; }
.app-form-control input[type=number] { text-align: left; }
.app-form-card .app-select { height: 32px; }

/* ---------- 外壳容器与标题修正 ---------- */
.app-shell { position: relative; height: 100%; }
.ey-titlebar .title { display: block; height: 100%; font-size: 13px; font-weight: 400; color: #1a3352; letter-spacing: 0; }
.ey-titlebar .title.ey-title { display: flex; align-items: center; }
.top .top_right .topIcon { filter: brightness(0) invert(1); opacity: .92; }
.top .top_right .iconli a:hover .topIcon { opacity: 1; }

/* 首页页签图标（span 需要 block 才生效） */
.ey-home-li > span { display: block; height: 100%; width: 100%; }
.ey-home-li { flex: 0 0 42px; }

/* 修正 .container 被历史 flex 规则压缩 */
#content .container { display: block; }
#content .pageCommon { width: 100%; min-width: 0; }

/* 单据页撑满内容区，明细表格自适应剩余高度 */
.app-doc-page { display: flex; flex-direction: column; box-sizing: border-box; }
.app-doc-page .app-doc-section { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 240px; }
.app-doc-page .app-doc-section .app-doc-table-wrap { flex: 1 1 auto; max-height: none; min-height: 160px; }

/* 单据表单作为纵向 flex 容器，明细区撑满剩余高度 */
.app-doc-page > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.app-doc-page > form > .app-doc-section { flex: 1 1 auto; }
.app-doc-page > form > .app-doc-meta { flex: 0 0 auto; }

/* ---------- 1366 窄屏适配（保持 32px 密度，不裁切） ---------- */
@media (max-width: 1440px) {
  .top { min-width: 0; }
  .container { min-width: 0 !important; }
  .ey-titlebar { min-width: 0 !important; width: calc(100% - 196px); }
  .addPadd { padding-left: 186px; }
  .top .top_right { width: calc(100% - 250px); padding-right: 10px; }
  .top .top_right li { margin-right: 4px; }
  .top .top_right .top_left { margin-top: 0; }
  .app-doc-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-doc-meta-grid .app-meta-item.is-full { grid-column: 1 / -1; }
  .app-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-report-table-wrap, .app-table-wrap { overflow-x: auto; }
  .app-doc-table-wrap { overflow-x: auto; }
  .app-doc-table { min-width: 1200px; }
  .app-report-table { min-width: 1100px; }
  .app-table { min-width: 1000px; }
  .app-doc-foot { left: 196px; right: 10px; }
}
@media (max-width: 1366px) {
  .kpi-grid { gap: 10px; }
  .kpi-card { padding: 12px 14px 10px; }
  .kpi-value { font-size: 24px; }
  .top .top_right ul:first-child .jxcbuy, .top .top_right ul:first-child .nowToUp { padding: 0 8px; font-size: 12px; }
  .top .top_right li { margin-right: 2px; }
  .dash-layout { grid-template-columns: minmax(0, 1fr) 310px; }
}

/* ---------- 自有品牌 / 顶栏退出 / 侧栏版权 ---------- */
.app-brand { position: absolute; left: 18px; top: 0; height: 52px; display: flex; align-items: center; gap: 9px; z-index: 3; text-decoration: none; }
.app-brand-logo { display: inline-flex; width: 30px; height: 30px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); border-radius: 9px; }
.app-brand-logo svg { display: block; }
.app-brand-text { color: #fff !important; font-size: 17px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; }
.app-brand:hover .app-brand-text { color: #fff !important; }
.app-top-logout {
  display: inline-flex; align-items: center; height: 20px; line-height: 18px;
  margin-left: 8px; padding: 0 9px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .5); color: #fff !important;
  font-size: 12px; text-decoration: none; vertical-align: middle;
}
.app-top-logout:hover { background: rgba(255, 255, 255, .16); color: #fff !important; }
.app-sidebar-copy { position: absolute; left: 0; right: 0; bottom: 7px; text-align: center; font-size: 10px; color: #9ca2a9; white-space: nowrap; transform: scale(.92); }
.sidebar:not(.wide) .app-sidebar-copy { font-size: 0; }
.sidebar:not(.wide) .app-sidebar-copy::after { content: "©"; font-size: 10px; }

/* 侧栏底部设置与版权可见（修正原版被顶栏挤出的高度） */
.sidebar { height: calc(100% - 74px); }
@media (max-width: 1440px) { .app-doc-table { min-width: 1080px; } }

/* 侧栏容器回到视口顶部，sidebar 的 top:62 才是真正离顶 62px */
.sidebar-box { top: 0; left: 0; right: auto; width: 176px; }

/* ---------- 系统设置 / 导入导出 ---------- */
.app-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.app-settings-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; min-height: 38px; }
.app-settings-item > label { text-align: right; padding-right: 12px; font-size: 13px; color: #606266; }
.app-settings-item .app-input, .app-settings-item .app-textarea { max-width: 420px; }
.app-io-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.app-io-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #eef1f6; border-radius: 6px; color: #2d2f33 !important; background: #fbfcfe; }
.app-io-item:hover { border-color: #3d82f3; background: #f5f9ff; }
.app-io-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; background: #ecf3ff; color: #3d82f3; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.app-io-item b { display: block; font-size: 13px; color: #1f2329; font-weight: 500; }
.app-io-item em { display: block; font-style: normal; font-size: 11px; color: #9ca2a9; margin-top: 2px; }
@media (max-width: 1440px) {
  .app-settings-grid { grid-template-columns: 1fr; }
  .app-io-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.login-brand-logo { background: linear-gradient(135deg, #0e6ded, #1b75ef) !important; border-radius: 11px; }

/* 一级菜单的 overflow:hidden 会裁掉 flyout，改为 visible（收起态文字已隐藏） */
.sidebar .sidebar_list { overflow: visible; }

/* =========================================================================
   集成中心 / AI 经营助手（本轮新增）
   ========================================================================= */
.int-notice {
  display: flex; align-items: center; gap: 10px;
  background: #f2f7ff; border: 1px solid #d9e6ff; color: #3d5a80;
  border-radius: 6px; padding: 10px 14px; font-size: 12px; line-height: 20px; margin-bottom: 12px;
}
.int-notice b { color: #1f4f9c; font-weight: 600; }
.int-notice-icon { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; background: #e2eeff; color: #2f7cf6; display: inline-flex; align-items: center; justify-content: center; }

.int-result, .int-test-result {
  border-radius: 6px; padding: 10px 14px; font-size: 13px; line-height: 20px; margin-bottom: 12px;
  border: 1px solid transparent;
}
.int-result[hidden], .int-test-result[hidden] { display: none; }
.int-result.is-success, .int-test-result.is-success { background: #f0f9eb; border-color: #e1f3d8; color: #5daf34; }
.int-result.is-danger, .int-test-result.is-danger { background: #fef0f0; border-color: #fde2e2; color: #dd6161; }
.int-result.is-warning, .int-test-result.is-warning { background: #fdf6ec; border-color: #faecd8; color: #b88230; }
.int-result.is-info, .int-test-result.is-info { background: #f4f8ff; border-color: #dbe7fb; color: #3d5a80; }
.int-result b, .int-test-result b { font-weight: 600; }
.int-result .int-result-spin { display: inline-block; width: 12px; height: 12px; margin-right: 7px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: int-spin .8s linear infinite; vertical-align: -1px; }
@keyframes int-spin { to { transform: rotate(360deg); } }

.int-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px; align-content: start;
}
.int-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid #edf1f7;
  border-radius: 8px; box-shadow: 0 2px 6px rgba(31, 35, 41, .05);
  padding: 16px 18px 14px; min-width: 0; transition: border-color .15s, box-shadow .15s;
}
.int-card:hover { border-color: #d6e6ff; box-shadow: 0 4px 14px rgba(31, 90, 190, .09); }
.int-card-top { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.int-icon {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px; background: #f1f6ff;
  display: inline-flex; align-items: center; justify-content: center;
}
.int-icon img { width: 20px; height: 20px; }
.int-icon-lg { width: 46px; height: 46px; flex-basis: 46px; border-radius: 11px; }
.int-icon-lg img { width: 24px; height: 24px; }
.int-title { flex: 1 1 auto; min-width: 0; }
.int-title h3 { font-size: 14px; font-weight: 600; color: #1f2329; line-height: 20px; }
.int-title p { font-size: 12px; color: #9ca2a9; line-height: 18px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.int-status {
  flex: 0 0 auto; display: inline-block; height: 20px; line-height: 19px; padding: 0 7px;
  border-radius: 3px; font-size: 11px; font-weight: 400; margin-top: 1px;
}
.int-status-muted { background: #f4f4f5; color: #909399; border: 1px solid #e9e9eb; }
.int-status-warning { background: #fdf6ec; color: #e6a23c; border: 1px solid #faecd8; }
.int-status-success { background: #f0f9eb; color: #67c23a; border: 1px solid #e1f3d8; }
.int-status-danger { background: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }
.int-status-info { background: #f4f4f5; color: #909399; border: 1px solid #e9e9eb; }
.int-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 13px; font-size: 12px; color: #9ca2a9; }
.int-meta b { color: #3d82f3; font-weight: 600; }
.int-last { margin-left: auto; color: #b1b7c1; white-space: nowrap; }
.int-caps { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 20px; }
.int-cap { font-size: 11px; color: #6b7a90; background: #f4f7fb; border: 1px solid #e9eef6; border-radius: 3px; height: 20px; line-height: 18px; padding: 0 7px; }
.int-cap-ai { color: #6a4df0; background: #f4f1ff; border-color: #e4ddff; }
.int-cap-muted { color: #9ca2a9; }
.int-card-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid #f2f5f9; margin-top: 12px; padding-top: 12px; }
.int-card-foot .el-button { height: 28px; line-height: 26px; padding: 0 12px; font-size: 12px; border-radius: 3px; }
.int-foot-spacer { flex: 1 1 auto; }

/* 开关 */
.app-switch { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.app-switch-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.app-switch-core {
  position: relative; display: inline-block; width: 34px; height: 18px; border-radius: 9px;
  background: #d7dce5; transition: background .18s; flex: 0 0 34px;
}
.app-switch-core::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .18s;
}
.app-switch-input:checked + .app-switch-core { background: linear-gradient(135deg, #2a87ff, #3d82f3); }
.app-switch-input:checked + .app-switch-core::after { transform: translateX(16px); }
.app-switch-input:focus-visible + .app-switch-core { outline: 2px solid rgba(61, 130, 243, .35); outline-offset: 2px; }
.app-switch-label { font-size: 12px; color: #9ca2a9; font-style: normal; }
.app-switch-input:checked ~ .app-switch-label { color: #3d82f3; }

/* 配置页 */
.int-edit-card { padding: 18px 24px 16px; }
.int-edit-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #eff0f1; margin-bottom: 14px; }
.int-edit-head .int-title h3 { font-size: 16px; line-height: 22px; }
.int-edit-last { margin-left: auto; }
.int-enabled-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #f8fafd; border: 1px solid #eef2f8; border-radius: 6px; padding: 10px 14px; margin-bottom: 16px;
}
.int-enabled-label { font-size: 13px; color: #1f2329; font-weight: 500; }
.int-enabled-row .app-hint { margin-left: auto; }
.int-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.int-field { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: start; min-height: 32px; }
.int-field.is-full { grid-column: 1 / -1; }
.int-field-label { text-align: right; padding-right: 12px; line-height: 32px; font-size: 13px; color: #606266; }
.int-field-label.is-required::before { content: "*"; color: #f56c6c; margin-right: 3px; }
.int-field-control { min-width: 0; }
.int-field-control .app-input, .int-field-control .app-select { max-width: 560px; }
.int-field-help, .int-field-hint { font-size: 11px; color: #9ca2a9; line-height: 18px; margin-top: 4px; }
.int-current-secret { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 12px; color: #9ca2a9; }
.int-mono { font-family: Consolas, "Courier New", monospace; color: #606266; background: #f6f8fb; border-radius: 3px; padding: 1px 6px; letter-spacing: .5px; }
.int-clear { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #9ca2a9; cursor: pointer; }
.int-test-result { margin-top: 16px; margin-bottom: 4px; }
.int-help-card { margin-top: 12px; }
.int-help-list { padding-left: 18px; list-style: disc; }
.int-help-list li { font-size: 12px; color: #8a94a6; line-height: 24px; }

/* AI 助手 */
.ai-provider-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: 14px; background: #f0f9eb; color: #5daf34; font-size: 12px; border: 1px solid #e1f3d8;
}
.ai-provider-pill i, .ai-online i { width: 6px; height: 6px; border-radius: 50%; background: #2ec19f; display: inline-block; }
.ai-guide-card { padding: 0; overflow: hidden; }
.ai-guide-hero { padding: 44px 24px 34px; text-align: center; background: radial-gradient(700px 240px at 50% 0%, #f0f6ff, #fff 70%); }
.ai-orb {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 18px;
  background: linear-gradient(135deg, #eaf2ff, #f6f1ff); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(61, 130, 243, .18);
}
.ai-orb img { width: 32px; height: 32px; }
.ai-guide-hero h3 { font-size: 20px; color: #1f2329; font-weight: 600; margin-bottom: 10px; }
.ai-guide-hero p { font-size: 13px; color: #7d8697; line-height: 23px; }
.ai-guide-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.ai-guide-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #eff0f1; }
.ai-feature { padding: 18px 20px; border-right: 1px solid #f2f5f9; }
.ai-feature:last-child { border-right: 0; }
.ai-feature b { display: block; font-size: 13px; color: #1f2329; font-weight: 600; margin-bottom: 5px; }
.ai-feature span { font-size: 12px; color: #9ca2a9; line-height: 18px; }

.ai-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.ai-side .app-card { padding: 14px 16px; }
.ai-side .app-card-head { padding-bottom: 10px; margin-bottom: 8px; }
.ai-chat-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: calc(100vh - 210px); min-height: 480px; }
.ai-chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #eff0f1; flex: 0 0 auto; }
.ai-bot-avatar, .ai-msg-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: linear-gradient(135deg, #ecf3ff, #f3efff); display: inline-flex; align-items: center; justify-content: center; }
.ai-bot-avatar img, .ai-msg-avatar img { width: 18px; height: 18px; }
.ai-bot-info h3 { font-size: 14px; font-weight: 600; color: #1f2329; line-height: 20px; }
.ai-bot-info p { font-size: 11px; color: #9ca2a9; line-height: 16px; }
.ai-online { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #67c23a; margin-left: 6px; }
.ai-spacer { flex: 1 1 auto; }
.ai-clear { background: none; border: 0; padding: 2px 6px; color: #9ca2a9; font-size: 12px; cursor: pointer; }
.ai-clear:hover { color: #3d82f3; }
.ai-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px; background: #fbfcfe; }
.ai-msg { display: flex; gap: 10px; margin-bottom: 16px; }
.ai-msg-user { flex-direction: row-reverse; }
.ai-msg-avatar { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; }
.ai-msg-avatar img { width: 16px; height: 16px; }
.ai-msg-user .ai-msg-avatar { background: #e8f0fe; color: #3d82f3; font-size: 12px; font-weight: 600; }
.ai-msg-body { max-width: min(78%, 720px); min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ai-msg-user .ai-msg-body { align-items: flex-end; }
.ai-bubble {
  padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.75;
  color: #2d2f33; background: #fff; border: 1px solid #eef1f6; box-shadow: 0 1px 2px rgba(31, 35, 41, .04);
  white-space: pre-wrap; word-break: break-word;
}
.ai-msg-assistant .ai-bubble { border-top-left-radius: 2px; }
.ai-msg-user .ai-bubble { background: linear-gradient(135deg, #2a87ff, #3d82f3); border-color: transparent; color: #fff; border-top-right-radius: 2px; }
.ai-msg-time { font-size: 10px; color: #b7bec9; }
.ai-msg-error .ai-bubble { background: #fef0f0; border-color: #fde2e2; color: #dd6161; }
.ai-typing { display: inline-flex; align-items: center; gap: 5px; height: 18px; }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9db8e8; animation: ai-bounce 1.2s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .16s; }
.ai-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes ai-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-4px); opacity: 1; } }
.ai-suggestions { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 10px 18px 4px; border-top: 1px dashed #eff0f1; }
.ai-suggestions-label { font-size: 11px; color: #9ca2a9; margin-right: 2px; }
.ai-chip {
  border: 1px solid #e2eaf7; background: #f7faff; color: #3d6aa8; border-radius: 14px;
  height: 26px; line-height: 24px; padding: 0 11px; font-size: 12px; cursor: pointer; transition: all .15s;
}
.ai-chip:hover { border-color: #9cc2ff; color: #2f7cf6; background: #eef5ff; }
.ai-error { flex: 0 0 auto; margin: 8px 18px 0; padding: 8px 12px; border-radius: 5px; background: #fef0f0; border: 1px solid #fde2e2; color: #dd6161; font-size: 12px; line-height: 18px; }
.ai-error[hidden] { display: none; }
.ai-inputbar { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 10px; padding: 12px 18px 6px; }
.ai-input {
  flex: 1 1 auto; width: 100%; min-height: 38px; max-height: 120px; resize: none;
  border: 1px solid #dcdfe6; border-radius: 8px; padding: 8px 12px; font-size: 13px; line-height: 20px;
  color: #1f2329; outline: none; font-family: inherit; box-sizing: border-box; transition: border-color .15s;
}
.ai-input:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .1); }
.ai-send { flex: 0 0 auto; height: 38px; line-height: 36px; padding: 0 20px; border-radius: 8px; }
.ai-send:disabled { opacity: .7; cursor: not-allowed; }
.ai-input-hint { flex: 0 0 auto; font-size: 11px; color: #b1b7c1; padding: 0 18px 12px; }
.ai-cap-list { list-style: none; }
.ai-cap-list li { padding: 8px 0; border-bottom: 1px dashed #f2f5f9; display: flex; flex-direction: column; gap: 2px; }
.ai-cap-list li:last-child { border-bottom: 0; }
.ai-cap-list b { font-size: 12px; color: #2d2f33; font-weight: 600; }
.ai-cap-list span { font-size: 12px; color: #9ca2a9; line-height: 18px; }
.ai-cap-list a { color: #3d82f3; }
.ai-kpi-list { display: grid; gap: 2px; }
.ai-kpi-item { display: flex; align-items: center; justify-content: space-between; height: 30px; font-size: 12px; color: #7d8697; border-bottom: 1px dashed #f2f5f9; }
.ai-kpi-item:last-child { border-bottom: 0; }
.ai-kpi-item b { color: #1f2329; font-weight: 600; }

@media (max-width: 1440px) {
  .ai-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .int-grid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
}
@media (max-width: 1240px) {
  .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .int-form-grid { grid-template-columns: 1fr; }
  .int-field.is-full { grid-column: auto; }
  .ai-layout { grid-template-columns: minmax(0, 1fr); }
  .ai-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ai-guide-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-side .app-card { margin-bottom: 0; }
}

.int-form-grid .int-field-control .app-input,
.int-form-grid .int-field-control .app-select { max-width: 100%; }

/* =========================================================================
   安全提示 / 修改密码（本轮新增，非集成页）
   ========================================================================= */
.app-security-hint {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  padding: 12px 16px; border-radius: 6px; border: 1px solid #faecd8;
  background: #fdf6ec; color: #8a5a12;
}
.app-security-icon {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fbe7c6; color: #d18b1d;
}
.app-security-text { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 20px; }
.app-security-text b { display: block; font-size: 13px; color: #8a5a12; font-weight: 600; }
.app-security-text span { display: block; color: #9a7234; }
.app-security-hint .el-button { flex: 0 0 auto; height: 30px; line-height: 28px; }
.app-security-hint-warn { background: #fdf6ec; border-color: #faecd8; }

.app-password-page { max-width: 760px; margin: 0 auto; }
.app-password-card { padding: 18px 24px 20px; }
.app-password-card .app-card-head { margin-bottom: 18px; }
.app-password-fields { display: flex; flex-direction: column; gap: 14px; }
.app-password-field { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: start; }
.app-password-field > label { text-align: right; padding-right: 14px; line-height: 32px; font-size: 13px; color: #606266; }
.app-password-field .app-input { height: 36px; line-height: 34px; }
.app-password-rules { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 7px; font-size: 11px; color: #9ca2a9; }
.app-password-rules > span { color: #7d8697; }
.app-password-rules em {
  font-style: normal; color: #6b7a90; background: #f4f7fb;
  border: 1px solid #e9eef6; border-radius: 3px; height: 20px; line-height: 18px; padding: 0 7px;
}
.app-password-alert { margin: 16px 0 0 144px; padding: 9px 12px; border-radius: 5px; font-size: 12px; line-height: 19px; }
.app-password-alert.is-danger { background: #fef0f0; border: 1px solid #fde2e2; color: #dd6161; }
.app-password-alert.is-success { background: #f0f9eb; border: 1px solid #e1f3d8; color: #5daf34; }
.app-password-actions { justify-content: flex-start; padding-left: 130px; margin-top: 18px; }
.app-password-actions .el-button { min-width: 104px; height: 34px; line-height: 32px; }
.app-password-link { margin-left: 12px; font-size: 12px; color: #3d82f3; align-self: center; }
.app-password-tips { margin-top: 12px; }
.app-password-tips .app-card { padding: 14px 24px 16px; }
.app-password-tip-list { list-style: none; }
.app-password-tip-list li { position: relative; padding-left: 14px; font-size: 12px; color: #8a94a6; line-height: 24px; }
.app-password-tip-list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: #b4c0d4; }
@media (max-width: 1240px) {
  .app-password-field { grid-template-columns: 1fr; gap: 6px; }
  .app-password-field > label { text-align: left; padding-right: 0; line-height: 20px; }
  .app-password-alert { margin-left: 0; }
  .app-password-actions { padding-left: 0; }
  .app-password-page { max-width: none; }
}

/* 退出登录改为 POST + CSRF 后的样式 */
.app-top-logout-form { display: inline-flex; margin: 0; }
.app-top-logout { font-family: inherit; cursor: pointer; background: transparent; }
.app-user-menu .app-user-logout-form { margin: 4px 0 0; padding: 4px 0 0; border-top: 1px solid #eff0f1; }
.app-user-menu .app-user-logout-form .app-logout {
  width: 100%; text-align: left; border: 0; border-top: 0; margin: 0; background: transparent;
  font-family: inherit; cursor: pointer; height: 34px; line-height: 34px; padding: 0 16px;
  color: #f56c6c !important; font-size: 13px;
}
.app-user-menu .app-user-logout-form .app-logout:hover { background: #fef0f0; color: #f56c6c !important; }

/* =========================================================================
   全量阶段：全局搜索 / 消息 / 用户权限 / 审批 / 订阅 / 集成日志 / 核销 / 批次
   ========================================================================= */
/* 顶栏铃铛 */
.app-bell { position: relative; display: inline-flex; align-items: center; }
.app-bell-badge {
  position: absolute; top: 12px; right: 2px; min-width: 15px; height: 15px; line-height: 15px;
  padding: 0 4px; border-radius: 8px; background: #f56c6c; color: #fff !important;
  font-size: 10px; font-style: normal; text-align: center; box-shadow: 0 0 0 1px rgba(14,109,237,.3);
}
.app-bell-badge[hidden] { display: none; }

/* 全局搜索 */
.app-search-modal { position: fixed; inset: 0; z-index: 2600; display: flex; align-items: flex-start; justify-content: center; padding-top: 10vh; }
.app-search-modal[hidden] { display: none; }
.app-search-backdrop { position: absolute; inset: 0; background: rgba(15, 35, 70, .38); backdrop-filter: blur(1px); }
.app-search-dialog {
  position: relative; width: 620px; max-width: calc(100vw - 32px); max-height: 68vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 10px; box-shadow: 0 18px 50px rgba(10, 35, 59, .28); overflow: hidden;
}
.app-search-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #eff0f1; }
.app-search-head > i { font-size: 16px; color: #9ca2a9; }
.app-search-input { flex: 1 1 auto; border: 0; outline: none; font-size: 15px; color: #1f2329; height: 30px; font-family: inherit; }
.app-search-kbd, .app-search-foot kbd {
  font-family: inherit; font-size: 10px; color: #9ca2a9; background: #f4f6f9;
  border: 1px solid #e4e8ef; border-radius: 3px; padding: 1px 5px;
}
.app-search-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 0; min-height: 150px; }
.app-search-hint, .app-search-empty { padding: 26px 16px; text-align: center; color: #9ca2a9; font-size: 12px; }
.app-search-group { padding: 4px 0; }
.app-search-group-title { padding: 6px 16px; font-size: 11px; color: #9ca2a9; }
.app-search-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; text-decoration: none; border-left: 2px solid transparent; }
.app-search-item b { font-size: 13px; color: #1f2329; font-weight: 500; }
.app-search-item span { font-size: 11px; color: #9ca2a9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-search-item:hover, .app-search-item.is-active { background: #f2f7ff; border-left-color: #3d82f3; }
.app-search-foot { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid #eff0f1; color: #9ca2a9; font-size: 11px; }

/* 消息中心 */
.app-tabs-bar { display: flex; align-items: center; gap: 22px; padding: 0 4px; margin-bottom: 10px; border-bottom: 1px solid #e6ecf5; }
.app-tab { position: relative; display: inline-block; height: 36px; line-height: 36px; font-size: 13px; color: #646a73; }
.app-tab.is-active { color: #3d82f3; font-weight: 500; }
.app-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #3d82f3; border-radius: 1px; }
.app-messages-card { padding: 0; overflow: hidden; }
.app-msg-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f2f5f9; background: #fff; }
.app-msg-item:last-child { border-bottom: 0; }
.app-msg-item.is-unread { background: #f8fbff; }
.app-msg-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; margin-top: 7px; background: transparent; }
.app-msg-item.is-unread .app-msg-dot { background: #f56c6c; }
.app-msg-main { flex: 1 1 auto; min-width: 0; }
.app-msg-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-msg-title b { font-size: 13px; font-weight: 600; color: #1f2329; }
.app-msg-new { font-size: 10px; color: #f56c6c; font-style: normal; }
.app-msg-content { font-size: 12px; color: #646a73; line-height: 21px; margin-top: 4px; }
.app-msg-meta { display: flex; align-items: center; gap: 14px; margin-top: 6px; font-size: 11px; color: #b1b7c1; }
.app-msg-meta a { color: #3d82f3; }
.app-msg-actions { flex: 0 0 auto; padding-top: 2px; }

/* 用户 / 角色 / 审批 / 订阅 / 集成日志 */
.app-table-strong { font-weight: 600; color: #1f2329; }
.app-perm-table td, .app-perm-table th { vertical-align: middle; }
.app-perm-group td { background: #f7f9fc !important; color: #5a6a82; font-weight: 600; height: 30px; line-height: 30px; }
.app-perm-route { display: inline-block; margin-left: 8px; font-style: normal; color: #b1b7c1; font-size: 11px; font-family: Consolas, monospace; }
.app-perm-all { background: none; border: 0; color: #3d82f3; font-size: 11px; cursor: pointer; padding: 0; font-family: inherit; }
.app-perm-all:hover { text-decoration: underline; }
.app-approval-docs, .app-check-group { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.app-approval-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.app-approval-step { background: #f8fafd; border: 1px solid #eef2f8; border-radius: 6px; padding: 12px 14px; }
.app-approval-step b { display: block; font-size: 13px; color: #1f2329; margin-bottom: 5px; }
.app-approval-step span { font-size: 12px; color: #8a94a6; line-height: 20px; }
.app-io-item { display: flex; }
.app-io-links { display: inline-flex; flex-direction: column; gap: 3px; flex: 0 0 auto; font-size: 11px; }
.app-io-links a { color: #3d82f3; }
.app-doc-chain-list { display: flex; flex-wrap: wrap; gap: 10px; }
.app-doc-chain-item {
  display: flex; align-items: center; gap: 8px; min-width: 210px; padding: 9px 12px;
  border: 1px solid #eef2f8; border-radius: 6px; background: #fafcff; text-decoration: none;
}
.app-doc-chain-item:hover { border-color: #b9d4ff; background: #f4f9ff; }
.app-doc-chain-label { font-size: 11px; color: #9ca2a9; }
.app-doc-chain-item.is-source .app-doc-chain-label { color: #3d82f3; }
.app-doc-chain-item b { font-size: 13px; color: #1f2329; font-weight: 600; }
.app-doc-chain-item em { font-style: normal; font-size: 11px; color: #9ca2a9; margin-left: auto; }
.app-doc-table .app-line-batch { min-width: 100px; }
.app-doc-table tbody td .app-select.app-line-batch { padding-right: 20px; }
.app-doc-summary { display: flex; align-items: center; justify-content: flex-end; gap: 26px; min-height: 46px; padding: 0 16px; background: #fef9eb; }
.app-doc-summary span { font-size: 12px; color: #8a6d3b; }
.app-doc-summary b { color: #1f2329; margin-left: 6px; }
.app-doc-summary b.is-orange { color: #fd7a3d; font-size: 15px; }
@media (max-width: 1440px) {
  .app-approval-flow { grid-template-columns: 1fr; }
}

/* 安全 V2：强制改密模式 */
.app-force-password .sidebar .sidebar_list:not(.app-force-password-item) { display: none !important; }
.app-force-password .sidebar .ey-collection,
.app-force-password .sidebar .sidebar-bottom-setting { display: none !important; }
.app-force-password .top_left { display: none !important; }
.app-force-password .top_right ul:not(:last-child) { display: none !important; }
.app-force-password .ey-view { display: none !important; }
.app-force-password-banner {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  border: 1px solid #ffd8b0; background: linear-gradient(180deg, #fff8ef, #fff3e6);
  border-radius: 8px; padding: 14px 18px; color: #8a4b10;
  box-shadow: 0 2px 8px rgba(253, 122, 61, .08);
}
.app-force-password-icon {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; background: #ffe3c7;
  color: #e8710a; display: inline-flex; align-items: center; justify-content: center;
}
.app-force-password-banner > div { flex: 1 1 auto; min-width: 0; }
.app-force-password-banner b { display: block; font-size: 14px; color: #b45309; margin-bottom: 3px; }
.app-force-password-banner span { font-size: 12px; color: #9a6a37; line-height: 20px; }
.app-force-password-banner .el-button { flex: 0 0 auto; }

/* 安全 V2：审批锁定 / 核销金额提示 */
.app-approval-lock-text {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
  border-radius: 4px; background: #fdf6ec; border: 1px solid #faecd8;
  font-size: 12px; color: #b88230; white-space: nowrap;
}
.app-approval-notice {
  margin: 0 0 10px; padding: 10px 14px; border-radius: 6px;
  background: #fdf6ec; border: 1px solid #faecd8; color: #b88230; font-size: 12px; line-height: 20px;
}
.app-writeoff-alert {
  margin: 8px 14px 0; padding: 8px 12px; border-radius: 5px;
  background: #fef0f0; border: 1px solid #fde2e2; color: #dd6161; font-size: 12px; line-height: 18px;
}
.app-writeoff-alert[hidden] { display: none; }

/* WAVE2：可搜索商品选择器 + 扫码枪 */
.app-line-product { min-width: 240px; }
.app-product-picker { position: relative; min-width: 220px; }
.app-product-search { width: 100%; padding-right: 24px; }
.app-product-search::placeholder { color: #b8bcc4; }
.app-product-clear {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border: 0; border-radius: 50%; background: #f0f2f5;
  color: #909399; font-size: 14px; line-height: 18px; cursor: pointer; padding: 0;
}
.app-product-clear:hover { background: #e4e7ed; color: #606266; }
.app-product-drop {
  position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 300px; overflow-y: auto; background: #fff;
  border: 1px solid #e4e7ed; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 4px; min-width: 320px;
}
.app-product-drop[hidden] { display: none; }
.app-product-option {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 7px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; line-height: 18px; color: #303133;
}
.app-product-option:hover, .app-product-option.is-active { background: #ecf5ff; }
.app-product-option-main { display: block; font-size: 12px; color: #303133; }
.app-product-option-main b { font-weight: 600; color: #1f2d3d; margin-right: 4px; }
.app-product-option-meta { display: block; margin-top: 2px; font-size: 11px; color: #909399; }
.app-product-empty { padding: 12px 10px; font-size: 12px; color: #909399; text-align: center; }
.app-product-error {
  margin-top: 4px; padding: 3px 8px; border-radius: 3px; background: #fef0f0;
  color: #dd6161; font-size: 11px; line-height: 16px;
}
.app-product-error[hidden] { display: none; }
.app-doc-table td.app-line-product { overflow: visible; }

/* =====================================================================
 * WAVE2：SRM / 审批对接 / 验收照片 / 同步中心
 * ===================================================================== */
.app-form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.app-form-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; }
.app-form-grid .app-form-item-full { grid-column: 1 / -1; }
.app-form-grid .app-form-label { width: 96px; }
.app-form-grid-4 .app-form-label { width: 82px; }
.app-card-head-sub { border-top: 1px dashed #ebeef5; margin-top: 8px; padding-top: 12px; }
.app-table-sub { color: #909399; font-size: 11px; }
.app-table-empty { text-align: center; color: #909399; padding: 28px 10px !important; font-size: 12px; }
.app-code { background: #f5f7fa; border: 1px solid #ebeef5; border-radius: 3px; padding: 1px 5px; font-size: 11px; color: #606266; }
.app-inline-detail { display: inline-block; position: relative; }
.app-inline-detail summary { cursor: pointer; color: #3b82f6; font-size: 12px; list-style: none; }
.app-inline-detail summary::-webkit-details-marker { display: none; }
.app-inline-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; min-width: 300px; }
.app-inline-form .app-input, .app-inline-form .app-select { height: 30px; min-width: 110px; }
.app-inline-form .el-button { height: 30px; }
.app-profile-actions { font-size: 12px; }
.app-inline-danger summary { color: #dd6161; }
.app-detail-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-detail-note { margin: 10px 18px 0; padding: 9px 12px; background: #fafafa; border-radius: 4px; font-size: 12px; color: #606266; }
.app-detail-note-danger { background: #fef0f0; color: #dd6161; }
.app-detail-card { background: #fff; border-radius: 4px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04); overflow: hidden; }

/* SRM */
.app-srm-status-card { padding: 12px 16px; }
.app-srm-status { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 12px; color: #606266; }
.app-srm-status b { color: #303133; }
.app-srm-grade { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 4px; font-size: 12px; font-weight: 600; }
.app-srm-grade-A { background: #f0f9eb; color: #67c23a; }
.app-srm-grade-B { background: #ecf5ff; color: #409eff; }
.app-srm-grade-C { background: #fdf6ec; color: #e6a23c; }
.app-srm-grade-D { background: #fef0f0; color: #f56c6c; }
.app-srm-qual-table .app-input, .app-srm-qual-table .app-select { height: 30px; }
.app-qual-actions { padding: 8px 14px 12px; }
.app-srm-checklist summary { cursor: pointer; color: #3b82f6; font-size: 12px; }
.app-srm-checklist-box { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.app-onboarding-table td { vertical-align: top; }
.app-onboarding-edit-row > td { background: #fafcff; border-top: 1px dashed #e4e7ed; }
.app-onboarding-form { padding: 12px 4px; }
.app-onboarding-form .app-form-actions { padding-left: 0; }
.app-timeline { list-style: none; margin: 0; padding: 10px 18px 16px; }
.app-timeline li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #f0f2f5; }
.app-timeline li:last-child { border-bottom: 0; }
.app-timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; margin-top: 6px; flex: 0 0 8px; }
.app-timeline b { font-size: 12px; color: #303133; }
.app-timeline p { margin: 2px 0; font-size: 12px; color: #606266; }
.app-timeline time { color: #a8abb2; font-size: 11px; }
.app-timeline-empty { color: #909399; font-size: 12px; }

/* 上传组件 */
.app-upload-card .app-card-head { padding-bottom: 8px; }
.app-upload { padding: 0 16px 16px; }
.app-upload-drop {
  position: relative; border: 1px dashed #c0c4cc; border-radius: 6px; background: #fafbfc;
  padding: 18px 16px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.app-upload-drop:hover, .app-upload-drop.is-dragover { border-color: #409eff; background: #f4f9ff; }
.app-upload-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.app-upload-drop-icon { width: 30px; height: 30px; line-height: 28px; margin: 0 auto 4px; border-radius: 50%; background: #ecf5ff; color: #409eff; font-size: 20px; }
.app-upload-drop-text b { display: block; font-size: 12px; color: #303133; margin-bottom: 2px; }
.app-upload-drop-text span { font-size: 11px; color: #909399; }
.app-upload-actions { margin-top: 8px; }
.app-upload-actions .el-button { height: 30px; }
.app-upload-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.app-upload-list:empty { margin-top: 0; }
.app-upload-item { position: relative; width: 132px; border: 1px solid #ebeef5; border-radius: 5px; overflow: hidden; background: #fff; }
.app-upload-thumb { display: block; text-decoration: none; color: #606266; }
.app-upload-thumb img { display: block; width: 132px; height: 96px; object-fit: cover; background: #f5f7fa; }
.app-upload-file { display: flex; align-items: center; justify-content: center; height: 96px; background: #fdf6ec; color: #e6a23c; font-size: 16px; font-weight: 600; }
.app-upload-name { display: block; padding: 4px 6px; font-size: 10px; color: #909399; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-upload-del {
  position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; line-height: 18px; cursor: pointer; padding: 0;
}
.app-upload-del:hover { background: #f56c6c; }
.app-upload-progress { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: #606266; }
.app-upload-progress-bar { flex: 1; height: 6px; border-radius: 3px; background: #ebeef5; overflow: hidden; }
.app-upload-progress-bar i { display: block; height: 100%; width: 0; background: #409eff; transition: width .2s; }
.app-upload-error { margin-top: 8px; padding: 6px 10px; border-radius: 4px; background: #fef0f0; color: #dd6161; font-size: 11px; }
.app-upload-list-detail { padding: 4px 16px 16px; margin-top: 0; }
.app-upload-item-detail { width: 160px; }
.app-upload-item-detail img { width: 160px; height: 120px; }
.app-upload-item-detail .app-upload-file { height: 120px; }
.app-preview-open { overflow: hidden; }
.app-image-preview { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; }
.app-image-preview[hidden] { display: none; }
.app-image-preview-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.app-image-preview-dialog { position: relative; z-index: 1; max-width: 86vw; max-height: 88vh; background: #fff; border-radius: 6px; padding: 10px; box-shadow: 0 12px 48px rgba(0,0,0,.4); }
.app-image-preview-dialog img { display: block; max-width: 82vw; max-height: 78vh; object-fit: contain; }
.app-image-preview-close { position: absolute; right: -12px; top: -12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; color: #303133; font-size: 20px; line-height: 28px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.app-image-preview-caption { text-align: center; font-size: 11px; color: #909399; padding-top: 6px; }

/* 审批对接 / 实例 */
.app-approval-connect-help { margin-bottom: 12px; }
.app-approval-connect-form { margin-bottom: 12px; }
.app-approval-connect-form .app-form-grid { padding: 0 16px 4px; }
.app-map-table .app-input, .app-map-table .app-select { height: 30px; }
.app-approval-form { padding: 10px 16px 14px; }
.app-approval-form textarea { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.app-approval-connect-form .app-form-actions { padding: 4px 16px 16px; }

/* 同步中心 */
.app-sync-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px; margin-bottom: 12px; }
.app-sync-conn-card, .app-sync-conn { display: flex; flex-direction: column; }
.app-sync-conn-body { display: flex; align-items: center; gap: 12px; padding: 8px 16px 4px; }
.app-sync-conn-icon { width: 46px; height: 46px; border-radius: 10px; background: #ecf5ff; color: #409eff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.app-sync-conn-body b { display: block; font-size: 14px; color: #303133; }
.app-sync-conn-body p { margin: 3px 0 0; font-size: 11px; color: #909399; line-height: 18px; }
.app-sync-conn-actions { padding: 10px 16px 16px; }
.app-sync-switch-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 16px; }
.app-sync-switch-row b { display: block; font-size: 12px; color: #303133; margin-bottom: 2px; }
.app-sync-switch-row p { margin: 0; font-size: 11px; color: #909399; line-height: 17px; }
.app-sync-risk { color: #e6a23c !important; }
.app-sync-form .app-form-actions { padding: 8px 16px 4px; }
.app-sync-run-form { display: flex; align-items: center; gap: 10px; padding: 8px 16px 14px; border-top: 1px dashed #ebeef5; margin-top: 4px; }
.app-sync-resource-form { padding: 0 16px 14px; }
.app-sync-resource-grid { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 8px 0 12px; }
.app-sync-resource .app-checkbox { margin: 0; }
.app-form-actions-inline .el-button { margin-top: 22px; }
.app-sync-page .app-sync-top .app-card { margin-bottom: 0; }
@media (max-width: 1440px) {
  .app-form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-sync-top { grid-template-columns: 1fr; }
}
@media (max-width: 1200px) {
  .app-form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* WAVE2：供应商外部账号极简外壳 */
.supplier-portal .sidebar { display: none !important; }
.supplier-portal .ey-titlebar { display: none !important; }
.supplier-portal .main { margin-left: 0 !important; left: 0 !important; top: 52px !important; height: calc(100% - 52px) !important; width: 100% !important; }
.supplier-portal .top_left { display: none !important; }
.supplier-portal .top_right ul:not(:last-child) { display: none !important; }
.supplier-portal .top_right > ul:last-child { margin-left: auto; }
.supplier-portal .container { width: 100% !important; max-width: none !important; padding: 0 24px 24px; box-sizing: border-box; }
.supplier-portal #page-container { padding-top: 14px; }
.supplier-portal .app-page-head { margin-top: 0; }
.supplier-top-link { margin-left: 26px; color: #fff; font-size: 13px; text-decoration: none; opacity: .92; }
.supplier-top-link:hover { opacity: 1; text-decoration: underline; }
.supplier-portal .app-brand-text { font-weight: 600; }
.app-supplier-statusbar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 12px; border-radius: 4px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.04); font-size: 12px; color: #606266; }
.app-supplier-statusbar b { color: #303133; }
.app-supplier-statusbar .app-spacer { flex: 1; }

/* WAVE2：SRM 步骤条 / 统计 / tabs / 看板 / 验收统计 */
.app-srm-steps { display: flex; align-items: center; gap: 0; background: #fff; border-radius: 4px; padding: 12px 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.app-srm-steps a { display: flex; align-items: center; gap: 6px; flex: 1; text-decoration: none; color: #909399; font-size: 12px; position: relative; }
.app-srm-steps a::after { content: ''; height: 1px; flex: 1; background: #ebeef5; margin: 0 10px; }
.app-srm-steps a:last-of-type::after { display: none; }
.app-srm-steps a em { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #f0f2f5; color: #909399; align-items: center; justify-content: center; font-style: normal; font-size: 12px; flex: 0 0 22px; }
.app-srm-steps a.is-active { color: #3b82f6; font-weight: 600; }
.app-srm-steps a.is-active em { background: #3b82f6; color: #fff; }
.app-srm-autosave { margin-left: 12px; font-size: 11px; color: #a8abb2; white-space: nowrap; }
.app-field-hint { margin-top: 3px; font-size: 11px; line-height: 16px; color: #909399; }
.app-field-hint.is-danger { color: #dd6161; }
.app-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; background: #fff; border-radius: 4px; padding: 0 14px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.app-tabs a { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; color: #606266; font-size: 12px; text-decoration: none; border-bottom: 2px solid transparent; }
.app-tabs a.is-active { color: #3b82f6; border-bottom-color: #3b82f6; font-weight: 600; }
.app-tabs a em { font-style: normal; background: #fef0f0; color: #f56c6c; border-radius: 8px; padding: 0 5px; font-size: 10px; line-height: 15px; }
.app-acceptance-stats, .app-profiles-stats { display: flex; gap: 12px; margin-bottom: 12px; }
.app-acceptance-stat, .app-profiles-stat { flex: 1; background: #fff; border-radius: 4px; padding: 12px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.04); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #909399; }
.app-acceptance-stat b, .app-profiles-stat b { font-size: 22px; color: #303133; font-weight: 600; }
.app-acceptance-stat b.is-success, .app-profiles-stat b.is-success { color: #67c23a; }
.app-acceptance-stat b.is-danger, .app-profiles-stat b.is-danger { color: #f56c6c; }
.app-profiles-stat b.is-warning { color: #e6a23c; }
.app-onboarding-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.app-onboarding-col { background: #f7f8fa; border-radius: 4px; padding: 8px; min-height: 140px; }
.app-onboarding-col-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; font-size: 12px; color: #303133; }
.app-onboarding-col-head span { background: #fff; border-radius: 10px; padding: 0 7px; color: #909399; font-size: 11px; }
.app-onboarding-col-body { display: flex; flex-direction: column; gap: 8px; }
.app-onboarding-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: #fff; border: 1px solid #ebeef5; border-radius: 4px; padding: 9px 10px; cursor: pointer; }
.app-onboarding-card:hover { border-color: #a0cfff; box-shadow: 0 2px 8px rgba(64,158,255,.08); }
.app-onboarding-card b { font-size: 12px; color: #303133; }
.app-onboarding-progress { font-size: 11px; color: #e6a23c; }
.app-onboarding-cta { font-size: 11px; color: #3b82f6; margin-top: 2px; }
.app-onboarding-empty { color: #a8abb2; font-size: 11px; text-align: center; padding: 20px 0; }
.app-checklist-fixed { display: flex; flex-direction: column; gap: 6px; }
.app-checklist-fixed .app-checkbox em { font-style: normal; color: #a8abb2; font-size: 10px; margin-left: 4px; }
.app-checklist-extra { margin-top: 6px; color: #a8abb2; font-size: 11px; }
.app-reason-group { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 0 8px; }
@media (max-width: 1440px) {
  .app-onboarding-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .app-onboarding-board { grid-template-columns: 1fr; }
  .app-acceptance-stats, .app-profiles-stats { flex-wrap: wrap; }
  .app-acceptance-stat, .app-profiles-stat { min-width: calc(50% - 6px); }
}

/* WAVE2 表单可读性 */
.app-form-label { white-space: nowrap; }
.app-form-item[hidden] { display: none !important; }
.app-form-grid .app-form-item { min-width: 0; }
.app-acceptance-form-page .app-form-grid-2 { gap: 10px 24px; }

.supplier-portal .top { display: flex; align-items: center; }
.supplier-portal .app-brand { width: auto !important; flex: 0 0 auto; overflow: visible !important; }
.supplier-portal .app-brand-text { white-space: nowrap; overflow: visible; font-size: 14px; }
.supplier-portal .supplier-top-link { display: inline-flex; align-items: center; height: 52px; line-height: 52px; margin-left: 10px; }
.supplier-portal .top_input_box { flex: 1 1 auto; }
.supplier-portal .top_right { float: none !important; margin-left: auto; }

.app-callback-grid { padding: 0 16px 4px; }
.app-copy-field { display: flex; gap: 6px; }
.app-copy-field .app-input { flex: 1; }
.app-copy-field .el-button { height: 32px; flex: 0 0 auto; }
.app-callback-warning { font-size: 11px; line-height: 18px; color: #b88230; background: #fdf6ec; border: 1px solid #faecd8; border-radius: 4px; padding: 8px 10px; }
.app-map-pull { margin-left: 8px; height: 28px; }
.app-hint.is-success { color: #67c23a; }
.app-hint.is-danger { color: #dd6161; }

.supplier-portal .app-brand { width: 268px !important; flex: 0 0 268px !important; }
.supplier-portal .app-brand-text { font-size: 13.5px !important; letter-spacing: 0; }

.app-image-preview-dialog img.is-zoomed { max-width: none; max-height: none; width: auto; cursor: zoom-out; }
.app-image-preview-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 56px; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 30px; line-height: 50px; cursor: pointer; z-index: 2; }
.app-image-preview-nav:hover { background: rgba(0,0,0,.55); }
.app-image-preview-nav.is-prev { left: -48px; border-radius: 4px; }
.app-image-preview-nav.is-next { right: -48px; border-radius: 4px; }
.app-image-preview-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.app-image-preview-tools { display: flex; gap: 12px; }
.app-image-preview-tools a { color: #3b82f6; text-decoration: none; font-size: 11px; }
.app-image-preview-tools a:hover { text-decoration: underline; }

/* WAVE2：供应商 360 详情 */
.app-profile-summary { display: flex; align-items: center; gap: 28px; background: #fff; border-radius: 4px; padding: 16px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.04); margin-bottom: 12px; }
.app-profile-hero { display: flex; align-items: center; gap: 12px; min-width: 280px; }
.app-profile-avatar { width: 52px; height: 52px; border-radius: 10px; background: #ecf5ff; color: #3b82f6; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; }
.app-profile-hero b { display: block; font-size: 15px; color: #303133; }
.app-profile-hero span { display: block; margin-top: 4px; font-size: 11px; color: #909399; }
.app-profile-kpis { display: flex; flex: 1; justify-content: flex-end; gap: 30px; }
.app-profile-kpis > div { text-align: right; }
.app-profile-kpis span { display: block; font-size: 11px; color: #909399; margin-bottom: 4px; }
.app-profile-kpis b { font-size: 15px; color: #303133; }
.app-profile-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.app-profile-checklist { padding: 0 18px 12px; }
.app-detail-grid-1 { grid-template-columns: 1fr; }
.app-detail-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1440px) {
  .app-profile-summary { flex-wrap: wrap; }
  .app-profile-kpis { justify-content: flex-start; flex-wrap: wrap; gap: 18px 28px; }
  .app-profile-grid { grid-template-columns: 1fr; }
}

.app-profile-detail-page .app-detail-item span { white-space: nowrap; }
.app-profile-detail-page .app-detail-grid-2 { gap: 10px 28px; }

/* WAVE3：单据编号 */
.app-docno-layout { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 2.1fr); gap: 12px; margin-bottom: 12px; }
.app-docno-type-list { padding: 6px; max-height: 560px; overflow-y: auto; }
.app-docno-type { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px; border: 0; background: transparent; padding: 9px 10px; border-radius: 4px; cursor: pointer; text-align: left; }
.app-docno-type:hover { background: #f5f7fa; }
.app-docno-type.is-active { background: #ecf5ff; }
.app-docno-type b { display: block; font-size: 12px; color: #303133; }
.app-docno-type em { display: block; margin-top: 2px; font-size: 10px; color: #a8abb2; font-style: normal; }
.app-docno-form .app-form-grid { padding: 0 16px; }
.app-docno-preview-card { margin: 12px 16px 0; padding: 12px 14px; background: #f5f9ff; border: 1px dashed #b9d6ff; border-radius: 5px; display: flex; align-items: baseline; gap: 12px; }
.app-docno-preview-card span { font-size: 11px; color: #909399; }
.app-docno-preview-card b { font-size: 20px; letter-spacing: .5px; color: #1f6feb; }
.app-docno-preview-card em { font-size: 11px; color: #a8abb2; font-style: normal; margin-left: auto; }
.app-docno-preview-input { color: #1f6feb !important; font-weight: 600; }
@media (max-width: 1366px) { .app-docno-layout { grid-template-columns: 240px minmax(0, 1fr); } }

/* WAVE3：验收评分 */
.app-score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px 14px; }
.app-score-block { border: 1px solid #ebeef5; border-radius: 4px; overflow: hidden; }
.app-score-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: #fafbfc; font-size: 12px; color: #303133; }
.app-score-table .app-input { height: 30px; }
.app-score-total { padding: 8px 10px; text-align: right; font-size: 12px; color: #606266; border-top: 1px dashed #ebeef5; }
.app-score-total b { color: #1f6feb; font-size: 15px; margin-left: 4px; }
@media (max-width: 1366px) { .app-score-grid { grid-template-columns: 1fr; } }

/* WAVE3 页面 */
.app-requisition-status { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 14px 16px; font-size: 12px; color: #606266; }
.app-requisition-status b { color: #303133; }
.app-relation-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 14px; }
.app-relation-item { display: flex; align-items: center; gap: 8px; border: 1px solid #ebeef5; border-radius: 4px; padding: 8px 10px; text-decoration: none; color: #303133; background: #fff; }
.app-relation-item:hover { border-color: #a0cfff; background: #f5faff; }
.app-relation-item b { font-size: 12px; }
.app-relation-item em { font-style: normal; font-size: 11px; color: #909399; }
.app-score-model-card { margin-bottom: 12px; }
.app-score-model-form { padding: 0 16px 8px; }
.app-score-weight-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.app-score-weight-grid > div { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #606266; }
.app-score-weight-grid .app-input { width: 100px; height: 32px; }
.app-score-weight-grid em { font-style: normal; color: #a8abb2; font-size: 10px; }
.app-score-weight-total { margin-left: auto; font-size: 12px; color: #606266; }
.app-score-weight-total b { color: #1f6feb; font-size: 20px; margin: 0 2px; }
.app-score-total-text { color: #1f6feb; font-size: 14px; }
.app-contract-form { padding: 0 16px 8px; }
.app-contract-form .app-upload { padding: 8px 0 4px; }
.app-portal-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.app-portal-stat { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 4px; padding: 14px 16px; text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.app-portal-stat:hover { box-shadow: 0 3px 12px rgba(64,158,255,.15); }
.app-portal-stat span { font-size: 12px; color: #909399; }
.app-portal-stat b { font-size: 24px; color: #303133; }
.app-portal-stat em { font-style: normal; font-size: 11px; color: #3b82f6; }
.app-category-manager .app-card-head { cursor: pointer; list-style: none; }
.app-category-manager summary::-webkit-details-marker { display: none; }
.app-category-manager .app-category-body { padding: 0 16px 14px; }
.app-category-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; padding-top: 6px; }
.app-category-tag { display: inline-flex; align-items: center; gap: 4px; background: #ecf5ff; color: #3b82f6; border-radius: 12px; padding: 3px 10px; font-size: 11px; }
.app-category-tag form { display: inline; }
.app-category-tag button { border: 0; background: transparent; color: #909399; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
.app-category-tag button:hover { color: #f56c6c; }
.app-supplier-register-body { background: #f2f5fa; min-height: 100vh; padding: 24px 16px; }
.supplier-register-page { max-width: 1040px; margin: 0 auto; }
.supplier-register-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.supplier-register-head a { color: #3b82f6; font-size: 12px; text-decoration: none; }
.supplier-register-card { display: flex; flex-direction: column; gap: 12px; }
.supplier-register-card .app-page-title { padding: 0 0 2px; }
.app-customer-summary .app-profile-kpis { gap: 22px; }
.login-error { margin: 0 0 10px; padding: 8px 10px; background: #fef0f0; border: 1px solid #fde2e2; border-radius: 4px; color: #dd6161; font-size: 12px; }
@media (max-width: 1440px) {
  .app-portal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.app-good-rate { font-weight: 600; }
.app-good-rate.is-good { color: #67c23a; }
.app-good-rate.is-info { color: #409eff; }
.app-good-rate.is-warn { color: #e6a23c; }
.app-good-rate.is-bad { color: #f56c6c; }
.app-customer-summary .app-profile-kpis b.is-danger { color: #f56c6c; }
.app-supplier-portal-page .app-portal-stats { margin-top: 0; }
.app-score-weight-total b.is-danger { color: #f56c6c; }

/* =========================================================================
   WAVE5 · 订单审批同步（/set/order-approval）
   ========================================================================= */
.app-order-approval-page .app-page-title p { max-width: 760px; }
.app-w5-status { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; padding:10px 14px; margin-bottom:14px; background:#fff; border:1px solid var(--app-border); border-radius:6px; font-size:12px; color:var(--app-text-2); box-shadow:var(--app-card-shadow); }
.app-w5-status b { color:var(--app-text-1); font-weight:600; }
.app-w5-health { display:inline-flex; align-items:center; gap:6px; font-weight:600; }
.app-w5-health i { width:8px; height:8px; border-radius:50%; background:#67c23a; display:inline-block; }
.app-w5-health.is-off i { background:#f56c6c; }
.app-w5-kpis { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.app-w5-kpi { background:#fff; border:1px solid var(--app-border); border-radius:6px; padding:12px 14px; box-shadow:var(--app-card-shadow); min-width:0; }
.app-w5-kpi span { display:block; font-size:12px; color:var(--app-text-2); }
.app-w5-kpi b { display:block; margin-top:2px; font-size:24px; line-height:1.25; color:var(--app-text-1); }
.app-w5-kpi em { display:block; font-style:normal; font-size:11px; color:var(--app-text-3); }
.app-w5-kpi.is-danger b { color:#f56c6c; } .app-w5-kpi.is-warning b { color:#e6a23c; } .app-w5-kpi.is-success b { color:#67c23a; }
.app-w5-tabs { display:flex; gap:2px; border-bottom:1px solid var(--app-border); margin-bottom:14px; overflow-x:auto; }
.app-w5-tabs button { border:0; background:transparent; padding:9px 14px; font-size:13px; color:var(--app-text-2); cursor:pointer; white-space:nowrap; border-bottom:2px solid transparent; }
.app-w5-tabs button.is-active { color:var(--app-blue); border-bottom-color:var(--app-blue); font-weight:600; }
.app-w5-tabs em { font-style:normal; margin-left:4px; padding:0 5px; border-radius:8px; background:#fdecef; color:#f56c6c; font-size:10px; }
.app-w5-panel { display:none; }
.app-w5-panel.is-active { display:block; }
.app-w5-grid-2 { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:14px; align-items:start; }
.app-w5-overview-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; padding:8px 16px 4px; }
.app-w5-overview-list > div { display:flex; justify-content:space-between; gap:8px; padding:8px 0; border-bottom:1px dashed var(--app-line); font-size:12px; }
.app-w5-overview-list span { color:var(--app-text-2); } .app-w5-overview-list b { color:var(--app-text-1); font-weight:500; text-align:right; }
.app-w5-status-ok { color:#67c23a; }
.app-db-info-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; padding:12px 16px; }
.app-db-info-grid > div { background:#f8fafd; border:1px solid var(--app-line); border-radius:6px; padding:9px 11px; min-width:0; }
.app-db-info-grid span { display:block; color:var(--app-text-2); font-size:11px; } .app-db-info-grid b { display:block; color:var(--app-text-1); font-size:13px; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:900px) { .app-db-info-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.app-w5-grid-2 .app-table { table-layout:fixed; }
.app-w5-grid-2 .app-table th:nth-child(1) { width:136px; }
.app-w5-grid-2 .app-table th:nth-child(2) { width:82px; }
.app-w5-grid-2 .app-table th:nth-child(3) { width:66px; }
.app-w5-grid-2 .app-table .app-tag { white-space:nowrap; }
.app-w5-grid-2 .app-table td { white-space:normal; word-break:break-word; }
.app-w5-state-bars { padding:12px 16px 16px; }
.app-w5-state-row { display:flex; align-items:center; gap:12px; margin-top:8px; font-size:12px; }
.app-w5-state-row > span { width:60px; flex:0 0 60px; color:var(--app-text-2); }
.app-w5-state-bar { flex:1; height:8px; background:#f0f2f5; border-radius:4px; overflow:hidden; }
.app-w5-state-bar i { display:block; height:100%; background:var(--app-blue); border-radius:4px; }
.app-w5-state-row b { width:28px; text-align:right; color:var(--app-text-1); }
.app-w5-template-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:12px 16px 16px; }
.app-w5-template { border:1px solid var(--app-border); border-radius:6px; padding:12px; background:#fbfcfe; min-width:0; }
.app-w5-template-head { display:flex; align-items:center; gap:9px; }
.app-w5-template-icon { width:32px; height:32px; border-radius:7px; background:#eaf2ff; color:var(--app-blue); display:flex; align-items:center; justify-content:center; font-weight:700; flex:0 0 32px; }
.app-w5-template-head > div { flex:1; min-width:0; }
.app-w5-template-head b { display:block; color:var(--app-text-1); font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.app-w5-template-head em { display:block; font-style:normal; color:var(--app-text-3); font-size:10px; font-family:Consolas,Monaco,monospace; }
.app-w5-template-meta { display:flex; gap:14px; margin:10px 0 8px; font-size:11px; color:var(--app-text-2); }
.app-w5-template-meta b { color:var(--app-text-1); font-weight:500; }
.app-w5-template-actions { display:flex; gap:12px; align-items:center; }
.app-w5-mini-tabs { display:inline-flex; border:1px solid var(--app-border); border-radius:4px; overflow:hidden; }
.app-w5-mini-tabs button { border:0; background:#fff; padding:5px 9px; font-size:11px; color:var(--app-text-2); cursor:pointer; }
.app-w5-mini-tabs button.is-active { background:#eaf2ff; color:var(--app-blue); font-weight:600; }
.app-w5-map-form .app-table td { vertical-align:middle; }
.app-w5-map-form .app-input, .app-w5-map-form .app-select { height:30px; font-size:12px; }
.app-w5-filterbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:10px 16px; border-bottom:1px solid var(--app-line); }
.app-w5-filterbar .app-input { width:220px; height:30px; }
.app-w5-filterbar .app-select { height:30px; }
.app-w5-row-actions { white-space:nowrap; }
.app-w5-pagination { display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:12px 16px; font-size:12px; color:var(--app-text-2); }
.app-w5-row-actions .app-inline-link { margin:0 3px; }
.app-w5-row-actions form { display:inline; }
.app-w5-checks { padding:6px 16px 12px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; }
.app-w5-check { display:flex; align-items:flex-start; gap:10px; padding:9px 10px; border:1px solid var(--app-line); border-radius:6px; background:#fbfcfe; }
.app-w5-check-icon { width:20px; height:20px; border-radius:50%; flex:0 0 20px; display:flex; align-items:center; justify-content:center; font-size:12px; color:#fff; background:#67c23a; }
.app-w5-check-icon.is-warning { background:#e6a23c; } .app-w5-check-icon.is-danger { background:#f56c6c; }
.app-w5-check > div { flex:1; min-width:0; }
.app-w5-check b { display:block; font-size:12px; color:var(--app-text-1); }
.app-w5-check p { margin:2px 0 0; font-size:11px; color:var(--app-text-2); }
.app-w5-check em { font-style:normal; color:var(--app-text-3); font-size:10px; }
.app-w5-dialog { border:0; border-radius:8px; padding:0; width:min(560px,92vw); box-shadow:0 12px 40px rgba(20,40,80,.22); }
.app-w5-dialog::backdrop { background:rgba(16,30,55,.36); }
.app-w5-dialog-head { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; border-bottom:1px solid var(--app-line); }
.app-w5-dialog-head h3 { margin:0; font-size:14px; }
.app-w5-dialog-head button { border:0; background:transparent; font-size:18px; color:var(--app-text-2); cursor:pointer; }
.app-w5-dialog > p, .app-w5-dialog > label, .app-w5-dialog > .app-input, .app-w5-dialog > .app-w5-dialog-note, .app-w5-dialog > .app-form-actions, .app-w5-dialog > .app-w5-help-list { margin:12px 16px; }
.app-w5-dialog > .app-input { width:calc(100% - 32px); }
.app-w5-dialog textarea.app-input { height:auto; min-height:150px; font-family:Consolas,Monaco,monospace; font-size:12px; }
.app-w5-dialog-note { font-size:11px; color:var(--app-text-2); background:#f7f9fc; border-radius:5px; padding:8px 10px; }
.app-w5-snapshot { margin:12px 16px 16px; max-height:320px; overflow:auto; background:#f7f9fc; padding:12px; border-radius:6px; font-size:11px; white-space:pre-wrap; }
.app-w5-help-list { padding-left:34px; color:var(--app-text-2); font-size:12px; line-height:1.9; }
.is-danger { color:#f56c6c; }
.app-order-approval-page .app-head-actions { flex-wrap:wrap; justify-content:flex-end; }
.app-order-approval-page .app-head-actions .app-inline-form { min-width:0; margin-top:0; flex-wrap:nowrap; }
.app-order-approval-page .app-table td { word-break:break-word; }
@media (max-width:1200px) {
  .app-w5-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:1100px) {
  .app-w5-grid-2 { grid-template-columns:1fr; }
  .app-w5-template-grid { grid-template-columns:1fr; }
  .app-w5-checks { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .app-w5-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app-w5-status { display:none; }
  .app-w5-filterbar .app-input { width:100%; }
  .app-w5-overview-list { grid-template-columns:1fr; }
  .app-w5-kpi b { font-size:20px; }
  .app-w5-tabs { gap:0; }
  .app-w5-tabs button { padding:8px 10px; font-size:12px; }
}

/* WAVE6 · 品牌设置 */
.app-branding-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr); gap:16px; align-items:start; }
.app-branding-form .app-form-item-full { grid-column:1 / -1; }
.app-branding-assets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:14px 16px 16px; }
.app-branding-asset { min-width:0; }
.app-branding-asset .app-input { margin-top:8px; height:30px; font-size:12px; }
.app-branding-preview-logo { min-height:64px; border:1px dashed var(--app-border); border-radius:7px; background:#fbfcfe; display:flex; align-items:center; justify-content:center; padding:8px; color:var(--app-text-3); font-size:11px; }
.app-branding-preview-logo img { max-width:100%; max-height:48px; object-fit:contain; }
.app-branding-preview-favicon { min-height:44px; border:1px dashed var(--app-border); border-radius:7px; background:#fbfcfe; display:flex; align-items:center; justify-content:center; padding:6px; color:var(--app-text-3); font-size:11px; }
.app-branding-preview-favicon img { width:28px; height:28px; object-fit:contain; }
.app-brand-preview-head { display:flex; align-items:center; gap:10px; margin:14px 16px; padding:10px; border-radius:7px; background:#0f2f5f; color:#fff; }
.app-brand-preview-mark { width:34px; height:34px; border-radius:8px; background:var(--app-blue); display:flex; align-items:center; justify-content:center; font-weight:700; flex:0 0 34px; }
.app-brand-preview-head b { display:block; font-size:13px; } .app-brand-preview-head em { font-style:normal; color:#9fc3f9; font-size:10px; }
.app-brand-preview-login { margin:0 16px 14px; border:1px solid var(--app-border); border-radius:8px; padding:14px; text-align:center; }
.app-brand-preview-login h4 { margin:0 0 3px; font-size:16px; } .app-brand-preview-login p { margin:0 0 10px; font-size:11px; color:var(--app-text-2); }
.app-brand-preview-btn { width:100%; height:28px; border:0; border-radius:5px; background:var(--app-blue); color:#fff; font-size:11px; }
.app-brand-preview-footer { margin:0 16px 16px; padding-top:10px; border-top:1px dashed var(--app-line); color:var(--app-text-3); font-size:10px; text-align:center; }
.app-branding-scope { margin:0; padding:12px 16px 6px 34px; color:var(--app-text-2); font-size:12px; line-height:2; }
@media (max-width:1200px) { .app-branding-grid { grid-template-columns:1fr; } .app-branding-assets { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .app-branding-assets { grid-template-columns:1fr; } }

/* =========================================================================
   WAVE6 · 供应商协同 / 双向同步 / 可扩展审批
   ========================================================================= */
.app-w6-filterbar { padding:10px 16px; border-bottom:1px solid var(--app-line); display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.app-w6-actions { white-space:nowrap; }
.app-w6-actions .app-inline-link { margin:0 4px; }
.app-w6-actions form { display:inline; }
.app-w6-pre { max-width:280px; white-space:normal; word-break:break-word; color:var(--app-text-2); font-size:12px; }
.app-w6-kpis { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.app-w6-kpis > div { background:#fff; border:1px solid var(--app-border); border-radius:6px; padding:12px 14px; box-shadow:var(--app-card-shadow); min-width:0; }
.app-w6-kpis span { display:block; font-size:12px; color:var(--app-text-2); } .app-w6-kpis b { display:block; font-size:22px; color:var(--app-text-1); margin-top:2px; }
.app-w6-kpis b.is-success { color:#67c23a; } .app-w6-kpis b.is-danger { color:#f56c6c; } .app-w6-kpis b.is-warning { color:#e6a23c; } .app-w6-kpis b.is-time { font-size:14px; font-weight:500; }
.app-w6-dialog { border:0; border-radius:8px; padding:0; width:min(560px,92vw); box-shadow:0 12px 40px rgba(20,40,80,.22); }
.app-w6-dialog::backdrop { background:rgba(16,30,55,.36); }
.app-w6-dialog-head { display:flex; justify-content:space-between; padding:12px 16px; border-bottom:1px solid var(--app-line); }
.app-w6-dialog-head h3 { margin:0; font-size:14px; } .app-w6-dialog-head button { border:0; background:none; font-size:18px; cursor:pointer; color:var(--app-text-2); }
.app-w6-dialog-body { padding:14px 16px; color:var(--app-text-2); font-size:12px; }
.app-approval-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:14px; align-items:start; }
.app-approval-routes-page .app-card { margin-bottom:14px; }
.app-approval-routes-page .app-form-grid { gap:10px 14px; padding:12px 16px 0; }
.app-approval-routes-page .app-form-actions { padding:12px 16px 14px; }
.app-approval-routes-page .app-pad { padding:12px 16px 14px; }
.app-approval-routes-page .app-grid-2 { display:grid; grid-template-columns:1.3fr 1fr; gap:14px; }
.app-approval-routes-page .app-code { font-size:11px; white-space:pre-wrap; word-break:break-word; }
.app-approval-routes-page textarea.app-input { height:auto; min-height:76px; }
@media (max-width:1100px) { .app-w6-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } .app-approval-grid { grid-template-columns:1fr; } .app-approval-routes-page .app-grid-2 { grid-template-columns:1fr; } }
@media (max-width:700px) { .app-w6-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* WAVE8 异步导出 */
.app-export-job { position:fixed; right:20px; bottom:20px; z-index:2400; width:min(360px,92vw); background:#fff; border:1px solid var(--app-border); border-radius:9px; box-shadow:0 12px 36px rgba(20,40,80,.18); }
.app-export-job-head { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-bottom:1px solid var(--app-line); font-size:12px; }
.app-export-job-head button { border:0; background:none; cursor:pointer; font-size:16px; color:var(--app-text-2); }
.app-export-job-body { padding:12px; } .app-export-bar { height:7px; background:#eef3f9; border-radius:4px; overflow:hidden; } .app-export-bar i { display:block; height:100%; background:linear-gradient(90deg,#3b82f6,#1f6feb); transition:width .35s; }
.app-export-job-body p { margin:8px 0; color:var(--app-text-2); font-size:11px; line-height:1.6; }
.app-export-job-download { font-size:12px; }
.app-hint.is-warning { color:#d98b00; }

/* WAVE9 登录页 / 页脚 / 开发者 */
.app-login-v2 { min-height:100vh; margin:0; background:#0b1f3a; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; }
.login-v2 { display:grid; grid-template-columns:1.15fr .85fr; min-height:100vh; max-width:1600px; margin:0 auto; }
.login-v2-brand { position:relative; overflow:hidden; padding:8vh 6vw 7vh; color:#fff; background:linear-gradient(145deg,#0a2444 0%,#0f3564 48%,#124b8e 100%); display:flex; flex-direction:column; justify-content:center; }
.login-v2-logo { display:flex; align-items:center; gap:12px; margin-bottom:44px; }
.login-v2-logo img { width:40px; height:40px; object-fit:contain; border-radius:9px; background:#fff; }
.login-v2-logo b { display:block; font-size:16px; } .login-v2-logo em { display:block; font-style:normal; color:#9fc3f9; font-size:10px; }
.login-v2-brand h1 { margin:0 0 16px; font-size:40px; line-height:1.35; letter-spacing:.5px; }
.login-v2-brand > p { color:#bcd4f5; font-size:14px; max-width:460px; }
.login-v2-brand ul { list-style:none; margin:34px 0 0; padding:0; color:#dbe8fb; font-size:12px; line-height:2.2; }
.login-v2-brand li::before { content:'✓'; color:#68d391; margin-right:8px; }
.login-v2-glow { position:absolute; width:380px; height:380px; right:-100px; bottom:-140px; border-radius:50%; background:radial-gradient(circle,rgba(87,160,255,.35),transparent 68%); pointer-events:none; }
.login-v2-panel { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:36px 24px; background:#f2f6fc; }
.login-v2-card { width:100%; max-width:410px; background:#fff; border-radius:16px; padding:32px 30px; box-shadow:0 16px 50px rgba(15,45,90,.12); }
.login-v2-card h2 { margin:0 0 4px; font-size:23px; } .login-v2-sub { margin:0 0 20px; color:#69788b; font-size:12px; }
.login-v2-flash { padding:9px 11px; border-radius:7px; font-size:12px; margin-bottom:12px; line-height:1.6; }
.login-v2-flash.is-error { background:#fdecef; color:#a5263d; border:1px solid #f6d1d9; }
.login-v2-flash.is-success { background:#e8f8ef; color:#137a45; border:1px solid #ccecd9; }
.login-v2-field { display:flex; flex-direction:column; gap:5px; margin-bottom:14px; font-size:12px; }
.login-v2-field > span { color:#45566d; font-size:11px; }
.login-v2-input { display:flex; align-items:center; gap:7px; border:1px solid #d6e0ee; border-radius:8px; padding:0 10px; background:#fff; }
.login-v2-input:focus-within { border-color:#8bb8f8; box-shadow:0 0 0 3px rgba(31,111,235,.1); }
.login-v2-input i { color:#9aa8ba; font-size:15px; }
.login-v2-input input { flex:1; min-width:0; height:42px; border:0; outline:none; font:inherit; color:#1e2b3d; background:transparent; }
.login-v2-submit { width:100%; height:42px; margin-top:6px; border:0; border-radius:8px; background:linear-gradient(135deg,#2f7df3,#1f6feb); color:#fff; font-size:15px; letter-spacing:4px; cursor:pointer; }
.login-v2-submit:hover { background:linear-gradient(135deg,#3b8bff,#1557c0); }
.login-v2-hint { margin-top:14px; color:#8a98aa; font-size:11px; text-align:center; line-height:1.7; }
.login-v2-footer { margin-top:16px; max-width:520px; text-align:center; color:#8a98aa; font-size:10px; line-height:1.8; display:flex; flex-wrap:wrap; justify-content:center; gap:3px 10px; }
.login-v2-footer a { color:#60748d; }
.app-global-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:4px 12px; padding:12px 16px 16px; color:#8a98aa; font-size:10px; }
.app-global-footer a { color:#7d8b9e; }
.app-developer-mark { color:#7d8b9e; }
.app-sidebar-copy { line-height:1.7; }
.app-sidebar-copy a { color:inherit; opacity:.82; text-decoration:none; }
.app-sidebar-copy .app-developer-mark { margin-top:2px; font-size:9px; opacity:.8; }
.app-branding-checks { display:flex; flex-wrap:wrap; gap:8px 14px; padding-top:6px; }
.app-branding-checks .app-checkbox { padding-top:0; }
@media (max-width:1024px) {
  .login-v2 { grid-template-columns:1fr; }
  .login-v2-brand { min-height:auto; padding:36px 24px 30px; }
  .login-v2-brand h1 { font-size:28px; }
  .login-v2-brand ul { margin-top:18px; }
  .login-v2-logo { margin-bottom:24px; }
  .login-v2-panel { padding:24px 16px 34px; }
}
@media (max-width:640px) {
  .login-v2-brand { display:none; }
  .login-v2-panel { min-height:100vh; padding:24px 14px; }
  .login-v2-card { padding:26px 20px; }
  .login-v2-footer { font-size:9px; }
}

.login-v2-mark { display:none; width:40px; height:40px; border-radius:9px; background:linear-gradient(135deg,#3b82f6,#1f6feb); color:#fff; align-items:center; justify-content:center; font-weight:700; flex:0 0 40px; }
.app-sidebar-copy { white-space:normal; word-break:break-all; line-height:1.55; font-size:9px; padding:6px 6px 8px; overflow:hidden; }
.app-sidebar-copy a { color:inherit; opacity:.85; text-decoration:none; }
.app-sidebar-copy .app-developer-mark { margin-top:2px; font-size:9px; opacity:.8; }

.app-sidebar-copy { bottom:48px !important; left:8px !important; right:8px !important; max-height:108px; overflow:auto; background:rgba(255,255,255,.45); border-radius:6px; padding:6px 6px 7px !important; text-align:center; transform:none !important; }
.sidebar:not(.wide) .app-sidebar-copy { background:transparent; }
