:root{--bg:#fff;--bg-page:#f3f4f6;--bg-card:#fff;--border:#e5e7eb;--text:#374151;--text-h:#111827;--text-muted:#6b7280;--accent:#16a34a;--accent-hover:#15803d;--sidebar-bg:#111;--sidebar-text:#ffffffa6;--sidebar-active:#fff;--sidebar-hover-bg:#ffffff14;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:16px/150% var(--sans);letter-spacing:.1px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0}#root{min-height:100vh}h1,h2,h3{font-family:var(--sans);color:var(--text-h)}p{margin:0}.sidebar{background:var(--sidebar-bg);flex-direction:column;width:240px;min-width:240px;height:100vh;display:flex;position:sticky;top:0}.sidebar-logo{border-bottom:1px solid #ffffff14;padding:1.5rem 1.25rem 1rem}.sidebar-logo-placeholder{background:#2a2a2a;border-radius:8px;width:100%;height:64px}.sidebar-nav{flex-direction:column;gap:2px;padding:1rem 0;display:flex}.sidebar-nav-item{all:unset;color:var(--sidebar-text);cursor:pointer;text-align:left;border-radius:0;padding:.75rem 1.5rem;font-size:1rem;font-weight:400;transition:background .15s,color .15s;display:block}.sidebar-nav-item:hover{background:var(--sidebar-hover-bg);color:#fff}.sidebar-nav-item--active{color:var(--sidebar-active);font-weight:600}.header{background:var(--bg-card);border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:center;height:68px;padding:1rem 2rem;display:flex}.header-title{color:var(--text-h);letter-spacing:-.5px;margin:0;font-size:1.75rem;font-weight:700}.header-actions{align-items:center;gap:1.25rem;display:flex}.header-bell{all:unset;cursor:pointer;color:var(--text-muted);align-items:center;padding:4px;display:flex;position:relative}.header-bell:hover{color:var(--text-h)}.header-bell-badge{color:#fff;background:#ef4444;border-radius:50%;justify-content:center;align-items:center;width:16px;height:16px;font-size:.6rem;font-weight:700;display:flex;position:absolute;top:0;right:0}.header-user{align-items:center;gap:.6rem;display:flex}.header-avatar{color:#fff;letter-spacing:.5px;background:#374151;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:.75rem;font-weight:700;display:flex}.header-username{color:var(--text);font-size:.9rem;font-weight:500}.layout{min-height:100vh;display:flex}.layout-main{background:var(--bg);flex-direction:column;flex:1;min-width:0;display:flex}.layout-content{background:var(--bg-page);flex:1;padding:2rem;overflow:hidden auto}.prom-section{flex-direction:column;gap:1.5rem;width:100%;min-width:0;max-width:1100px;display:flex;overflow:hidden}.prom-form-wrapper{width:100%;min-width:0;overflow:hidden}.prom-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:0 1px 4px #0000000f}.prom-card-header{justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.5rem 1.75rem 1.25rem;display:flex}.prom-card-title{color:var(--text-h);margin:0 0 .25rem;font-size:1.35rem;font-weight:700}.prom-card-subtitle{color:var(--text-muted);margin:0;font-size:.85rem}.prom-add-btn{all:unset;background:var(--accent);color:#fff;cursor:pointer;white-space:nowrap;border-radius:8px;flex-shrink:0;padding:.6rem 1.25rem;font-size:.875rem;font-weight:600;transition:background .15s}.prom-add-btn:hover{background:var(--accent-hover)}.prom-status{color:var(--text-muted);padding:2rem 1.75rem;font-size:.9rem}.prom-status--error{color:#ef4444}.prom-table-wrapper{border-top:1px solid var(--border);border:1px solid var(--border);border-radius:10px;margin:0 1.25rem 1.25rem;overflow:hidden}.prom-table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:.875rem}.prom-table thead tr{background:#f9fafb}.prom-table th{text-align:left;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--border);white-space:nowrap;padding:.75rem 1.25rem;font-size:.8rem;font-weight:600}.prom-table td{border-bottom:1px solid var(--border);vertical-align:middle;color:var(--text);padding:1.25rem}.prom-table th:nth-child(5),.prom-table th:nth-child(6),.prom-table td.prom-col-vigencia,.prom-table td.prom-col-estado{border-left:1px solid var(--border)}.prom-order-cell{vertical-align:middle;width:52px;padding:0 0 0 .75rem}.prom-order-btns{flex-direction:column;gap:1px;display:flex}.prom-order-btn{all:unset;color:#9ca3af;cursor:pointer;border-radius:3px;padding:1px 3px;font-size:.6rem;line-height:1;transition:color .12s,background .12s}.prom-order-btn:hover:not(:disabled){color:#374151;background:#f3f4f6}.prom-order-btn:disabled{opacity:.25;cursor:default}.prom-table tbody tr:last-child td{border-bottom:none}.prom-table tbody tr:hover>td:not(.prom-order-cell),.prom-table tbody .prom-row--group-hover>td{background:#f9fafb}.prom-orden{color:var(--text-muted);text-align:center;width:60px;font-weight:600}.promo-name-cell{align-items:center;gap:.75rem;display:flex}.promo-icon{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.promo-icon--green{color:#16a34a;background:#dcfce7}.promo-icon--blue{color:#1d4ed8;background:#dbeafe}.promo-name{color:var(--text-h);margin-bottom:.15rem;font-size:.95rem;font-weight:700}.promo-sub{color:var(--text-muted);font-size:.78rem}.tipo-cell{flex-direction:column;align-items:flex-start;gap:4px;display:flex}.tipo-sub{color:var(--text-muted);font-size:.75rem}.tipo-badge{white-space:nowrap;border-radius:6px;padding:.25rem .6rem;font-size:.75rem;font-weight:600;display:inline-block}.tipo-envio{color:#166534;background:#dcfce7}.tipo-descuento{color:#1e40af;background:#dbeafe}.tipo-default{color:#374151;background:#f3f4f6}.prom-detalle{color:var(--text-muted)}.prom-vigencia{color:var(--text-muted);flex-direction:column;gap:.1rem;font-size:.82rem;display:flex}.prom-vigencia-row{align-items:center;gap:.35rem;display:flex}.prom-vigencia-end{padding-left:18px}.prom-estado{align-items:center;gap:.5rem;display:flex}.prom-estado-label{color:var(--accent);min-width:48px;font-size:.82rem;font-weight:600;display:inline-block}.prom-estado:has(.toggle input:not(:checked)) .prom-estado-label{color:var(--text-muted)}.toggle{cursor:default;width:40px;height:22px;display:inline-block;position:relative}.toggle input{opacity:0;width:0;height:0;position:absolute}.toggle-track{background:#d1d5db;border-radius:999px;transition:background .2s;position:absolute;inset:0}.toggle-track:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0003}.toggle input:checked+.toggle-track{background:var(--accent)}.toggle input:checked+.toggle-track:after{transform:translate(18px)}.prom-footer{border-top:1px solid var(--border);color:var(--text-muted);background:#f9fafb;padding:.875rem 1.75rem;font-size:.8rem}.pm-panel{box-sizing:border-box;background:#fff;border:1px solid #e5e7eb;border-radius:12px;width:100%;min-width:0;overflow:hidden;box-shadow:0 1px 4px #0000000f}.pm-header{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.25rem 1.5rem 1rem;display:flex}.pm-title{color:#111827;margin:0 0 .2rem;font-size:1.35rem;font-weight:700}.pm-subtitle{color:#6b7280;margin:0;font-size:.78rem}.pm-header-actions{flex-shrink:0;align-items:center;gap:.6rem;padding-top:2px;display:flex}.pm-btn-cancel{all:unset;color:#374151;cursor:pointer;border:1.5px solid #d1d5db;border-radius:8px;padding:.45rem 1rem;font-size:.82rem;font-weight:500;transition:border-color .15s}.pm-btn-cancel:hover:not(:disabled){border-color:#9ca3af}.pm-btn-cancel:disabled{opacity:.5;cursor:not-allowed}.pm-btn-save{all:unset;color:#fff;cursor:pointer;background:#16a34a;border-radius:8px;padding:.45rem 1.1rem;font-size:.82rem;font-weight:600;transition:background .15s}.pm-btn-save:hover:not(:disabled){background:#15803d}.pm-btn-save:disabled{opacity:.6;cursor:not-allowed}.pm-save-error{color:#ef4444;margin:0;padding:.35rem 1.5rem;font-size:.78rem}.pm-body{background:#f3f4f6;flex-direction:column;gap:.75rem;min-width:0;padding:.875rem 1rem 1rem;display:flex;overflow:hidden}.pm-body-toolbar{justify-content:flex-end;padding:0 .25rem;display:flex}.pm-card{box-sizing:border-box;background:#fff;border:1px solid #e5e7eb;border-radius:8px;width:100%;min-width:0;overflow:hidden}.pm-card-header{padding:.75rem 1.25rem .5rem}.pm-section-type-header{align-items:center;gap:.75rem;display:flex}.pm-section-type-header--green .pm-section-title{color:#166534}.pm-section-type-header--blue .pm-section-title{color:#1e3a8a}.pm-section-icon{border-radius:8px;flex-shrink:0;width:32px;height:32px}.pm-empty{color:#9ca3af;margin:0;padding:1rem 1.25rem;font-size:.82rem;font-style:italic}.pm-card-header-row{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.15rem;display:flex}.pm-section-title{color:#111827;margin:0;font-size:.95rem;font-weight:700}.pm-refresh-btn{all:unset;color:#6b7280;cursor:pointer;border:1px solid #e5e7eb;border-radius:6px;align-items:center;gap:.35rem;padding:.25rem .6rem;font-size:.75rem;font-weight:500;transition:color .15s,border-color .15s;display:flex}.pm-refresh-btn:hover:not(:disabled){color:#111827;border-color:#9ca3af}.pm-refresh-btn:disabled{opacity:.5;cursor:not-allowed}.pm-section-sub{color:#6b7280;margin:0;font-size:.78rem}.pm-section-sub--limit{color:#f59e0b;font-weight:600}.pm-filters{border-bottom:1px solid #e5e7eb;flex-wrap:wrap;align-items:flex-end;gap:.5rem;min-width:0;padding:.5rem 1.25rem;display:flex;overflow:hidden}.pm-filter-group{flex-direction:column;gap:.2rem;display:flex}.pm-filter-label{color:#9ca3af;text-transform:uppercase;letter-spacing:.04em;font-size:.68rem;font-weight:500}.pm-filter-select{color:#374151;appearance:none;cursor:pointer;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right .5rem center no-repeat;border:1.5px solid #e5e7eb;border-radius:6px;padding:.35rem 1.75rem .35rem .6rem;font-size:.82rem}.pm-filter-select:disabled{cursor:not-allowed;opacity:.65}.pm-search-group{flex-shrink:0;margin-left:auto;position:relative}.pm-search{color:#374151;border:1.5px solid #e5e7eb;border-radius:6px;width:180px;padding:.35rem 2rem .35rem .6rem;font-size:.82rem}.pm-search:disabled{cursor:not-allowed;opacity:.65}.pm-search-icon{color:#9ca3af;pointer-events:none;position:absolute;top:50%;right:.5rem;transform:translateY(-50%)}.pm-count{color:#6b7280;text-align:right;border-bottom:1px solid #e5e7eb;margin:0;padding:.4rem 1.25rem;font-size:.75rem}.pm-loading{color:#6b7280;margin:0;padding:1.5rem 1.25rem;font-size:.875rem}.pm-list{flex-direction:column;display:flex}.pm-row{cursor:pointer;-webkit-user-select:none;user-select:none;border-bottom:1px solid #f3f4f6;align-items:center;gap:.6rem;padding:.55rem 1.25rem;transition:background .12s;display:flex}.pm-row:last-child{border-bottom:none}.pm-row:hover:not(.pm-row--disabled){background:#f9fafb}.pm-row--checked{background:#f0fdf4}.pm-row--checked:hover{background:#dcfce7}.pm-row--disabled{opacity:.38;cursor:default}.pm-checkbox{cursor:pointer;accent-color:#16a34a;flex-shrink:0;width:16px;height:16px}.pm-checkbox:disabled{cursor:not-allowed}.pm-drag-handle{color:#d1d5db;flex-shrink:0;align-items:center;display:flex}.pm-row .promo-icon{border-radius:6px;width:30px;height:30px}.pm-row .promo-icon svg{width:16px;height:16px}.pm-row-info{flex-direction:column;flex:1;gap:.05rem;min-width:0;display:flex}.pm-row-name{color:#111827;white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;font-weight:600;overflow:hidden}.pm-row-sub{color:#6b7280;font-size:.72rem}.pm-row .tipo-badge{padding:.18rem .45rem;font-size:.7rem}.pm-row-detail{color:#9ca3af;text-align:center;min-width:30px;font-size:.78rem}.pm-vtex-badge{color:#7c3aed;white-space:nowrap;background:#ede9fe;border-radius:4px;flex-shrink:0;padding:.15rem .4rem;font-size:.68rem;font-weight:600}.pm-count-footer{color:#9ca3af;background:#f9fafb;border-top:1px solid #e5e7eb;margin:0;padding:.5rem 1.25rem;font-size:.75rem}.pm-info-banner{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:7px;align-items:flex-start;gap:.5rem;margin:.75rem 1.25rem .875rem;padding:.6rem .875rem;font-size:.78rem;line-height:1.5;display:flex}.pm-info-banner svg{color:#16a34a;flex-shrink:0;margin-top:1px}
