/*
 * LinsGeek ERP —— 订单列表（电脑版）新界面（开关在 51-order-list.js，body.lg-ol）
 * ------------------------------------------------------------------
 * 原来：一张带竖线的灰白表格。每单上面一条灰色横条挤着订单号、平台单号、金额、物流；
 *       数量是 20 号大字、状态是一行彩色字、操作是两个文字链接；
 *       列表区高度是算死的，底部批量操作栏一换行就被挤出屏幕，页面和列表各有一条滚动条。
 * 现在：
 *   1. 版式：筛选 → 工具条 → 列表 → 批量操作栏 竖向排满一屏，只有列表自己滚动，底栏永远看得见。
 *   2. 每单一张卡片：卡片之间留空，悬停有描边，勾选后整张卡片变绿边 —— 一眼看出选了哪些。
 *   3. 卡片头：订单号加粗，金额做成绿色标签，店铺和平台图标靠右。
 *   4. 内容：去掉竖线；商品名加粗、数量做成标签（多件是红色）；状态做成带底色的标签；倒计时变小。
 *   5. 操作：主操作（开票 / 安排发货……）做成实心按钮，"更多"做成描边按钮 —— 更好点、更好找。
 * 纯样式：每个元素都是原来的，点击、勾选、弹窗、虚拟滚动都走原逻辑。
 * 列宽仍由原组件按表头分配，所以表头和内容是对齐的（卡片不做左右缩进，就是为了对齐）。
 */

/* ============ 1. 版式：竖向排满一屏 ============ */
/* 页面根（筛选、工具条、列表、底栏的共同父级）。50px 页头 + 上下各 8px 留白 */
body.lg-ol #app div:has(> div.bg-white.p-main > div > .my-scroll-wrapper) {
  display: flex; flex-direction: column;
  /* !important：31-autofit 在窄屏/超宽时会给这层打 data-lg-autoh（height:auto !important），这里必须压过它 */
  height: calc(100vh - 66px) !important; min-height: 420px !important; max-height: none !important;
}
body.lg-ol #app div.mt-\[50px\]:has(> div > div.bg-white.p-main > div > .my-scroll-wrapper) { min-height: 0 !important; }
body.lg-ol #app div:has(> div.bg-white.p-main > div > .my-scroll-wrapper) > :not(.bg-white) { flex: none; }
/* 筛选区原来是吸顶的；现在整页不滚动了，按普通块排 */
body.lg-ol #app div:has(> div.bg-white.p-main > div > .my-scroll-wrapper) > .\!sticky { position: relative !important; top: 0 !important; }
/* 列表块：占满剩余高度 */
body.lg-ol #app div.bg-white.p-main:has(> div > .my-scroll-wrapper) {
  flex: 1 1 0 !important; min-height: 0 !important; height: auto !important; display: flex; flex-direction: column;
  background: transparent !important; padding: 0 !important;
}
/* 右侧悬浮按钮组（套餐、帮助、客服、下载）会压住操作列的按钮。
 * 列表卡片本身铺满，右边和上面的标签栏对齐；只把操作列里的按钮往左让出悬浮按钮的位置。 */
body.lg-ol:has(.layout-right-quick-actions):not(.lg-compact-nav) #app div.my_table .custom_td:last-child {
  padding-right: 56px !important; min-width: 150px !important;
}
body.lg-ol #app div.bg-white.p-main > div:has(> .my-scroll-wrapper) {
  flex: 1 1 0 !important; min-height: 0 !important; display: flex; flex-direction: column;
  border: 0 !important; border-radius: 0 !important; overflow: visible !important;
}
body.lg-ol #app .my-scroll-wrapper { flex: 1 1 0 !important; min-height: 0 !important; height: auto !important; position: relative; }
/* 滚动层铺满上面这一格（用绝对定位而不是 100%：父级是弹性高度，百分比高度算不准，最后一单会被底栏挡住） */
body.lg-ol #app .my-scroll-wrapper > .el-scrollbar__wrap { position: absolute; inset: 0; height: auto !important; }
/* 底部批量操作栏：去掉上边距的浪费，内容多时允许换行但不再被挤出屏幕 */
body.lg-ol #app div:has(> div.bg-white.p-main > div > .my-scroll-wrapper) > div:last-child > .border-main {
  margin-top: 8px !important; height: auto !important; min-height: 52px; padding-top: 6px; padding-bottom: 6px;
  border: 1px solid #e3e8ee !important; border-radius: 12px !important;
  box-shadow: 0 -4px 16px -10px rgba(15, 35, 52, .18) !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
/* 勾了订单之后，底栏亮起来，提示"可以批量操作了" */
body.lg-ol:has(.custom_tr input.inp-cbx:checked) #app div:has(> div.bg-white.p-main > div > .my-scroll-wrapper) > div:last-child > .border-main {
  border-color: #0d7b6d !important; box-shadow: 0 0 0 3px rgba(13, 123, 109, .12) !important;
}

