/* 聚水潭经典页面（aspx 列表页）风格的组件样式：左侧组合查询、查询池、工具栏、表格、分页、弹窗。
   数值按参考页实测（12px 字号、#059669 操作绿（参考站为蓝色，本机统一为绿色风格）、28px 表头、30px 工具栏行高）。前缀 lg-，不影响其它页面。 */
:root { --lg-blue: #059669; --lg-blue2: #059669; --lg-text: #333; --lg-muted: #999; --lg-line: #e7e7e7; --lg-hover: #e3f6ec; }
.lg-page {
  position: relative; display: flex; height: calc(100vh - 92px); min-height: 520px; overflow: hidden; background: #fff;
  font: 12px/1.5 "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif; color: var(--lg-text); text-align: left; }
.lg-page *, .lg-page *::before, .lg-page *::after { box-sizing: border-box; }
.lg-page input, .lg-page select, .lg-page textarea, .lg-page button { font: inherit; color: inherit; margin: 0; min-height: 0; box-shadow: none; }
.lg-page a, .lg-link { color: var(--lg-blue); cursor: pointer; text-decoration: none; }
.lg-dialog .lg-red, .lg-red { color: #f00; } .lg-dialog .lg-gray { color: #999; } .lg-dialog .lg-green { color: #00b034; }
.lg-page a:hover, .lg-link:hover { text-decoration: underline; }
.lg-red { color: #f00; } .lg-green { color: #00b034; } .lg-gray { color: var(--lg-muted); } .lg-bold { font-weight: 700; }

/* ---------- 左侧组合查询 ---------- */
.lg-filter { position: relative; flex: none; width: 220px; height: 100%; display: flex; flex-direction: column; background: #f3f3f3; border-right: 1px solid #ddd; }
.lg-filter-top { flex: none; padding: 2px 3px 0; background: #fff; }
.lg-filter-bar { display: flex; align-items: center; height: 30px; gap: 3px; }
.lg-btn-search { display: inline-block; height: 25px; line-height: 25px; padding: 0 9px; border-radius: 2px; background: #19bcfa; color: #fff; cursor: pointer; white-space: nowrap; }
.lg-btn-search:hover { background: #0aa8e6; }
.lg-btn-4 { display: inline-block; height: 26px; line-height: 26px; padding: 0 8px; background: #f3f3f3; color: #666; cursor: pointer; white-space: nowrap; }
.lg-btn-4:hover { background: #e7e7e7; }
.lg-filter-bar .lg-link { margin-left: 8px; }
.lg-batch { display: flex; height: 24px; margin: 3px 0 3px 1px; }
.lg-batch input { width: 111px; height: 24px; padding: 2px 5px; border: 1px solid #ccc; border-right: 0; border-radius: 0; background: #fff; outline: 0; }
.lg-batch input::placeholder { color: #bbb; }
.lg-batch input:focus { border-color: #10b981; }
.lg-batch .lg-batch-field { position: relative; width: 85px; height: 24px; line-height: 22px; padding: 0 6px; border: 1px solid #ccc; background: #f7f7f7; color: var(--lg-blue); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-batch .lg-batch-field.lg-fixed { color: #666; cursor: default; }
.lg-filter-note { padding: 9px 12px; color: #f00; background: #fff; border-top: 8px solid #f3f3f3; }
.lg-filter-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 8px; }
.lg-filter-body::-webkit-scrollbar { width: 6px; } .lg-filter-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.lg-sec { margin-top: 8px; padding: 7px 8px 7px 10px; background: #fff; }
.lg-sec-head { position: relative; display: flex; align-items: center; min-height: 22px; gap: 3px; }
.lg-sec-head .lg-arrow { position: absolute; right: 6px; top: 3px; width: 16px; height: 16px; cursor: pointer; }
.lg-sec-head .lg-arrow::after { content: ""; position: absolute; left: 4px; top: 2px; width: 6px; height: 6px; border-right: 1px solid #888; border-bottom: 1px solid #888; transform: rotate(45deg); transition: transform .15s; }
.lg-sec.lg-closed .lg-sec-head .lg-arrow::after { transform: rotate(-45deg); left: 3px; top: 4px; }
.lg-sec.lg-closed .lg-sec-body { display: none; }
.lg-sec-title { cursor: pointer; padding: 2px 0; color: #333; }
.lg-sec-title.lg-active { color: var(--lg-blue); }
.lg-sec-body { padding-top: 3px; }
.lg-chk { display: flex; align-items: center; min-height: 25px; gap: 3px; white-space: nowrap; }
.lg-chk.lg-sub { padding-left: 18px; }
.lg-chk.lg-sub2 { padding-left: 34px; }
.lg-chk input[type=checkbox], .lg-chk input[type=radio], .lg-cb { width: 13px; height: 13px; margin: 0 3px 0 0; flex: none; accent-color: #059669; cursor: pointer; }
.lg-chk label { cursor: pointer; }
.lg-chk.lg-dim label { color: var(--lg-muted); text-decoration: underline dotted; }
.lg-count { display: inline-block; min-width: 11px; height: 12px; line-height: 12px; padding: 0 2px; border-radius: 6px; background: #f00; color: #fff; text-align: center; font-size: 12px; transform: scale(.92); }
.lg-count.lg-zero { background: transparent; color: #999; }
.lg-filter input.lg-in, .lg-in { height: 24px; padding: 2px 5px; border: 1px solid #ccc; border-radius: 0; background: #fff; outline: 0; }
.lg-in:focus { border-color: #10b981; }
.lg-in::placeholder, .lg-ta::placeholder { color: #bbb; }
.lg-in-row { display: flex; gap: 6px; margin: 3px 0; }
.lg-in-row .lg-in { width: 86px; }
.lg-in-full { width: 178px; margin: 2px 0; display: block; }
.lg-hours { display: flex; align-items: center; height: 27px; gap: 4px; }
.lg-hours .lg-in { width: 40px; }
.lg-sel-txt { display: inline-block; height: 22px; line-height: 20px; padding: 0 6px; border: 1px solid #ccc; background: #f7f7f7; color: var(--lg-blue); cursor: pointer; }
.lg-tip-red { padding: 3px 0; color: #f00; line-height: 18px; }
.lg-filter-foot { flex: none; display: flex; justify-content: space-around; height: 30px; align-items: center; background: #fff; border-top: 1px solid #e5e5e5; }
.lg-filter-foot span { cursor: pointer; color: var(--lg-blue); }

/* ---------- 右侧主体 ---------- */
.lg-main { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; }
.lg-notice { position: relative; flex: none; display: flex; align-items: center; height: 32px; padding: 0 30px 0 6px; background: #f7efd0; color: #960014; font-size: 12px; }
.lg-notice .lg-link { margin-left: 10px; }
.lg-notice-close { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.8); cursor: pointer; }
.lg-notice-close::before, .lg-notice-close::after { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 2px; background: #888; transform: rotate(45deg); }
.lg-notice-close::after { transform: rotate(-45deg); }
.lg-pool { flex: none; position: relative; display: flex; flex-wrap: wrap; align-items: center; padding: 2px 110px 2px 24px; border-bottom: 1px solid #e5e5e5; min-height: 34px; }
.lg-pool-item { display: inline-flex; align-items: center; height: 30px; min-width: 104px; padding-right: 20px; color: #333; cursor: pointer; white-space: nowrap; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 500; }
.lg-pool-item:hover .lg-pool-txt { background: var(--lg-hover); }
.lg-pool-item.lg-on .lg-pool-txt { color: var(--lg-blue); }
.lg-pool-qty { padding-left: 3px; font-weight: 700; }
.lg-pool-qty.lg-hot { color: #f00; }
.lg-pool-sep { width: 1px; height: 16px; background: #aaa; margin: 0 8px 0 0; }
.lg-pool-right { position: absolute; right: 8px; top: 9px; display: flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.lg-pool-right .lg-ico { width: 15px; height: 15px; }

.lg-toolbar { flex: none; display: flex; justify-content: space-between; align-items: flex-start; padding: 4px 0 2px 2px; }
.lg-tools { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; }
.lg-tools-right { flex: none; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 240px; }
.lg-tool { position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 8px; color: var(--lg-blue); cursor: pointer; white-space: nowrap; border-radius: 1px; user-select: none; }
.lg-tool:hover { background: var(--lg-hover); }
.lg-tool.lg-disabled { color: #999; cursor: default; background: transparent; }
.lg-tool .lg-ico { width: 16px; height: 16px; margin-right: 5px; flex: none; }
.lg-tool .lg-caret { width: 10px; height: 10px; margin-left: 4px; flex: none; color: #737373; }
.lg-tool.lg-split .lg-caret-zone { display: inline-flex; align-items: center; height: 100%; padding-left: 5px; }
.lg-tool.lg-iconbtn { padding: 0 6px; }
.lg-menu { position: absolute; z-index: 60; top: 100%; left: -1px; min-width: 120px; padding: 2px 0; border: 1px solid var(--lg-blue2); border-radius: 0 2px 2px 2px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08); cursor: default; }
.lg-menu.lg-right { left: auto; right: -1px; }
.lg-menu-item { display: flex; align-items: center; height: 26px; line-height: 24px; padding: 0 10px 0 32px; color: #666; white-space: nowrap; cursor: pointer; position: relative; }
.lg-menu-item .lg-ico { position: absolute; left: 8px; top: 4px; width: 18px; height: 18px; }
.lg-menu-item:hover { background: var(--lg-blue2); color: #fff; }
.lg-menu-item.lg-disabled, .lg-menu-item.lg-disabled:hover { color: #999; background: #fff; cursor: default; }
.lg-menu-sep { height: 1px; margin: 3px 0; background: #e5e5e5; }
.lg-menu-item .lg-pin { position: absolute; right: 6px; top: 0; color: #bbb; }
.lg-menu-item .lg-new { margin-left: 4px; padding: 0 3px; border-radius: 2px; background: #f53f3f; color: #fff; font-size: 10px; line-height: 14px; }

/* ---------- 表格（jtable 样式） ---------- */
.lg-grid { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--lg-line); }
.lg-grid-scroll { flex: 1; min-height: 0; overflow: auto; position: relative; }
.lg-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.lg-table th, .lg-table td { padding: 4px 4px 4px 5px; font-weight: 400; text-align: left; overflow: hidden; }
.lg-table thead th { position: sticky; top: 0; z-index: 5; height: 28px; padding-top: 5px; background: #f3f3f3; color: #444; white-space: nowrap; text-overflow: ellipsis; border-bottom: 1px solid var(--lg-line); border-right: 1px dotted #ddd; cursor: default; }
.lg-table thead th:hover { background: #eaf3fc; }
.lg-table thead th.lg-help { text-decoration: underline dotted #aaa; text-underline-offset: 3px; }
.lg-table td { border-top: 1px solid #f7f7f7; border-right: 1px dotted #ddd; line-height: 20px; padding-bottom: 8px; vertical-align: middle; word-break: break-word; color: #333; }
.lg-table td.lg-nowrap { white-space: nowrap; text-overflow: ellipsis; }
.lg-table .lg-col-idx { position: sticky; left: 0; z-index: 4; width: 30px; padding: 0; background: #f7f7f7; color: #777; font: italic 9px Verdana, sans-serif; text-align: center; border-right: 0; }
.lg-table thead .lg-col-idx { z-index: 7; background: #f3f3f3; color: var(--lg-blue2); font: 600 12px/1 Arial; cursor: pointer; }
.lg-table .lg-col-chk { position: sticky; left: 30px; z-index: 4; width: 30px; padding: 0; text-align: center; background: #fff; }
.lg-table thead .lg-col-chk { z-index: 7; background: #f3f3f3; }
.lg-table tbody tr:nth-child(even) .lg-col-chk { background: #fafafa; }
.lg-table tbody tr:hover td { background: #e3f0fc; }
.lg-table tbody tr.lg-checked td { background: #fffde4; }
.lg-table tbody tr.lg-current td { background: #ffe48d; }
.lg-table tbody tr.lg-checked.lg-current td { background: #c6fcbe; }
.lg-table tbody tr td.lg-col-idx { background: #f7f7f7; }
.lg-sort { padding-right: 14px; position: relative; cursor: pointer; }
.lg-sort::after { content: ""; position: absolute; right: 2px; top: 5px; border: 4px solid transparent; border-top-color: #bbb; border-bottom: 0; }
.lg-sort.lg-asc::after { border-top: 0; border-bottom: 4px solid #333; top: 5px; }
.lg-sort.lg-desc::after { border-top-color: #333; }
.lg-sumrow td { position: sticky; bottom: 0; z-index: 3; height: 32px; padding-top: 2px; background: #fff; border-top: 1px solid #ddd; font-weight: 700; text-align: right; white-space: nowrap; }
.lg-sumrow td.lg-col-idx { z-index: 6; font-weight: 700; }
.lg-sumrow td.lg-col-chk { z-index: 6; }
.lg-empty { padding: 40px 0; text-align: center; color: #999; }
.lg-footer { flex: none; display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 8px; border-top: 1px solid #ddd; background: #fff; white-space: nowrap; }
.lg-footer .lg-tips { flex: 1; min-width: 0; color: #333; overflow: hidden; text-overflow: ellipsis; }
.lg-footer .lg-pager { flex: none; }
.lg-pager { display: flex; align-items: center; gap: 6px; color: #333; }
.lg-pager select { height: 22px; border: 1px solid #ccc; padding: 0 2px; }
.lg-pager .lg-pg { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; cursor: pointer; color: #666; }
.lg-pager .lg-pg:hover { background: #eee; }
.lg-pager .lg-pg.lg-off { color: #ccc; cursor: default; background: none; }
.lg-pager .lg-pgno { width: 36px; height: 20px; text-align: center; border: 1px solid #ccc; }

/* 订单单元格内的元素 */
.lg-tag { display: inline-block; max-width: 100%; margin: 0 4px 4px 0; padding: 0 3px; border: 1px solid #bfcbe3; border-radius: 1px; background: #d6dce5; color: #364665; line-height: 16px; word-break: break-all; }
.lg-tag.lg-tag-q { border-color: #f3b1b1; background: #fde2e2; color: #c40000; }
.lg-addr { color: #666; }
.lg-addr-sub { color: #999; }
.lg-sku { position: relative; display: flex; align-items: flex-start; gap: 2px; margin: 4px 0; }
.lg-sku-img { position: relative; flex: none; width: 32px; height: 32px; margin: 2px 2px 0 4px; border: 1px solid #ccc; background: #fff center/contain no-repeat; }
.lg-sku-qty { position: absolute; left: -4px; top: -6px; min-width: 14px; height: 16px; line-height: 14px; padding: 0 3px; border: 1px solid #ccc; border-radius: 8px; background: #fff; color: #047857; font-size: 12px; text-align: center; }
.lg-sku-name { color: #000; }
.lg-sku-n { color: #047857; }
.lg-sku-gift { margin-right: 2px; padding: 0 2px; border-radius: 2px; background: #ff7d00; color: #fff; font-size: 11px; }
.lg-status { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #666; }
td.lg-st-waitpay { background: #f3f3f3 !important; }
td.lg-st-waitconfirm { background: #fbe8a6 !important; }
td.lg-st-delivering { background: #c9e8fb !important; }
td.lg-st-sent { background: #d4f1d4 !important; }
td.lg-st-question { background: #a8834a !important; }
td.lg-st-question .lg-status { color: #fff; }
td.lg-st-question .lg-status b { color: #ffd84d; font-weight: 400; }
td.lg-st-cancel { background: #eee !important; }
td.lg-st-cancel .lg-status { color: #aaa; text-decoration: line-through; }
.lg-oid { display: flex; align-items: center; gap: 4px; }
.lg-oid-btn { display: none; padding: 0 3px; border: 1px solid var(--lg-blue); border-radius: 2px; color: var(--lg-blue); line-height: 14px; font-size: 11px; cursor: pointer; background: #fff; }
.lg-table tbody tr:hover .lg-oid-btn { display: inline-block; }
.lg-flag { display: inline-block; width: 12px; height: 12px; margin-right: 3px; vertical-align: -1px; }
.lg-money { text-align: right; }

/* ---------- 弹窗（JST Dialog 样式） ---------- */
.lg-mask { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.3); }
.lg-dialog { position: relative; display: flex; flex-direction: column; max-width: calc(100vw - 20px); max-height: calc(100vh - 20px); background: #fff; border-top: 1px solid var(--lg-blue2); box-shadow: 0 4px 20px rgba(0,0,0,.25); font: 12px/1.5 "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif; color: #333; text-align: left; }
.lg-dialog *, .lg-dialog *::before, .lg-dialog *::after { box-sizing: border-box; }
.lg-dialog input, .lg-dialog select, .lg-dialog textarea, .lg-dialog button { font: inherit; color: inherit; margin: 0; min-height: 0; box-shadow: none; }
.lg-dialog-head { flex: none; display: flex; align-items: center; height: 40px; padding: 0 12px; font-size: 14px; color: #333; }
.lg-dialog-close { margin-left: auto; width: 20px; height: 20px; position: relative; cursor: pointer; }
.lg-dialog-close::before, .lg-dialog-close::after { content: ""; position: absolute; left: 3px; top: 9px; width: 14px; height: 1.5px; background: #666; transform: rotate(45deg); }
.lg-dialog-close::after { transform: rotate(-45deg); }
.lg-dialog-close:hover::before, .lg-dialog-close:hover::after { background: var(--lg-blue2); }
.lg-dialog-body { flex: 1; min-height: 0; overflow: auto; padding: 0 16px 12px; }
.lg-dialog-foot { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px 16px 12px; border-top: 1px solid #eee; }
.lg-btn { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 14px; border: 1px solid #ccc; border-radius: 2px; background: #fff; color: #666; cursor: pointer; white-space: nowrap; }
.lg-btn:hover { border-color: var(--lg-blue2); color: var(--lg-blue2); }
.lg-btn.lg-primary { border-color: var(--lg-blue2); background: var(--lg-blue2); color: #fff; }
.lg-btn.lg-primary:hover { background: #10b981; color: #fff; }
.lg-btn[disabled] { opacity: .5; cursor: not-allowed; }
.lg-warn { padding: 10px 12px; background: #fef8e6; color: #f00; line-height: 20px; }
.lg-ok-tip { color: #00b034; }
.lg-radio-line { display: flex; align-items: center; gap: 4px; min-height: 22px; }
.lg-radio-line input { margin: 0 3px 0 0; accent-color: #059669; }
.lg-radio-line.lg-dim { color: #bbb; }
.lg-ta { width: 100%; min-height: 80px; padding: 4px 6px; border: 1px solid #ccc; outline: 0; resize: vertical; }
.lg-ta:focus { border-color: #10b981; }
.lg-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.lg-form { display: grid; grid-template-columns: 76px 1fr 76px 1fr 76px 1fr 76px 1fr; gap: 10px 8px; align-items: center; }
.lg-form > label { text-align: right; color: #333; white-space: nowrap; }
.lg-form .lg-in, .lg-form select { width: 100%; height: 24px; }
.lg-form select, .lg-dialog select.lg-in { border: 1px solid #ccc; padding: 0 4px; background: #fff; }
.lg-section { margin: 4px 0; border: 1px solid #eee; }
.lg-section-head { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; font-size: 13px; }
.lg-section-head b { font-weight: 600; }
.lg-section-head .lg-fold { width: 14px; height: 14px; position: relative; cursor: pointer; }
.lg-section-head .lg-fold::after { content: ""; position: absolute; left: 3px; top: 1px; width: 7px; height: 7px; border-right: 1px solid #888; border-bottom: 1px solid #888; transform: rotate(45deg); }
.lg-section.lg-closed .lg-section-head .lg-fold::after { transform: rotate(-45deg); }
.lg-section.lg-closed .lg-section-body { display: none; }
.lg-section-body { padding: 4px 16px 14px; }
.lg-mini-table { width: 100%; border-collapse: collapse; }
.lg-mini-table th { height: 32px; padding: 0 6px; background: #f5f5f5; color: #666; font-weight: 400; text-align: left; border-bottom: 1px solid #e7e7e7; }
.lg-mini-table td { padding: 6px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.lg-toast { position: fixed; left: 50%; top: 80px; z-index: 2000; transform: translateX(-50%); padding: 8px 16px; border-radius: 3px; background: rgba(0,0,0,.75); color: #fff; font-size: 13px; pointer-events: none; }
.lg-toast.lg-err { background: #d93026; }
.lg-confirm-text { padding: 18px 8px; font-size: 13px; line-height: 22px; }
.lg-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-pill { padding: 2px 8px; border: 1px solid #ddd; border-radius: 2px; cursor: pointer; background: #fff; }
.lg-pill.lg-on { border-color: var(--lg-blue2); background: var(--lg-blue2); color: #fff; }
.lg-colset { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 12px; }
.lg-kv { display: grid; grid-template-columns: 86px 1fr; gap: 12px 6px; align-items: center; }
.lg-kv > span:nth-child(odd) { color: #666; }
/* React 页面容器：#app 是 flex 容器，需允许收缩，否则宽表格会把页面撑宽 */
.react-page-host { flex: 1 1 auto; min-width: 0; width: 100%; align-self: stretch; }
.lg-mini-table.lg-compact th { height: 26px; } .lg-mini-table.lg-compact td { padding: 1px 4px; }

/* ---------- 设置 / 规则页 ---------- */
.lg-tabbar { flex: none; display: flex; align-items: flex-end; height: 38px; padding: 0 10px; border-bottom: 1px solid #e5e5e5; background: #fff; }
.lg-tabbar-tab { position: relative; height: 37px; line-height: 38px; padding: 0 14px; color: #666; cursor: pointer; white-space: nowrap; }
.lg-tabbar-tab + .lg-tabbar-tab::before { content: ""; position: absolute; left: 0; top: 12px; height: 14px; border-left: 1px solid #ccc; }
.lg-tabbar-tab:hover { color: var(--lg-blue2); }
.lg-tabbar-tab.lg-on { color: var(--lg-blue2); border-bottom: 2px solid var(--lg-blue2); }
.lg-set-page { background: #fff; min-height: 100%; }
.lg-set-item { display: flex; align-items: center; gap: 20px; padding: 14px 18px; border-bottom: 1px solid #e5e5e5; }
.lg-set-title { color: #333; margin-bottom: 6px; }
.lg-set-desc { color: #999; line-height: 18px; }
.lg-switch { position: relative; display: inline-block; width: 24px; height: 14px; border-radius: 7px; background: #999; cursor: pointer; vertical-align: middle; transition: background .15s; }
.lg-switch span { position: absolute; left: 1px; top: 1px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
.lg-switch.lg-on { background: var(--lg-blue2); }
.lg-switch.lg-on span { left: 11px; }
.lg-rule-filter { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 18px; color: #666; background: #fff; }
.lg-rule-filter .lg-in, .lg-rule-filter select { height: 24px; }
.lg-rule-cards { flex: none; display: flex; gap: 10px; padding: 8px 22px; background: #f3f3f3; margin: 0 6px; }
.lg-rule-card { display: flex; flex-direction: column; width: 220px; padding: 10px 16px 8px 46px; background: #fff; border: 1px solid #e5e5e5; cursor: pointer; position: relative; }
.lg-rule-card::before { content: "⚙"; position: absolute; left: 16px; top: 12px; color: #059669; font-size: 16px; }
.lg-rule-card b { font-size: 13px; color: #333; }
.lg-rule-card span { color: #999; }
.lg-rule-card:hover { border-color: #059669; }
.lg-rule-block { margin-bottom: 6px; background: #fff; border: 1px solid #eee; }
.lg-rule-block-head { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; font-size: 13px; color: #333; cursor: pointer; }
.lg-fold-arrow { width: 8px; height: 8px; margin: 0 4px 3px; border-right: 1px solid #888; border-bottom: 1px solid #888; transform: rotate(45deg); transition: transform .15s; }
.lg-rule-block-body { padding: 6px 12px 12px; }
.lg-rule-row { display: flex; align-items: flex-start; min-height: 28px; margin: 3px 0; }
.lg-rule-row > label { width: 126px; flex: none; padding-top: 4px; color: #666; }
.lg-rule-row > label.lg-star { text-decoration: underline; text-underline-offset: 3px; }
.lg-rule-row > label.lg-star::after { content: "*"; color: #f00; }
.lg-rule-field { flex: 1; min-width: 0; }
.lg-rule-field .lg-in { height: 24px; }
/* ---------- 通用列表页：下方明细 / 表单行 ---------- */
.lg-detail { flex: 0 0 34%; min-height: 160px; display: flex; flex-direction: column; border-top: 4px solid #e9edf2; }
.lg-detail-head { flex: none; display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; background: #f5f7fa; border-bottom: 1px solid #ddd; }
.lg-detail-tab { display: inline-block; height: 29px; line-height: 29px; padding: 0 14px; background: #fff; border: 1px solid #ddd; border-bottom: 0; color: #333; font-weight: 700; }
.lg-form-row { display: flex; align-items: center; min-height: 30px; margin-bottom: 6px; }
.lg-form-label { flex: none; text-align: right; padding-right: 8px; color: #333; white-space: nowrap; }
.lg-form-ctl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lg-form-ctl .lg-in, .lg-form-ctl select { height: 24px; }
.lg-form-ctl select { border: 1px solid #ccc; background: #fff; padding: 0 4px; }
.lg-req { color: #f00; font-style: normal; margin-right: 2px; }
.lg-cols2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.lg-cols3 { display: grid; grid-template-columns: 1fr 1fr 1fr; column-gap: 12px; }
.lg-tag { display: inline-block; padding: 0 5px; margin-right: 3px; border: 1px solid #ffb980; color: #f06000; background: #fff7ef; border-radius: 2px; font-size: 12px; line-height: 16px; }
.lg-tag.lg-blue { border-color: #8cc8ff; color: #1677ff; background: #f0f7ff; }
.lg-tag.lg-gray { border-color: #ccc; color: #777; background: #f5f5f5; }
.lg-st-ok { color: #12a05c; } .lg-st-wait { color: #f08a00; } .lg-st-void { color: #999; text-decoration: line-through; } .lg-st-err { color: #e5484d; }
.lg-subtabs { display: flex; gap: 0; border-bottom: 1px solid #ddd; margin-bottom: 8px; }
.lg-subtabs span { padding: 6px 14px; cursor: pointer; border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; }
.lg-subtabs span.lg-on { background: #fff; border-color: #ddd; color: var(--lg-blue); font-weight: 700; }
.lg-mini-table { width: 100%; border-collapse: collapse; }
.lg-mini-table th, .lg-mini-table td { border: 1px solid #e3e3e3; padding: 3px 5px; text-align: left; }
.lg-mini-table th { background: #f3f5f8; font-weight: 400; color: #555; }
.lg-mini-table input.lg-in { width: 100%; }
/* ---------- 基础设置（SettingBuilder） ---------- */
.lg-builder { background: #fff; }
.lg-builder-left { flex: none; width: 200px; height: 100%; display: flex; flex-direction: column; border-right: 1px solid #e5e5e5; background: #fff; }
.lg-builder-cats { flex: 1; min-height: 0; overflow-y: auto; padding-top: 6px; }
.lg-builder-cat { height: 36px; line-height: 36px; padding-left: 20px; color: #666; cursor: pointer; }
.lg-builder-cat:hover { background: #f2f8ff; }
.lg-builder-cat.lg-on { background: #ecfdf5; color: #059669; border-right: 2px solid #059669; }
.lg-builder-search { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px; border-top: 1px solid #e5e5e5; }
.lg-builder-search .lg-in { width: 110px; }
.lg-builder-tabs { flex: none; display: flex; align-items: center; height: 40px; padding-left: 16px; border-bottom: 1px solid #e5e5e5; }
.lg-builder-tabs > span { height: 40px; line-height: 40px; padding: 0 14px; cursor: pointer; color: #333; }
.lg-builder-tabs > span.lg-on { color: #059669; border-bottom: 2px solid #059669; }
.lg-builder-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 40px; background: #f5f6f8; }
.lg-builder-note { margin: 4px 0 8px; color: #888; }
.lg-builder-sec { max-width: 760px; margin-bottom: 4px; }
.lg-builder-sec-title { height: 32px; line-height: 32px; padding-left: 10px; font-weight: 700; color: #333; }
.lg-builder-item { display: flex; align-items: flex-start; gap: 16px; min-height: 50px; padding: 12px 16px; background: #fff; border: 1px solid #ebebeb; border-bottom: 0; }
.lg-builder-item:last-child { border-bottom: 1px solid #ebebeb; }
.lg-builder-item.lg-hit { background: #fffbe0; }
.lg-builder-name { flex: 1; min-width: 0; color: #333; line-height: 20px; }
.lg-builder-remark { color: #999; font-size: 12px; line-height: 18px; margin-top: 2px; white-space: pre-line; }
.lg-builder-radio { display: block; margin-top: 4px; color: #555; }
.lg-builder-radio input { margin-right: 6px; vertical-align: -2px; }
.lg-builder-oper { flex: none; min-width: 60px; text-align: right; padding-top: 1px; }
.lg-builder-oper select.lg-in { height: 26px; border: 1px solid #ccc; }
/* ---------- 顶部查询 ---------- */
.lg-topfilter { flex: none; padding: 4px 8px 6px; border-bottom: 1px solid #e5e5e5; background: #fff; }
.lg-chiprow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-height: 28px; }
.lg-chiprow-title { width: 64px; font-weight: 700; color: #333; }
.lg-chip { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border: 1px solid #d9d9d9; border-radius: 2px; background: #fff; color: #333; cursor: pointer; white-space: nowrap; }
.lg-chip b { color: #f00; font-weight: 400; }
.lg-chip:hover { border-color: #059669; color: #059669; }
.lg-chip.lg-on { background: #ecfdf5; border-color: #059669; color: #059669; }
.lg-topgrid { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.lg-topgrid > .lg-in, .lg-topgrid > select.lg-in { width: 150px; height: 26px; }
.lg-topgrid select.lg-in { border: 1px solid #ccc; background: #fff; }
.lg-topdate { display: inline-flex; align-items: center; gap: 2px; }
.lg-topdate .lg-in { height: 26px; }
.lg-topdate select.lg-in { width: 90px; }
.lg-topdate input[type=date].lg-in { width: 130px; }
.lg-tool.lg-blue-btn { background: #059669; color: #fff !important; border-radius: 2px; padding: 0 10px; margin-right: 4px; }
.lg-tool.lg-blue-btn .lg-caret { color: #fff; }
.lg-tabstrip { flex: none; display: flex; align-items: center; height: 34px; padding-left: 8px; border-bottom: 1px solid #e5e5e5; background: #fafafa; }
.lg-tabstrip span { padding: 0 14px; height: 34px; line-height: 34px; cursor: pointer; color: #333; }
.lg-tabstrip span.lg-on { color: #059669; background: #fff; border: 1px solid #e5e5e5; border-bottom-color: #fff; margin-bottom: -1px; font-weight: 700; }
/* ---------- 报表 / 看板 ---------- */
.lg-charts { flex: none; display: flex; gap: 10px; padding: 8px; background: #f2f4f7; border-bottom: 1px solid #e5e5e5; overflow-x: auto; }
.lg-chart { flex: 1 1 0; min-width: 320px; background: #fff; border: 1px solid #e6e8eb; border-radius: 4px; padding: 8px 10px; }
.lg-chart-title { font-weight: 700; color: #333; margin-bottom: 6px; }
.lg-barrow { display: flex; align-items: center; gap: 6px; height: 20px; font-size: 12px; }
.lg-barrow-label { width: 120px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333; }
.lg-barrow-track { flex: 1; height: 10px; background: #f3f4f6; border-radius: 2px; }
.lg-barrow-bar { display: block; height: 10px; border-radius: 0 4px 4px 0; }
.lg-barrow-val { width: 140px; flex: none; text-align: right; color: #333; white-space: nowrap; }
.lg-barrow-val em { font-style: normal; color: #888; margin-left: 4px; }
.lg-chart-tip { position: absolute; top: 0; padding: 4px 8px; background: #fff; border: 1px solid #ddd; box-shadow: 0 2px 6px rgba(0,0,0,.12); font-size: 12px; pointer-events: none; white-space: nowrap; }
.lg-kpis { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; }
.lg-kpi { flex: 1 1 160px; background: #fff; border: 1px solid #e6e8eb; border-radius: 4px; padding: 10px 14px; }
.lg-kpi-label { color: #666; font-size: 12px; }
.lg-kpi-value { font-size: 22px; font-weight: 700; color: #111; margin-top: 4px; }
.lg-kpi-sub { color: #888; font-size: 12px; margin-top: 2px; }
.lg-dash { background: #f2f4f7; }
.lg-dash-head { display: flex; align-items: center; padding: 10px 12px 0; font-size: 15px; }
.lg-dash .lg-charts { border: 0; background: transparent; }
.lg-dash-dark { background: #0f1b2d; color: #e8edf5; --lg-chart-grid: #2a3d5c; }
.lg-dash-dark .lg-kpi, .lg-dash-dark .lg-chart { background: #16253b; border-color: #23395a; }
.lg-dash-dark .lg-kpi-label, .lg-dash-dark .lg-kpi-sub, .lg-dash-dark .lg-gray { color: #9fb0c8; }
.lg-dash-dark .lg-kpi-value, .lg-dash-dark .lg-chart-title, .lg-dash-dark .lg-barrow-label, .lg-dash-dark .lg-barrow-val { color: #e8edf5; }
.lg-dash-dark .lg-barrow-track { background: #22344f; }
.lg-dash-dark svg text { fill: #9fb0c8; }
/* 基础设置「订单列表固定行高」 */
.lg-fixed-row .lg-table tbody td { height: 58px; overflow: hidden; vertical-align: top; }
.lg-fixed-row .lg-sku:nth-child(n+3) { display: none; }
.lg-builder-effect { color: #1a7f37; font-size: 12px; line-height: 18px; margin-top: 2px; }
.lg-tag.lg-orange { color: #c2410c; border-color: #fdba74; background: #fff7ed; }
.lg-tag.lg-gray-tag { color: #777; border-color: #ddd; background: #f6f6f6; }
.lg-tag.lg-green-tag { color: #1a7f37; border-color: #9fd8ae; background: #effaf2; }
