/* 2.4 规则配置：应用列表 + 侧开详情（基础信息 / 基础报价表 + 规则页签） */
.list-panel:has(.v23-app-tag-table) .expense-grid-wrap {
  width: 100%;
}
.expense-grid-table.v23-app-tag-table {
  width: max(100%, 1560px);
  min-width: 1560px;
  table-layout: fixed;
}
.v23-app-tag-table col.v23-col-w-tag-id { width: 56px; }
.v23-app-tag-table col.v23-col-w-brand { width: 88px; }
.v23-app-tag-table col.v23-col-w-platform { width: 72px; }
.v23-app-tag-table col.v23-col-w-app { width: 148px; }
.v23-app-tag-table col.v23-col-w-res-tag { width: 132px; }
.v23-app-tag-table col.v23-col-w-promo { width: 108px; }
.v23-app-tag-table col.v23-col-w-res-type { width: 72px; }
.v23-app-tag-table col.v23-col-w-volume { width: 112px; }
.v23-app-tag-table col.v23-col-w-book-tag { width: 84px; }
.v23-app-tag-table col.v23-col-w-phone { width: 116px; }
.v23-app-tag-table col.v23-col-w-creator { width: 72px; }
.v23-app-tag-table col.v23-col-w-rule { width: 148px; }
.v23-app-tag-table col.v23-col-w-status { width: 64px; }
.v23-app-tag-table col.v23-col-w-remark { width: 108px; }
.v23-app-tag-table col.v23-col-w-actions { width: 72px; }
.v23-app-tag-table th.col-actions-sticky,
.v23-app-tag-table td.col-actions-sticky {
  width: 72px;
}
.v23-app-tag-table th {
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}
.v23-app-tag-table td {
  min-width: 0;
  overflow: hidden;
  vertical-align: middle;
}
.v23-app-tag-table th,
.v23-app-tag-table td {
  text-align: left;
}
.v23-app-tag-table th:nth-child(1),
.v23-app-tag-table td:nth-child(1),
.v23-app-tag-table th:nth-child(9),
.v23-app-tag-table td:nth-child(9) {
  text-align: center;
}
.v23-app-tag-table td:nth-child(9) {
  font-variant-numeric: tabular-nums;
}
.v23-app-tag-table .v23-app-name-link {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.page-list-shell .v23-app-tag-table th,
.page-list-shell .v23-app-tag-table td,
.page-list-shell .v23-app-tag-table .col-num {
  text-align: left;
}
.page-list-shell .v23-app-tag-table th:nth-child(1),
.page-list-shell .v23-app-tag-table td:nth-child(1),
.page-list-shell .v23-app-tag-table th:nth-child(9),
.page-list-shell .v23-app-tag-table td:nth-child(9) {
  text-align: center;
}
.v23-cell-ellipsis {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v23-code {
  font-size: 12px;
  color: #595959;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
}
.v23-rule-drawer-body .v23-drawer-nav {
  padding: 12px 20px 0;
  background: #fff;
  flex-shrink: 0;
}
.v23-rule-drawer-body:has(.v23-drawer-nav) {
  padding-top: 0;
}
html.v23-embed .v23-embed-biz-chips .filter-chip {
  text-decoration: none;
}
.v23-drawer-pane {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
}
.v23-basic-drawer-pane {
  padding: 16px 20px 20px;
}
.v23-basic-drawer-pane .drawer-form {
  margin-bottom: 0;
}
/* 基础信息：双列表单项内输入框统一 260px，避免 full 行撑满整宽 */
.v23-basic-drawer-pane .drawer-form .drawer-input-control {
  flex: 0 0 260px;
  max-width: 260px;
  width: 260px;
}
.v23-basic-drawer-pane .drawer-form .drawer-input-field--full .drawer-input-control {
  flex: 0 0 260px;
  max-width: 260px;
  width: 260px;
}
.v23-basic-drawer-pane .drawer-form .drawer-input-row {
  width: 100%;
}
.v23-basic-drawer-pane .drawer-form .drawer-input {
  max-width: none;
  width: 100%;
}
.v23-quote-pane .v23-quote-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #8c8c8c;
}
.v23-scope-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 0;
  font-size: 13px;
  color: #595959;
  flex-wrap: wrap;
}
.v23-scope-back {
  color: #1890ff;
  text-decoration: none;
  margin-right: 4px;
}
.v23-scope-back:hover { color: #096dd9; }
.v23-scope-bar strong {
  color: #262626;
  font-size: 15px;
  font-weight: 600;
}
.v23-scope-meta { color: #8c8c8c; }
.v23-sku-sub {
  margin-top: 2px;
  color: #8c8c8c;
  font-size: 12px;
  line-height: 1.4;
}
.v23-status-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
#page-drawer.v23-rule-drawer .drawer-panel.v23-rule-panel {
  width: min(1360px, calc(100vw - 48px));
}
#page-drawer.v23-rule-drawer .v23-rule-drawer-body {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.v23-rule-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}
html.v23-embed #app-sidebar,
html.v23-embed #app-root .h-14,
html.v23-embed #top-page-tab-bar,
html.v23-embed #page-help-fab,
html.v23-embed .page-help-fab,
html.v23-embed .v23-scope-bar,
html.v23-embed .page-list-shell > .page-subtabs {
  display: none !important;
}
/* 嵌入 iframe：只保留列表内容区，去掉侧栏 + 顶栏占位列 */
html.v23-embed #app-root > .flex.h-screen {
  display: block !important;
  height: auto !important;
  min-height: 100%;
  overflow: visible;
  background: #fff;
}
html.v23-embed #app-root > .flex.h-screen > aside#app-sidebar {
  display: none !important;
}
html.v23-embed #app-root > .flex.h-screen > .flex-1 {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0;
}
html.v23-embed #app-root > .flex.h-screen > .flex-1 > .h-14 {
  display: none !important;
}
html.v23-embed #app-root > .flex.h-screen > .flex-1 > #top-page-tab-bar {
  display: none !important;
}
html.v23-embed body {
  overflow: auto;
  background: #fff;
}
.v23-scope-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.v23-scope-k {
  color: #8c8c8c;
  font-size: 12px;
}
html.v23-embed #app-root > .flex.h-screen,
html.v23-embed #app-root .h-full.bg-\[\#f4f5f7\],
html.v23-embed .page-list-shell {
  background: #fff;
}
html.v23-embed #app-root .h-full.bg-\[\#f4f5f7\] {
  padding: 0;
}
html.v23-embed .page-list-shell {
  border-radius: 0;
}
/* 嵌入侧开抽屉后，内部再打开的配置（调价、批量、日历、围栏、优惠券）改为居中弹窗 */
html.v23-embed #page-drawer.v23-rule-drawer.open,
html.v23-embed #page-drawer.v24-detail-drawer.open {
  display: block !important;
  align-items: unset !important;
  justify-content: unset !important;
  padding: 0 !important;
}
html.v23-embed #page-drawer.v23-rule-drawer.open .drawer-panel,
html.v23-embed #page-drawer.v24-detail-drawer.open .drawer-panel {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  bottom: 8px !important;
  left: auto !important;
  width: min(1180px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px);
  height: auto !important;
  max-height: none !important;
  transform: translateX(0) !important;
  opacity: 1 !important;
  border-radius: 8px;
}
/* iframe 内列表页打开的居中配置弹窗仍走下方 .open 居中规则 */
html.v23-embed #page-drawer.open:not(.v23-rule-drawer):not(.v24-detail-drawer) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
html.v23-embed #page-drawer .drawer-panel {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: min(880px, calc(100% - 16px));
  max-width: calc(100% - 16px);
  height: auto;
  max-height: calc(100% - 16px);
  transform: scale(.96);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