/* ============ 1b. 底部批量操作栏：统一成一套按钮 ============ */
/* 原来：全选框上下错位；"导出""排序"是两个高矮不一的方框；批量按钮全是同一种圆角色块，
 *       没勾订单时只是颜色变淡（看不出是"不能点"），带下拉的两个又是另一种浅绿。
 * 现在：所有控件 32px 高、8px 圆角；第一个批量按钮（这一页的主操作）实心，其余描边；
 *       没勾订单时统一变成灰色的"不可用"样子；右边的分页也收成同一套。
 * 手机版订单页（body.lg-dense，见 40-order-cards）用同一套外观；手机上的排布（两行、可左右滑）在 40-order-cards.css 第 9 段。 */
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover { padding-left: 12px !important; padding-right: 12px !important; gap: 8px 12px; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover > div:first-child { gap: 6px 0; min-width: 0; }
/* 全选 + 已选数量 */
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .relative.top-1 { top: 0 !important; margin-right: 4px !important; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .my-checkbox-wrapper { margin: 0 6px 0 0 !important; display: flex; align-items: center; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .my-checkbox-wrapper .cbx { display: flex; align-items: center; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .cbx-label {
  font-weight: 600; color: #5b6676; white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: color .15s ease;
}
body:is(.lg-ol, .lg-dense):has(.custom_tr input.inp-cbx:checked) #app .border-main.shadow-table_hover .cbx-label { color: #0d7b6d; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .el-divider--vertical { height: 20px !important; margin: 0 10px !important; border-color: #e8edf1 !important; }
/* 导出、排序：次要工具按钮 */
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .group.cursor-pointer.border {
  height: 32px; padding: 0 10px !important; border-radius: 8px !important; border-color: #dfe5ea !important;
  background: #fff; white-space: nowrap; margin-right: 6px !important;
  transition: background-color .12s ease, border-color .12s ease;
}
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .group.cursor-pointer.border:last-of-type { margin-right: 0 !important; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .group.cursor-pointer.border:hover { background: #eef7f5; border-color: #0d7b6d !important; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .group.cursor-pointer.border > i.iconfont { font-size: 16px !important; margin-right: 5px !important; color: #5b6676; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .group.cursor-pointer.border:hover > i.iconfont { color: #0d7b6d; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .group.cursor-pointer.border > span { font-size: 13px; color: #3d4856; }

/* 批量按钮 */
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu {
  height: auto !important; min-height: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; background: transparent !important;
}
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li {
  height: 32px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; line-height: 1 !important;
}
/* 普通按钮（li.el-menu-item 里的 el-button）和下拉按钮（li.el-sub-menu 的标题条）用同一套外观 */
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li.el-menu-item > .el-button,
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li.el-sub-menu > .el-sub-menu__title {
  height: 32px !important; min-height: 0; padding: 0 12px !important; margin: 0 !important;
  display: inline-flex; align-items: center; gap: 3px;
  border: 1px solid #b9ddd6 !important; border-radius: 8px !important;
  background: #fff !important; color: #0d7b6d !important;
  font-size: 13px; font-weight: 600; line-height: 1 !important; white-space: nowrap; cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li.el-menu-item > .el-button:hover,
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li.el-sub-menu > .el-sub-menu__title:hover { background: #eef7f5 !important; border-color: #0d7b6d !important; }
/* 按钮里的文字、下拉按钮里嵌的那个透明按钮：颜色跟着外层走 */
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li .el-button span { color: inherit !important; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li.el-sub-menu .el-button {
  height: auto !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important;
  color: inherit !important; font: inherit; cursor: inherit !important;
}
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li.el-sub-menu .el-sub-menu__icon-arrow {
  position: static !important; margin: 0 !important; font-size: 12px; color: inherit !important; width: auto;
}
/* 第一个 = 这一页的主操作：实心 */
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li.el-menu-item:first-child > .el-button {
  background: #0d7b6d !important; border-color: #0d7b6d !important; color: #fff !important;
}
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li.el-menu-item:first-child > .el-button:hover { background: #0a6659 !important; border-color: #0a6659 !important; }
/* 没勾订单：统一的"不可用" */
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li.el-menu-item > .el-button.is-disabled,
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li.el-menu-item:first-child > .el-button.is-disabled,
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li.el-sub-menu.is-disabled > .el-sub-menu__title {
  background: #f1f4f6 !important; border-color: transparent !important; color: #a3adb9 !important; cursor: not-allowed;
}
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .operation-menu > li.el-sub-menu.is-disabled { opacity: 1 !important; }

/* 右边：总数 + 每页条数 + 翻页 */
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .pagination { color: #5b6676 !important; font-size: 13px !important; white-space: nowrap; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .pagination .el-select { width: 104px !important; margin: 0 10px !important; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .pagination .el-select__wrapper { min-height: 32px; border-radius: 8px; font-size: 13px; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .pagination .el-button {
  border-radius: 8px !important; border: 1px solid #dfe5ea !important; background: #fff !important; color: #3d4856; margin: 0 !important;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .pagination .el-button:not(.is-disabled):hover { background: #eef7f5 !important; border-color: #0d7b6d !important; color: #0d7b6d; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .pagination .el-button.is-disabled { background: #f6f8f9 !important; border-color: #eef1f4 !important; color: #c3cbd3; }
body:is(.lg-ol, .lg-dense) #app .border-main.shadow-table_hover .pagination .cursor-pointer.px-main { font-variant-numeric: tabular-nums; font-weight: 600; color: #3d4856; }

/* ============ 2. 表头：一条浅色的列名 ============ */
body.lg-ol #app div:has(> table.my_table) {
  background: #f1f4f6 !important; border: 0 !important; border-radius: 10px; margin-bottom: 8px;
}
body.lg-ol #app table.my_table td {
  border: 0 !important; padding-top: 7px !important; padding-bottom: 7px !important;
  font-size: 12px; font-weight: 600; color: #5b6676; letter-spacing: .02em;
}

/* ============ 3. 每单一张卡片 ============ */
/* 卡片间距放在虚拟滚动"量高度"的那一层（放在卡片外边距上不会被计入，卡片会互相压住） */
body.lg-ol #app .vue-recycle-scroller__item-view > div { padding-bottom: 10px !important; }
body.lg-ol #app div.my_table {
  background: #fff; border: 1px solid #e6eaee; border-radius: 12px; overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
body.lg-ol #app div.my_table:hover { border-color: #a9d6cd; box-shadow: 0 8px 20px -14px rgba(13, 123, 109, .55); }
/* 勾选：绿边 + 左侧色条 + 淡绿底 */
body.lg-ol #app div.my_table:has(.custom_tr input.inp-cbx:checked) {
  border-color: #0d7b6d; background: #f5fbf9; box-shadow: inset 3px 0 0 #0d7b6d;
}
/* 原来的"悬停整行变灰"交给卡片描边，不再变底色 */
body.lg-ol #app div.my_table > div { background: transparent !important; }

/* ---- 卡片头 ---- */
body.lg-ol #app div.my_table > div:first-child:not(.custom_tr) {
  padding: 8px 12px !important; border-bottom: 1px solid #eef1f4 !important; font-size: 13px; color: #5b6676;
}
body.lg-ol #app div.my_table > div:first-child .flex.flex-wrap { gap: 4px 14px; }
body.lg-ol #app div.my_table > div:first-child .list-custom-row-item-mr { margin-right: 0 !important; display: inline-flex; align-items: center; }
/* 订单号：最重要，加粗 */
body.lg-ol #app div.my_table > div:first-child .list-custom-row-item-mr:first-child { font-size: 14px; font-weight: 700; color: #111827; }
body.lg-ol #app div.my_table > div:first-child .list-custom-row-item-mr:first-child > span:hover { color: #0d7b6d; }
/* 第三项是订单金额：绿色标签 */
body.lg-ol #app div.my_table > div:first-child .list-custom-row-item-mr:nth-child(3) {
  padding: 1px 9px; border-radius: 999px; background: #e8f5f2; color: #0d7b6d; font-weight: 600;
}
/* 复制图标：平时淡，悬停变绿 */
body.lg-ol #app div.my_table > div:first-child .icon-fuzhi { margin-left: 6px !important; color: #a3adb9; font-size: 13px; transition: color .12s ease; }
body.lg-ol #app div.my_table > div:first-child .icon-fuzhi:hover { color: #0d7b6d; }
/* 右侧：店铺名 + 平台图标 */
body.lg-ol #app div.my_table > div:first-child .flex.justify-center.items-center > span { font-weight: 600; color: #1f2a37; }

/* ---- 卡片内容 ---- */
body.lg-ol #app div.my_table > .custom_tr { border-bottom: 0 !important; }
body.lg-ol #app div.my_table .custom_td {
  border-right: 0 !important; padding: 12px 10px !important;
  font-size: 13px; line-height: 1.55; color: #3d4856; word-break: normal; overflow-wrap: anywhere;
}
body.lg-ol #app div.my_table > .custom_tr > div:first-child { padding-top: 14px !important; }

/* 商品 */
body.lg-ol #app div.my_table .custom_td .border-b.pb-main { border-bottom: 1px dashed #e8edf1 !important; padding-bottom: 10px !important; margin-bottom: 10px !important; }
body.lg-ol #app div.my_table .custom_td .el-image.border { border-color: #e8edf1 !important; border-radius: 8px; overflow: hidden; background: #f7f9fa; }
body.lg-ol #app div.my_table .custom_td .flex-1.ml-\[8px\] { margin-left: 10px !important; min-width: 0; }
body.lg-ol #app div.my_table .custom_td .flex-1.ml-\[8px\] > .line-clamp-1:first-child { font-size: 14px; font-weight: 600; color: #111827; }
/* 数量：20 号大字 → 标签。原样式里"多于 1 件"是红字，这里保留红色含义 */
body.lg-ol #app div.my_table .custom_td .w-\[100px\].text-end { width: auto !important; flex: none; margin: 0 0 0 8px !important; }
body.lg-ol #app div.my_table .custom_td .w-\[100px\].text-end > span {
  display: inline-block; min-width: 30px; padding: 0 8px; border-radius: 999px;
  font-size: 13px !important; line-height: 20px; font-weight: 700; text-align: center;
  background: #f1f4f6; color: #3d4856;
}
body.lg-ol #app div.my_table .custom_td .w-\[100px\].text-end > span.text-\[\#FB5959\] { background: #fdecec; color: #d9443f !important; }

/* 商品多的订单：默认只显示前 2 个，其余收起（按钮和状态由 51-order-list.js 维护） */
body:is(.lg-ol, .lg-dense) #app div.my_table[data-lg-sku="closed"] > .custom_tr > .custom_td > div.w-full > div:nth-child(n+3) { display: none !important; }
/* 收起时第 2 个商品下面不要分隔线（下面紧跟着的是按钮） */
body:is(.lg-ol, .lg-dense) #app div.my_table[data-lg-sku="closed"] > .custom_tr > .custom_td > div.w-full > div:nth-child(2) {
  border-bottom: 0 !important; padding-bottom: 0 !important; margin-bottom: 0 !important;
}
body:is(.lg-ol, .lg-dense) #app div.my_table .lg-ol-more {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; margin-top: 10px; padding: 5px 10px;
  border: 1px dashed #cfd8df; border-radius: 8px; background: #fafbfc;
  color: #0d7b6d; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}
body:is(.lg-ol, .lg-dense) #app div.my_table .lg-ol-more:hover { background: #eef7f5; border-color: #0d7b6d; }
body:is(.lg-ol, .lg-dense) #app div.my_table .lg-ol-more svg {
  width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .18s ease;
}
body:is(.lg-ol, .lg-dense) #app div.my_table .lg-ol-more[aria-expanded="true"] svg { transform: rotate(180deg); }
/* 展开出来的商品：滑入 */
body:is(.lg-ol, .lg-dense) #app div.my_table[data-lg-sku="open"] > .custom_tr > .custom_td > div.w-full > div:nth-child(n+3) { animation: lg-ol-sku-in .2s cubic-bezier(.2, .85, .3, 1); }
@keyframes lg-ol-sku-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  body:is(.lg-ol, .lg-dense) #app div.my_table[data-lg-sku="open"] > .custom_tr > .custom_td > div.w-full > div:nth-child(n+3) { animation: none; }
}

/* 时间列的倒计时：固定 150px 的大色块 → 贴合文字的小标签 */
body.lg-ol #app div.my_table .custom_td .rounded-full.border.w-\[150px\] {
  width: auto !important; display: inline-flex !important; padding: 1px 10px 1px 8px !important; margin-top: 4px;
}
body.lg-ol #app div.my_table .custom_td .rounded-full.border.w-\[150px\] .iconfont { margin-right: 5px !important; font-size: 13px; }
body.lg-ol #app div.my_table .custom_td .rounded-full.border.w-\[150px\] > div { font-size: 12px; font-weight: 600; }
body.lg-ol #app div.my_table .custom_td .py-\[4px\] { padding-top: 1px !important; padding-bottom: 1px !important; }

