/*
 * LinsGeek ERP —— 订单列表：手机卡片版（配合 40-order-cards.js）
 * ------------------------------------------------------------------
 * 只在手机宽度（< 768px）的订单类页面生效（body.lg-cards）。电脑/平板仍是原表格。
 * 只改排版：卡片里的勾选框、详情、备注等仍是原来的元素和逻辑。
 * 回滚：删除 40-order-cards.css + 40-order-cards.js。
 */

/* ---------- 1. 订单行 → 卡片 ---------- */
/* 表头不再需要（每块内容自带小标题） */
body.lg-cards #app div:has(> table.my_table) { display: none !important; }
/* 取消"宽表格横向滑动"，卡片跟随屏幕宽度 */
body.lg-cards #app .my-scroll-wrapper[data-lg-table],
body.lg-cards #app .my-scroll-wrapper [data-lg-table],
body.lg-cards #app [data-lg-xscroll]:has(.custom_tr) > [data-lg-table] { min-width: 0 !important; }
body.lg-cards #app [data-lg-xscroll]:has(.custom_tr) { overflow-x: hidden !important; border: 0 !important; background: transparent !important; border-radius: 0 !important; }
body.lg-cards #app div:has(> [data-lg-xscroll] .custom_tr),
body.lg-cards #app div:has(> div > .my-scroll-wrapper) { background: transparent !important; padding-left: 0 !important; padding-right: 0 !important; }

/* 卡片间距放在"列表计算行高的那一层"的内边距里（用外边距的话，虚拟滚动不计入，卡片会互相压住） */
body.lg-cards #app .vue-recycle-scroller__item-view > div { padding: 0 2px 12px !important; height: auto !important; min-height: 0 !important; }
body.lg-cards #app div.my_table {
  margin: 0;
  width: auto !important;
  background: #fff;
  border: 1px solid rgba(15, 35, 30, .08);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 22px -16px rgba(13,123,109,.25);
  overflow: hidden;
  word-break: normal;
  overflow-wrap: anywhere;
}
/* 卡片头：订单号 / 平台单号 / 金额 / 买家指定物流 */
body.lg-cards #app div.my_table > div:first-child:not(.custom_tr) {
  height: auto !important; padding: 10px 12px !important;
  background: linear-gradient(100deg, #eef7f5, #f7faf9) !important;
  border-bottom: 1px solid rgba(15,35,30,.06) !important;
}
/* 头部改为上下两行：第一行 店铺 + 平台图标；第二行 订单号 / 平台单号 / 金额 / 物流 */
body.lg-cards #app div.my_table > div:first-child:not(.custom_tr) > div {
  height: auto !important; flex-direction: column !important; align-items: stretch !important;
  padding-right: 0 !important; gap: 6px;
}
body.lg-cards #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child {
  order: -1; flex: 0 0 auto !important; height: auto !important; width: 100%;
  justify-content: space-between; gap: 8px; font-weight: 600;
}
body.lg-cards #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child > div { height: auto !important; }
body.lg-cards #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child > div:first-child { justify-content: flex-start !important; flex-direction: row-reverse; gap: 8px; min-width: 0; }
body.lg-cards #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child img { max-height: 22px; width: auto; }
body.lg-cards #app div.my_table > div:first-child:not(.custom_tr) > div > div:first-child { gap: 2px 0; min-width: 0; width: 100%; }
body.lg-cards #app div.my_table .list-custom-row-item-mr {
  margin-right: 14px; font-size: 13px; height: auto !important; line-height: 1.6;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}

