/* 发票设置 → 公司列表：操作列「编辑」+「更多 ▾」（逻辑在 93-invoice-shop-edit.js） */
/* 原来的小店铺图标、原来的「删除」：藏起来（节点留着，「更多」下拉里点的就是它们） */
.lg-shop-src, .lg-act-src { display: none !important; }
/* 图标藏了以后，「更多 +N」那一排只剩左边一项，别再两端对齐 */
.custom_td .flex.justify-between:has(> .lg-shop-src) { justify-content: flex-start; }

/* 操作列：「编辑」实心按钮在上、「更多 ▾」白底按钮在下，一样宽（2026-12-04 用户：「上下」） */
.custom_td:has(> .lg-act-more) { flex-direction: column !important; align-items: stretch; gap: 6px; padding-top: 10px; }
.custom_td:has(> .lg-act-more) > div:first-child > .cursor-pointer {
  display: flex; justify-content: center; align-items: center; margin: 0 !important; padding: 3px 14px; border: 1px solid #0d7b6d; border-radius: 8px;
  background: #0d7b6d; color: #fff !important; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  transition: background-color .12s ease, border-color .12s ease;
}
.custom_td:has(> .lg-act-more) > div:first-child > .cursor-pointer:hover { background: #0a6659; border-color: #0a6659; }
.custom_td:has(> .lg-act-more) > div:first-child > .cursor-pointer:active { transform: translateY(1px); }

/* 手机卡片版（40-order-cards 的 body.lg-cards 会把最后一格强制排成一行）：同样上下排，按钮加高方便手指点 */
body.lg-cards #app div.my_table .custom_tr > .custom_td:last-child:has(> .lg-act-more) { flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
body.lg-cards #app .custom_td:has(> .lg-act-more) > div:first-child > .cursor-pointer,
body.lg-cards #app .lg-act-more > button { padding-top: 7px; padding-bottom: 7px; font-size: 14px; }

/* 「更多 ▾」按钮：白底描边（同订单列表的「更多」） */
.lg-act-more { margin: 0; }
.lg-act-more > button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; width: 100%; justify-content: center; align-items: center; gap: 3px;
  padding: 3px 10px; border: 1px solid #dfe5ea; border-radius: 8px; background: #fff;
  font-size: 13px; line-height: 1.4; color: #3d4856; white-space: nowrap;
  transition: background-color .12s ease, border-color .12s ease;
}
.lg-act-more > button:hover, .lg-act-more > button[aria-expanded="true"] { background: #f3f6f7; border-color: #b9c3cc; }
.lg-act-more > button:focus-visible { outline: 2px solid #0d7b6d; outline-offset: 2px; }
.lg-act-more svg { width: 12px; height: 12px; fill: none; stroke: #7a8594; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.lg-act-more > button[aria-expanded="true"] svg { transform: rotate(180deg); }

/* 下拉（挂在 body 上） */
#lg-act-menu {
  position: fixed; z-index: 3000; min-width: 150px; padding: 5px; border-radius: 10px; background: #fff;
  box-shadow: 0 10px 28px rgba(15, 35, 52, .16), 0 0 0 1px rgba(15, 35, 52, .06);
}
#lg-act-menu[hidden] { display: none; }
#lg-act-menu button {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%;
  padding: 7px 12px; border-radius: 6px; font-size: 13px; color: #3d4856; white-space: nowrap;
}
#lg-act-menu button:hover, #lg-act-menu button:focus-visible { background: #f3f6f7; color: #0d7b6d; }
#lg-act-menu button.is-danger { color: #d9443f; }
#lg-act-menu button.is-danger:hover, #lg-act-menu button.is-danger:focus-visible { background: #fdecec; color: #d9443f; }