/* 状态：一行彩色字 → 带底色的标签（底色跟着原来的文字颜色走） */
body.lg-ol #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> i.iconfont + span) {
  display: inline-flex !important; padding: 2px 10px 2px 7px; border-radius: 999px; background: #f1f4f6;
  white-space: nowrap; max-width: 100%;
}
body.lg-ol #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> i.iconfont + span) > i.iconfont { font-size: 14px !important; }
body.lg-ol #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> i.iconfont + span) > span { font-size: 12px; font-weight: 600; }
body.lg-ol #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-\[\#E6A23C\]) { background: #fdf3e1; }
body.lg-ol #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-\[\#67C23A\]) { background: #e9f6e2; }
body.lg-ol #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-\[\#F56C6C\]),
body.lg-ol #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-\[\#FB5959\]) { background: #fdecec; }
body.lg-ol #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-main) { background: #e8f5f2; }

/* ---- 操作列：文字链接 → 按钮 ---- */
body.lg-ol #app div.my_table .custom_td:last-child { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 104px !important; }
body.lg-ol #app div.my_table .custom_td:last-child > div > .cursor-pointer {
  margin: 0 !important; padding: 5px 10px; border-radius: 8px; text-align: center; white-space: nowrap;
  font-size: 13px; font-weight: 600; line-height: 1.4;
  border: 1px solid #cfe5e0; background: #fff; color: #0d7b6d;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
body.lg-ol #app div.my_table .custom_td:last-child > div > .cursor-pointer:hover { background: #eef7f5; border-color: #0d7b6d; }
/* 第一个是这一单当前该做的事：实心 */
body.lg-ol #app div.my_table .custom_td:last-child > div:first-child > .cursor-pointer {
  background: #0d7b6d; border-color: #0d7b6d; color: #fff !important;
}
body.lg-ol #app div.my_table .custom_td:last-child > div:first-child > .cursor-pointer:hover { background: #0a6659; border-color: #0a6659; }
body.lg-ol #app div.my_table .custom_td:last-child > div > .cursor-pointer:active { transform: translateY(1px); }
/* "更多 ▾" */
body.lg-ol #app div.my_table .custom_td:last-child .el-menu.invoice_more { height: auto !important; width: 100%; border: 0 !important; display: block; }
body.lg-ol #app div.my_table .custom_td:last-child .el-menu.invoice_more > .el-sub-menu { margin: 0 !important; width: 100%; height: auto !important; float: none; }
body.lg-ol #app div.my_table .custom_td:last-child .el-menu.invoice_more .el-sub-menu__title {
  height: auto !important; line-height: 1.4 !important; padding: 5px 8px !important;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid #dfe5ea !important; border-radius: 8px; background: #fff !important;
  transition: background-color .12s ease, border-color .12s ease;
}
body.lg-ol #app div.my_table .custom_td:last-child .el-menu.invoice_more .el-sub-menu__title:hover { background: #f3f6f7 !important; border-color: #b9c3cc !important; }
body.lg-ol #app div.my_table .custom_td:last-child .el-menu.invoice_more .el-sub-menu__title > span { margin: 0 !important; font-size: 13px; color: #3d4856 !important; }
body.lg-ol #app div.my_table .custom_td:last-child .el-menu.invoice_more .el-sub-menu__icon-arrow {
  position: static !important; margin: 0 !important; font-size: 12px; color: #7a8594;
}