/* 卡片主体：左侧勾选框，右侧各项内容竖排 */
body.lg-cards #app div.my_table .custom_tr {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr);
  border-bottom: 0 !important;
}
body.lg-cards #app div.my_table .custom_tr > :first-child {
  grid-column: 1; grid-row: 1 / span 8;
  width: auto !important; min-width: 0 !important; max-width: none !important;
  padding: 14px 0 0 8px !important; justify-content: flex-start !important;
}
body.lg-cards #app div.my_table .custom_tr > .custom_td {
  grid-column: 2;
  width: auto !important; min-width: 0 !important; max-width: 100% !important;
  flex: none !important;
  border-right: 0 !important; border-left: 0 !important;
  border-top: 1px dashed rgba(15,35,30,.09);
  padding: 9px 12px 9px 4px !important;
  font-size: 13px; line-height: 1.6;
}
body.lg-cards #app div.my_table .custom_tr > .custom_td:nth-child(2) { border-top: 0; padding-top: 12px !important; }
body.lg-cards #app div.my_table .custom_tr .line-clamp-1 { -webkit-line-clamp: 2; white-space: normal; }
/* 每块内容的小标题（取自表头，由 JS 写入 data-lg-label） */
/* 有小标题的格子：左边标题、右边内容（比上下排列矮一半） */
body.lg-cards #app div.my_table .custom_tr > .custom_td[data-lg-label] {
  display: grid !important; grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; align-items: start;
}
body.lg-cards #app div.my_table .custom_tr > .custom_td[data-lg-label] > * { grid-column: 2; min-width: 0; margin-left: 0 !important; margin-right: 0 !important; }
body.lg-cards #app div.my_table .custom_tr > .custom_td[data-lg-label]::before {
  content: attr(data-lg-label); grid-column: 1; grid-row: 1 / span 20;
  font-size: 12px; line-height: 1.6; font-weight: 600; color: #8a9794; overflow-wrap: anywhere;
}
/* 时间一项里的两行不再各占 71px */
body.lg-cards #app div.my_table .custom_tr > .custom_td .py-\[4px\] { padding-top: 1px; padding-bottom: 1px; }
/* 操作列：横排 */
body.lg-cards #app div.my_table .custom_tr > .custom_td:last-child {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 4px 18px;
  background: #fafcfb; padding-top: 8px !important; padding-bottom: 10px !important;
}
body.lg-cards #app div.my_table .custom_tr > .custom_td:last-child .cursor-pointer { margin: 0 !important; font-weight: 600; }

/* 列表滚动区：占满剩余屏幕 */
body.lg-cards #app .my-scroll-wrapper > .el-scrollbar__wrap { min-height: 62vh !important; }

/* ---------- 2. 筛选区：默认收起，点「筛选」展开 ---------- */
#lg-filter-bar { display: none; }
body.lg-cards #lg-filter-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 8px; padding: 8px 10px;
  background: #fff; border: 1px solid rgba(15,35,30,.08); border-radius: 14px;
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
#lg-filter-bar button {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: #e7f2f0; color: #0d7b6d;
}
#lg-filter-bar button svg { width: 16px; height: 16px; }
#lg-filter-bar button .chev { transition: transform .2s; }
body.lg-filter-open #lg-filter-bar button .chev { transform: rotate(180deg); }
#lg-filter-bar .hint { flex: 1; min-width: 0; font-size: 12px; color: #8a9794; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.lg-cards:not(.lg-filter-open) #app [data-lg-filter] { display: none !important; }
body.lg-cards.lg-filter-open #app [data-lg-filter] { position: relative !important; top: auto !important; }

/* ---------- 3. 状态标签：一行，可左右滑 ---------- */
body.lg-cards #app .flex.justify-between.px-\[20px\]:has(> div > ul.flex) { flex-wrap: wrap !important; padding: 2px 6px 8px !important; row-gap: 6px; }
body.lg-cards #app .flex.justify-between.px-\[20px\] > div:has(> ul.flex) { flex: 1 1 100% !important; min-width: 0 !important; max-width: 100%; overflow: hidden; }
body.lg-cards #app .flex.justify-between.px-\[20px\] ul.flex.items-center {
  flex-wrap: nowrap !important; overflow-x: auto; max-width: 100%;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
