/* Compact listing: two primary configuration rows, with optional detail fields. */
.selection-batch-dialog form { display:flex; flex-direction:column; }
.selection-batch-dialog { width:min(1460px,calc(100vw - 36px)); height:min(720px,calc(100vh - 36px)); }
.selection-batch-dialog-header,.selection-batch-config-grid,.selection-batch-dialog-footer { flex-shrink:0; }
.selection-batch-dialog .selection-batch-table-wrap { flex:1 1 auto; }
.selection-batch-dialog .selection-batch-table { min-width:1120px; }
.selection-batch-submit-options[hidden] { display:none!important; }
.selection-batch-message:empty { display:none; }
.listing-compact-config { position:relative; display:grid; grid-template-columns:430px minmax(900px,1fr); gap:12px 18px; padding:14px 20px; background:#fff; max-height:38vh; overflow:auto; }
.listing-compact-config section { min-width:0; display:grid; gap:8px; align-content:start; }
.listing-compact-config header { display:flex; justify-content:space-between; align-items:center; min-height:22px; padding-bottom:6px; border-bottom:1px solid #dfe5ee; }
.listing-compact-config header strong { font-size:14px; color:#263749; }
.listing-compact-config header > span { font-size:11px; color:#8290a4; }
.listing-compact-config .listing-compact-line { display:flex; flex-wrap:nowrap; gap:8px; align-items:center; }
.listing-compact-config .listing-compact-line > label { display:flex; align-items:center; flex:1 1 0; gap:6px; min-width:0; margin:0; font-size:13px; line-height:1.4; color:#475569; font-weight:500; }
.listing-compact-line > label > span:not(.suite-select) { flex-shrink:0; font-size:13px; font-weight:500; color:#475569; white-space:nowrap; }
.listing-compact-line .suite-select { flex:1 1 0; width:0; min-width:0; }
.listing-compact-line .suite-select-trigger { width:100%; min-width:0; }
.listing-compact-line > label > select,.listing-compact-line > label > input,.listing-compact-line > label > .custom-select { flex:1 1 0; min-width:0; width:0; }
.listing-compact-config .listing-compact-line input:not([type=checkbox]),.listing-compact-config .listing-compact-line select { box-sizing:border-box; height:34px; min-height:34px; padding:0 8px; border:1px solid #d7deea; border-radius:5px; background:#fff; color:#263749; font-size:13px; }
.listing-compact-config .listing-compact-line > label > div:not(.custom-select) { display:flex; gap:5px; min-width:0; flex:1 1 0; }
.listing-compact-config .listing-compact-line > label > div input,.listing-compact-config .listing-compact-line > label > div select { min-width:0; width:0; flex:1 1 0; }
.listing-compact-line > label > small { display:none; }
.listing-compact-config button { white-space:nowrap; font-size:12px; }
.listing-compact-config .listing-compact-line button { min-height:34px; border:1px solid #b8d5fa; border-radius:5px; padding:0 8px; cursor:pointer; }
.listing-compact-price .listing-compact-line > label[data-compact-field=price] { flex:1.7 1 0; }
.listing-compact-line [data-compact-field=price-short] > span:not(.suite-select) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.listing-compact-price .listing-compact-line > button { flex:0 0 auto; align-self:center; background:#328bfa; color:#fff; }
.listing-compact-config .listing-compact-product { grid-column:1/-1; }
.listing-compact-product header { padding-right:100px; }
.listing-compact-product [data-compact-field=prefix] { flex:1.35 1 0; }
.listing-compact-product [data-compact-field=order] { flex:1.2 1 0; }
.listing-compact-product [data-compact-field=stock] { flex:1.25 1 0; }
.listing-compact-config .listing-compact-line [data-compact-field=promo] { flex:0 0 auto; border:0; padding:0; background:transparent; }
.listing-compact-line [data-compact-field=promo] input { width:16px; min-height:16px; height:16px; }
.listing-compact-config .listing-compact-advanced { grid-column:1/-1; min-width:0; border:0; background:transparent; }
.listing-compact-advanced:not([open]) { height:0; margin-top:-12px; }
.listing-compact-advanced > summary { position:absolute; top:98px; right:20px; color:#328bfa; font-size:13px; cursor:pointer; }
.listing-compact-config .listing-compact-extra { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:12px; border:1px solid #e2e8f0; border-radius:8px; background:#f8fafc; }
.listing-compact-extra label { min-width:0; }
.listing-compact-extra .wide { grid-column:1/-1; }

/* Shared one-click and bulk editor: reference layout, without changing publish defaults. */
dialog.selection-batch-dialog { width:min(1400px,calc(100vw - 48px)); height:min(880px,calc(100dvh - 64px)); max-width:none; max-height:none; padding:0; border:0; border-radius:2px; background:#fff; color:#303846; box-shadow:0 18px 70px #0003; font-family:Arial,"Microsoft YaHei",sans-serif; }
.selection-batch-dialog::backdrop { background:#0008; backdrop-filter:none; }
.selection-batch-dialog form { max-height:none; height:100%; gap:0; }
.selection-batch-dialog-header { align-items:center; padding:16px; min-height:60px; border:0; }
.selection-batch-dialog-header h2 { font-size:18px; font-weight:400; color:#333; }
.selection-batch-dialog-header p { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.selection-batch-dialog-header .icon-button { width:26px; height:26px; min-height:0; padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; color:#909399; font:22px Arial; }
.selection-batch-dialog .listing-compact-config { display:flex; flex-direction:column; gap:16px; padding:10px 36px 20px; max-height:46%; overflow:auto; border:0; border-radius:0; background:#fff; }
.listing-compact-config section { display:block; padding:0; border:0; border-radius:0; background:#fff; }
.listing-compact-config header { margin:0 0 12px; padding:0 0 9px; min-height:24px; border-bottom:2px solid #e3e6ec; }
.listing-compact-config header strong { color:#293446; font-size:14px; font-weight:600; }
.listing-compact-config .listing-compact-line { flex-wrap:wrap; gap:10px; }
.listing-compact-config .listing-compact-line > label { flex:0 0 auto; gap:8px; }
.listing-compact-config .listing-compact-line > label > span:not(.suite-select) { font-size:13px; color:#525b6b; }
.listing-compact-line .suite-select { flex:0 0 auto; width:140px; }
.listing-compact-store .listing-compact-line > label:first-child .suite-select { width:220px; }
.listing-compact-line > label > select { flex:0 0 auto; width:140px; }
.listing-compact-config .listing-compact-line > label > input { flex:0 0 auto; width:105px; }
.listing-compact-config .listing-compact-line > label > div:not(.custom-select) { flex:0 0 auto; }
.listing-compact-config .listing-compact-line > label > div input { flex:0 0 auto; width:110px; }
.listing-compact-config .listing-compact-line > label > div select { flex:0 0 auto; width:180px; }
.listing-compact-config .listing-compact-line input:not([type=checkbox]),.listing-compact-config .listing-compact-line select,.listing-compact-config .suite-select-trigger { height:32px; min-height:32px; border-radius:3px; background:#fff; color:#606266; font-size:13px; font-weight:400; box-shadow:none; }
.listing-compact-config .suite-select-trigger { padding:0 11px; border:1px solid #dcdfe6; }
.listing-compact-config .listing-compact-line button:not(.suite-select-trigger) { min-height:32px; border-radius:3px; background:#409eff; border:1px solid #409eff; color:white; box-shadow:none; }
.listing-compact-config .listing-compact-line .suite-select-trigger { background:#fff; color:#606266; border:1px solid #dcdfe6; }
.listing-compact-config .listing-compact-line .suite-select-trigger:hover { background:#fff; color:#606266; border-color:#aeb9ca; }
.listing-compact-price .listing-compact-line > label[data-compact-field=price] { flex:0 0 auto; }
#selectionBatchListingDialog .listing-compact-line input:not([type=checkbox]) { width:105px; height:32px; min-height:32px; padding:0 8px; border:1px solid #dcdfe6; border-radius:3px; background:#fff; font:13px Arial,"Microsoft YaHei",sans-serif; }
#selectionBatchListingDialog .listing-compact-line [data-compact-field=stock] > div { width:auto; }
#selectionBatchListingDialog .listing-compact-line [data-compact-field=promo] input { flex:0 0 40px; width:40px; }
.listing-compact-config .selection-warehouse-field > div { align-items:center; }
.listing-compact-config .listing-compact-line [data-compact-field=promo] { flex-direction:row-reverse; gap:10px; }
.listing-compact-line [data-compact-field=promo] input { appearance:none; width:40px; height:20px; min-height:20px; margin:0; border:0; border-radius:12px; background:#dcdfe6; cursor:pointer; position:relative; }
.listing-compact-line [data-compact-field=promo] input::after { content:''; position:absolute; width:16px; height:16px; left:2px; top:2px; border-radius:50%; background:#fff; }
.listing-compact-line [data-compact-field=promo] input:checked { background:#409eff; }
.listing-compact-line [data-compact-field=promo] input:checked::after { left:22px; }
.listing-compact-config .listing-compact-advanced { position:static; margin:0; height:auto; }
.listing-compact-advanced > summary { position:static; width:fit-content; margin-left:auto; font-size:12px; }
.listing-compact-extra { margin-top:10px; }
/* Optional settings share one control language in the main and agent editors. */
#selectionBatchAdvanced > summary { padding:7px 12px; border:1px solid #e0dcfa; border-radius:8px; color:#6554d9; background:#f7f5ff; font-size:13px; font-weight:500; }
#selectionBatchAdvanced > summary:hover { background:#efebff; }
#selectionBatchAdvanced .listing-compact-extra { grid-template-columns:1fr 1fr; gap:14px; padding:0; border:0; background:transparent; }
#selectionBatchAdvanced .listing-extra-group { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; gap:12px; padding:18px; border:1px solid #e2e6f2; border-radius:12px; background:linear-gradient(135deg,#fafbff,#f7f8fc); }
#selectionBatchAdvanced .listing-extra-heading { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; margin-bottom:2px; }
#selectionBatchAdvanced .listing-extra-heading strong { font-size:14px; color:#303b56; }
#selectionBatchAdvanced .listing-extra-heading span { color:#7e89a0; font-size:12px; }
#selectionBatchAdvanced label { display:flex; flex-direction:column; gap:7px; margin:0; color:#52617a; font-size:13px; font-weight:500; line-height:1.5; }
#selectionBatchAdvanced input:not([type=checkbox]),#selectionBatchAdvanced select:not([multiple]),#selectionBatchAdvanced .suite-select-trigger { box-sizing:border-box; width:100%; height:38px; min-height:38px; padding:0 11px; border:1px solid #dce2ef; border-radius:8px; background:#fff; color:#35415b; font-size:14px; box-shadow:0 2px 3px #26345b03; }
#selectionBatchAdvanced .suite-select { width:100%; min-width:0; }
#selectionBatchAdvanced input::placeholder { color:#9aa4b6; font-size:13px; }
#selectionBatchAdvanced input:focus-visible,#selectionBatchAdvanced .suite-select-trigger:focus-visible { outline:3px solid #7162e51f; border-color:#8678e9; }
#selectionBatchAdvanced small { color:#8590a6; font-size:12px; font-weight:400; line-height:1.6; }
#selectionBatchAdvanced .selection-inline-switch { grid-column:1/-1; flex-direction:row-reverse; justify-content:space-between; align-items:center; padding:12px; border:1px solid #e3dff7; border-radius:9px; background:#fff; }
#selectionBatchAdvanced input[type=checkbox] { appearance:none; flex:0 0 40px; position:relative; width:40px; height:22px; min-height:22px; padding:0; margin:0; border:0; border-radius:12px; background:#dbe0eb; cursor:pointer; }
#selectionBatchAdvanced input[type=checkbox]::after { content:''; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #0002; transition:transform .15s; }
#selectionBatchAdvanced input[type=checkbox]:checked { background:#7160e5; }
#selectionBatchAdvanced input[type=checkbox]:checked::after { transform:translateX(18px); }
#selectionBatchAdvanced [hidden] { display:none!important; }
@media(max-width:900px) { #selectionBatchAdvanced .listing-compact-extra { grid-template-columns:1fr; } }
.selection-batch-dialog .selection-batch-table-wrap { margin:0 36px; padding:0; min-height:120px; overflow:auto; border:1px solid #e7ecf5; border-radius:4px; background:#fff; }
.selection-batch-dialog .selection-batch-table { min-width:1328px; width:100%; font-size:13px; }
.selection-batch-table th,.selection-batch-table td { border:1px solid #e7ecf5; padding:10px 12px; }
.selection-batch-table thead th { height:65px; background:#f7f8fa; color:#3e485a; font-size:13px; font-weight:600; }
.selection-batch-table tbody td { height:80px; background:#fff; }
.selection-batch-dialog .selection-batch-table th:nth-child(1) { width:88px; }
.selection-batch-dialog .selection-batch-table th:nth-child(2) { width:200px; }
.selection-batch-dialog .selection-batch-table th:nth-child(3) { width:200px; }
.selection-batch-dialog .selection-batch-table th:nth-child(4) { width:150px; }
.selection-batch-dialog .selection-batch-table th:nth-child(5) { width:100px; }
.selection-batch-dialog .selection-batch-table th:nth-child(6) { width:110px; }
.selection-batch-dialog .selection-batch-table th:nth-child(7),.selection-batch-dialog .selection-batch-table th:nth-child(8),.selection-batch-dialog .selection-batch-table th:nth-child(9) { width:150px; }
.selection-batch-dialog .selection-batch-table th:nth-child(10) { width:80px; }
.selection-batch-table th:last-child,.selection-batch-table td:last-child { position:sticky; right:0; z-index:2; box-shadow:-5px 0 8px #24385508; }
.selection-batch-table th:last-child { z-index:3; }
.selection-batch-table .title { text-align:center; font-weight:400; line-height:1.65; }
.selection-batch-table img,.selection-batch-image-empty { width:56px; height:56px; border-radius:5px; object-fit:cover; }
.selection-batch-table input,.selection-batch-table select { width:100%; height:26px; min-height:26px; padding:0 8px; border:1px solid #dcdfe6; border-radius:3px; color:#536174; background:#fff; font:12px Arial,"Microsoft YaHei",sans-serif; }
.selection-batch-table .source-price { color:#00a781; font-size:14px; font-weight:700; }
.selection-batch-table .listing-price-required { color:#ff3737; }
.selection-batch-dialog .listing-table-link { float:right; border:0; padding:0; background:none; color:#409eff; font-size:12px; cursor:pointer; }
.listing-table-help { float:right; color:#409eff; font-size:12px; font-weight:400; cursor:help; }
.listing-price-stepper { display:flex; height:26px; border:1px solid #dcdfe6; border-radius:3px; overflow:hidden; }
.listing-price-stepper button { flex:0 0 24px; min-height:0; border:0; border-radius:0; padding:0; background:#f5f7fa; color:#929dab; font:16px Arial; cursor:pointer; }
.listing-price-stepper button:hover { color:#409eff; background:#ecf5ff; }
.selection-batch-table .listing-price-stepper input { min-width:0; height:24px; min-height:24px; border:0; border-inline:1px solid #dcdfe6; border-radius:0; padding:0 2px; appearance:textfield; }
.listing-price-stepper input::-webkit-inner-spin-button { appearance:none; }
#selectionBatchListingDialog .selection-batch-table input { width:100%; height:26px; min-height:26px; padding:0 8px; border:1px solid #dcdfe6; border-radius:3px; background:#fff; font:12px Arial,"Microsoft YaHei",sans-serif; }
#selectionBatchListingDialog .listing-price-stepper input { height:24px; min-height:24px; padding:0 2px; border:0; border-inline:1px solid #dcdfe6; border-radius:0; }
#selectionBatchListingDialog .selection-batch-table .suite-select { width:100%; min-width:0; }
#selectionBatchListingDialog .selection-batch-table .suite-select-trigger { height:26px; min-height:26px; padding:0 8px; border-radius:3px; font-size:12px; }
.selection-batch-remove { font-size:12px; font-weight:400; color:#ff4d4f; }
.selection-batch-dialog-footer { min-height:78px; margin:12px 16px 0; padding:18px 0 16px; border-top:1px solid #e3e6ec; background:white; gap:24px; }
.selection-batch-dialog-footer button { min-height:32px; height:32px; padding:0 15px; border:1px solid #dcdfe6; border-radius:3px; background:#fff; color:#606266; font-size:14px; font-weight:400; box-shadow:none; }
.selection-batch-dialog-footer .primary-button { border-color:#409eff; background:#409eff; color:#fff; }
.selection-batch-dialog-footer .primary-button:hover { background:#66b1ff; }
.selection-batch-message { flex-shrink:0; margin:6px 36px 0; max-height:52px; overflow:auto; }
@media(max-width:1100px) {
  dialog.selection-batch-dialog { width:calc(100vw - 24px); height:calc(100dvh - 24px); }
  .selection-batch-dialog .listing-compact-config { padding:8px 18px 12px; max-height:46%; }
  .selection-batch-dialog .selection-batch-table-wrap { margin-inline:18px; }
  .selection-batch-dialog-footer { gap:10px; min-height:62px; padding:12px 0; }
}