/* ============ 4. 商品列表（/product/product-sku，body.lg-ol.lg-ol-sku） ============ */
/* 和订单列表是同一个列表组件，上面 1～3 段原样生效；这里只放商品列表特有的调整。 */
/* 列比订单多（10 列）：31-autofit 会给它一个最小宽度、让列表左右滑，结果最右边的操作按钮被挤出屏幕。
 * 这里取消最小宽度，让各列按比例收窄，一屏放完（做法同 40-order-cards 第 13～16 行）。 */
body.lg-ol-sku #app [data-lg-xscroll]:has(.my-scroll-wrapper) [data-lg-table],
body.lg-ol-sku #app [data-lg-xscroll]:has(.my-scroll-wrapper) > [data-lg-table] { min-width: 0 !important; }
body.lg-ol-sku #app [data-lg-xscroll]:has(.my-scroll-wrapper) { overflow-x: visible !important; max-width: none !important; }
/* 列窄了：格子的左右留白收一点 */
body.lg-ol-sku #app div.my_table .custom_td { padding-left: 8px !important; padding-right: 8px !important; }
body.lg-ol-sku #app table.my_table td { padding-left: 8px !important; padding-right: 8px !important; }
/* 卡片头：商品编号、SKU、标签之间留出间距（订单那边是可换行的一排，这里不是同一个容器） */
body.lg-ol-sku #app div.my_table > div:first-child > .flex.items-center { gap: 4px 14px; flex-wrap: wrap; }
/* 第三项在订单里是金额标签；商品这里第三项是"多规格"之类的原生标签，保持它自己的样子 */
body.lg-ol-sku #app div.my_table > div:first-child .el-tag.list-custom-row-item-mr {
  padding: 0 9px; border-radius: 999px; border: 0; font-weight: 600; height: 22px;
}
/* 商品名：加粗（订单里商品名的选择器在这里对不上） */
body.lg-ol-sku #app div.my_table .custom_td .flex-1.ml-main { margin-left: 10px !important; min-width: 0; }
body.lg-ol-sku #app div.my_table .custom_td .flex-1.ml-main > .line-clamp-2 { font-size: 14px; font-weight: 600; color: #111827; }
body.lg-ol-sku #app div.my_table .custom_td .flex-1.ml-main > .line-clamp-2:hover { color: #0d7b6d; }
/* 库存数字（总数 / 可用 / 占用）：加粗、等宽数字，方便上下对比 */
body.lg-ol-sku #app div.my_table .custom_td > div > span.text-main { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* 关联平台的标签：靠左排，去掉多余的右边距 */
body.lg-ol-sku #app div.my_table .custom_td .flex.justify-center.items-center.flex-wrap { justify-content: flex-start; gap: 4px; }
body.lg-ol-sku #app div.my_table .custom_td .flex.justify-center.items-center.flex-wrap > .el-tag { margin: 0 !important; padding: 0 7px; max-width: 100%; border-radius: 999px; border: 0; font-weight: 600; }
body.lg-ol-sku #app div.my_table .custom_td .flex.justify-center.items-center.flex-wrap > .el-tag .el-tag__content { overflow: hidden; text-overflow: ellipsis; }
/* 时间列：两行时间之间不用留那么大 */
body.lg-ol-sku #app div.my_table .custom_td .mb-main.cursor-pointer { margin-bottom: 2px !important; }
/* 状态标签：这些页面的列比订单窄，文字放不下时允许换行（订单那边是不换行的胶囊） */
body.lg-ol-sku #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> i.iconfont + span) { white-space: normal; border-radius: 10px; align-items: flex-start !important; }
/* 卡片头右侧（创建人、仓库、店铺……）：几项之间留出间距 */
body.lg-ol-sku #app div.my_table > div:first-child .flex.justify-center.items-center { gap: 4px 12px; }
/* 第一列（商品 / 单据信息，带图片）：有些页面原来只分到 150px 左右，文字被挤成一个词一行；给个下限 */
body.lg-ol-sku #app div.my_table > .custom_tr > .custom_td:not(.custom_td ~ .custom_td) { min-width: 230px; }

/* ============ 5. 试验版：订单列表用「服务授权 / 三方仓」的表格外观（body.lg-ol.lg-ol-flat） ============ */
/* 开关在 51-order-list.js（只在订单页面；localStorage.lgOrderFlat = '0' 切回上面的卡片版）。
 * 和卡片版的区别：整个列表是一个白色圆角面板，订单之间只有一条细线；表头是一行灰色小字；
 * 状态是胶囊；主操作是浅绿色胶囊按钮，其余操作是文字链接。版式（第 1 段）和底栏不变。
 * 不要这个试验版：删掉这一段，并去掉 51-order-list.js 里 lg-ol-flat 那几行。 */