body.lg-cards #app .flex.justify-between.px-\[20px\] ul.flex.items-center::-webkit-scrollbar { display: none; }
body.lg-cards #app .flex.justify-between.px-\[20px\] ul.flex.items-center > li { flex: 0 0 auto !important; white-space: nowrap; padding: 9px 13px !important; }

/* ---------- 4. 底部操作栏：按钮放不下自动收进「更多」 ---------- */
body.lg-cards #app .shadow-table_hover {
  height: auto !important; min-height: 0 !important;
  display: flex !important; flex-wrap: wrap !important; gap: 8px 6px; padding: 8px 10px !important;
}
body.lg-cards #app .shadow-table_hover > div:first-child { flex: 1 1 100% !important; flex-wrap: wrap !important; gap: 6px 4px; min-width: 0; }
body.lg-cards #app .shadow-table_hover > div:first-child > .flex-1 { flex: 1 1 100% !important; min-width: 0 !important; max-width: 100%; overflow: hidden; }
/* 批量操作按钮：一行，可左右滑动 */
body.lg-cards #app .shadow-table_hover ul.operation-menu {
  width: 100% !important; max-width: 100%; height: auto !important;
  flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px;
}
body.lg-cards #app .shadow-table_hover ul.operation-menu::-webkit-scrollbar { display: none; }
body.lg-cards #app .shadow-table_hover ul.operation-menu > li { flex: 0 0 auto !important; }
body.lg-cards #app .shadow-table_hover > div:last-child { flex: 1 1 100% !important; justify-content: center !important; }
body.lg-cards #app .shadow-table_hover .max-h-\[32px\] { max-height: none !important; }

/* ---------- 5. 标签行右侧的功能按钮（自动安排 / 同步订单 等）：两列整齐排列 ---------- */
/* 没有状态标签的页面（如 发货、开票）：空标签行和分隔线不占位 */
body.lg-cards #app .flex.justify-between.px-\[20px\] > .flex-1:not(:has(li)) { display: none !important; }
body.lg-cards #app .flex.justify-between.px-\[20px\]:has(> div > ul.flex) > div:has(> .el-divider--vertical) { display: none !important; }
body.lg-cards #app .flex.justify-between.px-\[20px\] > .justify-end.w-fit { flex: 1 1 100% !important; width: 100% !important; min-width: 0 !important; }
body.lg-cards #app .flex.justify-between.px-\[20px\] > .justify-end.w-fit > div {
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important;
  padding: 6px 0 4px !important; width: 100% !important;
}
body.lg-cards #app .flex.justify-between.px-\[20px\] > .justify-end.w-fit > div > .el-button {
  margin: 0 !important; width: 100% !important; min-width: 0 !important; height: 36px !important;
  padding: 0 10px !important; font-size: 13px !important;
}
body.lg-cards #app .flex.justify-between.px-\[20px\] > .justify-end.w-fit > div > .el-button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.lg-cards #app .flex.justify-between.px-\[20px\] > .justify-end.w-fit > div > .el-button:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }

/* ---------- 6. 没有勾选框的列表（如 店铺授权）：不留左侧勾选列 ---------- */
body.lg-cards #app div.my_table .custom_tr:not(:has(> :first-child :is(.el-checkbox, input[type="checkbox"], .ui-checkbox))) { grid-template-columns: minmax(0, 1fr); }
body.lg-cards #app div.my_table .custom_tr:not(:has(> :first-child :is(.el-checkbox, input[type="checkbox"], .ui-checkbox))) > :first-child {
  grid-column: 1; grid-row: auto; padding: 12px 12px 4px 14px !important;
}
body.lg-cards #app div.my_table .custom_tr:not(:has(> :first-child :is(.el-checkbox, input[type="checkbox"], .ui-checkbox))) > .custom_td { grid-column: 1; padding-left: 14px !important; }
/* 没有灰色标题栏时，第一行顶部不要虚线 */
body.lg-cards #app div.my_table > .custom_tr:first-child > .custom_td:nth-child(2) { border-top: 0; }