html.v23-embed #page-drawer.open .drawer-panel {
  transform: scale(1);
  opacity: 1;
}
html.v23-embed #page-drawer .drawer-panel.drawer-panel-wide,
html.v23-embed #page-drawer.open .drawer-panel.drawer-panel-wide {
  width: min(1080px, calc(100% - 16px));
}
html.v23-embed #page-drawer .drawer-panel.drawer-panel-maximized,
html.v23-embed #page-drawer.open .drawer-panel.drawer-panel-maximized {
  top: auto;
  right: auto;
  bottom: auto;
  width: min(1080px, calc(100% - 16px)) !important;
  max-width: calc(100% - 16px);
  height: auto;
  max-height: calc(100% - 16px);
  border-radius: 8px;
  border: 1px solid #dce3ee;
}
html.v23-embed .page-subtabs,
html.v23-embed .page-list-shell > .page-subtabs {
  display: none !important;
}
html.v23-embed #page-drawer .drawer-panel.v24-form-panel,
html.v23-embed #page-drawer .drawer-panel:not(.drawer-panel-maximized) {
  display: flex;
  flex-direction: column;
  min-height: min(520px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
}
html.v23-embed #page-drawer .v24-form-panel > .drawer-body,
html.v23-embed #page-drawer .drawer-panel > .drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
html.v23-embed #page-drawer .drawer-footer,
html.v23-embed #page-drawer .config-form-footer {
  flex-shrink: 0;
  margin-top: auto;
}
.v23-rule-drawer-body > .v23-iframe-host[data-v23-tab="quoteNote"] {
  flex: 1 1 auto;
  min-height: 0;
}
.v23-rule-drawer-body > .v23-iframe-host[data-v23-tab="quoteNote"] .v23-rule-frame {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}
.v23-rule-drawer-body > .v23-iframe-host {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.v23-iframe-host .v23-rule-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}
html.v23-embed .v23-iframe-host .page-list-shell,
html.v23-embed .v23-iframe-host #app-root > .flex.h-screen {
  min-height: 0;
}
html.v23-embed #page-drawer .drawer-body {
  max-height: calc(100vh - 168px);
}
html.v23-embed #page-drawer [data-drawer-maximize] {
  display: none;
}
.goods-name {
  display: inline-block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.goods-table th:first-child,
.goods-table td:first-child,
.activity-table th:first-child,
.activity-table td:first-child {
  width: 36px;
}
.activity-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #e10600;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.activity-table tr.is-selected td {
  background: #fffbe6;
}
.city-sku-editor-table--commission .drawer-select--sm {
  min-width: 72px;
  padding: 4px 8px;
  font-size: 13px;
}
.city-sku-editor-table--commission [data-city-sku-commission-rate] {
  width: 64px;
}
.platform-price-city-table--commission th,
.platform-price-city-table--commission td {
  white-space: nowrap;
}
.platform-price-city-table tr.is-row-editing td {
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  background: #f0f7ff;
  vertical-align: middle;
}
.platform-price-city-table tr.is-row-editing td.col-actions-sticky {
  background: #f0f7ff;
}
.base-quote-table tr.is-row-editing td {
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  background: #f0f7ff;
  vertical-align: middle;
}
.base-quote-table tr.is-row-editing td.col-actions-sticky,
.base-quote-table tr.is-row-editing td.col-sticky {
  background: #f0f7ff;
}
.base-quote-table .base-matrix-input {
  width: 100%;
  min-width: 56px;
  max-width: 96px;
  height: 28px;
  padding: 0 8px;
  text-align: right;
}
.base-quote-table .offer-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.platform-price-city-table .offer-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.platform-price-city-table .offer-inline .drawer-select,
.platform-price-city-table .offer-inline .drawer-input {
  width: 76px;
  height: 28px;
  min-width: 0;
  padding: 0 6px;
  font-size: 12px;
  background: #fff;
}
.platform-price-city-table .offer-inline--time .drawer-input {
  width: 188px;
}
.platform-price-city-table .offer-inline--rule .drawer-input {
  width: 108px;
}
.platform-price-city-table .offer-inline-unit {
  color: #8c8c8c;
  font-size: 12px;
}
.platform-price-city-table .offer-row-actions {
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}

/* 应用列表按内容计算列宽，时间完整显示。 */
.expense-grid-table.v23-app-tag-table { table-layout:auto; width:max-content; min-width:100%; }
.page-list-shell .v23-app-tag-table th,
.page-list-shell .v23-app-tag-table td { width:auto; white-space:nowrap; }
.page-list-shell .v23-app-tag-table .v23-col-datetime { min-width:max-content; white-space:nowrap; overflow:visible; text-overflow:clip; font-variant-numeric:tabular-nums; text-align:left; }
.v23-app-tag-table .v23-col-app-name { min-width:180px; }
.v23-app-tag-table .v23-cell-ellipsis { max-width:240px; }