/* 面板 */
body.lg-ol-flat #app div.bg-white.p-main > div:has(> .my-scroll-wrapper) {
  background: #fff !important; border: 1px solid rgba(15, 35, 30, .08) !important; border-radius: 18px !important;
  padding: 6px 16px 4px; overflow: hidden !important;
}
/* 表头：一行灰色小字，下面一条线 */
body.lg-ol-flat #app div:has(> table.my_table) {
  background: transparent !important; border-radius: 0; margin-bottom: 0; border-bottom: 1px solid rgba(15, 35, 30, .08) !important;
}
/* 2026-11-27 用户要求：表头加粗、字放大一点（原来是 12.5px 细体灰字） */
body.lg-ol-flat #app table.my_table td { font-size: 14px; font-weight: 700; color: #3d4856; letter-spacing: 0; padding-top: 10px !important; padding-bottom: 10px !important; }
/* 每单一行：不要卡片的边框、圆角、阴影，只留分隔线 */
body.lg-ol-flat #app .vue-recycle-scroller__item-view > div { padding-bottom: 0 !important; }
body.lg-ol-flat #app div.my_table {
  border: 0; border-bottom: 1px solid rgba(15, 35, 30, .08); border-radius: 0; background: transparent; box-shadow: none;
  transition: background-color .15s ease;
}
body.lg-ol-flat #app div.my_table:hover { border-color: rgba(15, 35, 30, .08); box-shadow: none; background: #fafcfb; }
body.lg-ol-flat #app div.my_table:has(.custom_tr input.inp-cbx:checked) { border-color: rgba(15, 35, 30, .08); background: #f1f8f6; box-shadow: inset 3px 0 0 #0d7b6d; }
/* 行头（订单号那一排）：不要底线，和下面的内容连成一行 */
body.lg-ol-flat #app div.my_table > div:first-child:not(.custom_tr) { border-bottom: 0 !important; padding: 12px 4px 0 !important; color: #6b7a77; }
body.lg-ol-flat #app div.my_table > div:first-child .list-custom-row-item-mr:first-child { color: #0f1a18; }
body.lg-ol-flat #app div.my_table > div:first-child .list-custom-row-item-mr:nth-child(3) { background: #e7f2f0; padding: 2px 11px; }
body.lg-ol-flat #app div.my_table .custom_td { font-size: 14px; color: #0f1a18; padding-top: 10px !important; padding-bottom: 14px !important; }
body.lg-ol-flat #app div.my_table > .custom_tr > div:first-child { padding-top: 12px !important; }
body.lg-ol-flat #app div.my_table .custom_td .flex-1.ml-\[8px\] > .line-clamp-1:first-child { font-weight: 700; color: #0f1a18; }
/* 状态：和三方仓页面的 Conectado 胶囊一样 */
body.lg-ol-flat #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> i.iconfont + span) { padding: 3px 11px; background: #f0f2f1; }
body.lg-ol-flat #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> i.iconfont + span) > i.iconfont { display: none; }
body.lg-ol-flat #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> i.iconfont + span) > span { font-size: 12.5px; }
body.lg-ol-flat #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-\[\#E6A23C\]) { background: #fff7ea; }
body.lg-ol-flat #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-\[\#67C23A\]),
body.lg-ol-flat #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-main) { background: #e7f2f0; }
body.lg-ol-flat #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-\[\#F56C6C\]),
body.lg-ol-flat #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-\[\#FB5959\]) { background: #fdecec; }
/* 操作按钮：和手机版同一套（2026-11-27 用户要求三个端统一用手机版的按钮）——
   主操作实心绿、圆角 8px；「更多」白底描边。外观沿用上面第 3 段（卡片版）的定义，那一套和 40-order-cards 的手机版是一致的；
   这里只把按钮从"撑满整列"改成手机版那样按文字宽度、能并排就并排。
   （试验版最初用的浅绿胶囊 + 文字链接已去掉。） */
body.lg-ol-flat #app div.my_table .custom_td:last-child { flex-direction: row; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 8px; }
body.lg-ol-flat #app div.my_table .custom_td:last-child > div { flex: 0 0 auto; }
body.lg-ol-flat #app div.my_table .custom_td:last-child > div > .cursor-pointer { display: inline-block; padding: 5px 16px; }
body.lg-ol-flat #app div.my_table .custom_td:last-child .el-menu.invoice_more { width: auto; }
body.lg-ol-flat #app div.my_table .custom_td:last-child .el-menu.invoice_more > .el-sub-menu { width: auto; }
body.lg-ol-flat #app div.my_table .custom_td:last-child .el-menu.invoice_more .el-sub-menu__title { padding: 5px 12px !important; }
/* ---- 5b. 试验版的间距（2026-11-27 用户反馈：订单各项信息之间太挤） ---- */
/* 订单与订单之间：上下留白加大 */
body.lg-ol-flat #app div.my_table > div:first-child:not(.custom_tr) { padding: 18px 4px 2px !important; }
body.lg-ol-flat #app div.my_table .custom_td { padding: 12px 14px 20px !important; line-height: 1.6; }
body.lg-ol-flat #app div.my_table > .custom_tr > div:first-child { padding-top: 14px !important; }
body.lg-ol-flat #app table.my_table td { padding-left: 14px !important; padding-right: 14px !important; }
/* 行头：订单号、平台单号、金额、买家指定物流之间 */
body.lg-ol-flat #app div.my_table > div:first-child .flex.flex-wrap { gap: 6px 22px; }
/* 商品：图片和文字之间、名称 / SKU / 规格 / 价格 各行之间 */
body.lg-ol-flat #app div.my_table .custom_td .flex-1.ml-\[8px\] { margin-left: 14px !important; }
body.lg-ol-flat #app div.my_table .custom_td .flex-1.ml-\[8px\] > div { margin-bottom: 7px !important; }
body.lg-ol-flat #app div.my_table .custom_td .flex-1.ml-\[8px\] > div:last-child { margin-bottom: 0 !important; }
body.lg-ol-flat #app div.my_table .custom_td .flex-1.ml-\[8px\] > div .mb-\[4px\] { margin-bottom: 0 !important; }
body.lg-ol-flat #app div.my_table .custom_td .border-b.pb-main { padding-bottom: 14px !important; margin-bottom: 14px !important; }
/* 收件人、物流、时间这几列：每一行信息之间 */
body.lg-ol-flat #app div.my_table .custom_td > div > div + div { margin-top: 7px; }
body.lg-ol-flat #app div.my_table .custom_td .py-\[4px\] { padding-top: 0 !important; padding-bottom: 0 !important; }
body.lg-ol-flat #app div.my_table .custom_td .rounded-full.border.w-\[150px\] { margin-top: 2px; }
/* 操作：按钮和「更多」之间 */

/* ============ 6. 底部批量操作栏：固定一行高（电脑 / 平板，body.lg-ol） ============ */
/* 2026-11-27 用户反馈：批量按钮一多（葡语尤其长）底栏会换成 2～3 行、高到 120px，把订单列表的位置占掉。
 * 现在：底栏固定 52px 一行。全选、导出、排序和右边的分页不动；中间的批量按钮排成一行，
 * 放不下时在这一段里左右滑（滚轮、触控板、手指拖动都行，51-order-list.js 把竖向滚轮转成横向），
 * 被挡住的一侧有渐隐提示。按钮的下拉菜单是挂在 body 上的，不受影响。
 * 手机（< 768px）不走这里：见 40-order-cards.css 第 9 段（固定两行：工具 + 翻页一行，批量按钮一行可左右滑）。 */
