/* Dense promotion editors; detail dialogs keep the full comparison and evidence. */
#ofm-editor.ofw-dialog,#ofw-composer.ofw-dialog{width:min(1600px,94vw);max-width:calc(100vw - 32px);max-height:90dvh;height:min(860px,90dvh);padding:0;overflow:hidden}
#ofm-editor[open],#ofw-composer[open]{display:flex;flex-direction:column}
#ofm-editor>.ofw-detail-header,#ofw-composer>.ofw-detail-header{flex:none;position:relative;z-index:8;padding:12px 16px;margin:0;border-bottom:1px solid var(--ofw-line);background:#172034;align-items:center;gap:12px}
#ofm-editor>.ofw-detail-header>div:first-child,#ofw-composer>.ofw-detail-header>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-width:0}
#ofm-editor .ofw-detail-header h3,#ofw-composer .ofw-detail-header h3{font-size:1rem;line-height:1.4;margin:0;max-width:520px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ofm-editor .ofw-detail-header .ofw-eyebrow,#ofw-composer .ofw-detail-header .ofw-eyebrow{font-size:.72rem}
#ofm-editor .ofw-detail-header:has(.ofw-channel-select:not([hidden])) .ofw-eyebrow,#ofw-composer .ofw-detail-header:has(.ofw-channel-select:not([hidden])) .ofw-eyebrow{display:none}
#ofm-editor .ofw-detail-header .ofw-actions{flex-wrap:nowrap;flex-shrink:0}
#ofm-editor .ofw-channel-select,#ofw-composer .ofw-channel-select{margin:0;gap:6px;flex-direction:row;align-items:center;white-space:nowrap}
#ofm-editor .ofw-channel-select select,#ofw-composer .ofw-channel-select select{width:145px;min-width:145px;padding:5px 8px;min-height:30px}
#ofm-editor-body,#ofw-composer-body{overflow:auto;min-height:0;padding:12px 16px;scrollbar-gutter:stable;flex:1}
#ofm-editor .ofm-top-controls{position:sticky;top:-12px;z-index:6;background:#0c1424;padding:8px 0;border-bottom:1px solid var(--ofw-line);grid-template-columns:minmax(180px,1fr) 150px 145px;gap:8px}
#ofm-editor .ofm-controls label,#ofw-composer .ofc-grid label,#ofw-composer .ofc-products-heading label{font-size:.73rem;gap:3px}
#ofm-editor .ofm-controls input:not([type=checkbox]),#ofm-editor .ofm-controls select,#ofw-composer input:not([type=checkbox]),#ofw-composer select{font-size:.76rem;padding:5px 7px;min-height:30px;border-radius:5px}
#ofm-editor .ofw-button,#ofw-composer .ofw-button{font-size:.75rem;line-height:1.2;padding:6px 9px;min-height:29px}
#ofm-editor .ofm-campaign-overview{gap:8px;margin:7px 0;font-size:.72rem;flex-wrap:nowrap}
#ofm-editor .ofm-campaign-overview>span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#ofm-editor .ofm-campaign-overview>span:nth-child(2){white-space:nowrap}
#ofm-editor .ofm-editor-actions{margin-bottom:7px;gap:8px}
#ofm-editor #ofm-batch-note{font-size:.71rem;margin:0}
#ofm-editor .ofm-editor-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:12px}
#ofm-editor .ofm-pane-title,#ofw-composer .ofc-pane-heading{padding:8px 10px;gap:8px}
#ofm-editor .ofm-pane-title h4,#ofw-composer .ofc-pane-heading h4{font-size:.79rem;line-height:1.3;margin:0}
#ofm-editor .ofm-pane-title span,#ofw-composer .ofc-pane-heading>span{font-size:.68rem}
#ofm-editor .ofm-included>.ofw-footnote{display:none}
#ofm-editor .ofm-rules{margin:0 0 6px;border-radius:5px}
#ofm-editor .ofm-rules>summary{font-size:.74rem;padding:6px 8px}
#ofm-editor .ofm-list-toolbar{margin:6px 0;gap:7px}
#ofm-editor .ofm-list-toolbar>label{font-size:.7rem}
#ofm-editor .ofm-list-actions{margin:5px 0 7px;gap:5px}
#ofm-editor .ofm-list-actions>span{font-size:.65rem;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ofm-editor .ofm-list-actions .ofw-button{font-size:.67rem;padding:5px 7px;min-height:25px}
#ofm-editor .ofm-product-table{width:100%;min-width:815px;font-size:.74rem;table-layout:fixed}
#ofm-editor .ofm-product-table th,#ofm-editor .ofm-product-table td,#ofm-editor .ofm-included-table th,#ofm-editor .ofm-included-table td,#ofw-composer .ofc-selection-table th,#ofw-composer .ofc-selection-table td,#ofw-composer .ofe-selection-table th,#ofw-composer .ofe-selection-table td{box-sizing:border-box;line-height:20px;height:33px;padding:3px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ofm-editor .ofm-product-table th,#ofm-editor .ofm-included-table th,#ofw-composer .ofc-selection-table th,#ofw-composer .ofe-selection-table th{font-size:.63rem;letter-spacing:.02em}
#ofm-editor .ofm-product-table th:nth-child(1){width:29px}#ofm-editor .ofm-product-table th:nth-child(2){width:222px}#ofm-editor .ofm-product-table th:nth-child(3){width:43px}#ofm-editor .ofm-product-table th:nth-child(4){width:46px}#ofm-editor .ofm-product-table th:nth-child(5){width:68px}#ofm-editor .ofm-product-table th:nth-child(6){width:76px}#ofm-editor .ofm-product-table th:nth-child(7){width:155px}#ofm-editor .ofm-product-table th:nth-child(11){width:150px}#ofm-editor .ofm-product-table th:nth-child(12){width:66px}
#ofm-editor .ofm-product-table .ofm-extra-column{display:none}
#ofm-editor .ofm-product-table td:nth-child(2),#ofm-editor .ofm-product-table th:nth-child(2){left:29px}
#ofm-editor .ofm-product-title,#ofm-editor .ofm-product:has(.ofm-linked) .ofm-product-title{font-size:.74rem;max-width:calc(100% - 19px);font-weight:500;line-height:20px}
#ofm-editor .ofm-product .ofm-sku{display:none}
#ofm-editor .ofm-linked{font-size:0;border:0;background:none;margin-left:4px;padding:0;color:#a5ccff}
#ofm-editor .ofm-linked::after{content:'↔';font-size:.77rem}
#ofm-editor .ofm-checkbox,#ofw-composer .ofc-selection-table input[type=checkbox],#ofw-composer .ofe-selection-table input[type=checkbox]{width:14px;height:14px}
#ofm-editor .ofm-product-table .ofm-suggested,#ofm-editor .ofm-included-pricing,#ofm-editor .ofm-included-product small{display:none}
#ofm-editor .ofm-price-indicator,#ofm-editor .ofm-funding-indicator{display:inline-block;vertical-align:middle;font:inherit;font-size:.61rem;line-height:17px;min-height:0;padding:0 3px;border:1px solid #9a783a88;border-radius:3px;color:#fcd78b;background:#70522b22;margin-left:4px;cursor:pointer}
#ofm-editor .ofm-funding-indicator{color:#7ee3b8;border-color:#367d6888;background:#164d3322}
#ofm-editor .ofm-product-table .ofw-tag,#ofm-editor .ofm-included-table .ofw-tag{font-size:.63rem;line-height:17px;padding:0 4px}
#ofm-editor .ofm-participation select{font-size:.67rem;min-height:26px;padding:3px 5px}
#ofm-editor .ofm-trend{font-size:.71rem}
#ofm-editor .ofm-stock{width:58px;min-height:25px!important;line-height:18px;padding:2px 5px!important}
#ofm-editor .ofm-included-table{font-size:.74rem;min-width:530px;width:100%;table-layout:fixed}
#ofm-editor .ofm-included-table th:nth-child(1){width:39%}#ofm-editor .ofm-included-table th:nth-child(2){width:150px}#ofm-editor .ofm-included-table th:nth-child(3){width:155px}#ofm-editor .ofm-included-table th:nth-child(4){width:92px}#ofm-editor .ofm-included-table th:nth-child(5){width:29px}
#ofm-editor .ofm-included-product{min-width:0;max-width:unset;line-height:20px}
#ofm-editor .ofm-included-table .ofm-dates{font-size:.64rem}
#ofm-editor .ofm-included-table .ofm-remove{font-size:.9rem;padding:0 5px;min-height:23px;line-height:20px}
#ofm-editor .ofm-section-row th{padding:3px 7px!important;height:26px;line-height:18px;font-size:.62rem!important}
#ofm-editor #ofm-included-scroll{max-height:54vh}#ofm-editor .ofm-product-scroll{max-height:43vh}
#ofm-editor .ofm-batch-footer{gap:8px;padding:7px 10px;margin-top:9px;bottom:-12px;border-radius:5px}
#ofm-editor .ofm-batch-footer strong{font-size:.77rem}#ofm-editor .ofm-batch-footer span{font-size:.67rem;margin-top:0}
#ofm-editor .ofm-reading-notes{margin-top:8px;font-size:.69rem}
#ofw-composer .ofc-steps{gap:15px;padding-bottom:7px;margin-bottom:7px;font-size:.73rem;align-items:center}
#ofw-composer .ofc-guide{font-size:.74rem;margin:6px 0 9px;color:#adbed5;border-bottom:1px solid var(--ofw-line);padding-bottom:7px}
#ofw-composer .ofc-guide summary{cursor:pointer;color:#bac8e2}
#ofw-composer .ofc-guide p{margin:7px 0;line-height:1.5}
#ofw-composer .ofc-grid{position:sticky;top:-12px;z-index:5;background:#0c1424;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px 0}
#ofw-composer .ofc-products-heading{gap:8px;margin:7px 0;font-size:.71rem}
#ofw-composer .ofc-products-heading h4,#ofw-composer .ofc-products-heading p{font-size:.72rem;margin:0}
#ofw-composer .ofc-liverpool-bulk{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:9px 0}#ofw-composer .ofc-liverpool-bulk[hidden]{display:none}#ofw-composer .ofc-liverpool-bulk button{flex-shrink:0}#ofw-composer .ofc-liverpool-bulk p{flex:1;min-width:240px;margin:0;font-size:.73rem;line-height:1.5}
#ofw-composer .ofc-liverpool-bulk details{flex-basis:100%;font-size:.73rem;color:#d4c08b}#ofw-composer .ofc-liverpool-bulk summary{cursor:pointer}#ofw-composer .ofc-liverpool-bulk li{margin:4px 0}
#ofw-composer #ofc-review-issues{font-size:.78rem;line-height:1.5}#ofw-composer #ofc-review-issues[hidden]{display:none}#ofw-composer .ofc-review-issues-list{max-height:14rem;overflow:auto;padding-left:22px}#ofw-composer .ofc-review-issues-list li{margin:8px 0}#ofw-composer .ofc-review-issues-list p{margin:3px 0}#ofw-composer #ofc-review-issues summary{cursor:pointer}
#ofw-composer .ofc-existing-action{display:inline-block;margin:0 0 5px}
#ofw-composer .ofc-publication-progress{padding:14px;border:1px solid var(--ofw-line);border-radius:8px;background:#172236;margin:12px 0}
#ofw-composer .ofc-publication-progress>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.8rem}
#ofw-composer .ofc-publication-progress progress{display:block;width:100%;height:10px;margin:12px 0;accent-color:#8b88ff}
#ofw-composer .ofc-publication-progress p{font-size:.76rem;color:#b6c5dc;margin:6px 0}
.coa-activities__item[data-activity-id^="ofertas-operation-"]>.coa-activities__progress{display:none}
#ofw-composer .ofc-editor-grid{gap:12px;margin-top:8px}
#ofw-composer .ofc-editor-grid .ofw-toolbar{margin:5px 8px;gap:6px}
#ofw-composer .ofc-editor-grid .ofw-toolbar label{font-size:.7rem}
#ofw-composer .ofc-selection-table,#ofw-composer .ofe-selection-table{font-size:.74rem;table-layout:fixed;min-width:590px}
#ofw-composer .ofc-selection-table th:first-child{width:40px}#ofw-composer .ofc-selection-table th:nth-child(2){width:46%}#ofw-composer .ofc-selection-table th:nth-child(3){width:130px}#ofw-composer .ofc-selection-table th:nth-child(4),#ofw-composer .ofc-selection-table th:nth-child(5){width:75px}
#ofw-composer .ofc-liverpool-selection{min-width:640px}#ofw-composer .ofc-liverpool-selection th:nth-child(2){width:auto}#ofw-composer .ofc-liverpool-selection th:nth-child(4),#ofw-composer .ofc-liverpool-selection th:nth-child(5){width:118px}#ofw-composer .ofc-liverpool-selection .ofc-floor{white-space:normal;font-size:.7rem;line-height:15px}#ofw-composer .ofc-floor span{display:block}#ofw-composer .ofc-floor .ofc-floor-amount{white-space:nowrap;font-size:.74rem}
#ofw-composer .ofc-selection-table .ofw-product{min-width:0;max-width:none}
#ofw-composer .ofc-selection-table .ofw-product strong,#ofw-composer .ofe-selection-table .ofw-product strong{font-weight:500;max-width:100%;margin:0;line-height:20px;font-size:.74rem;display:inline-block;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ofw-composer .ofc-selection-table .ofw-product small,#ofw-composer .ofe-selection-table .ofw-product small,#ofw-composer .ofe-selection-table .ofw-num small{display:none}
#ofw-composer .ofc-selection-table .ofc-price-warning{display:block;white-space:normal;font-size:.7rem;line-height:16px}
#ofw-composer .ofc-selection-table select{font-size:.65rem;padding:3px 5px;min-height:26px;line-height:18px}
#ofw-composer .ofc-publication{font-size:.67rem;display:block;overflow:hidden;text-overflow:ellipsis}
#ofw-composer .ofc-selection-table .ofc-remove{padding:0 5px;min-height:23px;font-size:.9rem}
#ofw-composer #ofc-selected{font-size:.71rem;margin-top:5px;display:block}
#ofw-composer .ofc-editor-grid .ofw-empty{padding:20px 10px;font-size:.76rem}
#ofw-composer .ofc-footer{padding:7px 10px;margin-top:8px;bottom:-12px;font-size:.71rem}
#ofw-composer #ofc-clear{padding:4px 8px;margin:5px 8px;font-size:.68rem}
#ofw-composer .ofe-selection-table th:first-child{width:45px}#ofw-composer .ofe-selection-table th:nth-child(2){width:40%}
#ofw-composer .ofe-selection-table .ofw-product{max-width:none;min-width:0}
#ofw-participation .ofm-product-detail-table td{font-size:.76rem;padding:8px 10px;vertical-align:top}
#ofw-participation .ofm-product-detail-table .ofm-pricing-values,#ofw-participation .ofm-product-detail-table td>span{display:block;font-size:.72rem}
@media(max-width:1100px){#ofw-composer .ofc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#ofm-editor .ofm-editor-grid{grid-template-columns:1fr}#ofm-editor #ofm-included-scroll{max-height:26vh}#ofm-editor .ofm-product-scroll{max-height:38vh}#ofm-editor .ofm-product-table{min-width:810px}#ofm-editor .ofm-included-table{min-width:530px}#ofm-editor .ofw-detail-header h3,#ofw-composer .ofw-detail-header h3{max-width:360px}}
@media(max-width:700px){#ofm-editor.ofw-dialog,#ofw-composer.ofw-dialog{width:96vw;height:94dvh;max-height:94dvh;max-width:96vw}#ofm-editor>.ofw-detail-header,#ofw-composer>.ofw-detail-header{padding:9px 10px;gap:7px;flex-wrap:wrap}#ofm-editor-body,#ofw-composer-body{padding:8px 10px}#ofm-editor .ofw-detail-header h3,#ofw-composer .ofw-detail-header h3{font-size:.85rem;max-width:85vw}#ofm-editor .ofm-top-controls{top:-8px;grid-template-columns:1fr 1fr}#ofm-editor .ofm-campaign-label{grid-column:1/-1}#ofm-editor .ofm-campaign-overview{flex-wrap:wrap}#ofm-editor .ofm-editor-actions{align-items:start}#ofm-editor .ofm-batch-footer,#ofw-composer .ofc-footer{bottom:-8px}#ofm-editor .ofm-batch-footer>div{min-width:100%}#ofw-composer .ofc-grid{top:-8px}#ofw-composer .ofc-editor-grid{grid-template-columns:1fr}#ofm-editor .ofm-list-actions>span{max-width:100%}}

/* Keep the final action visible while each editor's content scrolls. */
#ofm-editor-body{display:flex;flex-direction:column;overflow:hidden}
#ofm-editor-body>.ofm-controls{overflow:auto;min-height:0;flex:1;padding-right:3px;scrollbar-gutter:stable}
#ofm-editor .ofm-top-controls{top:0}
#ofm-editor-body>.ofm-batch-footer{position:static;flex:none;margin-top:8px}
#ofm-editor-body>.ofm-reading-notes,#ofm-editor-body>.ofw-note{flex:none;max-height:20vh;overflow:auto}
#ofw-composer-body:has(>#ofc-form),#ofw-composer-body:has(>#ofe-form){display:flex;flex-direction:column;overflow:hidden}
#ofw-composer #ofc-form,#ofw-composer #ofe-form{display:flex;flex-direction:column;min-height:0;flex:1}
#ofw-composer #ofc-fields,#ofw-composer #ofe-fields{overflow:auto;min-height:0;flex:1;scrollbar-gutter:stable}
#ofw-composer #ofc-form>.ofc-footer,#ofw-composer #ofe-form>.ofc-footer{position:static;flex:none;margin-top:8px}
#ofw-composer .ofc-grid{top:0}
#ofw-composer .ofc-selection-table th:first-child{font-size:0}
#ofm-editor .ofm-included-table .ofm-price-indicator{font-size:0;padding:0 3px}
#ofm-editor .ofm-included-table .ofm-price-indicator::after{content:'⚠';font-size:.7rem}

/* TikTok account promotions and platform campaigns share the same composer. */
#ofw-composer .ofc-origin-bar{display:flex;align-items:center;gap:14px;padding:8px 16px;border-bottom:1px solid #29334a;flex:none;font-size:.75rem;background:#121b2d}
#ofw-composer .ofc-origin-bar[hidden]{display:none}
#ofw-composer .ofc-origin-bar label{display:flex;align-items:center;gap:8px;white-space:nowrap}
#ofw-composer .ofc-origin-bar select,#ofw-composer .ofc-coupon-kind select{border:1px solid #3b4763;background:#182237;border-radius:6px;padding:6px 9px;color:#e2e8f0;font:inherit}
#ofw-composer .ofc-origin-bar span{color:#a6b5cc}
#ofw-composer-body:has(>#ofc-account-content){display:flex;flex-direction:column;overflow:hidden}
#ofc-account-content:not([hidden]),#ofc-platform-content:not([hidden]){min-height:0;flex:1;overflow:auto}
#ofc-account-content:has(>#ofc-form):not([hidden]){display:flex;flex-direction:column;overflow:hidden}
#ofc-account-content[hidden],#ofc-platform-content[hidden]{display:none!important}
#ofw-composer .ofc-coupon-kind{display:flex;align-items:center;gap:8px;font-size:.8rem}
#ofw-composer .ofc-coupon-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.8rem;margin:12px 0}
#ofw-composer .ofc-coupon-table{font-size:.75rem}
#ofw-composer .ofc-coupon-table td,#ofw-composer .ofc-coupon-table th{height:33px;padding:5px 9px;white-space:nowrap}
#ofw-composer .ofc-coupon-table td:first-child{max-width:480px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px){#ofw-composer .ofc-origin-bar{align-items:flex-start;flex-direction:column;gap:5px;padding:8px 10px}#ofw-composer .ofc-coupon-heading{align-items:flex-start;flex-direction:column}}