/* ---------- 7. 卡片标题栏内容多时换行（如调拨单"发货仓 → 收货仓"） ---------- */
body.lg-cards #app div.my_table > div:first-child:not(.custom_tr) .flex { flex-wrap: wrap !important; min-width: 0; row-gap: 2px; }
body.lg-cards #app div.my_table > div:first-child:not(.custom_tr) :is(span, div) { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }

/* ---------- 8. 订单类页面：紧凑卡片（body.lg-dense，由 JS 只在 /orders/、/manual-orders/ 加） ---------- */
/* 原来一张单 SKU 订单约 513px 高，一屏放不下一张。这里：
 *   - 收件人 / 物流、时间 / 状态 两两并排（内容自带"收件人:"等前缀，不再另加小标题）；
 *   - 商品图缩小，变种和价格排成一行；标题栏、间距、字号收紧；
 *   - 页面顶部的筛选条、标签、同步按钮和底部操作栏也收矮。 */
body.lg-cards.lg-dense #app .vue-recycle-scroller__item-view > div { padding-bottom: 8px !important; }
body.lg-cards.lg-dense #app div.my_table { border-radius: 12px; }
/* 标题栏 */
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) { padding: 6px 10px !important; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div { gap: 2px; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child { font-size: 13px; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child img { max-height: 16px; }
body.lg-cards.lg-dense #app div.my_table .list-custom-row-item-mr { margin-right: 10px; font-size: 12px; line-height: 1.5; }
/* 主体：勾选框 | 宽列 | 窄列 */
body.lg-cards.lg-dense #app div.my_table .custom_tr { grid-template-columns: 30px minmax(0, 1.55fr) minmax(0, 1fr); }
body.lg-cards.lg-dense #app div.my_table .custom_tr > :first-child { padding: 9px 0 0 8px !important; }
body.lg-cards.lg-dense #app div.my_table .custom_tr > .custom_td {
  grid-column: auto; padding: 6px 8px 6px 4px !important; font-size: 12px; line-height: 1.5;
}
body.lg-cards.lg-dense #app div.my_table .custom_tr > .custom_td:nth-child(2),
body.lg-cards.lg-dense #app div.my_table .custom_tr > .custom_td:last-child { grid-column: 2 / -1; }
body.lg-cards.lg-dense #app div.my_table .custom_tr > .custom_td:nth-child(2) { padding-top: 8px !important; }
body.lg-cards.lg-dense #app div.my_table .custom_tr > .custom_td[data-lg-label] { display: block !important; }
body.lg-cards.lg-dense #app div.my_table .custom_tr > .custom_td[data-lg-label]::before { display: none; }
body.lg-cards.lg-dense #app div.my_table .custom_tr > .custom_td .py-\[4px\] { padding-top: 0; padding-bottom: 0; }
body.lg-cards.lg-dense #app div.my_table .custom_tr .mb-\[4px\] { margin-bottom: 0 !important; }
/* 商品 */
body.lg-cards.lg-dense #app div.my_table .custom_td .el-image.border { width: 40px !important; height: 40px !important; border-radius: 6px; overflow: hidden; }
body.lg-cards.lg-dense #app div.my_table .custom_td .flex-1.ml-\[8px\] { display: flex; flex-wrap: wrap; column-gap: 12px; min-width: 0; align-content: flex-start; }
body.lg-cards.lg-dense #app div.my_table .custom_td .flex-1.ml-\[8px\] > * { flex: 0 1 auto; min-width: 0; }
body.lg-cards.lg-dense #app div.my_table .custom_td .flex-1.ml-\[8px\] > :is(.line-clamp-1, .text-main.w-full) { flex: 0 0 100%; }
body.lg-cards.lg-dense #app div.my_table .custom_td .flex-1.ml-\[8px\] > .line-clamp-1:first-child { -webkit-line-clamp: 1; font-size: 13px; font-weight: 600; }
body.lg-cards.lg-dense #app div.my_table .custom_td .w-\[100px\].text-end { width: auto !important; flex: none; margin-left: 8px; }
body.lg-cards.lg-dense #app div.my_table .custom_td .w-\[100px\].text-end > span { font-size: 15px !important; font-weight: 600; }
body.lg-cards.lg-dense #app div.my_table .custom_td .border-b.pb-main { padding-bottom: 6px !important; margin-bottom: 6px !important; }
/* 操作 */
body.lg-cards.lg-dense #app div.my_table .custom_tr > .custom_td:last-child { padding-top: 5px !important; padding-bottom: 6px !important; font-size: 13px; }

/* 页面顶部 */
body.lg-cards.lg-dense #lg-filter-bar { margin-bottom: 6px; padding: 5px 8px; border-radius: 12px; }
body.lg-cards.lg-dense #lg-filter-bar button { padding: 5px 12px; font-size: 13px; }
body.lg-cards.lg-dense #app .flex.justify-between.px-\[20px\]:has(> div > ul.flex) { padding-bottom: 6px !important; row-gap: 2px; }
body.lg-cards.lg-dense #app .flex.justify-between.px-\[20px\] ul.flex.items-center > li { padding: 6px 11px !important; }
body.lg-cards.lg-dense #app .flex.justify-between.px-\[20px\] > .justify-end.w-fit > div { padding: 4px 0 0 !important; gap: 6px !important; }
body.lg-cards.lg-dense #app .flex.justify-between.px-\[20px\] > .justify-end.w-fit > div > .el-button { height: 30px !important; font-size: 12px !important; }
/* 底部操作栏 */
body.lg-cards.lg-dense #app .shadow-table_hover { gap: 4px 6px; padding: 5px 8px !important; }
body.lg-cards.lg-dense #app .shadow-table_hover > div:first-child { gap: 4px; }

/* ---------- 9. 订单类页面：底部操作栏三行 → 两行（少显示一些，不是把按钮压小） ----------
 * 第一行：全选 + 已选数量 | 导出、排序（只留图标） | 翻页（只留 ‹ 1/2 ›）
 * 第二行：批量操作按钮（可左右滑）
 * 不显示：「共 N 条」、每页条数下拉、导出/排序的文字、竖分隔线。电脑版不受影响。 */
body.lg-cards.lg-dense #app .shadow-table_hover { align-items: center !important; gap: 8px 8px !important; padding: 8px 10px !important; min-height: 0 !important; }
body.lg-cards.lg-dense #app .shadow-table_hover > div:first-child { display: contents !important; }
body.lg-cards.lg-dense #app .shadow-table_hover > div:first-child > div { order: 1; flex: 0 0 auto !important; min-height: 0 !important; }
body.lg-cards.lg-dense #app .shadow-table_hover > div:first-child > .flex-1 { order: 3; flex: 1 1 100% !important; }
body.lg-cards.lg-dense #app .shadow-table_hover > div:last-child { order: 2; flex: 0 0 auto !important; margin-left: auto; }
body.lg-cards.lg-dense #app .shadow-table_hover .el-divider--vertical { display: none !important; }
body.lg-cards.lg-dense #app .shadow-table_hover .relative.top-1 { top: 0 !important; margin-right: 0 !important; }
body.lg-cards.lg-dense #app .shadow-table_hover .my-checkbox-wrapper { margin: 0 !important; }
/* 导出、排序：只留图标 */
body.lg-cards.lg-dense #app .shadow-table_hover .group.cursor-pointer.border { width: 36px; height: 34px; padding: 0 !important; margin-right: 6px !important; border-radius: 8px !important; }
body.lg-cards.lg-dense #app .shadow-table_hover .group.cursor-pointer.border:last-of-type { margin-right: 0 !important; }
body.lg-cards.lg-dense #app .shadow-table_hover .group.cursor-pointer.border > span { display: none !important; }
body.lg-cards.lg-dense #app .shadow-table_hover .group.cursor-pointer.border > i.iconfont { margin: 0 !important; font-size: 20px !important; }
/* 翻页：只留上一页 / 页码 / 下一页 */
body.lg-cards.lg-dense #app .shadow-table_hover .pagination > div > div:first-child,
body.lg-cards.lg-dense #app .shadow-table_hover .pagination .el-select { display: none !important; }

/* ---------- 10. 订单类页面：卡片外观跟电脑版新界面（51-order-list.css）一致 ----------
 * 排版仍是上面的手机排版，这里只换外观：白色标题栏、订单号加粗、金额绿色标签、数量标签、
 * 状态和倒计时变成带底色的小标签、操作从文字链接变成按钮（第一个实心）。
 * 商品多的订单默认只显示前 2 个，由 51-order-list.js 维护（规则在 51-order-list.css）。 */
body.lg-cards.lg-dense #app div.my_table { border: 1px solid #e6eaee; box-shadow: none; transition: border-color .15s ease, background-color .15s ease; }
body.lg-cards.lg-dense #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-cards.lg-dense #app div.my_table > div { background: transparent !important; }
/* 标题栏 */
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) { background: transparent !important; border-bottom: 1px solid #eef1f4 !important; color: #5b6676; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) .list-custom-row-item-mr { display: inline-flex; align-items: center; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) .list-custom-row-item-mr:first-child { font-size: 13px; font-weight: 700; color: #111827; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) .list-custom-row-item-mr:nth-child(3) { padding: 0 9px; border-radius: 999px; background: #e8f5f2; color: #0d7b6d; font-weight: 600; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) .icon-fuzhi { margin-left: 6px !important; color: #a3adb9; font-size: 13px; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) .flex.justify-center.items-center > span { font-weight: 600; color: #1f2a37; }
/* 内容 */
body.lg-cards.lg-dense #app div.my_table .custom_tr > .custom_td { color: #3d4856; border-top-color: #e8edf1; }
body.lg-cards.lg-dense #app div.my_table .custom_td .el-image.border { border-color: #e8edf1 !important; background: #f7f9fa; }
body.lg-cards.lg-dense #app div.my_table .custom_td .flex-1.ml-\[8px\] > .line-clamp-1:first-child { color: #111827; }
body.lg-cards.lg-dense #app div.my_table .custom_td .border-b.pb-main { border-bottom: 1px dashed #e8edf1 !important; }
/* 数量标签（多于 1 件保留红色） */
body.lg-cards.lg-dense #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-cards.lg-dense #app div.my_table .custom_td .w-\[100px\].text-end > span.text-\[\#FB5959\] { background: #fdecec; color: #d9443f !important; }
/* 倒计时 */
body.lg-cards.lg-dense #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-cards.lg-dense #app div.my_table .custom_td .rounded-full.border.w-\[150px\] .iconfont { margin-right: 5px !important; font-size: 13px; }
body.lg-cards.lg-dense #app div.my_table .custom_td .rounded-full.border.w-\[150px\] > div { font-size: 12px; font-weight: 600; }
/* 状态标签 */
body.lg-cards.lg-dense #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-cards.lg-dense #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> i.iconfont + span) > i.iconfont { font-size: 14px !important; }
body.lg-cards.lg-dense #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> i.iconfont + span) > span { font-size: 12px; font-weight: 600; }
body.lg-cards.lg-dense #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-\[\#E6A23C\]) { background: #fdf3e1; }
body.lg-cards.lg-dense #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-\[\#67C23A\]) { background: #e9f6e2; }
body.lg-cards.lg-dense #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-\[\#F56C6C\]),
body.lg-cards.lg-dense #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-\[\#FB5959\]) { background: #fdecec; }
body.lg-cards.lg-dense #app div.my_table .custom_td .flex.items-center.mb-\[4px\]:has(> span.text-main) { background: #e8f5f2; }
/* 操作：按钮，横排 */
body.lg-cards.lg-dense #app div.my_table .custom_tr > .custom_td:last-child { background: transparent; gap: 8px; padding-top: 8px !important; padding-bottom: 10px !important; }
body.lg-cards.lg-dense #app div.my_table .custom_td:last-child > div > .cursor-pointer {
  display: inline-block; margin: 0 !important; padding: 5px 16px; 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;
}
body.lg-cards.lg-dense #app div.my_table .custom_td:last-child > div:first-child > .cursor-pointer { background: #0d7b6d; border-color: #0d7b6d; color: #fff !important; }
body.lg-cards.lg-dense #app div.my_table .custom_td:last-child > div > .cursor-pointer:active { transform: translateY(1px); }
body.lg-cards.lg-dense #app div.my_table .custom_td:last-child .el-menu.invoice_more { height: auto !important; border: 0 !important; display: block; background: transparent !important; }
body.lg-cards.lg-dense #app div.my_table .custom_td:last-child .el-menu.invoice_more > .el-sub-menu { margin: 0 !important; height: auto !important; float: none; }
body.lg-cards.lg-dense #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 12px !important;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid #dfe5ea !important; border-radius: 8px; background: #fff !important;
}
body.lg-cards.lg-dense #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-cards.lg-dense #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; }