body.lg-ol #app div:has(> div.bg-white.p-main > div > .my-scroll-wrapper) > div:last-child > .border-main {
  flex-wrap: nowrap !important; height: 52px !important; min-height: 52px; padding-top: 0; padding-bottom: 0; row-gap: 0;
}
body.lg-ol #app .border-main.shadow-table_hover > div:first-child {
  flex: 1 1 0 !important; min-width: 0 !important; flex-wrap: nowrap !important; row-gap: 0;
}
body.lg-ol #app .border-main.shadow-table_hover > div:first-child > div { flex: 0 0 auto !important; flex-wrap: nowrap !important; min-width: 0 !important; }
body.lg-ol #app .border-main.shadow-table_hover > div:first-child > .flex-1 {
  flex: 1 1 0 !important; min-width: 0 !important; max-width: none; overflow: hidden; position: relative;
}
body.lg-ol #app .border-main.shadow-table_hover .operation-menu {
  flex-wrap: nowrap !important; width: auto !important; max-width: 100%; height: 32px !important;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
}
body.lg-ol #app .border-main.shadow-table_hover .operation-menu::-webkit-scrollbar { display: none; }
body.lg-ol #app .border-main.shadow-table_hover .operation-menu > li { flex: 0 0 auto !important; }
/* 两侧渐隐：哪一侧还有按钮没显示出来，哪一侧就淡出（class 由 51-order-list.js 按滚动位置加） */
body.lg-ol #app .border-main.shadow-table_hover > div:first-child > .flex-1.lg-ol-more-r { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 36px); mask-image: linear-gradient(to left, transparent 0, #000 36px); }
body.lg-ol #app .border-main.shadow-table_hover > div:first-child > .flex-1.lg-ol-more-l { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px); mask-image: linear-gradient(to right, transparent 0, #000 36px); }
body.lg-ol #app .border-main.shadow-table_hover > div:first-child > .flex-1.lg-ol-more-l.lg-ol-more-r {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}
/* 右边的分页：不换行、不被挤 */
body.lg-ol #app .border-main.shadow-table_hover > div:last-child { flex: 0 0 auto !important; min-width: 0 !important; flex-wrap: nowrap !important; margin-left: 10px; }
body.lg-ol #app .border-main.shadow-table_hover .pagination,
body.lg-ol #app .border-main.shadow-table_hover .pagination > div { display: flex; align-items: center; flex-wrap: nowrap !important; row-gap: 0; }
/* 导出、排序：三个端统一用手机版的样子 —— 只有图标的方形按钮（36×34），文字不显示（悬停有原生提示） */
body.lg-ol #app .border-main.shadow-table_hover .group.cursor-pointer.border { width: 36px; height: 34px; padding: 0 !important; }
body.lg-ol #app .border-main.shadow-table_hover .group.cursor-pointer.border > span { display: none; }
body.lg-ol #app .border-main.shadow-table_hover .group.cursor-pointer.border > i.iconfont { margin: 0 !important; font-size: 20px !important; }
@media (max-width: 1100px) {
  body.lg-ol #app .border-main.shadow-table_hover .pagination .el-select { width: 92px !important; margin: 0 6px !important; }
}
/* 左右箭头：只有那一侧还有按钮没显示时才出现 */
body.lg-ol #app .border-main.shadow-table_hover .lg-ol-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: none;
  width: 26px; height: 26px; padding: 0; border: 1px solid #dfe5ea; border-radius: 50%; background: #fff; color: #0d7b6d; cursor: pointer;
  align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(15, 35, 52, .14);
  transition: background-color .12s ease, border-color .12s ease;
}
body.lg-ol #app .border-main.shadow-table_hover .lg-ol-arrow:hover { background: #eef7f5; border-color: #0d7b6d; }
body.lg-ol #app .border-main.shadow-table_hover .lg-ol-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
body.lg-ol #app .border-main.shadow-table_hover .lg-ol-arrow.l { left: 0; }
body.lg-ol #app .border-main.shadow-table_hover .lg-ol-arrow.r { right: 0; }
body.lg-ol #app .border-main.shadow-table_hover .lg-ol-more-l > .lg-ol-arrow.l,
body.lg-ol #app .border-main.shadow-table_hover .lg-ol-more-r > .lg-ol-arrow.r { display: inline-flex; }
/* 有箭头时渐隐放在按钮列表上（放在外层会把箭头也淡掉） */
body.lg-ol #app .border-main.shadow-table_hover > div:first-child > .flex-1[class*="lg-ol-more-"] { -webkit-mask-image: none !important; mask-image: none !important; }
body.lg-ol #app .border-main.shadow-table_hover .lg-ol-more-r > .operation-menu { -webkit-mask-image: linear-gradient(to left, transparent 14px, #000 56px); mask-image: linear-gradient(to left, transparent 14px, #000 56px); }
body.lg-ol #app .border-main.shadow-table_hover .lg-ol-more-l > .operation-menu { -webkit-mask-image: linear-gradient(to right, transparent 14px, #000 56px); mask-image: linear-gradient(to right, transparent 14px, #000 56px); }
body.lg-ol #app .border-main.shadow-table_hover .lg-ol-more-l.lg-ol-more-r > .operation-menu {
  -webkit-mask-image: linear-gradient(to right, transparent 14px, #000 56px, #000 calc(100% - 56px), transparent calc(100% - 14px));
  mask-image: linear-gradient(to right, transparent 14px, #000 56px, #000 calc(100% - 56px), transparent calc(100% - 14px));
}
/* 省位置：批量按钮略收紧；总数和每页条数之间不留大空 */
body.lg-ol #app .border-main.shadow-table_hover .operation-menu { gap: 6px !important; }
body.lg-ol #app .border-main.shadow-table_hover .operation-menu > li.el-menu-item > .el-button,
body.lg-ol #app .border-main.shadow-table_hover .operation-menu > li.el-sub-menu > .el-sub-menu__title { padding: 0 10px !important; }
/* 平板宽度下商品列变窄，"价格：R$ 19,90" 被旁边的利润预览挤成一个字一行：价格不拆行，放不下时利润预览换到下一行 */
body.lg-ol #app div.my_table .custom_td .flex.items-end.justify-between { flex-wrap: wrap; }
body.lg-ol #app div.my_table .custom_td .flex.items-end.justify-between > span { white-space: nowrap; }

/* ---- 6b. 手机（body.lg-dense，40-order-cards 的手机订单页）：底栏固定两行并且始终在屏幕里 ---- */
/* 原来：列表区最少占 62vh，页面比屏幕高出一截，底栏的第二行（批量按钮）掉到屏幕外面，要再滑一下页面才看得到。
 * 现在和电脑版同一个办法：筛选 → 标签 → 列表 → 底栏 竖向排满一屏，只有列表自己滚动；
 * 底栏固定两行（全选 + 导出 / 排序 + 翻页一行，批量按钮一行可左右滑），高度不随按钮多少变化。 */
body.lg-dense #app div:has(> div.bg-white.p-main > div > .my-scroll-wrapper) {
  display: flex; flex-direction: column;
  height: calc(100vh - 66px) !important; height: calc(100dvh - 66px) !important; min-height: 380px !important; max-height: none !important;
}
body.lg-dense #app div:has(> div.bg-white.p-main > div > .my-scroll-wrapper) > :not(.bg-white) { flex: none; }
body.lg-dense #app div:has(> div.bg-white.p-main > div > .my-scroll-wrapper) > .\!sticky { position: relative !important; top: 0 !important; }
body.lg-dense #app div.bg-white.p-main:has(> div > .my-scroll-wrapper) { flex: 1 1 0 !important; min-height: 0 !important; height: auto !important; display: flex; flex-direction: column; }
body.lg-dense #app div.bg-white.p-main > div:has(> .my-scroll-wrapper) { flex: 1 1 0 !important; min-height: 0 !important; display: flex; flex-direction: column; }
body.lg-dense #app .my-scroll-wrapper { flex: 1 1 0 !important; min-height: 0 !important; height: auto !important; position: relative; }
body.lg-dense #app .my-scroll-wrapper > .el-scrollbar__wrap { position: absolute; inset: 0; height: auto !important; min-height: 0 !important; }
body.lg-dense #app div:has(> div.bg-white.p-main > div > .my-scroll-wrapper) > div:last-child > .shadow-table_hover { margin-top: 8px !important; }

