.tmall-board-workspace{
  --tmall-board-font-size:14px;
  --tmall-toolbar-height:36px;
  --tmall-cell-height:30px;
  --tmall-cell-gutter:6px;
  display:grid;grid-column:1/-1;grid-template-columns:166px minmax(0,1fr);min-width:0;
  font-size:var(--tmall-board-font-size);
}
.tmall-board-sidebar{display:flex;flex-direction:column;gap:16px;min-width:0;padding:20px 12px 18px;border-right:1px solid #ebdfd0;background:#fbfaf7}
.tmall-board-sidebar-footer{display:grid;gap:8px;margin-top:auto}
.tmall-board-sidebar-footer .el-dropdown,.tmall-board-sidebar-footer .el-dropdown .el-button{width:100%}
.tmall-board-main{min-width:0;padding:26px 18px}
.tmall-board-frame{min-width:0;padding:20px;border:1px solid #ebdfd0;border-radius:10px;background:#fffdfa;box-shadow:0 8px 26px #61401908}
.tmall-board-frame>.supply-module-content>.tmall-sales-dashboard{margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.tmall-native-fields .tmall-readonly-cell{display:flex;align-items:center;justify-content:flex-end;min-height:24px;padding:0 8px;border-radius:4px;box-shadow:0 0 0 1px var(--el-border-color) inset;background:var(--el-fill-color-light);color:var(--el-text-color-regular)}
.tmall-native-fields .el-input__wrapper,.tmall-native-fields .el-select__wrapper{min-height:24px;border-radius:4px}
.tmall-native-link{display:flex;align-items:center;gap:8px}
.tmall-native-link a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tmall-board-nav{display:grid;gap:9px;min-width:0}
.tmall-board-nav>button{display:block;width:100%;padding:12px 13px;border:1px solid transparent;border-radius:8px;background:transparent;color:#534c42;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;font:inherit;font-weight:650}
.tmall-board-nav>button:hover{background:#faf4ec}
.tmall-board-nav>button.active{border-color:#d9b88e;background:#f7eee1;color:#81501d;box-shadow:inset 3px 0 #9e6427}
.tmall-board-create,.tmall-board-library,.tmall-board-add-tab{min-height:32px;padding:5px 11px;border:1px solid #d9dfe7;border-radius:6px;background:#fff;color:#305f97;white-space:nowrap;cursor:pointer;font:inherit}
.tmall-board-create{border-color:#dac7ae;color:#6a5135;font-weight:650}
.tmall-board-tabs,.tmall-board-skills,.tmall-setting-row{display:flex;align-items:center;gap:8px}
.tmall-board-skills,.tmall-setting-row{flex-wrap:wrap}
.tmall-board-tabs{min-width:0;min-height:46px;margin:0 0 14px;border-bottom:1px solid #dfe5ed}
.tmall-board-tab-items{display:flex;flex:1;gap:8px;min-width:0;overflow-x:auto}
.tmall-board-tabs{position:relative;z-index:4}
.tmall-board-tab-items>button{position:relative;z-index:5;flex:none;min-height:40px;padding:10px 16px;border:0;border-bottom:2px solid transparent;background:transparent;color:#455164;white-space:nowrap;cursor:pointer;font:inherit;font-weight:650}
.tmall-board-tab-items>button.active{color:#165eae;border-bottom-color:#2181f5}
.tmall-board-add-tab{flex:none;margin-inline-start:auto;background:#f1f6fc;border-color:#dce8f5;color:#476684}
.tmall-board-add-tab:hover{background:#e8f1fb;border-color:#c9dcef;color:#365d83}
.tmall-board-data{min-width:0;overflow:auto}
.tmall-board-skills{min-height:32px;margin-bottom:10px}
.tmall-board-config-status{color:#655a50;font-size:13px}
.tmall-board-skills .el-button+.el-button,.tmall-setting-row .el-button+.el-button{margin-left:0}
.tmall-settings-stack,.tmall-skill-action-settings{display:grid;gap:8px}
.tmall-setting-row{margin:6px 0}
.tmall-setting-row>strong{min-width:85px}
.tmall-setting-row>.el-select,.tmall-setting-row>.el-input{width:clamp(135px,23vw,205px)}
.tmall-skill-action-settings{margin:10px 0;padding:8px;border:1px solid #dce5f1;border-radius:6px}
@media(max-width:760px){
  .tmall-board-workspace{grid-template-columns:minmax(0,1fr)}
  .tmall-board-sidebar{padding:10px;gap:8px;border-right:0;border-bottom:1px solid #ebdfd0}
  .tmall-board-nav{display:flex;overflow-x:auto}
  .tmall-board-nav>button{flex:none;width:auto;padding:8px 10px}
  .tmall-board-sidebar-footer{display:flex;align-items:center;gap:8px;min-height:34px;overflow-x:auto;margin-top:0}
  .tmall-board-sidebar-footer>*,.tmall-board-skills>*{flex:none}
  .tmall-board-skills{flex-wrap:nowrap;min-height:34px;overflow-x:auto}
  .tmall-board-sidebar-footer .el-dropdown{width:auto}
  .tmall-board-main{padding:10px}
  .tmall-board-frame{padding:10px}
}
@media(max-width:520px){
  .tmall-board-nav,.tmall-board-tab-items{gap:5px}
  .tmall-board-tab-items>button,.tmall-board-add-tab{padding-inline:8px}
  .tmall-setting-row>.el-select,.tmall-setting-row>.el-input{width:100%}
}

.tmall-board-sidebar{position:sticky;top:64px;height:calc(100vh - 64px);max-height:calc(100vh - 64px);box-sizing:border-box;overflow:hidden}.tmall-board-nav{overflow-y:auto;min-height:0}.tmall-board-sidebar-footer{flex:none;grid-template-columns:1fr auto}.tmall-board-library{grid-column:1/-1}.tmall-sidebar-toggle{align-self:flex-start;border:0;background:transparent;color:#756b5e;cursor:pointer}.tmall-board-nav>button.tmall-attack-board{color:#d93636}.tmall-board-workspace.is-collapsed{grid-template-columns:38px minmax(0,1fr)}.is-collapsed .tmall-board-sidebar{padding:10px 4px}.is-collapsed .tmall-board-nav,.is-collapsed .tmall-board-sidebar-footer{display:none}

.tmall-current-rule-select .el-select__wrapper{background:var(--tmall-rule-background,#fff);--el-text-color-regular:var(--tmall-rule-color,#303133)}.tmall-current-goal .el-select__wrapper{border-radius:18px}.tmall-followup-actions{display:flex;gap:8px;margin-left:auto;align-items:center}.tmall-followup-actions .el-button{height:32px;margin:0}.tmall-current-product-control{min-width:0}

.tmall-setting-row.tmall-skill-catalog-row{display:grid;grid-template-columns:minmax(140px,1fr) 80px 115px 82px 48px;gap:8px;align-items:center}.tmall-setting-row.tmall-skill-catalog-row>.el-input,.tmall-setting-row.tmall-skill-catalog-row>.el-select{width:100%;min-width:0}.tmall-skill-catalog-row>.el-button{margin:0}@media(max-width:680px){.tmall-setting-row.tmall-skill-catalog-row{grid-template-columns:minmax(0,1fr) 80px}.tmall-skill-catalog-row>.el-select{grid-column:1}.tmall-skill-catalog-row>.el-button:last-child{grid-column:2}}

.tmall-board-sidebar-footer{position:fixed;left:28px;bottom:12px;width:154px;display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:8px;min-height:0;margin:0;padding:0;overflow:visible;background:#fbfaf7;z-index:1000}.tmall-board-sidebar-footer .tmall-board-library{grid-column:1/-1;width:100%}.tmall-board-workspace{padding-bottom:90px}.tmall-board-sidebar-footer .el-dropdown{width:32px}.tmall-board-sidebar-footer .el-button{padding-inline:5px}@media(max-width:860px){.tmall-board-sidebar{position:relative;top:auto;height:auto;max-height:none}.tmall-board-sidebar-footer{position:fixed;left:16px;bottom:12px;width:154px;display:grid;grid-template-columns:minmax(0,1fr) 32px}.tmall-board-main{padding-bottom:95px}}

/* Department header remains readable inside the sidebar-constrained content width. */
.tmall-board-workspace .head-products-header{display:flex;flex-wrap:wrap;align-items:center}.tmall-board-workspace .head-title-row{flex:0 1 auto}.tmall-board-workspace .head-product-filters{flex:1 1 100%;order:3;flex-wrap:wrap}.tmall-board-workspace .head-products-actions{flex:0 0 auto;max-width:100%;margin-left:auto;flex-wrap:wrap}.tmall-board-workspace .head-products-actions>*{flex-shrink:0}.tmall-followup-actions{flex-wrap:wrap}.tmall-followup-actions>.el-button,.tmall-followup-actions>[data-ym-fields-toolbar] button{width:112px;height:32px;box-sizing:border-box;margin:0}

.tmall-board-workspace .head-products-actions>.el-button.tmall-new-record-button,.tmall-board-workspace .head-products-actions>[data-ym-fields-toolbar] button{width:140px;height:32px;box-sizing:border-box}

.tmall-new-record-button.el-button{width:104px;height:32px;font-size:14px;box-sizing:border-box}.tmall-board-workspace .head-products-actions>.tmall-new-record-button{width:140px}

.tmall-board-workspace .head-toolbar .tmall-new-record-button{width:140px}

.tmall-board-workspace .head-toolbar>[data-ym-fields-toolbar] button{width:140px;height:32px;box-sizing:border-box}

.tmall-board-workspace .unsold-followup-head .tmall-new-record-button,.tmall-followup-field-button{width:140px;height:32px;box-sizing:border-box}

.tmall-board-workspace .tmall-new-record-button.el-button{height:32px!important;min-height:32px;max-height:32px;box-sizing:border-box}

/* One viewport anchor: outer grid/overflow and content height cannot move navigation. */
.tmall-regions-workspace{--tmall-nav-top:72px;grid-template-columns:166px minmax(0,1fr)}
.tmall-regions-workspace>.tmall-board-sidebar{position:fixed;top:var(--tmall-nav-top);left:16px;bottom:12px;width:166px;height:auto;max-height:none;padding:12px 12px 92px;box-sizing:border-box;z-index:100;overflow:visible;gap:12px}
.tmall-regions-workspace .tmall-board-nav{display:flex;flex-direction:column;flex:1;overflow-y:auto;overflow-x:hidden;gap:8px;min-height:0;scrollbar-gutter:stable}
.tmall-regions-workspace .tmall-board-nav>button{flex:none;min-height:44px;width:100%;padding:10px 8px;font-size:16px;line-height:22px;white-space:normal;overflow-wrap:anywhere;font-weight:650;box-sizing:border-box}
.tmall-regions-workspace .tmall-sidebar-toggle{flex:none;min-width:28px;min-height:28px;margin:0;padding:0;line-height:28px}
.tmall-regions-workspace>.tmall-board-main{grid-column:2;min-width:0}
.tmall-regions-workspace .tmall-board-sidebar-footer{position:fixed;left:28px;bottom:12px;width:142px;display:grid;grid-template-columns:1fr;gap:8px;background:#fbfaf7;z-index:101}
.tmall-regions-workspace .tmall-board-sidebar-footer .el-dropdown{width:100%;display:block}
.tmall-regions-workspace .tmall-board-create,.tmall-regions-workspace .tmall-board-library{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:100%;height:32px;padding:0 10px;box-sizing:border-box;font-size:14px;line-height:30px;font-weight:500}
.tmall-regions-workspace.is-collapsed{grid-template-columns:38px minmax(0,1fr)}
.tmall-regions-workspace.is-collapsed>.tmall-board-sidebar{width:38px;padding-inline:4px;border-right:0}
.tmall-regions-workspace.is-collapsed .tmall-board-nav{display:none}
.tmall-regions-workspace.is-collapsed .tmall-board-sidebar-footer{display:grid}
.tmall-region-icon{display:inline-block;flex:none;width:17px;height:17px;vertical-align:middle}
.tmall-region-searches{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:0 0 12px;min-width:0}
.tmall-region-searches>label{display:grid;gap:5px;min-width:140px;max-width:240px;font-size:13px}
.tmall-region-searches>label>.el-select,.tmall-region-searches>label>.el-input{width:100%}
.tmall-region-searches .head-product-filters,.tmall-region-searches .filter-bar{flex:1 1 100%;margin:0;min-width:0;flex-wrap:wrap}
.tmall-region-empty{color:#77716a;font-size:13px;line-height:1.6}
.tmall-region-target{display:flex;align-items:flex-start;gap:8px;min-width:0;margin:0 0 12px;padding:10px 12px;border:1px solid #e7d9c9;border-radius:8px;line-height:1.6;overflow-wrap:anywhere}
.tmall-region-target>span{min-width:0;white-space:pre-wrap}
.tmall-region-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;margin:0 0 14px}
.tmall-region-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;max-width:100%;min-height:32px;height:auto;box-sizing:border-box;margin:0;padding:6px 13px;border:1px solid #d8c8b8;border-radius:8px;background:#fff;color:#5f4b3b;font:inherit;font-size:13px;line-height:18px;cursor:pointer;white-space:normal}
.tmall-region-button>span{min-width:0;overflow-wrap:anywhere;text-align:left}
.tmall-region-button.is-plain{border-color:transparent;background:transparent}
.tmall-region-button:focus-visible,.tmall-board-create:focus-visible{outline:2px solid #9d7348;outline-offset:2px}
.tmall-region-button:hover{border-color:#b98a5b;box-shadow:0 2px 6px #784d2512}
.tmall-region-button:disabled{opacity:.55;cursor:not-allowed}
.tmall-region-row-actions{display:inline-flex;align-items:center;gap:12px;padding:0 8px;white-space:nowrap;min-width:max-content;box-sizing:border-box}
.tmall-region-row-actions>.el-button{margin:0;padding:4px 0;flex:none;height:auto;white-space:nowrap}
.tmall-region-operation-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 8px}
.tmall-region-operation-header>.el-button{min-width:26px;min-height:26px;padding:3px;margin:0}
.tmall-region-operation-column .cell{overflow:visible!important;text-overflow:clip!important;padding-inline:8px!important;white-space:nowrap!important}
.tmall-tab-editor-row{display:flex;align-items:center;gap:8px;margin:10px 0;flex-wrap:wrap}
.tmall-tab-editor-row>.el-input{flex:1 1 180px;min-width:140px}
.tmall-tab-editor-row>.el-button{flex:none;margin:0}
.tmall-region-search-editor{display:grid;grid-template-columns:minmax(120px,1fr) minmax(160px,1fr) 120px 90px;gap:8px;margin:10px 0}
.tmall-region-record-choice{display:block!important;margin:8px 0!important;max-width:100%;height:auto!important;min-height:32px;white-space:normal!important;overflow-wrap:anywhere;text-align:left}
.tmall-skill-appearance{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0}
.tmall-native-legacy-actions{display:none!important}
@media(max-width:760px){
 .tmall-regions-workspace{grid-template-columns:38px minmax(0,1fr)}
 .tmall-regions-workspace>.tmall-board-sidebar{left:8px;width:166px;top:72px;box-shadow:3px 0 8px #61401912}
 .tmall-regions-workspace.is-collapsed>.tmall-board-sidebar{box-shadow:none}
 .tmall-regions-workspace .tmall-board-sidebar-footer{left:16px;width:142px}
 .tmall-regions-workspace>.tmall-board-main{padding:10px 8px 100px}
 .tmall-regions-workspace .tmall-board-frame{padding:10px}
 .tmall-region-search-editor{grid-template-columns:1fr 1fr}
 .tmall-region-target{flex-wrap:wrap}
 .tmall-region-searches>label{flex:1 1 180px;max-width:none}
}

.tmall-module-shell{overflow-x:clip;overflow-y:visible}.tmall-region-toolbar{align-items:stretch}.tmall-region-icon{color:var(--tmall-icon-color,currentColor)}.tmall-setting-row.tmall-skill-catalog-row{grid-template-columns:minmax(140px,1fr) 120px 100px 82px 48px 48px}@media(max-width:680px){.tmall-setting-row.tmall-skill-catalog-row{grid-template-columns:minmax(0,1fr) 100px}}

/* One-line actions retain a common height; the action strip owns overflow. */
.tmall-region-toolbar{align-items:center;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-width:100%;padding:2px;box-sizing:border-box}
.tmall-region-button{flex:0 0 auto;width:max-content;max-width:none;height:32px;min-height:32px;max-height:32px;white-space:nowrap}
.tmall-region-button>span{white-space:nowrap;overflow-wrap:normal}
.tmall-regions-workspace.is-collapsed .tmall-board-sidebar-footer{left:16px;width:32px}
.tmall-regions-workspace.is-collapsed .tmall-board-sidebar-footer button{width:32px;padding:0}
.tmall-regions-workspace.is-collapsed .tmall-board-sidebar-footer button>span{display:none}
@media(max-width:760px){.tmall-regions-workspace:not(.is-collapsed){grid-template-columns:166px minmax(0,1fr)}}

.tmall-region-controls{display:grid;grid-template-columns:minmax(240px,1fr) 0 minmax(200px,.8fr);gap:12px;align-items:start;margin-bottom:12px;min-width:0}
.tmall-region-controls.has-target{grid-template-columns:minmax(240px,1fr) minmax(140px,.65fr) minmax(200px,.9fr)}
.tmall-region-controls>.tmall-region-searches{grid-column:1;margin:0;min-width:0}
.tmall-region-controls>.tmall-region-target{grid-column:2;margin:0;padding:3px 0;border:0;border-radius:0;line-height:24px;min-height:32px;box-sizing:border-box}
.tmall-region-controls>.tmall-region-toolbar{grid-column:3;margin:0;justify-content:flex-start;min-width:0}
@media(max-width:1000px){.tmall-region-controls,.tmall-region-controls.has-target{grid-template-columns:minmax(0,1fr)}.tmall-region-controls>.tmall-region-searches,.tmall-region-controls>.tmall-region-target,.tmall-region-controls>.tmall-region-toolbar{grid-column:1}.tmall-region-controls>.tmall-region-toolbar{justify-content:flex-start}}
@media(max-width:760px){.tmall-region-searches .head-product-filters .el-input{min-width:0;max-width:100%;flex:1 1 100%}.tmall-region-searches .filter-bar>.el-select{width:100%!important;min-width:0}}

/* The configured SVG replaces the global legacy display-fields glyph. */
.tmall-region-toolbar .tmall-region-button.ym-display-fields-button::before{content:none;display:none}

/* A read-only value and an editor each draw just one frame. */
:is(.tmall-board-workspace,.tmall-table-scope) .el-table__body td:not(.tmall-region-operation-column,.war-summary-actions-column):not(:has(.el-input,.el-select,.el-input-number,.el-textarea,.tmall-readonly-cell,button,.el-checkbox))>.cell,
:is(.tmall-board-workspace,.tmall-table-scope) .el-table__footer td>.cell{
  min-height:var(--tmall-cell-height,30px);margin-inline:var(--tmall-cell-gutter,6px);
  border:1px solid var(--el-border-color,#dcdfe6);border-radius:5px;
  background:var(--el-fill-color-blank,#fff);cursor:default;
}
.tmall-board-workspace.is-attack-board .tmall-board-tabs button.active,.tmall-board-workspace.is-attack-board .tmall-board-frame>h2{color:#d93636}
.tmall-template-row{display:flex;align-items:center;gap:8px;margin:8px 0}.tmall-template-row>span{flex:1}.tmall-template-picker{display:grid;gap:8px}.tmall-template-preview-actions{display:flex;gap:8px;margin:12px 0}.tmall-action-group{margin:12px 0;padding:12px;border:1px solid #dce5f1;border-radius:8px}.tmall-action-description{white-space:pre-wrap;padding:8px}.tmall-action-description a{display:inline-block;border:1px solid #dcdfe6;border-radius:4px;padding:4px 8px;margin-right:6px}

.tmall-native-template-preview{display:block;width:100%;height:560px;border:1px solid #dcdfe6;border-radius:8px;pointer-events:none}.tmall-template-preview-document .app-header,.tmall-template-preview-document .tmall-board-sidebar,.tmall-template-preview-document .tmall-board-sidebar-footer{display:none!important}.tmall-template-preview-document .tmall-board-workspace{grid-template-columns:minmax(0,1fr);padding:0}.tmall-template-preview-document .tmall-board-main{padding:8px}.tmall-template-preview-document body{pointer-events:none}.tmall-template-preview-document .tmall-board-create,.tmall-template-preview-document .tmall-board-add-tab{display:none}

.tmall-board-nav>button.tmall-attack-board,.tmall-board-nav>button.tmall-attack-board.active,.tmall-board-nav>button.tmall-attack-board:hover{color:#c62828}.tmall-board-workspace.is-attack-board .tmall-native-copy-heading,.tmall-board-workspace.is-attack-board .tmall-board-tabs button.active{color:#c62828}

:is(.tmall-board-workspace,.tmall-table-scope) .tmall-readonly-cell{display:flex;align-items:center;justify-content:flex-end;min-height:28px;padding:3px 8px;border-radius:4px;box-shadow:0 0 0 1px var(--el-border-color) inset;background:var(--el-fill-color-light);color:var(--el-text-color-regular);box-sizing:border-box;cursor:default}
/* TMALL-EIGHT: shared weekly cells, confined to the Tmall workspace/dialogs. */
:is(.tmall-board-workspace,body:has(.tmall-board-workspace) .tmall-table-scope) .el-table :is(th,td).el-table__cell{vertical-align:middle;text-align:center}
:is(.tmall-board-workspace,body:has(.tmall-board-workspace) .tmall-table-scope) .el-table :is(th,td).el-table__cell>.cell{display:flex;align-items:center;justify-content:center;text-align:center;min-width:0}
:is(.tmall-board-workspace,body:has(.tmall-board-workspace) .tmall-table-scope) .el-table :is(.el-input__inner,.el-textarea__inner){text-align:center}
:is(.tmall-board-workspace,body:has(.tmall-board-workspace) .tmall-table-scope) .el-table :is(.el-select__selection,.tmall-readonly-cell,.head-cell-input){justify-content:center;text-align:center}
.tmall-board-workspace .el-table .tmall-current-product-control,.tmall-board-workspace .el-table .tmall-current-product-control>.el-select{width:100%}
.tmall-head-product-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 20px;flex-wrap:wrap}
.tmall-head-product-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tmall-product-lookup{display:flex;gap:8px;align-items:center}
.tmall-product-lookup .el-input{flex:1}
.tmall-promotion-editor{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.el-table[data-ym-freeze-columns="1"] .el-table__header-wrapper th.ym-col-frozen,
.el-table[data-ym-freeze-columns="1"] .el-table__body-wrapper td.ym-col-frozen{position:relative;box-shadow:1px 0 0 #ebeef5}
.el-table[data-ym-freeze-columns="1"] .el-table__header-wrapper th.ym-col-frozen{z-index:4;background:#f5f7fa}
.el-table[data-ym-freeze-columns="1"] .el-table__body-wrapper td.ym-col-frozen{z-index:3;background:#fff}
.el-table[data-ym-freeze-columns="1"].el-table--striped .el-table__body tr.el-table__row--striped td.ym-col-frozen{background:#fafafa}
.tmall-head-product-filters,.tmall-head-product-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tmall-head-product-filters>label{font-size:14px;font-weight:650;white-space:nowrap}
.tmall-head-product-filters>.el-select{width:168px}
.tmall-head-product-filters>.el-input{width:320px;max-width:40vw}
.tmall-head-product-actions{margin-left:auto}
.tmall-head-product-actions .ym-display-fields-button::before{content:none;display:none}
.tmall-head-product-actions .el-button>span{gap:6px}
.tmall-head-product-actions .el-button+.el-button,.tmall-head-product-filters .el-button+.el-button{margin-left:0}
.tmall-head-product-tab .head-links-page,.tmall-head-product-tab .head-scroll-table{margin-top:0}
.tmall-head-product-tab.head-links-page{margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.tmall-board-workspace.has-head-products .tmall-board-tabs{margin-bottom:16px}
.tmall-regions-workspace.is-data-template .tmall-region-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tmall-regions-workspace.is-data-template .tmall-region-toolbar{margin-left:auto}
.tmall-region-button-wrap{display:inline-flex;align-items:center;gap:2px}
.tmall-split-button{display:inline-flex;flex:0 0 auto;align-items:stretch;gap:0;border:1px solid #d8c8b8;border-radius:8px;background:#fff}
.tmall-split-button>.tmall-region-button,.record-reminder-control.tmall-split-button>button:first-child{border:0;border-radius:7px 0 0 7px}
.tmall-split-button>.record-reminder-control{display:inline-flex;margin:0}
.tmall-split-button :is(.tmall-promotion-gear,.record-reminder-settings.el-button){display:inline-flex;align-items:center;justify-content:center;width:34px;min-width:34px;height:100%;min-height:30px;padding:0;margin:0;box-sizing:border-box;border:0;border-left:1px solid #d8c8b8;border-radius:0 7px 7px 0;background:#fff;color:#5f4b3b;cursor:pointer}
.tmall-split-button .record-reminder-control.is-enabled .record-reminder-settings,
.record-reminder-control.tmall-split-button.is-enabled>.record-reminder-settings.el-button{background:#eef8f1;color:#33764e;border-color:#d8c8b8}
.tmall-split-button :is(.tmall-promotion-gear,.record-reminder-settings):hover{background:#f8efe5}
.tmall-split-button :is(.tmall-promotion-gear,.record-reminder-settings):disabled{opacity:.5;cursor:default}
.tmall-split-button :is(.tmall-region-button,.tmall-promotion-gear,.record-reminder-settings):focus-visible{outline:2px solid var(--el-color-primary);outline-offset:-3px}
:is(.tmall-board-workspace,.tmall-table-scope) .el-table .tmall-rate-text{box-shadow:none;background:transparent}
.war-platform-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tmall-toolbar-center{flex:1;min-width:180px;text-align:center}
.tmall-legacy-focus-note{display:none!important}
.tmall-module-shell .el-table .cell>.el-input,.tmall-module-shell .el-table .head-cell-input{border:0;box-shadow:none;max-width:100%;background:transparent}
.tmall-module-shell .el-table .cell .el-input__wrapper{box-shadow:0 0 0 1px #dcdfe6 inset;max-width:100%}
.tmall-lock-rows .el-table__body td.tmall-region-operation-column .cell,.tmall-region-operation-column .cell,.war-summary-actions-column .cell{max-height:none;overflow:visible;white-space:nowrap}
.tmall-board-workspace .el-table__body td.el-table__cell>.cell{min-width:0;overflow:hidden}
.tmall-board-workspace .el-table__body td.el-table__cell>.cell>*{min-width:0;max-width:100%;box-sizing:border-box}
.tmall-board-workspace .el-table__body .cell :is(.el-input,.el-select,.el-date-editor,.el-input-number,.el-textarea,.head-cell-input,.ym-person-badge,.ym-person-badge-list){min-width:0;max-width:100%;box-sizing:border-box}
.tmall-board-workspace .el-table__body .cell :is(.el-input__wrapper,.el-select__wrapper,.el-select__selection){min-width:0;max-width:100%;box-sizing:border-box}
.tmall-board-workspace .el-table__body .cell :is(.el-input__inner,.el-select__selected-item,.ym-person-name){min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tmall-board-workspace .el-table__body .cell .head-cell-input :is(.el-select,.el-input){flex:1 1 0}
.tmall-board-workspace .el-table__body td.tmall-region-operation-column>.cell{justify-content:flex-start}
.ym-group-band .ym-group-name{text-align:center;font-weight:700;height:28px;line-height:1.25;padding:4px 8px}
.ym-group-editor-box{width:min(580px,calc(100vw - 28px));max-width:none}
.ym-group-editor{display:grid;gap:12px;max-height:min(62vh,530px);overflow:auto;padding:2px}
.ym-group-editor button{font:inherit;cursor:pointer;border:1px solid var(--el-border-color);border-radius:4px;background:var(--el-bg-color);color:var(--el-text-color-primary);padding:4px 8px}
.ym-group-editor button[aria-pressed="true"]{color:var(--el-color-primary);border-color:var(--el-color-primary)}
.ym-group-editor button:disabled{opacity:.45;cursor:default}
.ym-group-tabs,.ym-group-name-input{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.ym-group-name-input{justify-content:space-between}
.ym-group-name-input label{display:flex;align-items:center;gap:8px}
.ym-group-name-input input{font:inherit;border:1px solid var(--el-border-color);border-radius:4px;padding:5px 8px}
.ym-group-editor fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:6px;margin:10px 0;border:1px solid var(--el-border-color)}
.ym-group-choice{display:flex;align-items:center;gap:4px;min-width:0;overflow-wrap:anywhere}
.ym-group-choice small{color:var(--el-text-color-secondary)}
.ym-group-order{display:grid;gap:4px;margin:8px 0;padding-left:24px}
.ym-group-order li span{margin-right:8px}
.ym-group-order li button{margin-right:4px}
.ym-group-error{color:var(--el-color-danger)}
.tmall-head-product-tab .el-pagination{margin-top:12px}
@media(max-width:760px){.tmall-head-product-toolbar{gap:12px}.tmall-head-product-filters{width:100%}.tmall-head-product-filters>.el-input{width:100%;max-width:none;flex:1 1 200px}.tmall-head-product-actions{width:100%;margin-left:0;justify-content:flex-end}}

/* Use the same density for native, copied and saved board pages. */
.tmall-board-workspace :is(.tmall-board-nav,.tmall-board-tab-items,.tmall-region-searches,.tmall-region-controls,.tmall-head-product-toolbar,.tmall-head-product-filters,.tmall-head-product-actions,.war-platform-toolbar){
  gap:8px;
}
.tmall-board-workspace :is(.tmall-board-nav>button,.tmall-board-tab-items>button,.tmall-region-searches>label){
  font-size:var(--tmall-board-font-size);
}
.tmall-board-workspace :is(.tmall-board-create,.tmall-board-library,.tmall-board-add-tab,.tmall-region-button){
  height:var(--tmall-toolbar-height);min-height:var(--tmall-toolbar-height);max-height:none;
  font-size:var(--tmall-board-font-size);
}
.tmall-board-workspace :is(.tmall-region-searches,.tmall-head-product-filters,.tmall-head-product-actions,.war-platform-toolbar,.tmall-followup-actions) :is(.el-input,.el-select,.el-button,.el-date-editor){
  font-size:var(--tmall-board-font-size);
  --el-component-size:var(--tmall-toolbar-height);--el-input-height:var(--tmall-toolbar-height);
}
.tmall-board-workspace :is(.tmall-region-searches,.tmall-head-product-filters,.tmall-head-product-actions,.war-platform-toolbar,.tmall-followup-actions) :is(.el-input__wrapper,.el-select__wrapper,.el-button:not(.is-link),.el-date-editor--daterange){
  min-height:var(--tmall-toolbar-height);box-sizing:border-box;
}
.tmall-board-workspace .tmall-split-button{height:var(--tmall-toolbar-height);box-sizing:border-box}
.tmall-board-workspace .tmall-split-button>.tmall-region-button{height:100%;min-height:0}
.tmall-board-workspace .tmall-split-button :is(.tmall-promotion-gear,.record-reminder-settings.el-button){min-height:0}
.tmall-board-workspace .record-reminder-control.tmall-split-button>button.tmall-new-record-button{height:100%!important;min-height:0;max-height:none}
.tmall-board-workspace .tmall-region-controls>.tmall-region-toolbar{justify-content:flex-end}
.tmall-board-workspace .tmall-head-product-toolbar>.tmall-region-toolbar{margin:0 0 0 auto}
@media(min-width:1230px) and (max-width:1530px){
  .tmall-regions-workspace.is-data-template .tmall-region-searches>.el-select{max-width:150px}
  .tmall-regions-workspace.is-data-template .tmall-region-searches>.unified-week-input{max-width:168px}
}

.tmall-board-workspace .el-table{
  --el-table-border-color:#e9edf2;--el-table-header-text-color:#4c5665;
  font-size:var(--tmall-board-font-size);
}
.tmall-board-workspace .el-table__header-wrapper th.el-table__cell:not(.ym-group-name){
  height:60px;box-sizing:border-box;padding:6px 0;vertical-align:middle;
}
.tmall-board-workspace .el-table__header-wrapper th.el-table__cell>.cell{
  padding-inline:var(--tmall-cell-gutter);line-height:1.35;word-break:normal;overflow-wrap:anywhere;
}
.tmall-board-workspace .el-table__body td.el-table__cell{
  height:50px;box-sizing:border-box;padding:6px 0;font-size:var(--tmall-board-font-size);
}
.tmall-board-workspace .el-table__body td.el-table__cell>.cell,
.tmall-board-workspace .el-table__footer td.el-table__cell>.cell{
  min-width:0;width:auto!important;padding-inline:var(--tmall-cell-gutter);line-height:1.4;
}
.tmall-board-workspace .el-table__body td :is(.el-form,.tmall-readonly-cell){width:100%;max-width:100%;min-width:0}
.tmall-board-workspace .el-table__body td .el-form-item{margin-bottom:0}
.tmall-board-workspace .el-table__body td :is(.el-input,.el-select,.el-date-editor,.el-textarea,.el-input-number){
  --el-input-height:var(--tmall-cell-height);--el-component-size-small:var(--tmall-cell-height);
  font-size:var(--tmall-board-font-size);
}
.tmall-board-workspace .el-table__body td :is(.el-input__wrapper,.el-select__wrapper,.tmall-readonly-cell){
  min-height:var(--tmall-cell-height);box-sizing:border-box;border-radius:5px;
}
.tmall-board-workspace .el-table__body td :is(.el-input__wrapper,.el-select__wrapper){padding-inline:6px}
.tmall-board-workspace .el-table__body td .el-select__wrapper{gap:4px}
.tmall-board-workspace .el-table .el-table__body td.el-table__cell.is-right>.cell,
.tmall-board-workspace .el-table .el-table__body td.is-right .tmall-readonly-cell,
.tmall-board-workspace .el-table .el-table__footer td.is-right>.cell{justify-content:flex-end;text-align:right;font-variant-numeric:tabular-nums}
.tmall-board-workspace .el-table__body td.is-right input.el-input__inner{text-align:right;font-variant-numeric:tabular-nums}
.tmall-board-workspace .el-table .el-table__body td.el-table__cell.is-left>.cell,
.tmall-board-workspace .el-table .el-table__body td:has(.ym-person-badge,.ym-person-badge-list) .el-select__selection{
  justify-content:flex-start;text-align:left;
}
.tmall-board-workspace .el-table__body td:has(.unsold-history-week)>.cell{flex-wrap:wrap;gap:4px}
.tmall-board-workspace .el-table__body td .el-input-group__append{padding-inline:4px;flex-shrink:1}
.tmall-board-workspace .el-table__body td :is(.head-cell-input,.tmall-native-link){min-width:0;max-width:100%}
.tmall-board-workspace .el-table__body td .tmall-region-row-actions{gap:8px}
.tmall-board-workspace .tmall-region-row-actions>.el-button{font-size:var(--tmall-board-font-size)}

@media(max-width:1000px){
  .tmall-board-workspace .tmall-region-controls>.tmall-region-toolbar{justify-content:flex-start}
  .tmall-board-workspace .tmall-region-toolbar{flex-wrap:wrap;overflow:visible}
}
@media(max-width:760px){
  .tmall-board-workspace .tmall-head-product-toolbar>.tmall-region-toolbar{margin-inline-start:0}
  .tmall-regions-workspace .tmall-board-frame{padding:12px}
  .tmall-board-workspace .tmall-region-searches>*{max-width:100%;min-width:0}
}
@media (max-width: 760px) {
  body:has(.tmall-board-workspace) .topbar {
    padding-inline: 10px;
  }
  body:has(.tmall-board-workspace) .topbar .motto,
  body:has(.tmall-board-workspace) .topbar .el-breadcrumb + .spacer {
    display: none;
  }
  body:has(.tmall-board-workspace) .topbar .brand {
    margin-right: 8px;
  }
  body:has(.tmall-board-workspace) .topbar .el-breadcrumb {
    display: flex;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    flex: 1;
  }
  body:has(.tmall-board-workspace) .topbar .el-breadcrumb__item:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.tmall-rules-dialog.el-dialog {
  --tmall-rule-line: #e4dfd8;
  --tmall-rule-warm: #f5efe7;
  --tmall-rule-blue: #126ae6;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border-radius: 10px;
  color: #23211f;
  background: #fffefd;
}
.tmall-rules-dialog .el-dialog__header {
  flex: none;
  padding: 14px 44px 14px 24px;
  border-bottom: 1px solid var(--tmall-rule-line);
}
.tmall-rules-dialog .el-dialog__title {font-size: 20px;font-weight: 700}
.tmall-rules-dialog .el-dialog__body {
  min-height: 0;
  overflow: auto;
  padding: 8px 22px 12px;
  color: #23211f;
  font-size: 15px;
}
.tmall-rules-dialog .el-dialog__footer {flex: none;padding: 8px 22px 18px}
.tmall-rules-dialog .el-alert {margin-top: 6px}
.tmall-rules-grid {
  display: grid;
  grid-template-columns: minmax(145px,20fr) minmax(145px,20fr) minmax(0,60fr);
  min-height: min(505px,58dvh);
}
.tmall-rule-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0 13px 12px;
  border-right: 1px solid var(--tmall-rule-line);
}
.tmall-rule-column:first-child {padding-left: 0}
.tmall-rule-column:last-child {padding-right: 0;padding-left: 22px;border-right: 0}
.tmall-rule-column h3 {
  margin: 0 0 14px;
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--tmall-rule-line);
  font-size: 18px;
  color: #211f1d;
}
.tmall-rule-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(450px,50dvh);
  overflow: auto;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.tmall-rule-choice {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  padding: 0 6px 0 0;
  border-bottom: 1px solid #efebe6;
  border-left: 3px solid transparent;
}
.tmall-rule-choice.is-status-selected {border-left-color: #8c571e;border-radius: 5px;background: var(--tmall-rule-warm);color: #573617}
.tmall-rule-choice.is-goal-selected {border-radius: 5px;background: #e0edff;color: #16365a}
.tmall-rule-name,.tmall-rule-pencil,.tmall-rule-tools>button:not(.el-button) {
  font: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.tmall-rule-name {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 6px 8px;
  text-align: left;
  overflow-wrap: anywhere;
}
.tmall-rule-name[aria-pressed=true] {font-weight: 700}
.tmall-rule-dot {flex: 0 0 10px;height: 10px;border-radius: 100%}
.tmall-rule-chevron {margin-left: auto;font-size: 19px}
.tmall-rule-pencil,.tmall-rule-tools>button:not(.el-button) {min-width: 27px;min-height: 28px;border-radius: 5px}
.tmall-rule-pencil:hover,.tmall-rule-tools>button:not(.el-button):hover {background: #f5eee6}
.tmall-rule-name:focus-visible,.tmall-rule-pencil:focus-visible,.tmall-rule-tools>button:focus-visible {outline: 2px solid var(--tmall-rule-blue);outline-offset: -2px}
.tmall-rule-add {align-self: center}
.tmall-rule-group {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--tmall-rule-line);
  border-radius: 5px;
}
.tmall-rule-group>header {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px 0 14px;
  background: var(--tmall-rule-warm);
}
.tmall-rule-group h4 {flex: 1;min-width: 0;margin: 0;font-size: 16px;color: #261d15;overflow-wrap: anywhere}
.tmall-rule-group>header button {color: #714919;font-size: 18px}
.tmall-rule-action+.tmall-rule-action {border-top: 1px solid #e9e3db}
.tmall-rule-action.is-bound {background: #e8f2ff}
.tmall-rule-action-row {
  display: grid;
  box-sizing: border-box;
  grid-template-columns: auto minmax(72px,1fr) minmax(0,3fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 41px;
  padding: 4px 12px;
}
.tmall-rule-action-name,.tmall-rule-summary,.tmall-rule-links a {overflow-wrap: anywhere}
.tmall-rule-links,.tmall-rule-tutorial,.tmall-rule-tools,.tmall-rule-actions-footer,.tmall-rule-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.tmall-rule-links a,.tmall-rule-links>.el-button {color: var(--tmall-rule-blue);text-decoration: underline}
.tmall-rule-tutorial>.el-input {flex: 1 0 min(120px,100%);min-width: 0}
.tmall-rule-tutorial>small {flex: 1 0 100%;color: #9c281e}
.tmall-rules-dialog .el-button+.el-button {margin-left: 0}
.tmall-rule-editor {display: flex;flex-direction: column;gap: 8px;padding: 8px;background: #faf7f2}
.tmall-rule-action-editor {margin: 0 10px 8px;border-radius: 6px}
.tmall-rule-link-editor>.el-input {flex: 1 1 120px;min-width: 0}
.tmall-rule-note {margin: 6px 0;color: #645c52}
.tmall-rule-history {margin: 8px 0 0;color: #645c52}
.tmall-rule-history summary {width: fit-content;cursor: pointer}
.tmall-rule-footer {display: flex;align-items: center;justify-content: space-between;gap: 10px;padding: 9px 12px;background: var(--tmall-rule-warm);border-radius: 6px;text-align: left}
.tmall-rule-summary {min-width: 0;max-height: 4.3em;overflow: auto;margin: 0;line-height: 1.45;color: #332b22}
.tmall-rule-summary strong {color: #5f3d1f}
.tmall-rule-footer-actions {flex: none;justify-content: flex-end}
.tmall-rule-footer-actions>.el-button {min-width: 86px}
.tmall-rule-footer-actions>.el-button--primary {--el-button-bg-color: #0875ff;--el-button-border-color: #0875ff}
@media (max-width: 760px) {
  .tmall-rules-dialog .el-dialog__header {padding-left: 14px}
  .tmall-rules-dialog .el-dialog__body,.tmall-rules-dialog .el-dialog__footer {padding-inline: 12px}
  .tmall-rules-grid {grid-template-columns: repeat(2,minmax(0,1fr));min-height: 0;row-gap: 12px}
  .tmall-rule-column {padding-inline: 8px}
  .tmall-rule-column:nth-child(2) {padding-right: 0;border: 0}
  .tmall-rule-column:last-child {grid-column: 1/-1;padding-inline: 0}
  .tmall-rule-column h3 {font-size: 16px;margin-bottom: 8px}
  .tmall-rule-list {max-height: 38dvh}
  .tmall-rules-actions .tmall-rule-list {max-height: none}
  .tmall-rule-choice {min-height: 42px;gap: 1px;padding-right: 0}
  .tmall-rule-name {gap: 5px;padding-inline: 4px}
  .tmall-rule-pencil {min-width: 24px;padding-inline: 4px}
  .tmall-rule-action-row {grid-template-columns: auto minmax(0,1fr) auto}
  .tmall-rule-tutorial,.tmall-rule-links {grid-column: 2/-1;grid-row: 2}
  .tmall-rule-footer {flex-wrap: wrap;padding: 8px}
  .tmall-rule-summary {flex-basis: 100%;max-height: 2.9em}
  .tmall-rule-footer-actions {width: 100%}
}
.tmall-product-execution-table .el-table__body tr.el-table__row > td.el-table__cell[rowspan] {
  vertical-align: middle;
  background: var(--el-bg-color, #fff);
}
.tmall-product-execution-table.el-table .el-table__header th {
  background: #f6efe4;
}
:is(.tmall-board-workspace,.tmall-table-scope) .tmall-product-execution-table .el-table__body td.el-table__cell > .cell {
  margin-inline: 0;
  border: 0;
  background: transparent;
}
.tmall-product-execution-table .el-table__body .cell :is(.tmall-readonly-cell,.ym-person-badge,.ym-person-badge-list) {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.tmall-product-execution-table .ym-field-key--operating_actions .cell {
  padding-inline: 6px;
}
.tmall-execution-actions {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
  text-align: left;
}
.tmall-execution-fee {
  display: flex;
  align-items: center;
  padding-right: 6px;
  border-right: 1px solid #e7dfd4;
  color: #55432f;
  font-weight: 600;
}
.tmall-execution-action-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}
.tmall-execution-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tmall-execution-action:has(+ .tmall-execution-action) {
  padding-inline-end: 6px;
  border-inline-end: 1px solid #e7dfd4;
}
.tmall-product-rule-trigger {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.tmall-product-rule-trigger:hover {text-decoration: underline dotted}
.tmall-execution-sop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 1px 4px;
  border: 1px solid #c9defe;
  border-radius: 3px;
  background: #eef5ff;
  color: #1764c7;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-decoration: none;
  cursor: pointer;
}
.tmall-execution-sop:disabled {
  color: #596579;
  background: #f4f5f7;
  border-color: #e1e4e9;
  cursor: default;
}
.tmall-product-rule-trigger:focus-visible,.tmall-execution-sop:focus-visible {
  outline: 2px solid #1764c7;
  outline-offset: 2px;
}
.tmall-execution-dialog-body {max-height: 66dvh;overflow: auto}
.tmall-execution-form {display: grid;grid-template-columns: 1fr 1fr;gap: 0 12px}
.tmall-execution-form .el-form-item {min-width: 0}
.tmall-execution-form :is(.el-select,.el-date-editor) {width: 100%;min-width: 0}
.tmall-execution-form-wide {grid-column: 1/-1}
@media (max-width: 600px) {
  .tmall-execution-form {grid-template-columns: 1fr}
}

/* TMALL-ACTION-SOP-20261120: three regions and shared status colours. */
.tmall-rules-dialog .el-dialog__header {min-height:26px;padding:0 44px 0 22px;border-bottom:0}
/* Element Plus uses the title prop to label the dialog itself. */
.tmall-rules-dialog > .el-dialog__header > .el-dialog__title {display: none}
.tmall-rules-dialog .el-dialog__headerbtn {top:2px;right:6px;width:28px;height:28px}
.tmall-rules-grid {min-height:min(390px,44dvh)}
.tmall-rule-list {max-height:min(340px,38dvh)}
.tmall-rule-add-settings {align-self:center;display:inline-flex;flex-shrink:0}
.tmall-rule-add-settings>.el-button {height:34px;border-color:#d7c6b3;color:#755238}
.tmall-rule-add-settings>.el-button:first-child {border-radius:7px 0 0 7px;padding-inline:12px}
.tmall-rule-add-settings>.el-button:last-child {border-radius:0 7px 7px 0;padding-inline:10px}
.tmall-rule-bindings {margin-top:12px;padding:12px;border:1px solid var(--tmall-rule-line);border-radius:7px;min-height:112px;background:#fff}
.tmall-rule-bindings>header {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.tmall-rule-bindings h3 {margin:0;font-size:16px;color:#4c3b2c}
.tmall-rule-binding-tags {display:flex;flex-wrap:wrap;align-content:flex-start;gap:8px;min-height:50px;max-height:160px;overflow:auto;padding:3px}
.tmall-rule-binding-tag {max-width:100%;padding:7px 11px;border:1px solid;border-radius:6px;font:inherit;text-align:left;overflow-wrap:anywhere;cursor:pointer}
.tmall-rule-binding-tag.is-selected {outline:2px solid #5e4934;outline-offset:2px}
.tmall-rule-binding-tag:focus-visible {outline:2px solid var(--tmall-rule-blue);outline-offset:2px}
.tmall-rule-binding-editors {margin-top:10px;max-height:240px;overflow:auto}
.tmall-rule-binding-editors summary {cursor:pointer;color:#645c52}
.tmall-rule-binding-editors .tmall-setting-row {flex-wrap:wrap}
.tmall-rule-settings-dialog .el-dialog__body {max-height:65dvh;overflow:auto}
.tmall-rule-settings-row {padding:12px 0;border-bottom:1px solid #ebe5de;display:flex;flex-direction:column;gap:10px}
@media(max-width:760px){.tmall-rules-grid{min-height:0}.tmall-rule-list{max-height:34dvh}.tmall-rules-actions .tmall-rule-list{max-height:38dvh}.tmall-rule-add-settings>.el-button:first-child{padding-inline:8px}.tmall-rule-add-settings>.el-button:last-child{padding-inline:8px}.tmall-rule-bindings{padding:10px;min-height:110px}.tmall-rule-binding-tags{max-height:180px}.tmall-rule-settings-row .tmall-rule-tools{gap:6px}}

/* Product lists keep their scrollable table beside the operations settings. */
.tmall-operations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.tmall-operations-layout > section { min-width: 0; }
.tmall-operations-layout.has-operations-panel {
  grid-template-columns: minmax(0, 1fr) clamp(350px, 36vw, 510px);
}
.tmall-operations-scrim { display: none; }
.tmall-operations-panel {
  --ops-border: #e8ded3;
  --ops-accent: #1764ce;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  min-height: min(540px, calc(100dvh - 275px));
  max-height: max(340px, calc(100dvh - 258px));
  border: 1px solid var(--ops-border);
  border-radius: 9px;
  overflow: hidden;
  background: #fffdfa;
  color: #392d23;
}
.tmall-operations-header, .tmall-operations-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding: 12px 16px;
}
.tmall-operations-header { border-bottom: 1px solid var(--ops-border); }
.tmall-operations-header > div { min-width: 0; }
.tmall-operations-header h2 { margin: 0 0 3px; font-size: 19px; line-height: 1.3; }
.tmall-operations-product { font-size: 13px; color: #5b4a3b; overflow-wrap: anywhere; }
.tmall-operations-product small { color: #726354; font-size: inherit; }
.tmall-operations-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #655345;
  font-size: 24px;
  cursor: pointer;
}
.tmall-operations-close:hover { background: #f1ebe4; }
.tmall-operations-close:disabled { cursor: wait; opacity: .55; }
.tmall-operations-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 16px;
}
.tmall-operations-body fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tmall-operations-group {
  padding: 12px 0;
  border-bottom: 1px solid var(--ops-border);
}
.tmall-operations-group:last-child { border-bottom: 0; }
.tmall-operations-group h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
.tmall-operations-group h3:focus-visible, .tmall-operations-header h2:focus-visible {
  outline: 2px solid #86b8fa;
  outline-offset: 3px;
  border-radius: 2px;
}
.tmall-operations-choices { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.tmall-operations-choices button, .tmall-operations-search {
  min-height: 34px;
  border: 1px solid var(--ops-border);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 13px;
  padding: 5px 9px;
}
.tmall-operations-choices button { cursor: pointer; }
.tmall-operations-choices button[aria-pressed="true"] {
  background: #e6f0ff;
  border-color: #a7c9f6;
  color: #144f98;
  font-weight: 600;
}
.tmall-operations-choices button:disabled { color: #796b61; cursor: default; }
.tmall-operations-choices .tmall-operations-more { border-color: transparent; color: var(--ops-accent); }
.tmall-operations-search { width: 100%; margin-bottom: 8px; }
.tmall-operations-actions {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tmall-operations-actions li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 12px;
  padding: 6px 9px;
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid #eae4dc;
  background: #fff;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.tmall-operations-actions label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.tmall-operations-actions input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--ops-accent); }
.tmall-operations-actions a { color: var(--ops-accent); }
.tmall-operations-owner, .tmall-operations-completion { color: #5f5348; font-size: 12px; }
.tmall-operations-completion small { display: block; font-size: inherit; }
.tmall-operations-muted, .tmall-operations-notice, .tmall-operations-error,
.tmall-operations-footer > span, .tmall-operations-history { font-size: 12px; }
.tmall-operations-muted, .tmall-operations-footer > span { color: #6b5c50; }
.tmall-operations-history { margin-top: 8px; color: #5f5348; }
.tmall-operations-history summary { padding: 5px 0; cursor: pointer; }
.tmall-operations-notice, .tmall-operations-error {
  margin: 8px 0;
  padding: 8px;
  border-radius: 6px;
  background: #fff5de;
  color: #755018;
}
.tmall-operations-error { background: #fff0ee; color: #9d3027; }
.tmall-operations-footer { border-top: 1px solid var(--ops-border); background: #faf5ef; flex-wrap: wrap; }
.tmall-operations-submit { display: flex; margin-left: auto; }
.tmall-product-execution-table .el-table__body tr.el-table__row.tmall-operations-selected > td.el-table__cell {
  background-color: #eaf2ff;
}
@media (max-width: 1020px) {
  .tmall-operations-layout.has-operations-panel { grid-template-columns: minmax(0, 1fr); }
  .tmall-operations-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #30221945;
    z-index: 1090;
  }
  .tmall-operations-panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(100vw, 480px);
    z-index: 1091;
    min-height: 0;
    max-height: 100dvh;
    border-radius: 0;
  }
}

/* Keep Tmall navigation in the viewport, including the board management buttons. */
.tmall-module-shell{min-height:100vh}
.tmall-regions-workspace{--tmall-nav-top:12px}
.tmall-regions-workspace>.tmall-board-sidebar{top:var(--tmall-nav-top);padding-bottom:12px;overflow:hidden}
.tmall-regions-workspace .tmall-board-nav{overflow:hidden;gap:6px;scrollbar-gutter:auto}
.tmall-regions-workspace .tmall-board-nav>button,.tmall-regions-workspace .tmall-sidebar-more{width:100%;height:40px;min-height:40px;padding:0 8px;line-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tmall-regions-workspace .tmall-sidebar-more{border:1px solid #ebdfd0;border-radius:7px;background:#fff;color:#5f4b3b;text-align:left;cursor:pointer}
.tmall-regions-workspace .tmall-board-sidebar-footer{position:static;inset:auto;width:100%;overflow:visible}
.tmall-sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;flex:none}
.tmall-sidebar-home{color:#5f4b3b;font-size:14px;text-decoration:none;white-space:nowrap}
.tmall-sidebar-home:hover{text-decoration:underline}
.tmall-regions-workspace.is-collapsed .tmall-sidebar-heading{flex-direction:column}
.tmall-regions-workspace.is-collapsed .tmall-sidebar-home{font-size:12px;white-space:normal;text-align:center;line-height:1.25}
.tmall-template-row>div{display:grid;gap:4px}
.tmall-template-row>div>span{color:var(--el-text-color-secondary);font-size:13px}

.tmall-field-row{display:grid;grid-template-columns:minmax(0,1fr) 92px 34px 34px;align-items:center;gap:8px;padding:8px;border:1px solid #ebdfd0;border-radius:8px;margin-bottom:6px;min-height:42px;box-sizing:border-box}
.tmall-field-row-name{min-width:0;display:flex;align-items:center;gap:5px}
.tmall-field-row-name .el-checkbox{height:auto;min-width:0;margin-right:0;white-space:normal}
.tmall-field-row-name .el-checkbox__label{white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.tmall-field-row>.el-input-number{width:100%}
.tmall-field-row>.el-button{margin:0}
.tmall-field-drag{border:0;background:none;color:#786b60;cursor:grab;padding:4px 0;flex:none}
.tmall-field-drag:disabled{visibility:hidden}
.tmall-field-options{width:100%}
.tmall-field-options>div,.tmall-field-range{display:flex;gap:8px;margin-bottom:6px;flex-wrap:wrap}
.tmall-field-options>div>.el-input{flex:1}

.tmall-fields-drawer .el-drawer__body>.el-button:first-child{margin-bottom:10px}

.tmall-system-field-note{margin:-2px 0 14px 105px;color:var(--el-text-color-secondary);font-size:13px;line-height:1.5}

.tmall-product-operation-column .tmall-product-row-actions,
.tmall-product-operation-column .tmall-region-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  min-width: 0;
  padding: 0;
}
.tmall-product-operation-column .el-button,
.tmall-product-operation-column .tmall-region-row-actions > .el-button {
  margin: 0;
  height: auto;
  max-width: 100%;
  padding: 3px 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
.tmall-product-operation-column .el-button > span { min-width: 0; }
.tmall-product-operation-column .tmall-region-row-actions:empty { display: none; }
.tmall-operations-goal-actions + .tmall-operations-goal-actions { margin-top: 12px; }
.tmall-operations-goal-actions h4 { margin: 6px 0; }
.tmall-action-position-list li { margin: 3px 0; }

.tmall-attack-action-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.tmall-attack-action-check input[type="checkbox"] { margin: 4px 0 0; }
.tmall-attack-action-note .el-button { margin: 0 6px 0 0; }
.tmall-attack-action-note [role="alert"] { color: var(--el-color-danger); }

/* JD and Warm retain their application header above the shared board navigation. */
.department-board-workspace{
  --tmall-nav-top:68px;
  display:grid;grid-column:1/-1;min-width:0;min-height:calc(100vh - 64px)
}
.department-board-workspace .tmall-board-nav{overflow-y:auto;scrollbar-gutter:stable}
.department-board-workspace .tmall-board-tabs{flex-wrap:wrap}
@media(max-width:760px){
  .department-board-workspace:not(.is-collapsed){grid-template-columns:minmax(0,1fr)}
  .department-board-workspace>.tmall-board-sidebar{position:static;width:auto;box-shadow:none;border-bottom:1px solid #ebdfd0}
  .department-board-workspace .tmall-board-nav{flex-flow:row wrap;overflow:visible}
  .department-board-workspace .tmall-board-nav>button{width:auto;max-width:100%}
  .department-board-workspace .tmall-board-sidebar-footer{display:flex;flex-wrap:wrap}
  .department-board-workspace .tmall-board-sidebar-footer>*{width:auto}
  .department-board-workspace>.tmall-board-main{grid-column:1}
}