/* ---------- 11. 订单类页面：卡片标题栏只占一行 ----------
 * 订单号（放不下用 … 截断）+ 金额 + 店铺名 + 平台图标 排成一行，不再换行。
 * 平台单号、买家指定物流在手机上不显示（详情里有）。每一项的种类由 40-order-cards.js 的 tagHeads 标在 data-lg-h 上。 */
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div {
  flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 8px;
}
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:first-child {
  flex: 1 1 auto !important; width: auto; min-width: 0; flex-wrap: nowrap !important; gap: 0 8px; overflow: hidden;
}
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child {
  order: 0; flex: 0 1 auto !important; width: auto; max-width: 46%; min-width: 0; flex-wrap: nowrap !important; gap: 4px;
}
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child > div { flex-wrap: nowrap !important; min-width: 0; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child > div:first-child:empty { display: none; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child > div > span {
  margin-left: 0 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal;
}
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child .el-divider--vertical { margin: 0 6px !important; flex: none; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child .el-image { flex: none; height: auto !important; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) [data-lg-h] { margin-right: 0 !important; font-size: 12px; line-height: 1.5; white-space: nowrap; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) [data-lg-h="x"] { display: none !important; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) [data-lg-h="no"] {
  display: flex !important; align-items: center; flex: 0 1 auto; min-width: 0; flex-wrap: nowrap !important;
  font-size: 13px; font-weight: 700; color: #111827;
}
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) [data-lg-h="no"] > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) [data-lg-h="no"] > i { flex: none; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) [data-lg-h="amt"] {
  flex: none; padding: 0 9px; border-radius: 999px; background: #e8f5f2; color: #0d7b6d; font-weight: 600;
}
/* 一行里的占宽：店铺名 + 平台图标最多占三成（店铺名放不下截断），金额不压缩，剩下的给订单号，订单号放不下用 … 截断 */
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:first-child { flex: 1 1 0 !important; min-width: 0; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child { flex: 0 0 auto !important; max-width: 30%; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child img { max-height: 14px; max-width: 40px; object-fit: contain; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child .el-divider--vertical { display: none !important; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) > div > div:last-child .el-image { margin-left: 6px; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) [data-lg-h="no"] { flex: 0 1 auto; }
body.lg-cards.lg-dense #app div.my_table > div:first-child:not(.custom_tr) [data-lg-h="amt"] { padding: 0 7px; }