/* ============ 7. 状态标签栏（开票 / 开票失败 / 上传失败 …… + 右边的同步按钮）：固定一行 ============ */
/* 2026-11-27 用户反馈：这一条在窄一点的屏幕上标签竖着叠成三行、两组标签一左一右散开，高到 135px。
 * 电脑 / 平板（body.lg-ol）：固定 46px 一行。标签全部靠左排成一行（第二组用一条竖线隔开），放不下时左右滑；
 *   右边的按钮不换行，平板宽度（≤ 1100px）只留图标（悬停有原生 title 提示）。
 * 手机（body.lg-dense）：标签一行可左右滑（40-order-cards 已有），按钮从两行网格改成一行可左右滑。 */
body.lg-ol #app .flex.justify-between.px-\[20px\]:has(> div > ul.flex) {
  flex-wrap: nowrap !important; align-items: center !important; height: 46px; padding: 0 12px !important; gap: 4px; row-gap: 0;
}
body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1:has(> ul.flex) {
  flex: 1 1 0 !important; min-width: 0 !important; height: 100%;
  display: flex; flex-wrap: nowrap !important; justify-content: flex-start !important; align-items: stretch;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
}
body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1:has(> ul.flex)::-webkit-scrollbar { display: none; }
body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1 > ul.flex.items-center {
  flex: 0 0 auto !important; flex-wrap: nowrap !important; overflow: visible !important; height: 100%; row-gap: 0; max-width: none !important; min-width: 0 !important;
}
/* 第二组标签（进行中的状态）：紧跟在第一组后面，中间一条竖线 */
body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1 > ul.flex.items-center + ul.flex.items-center:not(:empty) {
  margin-left: 6px; padding-left: 6px; position: relative;
}
body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1 > ul.flex.items-center + ul.flex.items-center:not(:empty)::before {
  content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 1px; background: #e3e8ee;
}
body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1 > ul.flex.items-center > li {
  flex: 0 0 auto !important; height: 46px; padding: 0 14px !important; white-space: nowrap;
  font-size: 14px; color: #5b6676; border-bottom: 2px solid transparent; margin-bottom: 0;
  transition: color .12s ease, border-color .12s ease;
}
body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1 > ul.flex.items-center > li:hover { color: #0d7b6d; }
body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1 > ul.flex.items-center > li.border-b-2 { color: #0d7b6d; font-weight: 600; border-bottom-color: #0d7b6d; }
/* 数量：比标签名淡一点、小一点 */
body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1 > ul.flex.items-center > li > span + span { margin-left: 3px; font-size: 12.5px; font-weight: 400; opacity: .75; font-variant-numeric: tabular-nums; }
/* 右边：竖线 + 按钮 */
body.lg-ol #app .flex.justify-between.px-\[20px\]:has(> div > ul.flex) > div:has(> .el-divider--vertical) { flex: 0 0 auto !important; height: auto !important; padding: 0 4px !important; }
body.lg-ol #app .flex.justify-between.px-\[20px\]:has(> div > ul.flex) > .justify-end.w-fit { flex: 0 0 auto !important; min-width: 0 !important; }
body.lg-ol #app .flex.justify-between.px-\[20px\]:has(> div > ul.flex) > .justify-end.w-fit > div { flex-wrap: nowrap !important; padding: 0 !important; gap: 8px; row-gap: 0; }
body.lg-ol #app .flex.justify-between.px-\[20px\]:has(> div > ul.flex) > .justify-end.w-fit > div > .el-button { height: 32px; margin: 0 !important; white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 1100px) {
  body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1 > ul.flex.items-center > li { padding: 0 11px !important; }
}
/* 手机：按钮一行，可左右滑 */
body.lg-dense #app .flex.justify-between.px-\[20px\]:has(> div > ul.flex) > .justify-end.w-fit > div {
  display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; scrollbar-width: none;
}
body.lg-dense #app .flex.justify-between.px-\[20px\]:has(> div > ul.flex) > .justify-end.w-fit > div::-webkit-scrollbar { display: none; }
body.lg-dense #app .flex.justify-between.px-\[20px\]:has(> div > ul.flex) > .justify-end.w-fit > div > .el-button { flex: 0 0 auto !important; width: auto !important; }
/* 右边的按钮：三个端统一用手机版的样子 —— 始终带文字、30px 高、12px 字（2026-11-27 用户要求；原来窄屏只留图标）。
   标签和按钮一行放不下时（51-order-list.js 按实际宽度加 lg-ol-tabs-tight），和手机一样排成两行：
   标签一行、按钮一行，各自可以左右滑。高度固定为 46 + 40。 */
body.lg-ol #app .flex.justify-between.px-\[20px\]:has(> div > ul.flex) > .justify-end.w-fit > div > .el-button { height: 30px !important; font-size: 12px !important; padding: 0 12px !important; }
body.lg-ol #app .flex.justify-between.px-\[20px\].lg-ol-tabs-tight:has(> div > ul.flex) { flex-wrap: wrap !important; height: 86px !important; align-content: flex-start; align-items: flex-start !important; }
body.lg-ol #app .flex.justify-between.px-\[20px\].lg-ol-tabs-tight:has(> div > ul.flex) > .flex.justify-between.flex-1:has(> ul.flex) { flex: 0 0 100% !important; width: 100% !important; height: 46px !important; }
body.lg-ol #app .flex.justify-between.px-\[20px\].lg-ol-tabs-tight:has(> div > ul.flex) > div:has(> .el-divider--vertical) { display: none !important; }
body.lg-ol #app .flex.justify-between.px-\[20px\].lg-ol-tabs-tight:has(> div > ul.flex) > .justify-end.w-fit { flex: 0 0 100% !important; width: 100% !important; height: 40px !important; overflow: hidden; }
body.lg-ol #app .flex.justify-between.px-\[20px\].lg-ol-tabs-tight:has(> div > ul.flex) > .justify-end.w-fit > div { justify-content: flex-start !important; overflow-x: auto; scrollbar-width: none; padding: 0 0 10px !important; }
body.lg-ol #app .flex.justify-between.px-\[20px\].lg-ol-tabs-tight:has(> div > ul.flex) > .justify-end.w-fit > div::-webkit-scrollbar { display: none; }

/* 订单列表表头改名（data-lg-th 由 51-order-list.js 打）：原文字移出可视范围，用 ::after 显示新名字，字体跟随表头 */
body.lg-ol #app table.my_table td > .truncate[data-lg-th] { position: relative; text-indent: -9999px; }
body.lg-ol #app table.my_table td > .truncate[data-lg-th]::after { content: attr(data-lg-th); position: absolute; left: 0; top: 0; text-indent: 0; }

/* 操作列的两个按钮在所有宽度下都并排（2026-11-27 用户要求：不要上下排，和手机一样并排）。
   平板宽度下位置紧：按钮的左右留白收一点、不允许折到第二行；
   时间列被挤窄时，日期和倒计时不从中间拆开（原来会拆成 "29/06/20 / 26 16:08"）。 */
/* 2026-11-27 用户最终要求：电脑、平板上两个按钮上下排（和这一行里其他各列一样是上下结构），不要并排。
   两个按钮一样宽，样式仍是手机版那一套（实心主按钮 + 描边「更多」）。 */
body.lg-ol-flat #app div.my_table .custom_td:last-child { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
body.lg-ol-flat #app div.my_table .custom_td:last-child > div > .cursor-pointer { display: block; }
body.lg-ol-flat #app div.my_table .custom_td:last-child .el-menu.invoice_more,
body.lg-ol-flat #app div.my_table .custom_td:last-child .el-menu.invoice_more > .el-sub-menu { width: 100%; }
@media (max-width: 1100px) {
  body.lg-ol-flat #app div.my_table .custom_td:last-child { gap: 6px; padding-left: 8px !important; }
  body.lg-ol-flat.lg-compact-nav #app div.my_table .custom_td:last-child { padding-right: 8px !important; }
  body.lg-ol-flat #app div.my_table .custom_td:last-child > div > .cursor-pointer { padding: 5px 10px; }
  body.lg-ol-flat #app div.my_table .custom_td:last-child .el-menu.invoice_more .el-sub-menu__title { padding: 5px 8px !important; }
  body.lg-ol-flat #app div.my_table .custom_td { padding-left: 8px !important; padding-right: 8px !important; }
  body.lg-ol-flat #app table.my_table td { padding-left: 8px !important; padding-right: 8px !important; }
}
/* 兜底：列表本身特别窄（不到 840px，例如 1024 宽且左侧菜单展开）时并排实在放不下 ——
   并排会把收件人、物流两列挤到 60～70px。只有这种情况才上下排（class 由 51-order-list.js 按列表实际宽度加）。 */
body.lg-ol-flat.lg-ol-tight #app div.my_table .custom_td:last-child { flex-direction: column; }body.lg-ol #app div.my_table .custom_td .py-\[4px\] { overflow-wrap: normal; word-break: normal; }
body.lg-ol #app div.my_table .custom_td .rounded-full.border.w-\[150px\] { white-space: nowrap; }
/* 行头右侧的店铺名 + 平台图标：窄屏时不被左边挤成一个字一行 */
body.lg-ol #app div.my_table > div:first-child .flex.justify-center.items-center { flex: 0 0 auto; white-space: nowrap; word-break: normal; }

/* 操作按钮的右边和上面那一排的"店铺名 | 平台图标"对齐（2026-11-27 用户要求）。
   原来操作列右边留了 56px 给右侧悬浮按钮，按钮比平台图标缩进去一截；现在右边留白和行头一样（16px）。
   代价：滚到悬浮按钮那个高度的几行，按钮右边会被悬浮按钮压住约 10px（行头的平台图标本来也是这样）。 */
body.lg-ol-flat #app div.my_table .custom_td:last-child,
body.lg-ol-flat:has(.layout-right-quick-actions):not(.lg-compact-nav) #app div.my_table .custom_td:last-child,
body.lg-ol-flat.lg-compact-nav #app div.my_table .custom_td:last-child { padding-right: 16px !important; min-width: 0 !important; }
/* 行头：左边（订单号、金额……）占剩余宽度、放不下就换行；右边（店铺名 | 平台图标）按自己的宽度靠右，不被挤出卡片 */
body.lg-ol #app div.my_table > div:first-child > .flex.justify-between > .flex.flex-wrap { flex: 1 1 0; min-width: 0; }
body.lg-ol #app div.my_table > div:first-child > .flex.justify-between > .flex.items-center.flex-1 { flex: 0 0 auto; min-width: 0; }

/* ---- 4c. 商品信息列里的 SKU 那一行（2026-11-27）----
   原生把这一行写死 300px 宽，列窄的时候「Variações+ ∨」会伸到右边一列里，压在刊登 ID 的复制图标上。
   改成跟着列宽走，放不下就换行；SKU 太长时在行内折行。 */
body.lg-ol #app div.my_table .custom_td .flex.items-center.w-\[300px\] {
  width: auto !important;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 2px 10px;
}
body.lg-ol #app div.my_table .custom_td .flex.items-center.w-\[300px\] > div {
  min-width: 0;
  max-width: 100%;
  margin-left: 0 !important;
  overflow-wrap: anywhere;
}
body.lg-ol #app div.my_table .custom_td .flex.items-center.w-\[300px\] > div:has(> .icon-zhedie) {
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ============ 9. 状态标签栏：只有当前标签有下划线（2026-11-28 用户要求"优化一下"） ============ */
/* 原来每个标签都带 border-main，结果整排标签下面是一条连着的绿线，看不出当前是哪一个。
   现在：整排一条 1px 浅灰基线；只有当前标签下面有一段 3px 的绿色短线；悬停有浅底色。
   两行模式（lg-ol-tabs-tight）下，第二行的同步按钮上下留白相等（原来上 0 下 10，贴着标签）。 */
body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1:has(> ul.flex) { box-shadow: inset 0 -1px 0 #e6ebf0; }
body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1 > ul.flex.items-center > li { border-bottom-color: transparent !important; position: relative; border-radius: 6px 6px 0 0; }
body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1 > ul.flex.items-center > li:hover { background: #f3f8f7; }
body.lg-ol #app .flex.justify-between.px-\[20px\] > .flex.justify-between.flex-1 > ul.flex.items-center > li.border-b-2::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #0d7b6d;
}
body.lg-ol #app .flex.justify-between.px-\[20px\].lg-ol-tabs-tight:has(> div > ul.flex) { height: 90px !important; }
body.lg-ol #app .flex.justify-between.px-\[20px\].lg-ol-tabs-tight:has(> div > ul.flex) > .justify-end.w-fit { height: 44px !important; }
body.lg-ol #app .flex.justify-between.px-\[20px\].lg-ol-tabs-tight:has(> div > ul.flex) > .justify-end.w-fit > div { padding: 7px 0 !important; }
